:root {
  --bg: #f5f7fb;
  --text: #172033;
  --muted: #5f6b7a;
  --panel: #ffffff;
  --border: #d9e0ea;
  --blue: #1767b1;
  --green-bg: #e7f7ef;
  --green-border: #75c69a;
  --green-text: #14633c;
  --yellow-bg: #fff4cf;
  --yellow-border: #e5b936;
  --yellow-text: #765100;
  --red-bg: #ffe7e7;
  --red-border: #e36a6a;
  --red-text: #9b1c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-bottom: 96px;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.container {
  width: min(100% - 28px, 720px);
  margin: 0 auto;
}

.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 22px 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 30px;
  line-height: 1.25;
}

h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.notice {
  margin-bottom: 0;
  padding: 12px 14px;
  border-left: 5px solid var(--blue);
  background: #eef6ff;
  color: #21384f;
  font-weight: 700;
}

.panel {
  margin-top: 16px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.time-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 14px;
  background: #f0f5fb;
  border-radius: 8px;
}

.time-label {
  color: var(--muted);
  font-weight: 700;
}

#current-time {
  font-size: 28px;
}

.group + .group {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 52px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.check-row:has(input:checked) {
  border-color: var(--blue);
  background: #eef6ff;
}

.check-row input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.check-text {
  flex: 1 1 auto;
}

.item-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  margin-top: -2px;
  border-radius: 8px;
  background: #f2f5f9;
  color: #32445c;
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.check-row:has(input:checked) .item-icon {
  background: #dcecff;
  border-color: #9cc4ed;
  color: #14558f;
}

.important-check {
  margin-top: 8px;
}

.actions {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

button {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  background: var(--blue);
  color: #ffffff;
}

.secondary-button {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border);
}

.result {
  margin: 16px 0;
  padding: 18px;
  border: 2px solid;
  border-radius: 8px;
}

.result.hidden,
.hidden {
  display: none;
}

.result-danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.result-caution {
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
  color: var(--yellow-text);
}

.result-normal {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.result-eyebrow {
  margin-bottom: 6px;
  color: inherit;
  font-size: 15px;
  font-weight: 900;
}

#result-title {
  margin-bottom: 8px;
  font-size: 26px;
  line-height: 1.25;
}

#result-message {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
}

.route-risk {
  margin: 12px 0;
  padding: 12px;
  background: #fffaf0;
  border: 2px solid var(--yellow-border);
  border-radius: 8px;
  color: var(--yellow-text);
  font-weight: 900;
}

.confirm-message {
  margin-bottom: 0;
  font-weight: 800;
}

.skip-message {
  margin-bottom: 12px;
  padding: 10px 12px;
  background: #f7f9fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.check-list.is-ignored {
  opacity: 0.55;
}

.check-list.is-ignored .check-row {
  background: #f7f9fc;
}

.app-footer {
  margin-top: 24px;
  padding: 20px 0;
  color: var(--muted);
  text-align: center;
}

.sticky-result {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  gap: 2px;
  width: min(100% - 28px, 720px);
  padding: 12px 14px;
  border: 2px solid;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.22);
  transform: translateX(-50%);
}

.sticky-label {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

#sticky-result-title {
  font-size: 20px;
  line-height: 1.25;
}

.sticky-danger {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.sticky-caution {
  background: var(--yellow-bg);
  border-color: var(--yellow-border);
  color: var(--yellow-text);
}

.sticky-normal {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}
