/* ===== Idea dock — the big board-space panel beside the categories (idea.js) =====
   World-mounted: lives inside #world, so it pans/zooms with the whiteboard.
   Its content is laid out at screen px (--iw × --ih) and scaled up by `zoom: --dz`. */
.idea-dock {
  --cat: var(--acid);
  position: absolute; z-index: 8;
  color: var(--ink);
  transform-origin: 0 0;
}
.idea-dock[data-side="right"] { transform-origin: 0 50%; }
.idea-dock[data-side="left"] { transform-origin: 100% 50%; }
.idea-dock.is-enter { animation: dk-in 0.5s var(--ease-spring) both; }
.idea-dock.is-swap .dk-inner { animation: dk-swap 0.42s var(--ease-out) both; }
.idea-dock.is-leaving { animation: dk-out 0.24s var(--ease-out) forwards; pointer-events: none; }
@keyframes dk-in { from { opacity: 0; transform: scale(0.94) rotate(-0.8deg); } }
@keyframes dk-swap { 0% { opacity: 0.2; transform: translateY(14px) rotate(0.4deg); } }
@keyframes dk-out { to { opacity: 0; transform: scale(0.97); } }

.dk-inner {
  zoom: var(--dz, 1);
  width: var(--iw, 100%); min-height: var(--ih, 100%);
  position: relative; display: flex; flex-direction: column;
  background: var(--card);
  border: var(--bw) solid var(--line); border-radius: var(--r-lg);
  box-shadow: 10px 10px 0 var(--ink);
}
.idea-dock[data-side="left"] .dk-inner { box-shadow: -10px 10px 0 var(--ink); }
.dk-inner::before { /* category stripe down the board-facing edge */
  content: ""; position: absolute; top: 0; bottom: 0; width: 10px; z-index: 2;
  background: repeating-linear-gradient(-45deg, var(--cat) 0 10px, color-mix(in srgb, var(--cat) 70%, #0e0e10) 10px 12px);
}
.idea-dock[data-side="right"] .dk-inner::before, .idea-dock.is-sheet .dk-inner::before { left: 0; border-right: 1.5px solid var(--line); }
.idea-dock[data-side="left"] .dk-inner::before { right: 0; border-left: 1.5px solid var(--line); }
.dk-tape {
  position: absolute; top: -2px; left: 50%; width: 110px; height: 22px; z-index: 3;
  transform: translateX(-50%) rotate(-2deg);
  background: color-mix(in srgb, var(--acid) 75%, transparent);
  border: 1px solid rgba(14,14,16,.25);
}

/* ---------- head ---------- */
.dk-head { padding: 26px 28px 18px 32px; border-bottom: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.idea-dock[data-side="left"] .dk-head { padding: 26px 32px 14px 28px; }
.dk-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: var(--f-mono); font-size: 11.5px; }
.dk-cat {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  background: var(--cat); color: #0e0e10; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1.5px solid #0e0e10; box-shadow: 2px 2px 0 #0e0e10; transform: rotate(var(--rot, -2deg));
}
.dk-stage { display: inline-flex; gap: 5px; padding: 3px 9px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); }
.dk-when { color: var(--ink-3); }
.dk-mine { color: var(--hot); font-weight: 700; }
.dk-head-acts { margin-left: auto; display: flex; gap: 6px; }
.dk-icon {
  width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px;
  background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-sm);
  transition: transform 0.15s var(--ease-spring), background 0.15s;
}
.dk-icon:hover { transform: translate(-1px, -1px) rotate(-4deg); background: var(--acid); box-shadow: 2px 2px 0 var(--ink); }
.dk-icon.is-done { background: var(--pi-lime); }
.dk-x { font-size: 22px; line-height: 1; background: var(--ink); color: var(--paper); }
.dk-x:hover { background: var(--hot); color: #0e0e10; }
.dk-title {
  margin: 14px 0 6px; outline: none;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 40px; line-height: 1; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.dk-pitch { margin: 0; font-size: 16px; line-height: 1.45; color: var(--ink-2); }

/* ---------- body ---------- */
.dk-body {
  flex: 1; display: flex; flex-direction: column; gap: 18px;
  padding: 18px 28px 30px 32px; border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.dk-body > :empty { display: none; }
.idea-dock[data-side="left"] .dk-body { padding: 20px 32px 28px 28px; }
@keyframes dk-rise { from { opacity: 0; transform: translateY(8px); } }
.dk-k { font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--ink-3); }

/* video */
.dk-video-slot:empty { display: none; }
.dk-video { position: relative; aspect-ratio: 16 / 9; border: var(--bw) solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #0e0e10; box-shadow: 4px 4px 0 var(--cat); }
.dk-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.dk-video-lite { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.dk-video-lite img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--ease-out); }
.dk-video-lite:hover img { transform: scale(1.03); }
.dk-video-lite:focus-visible { outline: 3px solid var(--hot); outline-offset: -3px; }
.dk-play {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; transform: translate(-50%, -50%) rotate(-4deg);
  display: grid; place-items: center; background: var(--hot); border: var(--bw) solid #0e0e10; border-radius: 50%; box-shadow: 3px 3px 0 #0e0e10;
  transition: transform 0.2s var(--ease-spring);
}
.dk-video-lite:hover .dk-play { transform: translate(-50%, -50%) rotate(4deg) scale(1.08); }
.dk-play-tri { width: 0; height: 0; margin-left: 5px; border-left: 18px solid #0e0e10; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.dk-video-tag { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; background: var(--acid); color: #0e0e10; border: 1.5px solid #0e0e10; }

.dk-note {
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 170px;
  padding: 18px 14px 10px; background: var(--pi); color: #0e0e10;
  border: 1.5px solid rgba(14,14,16,.6); box-shadow: var(--shadow-postit);
  transform: rotate(var(--rot)); cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.dk-note::before { /* tape */
  content: ""; position: absolute; top: -9px; left: 50%; width: 54px; height: 16px; transform: translateX(-50%) rotate(-3deg);
  background: rgba(255,255,255,.55); border: 1px solid rgba(14,14,16,.15);
}
.dk-note:hover, .dk-note:focus-visible { transform: rotate(0) translateY(-4px) scale(1.02); box-shadow: 0 2px 2px rgba(0,0,0,.12), 0 16px 24px -8px rgba(0,0,0,.35); z-index: 2; }
.dk-note.is-mine { outline: 2px dashed #0e0e10; outline-offset: 4px; }
.dk-note.is-new { animation: dk-note-in 0.4s var(--ease-spring) both; animation-delay: var(--d); }
@keyframes dk-note-in { from { opacity: 0; transform: rotate(var(--rot)) translateY(14px) scale(0.92); } }
.dk-note-title { margin: 0; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.dk-note-text { margin: 0; flex: 1; font-family: var(--f-marker); font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.dk-note-foot { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; }
.dk-note-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-note-more { margin-left: auto; font-weight: 700; }
.dk-note-react { display: flex; gap: 4px; padding-top: 6px; border-top: 1px dashed rgba(14,14,16,.35); }
.dk-react { display: inline-flex; gap: 3px; align-items: center; padding: 2px 7px; font-size: 13px; background: rgba(255,255,255,.45); border: 1px solid rgba(14,14,16,.3); border-radius: var(--r-pill); transition: transform 0.15s var(--ease-spring); }
.dk-react b { font-family: var(--f-mono); font-size: 11px; }
.dk-react:hover { transform: scale(1.12) rotate(-4deg); background: #fff; }
.dk-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 20px;
  background: var(--paper); border: 2px dashed var(--ink-3); border-radius: var(--r-lg);
}
.dk-empty:hover { border-color: var(--line); background: color-mix(in srgb, var(--pi-yellow) 25%, var(--paper)); }
.dk-empty-pi { width: 58px; height: 58px; display: grid; place-items: center; font-family: var(--f-marker); font-size: 30px; background: var(--pi-yellow); border: 1.5px solid #0e0e10; box-shadow: var(--shadow-postit); transform: rotate(-7deg); }
.dk-empty-big { font-family: var(--f-display); font-style: italic; font-size: 28px; }
.dk-empty-sub { font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }

/* ---------- sheet mode: tablets, phones + list view (rest of it at the end of this file) ---------- */
.idea-panel {
  position: fixed; z-index: 150;
  top: calc(var(--topbar-h, 64px) + 10px); right: 12px; bottom: calc(var(--nav-h, 0px) + 12px); width: min(560px, calc(100vw - 24px));
  visibility: hidden; pointer-events: none;
}
.idea-panel.is-open, .idea-panel.is-closing { visibility: visible; }
.idea-panel.is-open:not(.is-closing) { pointer-events: auto; }
.idea-dock.is-sheet { position: relative; width: 100%; height: 100%; }
.idea-dock.is-sheet .dk-inner { zoom: 1; width: 100%; height: 100%; min-height: 0; overflow-y: auto; overscroll-behavior: contain; box-shadow: 8px 8px 0 var(--ink); }
.idea-dock.is-sheet.is-enter { animation: dk-sheet-in 0.42s var(--ease-spring) both; }
@keyframes dk-sheet-in { from { opacity: 0; transform: translateX(40px) rotate(1deg); } }
@media (pointer: coarse) {
  .dk-icon { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .idea-dock, .dk-inner, .dk-notes, .dk-note, .dk-prose { animation: none !important; }
}

/* while a dock is framed on one side, nudge the floating HUD bits off it */
/* (data-dock is only set by the board-mounted dock, i.e. desktop > 1024px; the nav-h terms keep it safe anyway) */
html[data-dock="left"] .mm-dock { left: auto; right: 20px; bottom: calc(var(--nav-h, 0px) + 74px); align-items: flex-end; }
html[data-dock="right"] .zoom-hud { right: auto; left: 228px; }
html[data-dock="right"]:has(.minimap.is-collapsed) .zoom-hud { left: 20px; bottom: calc(var(--nav-h, 0px) + 56px); }

/* ---------- single page sections ---------- */
.dk-live { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dk-live-a { font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 4px 10px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-pill); }
.dk-live-a:hover { background: var(--acid); }
.dk-manage { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; font-size: 13px; }
.dk-mini { font-family: var(--f-mono); font-size: 11.5px; font-weight: 600; padding: 4px 10px; background: none; border: 1.5px dashed var(--line); border-radius: var(--r-pill); color: var(--ink); }
.dk-mini:hover { background: var(--acid); border-style: solid; }
.dk-del { background: var(--hot); color: #0e0e10; }

/* full story: a bar right below the header that unfolds in place */
.dk-story { border: var(--bw) solid var(--line); border-radius: var(--r-md); background: var(--card); }
.dk-story[open] { box-shadow: 3px 3px 0 var(--ink); }
.dk-story-bar {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  font-weight: 700; font-size: 15px; border-radius: calc(var(--r-md) - 2px);
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--cat) 22%, var(--card)) 0 12px, var(--card) 12px 24px);
}
.dk-story-bar::-webkit-details-marker { display: none; }
.dk-story-bar:hover { background: color-mix(in srgb, var(--cat) 35%, var(--card)); }
.dk-story[open] .dk-story-bar { background: color-mix(in srgb, var(--cat) 35%, var(--card)); border-bottom: 1.5px solid var(--line); border-radius: calc(var(--r-md) - 2px) calc(var(--r-md) - 2px) 0 0; }
.dk-story-k { width: 24px; height: 24px; display: grid; place-items: center; font-family: var(--f-display); font-size: 18px; background: var(--ink); color: var(--paper); border-radius: 4px; }
.dk-story-aside { font-family: var(--f-mono); font-size: 11px; font-weight: 500; padding: 1px 7px; border: 1px solid currentColor; border-radius: var(--r-pill); color: var(--ink-2); }
.dk-dd-chev { margin-left: auto; transition: transform 0.2s var(--ease-spring); }
.dk-story[open] .dk-dd-chev { transform: rotate(180deg); }
.dk-prose { padding: 14px 16px 16px; animation: dk-rise 0.25s var(--ease-out) both; }
.dk-prose p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; }
.dk-prose p:last-child { margin-bottom: 0; }

/* who / stage / share */
.dk-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-cell { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.dk-stagecell, .dk-sharecell { grid-column: 1 / -1; }
.dk-who-row { display: flex; align-items: center; gap: 10px; }
.dk-author-name { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.dk-you { font-family: var(--f-mono); font-size: 10px; padding: 0 5px; background: var(--hot); color: #0e0e10; border-radius: 4px; }
.dk-socials { display: flex; gap: 6px; flex-wrap: wrap; }
.dk-social { font-family: var(--f-mono); font-size: 11.5px; padding: 3px 9px; border: 1.5px solid var(--line); border-radius: var(--r-pill); color: var(--ink); text-decoration: none; background: var(--card); }
.dk-social:hover { background: var(--acid); }
.dk-who { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.dk-who .dk-k { flex-basis: 100%; }
.dk-meter { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.dk-meter li { display: flex; flex-direction: column; gap: 6px; font-family: var(--f-mono); font-size: 10px; color: var(--ink-3); }
.dk-meter-bar { height: 12px; border: 1.5px solid var(--line); border-radius: 3px; background: var(--card); }
.dk-meter li.is-done .dk-meter-bar { background: var(--ink); }
.dk-meter li.is-now .dk-meter-bar { background: var(--cat); box-shadow: 2px 2px 0 var(--ink); }
.dk-meter li.is-now { color: var(--ink); font-weight: 700; }
.dk-linkbox { display: flex; gap: 8px; align-items: center; }
.dk-linkbox code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 9px 10px; background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r-sm); }
.dk-copy { flex: none; font-size: 12px; }

/* votes */
.dk-votes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dk-vote {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left;
  background: var(--card); border: var(--bw) solid var(--line); border-radius: var(--r-md); box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s var(--ease-spring), background 0.15s, box-shadow 0.15s;
}
.dk-vote:hover { transform: translate(-1px, -2px) rotate(-0.6deg); box-shadow: 4px 5px 0 var(--ink); }
.dk-vote:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.dk-vote.is-use.is-on { background: var(--pi-lime); }
.dk-vote.is-pay.is-on { background: var(--acid); }
.dk-vote-e { font-size: 24px; }
.dk-vote-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dk-vote-t b { font-size: 15px; }
.dk-vote-t small { font-family: var(--f-mono); font-size: 10.5px; color: var(--ink-2); }

/* advice */
.dk-adv { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 2px solid var(--line); }
.dk-adv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dk-adv-title { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 34px; line-height: 1; }
.dk-adv-n { font-family: var(--f-mono); font-style: normal; font-size: 12px; padding: 2px 7px; background: var(--hot); color: #0e0e10; border: 1.5px solid #0e0e10; }
.dk-sorts { display: flex; gap: 6px; }
.dk-sort { font-family: var(--f-mono); font-size: 12px; font-weight: 600; padding: 6px 11px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
.dk-sort.is-on { background: var(--ink); color: var(--paper); }
.dk-add { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.dk-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 8px 4px 4px; }
.dk-notes.is-flip-r { animation: dk-flip-r 0.32s var(--ease-out) both; }
.dk-notes.is-flip-l { animation: dk-flip-l 0.32s var(--ease-out) both; }
@keyframes dk-flip-r { from { opacity: 0; transform: translateX(40px); } }
@keyframes dk-flip-l { from { opacity: 0; transform: translateX(-40px); } }
.dk-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 4px; }
.dk-arrow {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 20px; font-weight: 700;
  background: var(--card); border: var(--bw) solid var(--line); border-radius: 50%; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.15s var(--ease-spring), background 0.15s;
}
.dk-arrow:hover:not(:disabled) { background: var(--acid); transform: translateY(-2px) rotate(-6deg); }
.dk-arrow:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.dk-arrow:disabled { opacity: 0.35; }
.dk-pager-n { font-family: var(--f-mono); font-size: 13px; min-width: 92px; text-align: center; }
.dk-dots { display: flex; gap: 5px; }
.dk-dots i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line); }
.dk-dots i.is-on { background: var(--hot); }
@media (max-width: 600px) {
  .dk-votes, .dk-info { grid-template-columns: 1fr; }
  .dk-add { margin-left: 0; }
}

/* ===== v3.2: banner, tabs, expandable stickies ===== */
.dk-stage-pill { display: inline-flex; gap: 5px; padding: 3px 9px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); }
.dk-by { margin: 12px 0 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); }
.dk-by b { color: var(--ink); font-weight: 700; }
.dk-by-sep { color: var(--ink-3); }
.dk-by-soc { padding: 0 6px; font-weight: 700; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: 4px; }
.dk-by-soc:hover, .dk-by-link:hover { background: var(--acid); }
.dk-by-link { margin-left: 4px; padding: 1px 8px; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--paper); }
.dk-head-cta { margin-top: 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dk-add-top { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; font-size: 15px; box-shadow: 4px 4px 0 var(--ink); }
.dk-add-top:hover { transform: translate(-2px, -2px) rotate(-1deg); box-shadow: 6px 6px 0 var(--ink); }
.dk-head-hint { font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-3); max-width: 24ch; }
.dk-head-cta .dk-manage { margin: 0 0 0 auto; }

.dk-tabs { display: flex; gap: 6px; padding: 12px 28px 0 32px; border-bottom: var(--bw) solid var(--line); background: var(--paper); }
.idea-dock[data-side="left"] .dk-tabs { padding: 12px 32px 0 28px; }
.dk-tab {
  position: relative; bottom: -2px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px 11px; font-family: var(--f-mono); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: transparent; color: var(--ink-2);
  border: var(--bw) solid transparent; border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0;
  transition: background 0.15s, color 0.15s;
}
.dk-tab:hover { color: var(--ink); background: color-mix(in srgb, var(--card) 60%, transparent); }
.dk-tab.is-on { background: var(--card); color: var(--ink); border-color: var(--line); }
.dk-tab.is-on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 3px; background: var(--cat); }
.dk-tab-n { min-width: 22px; padding: 1px 6px; font-size: 11px; text-align: center; background: var(--hot); color: #0e0e10; border: 1.5px solid #0e0e10; border-radius: var(--r-pill); }
.dk-tab-n.is-zero { background: var(--paper-2); color: var(--ink-3); border-color: var(--ink-3); }
.dk-ov { display: flex; flex-direction: column; gap: 18px; animation: dk-rise 0.25s var(--ease-out) both; }
.dk-ov[hidden], .dk-advice-slot[hidden] { display: none; }
.dk-ov > :empty { display: none; }
.dk-adv { border-top: 0; padding-top: 0; }
.dk-adv.is-rise { animation: dk-rise 0.25s var(--ease-out) both; }
.dk-adv-head { justify-content: space-between; }
.dk-adv-tip { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); }

/* stickies: always-visible expand affordances */
.dk-note { cursor: default; padding: 18px 14px 0; min-height: 190px; overflow: hidden; }
.dk-note-text { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; flex: none; padding-right: 22px; }
.dk-note-sub { margin: 0; flex: 1; font-size: 12px; line-height: 1.4; opacity: 0.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-note-x {
  position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center;
  font-size: 16px; font-weight: 700; color: #0e0e10; background: rgba(255,255,255,.6); border: 1.5px solid #0e0e10; border-radius: 8px;
  transition: transform 0.18s var(--ease-spring), background 0.15s;
}
.dk-note-x:hover { background: #fff; transform: scale(1.15) rotate(8deg); }
.dk-note-open {
  margin: 8px -14px 0; padding: 9px 12px; width: calc(100% + 28px);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; text-align: center;
  color: #0e0e10; background: rgba(14,14,16,.08); border: 0; border-top: 1.5px dashed rgba(14,14,16,.45);
  transition: background 0.15s, letter-spacing 0.2s;
}
.dk-note-open:hover, .dk-note-open:focus-visible { background: #0e0e10; color: var(--pi); letter-spacing: 0.09em; }
.dk-note.is-mine .dk-note-open { background: rgba(14,14,16,.85); color: var(--pi); }
.dk-note.is-mine .dk-note-open:hover { background: #0e0e10; }
.dk-note::after { /* a little page-curl hint: there's more to unfold */
  content: ""; position: absolute; right: 0; bottom: 34px; width: 16px; height: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(14,14,16,.18) 50%); pointer-events: none;
}
.dk-note:hover { transform: rotate(0) translateY(-4px); }
.dk-note.is-just { outline: 3px solid var(--hot); outline-offset: 4px; }
.dk-note.is-fresh { animation: dk-fresh 0.6s var(--ease-spring) both; }
@keyframes dk-fresh { 0% { transform: rotate(var(--rot)) scale(0.7) translateY(-30px); opacity: 0; } }
.dk-note-flag { position: absolute; top: -2px; left: 10px; z-index: 2; padding: 1px 7px; font-family: var(--f-mono); font-size: 10px; font-weight: 700; background: var(--hot); color: #0e0e10; border: 1.5px solid #0e0e10; transform: rotate(-3deg); }
.dk-note-react { padding-top: 6px; }

/* v3.4: the whole sticky is the tap target */
.dk-note { cursor: pointer; }
.dk-note-x { pointer-events: none; }
.dk-note:hover .dk-note-x, .dk-note:focus-visible .dk-note-x { background: #fff; transform: scale(1.15) rotate(8deg); }
.dk-note:hover .dk-note-open, .dk-note:focus-visible .dk-note-open { background: #0e0e10; color: var(--pi); letter-spacing: 0.09em; }
.dk-note-open { display: block; }
.dk-by .you-tag { margin-left: 2px; }
/* the phone sheet belongs to the wall: hide it while a full page (top / your ideas / how) is up */
body[data-page]:not([data-page="wall"]) .idea-panel { display: none; }

/* your reaction on a sticky */
.dk-react.is-on { background: #0e0e10; color: #fff; border-color: #0e0e10; }
.dk-react.is-on b { color: var(--acid); }

/* story + votes live above the tabs (seen from both tabs) */
.dk-info-slot, .dk-story-slot, .dk-votes-slot { padding: 14px 28px 0 32px; }
.idea-dock[data-side="left"] .dk-info-slot, .idea-dock[data-side="left"] .dk-story-slot, .idea-dock[data-side="left"] .dk-votes-slot { padding: 14px 32px 0 28px; }
.dk-votes-slot { padding-bottom: 16px; }
.dk-info-slot:empty, .dk-story-slot:empty, .dk-votes-slot:empty { display: none; }


/* =====================================================================
   v4: responsive sheet (<= 1024px or list view). Desktop dock is untouched.
   ===================================================================== */
/* stage caption: only used where the step labels would wrap */
.dk-stage-k { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dk-meter-now { display: none; font-family: var(--f-mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.dk-meter-now b { color: var(--ink); }
.dk-meter-e { font-style: normal; }

/* story: folded state shows a 2-line teaser so it reads as "there's more here" */
.dk-story-l-closed { display: none; }
.dk-story:not([open]) .dk-story-l-open { display: none; }
.dk-story:not([open]) .dk-story-l-closed { display: inline; }
.dk-story-teaser { display: none; }
.dk-story:not([open]) .dk-story-bar { flex-wrap: wrap; row-gap: 8px; }
.dk-story:not([open]) .dk-story-teaser > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dk-story:not([open]) .dk-story-teaser {
  flex: 1 1 100%; display: block;
  margin: 0; padding: 8px 10px; font-size: 14px; font-weight: 400; line-height: 1.45; color: var(--ink-2);
  background: var(--card); border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: 6px;
}
.dk-story-label { flex: 1; min-width: 0; }

/* sheet chrome is sheet-only */
.dk-bar-slot, .dk-act-slot { display: none; }
.idea-dock.is-sheet .dk-bar-slot {
  display: block; position: sticky; top: 0; z-index: 5;
  background: var(--card); border-radius: inherit;
  transition: box-shadow 0.15s;
}
.idea-dock.is-sheet.is-scrolled .dk-bar-slot { box-shadow: 0 1.5px 0 var(--line), 0 8px 12px -10px rgba(14,14,16,.45); border-radius: 0; }
/* the category stripe sits on the (non-scrolling) dock so it spans the whole sheet height */
.idea-dock.is-sheet .dk-inner::before { display: none; }
.idea-dock.is-sheet::before {
  content: ""; position: absolute; left: 2px; top: 2px; bottom: 2px; width: 10px; z-index: 7; pointer-events: none;
  border-radius: calc(var(--r-lg) - 2px) 0 0 calc(var(--r-lg) - 2px); border-right: 1.5px solid var(--line);
  background: repeating-linear-gradient(-45deg, var(--cat) 0 10px, color-mix(in srgb, var(--cat) 70%, #0e0e10) 10px 12px);
}
.dk-bar { position: relative; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 22px; }
.dk-grab { display: none; }
.dk-bar-cat, .dk-bar-title { opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.2s var(--ease-out); }
.is-scrolled .dk-bar-cat, .is-scrolled .dk-bar-title { opacity: 1; transform: none; }
.dk-bar-cat { flex: none; width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px; background: var(--cat); border: 1.5px solid #0e0e10; border-radius: 6px; }
.dk-bar-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--f-display); font-style: italic; font-size: 21px; line-height: 1.2; }
.dk-bar-x { flex: none; margin-left: auto; }
.idea-dock.is-sheet .dk-head-acts .dk-x { display: none; } /* the bar's × replaces it */
.idea-dock.is-sheet .dk-head { padding-top: 4px; }
.idea-dock.is-sheet .dk-title { margin-top: 10px; }
.idea-dock.is-sheet .dk-tape { top: -2px; z-index: 6; }

/* tabs stick under the bar */
.idea-dock.is-sheet .dk-tabs-slot { position: sticky; top: 52px; z-index: 4; }
.idea-dock.is-sheet .dk-tabs { padding-left: 22px; padding-right: 16px; }

/* bottom action bar */
.idea-dock.is-sheet .dk-act-slot {
  display: block; position: sticky; bottom: 0; z-index: 5; margin-top: auto;
  background: var(--card); border-top: var(--bw) solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.dk-act { display: flex; gap: 8px; padding: 10px 12px 10px 20px; }
.dk-act .btn { height: 48px; justify-content: center; font-size: 14px; }
.dk-act-add { flex: 1 1 auto; min-width: 0; box-shadow: 3px 3px 0 var(--ink); }
.dk-act-see { flex: 0 0 auto; gap: 4px; padding: 0 12px; background: var(--paper); }
.dk-act-see b { padding: 0 6px; background: var(--hot); color: #0e0e10; border: 1.5px solid #0e0e10; border-radius: var(--r-pill); font-size: 11px; }
/* the header's own big CTA is replaced by the sticky bar in the sheet */
.idea-dock.is-sheet .dk-add-top, .idea-dock.is-sheet .dk-head-hint { display: none; }
.idea-dock.is-sheet .dk-head-cta:not(:has(.dk-manage)) { display: none; }
.idea-dock.is-sheet .dk-head-cta .dk-manage { margin: 0; }
.idea-dock.is-sheet .dk-body { padding-bottom: 20px; }

/* stage in the sheet: bars + emoji per step, one caption for the current stage (labels would wrap) */
.idea-dock.is-sheet .dk-meter-now { display: inline; }
.idea-dock.is-sheet .dk-meter-t { display: none; }
.idea-dock.is-sheet .dk-meter li { align-items: stretch; text-align: center; font-size: 13px; }
.idea-dock.is-sheet .dk-meter li:not(.is-now) .dk-meter-e { opacity: 0.55; filter: grayscale(0.6); }

/* "show more" (tablet sheet grid) */
.dk-more { align-self: center; height: 44px; }
.dk-more-n { color: var(--ink-3); font-weight: 400; }

/* -------- phone: full screen, covers the top bar and the bottom nav -------- */
@media (max-width: 700px) {
  .idea-panel { inset: 0; width: auto; top: 0; right: 0; bottom: 0; left: 0; height: 100vh; height: 100dvh; }
  .idea-dock.is-sheet .dk-inner { border: 0; border-radius: 0; box-shadow: none; }
  .idea-dock.is-sheet::before { left: 0; top: 0; bottom: 0; width: 6px; border-radius: 0; }
  .idea-dock.is-sheet .dk-tape { display: none; }
  .idea-dock.is-sheet.is-enter { animation: dk-phone-in 0.36s var(--ease-out) both; }
  .idea-dock.is-sheet.is-leaving { animation: dk-phone-out 0.24s var(--ease-out) forwards; }
  .idea-dock.is-sheet.is-dragging { transition: none; }
  .idea-dock.is-sheet:not(.is-dragging) { transition: transform 0.25s var(--ease-out); }
  .idea-dock.is-sheet .dk-bar-slot { padding-top: env(safe-area-inset-top, 0px); border-radius: 0; touch-action: none; }
  .idea-dock.is-sheet .dk-tabs-slot { top: calc(52px + env(safe-area-inset-top, 0px)); }
  .dk-bar { padding: 4px 8px 4px 16px; cursor: grab; }
  .dk-grab { display: block; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; transform: translateX(-50%); border-radius: 4px; background: color-mix(in srgb, var(--ink) 30%, transparent); }
  .idea-dock.is-sheet .dk-act-slot { border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .dk-act { padding: 10px 12px 10px 16px; }
  /* the tab panel always fills the screen under the sticky bar + tabs, so a tab tap can lift the tabs to the top */
  .idea-dock.is-sheet .dk-body { min-height: calc(100vh - 52px - 60px - 70px); min-height: calc(100dvh - 52px - 60px - 70px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }

  .dk-head, .dk-body, .dk-info-slot, .dk-story-slot, .dk-votes-slot { padding-left: 18px !important; padding-right: 14px !important; }
  .idea-dock.is-sheet .dk-tabs { padding-left: 18px; padding-right: 14px; }
  .dk-title { font-size: 32px; }
  .dk-pitch { font-size: 15.5px; }
  .dk-meta { font-size: 11px; }
  .dk-by { font-size: 12px; row-gap: 4px; }
  .dk-by-link { margin-left: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }


  .dk-votes { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dk-vote { padding: 10px; gap: 8px; min-height: 56px; }
  .dk-vote-e { font-size: 20px; }
  .dk-vote-t b { font-size: 13.5px; line-height: 1.2; }
  .dk-vote-t small { font-size: 11px; }

  .dk-tab { padding: 12px 14px 12px; min-height: 46px; }
  .dk-adv-head { gap: 8px; }

  /* advice: one swipeable row, the next sticky peeks in from the right */
  .dk-notes.is-row {
    display: flex; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding: 0 18px;
    margin: 0 -14px 0 -18px; padding: 14px 18px 14px; scrollbar-width: none;
  }
  .dk-notes.is-row::-webkit-scrollbar { display: none; }
  .dk-notes.is-row .dk-note { flex: 0 0 min(82%, 300px); scroll-snap-align: start; }
  .dk-notes.is-row .dk-note:hover { transform: rotate(var(--rot)); } /* no hover lift on touch rows */
  .dk-notes.is-row .dk-note-foot { margin-top: auto; } /* stretched to the row's tallest: extra room goes above the footer */
  .dk-empty { padding: 32px 16px; }
}
@keyframes dk-phone-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes dk-phone-out { to { opacity: 0; transform: translateY(40px); } }

/* tablet sheet: 2 columns of stickies */
@media (min-width: 701px) {
  .idea-dock.is-sheet .dk-notes { grid-template-columns: 1fr 1fr; }
}

/* touch: reaction pills keep their look but get a 44px hit area */
@media (hover: none), (pointer: coarse) {
  .dk-note-react { gap: 6px; padding-top: 8px; padding-bottom: 2px; }
  .dk-react { position: relative; min-width: 44px; height: 36px; justify-content: center; padding: 0 9px; font-size: 15px; }
  .dk-react::after { content: ""; position: absolute; inset: -4px -2px; }
  .dk-react:hover { transform: none; }
  .dk-sort { min-height: 40px; }
  .dk-note-x { display: none; } /* the bottom strip already says "tap to open" */
  .dk-note-text { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .idea-dock.is-sheet, .dk-adv, .dk-note, .dk-bar-cat, .dk-bar-title { animation: none !important; transition: none !important; }
}

/* owner views: counts only, nothing to tap */
.dk-react.is-static { cursor: default; background: transparent; border-style: dashed; }
.dk-react.is-static:hover { transform: none; background: transparent; }
.dk-vote.is-owner { cursor: default; opacity: 1; }
.dk-vote.is-owner:hover, .dk-vote.is-owner:active { transform: none; box-shadow: var(--shadow-hard-sm, 3px 3px 0 var(--ink)); }
