:root {
  --ink: #14212b;
  --ink-soft: #3a4a57;
  --paper: #f3f7f8;
  --mist: #d7e6ea;
  --lake: #1f6f78;
  --lake-deep: #0f4c54;
  --sun: #e8b15a;
  --danger: #b33a3a;
  --ok: #2f7d4a;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 12px 32px rgba(20, 33, 43, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --header-h: 64px;
  --bottom-nav-h: 0px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shell: min(1180px, calc(100% - 1.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.45;
  background:
    radial-gradient(1100px 520px at 8% -8%, rgba(31, 111, 120, 0.16), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(232, 177, 90, 0.14), transparent 48%),
    linear-gradient(180deg, #eef5f6 0%, var(--paper) 42%, #e7f0f2 100%);
}

body.app-body {
  --bottom-nav-h: calc(64px + var(--safe-bottom));
  padding-bottom: var(--bottom-nav-h);
}

[x-cloak] {
  display: none !important;
}

a {
  color: var(--lake-deep);
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(243, 247, 248, 0.82);
  border-bottom: 1px solid rgba(20, 33, 43, 0.06);
}

.site-header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  position: relative;
  z-index: 2;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand span {
  color: var(--lake);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--lake-deep);
}

.nav a.is-active {
  border-bottom-color: var(--lake);
}

.nav-secondary {
  opacity: 0.75;
  font-size: 0.88rem !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  place-items: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
  content: "";
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bar::after {
  position: absolute;
  top: 6px;
}

.nav-toggle-bar.is-open {
  background: transparent;
}

.nav-toggle-bar.is-open::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle-bar.is-open::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

/* ——— Bottom nav (mobile app shell) ——— */
.bottom-nav {
  display: none;
}

.bn-ico {
  width: 22px;
  height: 22px;
  display: block;
  margin: 0 auto 0.2rem;
  border: 2px solid currentColor;
  border-radius: 6px;
  position: relative;
}

.bn-week {
  border-radius: 50%;
}

.bn-docs {
  border-radius: 4px;
}

.bn-docs::after {
  content: "";
  position: absolute;
  inset: 4px 3px auto;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.bn-family {
  border-radius: 50% 50% 45% 45%;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.bn-family::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  transform: translateX(-50%);
}

/* ——— Buttons ——— */
.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.75rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  text-align: center;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--lake);
  color: white;
  box-shadow: 0 8px 18px rgba(31, 111, 120, 0.22);
}

.btn-primary:hover {
  background: var(--lake-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 33, 43, 0.14);
}

.btn-ghost-light {
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-small {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 76, 84, 0.12) 0%, rgba(15, 76, 84, 0.7) 52%, rgba(20, 33, 43, 0.9) 100%),
    url("https://images.unsplash.com/photo-1609220136736-443140cff224?auto=format&fit=crop&w=1800&q=80")
      center/cover no-repeat;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 12vh, 7rem) 0 calc(2.5rem + env(safe-area-inset-bottom));
  width: min(720px, 100%);
  animation: rise-in 700ms ease both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 10vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  margin: 0 0 0.75rem;
  max-width: 16ch;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ——— App surfaces ——— */
.panel {
  background: var(--glass);
  border: 1px solid rgba(20, 33, 43, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2vw, 1.35rem);
  animation: rise-in 480ms ease both;
}

.page {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.5vw, 2.55rem);
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-lead {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: clamp(0.95rem, 2vw, 1.02rem);
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: 1.35fr 0.85fr;
    align-items: start;
  }
}

.mission-list {
  display: grid;
  gap: 0.7rem;
}

.mission {
  display: grid;
  gap: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(20, 33, 43, 0.05);
  transition: transform 160ms ease, border-color 160ms ease;
}

.mission:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 111, 120, 0.22);
}

.mission-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
}

.mission h3 {
  margin: 0;
  font-size: 1.02rem;
}

.mission p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  background: var(--mist);
  color: var(--lake-deep);
  font-size: 0.76rem;
  font-weight: 700;
}

.chip.done {
  background: rgba(47, 125, 74, 0.15);
  color: var(--ok);
}

.chip.blocked {
  background: rgba(179, 58, 58, 0.12);
  color: var(--danger);
}

form.stack {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(20, 33, 43, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.72rem 0.85rem;
  font: inherit;
  background: white;
  min-height: 44px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 111, 120, 0.25);
  border-color: var(--lake);
}

.messages {
  display: grid;
  gap: 0.5rem;
  margin: 0.85rem auto 0;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(31, 111, 120, 0.1);
  color: var(--lake-deep);
  font-weight: 600;
  animation: rise-in 320ms ease both;
}

.message.error,
.message.error {
  background: rgba(179, 58, 58, 0.12);
  color: var(--danger);
}

.auth-wrap {
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  place-items: center;
  padding: 1.5rem 0 2.5rem;
}

.auth-panel {
  width: min(420px, 100%);
}

.auth-panel h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2rem);
  margin: 0 0 0.25rem;
}

.doc-item {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 33, 43, 0.08);
}

.doc-item:last-child {
  border-bottom: 0;
}

.doc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.link-mission {
  flex: 1 1 180px;
}

.link-mission select {
  min-width: 0;
  width: 100%;
  padding: 0.45rem 0.55rem;
  font-size: 0.85rem;
  min-height: 40px;
}

.empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}

footer.site-footer {
  padding: 1.5rem 0 2rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.site-footer-app {
  padding-bottom: 1rem;
}

/* ——— Week / board ——— */
.week-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.week-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.filters-shell {
  margin-bottom: 1rem;
}

.filters-toggle {
  display: none;
  width: 100%;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: end;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(20, 33, 43, 0.06);
}

.filters-bar label {
  min-width: min(140px, 100%);
  flex: 1 1 130px;
}

.filters-check {
  margin-bottom: 0.2rem;
  flex: 0 0 auto !important;
  min-width: auto !important;
}

.week-toolbar-secondary {
  opacity: 0.92;
  font-weight: 600;
}

.week-toolbar a.week-toolbar-secondary.is-active {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink);
  border-color: transparent;
}

.board-lead {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.board-col-status .board-col-head {
  font-size: 0.92rem;
}

.board-layout {
  display: grid;
  gap: 1rem;
}

@media (min-width: 1040px) {
  .board-layout {
    grid-template-columns: minmax(0, 1fr) min(300px, 28%);
    align-items: start;
  }
}

.board-scroll {
  overflow-x: auto;
  min-width: 0;
  padding-bottom: 0.45rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.board-days {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  min-width: 100%;
}

.board-col {
  flex: 0 0 156px;
  width: 156px;
  min-height: 300px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(20, 33, 43, 0.07);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  scroll-snap-align: start;
}

.board-col.is-today {
  border-color: rgba(31, 111, 120, 0.35);
  background: rgba(255, 255, 255, 0.84);
}

.board-col.is-over {
  border-color: var(--lake);
  background: rgba(31, 111, 120, 0.08);
  transform: translateY(-2px);
}

.board-col-later {
  background: rgba(232, 177, 90, 0.08);
}

.board-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0.7rem 0.3rem;
  font-weight: 700;
  font-size: 0.86rem;
  text-transform: capitalize;
}

.board-count {
  font-size: 0.74rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.board-col-body {
  display: grid;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem 0.7rem;
  min-height: 220px;
}

.board-card {
  padding: 0.65rem 0.7rem;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(20, 33, 43, 0.06);
  cursor: grab;
  touch-action: manipulation;
  animation: rise-in 280ms ease both;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.board-card:hover {
  box-shadow: 0 8px 16px rgba(20, 33, 43, 0.08);
}

.board-card.is-dragging {
  opacity: 0.55;
  cursor: grabbing;
}

.board-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  align-items: start;
  margin-bottom: 0.4rem;
}

.board-card-top strong {
  font-size: 0.9rem;
  line-height: 1.25;
}

.board-status {
  width: auto;
  max-width: 7.2rem;
  padding: 0.28rem 0.35rem;
  font-size: 0.72rem;
  border-radius: 8px;
  min-height: 32px;
}

.board-empty {
  margin: 0;
  padding: 1rem 0.4rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.board-hint {
  margin: 0.7rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.week-aside h2,
.section-title {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.check-inline {
  display: flex !important;
  align-items: center;
  gap: 0.45rem;
}

.check-inline input {
  width: auto;
  min-height: auto;
}

.soft-hr {
  border: 0;
  border-top: 1px solid rgba(20, 33, 43, 0.08);
  margin: 1.15rem 0;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1280px) {
  .board-days {
    width: 100%;
  }

  .board-col {
    flex: 1 1 0;
    width: auto;
    min-width: 118px;
  }
}

/* ——— Tablet ——— */
@media (max-width: 960px) {
  .board-col {
    flex: 0 0 min(72vw, 260px);
    width: min(72vw, 260px);
  }
}

/* ——— Mobile ——— */
@media (max-width: 760px) {
  :root {
    --shell: min(100% - 1.1rem, 100%);
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: calc(var(--header-h) + 0.35rem);
    right: 0.55rem;
    left: 0.55rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.65rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(20, 33, 43, 0.08);
    box-shadow: var(--shadow);
    animation: slide-down 180ms ease both;
    z-index: 50;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.85rem;
    border-bottom: 0;
    border-radius: 10px;
  }

  .nav a.is-active {
    background: rgba(31, 111, 120, 0.1);
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 33, 43, 0.28);
    z-index: 30;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    min-height: var(--bottom-nav-h);
    padding: 0.45rem 0.4rem calc(0.45rem + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(20, 33, 43, 0.08);
  }

  .bottom-nav a {
    display: grid;
    justify-items: center;
    gap: 0.1rem;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.25rem;
    border-radius: 10px;
  }

  .bottom-nav a.is-active {
    color: var(--lake-deep);
    background: rgba(31, 111, 120, 0.08);
  }

  .site-header .nav .btn {
    width: 100%;
  }

  .filters-toggle {
    display: inline-flex;
  }

  .filters-bar {
    display: none;
  }

  .filters-bar.is-open {
    display: flex;
  }

  .week-toolbar {
    width: 100%;
  }

  .week-toolbar .btn {
    flex: 1 1 calc(50% - 0.4rem);
  }

  .board-col {
    flex: 0 0 min(78vw, 280px);
    width: min(78vw, 280px);
    min-height: 260px;
  }

  .board-hint {
    font-size: 0.8rem;
  }

  .week-aside,
  .grid-2 > .panel {
    order: 2;
  }

  .auth-wrap {
    align-items: start;
    padding-top: 2rem;
  }

  .hero-content {
    padding-left: 0;
  }

  .site-footer-app {
    display: none;
  }
}

@media (min-width: 761px) {
  .bottom-nav {
    display: none !important;
  }

  body.app-body {
    --bottom-nav-h: 0px;
    padding-bottom: 0;
  }
}

.member-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin: 0 0 1rem;
}

.member-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.member-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--member-color, #1f6f78);
}

.member-chip {
  border-left: 3px solid var(--member-color, #1f6f78);
}

.agenda-list {
  display: grid;
  gap: 0.65rem;
}

.agenda-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid var(--item-color, #1f6f78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.agenda-when {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.month-head {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.35rem 0;
}

.month-cell {
  min-height: 6.5rem;
  padding: 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 33, 43, 0.06);
  text-decoration: none;
  color: inherit;
  display: block;
}

.month-cell.is-outside {
  opacity: 0.45;
}

.month-cell.is-today {
  outline: 2px solid var(--lake-deep);
}

.month-day {
  font-weight: 700;
  font-size: 0.85rem;
}

.month-items {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
}

.month-items li {
  font-size: 0.68rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 0.35rem;
  border-left: 2px solid var(--item-color, #1f6f78);
}

.month-more {
  color: var(--ink-soft);
  border-left: none !important;
  padding-left: 0 !important;
}

.onboarding-page {
  max-width: 36rem;
}

.onboarding-header {
  margin-bottom: 1.25rem;
}

.onboarding-brand {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--lake-deep, #1f6f78);
}

.onboarding-steps {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--ink-soft, #6b7c7c);
}

.onboarding-steps li.is-current {
  color: var(--ink, #1a2a2a);
  font-weight: 650;
}

.onboarding-steps li.is-done {
  color: var(--lake-deep, #1f6f78);
}

.onboarding-panel {
  margin-bottom: 1rem;
}

.onboarding-member-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

.onboarding-pains {
  display: grid;
  gap: 0.5rem;
}

.onboarding-pain {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--ink-soft, #6b7c7c) 30%, transparent);
  cursor: pointer;
}

.onboarding-pain.is-selected,
.onboarding-pain:has(input:checked) {
  border-color: var(--lake-deep, #1f6f78);
  background: color-mix(in srgb, var(--lake-deep, #1f6f78) 8%, transparent);
}

.onboarding-skip {
  margin-top: 0.5rem;
  text-align: center;
}

.onboarding-nudge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--lake-deep, #1f6f78) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lake-deep, #1f6f78) 22%, transparent);
}

.onboarding-nudge p {
  margin: 0;
}

.review-page {
  max-width: 42rem;
}

.review-header {
  margin-bottom: 1rem;
}

.review-brand {
  margin: 0 0 0.25rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--lake-deep, #1f6f78);
}

.review-panel {
  margin-bottom: 1rem;
}

.review-score {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 750;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.55rem;
}

.review-assign select {
  min-width: 8rem;
  width: auto;
  padding: 0.35rem 0.5rem;
  font-size: 0.9rem;
}

.review-finish {
  text-align: center;
}

.day-plan-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--lake-deep, #1f6f78) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--lake-deep, #1f6f78) 18%, transparent);
}

.day-plan-title {
  margin: 0;
  font-size: 1.15rem;
}

.day-plan-meta,
.day-plan-weather {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  font-weight: 600;
}

.day-plan-list {
  margin: 0.55rem 0 0;
  padding-left: 1.1rem;
}

.day-plan-list li {
  margin: 0.2rem 0;
}

.day-plan-dismiss {
  margin: 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;
}

.voice-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
}

.voice-btn.is-listening {
  border-color: var(--lake-deep, #1f6f78);
  color: var(--lake-deep, #1f6f78);
  font-weight: 650;
  background: color-mix(in srgb, var(--lake-deep, #1f6f78) 12%, transparent);
}

.voice-hint {
  margin: 0.15rem 0 0;
  min-height: 1.2em;
  color: var(--ink-soft, #5c6570);
  font-weight: 600;
}

.voice-hint.is-active {
  color: var(--lake-deep, #1f6f78);
}

.chip-warn {
  border-color: color-mix(in srgb, #c45c26 45%, transparent);
  color: #8a3d12;
}

.mission-steps {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.mission-steps summary {
  cursor: pointer;
  color: var(--ink-soft, #6b7c7c);
  font-weight: 600;
}

.mission-steps-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.mission-steps-list li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.mission-steps-list li.is-done span {
  text-decoration: line-through;
  opacity: 0.7;
}

.mission-step-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.mission-step-check {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--lake-deep, #1f6f78);
}

.mission-step-add {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.load-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.5rem;
}

.coach-banner {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(120deg, #e8f3f1, #f7f1e8);
  border: 1px solid color-mix(in srgb, var(--lake-deep, #1f6f78) 25%, transparent);
}

.coach-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink, #1a2a2a);
}

.plan-proposals {
  gap: 0.75rem;
}

.plan-proposal {
  padding: 0.65rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink-soft, #6b7c7c) 25%, transparent);
}

.plan-proposal:last-of-type {
  border-bottom: none;
}

.plan-proposal-title {
  margin: 0 0 0.35rem;
  font-weight: 650;
  font-size: 0.95rem;
}

.plan-proposal-edit {
  display: grid;
  gap: 0.4rem;
  margin: 0.45rem 0;
}

.plan-proposal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.kiosk-body {
  background: #f4f7f6;
}

.kiosk-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem;
}

.kiosk-active-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(20, 33, 43, 0.06);
  font-weight: 650;
}

.kiosk-back {
  margin: 0 0 0.75rem;
}

.kiosk-back a {
  font-weight: 700;
}

.kiosk-switch {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.kiosk-switch a {
  flex: 1;
  min-height: 3.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.05rem;
  border: 2px solid transparent;
  box-shadow: 0 8px 20px rgba(20, 33, 43, 0.06);
}

.kiosk-switch a.is-active {
  background: var(--lake);
  color: #fff;
}

.kiosk-missions {
  margin-top: 1rem;
}

.weather-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.weather-day {
  margin: 0;
  min-width: 6.5rem;
  padding: 0.65rem 0.85rem 0.75rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
  gap: 0.15rem;
}

.weather-icon {
  width: 4.25rem;
  height: 4.25rem;
}

.weather-when {
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.weather-temps {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  line-height: 1;
}

.weather-max {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--ink);
}

.weather-min {
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.weather-min::before {
  content: "/ ";
  font-weight: 500;
}

.weather-strip--compact .weather-day {
  min-width: 5.4rem;
  padding: 0.45rem 0.6rem 0.55rem;
  box-shadow: none;
  border: 1px solid rgba(20, 33, 43, 0.06);
}

.weather-strip--compact .weather-icon {
  width: 2.75rem;
  height: 2.75rem;
}

.weather-strip--compact .weather-max {
  font-size: 1.05rem;
}

.weather-strip--kiosk {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0;
}

.weather-strip--kiosk .weather-day {
  min-width: 0;
  padding: 0.2rem 0.35rem 0.25rem;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  gap: 0;
}

.weather-strip--kiosk .weather-icon {
  width: 2.35rem;
  height: 2.35rem;
}

.weather-strip--kiosk .weather-when {
  font-size: 0.72rem;
}

.weather-strip--kiosk .weather-temps {
  gap: 0.25rem;
}

.weather-strip--kiosk .weather-max {
  font-size: 0.95rem;
}

.weather-strip--kiosk .weather-min {
  font-size: 0.78rem;
}

label.check-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

label.check-line input {
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  flex: 0 0 auto;
}

.kiosk-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.85rem;
}

.kiosk-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
}

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

  .agenda-item {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
