/* ═══════════════════════════════════════════════════════════════════
   SEIF ELLEATHY STUDIOS — ELEGANT OS  (v71)
   A separate front-end from Power/JARVIS: frosted glass on a soft
   blurred world, floating dock, widgets, quiet motion.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Inter', sans-serif;

  /* Brand */
  --navy: #071929;
  --cyan: #31E4FF;
  --sky: #5BC6E8;

  /* Light world */
  --world: #E9EDF5;
  --blob-1: rgba(91, 198, 232, .55);   /* sky */
  --blob-2: rgba(170, 160, 245, .50);  /* lavender */
  --blob-3: rgba(176, 232, 212, .55);  /* mint */
  --blob-4: rgba(250, 214, 190, .55);  /* peach */

  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-soft: rgba(255, 255, 255, .34);
  --glass-line: rgba(255, 255, 255, .78);
  --glass-edge: rgba(15, 23, 42, .06);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 18px 50px -18px rgba(30, 41, 80, .22), 0 2px 8px rgba(30, 41, 80, .05);
  --blur: blur(28px) saturate(170%);

  --ink: #0B1220;
  --ink-2: #3A4458;
  --muted: #7A8499;
  --faint: rgba(11, 18, 32, .08);
  --accent: #0E9FC6;
  --accent-soft: rgba(49, 228, 255, .16);

  --pill-dark: #0B0F19;
  --pill-dark-ink: #fff;

  --ok: #16A36A;   --ok-soft: rgba(22, 163, 106, .14);
  --warn: #D98A06; --warn-soft: rgba(217, 138, 6, .15);
  --bad: #E0475E;  --bad-soft: rgba(224, 71, 94, .13);
  --info: #4F6BED; --info-soft: rgba(79, 107, 237, .14);

  /* Pastel module tints (reference: soft tinted glass tiles) */
  --t-mint: linear-gradient(150deg, rgba(196, 240, 220, .75), rgba(255, 255, 255, .35));
  --t-sky: linear-gradient(150deg, rgba(190, 230, 248, .80), rgba(255, 255, 255, .35));
  --t-lav: linear-gradient(150deg, rgba(222, 216, 252, .80), rgba(255, 255, 255, .35));
  --t-peach: linear-gradient(150deg, rgba(253, 225, 200, .85), rgba(255, 255, 255, .35));
  --t-rose: linear-gradient(150deg, rgba(252, 214, 226, .80), rgba(255, 255, 255, .35));
  --t-sand: linear-gradient(150deg, rgba(245, 236, 210, .85), rgba(255, 255, 255, .35));

  --hero: linear-gradient(135deg, #3B5BDB 0%, #5B8DEF 45%, #8FD3F4 100%);

  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --dock-w: 72px;
}

[data-theme="dark"] {
  --world: #0A101C;
  --blob-1: rgba(49, 228, 255, .20);
  --blob-2: rgba(110, 92, 230, .26);
  --blob-3: rgba(30, 140, 150, .20);
  --blob-4: rgba(40, 70, 160, .30);

  --glass: rgba(24, 32, 52, .55);
  --glass-strong: rgba(30, 40, 64, .78);
  --glass-soft: rgba(24, 32, 52, .35);
  --glass-line: rgba(255, 255, 255, .10);
  --glass-edge: rgba(255, 255, 255, .06);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px -20px rgba(0, 0, 0, .65);

  --ink: #EEF3FB;
  --ink-2: #C3CCDD;
  --muted: #8C97AD;
  --faint: rgba(255, 255, 255, .08);
  --accent: #31E4FF;
  --accent-soft: rgba(49, 228, 255, .14);

  --pill-dark: #F2F5FA;
  --pill-dark-ink: #0B0F19;

  --t-mint: linear-gradient(150deg, rgba(40, 120, 100, .45), rgba(24, 32, 52, .3));
  --t-sky: linear-gradient(150deg, rgba(30, 110, 150, .45), rgba(24, 32, 52, .3));
  --t-lav: linear-gradient(150deg, rgba(90, 80, 170, .45), rgba(24, 32, 52, .3));
  --t-peach: linear-gradient(150deg, rgba(160, 100, 60, .40), rgba(24, 32, 52, .3));
  --t-rose: linear-gradient(150deg, rgba(160, 70, 100, .40), rgba(24, 32, 52, .3));
  --t-sand: linear-gradient(150deg, rgba(140, 120, 70, .40), rgba(24, 32, 52, .3));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--world);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: hidden;
  transition: background .6s var(--ease), color .4s var(--ease);
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--accent-soft); }

/* ── The world behind the glass ─────────────────────────────── */
.os-world { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.os-world i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .95; animation: drift 26s var(--ease) infinite alternate; }
.os-world i:nth-child(1) { width: 62vw; height: 62vw; left: -18vw; top: -22vw; background: var(--blob-1); }
.os-world i:nth-child(2) { width: 52vw; height: 52vw; right: -14vw; top: -10vw; background: var(--blob-2); animation-delay: -6s; }
.os-world i:nth-child(3) { width: 48vw; height: 48vw; left: 20vw; bottom: -26vw; background: var(--blob-3); animation-delay: -12s; }
.os-world i:nth-child(4) { width: 38vw; height: 38vw; right: 4vw; bottom: -14vw; background: var(--blob-4); animation-delay: -18s; }
.os-world .os-pattern { position: absolute; inset: -10%; opacity: .012; background-image: url('../brand/ses-mark.svg'); background-size: 120px auto; background-repeat: space; transform: rotate(-8deg) scale(1.3); filter: none; border-radius: 0; animation: none; }
[data-theme="dark"] .os-world .os-pattern { opacity: .018; filter: invert(1); }
@keyframes drift { to { transform: translate3d(4vw, 3vw, 0) scale(1.08); } }

/* ── Glass primitives ───────────────────────────────────────── */
.glass {
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-radius: var(--r-xl);
}
.glass-strong { background: var(--glass-strong); }
.glass-soft { background: var(--glass-soft); }
.well { background: color-mix(in srgb, var(--glass-strong) 70%, transparent); border: 1px solid var(--glass-edge); border-radius: var(--r-md); }

/* ── Shell layout ───────────────────────────────────────────── */
.os { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: calc(var(--dock-w) + 36px) 1fr; }
.os-main { padding: 22px 28px 120px 0; min-width: 0; }

/* Dock (floating vertical pill) */
.dock { position: sticky; top: 22px; height: calc(100vh - 44px); margin: 22px 0 22px 22px; width: var(--dock-w); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; border-radius: 36px; z-index: 20; }
.dock-logo { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 16px; margin-bottom: 8px; color: var(--ink); }
.dock-logo img { width: 38px; }
[data-theme="dark"] .dock-logo img { filter: invert(1) brightness(1.4); }
.dock-sep { width: 28px; height: 1px; background: var(--faint); margin: 6px 0; }
.dock-btn { position: relative; width: 48px; height: 48px; border-radius: 16px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); cursor: pointer; text-decoration: none; transition: background .25s var(--ease), color .25s, transform .25s var(--spring); }
.dock-btn svg { width: 22px; height: 22px; }
.dock-btn:hover { background: var(--glass-strong); transform: scale(1.06); }
.dock-btn.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); box-shadow: 0 8px 20px -8px rgba(11, 15, 25, .55); }
.dock-btn .tip { position: absolute; left: 60px; white-space: nowrap; padding: 7px 12px; border-radius: 10px; font-size: 13px; font-weight: 500; background: var(--pill-dark); color: var(--pill-dark-ink); opacity: 0; transform: translateX(-6px); pointer-events: none; transition: .2s var(--ease); }
.dock-btn:hover .tip { opacity: 1; transform: none; }
.dock-spacer { flex: 1; }
.dock-avatar { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--glass-line); display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5B8DEF, #31E4FF); cursor: pointer; }

/* Top bar */
.topbar { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 22px; }
.greet { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; }
.greet .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5B8DEF, #31E4FF); }
.greet b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.askbar { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 10px 0 18px; border-radius: 999px; max-width: 620px; width: 100%; justify-self: center; cursor: text; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.askbar:hover { transform: translateY(-1px); }
.askbar .orb { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #8FD3F4 35%, #5B5FEF 70%, #2A2F8F); box-shadow: 0 0 18px rgba(91, 141, 239, .55); flex: none; animation: orb 4s ease-in-out infinite; }
@keyframes orb { 50% { transform: scale(1.12); box-shadow: 0 0 26px rgba(49, 228, 255, .6); } }
.askbar input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--ink); min-width: 0; }
.askbar input::placeholder { color: var(--muted); }
.kbd { font-size: 12px; color: var(--muted); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--faint); }
.top-right { display: flex; gap: 10px; align-items: center; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .25s var(--ease), color .25s; }
.seg button svg { width: 16px; height: 16px; }
.seg button.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); box-shadow: 0 6px 14px -6px rgba(15, 23, 42, .45); }
.icon-btn { width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); position: relative; transition: transform .25s var(--spring); }
.icon-btn:hover { transform: scale(1.06); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .dot { position: absolute; top: 12px; right: 13px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--glass-strong); }
.power-btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); transition: transform .25s var(--spring); }
.power-btn:hover { transform: translateY(-1px); }
.power-btn i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--cyan); box-shadow: 0 0 14px rgba(49, 228, 255, .45); }
.power-btn i svg { width: 15px; height: 15px; }

/* ── Page frame ─────────────────────────────────────────────── */
.page { position: relative; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 4px 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; letter-spacing: -.03em; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.grid { display: grid; gap: 18px; }
.g-home { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
@media (max-width: 1180px) { .span-3 { grid-column: span 6; } .span-4, .span-5 { grid-column: span 6; } .span-7, .span-8 { grid-column: span 12; } }
@media (max-width: 760px) { .g-home > * { grid-column: span 12 !important; } }

.card { padding: 22px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-head small { color: var(--muted); font-size: 13px; }

/* ── Controls ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: transform .2s var(--spring), box-shadow .25s var(--ease), background .25s; white-space: nowrap; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-dark { background: var(--pill-dark); color: var(--pill-dark-ink); border-color: transparent; }
.btn-ghost { background: transparent; border-color: var(--faint); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--glass-strong); color: var(--ink-2); text-transform: capitalize; white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.bad { background: var(--bad-soft); color: var(--bad); } .chip.info { background: var(--info-soft); color: var(--info); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pills { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; flex-wrap: wrap; }
.pills button { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: .25s var(--ease); }
.pills button.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px; min-width: 240px; }
.search svg { width: 18px; height: 18px; color: var(--muted); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: 14px; min-width: 0; }

.field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font-weight: 400; font-size: 14px; outline: none; transition: box-shadow .2s, border-color .2s; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; background: rgba(120, 130, 150, .35); cursor: pointer; transition: background .3s var(--ease); flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--spring); }
.switch.is-on { background: #34C759; }
.switch.is-on::after { transform: translateX(20px); }

/* ── Home widgets ───────────────────────────────────────────── */
.clock { text-align: center; padding: 10px 0 26px; }
.clock .time { font-size: clamp(64px, 9vw, 112px); font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.clock .time small { font-size: .28em; font-weight: 500; letter-spacing: 0; margin-left: 8px; color: var(--ink-2); }
.clock .date { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.clock .wordmark { margin-top: 14px; display: inline-flex; flex-direction: column; gap: 4px; align-items: center; }
.clock .wordmark b { font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .14em; }
.clock .wordmark span { font-size: 10px; letter-spacing: .38em; font-weight: 300; color: var(--muted); }

.bubbles { display: flex; align-items: center; justify-content: space-between; gap: 0; margin: 4px 0; }
.bubble { text-decoration: none; color: inherit; flex: 1; aspect-ratio: 1; max-width: 150px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--glass-strong); border: 1px solid var(--glass-line); margin-left: -14px; position: relative; transition: transform .35s var(--spring); cursor: pointer; }
.bubble:first-child { margin-left: 0; }
.bubble:hover { transform: translateY(-4px) scale(1.03); z-index: 2; }
.bubble strong { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; }
.bubble small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.bubble.hot { background: radial-gradient(circle at 35% 30%, #A5B4FC, #6366F1 55%, #4338CA); color: #fff; border-color: transparent; box-shadow: 0 18px 40px -12px rgba(79, 70, 229, .6); z-index: 1; }
.bubble.hot small { color: rgba(255, 255, 255, .8); }

.hero-card { background: var(--hero); color: #fff; border: 0; overflow: hidden; position: relative; }
.hero-card .card-head h3, .hero-card .card-head small { color: #fff; }
.hero-card .big { font-size: 46px; font-weight: 600; letter-spacing: -.03em; }
.hero-card .sub { opacity: .85; font-size: 14px; }
.hero-card svg.spark { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 55%; }

.todo { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-edge); transition: transform .2s var(--ease), opacity .3s; cursor: pointer; }
.todo li:hover { transform: translateX(3px); }
.todo .tick { cursor: pointer; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--muted); flex: none; display: grid; place-items: center; transition: .25s var(--spring); }
.todo .tick:hover { border-color: var(--info); transform: scale(1.12); }
.todo li.done .tick { background: var(--info); border-color: var(--info); }
.todo li.done .tick::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.todo li.done .t { text-decoration: line-through; color: var(--muted); }
.todo .t { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo .m { font-size: 12px; color: var(--muted); white-space: nowrap; }
.progress { height: 6px; border-radius: 999px; background: var(--faint); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--info); transition: width 1s var(--ease); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: grid; justify-items: center; gap: 8px; padding: 16px 6px 12px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-edge); font-size: 12px; font-weight: 500; transition: transform .25s var(--spring), box-shadow .25s; cursor: pointer; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -16px rgba(15, 23, 42, .45); }
.tile .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
[data-theme="dark"] .tile .ic { background: rgba(255, 255, 255, .08); }
.tile .ic svg { width: 22px; height: 22px; }

.rows { display: grid; gap: 6px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 16px; transition: background .2s; cursor: pointer; }
.row:hover { background: var(--glass-strong); }
.row .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.row .main { min-width: 0; }
.row .main b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .main small { color: var(--muted); font-size: 12px; }
.row .end { text-align: right; font-size: 14px; font-weight: 600; }
.row .end small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }

.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .c strong { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.ring .c small { color: var(--muted); font-size: 12px; }
.legend { display: grid; gap: 9px; font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.legend b { margin-left: auto; color: var(--ink); }

.quote { font-size: 17px; line-height: 1.5; font-weight: 500; letter-spacing: -.01em; }
.quote::before { content: '\201C'; display: block; font-size: 40px; line-height: .6; color: var(--muted); margin-bottom: 8px; }
.quote small { display: block; margin-top: 10px; color: var(--muted); font-weight: 400; font-size: 13px; }

/* ── Client cards (tinted glass like the reference grid) ───── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.ccard { position: relative; padding: 22px; border-radius: var(--r-xl); cursor: pointer; transition: transform .35s var(--spring), box-shadow .35s var(--ease); overflow: hidden; min-height: 210px; display: flex; flex-direction: column; }
.ccard:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -28px rgba(30, 41, 80, .45); }
.ccard .top { display: flex; align-items: center; gap: 10px; }
.ccard .logo { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 700; font-size: 20px; color: #fff; box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35); overflow: hidden; }
.ccard .logo img { width: 100%; height: 100%; object-fit: cover; }
.ccard .mini { width: 52px; height: 52px; border-radius: 16px; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); color: var(--ink-2); }
[data-theme="dark"] .ccard .mini { background: rgba(255, 255, 255, .08); }
.ccard .mini svg { width: 22px; height: 22px; }
.ccard .fav { margin-left: auto; color: var(--muted); }
.ccard h3 { margin: 18px 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard p { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 1.5; flex: 1; }
.ccard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 8px; }
.tint-mint { background: var(--t-mint); } .tint-sky { background: var(--t-sky); } .tint-lav { background: var(--t-lav); } .tint-peach { background: var(--t-peach); } .tint-rose { background: var(--t-rose); } .tint-sand { background: var(--t-sand); }

/* ── Tasks board ────────────────────────────────────────────── */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.lane { padding: 14px; border-radius: var(--r-lg); min-height: 380px; display: flex; flex-direction: column; gap: 10px; transition: background .25s, box-shadow .25s; }
.lane.is-over { box-shadow: 0 0 0 2px var(--accent) inset; }
.lane-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 6px; font-weight: 600; font-size: 14px; }
.lane-head span { color: var(--muted); font-weight: 500; font-size: 13px; }
.tcard { padding: 14px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-edge); cursor: grab; transition: transform .25s var(--spring), box-shadow .25s, opacity .2s; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(15, 23, 42, .5); }
.tcard.dragging { opacity: .45; transform: rotate(-2deg) scale(.98); }
.tcard b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }
.tcard .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.prio { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.prio.urgent { background: var(--bad); } .prio.high { background: var(--warn); } .prio.medium { background: var(--info); } .prio.low { background: var(--muted); }

/* ── Calendar ───────────────────────────────────────────────── */
.cal { display: grid; grid-template-columns: 1fr 340px; gap: 18px; }
@media (max-width: 1000px) { .cal { grid-template-columns: 1fr; } }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .08em; }
.cal-day { min-height: 92px; padding: 8px; border-radius: 16px; background: var(--glass-soft); border: 1px solid transparent; cursor: pointer; transition: background .2s, transform .2s var(--spring), border-color .2s; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day:hover { background: var(--glass-strong); transform: translateY(-1px); }
.cal-day.out { opacity: .4; }
.cal-day.today .n { background: var(--pill-dark); color: var(--pill-dark-ink); }
.cal-day.sel { border-color: var(--accent); background: var(--glass-strong); }
.cal-day .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.cal-day .ev { font-size: 11px; padding: 3px 7px; border-radius: 8px; background: var(--info-soft); color: var(--info); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-day .ev.task { background: var(--warn-soft); color: var(--warn); }
@media (max-width: 640px) { .cal-day { min-height: 56px; } .cal-day .ev { display: none; } .cal-day.has::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--info); margin: 2px auto 0; } }

/* ── Finance ────────────────────────────────────────────────── */
.fin { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
@media (max-width: 1100px) { .fin { grid-template-columns: 1fr; } }
.balance { font-size: 44px; font-weight: 600; letter-spacing: -.03em; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: grid; gap: 8px; justify-items: center; height: 100%; align-content: end; font-size: 11px; color: var(--muted); }
.bars .b i { width: 100%; max-width: 54px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); transition: height 1s var(--ease); }
.bars .b.on i { background: linear-gradient(180deg, #8FD3F4, #5B5FEF); border: 0; box-shadow: 0 10px 24px -10px rgba(91, 95, 239, .7); }

/* ── Sheet (side panel) & modal ─────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(15, 23, 42, .18); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.scrim.is-open { opacity: 1; }
.sheet { position: fixed; z-index: 90; top: 16px; right: 16px; bottom: 16px; width: min(560px, calc(100vw - 32px)); padding: 26px; overflow-y: auto; transform: translateX(110%); transition: transform .5s var(--ease); background: var(--glass-strong); }
.sheet.is-open { transform: none; }
.modal { position: fixed; z-index: 90; left: 50%; top: 50%; width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .4s var(--spring), opacity .3s; background: var(--glass-strong); }
.modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.sheet-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.sheet-head h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.sheet-head p { margin: 4px 0 0; color: var(--muted); }
.sheet-close { margin-left: auto; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; margin: 4px 0 18px; padding: 4px; border-radius: 999px; background: var(--glass-soft); width: fit-content; }
.tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.tabs button.is-on { background: var(--glass-strong); color: var(--ink); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }

/* ── Command palette ────────────────────────────────────────── */
.palette { position: fixed; z-index: 95; left: 50%; top: 14vh; width: min(640px, calc(100vw - 32px)); transform: translateX(-50%) scale(.97); opacity: 0; pointer-events: none; transition: .3s var(--spring); padding: 10px; background: var(--glass-strong); }
.palette.is-open { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
.palette input { width: 100%; height: 54px; border: 0; outline: 0; background: transparent; font-size: 18px; padding: 0 14px; }
.palette ul { list-style: none; margin: 0; padding: 6px 0 0; border-top: 1px solid var(--faint); max-height: 50vh; overflow: auto; }
.palette li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; cursor: pointer; font-size: 14px; }
.palette li svg { width: 18px; height: 18px; color: var(--muted); }
.palette li small { margin-left: auto; color: var(--muted); }
.palette li.is-active, .palette li:hover { background: var(--accent-soft); }

/* ── Toasts, empty, skeleton ────────────────────────────────── */
.toasts { position: fixed; z-index: 120; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--pill-dark); color: var(--pill-dark-ink); box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .45); animation: toast .45s var(--spring) both; }
.toast.bad { background: var(--bad); color: #fff; }
@keyframes toast { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.empty { display: grid; justify-items: center; gap: 8px; padding: 34px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty img { width: 64px; opacity: .14; }
[data-theme="dark"] .empty img { filter: invert(1); }
.sk { border-radius: 12px; background: linear-gradient(90deg, var(--faint), color-mix(in srgb, var(--faint) 40%, transparent), var(--faint)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── Motion: entrances & route changes ──────────────────────── */
.rise { animation: rise .7s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.985); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.page-enter { animation: pageIn .55s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } }
.page-leave { animation: pageOut .22s ease both; }
@keyframes pageOut { to { opacity: 0; transform: translateY(-6px); filter: blur(3px); } }

/* Mode switch: the whole OS dissolves into the brand mark, then Power boots */
.mode-curtain { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #0F1B33 0%, #050A14 70%); opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.mode-curtain.is-on { opacity: 1; pointer-events: auto; }
.mode-curtain img { width: 180px; filter: invert(1) drop-shadow(0 0 30px rgba(49, 228, 255, .8)); transform: scale(.7); opacity: 0; transition: transform 1s var(--spring) .15s, opacity .6s .15s; }
.mode-curtain.is-on img { transform: scale(1); opacity: 1; }
.mode-curtain p { position: absolute; bottom: 28vh; color: #31E4FF; font: 600 12px/1 var(--font-display); letter-spacing: .5em; opacity: 0; transition: opacity .6s .5s; }
.mode-curtain.is-on p { opacity: 1; }

/* ═══ v72: Messages ════════════════════════════════════════════ */
.msg { display: grid; grid-template-columns: 340px 1fr; gap: 18px; height: calc(100vh - 190px); min-height: 520px; }
.msg-list { display: flex; flex-direction: column; padding: 14px; min-height: 0; }
.msg-list .pills { margin-bottom: 10px; align-self: flex-start; }
.msg-list .search { min-width: 0; margin-bottom: 10px; height: 42px; }
.threads { overflow-y: auto; display: grid; gap: 4px; align-content: start; margin: 0 -4px; padding: 0 4px; }
.thread { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; cursor: pointer; transition: background .2s, transform .2s var(--spring); border: 0; background: transparent; text-align: left; width: 100%; }
.thread:hover { background: var(--glass-strong); }
.thread.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
.thread.is-on small, .thread.is-on .when { color: color-mix(in srgb, var(--pill-dark-ink) 65%, transparent); }
.thread .av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; position: relative; }
.thread .av .ch { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #25D366; border: 2px solid var(--glass-strong); }
.thread .av .ch svg { width: 10px; height: 10px; color: #fff; }
.thread .av .ch.app { background: var(--navy); }
.thread b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread small { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .when { font-size: 11px; color: var(--muted); align-self: start; margin-top: 4px; }
.convo { display: flex; flex-direction: column; min-height: 0; padding: 0; overflow: hidden; }
.convo-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--faint); }
.convo-head .av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; }
.convo-head h3 { margin: 0; font-size: 16px; }
.convo-head small { color: var(--muted); font-size: 12px; }
.convo-head .back { display: none; }
.bubbles-col { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 6px; scroll-behavior: smooth; }
.day-sep { align-self: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 12px; border-radius: 999px; background: var(--glass-soft); margin: 10px 0; }
.bub { max-width: min(520px, 78%); padding: 10px 14px; border-radius: 20px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .35s var(--ease) both; }
.bub.them { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--glass-edge); border-bottom-left-radius: 6px; }
.bub.me { align-self: flex-end; background: linear-gradient(135deg, #3B5BDB, #5B8DEF); color: #fff; border-bottom-right-radius: 6px; }
.bub.bot { align-self: flex-end; background: color-mix(in srgb, var(--glass-strong) 80%, #31E4FF 20%); border-bottom-right-radius: 6px; }
.bub .t { display: block; font-size: 10.5px; opacity: .65; margin-top: 4px; text-align: right; }
.bub img, .bub video { display: block; max-width: 260px; max-height: 260px; border-radius: 14px; margin-bottom: 6px; }
.bub .who { display: block; font-size: 11px; font-weight: 600; opacity: .7; margin-bottom: 2px; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 14px 16px; border-top: 1px solid var(--faint); }
.composer textarea { flex: 1; resize: none; max-height: 140px; min-height: 46px; padding: 12px 16px; border-radius: 22px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); outline: none; font-size: 14px; line-height: 1.4; }
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.composer .icon-btn { width: 46px; height: 46px; flex: none; }
.send-btn { background: var(--pill-dark) !important; color: var(--pill-dark-ink) !important; }
.attach-preview { display: flex; gap: 8px; padding: 0 16px 10px; }
.attach-preview span { position: relative; }
.attach-preview img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
@media (max-width: 900px) {
  .msg { grid-template-columns: 1fr; height: auto; }
  .msg.in-convo .msg-list { display: none; }
  .msg:not(.in-convo) .convo { display: none; }
  .convo { height: calc(100vh - 210px); min-height: 460px; }
  .convo-head .back { display: grid; }
}

/* ═══ v72: Social ══════════════════════════════════════════════ */
.channels { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.channel { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; cursor: pointer; border: 1px solid var(--glass-line); background: var(--glass); transition: transform .2s var(--spring), background .2s; font-size: 13px; font-weight: 600; }
.channel:hover { transform: translateY(-2px); }
.channel.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
.channel img, .channel .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 12px; }
.svc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; font-size: 11px; font-weight: 800; }
.svc.instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); } .svc.facebook { background: #1877F2; } .svc.tiktok { background: #111; } .svc.linkedin { background: #0A66C2; } .svc.twitter, .svc.x { background: #111; } .svc.threads { background: #111; } .svc.youtube { background: #FF0000; } .svc.pinterest { background: #E60023; } .svc.googlebusiness { background: #4285F4; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.post { padding: 18px; border-radius: var(--r-xl); display: flex; flex-direction: column; gap: 12px; min-height: 190px; transition: transform .3s var(--spring), box-shadow .3s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -26px rgba(30, 41, 80, .45); }
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head img, .post-head .ph { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.post-head b { display: block; font-size: 14px; }
.post-head small { display: block; color: var(--muted); font-size: 12px; }
.post-head .svc { margin-left: auto; }
.post p { margin: 0; font-size: 14px; line-height: 1.5; flex: 1; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.post-foot .acts { display: flex; gap: 6px; }
.compose-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.compose-ch label { cursor: pointer; }
.compose-ch input { position: absolute; opacity: 0; pointer-events: none; }
.compose-ch span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-strong); font-size: 13px; font-weight: 600; transition: .2s; }
.compose-ch span img, .compose-ch span .ph { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; color: #fff; font-size: 11px; }
.compose-ch input:checked + span { background: var(--pill-dark); color: var(--pill-dark-ink); border-color: transparent; }
.compose-ch input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.counter { font-size: 12px; color: var(--muted); text-align: right; }
.counter.over { color: var(--bad); }
.dropzone { border: 1.5px dashed color-mix(in srgb, var(--muted) 60%, transparent); border-radius: 18px; padding: 18px; text-align: center; color: var(--muted); font-size: 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone img { max-height: 160px; border-radius: 12px; display: block; margin: 0 auto 8px; }
.connect { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 24px; }
.connect .big-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; background: var(--pill-dark); color: var(--pill-dark-ink); }
.connect .big-ic svg { width: 34px; height: 34px; }

/* ═══ v74: Invoice & quote editor ══════════════════════════════ */
.modal.wide { width: min(1120px, calc(100vw - 32px)); }
.doc-edit { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 980px) { .doc-edit { grid-template-columns: 1fr; } .paper { order: -1; } }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 70px 110px 70px 36px; gap: 6px; align-items: center; }
#lines.no-disc .line { grid-template-columns: minmax(0, 1fr) 70px 120px 36px; }
.line input { min-height: 40px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font-size: 14px; outline: none; min-width: 0; width: 100%; }
.line input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.line.head { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 4px; }
.line .icon-btn { width: 34px; height: 34px; background: transparent; color: var(--muted); }
.line .icon-btn:hover { color: var(--bad); background: var(--bad-soft); }
.line .icon-btn svg { width: 16px; height: 16px; }
@media (max-width: 560px) { .line, #lines.no-disc .line { grid-template-columns: 1fr 64px 92px 32px; } .line input[data-k="discount_percent"], .line.head span:nth-child(4) { display: none; } }
.paper { position: sticky; top: 0; border-radius: 22px; overflow: hidden; background: #fff; color: #0B1220; box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .35); font-size: 13px; animation: rise .5s var(--ease) both; }
.paper-hero { display: flex; align-items: center; gap: 12px; padding: 20px 22px; background: linear-gradient(120deg, #071929, #1B2746); color: #fff; }
.paper-hero img { width: 54px; filter: invert(1) brightness(2); }
.paper-hero b { display: block; font: 800 10px var(--font-display); letter-spacing: .12em; }
.paper-hero span { display: block; font-size: 7px; letter-spacing: .34em; opacity: .7; margin-top: 2px; }
.paper-body { padding: 20px 22px 22px; }
.paper-body > small { font-size: 10px; letter-spacing: .16em; color: #0E9FC6; font-weight: 700; }
.paper-body h3 { margin: 6px 0 4px; font-size: 18px; letter-spacing: -.01em; }
.paper .to { color: #6B7689; margin: 0 0 14px; }
.paper .pl { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #EDF0F6; }
.paper .pl small { display: block; color: #6B7689; font-size: 11px; margin-top: 2px; }
.paper .pt { display: flex; justify-content: space-between; padding: 6px 0; color: #3A4458; }
.paper .pg { display: flex; justify-content: space-between; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(120deg, #071929, #1B2746); color: #fff; font-weight: 600; font-size: 15px; }
.paper .pg span:last-child { color: #31E4FF; }

/* ═══ v75: Research ════════════════════════════════════════════ */
.sheet.wide { width: min(820px, calc(100vw - 32px)); }
.research-ask textarea { width: 100%; min-height: 84px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font-size: 15px; line-height: 1.5; outline: none; resize: vertical; }
.research-ask textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.research-progress { display: flex; gap: 14px; align-items: center; margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--accent-soft); }
.research-progress .orb { width: 34px; height: 34px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #8FD3F4 35%, #5B5FEF 70%, #2A2F8F); animation: orb 1.6s ease-in-out infinite; }
.research-progress b { display: block; font-size: 14px; }
.research-progress small { color: var(--muted); font-size: 12px; }
.md { font-size: 15px; line-height: 1.7; color: var(--ink); }
.md h2 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 12px; line-height: 1.3; }
.md h3 { font-size: 17px; margin: 22px 0 8px; }
.md h4 { font-size: 15px; margin: 18px 0 6px; }
.md p { margin: 0 0 12px; }
.md ul, .md ol { margin: 0 0 14px; padding-left: 22px; }
.md li { margin: 4px 0; }
.md a { color: var(--accent); }
.md code { padding: 1px 6px; border-radius: 6px; background: var(--glass-strong); font-size: 13px; }
.md blockquote { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--glass-soft); border-radius: 0 12px 12px 0; }
.md hr { border: 0; border-top: 1px solid var(--faint); margin: 20px 0; }
.md-table { overflow-x: auto; margin: 0 0 14px; }
.md table { border-collapse: collapse; width: 100%; font-size: 13px; }
.md th, .md td { border: 1px solid var(--faint); padding: 8px 10px; text-align: left; }
.md th { background: var(--glass-soft); }
.md-src-h { margin: 22px 0 8px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.md-src { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 13px; }
.md-src a { color: var(--ink); font-weight: 500; }
.md-src small { display: block; color: var(--muted); }

/* ═══ v75: JARVIS ══════════════════════════════════════════════ */
.jarvis { display: grid; gap: 16px; max-width: 860px; margin: 0 auto; }
.jarvis-hero { display: flex; align-items: center; gap: 18px; padding: 8px 4px 4px; }
.jarvis-hero h1 { margin: 0; font-family: var(--font-display); font-size: 30px; letter-spacing: .08em; }
.jarvis-hero p { margin: 4px 0 0; color: var(--muted); }
.jorb { width: 64px; height: 64px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #8FD3F4 30%, #5B5FEF 65%, #1E2470); box-shadow: 0 0 40px rgba(91, 141, 239, .55), 0 0 0 10px rgba(91, 141, 239, .08); animation: orb 4s ease-in-out infinite; }
.jarvis-log { display: flex; flex-direction: column; gap: 10px; min-height: 120px; }
.jmsg { max-width: 88%; padding: 12px 16px; border-radius: 22px; font-size: 15px; line-height: 1.6; animation: rise .4s var(--ease) both; }
.jmsg.user { align-self: flex-end; background: var(--pill-dark); color: var(--pill-dark-ink); border-bottom-right-radius: 8px; white-space: pre-wrap; }
.jmsg.bot { align-self: flex-start; background: var(--glass-strong); border: 1px solid var(--glass-line); border-bottom-left-radius: 8px; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.jmsg.bot p:last-child, .jmsg.bot ul:last-child, .jmsg.bot ol:last-child { margin-bottom: 0; }
.jmsg.bot p { margin: 0 0 8px; } .jmsg.bot ul, .jmsg.bot ol { margin: 0 0 8px; padding-left: 20px; }
.jmsg.bot h2, .jmsg.bot h3, .jmsg.bot h4 { font-size: 15px; margin: 8px 0 4px; }
.jstatus { display: flex; gap: 6px; flex-wrap: wrap; align-self: flex-start; }
.jstatus:empty { display: none; }
.jtyping { display: inline-flex; gap: 4px; }
.jtyping i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: jt 1.2s infinite ease-in-out; }
.jtyping i:nth-child(2) { animation-delay: .15s; } .jtyping i:nth-child(3) { animation-delay: .3s; }
@keyframes jt { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.jarvis-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.jarvis-chips .channel { padding: 9px 14px; }
.jarvis-input { position: sticky; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; }
.jarvis-input .orb { width: 26px; height: 26px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #8FD3F4 35%, #5B5FEF 70%, #2A2F8F); }
.jarvis-input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--ink); min-width: 0; height: 44px; }
@media (max-width: 820px) { .jarvis-input { bottom: 86px; } .jmsg { max-width: 94%; } }

/* ═══ v77: Multi-screen (left · centre · right) ════════════════ */
/* One world across three monitors: each window shows its third of a 300vw scene. */
[data-screen="1"] .os-world, [data-screen="2"] .os-world, [data-screen="3"] .os-world { width: 300vw; right: auto; }
[data-screen="1"] .os-world { left: 0; }
[data-screen="2"] .os-world { left: -100vw; }
[data-screen="3"] .os-world { left: -200vw; }
[data-screen="1"] .os-world i:nth-child(1), [data-screen="2"] .os-world i:nth-child(1), [data-screen="3"] .os-world i:nth-child(1) { width: 70vw; height: 70vw; left: 10vw; }
body.pano-side .os { grid-template-columns: 1fr; }
body.pano-side .os-main { padding: 22px 28px 40px; max-width: 1400px; margin: 0 auto; width: 100%; }
body.pano-side .topbar { grid-template-columns: auto 1fr auto; }
.pano-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .pano-grid { grid-template-columns: 1fr; } }
.pano-card { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 18px 14px; border-radius: 22px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; transition: transform .25s var(--spring), box-shadow .25s, border-color .2s; }
.pano-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .45); }
.pano-card.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pano-card b { font-size: 16px; }
.pano-card small { color: var(--muted); font-size: 12px; }
.pano-mon svg { width: 120px; height: 52px; }
.pano-mon rect { fill: var(--glass-soft); stroke: var(--muted); stroke-width: 1.5; }
.pano-mon rect.on { fill: var(--pill-dark); stroke: var(--pill-dark); }
.pano-mon path { stroke: var(--muted); stroke-width: 2; stroke-linecap: round; fill: none; }
.screen-chip { display: inline-flex; align-items: center; gap: 6px; height: 50px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; border: 0; color: var(--ink); }
.screen-chip svg { width: 18px; height: 18px; }
[data-go] { cursor: pointer; }
.pinged { animation: ping .7s var(--ease); }
@keyframes ping { 30% { transform: scale(.97); box-shadow: 0 0 0 4px var(--accent-soft); } }

/* ═══ v78: Connect Claude ══════════════════════════════════════ */
.claude-steps { display: grid; gap: 10px; }
.cs { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-edge); }
.cs > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--pill-dark); color: var(--pill-dark-ink); }
.cs b { display: block; font-size: 14px; }
.cs small { color: var(--muted); font-size: 12px; }
.cs > div { min-width: 0; }
.ck-cmd, .ck-secret code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: #0B1220; color: #9FEFFF; font: 12px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; white-space: pre-wrap; word-break: break-all; cursor: copy; }
.ck-secret { margin-top: 14px; padding: 16px; border-radius: 18px; background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--glass-strong); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); display: grid; gap: 6px; }
.ck-secret small { color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) { .cs { grid-template-columns: auto 1fr; } .cs > .btn, .cs > a { grid-column: 1 / -1; } }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .os { grid-template-columns: 1fr; }
  .os-main { padding: 14px 16px 120px; }
  .dock::-webkit-scrollbar { display: none; }
  .dock { scrollbar-width: none; position: fixed; top: auto; bottom: 14px; left: 50%; transform: translateX(-50%); height: auto; width: auto; max-width: calc(100vw - 24px); margin: 0; flex-direction: row; padding: 8px 10px; border-radius: 999px; overflow-x: auto; }
  .dock-logo, .dock-sep, .dock-spacer, .dock-avatar, .dock-btn .tip { display: none; }
  .dock-btn { width: 40px; height: 44px; flex: none; border-radius: 14px; }
  .dock { gap: 2px; padding: 6px 8px; }
  .dock-btn svg { width: 21px; height: 21px; }
  .topbar { grid-template-columns: 1fr auto; }
  .askbar { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .greet b { font-size: 15px; }
  .seg .lbl, .power-btn span { display: none; }
  .power-btn { padding: 0 12px; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .lane { scroll-snap-align: start; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
}

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

/* v79 */
#sheet.wide { width: min(980px, calc(100vw - 32px)); }
.hub-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin-bottom: 18px; }
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tabs button { white-space: nowrap; }
.hub-h { margin: 22px 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; white-space: pre-wrap; }
.well { background: color-mix(in srgb, var(--glass-strong) 70%, transparent); border: 1px solid var(--glass-line); border-radius: var(--r-lg, 18px); }
.brand-swatches { display: flex; gap: 8px; } .brand-swatches span { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--glass-line); }
.access-code { font: 600 20px/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; padding: 12px 16px; border-radius: 14px; background: var(--pill-dark); color: var(--pill-dark-ink); }
.dropzone { padding: 26px; text-align: center; border: 1.5px dashed var(--glass-edge); border-radius: 18px; color: var(--muted); cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s; }
.dropzone.is-over, .dropzone:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.tcard { cursor: pointer; } #task-body .row { cursor: pointer; }
.cal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 22px; margin-bottom: 16px; }
.cal-filters select { height: 36px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13px; }
.cal-legend { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 6px; background: var(--info); }
.cal-day .ev { display: block; width: 100%; text-align: left; border: 0; font-family: inherit; cursor: pointer; }
.cal-day .ev.task:not(.late) { background: color-mix(in srgb, #FFB020 26%, transparent); color: var(--ink); }
.cal-day .ev.task.late { background: color-mix(in srgb, #FF3B30 30%, transparent); color: var(--ink); }
@media (max-width: 640px) { .cal-day .ev { display: none; } }
.cal-day .ev:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ev.t-meeting, .cal-legend .t-meeting { background: color-mix(in srgb, #4C8DFF 22%, transparent); color: var(--ink); }
.ev.t-shooting, .cal-legend .t-shooting { background: color-mix(in srgb, #A66BFF 24%, transparent); color: var(--ink); }
.ev.t-posting, .cal-legend .t-posting { background: color-mix(in srgb, #31E4FF 26%, transparent); color: var(--ink); }
.ev.t-deadline, .cal-legend .t-deadline { background: color-mix(in srgb, #FF5C7A 24%, transparent); color: var(--ink); }
.ev.t-other { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--ink); }
.ev.task, .cal-legend .task { background: color-mix(in srgb, #FFB020 26%, transparent); color: var(--ink); }
.ev.task.late, .cal-legend .late { background: color-mix(in srgb, #FF3B30 30%, transparent); }
.ev.task.done { opacity: .55; text-decoration: line-through; }
.cal-legend .t-meeting { background: #4C8DFF; } .cal-legend .t-shooting { background: #A66BFF; } .cal-legend .t-posting { background: #31E4FF; } .cal-legend .t-deadline { background: #FF5C7A; } .cal-legend .task { background: #FFB020; } .cal-legend .late { background: #FF3B30; }
.cal-day .more { font-size: 11px; color: var(--muted); padding-left: 4px; }
.script-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .script-grid { grid-template-columns: 1fr; } .kv { grid-template-columns: 1fr; } .cal-legend { margin-left: 0; } }
.script-title { width: 100%; font: 600 clamp(26px, 3vw, 38px)/1.15 var(--font); letter-spacing: -.03em; border: 0; background: transparent; color: var(--ink); outline: none; padding: 0; }
.rte-bar { display: flex; gap: 6px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--faint); }
.rte-bar button { min-width: 34px; height: 32px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; font: inherit; }
.rte { min-height: 420px; outline: none; font-size: 16px; line-height: 1.7; }
.rte:empty::before { content: 'Start writing your script…'; color: var(--muted); }
.ck-cmd { cursor: pointer; }

/* v80 */
.svc { overflow: hidden; } .svc svg { width: 64%; height: 64%; }
.svc.snapchat { background: #FFFC00; } .svc.youtube { background: #FF0000; } .svc.pinterest { background: #E60023; } .svc.whatsapp { background: #25D366; } .svc.googlebusiness, .svc.google { background: #4285F4; } .svc.website { background: #334155; } .svc.threads { background: #111; }
.plat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.plat-pick label { display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass-strong); cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.plat-pick label small { font-size: 11px; color: var(--ink-2); text-align: center; }
.plat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.plat-pick label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); transform: translateY(-1px); }
.cav { display: inline-grid; place-items: center; flex: none; overflow: hidden; color: #fff; font-weight: 700; background: var(--glass-strong); border: 1px solid var(--glass-line); vertical-align: middle; }
.cav img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tcard .meta .cav { margin-right: 2px; }
.logo-edit { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.logo-edit small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.logo-prev { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--glass-line); font-weight: 700; color: var(--muted); overflow: hidden; flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; }
/* brand identity */
.bi-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.bi-logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.bi-logo { margin: 0; border-radius: 18px; border: 1px solid var(--glass-line); overflow: hidden; display: grid; grid-template-rows: 130px auto; }
.bi-logo > img { width: 100%; height: 130px; object-fit: contain; padding: 18px; }
.bi-logo figcaption { background: var(--glass-strong); padding: 10px 12px; display: grid; gap: 8px; font-size: 13px; color: var(--ink); }
.bi-logo figcaption span { display: flex; gap: 6px; flex-wrap: wrap; } .bi-logo select { height: 30px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 12px; padding: 0 8px; max-width: 100%; }
.bi-drop { display: grid; place-items: center; align-content: center; gap: 4px; min-height: 170px; border: 1.5px dashed var(--glass-edge); border-radius: 18px; color: var(--muted); cursor: pointer; text-align: center; padding: 12px; }
.bi-drop:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); } .bi-drop svg { width: 22px; height: 22px; }
.bi-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.bi-color { display: grid; gap: 6px; padding: 10px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 13px; }
.bi-color .sw { position: relative; height: 84px; border-radius: 12px; border: 1px solid var(--glass-line); }
.bi-color .sw input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.bi-color input, .bi-color select, .bi-font input, .bi-font select { height: 32px; border-radius: 10px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); font: inherit; font-size: 13px; padding: 0 9px; min-width: 0; }
.bi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .bi-color code { font-family: ui-monospace, Menlo, monospace; }
.bi-add { display: grid; place-items: center; align-content: center; gap: 6px; min-height: 120px; border-radius: 18px; border: 1.5px dashed var(--glass-edge); background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.bi-add:hover { color: var(--ink); border-color: var(--accent); background: var(--accent-soft); } .bi-add svg { width: 20px; height: 20px; }
.bi-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bi-font { display: grid; gap: 6px; padding: 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.bi-font .sample { font-size: 44px; line-height: 1; font-weight: 600; color: var(--ink); }
.bi-book { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.bi-els { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bi-els figure { margin: 0; display: grid; gap: 6px; } .bi-els img { width: 100%; height: 120px; object-fit: cover; border-radius: 14px; border: 1px solid var(--glass-line); background: #fff; }
.bi-els input { height: 30px; border-radius: 10px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); padding: 0 8px; font: inherit; font-size: 12px; }
/* vault sheet */
.vault-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: var(--pill-dark); color: var(--pill-dark-ink); margin-bottom: 16px; }
.vault-top small { display: block; opacity: .75; font-size: 12px; margin-top: 2px; }
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.vs-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.vs-grid input, .vs-table input { height: 34px; border-radius: 10px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); padding: 0 10px; font: inherit; font-size: 13px; width: 100%; min-width: 0; }
.vs-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--glass-line); }
.vs-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 13px; }
.vs-table thead th { background: #071929; color: #fff; font-weight: 600; font-size: 12px; padding: 10px; text-align: left; }
.vs-table tbody th { text-align: left; font-weight: 500; padding: 6px 10px; width: 170px; background: var(--glass-strong); }
.vs-table td { padding: 5px; border-top: 1px solid var(--faint); }
.vs-table tr.empty th { background: color-mix(in srgb, #C00000 14%, transparent); color: var(--bad); }
.pw-wrap { position: relative; display: block; } .pw-wrap input { padding-right: 34px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 14px; opacity: .6; }
@media (max-width: 700px) { .vs-grid { grid-template-columns: 1fr; } }
/* subscriptions */
.cs-item { display: grid; grid-template-columns: minmax(0, 1fr) 70px 120px 36px; gap: 6px; margin-bottom: 6px; }
.cs-item select, .cs-item input { height: 38px; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; padding: 0 10px; min-width: 0; }
.cs-total { padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); font-size: 15px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
/* tasks v80 */
.board-v80 { grid-template-columns: repeat(4, minmax(230px, 1fr)) 64px; }
@media (max-width: 1100px) { .board-v80 { grid-template-columns: repeat(5, minmax(240px, 1fr)); overflow-x: auto; } .lane-done { min-height: 120px; } }
.lane-overdue { background: color-mix(in srgb, var(--bad) 9%, var(--glass)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.lane-overdue .lane-head { color: var(--bad); } .lane-note { display: block; color: var(--muted); font-size: 11px; margin: -4px 4px 8px; }
.lane.no-drop { cursor: not-allowed; outline: 2px dashed var(--bad); outline-offset: -4px; }
body.is-dragging .lane-overdue { opacity: .55; }
.tcard.late { border-left: 3px solid var(--bad); } .late-tag { margin-top: 6px; font-size: 11px; color: var(--bad); text-transform: capitalize; }
.lane-done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 6px; border-radius: 22px; border: 1px solid var(--glass-line); cursor: pointer; font: inherit; color: var(--ink); min-height: 280px; transition: transform .2s, box-shadow .2s; }
.lane-done:hover, .lane-done.is-over { transform: translateY(-2px); box-shadow: 0 0 0 3px var(--accent-soft); }
.lane-done .n { font-size: 20px; font-weight: 700; } .lane-done .lbl { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--muted); font-weight: 600; }
.lane-done .logos { display: grid; gap: 6px; margin-top: auto; }
.done-acts { flex-direction: row !important; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.report-frame { width: 100%; height: min(72vh, 900px); border: 1px solid var(--glass-line); border-radius: 16px; background: #fff; }
.svc-cat.retired { opacity: .55; }
.svc-cat input, .svc-cat select, #svc-new input, #svc-new select { height: 36px; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 14px; padding: 0 10px; min-width: 0; }
.rows .svc-cat, #svc-new { display: grid !important; grid-template-columns: minmax(0, 1fr) 130px 150px auto; align-items: center; gap: 10px; padding: 8px 10px; }
.svc-cat > input, .svc-cat > select, #svc-new > input, #svc-new > select { width: 100% !important; flex: none !important; }
.svc-cat > span { display: flex; gap: 6px; justify-content: flex-end; }
@media (max-width: 700px) { .rows .svc-cat, #svc-new { grid-template-columns: 1fr 1fr; } .svc-cat > input[name=name], #svc-new > input[name=name] { grid-column: 1 / -1; } }

/* v86 — meeting mode */
.btn-rec i { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; display: inline-block; box-shadow: 0 0 0 3px rgba(255,59,48,.25); }
.rec-pill { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.rec-pill i, .rec-banner .dot { width: 10px; height: 10px; border-radius: 50%; background: #FF3B30; animation: recBlink 1.2s infinite; }
.rec-pill b { font-variant-numeric: tabular-nums; }
@keyframes recBlink { 50% { opacity: .25; } }
.rec-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; text-decoration: none; color: var(--ink); }
.mt-empty { text-align: center; padding: 48px 24px; } .mt-empty p { max-width: 520px; margin: 8px auto 0; color: var(--ink-2); }
.mt-empty-orb { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--pill-dark); color: var(--pill-dark-ink); } .mt-empty-orb svg { width: 30px; height: 30px; }
.mt-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rec-stage { display: grid; gap: 22px; }
.rec-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rec-top h1 { margin: 8px 0 2px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.03em; } .rec-top p { margin: 0; color: var(--muted); }
.rec-live { animation: recBlink 1.6s infinite; }
.rec-center { display: grid; justify-items: center; gap: 16px; padding: 10px 0; text-align: center; }
.rec-orb { --lvl: 0; position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.rec-orb span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #6C63FF, #31E4FF 60%, #23DCF0); opacity: .18; transform: scale(calc(.72 + var(--lvl) * .5)); transition: transform .08s linear; }
.rec-orb span:nth-child(2) { opacity: .28; transform: scale(calc(.6 + var(--lvl) * .35)); }
.rec-orb span:nth-child(3) { opacity: 1; transform: scale(.52); box-shadow: 0 18px 50px rgba(49,228,255,.45); }
.rec-orb b { position: relative; color: #071929; } .rec-orb b svg { width: 40px; height: 40px; }
.rec-orb.paused span { filter: grayscale(1); opacity: .2; } .rec-orb.paused span:nth-child(3) { opacity: .6; }
.rec-orb.thinking span { animation: orbThink 2.4s ease-in-out infinite; } .rec-orb.thinking span:nth-child(2) { animation-delay: .4s; } .rec-orb.thinking span:nth-child(3) { animation: none; }
@keyframes orbThink { 50% { transform: scale(.95); opacity: .1; } }
.rec-time { font: 600 clamp(44px, 7vw, 72px)/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.rec-ctrls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 15px; } .rec-stop { background: #FF3B30 !important; color: #fff !important; }
.rec-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 900px) { .rec-cols { grid-template-columns: 1fr; } }
.rec-lines { max-height: 340px; overflow-y: auto; font-size: 15px; line-height: 1.65; } .rec-lines p { margin: 0 0 12px; unicode-bidi: plaintext; } .rec-lines span { display: inline-block; min-width: 46px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-inline-end: 8px; }
#rec-notes, .mt-notes { width: 100%; min-height: 300px; border: 1px solid var(--glass-edge); background: var(--glass-strong); border-radius: 16px; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--ink); resize: vertical; unicode-bidi: plaintext; }
.mt-notes { min-height: 120px; }
.mt-processing { max-width: 560px; margin: 48px auto; text-align: center; display: grid; justify-items: center; gap: 6px; } .mt-processing p { color: var(--muted); margin: 0; }
.mt-title[contenteditable="true"] { outline: none; border-radius: 10px; } .mt-title[contenteditable="true"]:hover, .mt-title[contenteditable="true"]:focus { background: var(--glass-strong); box-shadow: 0 0 0 6px var(--glass-strong); }
.mt-tabs { overflow-x: auto; flex-wrap: nowrap; } .mt-tabs button { white-space: nowrap; }
.mt-grid { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 1000px) { .mt-grid > .span-8, .mt-grid > .span-4 { grid-column: 1 / -1; } }
.mt-summary { font-size: 16px; line-height: 1.7; margin: 0; unicode-bidi: plaintext; }
.mt-list { margin: 0; padding-inline-start: 20px; display: grid; gap: 6px; } .mt-list li { unicode-bidi: plaintext; }
.mt-list.check { list-style: none; padding: 0; } .mt-list.check li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-inline-end: 8px; }
.mt-list.warn li::marker { color: var(--bad); } .mt-list.q li::marker { content: '? '; color: var(--warn); }
.mt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; } .mt-stats div { text-align: center; padding: 10px; border-radius: 14px; background: var(--glass-strong); } .mt-stats b { display: block; font-size: 22px; } .mt-stats small { color: var(--muted); }
.mt-actions { display: grid; gap: 8px; }
.mt-act { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); cursor: pointer; }
.mt-act input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.mt-act .main { display: grid; gap: 4px; min-width: 0; } .mt-act .main b, .mt-act .main small { unicode-bidi: plaintext; } .mt-act small { color: var(--ink-2); }
.mt-act .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.mt-act .due { font-size: 13px; color: var(--muted); } .mt-act input.due { height: 32px; border-radius: 10px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); padding: 0 8px; font: inherit; font-size: 13px; }
.mt-act.done { opacity: .75; cursor: default; } .mt-done { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 12px; font-weight: 700; }
.mt-plan { display: grid; gap: 14px; }
.mt-phase { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 14px; } .mt-phase h3 { margin: 4px 0 8px; } .mt-phase .mt-list { margin-top: 10px; }
.mt-phase-n { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; font-size: 18px; background: var(--pill-dark); color: var(--pill-dark-ink); }
.mt-transcript { width: 100%; min-height: 460px; border: 1px solid var(--glass-edge); background: var(--glass-strong); border-radius: 16px; padding: 14px; font: inherit; font-size: 14.5px; line-height: 1.7; color: var(--ink); resize: vertical; margin-bottom: 6px; }
.mt-segs { display: grid; gap: 8px; } .mt-seg { display: flex; align-items: center; gap: 8px; } .mt-seg audio { height: 34px; flex: 1; min-width: 0; }

/* v89 — chat */
.bub-in { animation: bubIn .32s cubic-bezier(.2,.9,.3,1.2) both; }
.bub.me.bub-in { transform-origin: bottom right; } .bub.them.bub-in, .bub.bot.bub-in { transform-origin: bottom left; }
@keyframes bubIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.bub.pending .t { opacity: .7; }
.bub .who em { font-style: normal; opacity: .7; font-weight: 400; }
#bubbles { overflow-anchor: auto; scroll-behavior: auto; }
.new-pill { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 3; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 600; background: var(--pill-dark); color: var(--pill-dark-ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); cursor: pointer; animation: bubIn .3s both; }
#convo { position: relative; }
.chat-bar { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; max-width: 240px; }
.chip-btn span { overflow: hidden; text-overflow: ellipsis; } .chip-btn svg { width: 15px; height: 15px; flex: none; } .chip-btn:hover { border-color: var(--accent); }
.composer-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.reply-as { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.reply-as select { height: 26px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 12px; padding: 0 8px; max-width: 260px; }
.av-wrap { position: relative; display: inline-flex; flex: none; } .av-wrap .ch { position: absolute; right: -3px; bottom: -3px; }
.new-persona summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); } .new-persona summary svg { width: 15px; height: 15px; }
@media (max-width: 700px) { .chat-bar { width: 100%; justify-content: flex-start; } .convo-head { flex-wrap: wrap; } }
.av-wrap .ch { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #25D366; border: 2px solid var(--glass-strong); }
.av-wrap .ch svg { width: 10px; height: 10px; color: #fff; } .av-wrap .ch.app { background: var(--navy); }
.convo-head .cav { flex: none; }

/* v90 — chat team, assistant, agent photos */
.pav { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 700; flex: none; box-shadow: 0 0 0 2px var(--glass-strong); }
.pav img { width: 100%; height: 100%; object-fit: cover; }
.bub.has-av { position: relative; }
.bub.me.has-av { margin-right: 40px; } .bub.bot.has-av { margin-left: 40px; }
.bub .bav { position: absolute; bottom: 0; } .bub.me .bav { right: -40px; } .bub.bot .bav { left: -40px; }
.bub .bav.bot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--glass-strong); font-size: 16px; }
.bub.intro { box-shadow: 0 0 0 2px var(--accent-soft); }
.intro-tag { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.bub-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .bub-btns span { padding: 5px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; opacity: .85; }
.flow-banner:empty { display: none; }
.flow-banner { display: flex; align-items: center; gap: 10px; margin: 0 14px 6px; padding: 8px 12px; border-radius: 14px; font-size: 13px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.flow-banner > span:not(.pav):not(.fb-bot) { flex: 1; min-width: 0; } .flow-banner.bot { background: var(--accent-soft); } .fb-bot { font-size: 18px; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ct-card { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 14px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-line); align-items: start; }
.ct-photo { position: relative; cursor: pointer; } .ct-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pill-dark); color: var(--pill-dark-ink); } .ct-cam svg { width: 14px; height: 14px; }
.ct-new .ct-photo { cursor: default; opacity: .6; }
.ct-fields { display: grid; gap: 6px; } .ct-fields input, .cf-row input, .cf-row select { height: 36px; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); padding: 0 10px; font: inherit; font-size: 14px; min-width: 0; width: 100%; }
.ct-def { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.ct-intro, .ct-acts { grid-column: 1 / -1; } .ct-acts { display: flex; justify-content: space-between; }
.ct-intro textarea { width: 100%; border-radius: 12px; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink); padding: 8px 10px; font: inherit; font-size: 13px; resize: vertical; }
.cf-toggles { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 12px; }
.cf-opt { display: grid; grid-template-columns: 30px 1fr 36px; gap: 10px; align-items: start; padding: 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); margin-bottom: 8px; }
.cf-n { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; background: var(--pill-dark); color: var(--pill-dark-ink); }
.cf-opt-body { display: grid; gap: 6px; } .cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .cf-row label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) { .cf-row { grid-template-columns: 1fr; } }
.pick-persona { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pick-persona label { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass-strong); cursor: pointer; text-align: center; }
.pick-persona input { position: absolute; opacity: 0; } .pick-persona small { color: var(--muted); font-size: 11.5px; }
.pick-persona label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chip-btn .pav { width: 22px !important; height: 22px !important; font-size: 9px !important; }

.bub { unicode-bidi: plaintext; text-align: start; } .bub .t, .bub .who, .bub .intro-tag { unicode-bidi: isolate; }
.bub.bot.has-av { margin-left: 0; margin-right: 40px; } .bub.bot .bav { left: auto; right: -40px; }
.ct-fields input[type=radio] { width: 16px !important; height: 16px !important; padding: 0; margin: 0; accent-color: var(--accent); flex: none; }
.ct-def { justify-content: flex-start; white-space: nowrap; }

/* v92 — WhatsApp templates */
.wa-send { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
@media (max-width: 760px) { .wa-send { grid-template-columns: 1fr; } }
.wa-left { display: grid; gap: 10px; align-content: start; } .wa-left .field textarea, .wa-left .field input, .wa-left .field select { width: 100%; }
.wa-send .page-actions.full { grid-column: 1 / -1; }
.wa-right { display: grid; gap: 8px; align-content: start; }
.wa-phone-frame { border-radius: 22px; padding: 16px 14px; min-height: 260px; background: #E5DDD5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='2' cy='2' r='1' fill='%23cfc4b8'/%3E%3C/svg%3E"); display: grid; align-content: start; gap: 4px; }
[data-theme="dark"] .wa-phone-frame { background-color: #0B141A; }
.wa-bubble { background: #fff; color: #111B21; border-radius: 4px 14px 14px 14px; padding: 9px 11px; font-size: 13.5px; line-height: 1.5; box-shadow: 0 1px 1px rgba(0,0,0,.12); white-space: normal; unicode-bidi: plaintext; }
[data-theme="dark"] .wa-bubble { background: #202C33; color: #E9EDEF; }
.wa-bubble mark { background: #FFF3B0; color: inherit; border-radius: 4px; padding: 0 2px; }
[data-theme="dark"] .wa-bubble mark { background: #5c4d00; }
.wa-btns { display: grid; gap: 4px; } .wa-btns span { background: #fff; color: #027EB5; text-align: center; padding: 8px; border-radius: 10px; font-size: 13.5px; font-weight: 500; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
[data-theme="dark"] .wa-btns span { background: #202C33; color: #53BDEB; }
.wa-new { margin: 0 0 10px; width: 100%; justify-content: center; }
.wat-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 4px 18px; margin-bottom: 14px; }
.wat-row { display: grid; grid-template-columns: 1fr auto auto; gap: 2px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--faint); font-size: 13.5px; }
.wat-row small { grid-column: 1; font-size: 11px; } .wat-row span { font-size: 11.5px; color: var(--muted); grid-row: 1 / span 2; }
.wat-reviews { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; } .wat-reviews small { display: block; }
.wat-reviews select { height: 30px; border-radius: 999px; border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--ink); padding: 0 10px; font: inherit; font-size: 13px; }
.stars { color: #F5A524; letter-spacing: 1px; }
.wa-closed { margin: 6px 14px; background: color-mix(in srgb, var(--warn) 14%, transparent); }
.wat-row b { grid-column: 1; grid-row: 1; } .wat-row small { grid-column: 1; grid-row: 2; }
.wat-row span:nth-of-type(1) { grid-column: 2; } .wat-row span:nth-of-type(2) { grid-column: 3; }

/* v93 — voice notes */
.vnote { display: flex; align-items: center; gap: 8px; min-width: 230px; max-width: 320px; padding: 4px 2px 6px; }
.vn-play { width: 36px; height: 36px; flex: none; border-radius: 50%; border: 0; cursor: pointer; font-size: 13px; background: var(--pill-dark); color: var(--pill-dark-ink); display: grid; place-items: center; }
.bub.me .vn-play { background: #fff; color: #071929; }
.vn-bar { flex: 1; height: 22px; cursor: pointer; position: relative; background: repeating-linear-gradient(90deg, color-mix(in srgb, currentColor 30%, transparent) 0 3px, transparent 3px 6px); border-radius: 4px; -webkit-mask: radial-gradient(circle, #000 60%, transparent 61%) 0 0/6px 100% repeat-x, linear-gradient(#000 0 0); }
.vn-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6px); transition: width .15s linear; }
.vn-time { font-size: 11.5px; opacity: .8; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 64px; }
.vn-speed { border: 1px solid currentColor; background: transparent; color: inherit; border-radius: 999px; font: inherit; font-size: 11px; padding: 1px 7px; cursor: pointer; opacity: .75; }
.vn-dl { color: inherit; opacity: .6; text-decoration: none; font-size: 15px; }

/* ═══ v100 SES Social (Facebook & Instagram) ═══ */
.sm-bar { display:flex; gap:12px; align-items:center; justify-content:space-between; flex-wrap:wrap; margin-bottom:16px; }
.sm-bar .pills { margin:0; }
.sm-count { font-weight:600; opacity:.6; margin-left:4px; }
.sm-sel { height:40px; border-radius:999px; padding:0 14px; border:1px solid var(--glass-line); background:var(--glass-strong); color:var(--ink); font:inherit; max-width:240px; }
.sm-warn { display:flex; gap:12px; align-items:flex-start; padding:12px 16px; border-radius:18px; margin-bottom:14px; font-size:13.5px; border:1px solid color-mix(in srgb, var(--warn, #e0a100) 40%, transparent); }
.sm-warn svg { width:18px; height:18px; flex:none; margin-top:2px; color:var(--warn, #e0a100); }
.sm-filters { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:14px; }
.chip-btn { border:1px solid var(--glass-line); background:var(--glass); color:var(--ink); border-radius:999px; padding:7px 14px; font:500 13px var(--font); cursor:pointer; transition:background .2s, color .2s; }
.chip-btn b { opacity:.55; margin-left:3px; }
.chip-btn.is-on { background:var(--pill-dark); color:var(--pill-dark-ink); border-color:transparent; }
.chip-btn.is-bad:not(.is-on) { color:var(--bad); border-color:color-mix(in srgb, var(--bad) 35%, transparent); }
.sm-list { display:grid; gap:12px; }
.sm-card { display:grid; grid-template-columns:150px 1fr; gap:16px; padding:14px; border-radius:22px; cursor:pointer; transition:transform .25s, box-shadow .25s; }
.sm-card:hover { transform:translateY(-2px); }
.sm-media { position:relative; border-radius:16px; overflow:hidden; aspect-ratio:1; display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--glass-strong); }
.sm-media > img, .sm-media > video { width:100%; height:100%; object-fit:cover; display:block; }
.sm-media > img:only-of-type, .sm-media > video:only-of-type { grid-column:1/-1; grid-row:1/-1; }
.sm-media.none { grid-template-columns:1fr; place-items:center; color:var(--muted); }
.sm-media .txt svg { width:32px; height:32px; }
.sm-media .type { position:absolute; left:8px; bottom:8px; font:600 10.5px var(--font); letter-spacing:.06em; text-transform:uppercase; background:rgba(7,25,41,.72); color:#fff; padding:4px 8px; border-radius:999px; backdrop-filter:blur(6px); }
.sm-media .more { position:absolute; right:8px; bottom:8px; background:rgba(7,25,41,.72); color:#fff; font:600 12px var(--font); padding:3px 8px; border-radius:999px; }
.sm-info { min-width:0; display:flex; flex-direction:column; gap:8px; }
.sm-top { display:flex; gap:10px; align-items:center; }
.sm-top b { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sm-cap { margin:0; color:var(--ink-2, var(--muted)); font-size:14px; line-height:1.5; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; unicode-bidi:plaintext; }
.sm-note { margin:0; font-size:13px; padding:8px 12px; border-radius:12px; background:var(--accent-soft); unicode-bidi:plaintext; }
.sm-note svg { width:14px; height:14px; vertical-align:-2px; }
.sm-err { margin:0; font-size:12.5px; color:var(--bad); background:var(--bad-soft); padding:8px 12px; border-radius:12px; white-space:pre-line; }
.sm-foot { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; font-size:13px; color:var(--muted); }
.sm-when svg { width:14px; height:14px; vertical-align:-2px; }
.sm-targets { display:flex; gap:6px; flex-wrap:wrap; }
.sm-t { display:inline-flex; align-items:center; gap:5px; padding:3px 8px 3px 3px; border-radius:999px; background:var(--glass-strong); border:1px solid var(--glass-line); }
.sm-t a { font-size:12px; color:var(--accent); text-decoration:none; }
.sm-t.failed { border-color:var(--bad); } .sm-t.published { border-color:color-mix(in srgb, var(--ok) 50%, transparent); } .sm-t.waiting { border-style:dashed; }
.sm-acts { display:flex; gap:6px; flex-wrap:wrap; }
.sm-av { position:relative; display:inline-grid; place-items:center; border-radius:50%; flex:none; color:#fff; font:600 11px var(--font); }
.sm-av img { width:100%; height:100%; border-radius:50%; object-fit:cover; }
.sm-av .svc { position:absolute; right:-4px; bottom:-4px; box-shadow:0 0 0 2px var(--glass-strong); }
/* calendar */
.sm-grid { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); gap:6px; }
.sm-dow { font:600 11px var(--font); text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:4px 6px; }
.sm-day { min-height:104px; border-radius:14px; padding:6px; background:var(--glass); border:1px solid var(--glass-line); display:flex; flex-direction:column; gap:4px; }
.sm-day.blank { background:none; border:none; }
.sm-day .n { font:600 12px var(--font); color:var(--muted); }
.sm-day.today .n { color:var(--accent); }
.sm-day.today { border-color:var(--accent); }
.sm-pill { display:flex; align-items:center; gap:4px; border:none; border-radius:9px; padding:4px 6px; font:500 11.5px var(--font); text-align:left; cursor:pointer; background:var(--glass-strong); color:var(--ink); overflow:hidden; }
.sm-pill span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sm-pill.published { background:color-mix(in srgb, var(--ok) 16%, var(--glass-strong)); }
.sm-pill.failed, .sm-pill.partly_failed { background:var(--bad-soft); }
.sm-pill.pending_approval, .sm-pill.changes_requested { background:color-mix(in srgb, #e0a100 18%, var(--glass-strong)); }
/* composer */
#modal:has(.sm-compose) { width:min(1080px, calc(100vw - 32px)); max-width:none; }
.sm-compose { display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:22px; }
.sm-compose .sm-left { display:grid; gap:14px; min-width:0; }
.sm-compose .page-actions.full { grid-column:1/-1; }
.sm-actions { flex-wrap:wrap; }
.sm-chans { display:flex; flex-wrap:wrap; gap:8px; }
.sm-chan { display:inline-flex; align-items:center; gap:8px; padding:5px 12px 5px 5px; border-radius:999px; border:1px solid var(--glass-line); background:var(--glass); color:var(--ink); font:500 13px var(--font); cursor:pointer; opacity:.62; transition:all .2s; }
.sm-chan.is-on { opacity:1; border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 1px var(--accent) inset; }
.sm-types { display:inline-flex; margin:0; }
.sm-drop { display:flex; flex-wrap:wrap; gap:8px; padding:10px; border-radius:18px; border:1.5px dashed var(--glass-edge); transition:background .2s, border-color .2s; }
.sm-drop.over { border-color:var(--accent); background:var(--accent-soft); }
.sm-thumbs { display:contents; }
.sm-th { position:relative; width:92px; height:92px; border-radius:14px; overflow:hidden; background:var(--glass-strong); cursor:grab; }
.sm-th img, .sm-th video { width:100%; height:100%; object-fit:cover; }
.sm-th .x { position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%; border:none; background:rgba(7,25,41,.75); color:#fff; cursor:pointer; line-height:1; }
.sm-th .ix { position:absolute; left:5px; top:5px; font:600 10px var(--font); background:rgba(7,25,41,.7); color:#fff; border-radius:999px; padding:1px 6px; }
.sm-th .vb { position:absolute; inset:auto auto 6px 6px; color:#fff; } .sm-th .vb svg { width:16px; height:16px; }
.sm-th .up { position:absolute; left:6px; right:6px; bottom:6px; height:5px; border-radius:5px; background:rgba(255,255,255,.35); overflow:hidden; }
.sm-th .up i { display:block; height:100%; background:var(--cyan, #31E4FF); transition:width .2s; }
.sm-add { width:92px; height:92px; border-radius:14px; border:1px solid var(--glass-line); background:var(--glass); color:var(--muted); display:grid; place-items:center; align-content:center; gap:4px; font:500 12px var(--font); cursor:pointer; }
.sm-add svg { width:20px; height:20px; }
.sm-toggle { display:flex; gap:10px; align-items:flex-start; padding-top:22px; }
.sm-toggle input { width:18px; height:18px; margin-top:2px; accent-color:var(--accent); }
.sm-toggle span { display:grid; gap:2px; font-size:14px; }
.sm-right { position:sticky; top:0; align-self:start; }
.sm-phone { border-radius:28px; background:#fff; color:#111; overflow:hidden; box-shadow:0 20px 50px rgba(7,25,41,.18); border:1px solid rgba(0,0,0,.06); }
[data-theme="dark"] .sm-phone { background:#0f1420; color:#eef3fb; }
.sm-phone .ph-head { display:flex; align-items:center; gap:8px; padding:10px 12px; font-size:13px; }
.sm-phone .ph-head .muted { margin-left:auto; font-size:11px; }
.sm-phone .ph-media { position:relative; aspect-ratio:4/5; background:#f2f4f7; display:grid; place-items:center; }
[data-theme="dark"] .sm-phone .ph-media { background:#1a2130; }
.sm-phone.tall .ph-media { aspect-ratio:9/16; }
.sm-phone .ph-media img, .sm-phone .ph-media video { width:100%; height:100%; object-fit:cover; }
.sm-phone .nav { position:absolute; top:50%; transform:translateY(-50%); width:28px; height:28px; border-radius:50%; border:none; background:rgba(255,255,255,.85); cursor:pointer; }
.sm-phone .nav.l { left:8px; } .sm-phone .nav.r { right:8px; }
.sm-phone .dots { position:absolute; bottom:8px; left:0; right:0; display:flex; justify-content:center; gap:4px; }
.sm-phone .dots i { width:6px; height:6px; border-radius:50%; background:rgba(255,255,255,.5); } .sm-phone .dots i.on { background:#fff; }
.sm-phone .ph-cap { padding:10px 12px 14px; font-size:13px; line-height:1.45; white-space:pre-wrap; unicode-bidi:plaintext; max-height:180px; overflow:auto; }
.sm-compose.locked .sm-add, .sm-compose.locked .x { display:none; }
@media (max-width: 860px) {
  .sm-compose { grid-template-columns:1fr; }
  .sm-right { position:static; max-width:340px; }
  .sm-card { grid-template-columns:96px 1fr; gap:12px; }
  .sm-grid { gap:3px; } .sm-day { min-height:70px; padding:4px; } .sm-pill span:last-child { display:none; }
}

/* ═══ v101 Social insights, comments, inbox ═══ */
.si-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.si-bar .pills { margin:0; }
.si-head { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.si-who { display:flex; gap:14px; align-items:center; }
.si-follow { display:grid; justify-items:end; }
.si-follow b { font:600 34px/1 var(--font); letter-spacing:-.02em; }
.si-follow small { color:var(--muted); }
.si-kpis { display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:10px; margin:14px 0; }
.si-kpi { padding:14px 16px; border-radius:20px; display:grid; gap:4px; }
.si-kpi small { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.si-kpi b { font:600 26px/1.1 var(--font); letter-spacing:-.02em; }
.si-kpi .muted { font-size:12px; }
.si-kpi.warn b { color:var(--bad); }
.si-d { font:600 12px var(--font); } .si-d.up { color:var(--ok, #2fbf71); } .si-d.down { color:var(--bad); }
.si-chart { width:100%; height:190px; display:block; }
.si-chart text { font:11px var(--font); fill:var(--muted); }
.si-legend { display:flex; gap:16px; font-size:12.5px; color:var(--muted); margin-top:6px; }
.si-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.si-nochart { padding:30px 0; text-align:center; font-size:13.5px; }
.si-top { display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:12px; }
.si-post { border-radius:18px; overflow:hidden; display:grid; gap:6px; padding-bottom:10px; text-decoration:none; color:var(--ink); }
.si-post .im { position:relative; aspect-ratio:1; background:var(--glass-strong); display:block; }
.si-post .im img { width:100%; height:100%; object-fit:cover; display:block; }
.si-post .im em { position:absolute; left:8px; bottom:8px; font:600 10px var(--font); text-transform:uppercase; letter-spacing:.06em; background:rgba(7,25,41,.7); color:#fff; padding:3px 8px; border-radius:999px; font-style:normal; }
.si-post .cap { padding:0 12px; font-size:13px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; unicode-bidi:plaintext; }
.si-post .st { display:flex; gap:10px; padding:0 12px; font-size:12.5px; flex-wrap:wrap; }
.si-post .muted { padding:0 12px; font-size:12px; }
.si-table { display:grid; font-size:13px; overflow-x:auto; }
.si-tr { display:grid; grid-template-columns:minmax(220px, 3fr) 80px repeat(6, minmax(58px, 1fr)); gap:8px; align-items:center; padding:8px 6px; border-bottom:1px solid var(--faint, var(--glass-line)); text-decoration:none; color:var(--ink); min-width:720px; }
.si-tr:hover:not(.si-th) { background:var(--glass-strong); border-radius:12px; }
.si-th { font:600 11px var(--font); text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.si-pc { display:flex; gap:10px; align-items:center; min-width:0; }
.si-pc img, .si-pc i { width:40px; height:40px; border-radius:10px; object-fit:cover; flex:none; background:var(--glass-strong); }
.si-pc span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; unicode-bidi:plaintext; }
/* comments */
.cm-list { display:grid; gap:10px; }
.cm { display:grid; grid-template-columns:64px 1fr; gap:14px; padding:14px; border-radius:20px; }
.cm.hidden { opacity:.65; }
.cm-post img, .cm-post i { width:64px; height:64px; border-radius:14px; object-fit:cover; display:block; background:var(--glass-strong); }
.cm-body { min-width:0; display:grid; gap:6px; }
.cm-top { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:13.5px; }
.cm-body p { margin:0; font-size:14.5px; line-height:1.5; unicode-bidi:plaintext; }
.cm-replies { display:grid; gap:4px; padding-left:12px; border-left:2px solid var(--glass-line); font-size:13px; }
.cm-replies .ours { color:var(--accent); }
.cm-cap { unicode-bidi:plaintext; }
.cm-reply { display:flex; gap:6px; flex-wrap:wrap; margin-top:4px; }
.cm-reply input { flex:1 1 220px; height:36px; border-radius:999px; border:1px solid var(--glass-edge); background:var(--glass-strong); color:var(--ink); padding:0 14px; font:inherit; }
/* inbox */
.ib { display:grid; grid-template-columns:320px 1fr; padding:0; overflow:hidden; min-height:540px; }
.ib-list { border-right:1px solid var(--glass-line); overflow:auto; max-height:640px; }
.ib-c { display:grid; grid-template-columns:38px 1fr auto; gap:10px; align-items:center; width:100%; padding:12px 14px; border:none; background:none; color:var(--ink); text-align:left; cursor:pointer; border-bottom:1px solid var(--glass-line); font:inherit; }
.ib-c.is-on, .ib-c:hover { background:var(--accent-soft); }
.ib-c .main { min-width:0; display:grid; } .ib-c .main small { color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; unicode-bidi:plaintext; }
.ib-c .end { display:grid; justify-items:end; gap:4px; font-size:11px; color:var(--muted); }
.ib-c .dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:var(--accent); margin-left:6px; vertical-align:1px; }
.ib-thread { display:flex; flex-direction:column; min-width:0; }
.ib-head { display:flex; gap:10px; align-items:center; padding:14px 18px; border-bottom:1px solid var(--glass-line); }
.ib-msgs { flex:1; overflow:auto; max-height:470px; padding:16px 18px; display:flex; flex-direction:column; gap:10px; }
.ib-m { display:grid; justify-items:start; gap:3px; max-width:75%; }
.ib-m.us { align-self:flex-end; justify-items:end; }
.ib-m .bub { padding:9px 13px; border-radius:18px; background:var(--glass-strong); border:1px solid var(--glass-line); font-size:14px; line-height:1.45; white-space:pre-wrap; unicode-bidi:plaintext; display:grid; gap:6px; }
.ib-m.us .bub { background:var(--pill-dark); color:var(--pill-dark-ink); border-color:transparent; }
.ib-m .bub img, .ib-m .bub video { max-width:240px; border-radius:12px; }
.ib-m small { font-size:11px; color:var(--muted); }
.ib-send { display:flex; gap:8px; padding:12px 16px 4px; border-top:1px solid var(--glass-line); }
.ib-send input { flex:1; height:42px; border-radius:999px; border:1px solid var(--glass-edge); background:var(--glass-strong); color:var(--ink); padding:0 16px; font:inherit; }
.ib-note { padding:0 18px 12px; font-size:12px; }
@media (max-width: 860px) {
  .ib { grid-template-columns:1fr; } .ib-list { max-height:260px; border-right:none; border-bottom:1px solid var(--glass-line); }
  .si-follow { justify-items:start; } .cm { grid-template-columns:48px 1fr; } .cm-post img, .cm-post i { width:48px; height:48px; }
}

/* ═══ v102 Social redesign: client cards + client workspace ═══ */
.sx-sec { margin-bottom:22px; }
.sx-sec-h { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:0 2px 12px; }
.sx-sec-h h2 { margin:0; font:600 22px/1.2 var(--font); letter-spacing:-.02em; }
.sx-sec-h p { margin:4px 0 0; color:var(--muted); font-size:13.5px; }
.sx-arrows { display:flex; gap:8px; }
.sx-arrows .icon-btn { width:40px; height:40px; font-size:20px; line-height:1; }
.sx-rail { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(300px, 340px); gap:16px; overflow-x:auto; scroll-snap-type:x mandatory; padding:4px 4px 18px; margin:0 -4px; scrollbar-width:thin; }
.sx-rail > * { scroll-snap-align:start; }
.sx-rail.posts { grid-auto-columns:minmax(210px, 230px); }
.sx-card { position:relative; border-radius:26px; padding:20px; display:flex; flex-direction:column; gap:18px; cursor:pointer; text-decoration:none; color:var(--ink); transition:transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; min-height:250px; }
.sx-card:hover, .sx-card:focus-visible { transform:translateY(-4px); box-shadow:0 22px 50px rgba(7,25,41,.14); outline:none; }
.sx-top { display:flex; gap:14px; align-items:center; min-width:0; }
.sx-id { display:grid; gap:6px; min-width:0; }
.sx-id b, .sx-id h2 { font:600 18px/1.2 var(--font); letter-spacing:-.01em; margin:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sx-id h2 { font-size:24px; }
.sx-accs { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.sx-accs small { color:var(--muted); font-size:12px; margin-left:2px; }
.sx-acc { display:inline-flex; align-items:center; gap:7px; padding:3px 10px 3px 3px; border-radius:999px; background:var(--glass-strong); border:1px solid var(--glass-line); font-size:12.5px; }
.sx-stats { display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:14px 0; border-top:1px solid var(--glass-line); border-bottom:1px solid var(--glass-line); }
.sx-stats div { display:grid; gap:2px; }
.sx-stats b { font:600 20px/1.1 var(--font); letter-spacing:-.02em; }
.sx-stats small { color:var(--muted); font-size:11.5px; }
.sx-flags { display:flex; flex-wrap:wrap; gap:6px; margin-top:auto; }
.sx-flag { font-size:12px; padding:5px 10px; border-radius:999px; background:var(--glass-strong); border:1px solid var(--glass-line); }
.sx-flag.warn { background:color-mix(in srgb, #e0a100 14%, var(--glass-strong)); border-color:color-mix(in srgb, #e0a100 35%, transparent); }
.sx-flag.bad { background:var(--bad-soft); color:var(--bad); border-color:transparent; }
.sx-flag.ok { color:var(--ok, #2fbf71); }
.sx-go { position:absolute; top:20px; right:20px; display:inline-flex; gap:4px; align-items:center; font:600 12.5px var(--font); color:var(--accent); opacity:0; transform:translateX(-4px); transition:all .25s; }
.sx-go svg { width:14px; height:14px; }
.sx-card:hover .sx-go { opacity:1; transform:none; }
.sx-add { align-items:center; justify-content:center; text-align:center; border:1.5px dashed var(--glass-edge); background:transparent !important; gap:8px; }
.sx-add .big svg { width:30px; height:30px; color:var(--accent); }
.sx-add small { color:var(--muted); }
.sx-two { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.sx-rows { display:grid; gap:4px; }
.sx-row { display:flex; align-items:center; gap:12px; padding:10px; border-radius:16px; border:none; background:none; color:var(--ink); text-align:left; cursor:pointer; font:inherit; width:100%; }
.sx-row:hover { background:var(--glass-strong); }
.sx-row .main { flex:1; min-width:0; display:grid; } .sx-row .main b { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .sx-row .main small { color:var(--muted); }
.sx-th { width:46px; height:46px; border-radius:12px; overflow:hidden; flex:none; display:grid; place-items:center; background:var(--glass-strong); color:var(--muted); }
.sx-th img, .sx-th video { width:100%; height:100%; object-fit:cover; } .sx-th.emo { font-size:20px; } .sx-th svg { width:20px; height:20px; }
.sx-back { display:inline-flex; align-items:center; gap:6px; border:none; background:none; color:var(--muted); font:600 13.5px var(--font); cursor:pointer; padding:4px 2px; margin-bottom:10px; }
.sx-back span { font-size:20px; line-height:1; margin-top:-2px; } .sx-back:hover { color:var(--ink); }
.sx-client { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:22px 24px; }
.sx-cta { display:flex; gap:8px; flex-wrap:wrap; }
.sx-tabs { display:flex; gap:4px; margin:16px 0; border-bottom:1px solid var(--glass-line); overflow-x:auto; }
.sx-tabs button { border:none; background:none; padding:10px 16px 12px; font:600 14px var(--font); color:var(--muted); cursor:pointer; position:relative; white-space:nowrap; }
.sx-tabs button.is-on { color:var(--ink); }
.sx-tabs button.is-on::after { content:""; position:absolute; left:14px; right:14px; bottom:-1px; height:2.5px; border-radius:3px; background:var(--accent); }
.sx-seg { display:inline-flex; gap:2px; padding:4px; border-radius:999px; background:var(--glass); border:1px solid var(--glass-line); margin-bottom:14px; flex-wrap:wrap; }
.sx-seg.small { margin:0; }
.sx-seg button { border:none; background:none; padding:7px 14px; border-radius:999px; font:500 13px var(--font); color:var(--muted); cursor:pointer; }
.sx-seg button b { opacity:.6; margin-left:3px; font-weight:600; }
.sx-seg button.is-on { background:var(--pill-dark); color:var(--pill-dark-ink); }
.sx-seg button.bad:not(.is-on) { color:var(--bad); }
.sx-seg.small button { padding:5px 11px; font-size:12.5px; }
.sx-tool { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.sx-tool-r { display:flex; gap:8px; align-items:center; }
.sx-accsel { display:flex; gap:8px; flex-wrap:wrap; }
.sx-accsel button { display:flex; align-items:center; gap:10px; padding:6px 14px 6px 6px; border-radius:16px; border:1px solid var(--glass-line); background:var(--glass); color:var(--ink); cursor:pointer; text-align:left; font:inherit; transition:all .2s; }
.sx-accsel button span { display:grid; line-height:1.2; } .sx-accsel button b { font-size:13.5px; font-weight:600; } .sx-accsel button small { font-size:11.5px; color:var(--muted); }
.sx-accsel button.is-on { border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 1px var(--accent) inset; }
.sx-kpis { display:grid; grid-template-columns:repeat(4, 1fr); gap:0; padding:0; overflow:hidden; }
.sx-kpi { padding:20px 22px; display:grid; gap:4px; border-right:1px solid var(--glass-line); }
.sx-kpi:nth-child(4) { border-right:none; }
.sx-kpi small { color:var(--muted); font:600 11.5px var(--font); text-transform:uppercase; letter-spacing:.08em; }
.sx-kpi b { font:600 30px/1.1 var(--font); letter-spacing:-.03em; }
.sx-kpi.main b { color:var(--accent); }
.sx-kpi > span { font-size:12.5px; min-height:16px; }
.sx-mini { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:6px 18px; align-items:center; padding:12px 22px; border-top:1px solid var(--glass-line); background:color-mix(in srgb, var(--glass-strong) 50%, transparent); font-size:13px; color:var(--muted); }
.sx-mini b { color:var(--ink); font-weight:600; }
.sx-mini .muted:last-child { margin-left:auto; font-size:12px; }
.sx-link { border:none; background:none; padding:0; font:inherit; color:var(--muted); cursor:pointer; text-decoration:underline dotted; }
.sx-link.warn b { color:var(--bad); }
.sx-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:14px; }
.sx-tile { display:flex; flex-direction:column; border-radius:20px; overflow:hidden; background:var(--glass); border:1px solid var(--glass-line); text-decoration:none; color:var(--ink); transition:transform .25s, box-shadow .25s; }
.sx-tile:hover { transform:translateY(-3px); box-shadow:0 16px 36px rgba(7,25,41,.12); }
.sx-tile .im { position:relative; aspect-ratio:4/5; background:var(--glass-strong); display:block; overflow:hidden; }
.sx-tile .im img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.sx-tile:hover .im img { transform:scale(1.04); }
.sx-tile .im i { position:absolute; inset:0; display:grid; place-items:center; color:var(--muted); } .sx-tile .im i svg { width:28px; height:28px; }
.sx-tile em { position:absolute; top:10px; font:600 10.5px var(--font); font-style:normal; letter-spacing:.06em; text-transform:uppercase; padding:4px 9px; border-radius:999px; background:rgba(7,25,41,.68); color:#fff; backdrop-filter:blur(6px); }
.sx-tile em.ty { right:10px; } .sx-tile em.rk { left:10px; background:var(--accent); }
.sx-tile .ov { position:absolute; left:0; right:0; bottom:0; display:flex; gap:10px; flex-wrap:wrap; padding:24px 12px 10px; background:linear-gradient(transparent, rgba(7,25,41,.78)); color:#fff; font-size:12.5px; }
.sx-tile .ov b { font-weight:600; }
.sx-tile .cap { padding:10px 12px 2px; font-size:13px; line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; unicode-bidi:plaintext; min-height:38px; }
.sx-tile .meta { display:flex; justify-content:space-between; gap:6px; padding:4px 12px 12px; font-size:11.5px; color:var(--muted); }
@media (max-width: 960px) { .sx-kpis { grid-template-columns:1fr 1fr; } .sx-kpi:nth-child(2) { border-right:none; } .sx-kpi:nth-child(-n+2) { border-bottom:1px solid var(--glass-line); } .sx-two { grid-template-columns:1fr; } }
@media (max-width: 600px) {
  .sx-rail { grid-auto-columns:82%; } .sx-rail.posts { grid-auto-columns:62%; }
  .sx-arrows { display:none; } .sx-client { padding:18px; } .sx-id h2 { font-size:20px; }
  .sx-kpi { padding:16px; } .sx-kpi b { font-size:24px; } .sx-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .sx-mini .muted:last-child { margin-left:0; } .sx-tool-r { width:100%; justify-content:space-between; }
}

/* v104 permission check */
.sm-perms { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:8px; margin-top:14px; }
.sm-perms > div { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:14px; border:1px solid var(--glass-line); background:var(--glass); }
.sm-perms > div b { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; color:#fff; flex:none; }
.sm-perms > div.ok b { background:var(--ok, #2fbf71); } .sm-perms > div.bad b { background:var(--bad); }
.sm-perms span { flex:1; display:grid; font-size:13.5px; } .sm-perms small { color:var(--muted); font-size:11.5px; }
.sm-perms em { font-style:normal; font-size:11.5px; color:var(--muted); } .sm-perms .bad em { color:var(--bad); font-weight:600; }

/* ═══ v110 Phase 1 — atoms background, refined glass, opening moment, page progress ═══ */
:root { --glass-sheen: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%); --glass-top: rgba(255,255,255,.95); }
[data-theme="dark"] { --glass-sheen: linear-gradient(160deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 40%); --glass-top: rgba(255,255,255,.16); }
/* the world: atoms in front of the colour blobs, blobs calmer, the old tiled logo pattern retired */
.os-atoms { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.atoms-on .os-world .os-pattern { display: none; }
.atoms-on .os-world i { opacity: .75; filter: blur(90px); }
[data-theme="dark"].atoms-on .os-world i { opacity: .65; }
/* glass: one consistent material — frosted fill, a light top edge, a soft sheen and shadow */
.glass:not(.hero-card):not([class*="tint-"]) { background-image: var(--glass-sheen); }
.glass { box-shadow: inset 0 1px 0 var(--glass-top), var(--glass-shadow); }
.glass.card { transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.glass.card:hover { box-shadow: inset 0 1px 0 var(--glass-top), 0 1px 0 rgba(255,255,255,.4) inset, 0 26px 60px -22px rgba(30,41,80,.28); }
[data-theme="dark"] .glass.card:hover { box-shadow: inset 0 1px 0 var(--glass-top), 0 30px 70px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(49,228,255,.08); }
#sheet.glass, #modal.glass, #palette.glass { -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%); }
.scrim { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dock.glass { box-shadow: inset 0 1px 0 var(--glass-top), 0 24px 60px -24px rgba(30,41,80,.30); }
.dock-btn { transition: background .25s var(--ease), transform .35s var(--spring), color .25s; }
.dock-btn.is-on { box-shadow: 0 8px 22px -8px rgba(14,159,198,.55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.btn { transition: transform .25s var(--spring), background .25s, box-shadow .25s; }
.btn:active { transform: scale(.97); }
/* opening moment: the atoms gather into the SES mark, then the studio rises in */
.os { transition: opacity .7s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.booting .os { opacity: 0; transform: scale(.985) translateY(10px); filter: blur(6px); }
.boot-label { position: fixed; left: 0; right: 0; top: calc(50% + min(14vw, 150px)); z-index: 1; text-align: center; pointer-events: none;
  font: 700 11px var(--font-display); letter-spacing: .32em; color: var(--muted); opacity: 0; transition: opacity .6s var(--ease); }
.booting .boot-label { opacity: 1; }
.boot-label i { display: block; width: 120px; height: 2px; margin: 14px auto 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--accent), transparent); background-size: 200% 100%; animation: bootline 1.2s linear infinite; }
@keyframes bootline { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* page progress: a thin cyan line while a page loads */
#route-line { position: fixed; left: 0; top: 0; height: 2.5px; width: 0; z-index: 200; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, var(--accent), #31E4FF); box-shadow: 0 0 12px rgba(49,228,255,.7); border-radius: 0 3px 3px 0; }
.routing #route-line { opacity: 1; width: 82%; transition: width 2.4s cubic-bezier(.1,.7,.2,1), opacity .2s; }
.routed #route-line { opacity: 0; width: 100%; transition: width .25s var(--ease), opacity .45s .2s; }
@media (prefers-reduced-motion: reduce) { .booting .os { opacity: 1; transform: none; filter: none; } .glass.card, .btn, .dock-btn { transition: none; } }

/* ═══ v111 Phase 2 — lists, tables, chips, bars, forms, panels, phone ═══ */
/* rows: calmer rhythm, a clear hover, keyboard focus, and pressed feedback */
.rows { gap: 4px; }
.row { padding: 12px 14px; min-height: 60px; border-radius: 18px; border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s; }
.row:hover { background: var(--glass-strong); border-color: var(--glass-line); box-shadow: 0 10px 26px -18px rgba(30,41,80,.35); transform: translateX(2px); }
[data-theme="dark"] .row:hover { box-shadow: 0 12px 30px -18px rgba(0,0,0,.8); border-color: rgba(255,255,255,.08); }
.row:active { transform: scale(.995); }
.row:focus-visible, .tcard:focus-visible, .tile:focus-visible, .btn:focus-visible, .chip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row .ic { width: 42px; height: 42px; border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 14px -8px rgba(15,23,42,.45); }
.row .main b { font-size: 14.5px; letter-spacing: -.005em; }
.row .main small { font-size: 12.5px; line-height: 1.45; }
.row .end { font-variant-numeric: tabular-nums; }
.row .cav, .row .cav img { box-shadow: 0 4px 12px -6px rgba(15,23,42,.35); }
/* tables: sticky header, zebra-free calm lines, tabular numbers */
.card table, .vs-table, .md-table, .wat-table table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.card table th, .vs-table th, .md-table th { position: sticky; top: 0; z-index: 1; text-align: start; padding: 10px 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--glass-strong) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--faint); }
.card table td, .vs-table td, .md-table td { padding: 11px 12px; border-bottom: 1px solid var(--faint); font-variant-numeric: tabular-nums; }
.card table tr:last-child td, .vs-table tr:last-child td, .md-table tr:last-child td { border-bottom: 0; }
.card table tbody tr, .vs-table tbody tr, .md-table tbody tr { transition: background .2s; }
.card table tbody tr:hover, .vs-table tbody tr:hover, .md-table tbody tr:hover { background: var(--accent-soft); }
/* status chips: tinted fill + a matching hairline, the dot gently glows */
.chip { height: 26px; padding: 0 11px; letter-spacing: .01em; border: 1px solid var(--glass-edge); text-transform: capitalize; }
.chip.ok { border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.chip.warn { border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.chip.bad { border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.chip.info { border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.chip i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 18%, transparent); }
[data-theme="dark"] .chip i { box-shadow: 0 0 8px currentColor; }
/* tabs, pills and segmented controls: one look, a sliding-feel active pill */
.tabs, .pills, .seg, .sx-seg { background: var(--glass-soft); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tabs button, .pills button, .seg button { transition: background .3s var(--ease), color .25s, box-shadow .3s, transform .2s; }
.tabs button:hover:not(.is-on), .pills button:hover:not(.is-on), .seg button:hover:not(.is-on) { background: var(--glass-strong); color: var(--ink); }
.tabs button.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); box-shadow: 0 6px 16px -8px rgba(15,23,42,.55); }
.pills button:active, .seg button:active, .tabs button:active { transform: scale(.97); }
/* progress and bars: a little thicker, gradient fill, soft shine */
.progress { height: 8px; background: var(--faint); box-shadow: inset 0 1px 2px rgba(15,23,42,.08); }
.progress i { background: linear-gradient(90deg, var(--accent), #31E4FF); position: relative; overflow: hidden; }
.progress i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); transform: translateX(-100%); animation: shine 2.6s var(--ease) infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
/* skeletons: softer, glassy shimmer that matches the cards */
.sk { border-radius: 12px; background: linear-gradient(100deg, var(--faint) 30%, color-mix(in srgb, var(--glass-strong) 70%, transparent) 50%, var(--faint) 70%); background-size: 240% 100%; animation: sk 1.6s ease-in-out infinite; }
/* empty states: the SES mark floats, text is friendlier */
.empty { gap: 10px; padding: 40px 16px; }
.empty img { width: 70px; opacity: .16; animation: emptyfloat 5s ease-in-out infinite; }
[data-theme="dark"] .empty img { filter: invert(1); opacity: .2; }
@keyframes emptyfloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
/* kanban cards and tiles */
.tcard { box-shadow: inset 0 1px 0 var(--glass-top), 0 6px 16px -12px rgba(15,23,42,.4); transition: transform .3s var(--ease), box-shadow .3s; }
.tcard:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 var(--glass-top), 0 18px 34px -18px rgba(15,23,42,.5); }
.tcard:active { cursor: grabbing; transform: rotate(-1deg) scale(1.02); }
.lane { border: 1px solid var(--glass-line); }
.todo li { border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top); transition: transform .25s var(--ease), background .25s; }
/* forms: taller fields, glass fill with a top highlight, custom select arrow, clear placeholders */
.field { gap: 8px; }
.field > span { font-size: 12.5px; letter-spacing: .01em; }
.field input, .field select, .field textarea { min-height: 48px; border-radius: 15px; border-color: var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top), 0 1px 2px rgba(15,23,42,.04); transition: border-color .2s, box-shadow .25s, background .25s; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-line)); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237A8499' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
/* side panels and pop-ups: springier entrance, sticky header, thin scrollbars */
.sheet { border-radius: 30px; transition: transform .55s cubic-bezier(.2,.9,.25,1); }
.modal { border-radius: 30px; transition: transform .45s cubic-bezier(.2,.9,.25,1.05), opacity .3s; }
.sheet-head { position: sticky; top: -26px; z-index: 3; margin: -26px -26px 18px; padding: 22px 26px 14px; background: color-mix(in srgb, var(--glass-strong) 88%, transparent); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid var(--faint); border-radius: 30px 30px 0 0; }
.modal .sheet-head { top: -28px; margin: -28px -28px 18px; padding: 22px 28px 14px; }
.sheet, .modal, .sm-list, .ib-list, .ib-msgs { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 45%, transparent) transparent; }
.sheet::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 40%, transparent); border-radius: 8px; }
/* headings breathe a little more */
.page-head h1 { letter-spacing: -.035em; }
.card-head h3 { font-size: 16.5px; }
/* phone: bottom sheets with a grab handle, bigger touch targets, no sideways scroll */
@media (max-width: 640px) {
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; transform: translateY(105%); padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .sheet.is-open { transform: none; }
  .sheet::before { content: ''; position: sticky; top: -12px; display: block; width: 44px; height: 5px; margin: -10px auto 12px; border-radius: 5px; background: color-mix(in srgb, var(--muted) 45%, transparent); z-index: 4; }
  .sheet-head { top: -22px; margin: -22px -18px 16px; padding: 18px 18px 12px; border-radius: 28px 28px 0 0; }
  .modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 92vh; border-radius: 28px 28px 0 0; transform: translateY(105%); opacity: 1; padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); }
  .modal.is-open { transform: none; }
  .modal .sheet-head { top: -22px; margin: -22px -18px 16px; padding: 18px 18px 12px; }
  .row { min-height: 64px; padding: 12px; }
  .row:hover { transform: none; }
  .btn { min-height: 44px; }
  .tabs, .pills, .seg { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .tabs::-webkit-scrollbar, .pills::-webkit-scrollbar, .seg::-webkit-scrollbar { display: none; }
  .tabs button, .pills button, .seg button { white-space: nowrap; flex: none; }
  .page-head h1 { font-size: 28px; }
  #sheet, #sheet.wide, #modal, #modal.wide, #modal:has(.sm-compose) { width: auto; max-width: none; left: 0; right: 0; }
  .topbar { min-width: 0; }
  .topbar > * { min-width: 0; }
  .askbar, .askbar input { min-width: 0; width: 100%; }
  #disp-btn { display: none; } /* the three-monitor layout is a desktop feature */
  .greet b { font-size: 13.5px; line-height: 1.25; }
  .top-right { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .progress i::after, .sk, .empty img { animation: none; } .row, .tcard, .sheet, .modal { transition: none; } }

/* ═══ v112 — Phase 3: command-centre Home, ⌘K preview, motion, wins ═══ */
/* masthead */
.cc-mast { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 6px 4px 26px; flex-wrap: wrap; }
.cc-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 11px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cc-kicker i { width: 4px; height: 4px; border-radius: 50%; background: var(--cyan, #00C3FF); box-shadow: 0 0 10px var(--cyan, #00C3FF); }
.cc-head { margin: 0; font: 600 clamp(30px, 3.6vw, 50px)/1.08 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.cc-head em { font-style: normal; background: linear-gradient(100deg, var(--accent) 0%, #00C3FF 60%, var(--accent) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: ccShine 9s ease-in-out infinite; }
@keyframes ccShine { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.cc-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-stat { min-width: 108px; padding: 14px 16px 12px; border-radius: 20px; text-decoration: none; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-top, rgba(255,255,255,.6)); -webkit-backdrop-filter: blur(var(--blur, 24px)) saturate(160%); backdrop-filter: blur(var(--blur, 24px)) saturate(160%); transition: transform .35s var(--spring), border-color .25s; }
.cc-stat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-line)); }
.cc-stat strong { display: block; font: 600 28px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cc-stat small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.cc-stat.hot strong { color: var(--bad); }

/* needs you */
.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.need-i { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 14px; border-radius: 18px; cursor: pointer; border: 1px solid transparent; transition: background .25s, border-color .25s, transform .35s var(--spring), opacity .4s, filter .4s; }
.need-i::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--muted); opacity: .5; }
.need-i.tone-bad::before { background: var(--bad); opacity: 1; box-shadow: 0 0 12px var(--bad); }
.need-i.tone-warn::before { background: var(--warn); opacity: 1; }
.need-i.tone-info::before { background: var(--accent); opacity: .9; }
.need-i:hover, .need-i:focus-visible { background: var(--glass-strong); border-color: var(--glass-line); transform: translateX(3px); outline: none; }
.need-n { font: 600 12px/1 var(--font-display); color: var(--muted); width: 22px; font-variant-numeric: tabular-nums; }
.need-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.need-ic svg { width: 18px; height: 18px; }
.need-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.need-main b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need-main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.need-i .btn { flex: none; }
.need-i.is-done { opacity: .35; filter: saturate(0); transform: translateX(14px); pointer-events: none; }
.need-i.is-done .need-main b { text-decoration: line-through; }
.need-more { margin: 12px 4px 0; font-size: 13px; color: var(--muted); }
.need-more a { color: var(--accent); font-weight: 600; text-decoration: none; }
.cc-clear, .tl-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 34px 16px; color: var(--muted); }
.cc-clear b, .tl-empty b { color: var(--ink); font-size: 16px; }
.cc-clear small, .tl-empty small { font-size: 13px; max-width: 300px; }
.cc-clear-ic, .tl-empty svg { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: 6px; animation: ccFloat 5s ease-in-out infinite; }
.cc-clear-ic svg { width: 24px; height: 24px; }
.tl-empty svg { padding: 14px; background: var(--warn-soft); color: var(--warn); }
@keyframes ccFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* today timeline */
.tl { position: relative; display: grid; gap: 2px; }
.tl-i { position: relative; display: grid; grid-template-columns: 70px 18px 1fr; align-items: center; gap: 8px; padding: 9px 8px; border-radius: 14px; cursor: pointer; transition: background .25s, opacity .3s; }
.tl-i:hover, .tl-i:focus-visible { background: var(--glass-strong); outline: none; }
.tl-i::after { content: ''; position: absolute; left: 94px; top: 0; bottom: 0; width: 2px; background: var(--faint); z-index: 0; }
.tl-i:first-child::after { top: 50%; } .tl-i:last-of-type::after { bottom: 50%; }
.tl-t { font-size: 12.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; justify-self: center; background: var(--world); border: 2.5px solid var(--accent); }
.k-task .tl-dot { border-color: var(--warn); } .k-post .tl-dot { border-color: #C13584; }
.tl-main { min-width: 0; display: grid; gap: 2px; }
.tl-main b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-i.is-past { opacity: .5; } .tl-i.is-past .tl-dot { background: var(--faint); border-color: var(--muted); }
.tl-now { position: relative; display: flex; align-items: center; margin: 4px 0 4px 64px; height: 18px; }
.tl-now::before { content: ''; position: absolute; left: 22px; right: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #00C3FF, transparent); }
.tl-now::after { content: ''; position: absolute; left: 25px; width: 10px; height: 10px; border-radius: 50%; background: #00C3FF; box-shadow: 0 0 0 4px rgba(0, 195, 255, .2), 0 0 16px #00C3FF; animation: ccNow 2.4s ease-in-out infinite; }
.tl-now span { position: relative; margin-left: 44px; padding: 2px 8px; border-radius: 999px; font: 600 10.5px/1.3 var(--font); letter-spacing: .04em; color: #0090C0; background: rgba(0, 195, 255, .12); }
[data-theme="dark"] .tl-now span { color: #7FE3FF; }
@keyframes ccNow { 0%, 100% { box-shadow: 0 0 0 4px rgba(0, 195, 255, .2), 0 0 16px #00C3FF; } 50% { box-shadow: 0 0 0 8px rgba(0, 195, 255, .05), 0 0 22px #00C3FF; } }
.tl-later { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--faint); display: grid; gap: 4px; }
.tl-later > small { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 4px; }
.tl-l { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 7px 8px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 13.5px; transition: background .2s; }
.tl-l:hover { background: var(--glass-strong); }
.tl-l span { color: var(--muted); font-size: 12.5px; }
.tl-l b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* client tiles rail */
.cc-rail-nav { display: flex; align-items: center; gap: 6px; }
.cc-rail-nav .icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--glass-line); color: var(--ink); cursor: pointer; transition: transform .3s var(--spring); }
.cc-rail-nav .icon-btn:hover { transform: scale(1.08); }
.cc-rail-nav .icon-btn svg { width: 16px; height: 16px; }
.cc-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 10px; margin: -6px -2px -10px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cc-rail::-webkit-scrollbar { display: none; }
.cc-tile { position: relative; isolation: isolate; scroll-snap-align: start; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 18px 10px 14px; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--glass-strong); border: 1px solid var(--glass-line); overflow: hidden; transition: transform .45s var(--spring), border-color .3s, box-shadow .3s; }
.cc-glow { position: absolute; inset: -40% -20% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); opacity: .35; transition: opacity .35s, transform .6s var(--ease); }
[data-theme="dark"] .cc-glow { opacity: .5; }
.cc-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 55%, var(--glass-line)); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 70%, transparent); }
.cc-tile:hover .cc-glow { opacity: .75; transform: scale(1.1); }
.cc-tile .cav { box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--c) 80%, transparent); }
.cc-tile b { font-size: 13.5px; font-weight: 600; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile small { font-size: 11.5px; color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-tile small .bad { color: var(--bad); font-weight: 600; }
.cc-pulse { position: absolute; top: 14px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: ccPulse 2.2s ease-out infinite; }
@keyframes ccPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 12px transparent; } }

/* money */
.cc-money .cc-money-l { display: block; font-size: 12px; opacity: .8; margin-bottom: 2px; }
.cc-money .big { font-size: 40px; }
.cc-bar { position: relative; height: 8px; margin: 18px 0 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.cc-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #fff, #9EEBFF); box-shadow: 0 0 14px rgba(255, 255, 255, .6); transition: width 1.2s var(--ease); }
.cc-money-f { display: flex; justify-content: space-between; font-size: 13px; opacity: .92; }
.cc-money-f a { color: #fff; font-weight: 600; text-decoration: none; }

@media (max-width: 760px) {
  .cc-mast { padding-bottom: 18px; gap: 18px; }
  .cc-stats { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .cc-stat { min-width: 0; padding: 12px 10px 10px; border-radius: 16px; }
  .cc-stat strong { font-size: 22px; } .cc-stat small { font-size: 11px; }
  .need-n { display: none; }
  .need-i { gap: 12px; padding: 10px 8px 10px 12px; }
  .tl-i { grid-template-columns: 62px 18px 1fr; } .tl-i::after { left: 86px; } .tl-now { margin-left: 56px; }
  .cc-rail { grid-auto-columns: 132px; }
  .cc-rail-nav .icon-btn { display: none; }
  .cc-head { font-size: 28px; }
}

/* ⌘K — two-pane palette with a live preview */
.palette { width: min(820px, calc(100vw - 32px)); padding: 0; overflow: hidden; border-radius: 26px; }
.palette input { height: 62px; padding: 0 22px; font-size: 19px; color: var(--ink); }
.pal-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-top: 1px solid var(--faint); }
.palette ul { border-top: 0; padding: 8px; max-height: min(56vh, 460px); }
.palette li.pal-sec { padding: 12px 12px 4px; cursor: default; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: none !important; }
.palette li .pal-ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.palette li .pal-ic svg { width: 16px; height: 16px; }
.palette li.is-active .pal-ic { background: var(--accent); border-color: transparent; }
.palette li.is-active .pal-ic svg { color: #fff; }
.palette li .cav { flex: none; }
.palette li > span.pl { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette li.is-smart .pal-ic { background: linear-gradient(135deg, #00C3FF, var(--accent)); border-color: transparent; }
.palette li.is-smart .pal-ic svg { color: #fff; }
.pal-prev { border-left: 1px solid var(--faint); padding: 20px; background: color-mix(in srgb, var(--glass-strong) 60%, transparent); min-height: 260px; display: flex; flex-direction: column; gap: 12px; }
.pal-prev:empty { display: none; }
.pal-prev .pp-k { font: 600 10.5px/1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pal-prev h4 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; word-break: break-word; }
.pal-prev p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pal-prev dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13px; }
.pal-prev dt { color: var(--muted); } .pal-prev dd { margin: 0; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pal-prev .pp-go { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pal-prev .pp-go b { color: var(--ink); }
.pal-prev .pp-hero { display: flex; align-items: center; gap: 12px; }
.pal-foot { display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--faint); font-size: 11.5px; color: var(--muted); }
.pal-foot kbd, .pal-prev kbd { font: 600 10.5px/1 var(--font); padding: 3px 6px; border-radius: 6px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); }
.pal-foot .sp { margin-left: auto; }
@media (max-width: 760px) {
  .palette { top: 10px; border-radius: 22px; }
  .pal-body { grid-template-columns: 1fr; }
  .pal-prev { display: none; }
  .pal-foot { display: none; }
}

/* toasts as glass pills; wins glow */
.toast { display: flex; align-items: center; gap: 10px; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.toast.win { background: linear-gradient(135deg, #0A1A3F, #12347A); color: #fff; box-shadow: 0 16px 40px -14px rgba(0, 120, 255, .55), 0 0 0 1px rgba(0, 195, 255, .35); }
.toast.win::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex: none; background: #00C3FF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow: 0 0 14px #00C3FF; animation: winPop .6s var(--spring) both; }
@keyframes winPop { from { transform: scale(0) rotate(-40deg); } to { transform: none; } }

/* motion: page direction + card lift-in */
#view.page-enter.from-right { animation: pgInR .5s var(--ease) both; }
#view.page-enter.from-left { animation: pgInL .5s var(--ease) both; }
@keyframes pgInR { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes pgInL { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .cc-head em, .tl-now::after, .cc-pulse, .cc-clear-ic, .tl-empty svg { animation: none !important; }
  .cc-tile, .need-i, .cc-stat { transition: none !important; }
  #view.page-enter.from-right, #view.page-enter.from-left { animation: none !important; }
}

/* v112 empty states: title + hint */
.empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
.empty small { font-size: 13px; max-width: 320px; line-height: 1.5; margin-top: -4px; }

/* ═══ v113 — visual Home: KPI tiles, charts, day strip, quick notes, money lock ═══ */
:root { --vz-1: #2a78d6; --vz-2: #eb6834; --vz-3: #1baf7a; --vz-n: #b9bcc6; --vz-grid: rgba(15, 23, 42, .08); --vz-ax: #6b7280; }
[data-theme="dark"] { --vz-1: #3987e5; --vz-2: #d95926; --vz-3: #199e70; --vz-n: #4b5163; --vz-grid: rgba(255, 255, 255, .08); --vz-ax: #9aa3b5; }
.vz-s1 { fill: var(--vz-1); background: var(--vz-1); } .vz-s2 { fill: var(--vz-2); background: var(--vz-2); } .vz-s3 { fill: var(--vz-3); background: var(--vz-3); } .vz-n { fill: var(--vz-n); background: var(--vz-n); }
.vz-muted { fill: var(--vz-n); }
.vz-box { width: 100%; overflow: hidden; }
.vz { display: block; max-width: 100%; height: auto; }
.vz-grid { stroke: var(--vz-grid); stroke-width: 1; }
.vz-ax { fill: var(--vz-ax); font: 500 11px var(--font); font-variant-numeric: tabular-nums; }
.vz-hit { fill: transparent; cursor: default; }
.vz-hit.on { fill: var(--vz-grid); }
.vz-tip { position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none; min-width: 140px; padding: 10px 12px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .35); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); font-size: 12.5px; color: var(--ink); display: grid; gap: 4px; }
.vz-tip b { font-weight: 600; } .vz-tip span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.vz-tip span i { width: 8px; height: 8px; border-radius: 2px; } .vz-tip em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.vz-seg { display: flex; gap: 2px; height: 14px; border-radius: 6px; overflow: hidden; margin: 2px 0 10px; }
.vz-seg i { min-width: 6px; transition: filter .2s; } .vz-seg i:hover { filter: brightness(1.12); }
.vz-seg i:first-child { border-radius: 4px 0 0 4px; } .vz-seg i:last-child { border-radius: 0 4px 4px 0; } .vz-seg i:only-child { border-radius: 4px; }
.vz-seg .vz-empty { background: var(--faint); }
.vz-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.vz-leg span { display: inline-flex; align-items: center; gap: 7px; }
.vz-leg i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.vz-leg b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.vz-leg-top { margin: 0; }
.cc-need .vz-leg { margin-bottom: 14px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.kpi { display: grid; gap: 8px; padding: 16px 18px; border-radius: 22px; text-decoration: none; color: var(--ink); background: var(--glass); border: 1px solid var(--glass-line); background-image: var(--glass-sheen); box-shadow: inset 0 1px 0 var(--glass-top, rgba(255,255,255,.6)), var(--glass-shadow); -webkit-backdrop-filter: blur(var(--blur, 24px)) saturate(160%); backdrop-filter: blur(var(--blur, 24px)) saturate(160%); transition: transform .35s var(--spring), border-color .25s; }
.kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-line)); }
.kpi small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; min-height: 36px; }
.kpi strong { font: 600 34px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpi.is-bad strong { color: var(--bad); }
.kpi-d { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-d.up { color: var(--ok); } .kpi-d.down { color: var(--bad); }
.kpi-mini { display: flex; gap: 2px; height: 6px; border-radius: 4px; overflow: hidden; }
.kpi-mini i { min-width: 3px; }
.kpi-flag { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.kpi-flag.ok { background: var(--ok-soft); color: var(--ok); } .kpi-flag svg { width: 18px; height: 18px; }
.vz-spark { display: block; }

/* day strip */
.day { margin: 4px 0 14px; }
.day-track { position: relative; height: 34px; border-radius: 12px; background: var(--faint); }
.day-past { position: absolute; inset: 0 auto 0 0; border-radius: 12px 0 0 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.day-now { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: #00C3FF; box-shadow: 0 0 12px #00C3FF; }
.day-now::before { content: ''; position: absolute; top: -3px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: #00C3FF; }
.day-pin { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 9px; border: 2px solid var(--world); display: grid; place-items: center; color: #fff; background: var(--vz-1); cursor: pointer; padding: 0; transition: transform .3s var(--spring); }
.day-pin svg { width: 13px; height: 13px; } .day-pin:hover { transform: scale(1.18); z-index: 2; }
.day-pin.k-task { background: var(--vz-2); } .day-pin.k-post { background: var(--vz-3); }
.day-pin.is-past { opacity: .45; }
.day-hours { position: relative; height: 18px; margin-top: 4px; }
.day-hours span { position: absolute; transform: translateX(-50%); font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.k-task .tl-dot { border-color: var(--vz-2); } .k-post .tl-dot { border-color: var(--vz-3); } .k-event .tl-dot { border-color: var(--vz-1); }
.cc-today .tl-i::after { left: 94px; }

/* meters (client workload, social reach) */
.meters { display: grid; gap: 4px; margin-bottom: 12px; }
.meter { display: grid; grid-template-columns: 26px minmax(0, 7.5em) 1fr auto; align-items: center; gap: 10px; padding: 6px 6px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.meter:hover { background: var(--glass-strong); }
.meter-n { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; background: var(--faint); overflow: hidden; }
.meter-bar i { height: 100%; border-radius: 0; } .meter-bar i:last-child { border-radius: 0 4px 4px 0; }
.meter > b { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: right; display: flex; gap: 6px; align-items: baseline; }
.meter em { font-style: normal; font-size: 11px; font-weight: 600; } .meter em.up { color: var(--ok); } .meter em.down { color: var(--bad); }

/* quick notes */
.qn { display: flex; flex-direction: column; }
.qn-compose { border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); padding: 10px 12px; transition: border-color .2s, box-shadow .2s; }
.qn-compose:focus-within { border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.qn-new { width: 100%; border: 0; outline: 0; resize: none; background: transparent; font: 400 14px/1.5 var(--font); color: var(--ink); min-height: 64px; }
.qn-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.qn-bar small { font-size: 11.5px; color: var(--muted); }
.qn-list { display: grid; gap: 8px; margin-top: 12px; overflow: auto; max-height: 520px; scrollbar-width: thin; }
.qn-item { position: relative; padding: 12px 14px 10px; border-radius: 16px; background: color-mix(in srgb, #FFD66B 22%, var(--glass-strong)); border: 1px solid color-mix(in srgb, #FFC93C 30%, var(--glass-line)); transition: opacity .25s, transform .25s, box-shadow .3s; }
[data-theme="dark"] .qn-item { background: color-mix(in srgb, #FFD66B 9%, var(--glass-strong)); }
.qn-item.saved { box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 45%, transparent); }
.qn-item.gone { opacity: 0; transform: translateX(16px) scale(.98); }
.qn-item p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; outline: none; min-height: 1.5em; }
.qn-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.qn-meta small { font-size: 11px; color: var(--muted); }
.qn-del { width: 24px; height: 24px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s, background .2s; }
.qn-del svg { width: 14px; height: 14px; } .qn-item:hover .qn-del, .qn-del:focus-visible { opacity: 1; } .qn-del:hover { background: var(--bad-soft); color: var(--bad); }
.qn-empty { display: grid; justify-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-align: center; padding: 28px 12px; }
.qn-empty svg { width: 46px; height: 46px; padding: 12px; border-radius: 15px; background: color-mix(in srgb, #FFD66B 30%, transparent); color: #B7860B; }
.qn-empty b { color: var(--ink); font-size: 14px; }
@media (hover: none) { .qn-del { opacity: 1; } }

/* money */
.money-lock { display: flex; align-items: center; gap: 16px; padding: 8px 4px; flex-wrap: wrap; }
.money-lock > div { flex: 1; min-width: 180px; display: grid; gap: 3px; }
.money-lock b { font-size: 16px; } .money-lock small { font-size: 13px; color: var(--muted); }
.money-lock-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.money-lock-ic svg { width: 22px; height: 22px; }
.money-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.money-figs > div { padding: 12px 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); display: grid; gap: 4px; }
.money-figs small { font-size: 12px; color: var(--muted); } .money-figs strong { font-size: 20px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.money-figs .bad strong { color: var(--bad); }
.cc-money2 .vz-leg-top { margin-bottom: 6px; }

@media (max-width: 900px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .kpis { gap: 10px; } .kpi { padding: 14px; border-radius: 18px; } .kpi strong { font-size: 28px; }
  .vz-spark { width: 70px; }
  .qn { grid-row: auto !important; }
  .money-figs { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 26px minmax(0, 6em) 1fr auto; }
}

/* ═══ v114 — notes side panel, assignees, board people filter ═══ */
.notes-dock { display: none; }
@media (min-width: 1280px) { body.notes-open .os { grid-template-columns: calc(var(--dock-w) + 36px) minmax(0, 1fr) 360px; } }
body.notes-open .notes-dock { display: block; position: sticky; top: 22px; height: calc(100vh - 44px); margin: 22px 22px 22px 0; z-index: 20; animation: ndIn .45s var(--ease) both; }
@keyframes ndIn { from { opacity: 0; transform: translateX(24px); } }
.nd-panel { height: 100%; border-radius: 30px; padding: 18px; display: flex; flex-direction: column; overflow: hidden; }
.nd-panel .card-head h3 { display: flex; align-items: center; gap: 8px; }
.nd-panel .card-head h3 svg { width: 18px; height: 18px; color: #C9930A; }
.nd-h { display: flex; align-items: center; gap: 8px; }
.nd-close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; }
.nd-close svg { width: 16px; height: 16px; }
.nd-panel .qn-list { flex: 1; max-height: none; min-height: 0; }
.nd-foot { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 11.5px; color: var(--muted); }
.nd-foot svg { width: 13px; height: 13px; }
.nd-tab { position: fixed; right: 0; top: 50%; z-index: 60; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 9px; border-radius: 16px 0 0 16px; border: 1px solid var(--glass-line); border-right: 0; color: var(--ink); cursor: pointer; transition: padding .3s var(--spring), background .2s; }
.nd-tab:hover { padding-right: 14px; }
.nd-tab svg { width: 18px; height: 18px; color: #C9930A; }
.nd-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; }
body.notes-open .nd-tab { display: none; }
#notes-btn.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
@media (max-width: 1279px) {
  body.notes-open .notes-dock { position: fixed; top: 14px; right: 14px; bottom: 14px; height: auto; width: min(360px, calc(100vw - 28px)); margin: 0; z-index: 92; }
  body.notes-open .nd-panel { background: color-mix(in srgb, var(--world) 82%, transparent); -webkit-backdrop-filter: blur(30px) saturate(170%); backdrop-filter: blur(30px) saturate(170%); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .35); }
}
@media (max-width: 640px) {
  body.notes-open .notes-dock { top: auto; left: 10px; right: 10px; bottom: 96px; width: auto; height: min(68vh, 600px); }
  .nd-tab { top: auto; bottom: 120px; transform: none; padding: 12px 8px; }
  #notes-btn .lbl { display: none; }
}

/* assignee picker */
.who { display: flex; flex-wrap: wrap; gap: 8px; }
.who-b { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: 500 13px var(--font); cursor: pointer; transition: background .2s, border-color .2s, transform .25s var(--spring); }
.who-b:hover { transform: translateY(-1px); }
.who-b.is-on { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }
.who-b.is-on b::after { content: ' ✓'; color: var(--accent); }
.who-b b { font-weight: 600; }
.who-b:disabled { cursor: default; opacity: .8; }
.vis-pills button { display: inline-flex; align-items: center; gap: 6px; }
.vis-pills svg { width: 15px; height: 15px; }
.field .hint { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; color: var(--muted); line-height: 1.45; }

/* avatars on cards */
.pstack { display: inline-flex; margin-left: auto; padding-left: 6px; }
.pstack .pav { margin-left: -6px; box-shadow: 0 0 0 2px var(--world); }
.pstack .pav:first-child { margin-left: 0; }
.pav.more { background: var(--faint); color: var(--ink); }
.tcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tc-lock { display: inline-grid; color: var(--muted); } .tc-lock svg { width: 13px; height: 13px; }

/* board people filter */
.who-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -4px 0 18px; }
.who-filter .pills .n { margin-left: 4px; font-size: 11px; opacity: .65; font-variant-numeric: tabular-nums; }
.who-people { display: flex; gap: 6px; flex-wrap: wrap; }
.who-p { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font: 500 13px var(--font); cursor: pointer; transition: background .2s, transform .25s var(--spring); }
.who-p:hover { transform: translateY(-1px); }
.who-p b { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.who-p.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); border-color: transparent; }
.who-p.is-on b { color: inherit; opacity: .7; }

.qn-list { align-content: start; }
.qn-empty { align-content: start; }

/* ═══ v115 — smarter board ═══ */
.icon-only { width: 44px; padding: 0; justify-content: center; }
.group-pills { align-items: center; }
.group-pills .gp-l { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 6px 0 10px; }
.who-p.is-drop { box-shadow: 0 0 0 3px var(--accent); transform: scale(1.06); background: var(--accent-soft); }
body.is-dragging .who-p[data-drop-assign] { outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }

/* cards */
.tcard { position: relative; }
.tc-check { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.tc-bar { flex: 1; height: 5px; border-radius: 4px; background: var(--faint); overflow: hidden; }
.tc-bar i { display: block; height: 100%; border-radius: 4px; background: var(--vz-3); transition: width .5s var(--ease); }
.tc-bar.big { height: 8px; margin: 2px 0 10px; }
.tc-check small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.tc-foot .late-tag { margin: 0; }
.tc-age { margin-left: auto; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-age.is-stuck { color: var(--warn); font-weight: 600; }
.tcard.stuck { border-color: color-mix(in srgb, var(--warn) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--warn) 30%, transparent), 0 10px 26px -18px var(--warn); }
.tc-quick { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .25s var(--spring); }
.tcard:hover .tc-quick, .tcard:focus-within .tc-quick { opacity: 1; transform: none; }
.tc-quick button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.tc-quick button:hover { background: var(--accent); color: #fff; border-color: transparent; }
.tc-quick svg { width: 14px; height: 14px; }
@media (hover: none) { .tc-quick { opacity: 1; transform: none; } }

/* WIP limits */
.lane-head .wip { font-style: normal; margin-left: 8px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 2px 6px; border-radius: 6px; background: var(--faint); }
.lane.over-wip { box-shadow: 0 0 0 2px color-mix(in srgb, var(--warn) 70%, transparent) inset, 0 0 28px -8px color-mix(in srgb, var(--warn) 60%, transparent); }
.wip-warn { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 600; color: color-mix(in srgb, var(--warn) 80%, var(--ink)); background: var(--warn-soft); }
.wip-warn svg { width: 13px; height: 13px; flex: none; }

/* swimlanes */
.swim { margin-bottom: 14px; }
.swim-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; margin-bottom: 8px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); font: 600 15px var(--font); cursor: pointer; text-align: left; }
.swim-head:hover { background: var(--glass); }
.swim-meta { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.swim-chev { width: 16px; height: 16px; margin-left: auto; transform: rotate(90deg); transition: transform .25s var(--ease); color: var(--muted); }
.swim.is-closed .swim-chev { transform: rotate(0deg); }
.swim.is-closed .board-swim, .swim.is-closed .swim-body { display: none; }
.swim-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--faint); color: var(--muted); }
.swim-ic svg { width: 15px; height: 15px; }
.board-swim { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.board-swim .lane { min-height: 120px; }

/* quick menu + bell menu */
.qmenu { position: fixed; z-index: 130; min-width: 200px; max-width: 320px; padding: 8px; border-radius: 16px; display: grid; gap: 2px; background: var(--glass-strong); box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); animation: qmIn .22s var(--spring) both; }
@keyframes qmIn { from { opacity: 0; transform: translateY(-4px) scale(.97); } }
.qmenu > b { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 6px 10px 4px; }
.qmenu > button:not(.btn) { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: 500 13.5px var(--font); text-align: left; cursor: pointer; }
.qmenu > button:not(.btn):hover { background: var(--accent-soft); }
.qmenu > button.is-on { background: var(--accent-soft); font-weight: 600; }
.qmenu > button.is-on::after { content: '✓'; margin-left: auto; color: var(--accent); }
.qmenu > button small { margin-left: auto; color: var(--muted); font-size: 12px; }
.qmenu .qm-date input { width: 100%; height: 38px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); padding: 0 10px; font: inherit; }
.qmenu .qm-save { margin-top: 6px; justify-content: center; }
.bell { position: relative; }
.bell-n { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 10px/17px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--world); }
.bell-menu { width: 340px; max-width: calc(100vw - 16px); max-height: 70vh; overflow: auto; }
.bell-i { align-items: flex-start !important; }
.bell-i.unread { background: color-mix(in srgb, var(--accent) 8%, transparent) !important; }
.bell-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.bell-ic svg { width: 15px; height: 15px; }
.bell-ic.k-returned { background: var(--warn-soft); color: var(--warn); } .bell-ic.k-done { background: var(--ok-soft); color: var(--ok); }
.bell-t { flex: 1; min-width: 0; display: grid; gap: 2px; } .bell-t b { font-size: 13px; font-weight: 600; } .bell-t small { font-size: 12px; color: var(--muted); }
.bell-a { margin-left: 6px !important; font-size: 11px !important; }

/* checklist in the editor */
.ck .ck-list { display: grid; gap: 4px; margin-bottom: 8px; }
.ck-i { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--glass-strong); border: 1px solid var(--glass-line); font-size: 14px; font-weight: 400; cursor: pointer; }
.ck-i input { width: 18px; height: 18px; flex: none; }
.ck-i span { flex: 1; min-width: 0; color: var(--ink); }
.ck-i.is-done span { text-decoration: line-through; color: var(--muted); }
.ck-del { width: 24px; height: 24px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: .6; }
.ck-del:hover { opacity: 1; background: var(--bad-soft); color: var(--bad); } .ck-del svg { width: 13px; height: 13px; }
.ck-add { display: flex; gap: 8px; } .ck-add input { flex: 1; }

/* workload */
.wl-note { font-size: 13px; margin: -4px 0 14px; }
.wl-rows { display: grid; gap: 6px; }
.wl-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 120px 140px; align-items: center; gap: 16px; padding: 10px 12px; border: 1px solid transparent; border-radius: 16px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.wl-row:hover { background: var(--glass-strong); border-color: var(--glass-line); }
.wl-row.is-over { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.wl-who { display: flex; align-items: center; gap: 10px; min-width: 0; } .wl-who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-bar { position: relative; display: flex; gap: 2px; height: 14px; border-radius: 6px; background: var(--faint); }
.wl-bar i { height: 100%; } .wl-bar i:first-child { border-radius: 4px 0 0 4px; } .wl-bar i:last-of-type { border-radius: 0 4px 4px 0; }
.wl-cap { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; opacity: .55; }
.wl-cap-k { width: 2px !important; height: 12px !important; background: var(--ink); opacity: .55; border-radius: 1px !important; }
.wl-fig { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .wl-fig b { color: var(--ink); font-size: 15px; }
.wl-n { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* plan my day */
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); }
.plan-n { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; font: 700 15px var(--font-display); color: #fff; background: linear-gradient(135deg, #00C3FF, var(--accent)); }
.plan-main { flex: 1; min-width: 0; display: grid; gap: 2px; } .plan-main b { font-size: 15px; } .plan-main small { font-size: 12px; color: var(--muted); } .plan-main p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; }
.plan-act { display: flex; flex-direction: column; gap: 6px; }
.plan-src { display: flex; align-items: center; gap: 6px; margin: 14px 2px 0; font-size: 12px; color: var(--muted); } .plan-src svg { width: 14px; height: 14px; }
.plan-load { display: flex; align-items: center; gap: 12px; padding: 30px 6px; color: var(--muted); font-size: 14px; }
.orb-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .wl-row { grid-template-columns: 1fr auto; gap: 8px 12px; } .wl-bar { grid-column: 1 / -1; order: 3; } .wl-n { display: none; }
  .group-pills .gp-l { display: none; }
  .plan li { flex-wrap: wrap; } .plan-act { flex-direction: row; width: 100%; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) { .tc-quick, .qmenu, .orb-spin { transition: none; animation: none; } }

@media (max-width: 640px) { .greet b { display: none; } .greet { padding-right: 6px; } }

/* ═══ v116 — overdue strip + scrolling columns ═══ */
.board-v116 { grid-template-columns: repeat(3, minmax(240px, 1fr)) 64px; }
.board-swim { grid-template-columns: repeat(3, minmax(220px, 1fr)); }
@media (max-width: 1100px) { .board-v116 { grid-template-columns: repeat(3, minmax(240px, 1fr)) 64px; overflow-x: auto; } }

.od-strip { margin-bottom: 14px; padding: 6px 8px 8px; border-radius: 22px; background: color-mix(in srgb, var(--bad) 8%, var(--glass)); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); -webkit-backdrop-filter: blur(var(--blur, 24px)) saturate(160%); backdrop-filter: blur(var(--blur, 24px)) saturate(160%); }
.od-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 16px; background: transparent; color: var(--ink); font: 500 14px var(--font); text-align: left; cursor: pointer; }
.od-head:hover { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.od-head b { color: var(--bad); font-weight: 700; }
.od-n { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; display: inline-grid; place-items: center; background: var(--bad); color: #fff; font: 700 12px var(--font); font-variant-numeric: tabular-nums; }
.od-head small { color: var(--muted); font-size: 12px; }
.od-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 0 color-mix(in srgb, var(--bad) 60%, transparent); animation: ccPulse 2.2s ease-out infinite; --c: var(--bad); }
.od-peek { display: none; margin-left: auto; gap: 4px; }
.od-strip.is-closed .od-peek { display: inline-flex; }
.od-chev { width: 16px; height: 16px; margin-left: auto; color: var(--muted); transform: rotate(90deg); transition: transform .25s var(--ease); flex: none; }
.od-strip.is-closed .od-peek + .od-chev { margin-left: 8px; }
.od-strip.is-closed .od-chev { transform: rotate(0deg); }
.od-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 6px 6px 10px; scrollbar-width: thin; }
.od-row .tcard { scroll-snap-align: start; margin: 0; }
.od-strip.is-closed .od-row { display: none; }
.od-strip.no-drop { outline: 2px dashed var(--bad); outline-offset: -4px; }

/* columns: capped height, scroll inside, header stays put */
.board-v116 .lane, .board-swim .lane { max-height: max(360px, calc(100vh - 330px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--ink) 20%, transparent) transparent; }
.board-v116 .lane { min-height: 300px; }
.board-swim .lane { max-height: 440px; min-height: 120px; }
.board-v116 .lane-head, .board-swim .lane-head { position: sticky; top: -14px; z-index: 3; margin: -14px -14px 0; padding: 14px 20px 10px; border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: color-mix(in srgb, var(--world) 70%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.board-v116 .lane::-webkit-scrollbar, .board-swim .lane::-webkit-scrollbar { width: 6px; }
.board-v116 .lane::-webkit-scrollbar-thumb, .board-swim .lane::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 6px; }
.board-v116 .lane-done { max-height: max(360px, calc(100vh - 330px)); }
@media (max-width: 640px) { .board-v116 .lane, .board-swim .lane { max-height: 62vh; } .od-head small { display: none; } .od-row { grid-auto-columns: 78%; } }
@media (prefers-reduced-motion: reduce) { .od-dot { animation: none; } }

/* ═══ v117 — slim top bar: search pill, two icons, one personal menu; hides while scrolling down ═══ */
.topbar.tb2 { position: sticky; top: 12px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; transition: transform .45s var(--ease), opacity .3s; }
.topbar.tb2.tb-hidden { transform: translateY(calc(-100% - 24px)); opacity: 0; pointer-events: none; }
.tb-search { display: flex; align-items: center; gap: 10px; height: 44px; width: min(420px, 100%); padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--glass-line); color: var(--muted); font: 500 14px var(--font); cursor: pointer; text-align: left; transition: width .4s var(--ease), transform .3s var(--spring), border-color .2s; }
.tb-search:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--glass-line)); }
.tb-search .orb { width: 24px; height: 24px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #8FD3F4 35%, #5B5FEF 70%, #2A2F8F); box-shadow: 0 0 14px rgba(91, 141, 239, .45); }
.tb-search .tb-ph { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-search .kbd { font: 600 11px var(--font); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--glass-line); color: var(--muted); }
.tb-right { display: flex; align-items: center; gap: 8px; }
.tb-ic { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-line); display: grid; place-items: center; color: var(--ink); cursor: pointer; padding: 0; transition: transform .3s var(--spring), background .2s; }
.tb-ic:hover { transform: translateY(-1px); }
.tb-ic svg { width: 18px; height: 18px; }
.tb-ic.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
.tb-ic .bell-n { top: 2px; right: 2px; }
.tb-me { display: flex; align-items: center; gap: 4px; height: 44px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--glass-line); cursor: pointer; color: var(--muted); transition: transform .3s var(--spring); }
.tb-me:hover { transform: translateY(-1px); }
.tb-me .avatar, .me-h .avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font); color: #fff; }
.tb-chev { width: 14px; height: 14px; transform: rotate(90deg); }
.topbar.tb2.tb-scrolled .tb-search, .topbar.tb2.tb-scrolled .tb-ic, .topbar.tb2.tb-scrolled .tb-me { box-shadow: 0 12px 30px -16px rgba(15, 23, 42, .45); }
.me-menu { width: 260px; }
.me-h { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--faint); }
.me-h b { display: block; font-size: 14px; } .me-h small { font-size: 12px; color: var(--muted); }
.me-theme { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 6px; border-radius: 12px; background: var(--faint); }
.me-theme button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.me-theme button.is-on { background: var(--pill-dark); color: var(--pill-dark-ink); }
.me-theme svg { width: 15px; height: 15px; }
.qmenu > button svg, .me-link svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.me-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 13.5px var(--font); }
.me-link:hover { background: var(--accent-soft); }
@media (max-width: 640px) {
  .topbar.tb2 { top: 8px; gap: 8px; }
  .tb-search { width: auto; flex: 1; height: 42px; } .tb-search .kbd { display: none; }
  .tb-ic { width: 42px; height: 42px; } .tb-me { height: 42px; padding-right: 3px; } .tb-chev { display: none; }
}
@media (prefers-reduced-motion: reduce) { .topbar.tb2 { transition: none; } }

/* ═══ v118 — organised Settings + team photos ═══ */
.avatar.has-img { overflow: hidden; background: var(--glass-strong); }
.avatar.has-img img, .pav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-wrap { display: grid; gap: 26px; }
.set-gh { margin: 0 4px 12px; font: 600 11px/1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start;  grid-auto-flow: row dense; }
.set-tile { border-radius: 24px; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.set-tile.is-open { grid-column: 1 / -1; border-color: color-mix(in srgb, var(--accent) 35%, var(--glass-line)); box-shadow: var(--glass-shadow), 0 0 0 3px var(--accent-soft); }
.set-head { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.set-head:hover .set-ic { transform: scale(1.06); }
.set-ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .3s var(--spring); }
.set-ic svg { width: 20px; height: 20px; }
.set-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.set-t b { font-size: 15px; font-weight: 600; }
.set-t small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-badge { display: flex; margin-top: 4px; } .set-badge > * { transform: scale(.92); transform-origin: left center; }
.set-chev { width: 18px; height: 18px; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.set-tile.is-open .set-chev { transform: rotate(90deg); }
.set-body { display: none; padding: 0 18px 18px; border-top: 1px solid var(--faint); }
.set-tile.is-open .set-body { display: block; animation: setIn .35s var(--ease) both; }
@keyframes setIn { from { opacity: 0; transform: translateY(-6px); } }
.set-card { background: none !important; border: 0 !important; box-shadow: none !important; padding: 16px 0 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; margin: 0 !important; }
.set-card > .card-head h3 { display: none; }
.set-card > .card-head:not(:has(> :not(h3))) { display: none; }
/* team photos */
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.tp { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); text-align: center; }
.tp b { font-size: 14px; margin-top: 6px; } .tp small { font-size: 12px; color: var(--muted); }
.tp-av { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.tp-av .pav, .tp-av .avatar { box-shadow: 0 10px 24px -12px rgba(15, 23, 42, .5); }
.tp-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 0 0 3px var(--world); transition: transform .25s var(--spring); }
.tp-cam svg { width: 14px; height: 14px; } .tp-av:hover .tp-cam { transform: scale(1.12); }
.tp-av.me { margin-right: 4px; } .tp-av.me .tp-cam { width: 20px; height: 20px; } .tp-av.me .tp-cam svg { width: 11px; height: 11px; }
.tp-rm, .tp-hint { margin-top: 4px; font-size: 12px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.tp-rm:hover { color: var(--bad); background: var(--bad-soft); }
@media (max-width: 640px) { .set-grid { grid-template-columns: 1fr; } .set-head { padding: 14px; } .set-body { padding: 0 14px 14px; } }
@media (prefers-reduced-motion: reduce) { .set-tile.is-open .set-body { animation: none; } }

.tp-av .avatar, .me-h .avatar { display: grid; place-items: center; border-radius: 50%; color: #fff; font: 700 16px var(--font); overflow: hidden; }
.tp-av.me { flex: none; }

/* ═══ v119 — automatic WhatsApp messages ═══ */
.wa-rules { display: grid; gap: 10px; }
.wa-rule { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); transition: border-color .2s; }
.wa-rule.is-on { border-color: color-mix(in srgb, var(--ok) 45%, var(--glass-line)); }
.wa-rule b { display: block; font-size: 14px; } .wa-rule small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.wa-extra { margin-top: 8px; font-size: 13px; color: var(--ink-2, var(--ink)); }
.wa-sw { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; }
.wa-sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.wa-sw span { position: absolute; inset: 0; border-radius: 13px; background: var(--faint); transition: background .2s; }
.wa-sw span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--spring); }
.wa-sw input:checked + span { background: var(--ok); } .wa-sw input:checked + span::after { transform: translateX(18px); }
.wa-sw input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.wa-num input { width: 62px; height: 32px; padding: 0 8px; border-radius: 9px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); font: 600 13px var(--font); text-align: center; }
.wa-safe { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 12px; }
.wa-safe > div { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 6%, transparent); font-size: 13px; }
.wa-safe b { display: flex; align-items: center; gap: 6px; font-size: 13px; } .wa-safe b svg { width: 15px; height: 15px; color: var(--accent); }
.wa-safe select { height: 32px; border-radius: 9px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); padding: 0 8px; font: 600 13px var(--font); }
.wa-log { margin-top: 18px; } .wa-log > b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.wa-log .row .end { display: flex; align-items: center; gap: 8px; } .wa-log .row .end small { font-size: 11.5px; color: var(--muted); }

/* ═══ v121 — email app ═══ */
.mail { display: grid; grid-template-columns: 230px 360px minmax(0, 1fr); gap: 16px; height: calc(100vh - 190px); min-height: 560px; }
.mail-side, .mail-list, .mail-read { min-height: 0; border-radius: 24px; }
.mail-side { padding: 14px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mail-compose { width: 100%; justify-content: center; margin-bottom: 10px; }
.mail-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 4px; }
.mail-box { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: 500 13.5px var(--font); text-align: left; cursor: pointer; }
.mail-box b { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-box svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mail-box:hover { background: var(--glass-strong); }
.mail-box.is-on { background: var(--accent-soft); } .mail-box.is-on b { font-weight: 700; } .mail-box.is-on svg { color: var(--accent); }
.mail-box em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--accent); color: #fff; }
.mail-warn { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--bad); color: #fff; font: 700 10px var(--font); }
.mail-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; } .mail-dot.big { width: 14px; height: 14px; }
.mail-sync { margin-top: auto; padding-top: 12px; display: grid; gap: 4px; } .mail-sync small { font-size: 11.5px; color: var(--muted); padding: 0 8px; }
.mail-sync .btn { justify-content: flex-start; }
.mail-list { display: flex; flex-direction: column; padding: 12px; }
.mail-list .search { height: 42px; margin-bottom: 10px; }
.mail-items { overflow-y: auto; display: grid; gap: 2px; align-content: start; margin: 0 -4px; padding: 0 4px; }
.mail-it { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 11px 10px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; position: relative; }
.mail-it:hover { background: var(--glass-strong); }
.mail-it.is-on { background: var(--accent-soft); }
.mail-it.unread::before { content: ''; position: absolute; left: 2px; top: 24px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.mail-it-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.mail-it-top { display: flex; gap: 8px; align-items: baseline; } .mail-it-top b { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-it.unread .mail-it-top b, .mail-it.unread .mail-it-sub { font-weight: 700; }
.mail-it-top small { font-size: 11.5px; color: var(--muted); flex: none; }
.mail-it-sub { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mail-it-sub .star { font-style: normal; color: #E8A400; margin-right: 4px; }
.mail-it-snip { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mail-it-tags { display: flex; gap: 6px; align-items: center; margin-top: 3px; } .mail-it-tags:empty { display: none; }
.mail-tag { font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 6px; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent); }
.mail-tag.client { --c: var(--ok); } .mail-clip { font-size: 12px; }
.mail-more { margin: 8px auto; }
.mail-read { display: flex; flex-direction: column; overflow-y: auto; padding: 0 0 18px; }
.mail-rh { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px 12px; background: color-mix(in srgb, var(--world) 75%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--faint); }
.mail-rh h2 { flex: 1 1 260px; min-width: 0; margin: 0; font-size: 19px; line-height: 1.3; }
.mail-acts { display: flex; gap: 6px; align-items: center; } .mail-acts .icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); cursor: pointer; font-size: 16px; }
.mail-acts .icon-btn svg { width: 15px; height: 15px; }
.mail-back { display: none; }
.mail-meta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 20px 6px; } .mail-meta > div { flex: 1; min-width: 0; } .mail-meta b { font-size: 14.5px; } .mail-meta small { color: var(--muted); font-size: 12.5px; }
.mail-to { display: block; margin-top: 2px; } .mail-date { flex: none; }
.mail-client { display: inline-flex; align-items: center; gap: 8px; margin: 4px 20px 6px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--ok-soft); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; align-self: flex-start; }
.mail-client small { color: var(--muted); font-weight: 500; }
.mail-thread { margin: 8px 20px; padding: 8px; border-radius: 14px; background: var(--glass-strong); display: grid; gap: 2px; } .mail-thread > small { font-size: 11px; color: var(--muted); padding: 2px 8px 4px; }
.mail-th { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: 13px var(--font); }
.mail-th:hover, .mail-th.is-on { background: var(--accent-soft); } .mail-th b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mail-th span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mail-th small { color: var(--muted); }
.mail-frame { width: calc(100% - 40px); margin: 10px 20px; min-height: 200px; border: 1px solid var(--faint); border-radius: 16px; background: #fff; }
.mail-atts { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 20px; }
.mail-att { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); text-decoration: none; font-size: 13px; } .mail-att small { color: var(--muted); }
.mail.is-empty { display: block; }
.mail-setup { max-width: 560px; margin: 40px auto; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 36px; } .mail-setup h2 { margin: 6px 0 0; } .mail-setup p { color: var(--muted); margin: 0 0 8px; line-height: 1.55; }
.mail-setup-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(135deg, #00C3FF, var(--accent)); color: #fff; } .mail-setup-ic svg { width: 28px; height: 28px; }
.page-actions .pills .n { margin-left: 4px; font-size: 11px; opacity: .7; }
/* compose */
.mc { display: grid; gap: 10px; }
.mc-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--faint); }
.mc-row[hidden], .mc-fill[hidden] { display: none !important; }
.mc-row > span { width: 64px; flex: none; font-size: 13px; color: var(--muted); }
.mc-row select, .mc-row > input { flex: 1; min-width: 0; height: 38px; border: 0; background: transparent; color: var(--ink); font: 500 14px var(--font); outline: none; }
#mc-subject { font-weight: 600; font-size: 15px; }
.mc-chips { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mc-chips input { flex: 1; min-width: 160px; height: 32px; border: 0; background: transparent; color: var(--ink); font: 14px var(--font); outline: none; }
.mc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--accent-soft); font-size: 13px; font-weight: 500; }
.mc-chip button { width: 18px; height: 18px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.mc-chip.att { background: var(--glass-strong); border: 1px solid var(--glass-line); } .mc-chip small { color: var(--muted); }
.mc-link { border: 0; background: none; color: var(--accent); font: 600 12.5px var(--font); cursor: pointer; }
.mc-tpl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
.mc-tpl select { flex: 1 1 200px; height: 38px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); padding: 0 10px; font: 500 13.5px var(--font); }
.mc-fill { padding: 12px; border-radius: 16px; background: var(--warn-soft); } .mc-fill > b { display: block; font-size: 13px; margin-bottom: 8px; }
.mc-fill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.mc-fill label { display: grid; gap: 3px; font-size: 11.5px; color: var(--muted); text-transform: capitalize; } .mc-fill input { height: 36px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--world); color: var(--ink); padding: 0 10px; font: 14px var(--font); }
.mc-tools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.mc-tools button, .mc-attach { min-width: 34px; height: 32px; padding: 0 9px; border: 1px solid var(--glass-line); border-radius: 9px; background: var(--glass-strong); color: var(--ink); cursor: pointer; font: 13px var(--font); display: inline-flex; align-items: center; justify-content: center; }
.mc-tools svg { width: 14px; height: 14px; } .mc-attach { margin-left: auto; font-weight: 600; }
.mc-editor { min-height: 260px; max-height: 50vh; overflow-y: auto; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--glass-line); background: #fff; color: #1B2433; font: 15px/1.6 -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif; outline: none; }
.mc-editor:focus { border-color: color-mix(in srgb, var(--accent) 50%, var(--glass-line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.mc-editor a { color: #2a5bd7; } .mc-editor blockquote { margin: 8px 0; padding-left: 12px; border-left: 3px solid #d5dbe6; color: #5b6577; }
.mc-atts { display: flex; flex-wrap: wrap; gap: 6px; } .mc-atts:empty { display: none; }
.mc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.mb-colors { display: flex; gap: 8px; } .mb-colors button { width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 2px var(--world); } .mb-colors button.is-on { box-shadow: 0 0 0 2px var(--world), 0 0 0 4px var(--ink); }
.mb-adv summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--accent); }
.mb-test { display: grid; gap: 6px; padding: 12px; border-radius: 14px; background: var(--glass-strong); font-size: 13px; } .mb-test .ok { color: var(--ok); font-weight: 600; } .mb-test .bad { color: var(--bad); font-weight: 600; }
@media (max-width: 1180px) { .mail { grid-template-columns: 200px 300px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .mail { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .mail-side { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; padding: 8px; gap: 6px; } .mail-side .mail-sec, .mail-side .mail-sync small { display: none; }
  .mail-side .mail-box { width: auto; flex: none; } .mail-compose { width: auto; margin: 0; } .mail-sync { margin: 0; padding: 0; display: flex; }
  .mail-list { max-height: 70vh; } .mail-read { display: none; }
  .mail.reading .mail-list, .mail.reading .mail-side { display: none; } .mail.reading .mail-read { display: flex; }
  .mail-back { display: grid; } .mail-th { grid-template-columns: 90px 1fr auto; }
}

/* v122 — mailbox form: name + fixed domain */
.mb-addr { display: flex; align-items: center; height: 48px; border-radius: 14px; border: 1px solid var(--glass-line); background: var(--glass); overflow: hidden; direction: ltr; }
.mb-addr:focus-within { border-color: color-mix(in srgb, var(--accent) 55%, var(--glass-line)); box-shadow: 0 0 0 4px var(--accent-soft); }
.mb-addr input { flex: 1; min-width: 0; height: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 14px; font: 600 15px var(--font); color: var(--ink); outline: none; text-align: right; }
.mb-addr b { padding: 0 14px 0 2px; font: 600 15px var(--font); color: var(--muted); white-space: nowrap; }
.mb-addr.is-custom { opacity: .45; }

/* ═══ v125 — client cards carousel + client dashboard ═══ */
.ccar { position: relative; outline: none; margin: 0 calc(var(--os-pad, 0px) * -1); }
.ccar__view { overflow: hidden; padding: 70px 0 60px; margin: -20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.ccar__track { display: flex; align-items: center; gap: 22px; width: max-content; transition: transform .75s cubic-bezier(.22, .9, .25, 1); touch-action: pan-y; cursor: grab; user-select: none; }
.ccar__track:active { cursor: grabbing; }
.pc { --d: 2; position: relative; isolation: isolate; flex: none; width: 236px; aspect-ratio: 2 / 3; border-radius: 26px; overflow: hidden; color: #fff; cursor: pointer;
  transform: scale(calc(1 - var(--d) * .08)) translateY(calc(var(--d) * 6px)); filter: saturate(calc(1 - var(--d) * .25)) brightness(calc(1 - var(--d) * .14));
  transition: transform .75s cubic-bezier(.22, .9, .25, 1), filter .6s, box-shadow .6s, outline-color .4s; outline: 3px solid transparent; outline-offset: 4px;
  box-shadow: 0 30px 60px -30px rgba(10, 20, 40, .6); }
.pc.is-focus { transform: scale(1.2) translateY(-6px); filter: none; z-index: 2; outline-color: #4F8BFF; box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c) 80%, #000), 0 0 0 1px rgba(255, 255, 255, .25), 0 0 60px -10px rgba(79, 139, 255, .65); }
.pc__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 70% at 50% 18%, color-mix(in srgb, var(--c) 55%, #fff) 0%, var(--c) 45%, color-mix(in srgb, var(--c) 45%, #050b16) 100%); }
.pc__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(5, 11, 22, .82)); }
.pc__top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.pc__st { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 10.5px var(--font); text-transform: capitalize; }
.pc__st i { width: 7px; height: 7px; border-radius: 50%; background: #5BF0A8; } .pc__st.lead i { background: #FFC56B; } .pc__st.inactive i { background: #9aa3b5; }
.pc__score { display: grid; justify-items: end; font: 800 22px/1 var(--font-display); text-shadow: 0 2px 12px rgba(0, 0, 0, .3); } .pc__score small { font: 600 9px var(--font); opacity: .8; letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; }
.pc__logo { position: absolute; left: 50%; top: 36%; translate: -50% -50%; width: 46%; aspect-ratio: 1; border-radius: 26%; background: #fff; display: grid; place-items: center; overflow: hidden; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45); transition: transform .7s cubic-bezier(.22, .9, .25, 1); }
.pc.is-focus .pc__logo { transform: scale(1.06); }
.pc__logo img { width: 82%; height: 82%; object-fit: contain; } .pc__logo b { font: 800 30px var(--font-display); color: var(--c); }
.pc__info { position: absolute; left: 14px; right: 14px; bottom: 14px; }
.pc__info h3 { margin: 0; font: 700 17px/1.2 var(--font-display); letter-spacing: -.01em; text-shadow: 0 2px 14px rgba(0, 0, 0, .35); }
.pc__info p { margin: 4px 0 8px; font-size: 11.5px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc__meta { display: flex; gap: 5px; flex-wrap: wrap; } .pc__meta span { padding: 3px 8px; border-radius: 7px; background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 600 10px var(--font); } .pc__meta .bad { background: rgba(224, 71, 94, .85); }
.ccar__nav { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .3s var(--spring); }
.ccar__nav:hover { transform: scale(1.08); } .ccar__nav svg { width: 18px; height: 18px; } .ccar__nav.prev { left: 6px; } .ccar__nav.next { right: 6px; }
.ccar__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.ccar__dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; max-width: 80%; } .ccar__dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--faint); cursor: pointer; transition: width .4s var(--spring), background .3s; } .ccar__dots i.is-on { width: 26px; background: var(--accent); }
.ccar__foot small { color: var(--muted); font-size: 12px; }

/* dashboard */
.cdash-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.cdash-scrim { position: absolute; inset: 0; background: rgba(8, 14, 28, .42); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); opacity: 0; }
.cdash { --cd-bg: #EEF3FB; --cd-card: rgba(255, 255, 255, .72); --cd-line: rgba(30, 60, 120, .1); --cd-ink: #0F1B33; --cd-muted: #6A7690; --cd-blue: #1F5FD6; --cd-navy: #163B7A; --cd-soft: #9FB8E8;
  position: relative; width: min(1240px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 34px; transform-origin: top left;
  background: linear-gradient(160deg, #F6F9FE 0%, #E7EEFA 60%, #DCE6F7 100%); color: var(--cd-ink); box-shadow: 0 60px 140px -40px rgba(10, 30, 70, .55), inset 0 1px 0 rgba(255, 255, 255, .9); scrollbar-width: thin; }
[data-theme="dark"] .cdash { --cd-card: rgba(22, 34, 60, .7); --cd-line: rgba(160, 190, 255, .12); --cd-ink: #EAF0FB; --cd-muted: #93A1BA; --cd-blue: #4F8BFF; --cd-navy: #2251B5; --cd-soft: #3A5487; background: linear-gradient(160deg, #111D35, #0B1428 60%, #0A1222); box-shadow: 0 60px 140px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.cdash__in { padding: 26px 30px 32px; }
.cd-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cd-brand { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--cd-line); background: var(--cd-card); font: 600 15px var(--font); }
.cd-brand img, .cd-brand b { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; background: #fff; display: grid; place-items: center; color: #fff; font: 700 12px var(--font); }
.cd-tabs { display: flex; gap: 2px; margin-left: auto; padding: 5px; border-radius: 999px; background: var(--cd-card); border: 1px solid var(--cd-line); }
.cd-tabs button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--cd-muted); font: 500 13px var(--font); cursor: pointer; } .cd-tabs button:hover { color: var(--cd-ink); }
.cd-tabs button.is-on { background: var(--cd-navy); color: #fff; box-shadow: 0 8px 20px -8px var(--cd-navy); }
.cd-acts { display: flex; gap: 8px; }
.cd-pill { display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--cd-line); background: var(--cd-card); color: var(--cd-ink); font: 500 13px var(--font); cursor: pointer; } .cd-pill svg { width: 16px; height: 16px; }
.cd-ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cd-line); background: var(--cd-card); color: var(--cd-ink); display: grid; place-items: center; cursor: pointer; } .cd-ic svg { width: 17px; height: 17px; }
.cd-ic.dark { background: var(--cd-navy); color: #fff; border-color: transparent; }
.cd-hello { margin: 26px 0 18px; font: 400 clamp(30px, 3.6vw, 46px)/1.1 var(--font); letter-spacing: -.02em; }
.cd-kpi { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.cd-bars { flex: 1 1 520px; display: flex; gap: 8px; align-items: flex-end; }
.cd-bars label { display: grid; gap: 7px; flex: 1; } .cd-bars label.grow { flex: 1.6; position: relative; } .cd-bars small { font-size: 12.5px; color: var(--cd-muted); }
.cd-pb { position: relative; display: flex; align-items: center; height: 40px; width: var(--w); min-width: 64px; padding: 0 14px; border-radius: 999px; background: var(--cd-blue); color: #fff; font: 600 12.5px var(--font); }
.cd-pb.dark { background: var(--cd-navy); } .cd-pb.soft { background: transparent; border: 1.5px solid var(--cd-soft); color: var(--cd-ink); }
.cd-hatch { position: absolute; right: 0; bottom: 0; height: 40px; width: calc(100% - var(--w, 50%)); border-radius: 999px; background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--cd-line) 6px 8px); pointer-events: none; }
.cd-nums { display: flex; gap: 28px; }
.cd-nums div { display: grid; } .cd-nums b { font: 300 clamp(44px, 4.6vw, 64px)/1 var(--font); letter-spacing: -.04em; }
.cd-nums small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cd-muted); } .cd-nums svg { width: 14px; height: 14px; }
.cd-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-auto-rows: minmax(0, auto); gap: 14px; }
.cd-card { position: relative; padding: 20px; border-radius: 26px; background: var(--cd-card); border: 1px solid var(--cd-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 20px 40px -30px rgba(20, 50, 110, .35); min-height: 240px; }
.cd-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .cd-h b { font: 500 18px var(--font); }
.cd-arrow { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--cd-line); background: rgba(255, 255, 255, .7); color: var(--cd-ink); display: grid; place-items: center; cursor: pointer; } .cd-arrow svg { width: 15px; height: 15px; }
[data-theme="dark"] .cd-arrow { background: rgba(255, 255, 255, .06); }
.cd-pct { font: 300 32px var(--font); letter-spacing: -.03em; }
/* hero (brand) card */
.cd-hero { padding: 0; overflow: hidden; border: 0; background: radial-gradient(120% 80% at 50% 10%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #0b1428)); color: #fff; }
.cd-hero__art { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 40px; }
.cd-hero__art img { width: 52%; max-height: 52%; object-fit: contain; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .25)); background: #fff; border-radius: 22%; padding: 7%; } .cd-hero__art b { font: 800 56px var(--font-display); opacity: .92; }
.cd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5, 15, 35, .55)); }
.cd-hero__info { position: absolute; left: 18px; bottom: 16px; z-index: 1; display: grid; } .cd-hero__info b { font: 500 19px var(--font); } .cd-hero__info small { opacity: .8; font-size: 12px; }
.cd-hero__chip { position: absolute; right: 14px; top: 14px; z-index: 1; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 12px var(--font); }
/* progress week bars */
.cd-big { display: flex; align-items: center; gap: 10px; font: 300 36px var(--font); } .cd-big small { font-size: 11px; color: var(--cd-muted); line-height: 1.3; }
.cd-week { display: flex; justify-content: space-between; align-items: flex-end; height: 120px; margin-top: 8px; }
.cd-week span { flex: 1; display: grid; justify-items: center; gap: 8px; height: 100%; grid-template-rows: 1fr auto; }
.cd-week i { position: relative; align-self: end; width: 6px; height: var(--h); border-radius: 4px; background: var(--cd-navy); }
.cd-week i::after { content: ''; position: absolute; left: 50%; bottom: -10px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--cd-navy); }
.cd-week .is-today i { background: var(--cd-blue); width: 8px; box-shadow: 0 0 14px var(--cd-blue); }
.cd-week em { position: absolute; bottom: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: nowrap; padding: 4px 9px; border-radius: 999px; background: var(--cd-blue); color: #fff; font: 600 10px var(--font); font-style: normal; }
.cd-week small { font-size: 11px; color: var(--cd-muted); }
/* ring */
.cd-ring { position: relative; width: 150px; margin: 4px auto 0; } .cd-ring svg { width: 100%; transform: rotate(-90deg); }
.cd-ring circle { fill: none; stroke-width: 10; } .cd-ring .trk { stroke: var(--cd-line); } .cd-ring .ticks { stroke: var(--cd-muted); stroke-width: 6; stroke-dasharray: 1 5; opacity: .35; } .cd-ring .val { stroke: var(--cd-blue); stroke-linecap: round; transition: stroke-dasharray 1.2s cubic-bezier(.2,.8,.2,1); }
.cd-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; } .cd-ring b { font: 300 30px var(--font); letter-spacing: -.02em; } .cd-ring small { font-size: 11px; color: var(--cd-muted); }
.cd-ring-acts { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.cd-chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .8); border: 1px solid var(--cd-line); font: 500 12px var(--font); color: var(--cd-ink); } [data-theme="dark"] .cd-chip { background: rgba(255, 255, 255, .06); }
/* segmented status */
.cd-seg-l { display: grid; grid-template-columns: 1fr 1fr 1fr; font-size: 11px; color: var(--cd-muted); margin: 12px 0 6px; }
.cd-seg { display: flex; gap: 4px; height: 46px; } .cd-seg i { border-radius: 14px; display: flex; align-items: center; padding: 0 12px; color: #fff; font: 500 12px var(--font); font-style: normal; white-space: nowrap; overflow: hidden; min-width: 18px; }
.cd-seg .a { background: var(--cd-blue); } .cd-seg .b { background: var(--cd-navy); } .cd-seg .c { background: var(--cd-soft); }
.cd-split { min-height: 0; }
/* dark task list */
.cd-tasks { grid-row: span 2; background: linear-gradient(170deg, #1E4A9B, #13336E); color: #fff; border-color: transparent; box-shadow: 0 30px 60px -30px rgba(19, 51, 110, .8); }
.cd-tasks .cd-h b { color: #fff; } .cd-tasks .cd-pct { color: #fff; }
.cd-tlist { display: grid; gap: 6px; margin-top: 6px; }
.cd-t { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border: 0; border-radius: 14px; background: transparent; color: #fff; text-align: left; cursor: pointer; font: inherit; } .cd-t:hover { background: rgba(255, 255, 255, .08); }
.cd-t__ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; } .cd-t__ic svg { width: 16px; height: 16px; }
.cd-t > span:nth-child(2) { flex: 1; min-width: 0; display: grid; } .cd-t b { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cd-t small { font-size: 11px; opacity: .65; }
.cd-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); display: grid; place-items: center; font-style: normal; font-size: 11px; flex: none; } .cd-check.on { background: #4F8BFF; border-color: #4F8BFF; }
.cd-none { color: var(--cd-muted); font-size: 13px; margin: 8px 0; } .cd-tasks .cd-none { color: rgba(255, 255, 255, .7); }
/* accordion card */
.cd-acc-card { padding: 8px 18px; }
.cd-acc { border-bottom: 1px dashed var(--cd-line); } .cd-acc:last-child { border-bottom: 0; }
.cd-acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; cursor: pointer; font: 500 14px var(--font); } .cd-acc summary::-webkit-details-marker { display: none; }
.cd-acc summary svg { width: 15px; height: 15px; color: var(--cd-muted); transform: rotate(90deg); transition: transform .3s; } .cd-acc[open] summary svg { transform: rotate(-90deg); }
.cd-acc > div { padding: 0 2px 14px; font-size: 13px; color: var(--cd-muted); } .cd-acc p { margin: 0; } .cd-acc ul { margin: 0; padding-left: 18px; } .cd-acc b { color: var(--cd-ink); font-weight: 500; }
.cd-people { display: flex; flex-wrap: wrap; gap: 8px; } .cd-people span { display: inline-flex; align-items: center; gap: 6px; color: var(--cd-ink); }
/* calendar */
.cd-cal { grid-column: span 2; }
.cd-cal__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; } .cd-cal__head b { font: 500 15px var(--font); }
.cd-cal__grid { display: grid; grid-template-columns: 64px repeat(6, 1fr); grid-template-rows: auto repeat(var(--rows), 46px); column-gap: 0; position: relative; }
.cd-day { display: grid; justify-items: center; padding-bottom: 8px; border-left: 1px dashed var(--cd-line); } .cd-day small { font-size: 11px; color: var(--cd-muted); } .cd-day b { font: 400 15px var(--font); color: var(--cd-muted); } .cd-day.is-today b { color: var(--cd-ink); font-weight: 600; }
.cd-hr { grid-column: 1; align-self: center; font-size: 11px; color: var(--cd-muted); }
.cd-ev { z-index: 1; align-self: center; margin: 2px 6px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, .95); box-shadow: 0 10px 22px -12px rgba(20, 50, 110, .45); display: grid; position: relative; min-width: 0; color: #0F1B33; }
.cd-ev b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cd-ev small { font-size: 10.5px; color: #6A7690; }
.cd-ev.task { background: var(--cd-blue); color: #fff; } .cd-ev.task small { color: rgba(255, 255, 255, .8); }
.cd-ev .pstack { position: absolute; right: 8px; top: 50%; translate: 0 -50%; }
@media (max-width: 1100px) { .cd-grid { grid-template-columns: 1fr 1fr; } .cd-tasks { grid-row: auto; } .cd-cal { grid-column: span 2; } .cd-tabs { order: 3; margin-left: 0; width: 100%; overflow-x: auto; } }
@media (max-width: 640px) {
  .pc { width: 190px; } .ccar__nav { display: none; } .ccar__view { padding: 54px 0 46px; }
  .cdash-wrap { padding: 0; align-items: end; } .cdash { border-radius: 28px 28px 0 0; max-height: 94vh; }
  .cdash__in { padding: 20px 16px 28px; } .cd-grid { grid-template-columns: 1fr; } .cd-cal { grid-column: auto; } .cd-cal__grid { grid-template-columns: 52px repeat(6, minmax(34px, 1fr)); }
  .cd-bars { flex-wrap: wrap; } .cd-bars label { flex: 1 1 40%; } .cd-nums { gap: 18px; } .cd-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ccar__track, .pc, .pc__logo { transition: none; } }

/* ═══ v126 — bigger cards, colour-matched background, sections inside the centre panel ═══ */
.pc { width: clamp(230px, calc((100vh - 350px) * .667), 400px); border-radius: 30px; }
.pc.is-focus { transform: scale(1.14) translateY(-4px); }
.pc__info h3 { font-size: clamp(16px, 1.5vw, 21px); }
.pc__logo b { font-size: clamp(28px, 3vw, 44px); }
.ccar__track { gap: 26px; }
.ccar__view { padding: 64px 0 56px; }
#client-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
#client-bg.is-on { opacity: 1; }
#client-bg::before, #client-bg::after { content: ''; position: absolute; inset: 0; background-color: var(--bgc, transparent); transition: background-color 1s cubic-bezier(.22, .9, .25, 1); }
#client-bg::before { opacity: .3; }
#client-bg::after { opacity: .75; -webkit-mask-image: radial-gradient(60% 55% at 55% 58%, #000, transparent 75%); mask-image: radial-gradient(60% 55% at 55% 58%, #000, transparent 75%); filter: blur(10px); }
[data-theme="dark"] #client-bg::before { opacity: .32; } [data-theme="dark"] #client-bg::after { opacity: .6; }
.cd-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; } .cd-tabs::-webkit-scrollbar { display: none; }
.cd-tabs button { white-space: nowrap; flex: none; }
.cd-panel { margin-top: 22px; padding: 24px; border-radius: 28px; background: var(--cd-card); border: 1px solid var(--cd-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); min-height: 420px; }
.cd-panel[hidden], .cd-main[hidden] { display: none; }
.cd-panel__head h3 { margin: 0 0 18px; font: 400 clamp(26px, 2.6vw, 34px) var(--font); letter-spacing: -.02em; color: var(--cd-ink); }
.cd-hub { color: var(--cd-ink); }
.cd-hub .row { background: rgba(255, 255, 255, .55); } [data-theme="dark"] .cd-hub .row { background: rgba(255, 255, 255, .04); }
.cd-hub .well { background: rgba(255, 255, 255, .5); } [data-theme="dark"] .cd-hub .well { background: rgba(255, 255, 255, .04); }
@media (max-width: 640px) { .pc { width: min(64vw, 260px); } .cd-panel { padding: 16px; margin-top: 16px; } }

/* ═══ v126 — AI Employees ═══ */
.ae-av { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 32%; color: #fff; font-weight: 700; letter-spacing: -.02em;
  background: radial-gradient(120% 120% at 20% 10%, hsl(var(--h) 85% 72%), hsl(var(--h) 70% 48%) 55%, hsl(calc(var(--h) + 40) 70% 38%));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -12px hsl(var(--h) 70% 40% / .8); }
.ae-av svg { width: 44%; height: 44%; }
.ae-av__bot { position: absolute; right: -4px; bottom: -4px; width: 40%; height: 40%; min-width: 16px; min-height: 16px; border-radius: 50%; display: grid; place-items: center; background: var(--bg, #fff); color: hsl(var(--h) 70% 50%); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ae-av__bot svg { width: 64%; height: 64%; }
.ae-h { display: flex; align-items: center; gap: 8px; margin: 22px 4px 12px; font-size: 15px; font-weight: 600; } .ae-h svg { width: 18px; height: 18px; }
.ae-warn { display: flex; gap: 14px; align-items: center; padding: 16px 20px; margin-bottom: 14px; border: 1px solid var(--warn-soft); }
.ae-warn > svg { width: 22px; height: 22px; color: var(--warn); flex: none; } .ae-warn small { display: block; color: var(--muted); margin-top: 3px; } .ae-warn code { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--glass-strong); word-break: break-all; }
.ae-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.ae-kpi { padding: 16px 18px; border-radius: 22px; } .ae-kpi small { color: var(--muted); font-size: 12px; } .ae-kpi b { display: block; font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin-top: 4px; } .ae-kpi em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 500; }
.ae-wait { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ae-wcard { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 22px; border: 1px solid var(--glass-line); cursor: pointer; font: inherit; color: var(--ink); transition: transform .3s var(--spring), box-shadow .3s; }
.ae-wcard:hover { transform: translateY(-3px); } .ae-wcard > span:nth-child(2) { flex: 1; min-width: 0; } .ae-wcard b { display: block; font-size: 14px; } .ae-wcard small { color: var(--muted); font-size: 12px; } .ae-wcard em { display: block; font-style: normal; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.ae-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.ae-card { position: relative; overflow: hidden; padding: 20px; border-radius: 28px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--spring), box-shadow .4s; }
.ae-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -28px hsl(var(--h) 70% 40% / .55); }
.ae-card__glow { position: absolute; inset: -40% -20% auto auto; width: 220px; height: 220px; border-radius: 50%; background: hsl(var(--h) 80% 60% / .22); filter: blur(40px); pointer-events: none; }
.ae-card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; position: relative; }
.ae-card h3 { margin: 0; font-size: 20px; letter-spacing: -.02em; position: relative; } .ae-role { margin: 0; font-size: 13px; color: var(--muted); } .ae-role span { color: hsl(var(--h) 65% 48%); font-weight: 600; } .ae-role .ok { color: var(--ok); }
.ae-blurb { margin: 6px 0 4px; font-size: 13px; color: var(--ink-2); line-height: 1.45; flex: 1; }
.ae-state { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--glass-strong); color: var(--muted); }
.ae-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; } .ae-state.is-working { color: var(--info); } .ae-state.is-working i { animation: aePulse 1.2s infinite; } .ae-state.is-waiting { color: var(--warn); } .ae-state.is-idle { color: var(--ok); }
@keyframes aePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }
.ae-train > div { height: 6px; border-radius: 999px; background: var(--glass-strong); overflow: hidden; } .ae-train span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, hsl(var(--h, 210) 75% 60%), hsl(calc(var(--h, 210) + 40) 75% 55%)); transition: width .8s var(--ease); }
.ae-train small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.ae-card__acts { display: flex; gap: 8px; margin-top: 12px; position: relative; }
.ae-card.is-locked { cursor: default; opacity: .62; } .ae-card.is-locked:hover { transform: none; box-shadow: none; } .ae-soon { color: var(--muted); font-size: 12px; }
.ae-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ae-pk { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; border-radius: 18px; border: 1.5px solid var(--glass-line); background: var(--glass-strong); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .2s, transform .25s var(--spring); }
.ae-pk b { display: block; font-size: 13px; } .ae-pk small { font-size: 11.5px; color: var(--muted); } .ae-pk.is-on { border-color: hsl(var(--h) 70% 55%); box-shadow: 0 0 0 4px hsl(var(--h) 70% 55% / .14); transform: translateY(-1px); }
.ae-ex { display: flex; flex-wrap: wrap; gap: 6px; } .ae-ex .chip-btn { max-width: 100%; }
.ae-back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; margin: 0 4px 12px; } .ae-back svg { width: 16px; height: 16px; } .ae-back:hover { color: var(--ink); }
.ae-hero { position: relative; overflow: hidden; display: flex; gap: 22px; align-items: center; padding: 26px; border-radius: 32px; margin-bottom: 14px; flex-wrap: wrap; }
.ae-hero__glow { position: absolute; inset: -60% auto auto -10%; width: 420px; height: 420px; border-radius: 50%; background: hsl(var(--h) 80% 60% / .2); filter: blur(60px); pointer-events: none; }
.ae-hero__txt { flex: 1; min-width: 220px; position: relative; } .ae-hero h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; } .ae-hero p { margin: 4px 0 14px; color: var(--muted); }
.ae-hero .ae-train { max-width: 420px; } .ae-hero__acts { display: flex; gap: 10px; align-items: center; position: relative; flex-wrap: wrap; }
.ae-ren { opacity: .5; } .ae-ren:hover { opacity: 1; }
.ae-sel { height: 40px; border-radius: 999px; padding: 0 14px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13px; }
.ae-tabs { margin: 18px 0 14px; }
.ae-memf { display: grid; grid-template-columns: 1fr 190px auto; gap: 10px; margin-bottom: 14px; align-items: start; }
.ae-memf textarea, .ae-memf select, .ae-ansf textarea, .ae-rev textarea { width: 100%; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 14px; padding: 10px 14px; resize: vertical; }
.ae-memf select { height: 44px; }
.ae-job { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.ae-job__side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.ae-brief { white-space: pre-wrap; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.ae-log { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.ae-log__i { display: flex; gap: 10px; padding: 8px 4px; position: relative; } .ae-log__i::before { content: ''; position: absolute; left: 17px; top: 38px; bottom: -6px; width: 1.5px; background: var(--glass-line); } .ae-log__i:last-child::before { display: none; }
.ae-log__ic { flex: none; width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-strong); color: var(--muted); } .ae-log__ic svg { width: 15px; height: 15px; }
.ae-log__i b { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; } .ae-log__i small { font-size: 11px; color: var(--muted); } .ae-log__i p { margin: 4px 0; font-size: 12.5px; color: var(--ink-2); white-space: pre-wrap; }
.ae-log__i details summary { font-size: 11.5px; color: var(--muted); cursor: pointer; } .ae-log__i pre { max-height: 200px; overflow: auto; font-size: 11px; background: var(--glass-strong); padding: 8px; border-radius: 10px; white-space: pre-wrap; }
.ae-log__i.k-web .ae-log__ic { color: var(--info); } .ae-log__i.k-result .ae-log__ic, .ae-log__i.k-approved .ae-log__ic { color: var(--ok); } .ae-log__i.k-ask .ae-log__ic, .ae-log__i.k-feedback .ae-log__ic { color: var(--warn); } .ae-log__i.k-error .ae-log__ic { color: var(--bad); }
.ae-log__i.k-think b { font-weight: 500; color: var(--ink-2); }
.ae-busy { display: flex; gap: 14px; align-items: center; padding: 18px 20px; margin-bottom: 16px; } .ae-busy > div { flex: 1; } .ae-busy small { display: block; color: var(--muted); margin-top: 3px; }
.ae-pulse { width: 14px; height: 14px; border-radius: 50%; background: var(--info); box-shadow: 0 0 0 0 var(--info); animation: aeRing 1.6s infinite; flex: none; }
@keyframes aeRing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 60%, transparent); } 100% { box-shadow: 0 0 0 16px transparent; } }
.ae-q { margin-bottom: 16px; } .ae-q h3 { display: flex; gap: 8px; align-items: center; } .ae-q h3 svg { width: 18px; height: 18px; } .ae-qq { font-size: 15px; line-height: 1.55; margin: 0 0 14px; white-space: pre-wrap; }
.ae-ansf { display: flex; flex-direction: column; gap: 10px; }
.ae-sum { margin: 0 0 16px; padding: 12px 16px; border-radius: 16px; background: var(--info-soft); color: var(--ink); font-size: 14px; line-height: 1.5; }
.ae-md { font-size: 14.5px; line-height: 1.65; }
.ae-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ae-post { padding: 14px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); } .ae-post small { color: var(--muted); font-size: 11px; text-transform: capitalize; } .ae-post b { display: block; margin: 4px 0; font-size: 13.5px; } .ae-post p { margin: 0; font-size: 12.5px; white-space: pre-wrap; color: var(--ink-2); max-height: 140px; overflow: auto; } .ae-post em { display: block; margin-top: 6px; font-size: 11.5px; color: var(--warn); font-style: normal; }
.ae-saved { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 600; font-size: 13px; margin-top: 16px; } .ae-saved svg { width: 16px; height: 16px; }
.ae-rev { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 12px; }
.ae-opts { display: flex; flex-direction: column; gap: 6px; } .ae-ck { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.ae-rev__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 980px) { .ae-job { grid-template-columns: 1fr; } .ae-job__side { position: static; } }
@media (max-width: 640px) { .ae-memf { grid-template-columns: 1fr; } .ae-hero { padding: 20px; } .ae-wait { grid-template-columns: 1fr; } .ae-rev__row .page-actions { width: 100%; justify-content: flex-end; } }

/* v128 — why Claude isn't connected */
.claude-why { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--bad-soft); color: var(--ink); font-size: 13px; line-height: 1.45; }
.claude-why svg { width: 16px; height: 16px; color: var(--bad); flex: none; margin-top: 2px; } .claude-why b { display: block; margin-bottom: 2px; }
.claude-why.is-tip { background: var(--warn-soft); } .claude-why.is-tip svg { color: var(--warn); }

/* ═══ v130 — client vault redesign ═══ */
.vx-hero { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 22px; color: #fff; background: radial-gradient(120% 160% at 0% 0%, #1d3a6e, #0b1426 60%); box-shadow: 0 18px 40px -24px rgba(11,20,38,.8); flex-wrap: wrap; }
.vx-shield { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,195,255,.16); color: #5fd8ff; flex: none; } .vx-shield svg { width: 22px; height: 22px; }
.vx-hero > div { flex: 1; min-width: 200px; } .vx-hero b { font-size: 16px; } .vx-hero small { display: block; opacity: .7; font-size: 12.5px; margin-top: 3px; line-height: 1.45; }
.vx-acts { display: flex; gap: 8px; } .vx-hero .btn-dark { background: #fff; color: #0b1426; } .vx-hero .btn:not(.btn-dark) { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.18); } .vx-hero .btn svg { width: 16px; height: 16px; }
.vx-sec { margin-top: 22px; } .vx-sec h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.vx-sec h4 em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--info-soft); padding: 3px 8px; border-radius: 999px; } .vx-sec h4 small { font-size: 12px; color: var(--muted); font-weight: 500; }
.vx-sec__h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; } .vx-sec__h h4 { margin: 0; }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.vx-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; } .vx-f > span { font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.vx-f input, .vx-f textarea, .vx-name { width: 100%; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13.5px; transition: border-color .2s, box-shadow .2s; }
.vx-f textarea { height: auto; padding: 10px 12px; resize: vertical; } .vx-f input:focus, .vx-f textarea:focus, .vx-name:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-soft); }
.vx-notes { margin-top: 12px; }
.vx-search { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-strong); } .vx-search svg { width: 15px; height: 15px; color: var(--muted); } .vx-search input { border: 0; background: none; outline: none; color: var(--ink); font: inherit; font-size: 13px; width: 150px; }
.vx-accs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.vx-acc { padding: 14px; border-radius: 20px; border: 1px solid var(--glass-line); background: var(--glass); transition: border-color .25s, box-shadow .25s; } .vx-acc[hidden] { display: none; }
.vx-acc.is-filled { border-color: color-mix(in srgb, var(--ok) 35%, var(--glass-line)); }
.vx-acc header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .vx-acc header b { flex: 1; font-size: 14px; }
.vx-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.vx-name { flex: 1; height: 34px; font-weight: 600; }
.vx-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glass-line); flex: none; } .vx-acc.is-filled .vx-dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.vx-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vx-acc .pw-wrap { position: relative; display: block; } .vx-acc .pw-wrap input { padding-right: 64px; } .vx-acc .pw-wrap input:only-of-type { }
.vx-ib { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; } .vx-ib svg { width: 15px; height: 15px; } .vx-ib:hover, .vx-ib.is-on { background: var(--glass-strong); color: var(--ink); }
.vx-copy { right: 6px; } .pw-eye.vx-ib { right: 34px; } .vx-acc .pw-wrap:not(:has(.pw-eye)) input { padding-right: 36px; }
.vx-add { margin-top: 14px; } .vx-add small { display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; } #vx-add { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-saved { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 18px 0 0; } .vx-saved svg { width: 13px; height: 13px; }
@media (max-width: 640px) { .vx-accs { grid-template-columns: 1fr; } .vx-fields { grid-template-columns: 1fr; } .vx-search input { width: 110px; } .vx-acts { width: 100%; } .vx-acts .btn { flex: 1; } }
.vx-f input::placeholder, .vx-name::placeholder, .vx-f textarea::placeholder { color: var(--muted); opacity: .55; font-weight: 400; }
.vx-empty { padding: 18px; border-radius: 18px; border: 1.5px dashed var(--glass-line); color: var(--muted); font-size: 13px; text-align: center; }
.vx-accs:not(:has(.vx-acc:not([hidden])))::before { content: "No accounts saved yet — add one below."; grid-column: 1 / -1; padding: 18px; border-radius: 18px; border: 1.5px dashed var(--glass-line); color: var(--muted); font-size: 13px; text-align: center; }

/* ═══ v132 — task workflow, message alerts, push setup ═══ */
.wf { border: 1px solid var(--glass-line); border-radius: 20px; padding: 16px; background: var(--glass); }
.wf-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 12px; } .wf-h b { display: flex; align-items: center; gap: 6px; font-size: 14px; } .wf-h b svg { width: 16px; height: 16px; color: var(--accent); }
.wf-h small { color: var(--muted); font-size: 12px; } .wf-h em { font-style: normal; font-weight: 600; } em.ok { color: var(--ok); font-style: normal; } em.bad { color: var(--bad); font-style: normal; } em.warn { color: var(--warn); font-style: normal; }
.wf-bar { flex-basis: 100%; height: 5px; border-radius: 999px; background: var(--glass-strong); overflow: hidden; } .wf-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--ok)); border-radius: inherit; transition: width .6s var(--ease); }
.wf-muted { color: var(--muted); font-size: 12.5px; }
.wf-tpl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; }
.wf-tplb { text-align: left; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, transform .25s var(--spring); } .wf-tplb:hover { border-color: var(--accent); transform: translateY(-2px); }
.wf-tplb b { display: block; font-size: 13.5px; } .wf-tplb small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; line-height: 1.4; }
.wf-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.wf-s { display: flex; gap: 12px; position: relative; padding: 0 0 14px; } .wf-s::before { content: ''; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--glass-line); } .wf-s:last-child::before { display: none; }
.wf-s.is-done::before { background: var(--ok); }
.wf-dot { flex: none; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; background: var(--glass-strong); color: var(--muted); border: 1px solid var(--glass-line); } .wf-dot svg { width: 16px; height: 16px; }
.wf-s.is-active .wf-dot { background: var(--accent); color: #fff; border-color: transparent; box-shadow: 0 0 0 5px var(--info-soft); } .wf-s.is-done .wf-dot { background: var(--ok); color: #fff; border-color: transparent; }
.wf-b { flex: 1; min-width: 0; } .wf-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 32px; } .wf-t b { font-size: 14px; } .wf-t small { color: var(--muted); font-size: 11.5px; }
.wf-s.is-done .wf-t b { color: var(--muted); }
.wf-note { margin: 2px 0 6px; font-size: 12.5px; color: var(--ink-2); background: var(--warn-soft); padding: 6px 10px; border-radius: 10px; }
.wf-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-date input { height: 32px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 12.5px; padding: 0 8px; }
.wf-bell { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--glass-line); font-size: 12px; color: var(--muted); cursor: pointer; } .wf-bell input { display: none; } .wf-bell svg { width: 14px; height: 14px; }
.wf-bell.is-on { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--info-soft); }
.wf-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; } .wf-x svg { width: 14px; height: 14px; } .wf-x:hover { background: var(--bad-soft); color: var(--bad); }
.wf-acts { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.wf-post { margin-top: 12px; border-top: 1px solid var(--glass-line); padding-top: 10px; } .wf-post summary { cursor: pointer; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; list-style: none; } .wf-post summary svg { width: 16px; height: 16px; color: var(--accent); } .wf-post summary small { font-weight: 500; color: var(--muted); font-size: 12px; }
.wf-post form { margin-top: 12px; }
.wf-chs { display: flex; flex-wrap: wrap; gap: 6px; } .wf-ch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--glass-line); font-size: 12.5px; text-transform: capitalize; cursor: pointer; }
.wf-media { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .wf-m { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: var(--glass-strong); font-size: 12px; max-width: 100%; } .wf-m svg { width: 14px; height: 14px; flex: none; } .wf-m a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .wf-m button { border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; } .wf-m button svg { width: 12px; height: 12px; }
#wf-pick { height: 36px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 12.5px; padding: 0 8px; max-width: 100%; }
.wf-auto { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--info-soft); cursor: pointer; } .wf-auto input { margin-top: 3px; } .wf-auto b { display: block; font-size: 13px; } .wf-auto small { color: var(--ink-2); font-size: 12px; }
.toast.msg-alert { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; max-width: 360px; } .toast.msg-alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; } .toast.msg-alert b { display: block; }
.push-stat { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); } .push-stat b { color: var(--ink); font-size: 16px; margin-right: 3px; }

/* ═══ v135 — Displays: left charts + week · centre clock · right live client view ═══ */
.centre-clock { padding: 2vh 0 1vh; } .centre-clock .time { font-size: clamp(64px, 8vw, 120px); }
.pulse2 { display: flex; flex-direction: column; gap: 16px; }
.p2-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.p2-k { padding: 16px 18px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); text-decoration: none; color: var(--ink); cursor: pointer; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.p2-k b { display: block; font-size: clamp(28px, 2.8vw, 42px); font-weight: 600; letter-spacing: -.03em; } .p2-k small { color: var(--muted); font-size: 12.5px; } .p2-k.hot b { color: var(--bad); }
.p2-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.p2-ring { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; } .p2-ring .legend { flex: 1; min-width: 160px; }
.p2-bars { width: 100%; height: auto; } .p2-bars text { font-size: 9px; fill: var(--muted); }
.p2-pipe { display: flex; flex-direction: column; gap: 10px; } .p2-pipe > div { display: grid; grid-template-columns: 150px 1fr 30px; gap: 10px; align-items: center; cursor: pointer; font-size: 13px; }
.p2-pipe i { height: 10px; border-radius: 999px; background: var(--faint); overflow: hidden; } .p2-pipe em { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4F6BED, #00C3FF); } .p2-pipe b { text-align: right; }
.p2-money { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; height: 150px; align-items: end; } .p2-money > div { display: flex; flex-direction: column; align-items: center; height: 100%; gap: 6px; }
.p2-money i { flex: 1; width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; } .p2-money em { width: 40%; border-radius: 6px 6px 3px 3px; } .p2-money em.inv { background: #94A3B8; } .p2-money em.col { background: #16A36A; } .p2-money small { color: var(--muted); font-size: 11px; }
.p2-lock { cursor: pointer; } .p2-lock svg { width: 14px; height: 14px; vertical-align: -2px; }
.p2-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.p2-day { min-height: 220px; padding: 10px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); display: flex; flex-direction: column; gap: 6px; }
.p2-day header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; } .p2-day header b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .p2-day header span { font-size: 22px; font-weight: 600; }
.p2-day.is-today { border-color: var(--accent); box-shadow: 0 0 0 3px var(--info-soft); } .p2-day.is-today header span { color: var(--accent); }
.p2-day.is-wkend { opacity: .85; }
.p2-ev { display: block; padding: 6px 8px 6px 10px; border-radius: 10px; background: color-mix(in srgb, var(--k) 12%, transparent); border-left: 3px solid var(--k); text-decoration: none; color: var(--ink); cursor: pointer; }
.p2-ev small { display: block; font-size: 10.5px; color: var(--k); font-weight: 600; } .p2-ev b { display: block; font-size: 12px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .p2-ev em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.p2-free, .p2-more { color: var(--muted); font-size: 11.5px; } .p2-free { margin: auto; opacity: .6; }
/* right: client view */
.cv { display: flex; flex-direction: column; gap: 16px; height: calc(100vh - 110px); }
.cv-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 18px; flex-wrap: wrap; } .cv-bar b { display: flex; align-items: center; gap: 6px; } .cv-bar b svg { width: 16px; height: 16px; }
.cv-bar select { height: 36px; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; padding: 0 10px; min-width: 200px; }
.cv-follow { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); cursor: pointer; }
.cv-live { margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ok); } .cv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: aePulse 1.6s infinite; }
.cv-stage { flex: 1; min-height: 0; display: flex; gap: 22px; align-items: center; justify-content: center; }
.cv-phone { position: relative; height: min(100%, 860px); aspect-ratio: 9 / 19.5; border-radius: 54px; padding: 12px; background: linear-gradient(145deg, #2a2f3a, #0b0e14); box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.08); flex: none; }
.cv-notch { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 30px; border-radius: 20px; background: #000; z-index: 3; }
.cv-screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: #F4F6FB; color: #0B1426; display: flex; flex-direction: column; font-size: 13px; }
[data-theme="dark"] .cv-screen { background: #0B1020; color: #EEF2FA; }
.cv-status { display: flex; justify-content: space-between; padding: 16px 28px 6px; font-size: 12px; } .cv-status span { opacity: .55; font-weight: 600; }
.cv-body { flex: 1; overflow-y: auto; padding: 14px 16px 16px; scrollbar-width: none; } .cv-body::-webkit-scrollbar { display: none; }
.cv-body h4 { margin: 16px 2px 8px; font-size: 13px; opacity: .6; text-transform: uppercase; letter-spacing: .08em; }
.cv-hello { margin: 6px 2px 14px; } .cv-hello small { opacity: .55; font-size: 12px; } .cv-hello h2 { margin: 2px 0 0; font-size: 26px; letter-spacing: -.02em; }
.cv-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .cv-tiles > div { padding: 10px; border-radius: 16px; background: rgba(127,127,127,.1); } .cv-tiles b { display: block; font-size: 22px; } .cv-tiles small { font-size: 11px; opacity: .6; } .cv-tiles .hot { background: linear-gradient(135deg, #00C3FF, #4F6BED); color: #fff; } .cv-tiles .hot small { opacity: .85; }
.cv-next { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; } .cv-next > div { padding: 10px; border-radius: 16px; background: rgba(127,127,127,.1); } .cv-next small { font-size: 11px; opacity: .65; } .cv-next b { display: block; font-size: 12.5px; margin: 2px 0; } .cv-next em { font-style: normal; font-size: 11px; opacity: .6; }
.cv-task { width: 100%; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px; margin-bottom: 8px; border-radius: 18px; border: 0; background: rgba(255,255,255,.75); color: inherit; font: inherit; cursor: pointer; box-shadow: 0 6px 18px -12px rgba(11,20,38,.35); }
[data-theme="dark"] .cv-task { background: rgba(255,255,255,.06); }
.cv-task > span { flex: 1; min-width: 0; } .cv-task b { display: block; font-size: 13px; } .cv-task small { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.cv-ring text { font-size: 10px; font-weight: 700; fill: currentColor; }
.cv-steps { display: flex; gap: 3px; margin-top: 6px; } .cv-steps em { flex: 1; height: 4px; border-radius: 999px; background: rgba(127,127,127,.22); } .cv-steps em.is-done { background: #16A36A; } .cv-steps em.is-active { background: #00C3FF; }
.cv-badge { font-size: 10px; font-weight: 700; color: #fff; background: #E5484D; padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.cv-back { border: 0; background: none; color: #00A0D6; font: inherit; font-weight: 600; padding: 0; cursor: pointer; }
.cv-appr { padding: 12px; border-radius: 16px; background: linear-gradient(135deg, #00C3FF, #4F6BED); color: #fff; margin-bottom: 12px; } .cv-appr small { display: block; opacity: .85; font-size: 11.5px; margin: 2px 0 8px; } .cv-appr span { display: flex; gap: 6px; } .cv-appr i { font-style: normal; font-size: 11.5px; font-weight: 600; background: rgba(255,255,255,.22); padding: 6px 10px; border-radius: 999px; }
.cv-tl { list-style: none; margin: 0; padding: 0; } .cv-tl li { position: relative; padding: 0 0 14px 26px; } .cv-tl li::before { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: rgba(127,127,127,.22); } .cv-tl li:last-child::before { display: none; }
.cv-tl i { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: rgba(127,127,127,.25); } .cv-tl .is-done i { background: #16A36A; } .cv-tl .is-active i { background: #00C3FF; box-shadow: 0 0 0 4px rgba(0,195,255,.2); }
.cv-tl b { display: block; font-size: 13px; } .cv-tl small { font-size: 11px; opacity: .6; } .cv-tl .is-pending b { opacity: .55; }
.cv-post { padding: 10px; border-radius: 14px; background: rgba(127,127,127,.1); } .cv-post small { font-size: 11px; opacity: .65; } .cv-post p { margin: 4px 0 0; font-size: 12px; white-space: pre-wrap; }
.cv-chat { display: flex; flex-direction: column; gap: 6px; }
.cv-msg { max-width: 82%; padding: 8px 11px; border-radius: 16px; font-size: 12.5px; } .cv-msg p { margin: 0; white-space: pre-wrap; } .cv-msg small { display: block; font-size: 10px; opacity: .55; margin-top: 3px; text-align: right; }
.cv-msg.them { align-self: flex-start; background: rgba(255,255,255,.9); border-bottom-left-radius: 5px; } [data-theme="dark"] .cv-msg.them { background: rgba(255,255,255,.08); }
.cv-msg.me { align-self: flex-end; background: linear-gradient(135deg, #00C3FF, #4F6BED); color: #fff; border-bottom-right-radius: 5px; }
.cv-msg img, .cv-msg video { width: 100%; border-radius: 10px; margin-bottom: 4px; display: block; }
.cv-acard { border: 1.5px solid #00C3FF; } .cv-acard span { display: flex; gap: 6px; margin-top: 8px; } .cv-acard i { flex: 1; text-align: center; font-style: normal; font-size: 11px; font-weight: 600; padding: 6px; border-radius: 10px; background: rgba(0,195,255,.14); }
.cv-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; } .cv-files > div { aspect-ratio: 1; border-radius: 14px; background: rgba(127,127,127,.12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 22px; padding: 6px; text-align: center; } .cv-files small { font-size: 9.5px; opacity: .65; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cv-note { padding: 10px 12px; border-radius: 14px; background: rgba(127,127,127,.08); margin-bottom: 6px; } .cv-note.is-new { background: rgba(0,195,255,.12); } .cv-note b { font-size: 12.5px; } .cv-note p { margin: 2px 0; font-size: 12px; opacity: .8; } .cv-note small { font-size: 10.5px; opacity: .5; }
.cv-empty { text-align: center; opacity: .5; margin: 30px 0; }
.cv-tabs { display: flex; justify-content: space-around; padding: 8px 6px 22px; background: rgba(255,255,255,.75); border-top: 1px solid rgba(127,127,127,.15); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
[data-theme="dark"] .cv-tabs { background: rgba(11,16,32,.8); }
.cv-tabs button { position: relative; flex: 1; border: 0; background: none; color: inherit; opacity: .5; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 10px; cursor: pointer; } .cv-tabs svg { width: 20px; height: 20px; } .cv-tabs .is-on { opacity: 1; color: #00A0D6; }
.cv-tabs em { position: absolute; top: -2px; right: 22%; font-style: normal; font-size: 9px; font-weight: 700; background: #E5484D; color: #fff; border-radius: 999px; padding: 1px 5px; }
.cv-side { width: 280px; padding: 18px; border-radius: 24px; display: flex; flex-direction: column; gap: 14px; flex: none; }
.cv-who { display: flex; gap: 12px; align-items: center; } .cv-who b { display: block; font-size: 16px; } .cv-who small { color: var(--muted); font-size: 12px; }
.cv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .cv-facts > div { padding: 10px; border-radius: 14px; background: var(--glass-strong); } .cv-facts b { display: block; font-size: 20px; } .cv-facts small { font-size: 11px; color: var(--muted); }
.cv-pad { padding: 30px 16px; }
@media (max-width: 1100px) { .p2-kpis { grid-template-columns: repeat(3, 1fr); } .p2-grid { grid-template-columns: 1fr; } .p2-days { grid-template-columns: repeat(4, 1fr); } .cv-side { display: none; } }

/* ═══ v136 — right screen: full screen, no scrolling, floating client dashboard + phone ═══ */
body.cv-full { overflow: hidden; height: 100vh; }
body.cv-full #topbar { display: none; }
body.cv-full #view { padding: 0 !important; margin: 0 !important; max-width: none !important; width: 100vw; height: 100vh; }
body.cv-full .notes-dock, body.cv-full #notes-tab { display: none !important; }
.cvx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2vw; height: 100vh; padding: 2.2vh 2vw; box-sizing: border-box; overflow: hidden; }
.cvx-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1fr); gap: 1.6vh 1.2vw; min-height: 0; height: 100%; }
.cvx-card { border-radius: 26px; padding: 2vh 1.4vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; animation: cvFloat 7s ease-in-out infinite; animation-delay: var(--d, 0s); box-shadow: 0 30px 60px -36px rgba(11,20,38,.45); }
@keyframes cvFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .cvx-card { animation: none; } }
.cvx-card h3 { margin: 0 0 1.2vh; font-size: clamp(13px, 1vw, 16px); font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; } .cvx-card h3 small { color: var(--muted); font-weight: 500; font-size: 12px; }
.cvx-head { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.2vw; }
.cvx-head > div:nth-child(2) { flex: 1; min-width: 0; } .cvx-head small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; } .cvx-head h2 { margin: 2px 0; font-size: clamp(24px, 2.4vw, 40px); letter-spacing: -.03em; } .cvx-head p { margin: 0; color: var(--muted); }
.cvx-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; } .cvx-badges span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; } .cvx-badges svg { width: 14px; height: 14px; }
.cvx-badges .ok { background: var(--ok-soft); color: var(--ok); } .cvx-badges .bad { background: var(--bad-soft); color: var(--bad); }
.cvx-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1vw; } .cvx-kpis > div { padding: 1.2vh .8vw; border-radius: 18px; background: var(--glass-strong); }
.cvx-kpis b { display: block; font-size: clamp(26px, 2.6vw, 44px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; } .cvx-kpis small { color: var(--muted); font-size: 12px; }
.cvx-kpis .hot { background: linear-gradient(135deg, #00C3FF, #4F6BED); color: #fff; } .cvx-kpis .hot small { color: rgba(255,255,255,.85); }
.cvx-avg { grid-column: span 3; align-items: center; justify-content: center; text-align: center; } .cvx-avg h3 { align-self: stretch; }
.cvx-ring { position: relative; width: min(100%, 18vh); aspect-ratio: 1; } .cvx-ring svg { width: 100%; height: 100%; } .cvx-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(22px, 2.2vw, 36px); }
.cvx-avg small { color: var(--muted); font-size: 12px; margin-top: 1vh; }
.cvx-proj { grid-column: span 5; } .cvx-plist { display: flex; flex-direction: column; gap: 1vh; overflow: hidden; }
.cvx-p { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 10px; align-items: center; cursor: pointer; padding: 6px 8px; border-radius: 12px; } .cvx-p:hover { background: var(--glass-strong); }
.cvx-p b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cvx-p small { color: var(--muted); font-size: 11.5px; } .cvx-p em { font-style: normal; color: var(--warn); font-weight: 600; } .cvx-p strong { text-align: right; font-size: 13px; }
.cvx-seg { display: flex; gap: 3px; } .cvx-seg em { flex: 1; height: 8px; border-radius: 999px; background: var(--faint); } .cvx-seg em.is-done { background: #16A36A; } .cvx-seg em.is-active { background: #00C3FF; box-shadow: 0 0 10px rgba(0,195,255,.6); }
.cvx-steps { grid-column: span 4; } .cvx-steps { flex-direction: column; } .cvx-donut { position: relative; width: min(100%, 15vh); aspect-ratio: 1; margin: 0 auto 1vh; } .cvx-donut svg { width: 100%; height: 100%; } .cvx-donut b { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; font-size: 22px; line-height: 1; } .cvx-donut b small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.cvx-steps .legend { display: flex; flex-direction: column; gap: 4px; font-size: 12px; overflow: hidden; }
.cvx-next { grid-column: span 5; } .cvx-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin-bottom: 1.2vh; }
.cvx-strip > div { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; border-radius: 10px; background: var(--glass-strong); } .cvx-strip > div.is-today { background: var(--info-soft); outline: 1.5px solid var(--accent); }
.cvx-strip small { font-size: 10px; color: var(--muted); } .cvx-strip b { font-size: 13px; } .cvx-strip i { width: 7px; height: 7px; border-radius: 50%; }
.cvx-upl { display: flex; flex-direction: column; gap: 8px; overflow: hidden; } .cvx-upl > div { display: grid; grid-template-columns: 10px 1fr; column-gap: 8px; align-items: baseline; } .cvx-upl i { width: 10px; height: 10px; border-radius: 50%; grid-row: span 2; align-self: center; } .cvx-upl b { font-size: 13px; } .cvx-upl small { grid-column: 2; color: var(--muted); font-size: 11.5px; }
.cvx-appr { grid-column: span 4; } .cvx-alist, .cvx-flist { display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.cvx-alist > div { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; } .cvx-alist b { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cvx-alist small { color: var(--muted); font-size: 11px; }
.cvx-feed { grid-column: span 3; } .cvx-flist > div { padding: 8px 10px; border-radius: 12px; background: var(--glass-strong); } .cvx-flist > div.is-new { background: var(--info-soft); } .cvx-flist b { display: block; font-size: 12.5px; } .cvx-flist small { color: var(--muted); font-size: 11px; }
.cvx-phone { display: flex; flex-direction: column; align-items: center; gap: 1.2vh; height: 100%; min-height: 0; }
.cvx-ctl { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px; border-radius: 16px; flex-wrap: nowrap; } .cvx-ctl select { height: 32px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13px; padding: 0 8px; max-width: 200px; }
.cvx-ctl .icon-btn { width: 32px; height: 32px; } .cvx-ctl .cv-live { margin-left: 0; }
.cvx-phone .cv-phone { flex: 1; min-height: 0; height: auto; max-height: 100%; }
@media (max-width: 1100px) { .cvx-avg, .cvx-proj, .cvx-steps, .cvx-next, .cvx-appr, .cvx-feed { grid-column: span 6; } .cvx-dash { grid-template-rows: auto; overflow: auto; } }
body.cv-full .os-main { max-width: none !important; width: 100vw; padding: 0 !important; margin: 0 !important; height: 100vh; overflow: hidden; }
body.cv-full #view { width: 100% !important; }
body.cv-full .os { display: block; }

/* ═══ v137 — left + centre fill the screen, no page scrolling ═══ */
/* left */
body.p2-full { overflow: hidden; height: 100vh; }
body.p2-full #topbar { display: none; }
body.p2-full .notes-dock, body.p2-full #notes-tab { display: none !important; }
body.p2-full .os-main { max-width: none !important; width: 100vw; padding: 2.2vh 2vw !important; margin: 0 !important; height: 100vh; overflow: hidden; box-sizing: border-box; }
body.p2-full .os { display: block; }
body.p2-full #view { height: 100%; }
body.p2-full .pulse2 { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.8vh; }
body.p2-full .p2-kpis { grid-template-columns: 1.3fr repeat(5, 1fr); gap: 1.2vw; }
.p2-brand { display: flex; flex-direction: column; justify-content: center; position: relative; } .p2-brand b { font-size: clamp(20px, 1.8vw, 30px) !important; } .p2-brand span { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; } .p2-brand .icon-btn { width: 30px; height: 30px; }
body.p2-full .p2-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2vw; min-height: 0; }
body.p2-full .p2-grid > .card, body.p2-full .p2-week, body.p2-full .p2-k { animation: cvFloat 7s ease-in-out infinite; box-shadow: 0 30px 60px -36px rgba(11,20,38,.45); }
body.p2-full .p2-grid > .card:nth-child(2) { animation-delay: .5s; } body.p2-full .p2-grid > .card:nth-child(3) { animation-delay: 1s; } body.p2-full .p2-grid > .card:nth-child(4) { animation-delay: 1.5s; } body.p2-full .p2-week { animation-delay: 2s; }
body.p2-full .p2-k:nth-child(2n) { animation-delay: .7s; } body.p2-full .p2-k:nth-child(3n) { animation-delay: 1.4s; }
body.p2-full .p2-grid > .card { min-height: 0; overflow: hidden; display: flex; flex-direction: column; margin: 0; }
body.p2-full .p2-ring { flex: 1; flex-direction: column; justify-content: center; } body.p2-full .p2-ring .ring { width: min(100%, 22vh); height: auto; aspect-ratio: 1; }
body.p2-full .p2-bars { flex: 1; min-height: 0; }
body.p2-full .p2-money { flex: 1; height: auto; }
body.p2-full .p2-week { min-height: 0; display: flex; flex-direction: column; margin: 0; }
body.p2-full .p2-days { flex: 1; min-height: 0; } body.p2-full .p2-day { min-height: 0; overflow: hidden; }
/* centre home */
body.centre-home { overflow: hidden; }
body.centre-home .os-main { height: 100vh; overflow: hidden; padding-bottom: 22px; box-sizing: border-box; display: flex; flex-direction: column; }
body.centre-home #view { flex: 1; min-height: 0; } body.centre-home #view > .view-pane { height: 100%; }
.ch { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.6vh 1.2vw; }
.ch-card { border-radius: 26px; padding: 2vh 1.4vw; min-height: 0; overflow: hidden; display: flex; flex-direction: column; animation: cvFloat 7s ease-in-out infinite; animation-delay: var(--d, 0s); box-shadow: 0 30px 60px -36px rgba(11,20,38,.45); }
.ch-card h3 { margin: 0 0 1.2vh; font-size: clamp(13px, 1vw, 16px); font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; } .ch-card h3 small, .ch-card h3 a { color: var(--muted); font-weight: 500; font-size: 12px; cursor: pointer; }
.ch-clock { grid-column: span 5; align-items: center; justify-content: center; } .ch-clock .time { font-size: clamp(64px, 8vw, 150px); font-weight: 600; letter-spacing: -.05em; line-height: 1; } .ch-clock .time small { font-size: .3em; margin-left: .2em; letter-spacing: 0; } .ch-clock .date { color: var(--muted); font-size: clamp(14px, 1.2vw, 20px); margin-top: 1vh; }
.ch-hello { grid-column: span 7; justify-content: center; } .ch-hello small { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; } .ch-hello h1 { margin: .2vh 0 .4vh; font-size: clamp(30px, 3.2vw, 56px); letter-spacing: -.03em; } .ch-hello p { margin: 0 0 1.4vh; color: var(--ink-2); font-size: clamp(14px, 1.1vw, 18px); } .ch-hello p b { color: var(--accent); }
.ch-lanes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8vw; margin-bottom: 1.4vh; } .ch-lanes a { padding: 1vh .8vw; border-radius: 16px; background: var(--glass-strong); cursor: pointer; } .ch-lanes b { display: block; font-size: clamp(20px, 1.8vw, 30px); } .ch-lanes small { color: var(--muted); font-size: 12px; }
.ch-ask { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); } .ch-ask input { flex: 1; border: 0; background: none; outline: none; color: var(--ink); font: inherit; } .ch-ask .orb { width: 20px; height: 20px; }
.ch-needs { grid-column: span 4; grid-row: span 2; } .ch-today { grid-column: span 4; } .ch-msgs { grid-column: span 4; grid-row: span 2; } .ch-wip { grid-column: span 4; }
.ch-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6vh; overflow: hidden; }
.ch-list li { display: flex; align-items: center; gap: 10px; padding: .9vh .6vw; border-radius: 14px; cursor: pointer; transition: background .2s; } .ch-list li:hover { background: var(--glass-strong); }
.ch-list li > span:not(.ch-av):not(.ch-step) { flex: 1; min-width: 0; } .ch-list b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ch-list small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-list em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; } .ch-list em.bad { color: var(--bad); } .ch-list em.warn { color: var(--warn); }
.ch-list li.done { opacity: .35; text-decoration: line-through; }
.ch-tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--glass-line); background: none; cursor: pointer; } .ch-tick:hover { border-color: var(--ok); background: var(--ok-soft); }
.ch-step { width: 40%; flex: none; } .ch-step i { display: block; height: 6px; border-radius: 999px; background: var(--faint); overflow: hidden; } .ch-step em { display: block; height: 100%; background: linear-gradient(90deg, #00C3FF, #16A36A); border-radius: inherit; } .ch-step small { margin-top: 3px; }
.ch-av { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-strong); font-size: 13px; }
.ch-agenda { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6vh; overflow: hidden; }
.ch-agenda li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: center; padding: .8vh .6vw; border-radius: 12px; border-left: 3px solid var(--k); background: color-mix(in srgb, var(--k) 8%, transparent); cursor: pointer; }
.ch-agenda time { font-size: 12px; font-weight: 700; color: var(--k); } .ch-agenda b { display: block; font-size: 13px; } .ch-agenda small { color: var(--muted); font-size: 11px; }
.ch-tmrw { margin-top: auto; padding-top: 1vh; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; } .ch-tmrw small { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.ch-more { margin-top: auto; font-size: 12px; color: var(--accent); cursor: pointer; padding-top: .8vh; }
.ch-empty { color: var(--muted); margin: auto; }
@media (max-width: 1100px) { body.centre-home, body.centre-home .os-main { overflow: auto; height: auto; } .ch { height: auto; grid-template-rows: auto; } .ch > * { grid-column: 1 / -1 !important; grid-row: auto !important; } }
body.p2-full .p2-week .legend { display: flex; flex-wrap: wrap; gap: 6px 18px; flex-direction: row; }
body.p2-full .p2-week .legend span { display: inline-flex; align-items: center; gap: 6px; width: auto; }
.ch-needs { grid-column: 1 / 5; grid-row: 2 / 4; } .ch-today { grid-column: 5 / 9; grid-row: 2 / 3; } .ch-msgs { grid-column: 5 / 9; grid-row: 3 / 4; } .ch-wip { grid-column: 9 / 13; grid-row: 2 / 4; }

/* ═══ v138 — message alerts: floating panel, Messages badge, image zoom ═══ */
.dock-btn { position: relative; }
.dock-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg, #fff); animation: badgePop .5s var(--spring); }
@keyframes badgePop { from { transform: scale(.3); } to { transform: scale(1); } }
#msg-stack { position: fixed; top: 84px; right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.msg-pop { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; padding: 14px 14px 16px; border-radius: 22px; background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%);
  border: 1px solid var(--glass-line); box-shadow: 0 24px 60px -20px rgba(11,20,38,.45), 0 0 0 1px rgba(0,195,255,.15); animation: popIn .55s cubic-bezier(.2,1.2,.3,1); }
@keyframes popIn { from { transform: translateX(120%) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.msg-pop.out { transition: transform .35s ease, opacity .35s; transform: translateX(120%); opacity: 0; }
.msg-pop__av { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #25D366; color: #fff; font-weight: 700; }
.msg-pop__b { flex: 1; min-width: 0; } .msg-pop__h { display: flex; align-items: center; gap: 8px; padding-right: 22px; } .msg-pop__h b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-pop__ch { flex: none; font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--info-soft); color: var(--info); } .msg-pop__ch.whatsapp { background: rgba(37,211,102,.15); color: #128C4B; }
.msg-pop p { margin: 4px 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.msg-pop img { display: block; max-width: 100%; max-height: 160px; border-radius: 12px; margin-bottom: 8px; cursor: zoom-in; object-fit: cover; }
.msg-pop__a { display: flex; gap: 6px; }
.msg-pop__x { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; } .msg-pop__x svg { width: 14px; height: 14px; }
.msg-pop__t { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #00C3FF, #4F6BED); transform-origin: left; animation: popTimer 15s linear forwards; } .msg-pop.hold .msg-pop__t { animation-play-state: paused; }
@keyframes popTimer { to { transform: scaleX(0); } }
.wam-load { display: inline-block; padding: 10px 12px; border-radius: 12px; background: var(--glass-strong); font-size: 12.5px; color: var(--muted); }
.bub img { cursor: zoom-in; }
.img-zoom { position: fixed; inset: 0; z-index: 200; background: rgba(5,10,20,.82); display: grid; place-items: center; padding: 4vh 4vw; animation: fadeIn .2s; cursor: zoom-out; } .img-zoom.out { opacity: 0; transition: opacity .25s; }
.img-zoom img { max-width: 100%; max-height: 100%; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.img-zoom button { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; cursor: pointer; display: grid; place-items: center; } .img-zoom button svg { width: 18px; height: 18px; }
@keyframes fadeIn { from { opacity: 0; } }
body.p2-full #msg-stack, body.cv-full #msg-stack { top: 22px; }

/* ═══ v139 — Google Drive, Docs, Sheets & Slides ═══ */
.gd-ic { flex: none; width: 34px; height: 40px; border-radius: 8px; color: #fff; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; line-height: 1; box-shadow: inset 0 -10px 0 rgba(0,0,0,.08); }
.gd-ic small { font-size: 7.5px; font-weight: 700; margin-top: 3px; letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
.card-head h3 .gd-ic { width: 22px; height: 26px; font-size: 11px; vertical-align: -7px; margin-right: 6px; } .card-head h3 .gd-ic small { display: none; }
.gd-new { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gd-nb { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px; border-radius: 18px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; cursor: pointer; transition: transform .25s var(--spring), border-color .2s; }
.gd-nb:hover { transform: translateY(-2px); border-color: var(--accent); } .gd-nb > svg { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--info-soft); color: var(--accent); flex: none; }
.gd-nb b { display: block; font-size: 13.5px; } .gd-nb small { color: var(--muted); font-size: 11.5px; }
.gd-tpls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; } .gd-tpls > small { color: var(--muted); font-size: 12px; margin-right: 4px; } .gd-tpls .gd-ic { width: 18px; height: 22px; font-size: 9px; } .gd-tpls .gd-ic small { display: none; }
.gd-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.gd-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--glass-strong); border: 1px solid var(--glass-line); flex-wrap: wrap; } .gd-card.is-trashed { opacity: .5; }
.gd-card__main { flex: 1; min-width: 220px; display: flex; gap: 12px; align-items: center; border: 0; background: none; text-align: left; color: var(--ink); font: inherit; cursor: pointer; padding: 0; }
.gd-card__main b { display: block; font-size: 14px; } .gd-card__main small { color: var(--muted); font-size: 12px; }
.gd-card__acts { display: flex; gap: 6px; align-items: center; } .gd-card__acts svg { width: 15px; height: 15px; }
.gd-roles { display: flex; gap: 8px; } .gd-roles label { flex: 1; } .gd-roles input { display: none; } .gd-roles span { display: block; text-align: center; padding: 10px; border-radius: 12px; border: 1.5px solid var(--glass-line); cursor: pointer; font-weight: 600; font-size: 13px; } .gd-roles input:checked + span { border-color: var(--accent); background: var(--info-soft); color: var(--accent); }
.gd-view { position: fixed; inset: 0; z-index: 150; background: rgba(5,10,20,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: flex; flex-direction: column; padding: 16px; gap: 10px; animation: fadeIn .2s; } .gd-view.out { opacity: 0; transition: opacity .25s; }
.gd-view__bar { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--glass-line); } .gd-view__bar b { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .gd-view__bar .gd-ic { width: 26px; height: 30px; font-size: 12px; } .gd-view__bar .gd-ic small { display: none; } .gd-view__bar svg { width: 15px; height: 15px; }
.gd-view__frame { position: relative; flex: 1; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.4); } .gd-view__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.gd-view__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 420px; text-align: center; color: #64748B; font-size: 13px; z-index: 0; }
.gd-trow { display: flex; align-items: center; gap: 10px; padding: 6px 0; } .gd-trow b { flex: 1; font-size: 13px; } .gd-trow .gd-ic { width: 22px; height: 26px; font-size: 11px; } .gd-trow .gd-ic small { display: none; }
#google-card code { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: var(--glass-strong); word-break: break-all; }

/* v140 — share window */
.gd-sec { padding: 14px 0; border-top: 1px solid var(--glass-line); } .gd-sec:first-of-type { border-top: 0; padding-top: 4px; }
.gd-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; } .gd-sec h4 svg { width: 16px; height: 16px; color: var(--accent); }
.gd-linkrow { display: flex; gap: 8px; margin-top: 10px; } .gd-linkrow input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--muted); font: inherit; font-size: 12.5px; padding: 0 10px; }
.gd-linkrow svg { width: 14px; height: 14px; }
.gd-sec textarea { width: 100%; border-radius: 12px; border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); font: inherit; font-size: 13.5px; padding: 10px 12px; resize: vertical; }
.gd-card__tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* v141 — new file window */
.gd-vis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .gd-vis input { display: none; }
.gd-vis span { display: block; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--glass-line); cursor: pointer; } .gd-vis b { display: block; font-size: 13px; } .gd-vis small { color: var(--muted); font-size: 11.5px; }
.gd-vis input:checked + span { border-color: var(--accent); background: var(--info-soft); }
@media (max-width: 640px) { .gd-vis { grid-template-columns: 1fr; } }

/* ═══ v143 — upload panel ═══ */
#up-stack { position: fixed; left: 18px; bottom: 18px; z-index: 130; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 36px)); }
body:not(.pano-side) #up-stack { left: 104px; }
@media (max-width: 860px) { body:not(.pano-side) #up-stack { left: 12px; bottom: 96px; } }
.up-card { padding: 12px 14px 12px; border-radius: 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); border: 1px solid var(--glass-line); box-shadow: 0 20px 50px -20px rgba(11,20,38,.45); animation: upIn .45s cubic-bezier(.2,1.2,.3,1); }
@keyframes upIn { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.up-card.out { transition: transform .35s, opacity .35s; transform: translateY(16px); opacity: 0; }
.up-top { display: flex; align-items: center; gap: 10px; } .up-top b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-ic { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--info-soft); color: var(--accent); font-weight: 800; font-size: 14px; }
.up-x { flex: none; width: 26px; height: 26px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; } .up-x:hover { background: var(--bad-soft); color: var(--bad); }
.up-bar { height: 8px; border-radius: 999px; background: var(--faint); overflow: hidden; margin: 10px 0 8px; } .up-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #00C3FF, #4F6BED); transition: width .3s ease; position: relative; overflow: hidden; }
.up-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); animation: upShine 1.4s linear infinite; }
@keyframes upShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.up-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); } .up-meta + .up-meta { margin-top: 3px; } .up-pc { color: var(--ink); font-weight: 700; } .up-sp { color: var(--ink-2); font-weight: 600; }
.up-card.is-proc .up-bar i { background: linear-gradient(90deg, #8B5CF6, #4F6BED); }
.up-card.is-ok .up-ic { background: var(--ok-soft); color: var(--ok); } .up-card.is-ok .up-bar i { background: var(--ok); } .up-card.is-ok .up-bar i::after, .up-card[data-done] .up-bar i::after { display: none; }
.up-card.is-bad .up-ic { background: var(--bad-soft); color: var(--bad); } .up-card.is-bad .up-bar i { background: var(--bad); } .up-card.is-bad .up-sp { color: var(--bad); }

/* v144 — TikTok options in the composer */
.sm-tt { margin: 4px 0 12px; padding: 14px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass-strong); display: flex; flex-direction: column; gap: 10px; }
.sm-tt-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sm-tt-h small.bad { color: var(--bad); font-size: 12px; width: 100%; }
.sm-tt-sw { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.sm-tt-t { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; } .sm-tt-t small { display: block; color: var(--muted); font-size: 11.5px; } .sm-tt-t.off { opacity: .55; cursor: default; }
.sm-tt-legal { font-size: 11.5px; line-height: 1.45; } .sm-tt-legal a { color: var(--accent); }
.sm-tt b.bad { color: var(--bad); }
#tt-app code { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: var(--glass-strong); word-break: break-all; }

/* ═══ v147 Ads Manager ═══ */
.ad-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:14px; }
.ad-pill { display:inline-block; padding:4px 10px; border-radius:999px; font:600 12px var(--font); background:var(--glass-line); color:var(--muted); white-space:nowrap; }
.ad-pill.ok { background:var(--ok-soft); color:var(--ok); } .ad-pill.warn { background:var(--warn-soft); color:var(--warn); }
.ad-pill.bad { background:rgba(220,60,60,.14); color:var(--bad); } .ad-pill.info { background:rgba(49,160,230,.14); color:var(--accent); }
.ad-connect { text-align:center; padding:40px 24px; display:grid; gap:12px; justify-items:center; }
.ad-connect .big-ic svg { width:40px; height:40px; color:var(--accent); } .ad-connect h2 { margin:0; }
.ad-help { text-align:start; max-width:640px; margin-top:10px; font-size:13.5px; } .ad-help summary { cursor:pointer; font-weight:600; }
.ad-help ol { padding-inline-start:20px; line-height:1.6; } .ad-help code { font-size:12px; padding:1px 5px; border-radius:6px; background:var(--glass-line); }
.ad-legend i { display:inline-block; width:10px; height:10px; border-radius:3px; margin:0 4px 0 10px; vertical-align:-1px; }
.ad-legend i.sp, .ad-chart rect.sp { fill:var(--accent); background:var(--accent); opacity:.75; }
.ad-legend i.rs { background:var(--ok); height:3px; vertical-align:2px; }
.ad-chart { width:100%; height:200px; display:block; } .ad-chart path.rs { fill:none; stroke:var(--ok); stroke-width:2.5; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.ad-chart text { fill:var(--muted); font:11px var(--font); }
.ad-table-wrap { overflow-x:auto; margin:0 -6px; } .ad-table { width:100%; border-collapse:collapse; font-size:13.5px; min-width:760px; }
.ad-table th { text-align:start; font:600 12px var(--font); color:var(--muted); padding:8px 10px; border-bottom:1px solid var(--glass-line); white-space:nowrap; }
.ad-table td { padding:12px 10px; border-bottom:1px solid var(--glass-line); vertical-align:middle; } .ad-table td small { display:block; color:var(--muted); font-size:12px; }
.ad-table td.end { text-align:end; } .ad-table tr:last-child td { border-bottom:0; }
.ad-draft { width:100%; text-align:start; } .ad-thumb { width:48px; height:48px; border-radius:12px; overflow:hidden; flex:none; display:grid; place-items:center; background:var(--glass-line); }
.ad-thumb img, .ad-thumb video { width:100%; height:100%; object-fit:cover; }
.ad-view { display:grid; gap:16px; } .ad-facts { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:10px; }
.ad-facts > div { padding:12px 14px; border-radius:14px; background:var(--glass-line); display:grid; gap:2px; } .ad-facts small { color:var(--muted); font-size:12px; }
.ad-previews { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.ad-prev { border-radius:18px; overflow:hidden; display:flex; flex-direction:column; } .ad-prev header { padding:12px 14px 0; display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted); }
.ad-ver { width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:var(--accent); color:#fff; font-weight:700; font-size:12px; }
.ad-prev p { margin:8px 14px 12px; font-size:13.5px; white-space:pre-wrap; } .ad-prev-media img, .ad-prev-media video { width:100%; display:block; max-height:360px; object-fit:cover; background:#000; }
.ad-prev footer { display:flex; gap:10px; align-items:center; justify-content:space-between; padding:10px 14px; background:var(--glass-line); }
.ad-prev footer span { display:grid; min-width:0; } .ad-prev footer small { color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ad-prev footer em { font-style:normal; font-weight:600; font-size:12.5px; padding:7px 12px; border-radius:10px; background:var(--glass-line); white-space:nowrap; text-transform:capitalize; }
.ad-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.ad-form { display:grid; gap:16px; } .ad-form fieldset { border:1px solid var(--glass-line); border-radius:18px; padding:14px 16px 16px; display:grid; gap:12px; margin:0; }
.ad-form legend { font-weight:700; padding:0 6px; } .ad-two { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ad-money { display:flex; gap:8px; align-items:center; } .ad-money input { flex:1; min-width:0; } .ad-money b { color:var(--muted); font-size:13px; }
.ad-chips { display:flex; flex-wrap:wrap; gap:6px; } .ad-chips:empty { display:none; }
.ad-chip { display:inline-flex; gap:6px; align-items:center; padding:5px 6px 5px 11px; border-radius:999px; background:var(--glass-line); font-size:13px; }
.ad-chip button { border:0; background:none; color:var(--muted); cursor:pointer; font-size:15px; line-height:1; }
.ad-sugg { display:flex; flex-direction:column; gap:2px; max-height:220px; overflow:auto; } .ad-sugg:empty { display:none; }
.ad-sugg button { text-align:start; border:0; background:none; padding:8px 10px; border-radius:10px; cursor:pointer; color:var(--ink); font:inherit; }
.ad-sugg button:hover { background:var(--glass-line); } .ad-sugg small { color:var(--muted); margin-inline-start:6px; }
.ad-var { border-radius:16px; padding:12px; display:grid; gap:10px; } .ad-var-head { display:flex; justify-content:space-between; align-items:center; }
.ad-var-grid { display:grid; grid-template-columns:150px 1fr; gap:12px; }
.ad-drop { border:1.5px dashed var(--glass-line); border-radius:14px; min-height:150px; display:grid; place-items:center; align-content:center; gap:6px; cursor:pointer; overflow:hidden; color:var(--muted); font-size:12.5px; text-align:center; }
.ad-drop img, .ad-drop video { width:100%; height:100%; max-height:220px; object-fit:cover; } .ad-drop.busy { opacity:.5; pointer-events:none; }
.ad-ab { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:13.5px; } .ad-ab input[type=number] { width:60px; }
.ad-acc-ic { flex:none; }
@media (max-width: 700px) { .ad-two, .ad-var-grid { grid-template-columns:1fr; } }
.ad-bar .sx-seg { margin:0; }
.ad-drop > svg { width:28px; height:28px; } .ad-thumb > svg, .ad-acc-ic svg { width:22px; height:22px; }

/* v148: promote an existing post */
.ad-src { justify-self:start; }
#adw-newad[hidden] { display:none !important; }
.ad-posts { display:grid; grid-template-columns:repeat(auto-fill, minmax(140px, 1fr)); gap:10px; max-height:420px; overflow:auto; padding:2px; margin-top:10px; }
.ad-post { border:2px solid transparent; border-radius:14px; background:var(--glass-line); padding:0 0 8px; display:grid; gap:6px; text-align:start; cursor:pointer; color:var(--ink); font:inherit; overflow:hidden; }
.ad-post.is-on { border-color:var(--accent); box-shadow:0 0 0 3px rgba(49,180,230,.2); }
.ad-post-img { position:relative; aspect-ratio:1; display:grid; place-items:center; background:rgba(0,0,0,.06); overflow:hidden; }
.ad-post-img img { width:100%; height:100%; object-fit:cover; } .ad-post-img > svg { width:26px; height:26px; color:var(--muted); }
.ad-post-img i { position:absolute; inset:auto 8px 8px auto; width:26px; height:26px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:grid; place-items:center; font-size:11px; font-style:normal; }
.ad-post-meta { display:flex; gap:6px; align-items:center; padding:0 8px; } .ad-post-meta small { color:var(--muted); font-size:11.5px; }
.ad-post-cap { padding:0 8px; font-size:12px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
