body {
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom));
}

header { padding: 4px 4px 20px; }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
h1 { margin: 6px 0 0; font-size: 22px; font-weight: 700; }

.backlink {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.backlink:active { color: var(--ink); }

section {
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--card-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
}
section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--card-line);
}
.item:first-child { border-top: none; padding-top: 0; }
.item .time {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 700;
}
.item button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 4px;
  cursor: pointer;
}
.item button:active { opacity: 0.6; }

.empty { color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }

.add-row { display: flex; gap: 10px; align-items: stretch; }
input[type="time"] {
  flex: 1 1 auto;
  min-width: 0;
  appearance: none;
  background: #0C1617;
  color: var(--ink);
  border: none;
  box-shadow: inset 0 0 0 1px var(--card-line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 17px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-variant-numeric: tabular-nums;
}
input[type="time"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
::-webkit-calendar-picker-indicator { filter: invert(0.7); }

button.primary {
  flex: 0 0 auto;
  appearance: none;
  border: none;
  border-radius: 12px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  background: var(--accent);
  color: #0B1516;
}
button.primary:active { filter: brightness(0.92); }
button.primary[disabled] { opacity: 0.5; }

.note { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }
.error { margin-top: 10px; font-size: 13px; color: var(--danger); }

.state-message {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 60px 20px;
  line-height: 1.6;
}
