:root {
  --bg: #ebe6dc;
  --ink: #1b1914;
  --muted: #6e675c;
  --line: rgba(27, 25, 20, 0.1);
  --card: #fbf9f5;
  --danger: #9c3b32;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 14px 34px rgba(70, 48, 20, 0.06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(255, 255, 255, 0.75), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
body.in { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #ead7b6; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: white;
  padding: 8px 12px;
  z-index: 80;
}
.skip:focus { left: 12px; }

.login {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  gap: 28px;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  max-width: 1080px;
  margin: 0 auto;
}
.kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(3.1rem, 9vw, 5.4rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}
.login-lede {
  max-width: 34ch;
  margin: 16px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}
.card-panel {
  background: var(--card);
  border: 1px solid rgba(27, 25, 20, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span, .label {
  font-size: 0.82rem;
  color: var(--muted);
}
.field input, .field textarea, .field select, .search, .ask-row input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  font-size: 16px;
}
.field textarea { min-height: 88px; resize: vertical; }
.form-error { color: var(--danger); margin: 0 0 12px; min-height: 0; }
.demo { margin-top: 18px; }
.demo summary { cursor: pointer; color: var(--muted); }
.demo-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  border: 0;
  background: transparent;
  border-top: 1px solid var(--line);
  padding: 10px 0;
}
.demo-row strong { display: block; }
.demo-row em { font-style: normal; color: var(--muted); font-size: 0.88rem; }

.shell { min-height: 100dvh; }
.sidebar { display: none; }
.main { padding: 16px 16px 8px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 560; letter-spacing: -0.03em; line-height: 1; }
.brand em { display: block; font-style: normal; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--ink);
  color: #f4efe6;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}
.top-tools { display: flex; align-items: center; gap: 8px; }
.bell {
  position: relative;
  border: 0;
  background: transparent;
  font-weight: 600;
  padding: 8px 4px;
  border-radius: 999px;
}
.bell-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: #f6f2ea;
  font-size: 0.75rem;
  line-height: 1.35rem;
}
.questions { display: grid; gap: 8px; margin: 8px 0 4px; }
.question { background: #f3ecdf; border-radius: 14px; padding: 10px 12px; }
.question strong { display: block; font-size: 0.85rem; }
.question p { margin: 4px 0 0; }
.ask-row { display: flex; gap: 8px; align-items: center; }
.ask-row input { flex: 1; min-width: 0; }
.notice-list { display: grid; gap: 8px; }
.notice {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 0;
  background: #f6f2ea;
  border-radius: 16px;
  padding: 12px 14px;
}
.notice.is-new { background: #f3ecdf; box-shadow: inset 3px 0 0 var(--ink); }
.notice small { color: var(--muted); }
.pill.report { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.plus {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: #f6f2ea;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.me-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 4px;
  border-radius: 999px;
}
.me-chip .who { font-weight: 600; }
.page-head { display: grid; gap: 14px; margin-bottom: 16px; }
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.page-sub { margin: 6px 0 0; color: var(--muted); max-width: 46ch; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin: 0 0 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip, .nav-btn, .status, .choice, .person, .seg button, .tab {
  border: 0;
  background: transparent;
}
.chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  font-weight: 500;
}
.chip.is-on { background: var(--ink); color: #f6f2ea; }

.stack { display: grid; gap: 18px; }
.stack-h {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.board-scroll { overflow-x: auto; width: 100%; max-width: 100%; padding-bottom: 12px; }
.board {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  gap: 16px;
  width: max-content;
  min-width: 100%;
}
.board > .col {
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
}
.board > .col-add {
  flex: 0 0 168px;
  width: 168px;
  min-width: 168px;
  max-width: 168px;
}
.board .col-list { min-height: 88px; min-width: 0; max-width: 100%; }
.add-lane {
  width: 100%;
  min-height: 140px;
  border: 1.5px dashed rgba(27, 25, 20, 0.28);
  border-radius: 18px;
  background: transparent;
  font-weight: 600;
}
.col-name {
  border: 0;
  background: transparent;
  padding: 0;
  font-family: var(--serif);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}
.board .card, .board .card .card-hit { cursor: grab; }
.board .card .status { cursor: pointer; }
.board .card.is-dragging, .board .card.is-dragging .card-hit { cursor: grabbing; opacity: 0.45; }
.board .col.is-drop {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.45);
  outline: 1.5px dashed rgba(27, 25, 20, 0.38);
  outline-offset: 6px;
}
.col-h {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
  min-width: 0;
}
.col-h[draggable="true"] { cursor: grab; }
.col-h.is-lane-from { opacity: 0.45; }
.col-grip {
  flex: none;
  width: 18px;
  height: 22px;
  margin: 0 2px 0 -4px;
  color: var(--muted);
  cursor: grab;
  background: radial-gradient(circle, currentColor 1.15px, transparent 1.25px) 3px 3px / 6px 5px;
}
.board > .col.is-lane-drop { box-shadow: inset 3px 0 0 var(--ink); border-radius: 16px; }
.col-h span { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); }
.col-list { display: grid; gap: 10px; }

.card {
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid rgba(27, 25, 20, 0.06);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px 14px 12px;
}
.card-top, .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.who-line { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 0.88rem; }
.who-line > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-hit {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 0 4px;
}
.card-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 560;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.filters { display: grid; gap: 8px; }
.filters select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px;
  font-size: 16px;
}
.drop {
  border: 1.5px dashed rgba(27, 25, 20, 0.28);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
  margin: 4px 0 12px;
}
.drop.is-over { background: #f3ecdf; border-color: var(--ink); }
.drop p { margin: 0; color: var(--muted); }
.drop button { border: 0; background: transparent; padding: 0; font-weight: 600; text-decoration: underline; cursor: pointer; }
.thumbs, .card-images { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs { margin: 0 0 12px; }
.thumbs figure { position: relative; margin: 0; }
.thumbs img, .card-images img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #efeae2;
}
.card-images { margin: 10px 0 0; }
.card-images img { width: 72px; height: 52px; }
.thumb-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 99px;
  background: rgba(27, 25, 20, 0.78);
  color: #fff;
  line-height: 1;
}
.card-note {
  margin: 6px 0 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 9px 4px 7px;
  background: color-mix(in srgb, var(--c) 16%, white);
  font-size: 0.82rem;
  font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 99px; background: var(--c); display: inline-block; }
.lock { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.status {
  border-radius: 999px;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #e6dfd2;
  box-shadow: inset 0 0 0 1px rgba(27, 25, 20, 0.08);
}
.status[data-status="later"] { background: #e3e0ea; color: #3c3850; }
.status[data-status="doing"] { background: #f3e0c8; color: #8a4e10; }
.status[data-status="done"] { background: #dce8e1; color: #1e5c3d; }
.card.is-done { opacity: 0.72; }
.avatars { display: flex; }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 99px;
  display: grid;
  place-items: center;
  color: #f7f4ee;
  font-size: 0.68rem;
  font-weight: 600;
  border: 2px solid var(--card);
  margin-left: -6px;
}
.avatars .avatar:first-child { margin-left: 0; }
.avatar.more { background: #d9d2c6; color: var(--ink); }
.due { font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.due.overdue { color: var(--danger); font-weight: 600; }
.due.today { color: #8a4e10; font-weight: 600; }
.empty {
  padding: 28px 8px 12px;
  max-width: 36ch;
}
.empty h2 { font-family: var(--serif); font-weight: 560; font-size: 2rem; margin: 0 0 8px; letter-spacing: -0.03em; }
.empty p { color: var(--muted); margin: 0 0 16px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  background: transparent;
}
.btn.primary { background: var(--ink); color: #f6f2ea; }
.btn.ghost { background: rgba(255,255,255,.6); }
.btn.danger { color: var(--danger); padding-left: 0; }
.sheet-bar .btn.danger {
  padding: 12px 16px;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--danger) 55%, transparent);
}
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(251, 249, 245, 0.9);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 4px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-on { color: var(--ink); background: rgba(255,255,255,.8); }

.sheet-back {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(28, 24, 18, 0.38);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: min(640px, 100%);
  max-height: min(92dvh, 880px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 24px 24px 0 0;
  padding: 0;
}
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 0; flex: none; }
.sheet-scroll { overflow: auto; padding: 4px 18px 12px; }
.sheet-bar {
  flex: none;
  display: grid;
  gap: 8px;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--card);
}
.sheet-head h2 { margin: 0; font-family: var(--serif); font-weight: 560; font-size: 1.7rem; letter-spacing: -0.03em; }
.title-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 0 12px;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet-scroll.is-todo { padding: 6px 22px 20px; }
.sheet-scroll.is-todo .title-input {
  border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
  padding-bottom: 14px;
}
.sheet-scroll.is-todo .field span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.sheet-scroll.is-todo .field { margin-bottom: 12px; }
.sheet-scroll.is-todo .field input,
.sheet-scroll.is-todo .field textarea,
.sheet-scroll.is-todo .field select {
  background: #f4f0e8;
  border-color: transparent;
}
.sheet-scroll.is-todo .field textarea { min-height: 108px; }
.note-stack { margin-bottom: 8px; }
.note-stack .drop {
  margin-top: -2px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #f4f0e8;
  border: 1px dashed rgba(27, 25, 20, 0.22);
}
.note-stack .thumbs { margin: 10px 0 4px; }
.sheet-block {
  margin: 0 0 12px;
  padding: 14px 14px 8px;
  background: #f4f0e8;
  border-radius: 18px;
}
.sheet-block .kicker { margin-bottom: 10px; }
.sheet-block .choice-grid,
.sheet-block .people { margin: 0 0 10px; }
.sheet-scroll.is-todo .seg {
  margin: 0 0 6px;
  padding: 0;
  gap: 8px;
  background: transparent;
}
.sheet-scroll.is-todo .seg button {
  flex: 0 0 auto;
  border: 0;
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 500;
}
.sheet-scroll.is-todo .seg button.is-on {
  background: var(--ink);
  color: #f6f2ea;
}
.sheet-scroll.is-todo .choice,
.sheet-scroll.is-todo .person {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(27, 25, 20, 0.06);
}
.sheet-scroll.is-todo .choice.is-on,
.sheet-scroll.is-todo .person.is-on {
  outline: none;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--c, var(--ink));
}
.who-groups { display: flex; flex-direction: column; gap: 14px; margin: 2px 0 10px; }
.who-group .kicker { margin: 0 0 8px; }
.who-group .people { margin: 0; }
.person .avatar { margin-left: 0; border-color: #fff; }
.who-block .coverage {
  margin: 2px 0 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(27, 25, 20, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}
.coverage {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}
.sheet-scroll.is-todo .questions { margin-top: 16px; }
.sheet-scroll.is-todo .switch {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {
  .pair { grid-template-columns: 1fr; }
}
.choice-grid, .people { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.choice, .person {
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 500;
}
.choice.is-on, .person.is-on {
  outline: 2px solid var(--c, var(--ink));
  background: color-mix(in srgb, var(--c, #1b1914) 14%, white);
}
.person { display: inline-flex; align-items: center; gap: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.seg button { flex: 1 1 120px; border-radius: 12px; padding: 10px 6px; background: #fff; border: 1px solid var(--line); font-weight: 600; }
.seg button.is-on { background: var(--ink); color: #f6f2ea; border-color: var(--ink); }
.switch {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 16px;
}
.switch input { width: 18px; height: 18px; margin-top: 3px; }
.swatches { display: flex; gap: 8px; margin: 8px 0 16px; }
.swatch {
  width: 28px; height: 28px; border-radius: 99px; border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(27,25,20,.15);
}
.swatch.is-on { box-shadow: 0 0 0 2px var(--ink); }
.cluster-grid { display: grid; gap: 12px; }
.cluster-card {
  text-align: left;
  border-radius: 20px;
  padding: 16px;
  background: var(--card);
  border: 1px solid rgba(27,25,20,.06);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--c);
}
.cluster-card h3 { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 560; }
.cluster-card p { margin: 4px 0 12px; color: var(--muted); }
.link-list { max-width: 720px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.link-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.link-row a {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.link-row strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 560; }
.link-row small { color: var(--muted); display: block; }
.link-go {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f4f0e8;
  flex: 0 0 auto;
}
.link-tools { display: flex; gap: 4px; flex: 0 0 auto; }
.link-tools button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 10px;
}
.link-tools button:hover { background: #f4f0e8; color: var(--ink); }
.link-tools button:disabled { opacity: 0.35; }

.person-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.person-row .grow { flex: 1; min-width: 0; }
.person-row small { color: var(--muted); display: block; }
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: var(--ink);
  color: #f6f2ea;
  border-radius: 999px;
  padding: 10px 14px;
  z-index: 40;
  max-width: min(90vw, 420px);
}
.banner {
  background: #f3ecdf;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

@media (min-width: 720px) {
  .sheet-back { align-items: center; padding: 24px; }
  .sheet { border-radius: 24px; max-height: min(86dvh, 840px); }
  .sheet-bar { padding-bottom: 16px; }
}
@media (min-width: 960px) {
  body.in { padding-bottom: 0; }
  .shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
  .shell.is-rail { grid-template-columns: 76px minmax(0, 1fr); }
  .main { min-width: 0; }
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: sticky;
    top: 0;
    height: 100dvh;
    padding: 22px 16px 18px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 65%, white);
  }
  .nav-btn {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 600;
  }
  .nav-btn.is-on, .side-cluster.is-on { background: #fff; }
  .side-cluster {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 500;
  }
  .side-label { margin: 18px 12px 6px; }
  .sidebar .btn.primary { margin-top: auto; }
  .main { padding: 28px 36px 48px; }
  .page-head { grid-template-columns: 1fr minmax(180px, 280px); align-items: end; }
  .board { align-items: start; }
  .nav-btn svg { width: 20px; height: 20px; flex: none; }
  .nav-btn { gap: 10px; }
  .rail-btn {
    margin-left: auto;
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 1.3rem;
    line-height: 1;
  }
  .rail-only { display: none; }
  .shell.is-rail .brand-words,
  .shell.is-rail .nav-label,
  .shell.is-rail .nav-count,
  .shell.is-rail .side-label,
  .shell.is-rail .cname { display: none; }
  .shell.is-rail .rail-only { display: inline; }
  .shell.is-rail .nav-btn,
  .shell.is-rail .side-cluster { justify-content: center; padding-left: 8px; padding-right: 8px; }
  .shell.is-rail .brand { justify-content: center; }
  .shell.is-rail .rail-btn { margin-left: 0; }
  .shell.is-rail .sidebar .btn.primary { padding: 12px 0; }
  .mobile-only { display: none !important; }
  .tabbar { display: none; }
  .toast { bottom: 24px; }
  .cluster-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 959px) {
  .desktop-only { display: none !important; }
  .me-chip .who { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (hover: hover) {
  .card:hover { transform: translateY(-1px); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
