/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: 11px;
  font-weight: 500; font-size: 13.5px; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--surface);
  transition: transform .2s var(--ease), background .2s, border-color .2s, opacity .2s;
}
.btn:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--text) 20%, transparent); }
.btn:active { transform: scale(.97); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface); color: var(--text); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { height: 46px; padding: 0 22px; font-size: 14.5px; border-radius: 13px; }
.btn.icon { width: 38px; padding: 0; }
.btn.icon.sm { width: 32px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.done { background: var(--good-soft); color: var(--good); border-color: transparent; }

/* ─── Cards & layout ─────────────────────────────────────── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s var(--ease);
}
a.card:hover, .card.hover:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { font-size: 14px; font-weight: 500; }
.card.flat { box-shadow: none; background: var(--surface-2); }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 15px; font-weight: 500; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.page { container-type: inline-size; }
@container (max-width: 860px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 > .span2, .g3 > :nth-child(3):last-child { grid-column: 1 / -1; }
}
@container (max-width: 560px) {
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
}
@media (max-width: 640px) { .card { padding: 18px; border-radius: 18px; } }
.card-head > svg, .card > svg:first-child { width: 18px; height: 18px; flex: none; color: var(--text-3); }

/* ─── Chips, badges, avatars ─────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px;
  border-radius: 99px; font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line);
}
.chip .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.chip.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip.live .d { animation: pulse 1.6s infinite; }
button.chip { cursor: pointer; transition: all .2s; }
button.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  display: inline-grid; place-items: center; font: 600 10.5px/1 var(--font);
  background: var(--accent); color: var(--accent-ink); animation: pop .4s var(--ease-spring);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--bg); }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--surface-3); color: var(--text); font-size: 12.5px; font-weight: 600;
  overflow: hidden; border: 1px solid var(--line);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatars { display: flex; }
.avatars .avatar { width: 28px; height: 28px; font-size: 10.5px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.avatars .avatar:first-child { margin-left: 0; }

/* ─── Inputs ─────────────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%; padding: 11px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--line-2); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--text-3); }
.search .input { padding-left: 38px; }
.kbd { font: 500 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-3); }

/* ─── Progress ───────────────────────────────────────────── */
.bar { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--text); width: 0; transition: width 1.4s var(--ease); }
.bar.accent i { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, transparent), var(--accent)); }
.bar.good i { background: var(--good); }
.ring { position: relative; display: grid; place-items: center; }
.ring svg { transform: rotate(-90deg); }
.ring .track { stroke: var(--surface-3); }
.ring .val { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 1.6s var(--ease); }
.ring b { position: absolute; font-weight: 500; font-size: 15px; }

/* ─── North star ─────────────────────────────────────────── */
.northstar { padding: 28px; overflow: hidden; }
.northstar::after {
  content: ''; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent); pointer-events: none;
}
.ns-value { font-family: var(--serif); font-size: clamp(54px, 8vw, 88px); line-height: .95; letter-spacing: -.02em; margin: 14px 0 6px; }
.ns-track { position: relative; margin: 34px 0 10px; }
.ns-track .bar { height: 8px; }
.ns-marks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 10px; }
.ns-pin { position: absolute; top: -26px; translate: -50% 0; font: 500 11px var(--mono); color: var(--accent); transition: left 1.4s var(--ease); white-space: nowrap; }

/* ─── KPI ────────────────────────────────────────────────── */
.kpi { padding: 18px 18px 14px; }
.kpi .label { font-size: 12.5px; color: var(--text-2); }
.kpi .value { font-size: 28px; font-weight: 500; margin: 6px 0 2px; }
.kpi .delta { font-size: 12px; font-weight: 500; }
.kpi .delta.up { color: var(--good); }
.kpi .delta.down { color: var(--bad); }
.kpi svg.spark { width: 100%; height: 38px; margin-top: 10px; overflow: visible; }
.spark path.line { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s var(--ease) .2s forwards; }
.spark path.area { fill: url(#sparkfill); opacity: 0; animation: fade 1s .9s forwards; }

/* ─── Charts ─────────────────────────────────────────────── */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; display: block; }
.chart .grid-line { stroke: var(--line); }
.chart .axis { fill: var(--text-3); font: 13px var(--mono); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.chart .bar-rect { fill: var(--surface-3); transition: fill .2s; }
.chart .bar-rect.hi { fill: var(--accent); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .pt { fill: var(--bg); stroke: var(--accent); stroke-width: 2; opacity: 0; transition: opacity .15s; }
.chart .pt.on { opacity: 1; }
.tip {
  position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 9px; font-size: 12px;
  background: var(--text); color: var(--bg); white-space: nowrap; translate: -50% calc(-100% - 12px);
  opacity: 0; transition: opacity .15s;
}
.tip.on { opacity: 1; }

/* ─── Timeline / feed ────────────────────────────────────── */
.feed { display: flex; flex-direction: column; }
.feed-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding-bottom: 22px; }
.feed-item::before { content: ''; position: absolute; left: 13.5px; top: 30px; bottom: 4px; width: 1px; background: var(--line-2); }
.feed-item:last-child::before { display: none; }
.feed-icon { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.feed-icon svg { width: 14px; height: 14px; }
.feed-icon.win { background: var(--good-soft); color: var(--good); border-color: transparent; }
.feed-icon.loom { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.feed-item h4 { font-size: 14px; font-weight: 500; }
.feed-item p { color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.feed-item time { font-size: 12px; color: var(--text-3); }

/* ─── Pipeline ───────────────────────────────────────────── */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 1fr); gap: 0; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.flow::-webkit-scrollbar { display: none; }
.flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 12px; color: var(--text-2); }
.flow-step::after { content: ''; position: absolute; top: 17px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 1px; background: var(--line-2); }
.flow-step:last-child::after { display: none; }
.flow-step.fixed::after { background: var(--good); opacity: .5; }
.flow-node { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-3); position: relative; }
.flow-node svg { width: 16px; height: 16px; }
.flow-step.fixed .flow-node { background: var(--good-soft); border-color: transparent; color: var(--good); }
.flow-step.fixing .flow-node { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.flow-step.fixing .flow-node::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent); animation: ripple 2s infinite; }
.flow-step.fixing { color: var(--text); font-weight: 500; }

.leak { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.leak + .leak { margin-top: 12px; }
.rank { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 500 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }
.leak h4 { font-size: 15px; font-weight: 500; }
.leak p { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.leak .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.leak.fixing { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.leak.fixed .rank { background: var(--good-soft); color: var(--good); border-color: transparent; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--text-2); }
.steps li.done { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check { width: 18px; height: 18px; border-radius: 6px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); }
.check svg { width: 12px; height: 12px; opacity: 0; }
.done .check { background: var(--good); border-color: var(--good); color: var(--bg); }
.done .check svg { opacity: 1; animation: pop .35s var(--ease-spring); }
.result { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--good); text-align: right; }
.result small { display: block; font: 12px var(--font); color: var(--text-3); margin-top: 6px; }
@media (max-width: 640px) { .leak { grid-template-columns: auto 1fr; } .leak > :last-child { grid-column: 2; } .result { text-align: left; } }

/* ─── Chat ───────────────────────────────────────────────── */
.chat { display: grid; grid-template-rows: auto 1fr auto; height: calc(100dvh - 200px); min-height: 460px; padding: 0; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat-body { overflow-y: auto; padding: 22px 20px; display: flex; flex-direction: column; gap: 4px; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; align-items: flex-end; max-width: 78%; animation: rise .35s var(--ease) both; }
.msg .avatar { width: 28px; height: 28px; font-size: 10.5px; }
.msg .bubble { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; white-space: pre-wrap; word-wrap: break-word; }
.msg.mine { margin-left: auto; flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--text); color: var(--bg); border-color: transparent; border-radius: 18px 18px 6px 18px; }
.msg-meta { font-size: 11px; color: var(--text-3); margin: 2px 40px 12px; }
.msg-meta.mine { text-align: right; margin-right: 6px; }
.day-sep { text-align: center; font-size: 11.5px; color: var(--text-3); margin: 12px 0; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px; border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; padding: 11px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.composer textarea:focus { outline: none; border-color: var(--line-2); }
.composer .btn { height: 44px; width: 44px; border-radius: 14px; padding: 0; }
.typing { display: inline-flex; gap: 4px; padding: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: pulse 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@media (max-width: 900px) { .chat { height: calc(100dvh - 230px); } .msg { max-width: 88%; } }

.post { padding: 20px; }
.post + .post { margin-top: 12px; }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.post-head b { font-weight: 500; font-size: 14px; }
.post-head small { color: var(--text-3); font-size: 12px; }
.post-body { white-space: pre-wrap; color: var(--text); font-size: 14.5px; }
.post-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.react { height: 30px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; transition: all .2s var(--ease); }
.react:hover { border-color: var(--line-2); }
.react.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.react.on span { animation: pop .3s var(--ease-spring); display: inline-block; }
.replies { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.reply { display: flex; gap: 10px; font-size: 13.5px; }
.reply .avatar { width: 24px; height: 24px; font-size: 9.5px; }

/* ─── Segmented tabs ─────────────────────────────────────── */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: 9px; font-size: 13px; color: var(--text-2); font-weight: 500; transition: color .2s; display: inline-flex; gap: 6px; align-items: center; }
.seg button svg { width: 15px; height: 15px; }
.seg button.on { color: var(--text); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

/* ─── Folder / files ─────────────────────────────────────── */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.folder { padding: 18px; cursor: pointer; }
.folder .ficon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); margin-bottom: 18px; color: var(--text-2); }
.folder .ficon svg { width: 20px; height: 20px; }
.folder b { font-weight: 500; display: block; }
.folder small { color: var(--text-3); font-size: 12px; }
.folder.on { border-color: var(--accent); }
.folder.on .ficon { background: var(--accent-soft); color: var(--accent); }
.files { padding: 6px; }
.file { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 12px; transition: background .2s; }
.file:hover { background: var(--surface-2); }
.file .ficon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.file .ficon svg { width: 17px; height: 17px; }
.file b { font-weight: 500; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file small { color: var(--text-3); font-size: 12px; }
.file .go { color: var(--text-3); transition: transform .2s var(--ease), color .2s; }
.file:hover .go { transform: translateX(3px); color: var(--text); }
.file > div { min-width: 0; }

/* ─── Library ────────────────────────────────────────────── */
.lib-card { display: flex; flex-direction: column; min-height: 190px; cursor: pointer; }
.lib-card .cat { margin-bottom: auto; align-self: flex-start; }
.lib-card h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.1; margin: 26px 0 8px; }
.lib-card p { color: var(--text-2); font-size: 13.5px; }
.lib-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; color: var(--text-3); }
.lib-card.done .foot span:last-child { color: var(--good); }
.prose { font-size: 15.5px; line-height: 1.75; color: var(--text); max-width: 680px; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 34px 0 10px; line-height: 1.15; }
.prose p { margin: 0 0 16px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--text); font-weight: 500; }
.prose blockquote { margin: 22px 0; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); font-family: var(--serif); font-size: 22px; line-height: 1.35; color: var(--text); }

/* ─── Loom ───────────────────────────────────────────────── */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0b0b0b; display: grid; place-items: center; cursor: pointer; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster { position: absolute; inset: 0; background:
  radial-gradient(500px 220px at 30% 20%, rgba(216,194,154,.25), transparent 70%),
  repeating-linear-gradient(-12deg, transparent 0 22px, rgba(255,255,255,.035) 22px 23px), #0b0b0b; }
.video .play { position: relative; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: #f3f1ec; color: #0b0b0b; transition: transform .35s var(--ease-spring); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); }
.video .play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); animation: ripple 2.4s infinite; }
.video:hover .play { transform: scale(1.08); }
.video .play svg { width: 24px; height: 24px; margin-left: 3px; }
.video .vlabel { position: absolute; left: 16px; bottom: 14px; right: 16px; display: flex; justify-content: space-between; color: rgba(255,255,255,.75); font-size: 12px; }
.video.sm .play { width: 44px; height: 44px; } .video.sm .play svg { width: 16px; height: 16px; } .video.sm .play::before { display: none; }
.points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.points li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.points li::before { content: ''; flex: none; width: 5px; height: 5px; margin-top: 9px; border-radius: 50%; background: var(--accent); }

/* ─── Modal, toast, command palette ──────────────────────── */
.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s var(--ease); }
.overlay.closing { animation: fade .2s reverse forwards; }
.modal { width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.6); animation: rise .4s var(--ease); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 28px; translate: -50% 0; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; gap: 9px; align-items: center; padding: 10px 16px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 13.5px; font-weight: 500; box-shadow: 0 16px 40px -10px rgba(0,0,0,.4); animation: rise .4s var(--ease-spring); }
.toast svg { width: 16px; height: 16px; }
.toast.out { animation: leave .3s forwards; }
@media (max-width: 900px) { .toasts { bottom: 100px; } }
.cmdk { max-width: 580px; padding: 0; overflow: hidden; align-self: start; margin-top: 12vh; }
.cmdk input { width: 100%; height: 58px; padding: 0 22px; background: transparent; border: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.cmdk input:focus { outline: none; }
.cmdk-list { max-height: 360px; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 10px; text-align: left; color: var(--text-2); }
.cmdk-item svg { width: 16px; height: 16px; }
.cmdk-item.on { background: var(--surface-2); color: var(--text); }
.cmdk-item small { margin-left: auto; color: var(--text-3); font-size: 12px; }

/* ─── Misc ───────────────────────────────────────────────── */
.empty { text-align: center; padding: 50px 20px; color: var(--text-3); }
.empty svg { width: 28px; height: 28px; margin-bottom: 12px; }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.hero-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--text-2); }
.theme-toggle { position: relative; width: 52px; height: 28px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line); flex: none; }
.theme-toggle i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text); display: grid; place-items: center; color: var(--bg); transition: transform .45s var(--ease-spring); }
.theme-toggle i svg { width: 12px; height: 12px; }
[data-theme="light"] .theme-toggle i { transform: translateX(24px); }
.theme-row { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 4px 12px; font-size: 13px; color: var(--text-2); }
.admin-bar { display: flex; align-items: center; gap: 10px; padding: 8px clamp(16px, 4vw, 44px); background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 500; }
.admin-bar .select { width: auto; padding: 4px 10px; background: rgba(0,0,0,.12); border: 0; color: inherit; border-radius: 8px; }
.admin-bar a { text-decoration: underline; text-underline-offset: 3px; }
.link-box { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.link-box span { flex: 1; min-width: 0; font: 13px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
