:root {
  color-scheme: light;
  font-family: "DM Sans", sans-serif;
  color: #212b28;
  background: #f5f6f4;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #212b28;
  --muted: #7f8883;
  --green: #218c69;
  --green-dark: #176d52;
  --green-soft: #e6f4ed;
  --line: #e9ece8;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(224, 238, 228, .42), transparent 42%),
    #f5f6f4;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid rgba(33, 140, 105, .34);
  outline-offset: 3px;
}

.app-shell { width: min(1120px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(44, 65, 54, .08); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); font: 800 18px "Manrope", sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 27px; height: 27px; display: flex; align-items: end; justify-content: center; gap: 3px; padding: 6px 5px; border-radius: 9px; background: var(--green); }
.brand-mark span { display: block; width: 4px; border-radius: 5px; background: #fff; }
.brand-mark span:nth-child(1) { height: 8px; opacity: .75; }
.brand-mark span:nth-child(2) { height: 13px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .85; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #707a74; font-size: 12px; font-weight: 500; }
.local-dot { width: 7px; height: 7px; border-radius: 50%; background: #74b991; box-shadow: 0 0 0 3px #e2f0e6; }

main { padding-top: 60px; }
.intro { text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-size: 10px; line-height: 1; letter-spacing: 1.7px; font-weight: 700; }
.eyebrow-line { width: 18px; height: 1px; background: #78b497; }
h1, h2, p { margin: 0; }
h1 { margin-top: 20px; font: 700 clamp(38px, 5vw, 54px)/1.12 "Manrope", sans-serif; letter-spacing: -2.6px; }
h1 span { color: var(--green); }
.intro p { margin-top: 14px; color: #77817b; font-size: 14px; }

.planner-panel { max-width: 940px; margin: 43px auto 0; padding: 29px 31px 0; overflow: hidden; border: 1px solid #e8ebe7; border-radius: 17px; background: rgba(255,255,255,.92); box-shadow: 0 16px 48px rgba(38, 61, 48, .055), 0 2px 7px rgba(38, 61, 48, .025); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; }
.month-label { color: #828c85; font-size: 11px; font-weight: 600; letter-spacing: .35px; }
.week-heading h2 { margin-top: 4px; font: 700 21px "Manrope", sans-serif; letter-spacing: -.6px; }
.week-navigation, .arrow-group { display: flex; align-items: center; }
.week-navigation { gap: 14px; }
.arrow-group { gap: 5px; }
.text-button, .icon-button { border: 0; background: transparent; cursor: pointer; }
.text-button { padding: 8px 10px; color: var(--green); font-size: 12px; font-weight: 700; }
.text-button:hover:not(:disabled) { color: var(--green-dark); }
.text-button:disabled { color: #aab2ad; cursor: default; }
.icon-button { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid #e9ece8; border-radius: 9px; transition: background .16s, border-color .16s; }
.icon-button:hover { border-color: #c9ddd1; background: #f5faf6; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: #66716b; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.quick-actions { display: flex; align-items: center; gap: 9px; margin-top: 25px; padding: 13px 0 17px; border-top: 1px solid #f0f1ef; }
.actions-label { margin-right: 4px; color: #9aa19c; font-size: 9px; letter-spacing: 1.1px; font-weight: 700; }
.action-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid #d8ebe0; border-radius: 7px; background: #f3faf5; color: #28835f; font-size: 11px; font-weight: 600; cursor: pointer; transition: background .16s, transform .16s; }
.action-chip:hover { background: #e6f4eb; transform: translateY(-1px); }
.action-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.muted-action { border-color: #e9ece8; background: #fff; color: #79827c; }
.muted-action:hover { background: #f6f7f5; }
.action-hint { margin-left: auto; color: #a1a8a3; font-size: 10px; }

.week-grid { display: flex; flex-direction: column; gap: 17px; }
.week-row-heading { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 8px; color: #53615a; font: 700 11px "Manrope", sans-serif; }
.week-row-heading span:last-child { color: #9aa39d; font: 500 10px "DM Sans", sans-serif; }
.week-row-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 9px; }
.day-card { position: relative; min-width: 0; min-height: 183px; padding: 0 10px 12px; border: 1px solid #e8ece8; border-radius: 10px; background: #fff; transition: border-color .18s, background .18s, box-shadow .18s, transform .18s; }
.day-card:hover { border-color: #c9ddd0; transform: translateY(-2px); }
.day-card.is-locked { border-style: dashed; background: #f8f9f7; }
.day-card.is-locked:hover { border-color: #e8ece8; transform: none; }
.day-card.is-locked .day-toggle { cursor: not-allowed; }
.day-card.is-locked .date-number { color: #9aa39d; }
.day-card.is-locked .selection-marker { border-color: #e5e8e4; color: #b2b9b3; }
.day-card.is-locked .hours-control input:disabled { background: #f4f5f3; color: #98a099; cursor: not-allowed; }
.day-card.is-selected { border-color: #acd3bb; background: #f3faf5; box-shadow: inset 0 0 0 1px rgba(33, 140, 105, .04); }
.day-card.is-today:not(.is-selected) { border-color: #d8e6dc; }
.day-toggle { display: flex; width: 100%; flex-direction: column; align-items: flex-start; padding: 11px 0 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.day-topline { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.weekday { color: #7d8781; font-size: 10px; font-weight: 600; }
.selection-marker { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #e1e7e2; border-radius: 50%; color: #a0aaa3; font-size: 12px; line-height: 1; transition: all .15s; }
.day-card.is-selected .selection-marker { border-color: var(--green); background: var(--green); color: white; font-size: 10px; }
.date-number { margin-top: 8px; color: #39453f; font: 600 23px "Manrope", sans-serif; letter-spacing: -.7px; }
.day-card.is-today .date-number { color: var(--green); }
.day-state { margin-top: 3px; color: #a0a9a3; font-size: 10px; }
.day-card.is-selected .day-state { color: #388463; font-weight: 600; }
.hours-label { display: block; margin-top: 15px; color: #808b84; font-size: 9px; font-weight: 600; }
.hours-control { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #738078; font-size: 11px; }
.hours-control input { width: 100%; min-width: 0; height: 31px; padding: 0 7px; border: 1px solid #dfe9e1; border-radius: 6px; background: #fff; color: #314b3c; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours-control input::-webkit-inner-spin-button { opacity: .5; }
.day-hint { display: block; margin-top: 20px; padding-top: 9px; border-top: 1px solid #f1f3f1; color: #b0b8b2; font-size: 9px; }

.panel-footer { display: flex; min-height: 59px; align-items: center; justify-content: space-between; margin-top: 19px; border-top: 1px solid #eef0ed; }
.save-state { display: flex; align-items: center; gap: 7px; color: #929c95; font-size: 10px; }
.save-icon { display: grid; width: 15px; height: 15px; place-items: center; border-radius: 50%; background: #e8f4eb; color: #46936b; font-size: 9px; font-weight: 700; }
.week-total { display: flex; align-items: baseline; gap: 9px; color: #7b857f; font-size: 11px; }
.week-total strong { color: #286d4f; font: 700 17px "Manrope", sans-serif; letter-spacing: -.4px; }
.total-divider { width: 1px; height: 13px; align-self: center; background: #e4e9e5; }
.total-caption { color: #a3aaa5; font-size: 10px; }
.keyboard-hint { margin: 17px 0 0; color: #8f9992; text-align: center; font-size: 10px; }
kbd { display: inline-block; min-width: 19px; margin: 0 2px; padding: 3px 5px; border: 1px solid #e1e5e1; border-radius: 4px; background: #fff; color: #737e77; font: 500 9px "DM Sans", sans-serif; text-align: center; }
.hint-separator { margin: 0 5px; color: #bbc1bc; }
.page-footer { display: flex; justify-content: space-between; margin-top: 56px; padding: 17px 0 25px; border-top: 1px solid rgba(44, 65, 54, .08); color: #9ba39e; font-size: 10px; }
.page-footer > span:last-child { font-size: 9px; letter-spacing: 1.2px; font-weight: 700; }
.page-footer > span:last-child span { color: #68a37f; font-size: 12px; }

@media (max-width: 760px) {
  .app-shell { width: min(620px, calc(100% - 36px)); }
  .topbar { height: 68px; }
  main { padding-top: 42px; }
  .planner-panel { margin-top: 34px; padding: 23px 20px 0; }
  .week-row-grid { gap: 6px; }
  .day-card { min-height: 165px; padding-right: 7px; padding-left: 7px; }
  .page-footer { margin-top: 40px; }
}

@media (max-width: 460px) {
  .app-shell { width: calc(100% - 28px); }
  .topbar-note { font-size: 10px; }
  main { padding-top: 35px; }
  h1 { letter-spacing: -1.7px; }
  .intro p { max-width: 270px; margin-right: auto; margin-left: auto; font-size: 13px; line-height: 1.6; }
  .planner-panel { margin-top: 27px; padding: 18px 13px 0; border-radius: 14px; }
  .week-heading h2 { font-size: 18px; }
  .week-navigation { gap: 5px; }
  .today-button { padding: 7px; font-size: 11px; }
  .quick-actions { flex-wrap: wrap; gap: 7px; margin-top: 19px; }
  .action-hint { display: none; }
  .week-grid { gap: 14px; }
  .week-row-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .day-card { min-height: 140px; padding-right: 9px; padding-left: 9px; }
  .panel-footer { min-height: 56px; }
  .save-state { max-width: 145px; font-size: 9px; }
  .week-total { gap: 6px; font-size: 10px; }
  .week-total strong { font-size: 15px; }
  .keyboard-hint { line-height: 2.1; }
  .page-footer { gap: 10px; margin-top: 32px; font-size: 9px; line-height: 1.5; }
  .page-footer > span:last-child { flex-shrink: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
