:root {
  --bg:#f5f7f3;
  --paper:#fff;
  --ink:#20362c;
  --muted:#728078;
  --green:#2a6049;
  --pale:#edf4e7;
  --line:#e4e9e1;
  --blue:#547d9a;
  --amber:#b27a33;
  --danger:#a14336;
  --sidebar:238px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  font-size:15px;
  background:var(--bg);
  font-synthesis:none;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
}

button,input,select,textarea {
  font:inherit;
}

button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:wait;
  opacity:.55;
}

button:focus-visible,a:focus-visible {
  outline:3px solid #a8c4ad;
  outline-offset:3px;
}

button {
  color:inherit;
}

a {
  color:var(--green);
}

svg {
  width:22px;
  height:22px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:37px;
  font-weight:600;
  letter-spacing:-1.3px;
  line-height:1.15;
}

h2 {
  font-size:20px;
  font-weight:600;
  letter-spacing:-.4px;
}

h3 {
  font-size:16px;
  font-weight:600;
  line-height:1.45;
}

small {
  font-size:12px;
}

button {
  border:0;
  background:none;
}

input,select,textarea {
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:12px 13px;
  background:#fff;
  color:var(--ink);
  min-height:45px;
}

input:focus,select:focus,textarea:focus {
  outline:2px solid #b7ceba;
  border-color:transparent;
}

textarea {
  resize:vertical;
  min-height:94px;
}

label {
  font-size:13px;
  font-weight:500;
  display:grid;
  gap:8px;
}

label small {
  font-weight:400;
  color:var(--muted);
  line-height:1.5;
}

.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.form-stack {
  display:grid;
  gap:20px;
}

.muted {
  color:var(--muted);
}

.eyebrow {
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:1.8px;
  font-weight:650;
  color:var(--muted);
}

.brand {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:21px;
  font-weight:600;
  letter-spacing:-.7px;
}

.brand-mark {
  display:flex;
  align-items:center;
  justify-content:center;
  width:39px;
  height:39px;
  border-radius:13px;
  background:var(--green);
  color:white;
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:600;
  letter-spacing:-4px;
  padding-right:3px;
}

.brand-mark span {
  color:#d6e7b2;
}

.sidebar {
  width:var(--sidebar);
  height:100dvh;
  position:fixed;
  top:0;
  left:0;
  display:flex;
  flex-direction:column;
  padding:32px 22px;
  background:#fff;
  border-right:1px solid var(--line);
  z-index:20;
}

.sidebar .brand {
  padding:0 10px;
}

.nav {
  display:grid;
  gap:7px;
  margin-top:50px;
}

.nav-btn {
  display:flex;
  align-items:center;
  gap:14px;
  min-height:49px;
  padding:12px 16px;
  border-radius:12px;
  text-align:left;
  color:var(--muted);
  font-weight:500;
}

.nav-btn.active {
  color:var(--green);
  background:var(--pale);
}

.nav-btn:hover {
  background:#f5f7f3;
}

.sidebar-bottom {
  margin-top:auto;
  display:grid;
  gap:18px;
}

.year-note {
  padding:13px 16px;
  border-top:1px solid var(--line);
  line-height:1.8;
  color:var(--muted);
  font-size:12px;
}

.profile {
  display:flex;
  align-items:center;
  gap:11px;
  padding:8px 10px;
  width:100%;
  text-align:left;
}

.avatar {
  background:#e9eee7;
  width:35px;
  height:35px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--green);
  font-size:13px;
  font-weight:600;
  flex-shrink:0;
}

.profile-text {
  flex:1;
}

.profile-text b {
  display:block;
  font-size:13px;
  font-weight:600;
}

.profile-text small {
  color:var(--muted);
}

.main {
  margin-left:var(--sidebar);
  padding:32px 46px 65px;
  max-width:1450px;
}

.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:36px;
  min-height:35px;
  font-size:12px;
  color:var(--muted);
}

.topbar-right {
  display:flex;
  align-items:center;
  gap:14px;
}

.status-dot {
  width:6px;
  height:6px;
  border-radius:100%;
  background:#8ab28e;
  display:inline-block;
  margin-right:6px;
}

.preview-label {
  font-size:11px;
  color:#8c713a;
  background:#f3eddb;
  padding:6px 10px;
  border-radius:7px;
}

.mobile-brand {
  display:none;
}

.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:27px;
}

.page-heading p {
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  border-radius:10px;
  min-height:44px;
  padding:11px 17px;
  font-size:13px;
  font-weight:500;
  background:var(--green);
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
}

.button svg {
  width:17px;
  height:17px;
}

.button.secondary {
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
}

.button.soft {
  background:var(--pale);
  color:var(--green);
}

.button.danger {
  background:#f8eae5;
  color:var(--danger);
}

.icon-button {
  min-width:40px;
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:white;
}

.icon-button svg {
  width:18px;
  height:18px;
}

.metrics-strip {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin-bottom:30px;
}

.metric-card {
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper);
  padding:19px 21px;
}

.metric-card .meta {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px;
  margin-bottom:14px;
}

.metric-card .meta svg {
  width:16px;
  height:16px;
}

.metric-number {
  font-size:25px;
  letter-spacing:-.6px;
  font-weight:600;
  display:flex;
  align-items:baseline;
  gap:7px;
}

.metric-number small {
  font-size:12px;
  letter-spacing:0;
  color:var(--muted);
  font-weight:400;
}

.progress-line {
  height:4px;
  background:#e8eee5;
  border-radius:4px;
  overflow:hidden;
  margin-top:15px;
}

.progress-line span {
  display:block;
  height:100%;
  background:#6d9876;
  border-radius:4px;
}

.day-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 265px;
  gap:26px;
}

.section-heading {
  display:flex;
  align-items:center;
  gap:9px;
  margin:2px 0 15px;
}

.section-heading h2 {
  font-size:16px;
}

.count-pill {
  background:#e9eee5;
  border-radius:6px;
  font-size:11px;
  padding:3px 7px;
  color:var(--muted);
}

.tasks-section+.tasks-section {
  margin-top:28px;
}

.task-card {
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:13px;
  padding:18px 20px 16px;
  margin-bottom:11px;
  position:relative;
}

.task-card::before {
  position:absolute;
  content:"";
  left:-1px;
  top:22px;
  bottom:22px;
  width:3px;
  border-radius:3px;
  background:#7b9b83;
}

.task-card.studio::before {
  background:#7c9cb1;
}

.task-card.family::before {
  background:#c7a76e;
}

.task-meta {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:11px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.task-meta .direction {
  font-weight:600;
  color:var(--green);
}

.task-card.studio .direction {
  color:var(--blue);
}

.task-card h3 {
  margin-bottom:7px;
}

.task-description {
  color:#758079;
  font-size:12px;
  line-height:1.75;
  max-width:650px;
}

.task-bottom {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:16px;
}

.fact-status {
  font-size:11px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:6px;
}

.fact-status svg {
  width:14px;
  height:14px;
}

.fact-status.done {
  color:var(--green);
}

.task-actions {
  display:flex;
  gap:6px;
  align-items:center;
}

.task-actions .button {
  min-height:34px;
  font-size:11px;
  padding:8px 12px;
  border-radius:8px;
}

.task-actions .icon-button {
  min-width:32px;
  min-height:32px;
  border:0;
  background:#f6f8f4;
}

.badge {
  font-size:10px;
  padding:3px 7px;
  border-radius:5px;
  background:var(--pale);
  color:var(--green);
  font-weight:500;
}

.badge.blue {
  background:#eaf1f5;
  color:var(--blue);
}

.badge.amber {
  background:#f7efdc;
  color:#99783d;
}

.side-card {
  padding:21px;
  border:1px solid var(--line);
  border-radius:14px;
  background:white;
  margin-bottom:17px;
}

.side-card h3 {
  font-size:14px;
}

.side-card p {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-top:9px;
}

.side-card .button {
  width:100%;
  margin-top:17px;
}

.side-card.highlight {
  background:#eaf0e3;
  border-color:#e3e9da;
}

.side-icon {
  width:33px;
  height:33px;
  background:#dce7d3;
  border-radius:10px;
  color:var(--green);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:17px;
}

.side-icon svg {
  width:18px;
  height:18px;
}

.budget-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  margin-top:17px;
}

.budget-row span {
  color:var(--muted);
}

.hint {
  padding:13px 15px;
  background:#edf1e8;
  border-radius:10px;
  color:#60765a;
  font-size:12px;
  line-height:1.7;
}

.hint.warning {
  background:#faf0da;
  color:#91723a;
}

.hint.error {
  background:#faeae4;
  color:var(--danger);
}

.empty-state {
  padding:36px 22px;
  border:1px dashed #cad5c8;
  border-radius:14px;
  text-align:center;
  background:#fafbf8;
}

.empty-state h3 {
  font-size:16px;
  margin-bottom:9px;
}

.empty-state p {
  color:var(--muted);
  font-size:13px;
  line-height:1.8;
  max-width:450px;
  margin:auto;
}

.empty-state .button {
  margin-top:18px;
}

details {
  margin-top:20px;
}

summary {
  cursor:pointer;
  color:var(--muted);
  font-size:13px;
  padding:10px 0;
}

.completed-card {
  padding:15px 18px;
  border:1px solid var(--line);
  border-radius:11px;
  margin:8px 0;
  background:#fbfcf9;
  display:flex;
  align-items:center;
  gap:12px;
}

.completed-card svg {
  color:#729276;
  width:18px;
  height:18px;
}

.completed-card span {
  flex:1;
  font-size:12px;
}

.completed-card button {
  font-size:11px;
  color:var(--green);
}

.week-strip {
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:9px;
  margin-bottom:28px;
}

.week-day {
  border:1px solid var(--line);
  background:white;
  border-radius:12px;
  padding:15px 8px;
  text-align:center;
  min-height:105px;
}

.week-day .weekday {
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
}

.week-day .day-number {
  font-size:24px;
  display:block;
  margin:8px 0;
}

.week-day .day-time {
  font-size:10px;
  color:var(--muted);
}

.week-day.selected {
  background:var(--green);
  color:white;
  border-color:var(--green);
}

.week-day.selected .weekday,.week-day.selected .day-time {
  color:#d2e2d5;
}

.week-day.today:not(.selected) {
  border-color:#88aa8e;
}

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

.date-nav {
  display:flex;
  align-items:center;
  gap:10px;
}

.date-nav span {
  font-size:13px;
}

.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
  margin-bottom:20px;
}

.panel h2 {
  font-size:17px;
  margin-bottom:20px;
}

.result-header,.result-row {
  display:grid;
  grid-template-columns:minmax(180px,1fr) 95px 95px 95px;
  align-items:center;
  gap:12px;
}

.result-header {
  font-size:10px;
  color:var(--muted);
  padding:0 0 13px;
  border-bottom:1px solid var(--line);
}

.result-row {
  padding:17px 0;
  border-bottom:1px solid #edf0e9;
  font-size:13px;
}

.result-row:last-child {
  border:0;
}

.result-row button {
  text-align:left;
  padding:0;
  font-size:13px;
}

.result-row small {
  display:block;
  margin-top:5px;
  font-size:10px;
  color:var(--muted);
}

.result-row .actual {
  font-weight:600;
  color:var(--green);
}

.result-row .missing {
  color:#a4ada5;
}

.numeric {
  text-align:right;
  font-variant-numeric:tabular-nums;
}

.segmented {
  display:inline-flex;
  gap:4px;
  padding:4px;
  background:#e9eee5;
  border-radius:10px;
}

.segmented button {
  padding:8px 13px;
  min-height:34px;
  font-size:12px;
  border-radius:7px;
  color:var(--muted);
}

.segmented button.active {
  background:white;
  color:var(--ink);
  box-shadow:0 1px 4px #21362a08;
}

.page-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin-bottom:23px;
  flex-wrap:wrap;
}

.page-toolbar input {
  width:auto;
  min-width:145px;
  background:white;
}

.project-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.project-card {
  background:white;
  border:1px solid var(--line);
  border-radius:14px;
  padding:22px;
  text-align:left;
  min-height:165px;
  width:100%;
}

.project-card h3 {
  margin:13px 0 10px;
}

.project-card p {
  font-size:12px;
  color:var(--muted);
  line-height:1.8;
}

.project-card .next-date {
  font-size:11px;
  color:var(--green);
  margin-top:15px;
  display:flex;
  align-items:center;
  gap:6px;
}

.project-card .next-date svg {
  width:14px;
  height:14px;
}

.settings-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.settings-grid .panel {
  margin:0;
}

.settings-grid .full {
  grid-column:1/-1;
}

.settings-note {
  font-size:12px;
  line-height:1.8;
  color:var(--muted);
  margin-bottom:20px;
}

.switch-label {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  cursor:pointer;
  font-weight:400;
}

.switch-label input {
  width:20px;
  min-height:20px;
  height:20px;
  accent-color:var(--green);
}

.divider {
  height:1px;
  background:var(--line);
  margin:20px 0;
}

.text-link {
  color:var(--green);
  font-size:12px;
  padding:0;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:8px;
  min-height:37px;
}

.text-link svg {
  width:16px;
  height:16px;
}

.goal-row {
  padding:14px 0;
  display:flex;
  justify-content:space-between;
  gap:16px;
  border-bottom:1px solid var(--line);
  font-size:13px;
}

.goal-row small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:6px;
}

.goal-row strong {
  text-align:right;
  font-size:12px;
  font-weight:500;
}

.goal-row:last-child {
  border:0;
}

.goal-row button {
  font-size:12px;
  color:var(--green);
}

dialog {
  border:1px solid var(--line);
  border-radius:18px;
  padding:27px;
  width:min(520px,calc(100% - 26px));
  max-height:90dvh;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 20px 80px #1e30232b;
}

dialog::backdrop {
  background:#22312866;
  backdrop-filter:blur(3px);
}

.modal-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:24px;
  gap:20px;
}

.modal-heading h2 {
  font-size:22px;
  padding-top:7px;
}

.modal-heading .icon-button {
  border:0;
  background:#f3f5f0;
  flex-shrink:0;
}

.modal-subtitle {
  color:var(--muted);
  font-size:12px;
  line-height:1.8;
  margin-top:-12px;
  margin-bottom:22px;
}

.modal-actions {
  display:flex;
  gap:10px;
  margin-top:25px;
  justify-content:flex-end;
}

.modal-error {
  display:none;
  background:#faeae4;
  color:var(--danger);
  font-size:12px;
  line-height:1.7;
  padding:12px;
  border-radius:9px;
  margin-top:18px;
}

.modal-error.visible {
  display:block;
}

.action-list {
  display:grid;
  gap:8px;
}

.action-list button {
  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
  border-radius:9px;
  padding:12px;
  background:#f5f7f2;
  text-align:left;
  font-size:13px;
}

.action-list .red {
  color:var(--danger);
}

.fact-entry {
  border-bottom:1px solid var(--line);
  padding:13px 0;
  font-size:12px;
}

.fact-entry:last-child {
  border:0;
}

.fact-entry p {
  margin:8px 0;
  line-height:1.7;
}

.fact-entry small {
  color:var(--muted);
}

.loading-inline {
  padding:40px;
  color:var(--muted);
  text-align:center;
}

.initial-loading {
  height:100dvh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  font-size:13px;
  color:var(--muted);
}

.welcome {
  min-height:100dvh;
  display:grid;
  grid-template-columns:1fr 1fr;
  max-width:1100px;
  align-items:center;
  gap:100px;
  margin:auto;
  padding:45px;
}

.welcome h1 {
  font-size:57px;
  line-height:1.15;
  letter-spacing:-2px;
  margin:35px 0 22px;
}

.welcome p {
  color:var(--muted);
  line-height:1.9;
  font-size:15px;
}

.welcome-card {
  background:white;
  border:1px solid var(--line);
  border-radius:20px;
  padding:32px;
}

.welcome-card h2 {
  font-size:22px;
  margin:7px 0 12px;
}

.welcome-card p {
  font-size:13px;
}

.profile-choice {
  display:flex;
  align-items:center;
  gap:13px;
  border:1px solid var(--line);
  border-radius:12px;
  padding:17px;
  margin-top:12px;
  width:100%;
  text-align:left;
}

.profile-choice:hover {
  border-color:#a1bba3;
  background:#f6f9f2;
}

.profile-choice .profile-text small {
  display:block;
  margin-top:4px;
}

.welcome-note {
  font-size:11px!important;
  margin-top:20px;
  color:var(--muted);
}

#toast {
  position:fixed;
  left:calc(50% + 100px);
  bottom:28px;
  transform:translateX(-50%);
  padding:12px 20px;
  border-radius:12px;
  background:var(--ink);
  color:white;
  box-shadow:0 6px 30px #20362c20;
  font-size:13px;
  z-index:100;
  max-width:90%;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s;
}

#toast.visible {
  opacity:1;
}

.file-input {
  display:none;
}

.import-month {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}

.history-row {
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:12px 0;
  border-bottom:1px solid var(--line);
  font-size:12px;
}

.history-row small {
  color:var(--muted);
}

.overdue-body {
  padding-top:8px;
}

.fact-person {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:11px;
}

.online-indicator {
  font-size:11px;
  color:var(--muted);
}

@media(min-width:1450px) {
  .main {
    padding-left:65px;
    padding-right:65px;
  }

  .day-layout {
    grid-template-columns:minmax(0,1fr) 285px;
    gap:30px;
  }

}

@media(max-width:1100px) {
  :root {
    --sidebar:200px;
  }

  .sidebar {
    padding-left:13px;
    padding-right:13px;
  }

  .main {
    padding:27px 26px 55px;
  }

  .day-layout {
    grid-template-columns:1fr;
  }

  .day-aside {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
    order:-1;
  }

  .side-card {
    margin:0;
  }

  .side-card.highlight {
    display:none;
  }

  .task-card {
    padding:18px;
  }

  .metric-card {
    padding:17px;
  }

  .result-header,.result-row {
    grid-template-columns:minmax(145px,1fr) 80px 80px 80px;
  }

  .project-grid {
    gap:13px;
  }

}

@media(max-width:760px) {
  :root {
    font-size:14px;
    --sidebar:0px;
  }

  .sidebar {
    width:100%;
    height:auto;
    top:auto;
    bottom:0;
    left:0;
    padding:0;
    border:0;
    border-top:1px solid var(--line);
    background:#ffffffed;
    backdrop-filter:blur(12px);
    padding-bottom:env(safe-area-inset-bottom);
  }

  .sidebar>.brand,.sidebar-bottom {
    display:none;
  }

  .nav {
    display:flex;
    justify-content:space-around;
    gap:0;
    margin:0;
    padding:6px 3px;
  }

  .nav-btn {
    flex:1;
    min-height:53px;
    padding:7px 2px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:5px;
    border-radius:9px;
    font-size:9px;
  }

  .nav-btn svg {
    width:21px;
    height:21px;
  }

  .nav-btn.active {
    background:transparent;
    color:var(--green);
  }

  .main {
    margin:0;
    padding:16px 18px calc(90px + env(safe-area-inset-bottom));
    max-width:none;
  }

  .topbar {
    margin-bottom:27px;
    min-height:35px;
  }

  .mobile-brand {
    display:flex;
  }

  .mobile-brand .brand {
    font-size:19px;
  }

  .mobile-brand .brand-mark {
    width:30px;
    height:30px;
    border-radius:10px;
    font-size:23px;
  }

  .desktop-breadcrumb {
    display:none;
  }

  .topbar-right {
    gap:9px;
  }

  .preview-label {
    font-size:9px;
    padding:5px 7px;
  }

  .topbar .online-indicator {
    display:none;
  }

  .mobile-profile {
    border:0;
    min-height:35px;
    min-width:35px;
    border-radius:50%;
    padding:0;
  }

  .mobile-profile .avatar {
    width:31px;
    height:31px;
  }

  .page-heading {
    align-items:center;
    margin-bottom:21px;
    gap:12px;
  }

  h1 {
    font-size:32px;
  }

  .page-heading p {
    font-size:12px;
    margin-top:7px;
  }

  .page-heading>.button {
    padding:10px;
    font-size:0;
    min-width:41px;
    min-height:41px;
  }

  .page-heading>.button svg {
    width:19px;
    height:19px;
  }

  .metrics-strip {
    gap:8px;
    margin-bottom:24px;
  }

  .metric-card {
    padding:14px 12px;
    border-radius:12px;
  }

  .metric-card .meta {
    font-size:10px;
    gap:5px;
    margin-bottom:11px;
  }

  .metric-card .meta svg {
    display:none;
  }

  .metric-number {
    font-size:22px;
    gap:4px;
    letter-spacing:-.6px;
  }

  .metric-number small {
    font-size:9px;
  }

  .progress-line {
    margin-top:12px;
  }

  .day-aside {
    grid-template-columns:1fr;
    order:1;
  }

  .day-aside .side-card:not(.highlight) {
    padding:19px;
  }

  .task-card {
    padding:16px 16px 15px;
  }

  .task-description {
    font-size:12px;
    line-height:1.7;
  }

  .task-card h3 {
    font-size:15px;
  }

  .task-meta {
    font-size:10px;
  }

  .task-bottom {
    margin-top:14px;
  }

  .task-actions .button {
    font-size:11px;
    min-height:37px;
  }

  .task-actions .icon-button {
    min-width:35px;
    min-height:35px;
  }

  .day-layout {
    gap:25px;
  }

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

  .section-heading h2 {
    font-size:15px;
  }

  .week-strip {
    gap:5px;
    margin-bottom:24px;
  }

  .week-day {
    min-height:89px;
    padding:11px 3px;
    border-radius:10px;
  }

  .week-day .weekday {
    font-size:9px;
  }

  .week-day .day-number {
    font-size:19px;
    margin:9px 0;
  }

  .week-day .day-time {
    font-size:8px;
  }

  .date-nav {
    gap:6px;
  }

  .date-nav span {
    font-size:12px;
  }

  .page-toolbar {
    gap:12px;
  }

  .page-toolbar input {
    font-size:12px;
    padding:9px 10px;
    min-height:40px;
    min-width:130px;
    width:130px;
  }

  .segmented button {
    font-size:11px;
    padding:7px 10px;
  }

  .panel {
    padding:18px 15px;
    border-radius:12px;
  }

  .panel h2 {
    font-size:16px;
  }

  .result-header,.result-row {
    grid-template-columns:minmax(105px,1fr) 54px 54px 53px;
    gap:7px;
  }

  .result-header {
    font-size:9px;
  }

  .result-row {
    font-size:12px;
    padding:15px 0;
  }

  .result-row button {
    font-size:12px;
    line-height:1.5;
  }

  .result-row small {
    font-size:9px;
    line-height:1.5;
  }

  .project-grid,.settings-grid {
    grid-template-columns:1fr;
  }

  .project-card {
    padding:19px;
    min-height:145px;
  }

  .settings-grid .full {
    grid-column:auto;
  }

  .welcome {
    grid-template-columns:1fr;
    gap:35px;
    padding:40px 25px;
  }

  .welcome h1 {
    font-size:43px;
    margin:29px 0 17px;
    letter-spacing:-1.5px;
  }

  .welcome p {
    font-size:14px;
  }

  .welcome-card {
    padding:24px;
  }

  .welcome .brand {
    font-size:22px;
  }

  .field-grid {
    gap:12px;
  }

  dialog {
    padding:23px 20px;
    border-radius:16px;
    max-height:88dvh;
  }

  .modal-heading {
    margin-bottom:21px;
  }

  .modal-heading h2 {
    font-size:21px;
  }

  .modal-actions .button {
    flex:1;
  }

  .modal-actions {
    gap:9px;
  }

  #toast {
    left:50%;
    bottom:calc(87px + env(safe-area-inset-bottom));
    font-size:12px;
    width:max-content;
  }

  .budget-row {
    font-size:12px;
  }

  .mobile-year {
    font-size:10px;
    color:var(--muted);
  }

  .fact-status {
    font-size:10px;
  }

  .history-row {
    line-height:1.6;
  }

  .goal-row {
    font-size:12px;
  }

  .goal-row strong {
    font-size:11px;
  }

}

@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important;
  }

}

