/* ═══════════════════════════════════════════════════════════════════
   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; }
