/* Studio – design system */
:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-2: #F1F1EE;
  --surface-3: #E9E9E5;
  --border: #E6E6E1;
  --border-strong: #D3D3CC;
  --text: #121212;
  --text-2: #55554F;
  --text-3: #8C8C85;
  --accent: #121212;
  --accent-text: #FFFFFF;
  --focus: #3B5BFD;
  --up: #12805C;
  --up-bg: #E3F4EC;
  --down: #C2410C;
  --down-bg: #FCEBE1;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --info: #3B5BFD;
  --info-bg: #E8ECFF;
  --st-new: #3B5BFD;
  --st-review: #B45309;
  --st-approved: #12805C;
  --st-rejected: #C2410C;
  --st-posted: #7C3AED;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 18px;
  --shadow-1: 0 1px 2px rgba(18, 18, 18, .05);
  --shadow-2: 0 2px 8px rgba(18, 18, 18, .06), 0 1px 2px rgba(18, 18, 18, .04);
  --shadow-3: 0 24px 60px -12px rgba(18, 18, 18, .25), 0 2px 6px rgba(18, 18, 18, .06);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --sidebar: 232px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --logo-dot: #FFFFFF;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0E0E0F;
  --surface: #161617;
  --surface-2: #1E1E20;
  --surface-3: #27272A;
  --border: #26262A;
  --border-strong: #36363B;
  --text: #F2F2F0;
  --text-2: #B4B4AE;
  --text-3: #7C7C77;
  --accent: #F2F2F0;
  --accent-text: #111111;
  --up: #34D399;
  --up-bg: #0F2A21;
  --down: #FB923C;
  --down-bg: #2E1A0E;
  --warn: #FBBF24;
  --warn-bg: #2A220C;
  --info: #8EA2FF;
  --info-bg: #161C38;
  --st-new: #8EA2FF;
  --st-review: #FBBF24;
  --st-approved: #34D399;
  --st-rejected: #FB923C;
  --st-posted: #C4B5FD;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, .45);
  --shadow-3: 0 24px 60px -12px rgba(0, 0, 0, .7);
  --logo-dot: #111111;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--info-bg); }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spacer { flex: 1; }
hr.sep { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 18px 12px; border-right: 1px solid var(--border); background: var(--bg);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand .ic { color: var(--text); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--radius-s);
  color: var(--text-2); font-weight: 500; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--border); }
.nav .badge { margin-left: auto; }
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 18px 10px 6px; font-weight: 600; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-s); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; }
.me-card:hover { background: var(--surface-2); }
.main { min-width: 0; }
.page { padding: 28px 36px 64px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; letter-spacing: -.025em; margin: 0; font-weight: 650; }
.page-head p { margin: 4px 0 0; color: var(--text-2); }
.mobile-bar { display: none; }

/* ---------- Avatar ---------- */
.avatar {
  width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 650; color: #fff; letter-spacing: .02em;
}
.avatar.sm { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.bot { background: var(--text) !important; color: var(--bg); }
.avatar.bot .ic { width: 62%; height: 62%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: var(--radius-s); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-weight: 550; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  box-shadow: var(--shadow-1); user-select: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--down); }
.btn.danger:hover { background: var(--down-bg); border-color: var(--down); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; gap: 6px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 10px; }
.btn.icon { width: 36px; padding: 0; }
.btn.icon.sm { width: 30px; }
.btn.block { width: 100%; }
.btn.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-group { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-s); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); }
.btn-group button { border: 0; background: none; height: 34px; padding: 0 12px; cursor: pointer; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.btn-group button + button { border-left: 1px solid var(--border); }
.btn-group button.on { background: var(--surface-2); color: var(--text); }
.btn-group.sm button { height: 28px; padding: 0 9px; font-size: 12.5px; }

/* Rating buttons */
.rate { display: inline-flex; gap: 6px; }
.rate button {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; color: var(--text-2);
  transition: all .15s var(--ease);
}
.rate button:hover { color: var(--text); border-color: var(--text-3); }
.rate button.up.on { background: var(--up-bg); color: var(--up); border-color: var(--up); }
.rate button.down.on { background: var(--down-bg); color: var(--down); border-color: var(--down); }
.rate button .n { font-variant-numeric: tabular-nums; font-size: 13px; }
.rate.lg button { height: 48px; padding: 0 22px; font-size: 15px; }
.rate.lg button .ic { width: 22px; height: 22px; }
.rate button.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.12); } }

/* ---------- Inputs ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--radius-s); border: 1px solid var(--border-strong);
  background: var(--surface); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 18%, transparent); }
.input.sm, .select.sm { height: 32px; font-size: 13px; padding: 0 10px; }
.select { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238C8C85' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.input-icon > .input { padding-left: 38px; }
.input-icon kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-3); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--text); }
input[type=range] { accent-color: var(--text); width: 100%; }
input[type=color] { width: 36px; height: 36px; padding: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-s); background: none; cursor: pointer; }
input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
input[type=color]::-webkit-color-swatch { border: 0; border-radius: 5px; }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-2); cursor: pointer;
  font-weight: 550; font-size: 13px; white-space: nowrap; transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--text-3); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .x { opacity: .6; margin-right: -4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge.mono { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge.solid { background: var(--text); color: var(--bg); }
.badge.up { background: var(--up-bg); color: var(--up); }
.badge.down { background: var(--down-bg); color: var(--down); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.info { background: var(--info-bg); color: var(--info); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--text-3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--text-3)) 18%, transparent); }
.status.new { --c: var(--st-new); } .status.review { --c: var(--st-review); } .status.approved { --c: var(--st-approved); }
.status.rejected { --c: var(--st-rejected); } .status.posted { --c: var(--st-posted); }
.cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--text-2); }
.cat::before { content: ''; width: 8px; height: 8px; border-radius: 2.5px; background: var(--c); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px; }
.card h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.01em; }
.section-title { font-size: 13px; font-weight: 650; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; gap: 12px; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; }
.stat:hover { border-color: var(--border-strong); }
.stat .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.stat .v { font-size: 20px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat .l { font-size: 12.5px; color: var(--text-2); }

/* ---------- Toolbar / Filters ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { flex: 1; min-width: 240px; max-width: 560px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-pop { position: relative; }
.pop {
  position: fixed; z-index: 95; min-width: 220px; max-width: calc(100vw - 16px); max-height: 360px; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-3); padding: 6px;
  animation: popIn .14s var(--ease);
}
.pop-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(10, 10, 10, .4); animation: fadeIn .15s; }
.pop.sheet {
  left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-width: none; min-width: 0 !important; max-height: 78dvh;
  border-radius: 18px 18px 0 0; border-width: 1px 0 0; padding: 22px 10px calc(env(safe-area-inset-bottom) + 12px);
  animation: sheetUp .26s cubic-bezier(.22, .8, .25, 1);
}
.pop.sheet::before { content: ''; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--border-strong); }
.pop.sheet .pop-item { min-height: 48px; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.pop.sheet .pop-head { padding: 6px 12px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.pop-item:disabled { opacity: .4; pointer-events: none; }
.m-only { display: none !important; }
.ed-sep { width: 1px; height: 24px; background: var(--border); }
.ed-panel-body { display: contents; }
.ed-export { gap: 8px; }
@keyframes sheetIn { from { transform: translateY(40px); opacity: .4; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.pop-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 7px; border: 0; background: none; cursor: pointer; text-align: left; color: var(--text); font-size: 13.5px; }
.pop-item:hover { background: var(--surface-2); }
.pop-item .ck { margin-left: auto; color: var(--text); opacity: 0; }
.pop-item.on .ck { opacity: 1; }
.pop-item .cnt { margin-left: auto; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.pop-item.on .cnt { margin-left: 8px; }
.pop-item.danger { color: var(--down); }
.pop-sep { height: 1px; background: var(--border); margin: 6px 4px; }
.pop-head { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); padding: 8px 10px 4px; }
.pop .input { margin: 4px 0; }

/* ---------- Day groups & grid ---------- */
.day { margin-bottom: 30px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; position: sticky; top: 0; z-index: 5; padding: 10px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.day-head h2 { font-size: 15px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
.day-head span { color: var(--text-3); font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.grid.dense { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.grid.dense .pc-body { display: none; }

.pc { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; cursor: pointer; }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.pc.selected { outline: 2px solid var(--text); outline-offset: 2px; }
.pc-media { position: relative; aspect-ratio: 4 / 5; background: var(--surface-2); overflow: hidden; }
.pc-media.r-1-1 img, .pc-media.r-1-91-1 img, .pc-media.r-9-16 img { object-fit: contain; background: var(--surface-3); }
.pc-track { display: flex; height: 100%; }
.pc-track img { width: 100%; height: 100%; object-fit: cover; flex: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.pc-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.pc-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 0 2px rgba(0, 0, 0, .3); transition: all .2s; }
.pc-dots i.on { background: #fff; width: 14px; border-radius: 3px; }
.pc-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #111; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.pc-nav.l { left: 8px; } .pc-nav.r { right: 8px; }
.pc:hover .pc-nav { opacity: 1; }
.pc-nav:disabled { opacity: 0 !important; }
.pc-top { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; align-items: flex-start; pointer-events: none; }
.pc-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(17, 17, 17, .72); color: #fff; font-size: 11.5px; font-weight: 600; backdrop-filter: blur(6px); font-variant-numeric: tabular-nums; }
.pc-pill .ic { width: 13px; height: 13px; }
.pc-sel { pointer-events: auto; margin-left: auto; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgba(255, 255, 255, .9); background: rgba(17, 17, 17, .25); display: grid; place-items: center; color: transparent; cursor: pointer; opacity: 0; transition: opacity .15s; }
.pc:hover .pc-sel, .selecting .pc-sel { opacity: 1; }
.pc.selected .pc-sel { background: #fff; color: #111; opacity: 1; }
.pc-body { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 7px; }
.pc-title { font-weight: 600; font-size: 13.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 12px; min-width: 0; }
.pc-foot { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pc-foot .k { display: inline-flex; align-items: center; gap: 4px; }
.pc-foot .k.up { color: var(--up); } .pc-foot .k.down { color: var(--down); }
.pc-foot .ic { width: 14px; height: 14px; }
.pc-quick { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 6px; opacity: 0; transform: translateY(4px); transition: all .18s var(--ease); }
.pc:hover .pc-quick { opacity: 1; transform: none; }
.pc-quick button { width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); transition: transform .12s; }
.pc-quick button:hover { transform: scale(1.08); }
.pc-quick button.up.on { background: #12805C; color: #fff; }
.pc-quick button.down.on { background: #C2410C; color: #fff; }

/* List view */
.list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.li { display: grid; grid-template-columns: 56px minmax(0, 2fr) 1fr 110px 120px 110px; gap: 16px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--surface-2); }
.li-thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--surface-2); position: relative; }
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-thumb .stack-n { position: absolute; right: 3px; top: 3px; }

/* Selection bar */
.selbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; gap: 8px; align-items: center; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); animation: slideUp .2s var(--ease); }
.selbar .btn { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 25%, transparent); box-shadow: none; }
.selbar .btn:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
@keyframes slideUp { from { transform: translate(-50%, 16px); opacity: 0; } }

/* ---------- Empty ---------- */
.empty { text-align: center; padding: 72px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty h3 { margin: 14px 0 0; font-size: 17px; letter-spacing: -.01em; }
.empty p { margin: 0 0 12px; color: var(--text-2); max-width: 420px; }

/* ---------- Skeleton ---------- */
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Modal / Drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10, 10, 10, .45); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border-radius: var(--radius-l); box-shadow: var(--shadow-3); animation: modalIn .2s var(--ease); }
.modal.wide { max-width: 760px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font-size: 17px; letter-spacing: -.015em; }
.modal-head p { margin: 4px 0 0; color: var(--text-2); font-size: 13.5px; }
.modal-body { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 22px 20px; }

/* Post viewer (full screen) */
.viewer { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: grid; grid-template-columns: minmax(0, 1fr) 420px; animation: fadeIn .15s; }
.viewer-stage { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface-2); }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 64px; }
.vt-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.vt-title b { font-size: 14px; font-weight: 650; }
.vt-title span { font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-3); flex: none; }
.seg button { border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.vt-nav { flex: none; }
.viewer-canvas { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.viewer-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 18px 16px; }
.viewer-foot:empty { display: none; }
.viewer-strip { display: flex; gap: 8px; justify-content: center; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.viewer-strip::-webkit-scrollbar { display: none; }
.strip-item { position: relative; flex: none; height: 64px; max-width: 72px; border-radius: 8px; overflow: hidden; cursor: pointer; border: 0; outline: 2px solid transparent; outline-offset: 2px; opacity: .55; transition: opacity .2s, outline-color .2s; background: var(--surface); padding: 0; }
.strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.strip-item.on { outline-color: var(--text); opacity: 1; }
.strip-item:hover { opacity: 1; }
.strip-item .mk { position: absolute; bottom: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.strip-item .mk.up { background: #12805C; } .strip-item .mk.down { background: #C2410C; }
.strip-item .mk .ic { width: 11px; height: 11px; }
.vs-mrate { display: none; }
.vs-hint { font-size: 11.5px; text-align: center; }
.viewer-arrow { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-2); color: var(--text); transition: opacity .2s, transform .15s; }
.viewer-arrow:hover { transform: translateY(-50%) scale(1.05); }
.viewer-arrow.l { left: 16px; } .viewer-arrow.r { right: 16px; }
.viewer-arrow:disabled { opacity: 0; pointer-events: none; }

/* slide mode – swipe track */
.vs { position: absolute; inset: 0; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; }
.vs:active { cursor: grabbing; }
.vs-track { display: flex; height: 100%; }
.vs-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; transition: opacity .35s; opacity: .35; }
.vs-slide.cur { opacity: 1; }
.vs-frame { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-3); background: var(--surface); cursor: crosshair; }
.vs-frame img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.vs-pins { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; width: 26px; height: 26px; margin: -26px 0 0 -13px; color: #fff; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .4)); pointer-events: auto; cursor: pointer; display: grid; place-items: center; }
.pin svg { width: 26px; height: 26px; }
.pin b { position: absolute; top: 4px; font-size: 10.5px; font-weight: 700; color: #111; }
.pin.draft { animation: pop .3s; pointer-events: none; }
.pin.kind-recommendation { color: #FBBF24; } .pin.kind-todo { color: #8EA2FF; } .pin.resolved { opacity: .45; }

/* all slides */
.vs-all { position: absolute; inset: 0; overflow: auto; padding: 8px 24px 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-content: flex-start; }
.vs-all-item { position: relative; width: min(240px, calc(50% - 8px)); padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow-2); outline: 2px solid transparent; outline-offset: 3px; transition: transform .2s var(--ease), outline-color .2s; }
.vs-all-item:hover { transform: translateY(-2px); }
.vs-all-item.on { outline-color: var(--text); }
.vs-all-item img { width: 100%; display: block; object-fit: cover; }
.vs-all-item .pc-pill { position: absolute; top: 8px; left: 8px; }
.vs-all-r { position: absolute; bottom: 8px; right: 8px; display: inline-flex; gap: 8px; height: 24px; padding: 0 8px; border-radius: 6px; background: rgba(17, 17, 17, .72); backdrop-filter: blur(6px); font-size: 12px; font-weight: 650; align-items: center; }
.vs-all-r span { display: inline-flex; gap: 3px; align-items: center; }

/* Instagram feed mock – always IG light look */
.viewer-canvas[data-m='feed'] { overflow: auto; align-items: flex-start; padding: 8px 16px 24px; }
.ig-phone { width: min(400px, 100%); margin: auto; background: #fff; color: #0f0f0f; border-radius: 14px; box-shadow: var(--shadow-3); overflow: hidden; font-size: 13.5px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
.ig-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; }
.ig-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #111; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d62976; flex: none; }
.ig-media { position: relative; overflow: hidden; background: #efefef; user-select: none; cursor: grab; }
.ig-media:active { cursor: grabbing; }
.ig-track { display: flex; height: 100%; }
.ig-cell { flex: 0 0 100%; height: 100%; }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ig-count { position: absolute; top: 12px; right: 12px; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(18, 18, 18, .7); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: #111; display: grid; place-items: center; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: opacity .2s; }
.ig-arrow .ic { width: 16px; height: 16px; }
.ig-arrow.l { left: 10px; } .ig-arrow.r { right: 10px; }
.ig-arrow:disabled { opacity: 0; pointer-events: none; }
.ig-acts { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; position: relative; }
.ig-acts > .ic:last-child { margin-left: auto; }
.ig-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; transition: background .2s, transform .2s; }
.ig-dots i.on { background: #0095f6; transform: scale(1.1); }
.ig-likes { padding: 0 12px; font-weight: 600; }
.ig-cap { padding: 4px 12px 0; white-space: pre-wrap; word-break: break-word; }
.ig-tags { color: #00376b; }
.ig-time { padding: 6px 12px 14px; color: #737373; font-size: 11px; text-transform: uppercase; letter-spacing: .02em; }

/* Instagram story */
.ig-story-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.ig-story-wrap .viewer-arrow { position: absolute; }
.ig-story-wrap .viewer-arrow.l { left: -62px; } .ig-story-wrap .viewer-arrow.r { right: -62px; }
.ig-story { position: relative; border-radius: 14px; overflow: hidden; background: #000; color: #fff; box-shadow: var(--shadow-3); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; cursor: pointer; }
.ig-sframes, .ig-sf { position: absolute; inset: 0; }
.ig-sf { opacity: 0; transition: opacity .18s; display: flex; align-items: center; justify-content: center; }
.ig-sf.on { opacity: 1; }
.ig-sf img { pointer-events: none; -webkit-user-drag: none; }
.ig-sf .bg { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(28px) brightness(.55) saturate(1.2); }
.ig-sf .fg { position: relative; width: 100%; object-fit: contain; }
.ig-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .45), transparent 18%, transparent 80%, rgba(0, 0, 0, .4)); transition: opacity .2s; }
.ig-bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; transition: opacity .2s; }
.ig-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.ig-bars b { display: block; height: 100%; width: 0; background: #fff; }
.ig-shead { position: absolute; top: 22px; left: 12px; right: 6px; display: flex; align-items: center; gap: 8px; font-size: 13px; transition: opacity .2s; }
.ig-shead .ig-av { width: 30px; height: 30px; box-shadow: none; border: 1.5px solid rgba(255, 255, 255, .7); }
.ig-shead .o { opacity: .7; font-size: 12.5px; }
.ig-shead button { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.ig-shead button:hover { background: rgba(255, 255, 255, .12); }
.ig-reply { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; align-items: center; gap: 14px; transition: opacity .2s; pointer-events: none; }
.ig-reply span { flex: 1; height: 42px; border: 1px solid rgba(255, 255, 255, .55); border-radius: 21px; display: flex; align-items: center; padding: 0 16px; font-size: 13.5px; opacity: .9; }
.ig-story.held .ig-bars, .ig-story.held .ig-shead, .ig-story.held .ig-reply, .ig-story.held .ig-shade { opacity: 0; }

.viewer-side { display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--border); background: var(--surface); }
.side-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.side-head h2 { margin: 6px 0 2px; font-size: 18px; letter-spacing: -.02em; line-height: 1.3; }
.tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.tabs button { border: 0; background: none; padding: 11px 8px; margin: 0 2px; cursor: pointer; color: var(--text-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--text); border-color: var(--text); }
.tabs button .badge { height: 18px; }
.side-body { flex: 1; overflow: auto; padding: 18px 20px; }
.side-foot { border-top: 1px solid var(--border); padding: 12px 14px; }
.rate-panel { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); margin-bottom: 18px; }
.rate-panel .label { font-size: 12px; }

/* Notes */
.notes { display: flex; flex-direction: column; gap: 10px; }
.note { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.note.kind-recommendation { border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); background: color-mix(in srgb, var(--warn-bg) 50%, var(--surface)); }
.note.kind-todo { border-color: color-mix(in srgb, var(--info) 40%, var(--border)); background: color-mix(in srgb, var(--info-bg) 50%, var(--surface)); }
.note.resolved { opacity: .6; }
.note.resolved .note-body { text-decoration: line-through; text-decoration-color: var(--text-3); }
.note-head { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); margin-bottom: 3px; flex-wrap: wrap; }
.note-head b { color: var(--text); font-weight: 600; font-size: 12.5px; }
.note-body { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.note-actions { display: flex; gap: 2px; margin-top: 6px; }
.note-actions button { border: 0; background: none; color: var(--text-3); cursor: pointer; font-size: 12px; padding: 2px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 4px; font-weight: 550; }
.note-actions button:hover { background: var(--surface-2); color: var(--text); }
.composer { border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: var(--text-3); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 15%, transparent); }
.composer textarea { width: 100%; border: 0; outline: none; background: none; resize: none; padding: 10px 12px 4px; min-height: 44px; max-height: 180px; }
.composer-bar { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 8px; }
.kind-sw { display: inline-flex; gap: 2px; background: var(--surface-2); border-radius: 8px; padding: 2px; }
.kind-sw button { border: 0; background: none; height: 26px; padding: 0 8px; border-radius: 6px; cursor: pointer; color: var(--text-3); display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 600; }
.kind-sw button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.kind-sw button .ic { width: 14px; height: 14px; }

.kv { display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; word-break: break-word; }
.block { margin-bottom: 20px; }
.block h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 8px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.prose { white-space: pre-wrap; font-size: 13.5px; }
.code { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-all; position: relative; }
.copyable { display: flex; gap: 6px; align-items: stretch; }
.copyable .code { flex: 1; margin: 0; }

/* Timeline */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.tl-item:last-child { border: 0; }
.tl-text { flex: 1; min-width: 0; font-size: 13.5px; }
.tl-text b { font-weight: 600; }
.tl-text a { font-weight: 600; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.tl-time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.tl-thumb { width: 36px; height: 45px; border-radius: 6px; object-fit: cover; background: var(--surface-2); flex: none; }
.tl-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); flex: none; }
.tl-ico.up { background: var(--up-bg); color: var(--up); } .tl-ico.down { background: var(--down-bg); color: var(--down); }
.tl-ico.warn { background: var(--warn-bg); color: var(--warn); } .tl-ico.info { background: var(--info-bg); color: var(--info); }
.tl-ico .ic { width: 15px; height: 15px; }

/* ---------- Auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: var(--text); color: var(--bg); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art .brand { color: var(--bg); padding: 0; }
.auth-art .brand .ic { color: var(--bg); --logo-dot: var(--text); }
.auth-art h2 { font-size: 34px; letter-spacing: -.035em; line-height: 1.12; margin: 0; max-width: 460px; font-weight: 650; }
.auth-art p { color: color-mix(in srgb, var(--bg) 60%, transparent); max-width: 420px; }
.auth-cards { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 420px; height: 420px; }
.auth-cards .c { position: absolute; width: 190px; aspect-ratio: 4/5; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--bg) 18%, transparent); background: color-mix(in srgb, var(--bg) 6%, transparent); backdrop-filter: blur(2px); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-box h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.auth-box > p { margin: -8px 0 6px; color: var(--text-2); }
.form-err { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: var(--down-bg); color: var(--down); font-size: 13px; font-weight: 500; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-3); font-size: 12px; margin-top: 6px; }
.auth-lang { position: absolute; top: 18px; right: 18px; }

/* ---------- Upload ---------- */
.drop { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-l); padding: 36px 20px; text-align: center; background: var(--surface); transition: all .15s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--text); background: var(--surface-2); }
.drop .ico { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-2); }
.up-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.up-item { position: relative; border-radius: 10px; overflow: hidden; background: var(--surface-2); aspect-ratio: 4/5; cursor: grab; border: 1px solid var(--border); }
.up-item img { width: 100%; height: 100%; object-fit: cover; }
.up-item .n { position: absolute; left: 6px; top: 6px; }
.up-item .rm { position: absolute; right: 5px; top: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(17, 17, 17, .75); color: #fff; display: grid; place-items: center; cursor: pointer; }
.up-item.dragging { opacity: .4; }

/* ---------- Review ---------- */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.review-stage { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.review-meta { width: 100%; max-width: 560px; font-size: 12.5px; }
.review-img { position: relative; width: min(560px, 100%, calc((100dvh - 330px) * var(--ar, .8))); max-width: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-3); background: var(--surface-2); user-select: none; cursor: grab; }
.review-img:active { cursor: grabbing; }
.review-track { display: flex; height: 100%; }
.review-cell { flex: 0 0 100%; height: 100%; }
.review-cell img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; -webkit-user-drag: none; }
.review-hint { font-size: 12px; }
@media (hover: none) { .review-hint { display: none; } .review-img .ig-arrow { display: none; } }
.progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; width: 100%; max-width: 560px; }
.progress i { display: block; height: 100%; background: var(--text); transition: width .3s var(--ease); }

/* ---------- Admin ---------- */
.subnav { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
.subnav button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--text-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; flex: none; }
.subnav button.on { color: var(--text); border-color: var(--text); }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.role-opts { display: grid; gap: 8px; }
.role-opt { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); cursor: pointer; align-items: flex-start; }
.role-opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.role-opt input { margin-top: 3px; accent-color: var(--text); }
.role-opt b { display: block; font-size: 13.5px; }
.role-opt span { font-size: 12.5px; color: var(--text-2); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 7px; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch.on { border-color: var(--text); box-shadow: inset 0 0 0 2px var(--surface); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 120; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; background: var(--text); color: var(--bg); box-shadow: var(--shadow-3); font-weight: 550; font-size: 13.5px; animation: toastIn .25s var(--ease); max-width: 420px; }
.toast.err { background: var(--down); color: #fff; }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Editor ---------- */
.ed { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-rows: 56px 1fr; grid-template-columns: 64px 300px minmax(0, 1fr) 280px; background: var(--bg); }
.ed-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.ed-name { border: 1px solid transparent; background: none; height: 34px; padding: 0 10px; border-radius: 8px; font-weight: 600; min-width: 120px; max-width: 320px; outline: none; }
.ed-name:hover { border-color: var(--border); } .ed-name:focus { border-color: var(--border-strong); background: var(--surface-2); }
.ed-rail { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px; border-right: 1px solid var(--border); background: var(--surface); }
.ed-rail button { border: 0; background: none; border-radius: 10px; padding: 9px 2px 7px; display: flex; flex-direction: column; gap: 4px; align-items: center; cursor: pointer; color: var(--text-3); font-size: 10.5px; font-weight: 600; }
.ed-rail button:hover { color: var(--text); background: var(--surface-2); }
.ed-rail button.on { color: var(--text); background: var(--surface-2); }
.ed-rail .ic { width: 21px; height: 21px; }
.ed-panel { overflow: auto; border-right: 1px solid var(--border); background: var(--surface); padding: 16px; }
.ed-panel h3 { font-size: 14px; margin: 0 0 12px; }
.ed-stage { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.ed-canvas-wrap { flex: 1; overflow: auto; display: flex; padding: 40px; position: relative; background-image: radial-gradient(var(--border) 1px, transparent 1px); background-size: 18px 18px; }
.ed-canvas-box { position: relative; box-shadow: var(--shadow-3); flex: none; margin: auto; }
.ed-canvas-box .canvas-container { border-radius: 2px; }
.ed-cuts { position: absolute; inset: 0; pointer-events: none; display: flex; }
.ed-cuts i { flex: 1; border-right: 1.5px dashed rgba(59, 91, 253, .7); position: relative; }
.ed-cuts i:last-child { border-right: 0; }
.ed-cuts i span { position: absolute; top: -24px; left: 0; font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; pointer-events: auto; }
.ed-cuts i.cur span { color: var(--text); }
.ed-safe { position: absolute; inset: 0; pointer-events: none; display: flex; }
.ed-safe i { flex: 1; margin: 4.5% 4.5%; border: 1px dashed rgba(234, 88, 12, .6); }
.ed-bottom { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); background: var(--surface); }
.ed-pages { display: flex; gap: 8px; overflow-x: auto; flex: 1; padding: 2px; }
.ed-page { position: relative; flex: none; height: 64px; border-radius: 7px; border: 2px solid var(--border); background: var(--surface-2); cursor: pointer; overflow: hidden; padding: 0; }
.ed-page.on { border-color: var(--text); }
.ed-page img { height: 100%; width: auto; }
.ed-page span { position: absolute; left: 4px; bottom: 3px; font-size: 10px; font-weight: 700; background: rgba(17, 17, 17, .7); color: #fff; padding: 0 5px; border-radius: 4px; }
.ed-page.add { width: 52px; display: grid; place-items: center; border-style: dashed; color: var(--text-3); }
.ed-props { overflow: auto; background: var(--surface); border-left: 1px solid var(--border); padding: 16px; }
.ed-props h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 18px 0 8px; font-weight: 650; }
.ed-props h4:first-child { margin-top: 0; }
.prop-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.prop-row > label { font-size: 12.5px; color: var(--text-2); width: 84px; flex: none; }
.prop-row .input, .prop-row .select { height: 32px; font-size: 13px; }
.num { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; height: 32px; overflow: hidden; background: var(--surface); }
.num input { width: 52px; border: 0; background: none; text-align: center; outline: none; font-size: 13px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.num input::-webkit-outer-spin-button, .num input::-webkit-inner-spin-button { -webkit-appearance: none; }
.num button { border: 0; background: none; width: 26px; height: 100%; cursor: pointer; color: var(--text-3); display: grid; place-items: center; }
.num button:hover { background: var(--surface-2); color: var(--text); }
.icon-row { display: flex; gap: 4px; flex-wrap: wrap; }
.icon-row .btn { width: 34px; height: 32px; padding: 0; }
.tpl-btn { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 12px 14px; cursor: pointer; margin-bottom: 8px; transition: border-color .15s, background .15s; }
.tpl-btn:hover { border-color: var(--text-3); background: var(--surface-2); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.media-grid button { padding: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--surface-2); aspect-ratio: 4/5; position: relative; }
.media-grid button img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.media-grid button:hover img { transform: scale(1.04); }
.media-grid button .lbl { position: absolute; left: 4px; bottom: 4px; }
.shape-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.shape-grid button { aspect-ratio: 1; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.shape-grid button:hover { border-color: var(--text-3); color: var(--text); background: var(--surface-2); }
.shape-grid .ic { width: 26px; height: 26px; }
.color-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.color-grid button { aspect-ratio: 1; border-radius: 7px; border: 1px solid var(--border); cursor: pointer; padding: 0; }
.color-grid button.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.layer-list { display: flex; flex-direction: column; gap: 4px; }
.layer { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; font-size: 13px; }
.layer:hover { background: var(--surface-2); }
.layer.on { border-color: var(--border-strong); background: var(--surface-2); }
.layer .lt { width: 30px; height: 30px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; color: var(--text-2); flex: none; }
.layer .lt img { width: 100%; height: 100%; object-fit: cover; }
.layer .lb { flex: 1; min-width: 0; }
.layer .la { display: flex; gap: 2px; opacity: 0; }
.layer:hover .la, .layer.on .la { opacity: 1; }
.layer .la button { border: 0; background: none; width: 24px; height: 24px; border-radius: 6px; cursor: pointer; color: var(--text-3); display: grid; place-items: center; }
.layer .la button:hover { background: var(--surface-3); color: var(--text); }
.ed-start { position: fixed; inset: 0; z-index: 50; background: var(--bg); overflow: auto; }
.fmt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fmt { border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: 18px; cursor: pointer; text-align: left; transition: all .15s; display: flex; flex-direction: column; gap: 14px; }
.fmt:hover { border-color: var(--text); transform: translateY(-2px); box-shadow: var(--shadow-2); }
.fmt .shape { height: 90px; display: flex; align-items: center; justify-content: center; }
.fmt .shape i { display: block; border: 1.5px solid var(--text); border-radius: 6px; background: var(--surface-2); }
.tip { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); font-size: 12.5px; color: var(--text-2); align-items: flex-start; }
.tip .ic { flex: none; margin-top: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .ed { grid-template-columns: 64px 260px minmax(0, 1fr) 250px; }
  .viewer { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-layout { grid-template-columns: 1fr; }
  .li { grid-template-columns: 56px minmax(0, 1fr) 110px 100px; }
  .li .hide-md { display: none; }
  .fmt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: flex; position: fixed; z-index: 90; width: 260px; box-shadow: var(--shadow-3); background: var(--surface); }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 30; background: var(--bg); }
  .page { padding: 18px 16px 80px; }
  /* viewer: full-screen stage + bottom sheet */
  .viewer { display: block; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: var(--surface-2); }
  .viewer-stage { height: calc(100dvh - 64px); min-height: 460px; }
  .viewer-top { min-height: 0; gap: 6px; padding: calc(env(safe-area-inset-top) + 8px) 8px 8px; }
  .viewer-top .spacer { flex: 1; }
  .vt-title b { font-size: 13.5px; }
  .vt-title span { font-size: 11.5px; }
  .seg button { height: 32px; padding: 0 9px; }
  .seg button span { display: none; }
  .vt-nav .btn { width: 30px; }
  .viewer-arrow { display: none; }
  .viewer-foot { flex-direction: row; justify-content: center; gap: 12px; padding: 6px 12px 10px; }
  .viewer-strip { justify-content: flex-start; flex: 0 1 auto; min-width: 0; }
  .strip-item { height: 48px; max-width: 56px; border-radius: 6px; }
  .vs-mrate { display: inline-flex; flex: none; }
  .vs-mrate button { height: 44px; padding: 0 14px; border-radius: 22px; }
  .vs-hint { display: none; }
  .viewer-canvas[data-m='story'] { padding: 0 8px 4px; }
  .viewer-canvas[data-m='feed'] { padding: 4px 10px 16px; }
  .vs-all { padding: 4px 12px 16px; gap: 10px; display: grid; grid-template-columns: 1fr 1fr; }
  .vs-all-item { width: auto; }
  .viewer-side { border: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px -12px rgba(0, 0, 0, .25); position: relative; min-height: 64px; padding-bottom: env(safe-area-inset-bottom); }
  .viewer-side::before { content: ''; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); margin: 8px auto 0; }
  .viewer-side .side-head { padding: 10px 16px 12px; }
  .viewer-side .side-body { overflow: visible; padding: 16px; }
  .viewer-side .side-foot { position: sticky; bottom: 0; background: var(--surface); z-index: 2; padding-bottom: calc(env(safe-area-inset-bottom) + 12px); }
  .badge.mono { white-space: normal; word-break: break-all; height: auto; min-height: 20px; padding: 2px 8px; border-radius: 8px; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-quick { opacity: 1; transform: none; }
  /* ---- mobile editor: top bar · canvas · pages · tab bar; panels as bottom sheets */
  .m-only { display: flex !important; }
  .d-only { display: none !important; }
  .ed { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
  .ed-top { flex: none; height: auto; min-height: 52px; gap: 2px; padding: calc(env(safe-area-inset-top) + 4px) 6px 4px; }
  .ed-name { flex: 1; min-width: 0; max-width: none; padding: 0 6px; font-size: 14px; text-overflow: ellipsis; }
  .ed-top [data-dirty] { display: none; }
  .ed-top .spacer { display: none; }
  .ed-export { width: 38px; height: 38px; padding: 0; justify-content: center; margin-left: 4px; }
  .ed-export span { display: none; }
  .ed-stage { flex: 1; min-height: 0; order: 1; }
  .ed-canvas-wrap { padding: 12px 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; background-size: 16px 16px; }
  .ed-canvas-wrap::-webkit-scrollbar { display: none; }
  .ed-canvas-box { margin: auto 0 !important; }
  .ed-canvas-wrap::after { content: ''; flex: none; width: var(--side, 16px); }
  .ed-cuts i { border-right-color: transparent; }
  .ed-cuts i span { display: none; }
  .ed-bottom { padding: 8px 10px; gap: 6px; border-top: 1px solid var(--border); }
  .ed-page { height: 52px; }
  .ed-page.add { width: 44px; }
  .ed-rail { order: 3; flex: none; flex-direction: row; justify-content: space-around; gap: 0; padding: 4px 4px calc(env(safe-area-inset-bottom) + 4px); border: 0; border-top: 1px solid var(--border); position: relative; z-index: 58; }
  .ed-rail button { flex: 1; padding: 7px 0 5px; font-size: 10.5px; border-radius: 10px; min-height: 52px; justify-content: center; }
  .ed-rail button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .ed-panel, .ed-props {
    order: 2; flex: none; display: none; max-height: 46dvh; overflow: auto; overscroll-behavior: contain;
    border: 0; border-top: 1px solid var(--border); border-radius: 18px 18px 0 0; margin-top: -14px; position: relative; z-index: 5;
    background: var(--surface); box-shadow: 0 -10px 30px -14px rgba(0, 0, 0, .28); padding: 0 16px 16px;
    animation: sheetIn .28s cubic-bezier(.22, .8, .25, 1);
  }
  .ed.panel-open .ed-panel { display: block; }
  .ed.has-sel:not(.panel-open):not(.editing) .ed-props { display: block; max-height: 40dvh; }
  .ed.panel-open .ed-bottom, .ed.has-sel .ed-bottom { display: none; }
  .ed.panel-open .ed-canvas-wrap, .ed.has-sel .ed-canvas-wrap { padding-bottom: 24px; }
  .ed-sheet-head { position: sticky; top: 0; z-index: 2; background: var(--surface); align-items: center; gap: 6px; margin: 0 -16px 12px; padding: 14px 12px 10px 16px; border-bottom: 1px solid var(--border); }
  .ed-sheet-head::before { content: ''; position: absolute; top: 5px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--border-strong); }
  .ed-sheet-head b { font-size: 15px; }
  .ed-sheet-head .spacer { flex: 1; }
  .ed-panel h3 { display: none; }
  .ed-props h4:nth-child(2) { margin-top: 0; }
  .tpl-btn { padding: 14px; }
  .prop-row > label { width: 96px; }
  .prop-row .select, .prop-row input[type=range] { flex: 1; min-width: 0; }
  .icon-row .btn { width: 42px; height: 40px; }
  .color-grid { gap: 8px; }
  .num { height: 38px; } .num button { width: 36px; }
  input[type=range] { height: 28px; }
  .table .hide-sm { display: none; }
}
@media (max-width: 600px) {
  .toolbar .search { min-width: 100%; max-width: none; order: -1; }
  .input-icon kbd { display: none; }
  .stats { gap: 8px; }
  .stat { padding: 10px 12px; gap: 10px; }
  .stat .ico { width: 30px; height: 30px; }
  .stat .v { font-size: 17px; }
  .stat .l { font-size: 12px; line-height: 1.3; }
  .page-head h1 { font-size: 21px; }
  .modal-body > div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* =====================================================================
   v3 · Rollen, API-Schlüssel, Grok-Aufträge, Vergleich, Kampagnen, Benachrichtigungen
   ===================================================================== */
:root {
  --gk-1: #6D5BFF; --gk-2: #B65CFF; --gk-3: #FF7AB6;
  --gk-grad: linear-gradient(120deg, var(--gk-1), var(--gk-2) 55%, var(--gk-3));
  --gk-soft: color-mix(in srgb, var(--gk-1) 10%, var(--surface));
  --st-scheduled: #3B5BFD; --st-ready: #B65CFF; --st-published: #12805C; --st-failed: #C2410C; --st-draft: #8C8C85;
}
[data-theme='dark'] {
  --gk-1: #8F80FF; --gk-2: #C58BFF; --gk-3: #FF9CC8;
  --gk-soft: color-mix(in srgb, var(--gk-1) 16%, var(--surface));
  --st-scheduled: #8EA2FF; --st-ready: #C58BFF; --st-published: #34D399; --st-failed: #FB923C; --st-draft: #7C7C77;
}
.st-draft { --s: var(--st-draft); } .st-scheduled { --s: var(--st-scheduled); } .st-ready, .st-publishing { --s: var(--st-ready); }
.st-published { --s: var(--st-published); } .st-failed { --s: var(--st-failed); }

/* ---------- small primitives ---------- */
.hint { font-size: 12px; color: var(--text-3); }
.tip.warn { background: var(--warn-bg); color: var(--warn); }
.tip.bad { background: var(--down-bg); color: var(--down); }
.tip.ok { background: var(--up-bg); color: var(--up); }
.tip.ok a, .tip.bad a { color: inherit; text-decoration: underline; font-weight: 600; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; cursor: pointer; vertical-align: middle; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .22s var(--ease); }
.switch input:checked + i { background: var(--text); box-shadow: none; }
.switch input:checked + i::after { transform: translateX(16px); background: var(--bg); }
.switch input:focus-visible + i { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch input:disabled + i { opacity: .45; }
.chip-btn { border: 1px solid var(--border-strong); background: var(--surface); height: 30px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; transition: all .15s; }
.chip-btn:hover { color: var(--text); border-color: var(--text-3); }
.chip-btn:active { transform: scale(.96); }
.input.pulse { animation: pulseRing .6s var(--ease); }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--focus) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.empty-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-2); }
.empty-mini .ic { color: var(--text-3); margin-bottom: 4px; }
.empty-mini span { font-size: 13px; color: var(--text-3); max-width: 360px; margin-bottom: 8px; }

/* ---------- notification bell ---------- */
.brand-row { padding-right: 2px; }
.brand-row .brand { padding-bottom: 0; }
.sidebar .brand-row { margin-bottom: 18px; }
.bell { position: relative; }
.bell-n { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--down); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg); font-variant-numeric: tabular-nums; }
.bell.ring .ic { animation: bellRing .9s var(--ease); transform-origin: 50% 10%; }
.bell.ring .bell-n { animation: pop .4s var(--ease) .2s; }
@keyframes bellRing { 0%,100% { transform: rotate(0); } 15% { transform: rotate(16deg); } 30% { transform: rotate(-14deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
.pop.ntf-pop { width: 380px; padding: 0; max-height: 520px; }
.ntf-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 16px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.ntf-head b { font-size: 14.5px; }
.ntf-list { padding: 6px; }
.ntf-item { display: flex; gap: 12px; width: 100%; padding: 10px; border: 0; background: none; text-align: left; border-radius: 10px; cursor: pointer; position: relative; color: var(--text); }
.ntf-item:hover { background: var(--surface-2); }
.ntf-item.unread::after { content: ''; position: absolute; right: 10px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--info); }
.ntf-item.unread .ntf-txt b { font-weight: 700; }
.ntf-ic { position: relative; width: 40px; height: 40px; border-radius: 10px; background: var(--surface-2); flex: none; overflow: visible; display: grid; place-items: center; }
.ntf-ic img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.ntf-ic i { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); box-shadow: 0 0 0 2px var(--surface); }
.ntf-ic img + i { }
.ntf-ic:not(:has(img)) i { position: static; width: 40px; height: 40px; border-radius: 10px; box-shadow: none; }
.k-ok .ntf-ic i { background: var(--up); color: #fff; }
.k-bad .ntf-ic i { background: var(--down); color: #fff; }
.k-gk .ntf-ic i { background: var(--gk-grad); color: #fff; }
.ntf-txt { display: flex; flex-direction: column; min-width: 0; padding-right: 14px; }
.ntf-txt b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.ntf-txt span { font-size: 12.5px; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ntf-txt small { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.ntf-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 20px; color: var(--text-3); font-size: 13px; }
.toast.ntf-toast { background: var(--surface); color: var(--text); border: 1px solid var(--border); padding: 10px 10px 10px 12px; gap: 12px; width: 380px; max-width: calc(100vw - 24px); animation: ntfIn .45s cubic-bezier(.2,1.2,.3,1); }
.toast.ntf-toast .ntf-txt span { -webkit-line-clamp: 1; }
.toast.ntf-toast .btn { flex: none; margin-left: auto; }
.toast.ntf-toast.k-ok { box-shadow: var(--shadow-3), inset 3px 0 0 var(--up); }
.toast.ntf-toast.k-gk { box-shadow: var(--shadow-3), inset 3px 0 0 var(--gk-2); }
.toast.ntf-toast.k-bad { box-shadow: var(--shadow-3), inset 3px 0 0 var(--down); }
@keyframes ntfIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.toast.fly-toast a { color: inherit; text-decoration: underline; font-weight: 700; margin-left: 6px; white-space: nowrap; }

/* ---------- admin: roles matrix ---------- */
.perm-card { overflow: hidden; }
.perm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.perm-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.perm-table th { padding: 14px 10px 12px; text-align: center; border-bottom: 1px solid var(--border); background: var(--surface-2); position: sticky; top: 0; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; position: sticky; left: 0; background: inherit; z-index: 1; }
.perm-table th:first-child { background: var(--surface-2); }
.perm-table tbody tr { background: var(--surface); }
.perm-table td { padding: 12px 10px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; }
.perm-table tbody tr:last-child td { border-bottom: 0; background: var(--surface-2); }
.perm-table tbody tr:hover { background: var(--surface-2); }
.perm-table td:first-child { padding-left: 18px; min-width: 220px; max-width: 320px; }
.perm-table td:first-child b { display: block; font-size: 13.5px; }
.perm-table td:first-child span { display: block; font-size: 12px; color: var(--text-3); line-height: 1.4; margin-top: 1px; }
.perm-fixed { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--up-bg); color: var(--up); }
.perm-no { color: var(--text-3); }
.role-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.role-legend > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; }

/* ---------- admin: API keys / webhook ---------- */
.key-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.key-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.key-row + .key-row { border-top: 1px solid var(--border); }
.key-row:hover { background: var(--surface-2); }
.key-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex: none; }
.key-dot.on { background: var(--up); box-shadow: 0 0 0 4px color-mix(in srgb, var(--up) 20%, transparent); }
.key-reveal { display: flex; flex-direction: column; gap: 10px; }
.key-reveal pre { margin: 0; font-size: 13px; padding: 14px; user-select: all; background: var(--surface-2); }

/* ============================ GROK ============================ */
.gk-tabbtn { position: relative; }
.gk-tabbtn.on { border-image: var(--gk-grad) 1; }
.gk-live { width: 8px; height: 8px; border-radius: 50%; background: var(--gk-2); box-shadow: 0 0 0 0 var(--gk-2); animation: gkPulse 1.4s infinite; display: inline-block; }
@keyframes gkPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gk-2) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }

/* composer in grok mode */
.composer.is-grok { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gk-grad) border-box; border: 1.5px solid transparent; box-shadow: 0 8px 24px -14px color-mix(in srgb, var(--gk-2) 70%, transparent); }
.composer.is-grok:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--gk-2) 16%, transparent), 0 8px 24px -14px var(--gk-2); }
.composer { position: relative; }
.gk-chip { display: inline-flex; align-items: center; gap: 5px; margin: 9px 0 0 10px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--gk-grad); color: #fff; font-size: 11.5px; font-weight: 700; animation: pop .35s var(--ease); }
.gk-mention { position: absolute; left: 8px; right: 8px; bottom: calc(100% + 6px); z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-3); padding: 5px; animation: popIn .14s var(--ease); }
.gk-mention button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: var(--gk-soft); cursor: pointer; text-align: left; }
.gk-mention button > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 8px; background: var(--gk-grad); color: #fff; }
.gk-mention span { display: flex; flex-direction: column; }
.gk-mention small { color: var(--text-3); font-size: 11.5px; }
.kind-sw .gk-kind.on { background: var(--gk-grad); color: #fff; }
.kind-sw .gk-kind:not(.on) .ic { color: var(--gk-2); }
.btn.gk-send { background: var(--gk-grad); color: #fff; border: 0; height: 32px; padding: 0 13px; font-size: 13px; background-size: 160% 100%; transition: background-position .4s, transform .1s; box-shadow: 0 6px 16px -8px var(--gk-2); }
.btn.gk-send:hover { background-position: 100% 0; background-color: transparent; }
.composer-opts { padding: 0 8px 8px; flex-wrap: wrap; gap: 6px; }
.gk-count button.on { background: var(--gk-soft); color: var(--gk-1); }

/* intro */
.gk-intro { text-align: center; padding: 18px 6px 8px; display: flex; flex-direction: column; align-items: center; }
.gk-intro h3 { margin: 14px 0 4px; font-size: 16px; letter-spacing: -.01em; }
.gk-intro p { margin: 0 0 16px; color: var(--text-2); font-size: 13px; max-width: 320px; }
.gk-orb { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--gk-grad); background-size: 200% 200%; animation: gkFlow 6s ease infinite; box-shadow: 0 14px 30px -12px var(--gk-2); }
@keyframes gkFlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.gk-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gk-sugg button { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px; height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 550; color: var(--text-2); cursor: pointer; transition: all .15s; }
.gk-sugg button:hover { border-color: var(--gk-2); color: var(--text); background: var(--gk-soft); }
.gk-sugg.compact { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -2px 14px; padding: 2px; }
.gk-sugg.compact::-webkit-scrollbar { display: none; }
.gk-sugg.compact button { flex: none; }

/* tasks */
.gk-list { display: flex; flex-direction: column; gap: 12px; }
.gk-task { border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--surface); animation: modalIn .3s var(--ease); position: relative; overflow: hidden; }
.gk-task.st-queued, .gk-task.st-working { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gk-grad) border-box; border: 1.5px solid transparent; }
.gk-task.st-working::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--gk-2) 8%, transparent) 50%, transparent 70%); background-size: 250% 100%; animation: shimmer 2.2s linear infinite; pointer-events: none; }
.gk-task.st-canceled { opacity: .6; }
.gk-task header { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gk-task header .faint { font-size: 11.5px; }
.gk-pill { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 650; background: var(--surface-2); color: var(--text-2); }
.gk-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.gk-pill.st-queued, .gk-pill.st-working { background: var(--gk-soft); color: var(--gk-1); }
.gk-pill.st-done { background: var(--up-bg); color: var(--up); }
.gk-pill.st-failed { background: var(--down-bg); color: var(--down); }
@keyframes blink { 50% { opacity: .3; } }
.gk-instr { margin: 8px 0 10px; font-size: 13px; }
.gk-instr .faint { display: block; font-size: 11.5px; margin-bottom: 2px; }
.gk-instr q { display: block; quotes: none; color: var(--text); padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.45; }
.gk-progress { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.gk-progress i { display: block; height: 100%; border-radius: inherit; background: var(--gk-grad); background-size: 200% 100%; animation: gkFlow 2s linear infinite; transition: width .8s var(--ease); }
.gk-pnote { display: flex; align-items: center; gap: 8px; margin: 8px 0 10px; font-size: 12.5px; color: var(--text-2); }
.gk-dots { display: inline-flex; gap: 3px; }
.gk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gk-2); animation: dot 1.2s infinite ease-in-out; }
.gk-dots i:nth-child(2) { animation-delay: .15s; } .gk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.gk-ghosts, .gk-vars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gk-ghost { border-radius: 10px; position: relative; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; }
.gk-ghost::before { content: ''; position: absolute; inset: -40%; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--gk-1) 30%, transparent), color-mix(in srgb, var(--gk-3) 30%, transparent), transparent 60%); animation: spin 2.6s linear infinite; filter: blur(14px); }
.gk-ghost::after { content: ''; position: absolute; inset: 2px; border-radius: 8px; background: color-mix(in srgb, var(--surface-2) 82%, transparent); backdrop-filter: blur(6px); }
.gk-spark { position: relative; z-index: 1; color: var(--gk-2); animation: sparkle 1.8s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sparkle { 0%,100% { transform: scale(.85) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(18deg); opacity: 1; } }
.gk-err { display: flex; gap: 8px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: var(--down-bg); color: var(--down); font-size: 12.5px; margin-bottom: 8px; }
.gk-answer { padding: 10px; border-radius: 10px; background: var(--gk-soft); font-size: 13px; white-space: pre-wrap; }
.gk-var { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); transition: transform .2s var(--ease), box-shadow .2s; }
.gk-var img { width: 100%; height: 100%; object-fit: cover; }
.gk-var:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgba(0,0,0,.4); }
.gk-var.discarded { opacity: .4; filter: grayscale(.8); }
.gk-var.applied { box-shadow: 0 0 0 2px var(--up); }
.gk-var.fresh { animation: varIn .9s cubic-bezier(.2,1.1,.3,1) both; }
.gk-var.fresh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.55) 45%, transparent 60%); background-size: 250% 100%; animation: sheen 1.2s .35s ease-out both; pointer-events: none; }
@keyframes varIn { 0% { opacity: 0; transform: scale(.7) rotate(-3deg); filter: blur(8px) saturate(2); } 60% { opacity: 1; filter: blur(0); } 100% { transform: none; } }
@keyframes sheen { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.gk-var .gk-n { position: absolute; top: 5px; right: 5px; }
.gk-tag { position: absolute; left: 5px; top: 5px; display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px; border-radius: 6px; background: var(--gk-grad); color: #fff; font-size: 10.5px; font-weight: 700; }
.gk-tag.ok { background: var(--up); }
.gk-tag.big { position: static; height: 32px; padding: 0 12px; font-size: 13px; border-radius: 9px; gap: 6px; }
.gk-score { position: absolute; left: 5px; bottom: 5px; display: flex; gap: 3px; }
.gk-score b { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; background: rgba(17,17,17,.72); color: #fff; }
.gk-score b.u .ic { color: #6EE7B7; } .gk-score b.d .ic { color: #FDBA74; }
.gk-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; background: rgba(10,10,10,.45); color: #fff; font-size: 12px; font-weight: 650; opacity: 0; transition: opacity .2s; }
.gk-var:hover .gk-open, .gk-var:focus-visible .gk-open { opacity: 1; }
@media (hover: none) { .gk-open { display: none; } }

/* busy veil over the image while grok works */
.vs-frame.gk-busy::before { content: ''; position: absolute; inset: -2px; z-index: 2; border-radius: inherit; padding: 2px; background: conic-gradient(from var(--gk-a, 0deg), var(--gk-1), var(--gk-2), var(--gk-3), var(--gk-1)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: gkSpinA 2.4s linear infinite; pointer-events: none; }
@property --gk-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes gkSpinA { to { --gk-a: 360deg; } }
.gk-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, transparent 25%, color-mix(in srgb, var(--gk-2) 22%, transparent) 45%, color-mix(in srgb, var(--gk-3) 18%, transparent) 55%, transparent 75%); background-size: 260% 100%; animation: veil 2.6s ease-in-out infinite; display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.gk-veil span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(17,17,17,.72); color: #fff; font-size: 12px; font-weight: 650; backdrop-filter: blur(8px); animation: floaty 2.4s ease-in-out infinite; }
@keyframes veil { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
@keyframes floaty { 50% { transform: translateY(-3px); } }

/* ============================ COMPARE OVERLAY ============================ */
.cmp { position: fixed; inset: 0; z-index: 85; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(18px) saturate(1.2); display: flex; flex-direction: column; opacity: 0; transition: opacity .22s; }
.cmp.in { opacity: 1; }
.cmp.in .cmp-stage { animation: cmpIn .45s cubic-bezier(.2,1,.3,1); }
@keyframes cmpIn { from { transform: scale(.94); opacity: 0; } }
.cmp-top { display: flex; align-items: center; gap: 10px; padding: calc(env(safe-area-inset-top) + 10px) 14px 10px; }
.cmp-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cmp-title b { font-size: 14.5px; }
.cmp-title > span { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; touch-action: pan-y; }
.cmp-track { display: flex; height: 100%; will-change: transform; }
.cmp-slide { flex: 0 0 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 8px 72px; min-width: 0; }
.cmp-ph { width: 40%; height: 60%; border-radius: 12px; background: var(--surface-2); }
.cmp-pair { display: flex; gap: 20px; height: 100%; width: 100%; align-items: center; justify-content: center; }
.cmp-frame { position: relative; margin: 0; aspect-ratio: var(--r); max-height: 100%; max-width: calc(50% - 10px); height: 100%; border-radius: 12px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-3); }
.cmp-frame img { width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.cmp-frame.is-new { box-shadow: 0 0 0 2px transparent, var(--shadow-3); animation: newGlow 1.2s ease-out; }
.cmp-frame.is-new::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; background: var(--gk-grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
@keyframes newGlow { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gk-2) 70%, transparent), var(--shadow-3); } to { box-shadow: 0 0 0 26px transparent, var(--shadow-3); } }
.cmp-lbl { position: absolute; left: 10px; top: 10px; z-index: 2; height: 24px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; background: rgba(17,17,17,.7); color: #fff; font-size: 11.5px; font-weight: 700; backdrop-filter: blur(8px); }
.cmp-lbl.gk { background: var(--gk-grad); }
.cmp-lbl.r { left: auto; right: 10px; background: var(--gk-grad); }
.cmp-ba { max-width: 100%; cursor: ew-resize; touch-action: none; }
.cmp-ba .ba-a { position: absolute; inset: 0; }
.cmp-ba .ba-b { position: absolute; inset: 0; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 10px rgba(0,0,0,.4); z-index: 3; pointer-events: none; }
.ba-handle span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-3); }
.cmp-sub { display: flex; gap: 6px; justify-content: center; padding: 6px 12px 0; overflow-x: auto; }
.cmp-sub button { width: 46px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .55; background: var(--surface-2); flex: none; transition: all .15s; }
.cmp-sub button img { width: 100%; height: 100%; object-fit: cover; }
.cmp-sub button.on { opacity: 1; border-color: var(--text); }
.cmp-foot { padding: 12px 16px calc(env(safe-area-inset-bottom) + 14px); display: flex; flex-direction: column; gap: 10px; max-width: 980px; width: 100%; margin: 0 auto; }
.cmp-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); padding: 9px 12px; border-radius: 10px; background: var(--gk-soft); }
.cmp-note .ic { color: var(--gk-1); margin-top: 2px; }
.cmp-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-apply { min-width: 150px; justify-content: center; }
.cmp-apply.busy { pointer-events: none; opacity: .8; }
.cmp-apply.busy .ic { animation: spin .8s linear infinite; }
.cmp-frame.applied { animation: applied .6s var(--ease); }
@keyframes applied { 40% { transform: scale(1.03); } }
.cmp-burst { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
.cmp-burst span { width: 64px; height: 64px; border-radius: 50%; background: var(--up); color: #fff; display: grid; place-items: center; animation: burstCk .6s cubic-bezier(.2,1.4,.3,1) both; box-shadow: 0 10px 30px -6px var(--up); }
.cmp-burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--gk-grad); animation: burstDot .7s ease-out both; }
.cmp-burst i:nth-child(3n) { background: var(--up); } .cmp-burst i:nth-child(3n+1) { background: var(--gk-3); }
@keyframes burstCk { from { transform: scale(0); } }
@keyframes burstDot { 0% { transform: rotate(var(--a)) translateY(0) scale(1); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(calc(var(--d) * -1)) scale(.3); opacity: 0; } }

/* ============================ CAMPAIGNS ============================ */
.cmp-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--text)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--text)) 18%, transparent); vertical-align: middle; }
.cmp-dot.lg { width: 14px; height: 14px; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cmp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; box-shadow: var(--shadow-1); }
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 18px 30px -20px color-mix(in srgb, var(--c) 60%, transparent); border-color: var(--border-strong); }
.cmp-covers { height: 150px; position: relative; background: color-mix(in srgb, var(--c) 10%, var(--surface-2)); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cmp-covers img { position: absolute; width: 92px; height: 115px; object-fit: cover; border-radius: 8px; box-shadow: 0 8px 18px -8px rgba(0,0,0,.45); border: 2px solid var(--surface); left: calc(50% - 46px + (var(--i) - 1.5) * 44px); transform: rotate(calc((var(--i) - 1.5) * 5deg)) translateY(calc(var(--i) * 2px)); transition: transform .3s var(--ease); }
.cmp-card:hover .cmp-covers img { transform: rotate(calc((var(--i) - 1.5) * 8deg)) translateY(-4px) translateX(calc((var(--i) - 1.5) * 6px)); }
.cmp-ph-cover { color: color-mix(in srgb, var(--c) 70%, var(--text-3)); }
.cmp-card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.cmp-card-b b { font-size: 15px; }
.cmp-dates { font-size: 12.5px; }
.cmp-bar { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin: 4px 0 2px; }
.cmp-bar i { display: block; height: 100%; background: var(--c); border-radius: inherit; transition: width .6s var(--ease); }
.cmp-counts { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.cmp-counts span { display: inline-flex; align-items: center; gap: 4px; }
.cmp-counts .hl { color: var(--st-ready); font-weight: 650; } .cmp-counts .ok { color: var(--up); } .cmp-counts .bad { color: var(--down); font-weight: 650; }
.cmp-next { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-2); background: var(--surface-2); border-radius: 7px; padding: 4px 8px; align-self: flex-start; margin-top: 2px; }
.cmp-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; transition: all .15s; }
.cmp-pick:hover { border-color: var(--c); background: color-mix(in srgb, var(--c) 6%, var(--surface)); transform: translateX(2px); }

/* calendar */
.cal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); overflow: hidden; }
.cal-head { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cal-head h3 { margin: 0 6px; font-size: 15.5px; text-transform: capitalize; letter-spacing: -.01em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); border-bottom: 1px solid var(--border); }
.cal-day { min-height: 108px; padding: 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day.out { background: var(--surface-2); }
.cal-day.out .cal-n { color: var(--text-3); }
.cal-n { font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-variant-numeric: tabular-nums; }
.cal-day.today .cal-n { background: var(--text); color: var(--bg); }
.cal-items { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-it { display: flex; align-items: center; gap: 5px; width: 100%; min-width: 0; height: 26px; padding: 0 6px 0 2px; border: 0; border-radius: 6px; cursor: pointer; font-size: 11.5px; font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--s) 12%, var(--surface)); box-shadow: inset 2px 0 0 var(--c); transition: transform .12s; }
.cal-it:hover { transform: translateX(2px); }
.cal-it img { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; flex: none; }
.cal-it span { flex: 1; text-align: left; font-variant-numeric: tabular-nums; }
.cal-it .ic { color: var(--s); flex: none; }
.cal-it.st-published { opacity: .75; }
.cal-more { font-size: 11px; color: var(--text-3); padding-left: 4px; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 14px; font-size: 12px; color: var(--text-2); border-top: 1px solid var(--border); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--s); }

/* board */
.board-page { max-width: none; }
.board-head { align-items: center; }
.board-head h1 { font-size: 22px; }
.board-actions { flex-wrap: wrap; }
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
.col { background: var(--surface-2); border-radius: var(--radius-l); padding: 10px; display: flex; flex-direction: column; min-height: 320px; transition: background .2s, box-shadow .2s, transform .2s; scroll-snap-align: start; --k: var(--st-draft); }
.col-scheduled { --k: var(--st-scheduled); } .col-ready { --k: var(--st-ready); } .col-published { --k: var(--st-published); }
.col header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; font-size: 13.5px; }
.col-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--surface)); }
.col-n { margin-left: auto; font-size: 12px; font-weight: 650; color: var(--text-3); background: var(--surface); border-radius: 999px; min-width: 22px; height: 20px; display: grid; place-items: center; padding: 0 6px; font-variant-numeric: tabular-nums; }
.col-hint { margin: 2px 4px 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.col-list { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.col-drop { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 90px; border: 2px dashed color-mix(in srgb, var(--k) 45%, var(--border-strong)); border-radius: 12px; color: var(--k); font-size: 12.5px; font-weight: 600; text-align: center; padding: 10px; transition: all .2s; }
.col-list:not(:has(.icard)) .col-drop { display: flex; opacity: .55; }
body.dragging .col-drop { display: flex; opacity: .7; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none; }
.col.over { background: color-mix(in srgb, var(--k) 12%, var(--surface-2)); box-shadow: inset 0 0 0 2px var(--k); transform: translateY(-2px); }
.col.over .col-drop { opacity: 1; background: color-mix(in srgb, var(--k) 10%, transparent); transform: scale(1.02); border-style: solid; }
.icard { background: var(--surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-1), inset 0 0 0 1px var(--border); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.icard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); z-index: 2; }
.icard:hover { transform: translateY(-2px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-strong); }
.ic-media { position: relative; aspect-ratio: var(--r); max-height: 220px; background: var(--surface-2); overflow: hidden; }
.ic-media img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ic-kind { position: absolute; left: 8px; top: 8px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(17,17,17,.68); color: #fff; backdrop-filter: blur(6px); }
.ic-count { position: absolute; right: 8px; top: 8px; display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; background: rgba(17,17,17,.68); color: #fff; font-size: 11px; font-weight: 650; backdrop-filter: blur(6px); }
.ic-grip { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.9); color: #111; opacity: 0; transition: opacity .2s; cursor: grab; }
.icard:hover .ic-grip { opacity: 1; }
@media (hover: none) { .ic-grip { opacity: .9; } }
.ic-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.ic-t { display: flex; gap: 5px; font-size: 13px; min-width: 0; }
.ic-when { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ic-when.none { color: var(--text-3); font-weight: 500; }
.ic-pill { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 650; }
.ic-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ic-pill.hl { background: color-mix(in srgb, var(--st-ready) 14%, var(--surface)); color: var(--st-ready); }
.ic-pill.hl i { animation: gkPulse 1.4s infinite; }
.ic-pill.busy { background: var(--gk-soft); color: var(--gk-1); }
.ic-pill.busy i { animation: blink .8s infinite; }
.ic-pill.bad { background: var(--down-bg); color: var(--down); }
.ic-cap { font-size: 12px; color: var(--text-3); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic-go { margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border: 0; border-radius: 9px; background: var(--text); color: var(--bg); font-weight: 650; font-size: 12.5px; cursor: pointer; transition: transform .12s, box-shadow .2s; }
.ic-go:hover { box-shadow: 0 8px 18px -8px var(--st-ready); background: var(--gk-grad); color: #fff; }
.ic-go:hover .ic { animation: rocket .6s ease-in-out infinite alternate; }
@keyframes rocket { to { transform: translate(2px, -2px); } }
.ic-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--up); }
.ic-link:hover { text-decoration: underline; }
.icard.st-published .ic-media img { filter: saturate(.85); }
.icard.st-failed { box-shadow: var(--shadow-1), inset 0 0 0 1.5px var(--down); }
.ic-origin { opacity: .3; transform: scale(.96); filter: grayscale(.5); }
.ic-ghost { position: fixed; z-index: 200; pointer-events: none; margin: 0; box-shadow: 0 30px 60px -15px rgba(0,0,0,.45), 0 0 0 2px var(--c); transition: none; transform-origin: 50% 30%; will-change: transform; }
.icard.landed { animation: landed .8s cubic-bezier(.2,1.3,.3,1); }
@keyframes landed { 0% { transform: scale(.85); box-shadow: 0 0 0 0 var(--c); } 50% { transform: scale(1.03); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c) 30%, transparent); } 100% { transform: none; } }

/* ready flow */
.ready-sum { display: flex; gap: 16px; align-items: flex-start; }
.ready-thumb { position: relative; width: 110px; flex: none; aspect-ratio: var(--r); border-radius: 10px; overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-2); }
.ready-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ready-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; font-size: 13px; }
.ready-list > div { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; word-break: break-word; }
.ready-list > div > span:first-child { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); margin-top: -3px; }
.ready-list .hl > span:first-child { background: color-mix(in srgb, var(--st-ready) 14%, var(--surface)); color: var(--st-ready); }
.ready-list .warn { color: var(--warn); }
.ready-list .warn > span:first-child { background: var(--warn-bg); color: var(--warn); }
.btn.launch { background: var(--gk-grad); border: 0; color: #fff; overflow: hidden; position: relative; }
.btn.launch:hover { opacity: 1; filter: brightness(1.05); }
.btn.launch.fly .ic { animation: launch .65s cubic-bezier(.6,0,.4,1) forwards; }
.btn.launch.fly::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: sheen .6s ease-out; background-size: 200% 100%; }
@keyframes launch { 30% { transform: translate(-3px, 3px); } 100% { transform: translate(60px, -60px) scale(.6); opacity: 0; } }

/* item editor */
.ie { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ie-prev { position: sticky; top: 0; }
.ie-phone { border-radius: 26px; background: var(--surface); box-shadow: 0 0 0 7px #111, 0 22px 50px -18px rgba(0,0,0,.55); overflow: hidden; margin: 8px; color: #111; background: #fff; font-size: 12.5px; }
[data-theme='dark'] .ie-phone { background: #000; color: #f5f5f5; box-shadow: 0 0 0 7px #2a2a2c, 0 22px 50px -18px rgba(0,0,0,.8); }
.ie-phone.story, .ie-phone.reel { aspect-ratio: 9 / 16; background: #000; color: #fff; }
.iep-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px; }
.iep-head .ig-av { width: 26px; height: 26px; }
.iep-head small { display: block; font-size: 10.5px; opacity: .7; margin-left: auto; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iep-media { position: relative; overflow: hidden; background: #111; touch-action: pan-y; }
.iep-track { display: flex; height: 100%; will-change: transform; }
.iep-track > div { flex: 0 0 100%; height: 100%; }
.iep-track img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.iep-n { position: absolute; top: 8px; right: 8px; height: 20px; padding: 0 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
.iep-acts { display: flex; gap: 12px; padding: 9px 10px 4px; }
.iep-cap, .iep-cmt { padding: 2px 10px 6px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; max-height: 140px; overflow: auto; }
.iep-cmt { opacity: .75; padding-bottom: 12px; }
.iep-story { position: relative; height: 100%; }
.iep-story .iep-media { position: absolute; inset: 0; }
.iep-bars { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 2; display: flex; gap: 3px; }
.iep-bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); transition: background .3s; }
.iep-bars i.on { background: #fff; }
.iep-sticker { position: absolute; z-index: 2; left: 50%; top: 58%; transform: translateX(-50%) rotate(-3deg); background: #fff; color: #111; font-weight: 800; padding: 7px 12px; border-radius: 8px; font-size: 13px; box-shadow: 0 6px 18px rgba(0,0,0,.3); max-width: 80%; text-align: center; animation: pop .4s var(--ease); }
.iep-link { position: absolute; z-index: 2; left: 50%; bottom: 52px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #3B5BFD; font-weight: 700; padding: 6px 11px; border-radius: 999px; font-size: 11.5px; white-space: nowrap; }
.iep-tags { position: absolute; z-index: 2; left: 12px; bottom: 16px; right: 12px; color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.ie-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kind-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kind-pick label { cursor: pointer; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 12px 6px; border-radius: 12px; border: 1.5px solid var(--border); font-size: 12.5px; color: var(--text-2); transition: all .15s; }
.kind-pick label:hover span { border-color: var(--text-3); }
.kind-pick input:checked + span { border-color: var(--text); color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.kind-pick input:focus-visible + span { outline: 2px solid var(--focus); }
.kind-pick input:disabled + span { opacity: .6; cursor: default; }
.when-chips { display: flex; gap: 6px; flex-wrap: wrap; }

/* post picker */
.pick-filters { align-self: flex-start; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 52vh; overflow: auto; padding: 2px; margin: 0 -2px; }
.pick { position: relative; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: pointer; aspect-ratio: var(--r); max-height: 220px; box-shadow: inset 0 0 0 1px var(--border); transition: transform .15s var(--ease); }
.pick img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .25s var(--ease); }
.pick:active { transform: scale(.97); }
.pick-ck { position: absolute; left: 7px; top: 7px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: transparent; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.25); transition: all .2s var(--ease); z-index: 2; }
.pick.on { box-shadow: 0 0 0 3px var(--text); }
.pick.on img { transform: scale(.94); border-radius: 6px; }
.pick.on .pick-ck { background: var(--text); color: var(--bg); box-shadow: none; animation: pop .3s var(--ease); }
.pick .ic-count { top: 7px; right: 7px; }
.pick-in { position: absolute; left: 7px; bottom: 34px; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--info); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.pick-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 11.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* fly into nav */
.fly-card { position: fixed; z-index: 300; pointer-events: none; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -10px rgba(0,0,0,.45); }
.fly-card img { width: 100%; height: 100%; object-fit: cover; }
.nav a.nav-pop { animation: navPop .6s cubic-bezier(.2,1.5,.3,1); background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--border-strong); }
@keyframes navPop { 40% { transform: scale(1.08); } }
#menu-btn.nav-pop { animation: navPop .6s cubic-bezier(.2,1.5,.3,1); }

/* ---------- responsive for new features ---------- */
@media (max-width: 1080px) {
  .ie { grid-template-columns: 240px minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 900px) {
  .board { display: flex; gap: 12px; margin: 0 -16px; padding: 0 16px 16px; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; }
  .board::-webkit-scrollbar { display: none; }
  .col { flex: 0 0 82%; min-height: 60dvh; }
  body.dragging .board { scroll-snap-type: none; }
  .board-head { gap: 10px; }
  .board-head h1 { font-size: 19px; }
  .board-actions { width: 100%; }
  .board-actions .btn.primary span { display: inline; }
  .cmp-slide { padding: 4px 10px; }
  .cmp-pair { flex-direction: column; gap: 10px; }
  .cmp-frame { max-width: 100%; height: auto; max-height: calc(50% - 5px); width: auto; flex: 1 1 0; }
  .cmp-ba { max-height: 100%; height: auto; width: 100%; flex: none; }
  .cmp .viewer-arrow { display: none; }
  .cmp-top .seg span { display: none; }
  .cmp-actions .btn span { display: none; }
  .cmp-actions .cmp-apply { flex: 1; min-width: 0; }
  .cmp-actions .rate button { height: 44px; padding: 0 14px; border-radius: 22px; }
  .gk-ghosts, .gk-vars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ie { grid-template-columns: 1fr; }
  .ie-prev { position: static; max-width: 260px; margin: 0 auto; width: 100%; }
  .cal-day { min-height: 74px; padding: 4px 3px; }
  .cal-it { height: 22px; padding: 0 3px 0 2px; justify-content: center; }
  .cal-it span, .cal-it .ic { display: none; }
  .cal-it img { width: 100%; height: 18px; }
  .cal-wd { padding: 6px 4px; text-align: center; font-size: 10px; }
  .cal-n { margin: 0 auto; }
  .pop.ntf-pop { width: auto; }
  .toasts { left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); align-items: stretch; }
  .toast { max-width: none; }
  .toast.ntf-toast { width: auto; }
}
@media (max-width: 600px) {
  .cmp-grid { grid-template-columns: 1fr; }
  .ready-sum { flex-direction: column; align-items: center; }
  .ready-thumb { width: 130px; }
  .ready-list { width: 100%; }
  .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 58dvh; }
  .pick-t { display: none; }
  .pick-in { bottom: 6px; left: 6px; }
  .key-row { flex-wrap: wrap; }
  .key-row .btn { margin-left: auto; }
  .perm-table td:first-child { min-width: 170px; }
  .when-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .when-chips .chip-btn { flex: none; }
  .overlay:has(.modal.wide) { padding: 0; align-items: end; }
  .modal.wide .modal-foot { position: sticky; bottom: 0; background: var(--surface); padding-top: 12px; padding-bottom: calc(env(safe-area-inset-bottom) + 14px); border-top: 1px solid var(--border); flex-wrap: wrap; }
  .modal.wide { max-width: none; border-radius: 20px 20px 0 0; max-height: 94dvh; animation: sheetIn .3s cubic-bezier(.22,.8,.25,1); }
}
@media (prefers-reduced-motion: reduce) {
  .gk-ghost::before, .gk-veil, .vs-frame.gk-busy::before, .gk-orb, .gk-progress i, .gk-task.st-working::before { animation: none !important; }
}
/* side actions + composer fit */
.side-acts { flex-wrap: wrap; }
.side-acts .btn { flex: 0 1 auto; min-width: 0; }
.composer-bar { flex-wrap: nowrap; min-width: 0; }
.composer-bar .kind-sw { min-width: 0; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
.composer-bar .kind-sw::-webkit-scrollbar { display: none; }
.kind-sw button { white-space: nowrap; flex: none; }
.composer.is-grok .kind-sw button:not(.on) span { display: none; }
.composer.is-grok .kind-sw button.on span { display: inline; }
.btn.gk-send { flex: none; white-space: nowrap; }
@media (max-width: 1280px) { .kind-sw button:not(.on) span { display: none; } }
@media (max-width: 900px) {
  .cmp-actions { flex-wrap: nowrap; gap: 6px; }
  .cmp-actions .spacer { display: none; }
  .cmp-actions .rate { flex: none; }
  .cmp-actions .rate button { padding: 0 11px; }
  .cmp-actions .btn { flex: none; padding: 0 10px; }
  .cmp-actions .cmp-apply { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
  .cmp-actions .gk-tag.big { margin-left: auto; }
}
@media (max-width: 600px) {
  .modal-foot { flex-wrap: wrap; }
  .modal-foot > .btn.primary { flex: 1 1 auto; justify-content: center; }
  .key-row .avatar { display: none; }
}
.input-reveal { position: relative; display: flex; }
.input-reveal .input { padding-right: 42px; font-family: var(--mono); font-size: 13px; }
.input-reveal [data-wh-eye] { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.input-reveal [data-wh-eye].on { color: var(--text); background: var(--surface-2); }
.wh-saved { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--up); margin-top: 2px; }
.wh-saved code { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--surface-2); padding: 2px 6px; border-radius: 5px; }
