:root {
  color-scheme: light;
  --bg: #f4f1ea;
  --panel: #fffdf8;
  --panel-strong: #f9f5ec;
  --ink: #24231f;
  --muted: #746f63;
  --soft: #cfc6b8;
  --line: rgba(36, 35, 31, 0.12);
  --accent: #2f6f63;
  --accent-dark: #204d45;
  --blue: #3f5f87;
  --red: #a64f3d;
  --yellow: #ba7b2d;
  --shadow: 0 18px 48px rgba(48, 43, 35, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.74) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.62) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 100vh;
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.74);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 45%, rgba(255, 255, 255, 0.7) 46% 53%, transparent 54%),
    var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.brand-title,
.brand-subtitle,
.small-label,
.sync-copy,
.topbar p,
.section-heading p,
.summary-tile p,
.summary-tile span,
.suggestion p,
.task-row p,
.capture-form span,
.window-row span {
  margin: 0;
}

.brand-title {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.nav {
  display: grid;
  gap: 5px;
}

.nav-item {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 650;
}

.nav-item.active,
.nav-item:hover {
  background: #ebe4d8;
  color: var(--ink);
}

.sync-panel {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 241, 234, 0.78);
}

.small-label {
  font-size: 11px;
  font-weight: 760;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0;
}

.sync-copy {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.workspace {
  min-width: 0;
  padding: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
  line-height: 1.2;
}

h3 {
  font-size: 15px;
  line-height: 1.25;
}

.topbar p,
.section-heading p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 720px;
}

.topbar p {
  margin-top: 8px;
}

.date-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.date-control input,
.capture-form input,
.capture-form select {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 11px;
  font-size: 14px;
  outline: none;
}

.date-control input:focus,
.capture-form input:focus,
.capture-form select:focus {
  border-color: rgba(47, 111, 99, 0.55);
  box-shadow: 0 0 0 3px rgba(47, 111, 99, 0.14);
}

.icon-button,
.check-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

.icon-button svg,
.check-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-tile {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.86);
}

.summary-tile p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.summary-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
}

.summary-tile span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.75fr);
  gap: 18px;
}

.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 18px;
}

.planner-band,
.assistant-rail,
.task-panel,
.capture-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow);
}

.planner-band,
.task-panel {
  padding: 18px;
}

.assistant-rail,
.capture-panel {
  padding: 16px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 12px;
}

.quiet-button,
.secondary-button,
.text-button,
.primary-button {
  border-radius: 7px;
  min-height: 38px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 720;
}

.quiet-button,
.text-button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.secondary-button {
  border: 1px solid rgba(47, 111, 99, 0.24);
  background: rgba(47, 111, 99, 0.08);
  color: var(--accent-dark);
}

.primary-button {
  width: 100%;
  border: 0;
  background: var(--accent);
  color: #fffdf8;
}

.timeline {
  display: grid;
  gap: 10px;
}

.time-axis {
  position: relative;
  height: 18px;
  color: var(--muted);
  font-size: 12px;
}

.time-axis span {
  position: absolute;
  transform: translateX(-50%);
}

.timeline-track {
  position: relative;
  height: 246px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(36, 35, 31, 0.06) 0 1px, transparent 1px 100%),
    var(--panel-strong);
  background-size: calc(100% / 9.5) 100%;
}

.block {
  position: absolute;
  top: 28px;
  min-width: 58px;
  height: 74px;
  border: 0;
  border-radius: 7px;
  padding: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 10px 28px rgba(36, 35, 31, 0.14);
}

.block:nth-child(2n) {
  top: 114px;
}

.block:nth-child(3n) {
  top: 164px;
}

.block strong,
.block span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.block strong {
  font-size: 13px;
  line-height: 1.25;
}

.block span {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.76;
}

.block.task {
  background: #d8e7df;
  color: #183d36;
}

.block.commitment {
  background: #dfe5ee;
  color: #203651;
}

.window-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.window-row span {
  padding: 6px 9px;
  border-radius: 7px;
  background: rgba(47, 111, 99, 0.08);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
}

.suggestion-list,
.task-list {
  display: grid;
  gap: 10px;
}

.suggestion,
.task-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.suggestion {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.suggestion p,
.task-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.suggestion.warning {
  border-color: rgba(166, 79, 61, 0.28);
  background: #fff6f1;
}

.suggestion.question {
  border-color: rgba(186, 123, 45, 0.3);
  background: #fff8ea;
}

.suggestion.nudge {
  border-color: rgba(63, 95, 135, 0.24);
  background: #f4f7fb;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
}

.task-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.check-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--accent);
}

.task-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.blocker-line {
  color: var(--yellow) !important;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.capture-form {
  display: grid;
  gap: 12px;
}

.capture-form label {
  display: grid;
  gap: 6px;
}

.capture-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 1080px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .side {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

  .sync-panel {
    display: none;
  }

  .content-grid,
  .bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .workspace {
    padding: 18px;
  }

  .topbar,
  .section-heading,
  .task-row {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 28px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .date-control,
  .task-actions {
    width: 100%;
  }

  .date-control input {
    flex: 1;
    min-width: 0;
  }

  .nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-track {
    height: 320px;
  }

  .block {
    top: 24px;
  }

  .block:nth-child(2n) {
    top: 118px;
  }

  .block:nth-child(3n) {
    top: 212px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
