:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #68746c;
  --paper: #f5f3eb;
  --card: #fffef9;
  --line: #dfe3dc;
  --accent: #185c44;
  --accent-soft: #dcebe3;
  --warm: #ed9e55;
  --danger: #a53d35;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  height: 72px; padding: 0 clamp(20px, 5vw, 72px); display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid rgba(23, 33, 27, .1); background: rgba(245, 243, 235, .92);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
}
.brand { color: var(--ink); display: flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: var(--accent); }
main { width: min(1320px, calc(100% - 40px)); margin: 0 auto; }

.button { border: 0; border-radius: 12px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent); color: white; box-shadow: 0 8px 24px rgba(24, 92, 68, .18); }
.button-primary:hover { background: #104b36; }
.button-quiet { color: var(--ink); background: transparent; border: 1px solid var(--line); }

.login-view { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: center; gap: 8vw; padding: 70px 5vw; }
.login-copy { max-width: 690px; }
.eyebrow { color: var(--accent); font-size: .74rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 10px; text-transform: uppercase; }
.login-copy h1, .page-heading h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .92; letter-spacing: -.055em; margin: 0; font-weight: 500; }
.login-copy > p:not(.eyebrow, .message) { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.6; max-width: 590px; margin: 30px 0; }
.login-art { min-height: 520px; position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 42% 58% 45% 55% / 58% 40% 60% 42%; background: var(--accent-soft); }
.orbit { position: absolute; border: 1px solid rgba(24, 92, 68, .25); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; }
.orbit-two { width: 300px; height: 300px; }
.check-card { width: 230px; padding: 28px; z-index: 2; display: grid; gap: 8px; border-radius: 24px; background: var(--card); box-shadow: 0 30px 80px rgba(43, 67, 53, .18); transform: rotate(-3deg); }
.check-card span { color: white; background: var(--warm); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; font-size: 1.5rem; margin-bottom: 22px; }
.check-card strong { font-size: 1.15rem; }.check-card small { color: var(--muted); }

.app-view { padding: 64px 0 100px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.page-heading h1 { font-size: clamp(3rem, 6vw, 5.8rem); }
.page-heading > div > p:last-child { color: var(--muted); margin: 18px 0 0; font-size: 1.08rem; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 40px); box-shadow: 0 14px 40px rgba(41, 55, 46, .07); }
.task-form-panel { margin-bottom: 50px; }
.panel-heading, .section-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
h2, h3 { letter-spacing: -.025em; } h2 { font-size: 1.55rem; margin: 0; } h3 { margin: 8px 0; font-size: 1.15rem; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.5rem; }
.task-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.field { display: grid; gap: 8px; color: #344139; font-size: .85rem; font-weight: 700; }
.field-wide { grid-column: span 2; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cfd5ce; background: #fff; border-radius: 11px; padding: 12px 13px; color: var(--ink); outline: none; font-weight: 450; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24, 92, 68, .12); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.message { color: var(--muted); font-size: .9rem; }.message-error { color: var(--danger); }.message-success { color: var(--accent); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(28px, 5vw, 68px); }
.content-section { min-width: 0; }
.section-heading { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 18px; }
.count-badge { background: var(--accent-soft); color: var(--accent); border-radius: 99px; min-width: 34px; padding: 7px 10px; text-align: center; font-weight: 800; }
.card-list { display: grid; gap: 14px; }
.task-card, .goal-card, .empty-state { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.task-card { transition: border .18s ease, transform .18s ease; }.task-card:hover { border-color: #bdc8bf; transform: translateY(-2px); }
.task-card-current { background: #f8fbf8; border-color: #bed3c6; }
.task-card-header, .task-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.task-project, .task-priority, .task-meta span { padding: 5px 8px; border-radius: 7px; background: #f0f1ec; font-size: .73rem; color: #59655d; }
.task-priority { margin-left: auto; background: #fff0df; color: #8b5424; }
.task-description, .goal-description, .empty-state p { color: var(--muted); line-height: 1.5; margin: 7px 0 16px; }
.task-meta { margin-top: 18px; }.task-meta .status { color: var(--accent); background: var(--accent-soft); }
.goal-card { padding: 24px; }.goal-card > h3 { font-size: 1.35rem; }.current-label { color: var(--muted); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; margin: 24px 0 10px; }
.goal-current-tasks { display: grid; gap: 10px; }.goal-current-tasks .task-card { padding: 16px; }
.empty-state { text-align: center; padding: 42px 24px; border-style: dashed; }.empty-state p { margin-bottom: 0; }

[hidden] { display: none !important; }
@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr; padding: 50px 0; }.login-art { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }.task-form { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  main { width: min(100% - 28px, 1320px); }.topbar { padding: 0 14px; }.app-view { padding-top: 38px; }
  .page-heading { align-items: stretch; flex-direction: column; }.page-heading .button { width: 100%; }
  .task-form { grid-template-columns: 1fr; }.field-wide { grid-column: span 1; }.form-actions { align-items: stretch; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
