/* Team Notebooks: two themes (light / dark), switched with data-theme on <html>. */
:root {
  --bg: #f4f5f8;
  --bg-glow: radial-gradient(1200px 420px at 15% -10%, rgba(91, 80, 240, .10), transparent 60%),
             radial-gradient(900px 380px at 95% -20%, rgba(14, 165, 233, .08), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f5;
  --border: #e3e6ed;
  --border-strong: #cfd5df;
  --text: #0f1729;
  --text-2: #4a5568;
  --text-3: #8a94a6;
  --accent: #5b50f0;
  --accent-2: #8b5cf6;
  --accent-soft: #efedff;
  --accent-ink: #ffffff;
  --ok: #08875a;
  --ok-soft: #e4f7ee;
  --warn: #b25e09;
  --warn-soft: #fff3e3;
  --bad: #d12f2f;
  --bad-soft: #fdeeee;
  --info: #0b7cc1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, .05);
  --shadow: 0 1px 2px rgba(15, 23, 41, .04), 0 6px 18px -8px rgba(15, 23, 41, .10);
  --shadow-lg: 0 18px 40px -16px rgba(15, 23, 41, .25);
  --ring: 0 0 0 3px rgba(91, 80, 240, .22);
  --topbar: rgba(255, 255, 255, .78);
  --radius: 14px;
  --radius-sm: 10px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #090b10;
  --bg-glow: radial-gradient(1200px 420px at 15% -10%, rgba(124, 108, 255, .16), transparent 60%),
             radial-gradient(900px 380px at 95% -20%, rgba(14, 165, 233, .10), transparent 60%);
  --surface: #10131a;
  --surface-2: #151922;
  --surface-3: #1c212c;
  --border: #222836;
  --border-strong: #303849;
  --text: #edf0f6;
  --text-2: #a8b1c2;
  --text-3: #6c7588;
  --accent: #8d84ff;
  --accent-2: #b48cff;
  --accent-soft: rgba(141, 132, 255, .14);
  --accent-ink: #0b0d13;
  --ok: #3fd193;
  --ok-soft: rgba(63, 209, 147, .12);
  --warn: #f6b955;
  --warn-soft: rgba(246, 185, 85, .12);
  --bad: #ff7c72;
  --bad-soft: rgba(255, 124, 114, .12);
  --info: #5cc2ff;
  --shadow-sm: none;
  --shadow: 0 0 0 1px rgba(255, 255, 255, .02), 0 10px 30px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 22px 50px -18px rgba(0, 0, 0, .8);
  --ring: 0 0 0 3px rgba(141, 132, 255, .30);
  --topbar: rgba(9, 11, 16, .72);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg-glow), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14.5px/1.5 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
[hidden] { display: none !important; }  /* hidden wins over .fld, .btn and other display rules */
button, input, select { font: inherit; color: inherit; }
svg { flex: none; }
.mono, .num-font { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; }
.num-font { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ------------------------------------------------------------------ top bar */
.topbar {
  position: sticky; top: 0; z-index: 20; background: var(--topbar);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { height: 60px; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; letter-spacing: -.015em; color: var(--text); white-space: nowrap; }
.logo {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 16px -6px var(--accent);
}
.grow { flex: 1; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.theme-dark-only { display: none; }
:root[data-theme="dark"] .theme-dark-only { display: block; }
:root[data-theme="dark"] .theme-light-only { display: none; }
.user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 999px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none;
  display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft);
}
.avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.user-name { font-weight: 600; font-size: 14px; }
@media (max-width: 640px) { .user-name, .user .tag { display: none; } }

/* ------------------------------------------------------------------ stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.stat-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.stat-line { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.stat-value { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.stat-value small { font-size: 14px; font-weight: 600; color: var(--text-3); margin-left: 2px; letter-spacing: 0; }
.stat-sub { font-size: 13px; color: var(--text-2); margin-top: auto; }
/* running now: one face per person */
.faces { display: flex; align-items: center; }
.face { display: inline-flex; margin-left: -7px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.face:first-child { margin-left: 0; }
.face.wait { opacity: .5; }
.face.more { width: 26px; height: 26px; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--text-2); background: var(--surface-3); }
/* spending now: green flashing dot while anything is running */
.live { position: relative; width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); flex: none; }
.live.on { background: var(--ok); animation: live-glow 1.6s ease-in-out infinite; }
.live.on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: live-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes live-ping { 0% { transform: scale(1); opacity: .65; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes live-glow { 0%, 100% { box-shadow: 0 0 0 3px var(--ok-soft); } 50% { box-shadow: 0 0 0 3px var(--ok-soft), 0 0 14px var(--ok); } }
@media (prefers-reduced-motion: reduce) { .live.on, .live.on::after { animation: none; } }
/* this month: used of total, with what's left */
.stat.month .stat-line { align-items: baseline; gap: 7px; }
.stat-of { font-size: 14px; color: var(--text-3); }
.mbar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 2px 0; }
.mbar i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--ok); transition: width .5s ease, background-color .3s; }
.mbar i.hot { background: var(--warn); }
.mbar i.out { background: var(--bad); }
.stat-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); margin-top: auto; }
.stat-foot b { color: var(--text); font-weight: 650; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }
}

/* ------------------------------------------------------------------ layout & panels */
.layout { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; padding-bottom: 60px; }
.col { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.panel-head h2 { margin: 0; font-size: 15.5px; letter-spacing: -.01em; }
.panel-head .sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.panel-body { padding: 14px 18px 18px; }
.count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.launch { position: sticky; top: 76px; overflow: hidden; }
@media (max-width: 1000px) { .launch { position: static; } }

/* ------------------------------------------------------------------ launch form */
.step { padding: 14px 0; border-top: 1px solid var(--border); }
.step:first-child { border-top: 0; padding-top: 2px; }
.step-title { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; margin-bottom: 10px; }
.step-title .n {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
}
.step-aside { margin-left: auto; font-weight: 500; font-size: 12.5px; color: var(--text-3); }
.opt-grid { display: grid; gap: 8px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 380px) { .cols-3 { grid-template-columns: 1fr 1fr; } }
.tile {
  position: relative; display: grid; gap: 1px; padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; min-width: 0;
}
.tile:hover { border-color: var(--border-strong); background: var(--surface-3); }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile .t-name { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-sub { font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .t-price { font-size: 12px; font-weight: 600; color: var(--text); }
.tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.tile:has(input:checked)::after {
  content: ""; position: absolute; top: 8px; right: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.5L12 5.3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.tile:has(input:focus-visible) { box-shadow: var(--ring); }
.tile .t-tag { justify-self: start; margin-top: 4px; }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); }
.stepper button { width: 28px; height: 26px; border: 0; background: transparent; cursor: pointer; color: var(--text-2); font-size: 16px; line-height: 1; }
.stepper button:hover { background: var(--surface-3); color: var(--text); }
.stepper output { min-width: 34px; text-align: center; font-size: 13px; font-weight: 650; }
.stepper.off { opacity: .45; pointer-events: none; }

.slider-row { display: grid; grid-template-columns: 52px 1fr 78px; align-items: center; gap: 12px; }
.slider-row + .slider-row { margin-top: 10px; }
.slider-row label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.slider-row output { text-align: right; font-weight: 650; font-size: 13.5px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); outline: none; cursor: pointer;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: var(--fill, 50%) 100%; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow-sm); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: var(--ring); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px;
  font-size: 13px; cursor: pointer; user-select: none; background: var(--surface-2); transition: all .15s;
}
.chip input { display: none; }
.chip .box { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; }
.chip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.chip:has(input:checked) .box { background: var(--accent); border-color: var(--accent); }
.chip:has(input:checked) .box::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.chip:hover { border-color: var(--border-strong); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: var(--surface-3); border-radius: 10px; }
.seg label { text-align: center; padding: 6px 4px; border-radius: 8px; cursor: pointer; font-size: 13px; font-weight: 550; color: var(--text-2); white-space: nowrap; transition: all .15s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:hover { color: var(--text); }
.seg label:has(input:checked) { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); font-weight: 650; }
.seg label:has(input:focus-visible) { box-shadow: var(--ring); }
.mini-label { font-size: 12.5px; font-weight: 600; color: var(--text-3); margin: 0 0 6px; }
.mini-label + .seg + .mini-label { margin-top: 12px; }

.launch-foot {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.cost { flex: 1; min-width: 0; }
.cost-main { display: flex; align-items: baseline; gap: 4px; }
.cost-main b { font-size: 22px; letter-spacing: -.02em; }
.cost-main small { color: var(--text-2); font-size: 13px; }
.cost-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary { font-size: 12.5px; color: var(--text-2); padding: 10px 18px 0; }
.note { font-size: 12.5px; color: var(--text-3); margin: 12px 0 0; line-height: 1.55; }
code, .code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--text); }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px var(--accent); }
:root[data-theme="dark"] .btn.primary { color: #0b0d13; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.lg { height: 44px; padding: 0 18px; font-size: 14.5px; border-radius: 12px; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; filter: none; }
.btn.block { width: 100%; }

/* ------------------------------------------------------------------ badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.run { background: var(--ok-soft); color: var(--ok); }
.badge.run .dot { box-shadow: 0 0 0 0 currentColor; animation: pulse 2s infinite; }
.badge.wait { background: var(--warn-soft); color: var(--warn); }
.badge.wait .dot { animation: blink 1.1s infinite; }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
@keyframes blink { 50% { opacity: .25; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent); } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.tag { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }

/* ------------------------------------------------------------------ notebook cards */
.nb { border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface-2); display: grid; gap: 12px; }
.nb + .nb { margin-top: 10px; }
.nb.run { border-color: color-mix(in srgb, var(--ok) 35%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 5%, var(--surface-2)), var(--surface-2)); }
.nb-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nb-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); flex: none; }
.nb.run .nb-icon { color: var(--ok); }
.nb-title { min-width: 0; flex: 1; }
.nb-name { font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb-sub b { color: var(--text); font-weight: 600; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 560px) { .metrics { grid-template-columns: 1fr 1fr; } }
.metric { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.metric span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.metric b { font-size: 14.5px; font-weight: 650; white-space: nowrap; }
.meter { height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s; }
.nb-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nb-actions .spacer { flex: 1; }
.nb-detail { font-size: 13px; color: var(--text-2); }
.nb-error { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 12px; white-space: pre-wrap; color: var(--bad);
  background: var(--bad-soft); border-radius: 8px; padding: 9px 11px; max-height: 170px; overflow: auto; }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.progress .p { display: grid; gap: 6px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.progress .p i { height: 4px; border-radius: 999px; background: var(--surface-3); position: relative; overflow: hidden; }
.progress .p.done i { background: var(--ok); }
.progress .p.done { color: var(--text-2); }
.progress .p.now { color: var(--text); }
.progress .p.now i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); animation: slide 1.3s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.sub-head { display: flex; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: 12.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.rows { display: grid; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--border); min-width: 0; }
.row:first-child { border-top: 0; }
.row .r-main { flex: 1; min-width: 0; }
.row .r-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-sub { font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r-side { text-align: right; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.row .r-side b { color: var(--text); font-size: 13.5px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.sdot.run { background: var(--ok); }
.sdot.wait { background: var(--warn); }
.sdot.bad { background: var(--bad); }

.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 26px 12px; color: var(--text-2); font-size: 13.5px; }
.empty .art { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--accent); background: var(--accent-soft); }
.empty b { color: var(--text); font-size: 14px; }

.acct-bar { height: 4px; border-radius: 999px; background: var(--surface-3); margin-top: 6px; overflow: hidden; max-width: 160px; }
.acct-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

details.add { margin-top: 10px; border-top: 1px solid var(--border); padding-top: 12px; }
details.add summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--accent); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.add summary::-webkit-details-marker { display: none; }
details.add .grid { display: grid; gap: 8px; margin-top: 12px; }
.input {
  width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.hint { font-size: 12.5px; color: var(--text-3); }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 12px); background: var(--text); color: var(--bg);
  padding: 11px 16px; border-radius: 12px; font-size: 13.5px; font-weight: 550; box-shadow: var(--shadow-lg); opacity: 0;
  pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }

/* ------------------------------------------------------------------ login */
.login-wrap { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.login-top { display: flex; justify-content: flex-end; padding: 16px 20px; }
.login { display: grid; place-items: center; padding: 16px 16px 80px; }
.login-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px 30px 28px; }
.login-card .logo { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px; }
.login-card h1 { font-size: 24px; letter-spacing: -.025em; margin: 0 0 8px; }
.login-card p.lead { color: var(--text-2); margin: 0 0 22px; font-size: 14.5px; }
.features { display: grid; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; }
.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.features li svg { color: var(--accent); margin-top: 2px; }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; height: 46px; font-size: 15px; border-radius: 12px; width: 100%; }
.btn.discord:hover { background: #4954e0; }
.alert { background: var(--bad-soft); color: var(--bad); padding: 11px 13px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.dev-login { display: flex; gap: 8px; margin-top: 14px; }
.foot-note { text-align: center; font-size: 12.5px; color: var(--text-3); margin-top: 18px; }
.btn.icon-only { width: 32px; padding: 0; color: var(--text-3); }
.btn.icon-only:hover { color: var(--bad); background: var(--bad-soft); }
.app-foot { text-align: center; font-size: 12px; color: var(--text-3); padding: 0 20px 28px; }
.layout { padding-bottom: 28px; }

/* account budget bars */
.tile .t-bar { display: block; height: 4px; border-radius: 999px; background: var(--surface-3); margin: 6px 0 2px; overflow: hidden; }
.tile .t-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ok); }
.tile .t-bar i.hot, .acct-bar i.hot { background: var(--warn); }
.tile:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.acct-bar { max-width: 260px; }
.row .r-sub b { color: var(--text); }
.chip.fixed { cursor: default; border-style: dashed; color: var(--text-2); background: transparent; }
.btn.icon-only.neutral:hover { color: var(--accent); background: var(--accent-soft); }
.btn.icon-only:disabled { opacity: .35; }

/* confirmation dialog */
.dlg { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 32px); }
.dlg::backdrop { background: rgba(8, 10, 16, .45); backdrop-filter: blur(3px); }
.dlg[open] { animation: dlg-in .16s ease-out; }
@keyframes dlg-in { from { transform: translateY(8px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.dlg-card { width: min(440px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 20px 20px 16px; }
.dlg-card h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -.01em; }
.dlg-body { font-size: 14px; color: var(--text-2); }
.dlg-body p { margin: 10px 0 0; line-height: 1.55; }
.dlg-body .facts { list-style: none; margin: 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; display: grid; gap: 4px; }
.dlg-body .facts b { color: var(--text); }
.dlg-input { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 650; }
.dlg-input[hidden] { display: none; }
.dlg-input .input { max-width: 160px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.btn.danger-solid { background: var(--bad); border-color: transparent; color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); background: var(--bad); }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid var(--border); }
.tab { position: relative; border: 0; background: transparent; padding: 10px 14px; font-weight: 650; font-size: 14px; color: var(--text-2); cursor: pointer; border-radius: 8px 8px 0 0; }
.tab:hover { color: var(--text); background: var(--surface-3); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.tab:focus-visible { outline: none; box-shadow: var(--ring); }
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--accent); color: #fff; }
[data-tabpanel][hidden] { display: none !important; }
.vol-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .vol-layout { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ volume grid */
/* the volume name and the buttons are pinned; only the account columns scroll (and snap) between them */
.vscroll { overflow-x: auto; scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
.vgrid { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.vgrid th { text-align: center; font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 6px 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--border); }
.vgrid th.acct { scroll-snap-align: start; }
.vgrid th.acct span { display: block; max-width: 120px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis;
  text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.vgrid td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.vgrid tr:last-child td { border-bottom: 0; }
.vgrid .pin-l, .vgrid .pin-r { position: sticky; z-index: 2; background: var(--surface); }
.vgrid .pin-l { left: 0; text-align: left; }
.vgrid .pin-r { right: 0; text-align: right; }
.vgrid td.pin-l { font-weight: 600; }
.vgrid tr:hover td { background: var(--surface-2); }
.vname { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
/* pinned columns: a plain divider line while the accounts overflow, and the accounts fade out under a pinned
   column on the side where more of them are hidden (one fade per cell, so it runs unbroken down the table) */
.vgrid .pin-l { border-right: 1px solid transparent; }
.vgrid .pin-r { border-left: 1px solid transparent; }
.vscroll:not(.fits) .pin-l { border-right-color: var(--border-strong); }
.vscroll:not(.fits) .pin-r { border-left-color: var(--border-strong); }
.vgrid .pin-l::after, .vgrid .pin-r::before {
  content: ""; position: absolute; top: -1px; bottom: 0; width: 28px; pointer-events: none; opacity: 0; transition: opacity .2s;
}
.vgrid .pin-l::after { left: 100%; background: linear-gradient(90deg, var(--surface), transparent); }
.vgrid .pin-r::before { right: 100%; background: linear-gradient(270deg, var(--surface), transparent); }
.vgrid tr:hover .pin-l::after { background: linear-gradient(90deg, var(--surface-2), transparent); }
.vgrid tr:hover .pin-r::before { background: linear-gradient(270deg, var(--surface-2), transparent); }
.vscroll:not(.at-start) .pin-l::after, .vscroll:not(.at-end) .pin-r::before { opacity: 1; }
/* "1–3 of 8" and the arrows, in the header above the buttons */
.vnav { display: inline-flex; align-items: center; gap: 4px; }
.vpage { margin-right: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.vnav .icon-btn { width: 28px; height: 28px; border-radius: 8px; }
.vscroll.fits .vnav { display: none; }
.vscroll.at-start [data-vscroll="-1"], .vscroll.at-end [data-vscroll="1"] { opacity: .35; pointer-events: none; }
@media (max-width: 640px) { .vpage { display: none; } }
.vactions .btn svg { display: none; }
@media (max-width: 640px) {
  .vname { max-width: 110px; }
  .vactions .btn { width: 32px; padding: 0; }
  .vactions .btn svg { display: block; }
  .vactions .btn span { display: none; }
}
.has { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ok-soft); color: var(--ok); }
button.has { border: 0; padding: 0; cursor: pointer; transition: box-shadow .12s; }
button.has:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 50%, transparent); }
button.has:focus-visible { outline: none; box-shadow: var(--ring); }
.hasnt { color: var(--text-3); }
/* workspaces sit above the shared volumes; the filled ✓ is the newest copy, the dot a copy a notebook has open */
.vsub { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.vgrid tr.first-shared td { border-top: 1px solid var(--border-strong); }
button.has.newest { background: var(--ok); color: var(--surface); }
button.has.inuse { position: relative; }
button.has.inuse::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--surface); }
.vol-none { padding: 12px 2px 0; }
@media (max-width: 640px) { .vsub { max-width: 110px; } }

/* ------------------------------------------------------------------ transfers */
.xfer { border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); display: grid; gap: 8px; }
.xfer + .xfer { margin-top: 10px; }
.xfer.xfer-live { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface-2)); }
.xfer-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.xfer-title { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; }
.xfer-title .route { color: var(--text-2); font-weight: 500; }
.xfer-meta { font-size: 12.5px; color: var(--text-2); }
.xfer-meta b { color: var(--text); font-weight: 650; }
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar.big { height: 12px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .35s ease; }
.bar.ok i { background: var(--ok); }
.bar.bad i { background: var(--bad); }
.bar.indet i { width: 35% !important; animation: slide 1.2s ease-in-out infinite; }
.xfer .err { font-size: 12px; color: var(--bad); white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------------ upload / copy dialogs */
.dlg-card.wide { width: min(620px, calc(100vw - 32px)); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.fld { display: grid; gap: 6px; font-size: 12.5px; font-weight: 650; color: var(--text-2); margin-top: 12px; }
.form-grid .fld { margin-top: 0; }
.fld em { font-style: normal; font-weight: 500; color: var(--text-3); }
select.input { padding-right: 28px; }
.drop { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); font-size: 13.5px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .drop-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.drop .btn { margin-top: 6px; }
.up-summary { margin-top: 10px; font-size: 13px; color: var(--text-2); }
.up-summary b { color: var(--text); }
.up-summary .names { margin-top: 4px; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.disabled { opacity: .5; pointer-events: none; }
.chip .note { font-size: 11px; color: var(--text-3); }
.tab-badge[hidden] { display: none; }

/* warm-up */
.warming { display: inline-flex; align-items: center; gap: 6px; }
.spin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* file browser */
.dlg-card.browse { width: min(760px, calc(100vw - 32px)); padding-bottom: 12px; }
.br-head { display: flex; align-items: center; gap: 8px; }
.br-head h3 { margin: 0; }
.sm-input { height: 32px; width: auto; padding: 0 28px 0 10px; font-size: 13px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 12px 0 8px; font-size: 13px; }
.crumbs a { color: var(--accent); padding: 2px 6px; border-radius: 6px; }
.crumbs a:hover { background: var(--accent-soft); }
.crumbs .sep { color: var(--text-3); }
.crumbs .here { padding: 2px 6px; font-weight: 650; color: var(--text); }
.br-list { max-height: min(56vh, 520px); overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; background: var(--surface-2); }
.br-row { padding: 8px 2px; }
.br-row .r-title { font-weight: 550; }
a.r-title { color: var(--text); }
a.r-title:hover { color: var(--accent); }
.br-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); flex: none; }
.br-ico.dir { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.br-tools { display: flex; align-items: center; gap: 6px; margin: 12px 0 8px; }
.br-tools .crumbs { flex: 1; min-width: 0; margin: 0; }
@media (max-width: 560px) { .br-tools { flex-wrap: wrap; } .br-tools .crumbs { flex-basis: 100%; } }
.br-note, .up-ws-note { margin: 10px 0 0; line-height: 1.5; }
.br-note.warn, .up-ws-note.warn { color: var(--warn); }
.br-note code { font-size: 12px; }
.br-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.br-foot .hint { flex: 1; }
.vgrid td.vactions { white-space: nowrap; text-align: left; }  /* Browse lines up on every row, with or without Copy to… */
.vgrid td.vactions .btn + .btn { margin-left: 4px; }

/* ------------------------------------------------------------------ notebook details (usage.js) */
.nb.clickable, .row.clickable { cursor: pointer; }
.nb.clickable { transition: border-color .15s, box-shadow .15s; }
.nb.clickable:hover { border-color: color-mix(in srgb, var(--ok) 60%, var(--border)); box-shadow: var(--shadow); }
.row.clickable { border-radius: 8px; transition: background .12s; }
.row.clickable:hover { background: var(--surface-2); }
.linkish { border: 0; padding: 0; margin: 0; background: none; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.linkish:hover { text-decoration: underline; text-underline-offset: 3px; }
.linkish:focus-visible { outline: none; box-shadow: var(--ring); }
.dlg-card.usage { width: min(740px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow-y: auto; }  /* scrolls inside: a scrollbar on the dialog would make it 15px too narrow */
.u-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.u-head .u-title { flex: 1; min-width: 0; }
.u-head h3 { margin: 0; font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-head .nb-icon.on { color: var(--ok); }
.u-empty { padding: 22px 2px 6px; font-size: 13.5px; color: var(--text-2); }
.u-sec { margin-top: 18px; }
.u-sec-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.u-sec-head .hint { margin-left: auto; font-size: 12px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.u-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 620px) { .u-tiles { grid-template-columns: 1fr; } }
.u-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px 12px 10px; background: var(--surface-2); min-width: 0; }
.u-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.u-name { font-size: 13px; font-weight: 650; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-val { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; }
.u-meter { height: 6px; margin: 8px 0 6px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.u-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .4s; }
.u-meter.warn i { background: var(--warn); }
.u-of { min-height: 17px; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-flag { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; color: var(--text); font-weight: 600; }
.u-flag svg { color: var(--warn); }
.u-chart { position: relative; height: 96px; margin-top: 8px; border-radius: 8px; outline: none; touch-action: pan-y; }
.u-chart:focus-visible { box-shadow: var(--ring); }
.u-chart svg { display: block; width: 100%; height: 96px; overflow: visible; }
.u-chart.nodata::after { content: "The chart fills in as the notebook reports, every 15 s"; position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 12px; color: var(--text-3); border: 1px dashed var(--border); border-radius: 8px; }
.u-grid { stroke: var(--border); stroke-width: 1; shape-rendering: crispEdges; }
.u-grid.u-ref { stroke: var(--border-strong); }
.u-tick { fill: var(--text-3); font-size: 10px; font-variant-numeric: tabular-nums; }
.u-area { fill: var(--accent); fill-opacity: .1; }
.u-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.u-dot, .u-hdot { fill: var(--accent); stroke: var(--surface-2); stroke-width: 2; }
.u-cross { stroke: var(--text-3); stroke-width: 1; shape-rendering: crispEdges; }
.u-tip { position: absolute; top: 0; transform: translate(-50%, calc(-100% - 6px)); z-index: 3; display: flex; gap: 6px; align-items: baseline;
  padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 12px; white-space: nowrap; pointer-events: none; }
.u-tip[hidden] { display: none; }
.u-tip b { font-weight: 650; color: var(--text); }
.u-tip span { color: var(--text-3); font-variant-numeric: tabular-nums; }
.u-stats { margin-top: 4px; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-table { margin-top: 10px; font-size: 12.5px; }
.u-table summary { cursor: pointer; width: max-content; color: var(--text-2); font-weight: 600; border-radius: 6px; }
.u-table summary:focus-visible { outline: none; box-shadow: var(--ring); }
.u-table-wrap { max-height: 220px; overflow: auto; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; }
.u-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.u-table th, .u-table td { padding: 5px 10px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
.u-table th:first-child, .u-table td:first-child { text-align: left; }
.u-table thead th { position: sticky; top: 0; background: var(--surface); font-size: 11.5px; font-weight: 650; color: var(--text-3); }
.u-table tbody tr:last-child td { border-bottom: 0; }
.u-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 620px) { .u-facts { grid-template-columns: 1fr 1fr; } }
.u-fact { min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.u-fact > span { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.u-fact b { display: block; font-size: 14.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-fact em { display: block; font-style: normal; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-price { margin-top: 10px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.u-price b, .u-note b { color: var(--text); }
.u-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 8px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.u-note svg { flex: none; margin-top: 3px; color: var(--warn); }
.u-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.u-actions .spacer { flex: 1; }

/* ------------------------------------------------------------------ copies that differ (volumes.js) */
.vsub.vwarn { color: var(--warn); font-weight: 650; }
button.has.differs { background: var(--warn-soft); color: var(--warn); }
button.has.differs:hover { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 50%, transparent); }
.btn.attn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, var(--border)); }
.btn.attn:hover { background: var(--warn-soft); }
.vol-cmp { display: flex; align-items: center; gap: 8px; padding: 12px 2px 0; }
@media (min-width: 641px) { .vactions [data-copyvol] { min-width: 86px; } }  /* "Sync…" as wide as "Copy to…" */

/* the copy dialog: modes and what each account would get */
.cp-modes .tile { gap: 3px; padding: 10px 12px; }
.cp-modes .tile .t-sub { white-space: normal; line-height: 1.4; font-weight: 500; }
.tile.disabled { opacity: .5; cursor: not-allowed; }
.cp-preview { margin-top: 14px; display: grid; gap: 8px; font-size: 13px; }
.cp-preview:empty { display: none; }
.cp-src { color: var(--text-2); }
.cp-src b { color: var(--text); font-weight: 650; }
.cp-wait { display: flex; align-items: center; gap: 8px; color: var(--text-2); padding: 10px 0; }
.cp-row { border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; background: var(--surface-2); display: grid; gap: 3px; min-width: 0; }
.cp-acct { font-size: 11.5px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.cp-main { color: var(--text); }
.cp-main b { font-weight: 650; }
.cp-sub { font-size: 12.5px; color: var(--text-2); min-width: 0; }
.cp-open { color: var(--warn); }
.cp-err { color: var(--bad); font-size: 13px; }
.cp-files summary { cursor: pointer; color: var(--accent); font-weight: 600; width: fit-content; }
.cp-files summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
.cp-files ul { list-style: none; margin: 6px 0 0; padding: 0; max-height: 180px; overflow: auto; display: grid; gap: 3px; }
.cp-files li { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cp-files code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.cp-files .faint { white-space: nowrap; font-size: 11.5px; }
.cp-tag { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); }
.cp-tag.del { background: var(--bad-soft); color: var(--bad); }
