:root {
  --bg: oklch(0.975 0.008 135);
  --paper: oklch(0.995 0.003 130);
  --ink: oklch(0.27 0.035 142);
  --muted: oklch(0.46 0.025 142);
  --line: oklch(0.88 0.018 138);
  --green: oklch(0.47 0.09 145);
  --green-soft: oklch(0.9 0.05 145);
  --lilac: oklch(0.58 0.11 305);
  --lilac-soft: oklch(0.92 0.045 305);
  --pink: oklch(0.79 0.1 15);
  --plum: oklch(0.34 0.07 305);
  --sun: oklch(0.83 0.13 88);
  --clay: oklch(0.72 0.1 38);
  --shadow: 0 22px 60px oklch(0.3 0.03 140 / 0.09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.cloud-pending .app-shell {
  visibility: hidden;
}
.cloud-pending body::before {
  content: "Opening Daylight…";
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 700;
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
}
.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  transform: translateY(-150%);
  z-index: 20;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus {
  transform: none;
}
.app-shell {
  width: min(1180px, calc(100% - 48px));
  min-height: 100vh;
  margin: auto;
}
.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 35%);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  font-size: 20px;
  font-weight: 720;
  cursor: pointer;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.private-state {
  font-size: 12px;
  color: var(--muted);
}
.private-state span {
  color: var(--green);
  font-size: 9px;
  margin-inline-end: 6px;
}
.daily-link,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgb(255 255 255/0.55);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}
.daily-link:hover,
.soft-button:hover {
  background: var(--paper);
  border-color: #c5c1b3;
}
main {
  padding: 70px 0 90px;
}
footer {
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lilac), white 24%);
  outline-offset: 3px;
}
button:active {
  transform: scale(0.96);
}
h1,
h2,
h3,
p {
  margin-block-start: 0;
}
h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 500;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-block-end: 20px;
}
h2 {
  font-size: 25px;
  line-height: 1.15;
  margin-block-end: 0;
}
h3 {
  font-size: 20px;
  line-height: 1.25;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.welcome {
  max-width: 1040px;
  margin: auto;
}
.welcome-copy {
  max-width: 750px;
  margin-bottom: 48px;
}
.welcome-copy > p:last-child,
.page-heading > div > p:last-child,
.area-hero > div > p:last-child {
  max-width: 62ch;
  color: var(--muted);
  text-wrap: pretty;
}
.world-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.world-card {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  padding: 30px;
  border: 0;
  border-radius: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
  overflow: hidden;
}
.world-card > span:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0;
}
.world-card small {
  font-size: 12px;
  font-style: normal;
  opacity: 0.72;
}
.world-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 8px 0 12px;
}
.world-card em {
  max-width: 34ch;
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
  opacity: 0.78;
}
.world-number {
  font:
    12px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  opacity: 0.55;
}
.world-foot {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.world-foot b,
.area-meta b {
  font-size: 18px;
  font-weight: 400;
}
.world-personal {
  background: var(--green-soft);
  color: #2f472c;
}
.world-business {
  background: var(--lilac-soft);
  color: #3b385c;
}
.world-card:hover {
  box-shadow: 0 22px 60px rgb(55 49 38/0.13);
  translate: 0 -3px;
}
.home-note {
  max-width: 700px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 38px auto 0;
  padding: 18px 22px;
  color: var(--muted);
}
.home-note > span {
  color: var(--lilac);
  font-size: 20px;
}
.home-note p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}
.home-note strong {
  color: var(--ink);
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 12px;
}
.crumbs button {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--muted);
  cursor: pointer;
}
.crumbs button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}
.page-heading h1 {
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  margin-bottom: 12px;
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.area-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--paper), transparent 4%);
  box-shadow: 0 8px 28px rgb(55 49 38/0.045);
  cursor: pointer;
}
.area-card:hover {
  border-color: #bdb8a9;
  box-shadow: 0 14px 36px rgb(55 49 38/0.09);
  translate: 0 -2px;
}
.area-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-soft);
  color: var(--green);
  font-family: Georgia, serif;
  font-size: 19px;
  font-style: normal;
}
.area-title {
  display: flex;
  flex-direction: column;
  margin: 24px 0 auto;
}
.area-title strong,
.add-area-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}
.area-title small,
.add-area-card small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.mini-progress {
  width: 100%;
  height: 3px;
  margin: 18px 0 10px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}
.mini-progress i {
  display: block;
  width: var(--progress);
  height: 100%;
  background: var(--green);
}
.area-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
}
.add-area-card {
  justify-content: center;
  border-style: dashed;
  background: transparent;
}
.add-area-card .area-icon {
  margin-bottom: 20px;
  background: var(--lilac-soft);
  color: var(--lilac);
}
.inline-panel {
  max-width: 560px;
  margin: 24px 0 0;
  padding: 20px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.inline-panel label,
.quick-add label,
.resource-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}
.inline-panel > div,
.quick-add > div {
  display: flex;
  gap: 10px;
}
.inline-panel input,
.quick-add input,
.resource-form input,
.resource-form select,
.step-add input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 10px 12px;
  color: var(--ink);
}
.inline-panel button,
.quick-add button,
.resource-form button,
.step-add button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.area-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-bottom: 46px;
}
.hero-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--green-soft);
  color: var(--green);
  font:
    30px/1 Georgia,
    serif;
}
.area-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin: 0 0 8px;
}
.area-hero p {
  margin: 0;
}
.progress-ring {
  --value: 0;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--green) calc(var(--value) * 1%),
    var(--green-soft) 0
  );
  position: relative;
}
.progress-ring:after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}
.progress-ring span {
  z-index: 1;
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}
.focus-column,
.library-column {
  min-width: 0;
}
.library-column {
  padding: 24px;
  border-radius: 22px;
  background: rgb(255 253 248/0.72);
  border: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.quick-add {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 8px 28px rgb(55 49 38/0.05);
}
.quick-add input[name="minutes"] {
  flex: 0 0 82px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.focus-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgb(55 49 38/0.04);
}
.focus-card.done {
  opacity: 0.66;
}
.task-top {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.main-check {
  width: 26px;
  height: 26px;
  margin-top: 3px;
  cursor: pointer;
}
.main-check input {
  position: absolute;
  opacity: 0;
}
.main-check span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid #aaa99f;
  border-radius: 8px;
  background: white;
}
.main-check input:checked + span {
  background: var(--green);
  border-color: var(--green);
}
.main-check input:checked + span:after {
  content: "✓";
  color: white;
  font-size: 15px;
  font-weight: 800;
}
.task-name h3 {
  margin: 0 0 3px;
  overflow-wrap: break-word;
}
.task-name small {
  color: var(--muted);
  font-size: 11px;
}
.done .task-name h3 {
  text-decoration: line-through;
  text-decoration-thickness: from-font;
  text-underline-position: from-font;
}
.focus-timer {
  width: 228px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 32px;
  gap: 7px;
  align-items: center;
  padding: 10px 11px 9px 16px;
  border-radius: 16px;
  background: var(--plum);
  color: var(--pink);
}
.focus-timer output {
  font-size: 25px;
  font-weight: 690;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.focus-timer button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  color: var(--plum);
  cursor: pointer;
}
.focus-timer button span {
  font-size: 13px;
  transform: translateX(1px);
}
.focus-timer .timer-reset {
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in srgb, var(--lilac), white 10%);
  background: transparent;
  color: #bbb8ff;
  font-size: 16px;
}
.focus-timer.running {
  box-shadow: 0 0 0 3px rgb(138 131 217/0.22);
}
.timer-dots {
  grid-column: 1/-1;
  display: flex;
  gap: 6px;
}
.timer-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #555a84;
}
.timer-dots i.filled {
  background: #9a98f3;
}
.step-list {
  list-style: none;
  margin: 16px 0 0 38px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 26px;
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.45;
}
.step-list input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 2px;
  accent-color: var(--green);
}
.step-list input:checked + span {
  text-decoration: line-through;
  color: var(--muted);
}
.step-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 7px 0 0 65px;
}
.step-add input {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  padding: 7px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}
.step-add input:focus {
  border-bottom-color: var(--green);
  outline: 0;
}
.step-add button {
  min-height: 36px;
  padding: 6px 11px;
  background: transparent;
  color: var(--muted);
}
.step-add button:hover {
  color: var(--green);
  background: var(--green-soft);
}
.empty-state {
  padding: 52px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
}
.empty-state > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}
.empty-state strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
}
.empty-state p {
  margin: 6px 0 0;
  font-size: 13px;
}
.resource-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
}
.resource-form label {
  margin: 0;
}
.resource-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.resource-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
}
.resource-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.resource-card small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.resource-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 500;
}
.resource-card button,
.resource-card a {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--lilac-soft);
  color: #56518c;
  padding: 5px 8px;
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
}
.resource-card a {
  width: 30px;
  font-size: 15px;
}
.quiet-empty {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  line-height: 1.6;
}
.toast {
  position: fixed;
  inset-inline-start: 50%;
  inset-block-end: 24px;
  z-index: 30;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-size: 13px;
  box-shadow: 0 12px 34px rgb(0 0 0/0.2);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.15s ease-out,
    transform 0.15s ease-out;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .library-column {
    margin-top: 8px;
  }
  .focus-timer {
    width: 205px;
  }
  .focus-timer output {
    font-size: 22px;
  }
}
@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    min-height: 74px;
  }
  .private-state {
    display: none;
  }
  .top-actions {
    gap: 8px;
  }
  .daily-link {
    padding: 7px 10px;
  }
  main {
    padding: 42px 0 64px;
  }
  .welcome-copy {
    margin-bottom: 30px;
  }
  .world-grid,
  .area-grid {
    grid-template-columns: 1fr;
  }
  .world-card {
    min-height: 270px;
    padding: 24px;
  }
  .page-heading {
    display: block;
    margin-bottom: 30px;
  }
  .page-heading .soft-button {
    margin-top: 18px;
  }
  .area-card {
    min-height: 205px;
  }
  .area-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 34px;
  }
  .area-hero .progress-ring {
    grid-column: 1/-1;
    width: 100%;
    height: 8px;
    border-radius: 8px;
    background: linear-gradient(
      90deg,
      var(--green) calc(var(--value) * 1%),
      var(--green-soft) 0
    );
  }
  .area-hero .progress-ring:after,
  .area-hero .progress-ring span {
    display: none;
  }
  .hero-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    font-size: 24px;
  }
  .area-hero h1 {
    font-size: 2.7rem;
  }
  .quick-add > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 78px;
  }
  .quick-add button {
    grid-column: 1/-1;
  }
  .task-top {
    grid-template-columns: 26px minmax(0, 1fr);
  }
  .focus-timer {
    grid-column: 1/-1;
    width: 100%;
    margin-top: 7px;
    grid-template-columns: minmax(0, 1fr) 42px 36px;
    padding: 12px 13px 10px 16px;
  }
  .focus-timer output {
    font-size: 30px;
  }
  .focus-timer button {
    width: 42px;
    height: 42px;
  }
  .focus-timer .timer-reset {
    width: 36px;
    height: 36px;
  }
  .step-list {
    margin-inline-start: 38px;
  }
  .step-add {
    margin-inline-start: 65px;
  }
  .inline-panel > div {
    display: grid;
  }
  .inline-panel input,
  .quick-add input,
  .resource-form input,
  .resource-form select,
  .step-add input {
    font-size: 16px;
  }
  .inline-panel button {
    width: 100%;
  }
  .library-column {
    padding: 19px;
  }
  .crumbs {
    margin-bottom: 24px;
  }
}

/* Daylight companion */
.ai-companion-wrap {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: max(24px, env(safe-area-inset-bottom));
}
.ai-companion {
  width: 62px;
  height: 62px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid oklch(1 0 0 / 0.7);
  border-radius: 48% 52% 46% 54%;
  background: var(--green);
  color: white;
  box-shadow: 0 14px 34px oklch(0.3 0.05 145 / 0.24);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.ai-companion:active { cursor: grabbing; }
.buddy-leaf {
  position: absolute;
  width: 22px;
  height: 13px;
  top: -6px;
  right: 6px;
  border-radius: 100% 0 100% 0;
  background: var(--sun);
  rotate: -17deg;
}
.buddy-face {
  width: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  place-items: center;
}
.buddy-face i {
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: white;
}
.buddy-face b {
  grid-column: 1 / -1;
  width: 15px;
  height: 7px;
  margin-top: 1px;
  border: 2px solid white;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}
.ai-companion-panel {
  position: fixed;
  right: 0;
  bottom: 76px;
  width: min(420px, calc(100vw - 28px));
  height: min(660px, calc(100vh - 118px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  box-shadow: 0 28px 80px oklch(0.25 0.04 140 / 0.24);
}
.ai-companion-panel[hidden] { display: none; }
.ai-companion-panel > header {
  height: 56px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 17px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.ai-companion-panel > header strong { font-size: 14px; }
.ai-companion-panel > header span { color: var(--muted); font-size: 12px; }
.ai-companion-panel > header button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
}
.ai-companion-panel iframe {
  width: 100%;
  height: calc(100% - 56px);
  display: block;
  border: 0;
  background: var(--bg);
}
.record-retry {
  border-color: color-mix(in oklch, var(--clay) 55%, var(--line)) !important;
  color: oklch(0.48 0.1 38) !important;
}
.home-date {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 680;
}
.welcome-copy > p:last-child { margin-bottom: 0; }

@media (max-width: 620px) {
  body { padding-bottom: 0; }
  .app-shell { width: calc(100% - 24px); }
  .topbar { min-height: 64px; }
  main { padding: 24px 0 96px; }
  .welcome-copy { margin-bottom: 20px; }
  .welcome-copy h1 { margin-bottom: 8px; font-size: 2.75rem; }
  .welcome-copy > p:last-child { font-size: 14px; }
  .world-grid { gap: 12px; }
  .world-card,
  .world-business {
    min-height: 205px;
    padding: 20px;
    border-radius: 23px;
  }
  .world-card::after { inset: 8px; border-radius: 17px; }
  .world-art { width: 172px; inset-block-start: -4px; inset-inline-end: -2px; }
  .world-copy strong { font-size: 2.55rem; }
  .world-copy em { margin-top: 6px; }
  .world-foot {
    max-width: 100%;
    margin-top: 18px;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .world-foot b { margin-left: auto; }
  .daily-quote { margin-top: 20px; padding: 14px 42px 8px 4px; }
  .daily-quote blockquote { font-size: 15px; line-height: 1.45; }
  .ai-companion-wrap { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .ai-companion { width: 58px; height: 58px; }
  .ai-companion-panel {
    position: fixed;
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    border-radius: 22px;
  }
  .ai-companion-wrap.open .ai-companion { display: none; }
  .capture-actions { flex-wrap: wrap; }
  .capture-actions .capture-plan { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-companion,
  .ai-companion-panel { transition: none; }
}
@media (display-mode: standalone) {
  body { padding-top: env(safe-area-inset-top); }
  .topbar { min-height: 62px; }
}
@media (max-width: 350px) {
  .brand > span:last-child {
    display: none;
  }
  .app-shell {
    width: calc(100% - 20px);
  }
  .world-card {
    min-height: 250px;
  }
  .step-add {
    margin-inline-start: 38px;
  }
  .focus-card {
    padding: 14px;
  }
  .area-card {
    padding: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .world-card,
  .area-card,
  .toast {
    transition: none;
  }
  .world-card:hover,
  .area-card:hover {
    translate: none;
  }
}
.daily-quote {
  position: relative;
  max-width: 640px;
  margin: 46px auto 0;
  padding: 22px 58px 18px 24px;
  border-left: 2px solid var(--lilac);
  color: var(--muted);
}
.daily-quote blockquote {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
}
.daily-quote figcaption {
  font-size: 11px;
}
.daily-quote button {
  position: absolute;
  right: 14px;
  top: 18px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.daily-quote button:hover {
  background: var(--paper);
  color: var(--ink);
}
.thoughts-area-card {
  background: linear-gradient(145deg, #f2ecff, #fff9ec);
}
.thoughts-area-card .area-icon {
  background: #fff2bd;
  color: #8a6814;
}
.thought-orbit {
  margin: 20px 0 14px;
  color: var(--lilac);
  font:
    10px/1.4 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  letter-spacing: 0.06em;
}
.thoughts-page {
  width: min(780px, 100%);
  margin: 0 auto;
}
.thoughts-heading {
  margin: 48px 0 28px;
}
.thoughts-heading h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.3rem);
}
.thought-card {
  padding: clamp(26px, 6vw, 54px);
  border: 1px solid #ded4f1;
  border-radius: 28px;
  background: linear-gradient(145deg, #f0eaff, #fffaf0 72%);
  box-shadow: var(--shadow);
}
.thought-theme {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.6);
  color: #6f64bd;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.thought-card > p {
  margin: 28px 0 34px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.thought-practice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.62);
}
.thought-practice > span {
  color: #b08113;
  font-size: 22px;
}
.thought-practice small,
.thought-practice strong {
  display: block;
}
.thought-practice small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.thought-practice strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 500;
}
.thought-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  padding: 0;
  border: 0;
}
.thought-card cite {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}
.thought-card footer button {
  border: 0;
  background: transparent;
  color: #6256b2;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.reflection-card {
  margin-top: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.reflection-card label {
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}
.reflection-card textarea {
  width: 100%;
  min-height: 120px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font:
    15px/1.55 Georgia,
    "Times New Roman",
    serif;
  resize: vertical;
}
.reflection-card > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
}
.past-reflections {
  margin-top: 20px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.past-reflections summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.past-reflections article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.past-reflections time {
  color: var(--muted);
  font-size: 11px;
}
.past-reflections p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
}
@media (max-width: 600px) {
  .thoughts-heading {
    margin-top: 30px;
  }
  .thought-card footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .thought-card footer button {
    padding-left: 0;
  }
}

/* Daylight garden */
::selection {
  background: var(--green-soft);
  color: var(--ink);
}
.topbar {
  min-height: 76px;
  border: 0;
}
.brand {
  font-size: 18px;
}
.brand-mark {
  border-radius: 50% 48% 45% 52%;
  background: var(--green);
}
.daily-link,
.soft-button {
  border-color: transparent;
  background: var(--paper);
  box-shadow: 0 5px 18px oklch(0.3 0.03 140 / 0.06);
}
main {
  padding-block: 52px 88px;
}
.welcome {
  max-width: 1060px;
}
.welcome-copy {
  margin-bottom: 28px;
}
.welcome-copy h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  letter-spacing: -0.035em;
}
.world-grid {
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
}
.world-card {
  position: relative;
  min-height: 390px;
  padding: 30px;
  isolation: isolate;
}
.world-personal {
  background: oklch(0.88 0.06 145);
  color: oklch(0.3 0.06 145);
}
.world-business {
  background: oklch(0.9 0.055 305);
  color: oklch(0.31 0.055 305);
}
.world-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid oklch(1 0 0 / 0.38);
  border-radius: 22px;
  pointer-events: none;
}
.world-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
}
.world-copy strong {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}
.world-copy em {
  margin-top: 10px;
  font-size: 13px;
  font-style: normal;
  opacity: 0.76;
}
.world-foot {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  opacity: 0.72;
}
.world-art {
  position: absolute;
  z-index: 1;
  inset-block-start: 8px;
  inset-inline-end: 8px;
  width: min(72%, 330px);
  height: auto;
  overflow: visible;
}
.art-sun {
  fill: var(--sun);
  opacity: 0.88;
}
.art-line,
.art-stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0.62;
}
.art-leaf {
  fill: var(--green);
  opacity: 0.64;
}
.art-leaf.pale {
  fill: oklch(0.76 0.09 150);
}
.art-leaf.warm {
  fill: var(--clay);
}
.art-dot {
  fill: currentColor;
  opacity: 0.35;
}
.art-window {
  fill: oklch(0.97 0.025 230);
  stroke: oklch(0.72 0.05 305);
  stroke-width: 1.5;
}
.art-pot {
  fill: var(--clay);
  opacity: 0.8;
}
.daily-quote {
  margin-top: 36px;
  padding: 20px 54px 12px 8px;
  border: 0;
}
.daily-quote::before {
  content: "❧";
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 20px;
}
.daily-quote blockquote {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
.space-page {
  max-width: 980px;
  margin-inline: auto;
}
.space-page .crumbs {
  margin-bottom: 20px;
}
.space-page .page-heading {
  position: relative;
  min-height: 250px;
  align-items: center;
  margin-bottom: 34px;
  padding: 36px 42px;
  overflow: hidden;
  border-radius: 28px;
}
.space-personal .page-heading {
  background: oklch(0.9 0.045 145);
}
.space-business .page-heading {
  background: oklch(0.92 0.04 305);
}
.page-heading > div {
  position: relative;
  z-index: 2;
}
.page-heading h1 {
  margin-bottom: 6px;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
  letter-spacing: -0.035em;
}
.page-heading p {
  margin-bottom: 22px;
}
.space-art {
  position: absolute;
  inset-inline-end: 18px;
  inset-block-start: 0;
  width: 330px;
  max-width: 48%;
  height: auto;
  opacity: 0.9;
}
.area-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.area-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding: 18px 20px;
  border-color: transparent;
  border-radius: 18px;
  background: oklch(0.995 0.003 130 / 0.72);
  box-shadow: none;
}
.area-card:hover {
  translate: 0 -1px;
  border-color: var(--line);
  box-shadow: 0 10px 28px oklch(0.3 0.03 140 / 0.06);
}
.area-icon {
  grid-row: 1 / -1;
  width: 40px;
  height: 40px;
  margin: 0;
  border-radius: 50%;
}
.area-title {
  margin: 0;
}
.area-title strong,
.add-area-card strong {
  font-size: 19px;
}
.area-title small {
  margin-top: 2px;
}
.area-meta {
  grid-column: 2 / -1;
  justify-content: space-between;
}
.mini-progress,
.thought-orbit {
  display: none;
}
.add-area-card {
  display: flex;
  min-height: 118px;
  justify-content: flex-start;
  border: 1px dashed var(--line);
  background: transparent;
}
.add-area-card .area-icon {
  margin: 0;
}
.area-hero {
  padding-bottom: 20px;
}
.area-hero h1 {
  letter-spacing: -0.03em;
}
.focus-column,
.library-column {
  border-radius: 22px;
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: 22px;
}
.empty-state {
  min-height: 130px;
}
.thought-card > p,
.reflection-card label {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    min-height: 68px;
  }
  main {
    padding-block: 38px 70px;
  }
  .welcome-copy h1 {
    font-size: 3.15rem;
  }
  .world-grid {
    grid-template-columns: 1fr;
  }
  .world-card {
    min-height: 310px;
    padding: 24px;
  }
  .world-business {
    min-height: 285px;
  }
  .world-art {
    width: 245px;
  }
  .world-copy strong {
    font-size: 3.2rem;
  }
  .space-page .page-heading {
    min-height: 210px;
    padding: 28px 24px;
  }
  .space-art {
    inset-inline-end: -26px;
    max-width: 58%;
    opacity: 0.55;
  }
  .area-grid {
    grid-template-columns: 1fr;
  }
  .area-card {
    min-height: 104px;
  }
}
.vector-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-icon {
  overflow: hidden;
  background: white;
}
.brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.area-card.branded-area {
  grid-template-columns: 96px minmax(0, 1fr) auto;
}
.area-card .brand-icon {
  width: 90px;
  height: 44px;
  padding: 7px;
  border-radius: 11px;
}
.area-card .nv-icon img {
  width: 38px;
  margin-inline: auto;
}
.hero-icon.brand-icon {
  padding: 10px;
}
.hero-icon.cilovia-icon {
  width: 132px;
  padding: 14px;
}
@media (max-width: 520px) {
  .area-card.branded-area {
    grid-template-columns: 68px minmax(0, 1fr) auto;
  }
  .area-card .brand-icon {
    width: 64px;
    height: 40px;
    padding: 6px;
  }
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.account-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(0.98 0.015 135);
  color: var(--ink-soft);
}
.file-drop {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 150px;
  margin-bottom: 14px;
  padding: 22px;
  border: 1.5px dashed oklch(0.69 0.065 140);
  border-radius: 18px;
  background: oklch(0.965 0.025 135 / 0.65);
  text-align: center;
  cursor: pointer;
  transition: 160ms ease;
}
.file-drop:hover,
.file-drop.dragging {
  border-color: var(--green);
  background: oklch(0.94 0.045 135);
  transform: translateY(-1px);
}
.file-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.file-drop .drop-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 22px;
}
.file-drop strong {
  font-size: 15px;
}
.file-drop small {
  color: var(--ink-soft);
}
.file-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: oklch(0.99 0.006 130);
}
.file-card > span {
  color: var(--green);
  font-size: 20px;
}
.file-card div {
  min-width: 0;
  display: grid;
}
.file-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.file-card small {
  color: var(--ink-soft);
}
.file-card:has(.file-preview) {
  align-items: start;
  flex-direction: column;
}
.file-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: oklch(0.94 0.018 135);
  color: var(--ink-soft);
  font-size: 12px;
}
.file-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.account-dialog {
  width: min(92vw, 440px);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: oklch(0.98 0.016 125);
  color: var(--ink);
  box-shadow: 0 28px 80px oklch(0.25 0.03 140 / 0.2);
}
.account-dialog::backdrop {
  background: oklch(0.25 0.03 140 / 0.32);
  backdrop-filter: blur(4px);
}
.account-dialog h2 {
  margin: 5px 0 8px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 32px;
}
.account-dialog > p {
  color: var(--ink-soft);
  line-height: 1.5;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
}
.account-dialog form,
.account-dialog label {
  display: grid;
  gap: 7px;
}
.account-dialog form {
  gap: 12px;
  margin-top: 20px;
}
.account-dialog input,
.account-dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.account-dialog button[type="submit"] {
  min-height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: white;
}
.access-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.access-divider::before,
.access-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
@media (max-width: 620px) {
  .account-button {
    padding: 0 10px;
    font-size: 12px;
  }
  .daily-link {
    display: none;
  }
}

/* Area workspace: one calm path from intention to material to action. */
.area-page {
  max-width: 900px;
  margin-inline: auto;
}
.area-hero {
  margin-bottom: 28px;
}
.area-stack {
  border-top: 1px solid var(--line);
}
.area-section {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.area-section .section-head {
  align-items: center;
  margin-bottom: 16px;
}
.area-section .section-head h2 {
  font-family: inherit;
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.project-capture {
  padding: 14px 16px;
  margin: 4px 0 10px;
  border: 1px solid color-mix(in oklch, var(--green) 20%, var(--line));
  border-radius: 16px;
  background: color-mix(in oklch, var(--pale-green) 30%, white);
}
.project-capture .section-head {
  align-items: center;
  margin-bottom: 8px;
}
.project-capture .section-head h2 {
  font-size: 16px;
}
.project-capture .section-head > span,
.capture-status {
  color: var(--muted);
  font-size: 12px;
}
.project-capture textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: oklch(1 0 0 / 0.78);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}
.capture-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.capture-actions button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--green);
  font-weight: 720;
}
.capture-actions .capture-plan {
  border-color: var(--green);
  background: var(--green);
  color: white;
}
.record-button span { color: #c76b5b; }
.capture-status:empty { display: none; }
.capture-status { min-height: 18px; margin: 7px 2px 0; }
.project-history {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.project-history > summary {
  display: flex;
  justify-content: space-between;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-weight: 700;
}
.capture-history-item {
  padding: 14px 3px;
  border-bottom: 1px solid var(--line);
}
.capture-history-item time,
.capture-history-item small { color: var(--muted); font-size: 12px; }
.capture-history-item p { margin: 5px 0; white-space: pre-wrap; }
.section-empty {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 14px;
}
.goal-list {
  display: grid;
  gap: 3px;
}
.goal-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 7px 3px;
  border-bottom: 1px solid color-mix(in oklch, var(--line) 60%, transparent);
  cursor: pointer;
}
.goal-row input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
}
.goal-row:has(input:checked) span {
  color: var(--muted);
  text-decoration: line-through;
}
.line-add {
  display: flex;
  gap: 9px;
  margin-top: 12px;
}
.line-add input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(1 0 0 / 0.72);
  color: var(--ink);
}
.line-add button {
  min-width: 66px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: white;
  font-weight: 700;
}
.asset-add {
  margin-bottom: 14px;
}
.asset-add > summary {
  width: fit-content;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  background: oklch(1 0 0 / 0.55);
  font-weight: 720;
  cursor: pointer;
  list-style: none;
}
.asset-add > summary::-webkit-details-marker {
  display: none;
}
.asset-add > summary::before {
  content: "+";
  font-size: 19px;
  font-weight: 500;
}
.asset-add[open] > summary::before {
  content: "−";
}
.asset-add > .asset-tools {
  margin-top: 14px;
}
.asset-tools {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: 16px;
  align-items: stretch;
}
.asset-tools .file-drop {
  min-height: 168px;
  margin: 0;
}
.asset-tools .resource-form {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: oklch(1 0 0 / 0.48);
}
.asset-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.asset-list .resource-card,
.asset-list .file-card {
  margin: 0;
  box-shadow: none;
}
.tasks-section .quick-add {
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.tasks-section .quick-add > div {
  max-width: 660px;
}
.task-empty {
  padding: 24px 0;
}
.tasks-section .focus-card {
  border: 0;
  border-bottom: 1px solid color-mix(in oklch, var(--green) 16%, transparent);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 13px 0 14px;
}
.tasks-section {
  position: relative;
  margin-top: 24px;
  padding: 26px 28px 30px 72px;
  border: 1px solid color-mix(in oklch, var(--green) 18%, var(--line));
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 46px, oklch(0.76 0.075 28 / 0.28) 46px 47px, transparent 47px),
    repeating-linear-gradient(to bottom, oklch(0.995 0.006 130) 0 37px, oklch(0.88 0.025 150 / 0.45) 37px 38px);
  box-shadow: 0 12px 30px oklch(0.35 0.03 140 / 0.05);
}
.tasks-section .task-list { gap: 0; }
.tasks-section .task-name h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}
.tasks-section .main-check span {
  border-radius: 50%;
  background: oklch(1 0 0 / 0.78);
}
.tasks-section .focus-timer {
  width: 172px;
  grid-template-columns: minmax(0, 1fr) 32px 28px;
  padding: 7px 8px 6px 12px;
  border-radius: 12px;
}
.tasks-section .focus-timer output { font-size: 19px; }
.tasks-section .focus-timer button { width: 30px; height: 30px; border-radius: 9px; }
.tasks-section .focus-timer .timer-reset { width: 28px; height: 28px; }
.tasks-section .step-list,
.tasks-section .step-add { margin-left: 38px; }

.personal-recommendations {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.personal-recommendations .section-head { margin-bottom: 12px; }
.personal-recommendations .section-head h2 {
  font: 700 20px/1.2 inherit;
  letter-spacing: -0.015em;
}
.recommendation-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.recommendation-list > * {
  min-width: 0;
  padding: 18px 20px 20px 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.recommendation-list > * + * { padding-left: 20px; }
.recommendation-list > *:last-child { border-right: 0; }
.recommendation-list small,
.recommendation-list strong,
.recommendation-list span { display: block; }
.recommendation-list small { margin-bottom: 7px; color: var(--green); font-size: 12px; font-weight: 750; }
.recommendation-list strong { margin-bottom: 5px; font-size: 16px; }
.recommendation-list span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.recommendation-list > *:hover strong { color: var(--green); }

.personal-area-page { max-width: 800px; }
.personal-area-hero { margin-bottom: 20px; }
.personal-voice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 10px 2px 18px;
  border-bottom: 1px solid var(--line);
}
.personal-record-button {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in oklch, var(--green) 32%, var(--line));
  border-radius: 50%;
  background: color-mix(in oklch, var(--pale-green) 55%, white);
  color: #a65347;
  font-size: 18px;
  cursor: pointer;
  transition: background 180ms ease-out, transform 180ms ease-out;
}
.personal-record-button:hover { background: var(--pale-green); }
.personal-record-button:active { transform: scale(.96); }
.personal-record-button.recording { background: #f3d7d1; color: #7e302a; }
.personal-voice > div { min-width: 0; flex: 1; }
.personal-voice strong,
.personal-voice > div > span { display: block; }
.personal-voice strong { font-size: 15px; }
.personal-voice > div > span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.personal-voice .capture-status { margin: 4px 0 0; min-height: 0; }
.personal-voice .record-retry {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--green);
  font-weight: 700;
}
.personal-workspace { border-top: 0; }
.personal-goals { padding-bottom: 14px; }
.personal-notebook { margin-top: 8px; }
@media (max-width: 720px) {
  .area-page {
    width: 100%;
  }
  .area-hero {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
  }
  .area-hero .progress-ring {
    grid-column: 1 / -1;
    width: 100%;
    height: 6px;
    display: block;
    border-radius: 999px;
  }
  .area-hero .progress-ring:after,
  .area-hero .progress-ring span {
    display: none;
  }
  .asset-tools {
    grid-template-columns: 1fr;
  }
  .area-section {
    padding-block: 24px;
  }
  .project-capture { padding: 13px; }
  .project-capture .section-head { align-items: start; }
  .capture-actions button { flex: 1; }
  .tasks-section {
    padding: 22px 14px 24px 44px;
    background:
      linear-gradient(90deg, transparent 0 28px, oklch(0.76 0.075 28 / 0.28) 28px 29px, transparent 29px),
      repeating-linear-gradient(to bottom, oklch(0.995 0.006 130) 0 37px, oklch(0.88 0.025 150 / 0.45) 37px 38px);
  }
  .recommendation-list {
    grid-template-columns: 1fr;
  }
  .recommendation-list > * {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .recommendation-list > * + * { padding-left: 0; }
  .recommendation-list > *:last-child { border-bottom: 0; }
  .personal-area-page .area-hero .progress-ring { display: none; }
  .personal-voice { padding-top: 2px; }
}
.mobile-nav {
  display: none;
}

.rest-page {
  width: min(100%, 760px);
  margin-inline: auto;
  padding-bottom: 70px;
}
.rest-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 26px;
}
.rest-heading h1 {
  margin: 0;
  font: 500 clamp(44px, 8vw, 72px)/0.95 var(--serif);
}
.rest-heading p { margin: 8px 0 0; color: var(--muted); }
.rest-moon {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: oklch(0.91 0.055 145);
  overflow: hidden;
}
.rest-moon i {
  display: block;
  width: 65px;
  height: 65px;
  margin: -7px 0 0 24px;
  border-radius: 50%;
  background: var(--bg);
}
.rest-icon { position: relative; overflow: hidden; background: oklch(0.91 0.055 145); }
.rest-icon i {
  width: 28px;
  height: 28px;
  display: block;
  margin: -5px 0 0 10px;
  border-radius: 50%;
  background: white;
}
.rest-player {
  padding: 24px;
  border: 1px solid oklch(0.84 0.035 135);
  border-radius: 30px;
  background: linear-gradient(145deg, oklch(0.965 0.025 135), oklch(0.93 0.055 154));
  box-shadow: 0 20px 50px oklch(0.38 0.04 145 / 0.09);
  text-align: center;
}
.rest-presets { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.rest-presets button,
.rest-controls button {
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid oklch(0.78 0.04 145);
  border-radius: 999px;
  background: oklch(0.99 0.008 120 / 0.8);
  color: var(--ink);
}
.rest-presets button.active { background: var(--green); border-color: var(--green); color: white; }
.rest-player output {
  display: block;
  margin: 22px 0 16px;
  font: 500 clamp(58px, 14vw, 94px)/1 var(--serif);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.rest-controls { display: flex; justify-content: center; align-items: center; gap: 10px; }
.rest-controls .rest-play {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  background: var(--green);
  color: white;
  font-size: 20px;
}
.rest-section {
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}
.rest-section .section-head { margin-bottom: 12px; }
.rest-section .section-head h2 { font: 500 29px/1.1 var(--serif); }
.sound-list { display: grid; gap: 8px; }
.sound-list button {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: oklch(0.99 0.007 120);
  color: var(--ink);
  text-align: left;
}
.sound-list button > i {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: oklch(0.92 0.05 145);
  color: var(--green);
  font-style: normal;
}
.sound-list button span { display: grid; gap: 3px; }
.sound-list button small { color: var(--muted); }
.sound-list button b { color: var(--green); font-size: 13px; }
.sound-list button.playing { border-color: oklch(0.7 0.08 145); background: oklch(0.97 0.026 145); }
.sound-credit { margin-top: 12px; color: var(--muted); font-size: 12px; }
.sound-credit summary { cursor: pointer; }
.rest-tracker ul {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 18px 0 10px;
  padding: 0;
  list-style: none;
}
.rest-tracker li { display: grid; justify-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.rest-tracker li i { width: 14px; height: 14px; border-radius: 50%; background: oklch(0.89 0.015 145); }
.rest-tracker li.rested i { background: var(--green); box-shadow: 0 0 0 5px oklch(0.9 0.05 145); }
.rest-tracker > p { margin: 16px 0 0; color: var(--muted); font-size: 13px; }
.rest-picks a {
  display: grid;
  gap: 4px;
  padding: 14px 4px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.rest-picks a span { color: var(--muted); font-size: 14px; }
.rest-picks a:hover strong { color: var(--green); }
@media (max-width: 620px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .app-shell {
    width: min(100% - 28px, 1180px);
  }
  main {
    padding-bottom: 48px;
  }
  .top-actions {
    gap: 6px;
  }
  .account-button {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-nav {
    position: fixed;
    z-index: 15;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    inset: auto 0 0;
    padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: oklch(0.995 0.008 130 / 0.96);
    backdrop-filter: blur(18px);
  }
  .mobile-nav a {
    min-height: 44px;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
  }
  .mobile-nav a.active {
    color: var(--green);
  }
  .rest-page { padding-top: 2px; }
  .rest-heading { margin: 22px 0 18px; }
  .rest-moon { width: 58px; height: 58px; }
  .rest-player { padding: 18px 12px; border-radius: 24px; }
  .rest-player output { margin-block: 20px 14px; }
  .rest-presets { flex-wrap: nowrap; overflow-x: auto; justify-content: start; scrollbar-width: none; }
  .rest-presets button { flex: 0 0 auto; }
}
