@font-face {
  font-family: Inter;
  src: url("/assets/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Kalam;
  src: url("/assets/kalam.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --sheet: #fffdf8;
  --ink: #282a32;
  --muted: #5d6069;
  --line: #d5d2c8;
  --brand: #6559ff;
  --brand-dark: #5043c7;
  --hover: #f3f4f6;
  --red: #a64135;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Baskerville", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --hand: Kalam, "Chalkboard SE", "Segoe Print", var(--sans);
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box }
[hidden] { display: none !important }
body {
  margin: 0;
  min-width: 280px;
  background-image: radial-gradient(#84776118 .62px, transparent .82px);
  background-size: 6px 6px;
}
button, input, select, textarea { font: inherit }
button, a.button { cursor: pointer; -webkit-tap-highlight-color: transparent }
button { color: inherit }
button:disabled, input:disabled, textarea:disabled, select:disabled { opacity: .65; cursor: default }
button, a, input, select, textarea { outline-offset: 3px }
:focus-visible { outline: 2px solid var(--brand-dark) }
main:focus { outline: none }
svg { display: inline-block; width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.shell { width: min(1600px, 100%); margin-inline: auto; padding-inline: clamp(20px, 3.8vw, 64px) }
.topbar { background: #fff; border-bottom: 1px solid #e5e7eb }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px }
.wordmark, .account-trigger { display: inline-flex; align-items: center; gap: 10px }
.wordmark img { display: block; width: 160px; height: auto }
.skip { position: fixed; top: -80px; left: 12px; z-index: 5; background: var(--sheet); color: var(--brand-dark); padding: 10px }
.skip:focus { top: 7px }
h1, h2, p { margin: 0 }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.052em; line-height: 1.02 }
h1 { font-size: clamp(42px, 4.5vw, 72px) }
h1 span { color: var(--brand) }
h2 { font-size: 32px }
button { border: 0; background: transparent }
.button, .icon-button, .account-trigger, .account-menu button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color .12s, color .12s }
.icon-button { width: 38px; padding: 0 }
.primary { color: #fff; background: var(--brand); box-shadow: 0 1px 3px #282a3221 }
.intro-actions .button, .state-sheet .button { border-radius: 999px; min-height: 40px }
.intro-actions .secondary { color: #5143d0; border-color: var(--brand) }
.intro-actions svg { width: 16px; height: 16px }
.secondary { color: var(--ink); background: #fff; border: 1px solid #d7d9e0 }
.destructive { color: #a53932 }
.danger { background: #aa3933; color: white }
.icon-button:focus-visible, .account-trigger:focus-visible, .secondary:focus-visible { color: var(--brand-dark); background: var(--hover) }
@media (hover:hover) {
  .primary:hover { background: #5448e3 }
  .secondary:hover, .icon-button:hover, .account-trigger:hover, .account-menu button:hover { background: var(--hover); color: var(--brand-dark) }
  .destructive:hover { background: #f9e6e1 }
  .danger:hover { background: #8b302b }
}
.account-wrap { position: relative }
.account-trigger { background: transparent; font-size: 13px; padding-inline: 5px; max-width: min(45vw, 290px) }
.account-trigger .account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.account-trigger svg { width: 13px }
.avatar { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 29px; height: 29px; border-radius: 50%; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: -.04em; background: var(--avatar, #e5e0f4); color: #35333d }
.team-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit }
.empty-week { padding: 24px; color: var(--muted); font-size: 14px; }
.account-menu { position: absolute; z-index: 3; right: 0; top: 44px; min-width: 140px; padding: 4px; background: #fff; border: 1px solid #e4e6eb; box-shadow: 0 4px 6px -1px #0002, 0 2px 4px -2px #0002; border-radius: 6px }
.account-menu button { width: 100%; justify-content: flex-start }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-block: clamp(27px, 3.5vw, 52px) 23px }
.intro-actions, .week-controls, .week-pager { display: flex; align-items: center; gap: 8px }
.board-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px }
.filter-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.filter-group + .filter-group { border-left: 1px solid #ccc9c1; padding-left: 12px }
.filter-wrap { position: relative }
.filter-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; max-width: 100%; padding: 6px 13px;
  border: 1px solid #e4e6eb; border-radius: 999px;
  background: white; color: #596170;
  font-size: 13px; font-weight: 450; line-height: 20px;
}
.filter-pill svg { width: 14px; height: 14px }
.filter-pill[aria-expanded=true] svg:last-child { transform: rotate(180deg) }
.filter-pill[aria-pressed=true] { border-color: #d9d1ee; background: #f2eef9; color: #625084 }
.filter-menu {
  position: absolute; z-index: 5; top: calc(100% + 4px); left: 0;
  min-width: 200px; max-width: min(300px, 85vw); max-height: min(320px, 55dvh); overflow: auto;
  border: 1px solid #e4e6eb; border-radius: 6px; background: #fff;
  padding: 4px; box-shadow: 0 4px 6px -1px #0002, 0 2px 4px -2px #0002;
}
.filter-menu label, .filter-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; padding: 5px 8px; border-radius: 3px; color: #353842; font-size: 13px; line-height: 1.35; text-align: left; overflow-wrap: anywhere }
.filter-menu label { cursor: pointer }
.filter-menu .avatar { width: 24px; height: 24px; font-size: 10px }
.filter-menu input { width: 16px; height: 16px; accent-color: var(--brand); flex-shrink: 0; margin: 0 }
.filter-menu button { font-weight: 550; color: #5143d0 }
.filter-menu label:focus-within, .filter-menu button:focus-visible { background: var(--hover); color: var(--brand-dark) }
@media (hover: hover) {
  .filter-pill:hover { border-color: #cdd2dc; background: #fafbfc }
  .filter-pill[aria-pressed=true]:hover { border-color: #c9bcdf; background: #eae3f5 }
  .filter-menu label:hover, .filter-menu button:hover { background: var(--hover); color: var(--brand-dark) }
}
.weekbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 14px }
.week-controls { gap: 10px }
.week-label { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 33px); letter-spacing: -.045em; line-height: 1.14 }
.week-pager { gap: 1px; border: 1px solid var(--line); background: var(--sheet); border-radius: 999px; padding: 0 3px }
.week-pager .icon-button { border-radius: 50%; width: 34px; min-height: 34px }
.today-button { border-radius: 999px; min-height: 36px; font-size: 13px }
.board-frame {
  position: relative;
  background: var(--sheet);
  border: 1px solid #c3bfae;
  border-top: 2px solid #444038;
  box-shadow: 1px 3px 0 -1px #fffdf6, 1px 4px 0 -1px #cbc6b5, 1px 6px 0 -2px #fffdf6, 1px 7px 0 -2px #c9c4b4, 0 8px 18px -11px #665e4a70;
}
/* The perforated margin belongs to the planner sheet, above the calendar. */
.board-frame::before {
  content: "";
  display: block;
  height: 16px;
  border-bottom: 1px dashed #ccc6b7;
  background: radial-gradient(ellipse 2.7px 2px at center, #8e897d 40%, #c7c2b5 80%, transparent 100%) 0 2px/30px 10px repeat-x, #faf8ef;
}
table { width: 100%; border-spacing: 0; table-layout: fixed }
th, td { text-align: left; vertical-align: top; font-weight: normal }
th:first-child { width: clamp(112px, 10.7vw, 165px) }
thead th, tbody th, tbody td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line) }
thead th:last-child, tbody td:last-child { border-right: 0 }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0 }
thead th { padding: 16px clamp(8px, 1.2vw, 19px) 14px; background: #f4f2ea }
.desktop-board thead th { position: sticky; top: 0; z-index: 2; }
thead .corner { vertical-align: bottom; color: var(--muted); padding-inline: 16px }
.kicker, .weekday, .paper-label { font: 650 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase }
.weekday { display: block; color: #555760; margin-bottom: 5px }
.date-num { display: inline-block; position: relative; font-family: var(--display); font-weight: 600; font-size: clamp(29px, 2.8vw, 44px); line-height: 1; letter-spacing: -.045em }
thead .is-today .weekday, .day-button.is-today .weekday { color: var(--red) }
.is-today .date-num::after { content: ""; pointer-events: none; position: absolute; inset: -3px -8px -4px; border: 2px solid var(--red); border-radius: 50% 45% 42% 49%; transform: rotate(-9deg) }
tbody .row-label { padding: 20px 12px 18px 15px; background: #f4f1e7 }
.row-person { display: flex; align-items: flex-start; gap: 8px }
.row-person .avatar { width: 31px; height: 31px; font-size: 10px }
.row-person strong, .events-label strong { display: block; overflow-wrap: anywhere; line-height: 1.35; font-size: 13px; font-weight: 640; padding-top: 3px }
.you { color: var(--muted); font-size: 11px; line-height: 1.6 }
.events-label { display: flex; align-items: center; gap: 7px }
.events-label strong { padding: 0 }
.events-label svg { color: var(--red); width: 17px }
tbody td { padding: 12px 8px 7px; position: relative; }
.person-row td { background-image: radial-gradient(#9d92731c .6px, transparent .9px); background-size: 10px 10px }
td.weekend { background-color: #f5f3eb }
td.is-today { background-color: #fdf9ef }
.cards { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 7px; min-height: 92px }
.event-row .cards { min-height: 56px }
/* Keep roster members available for assignments without burying scheduled work. */
.person-row:not(:has(.sticky, .deadline-card, .created-card)) .cards { min-height: 32px }
.person-row:not(:has(.sticky, .deadline-card, .created-card)) td { padding-block: 6px }
.person-row:not(:has(.sticky, .deadline-card, .created-card)) .row-label { padding-block: 9px }
.person-row:not(:has(.sticky, .deadline-card, .created-card)) .cell-add.hint { min-height: 32px }
.cell-add { align-self: stretch; flex: 1; border-radius: 4px; min-height: 30px; text-align: left; padding: 0 7px; color: #676252; font-size: 12px; display: flex; gap: 5px; align-items: center; justify-content: center }
.cell-add svg { width: 15px; height: 15px }
.cell-add span { white-space: nowrap }
.cell-add:not(.hint) { opacity: 0 }
.cell-add:focus-visible { opacity: 1; color: var(--brand-dark); background: #f1eef8 }
.cell-add.hint {
  position: relative;
  min-height: 46px;
  margin: 2px;
  border: 1px dashed #b2a475;
  border-radius: 1px 2px 8px 1px;
  color: #605630;
  background: linear-gradient(145deg, #fff9dc, #f9f0c9);
  box-shadow: 1px 2px 2px #776b4b18;
}
.cell-add.hint::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, #e4d7a2 0 49%, transparent 50%);
  pointer-events: none;
}
.cell-add.hint:focus-visible { outline: 2px solid var(--brand-dark) }
@media (hover:hover) {
  td:hover .cell-add, .cell-add:hover { opacity: 1 }
  .cell-add:hover { background: #eeece4; color: var(--brand-dark) }
}
@media (hover:none) { .cell-add:not(.hint) { opacity: .7 } }
td.drop-target, .mobile-cell.drop-target { background: #edeafc; box-shadow: inset 0 0 0 2px var(--brand) }
.sticky {
  --surface: var(--note-color, #fff198);
  position: relative;
  min-width: 0;
  min-height: 109px;
  display: flex;
  flex-direction: column;
  margin: 3px 1px 4px;
  background: linear-gradient(175deg, #30261109 0, transparent 22%, transparent 80%, #fff4 100%), var(--surface);
  border-radius: 0 1px 7px 1px / 0 1px 3px 1px;
  box-shadow: 0 1px 1px #58491b2e, 1px 5px 5px -4px #57462586, 3px 7px 8px -6px #67573580;
  padding: 17px 10px 8px;
  overflow-wrap: anywhere;
}
.sticky::before, .state-sheet::before {
  content: "";
  position: absolute;
  pointer-events: none;
  width: min(44%, 56px);
  height: 12px;
  top: -5px;
  left: 50%;
  background: repeating-linear-gradient(105deg, #e2d9bed9 0 2px, #e9dfc7da 2px 4px);
  box-shadow: inset 0 -1px #c0b49875;
  transform: translateX(-50%) rotate(-4deg);
  clip-path: polygon(2% 0, 98% 0, 100% 19%, 97% 36%, 100% 59%, 97% 78%, 99% 100%, 1% 100%, 3% 80%, 0 62%, 2% 40%, 0 22%);
}
.sticky::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  pointer-events: none;
  border-top-left-radius: 2px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--surface), #796b40 23%) 4%, color-mix(in srgb, var(--surface), white 28%) 49%, #84795b66 51%, var(--sheet) 62%);
}
.sticky .card-text {
  font: 400 clamp(17px,1.23vw,21px)/1.22 var(--hand);
  letter-spacing: -.02em;
}
.sticky:focus-within { box-shadow: 0 0 0 1px #6559ff70, 2px 4px 7px #58491b36 }
.card-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.33; text-align: left; padding: 0; display: block; width: 100%; min-height: 24px }
button.card-text { cursor: pointer }
.card-controls { margin-top: auto; padding-right: 3px; display: flex; justify-content: flex-end; align-items: center; min-height: 24px; gap: 6px }
.check, .done-stamp { min-height: 24px; min-width: 24px; padding: 1px; display: inline-flex; justify-content: center; align-items: center; gap: 5px; border-radius: 4px; font-size: 11px; color: #4d4d46 }
.check svg, .done-stamp svg { width: 17px; height: 17px }
.check:hover, .check:focus-visible { background: #ffffff75; color: #423882 }
.done-stamp { color: #345642; font: 700 9px var(--mono); letter-spacing: .08em }
.done-stamp span { border: 1px solid currentColor; border-radius: 2px; padding: 2px 4px; transform: rotate(-4deg) }
.linear-link { color: #423886; text-underline-offset: 2px; font-size: 12px; display: inline-flex; align-items: center; min-height: 24px; padding-block: 3px; overflow-wrap: anywhere }
.card-details {
  display: grid; gap: 5px;
  margin: 6px 0; padding-top: 6px; border-top: 1px solid #51482d30;
}
.card-details > div { font-size: 12px; line-height: 1.4; color: #3e3b36 }
.card-details strong { display: block; margin-bottom: 1px; color: #4c463c; font-weight: 650; font-size: 10px; letter-spacing: .025em }
.card-details span { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; white-space: pre-wrap }
.card-created, .card-deadline, .card-byline { font-size: 11px; line-height: 1.35 }
.card-created { color: #514c42; margin-top: 4px }
.card-deadline { align-self: flex-start; display: flex; align-items: center; gap: 3px; margin-block: 4px; font-weight: 600; color: #763d29 }
.card-deadline svg { width: 13px; height: 13px }
.card-byline { margin-right: auto; color: #514d45; overflow-wrap: anywhere }
.deadline-card, .created-card {
  background: #fff7e9; border: 1px solid #e3ccb3; border-left: 3px solid #ad5d36; border-radius: 2px;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 5px;
  width: 100%; min-width: 0; text-align: left; padding: 8px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere;
}
.created-card { background: #f5f2fb; border-color: #d7d1e6; border-left-color: #8b7bad }
.milestone-label { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 650; font-size: 11px; color: #824127 }
.created-card .milestone-label { color: #5d5082 }
.milestone-label svg { width: 13px; height: 13px }
.event-card {
  position: relative;
  margin: 2px 1px;
  padding: 16px 9px 9px;
  background: repeating-linear-gradient(to bottom, transparent 0 17px, #a79b7540 17px 18px), #fffbeb;
  border: 1px solid #d9c998;
  box-shadow: 0 1px 1px #665a3424, 1px 3px 4px -2px #665a3440;
}
.event-card::before {
  content: "";
  position: absolute;
  left: calc(50% - 4px);
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #ee9c74, #bd5741 47%, #91382c 100%);
  box-shadow: 1px 2px 2px #61442e65;
}
.event-card .event-icon { color: #92503e; display: inline-flex; align-items: center; gap: 4px; margin-bottom: 5px; font: 650 10px var(--mono); letter-spacing: .06em; text-transform: uppercase }
.event-icon svg { width: 12px; height: 12px }
.event-card .card-text { font-size: 13px; font-weight: 560; }
.board-footer { color: var(--muted); font-size: 12px; display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; padding-block: 15px 32px; }
.board-footer svg { width: 15px; height: 17px }
.day-strip, .mobile-board { display: none }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3; max-width: min(calc(100vw - 30px), 540px); padding: 12px 18px; border-radius: 8px; background: var(--ink); color: white; box-shadow: 0 4px 18px #0002; font-size: 14px }
.toast:empty { display: none }
.boot-state { padding-block: 80px }
.boot-state p { margin-top: 18px; color: var(--muted) }
.state-sheet { margin: clamp(38px, 8vh, 90px) auto; width: min(790px, 100%); position: relative; background: var(--sheet); border: 1px solid var(--line); box-shadow: 0 5px 0 -2px var(--sheet), 0 6px 0 -2px #cecac0, 0 12px 28px -14px #645a4342; padding: clamp(28px, 6vw, 80px) }
.state-sheet::before { top: -10px; width: 94px; height: 22px }
.state-sheet .paper-label { color: var(--red); display: block; margin-bottom: 20px }
.state-sheet h1 { font-size: clamp(46px, 6.5vw, 84px) }
.state-sheet p { color: var(--muted); margin: 17px 0 26px; max-width: 44ch; font-size: 16px; line-height: 1.55 }
.day-strip-preview { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 40px; border-block: 1px solid var(--line) }
.preview-day { border-right: 1px solid var(--line); padding: 14px 7px; text-align: center }
.preview-day:last-child { border: 0 }
.preview-day .date-num { font-size: clamp(23px, 4vw, 36px) }
dialog { padding: 0; width: min(440px, calc(100% - 28px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid #bbb9b1; border-radius: 12px; color: var(--ink); background: var(--sheet); box-shadow: 0 15px 64px #1d1b342c }
dialog::backdrop {
  background: #38362e66;
  backdrop-filter: blur(2px);
}
#editor {
  --surface: #fff1a1;
  width: min(465px, calc(100% - 28px));
  border: 0;
  border-radius: 2px 2px 15px 2px / 2px 2px 6px 2px;
  background: linear-gradient(167deg, #8b6f2112, transparent 18%, transparent 83%, #fff6), var(--surface);
  box-shadow: 0 2px 3px #312b2060, 4px 15px 30px #312b2040;
}
#editor[data-kind=event] { --surface: #fff9df }
#editor-form { position: relative; border-top: 3px solid #d5b65c80 }
#editor-form::before {
  content: "";
  position: absolute;
  left: calc(50% - 31px);
  top: 0;
  width: 62px;
  height: 9px;
  pointer-events: none;
  background: #c9b47664;
  transform: rotate(-2deg);
}
#editor-title { font: 400 34px/1.12 var(--hand); letter-spacing: -.041em }
#editor .dialog-actions .secondary { background: #fffdf5 }
#editor :is(.primary,.secondary,.destructive) { border-radius: 6px }
#editor .dialog-top .paper-label { color: #65572d }
#editor .writing-area textarea {
  border: 0;
  border-bottom: 1px solid #ad9b585e;
  border-radius: 0;
  background: repeating-linear-gradient(to bottom,transparent 0 26px,#b3a67366 26px 27px);
  font: 400 23px/27px var(--hand);
  padding: 0 3px;
  min-height: 83px;
}
#editor #entry-text:focus-visible {
  outline: none;
  border-bottom-color: var(--brand-dark);
  box-shadow: inset 0 -2px var(--brand-dark);
  background-color: #fffc;
}
#editor .dialog-top { position: absolute; top: 14px; right: 14px; margin: 0 }
#editor .dialog-top .paper-label { display: none }
#editor-title { padding-right: 37px }
#editor textarea::placeholder { opacity: 1; color: #71663f }
#note-details { border-block: 1px solid #bcaa6866; margin-top: 18px }
#note-meta { cursor: pointer; padding: 12px 0; font-size: 13px; font-weight: 620; color: #4c4633 }
.detail-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding-bottom: 14px }
.detail-fields .check-label { align-self: end; margin: 0; font-size: 13px }
.detail-fields textarea { min-height: 57px; font-size: 14px }
#created-info { margin-top: 12px; color: #625b43; font-size: 12px; line-height: 1.45 }
#editor input[type=date], #editor select, #editor .detail-fields textarea {
  background-color: #fffdf0;
  border-color: #c9bc88;
}

#editor-form, .confirm-body { padding: 23px }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin: -6px -5px 4px 0 }
.dialog-top .paper-label { color: var(--muted) }
.dialog-top .icon-button { width: 32px; min-height: 32px }
#entry-fields { margin-top: 22px }
#entry-fields label:not(.check-label) { display: block; font-size: 13px; font-weight: 620; margin-bottom: 7px }
textarea, input[type=date], select { width: 100%; background: #fff; border: 1px solid #babbbf; border-radius: 6px; color: var(--ink); padding: 9px 10px; font-size: 15px }
textarea { resize: vertical; line-height: 1.4; min-height: 82px }
input[type=date], select { min-height: 40px; min-width: 0 }
.fields-row { display: flex; gap: 14px; margin-top: 16px }
.fields-row > div { flex: 1; min-width: 0 }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 38px; margin-top: 12px; font-size: 14px }
.check-label input { width: 16px; height: 16px; accent-color: var(--brand) }
.dialog-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 24px }
.spacer { flex: 1 }
.error { color: #943831; margin-top: 12px; font-size: 14px; line-height: 1.4 }
.confirm-body p { font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 12px; overflow-wrap: anywhere }
@media (max-width: 900px) {
  .shell { padding-inline: clamp(16px, 3.9vw, 32px) }
  .intro { padding-block: 30px 21px }
  .desktop-board { display: none }
  .day-strip { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); border-bottom: 1px solid var(--line); background: #f3f1e9 }
  .day-button { text-align: center; padding: 14px 1px 12px; border-bottom: 3px solid transparent; border-right: 1px solid var(--line) }
  .day-button:last-child { border-right: 0 }
  .day-button[aria-pressed=true] { border-bottom-color: var(--brand); background: #efecfc; color: #45399f }
  .day-button .date-num { font-size: 27px }
  .mobile-board { display: block }
  .mobile-cell { padding: 14px; border-bottom: 1px solid var(--line) }
  .mobile-cell:last-child { border-bottom: 0 }
  .mobile-cell[data-drop-owner]:not(:has(.sticky, .deadline-card, .created-card)) {
    display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-block: 9px;
  }
  .mobile-cell[data-drop-owner]:not(:has(.sticky, .deadline-card, .created-card)) .cards {
    flex: 0 0 auto; display: block; min-height: 0; margin: 0;
  }
  .mobile-cell[data-drop-owner]:not(:has(.sticky, .deadline-card, .created-card)) .cell-add {
    min-height: 36px; padding-inline: 9px;
  }
  .mobile-cell .row-person { align-items: center }
  .mobile-cell .row-person strong { padding: 0 }
  .mobile-cell .you { margin-left: 6px }
  .mobile-cell .cards { margin-top: 10px; min-height: 37px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(135px,100%),1fr)); align-items: start }
  .mobile-cell .cell-add { justify-self: stretch; min-height: 43px; align-self: stretch; opacity: 1 }
  .mobile-cell .cards:has(.sticky, .event-card) .cell-add { justify-self: start; align-self: start }
  .mobile-cell .cell-add:only-child { justify-content: flex-start; color: var(--muted) }
  .mobile-cell .cell-add.hint:only-child { justify-content: center }
  .board-footer { padding-bottom: 24px }
}
@media (max-width: 550px) {
  .board-filters { gap: 8px; margin-bottom: 18px }
  .board-filters .filter-group { gap: 5px; border-left: 0; padding-left: 0 }
  .filter-group:first-child { position: relative }
  .filter-wrap { position: static }
  .filter-menu { min-width: min(220px, calc(100vw - 40px)) }
  .filter-pill { padding: 4px 10px; min-height: 34px }
  .topbar-inner { height: 58px }
  .wordmark img { width: 133px }
  .intro { align-items: flex-start; flex-direction: column; gap: 18px }
  h1 { font-size: clamp(36px, 10.5vw, 53px) }
  .intro-actions { align-self: flex-end; margin-top: -2px }
  .button, .account-trigger, .dialog-top .icon-button { min-height: 42px }
  .weekbar { align-items: center }
  .week-controls { gap: 5px }
  .week-pager .icon-button { width: 29px; min-height: 33px }
  .week-label { font-size: clamp(19px, 5vw, 24px); max-width: 57% }
  .today-button { min-height: 35px; padding: 0 8px }
  .weekday { font-size: 9px; letter-spacing: .06em }
  .fields-row { gap: 10px }
  #editor input[type=date], #editor select, #editor .detail-fields textarea { font-size: 16px }
  .detail-fields { grid-template-columns: minmax(0,1fr) }
  .detail-fields .check-label { min-height: 36px }
  .sticky .card-text { font-size: 19px }
  .mobile-cell .sticky { min-height: 104px }
  .mobile-cell .cards { gap: 12px }

  #editor-form, .confirm-body { padding: 19px }
  .day-strip-preview { margin-top: 30px }
  .state-sheet { padding: 25px 18px }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important } }
.color-0 { --note-color: #fff095; --avatar: #f6e7a7 }
.color-1 { --note-color: #ded3fa; --avatar: #e2daf2 }
.color-2 { --note-color: #d4ecba; --avatar: #d9e8d9 }
.color-3 { --note-color: #ffcbb6; --avatar: #f1d7c9 }
.color-4 { --note-color: #c8e5ef; --avatar: #d7e8f0 }

.carryover {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 20px;
  margin: 0 0 21px;
  padding-block: 10px 12px;
  border-block: 1px solid #cfc9b8;
}
.carryover h2 { margin-top: 15px; font-size: 25px }
.carryover ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(225px, 86%);
  gap: 12px;
  margin: 0;
  padding: 7px 8px 8px 3px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}
.carry-sticky { min-height: 98px; margin: 0; padding: 13px 12px 8px; scroll-snap-align: start }
.carry-owner { margin-bottom: 4px; color: #514c42; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere }
.carry-owner time { white-space: nowrap }
.carry-sticky .card-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.carry-actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; padding: 5px 3px 0 0 }
.carry-actions .button { background: #fffaf0bb; color: #484333; border-color: #5d50304a; min-height: 27px; font-size: 11px; padding: 0 9px; border-radius: 999px }
.carry-actions .check { min-width: 27px; min-height: 27px }
@media (max-width: 550px) {
  .carryover { grid-template-columns: minmax(0,1fr); gap: 4px; padding-block: 8px 5px }
  .carryover h2 { margin: 0; font-size: 23px }
  .carry-actions .button, .carry-actions .check { min-height: 30px }
}

