/* ==========================================================================
   Workana Control Center — design system
   Bright, professional, textured. No purple; gradients kept to the bare
   minimum (one specular highlight on the status orb). Depth comes from
   layered shadows, translucency and isometric illustrations instead.
   ========================================================================== */

:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --serif: 'Instrument Serif', Georgia, serif;

  --page: #edf1f6;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef2f7;
  --glass: rgba(255, 255, 255, 0.74);
  --glass-strong: rgba(255, 255, 255, 0.88);
  --line: #e2e8f0;
  --line-2: #d2dae6;
  --hair: rgba(14, 27, 46, 0.08);

  --ink: #0e1b2e;
  --ink-2: #3a4860;
  --muted: #64738b;
  --faint: #95a2b6;

  /* Tones. Each one: base / ink (text on soft) / soft (washes) / tint (borders) */
  --blue: #1f6fe5;   --blue-ink: #1450ad;  --blue-soft: #e7f0ff;  --blue-tint: #c9dcfc;
  --coral: #ec6a36;  --coral-ink: #ad4314; --coral-soft: #fff0e8; --coral-tint: #ffd6c2;
  --teal: #0f9f78;   --teal-ink: #0a6e53;  --teal-soft: #e1f6ee;  --teal-tint: #b6e8d6;
  --amber: #e09a00;  --amber-ink: #855a00; --amber-soft: #fff5d8; --amber-tint: #ffe29a;
  --rose: #d83a57;   --rose-ink: #a22139;  --rose-soft: #ffe9ed;  --rose-tint: #ffc6d0;
  --sky: #0a93d1;    --sky-ink: #066791;   --sky-soft: #e0f3fc;   --sky-tint: #b3e0f5;
  --pink: #d9558c;   --pink-ink: #a12d5d;  --pink-soft: #fde9f2;  --pink-tint: #f8c3d8;
  --slate: #56657e;  --slate-ink: #334058; --slate-soft: #eaeef4; --slate-tint: #d2d9e4;
  --green: #2b9a48;  --green-ink: #1c6b31; --green-soft: #e4f5e8; --green-tint: #bfe5c9;

  /* Chart palette (validated: dataviz validator, light mode, #fff surface) */
  --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; --viz-neutral: #a3acba;
  --viz-grid: #e8ecf2; --viz-axis: #8a95a8;

  --r-xs: 8px; --r-sm: 12px; --r: 18px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(14, 27, 46, .05), 0 3px 10px rgba(14, 27, 46, .05);
  --shadow-2: 0 1px 2px rgba(14, 27, 46, .05), 0 12px 32px -12px rgba(14, 27, 46, .20);
  --shadow-3: 0 2px 6px rgba(14, 27, 46, .06), 0 30px 70px -24px rgba(14, 27, 46, .34);
  --shadow-lift: 0 6px 14px rgba(14, 27, 46, .06), 0 30px 54px -22px rgba(14, 27, 46, .32);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sidebar-w: 304px;
}

.tone-blue  { --c: var(--blue);  --c-ink: var(--blue-ink);  --c-soft: var(--blue-soft);  --c-tint: var(--blue-tint);  --c-glow: rgba(31,111,229,.35); }
.tone-coral { --c: var(--coral); --c-ink: var(--coral-ink); --c-soft: var(--coral-soft); --c-tint: var(--coral-tint); --c-glow: rgba(236,106,54,.35); }
.tone-teal  { --c: var(--teal);  --c-ink: var(--teal-ink);  --c-soft: var(--teal-soft);  --c-tint: var(--teal-tint);  --c-glow: rgba(15,159,120,.35); }
.tone-amber { --c: var(--amber); --c-ink: var(--amber-ink); --c-soft: var(--amber-soft); --c-tint: var(--amber-tint); --c-glow: rgba(224,154,0,.38); --c-on: #3b2700; }
.tone-rose  { --c: var(--rose);  --c-ink: var(--rose-ink);  --c-soft: var(--rose-soft);  --c-tint: var(--rose-tint);  --c-glow: rgba(216,58,87,.35); }
.tone-sky   { --c: var(--sky);   --c-ink: var(--sky-ink);   --c-soft: var(--sky-soft);   --c-tint: var(--sky-tint);   --c-glow: rgba(10,147,209,.35); }
.tone-pink  { --c: var(--pink);  --c-ink: var(--pink-ink);  --c-soft: var(--pink-soft);  --c-tint: var(--pink-tint);  --c-glow: rgba(217,85,140,.35); }
.tone-slate { --c: var(--slate); --c-ink: var(--slate-ink); --c-soft: var(--slate-soft); --c-tint: var(--slate-tint); --c-glow: rgba(86,101,126,.32); }
.tone-green { --c: var(--green); --c-ink: var(--green-ink); --c-soft: var(--green-soft); --c-tint: var(--green-tint); --c-glow: rgba(43,154,72,.35); }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--page);
  /* Texture 1: a fine dot grid across the whole canvas. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Ccircle cx='2' cy='2' r='1.05' fill='%230e1b2e' fill-opacity='.075'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Texture 2: paper grain. Texture 3: faint topographic contours, top right. */
body::before, body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
body::before {
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.1 0 0 0 0 0.18 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::after {
  background-repeat: no-repeat;
  background-position: right -140px top -160px;
  background-size: 900px 900px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 900' fill='none' stroke='%231f6fe5' stroke-opacity='.10'%3E%3Cpath d='M450 120c160 0 300 110 310 260s-120 300-290 310-330-90-340-250 160-320 320-320z'/%3E%3Cpath d='M450 170c135 0 255 95 262 222s-102 255-247 263-280-76-288-212 138-273 273-273z'/%3E%3Cpath d='M452 222c110 0 207 77 213 182s-83 208-201 214-228-62-234-173 112-223 222-223z'/%3E%3Cpath d='M454 276c84 0 158 59 162 139s-63 159-153 163-174-47-178-132 85-170 169-170z'/%3E%3Cpath d='M456 330c58 0 109 41 112 96s-44 110-106 113-120-33-123-91 59-118 117-118z'/%3E%3Cpath d='M458 384c32 0 60 22 62 53s-24 61-58 62-66-18-68-50 32-65 64-65z'/%3E%3Cpath d='M450 70c190 0 350 130 360 310s-140 350-340 360-390-110-400-300 190-370 380-370z'/%3E%3Cpath d='M448 20c215 0 395 150 408 352s-160 400-386 410-440-125-452-340 215-422 430-422z'/%3E%3C/svg%3E");
}
#root { position: relative; z-index: 1; min-height: 100vh; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue-tint); }
:focus-visible { outline: 3px solid rgba(31, 111, 229, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .92em; }
/* the public site's signature: one italic serif phrase in a headline */
.accent { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; color: var(--c, var(--blue)); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* boot splash (before React mounts) */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-mark { width: 54px; height: 54px; border-radius: 16px; background: var(--blue); box-shadow: 0 16px 30px -12px rgba(31,111,229,.55); animation: bootPulse 1.2s var(--ease) infinite alternate; }
@keyframes bootPulse { to { transform: translateY(-6px) rotate(8deg); } }

/* ---------------------------------------------------------------- motion */
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes halo { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(2.2); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes checkDraw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }

.page { animation: pageIn .45s var(--ease) both; }
.stagger > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.float { animation: float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 18px 18px;
  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-right: 1px solid var(--hair);
  box-shadow: 8px 0 40px -28px rgba(14, 27, 46, .35);
  overflow-y: auto;
  transition: transform .35s var(--ease);
}
.brand { display: flex; align-items: center; gap: 14px; padding: 6px 8px 18px; }
.brand-mark { width: 50px; height: 50px; flex: none; filter: drop-shadow(0 10px 14px rgba(31,111,229,.28)); }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: 13.5px; color: var(--muted); font-weight: 600; }

.nav-group { padding: 10px 4px 6px; }
.nav-group + .nav-group { border-top: 1px dashed var(--line-2); margin-top: 4px; }
.nav-group-head { display: flex; align-items: center; gap: 10px; padding: 6px 10px 8px; font-size: 13px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2); }
.nav-group-head .dot { width: 10px; height: 10px; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 4px var(--c-soft); transform: rotate(45deg); }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 52px; padding: 8px 12px; margin: 2px 0;
  border-radius: 16px; color: var(--ink-2); font-weight: 650; font-size: 16px;
  transition: background .2s var(--ease), color .2s, transform .2s var(--ease), box-shadow .2s;
}
.nav-item:hover { background: rgba(255,255,255,.9); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); transform: translateX(2px); }
.nav-item .nav-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c-soft); color: var(--c-ink); transition: all .25s var(--ease); }
.nav-item.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.nav-item.active .nav-icon { background: var(--c); color: var(--c-on, #fff); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 16px -8px var(--c-glow); }
.nav-item.active::after { content: ''; position: absolute; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px var(--c-soft); }
.nav-item .lock { margin-left: auto; color: var(--faint); }
.nav-label { flex: 1; min-width: 0; }
.nav-sub { display: block; font-size: 12.5px; font-weight: 600; color: var(--faint); line-height: 1.2; }

.sidebar-foot { margin-top: auto; padding-top: 14px; display: grid; gap: 10px; }
.mini-status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-1); border: 1px solid var(--hair); }
.mini-status b { display: block; font-size: 15px; }
.mini-status span { font-size: 13px; color: var(--muted); }
.session-chip { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--hair); font-size: 14px; }
.session-chip .who { flex: 1; min-width: 0; }
.session-chip .who b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); padding: 26px 44px 90px; }
.container { max-width: 1520px; margin: 0 auto; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 0 -14px 22px; padding: 8px 14px; border-radius: 0 0 22px 22px; border: 1px solid transparent; border-top: 0;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.topbar.stuck { background: var(--glass-strong); border-color: var(--hair); box-shadow: var(--shadow-1);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.crumbs b { color: var(--ink); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--hair); box-shadow: var(--shadow-1); font-weight: 650; font-size: 15px; }
.clock-chip .tz { color: var(--muted); font-weight: 600; font-size: 13px; }
.ibtn.menu-btn { display: none; }
.scrim { display: none; }

@media (max-width: 1180px) {
  .sidebar { transform: translateX(-104%); }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(14,27,46,.28); backdrop-filter: blur(3px); animation: fadeIn .2s both; }
  .main { margin-left: 0; padding: 18px 26px 80px; }
  .ibtn.menu-btn { display: inline-grid; }
}
@media (max-width: 720px) {
  .main { padding: 14px 16px 70px; }
  .clock-chip .tz, .crumbs span.sep, .crumbs .sec { display: none; }
}

/* ---------------------------------------------------------------- hero header */
.hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  padding: 30px 34px; margin-bottom: 28px;
  border-radius: var(--r-xl);
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,.9);
}
/* diagonal hatch texture in the section's tone */
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, var(--c-soft) 14px 15px);
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.hero > * { position: relative; }
.hero-main { display: flex; gap: 22px; align-items: flex-start; min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--c-ink); }
.page-title { font-size: 40px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 8px; }
.page-sub { font-size: 17px; color: var(--ink-2); max-width: 720px; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-art { width: 280px; height: 180px; margin: -12px -6px -12px 0; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } .hero-art { display: none; } }
@media (max-width: 720px) { .hero { padding: 22px; } .page-title { font-size: 30px; } .hero-main { flex-direction: column; } }

/* ---------------------------------------------------------------- icon tiles (3D) */
.itile {
  --size: 56px;
  width: var(--size); height: var(--size); flex: none;
  display: grid; place-items: center;
  border-radius: calc(var(--size) * .32);
  background: var(--c-soft); color: var(--c-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -3px 0 rgba(14,27,46,.05), 0 10px 20px -12px var(--c-glow);
  border: 1px solid var(--c-tint);
}
.itile.solid { background: var(--c); color: var(--c-on, #fff); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.12), 0 14px 26px -12px var(--c-glow); }
.itile.lg { --size: 76px; }
.itile.xl { --size: 92px; }
.itile.sm { --size: 42px; }
.itile.xs { --size: 34px; border-radius: 10px; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: 15px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: 15.5px; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-1);
  transition: transform .18s var(--ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: var(--shadow-1); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--c, var(--blue)); border-color: transparent; color: var(--c-on, #fff); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 24px -12px var(--c-glow, rgba(31,111,229,.5)); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.soft { background: var(--c-soft, var(--blue-soft)); border-color: var(--c-tint, var(--blue-tint)); color: var(--c-ink, var(--blue-ink)); box-shadow: none; }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { background: rgba(255,255,255,.8); }
.btn.danger { background: var(--rose); border-color: transparent; color: #fff; box-shadow: 0 12px 24px -12px rgba(216,58,87,.55); }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: 17px; border-radius: 17px; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn.copied { background: var(--teal) !important; border-color: transparent !important; color: #fff !important; }
.ibtn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none;
  border-radius: 13px; border: 1px solid transparent; background: transparent; color: var(--ink-2);
  cursor: pointer; transition: background .2s, color .2s, transform .15s, box-shadow .2s;
}
.ibtn:hover { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.ibtn.bordered { border-color: var(--line-2); background: var(--surface); }
.ibtn.danger:hover { color: var(--rose); background: var(--rose-soft); }
.ibtn.sm { width: 36px; height: 36px; border-radius: 11px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

/* ---------------------------------------------------------------- forms */
.field { display: grid; gap: 8px; }
.field > label, .label { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.hint { font-size: 13.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 15px;
  border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface);
  font-size: 16px; color: var(--ink);
  box-shadow: inset 0 1px 2px rgba(14,27,46,.04);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { resize: vertical; line-height: 1.6; min-height: 110px; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,229,.15); }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364738b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-icon { position: relative; }
.input-icon > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon > .input { padding-left: 46px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); cursor: pointer; }

.switch { position: relative; width: 54px; height: 32px; flex: none; border-radius: 999px; border: none; cursor: pointer; background: var(--line-2); transition: background .25s var(--ease); box-shadow: inset 0 2px 4px rgba(14,27,46,.12); }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(14,27,46,.25); transition: transform .25s var(--ease); }
.switch.on { background: var(--c, var(--teal)); }
.switch.on::after { transform: translateX(22px); }

.segmented { display: inline-flex; gap: 4px; padding: 5px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid var(--hair); box-shadow: inset 0 1px 2px rgba(14,27,46,.05); flex-wrap: wrap; }
.segmented button { border: none; background: transparent; padding: 9px 16px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--muted); cursor: pointer; transition: all .2s var(--ease); display: inline-flex; align-items: center; gap: 8px; }
.segmented button:hover { color: var(--ink); }
.segmented button.active { background: var(--surface); color: var(--c-ink, var(--blue-ink)); box-shadow: var(--shadow-1); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: var(--c-soft, var(--slate-soft)); color: var(--c-ink, var(--slate-ink)); border: 1px solid var(--c-tint, transparent); white-space: nowrap; }
.chip.lg { padding: 6px 14px; font-size: 14.5px; }
.chip.outline { background: transparent; }
.chip button { border: none; background: none; padding: 0; margin-right: -4px; cursor: pointer; color: inherit; display: inline-grid; opacity: .7; }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; min-height: 48px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.chips-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,229,.15); }
.chips-input input { border: none; outline: none; flex: 1; min-width: 120px; font-size: 15.5px; padding: 4px; background: transparent; }

/* ---------------------------------------------------------------- generic surfaces */
.panel {
  position: relative;
  background: var(--glass-strong);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 26px 28px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-title { display: flex; align-items: center; gap: 14px; }
.panel-title h2 { font-size: 21px; line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.015em; }
.panel-title p { margin: 2px 0 0; font-size: 14.5px; color: var(--muted); }
.section-title { display: flex; align-items: center; gap: 12px; font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 34px 0 16px; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.cols-7-5 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
@media (max-width: 1100px) { .cols-2, .cols-7-5 { grid-template-columns: minmax(0, 1fr); } }
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.toolbar .grow { flex: 1; min-width: 220px; max-width: 460px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.kbd { font-family: var(--mono); font-size: 13px; padding: 2px 7px; border-radius: 7px; background: var(--surface-3); border: 1px solid var(--line-2); }

/* empty state */
.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 46px 24px; color: var(--muted); }
.empty h3 { margin: 6px 0 0; font-size: 22px; color: var(--ink); letter-spacing: -.01em; }
.empty p { margin: 0; max-width: 460px; font-size: 16px; }
.empty .art { width: 220px; height: 150px; }
.skeleton { border-radius: 14px; background: var(--surface-3); animation: breathe 1.4s ease-in-out infinite; }

/* ---------------------------------------------------------------- overlays */
.overlay { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(14,27,46,.30); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .2s both; }
.modal { width: min(720px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 30px; background: var(--glass-strong); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-3); animation: pop .32s var(--ease) both; }
.modal.wide { width: min(1080px, 100%); }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 24px 28px 8px; }
.modal-head h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; flex: 1; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.modal-body { padding: 16px 28px 8px; overflow-y: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 18px 28px 24px; border-top: 1px solid var(--line); margin-top: 12px; }
.drawer-wrap { position: fixed; inset: 0; z-index: 80; background: rgba(14,27,46,.26); backdrop-filter: blur(4px); animation: fadeIn .2s both; }
.drawer { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(580px, calc(100% - 24px)); display: flex; flex-direction: column; border-radius: 28px; background: var(--glass-strong); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.9); animation: slideIn .38s var(--ease) both; }

.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 12px; width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); animation: toastIn .35s var(--ease) both; font-weight: 600; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-body b { display: block; font-size: 15.5px; }
.toast .t-body span { font-size: 14px; color: var(--muted); font-weight: 500; }

.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); animation: pop .2s var(--ease) both; }
.menu button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: none; background: none; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--ink-2); text-align: left; }
.menu button:hover { background: var(--surface-2); color: var(--ink); }
.menu button.danger { color: var(--rose-ink); }
.menu button.danger:hover { background: var(--rose-soft); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 6px 4px; }
.rel { position: relative; }

/* ---------------------------------------------------------------- avatars */
.avatar { --size: 56px; position: relative; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--c); color: var(--c-on, #fff); font-weight: 800; font-size: calc(var(--size) * .36); letter-spacing: -.02em; box-shadow: inset 0 -4px 0 rgba(0,0,0,.10), inset 0 2px 0 rgba(255,255,255,.28); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.soft { background: var(--c-soft); color: var(--c-ink); }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 10px; }
.avatar-pick button { border: 2px solid transparent; border-radius: 50%; padding: 3px; background: none; cursor: pointer; transition: transform .15s, border-color .15s; }
.avatar-pick button:hover { transform: scale(1.06); }
.avatar-pick button.active { border-color: var(--blue); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 11px; border: 3px solid #fff; background: var(--c); cursor: pointer; box-shadow: 0 0 0 1px var(--line-2), 0 6px 12px -6px var(--c-glow); transition: transform .15s; }
.swatch:hover { transform: scale(1.08); }
.swatch.active { box-shadow: 0 0 0 3px var(--c); }

/* ---------------------------------------------------------------- dashboard */
.period-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
@media (max-width: 1440px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
/* "leaf" tiles: alternating big/small corners so the row reads as one rhythm */
.kpi {
  position: relative; padding: 20px 20px 18px;
  border-radius: 30px 12px 30px 12px;
  background: var(--surface); border: 1px solid var(--hair);
  box-shadow: var(--shadow-2);
  transition: transform .3s var(--ease), box-shadow .3s;
  transform-style: preserve-3d;
}
.kpi:hover { box-shadow: var(--shadow-lift); }
.kpi::after { content: ''; position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border-radius: 50%; border: 2px dashed var(--c-tint); opacity: .8; }
.kpi .kpi-label { margin-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.kpi .kpi-value { font-size: 36px; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; margin-top: 2px; overflow-wrap: anywhere; }
.kpi .kpi-value.text { font-size: 23px; line-height: 1.25; padding-top: 6px; }
.kpi .kpi-sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 8px; vertical-align: -1px; background: var(--k); }
.chart-tip { background: var(--surface); border: 1px solid var(--hair); border-radius: 14px; box-shadow: var(--shadow-3); padding: 10px 14px; font-size: 14px; min-width: 150px; }
.chart-tip b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.chart-tip div { display: flex; align-items: center; gap: 8px; justify-content: space-between; color: var(--ink-2); }
.chart-tip div i { width: 10px; height: 10px; border-radius: 3px; background: var(--k); display: inline-block; }
.chart-tip div span { flex: 1; }
.chart-tip div strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.recharts-cartesian-axis-tick text { fill: var(--viz-axis); font-family: var(--font); font-size: 13px; }
.recharts-wrapper:focus, .recharts-surface:focus { outline: none; }

.heatmap { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
@media (max-width: 720px) { .heatmap { overflow-x: auto; padding-bottom: 6px; } .heat-grid { min-width: 560px; } }
.heat-y { display: grid; grid-template-rows: 26px repeat(7, 1fr); gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.heat-y span { display: flex; align-items: center; justify-content: flex-end; }
.heat-grid { display: grid; grid-template-rows: 26px repeat(7, 26px); gap: 4px; }
.heat-row { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; }
.heat-x { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.heat-cell { border-radius: 6px; background: var(--surface-3); transition: transform .15s var(--ease), box-shadow .15s; }
.heat-cell:hover { transform: scale(1.25); position: relative; z-index: 2; box-shadow: 0 0 0 2px #fff, 0 6px 14px -4px rgba(14,27,46,.4); }
.heat-legend { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.heat-legend div { display: flex; gap: 3px; }
.heat-legend div i { width: 20px; height: 12px; border-radius: 3px; }

.table-wrap { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.table th { text-align: left; font-size: 13.5px; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover td { background: rgba(231,240,255,.45); }
.table td.title-cell { max-width: 520px; font-weight: 600; }
.table td.title-cell a { color: var(--ink); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table td.title-cell a:hover { color: var(--blue-ink); }
.table .r { text-align: right; }
.table.matrix td, .table.matrix th { text-align: center; }
.table.matrix td:first-child, .table.matrix th:first-child { text-align: left; font-weight: 700; }
.table.matrix td.cell { font-weight: 700; border-radius: 0; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; color: var(--ink-2); font-weight: 600; font-size: 15px; flex-wrap: wrap; }

.tier { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 13.5px; font-weight: 700; white-space: nowrap; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.tier i { width: 9px; height: 9px; border-radius: 3px; background: var(--k); }

/* ---------------------------------------------------------------- bid template cards ("tickets") */
.bid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 28px; }
.bid-grid > div { display: flex; }
.bid-grid > div > .bid-card-wrap { flex: 1; display: flex; flex-direction: column; }
.bid-grid > div > .bid-card-wrap > .bid-card { flex: 1; }
@media (max-width: 720px) { .bid-grid { grid-template-columns: 1fr; } }
.bid-card-wrap { filter: drop-shadow(0 18px 26px rgba(14,27,46,.12)) drop-shadow(0 2px 3px rgba(14,27,46,.06)); transition: filter .3s var(--ease); perspective: 1000px; }
.bid-card-wrap:hover { filter: drop-shadow(0 28px 36px rgba(14,27,46,.18)) drop-shadow(0 2px 3px rgba(14,27,46,.06)); }
.bid-card {
  position: relative; display: flex; flex-direction: column; min-height: 470px;
  border-radius: 30px; background: var(--surface);
  /* ticket notches where the banner meets the body */
  -webkit-mask: radial-gradient(circle 15px at 0 132px, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 132px, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 15px at 0 132px, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 15px at 100% 132px, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: transform .35s var(--ease);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.bid-banner { position: relative; height: 132px; background: var(--c); overflow: hidden; }
.bid-banner::before { content: ''; position: absolute; inset: 0; opacity: .22; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cpath d='M0 13h26M13 0v26' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E"); }
.bid-banner::after { content: ''; position: absolute; width: 240px; height: 240px; right: -70px; top: -110px; border-radius: 50%; border: 26px solid rgba(255,255,255,.14); }
.bid-banner .bid-top { position: absolute; top: 16px; left: 18px; right: 14px; display: flex; align-items: center; gap: 8px; z-index: 1; }
.bid-banner .bid-top .chip { background: rgba(255,255,255,.22); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.bid-banner .bid-top .rel { margin-left: auto; }
.bid-banner .bid-top .ibtn { color: #fff; }
.bid-banner .bid-top .ibtn:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.bid-dash { position: absolute; top: 131px; left: 22px; right: 22px; border-top: 2px dashed var(--line-2); }
.bid-avatar { position: absolute; top: 62px; left: 26px; z-index: 2; }
.bid-avatar .avatar { --size: 112px; border: 6px solid #fff; box-shadow: 0 16px 30px -12px rgba(14,27,46,.45), inset 0 -5px 0 rgba(0,0,0,.10); font-size: 40px; }
.bid-body { padding: 70px 26px 22px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.bid-title { font-size: 23px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.bid-text { flex: 1; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.bid-foot { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.bid-foot .stat { font-size: 13.5px; color: var(--muted); font-weight: 600; flex: 1; }
.bid-foot .stat b { color: var(--ink); font-size: 15px; }

/* ---------------------------------------------------------------- developer "folders" */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr)); gap: 30px 26px; align-items: start; }
@media (max-width: 720px) { .folder-grid { grid-template-columns: 1fr; } }
.folder { position: relative; margin-top: 30px; }
.folder-tab {
  position: absolute; top: -30px; left: 0; height: 46px; max-width: 75%;
  display: flex; align-items: center; gap: 10px; padding: 0 22px 12px 10px;
  background: var(--c-soft); border: 1px solid var(--c-tint); border-bottom: none;
  border-radius: 18px 26px 0 0; font-weight: 800; font-size: 16px; color: var(--c-ink);
}
.folder-tab .avatar { --size: 30px; font-size: 12px; }
.folder-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-body { position: relative; border-radius: 0 28px 28px 28px; background: var(--surface); border: 1px solid var(--hair); border-top: 6px solid var(--c); box-shadow: var(--shadow-2); padding: 18px 18px 14px; }
.folder-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.folder-head .note { flex: 1; color: var(--muted); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, transform .2s var(--ease), background .2s; cursor: pointer; }
.sheet:hover { box-shadow: var(--shadow-1); transform: translateY(-1px); background: #fff; }
.sheet.selected { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 3px rgba(31,111,229,.15); }
.sheet .tick { width: 26px; height: 26px; border-radius: 9px; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; color: #fff; transition: all .2s var(--ease); margin-top: 2px; }
.sheet.selected .tick { background: var(--blue); border-color: var(--blue); }
.sheet h4 { margin: 0; font-size: 17px; font-weight: 750; line-height: 1.3; }
.sheet p { margin: 6px 0 0; font-size: 15px; color: var(--ink-2); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sheet-actions { position: absolute; right: 10px; top: 10px; display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.sheet:hover .sheet-actions, .sheet:focus-within .sheet-actions { opacity: 1; }
@media (hover: none) { .sheet-actions { opacity: 1; } }
.retention-card { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 24px; margin-bottom: 26px; border-radius: 26px 26px 26px 8px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
@media (max-width: 720px) { .retention-card { grid-template-columns: 1fr; } }
.retention-card h3 { margin: 0; font-size: 19px; }
.retention-card p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.selection-bar { position: fixed; left: 50%; bottom: 26px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: 22px; background: var(--ink); color: #fff; box-shadow: var(--shadow-3); animation: toastIn .3s var(--ease) both; font-weight: 700; }
@media (min-width: 1181px) { .selection-bar { left: calc(50% + var(--sidebar-w) / 2); } }
.selection-bar .btn.ghost { color: #dbe4f2; }
.selection-bar .btn.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------------------------------------------------------------- discussion template cards ("bubbles") */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 28px; align-items: start; }
@media (max-width: 720px) { .disc-grid { grid-template-columns: 1fr; } }
.disc-card { position: relative; background: var(--surface); border: 1px solid var(--hair); border-radius: 32px 32px 32px 10px; box-shadow: var(--shadow-2); padding: 24px 26px 22px 34px; transition: box-shadow .3s; }
.disc-card:hover { box-shadow: var(--shadow-lift); }
.disc-card::before { content: ''; position: absolute; left: 0; top: 30px; bottom: 30px; width: 7px; border-radius: 0 8px 8px 0; background: var(--c); }
.disc-card::after { content: ''; position: absolute; left: -1px; bottom: -14px; width: 26px; height: 16px; background: var(--surface); border-left: 1px solid var(--hair); border-bottom: 1px solid var(--hair); clip-path: polygon(0 0, 100% 0, 0 100%); border-bottom-left-radius: 4px; }
.disc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.disc-head h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; flex: 1; min-width: 0; }
.disc-head .meta { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.prompt-box { position: relative; padding: 16px 18px 16px 50px; border-radius: 18px; background: var(--c-soft); border: 1px dashed var(--c-tint); color: var(--ink); font-size: 15.5px; white-space: pre-wrap; max-height: 210px; overflow: auto; }
.prompt-box > svg { position: absolute; left: 16px; top: 16px; color: var(--c-ink); }
.prompt-box .prompt-label { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c-ink); margin-bottom: 4px; }
.disc-fields { display: grid; gap: 16px; margin-top: 18px; }
.disc-field label { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; color: var(--ink-2); margin-bottom: 8px; }
.disc-field label .n { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; background: var(--c-soft); color: var(--c-ink); }
.disc-field .textarea { min-height: 96px; background: var(--surface-2); }
.disc-field .textarea.s { min-height: 60px; }
.disc-field .textarea.l { min-height: 170px; }
.disc-foot { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.disc-foot .saved { flex: 1; font-size: 13.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.field-builder { display: grid; gap: 12px; }
.fb-row { display: grid; grid-template-columns: auto 1.1fr 1.3fr auto auto; gap: 10px; align-items: center; padding: 10px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); animation: rise .3s var(--ease) both; }
@media (max-width: 720px) { .fb-row { grid-template-columns: 1fr; } }
.fb-row .num-badge { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: var(--teal-soft); color: var(--teal-ink); }

/* ---------------------------------------------------------------- tasks */
.task-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
@media (max-width: 1100px) { .task-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tstat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 46px 22px 22px 46px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.tstat b { display: block; font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.tstat span { font-size: 14.5px; color: var(--muted); font-weight: 650; }
.board { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.lane { min-width: 0; border-radius: 24px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.85); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), var(--shadow-1); backdrop-filter: blur(10px); padding: 10px; min-height: 360px; transition: background .2s, box-shadow .2s; }
.lane.drop { background: var(--c-soft); box-shadow: 0 0 0 3px var(--c-tint); }
/* Icon + count on top, the lane name on its own line so seven lanes fit side by side. */
.lane-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 8px; padding: 4px 4px 12px; }
.lane-head .itile.xs { --size: 32px; border-radius: 10px; }
.lane-head b { order: 2; flex-basis: 100%; min-width: 0; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lane-head .count { margin-left: auto; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--c-soft); color: var(--c-ink); }
.lane-list { display: grid; gap: 12px; min-height: 60px; }
.task-card { position: relative; padding: 14px 12px 12px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); cursor: grab; transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; animation: rise .35s var(--ease) both; }
.task-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.task-card.dragging { opacity: .4; }
.task-card::before { content: ''; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 4px; border-radius: 4px; background: var(--p); }
.task-card .t-title { font-weight: 750; font-size: 15px; line-height: 1.35; margin: 0 22px 8px 0; overflow-wrap: anywhere; }
.task-card .t-desc { font-size: 14px; color: var(--muted); margin: -2px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .t-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.task-card .t-progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 12px; }
.task-card .t-progress i { display: block; height: 100%; background: var(--teal); border-radius: 6px; }
.drop-marker { height: 4px; border-radius: 4px; background: var(--c); margin: -6px 4px; }
.quick-add { display: flex; gap: 8px; margin-top: 10px; }
.quick-add .input { min-height: 42px; font-size: 15px; }
.agenda-day { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 20px 0; border-top: 1px dashed var(--line-2); }
.agenda-day:first-child { border-top: none; }
@media (max-width: 720px) { .agenda-day { grid-template-columns: 1fr; gap: 10px; } }
.agenda-label b { display: block; font-size: 19px; }
.agenda-label span { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.agenda-item { display: flex; align-items: center; gap: 16px; padding: 14px 18px; margin-bottom: 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.agenda-item:hover { transform: translateX(4px); box-shadow: var(--shadow-2); }
.agenda-item .time { font-weight: 800; font-size: 16px; min-width: 66px; }
.agenda-item .what { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.checklist-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; }
.checklist-row .input { min-height: 40px; }

/* ---------------------------------------------------------------- bot status */
.status-hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 28px 34px; margin-bottom: 24px; border-radius: 999px 40px 40px 999px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
@media (max-width: 960px) { .status-hero { grid-template-columns: 1fr; border-radius: 34px; justify-items: start; } }
.orb { position: relative; width: 116px; height: 116px; border-radius: 50%; background: var(--c); box-shadow: inset -10px -14px 24px rgba(0,0,0,.18), inset 8px 10px 18px rgba(255,255,255,.35), 0 22px 40px -16px var(--c-glow); display: grid; place-items: center; color: var(--c-on, #fff); }
.orb::before { content: ''; position: absolute; top: 18px; left: 26px; width: 34px; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,255,255,.75), rgba(255,255,255,0)); transform: rotate(-30deg); }
.orb.live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--c); animation: halo 2.2s var(--ease) infinite; }
.status-hero h2 { margin: 0; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.status-hero .facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 12px; color: var(--ink-2); font-weight: 600; font-size: 15.5px; }
.status-hero .facts span { display: inline-flex; align-items: center; gap: 8px; }
.status-hero .ctrl { display: flex; flex-direction: column; gap: 10px; min-width: 190px; }
@media (max-width: 960px) { .status-hero .ctrl { flex-direction: row; flex-wrap: wrap; } }
.gauges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
@media (max-width: 1200px) { .gauges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gauge-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: 28px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.gauge { position: relative; width: 96px; height: 96px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .g-val { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.gauge-card b { display: block; font-size: 17px; }
.gauge-card span { font-size: 14px; color: var(--muted); font-weight: 600; }
.log-box { font-family: var(--mono); font-size: 13.5px; line-height: 1.65; background: #f7f9fc; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; max-height: 460px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #24324a; }
.log-box .l-warn { color: #8f5b00; background: #fff6dc; }
.log-box .l-err { color: #a22139; background: #ffecef; }
.log-box .l-ok { color: #0a6e53; }
.log-box .ts { color: #8a95a8; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: var(--c); box-shadow: 0 0 0 4px var(--c-soft); flex: none; }
.status-dot.live { animation: breathe 1.6s ease-in-out infinite; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--c-soft); border: 1px solid var(--c-tint); color: var(--ink); font-size: 15px; }
.callout b { display: block; margin-bottom: 2px; }
.callout .grow { flex: 1; }

/* ---------------------------------------------------------------- settings / keys */
.set-card { position: relative; padding: 26px 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
.set-card .notch { position: absolute; top: -1px; right: 34px; width: 74px; height: 10px; border-radius: 0 0 10px 10px; background: var(--c); }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.set-row:first-of-type { border-top: none; }
.set-row b { display: block; font-size: 16.5px; }
.set-row span { color: var(--muted); font-size: 14.5px; }
.lang-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.lang-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--surface); font-weight: 700; cursor: pointer; transition: all .2s var(--ease); }
.lang-pill.on { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-ink); }
.lang-pill .flag { font-size: 13px; font-weight: 800; padding: 2px 7px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); }
.lang-pill.on .flag { background: var(--teal); color: #fff; }
.vault { display: grid; gap: 16px; }
.vault-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s var(--ease); }
.vault-row:hover { box-shadow: var(--shadow-2); }
@media (max-width: 720px) { .vault-row { grid-template-columns: auto 1fr; } .vault-row > :last-child { grid-column: 1 / -1; } }
.hex { width: 58px; height: 64px; display: grid; place-items: center; background: var(--c); color: var(--c-on, #fff); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); filter: drop-shadow(0 8px 10px var(--c-glow)); }
.hex.off { background: var(--surface-3); color: var(--faint); }
.vault-row h4 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vault-row .val { font-family: var(--mono); font-size: 14px; color: var(--ink-2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keycards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.keycard { position: relative; aspect-ratio: 1.62; padding: 22px 24px; border-radius: 26px; color: var(--c-on, #fff); background: var(--c); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 26px 40px -22px var(--c-glow), 0 4px 10px rgba(14,27,46,.08); display: flex; flex-direction: column; transition: transform .35s var(--ease); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.keycard::before { content: ''; position: absolute; inset: 0; opacity: .18; background-image: repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.7) 18px 19px); }
.keycard::after { content: ''; position: absolute; width: 280px; height: 280px; right: -110px; bottom: -150px; border-radius: 50%; border: 34px solid rgba(255,255,255,.12); }
.keycard > * { position: relative; z-index: 1; }
.keycard.revoked { background: #b9c2cf; box-shadow: none; }
.keycard .chipset { width: 50px; height: 38px; border-radius: 9px; background: #f8d77a; box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); position: relative; }
.keycard .chipset::before { content: ''; position: absolute; inset: 9px 0; border-top: 2px solid rgba(0,0,0,.14); border-bottom: 2px solid rgba(0,0,0,.14); }
.keycard .chipset::after { content: ''; position: absolute; inset: 0 18px; border-left: 2px solid rgba(0,0,0,.14); border-right: 2px solid rgba(0,0,0,.14); }
.keycard .k-label { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-top: auto; }
.keycard .k-prefix { font-family: var(--mono); font-size: 17px; letter-spacing: .12em; opacity: .95; }
.keycard .k-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; opacity: .9; margin-top: 8px; }
.keycard .k-actions { position: absolute; top: 16px; right: 16px; display: flex; gap: 4px; }
.keycard .k-actions .ibtn { color: inherit; }
.keycard .k-actions .ibtn:hover { background: rgba(255,255,255,.2); box-shadow: none; }
.secret-box { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #e9f0fb; font-family: var(--mono); font-size: 16px; word-break: break-all; }

/* ---------------------------------------------------------------- login */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: minmax(100vh, auto); }
@media (max-width: 1000px) { .login-page { grid-template-columns: minmax(0, 1fr); } .login-art { display: none !important; } }
@media (max-width: 480px) { .login-side { padding: 28px 16px; } .login-side .cmd { white-space: pre-wrap; word-break: break-word; } }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 60px 70px; overflow: hidden; }
.login-art h1 { font-size: 52px; line-height: 1.04; letter-spacing: -.035em; margin: 0; max-width: 560px; }
.login-art p { font-size: 19px; color: var(--ink-2); max-width: 520px; margin: 0; }
.login-art .scene { width: min(520px, 100%); height: 330px; }
.login-feats { display: flex; gap: 12px; flex-wrap: wrap; }
.login-side { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: min(480px, 100%); padding: 38px 36px 32px; border-radius: 36px; background: var(--glass-strong); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid rgba(255,255,255,.95); box-shadow: var(--shadow-3); animation: pop .5s var(--ease) both; }
.login-card h2 { margin: 18px 0 6px; font-size: 32px; letter-spacing: -.03em; }
.login-card .lead { color: var(--muted); margin: 0 0 24px; font-size: 16px; }
.login-card .err { display: flex; gap: 10px; align-items: center; color: var(--rose-ink); background: var(--rose-soft); border: 1px solid var(--rose-tint); padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 15px; animation: pop .25s var(--ease) both; }
.key-input { font-family: var(--mono); letter-spacing: .02em; font-size: 16px; }
.lock-screen { display: grid; justify-items: center; text-align: center; gap: 14px; padding: 70px 24px; }
.lock-screen h2 { font-size: 30px; margin: 8px 0 0; letter-spacing: -.02em; }
.lock-screen p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0; }

/* opaque floating action bar (content must not show through it) */
.save-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding: 16px 20px 16px 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); }
.vault-row .help { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.cmd { display: block; margin-top: 8px; font-family: var(--mono); font-size: 13.5px; padding: 8px 12px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); color: var(--ink-2); }
@media (max-width: 720px) {
  .task-stats { gap: 12px; }
  .tstat { padding: 12px 14px; gap: 12px; border-radius: 34px 18px 18px 34px; }
  .tstat .itile { --size: 44px; }
  .tstat b { font-size: 25px; }
  .tstat span { font-size: 13.5px; line-height: 1.25; display: block; }
}
.lane-add { width: 100%; margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  border-radius: 14px; border: 2px dashed var(--c-tint); background: transparent; color: var(--c-ink); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background .2s, border-color .2s; }
.lane-add:hover { background: var(--c-soft); border-color: var(--c); }

/* ---------------------------------------------------------------- country flags */
.flag { --fw: 26px; position: relative; display: inline-flex; flex: none; vertical-align: middle; line-height: 0;
  width: var(--fw); height: calc(var(--fw) * .75); border-radius: calc(var(--fw) * .16);
  box-shadow: 0 0 0 1px rgba(14,27,46,.14), 0 3px 8px -3px rgba(14,27,46,.35); background: var(--surface-3);
  transition: transform .15s var(--ease); }
.flag img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.flag.unknown { display: inline-grid; place-items: center; color: var(--faint); box-shadow: inset 0 0 0 1px var(--line-2); }
.flag[data-tip] { cursor: default; }
.flag[data-tip]:hover { transform: scale(1.12); z-index: 6; }
.flag[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: 6px 11px; border-radius: 9px; background: var(--ink); color: #fff;
  font: 650 13.5px/1.25 var(--font); box-shadow: var(--shadow-2); pointer-events: none; z-index: 30;
  animation: fadeIn .12s both; }
.flag-lg { --fw: 64px; }
.meta-line { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.meta-line .sep { color: var(--faint); }

/* ---------------------------------------------------------------- task drawer: stages & project info */
.drawer.wide { width: min(860px, calc(100% - 24px)); }
.drawer-tabs .segmented { display: flex; width: 100%; }
.drawer-tabs .segmented button { flex: 1; justify-content: center; }
.unsaved { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; font-size: 14px; font-weight: 700; color: var(--amber-ink); }
.ibtn.copy-ibtn.copied { background: var(--teal) !important; border-color: transparent !important; color: #fff !important; }
.stage-card > .grow, .stage-summary > .grow, .pi-head > .grow, .row > .grow, .stage-top > .input { flex: 1; min-width: 0; }
.pi-fval .textarea, .stage-card .textarea { min-height: 84px; }

.stage-summary { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.stage-summary b { font-size: 15px; }
.stage-summary .t-progress { height: 8px; border-radius: 8px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.stage-summary .t-progress i { display: block; height: 100%; border-radius: 8px; background: var(--green); transition: width .4s var(--ease); }
.stage-card { position: relative; display: flex; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); overflow: hidden; }
.stage-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.stage-num { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-ink); font-weight: 800; font-size: 15px; }
.stage-card.is-done .stage-num { background: var(--c); color: #fff; }
.stage-top { display: flex; align-items: center; gap: 8px; }
.stage-title { font-weight: 750; font-size: 16.5px; min-height: 44px; }
.stage-states { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-states .chip { cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; transition: background .15s, color .15s, border-color .15s; }
.stage-states .chip.outline { color: var(--muted); border-color: var(--line-2); }
.stage-states .chip.outline:hover { color: var(--ink); border-color: var(--muted); }

.pi-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pi-kindbtn { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--c-tint); background: var(--c-soft); color: var(--c-ink); font: 700 14.5px/1.2 var(--font); cursor: pointer; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.pi-kindbtn span { flex: 1; text-align: left; }
.pi-kindbtn .plus { opacity: .7; }
.pi-kindbtn:hover { border-style: solid; border-color: var(--c); transform: translateY(-1px); box-shadow: var(--shadow-1); }
@media (max-width: 640px) { .pi-add { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pi-entry { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); overflow: hidden; animation: rise .3s var(--ease) both; }
.pi-entry::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.pi-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 18px; }
.pi-label { width: 100%; border: none; background: transparent; padding: 2px 0; font: 750 17px/1.3 var(--font); color: var(--ink); outline: none; border-bottom: 2px solid transparent; }
.pi-label:focus { border-bottom-color: var(--c); }
.pi-label::placeholder { color: var(--ink-2); }
.pi-kind { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pi-body { display: grid; gap: 14px; padding: 14px 18px 16px 22px; border-top: 1px solid var(--hair); }
.pi-field { display: grid; gap: 6px; }
.pi-fname { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.pi-fname input { flex: 1; min-width: 0; border: none; background: transparent; padding: 2px 0; font: 700 13.5px/1.3 var(--font); color: var(--ink-2); outline: none; border-bottom: 1px dashed transparent; }
.pi-fname input:focus { border-bottom-color: var(--line-2); }
.pi-fname .chip { padding: 2px 8px; font-size: 12px; }
.pi-tools { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.pi-tools .ibtn.sm { width: 30px; height: 30px; border-radius: 9px; }
.pi-field:hover .pi-tools, .pi-field:focus-within .pi-tools { opacity: 1; }
@media (hover: none) { .pi-tools { opacity: 1; } }
.pi-fval { display: flex; align-items: flex-start; gap: 6px; }
.pi-fval .input, .pi-fval .textarea { flex: 1; min-width: 0; }
.pi-addfield { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; font: 700 14px var(--font); color: var(--muted); cursor: pointer; }
.pi-addfield:hover { color: var(--c-ink); border-color: var(--c); background: var(--c-soft); }

/* ---------------------------------------------------------------- jobs table: copied marks */
.link-cell { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.copied-mark { cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; white-space: nowrap; transition: background .15s, border-color .15s; }
.copied-mark:hover { border-color: var(--green); }
.table tbody tr.is-copied td { background: rgba(43,154,72,.06); }
.table tbody tr.is-copied td:first-child { box-shadow: inset 4px 0 0 var(--green); }
.table tbody tr.is-copied td.title-cell a { color: var(--ink-2); }
.table tbody tr.is-copied:hover td { background: rgba(43,154,72,.1); }

/* ---------------------------------------------------------------- access keys: roles, areas, viewing */
.viewing-bar { display: flex; align-items: center; gap: 14px; margin: -6px 0 22px; padding: 14px 16px 14px 14px; border-radius: 22px;
  background: var(--pink-soft); border: 1px solid var(--pink-tint); box-shadow: var(--shadow-1); }
.viewing-bar .grow { flex: 1; min-width: 0; }
.viewing-bar b { display: block; font-size: 16px; }
.viewing-bar span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 720px) { .viewing-bar { flex-wrap: wrap; } }

.keyslot { display: grid; gap: 0; border-radius: 28px; }
.keyslot.is-viewing { box-shadow: 0 0 0 3px var(--pink); }
.keyslot .keycard { z-index: 1; }
.keycard .k-chip { background: rgba(255,255,255,.22); color: inherit; border-color: rgba(255,255,255,.3); }
.key-info { margin: -22px 8px 0; padding: 32px 16px 14px; border-radius: 0 0 22px 22px; background: var(--surface); border: 1px solid var(--hair); border-top: 0; box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.key-areas { display: flex; flex-wrap: wrap; gap: 6px; }
.key-data { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.key-data .grow { flex: 1; min-width: 0; }

.area-picks { display: grid; gap: 10px; }
.area-pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1.5px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.area-pick input { position: absolute; opacity: 0; pointer-events: none; }
.area-pick .grow { flex: 1; min-width: 0; }
.area-pick b { display: block; font-size: 15.5px; }
.area-pick .grow span { font-size: 13.5px; color: var(--muted); }
.area-pick .tick { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .15s; }
.area-pick.on { border-color: var(--c); background: var(--c-soft); box-shadow: var(--shadow-1); }
.area-pick.on .tick { background: var(--c); border-color: var(--c); color: #fff; }
.area-pick:focus-within { box-shadow: 0 0 0 3px var(--c-tint); }
.keycard > .row:first-child { flex-wrap: wrap; padding-right: 34px; }

/* ---------------------------------------------------------------- live job + message toasts */
.jt-stack { position: fixed; z-index: 90; display: grid; gap: 8px; pointer-events: none; }
.jt-stack > * { pointer-events: auto; }
.jt-stack.right { top: 84px; right: 18px; width: min(318px, calc(100vw - 32px)); }
.jt-stack.left { bottom: 18px; left: calc(var(--sidebar-w) + 18px); width: min(306px, calc(100vw - 32px)); }
@media (max-width: 1180px) { .jt-stack.left { left: 16px; } }
.jt-stack.left .jt-list { display: grid; gap: 8px; }
.jt-stack.left.expanded .jt-list { max-height: min(62vh, 560px); overflow-y: auto; padding: 2px 4px 2px 2px; }
.jt-head { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 12px; border-radius: 14px; font-size: 13.5px;
  background: var(--glass-strong); border: 1px solid var(--hair); box-shadow: var(--shadow-1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.jt-head b { flex: 1; }
.linkish { border: 0; background: none; padding: 2px 4px; font: 700 13px var(--font); color: var(--blue-ink); cursor: pointer; border-radius: 6px; }
.linkish:hover { background: var(--blue-soft); }

.jtoast, .mtoast { position: relative; display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 8px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); animation: toastIn .3s var(--ease) both; }
.jtoast.alert { background: color-mix(in srgb, var(--c-soft) 70%, var(--surface)); border-color: var(--c-tint); box-shadow: inset 4px 0 0 var(--c), var(--shadow-2); padding-left: 12px; }
.jtoast.is-copied { opacity: .82; }
.jt-main, .mt-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 2px 4px; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: 10px; }
.jt-main:hover, .mt-main:hover { background: rgba(14,27,46,.04); }
.jt-text, .mt-text { display: grid; min-width: 0; line-height: 1.25; }
.jt-text b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jt-pay { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.jt-pay.ok { color: var(--green-ink); }
.jt-pay.no { color: var(--rose-ink); }
.jt-pay.unk { color: var(--muted); }
.jtoast .ibtn.sm, .mtoast .ibtn.sm { width: 32px; height: 32px; border-radius: 10px; }
.jtoast .copied-mark.compact { padding: 3px 6px; margin-right: 2px; }
.jt-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--c, var(--blue)); opacity: .55; transform-origin: left; animation: jtTimer linear forwards; }
.jtoast:hover .jt-timer, .mtoast:hover .jt-timer { animation-play-state: paused; }
@keyframes jtTimer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.mt-text b { font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-text span { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--c-soft); color: var(--c-ink); }
.mtoast { box-shadow: inset 4px 0 0 var(--c), var(--shadow-2); padding-left: 12px; }
@media (prefers-reduced-motion: reduce) { .jtoast, .mtoast { animation: none; } .jt-timer { display: none; } }

/* ---------------------------------------------------------------- shell additions: badges, bell, app link */
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--rose); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 0 0 2px var(--surface); }
.bell-btn { position: relative; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  background: var(--glass-strong); border: 1px solid var(--hair); box-shadow: var(--shadow-1); color: var(--ink-2); }
.bell-btn:hover { color: var(--ink); box-shadow: var(--shadow-2); }
.bell-btn .nav-badge { position: absolute; top: -5px; right: -6px; margin: 0; }
.app-link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; font-weight: 700; font-size: 14px;
  color: var(--blue-ink); background: var(--blue-soft); border: 1px solid var(--blue-tint); text-decoration: none; }
.app-link:hover { box-shadow: var(--shadow-1); }
/* the public home page (landing) is served at "/" outside the portal, so these are plain links */
.brand-link { color: inherit; text-decoration: none; border-radius: 18px; }
.brand-link:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-mark { transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.home-link { color: var(--ink-2); background: var(--glass-strong); border-color: var(--hair); }
.home-link-arrow { margin-left: auto; opacity: .6; }
.home-chip { color: var(--ink-2); text-decoration: none; }
.home-chip:hover { color: var(--ink); box-shadow: var(--shadow-2); text-decoration: none; }
@media (max-width: 720px) { .home-chip { padding: 8px 11px; } .home-chip .hc-text { display: none; } }
@media (max-width: 420px) { .home-chip { display: none; } }  /* phones: the menu drawer has the Home page link */
.session-chip { padding: 8px 8px 8px 10px; }
.who-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; border-radius: 12px; padding: 2px; }
.who-link:hover { background: rgba(14,27,46,.04); }
.sync-chip { cursor: pointer; font: inherit; font-weight: 650; font-size: 14px; color: var(--c-ink, var(--ink)); }
.spin { animation: spin 1s linear infinite; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--muted); font-weight: 600; }
.ok-text { color: var(--green-ink); }
.warn-text { color: var(--amber-ink); }
.label { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------------------------------------------------------------- notifications page */
.inbox-list { display: grid; gap: 6px; }
.inbox-item { display: flex; align-items: center; gap: 6px; border-radius: 18px; padding: 4px 6px 4px 4px; transition: background .15s; }
.inbox-item:hover { background: var(--surface-2); }
.inbox-item.unread { background: color-mix(in srgb, var(--c-soft) 55%, transparent); }
.ii-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 10px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; border-radius: 14px; }
.ii-av { position: relative; flex: none; }
.ii-badge { position: absolute; right: -4px; bottom: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; box-shadow: 0 0 0 2px var(--surface); }
.ii-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ii-text b { font-size: 15.5px; }
.ii-text span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ii-time { font-size: 13.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.ii-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.filter-card { position: relative; display: grid; gap: 14px; padding: 18px 18px 14px 22px; border-radius: 24px; background: var(--surface); border: 1px solid var(--hair);
  box-shadow: inset 6px 0 0 var(--c), var(--shadow-1); transition: box-shadow .2s, opacity .2s; }
.filter-card:hover { box-shadow: inset 6px 0 0 var(--c), var(--shadow-2); }
.filter-card.off { opacity: .6; }
.fc-top { display: flex; align-items: flex-start; gap: 12px; }
.fc-top .grow { flex: 1; min-width: 0; }
.fc-top b { display: block; font-size: 17px; }
.fc-top span { font-size: 14px; color: var(--muted); }
.fc-swatch { width: 14px; height: 14px; border-radius: 5px; background: var(--c); margin-top: 5px; flex: none; }
.fc-flags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fc-foot { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.fc-foot .muted { flex: 1; }
.country-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 48px; padding: 6px 8px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); }
.country-picker:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.country-picker .chip button { border: 0; background: none; padding: 0; margin-left: 2px; cursor: pointer; color: inherit; display: inline-grid; }
.cp-input { flex: 1; min-width: 160px; border: 0; outline: none; background: transparent; font: 600 15px var(--font); padding: 6px; color: var(--ink); }
.filter-editor { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.fe-preview { position: sticky; top: 0; display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--surface-2); border: 1px dashed var(--line-2); }
.fe-hit { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 4px 2px; }
.fe-hit .grow { flex: 1; text-align: right; }
@media (max-width: 900px) { .filter-editor { grid-template-columns: 1fr; } }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
@media (max-width: 1100px) { .settings-grid { grid-template-columns: minmax(0, 1fr); } }
.set-title { font-size: 19px; margin: 0 0 8px; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.set-row:last-of-type { border-bottom: 0; }
.set-row .grow { flex: 1; min-width: 0; }
.set-row b { display: block; font-size: 15.5px; }
.set-row .grow span { font-size: 14px; color: var(--muted); }
.set-ctl { flex: none; }
.set-sub { display: grid; gap: 12px; padding: 4px 0 14px 56px; }
.set-sub input[type=range] { width: 100%; accent-color: var(--pink); }
@media (max-width: 720px) { .set-row { flex-wrap: wrap; } .set-sub { padding-left: 0; } }

/* ---------------------------------------------------------------- profile, request page, desktop page */
.profile-hero { display: flex; align-items: center; gap: 26px; padding: 30px 34px; margin-bottom: 26px; border-radius: 34px; background: var(--glass-strong);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--shadow-2); }
.profile-hero .grow { flex: 1; }
.profile-hero .page-title { margin: 4px 0 10px; }
@media (max-width: 720px) { .profile-hero { flex-direction: column; align-items: flex-start; padding: 22px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.steps li { display: flex; gap: 14px; align-items: center; font-size: 16.5px; color: var(--ink-2); }
.steps li b { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--teal); color: #fff; font-size: 16px; box-shadow: var(--shadow-1); }
.result-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--c-soft); border: 1px solid var(--c-tint); color: var(--c-ink); }
.result-card b { display: block; font-size: 16.5px; margin-bottom: 2px; color: var(--ink); }
.result-card span { font-size: 14.5px; color: var(--ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 4px 0 24px; }
@media (max-width: 1200px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } }
.feature { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.feature b { font-size: 17.5px; }
.feature span { font-size: 14.5px; color: var(--muted); }
.install-steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.request-list { display: grid; gap: 10px; }
.request-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.request-row .grow { flex: 1; min-width: 0; }
.request-row b { display: block; font-size: 15.5px; }
.request-row span { font-size: 13.5px; color: var(--muted); }
.muted-list .request-row { box-shadow: none; background: var(--surface-2); color: var(--muted); }
.update-bar { margin-top: 0; }

/* ---------------------------------------------------------------- discussion forum */
.forum { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: calc(100vh - 150px); min-height: 520px; border-radius: 30px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
.forum.has-thread { grid-template-columns: 290px minmax(0, 1fr) 380px; }
.f-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; overflow-y: auto; background: var(--surface-2); border-right: 1px solid var(--line); }
.f-search { position: relative; margin: 0 4px 10px; }
.search-pop { position: absolute; left: 0; right: -120px; top: calc(100% + 6px); z-index: 20; max-height: 380px; overflow-y: auto; padding: 6px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); }
.search-pop button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 0; background: none; border-radius: 12px; cursor: pointer; font: inherit; color: inherit; }
.search-pop button:hover { background: var(--surface-2); }
.sp-where { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.sp-body { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-group { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 4px 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.f-group .ibtn.sm { width: 30px; height: 30px; }
.f-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 12px; cursor: pointer;
  font: 600 15px var(--font); color: var(--ink-2); text-align: left; transition: background .12s; }
.f-item:hover { background: rgba(14,27,46,.05); }
.f-item.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.f-item.unread { color: var(--ink); font-weight: 800; }
.f-item .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-hash { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c-soft); color: var(--c-ink); font-weight: 800; flex: none; }
.f-item.dm .grow { display: grid; }
.f-item.dm b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-preview { font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--rose); color: #fff; font-size: 12px; font-weight: 800; }
.f-empty { margin: 4px 12px; font-size: 13.5px; color: var(--muted); }
.f-main, .f-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.f-thread { border-left: 1px solid var(--line); background: var(--surface); }
.f-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.f-head .grow { flex: 1; min-width: 0; }
.f-head b { display: block; font-size: 17px; }
.f-head .grow span { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-back { display: none; }
.f-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 0 14px; }
.f-blank { flex: 1; display: grid; place-items: center; }
.f-start { display: grid; justify-items: start; gap: 6px; padding: 26px 22px 18px; }
.f-start h3 { margin: 8px 0 0; font-size: 22px; }
.f-start p { margin: 0; color: var(--muted); }
.older { display: grid; place-items: center; padding: 6px; }
.day-sep, .thread-sep { display: flex; align-items: center; gap: 12px; padding: 10px 20px; font-size: 12.5px; font-weight: 800; color: var(--muted); }
.day-sep::before, .day-sep::after, .thread-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { position: relative; display: flex; gap: 12px; padding: 6px 20px 6px 16px; transition: background .12s; }
.msg:hover { background: var(--surface-2); }
.msg.compact { padding-top: 1px; padding-bottom: 1px; }
.msg.pinned { background: color-mix(in srgb, var(--amber-soft) 45%, transparent); }
.msg.flash { animation: msgFlash 2.4s var(--ease); }
@keyframes msgFlash { 0%, 40% { background: var(--blue-soft); box-shadow: inset 4px 0 0 var(--blue); } 100% { background: transparent; } }
.msg-gutter { width: 38px; flex: none; display: flex; justify-content: center; }
.msg-time-sm { font-size: 11px; color: var(--faint); opacity: 0; padding-top: 4px; }
.msg:hover .msg-time-sm { opacity: 1; }
.msg-main { flex: 1; min-width: 0; }
.msg-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.msg-head b { font-size: 15px; }
.role-chip { padding: 1px 7px; font-size: 11px; }
.msg-time { font-size: 12.5px; color: var(--muted); }
.msg-body { font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.msg-body a { color: var(--blue-ink); }
.mention { padding: 0 3px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); font-weight: 700; }
.mention.me { background: var(--amber-soft); color: var(--amber-ink); }
.msg-edited { font-size: 12px; color: var(--muted); margin-left: 4px; }
.msg.deleted i { color: var(--muted); font-size: 14px; }
.msg-edit { display: grid; gap: 8px; }
.msg-edit .textarea { min-height: 70px; }
.reactions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.reaction { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px; }
.reaction b { font-size: 12.5px; color: var(--ink-2); }
.reaction.mine { background: var(--blue-soft); border-color: var(--blue-tint); }
.thread-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 10px; border-radius: 10px; border: 0; background: var(--blue-soft);
  color: var(--blue-ink); font: 700 13.5px var(--font); cursor: pointer; }
.thread-link span { color: var(--muted); font-weight: 600; }
.msg-tools { position: absolute; top: -14px; right: 18px; display: none; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); }
.msg:hover .msg-tools, .msg:focus-within .msg-tools { display: flex; }
.msg-tools .ibtn.sm { width: 30px; height: 30px; border-radius: 9px; }
@media (hover: none) { .msg-tools { position: static; display: flex; margin-left: auto; box-shadow: none; } }
.emoji-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10; display: flex; gap: 2px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); }
.emoji-pop button { width: 34px; height: 34px; border: 0; background: none; border-radius: 10px; font-size: 19px; cursor: pointer; }
.emoji-pop button:hover { background: var(--surface-2); transform: scale(1.15); }
.pinned-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(380px, 80vw); max-height: 420px; overflow-y: auto; padding: 12px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); }
.pinned-pop > button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; color: inherit; }
.pinned-pop > button:hover { background: var(--surface-2); }
.pinned-pop > button span { font-size: 14px; color: var(--ink-2); }
.composer { position: relative; margin: 0 14px 14px; padding: 8px 8px 8px 14px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1); }
.composer:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.composer textarea { width: 100%; border: 0; outline: none; resize: none; background: transparent; font: 500 15.5px/1.5 var(--font); color: var(--ink); padding: 6px 0; max-height: 220px; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.composer-bar .hint { font-size: 12.5px; color: var(--muted); }
.composer.compact { margin: 0 10px 10px; }
.mention-menu { position: absolute; left: 10px; bottom: calc(100% + 6px); z-index: 20; width: min(320px, 90%); padding: 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); }
.mention-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 10px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.mention-menu button.on, .mention-menu button:hover { background: var(--blue-soft); }
.mention-menu b { font-size: 14.5px; }
.mention-menu span { font-size: 13px; color: var(--muted); }
.people-list { display: grid; gap: 4px; max-height: 50vh; overflow-y: auto; }
.person { display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; background: none; border-radius: 14px; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.person:hover { background: var(--surface-2); }
.person .grow { flex: 1; display: grid; }
.person b { font-size: 15.5px; }
.person .grow > span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 1280px) { .forum.has-thread { grid-template-columns: 250px minmax(0, 1fr) 330px; } }
@media (max-width: 1100px) { .forum.has-thread { grid-template-columns: minmax(0, 1fr); } .forum.has-thread .f-side, .forum.has-thread .f-main { display: none; } }
@media (max-width: 900px) {
  .forum { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 130px); }
  .forum.has-conv .f-side { display: none; }
  .forum:not(.has-conv) .f-main { display: none; }
  .f-back { display: inline-grid; }
}
.nav-item.active:has(.nav-badge)::after { display: none; }

/* ==========================================================================
   Multi-platform: Workana + Freelancer (market pages, Live Monitor, settings)
   ========================================================================== */
.pf-logo { display: inline-block; flex-shrink: 0; border-radius: 7px; background: #fff; object-fit: contain; vertical-align: middle; box-shadow: 0 0 0 1px var(--hair); }
.pf-badge { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.pf-badge.compact { padding: 2px; background: transparent; border: 0; }
.pf-tabs button { padding: 8px 14px; }
.pf-pair { display: inline-flex; }
.pf-pair .pf-logo + .pf-logo { margin-left: -6px; }
.pf-count { font-size: 12.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.segmented button.active .pf-count { background: var(--c-soft, var(--blue-soft)); color: var(--c-ink, var(--blue-ink)); }
.legend .legend-logo { margin-right: 6px; vertical-align: -3px; }
.nav-icon.logo { background: #fff; }
.nav-icon.logo .pf-logo { box-shadow: none; }

.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1600px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .kpis.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 12.5px; font-weight: 800; margin-right: 4px; vertical-align: 1px; white-space: nowrap; }
.delta.good { background: var(--green-soft); color: var(--green-ink); }
.delta.bad { background: var(--rose-soft); color: var(--rose-ink); }
.delta.flat { background: var(--slate-soft); color: var(--slate-ink); }

.findings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
@media (max-width: 1280px) { .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .findings { grid-template-columns: minmax(0, 1fr); } }
.finding { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); border-left: 4px solid var(--c); }
.finding-body { min-width: 0; }
.finding-body b { display: flex; align-items: center; gap: 8px; font-size: 16.5px; line-height: 1.3; }
.finding-body span { display: block; color: var(--ink-2); font-size: 14.5px; margin-top: 3px; }

.donut-center { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; text-align: center; }
.donut-center b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.donut-center span { color: var(--muted); font-weight: 650; font-size: 14px; }

.toolbar.tight { margin-bottom: 16px; }
.select.auto { width: auto; }
.check-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 14.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.check-pill input { width: 17px; height: 17px; accent-color: var(--teal); margin: 0; }
.check-pill:has(input:checked) { border-color: var(--teal-tint); background: var(--teal-soft); color: var(--teal-ink); }
.check-pill:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
.small { font-size: 13.5px; }

.minibar { display: flex; align-items: center; gap: 10px; }
.minibar i { display: block; height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; max-width: 72%; }
.minibar b { font-size: 14.5px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-row .chip b { margin-left: 4px; }

.watch h4 { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.watch-peaks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.watch-peaks div { padding: 12px 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.watch-peaks span { display: block; font-size: 13px; color: var(--muted); font-weight: 650; }
.watch-peaks b { font-size: 20px; letter-spacing: -.02em; }
.slot-list { display: grid; gap: 8px; }
.slot { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; }
.slot span { color: var(--muted); font-weight: 650; font-size: 14px; }
.heat-cell.best { box-shadow: inset 0 0 0 2px #0e1b2e; }

.opp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opp { display: grid; grid-template-columns: 26px 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); transition: box-shadow .2s, border-color .2s; }
.opp:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.opp.is-copied { opacity: .72; background: var(--surface-2); }
.opp-rank { font-weight: 800; color: var(--faint); text-align: center; }
.opp-main { min-width: 0; display: grid; gap: 5px; }
.opp-title { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.opp-title:hover { color: var(--blue-ink); }
.opp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 14px; }
.score-ring { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; }
.score-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.score-ring circle { fill: none; stroke-width: 5; }
.score-ring .bg { stroke: var(--surface-3); }
.score-ring .fg { stroke: var(--c); stroke-linecap: round; }
.score-ring b { position: relative; font-size: 14.5px; }
@media (max-width: 720px) { .opp { grid-template-columns: 40px minmax(0, 1fr); } .opp-rank { display: none; } .opp .link-cell { grid-column: 1 / -1; justify-content: flex-end; } }

/* Freelancer market */
.pulse { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); overflow: hidden; border-top: 5px solid var(--c); }
.pulse-item { padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.pulse-item:first-child { border-left: 0; }
.pulse-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 700; font-size: 14px; }
.pulse-label svg { color: var(--c); }
.pulse-item > b { display: block; font-size: 30px; letter-spacing: -.03em; line-height: 1.2; margin-top: 4px; }
.pulse-sub { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
@media (max-width: 1400px) { .pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pulse-item:nth-child(4) { border-left: 0; } .pulse-item:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 720px) { .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pulse-item { border-left: 0; border-top: 1px solid var(--line); } .pulse-item > b { font-size: 24px; } }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1280px) { .cols-3 { grid-template-columns: minmax(0, 1fr); } }
.meters { display: grid; gap: 14px; }
.meter, .rank-row { display: grid; grid-template-columns: minmax(120px, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14.5px; }
.meter-label, .rank-name { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink-2); min-width: 0; }
.meter-label svg { color: var(--c); flex-shrink: 0; }
.meter-track { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter-track i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--teal)); }
.rank-list { display: grid; gap: 12px; }
.rank-row b .muted { font-weight: 600; }
.rank-name .flag { border-radius: 4px; box-shadow: 0 0 0 1px var(--hair); }
.code-chip { font-size: 12px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); }
.split-bar { display: flex; height: 40px; border-radius: 14px; overflow: hidden; gap: 2px; background: var(--surface); }
.split-bar span { display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-size: 14px; white-space: nowrap; overflow: hidden; min-width: 0; }
.split-bar span b { font-weight: 800; }

/* All markets */
.share-strip { display: flex; height: 44px; border-radius: 16px; overflow: hidden; gap: 3px; margin-bottom: 20px; box-shadow: var(--shadow-1); background: var(--surface); }
.share-strip span { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14.5px; white-space: nowrap; overflow: hidden; min-width: 0; transition: flex .6s var(--ease); }
.pf-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
@media (max-width: 1100px) { .pf-cards { grid-template-columns: minmax(0, 1fr); } }
.pf-card { padding: 24px 26px; border-radius: 28px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); border-top: 5px solid var(--c); display: grid; gap: 16px; }
.pf-card-head { display: flex; align-items: center; gap: 14px; }
.pf-card-head h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.pf-card-head span { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.pf-card-head .grow { flex: 1; min-width: 0; }
.pf-big { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pf-big b { font-size: 44px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.pf-big > span { color: var(--muted); font-weight: 650; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.pf-stats div { padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.pf-stats dt { font-size: 13px; color: var(--muted); font-weight: 650; }
.pf-stats dd { margin: 2px 0 0; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
@media (max-width: 720px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Live Monitor + Bot Status platform cards */
.mon-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
@media (max-width: 1000px) { .mon-cards { grid-template-columns: minmax(0, 1fr); } }
.mon-card { padding: 20px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); border-left: 5px solid var(--c); display: grid; gap: 14px; }
.mon-head { display: flex; align-items: center; gap: 14px; }
.mon-head .grow { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mon-head h3 { margin: 0; font-size: 20px; }
.mon-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mon-stats div { padding: 8px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.mon-stats span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 650; white-space: nowrap; }
.mon-stats b { font-size: 20px; letter-spacing: -.02em; }
@media (max-width: 560px) { .mon-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mon-note { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.mon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mon-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.mon-row:hover { box-shadow: var(--shadow-1); }
.mon-row.held { background: var(--surface-2); }
.mon-row.is-copied { opacity: .72; }
.mon-main { min-width: 0; display: grid; gap: 5px; }
.mon-title { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.mon-title:hover { color: var(--blue-ink); }
.mon-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--ink-2); font-size: 14px; }
.mon-actions { display: flex; align-items: center; gap: 8px; }
.ver-icons { display: inline-flex; gap: 3px; }
.ver-icons span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; }
.ver-icons .ok { background: var(--green-soft); color: var(--green-ink); }
.ver-icons .no { background: var(--surface-3); color: var(--faint); }
@media (max-width: 720px) { .mon-row { grid-template-columns: auto minmax(0, 1fr); } .mon-actions { grid-column: 1 / -1; justify-content: flex-end; } }
.jt-flag { position: relative; display: inline-flex; flex-shrink: 0; }
.jt-flag .jt-site { position: absolute; right: -6px; bottom: -5px; border-radius: 5px; }

/* Bot settings */
.settings-tabs { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.settings-tab { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; font-weight: 750; font-size: 16px; color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-1); transition: all .2s var(--ease); }
.settings-tab:hover { color: var(--ink); }
.settings-tab.active { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft), var(--shadow-1); color: var(--ink); }
.settings-tab.active.pf-workana { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow-1); }
.settings-tab.active.pf-freelancer { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-soft), var(--shadow-1); }
.tab-state { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.tab-state.on { background: var(--green-soft); color: var(--green-ink); }
.tab-state.off { background: var(--slate-soft); color: var(--slate-ink); }
.dirty-dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--surface); }
.lang-pill[class*="tone-"].on { border-color: var(--c); background: var(--c-soft); color: var(--c-ink); }
.lang-pill[class*="tone-"].on .flag { background: var(--c); color: #fff; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.set-row.compact { padding: 8px 0 0; border-top: 0; align-self: end; }
.affix { display: flex; align-items: stretch; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); overflow: hidden; }
.affix > span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-weight: 700; }
.affix .input { border: 0; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; }
.code-countries { display: flex; flex-wrap: wrap; gap: 8px; }
.code-countries .flag { border-radius: 3px; }
.skill-picker { display: grid; gap: 14px; }
.skill-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; font-weight: 800; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.skill-pick { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--muted); }
.skill-pick.on { border-color: var(--coral-tint); background: var(--coral-soft); color: var(--coral-ink); }
.skill-pick input { accent-color: var(--coral); width: 16px; height: 16px; margin: 0; }
.content-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .content-grid { grid-template-columns: minmax(0, 1fr); } }
.toggle-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
@media (max-width: 560px) { .toggle-list { grid-template-columns: minmax(0, 1fr); } }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.msg-preview { display: grid; gap: 12px; min-width: 0; }
.preview-surface { border-radius: 20px; border: 1px solid var(--line); padding: 18px; max-height: 620px; overflow-y: auto; }
.preview-surface.slack { background: #fff; }
.preview-surface.telegram { background: #dbe8d2; background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1px); background-size: 14px 14px; }
.slack-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.slack-head .muted { font-size: 11px; font-weight: 800; padding: 1px 4px; border-radius: 4px; background: var(--surface-3); }
.slack-msg h4 { margin: 4px 0 8px; font-size: 18px; }
.slack-msg hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; }
.slack-msg .rich { margin: 8px 0; }
.tg-msg { max-width: 460px; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.rich { font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.rich code { font-family: var(--mono); font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); color: var(--rose-ink); }
.vault-section { margin-bottom: 26px; }
.vault-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; font-size: 18px; }
.vault-title .muted { font-size: 14px; font-weight: 600; }
.lang-pill .lang-code { font-size: 12.5px; font-weight: 800; line-height: 1.4; padding: 2px 7px; border-radius: 7px; background: var(--surface-3); color: var(--ink-2); }
.lang-pill.on .lang-code { background: var(--teal); color: #fff; }
.lang-pill[class*="tone-"].on .lang-code { background: var(--c); color: #fff; }
.grid-2 > .field, .grid-3 > .field { align-content: start; }
.set-row.boxed { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.rich .emoji-flag { display: inline-block; vertical-align: -2px; border-radius: 3px; box-shadow: 0 0 0 1px var(--hair); margin: 0 2px; }
.gauge-card > div { min-width: 0; overflow-wrap: anywhere; }

/* ==========================================================================
   Categories + "My view"
   ========================================================================== */
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.cat-badge i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.cat-ico { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; flex: none; color: #fff; background: var(--k); }
.cat-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px; }
.cat-picker.compact { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cat-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-2); user-select: none; }
.cat-opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--k, var(--blue)); }
.cat-opt svg { color: var(--k, var(--muted)); flex: none; }
.cat-opt.on { border-color: color-mix(in srgb, var(--k, var(--blue)) 45%, white); background: color-mix(in srgb, var(--k, var(--blue)) 9%, white); color: var(--ink); }
.cat-opt.all { font-weight: 750; }
.cat-opt.all.on { border-color: var(--blue-tint); background: var(--blue-soft); }
.view-chip-wrap { display: inline-flex; }
.view-chip { cursor: pointer; border: 1px solid var(--hair); font: inherit; max-width: 340px; }
.view-chip .vc-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.view-chip.active { background: var(--blue-soft); color: var(--blue-ink); border-color: var(--blue-tint); }
@media (max-width: 720px) { .view-chip .vc-text { display: none; } }
.view-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -8px 0 22px; padding: 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); font-size: 14.5px; }
.view-bar > svg { color: var(--muted); }
.view-bar.active { border-color: var(--blue-tint); background: color-mix(in srgb, var(--blue-soft) 60%, white); }
.view-bar.active > svg { color: var(--blue); }
.view-bar .vb-label { font-weight: 700; }
.view-bar .vb-chips { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.view-bar .grow { flex: 1; }
.view-editor { display: grid; gap: 20px; }
.apply-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.apply-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.apply-list svg { color: var(--pink); margin-top: 3px; flex: none; }
.table tr.clickable { cursor: pointer; }
.table tr.dim td { opacity: .5; }
.table tr.focused td { background: var(--blue-soft) !important; }
.cat-table td { vertical-align: middle; }

/* Bot settings: category scope + channel routing */
.scope-list { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--surface-2); }
.scope-head { display: flex; gap: 16px; justify-content: flex-end; padding: 0 4px 4px; font-size: 14px; }
.scope-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scope-row label, .scope-group-head { display: flex; align-items: center; gap: 10px; font-weight: 650; cursor: pointer; }
.scope-row:not(.on) { opacity: .6; }
.scope-row input, .scope-group-head input, .scope-sub input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }
.star-btn { border: 1px solid var(--line); background: var(--surface); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--faint); }
.star-btn.on { color: #b07800; background: var(--amber-soft); border-color: var(--amber-tint); }
.star-btn.on svg { fill: currentColor; }
.star-btn:disabled { opacity: .4; cursor: not-allowed; }
.scope-group { padding: 8px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.scope-subs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px 34px; }
.scope-sub { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); }
.scope-sub.on { color: var(--ink); background: var(--coral-soft); border-color: var(--coral-tint); }
.scope-sub .faint { font-size: 12px; }
.lang-pill.implied { border-style: dashed; }
.skill-hits { display: grid; gap: 4px; margin-top: 8px; max-height: 300px; overflow-y: auto; }
.skill-hit { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; }
.skill-hit:hover { background: var(--coral-soft); }
.skill-hit span { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.route { padding: 6px 0 12px; border-top: 1px solid var(--line); }
.route:first-of-type { border-top: 0; }
.route.off .set-row { opacity: .75; }
.route-body { display: grid; gap: 12px; padding: 4px 0 0 56px; }
@media (max-width: 720px) { .route-body { padding-left: 0; } }

/* ==========================================================================
   Team, activity log, roles
   ========================================================================== */
.settings-tab.active.tab-sky { border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft), var(--shadow-1); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 720px) { .member-grid { grid-template-columns: 1fr; } }
.member-card { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: 26px 12px 26px 12px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); height: 100%; box-sizing: border-box; }
.member-card::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c); opacity: .8; }
.member-card.revoked { opacity: .6; filter: grayscale(.6); }
.mc-head { display: flex; align-items: center; gap: 14px; }
.mc-av { position: relative; flex: none; }
.presence { position: absolute; right: 0; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--slate-tint); border: 3px solid var(--surface); }
.presence.on { background: var(--green); box-shadow: 0 0 0 3px rgba(43,154,72,.18); }
.mc-name { display: flex; align-items: center; font-size: 17.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-focus { display: grid; gap: 6px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.mc-focus .hint { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mc-stats > div { padding: 10px; border-radius: 14px; background: var(--c-soft); text-align: center; }
.mc-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--c-ink); letter-spacing: -.02em; }
.mc-stats span { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.mc-last { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-last svg { flex: none; color: var(--muted); }
.mc-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-kinds .chip { font-size: 12.5px; padding: 2px 9px; }

.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
@media (max-width: 1100px) { .role-cards { grid-template-columns: 1fr; } }
.role-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.role-card.mine { border-color: var(--c-tint); box-shadow: 0 0 0 3px var(--c-soft), var(--shadow-1); }
.role-card b { display: flex; align-items: center; font-size: 17px; }
.role-card p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.perm-table th.c, .perm-table td.c { text-align: center; width: 150px; }
.perm-table tr.perm-group td { background: var(--surface-2); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 12px; }
.perm-table tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--sky); }
.perm-table td:first-child { font-weight: 600; color: var(--ink-2); }
.perm-table tr.mine td:first-child { color: var(--ink); font-weight: 700; }
.perm-yes { display: inline-flex; align-items: center; gap: 4px; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green-soft); color: var(--green-ink); }
.perm-yes.partial { width: auto; padding: 0 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber-ink); }
.perm-yes small { font-size: 11.5px; font-weight: 750; }
.perm-no { color: var(--faint); font-weight: 700; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rule { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.rule > svg { flex: none; color: var(--sky-ink); margin-top: 2px; }
.rule b { font-size: 15px; }
.rule p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.filter-panel { padding: 16px 18px; margin-bottom: 20px; }
.act-filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.act-f { display: grid; gap: 6px; min-width: 170px; }
.act-f > span { font-size: 12.5px; font-weight: 750; color: var(--muted); }
.act-f.grow { flex: 1; min-width: 220px; }
.input.date-in { width: auto; min-height: 42px; padding: 7px 10px; font-size: 14.5px; }
.act-days { display: grid; gap: 10px; }
.act-day .day-sep { padding: 6px 4px; }
.act-day .day-sep span { color: var(--ink-2); font-size: 13px; }
.act-day .day-sep i { display: none; }
.act-list { list-style: none; margin: 0; padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-1); }
.act-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.act-item + .act-item { border-top: 1px solid var(--line); border-radius: 0; }
.act-item:hover { background: var(--surface-2); }
.act-item time { flex: none; width: 46px; font: 700 13px var(--mono); color: var(--muted); }
.act-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; font-weight: 650; }
.act-who { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: var(--ink); cursor: pointer; }
.act-who:hover { color: var(--sky-ink); text-decoration: underline; }
.act-detail { font-size: 13.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toggle-row > div { display: grid; gap: 2px; }
.toggle-row > div span { font-size: 13.5px; font-weight: 500; color: var(--muted); }

/* ==========================================================================
   Jobs Sheet (spreadsheet view)
   ========================================================================== */
.opt-chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--ob); color: var(--oi); }
.opt-green { --ob: #d4efdb; --oi: #155d2a; }
.opt-blue { --ob: #d6e5fe; --oi: #1450ad; }
.opt-sky { --ob: #cdeefb; --oi: #065a80; }
.opt-violet { --ob: #e6defc; --oi: #4b2fa3; }
.opt-pink { --ob: #fbdbe8; --oi: #96244f; }
.opt-red { --ob: #fdd4d9; --oi: #9b1c33; }
.opt-orange { --ob: #ffdcc8; --oi: #9a3a0e; }
.opt-amber { --ob: #ffeaa9; --oi: #6d4a00; }
.opt-teal { --ob: #c9efe2; --oi: #0a604a; }
.opt-gray { --ob: #e3e8ef; --oi: #334058; }

.gs-frame { display: flex; flex-direction: column; border-radius: 22px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-2); overflow: hidden; }
.gs-frame.full { position: fixed; inset: 10px; z-index: 60; border-radius: 18px; box-shadow: 0 0 0 12px rgba(14, 27, 46, .38), var(--shadow-3); }
body.gs-noscroll { overflow: hidden; }
.gs-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.gs-day { display: flex; align-items: center; gap: 12px; min-width: 190px; }
.gs-day b { display: block; font-size: 17px; font-weight: 800; }
.gs-day span { display: block; font-size: 13px; color: var(--muted); }
.gs-search { flex: 1; min-width: 220px; max-width: 420px; }
.gs-search .input { min-height: 42px; padding-top: 8px; padding-bottom: 8px; font-size: 15px; }
.gs-tools { display: flex; gap: 6px; margin-left: auto; }
.gs-tools .ibtn.on { background: var(--teal-soft); border-color: var(--teal-tint); color: var(--teal-ink); }
.gs-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.gs-filters .check-pill { padding: 6px 11px; font-size: 13.5px; border-radius: 11px; }
.gs-filters .check-pill.on { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.select.sm { width: auto; min-height: 36px; padding: 5px 34px 5px 11px; font-size: 13.5px; border-radius: 11px; background-position: right 8px center; max-width: 230px; }
.select.sm.on { border-color: var(--teal-tint); background-color: var(--teal-soft); color: var(--teal-ink); font-weight: 700; }
.gs-fbtn { min-height: 36px; padding: 0 11px; font-size: 13.5px; border-radius: 11px; gap: 6px; }
.gs-fbtn.on { border-color: var(--teal-tint); background: var(--teal-soft); color: var(--teal-ink); }
.gs-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 16px; border-bottom: 1px solid var(--line); }
.gs-fchip { gap: 4px; }
.gs-assigned { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); }
.gs-assign-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.gs-assign-btn b { font-size: 13px; color: var(--ink); }
.gs-panel { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.gs-panel-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.gs-panel-head .ibtn { margin-left: auto; }
.gs-col-list { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-col-item { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 650; cursor: pointer; color: var(--muted); }
.gs-col-item.on { color: var(--ink); border-color: var(--teal-tint); }
.gs-col-item input { accent-color: var(--teal); margin: 0; }
.gs-tier-list { display: grid; gap: 8px; }
.gs-tier-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gs-tier-name { display: inline-flex; align-items: center; gap: 8px; width: 130px; font-weight: 700; font-size: 14px; }
.gs-tier-name i, .gs-tier-opt i { width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line-2); flex: none; }
.gs-tier-opt { display: inline-flex; align-items: center; gap: 8px; }
.gs-swatches { display: flex; gap: 6px; }
.gs-swatch { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line-2); cursor: pointer; padding: 0; }
.gs-swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--teal); }
.gs-swatch.none { background-image: linear-gradient(135deg, transparent 45%, var(--rose) 45%, var(--rose) 55%, transparent 55%) !important; }

.gs-scroll { position: relative; overflow: auto; max-height: calc(100vh - 290px); min-height: 320px; overscroll-behavior: contain; }
.gs-frame.full .gs-scroll { max-height: none; flex: 1; }
.gs-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.gs-table th, .gs-table td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0 8px; height: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; box-sizing: border-box; }
.compact .gs-table td { height: 32px; font-size: 13.5px; }
.tall .gs-table td { height: 52px; }
.wrap .gs-table td { white-space: normal; height: auto; padding-top: 7px; padding-bottom: 7px; vertical-align: top; }
.wrap .gs-title, .wrap .gs-budget { white-space: normal; }
.wrap .gs-skills { flex-wrap: wrap; white-space: normal; }
.gs-table thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-3); font-size: 13px; font-weight: 750; color: var(--ink-2); text-align: left; height: 38px; padding: 0; user-select: none; }
.gs-table thead th:first-child, .gs-table tbody td:first-child { position: sticky; left: 0; z-index: 2; }
.gs-table thead th:first-child { z-index: 4; }
.gs-table tbody td { background: var(--row, var(--surface)); }
.gs-table tbody tr:hover td { background: color-mix(in srgb, var(--row, var(--surface)) 82%, #9cc3ff); }
.gs-table tbody tr.gs-fresh td:first-child { box-shadow: inset 4px 0 0 var(--blue); }
.gs-table tbody tr.gs-fresh td { animation: gsFresh 2.4s var(--ease) 1; }
@keyframes gsFresh { from { background: var(--blue-soft); } }
.gs-th { position: relative; }
.gs-th.dragging { opacity: .45; }
.gs-th.drop-ok:hover { box-shadow: inset 3px 0 0 var(--teal); }
.gs-th-in { position: relative; display: flex; align-items: center; height: 38px; }
.gs-th-label { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; height: 100%; padding: 0 8px; border: 0; background: none; font: inherit; font-weight: 750; color: inherit; cursor: pointer; text-align: left; overflow: hidden; }
.gs-th-label span { overflow: hidden; text-overflow: ellipsis; }
.gs-th-label svg { flex: none; color: var(--muted); }
.gs-th-menu { position: absolute; right: 6px; top: 5px; width: 24px; height: 28px; border: 0; background: var(--surface-3); border-radius: 7px; color: var(--muted); cursor: pointer; display: grid; place-items: center; opacity: 0; box-shadow: -8px 0 8px var(--surface-3); }
.gs-th:hover .gs-th-menu, .gs-th-menu:focus-visible { opacity: 1; }
.gs-th-menu:hover { background: var(--surface); color: var(--ink); }
.gs-resize { position: absolute; right: -4px; top: 0; bottom: 0; width: 9px; cursor: col-resize; z-index: 5; touch-action: none; }
.gs-resize::after { content: ''; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: transparent; }
.gs-th:hover .gs-resize::after, .gs-resize:active::after { background: var(--teal); }
.gs-time { font: 700 13px var(--mono); color: var(--ink-2); }
.gs-title { color: var(--ink); font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; }
.gs-title:hover { color: var(--blue-ink); text-decoration: underline; }
.gs-copied .gs-title { color: var(--muted); }
.gs-pay { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 650; color: var(--muted); }
.gs-pay.ok { color: var(--green-ink); }
.gs-country { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.gs-country span { overflow: hidden; text-overflow: ellipsis; }
.gs-rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.gs-rating svg { color: #c88a00; fill: #f3c24a; }
.gs-rating small { font-weight: 600; color: var(--muted); }
.gs-budget { font-weight: 650; }
.gs-skills { display: flex; gap: 4px; overflow: hidden; }
.gs-skills i { font-style: normal; padding: 1px 7px; border-radius: 7px; background: rgba(255,255,255,.65); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.gs-url { display: inline-flex; align-items: center; gap: 2px; }
.gs-url .ibtn.sm { width: 30px; height: 30px; }
.gs-empty { color: var(--faint); }
.gs-dd { display: flex; align-items: center; gap: 4px; height: 100%; min-height: 28px; border-radius: 8px; }
.gs-dd.editable { cursor: pointer; }
.gs-dd .gs-caret { margin-left: auto; color: var(--faint); opacity: 0; flex: none; }
.gs-dd.editable:hover .gs-caret { opacity: 1; }
.gs-text { min-height: 26px; line-height: 26px; overflow: hidden; text-overflow: ellipsis; border-radius: 6px; }
.wrap .gs-text { line-height: 1.45; white-space: pre-wrap; }
.gs-text.editable { cursor: text; }
.gs-text.editable:empty:hover::before { content: 'Type…'; color: var(--faint); }
.gs-input { width: 100%; height: 30px; border: 2px solid var(--blue); border-radius: 6px; padding: 0 6px; font: inherit; background: var(--surface); outline: none; box-sizing: border-box; }
.gs-check { display: grid; place-items: center; height: 100%; cursor: pointer; }
.gs-check input { width: 18px; height: 18px; accent-color: var(--teal); }
.gs-none { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px 16px; color: var(--muted); font-weight: 650; }
.gs-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--surface-3); scrollbar-width: thin; }
.gs-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; border: 1px solid transparent; background: none; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.gs-tab span { padding: 0 7px; border-radius: 999px; background: var(--surface); font-size: 12px; color: var(--muted); }
.gs-tab:hover { background: var(--surface); }
.gs-tab.on { background: var(--surface); border-color: var(--teal-tint); color: var(--teal-ink); box-shadow: 0 -2px 0 var(--teal) inset, var(--shadow-1); }
.gs-tab.today:not(.on) { color: var(--teal-ink); }

.gs-pop { position: fixed; z-index: 90; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow-3); animation: pop .16s var(--ease) both; box-sizing: border-box; }
.gs-pop-search { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--faint); }
.gs-pop-search input { flex: 1; border: 0; outline: none; font: inherit; font-size: 14.5px; background: none; min-width: 0; }
.gs-opts { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; }
.gs-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border: 0; background: none; border-radius: 9px; cursor: pointer; font: inherit; font-size: 14px; text-align: left; color: var(--ink-2); }
.gs-opt:hover, .gs-opt.on { background: var(--surface-2); }
.gs-opt.on svg { color: var(--teal); }
.gs-opt.check { justify-content: flex-start; font-weight: 600; }
.gs-opt.check input { accent-color: var(--teal); margin: 0; }
.gs-pop-foot { display: flex; align-items: center; gap: 8px; padding: 6px 4px 2px; margin-top: 4px; border-top: 1px solid var(--line); }
.gs-pop-foot .linkish { display: inline-flex; align-items: center; gap: 5px; }
.gs-menu { padding: 0; border: 0; background: none; box-shadow: none; }
.menu.static { position: static; animation: none; }

.opt-editor { display: grid; gap: 8px; }
.opt-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.opt-row > .opt-chip { width: 110px; justify-content: center; }
.opt-row .input.sm { flex: 1; min-width: 140px; width: auto; min-height: 36px; padding: 6px 10px; font-size: 14.5px; border-radius: 10px; }
.opt-row.add { background: none; border-style: dashed; }
.opt-colors { display: flex; gap: 4px; }
.opt-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); background: var(--ob); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; padding: 0; }
.opt-dot.on { box-shadow: 0 0 0 2px var(--oi); }
@media (max-width: 720px) {
  .gs-tools { margin-left: 0; }
  .gs-scroll { max-height: calc(100vh - 220px); }
  .opt-row > .opt-chip { width: auto; }
}
