:root {
  --paper: #f6f1e6;
  --paper-2: #ece5d3;
  --card: #fbf7ed;
  --ink: #211b12;
  --ink-2: #7a7060;
  --line: #dcd2bd;
  --accent: #c2431f;
  --accent-deep: #953011;
  --teal: #3e7068;
  --teal-deep: #2f5a54;
  --f-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --f-sans:
    "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- dark mode token overrides ---------- */
[data-theme="dark"] {
  --paper: #1a1612;
  --paper-2: #241f19;
  --card: #201c16;
  --ink: #f0e8d8;
  --ink-2: #9e9080;
  --line: #3a3328;
  --accent: #e05a30;
  --accent-deep: #c2431f;
  --teal: #4e8a7e;
  --teal-deep: #3e7068;
}
[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.04;
}
[data-theme="dark"] .topbar {
  background: rgba(26, 22, 18, 0.92);
}
[data-theme="dark"] .subtasks {
  background: rgba(0, 0, 0, 0.25);
}
[data-theme="dark"] .d-body::-webkit-scrollbar-thumb {
  background: var(--line);
}
[data-theme="dark"] .modal-scrim {
  background: rgba(0, 0, 0, 0.65);
}
[data-theme="dark"] .scrim {
  background: rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .d-due-edit-row input[type="date"],
[data-theme="dark"] .rem-at-edit {
  color-scheme: dark;
}
[data-theme="dark"] .hero-band {
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.07),
    rgba(245, 158, 11, 0.01)
  );
  border-color: rgba(245, 158, 11, 0.15);
}
[data-theme="dark"] .row:hover {
  background: rgba(240, 232, 216, 0.04);
}
[data-theme="dark"] .tab.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* theme-toggle button */
.theme-toggle {
  width: 32px;
  height: 32px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: none;
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
  margin-left: 4px;
}
.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-2);
}
.theme-toggle .ic {
  width: 15px;
  height: 15px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.theme-toggle:hover .ic {
  transform: rotate(20deg);
}
/* smooth colour transitions site-wide */
body,
.topbar,
.drawer,
.modal,
.toast {
  transition:
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
::selection {
  background: var(--accent);
  color: var(--paper);
}
[hidden] {
  display: none !important;
}
button {
  font-family: inherit;
}
.mono {
  font-family: var(--f-mono);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* embedded icon system */
.ic {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  display: inline-block;
  vertical-align: -2px;
}

/* paper grain */
.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.6'/></svg>");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 241, 230, 0.92);
  backdrop-filter: blur(6px);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: none;
}
.brand-name {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 21px;
}
.brand-tag {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  transition: 0.18s;
}
.tab .ic {
  width: 13px;
  height: 13px;
}
.tab:hover {
  color: var(--ink);
  border-color: var(--line);
}
.tab.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.clock-block {
  margin-left: auto;
  text-align: right;
  flex: none;
}
.clock {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.clock-date {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-top: 2px;
}

/* ---------- shared bits ---------- */
main {
  padding-bottom: 10px;
}
.sec-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
  padding: 6px 0;
}
.sec-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sec-label .count {
  color: var(--accent);
}
.sec-label .ic {
  width: 13px;
  height: 13px;
}
button.sec-label {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
button.sec-label:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: 0.18s;
}
.btn .ic {
  width: 13px;
  height: 13px;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fbf4e8;
}
.btn-accent:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-teal {
  background: var(--teal);
  border-color: var(--teal);
  color: #f1eee2;
}
.btn-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn-ghost {
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn-sm {
  padding: 7px 13px;
  font-size: 10px;
}
.btn-block {
  width: 100%;
  justify-content: center;
}
.danger-txt {
  color: var(--accent);
}

.icon-btn {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: none;
  border-radius: 50%;
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.15s;
}
.icon-btn:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.icon-btn .ic {
  width: 15px;
  height: 15px;
}
.icon-btn.del:hover {
  color: var(--accent);
}

.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
}

.meter {
  height: 3px;
  background: var(--paper-2);
  border-radius: 2px;
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: 2px;
  width: 100%;
  transition: width 0.6s linear;
}
.water .meter i {
  background: var(--teal);
}
.break .meter i {
  background: var(--accent);
}

.row-confirm {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.row-confirm .mono {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.empty {
  padding: 34px 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  text-align: center;
  color: var(--ink-2);
}
.empty .ic {
  width: 22px;
  height: 22px;
  opacity: 0.6;
}
.empty p {
  margin-top: 9px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
}

/* ---------- hero ---------- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#view-home,
#view-all,
#view-rem {
  animation: rise 0.5s cubic-bezier(0.25, 0.8, 0.3, 1) both;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
  padding: 46px 0 34px;
}
.hero h1 {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.rename-btn {
  width: 26px;
  height: 26px;
  opacity: 0.4;
  margin-left: 12px;
  color: var(--ink);
  vertical-align: middle;
}
.rename-btn:hover {
  opacity: 1;
  background: var(--paper-2);
}
.rename-btn .ic {
  width: 13px;
  height: 13px;
}
.rename input {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--accent);
  color: var(--ink);
  outline: none;
  width: min(420px, 90%);
  padding: 0 2px 4px;
}
.hero-sub {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero-sub::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent);
  flex: none;
}
.quote-side {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.q-label {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.q-inspire-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.18s ease;
}
.q-inspire-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper-2);
}
.q-inspire-btn:disabled {
  opacity: 0.5;
  cursor: wait;
}
.q-inspire-btn .ic {
  width: 11px;
  height: 11px;
}
.q-inspire-btn.loading .ic {
  animation: q-spin 0.7s linear infinite;
}
@keyframes q-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.quote {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.5;
  transition: opacity 0.2s ease;
}
.q-author {
  margin-top: 12px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: opacity 0.2s ease;
}

/* ---------- now band ---------- */
.now-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 2px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 2px 0 30px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.now-empty .ic {
  width: 15px;
  height: 15px;
}
.now-band {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  background: var(--card);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  margin: 2px 0 30px;
  flex-wrap: wrap;
}
.now-chip {
  flex: none;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
  padding: 4px 8px;
  transform: rotate(-3deg);
}
.now-main {
  flex: 1;
  min-width: 220px;
}
.now-title {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  cursor: pointer;
}
.now-title:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}
.now-meta {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.now-timer {
  color: var(--accent);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}
.now-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ---------- grids ---------- */
.home-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}
.side-block {
  margin-bottom: 36px;
}
.rem-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}

/* ---------- task rows ---------- */
.rows {
  border-top: 1px solid var(--line);
}
.row {
  display: flex;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  position: relative;
  transition: background 0.15s;
  animation: row-fade-up 0.28s cubic-bezier(0.25, 0.8, 0.3, 1) both;
  animation-delay: calc(var(--row-i, 0) * 70ms);
}
@keyframes row-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.row:hover {
  background: rgba(33, 27, 18, 0.028);
}
.chk {
  width: 21px;
  height: 21px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: transparent;
  transition: 0.18s;
  padding: 0;
}
.chk .ic {
  width: 11px;
  height: 11px;
  stroke-width: 3.2;
}
.chk:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 67, 31, 0.08);
}
.chk.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
}
.row-main {
  flex: 1;
  min-width: 0;
}
.row-title {
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.row-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.row-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.row-meta .ic {
  width: 12px;
  height: 12px;
}
.m.over {
  color: var(--accent);
}
.m.accent {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  gap: 2px;
  align-items: center;
  opacity: 0;
  transition: 0.15s;
  flex: none;
}
.row:hover .row-actions,
.row:focus-within .row-actions {
  opacity: 1;
}
@media (hover: none) {
  .row-actions {
    opacity: 1;
  }
}
.row.done .row-title {
  position: relative;
  color: var(--ink-2);
}
.row.done .row-title::after {
  content: "";
  position: absolute;
  left: 0;
  top: 54%;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  opacity: 0.7;
  transform-origin: left;
}
.row.done.fresh .row-title::after {
  animation: strike 0.4s 0.1s cubic-bezier(0.3, 0.7, 0.3, 1) both;
}
@keyframes strike {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
.row.compact {
  padding: 10px 4px;
}
.row.compact .row-title {
  font-size: 14px;
}
.row.past {
  opacity: 0.62;
}
@keyframes stampIn {
  0% {
    opacity: 0;
    transform: scale(2) rotate(-22deg);
  }
  25% {
    opacity: 1;
    transform: scale(1) rotate(-8deg);
  }
  72% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1) rotate(-8deg);
  }
}
.stamp {
  position: absolute;
  left: 46px;
  top: calc(50% - 13px);
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  padding: 3px 9px;
  background: var(--paper);
  pointer-events: none;
  z-index: 2;
  animation: stampIn 0.95s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

.group {
  margin: 28px 0;
}
.all-clear {
  padding: 16px 4px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.done-today {
  margin-top: 28px;
}

/* ---------- composer / inputs ---------- */
.composer-input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  padding: 12px 2px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.composer-input:focus {
  border-color: var(--ink);
}
.composer-input::placeholder,
textarea::placeholder,
.search input::placeholder {
  color: #b3a88f;
}
.composer-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  flex-wrap: wrap;
}
.composer-row .btn {
  margin-left: auto;
}
.due-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink-2);
  transition: 0.18s;
}
.due-wrap:focus-within {
  border-color: var(--ink);
  color: var(--ink);
}
.due-wrap .ic {
  width: 14px;
  height: 14px;
}
.due-wrap input {
  border: 0;
  background: none;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ink);
  outline: none;
  width: 132px;
  padding: 0;
}
.rem-form {
  margin: 4px 0 22px;
}

/* ---------- side column ---------- */
.stats .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.stats .stat b {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wm {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}
.wm-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.wm-ic .ic {
  width: 14px;
  height: 14px;
}
.wm.water .wm-ic {
  color: var(--teal);
}
.wm.break .wm-ic {
  color: var(--accent);
}
.wm-body {
  flex: 1;
  min-width: 0;
}
.wm-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.wm-top span:first-child {
  font-weight: 500;
  font-size: 13.5px;
}
.wm-top .mono {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.wm .meter {
  margin-top: 8px;
}
.well-foot {
  padding: 12px 2px 0;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- all tasks view ---------- */
.view-head {
  margin: 40px 0 24px;
}
.view-title {
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.view-sub {
  margin-top: 7px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}
.search {
  flex: 1;
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  color: var(--ink-2);
  transition: 0.18s;
}
.search:focus-within {
  border-color: var(--ink);
  color: var(--ink);
}
.search .ic {
  width: 15px;
  height: 15px;
}
.search input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-family: var(--f-sans);
  font-size: 13.5px;
  color: var(--ink);
  min-width: 0;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: none;
  cursor: pointer;
  transition: 0.15s;
}
.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.chip.on {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.toolbar-end {
  margin-left: auto;
}

/* ---------- reminders & wellness ---------- */
.rem-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.rem-ic .ic {
  width: 14px;
  height: 14px;
}
.row.past .rem-ic {
  color: var(--ink-2);
}
.well-desc {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 6px;
  max-width: 44ch;
}
.well-block {
  border-top: 1px solid var(--line);
  padding: 20px 0 22px;
}
.well-head {
  display: flex;
  align-items: center;
  gap: 11px;
}
.well-ic {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.well-ic .ic {
  width: 14px;
  height: 14px;
}
.well-block.water .well-ic {
  color: var(--teal);
}
.well-block.break .well-ic {
  color: var(--accent);
}
.well-block.notify .well-ic {
  color: var(--ink-2);
}
.well-name {
  font-weight: 600;
  font-size: 14.5px;
  flex: 1;
}
.well-timing {
  margin: 14px 0 9px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.well-timing b {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.well-timing input {
  width: 52px;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: none;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--ink);
  text-align: center;
  outline: none;
  padding: 2px 0;
}
.well-timing input:focus {
  border-color: var(--ink);
}
.well-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.well-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.well-note {
  margin-top: 12px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}

.switch {
  position: relative;
  display: inline-block;
  flex: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.switch .tr {
  display: block;
  width: 38px;
  height: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  cursor: pointer;
}
.switch .tr::after {
  content: "";
  position: absolute;
  top: 2.5px;
  left: 3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  transition:
    transform 0.2s,
    background 0.2s;
}
.switch input:checked + .tr {
  background: var(--ink);
}
.switch input:checked + .tr::after {
  background: var(--paper);
  transform: translateX(16px);
}

/* ---------- drawer ---------- */
.drawer-root {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}
.drawer-root.open {
  pointer-events: auto;
}
.scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 12, 0.44);
  opacity: 0;
  transition: 0.25s;
  cursor: pointer;
}
.open .scrim {
  opacity: 1;
}
.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(470px, 100%);
  background: var(--paper);
  border-left: 1px solid var(--line);
  transform: translateX(103%);
  transition: transform 0.34s cubic-bezier(0.32, 0.72, 0.28, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 60px rgba(26, 20, 12, 0.18);
}
.open .drawer {
  transform: none;
}
.d-head {
  padding: 22px 58px 18px 26px;
  border-bottom: 1px solid var(--line);
  position: relative;
  flex: none;
}
.d-kicker {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.d-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.d-title {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 6px;
  overflow-wrap: anywhere;
}
.d-title .icon-btn {
  width: 24px;
  height: 24px;
}
.d-title .icon-btn .ic {
  width: 13px;
  height: 13px;
}
.d-titleform input {
  width: 100%;
  margin-top: 10px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--accent);
  padding: 2px 0;
  outline: none;
  color: var(--ink);
}
.d-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.d-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 26px 34px;
}
.d-body::-webkit-scrollbar {
  width: 8px;
}
.d-body::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}
.d-meta {
  margin: 2px 0 4px;
  display: grid;
  grid-template-columns: 112px 1fr;
  row-gap: 8px;
  column-gap: 14px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.d-meta dt {
  color: var(--ink-2);
}
.d-meta dd {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.comments {
  border-top: 1px solid var(--line);
}
.comment {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.c-when {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.c-text {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.c-empty {
  padding: 16px 2px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-2);
}
.comment-form {
  margin-top: 18px;
}
textarea {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  outline: none;
  resize: vertical;
  min-height: 76px;
  transition: border-color 0.2s;
}
textarea:focus {
  border-color: var(--ink);
}
.cf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 10px;
}
.cf-hint {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- toasts — Windows 11 notification style ---------- */
#toasts {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  width: min(380px, calc(100vw - 48px));
  pointer-events: none;
}
.toast {
  position: relative;
  display: flex;
  align-items: stretch;
  background: #1e1e1e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.4);
  animation: tIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
  pointer-events: all;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.toast.out {
  animation: tOut 0.22s ease both;
}
@keyframes tIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tOut {
  to {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}
/* Colored icon strip on the left */
.toast::before {
  content: "";
  display: block;
  width: 4px;
  min-height: 100%;
  border-radius: 12px 0 0 12px;
  background: var(--ink);
  flex-shrink: 0;
}
.toast.water::before {
  background: var(--teal);
}
.toast.break::before {
  background: #a78bfa;
}
.toast.reminder::before {
  background: var(--accent);
}
.toast.success::before {
  background: #4ade80;
}
.toast.info::before {
  background: var(--ink);
}
/* Inner content wrapper */
.t-inner {
  flex: 1;
  padding: 14px 40px 14px 16px;
}
.t-title {
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f0;
  letter-spacing: 0.01em;
  text-transform: none;
  font-family: var(--f-sans);
}
.toast.water .t-title {
  color: #7dd3fc;
}
.toast.break .t-title {
  color: #c4b5fd;
}
.toast.reminder .t-title {
  color: var(--accent);
}
.toast.success .t-title {
  color: #86efac;
}
.t-body {
  font-size: 12.5px;
  color: rgba(240, 240, 240, 0.72);
  margin-top: 4px;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.t-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.t-actions .btn {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e5e5;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}
.t-actions .btn:hover {
  background: rgba(255, 255, 255, 0.16);
}
.t-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition:
    background 0.15s,
    color 0.15s;
}
.t-x:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.t-x .ic {
  width: 12px;
  height: 12px;
}
.t-life {
  display: none;
}
@keyframes life {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* ---------- modal ---------- */
.modal-root,
#modalRoot {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal-root:empty,
#modalRoot:empty {
  display: none !important;
}
.modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(26, 20, 12, 0.5);
  backdrop-filter: blur(3px);
}
.modal {
  position: relative;
  width: min(432px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px 32px;
  box-shadow: 0 30px 80px rgba(26, 20, 12, 0.35);
  animation: mIn 0.35s cubic-bezier(0.3, 0.9, 0.3, 1.05) both;
}
@keyframes mIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
.modal.shake {
  animation: shake 0.3s;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-7px);
  }
  40%,
  80% {
    transform: translateX(7px);
  }
}
.m-kicker {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.modal h2 {
  margin-top: 12px;
  font-family: var(--f-serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}
.m-sub {
  margin-top: 10px;
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.m-input {
  width: 100%;
  margin-top: 22px;
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 18px;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--line);
  padding: 10px 2px;
  outline: none;
  color: var(--ink);
  transition: border-color 0.2s;
}
.m-input:focus {
  border-color: var(--ink);
}
.m-err {
  display: none;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.m-err.show {
  display: block;
}
.modal form .btn {
  margin-top: 22px;
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding: 18px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  font: inherit;
  letter-spacing: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 0 26px;
  }
  .quote-side {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .home-grid,
  .rem-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 18px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px 0;
  }
  .clock-block {
    margin-left: auto;
  }
  .tabs {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .toolbar-end {
    margin-left: 0;
  }
  .view-head {
    margin: 28px 0 18px;
  }
}

/* ---------- quick-win enhancements ---------- */
.row.kbd-selected {
  background: var(--paper-2);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 6px;
}
.d-due-edit-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.d-due-edit-row input[type="date"] {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 6px;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink);
  outline: none;
}
.d-due-edit-row input[type="date"]:focus {
  border-color: var(--ink);
}
.rem-at-edit {
  border: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 6px;
  padding: 2px 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink);
  outline: none;
}
.rem-at-edit:focus {
  border-color: var(--ink);
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.foot-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.foot-sep {
  color: var(--line);
}
.linkish-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.15s;
}
.linkish-btn:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linkish-btn .ic {
  width: 12px;
  height: 12px;
}
.foot-shortcuts {
  margin-left: auto;
}
@media (max-width: 800px) {
  .foot-shortcuts {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ---------- Feature Batch 2 ---------- */
.recur-badge {
  color: var(--ink-2);
}
.star-badge {
  color: #d97706;
}
.row.starred {
  background: rgba(245, 158, 11, 0.03);
}
.row.starred .chk {
  border-color: #d97706;
}
.row.starred .chk:hover {
  background: #d97706;
  color: var(--paper);
}
.row.starred .chk.on {
  background: #d97706;
}
.row-actions [data-action="star"].starred {
  color: #d97706;
}

/* Subtask progress chip */
.sub-chip {
  color: var(--accent);
}
.sub-prog-inline {
  width: 40px;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  margin-top: 4px;
}
.sub-prog-inline::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--pct);
  background: var(--accent);
  transition: width 0.3s ease;
}

/* Drawer subtasks */
.subtasks {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
}
.sub-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.2s;
}
.sub-item.done {
  opacity: 0.5;
}
.sub-item.done .sub-text {
  text-decoration: line-through;
}
.sub-text {
  flex: 1;
  font-size: 14.5px;
}
.sub-add-form {
  padding: 10px 14px;
}
.sub-input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  outline: none;
}
.sub-input::placeholder {
  color: var(--ink-3);
}

/* Hero Band for Top 3 Priority */
.hero-band {
  margin: 20px 24px;
  background: linear-gradient(
    135deg,
    rgba(245, 158, 11, 0.1),
    rgba(245, 158, 11, 0.02)
  );
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
}
.hero-band .sec-label {
  color: #b45309;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-band .sec-label .ic {
  width: 14px;
  height: 14px;
  color: #d97706;
}
.hero-band .row {
  border-bottom: none;
  padding: 8px 0;
  background: transparent;
}
.hero-band .row + .row {
  border-top: 1px dashed rgba(245, 158, 11, 0.2);
}

/* Water Ring */
.water-tracker {
  display: flex;
  align-items: center;
  gap: 12px;
}
.water-ring {
  width: 32px;
  height: 32px;
  transform: rotate(-90deg);
}
.water-ring-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 4;
}
.water-ring-fill {
  fill: none;
  stroke: #0ea5e9;
  stroke-width: 4;
  stroke-linecap: round;
  transition:
    stroke-dashoffset 0.4s ease,
    stroke 0.4s ease;
}
.water-ring-fill.goal-met {
  stroke: #10b981;
}
.water-tracker-text {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.water-goal-input {
  width: 24px;
  background: transparent;
  border: none;
  border-bottom: 1px dashed var(--ink-3);
  font-family: inherit;
  font-size: inherit;
  color: var(--ink-2);
  text-align: center;
  padding: 0;
  outline: none;
}
.water-goal-input:focus {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Weekly Review Tab */
.review-grid {
  display: grid;
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}
.rev-bar-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 160px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.rev-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 12%;
  height: 100%;
  justify-content: flex-end;
}
.rev-bar {
  width: 100%;
  max-width: 32px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
  transition: height 0.5s ease;
}
.rev-bar-label {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  text-transform: uppercase;
}

/* ---------- Tier 3 Polish Animations ---------- */

/* Wellness Meters */
.meter i {
  position: relative;
  overflow: hidden;
}
.meter i::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  bottom: 0;
  width: 50%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 200%;
  }
}
.wm.due-now .meter i {
  animation: pulse-glow 1.5s infinite alternate;
}
@keyframes pulse-glow {
  from {
    box-shadow: 0 0 4px var(--accent);
  }
  to {
    box-shadow: 0 0 12px var(--accent);
  }
}

/* Clock Colon Blink */
/* .colon {
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
} */

/* Quote Reveal */
.quote,
.q-author {
  animation: fade-in 1.5s ease-in-out forwards;
}
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Greeting Entrance */
#greeting {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  animation: typing 1.5s steps(40, end);
}
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Empty States */
.empty .ic {
  animation: sway 4s ease-in-out infinite alternate;
}
@keyframes sway {
  0% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(10deg);
  }
}
.now-empty .ic {
  animation: spin-slow 20s linear infinite;
}
@keyframes spin-slow {
  100% {
    transform: rotate(360deg);
  }
}

/* Footer promo */
.foot-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.foot-promo {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
.foot-promo:hover {
  opacity: 0.75;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Breathing Circle (Break Nudge) ---------- */
.breathe-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
}
.breathe-overlay.active {
  display: flex;
  animation: fade-in-bg 0.5s ease forwards;
}
@keyframes fade-in-bg {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.breathe-ring {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.3),
    rgba(99, 102, 241, 0.05)
  );
  border: 2px solid rgba(99, 102, 241, 0.6);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.3);
  animation: box-breathe 8s ease-in-out infinite;
}
@keyframes box-breathe {
  0%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  25% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
  75% {
    transform: scale(0.7);
    opacity: 0.5;
  }
}
.breathe-text {
  font-family: var(--f-ui);
  font-size: 18px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: breathe-text 8s ease-in-out infinite;
}
@keyframes breathe-text {
  0%,
  100% {
    content: "Breathe out";
    opacity: 0.5;
  }
  25% {
    content: "Breathe in";
    opacity: 1;
  }
}

/* ---------- Water Drop Canvas ---------- */
.drop-canvas {
  position: fixed;
  pointer-events: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9997;
  display: none;
}
.drop-canvas.active {
  display: block;
}
