/* Cloud pages: Your LLM, MCP connect, storage card. Fynn-style layer (see CLAUDE.md, design is LOCKED). */
.cl-page > * + * { margin-top: 16px; }
.cl-page .page-h { margin-bottom: 8px; }
.cl-page .ov-card .sub { margin-bottom: 0; }
.cl-auth { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); font-size: 13px; }
:root[data-theme="dark"] .cl-auth { background: #2a1a12; color: #f6a46c; }

.cl-top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }

/* drop zone (secondary, below the documents) */
.cl-drop { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; border: 1.5px dashed var(--line-2); background: transparent; transition: border-color .2s var(--ease), background-color .2s var(--ease); min-width: 0; }
.cl-drop.over { border-color: var(--brand); background: var(--brand-soft); }
:root[data-theme="dark"] .cl-drop.over { background: #24170f; }
.cl-drop-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); flex: none; }
.cl-drop-t { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cl-drop-t b { font-weight: 500; font-size: 14px; }
.cl-drop-t .faint { font-size: 12.5px; }
.cl-file { cursor: pointer; }
.cl-file input { display: none; }

/* one-click import */
.cl-oneclick .kpi-h { align-items: flex-start; }
.cl-mini { font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-top: 4px; }
.cl-ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cl-ai { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 18px; background: var(--raised); min-width: 0; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cl-ai:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2); }
.cl-ai-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cl-ai-h b { font-weight: 500; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 auto; }
.cl-ai-h .badge { height: 20px; padding: 0 8px; font-size: 11px; }
.cl-ai .btn { align-self: flex-start; max-width: 100%; }
.cl-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
.cl-note b { font-weight: 500; color: var(--ink-2); }
.cl-alt { font-size: 12.5px; color: var(--ink-3); margin-top: auto; }
.cl-alt summary { cursor: pointer; width: fit-content; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; list-style: none; }
.cl-alt summary::-webkit-details-marker { display: none; }
.cl-alt p { margin: 8px 0; line-height: 1.5; }
.cl-alt code { font: 12px var(--mono); background: var(--panel); padding: 1px 5px; border-radius: 5px; }
.cl-job { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: 12.5px; color: var(--ink-2); }
.cl-job.ok { color: var(--green-ink); }
.cl-job.bad { color: #c21f3d; }
:root[data-theme="dark"] .cl-job.bad { color: #ff8a9c; }

/* any web page */
.cl-clip { display: flex; flex-direction: column; }
.cl-clip .cl-note { margin-top: 12px; }

/* work apps */
.cl-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cl-app { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--raised); text-align: left; min-width: 0; color: var(--ink-3); transition: background-color .15s var(--ease), transform .2s var(--ease); }
.cl-app:hover { background: var(--hover); transform: translateY(-1px); color: var(--ink); }
.cl-app .tn { flex: 1; min-width: 0; display: grid; }
.cl-app .tn b { font-weight: 500; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-app .tn small { font-size: 11.5px; color: var(--ink-3); }

/* storage meter */
.cl-store { display: flex; flex-direction: column; }
.cl-store .cl-meter { margin-top: auto; padding-top: 16px; }
.cl-meter { display: grid; gap: 10px; }
.cl-meter.skel, .cl-page .cl-meter.skel { height: 64px; border-radius: 14px; background: linear-gradient(90deg, var(--raised), var(--hover), var(--raised)); background-size: 200% 100%; animation: cl-sk 1.4s linear infinite; }
@keyframes cl-sk { to { background-position: -200% 0; } }
.cl-meter-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.cl-meter-h b { font: 500 22px var(--display); color: var(--ink); letter-spacing: -.02em; margin-right: 2px; }
.cl-meter .meter i { transition: transform .8s var(--ease); }
.cl-meter-f { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-3); }
.cl-meter-f span { display: inline-flex; align-items: center; gap: 6px; }
.cl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cl-dot.lib { background: var(--blue); } .cl-dot.ws { background: var(--brand); }
.cl-meter.compact { margin-top: 12px; }

/* search */
.cl-search { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 6px 6px 14px; border-radius: 16px; background: var(--raised); }
.cl-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; height: 36px; font-size: 14px; color: var(--ink); }
.cl-s-ic { color: var(--ink-3); display: grid; }
.cl-hits { display: grid; gap: 10px; margin-top: 14px; }
.cl-hit { padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cl-hit-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.cl-hit-h b { font-weight: 500; min-width: 0; overflow-wrap: anywhere; }
.cl-hit p { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); overflow-wrap: anywhere; }
.cl-none { margin: 14px 0 0; font-size: 13px; }

/* documents */
.cl-docs { display: grid; margin-top: 12px; }
.cl-doc { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 76px 52px 104px 36px; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; border-radius: 12px; transition: background-color .15s var(--ease); }
.cl-doc:not(.head):hover { background: var(--hover); }
.cl-doc.head { min-height: 36px; font-size: 12px; color: var(--ink-3); border-radius: 0; }
.cl-doc .r { text-align: right; justify-self: end; }
.cl-doc .num { font-variant-numeric: tabular-nums; font-weight: 500; }
.cl-dn { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-3); }
.cl-dn b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cl-src { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink-2); overflow: hidden; white-space: nowrap; }
.cl-doc .icon-btn:hover { background: var(--red-soft); color: #c21f3d; }

/* MCP: token */
.cl-tokcard { display: flex; flex-direction: column; gap: 14px; }
.cl-tokcard .kpi-h { align-items: flex-start; }
.cl-token { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 14px; background: var(--raised); min-width: 0; }
.cl-token code { flex: 1; min-width: 0; font: 13px var(--mono); overflow-wrap: anywhere; color: var(--ink); }
.cl-token.new { background: var(--green-soft); }
.cl-token.new code { color: var(--green-ink); }
.cl-token .faint { font-size: 12px; }
.cl-warn { display: flex; align-items: center; gap: 8px; margin: -4px 0 0; font-size: 12.5px; color: var(--ink-2); }
.cl-tok-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: auto; font-size: 12.5px; }

/* MCP: flow */
.cl-flow { display: flex; flex-direction: column; }
.cl-flow-row { display: flex; align-items: center; margin-top: auto; padding-top: 20px; gap: 0; }
.cl-node { flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 14px 6px; border-radius: 16px; background: var(--raised); color: var(--ink-2); }
.cl-node b { font-weight: 500; font-size: 13px; color: var(--ink); }
.cl-node small { font-size: 11.5px; color: var(--ink-3); }
.cl-node.core { background: var(--grad); color: #fff; }
.cl-node.core b, .cl-node.core small { color: #fff; }
.cl-node.core small { opacity: .85; }
.cl-wire { flex: 0 0 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 4px, transparent 4px 8px); background-size: 16px 2px; animation: cl-flow 1s linear infinite; }
@keyframes cl-flow { to { background-position: 16px 0; } }

/* MCP: snippets */
.cl-snips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.cl-snip { border-radius: 18px; background: var(--raised); padding: 12px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cl-snip:first-child { grid-column: 1 / -1; }
.cl-snip-h { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 2px 0; }
.cl-snip-h .tn { flex: 1; }
.cl-gen { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--panel); color: var(--ink-2); flex: none; }
.cl-snip pre { margin: 0; padding: 12px 14px; border-radius: 12px; background: #141416; color: #e9e9ec; font: 12.5px/1.6 var(--mono); overflow-x: auto; white-space: pre; max-width: 100%; flex: 1; }
:root[data-theme="dark"] .cl-snip pre { background: #0b0b0c; }

/* MCP: tools */
.cl-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.cl-tool { padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.cl-tool code { font: 500 12.5px var(--mono); color: var(--brand-ink); overflow-wrap: anywhere; }
:root[data-theme="dark"] .cl-tool code { color: #f6a46c; }
.cl-tool p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* storage card (Billing) */
.cl-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.cl-plan { position: relative; display: grid; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--raised); min-width: 0; transition: background-color .15s var(--ease), box-shadow .15s var(--ease), transform .2s var(--ease); }
.cl-plan:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--line-2); }
.cl-plan.on { background: var(--ink); color: var(--bg); }
.cl-plan b { font-weight: 500; font-size: 13px; }
.cl-gb { font: 500 20px var(--display); letter-spacing: -.02em; }
.cl-pr { font-size: 12.5px; color: var(--ink-3); }
.cl-plan.on .cl-pr { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.cl-pr small { font-size: 11px; }
.cl-plan .badge { position: absolute; top: 10px; right: 10px; height: 20px; padding: 0 7px; font-size: 11px; }
.cl-fine { font-size: 12px; margin: 12px 0 0; }

@media (max-width: 1200px) {
  .cl-ai-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cl-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .cl-doc { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) 72px 104px 36px; }
  .cl-doc > :nth-child(4) { display: none; }
}
@media (max-width: 960px) {
  .cl-top { grid-template-columns: minmax(0, 1fr); }
  .cl-snips, .cl-tools { grid-template-columns: minmax(0, 1fr); }
  .cl-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cl-ai-grid { grid-template-columns: minmax(0, 1fr); }
  .cl-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-drop { flex-wrap: wrap; }
  .cl-mini { display: none; }
  .cl-doc { grid-template-columns: minmax(0, 1fr) 64px 36px; gap: 8px; }
  .cl-doc > :nth-child(2), .cl-doc > :nth-child(4), .cl-doc > :nth-child(5) { display: none; }
  .cl-flow-row { flex-direction: column; }
  .cl-node { width: 100%; }
  .cl-wire { flex: 0 0 18px; width: 2px; height: 18px; background: repeating-linear-gradient(180deg, var(--brand) 0 4px, transparent 4px 8px); background-size: 2px 16px; animation-name: cl-flow-v; }
  .cl-search .btn { padding: 0 12px; }
}
@keyframes cl-flow-v { to { background-position: 0 16px; } }
@media (prefers-reduced-motion: reduce) {
  .cl-wire, .cl-meter.skel { animation: none; }
  .cl-meter .meter i, .cl-plan, .cl-drop, .cl-ai, .cl-app { transition: none; }
}
.cl-snip-h .tn, .cl-app .tn { grid-template-columns: minmax(0, 1fr); }
.cl-snip-h .btn { flex: none; }
.cl-snip-h .tn { display: grid; min-width: 0; }
.cl-snip-h .tn b { font-weight: 500; font-size: 14px; }
.cl-snip-h .tn small { color: var(--ink-3); font-size: 12px; font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Your LLM v2: your data first, adding lives in a pop-up (owner 2026-11-11: "a bit crowded") ===== */
.cl-sto { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-3); text-decoration: none; }
.cl-sto .meter { width: 90px; }
.cl-sto:hover { color: var(--ink); }
.cl2 .cl-q { max-width: none; margin-bottom: 14px; }
.cl-list { background: var(--panel); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.cl-doc2 { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-top: 1px solid var(--line); min-height: 56px; transition: background-color .12s var(--ease); }
.cl-doc2:first-child { border-top: 0; }
.cl-doc2:hover { background: var(--hover); }
.cl-doc2.skel { background: linear-gradient(90deg, var(--hover), var(--panel), var(--hover)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.cl-dic { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--sel); color: var(--sel-ic); }
.cl-dic .mono-tile { width: 32px; height: 32px; border-radius: 10px; }
.cl-doc2 .tn { flex: 1; min-width: 0; }
.cl-doc2 b { display: block; font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-doc2 small { display: block; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-x { opacity: 0; transition: opacity .12s var(--ease); }
.cl-doc2:hover .cl-x, .cl-x:focus-visible { opacity: 1; }
@media (hover: none) { .cl-x { opacity: 1; } }
.cl-res-h { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.cl-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 40px 24px; border-radius: var(--r-card); background: var(--panel); box-shadow: var(--shadow-card); color: var(--ink-3); }
.cl-empty b { color: var(--ink); font-weight: 500; font-size: 15px; }
.cl-empty.big { padding: 72px 24px; margin-top: 8px; }
.cl-empty.big b { font: 500 20px/1.3 var(--display); letter-spacing: -.015em; }
.cl-empty p { margin: 0 0 6px; max-width: 420px; font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.cl-empty-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--sel); color: var(--sel-ic); margin-bottom: 4px; }
.cl-empty .faint { font-size: 12px; }
/* the pop-up */
.cl-scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15, 15, 16, .32); animation: fadeIn .18s var(--ease); }
.cl-modal { position: fixed; z-index: 71; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(820px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); box-shadow: 0 30px 80px -24px rgba(0,0,0,.45); overflow: hidden; animation: clPop .22s cubic-bezier(.22, 1, .36, 1); }
@keyframes clPop { from { opacity: 0; transform: translate(-50%, calc(-50% + 10px)) scale(.98); } }
@keyframes fadeIn { from { opacity: 0; } }
.cl-m-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 10px 22px; }
.cl-m-h b { font: 500 18px var(--display); letter-spacing: -.015em; }
.cl-m-tabs { margin: 0 18px 4px; align-self: flex-start; max-width: calc(100% - 36px); overflow-x: auto; scrollbar-width: none; }
.cl-m-b { padding: 14px 22px 22px; overflow-y: auto; min-height: 0; }
.cl-m-sub { margin: 0 0 14px; font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.cl-drop.big { flex-direction: column; text-align: center; padding: 40px 24px; gap: 8px; display: flex; align-items: center; }
.cl-drop.big .faint { font-size: 12.5px; max-width: 380px; }
@media (max-width: 600px) { .cl-m-tabs button span { display: none; } .cl-modal { top: auto; bottom: 0; transform: translateX(-50%); border-radius: 22px 22px 0 0; max-height: 88vh; } @keyframes clPop { from { opacity: 0; transform: translate(-50%, 20px); } } }
/* light selection for the current storage plan */
.cl-plan.on { background: var(--sel); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--sel-ic); }
.cl-plan.on .cl-pr { color: var(--ink-3); }
.cl-plan.on .badge { background: var(--panel); color: var(--sel-ic); }

/* ---------- Your LLM, library v3 ---------- */
.cl2 { position: relative; }
.cl2 .cl-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 2px 0 14px; }
.cl2 .cl-head h1 { margin: 0; font: 500 24px/1.2 var(--display); letter-spacing: -.02em; }
.cl2 .cl-head h1 .soft { color: var(--ink-3); }
.cl-stats { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-3); }
.cl-stats b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.cl-stats a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.cl-stats a:hover { color: var(--ink); }
.cl-stats .meter { width: 64px; height: 6px; margin-left: 4px; }
.cl-stats .meter i { background: var(--brand); }

/* ask bar */
.cl-ask { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; margin-bottom: 16px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); transition: box-shadow .2s var(--ease); }
.cl-ask:focus-within { box-shadow: var(--shadow-card), 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.cl-ask-ic { color: var(--brand); display: grid; flex: none; }
.cl-ask input { flex: 1; min-width: 0; height: 40px; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.cl-ask input::placeholder { color: var(--ink-3); }
.cl2 mark { background: color-mix(in srgb, var(--brand) 20%, transparent); color: inherit; border-radius: 4px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.cl2 .cl-hits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.cl2 .cl-hit { background: var(--panel); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-card); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.cl2 .cl-hit:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), 0 14px 30px -18px rgba(0,0,0,.25); }
.cl2 .cl-hit-h { flex-wrap: nowrap; }
.cl2 .cl-hit-h b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl2 .cl-hit-h .faint { font-size: 12px; white-space: nowrap; max-width: 30%; overflow: hidden; text-overflow: ellipsis; }
.cl2 .cl-hit p { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; line-height: 1.6; }

/* filters + view */
.cl-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.cl-bar .cl-filters { flex: 0 1 auto; min-width: 0; margin: 0; }
.cl-bar .cl-filters > button { white-space: nowrap; flex: none; }
.cl-bar .grow { flex: 1; }
.cl-bar .cl-filters .mono-tile.xs { width: 16px; height: 16px; border-radius: 5px; }
.cl-stack { display: inline-flex; }
.cl-stack .mono-tile + .mono-tile { margin-left: -5px; box-shadow: 0 0 0 1.5px var(--panel); }
.cl-view { flex: none; }

/* file-type glyph */
.cl-ft { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--raised); color: var(--ink-2); font: 600 9px/1 var(--display); letter-spacing: .04em; box-shadow: inset 0 0 0 1px var(--line); }
.cl-ft.xs { width: 18px; height: 18px; border-radius: 5px; font-size: 6.5px; }
.cl-ft.sm { width: 28px; height: 28px; }

/* grid */
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cl-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 120px; padding: 14px 14px 14px 16px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease); outline: none; }
.cl-card:hover, .cl-card:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow-card), 0 16px 32px -20px rgba(0,0,0,.28); }
.cl-card.skel { cursor: default; background: linear-gradient(90deg, var(--panel), var(--hover), var(--panel)); background-size: 200% 100%; animation: cl-sk 1.4s linear infinite; }
.cl-card-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cl-kind { font-size: 11.5px; color: var(--ink-3); flex: 1; }
.cl-card-t { font-weight: 500; font-size: 14.5px; line-height: 1.35; letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.cl-card-m { margin-top: auto; font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card .cl-x, .cl-doc2 .cl-x { opacity: 0; transition: opacity .15s var(--ease); }
.cl-card:hover .cl-x, .cl-card:focus-within .cl-x, .cl-x:focus-visible { opacity: 1; }
.cl-doc2 { cursor: pointer; outline: none; }
.cl-doc2:focus-visible { background: var(--hover); }
@media (hover: none) { .cl-card .cl-x, .cl-doc2 .cl-x { opacity: 1; } }

/* drop anywhere */
.cl2.over::after { content: 'Drop to add to your LLM'; position: absolute; inset: 0 12px; z-index: 5; display: grid; place-items: center; border-radius: var(--r-card); border: 2px dashed var(--brand); background: color-mix(in srgb, var(--brand-soft) 82%, transparent); color: var(--brand-ink); font: 500 16px var(--display); pointer-events: none; }

/* reader */
.cl-rscrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 15, 16, .12); animation: fadeIn .18s var(--ease); }
.cl-reader { position: fixed; z-index: 61; top: 12px; right: 12px; bottom: 12px; width: min(440px, calc(100vw - 24px)); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); box-shadow: 0 30px 80px -24px rgba(0,0,0,.4), 0 0 0 1px var(--line); overflow: hidden; animation: clSlide .26s cubic-bezier(.22, 1, .36, 1); }
@keyframes clSlide { from { opacity: 0; transform: translateX(24px); } }
.cl-r-h { display: flex; align-items: flex-start; gap: 10px; padding: 18px 14px 6px 20px; }
.cl-r-h > .mono-tile, .cl-r-h > .cl-ft { margin-top: 1px; }
.cl-r-t { flex: 1; min-width: 0; font: 500 18px/1.3 var(--display); letter-spacing: -.015em; overflow-wrap: anywhere; }
.cl-r-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 20px 0 58px; font-size: 12px; color: var(--ink-3); }
.cl-r-meta span { overflow-wrap: anywhere; }
.cl-r-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px 14px; border-bottom: 1px solid var(--line); }
.cl-r-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px 28px; }
.cl-r-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.cl-r-skel { height: 12px; border-radius: 6px; margin-bottom: 12px; background: linear-gradient(90deg, var(--raised), var(--hover), var(--raised)); background-size: 200% 100%; animation: cl-sk 1.4s linear infinite; }
.cl-r-skel:nth-child(3n) { width: 70%; }

@media (max-width: 900px) { .cl2 .cl-hits { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cl2 .cl-head { gap: 8px 12px; margin-bottom: 12px; }
  .cl2 .cl-head h1 { font-size: 21px; width: 100%; }
  .cl2 .cl-head .grow { display: none; }
  .cl2 .cl-head .cl-add { margin-left: auto; height: 36px; padding: 0 14px; }
  .cl-add-x { display: none; }
  .cl-stats { gap: 4px 12px; }
  .cl-stats .meter { display: none; }
  .cl-ask { padding: 6px 6px 6px 14px; margin-bottom: 12px; }
  .cl-ask input { font-size: 14.5px; height: 36px; }
  .cl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cl-card { min-height: 112px; padding: 12px; gap: 6px; }
  .cl-card-t { font-size: 13.5px; }
  .cl-card-m { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cl-reader { top: auto; right: 0; left: 0; bottom: 0; width: 100%; max-height: 90vh; border-radius: 22px 22px 0 0; animation-name: clUp; }
  .cl-rscrim { background: rgba(15, 15, 16, .32); }
  .cl-r-meta { padding-left: 20px; }
}
@keyframes clUp { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 340px) { .cl-grid { grid-template-columns: minmax(0, 1fr); } .cl-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .cl-card, .cl2 .cl-hit, .cl-reader, .cl-rscrim { transition: none; animation: none; } }
/* tiles inside the shared filter track keep their own look (the track styles every span as a count) */
.cl-bar .cl-filters .mono-tile { background: color-mix(in srgb, var(--c) 15%, var(--panel)); color: color-mix(in srgb, var(--c) 82%, #000); font-size: 8.5px; font-weight: 600; padding: 0; }
.cl-bar .cl-filters .mono-tile.logo { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.cl-bar .cl-filters .cl-stack { padding: 0; background: none; }
:root[data-theme="dark"] .cl-bar .cl-filters .mono-tile:not(.logo) { background: color-mix(in srgb, var(--c) 26%, var(--panel)); color: color-mix(in srgb, var(--c) 45%, #fff); }

/* Tabbed pop-ups keep ONE height whatever the tab (owner 2026-11-11: "the height is increased and decreased … fixed permanently");
   the body scrolls inside instead. Rule for every tabbed pop-up: set height, never let content size it. */
.cl-modal { height: min(720px, calc(100dvh - 24px)); }
.cl-m-b { flex: 1; scrollbar-gutter: stable; }
@media (max-width: 600px) { .cl-modal { height: 88dvh; } }
.cl-busy { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel); font-size: 13px; color: var(--ink-2); }
