/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--t-base); line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-feature-settings: 'ss01', 'cv11';
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.label { font-size: var(--t-xs); font-weight: 500; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.eyebrow { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow--night { color: var(--warm-2); }
.icon { flex: none; display: block; }
.num, .kpi__value, .chart text, .table td { font-variant-numeric: tabular-nums; }

/* Display type: bold sans with selective serif italic */
.display {
  font-size: var(--t-3xl); line-height: 1.06; font-weight: 650; letter-spacing: -0.028em; text-wrap: balance;
}
.display em, .serif {
  font-family: var(--font-serif); font-style: italic; font-weight: 550; color: var(--accent);
  letter-spacing: -0.01em; font-variation-settings: 'opsz' 144, 'SOFT' 30;
}

/* ============ Shell ============ */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100%; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 26px 16px 18px; border-right: 1px solid var(--line); background: var(--paper);
}
.sidebar__top { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 34px; }
.sidebar__tag { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-ink-3); border: 1px solid var(--night-line); padding: 2px 7px; border-radius: 99px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: -0.03em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 3px; }
.logo em { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); font-size: 18px; letter-spacing: -0.01em; }
.logo--night { color: var(--night-ink); }
.logo--night em { color: var(--accent-2); }

.nav { display: grid; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px; border: 0; background: none; cursor: pointer; width: 100%; text-align: left;
  transition: background 0.15s, color 0.15s; position: relative;
}
.nav__item .icon { color: var(--ink-3); transition: color 0.15s; }
.nav__item:hover { background: var(--paper-2); color: var(--ink); }
.nav__item.is-on { background: var(--paper-3); color: var(--ink); font-weight: 600; }
.nav__item.is-on .icon { color: var(--ink); }
.nav__item.is-on::before { content: ''; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 2px; background: var(--ink); border-radius: 2px; }
.nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.sidebar__bottom { margin-top: auto; display: grid; gap: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.nav__logout { font-size: 13.5px; }

.sidebar--night { background: var(--night); border-right-color: var(--night); color: var(--night-ink); }
.sidebar--night .nav__item { color: var(--night-ink-2); }
.sidebar--night .nav__item .icon { color: var(--night-ink-3); }
.sidebar--night .nav__item:hover { background: var(--night-2); color: var(--night-ink); }
.sidebar--night .nav__item.is-on { background: var(--night-3); color: var(--night-ink); }
.sidebar--night .nav__item.is-on .icon { color: var(--accent-2); }
.sidebar--night .nav__item.is-on::before { background: var(--accent-2); }
.sidebar--night .nav__badge { background: var(--accent-2); color: var(--night); }
.sidebar--night .sidebar__bottom { border-top-color: var(--night-line); }
.sidebar--night .who-menu__btn { color: var(--night-ink); }
.sidebar--night .who-menu__btn:hover { background: var(--night-2); }
.sidebar--night .who-menu__txt span { color: var(--night-ink-3); }

.who-menu { position: relative; }
.who-menu__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; }
.who-menu__btn:hover { background: var(--paper-2); }
.who-menu__txt { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.who-menu__txt strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-menu__txt span { font-size: 12px; color: var(--ink-3); }
.who-menu__pop {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: -30px; z-index: 30; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px;
  animation: pop 0.16s var(--ease);
}
.who-menu__label { font-size: 11px; color: var(--ink-3); padding: 8px 10px 6px; letter-spacing: 0.04em; }
.who-menu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.who-menu__pop button:hover, .who-menu__pop button.is-on { background: var(--paper-2); }
.who-menu__pop button span { display: grid; flex: 1; line-height: 1.3; }
.who-menu__pop .who-menu__action { color: var(--ink); margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.pw-form { display: grid; gap: 14px; }
.who-menu__pop small { color: var(--ink-3); font-size: 12px; }
.who-menu__pop strong { font-weight: 550; font-size: 13.5px; }

.main { min-width: 0; padding: 52px 56px 96px; }
.main:has(.inbox) { padding: 0; }
.page { max-width: var(--content); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.insights, .split > *, .convo, .chat-layout > * { min-width: 0; }
.page--wide { max-width: 1280px; }
.page--narrow { max-width: 820px; }

.topbar, .tabbar, .sheet { display: none; }

/* ============ Page header ============ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 32px; flex-wrap: wrap; }
.page-head__text { display: grid; gap: 14px; min-width: 0; }
.page-head__sub { color: var(--ink-2); font-size: var(--t-md); }
.page-head__actions, .page-toolbar__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-head__back { display: inline-flex; align-items: center; gap: 4px; margin-left: -10px; padding: 6px 10px; border: 0; border-radius: 99px; background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; justify-self: start; }
.page-head__back:hover { background: var(--paper-2); color: var(--ink); }
.page-head__acct { display: block; font-size: var(--t-base); letter-spacing: 0; font-weight: 400; margin-top: 14px; }
.acct { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; font-weight: 400; letter-spacing: 0; }
.acct strong { font-weight: 600; }
.acct .muted { font-size: 13px; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-toolbar__title { display: inline-flex; align-items: center; gap: 12px; font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; flex-wrap: wrap; }

.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; } /* minmax: wide children (e.g. a .seg) scroll instead of widening the page */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; }
.section-head h2 em { font-family: var(--font-serif); font-weight: 500; color: var(--accent); }
.section-head p { color: var(--ink-2); font-size: var(--t-sm); margin-top: 4px; }
.section-head__actions { min-width: 0; max-width: 100%; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.split--admin { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; }

/* ============ Controls ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  font-weight: 550; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:hover { background: var(--paper-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn--sm { height: 32px; padding: 0 13px; font-size: 13px; }
.btn--primary { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn--quiet { border-color: transparent; color: var(--ink-2); }
.btn--danger { background: var(--down); border-color: var(--down); color: #fff; }
.btn--danger:hover { background: var(--down-hover); }
.btn--light { background: var(--night-ink); border-color: var(--night-ink); color: var(--night); }
.btn--light:hover { background: #fff; border-color: #fff; }
.btn--ghost-night { border-color: var(--night-line); color: var(--night-ink); }
.btn--ghost-night:hover { background: var(--night-2); border-color: var(--night-ink-3); }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 99px; border: 0; background: none; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--paper-2); color: var(--ink); }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; }
.textlink:hover { color: var(--ink); }

.seg { display: inline-flex; padding: 3px; border-radius: 99px; background: var(--paper-2); border: 1px solid var(--line); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background 0.18s, color 0.18s, box-shadow 0.18s; }
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 26, 38, 0.1), 0 0 0 1px var(--line); font-weight: 600; }
.seg--sm button { padding: 5px 11px; font-size: 12.5px; }
.seg--night { background: var(--night-2); border-color: var(--night-line); }
.seg--night button { color: var(--night-ink-2); }
.seg--night button:hover { color: var(--night-ink); }
.seg--night button.is-on { background: var(--night-3); color: var(--night-ink); box-shadow: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 550; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--up { background: var(--up-soft); color: var(--up); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }

.delta { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta--up { color: var(--up); }
.delta--down { color: var(--down); }
.delta--flat { color: var(--ink-3); }
.panel .delta--up { color: var(--up-night); }
.panel .delta--down { color: var(--down-night); }
.panel .delta--flat { color: var(--night-ink-3); }

.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--ink); font-weight: 600; flex: none; letter-spacing: 0; }
.avatar--agency { background: var(--ink); color: var(--accent-soft); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 7px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 99px; background: var(--paper-2); font-size: 12.5px; }
.chip button { border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink-3); }

.copy { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.copy__v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.copy__b { position: relative; border: 0; background: none; color: inherit; opacity: 0.6; cursor: pointer; display: grid; place-items: center; padding: 4px; border-radius: 6px; }
.copy__b:hover { opacity: 1; }
.copy__ok { position: absolute; left: 100%; margin-left: 4px; font-size: 12px; opacity: 0; white-space: nowrap; transition: opacity 0.2s; }
.copy__b[data-done] .copy__ok { opacity: 1; }

.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-3); }
.search input { border: 0; background: none; outline: none; color: var(--ink); width: 200px; max-width: 50vw; }

/* ============ KPIs ============ */
.kpis { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.kpi { padding: 20px 24px 4px 0; display: grid; gap: 6px; align-content: start; }
.kpi + .kpi { padding-left: 24px; border-left: 1px solid var(--line); }
.kpi__label { font-size: var(--t-sm); color: var(--ink-2); font-weight: 500; }
.kpi__value { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.kpi--lg .kpi__value { font-size: var(--t-2xl); letter-spacing: -0.035em; }
.kpi__foot { display: flex; align-items: center; gap: 8px; min-height: 18px; font-size: 12.5px; }
.kpi__hint { color: var(--ink-3); display: inline-flex; gap: 6px; align-items: center; }
.kpis--small { border-top-color: var(--line); margin-top: -20px; }
.kpis--small .kpi { padding-top: 16px; }
.kpis--small .kpi__value { font-size: var(--t-lg); letter-spacing: -0.02em; }

/* ============ Chart panel ============ */
.panel { background: var(--night); color: var(--night-ink); border-radius: var(--r-lg); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 28px 0; }
.panel__head h2 { font-size: var(--t-lg); font-weight: 600; letter-spacing: -0.02em; }
.panel__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--night-line); }
.panel__tab { display: grid; gap: 4px; justify-items: start; text-align: left; padding: 18px 24px 16px; background: none; border: 0; border-right: 1px solid var(--night-line); color: var(--night-ink-2); cursor: pointer; position: relative; transition: background 0.18s, color 0.18s; }
.panel__tab:last-child { border-right: 0; }
.panel__tab:hover { background: var(--night-2); color: var(--night-ink); }
.panel__tab.is-on { background: var(--night-2); color: var(--night-ink); }
.panel__tab.is-on::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--warm-2); }
.panel__tab-label { font-size: 12.5px; font-weight: 500; }
.panel__tab-value { font-size: 22px; font-weight: 650; letter-spacing: -0.03em; color: var(--night-ink); font-variant-numeric: tabular-nums; }
.panel__legend { display: flex; gap: 6px 20px; flex-wrap: wrap; padding: 16px 28px 0; }
.panel__body { padding: 14px 16px 12px 24px; }
.panel__err { padding: 24px; }
.panel__err .empty { color: var(--night-ink); }
.panel__err .empty p { color: var(--night-ink-2); }
.legend { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--night-ink-2); cursor: pointer; padding: 4px 0; font-size: 13px; transition: opacity 0.2s; }
.legend strong { color: var(--night-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend.is-off { opacity: 0.4; }
.legend__line { width: 16px; height: 2px; border-radius: 2px; }

.chart { position: relative; width: 100%; user-select: none; touch-action: pan-y; }
.chart svg { display: block; overflow: visible; }
.chart__grid line { stroke: var(--night-line); stroke-width: 1; }
.chart__grid line.is-base { stroke: var(--night-ink-3); }
.chart text { fill: var(--night-ink-2); font-size: 12px; font-family: var(--font-sans); }
.chart__x line { stroke: var(--night-ink-3); }
.chart--paper .chart__grid line { stroke: var(--line); }
.chart--paper .chart__grid line.is-base { stroke: var(--ink-3); }
.chart--paper text { fill: var(--ink-3); }
.chart__lines { animation: reveal 0.9s var(--ease) both; }
.chart__hover line { stroke: var(--night-ink-3); stroke-dasharray: 3 3; }
.chart__dot { stroke: var(--night); stroke-width: 2.5; }
.chart__tip {
  position: absolute; transform: translateX(-50%); pointer-events: none; min-width: 170px; z-index: 2;
  background: var(--night-3); border: 1px solid var(--night-tip-line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: grid; gap: 5px; font-size: 13px; color: var(--night-ink);
}
.chart__tip-date { font-weight: 600; font-size: 12.5px; color: var(--night-ink-2); margin-bottom: 2px; }
.chart__tip-row { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 8px; }
.chart__tip-row strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.swatch { width: 10px; height: 2px; border-radius: 2px; }
/* Post markers in the lane under the plot: one per day with content, icon (or count) in the platform's colour. */
.chart__post circle { fill: var(--night); stroke-width: 1.5; transition: transform 0.15s var(--ease); }
.chart__post text { font-size: 10.5px; font-weight: 700; }
.chart__post.is-on circle { fill: var(--night-3); transform: scale(1.15); }
.chart__post-dot { transition: r 0.15s; }
.chart--paper .chart__post circle { fill: var(--surface); }
/* Preview bubble over a hovered post marker: pops up from the marker (springy scale + fade),
   one column per post – caption, cover, date + views – with a little arrow pointing at the marker. */
.chart__peek {
  position: absolute; z-index: 3; display: flex; gap: 8px; padding: 10px; pointer-events: none;
  background: var(--night-3); border: 1px solid var(--night-tip-line); border-radius: 16px;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, calc(-100% - 6px)); transform-origin: calc(50% + var(--arrow, 0px)) 100%;
  animation: peek-in 0.32s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.chart__peek::after {
  content: ''; position: absolute; bottom: -6px; left: calc(50% + var(--arrow, 0px)); width: 11px; height: 11px; margin-left: -5.5px;
  background: var(--night-3); border-right: 1px solid var(--night-tip-line); border-bottom: 1px solid var(--night-tip-line); transform: rotate(45deg);
}
.chart__peek-card { width: 132px; display: grid; gap: 7px; align-content: start; }
.chart__peek-cap { margin: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--night-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.chart__peek-img { position: relative; border-radius: 10px; overflow: hidden; }
.chart__peek-img .thumb { display: block; width: 100%; object-fit: cover; }
.chart__peek-plat { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }
.chart__peek-plat .icon { display: block; }
.chart__peek-dur { position: absolute; right: 6px; bottom: 6px; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart__peek-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--night-ink-2); }
.chart__peek-meta strong { color: var(--night-ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.chart__peek-meta strong::after { content: ' visninger'; font-weight: 400; color: var(--night-ink-2); }
@keyframes peek-in {
  from { opacity: 0; transform: translate(-50%, calc(-100% + 6px)) scale(0.85); }
  to { opacity: 1; transform: translate(-50%, calc(-100% - 6px)) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .chart__peek { animation: none; } }
.chart__post { cursor: pointer; }
.chart__post.is-peek circle { fill: var(--night-3); transform: scale(1.3); }
/* Static legend entry explaining the markers. */
.legend--static { cursor: default; }
.legend__post { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--night-ink-2); display: grid; place-items: center; color: var(--night-ink-2); }
.legend__post .icon { width: 9px; height: 9px; }
.chart__none { height: 100%; display: grid; place-items: center; color: var(--night-ink-2); }
.is-loading { opacity: 0.55; transition: opacity 0.2s; }

@keyframes reveal { from { clip-path: inset(0 100% 0 0); opacity: 0.4; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: calc(200px + 100%) 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.skel { display: block; background: linear-gradient(90deg, var(--paper-2) 0, var(--paper-3) 50%, var(--paper-2) 100%) no-repeat; background-size: 200px 100%; background-color: var(--paper-2); animation: shimmer 1.3s linear infinite; }
.chart-skel { display: grid; align-items: center; padding: 20px 60px 40px 10px; color: var(--night-line); animation: fade 0.3s; }
.chart-skel svg { width: 100%; height: 60%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ============ Empty / error / connect ============ */
.empty { display: grid; justify-items: center; text-align: center; gap: 8px; padding: 48px 24px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); margin-bottom: 6px; }
.empty h3 { font-size: var(--t-md); font-weight: 600; }
.empty p { color: var(--ink-2); max-width: 380px; }
.empty__action { margin-top: 10px; }
.empty--error .empty__icon { background: var(--down-soft); color: var(--down); }
.panel .empty { border-color: var(--night-line); }
.panel .empty__icon { background: var(--night-2); }

.connect { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); flex-wrap: wrap; }
.connect__text { flex: 1; min-width: 220px; display: grid; gap: 4px; }
.connect__text h3 { font-size: var(--t-md); font-weight: 600; }
.connect__text p { color: var(--ink-2); }
.connect--compact { padding: 14px 18px; gap: 14px; background: transparent; }
.connect--compact h3 { font-size: 14px; }
.connect--compact p { font-size: 13px; }
/* Connect cards inside the dark chart panel (new customer, nothing connected): two squares side by side,
   each with a soft glow in the platform's colours. */
.connect-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 10px 8px 16px 0; }
.connect-tile { position: relative; overflow: hidden; aspect-ratio: 1 / 1; max-height: 380px; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px; border-radius: 20px; background: var(--night-2); border: 1px solid var(--night-line); transition: transform 0.25s var(--ease), border-color 0.25s; }
.connect-tile::before { content: ""; position: absolute; inset: auto -30% -45% auto; width: 90%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: 0.35; pointer-events: none; transition: opacity 0.3s; }
.connect-tile--tiktok::before { background: radial-gradient(circle at 35% 40%, #25f4ee, transparent 55%), radial-gradient(circle at 65% 60%, #fe2c55, transparent 55%); }
.connect-tile--instagram::before { background: radial-gradient(circle at 30% 70%, #feda75, transparent 50%), radial-gradient(circle at 55% 45%, #d62976, transparent 55%), radial-gradient(circle at 75% 25%, #4f5bd5, transparent 55%); }
.connect-tile:hover { transform: translateY(-3px); border-color: var(--night-tip-line); }
.connect-tile:hover::before { opacity: 0.55; }
.connect-tile__mark { position: relative; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.connect-tile--tiktok .connect-tile__mark { background: #000; box-shadow: -2px -2px 0 #25f4ee inset, 2px 2px 0 #fe2c55 inset; }
.connect-tile--instagram .connect-tile__mark { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 55%, #962fbf 75%, #4f5bd5); }
.connect-tile__text { position: relative; display: grid; gap: 8px; margin-top: auto; }
.connect-tile h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.connect-tile p { color: var(--night-ink-2); font-size: 14.5px; line-height: 1.5; max-width: 34ch; }
.connect-tile .btn { position: relative; justify-self: start; align-self: flex-start; }
.connect-tile__status { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--night-ink-2); }

.pmark { display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); flex: none; }
.pmark--sm { width: 20px; height: 20px; }
.pmark--md { width: 28px; height: 28px; }
.pmark--lg { width: 44px; height: 44px; }
.pmark--lg .icon { width: 20px; height: 20px; }
.pmark--instagram { background: var(--brand-pink); }

/* Notice + live dot */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; line-height: 1.5; }
.notice .live-dot { margin-top: 6px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-red); flex: none; box-shadow: 0 0 0 0 rgba(240, 31, 81, 0.5); animation: livepulse 1.8s ease-out infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(240, 31, 81, 0.45); } 100% { box-shadow: 0 0 0 10px rgba(240, 31, 81, 0); } }
.setup { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 10px; color: var(--ink-2); }
.setup a { color: var(--accent); }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; color: var(--ink); }
.note { font-size: 13px; }

/* ============ Insights & next meeting ============ */
.insights { background: var(--warm-soft); border-radius: var(--r-lg); padding: 26px 28px 28px; display: grid; gap: 22px; }
.insights__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.insights__head h2 { font-family: var(--font-serif); font-style: italic; font-weight: 550; font-size: 26px; letter-spacing: -0.01em; }
.insights__by { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.insights__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights__empty { grid-column: 1 / -1; margin: 0; padding: 4px 0 0; font-size: 14.5px; line-height: 1.5; }
.insight-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
@media (max-width: 560px) { .insight-row { grid-template-columns: 1fr; } }
.insight { padding: 4px 22px 0 0; display: grid; gap: 8px; align-content: start; }
.insight + .insight { padding-left: 22px; border-left: 1px solid var(--warm-line); }
.insight__hl { font-size: 30px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; }
.insight p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

.next { display: grid; gap: 2px; padding: 24px; border: 1px solid var(--warm-border); border-radius: var(--r-lg); background: var(--warm-surface); }
.next .eyebrow, .insights .eyebrow { color: var(--warm); }
.next__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.next__when { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.next__type { font-size: 13.5px; color: var(--ink-2); }
.next__date { font-family: var(--font-serif); font-style: italic; font-size: 32px; font-weight: 550; letter-spacing: -0.015em; line-height: 1.15; }
.next__time { font-size: var(--t-md); font-weight: 600; font-variant-numeric: tabular-nums; }
.next__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ============ Content (posts) ============ */
.posts { display: grid; }
.post { display: grid; grid-template-columns: 44px 72px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); animation: fade 0.35s both; }
.post:first-child { padding-top: 4px; }
.post--skel { display: flex; gap: 20px; }
.post__rank { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--accent); font-weight: 500; }
.post__thumb { position: relative; width: 72px; }
.post__dur { position: absolute; right: 4px; bottom: 4px; background: rgba(8, 14, 28, 0.65); color: #fff; font-size: 10.5px; font-weight: 600; padding: 1px 5px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.post__main { display: grid; gap: 6px; min-width: 0; }
.post__meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); }
.post__caption a { text-decoration: none; }
.post__caption a:hover { text-decoration: underline; text-decoration-color: var(--line-2); }
.post__caption { font-size: var(--t-md); font-weight: 550; letter-spacing: -0.01em; line-height: 1.35; text-wrap: pretty; }
.post__stats { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; font-variant-numeric: tabular-nums; }
.post__stat { display: inline-flex; align-items: center; gap: 6px; }
.post__stat .icon { color: var(--ink-3); }
.post__nums { display: grid; grid-template-columns: auto auto; gap: 28px; text-align: right; }
.post__nums > div { display: grid; }
.post__nums strong { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.post__nums span { font-size: 12px; color: var(--ink-3); }
.post__er strong { font-weight: 550; color: var(--ink-2); }

.thumb { position: relative; display: block; width: 100%; max-width: 100%; border-radius: 8px; overflow: hidden; object-fit: cover; }
.thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 45%, var(--thumb-shade)); }
.thumb__hook { position: absolute; left: 8%; right: 8%; top: 38%; z-index: 1; color: #fff; font-weight: 700; font-size: 9px; line-height: 1.15; text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.thumb__play { position: absolute; left: 6px; top: 6px; z-index: 1; color: #fff; opacity: 0.85; }
.thumb__play .icon { fill: currentColor; }

/* ============ Chat ============ */
.page--chat { max-width: 1180px; }
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; align-items: start; }
.chat-side { display: grid; gap: 16px; position: sticky; top: 24px; }
.chat-side__tip { padding: 0 6px; }
.chat-side__tip p { color: var(--ink-2); font-size: 13.5px; }
.convo { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); height: calc(100vh - 150px); min-height: 480px; overflow: hidden; }
.convo__head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.advisor { display: flex; align-items: center; gap: 14px; }
.advisor__name { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; }
.advisor__name span { font-weight: 400; color: var(--ink-3); font-size: var(--t-base); letter-spacing: 0; }
.advisor__sla { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px var(--up-soft); }
.convo__scroll { flex: 1; overflow-y: auto; padding: 8px 24px 20px; scroll-behavior: smooth; }
.convo__list { display: grid; gap: 14px; }
.convo__day { display: grid; place-items: center; margin: 14px 0 2px; }
.convo__day span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.msg { display: flex; gap: 10px; align-items: flex-start; max-width: 78%; animation: fade 0.25s both; }
.msg--mine { margin-left: auto; flex-direction: row-reverse; }
.msg__col { display: grid; gap: 6px; min-width: 0; }
.msg--mine .msg__col { justify-items: end; }
.msg__meta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--ink-3); }
.msg__meta strong { color: var(--ink); font-weight: 600; font-size: 12.5px; }
.msg__org { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); }
.msg__bubble { padding: 11px 15px; border-radius: 4px 14px 14px 14px; background: var(--paper); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg--mine .msg__bubble { border-radius: 14px 4px 14px 14px; background: var(--paper-3); border-color: transparent; }
.msg__bubble a { color: var(--accent); text-underline-offset: 2px; }
.msg__atts { display: flex; flex-wrap: wrap; gap: 8px; }
.msg--mine .msg__atts { justify-content: flex-end; }
.att { border-radius: 12px; overflow: hidden; }
.att--image { width: 240px; max-width: 100%; }
.att--image img { display: block; width: 100%; }
.att--image .thumb, .att--video .thumb { border-radius: 12px; }
.att--video { width: 140px; position: relative; }
.att--video .thumb__hook { font-size: 12px; }
.att__dur { position: absolute; right: 8px; bottom: 8px; z-index: 2; color: #fff; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.att--file, .att--link { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; min-width: 220px; max-width: 100%; }
.att--file span:nth-child(2), .att--link span:nth-child(2) { display: grid; line-height: 1.35; min-width: 0; flex: 1; }
.att strong { font-weight: 550; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att small { color: var(--ink-3); font-size: 12px; }
.att__ico { width: 36px; height: 36px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.att--link:hover { border-color: var(--line-2); }
.composer { border-top: 1px solid var(--line); padding: 12px 14px; background: var(--surface); }
.composer__files { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px 44px; }
.composer__row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 9px 16px; outline: none; line-height: 1.45; max-height: 160px; min-height: 40px; }
.composer textarea:focus { border-color: var(--ink-3); }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; transition: opacity 0.2s; }
.send:disabled { opacity: 0.3; cursor: default; }

/* ============ Meetings ============ */
.mhero { background: var(--night); color: var(--night-ink); border-radius: var(--r-lg); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; }
.mhero__when { padding: 36px 36px 32px; display: grid; gap: 4px; align-content: start; }
.mhero__date { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -0.02em; margin-top: 16px; }
.mhero__time { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 10px; }
.mhero__time span { color: var(--night-ink-3); font-weight: 500; }
.mhero__type { color: var(--night-ink-2); font-size: var(--t-md); }
.mhero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.mhero__facts { margin: 0; padding: 32px 36px; border-left: 1px solid var(--night-line); display: grid; gap: 0; align-content: start; }
.mhero__facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--night-line); align-items: center; }
.mhero__facts > div:last-child { border-bottom: 0; align-items: start; }
.mhero__facts dt { color: var(--night-ink-3); font-size: 13px; }
.mhero__facts dd { margin: 0; display: flex; align-items: center; gap: 8px; min-width: 0; }
.mhero__facts ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.mhero__facts ol li::marker { color: var(--warm-2); font-variant-numeric: tabular-nums; }
.mhero .avatar--agency { background: var(--warm-2); color: var(--night); }
.later { display: grid; margin-top: -24px; }
.later__row { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.later__row span { color: var(--ink-2); }
.later__row { align-items: center; gap: 12px; }
.later__row > span { margin-left: auto; }
.await { display: grid; margin-bottom: 20px; padding: 16px 20px 6px; border-radius: 16px; background: var(--warm-surface); border: 1px solid var(--warm-border); }
.await .later__row:last-child { border-bottom: 0; }
.mhero__proposal { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--night-2); border: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; font-size: 14px; }
.mhero__proposal small { color: var(--night-ink-2); font-size: 13px; }
.mhero__proposal-btns { display: inline-flex; gap: 8px; }
.next__pending { align-self: center; font-size: 13px; color: var(--ink-2); }

.history { display: grid; border-top: 1px solid var(--line); }
.hist { border-bottom: 1px solid var(--line); }
.hist__head { display: grid; grid-template-columns: 200px 1fr auto 20px; align-items: center; gap: 16px; width: 100%; padding: 20px 4px; background: none; border: 0; cursor: pointer; text-align: left; }
.hist__head:hover .hist__month { color: var(--accent); }
.hist__month { font-family: var(--font-serif); font-style: italic; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.15s; }
.hist__meta { color: var(--ink-2); font-size: 13.5px; }
.hist__tasks { font-size: 12.5px; color: var(--ink-3); }
.hist__chev { color: var(--ink-3); transition: transform 0.2s var(--ease); }
.hist.is-open .hist__chev { transform: rotate(180deg); }
.hist__body { padding: 4px 4px 32px; display: grid; gap: 28px; animation: fade 0.25s; }
.hist__summary p { font-size: 16.5px; line-height: 1.6; max-width: 68ch; }
.hist__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.hist__links { display: flex; gap: 10px; flex-wrap: wrap; }
.hist__links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 99px; text-decoration: none; font-size: 13px; font-weight: 500; }
.hist__links a:hover { background: var(--paper-2); }
.hist__notes p { color: var(--ink-2); max-width: 68ch; }
.tasks, .ideas { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tasks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tasks li.is-done { color: var(--ink-3); }
.tasks li:has(.tasks__btn) { display: block; }
.tasks__btn { display: grid; grid-template-columns: 20px 1fr; gap: 12px; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; text-decoration: inherit; cursor: pointer; align-items: start; }
.tasks__btn:hover .tick { border-color: var(--ink-3); }
.tasks li.is-done { text-decoration: line-through; text-decoration-color: var(--line-2); }
.tick { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; margin-top: 2px; }
.is-done .tick { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tasks--sm li { padding: 7px 0; font-size: 13.5px; }
.ideas li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); position: relative; }
.ideas li::before { content: ''; position: absolute; left: 2px; top: 19px; width: 6px; height: 6px; border-radius: 50%; background: var(--highlight); }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.slot { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: none; cursor: pointer; }
.slot span { font-size: 12.5px; color: var(--ink-2); }
.slot.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ============ Modal / drawer ============ */
.modal, .drawer { position: fixed; inset: 0; z-index: 50; background: var(--scrim); animation: fade 0.18s; }
.modal { display: grid; place-items: center; padding: 16px; }
.modal__box { width: 100%; background: var(--surface); color: var(--ink); text-align: left; border-radius: var(--r-lg); box-shadow: var(--shadow-pop); animation: pop 0.2s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 0 24px; }
.modal__head h3 { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; }
.modal__body { padding: 12px 24px 24px; display: grid; gap: 12px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.modal__foot-left { margin-right: auto; }
.modal__foot .confirm { margin-right: auto; }
.modal__hint { margin: 0; font-size: 12.5px; }
.field small { font-size: 12.5px; font-weight: 400; }
.perm { list-style: none; margin: 4px 0; padding: 0; display: grid; gap: 10px; }
.perm li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.connecting { display: flex; align-items: center; gap: 12px; padding: 28px 0; color: var(--ink-2); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
.connected-ok { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.ok-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--up-soft); color: var(--up); display: grid; place-items: center; flex: none; }
.drawer { display: flex; justify-content: flex-end; }
.drawer__panel { width: min(440px, 100%); height: 100%; overflow-y: auto; background: var(--surface); box-shadow: var(--shadow-pop); animation: slide 0.25s var(--ease); padding: 22px 28px 40px; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }

/* ============ Settings ============ */
.accounts { display: grid; border-top: 1px solid var(--line); }
.account { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.account__name { font-weight: 600; font-size: var(--t-md); }
.account__handle { color: var(--ink-2); font-size: 13.5px; }
.account__status { display: grid; justify-items: end; gap: 4px; font-size: 12.5px; }
.account__act { min-width: 150px; display: flex; justify-content: flex-end; }
.confirm { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; justify-content: flex-end; }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; min-width: 0; }
.facts--tight > div { grid-template-columns: 100px minmax(0, 1fr); padding: 10px 0; }
.demo { padding: 20px 22px; border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.demo .section-head { border: 0; padding: 0; }
.demo__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ============ Admin ============ */
.app--admin .main { background: var(--paper); }
.astats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.astat { display: grid; gap: 2px; padding: 20px 24px 8px 0; text-decoration: none; }
.astat + .astat { padding-left: 24px; border-left: 1px solid var(--line); }
.astat__v { font-size: 44px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.astat__l { color: var(--ink-2); font-size: 13.5px; }
.astat:hover .astat__v { color: var(--accent); }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; }
.agenda__row { display: grid; grid-template-columns: 80px 56px minmax(0, 1fr) auto 64px; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 6px; transition: background 0.15s; }
.agenda__row:hover { background: var(--paper-2); }
.agenda__row.is-past { color: var(--ink-3); }
.agenda__day { font-size: 12.5px; color: var(--ink-3); }
.agenda__time { font-weight: 650; font-variant-numeric: tabular-nums; }
.agenda__who { display: grid; line-height: 1.3; min-width: 0; }
.agenda__who strong { font-weight: 600; }
.agenda__who span { font-size: 13px; color: var(--ink-2); }
.agenda__adv { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.agenda__row .pill { justify-self: end; }
.attn { list-style: none; margin: 0; padding: 0; display: grid; }
.attn a { display: flex; gap: 12px; align-items: flex-start; padding: 13px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.attn a:hover { color: var(--ink); }
.attn strong { color: var(--ink); font-weight: 600; }
.attn--new .icon { color: var(--up) !important; }
.attn .icon { margin-top: 2px; color: var(--accent); }
.mini-clients { display: grid; }
.mini-client { display: grid; grid-template-columns: minmax(140px, 1.3fr) 60px 90px 100px minmax(90px, 1fr); align-items: center; gap: 16px; padding: 12px 6px; border-bottom: 1px solid var(--line); text-decoration: none; border-radius: 6px; }
.mini-client:hover { background: var(--paper-2); }
.mini-client__name { font-weight: 600; }
.mini-client__v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.mini-client__next { color: var(--ink-2); font-size: 13px; text-align: right; }
.spark { display: block; }
.adots { display: inline-flex; gap: 4px; }
.adot { display: inline-flex; position: relative; }
.adot--disconnected .pmark { background: transparent; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.adot--error::after { content: ''; position: absolute; right: -1px; top: -1px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 2px var(--paper); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; min-width: 820px; }
.table th { text-align: left; font-size: 12px; font-weight: 500; color: var(--ink-3); padding: 0 12px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table th:first-child, .table td:first-child { padding-left: 4px; }
.table tbody tr { cursor: pointer; transition: background 0.15s; }
.table tbody tr:hover { background: var(--paper-2); }
.table td strong { font-weight: 600; display: block; }
.table .sub { font-size: 12.5px; color: var(--ink-3); }
.table .chev { color: var(--ink-3); width: 20px; }
.who { display: inline-flex; align-items: center; gap: 8px; }
.acell { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.acell i { width: 7px; height: 7px; border-radius: 50%; }
.acell--connected i { background: var(--up); }
.acell--disconnected { color: var(--ink-3); }
.acell--disconnected i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.acell--error { color: var(--warn); }
.acell--error i { background: var(--warn); }

.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; margin-bottom: -28px; }
.back:hover { color: var(--ink); }
.profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.profile-head > div:first-child { display: grid; gap: 14px; }
.profile-head__meta { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; }
.profile-head__side { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.profile-meet { display: flex; gap: 28px; }
.profile-meet > div { display: grid; }
.profile-meet .label { margin-bottom: 2px; }
.profile-meet strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.profile-head__btns { display: flex; gap: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: -12px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tabs__t { display: inline-flex; align-items: center; gap: 6px; padding: 12px 14px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__t:hover { color: var(--ink); }
.tabs__t.is-on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs__note { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; padding-left: 16px; }
.profile-body { margin-top: -8px; }
.profile-body > .page { max-width: none; }
.profile-chat .convo { height: 640px; }
.notes { display: grid; gap: 20px; max-width: 760px; }
.internal-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--night); color: var(--night-ink); font-size: 13px; }
.note-form { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.note-form textarea { width: 100%; border: 0; background: none; resize: vertical; padding: 14px 16px; outline: none; }
.note-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px 10px 16px; font-size: 12.5px; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; }
.note { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.note__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.note__meta span { color: var(--ink-3); }
.note p { font-size: 15px; line-height: 1.55; }

/* Revenue */
.gain { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gain--up { color: #1a7a4c; background: #dcf3e6; }
.gain--down { color: var(--down); background: var(--down-soft); }
.gain--flat { color: var(--ink-3); background: var(--paper-2); font-weight: 500; }
.gain--sm { height: 20px; padding: 0 8px; font-size: 11px; margin-left: 8px; vertical-align: 2px; }
.rev-hero .gain--up { color: #7ff0b3; background: rgba(46, 204, 130, 0.14); box-shadow: inset 0 0 0 1px rgba(127, 240, 179, 0.22); }
.rev-hero .gain--down { color: #ff8fa8; background: rgba(240, 31, 81, 0.15); }
.rev-hero .gain--flat { color: var(--night-ink-2); background: var(--night-2); }

.rev-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 28px; padding: 36px 36px 24px; border-radius: 24px; background: var(--night); color: var(--night-ink); }
.rev-hero::before { content: ''; position: absolute; z-index: -1; width: 620px; height: 420px; top: -220px; left: -120px; filter: blur(90px); opacity: 0.35;
  background: radial-gradient(closest-side, var(--brand-blue), transparent), radial-gradient(closest-side at 80% 60%, var(--brand-pink), transparent); }
.rev-hero__top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.rev-hero__main { display: grid; gap: 12px; }
.rev-hero__mrr { display: flex; align-items: baseline; gap: 12px; font-size: clamp(56px, 7.5vw, 104px); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums;
  background: linear-gradient(95deg, #fff 10%, var(--brand-sky) 55%, var(--brand-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.05em; }
.rev-hero__mrr span { font-size: 0.32em; letter-spacing: 0; -webkit-text-fill-color: var(--night-ink-2); }
.rev-hero__gains { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-hero__stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rev-hero__stats > div { display: grid; gap: 6px; align-content: start; justify-items: start; padding: 18px 24px 4px 0; border-top: 1px solid var(--night-line); }
.rev-hero__stats > div + div { padding-left: 24px; border-left: 1px solid var(--night-line); }
.rev-hero__stats dt { font-size: 12.5px; color: var(--night-ink-2); }
.rev-hero__stats dd { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; white-space: nowrap; }
.rev-hero__stats small { font-size: 0.5em; font-weight: 500; color: var(--night-ink-2); letter-spacing: 0; }
.rev-hero__hint { font-size: 12.5px; color: var(--night-ink-3); line-height: 28px; }

.rev-chart { position: relative; padding-top: 22px; border-top: 1px solid var(--night-line); }
.rev-chart svg { display: block; overflow: visible; }
.rev-chart__grid { stroke: var(--night-line); stroke-dasharray: 2 5; }
.rev-chart__bar { transform-box: fill-box; transform-origin: bottom; animation: growbar 0.8s var(--ease) both; transition: fill 0.2s; }
@keyframes growbar { from { transform: scaleY(0); } }
.rev-chart__col { cursor: default; }
.rev-chart__lbl { fill: var(--night-ink-3); font-size: 12px; font-family: var(--font-sans); text-transform: capitalize; }
.rev-chart__lbl.is-on { fill: var(--night-ink); font-weight: 600; }
.rev-chart__tip { position: absolute; top: 20px; right: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--night-ink-2); pointer-events: none; }
.rev-chart__tip strong { color: var(--night-ink); font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.rev-chart__tip em { font-style: normal; }
.rev-name { display: inline-flex; align-items: center; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tfoot td { padding: 16px 12px; font-weight: 650; border-top: 1px solid var(--ink); }
.table tfoot td:first-child { padding-left: 4px; }

/* Team & roles */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.role-card { display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.role-card--owner { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.role-card__head { display: flex; justify-content: space-between; align-items: center; }
.role-card__head strong { font-size: 18px; font-weight: 650; }
.role-card__head span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 99px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; background: var(--paper-2); }
.role-card--owner .role-card__head span { background: var(--night-3); }
.role-card p { font-size: 13.5px; color: var(--ink-2); }
.role-card--owner p { color: var(--night-ink-2); }
.role-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.role-card li { display: flex; align-items: center; gap: 8px; }
.role-card li.is-yes .icon { color: var(--up); }
.role-card--owner li.is-yes .icon { color: #7ff0b3; }
.role-card li.is-no { color: var(--ink-3); }
.role-card--owner li.is-no { color: var(--night-ink-3); }
.role-select { position: relative; display: inline-flex; align-items: center; }
.role-select select { appearance: none; -webkit-appearance: none; height: 34px; padding: 0 32px 0 12px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface); font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink); cursor: pointer; }
.role-select select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.role-select .icon { position: absolute; right: 11px; pointer-events: none; color: var(--ink-3); }
.table--static tbody tr { cursor: default; }
.table--static tbody tr:hover { background: transparent; }
.you { margin-left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.team-act { text-align: right; width: 1%; }
.team-msg { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 10px; background: var(--down-soft); color: var(--down); font-size: 14px; }
.team-add-wrap { display: grid; gap: 4px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 14px; }
.team-add { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr auto auto; gap: 12px; align-items: end; }
.team-add .field input { height: 38px; }
.team-add .btn { height: 38px; }
.advisor-select { gap: 8px; }
.advisor-select .avatar { position: absolute; left: 5px; pointer-events: none; }
.advisor-select select { padding-left: 34px; height: 32px; font-size: 13px; max-width: 230px; }
.role-pill { display: inline-flex; height: 24px; align-items: center; padding: 0 10px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }

/* Calendar */
.cal-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: -20px; }
.cal-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.month__dow { padding: 10px 10px; font-size: 12px; color: var(--ink-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-transform: capitalize; }
.month__cell { min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.month__cell.is-out { background: var(--paper-2); }
.month__cell.is-out .month__n { color: var(--ink-3); }
.month__n { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; margin: -3px 0 2px -3px; }
.month__cell.is-today .month__n { background: var(--ink); color: var(--paper); }
.month__more { font-size: 12px; color: var(--ink-3); padding-left: 6px; }
.ev { display: flex; gap: 6px; align-items: baseline; width: 100%; padding: 3px 6px; border: 0; border-left: 2px solid var(--ink); background: var(--paper-2); border-radius: 3px; cursor: pointer; text-align: left; font-size: 12px; min-width: 0; }
.ev:hover { background: var(--paper-3); }
.ev__t { font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.ev__c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.ev--u-samuel { border-left-color: var(--accent); background: var(--accent-soft); }
.week-wrap { overflow-x: auto; }
.week { display: grid; grid-template-columns: 56px repeat(7, minmax(110px, 1fr)); min-width: 860px; border-top: 1px solid var(--ink); }
.week__corner { border-bottom: 1px solid var(--line); }
.week__head { padding: 10px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); display: flex; align-items: baseline; gap: 8px; }
.week__head span { font-size: 12px; color: var(--ink-3); text-transform: capitalize; }
.week__head strong { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.week__head.is-today strong { color: var(--accent); }
.week__hours { display: grid; }
.week__hour { height: 56px; position: relative; }
.week__hour span { position: absolute; top: -8px; right: 8px; font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.week__hour:first-child span { top: 4px; }
.week__col { position: relative; border-left: 1px solid var(--line); }
.week__col.is-today { background: rgba(6, 101, 239, 0.04); }
.week__slot { height: 56px; border-bottom: 1px solid var(--line); }
.week__now { position: absolute; left: 0; right: 0; height: 0; border-top: 1.5px solid var(--down); z-index: 2; }
.week__now::before { content: ''; position: absolute; left: -4px; top: -4.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--down); }
.wev { position: absolute; left: 4px; right: 4px; display: flex; flex-direction: column; gap: 1px; padding: 6px 8px; border: 0; border-left: 2px solid var(--ink); background: var(--paper-2); border-radius: 4px; text-align: left; cursor: pointer; overflow: hidden; font-size: 12px; line-height: 1.3; transition: box-shadow 0.15s; }
.wev:hover { box-shadow: var(--shadow-pop); z-index: 3; }
.wev strong { font-weight: 600; font-size: 12.5px; }
.wev span { color: var(--ink-2); }
.wev__adv { display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.wev.is-past { opacity: 0.55; }
.mdrawer { display: grid; gap: 14px; }
.mdrawer__type { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.02em; }
.mdrawer .display { font-size: 32px; }
.mdrawer__when { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mdrawer__btns { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 8px; }
.mdrawer .label { margin: 10px 0 -4px; }
.mdrawer__agenda { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.mdrawer__p { color: var(--ink-2); font-size: 14px; }
.mdrawer__note { font-size: 14px; padding: 12px 14px; background: var(--paper-2); border-radius: 10px; display: grid; gap: 4px; }
.mdrawer__note span { font-size: 12px; color: var(--ink-3); }
.shortcut { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: var(--night); color: var(--night-ink); text-decoration: none; margin: 8px 0; }
.shortcut span { display: grid; flex: 1; line-height: 1.35; }
.shortcut small { color: var(--night-ink-2); font-size: 12.5px; }
.shortcut:hover { background: var(--night-2); }

/* Inbox */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; height: 100vh; }
.inbox__list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox__title { padding: 44px 22px 18px; border-bottom: 1px solid var(--line); }
.inbox__title h1 { font-size: var(--t-xl); font-weight: 650; letter-spacing: -0.03em; }
.inbox__title { display: grid; gap: 14px; }
.inbox__scope { justify-self: start; }
.inbox__count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 650; background: var(--ink); color: var(--paper); }
.inbox__empty { padding: 24px 22px; display: grid; gap: 8px; justify-items: start; color: var(--ink-2); font-size: 14px; }
.inbox__empty .textlink { border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent); }
.thread__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.thread__advisor { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.thread { display: grid; gap: 4px; width: 100%; text-align: left; padding: 16px 22px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.thread:hover { background: var(--paper-2); }
.thread.is-on { background: var(--paper-3); }
.thread.is-on::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.thread__top { display: flex; justify-content: space-between; gap: 8px; }
.thread__top strong { font-weight: 600; }
.thread__top span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.thread__prev { font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread.is-unread .thread__prev { color: var(--ink); font-weight: 500; }
.thread__foot { font-size: 12px; }
.inbox__main { padding: 24px; min-width: 0; }
.inbox__main .convo { height: calc(100vh - 48px); min-height: 0; }
.ctx { border-left: 1px solid var(--line); padding: 44px 22px 22px; overflow-y: auto; display: grid; gap: 4px; align-content: start; }
.ctx__client { display: grid; gap: 6px; padding-bottom: 18px; border-bottom: 1px solid var(--line); text-decoration: none; }
.ctx__client strong { font-size: var(--t-lg); font-weight: 650; letter-spacing: -0.02em; }
.ctx__client > span:nth-child(2) { color: var(--ink-2); font-size: 13.5px; }
.ctx__open { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 550; margin-top: 4px; }
.ctx__block { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.ctx__block .label { margin-bottom: 4px; }
.ctx__block strong { font-weight: 600; }
.ctx__block p { color: var(--ink-2); font-size: 13px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ctx__row { display: grid; grid-template-columns: 1fr auto 70px; gap: 8px; padding: 4px 0; font-size: 13.5px; align-items: baseline; }
.ctx__row span:first-child { color: var(--ink-2); }
.ctx__row .delta { justify-self: end; }
.ctx__stats .spark { margin: 10px 0 2px; width: 100%; }
.ctx__stats:hover .ctx__open { text-decoration: underline; }

/* Live followers – fills the main area, one counter per platform stacked */
.main:has(.livepage) { padding: 20px; }
.livepage {
  min-height: calc(100vh - 40px); display: grid; grid-template-rows: auto 1fr; gap: 8px;
  background: var(--night); color: var(--night-ink); border-radius: var(--r-lg); padding: 24px 36px 28px;
}
.livepage:fullscreen { border-radius: 0; min-height: 100vh; padding: 36px 56px; }
.livepage__top { display: flex; align-items: center; gap: 14px; }
.livepage__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; color: var(--night-ink); }
.livepage__demo { font-size: 10.5px; font-family: var(--font-sans); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-ink-3); border: 1px solid var(--night-line); border-radius: 99px; padding: 1px 7px; }
.livepage__fs { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--night-line); background: none; color: var(--night-ink-2); display: grid; place-items: center; cursor: pointer; }
.livepage__fs:hover { color: var(--night-ink); border-color: var(--night-ink-3); }
.livepage__stack { display: grid; grid-template-rows: 1fr 1fr; }
.livecount { display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; padding: 16px 0; }
.livecount { position: relative; }
/* Divider: a thin brand-colour gradient that fades out toward the edges, with a soft glow. */
.livecount + .livecount::before,
.livecount + .livecount::after {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(820px, 88%); pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--brand-blue) 25%, var(--brand-sky) 50%, var(--brand-pink) 75%, transparent);
}
.livecount + .livecount::before { height: 3px; top: -1px; border-radius: 3px; opacity: 0.95; }
.livecount + .livecount::after { height: 18px; top: -9px; filter: blur(14px); opacity: 0.4; }
.livecount__label { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--font-serif); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: var(--warm-2); }
.livecount__label .icon { color: var(--night-ink-2); }
.livecount__handle { font-family: var(--font-sans); font-style: normal; font-size: 13.5px; color: var(--night-ink-3); }
.livecount__meta { display: flex; gap: 8px 20px; align-items: baseline; justify-content: center; flex-wrap: wrap; }
.livecount__msg { color: var(--night-ink-2); font-size: 15px; }
.livecount__link { color: var(--night-ink); background: none; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; margin-left: 4px; }
.livepage__num { position: relative; font-size: clamp(56px, min(11vw, 17vh), 170px); font-weight: 650; line-height: 1.12; }
.livepage__today { font-size: clamp(15px, 1.5vw, 18px); color: var(--night-ink-2); }
.livepage__today em { font-style: normal; font-weight: 650; color: var(--up-night); }
.livepage__foot { font-size: 12.5px; color: var(--night-ink-3); font-variant-numeric: tabular-nums; }
.livepage__pops { position: absolute; right: -0.1em; top: -0.1em; pointer-events: none; }
.pop { position: absolute; right: 0; top: 0; font-size: max(16px, 0.16em); font-weight: 650; letter-spacing: 0; color: var(--up-night); animation: popup 1.6s var(--ease) forwards; white-space: nowrap; }
@keyframes popup { 0% { opacity: 0; transform: translate(40%, 10%); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(40%, -120%); } }
.roll { display: inline-flex; align-items: flex-start; font-variant-numeric: tabular-nums; letter-spacing: 0; }
/* Each digit is a window onto a 0–9 column: clip only vertically so glyph edges are never cut. */
.roll__digit { display: inline-block; height: 1.12em; line-height: 1.12; overflow-x: visible; overflow-y: clip; }
.roll__digit + .roll__digit { margin-left: -0.015em; }
.roll__col { display: flex; flex-direction: column; transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.2, 1); }
.roll__col span { height: 1.12em; display: block; }
.roll__sep { display: inline-block; width: 0.26em; }

/* ============ Public front page ============ */
.landing { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.lp-nav { display: flex; align-items: center; gap: 24px; padding: 22px 0; }
.lp-nav nav { display: flex; gap: 4px; margin-left: auto; }
.lp-nav nav button { border: 0; background: none; padding: 8px 12px; border-radius: 99px; color: var(--ink-2); font-weight: 500; cursor: pointer; }
.lp-nav nav button:hover { color: var(--ink); background: var(--paper-2); }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: 64px; align-items: center; padding: 56px 0 88px; }
.lp-hero__text { display: grid; gap: 22px; }
.lp-hero__title { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.035em; line-height: 1.02; }
.lp-hero__sub { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 54ch; }
.lp-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 1px 2px rgba(23, 25, 31, 0.04), 0 24px 48px -24px rgba(23, 25, 31, 0.18); display: grid; gap: 6px; scroll-margin-top: 24px; }
.login-card h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.login-card form { display: grid; gap: 14px; margin-top: 14px; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input { height: 44px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; background: var(--paper); font-size: 15px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field-error { color: var(--down); font-size: 13px; }
.login-card__submit { height: 44px; margin-top: 4px; }
.login-card__alt { margin: 6px 0 0; font-size: 13.5px; }
.login-card__alt + .login-card__alt { margin-top: 0; font-size: 12.5px; }
.login-card__alt button { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.login-card__alt a { font-weight: 600; color: var(--accent); text-decoration: none; }
.login-card__alt a:hover { text-decoration: underline; }
.login-card__alt button:hover { text-decoration: underline; }
.login-card__demo { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: grid; }
.login-card__demo-label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.login-card__demo button { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; }
.login-card__demo button:hover { background: var(--paper-2); }
.login-card__demo button > span:not(.avatar) { display: grid; flex: 1; line-height: 1.3; }
.login-card__demo strong { font-size: 13.5px; font-weight: 550; }
.login-card__demo small { font-size: 12px; color: var(--ink-3); }

.lp-results { border-top: 1px solid var(--line); padding: 56px 0 64px; display: grid; gap: 48px; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.result { display: grid; gap: 6px; padding-right: 32px; }
.result + .result { padding-left: 40px; border-left: 1px solid var(--line); }
.result strong { font-size: clamp(48px, 7vw, 96px); font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky) 60%, var(--brand-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.result span { font-family: var(--font-serif); font-style: italic; font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); }
.logos { display: grid; gap: 18px; }
.logos__label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
/* The logo image is white-on-black; invert + multiply turns it into dark logos on the page background. */
.logos__track { overflow: hidden; mix-blend-mode: multiply; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__row { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logos__row img { height: 76px; width: auto; max-width: none; filter: invert(1) grayscale(1) contrast(1.15); opacity: 0.85; }
.logos__track:hover .logos__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.lp-section { padding: 88px 0; border-top: 1px solid var(--line); display: grid; gap: 48px; scroll-margin-top: 8px; }
.lp-head { display: grid; gap: 14px; max-width: 640px; }
.lp-head--center { justify-self: center; justify-items: center; text-align: center; }
.lp-head p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.lp-h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.lp-h2 em { font-family: var(--font-serif); font-style: italic; font-weight: 550; color: var(--accent); letter-spacing: -0.01em; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.service { padding: 28px 28px 32px 0; display: grid; gap: 10px; align-content: start; border-bottom: 1px solid var(--line); }
.service:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
.service__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.service h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.service p { color: var(--ink-2); line-height: 1.55; }

.lp-showcase { border-top: 0; background: var(--night); color: var(--night-ink); border-radius: 24px; padding: 64px 56px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: center; }
.lp-head--night p { color: var(--night-ink-2); }
.lp-head--night .lp-h2 em { color: var(--warm-2); }
.lp-showcase__demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }
/* Front-page teaser for "Live følgere": two rolling counters split by the brand-gradient line. */
.livestrip { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: 16px 20px 18px; }
.livestrip__head { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 14px; }
.livestrip__row { display: grid; grid-template-columns: 1fr 1fr; }
.livestrip__item { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; min-width: 0; padding: 4px 12px; }
/* Same divider as the Live page, turned vertical: brand gradient fading out at both ends, with a soft glow. */
.livestrip__item + .livestrip__item::before,
.livestrip__item + .livestrip__item::after {
  content: ''; position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); height: 92%; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--brand-blue) 25%, var(--brand-sky) 50%, var(--brand-pink) 75%, transparent);
}
.livestrip__item + .livestrip__item::before { width: 3px; border-radius: 3px; opacity: 0.95; }
.livestrip__item + .livestrip__item::after { width: 18px; filter: blur(14px); opacity: 0.4; }
.livestrip__label { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-serif); font-style: italic; font-size: 16px; color: var(--warm-2); }
.livestrip__label .icon { color: var(--night-ink-2); }
.livestrip__num { font-size: clamp(30px, 3.4vw, 44px); font-weight: 650; line-height: 1.12; letter-spacing: -0.01em; }
.livestrip__today { font-size: 13px; color: var(--night-ink-2); }
.livestrip__today em { font-style: normal; font-weight: 650; color: var(--up-night); }
.preview { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 16px; padding: 20px 12px 8px 20px; position: relative; }
.preview__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--night-line); }
.preview__kpis div { display: grid; gap: 2px; }
.preview__kpis span { font-size: 12px; color: var(--night-ink-2); }
.preview__kpis strong { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.preview__kpis em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--up-night); }
.preview__note { position: absolute; right: 16px; top: 12px; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--night-ink-3); }

/* Video cards */
.vrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.vrow--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vcard { display: grid; gap: 14px; text-decoration: none; color: var(--ink); }
.vcard__cover { position: relative; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--night); }
.vcard__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vcard__cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, rgba(8, 10, 16, 0.72)); }
.vcard:hover .vcard__cover img { transform: scale(1.035); }
.vcard__play { position: absolute; top: 14px; left: 14px; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); }
.vcard__play .icon, .vcard__play--lg .icon { fill: currentColor; }
.vcard__play--lg { width: 56px; height: 56px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.vcard__views { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-size: 13px; }
.vcard__views strong { display: block; font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.vcard__body { display: grid; gap: 6px; }
.vcard__handle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.vcard__caption { font-size: 15.5px; font-weight: 550; line-height: 1.35; }
.vcard__stats { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.vcard__stats > span { display: inline-flex; align-items: center; gap: 5px; }
.vcard__stats .icon { color: var(--ink-3); }

.lp-featured { border-top: 0; padding-top: 24px; }
.vfeat { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; align-items: center; background: var(--night); color: var(--night-ink); border-radius: 24px; padding: 40px; }
.vfeat__cover { position: relative; display: block; aspect-ratio: 9 / 16; max-width: 100%; border-radius: 16px; overflow: hidden; }
.vfeat__cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.vfeat__cover:hover img { transform: scale(1.03); }
.vfeat__body { display: grid; gap: 16px; align-content: center; justify-items: start; }
.vfeat__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin: 0; width: 100%; }
.vfeat__stats div { display: grid; gap: 6px; }
.vfeat__stats dd { margin: 0; font-size: clamp(40px, 5.2vw, 76px); font-weight: 650; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.vfeat__stats div:first-child dd { background: linear-gradient(90deg, var(--brand-sky), var(--brand-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vfeat__stats dt { order: 2; font-size: 15px; color: var(--night-ink-2); }

/* Client panels (CASES in offer.js), two side by side with the section text below. */
.cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
/* Each panel: the client's banner/logo on top, their colour (or pattern) continuing behind the videos.
   --case-bg, --case-ink and --glow-1..3 come from the client's entry. */
.case { --case-bg: #1e5d4a; --case-ink: #fff; --case-muted: color-mix(in srgb, var(--case-ink) 74%, transparent); position: relative; border-radius: 24px; overflow: hidden; background-color: var(--case-bg); color: var(--case-ink); box-shadow: 0 18px 40px -24px color-mix(in srgb, var(--case-bg) 55%, #000); }
/* Picture background: shown at the top and faded into the flat colour, like a banner. */
.case__bg { position: absolute; inset: 0; background-size: cover; background-position: center top; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 16%, transparent 46%); mask-image: linear-gradient(to bottom, #000 16%, transparent 46%); }
.case__top { position: relative; }
.case__top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(to bottom, transparent, var(--case-bg)); pointer-events: none; }
.case--pattern .case__top::after { display: none; }
.case__banner { display: block; width: 100%; height: auto; aspect-ratio: 1532 / 420; object-fit: cover; }
/* Built top (no banner image): same shape as a banner so panels line up side by side. */
.case__top--built { aspect-ratio: 1532 / 420; display: flex; align-items: center; justify-content: center; gap: 6% ; padding: 0 7%; }
.case__logo { display: block; width: 56%; height: auto; }
/* Logo top (Freeze Lab): logo + tagline stacked at the bottom-left, on the same edge as the
   numbers below, so there's no empty gap between the logo and the follower count. */
.case__top--logo { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; padding: 0 24px 12px; }
.case__top--logo .case__logo { width: min(72%, 380px); }
.case__top--logo .case__tagline { font-size: clamp(17px, 1.6vw, 21px); }
.case__tagline { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(17px, 1.8vw, 24px); line-height: 1.15; color: #fff; text-shadow: 0 1px 2px color-mix(in srgb, var(--case-ink) 40%, transparent); }
.case__body { position: relative; display: grid; gap: 16px; padding: 0 24px 24px; }
.case__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--case-muted); }
.case__meta strong { color: var(--case-ink); font-size: 20px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.case__label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--case-ink); padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); }
.case--dark .case__label { background: rgba(255, 255, 255, 0.42); border-color: rgba(255, 255, 255, 0.6); }
/* Follower growth: one big rolling number (the hero stat) with views as a quieter second stat. */
.case__growth { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.case__follow { display: grid; justify-items: start; gap: 10px; }
.case__big { display: inline-flex; align-items: flex-start; font-size: clamp(44px, 4.6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--case-ink); opacity: 0.35; transition: opacity 0.6s var(--ease); }
.case__big.is-seen { opacity: 1; }
.case__big .roll__digit + .roll__digit { margin-left: -0.04em; }
.case__big .roll__sep { width: 0.2em; }
/* Digits land one after another, left to right. */
.case__big .roll__col { transition-duration: 1.8s; transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1); }
.case__big .roll > :nth-child(2) .roll__col { transition-delay: 0.08s; }
.case__big .roll > :nth-child(4) .roll__col { transition-delay: 0.16s; }
.case__big .roll > :nth-child(5) .roll__col { transition-delay: 0.24s; }
.case__big .roll > :nth-child(6) .roll__col { transition-delay: 0.32s; }
.case__plus { font-size: 0.62em; margin: 0.1em 0.04em 0 0; color: var(--glow-2); }
.case__sub { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--case-ink); }
.case__sub .icon { color: var(--glow-2); }
.case__views { display: grid; justify-items: end; gap: 2px; text-align: right; padding-bottom: 2px; }
.case__views .case__label { margin-bottom: 8px; white-space: nowrap; }
.case__views strong { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.case__views span { font-size: 13.5px; color: var(--case-muted); }
/* Pink picture panel: glow-2 is near-white there, so the accents go white with a berry shadow. */
.case--pattern .case__growth { text-shadow: 0 2px 10px color-mix(in srgb, var(--case-shade, #000) 45%, transparent); }
.case--pattern .case__plus, .case--pattern .case__sub .icon { color: #fff; }
.case--pattern .case__views span { color: rgba(255, 255, 255, 0.9); }
.case .vcard { color: var(--case-ink); }
.case .vcard__handle, .case .vcard__stats, .case .vcard__stats .icon { color: var(--case-muted); }
.case .vcard__cover { box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6); }
/* Compact cards so a panel fits on a laptop screen: covers cropped to 4:5 (centre kept),
   caption capped at two lines, handle and likes/comments sharing one line below it. */
.case .vcard { gap: 10px; }
.case .vcard__cover { aspect-ratio: 4 / 5; }
.case .vcard .vcard__body { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'caption caption' 'handle stats'; align-items: center; gap: 6px 10px; }
.case .vcard .vcard__caption { grid-area: caption; font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.case .vcard .vcard__handle { grid-area: handle; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.case .vcard .vcard__handle .icon { display: inline-block; vertical-align: -2px; margin-right: 5px; }
.case .vcard .vcard__stats { grid-area: stats; gap: 12px; flex-wrap: nowrap; font-size: 13px; }
.case .vcard .vcard__stats > span:nth-child(n + 3) { display: none; }
/* On a picture background, white text sits on a frosted layer in the client's dark tone (--case-shade)
   so neither the artwork nor the light pink can hurt legibility. */
.case--pattern .vcard__body { padding: 10px 12px 12px; border-radius: 14px; background: color-mix(in srgb, var(--case-shade, #000) 48%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.case--pattern .case__meta { color: #fff; text-shadow: 0 1px 3px color-mix(in srgb, var(--case-shade, #000) 60%, transparent); }
.case--pattern .case__label { text-shadow: none; background: color-mix(in srgb, var(--case-shade, #000) 42%, transparent); border-color: rgba(255, 255, 255, 0.35); }
.case--pattern .vcard__handle, .case--pattern .vcard__stats, .case--pattern .vcard__stats .icon { color: rgba(255, 255, 255, 0.85); }
/* Hover (set from JS): tilt toward the mouse, lift, and a light that follows the pointer —
   bright on the rim (masked to a 2px ring) and a faint glow across the surface. */
.case { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); will-change: transform; }
.case.is-hover { transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); transition: transform 0.18s ease-out, box-shadow 0.4s var(--ease); box-shadow: 0 34px 60px -30px color-mix(in srgb, var(--case-bg) 45%, #000), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.case::before, .case::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease); }
.case::before {
  z-index: 3; padding: 2px;
  background: radial-gradient(420px circle at var(--mx) var(--my), var(--glow-1, #fff), var(--glow-2, transparent) 20%, var(--glow-3, transparent) 42%, transparent 68%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
}
.case::after { z-index: 2; background: radial-gradient(560px circle at var(--mx) var(--my), rgba(255, 255, 255, 0.13), transparent 60%); }
.case.is-hover::before, .case.is-hover::after { opacity: 1; }
/* Wide panel (FotMob): spans both columns, header with app icon + name, one 16:9 video with details. */
.case--wide { grid-column: 1 / -1; }
.case--wide .case__bg { -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); }
.case__top--icon { aspect-ratio: auto; justify-content: flex-start; gap: 14px; padding: 28px 32px 6px; }
.case__icon { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.6); }
.case__name { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; color: #fff; }
.case__top--icon .case__tagline { margin-left: auto; }
.case__body--wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 36px; align-items: center; padding: 18px 32px 32px; }
.case__video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.8); }
.case__video img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.case__video:hover img { transform: scale(1.03); }
.case__dur { position: absolute; right: 12px; bottom: 12px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.case__video .vcard__play--lg { top: 16px; left: auto; right: 16px; transform: none; } /* corner, off the faces in the thumbnail */
.case__info { display: grid; gap: 14px; justify-items: start; }
.case__title { font-size: clamp(22px, 2.2vw, 30px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; }
.case__info .vcard__handle { color: var(--case-muted); font-size: 14px; }
.case__stats { display: flex; gap: 36px; margin: 4px 0 0; }
.case__stats div { display: grid; gap: 2px; }
.case__stats dd { margin: 0; font-size: 36px; font-weight: 650; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.case__stats dt { order: 2; font-size: 13.5px; color: var(--case-muted); }
.case__stats div:first-child dd { color: var(--glow-2); }
.case__studio { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glow-3); }
.case__studio .icon { color: var(--glow-2); }
.case__info .btn { margin-top: 6px; }
.lp-note { font-size: 13px !important; color: var(--ink-3) !important; }

.lp-about { gap: 40px; }
.lp-about__intro { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.lp-about__intro .lp-head p + p { margin-top: -4px; }
/* 3:2 so the 16:9 studio shot keeps the people at both edges in frame */
.lp-about__photo { margin: 0; border-radius: 22px; overflow: hidden; aspect-ratio: 3 / 2; background: #7d838c; max-width: 100%; }
.lp-about__photo img, .member__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member { margin: 0; display: grid; gap: 12px; }
.member__img { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #7d838c; max-width: 100%; }
.member__img img { object-position: 50% 0%; transition: transform 0.6s var(--ease); }
.member:hover .member__img img { transform: scale(1.03); }
.member figcaption { display: grid; gap: 2px; }
.member strong { font-size: 16px; font-weight: 600; }
.member span { font-family: var(--font-serif); font-style: italic; color: var(--warm); font-size: 15px; }
.lp-pricing { grid-template-columns: minmax(0, 1fr); }
.lp-pricing__top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; }
.lp-pricing__top .seg button { padding: 9px 22px; font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plans .plan { gap: 10px; }
.plans .plan--featured { padding: 30px 28px 28px; }
.plans .plan__price { font-size: 42px; padding: 10px 0 18px; margin-bottom: 8px; flex: 1; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plans .plan--featured .plan__price { font-size: 42px; }
.plans__incl { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; padding: 4px 4px 0; }
.plans__incl > span { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.plans__incl ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.plans__incl li { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.plans__incl .icon { color: var(--accent); }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px 28px 28px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); }
.plan h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; }
.plan__blurb { color: var(--ink-2); }
.plan--featured { padding: 36px 34px 30px; }
.plan--featured .plan__price { font-size: 48px; }
.plan__note { font-size: 12.5px; color: var(--night-ink-3); text-align: center; }
.plan__price { font-size: 38px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; padding: 6px 0 14px; border-bottom: 1px solid var(--line); }
.plan__price span { font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.plan li .icon { margin-top: 2px; color: var(--accent); }
.plan .btn { margin-top: 10px; }
.plan--featured { background: var(--night); color: var(--night-ink); border-color: var(--night); }
.plan--featured .plan__blurb, .plan--featured .plan__price span { color: var(--night-ink-2); }
.plan--featured .plan__price { border-color: var(--night-line); }
.plan--featured li .icon { color: var(--warm-2); }
.plan__tag { position: absolute; top: 26px; right: 24px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; color: #fff; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky) 55%, var(--brand-pink)); }

.lp-faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item button { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 20px 0; border: 0; background: none; font-size: 16.5px; font-weight: 550; text-align: left; cursor: pointer; }
.faq__item button .icon { color: var(--ink-3); transition: transform 0.2s var(--ease); flex: none; }
.faq__item.is-open button .icon { transform: rotate(45deg); }
.faq__item p { color: var(--ink-2); line-height: 1.6; padding: 0 40px 22px 0; max-width: 62ch; animation: fade 0.2s; }

.lp-cta { margin: 24px 0 0; padding: 72px 40px; border-radius: 24px; text-align: center; display: grid; justify-items: center; gap: 16px; background: var(--warm-soft); scroll-margin-top: 24px; }
.lp-cta p { color: var(--ink-2); font-size: 17px; max-width: 52ch; line-height: 1.6; }
.lp-cta__contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.lp-cta__email { font-size: 20px; font-weight: 600; user-select: all; }
.lp-cta .btn--light { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lp-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 36px 0 48px; color: var(--ink-3); font-size: 13.5px; }
.lp-foot > a:last-child { margin-left: auto; color: var(--ink-2); }

/* ============ Checkout ============ */
.co-back { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2); font-weight: 500; cursor: pointer; padding: 8px 10px; border-radius: 99px; }
.co-back:hover { background: var(--paper-2); color: var(--ink); }
.co-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 56px; align-items: start; padding: 32px 0 88px; }
.co-form { display: grid; gap: 28px; max-width: 620px; }
.co-head { display: grid; gap: 12px; }
.co-head .seg { justify-self: start; margin-top: 4px; }
.co-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-form legend { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; padding: 0 0 14px; margin-bottom: 4px; width: 100%; border-bottom: 1px solid var(--line); }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field input[aria-invalid="true"] { border-color: var(--down); }
.field em.field-error, em.field-error { font-style: normal; font-weight: 400; }
.co-hint { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.co-mail { color: var(--ink-2); user-select: all; }
.co-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.co-method { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.co-method input { position: absolute; opacity: 0; pointer-events: none; }
.co-method.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.co-method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.co-method__dot { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.co-method.is-on .co-method__dot { border: 5px solid var(--accent); }
.co-method span:last-child { display: grid; gap: 2px; }
.co-method strong { font-weight: 600; }
.co-method small { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.co-terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.co-terms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.co-terms.has-error span { color: var(--down); }
.co-submit { height: 50px; font-size: 15px; }
.co-demo { font-size: 12.5px; color: var(--warn); background: var(--warn-soft); padding: 10px 12px; border-radius: 10px; }

.co-summary { position: sticky; top: 24px; display: grid; gap: 16px; padding: 30px 28px; border-radius: 20px; background: var(--night); color: var(--night-ink); }
.co-summary h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; }
.co-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-summary li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.45; }
.co-summary li .icon { margin-top: 2px; color: var(--warm-2); }
.co-lines { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--night-line); display: grid; gap: 10px; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--night-ink-2); font-variant-numeric: tabular-nums; }
.co-lines dd { margin: 0; }
.co-lines__total { padding-top: 12px; border-top: 1px solid var(--night-line); color: var(--night-ink) !important; font-weight: 650; font-size: 17px; }
.co-note { font-size: 12.5px; color: var(--night-ink-3); line-height: 1.5; }

.co-done { max-width: 560px; margin: 40px auto 96px; display: grid; gap: 18px; justify-items: start; }
.co-done__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky) 60%, var(--brand-pink)); }
.co-done > p { color: var(--ink-2); font-size: 17px; }
.co-done__advisor { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--warm-soft); width: 100%; }
.co-done__advisor div { display: grid; line-height: 1.4; }
.co-done__advisor span { color: var(--ink-2); font-size: 14px; }
.co-done__next { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }

/* ============ Responsive ============ */
@media (max-width: 1320px) {
  .split:not(.split--admin) { grid-template-columns: 1fr; }
  .split .next { max-width: 420px; }
}

@media (max-width: 1180px) {
  .cases { gap: 18px; }
  .vfeat { gap: 36px; padding: 32px; }
  .lp-showcase { grid-template-columns: 1fr; }
  .lp-hero { gap: 40px; }
  .main { padding: 44px 36px 88px; }
  .inbox { grid-template-columns: 260px minmax(0, 1fr); }
  .ctx { display: none; }
  .chat-layout { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 900px) {
  :root { --t-3xl: 34px; --t-2xl: 28px; --t-xl: 24px; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar {
    display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px 16px; background: var(--bar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .topbar--night { background: var(--night); border-color: var(--night); }
  .topbar--night .icon-btn { color: var(--night-ink); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bar-bg); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; text-decoration: none; color: var(--ink-3); font-size: 10.5px; font-weight: 500; }
  .tabbar a.is-on { color: var(--ink); font-weight: 600; }
  .tabbar__ico { position: relative; }
  .tabbar__ico i { position: absolute; top: -1px; right: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--highlight); }
  .sheet { display: block; position: fixed; inset: 0; z-index: 40; background: var(--scrim); animation: fade 0.18s; }
  .sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 18px 18px 0 0; padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; animation: pop 0.22s var(--ease); max-height: 90vh; overflow-y: auto; }
  .sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 10px 8px; }
  .sheet .who-menu__pop { right: 0; }
  .nav__item.is-on::before { display: none; }
  .main { padding: 28px 16px 110px; }
  .main:has(.inbox) { padding: 0 0 70px; }
  .page { gap: 36px; }
  .page-head { align-items: flex-start; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi, .kpi + .kpi { padding: 16px 16px 12px 0; border-left: 0; }
  .kpi:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .kpis--small { margin-top: -16px; }
  .panel__head { padding: 20px 18px 0; }
  .panel__legend { padding: 14px 18px 0; }
  .panel__body { padding: 10px 6px 8px 12px; }
  .panel__tab { padding: 14px 16px; }
  .panel__tabs { grid-auto-columns: minmax(130px, 1fr); }
  .insights { padding: 22px 20px; }
  .insights__grid { grid-template-columns: 1fr; }
  .insight, .insight + .insight { padding: 14px 0; border-left: 0; border-top: 1px solid var(--warm-line); }
  .insight:first-child { border-top: 0; padding-top: 0; }
  .post { grid-template-columns: 64px minmax(0, 1fr); gap: 8px 14px; align-items: start; }
  .post__rank { display: none; }
  .post__thumb { width: 64px; grid-row: span 2; }
  .post__nums { grid-template-columns: auto auto; justify-content: start; text-align: left; gap: 20px; }
  .chat-layout { grid-template-columns: 1fr; gap: 16px; }
  .chat-side { position: static; order: -1; }
  .chat-side__tip { display: none; }
  .chat-side .next { padding: 16px 18px; grid-template-columns: 1fr auto; column-gap: 12px; }
  .chat-side .next__top { grid-column: 1 / -1; margin-bottom: 4px; }
  .chat-side .next__date { font-size: 24px; }
  .chat-side .next__actions { grid-column: 2; grid-row: 2 / span 3; margin: 0; flex-direction: column; align-self: center; }
  .convo { height: calc(100vh - 290px); min-height: 420px; border-radius: 14px; }
  .convo__head { padding: 14px 16px; }
  .convo__scroll { padding: 8px 14px 16px; }
  .msg { max-width: 92%; }
  .mhero { grid-template-columns: 1fr; }
  .mhero__when { padding: 28px 22px; }
  .mhero__facts { border-left: 0; border-top: 1px solid var(--night-line); padding: 18px 22px 24px; }
  .mhero__facts > div { grid-template-columns: 90px minmax(0, 1fr); }
  .hist__head { grid-template-columns: 1fr 20px; gap: 4px 12px; }
  .hist__meta, .hist__tasks { grid-column: 1; }
  .hist__chev { grid-row: 1; grid-column: 2; }
  .hist__cols { grid-template-columns: 1fr; gap: 28px; }
  .account { grid-template-columns: 44px minmax(0, 1fr); }
  .account__status { grid-column: 2; justify-items: start; }
  .account__act { grid-column: 2; justify-content: flex-start; }
  .facts > div { grid-template-columns: 110px minmax(0, 1fr); }
  .astats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .astat, .astat + .astat { padding: 16px 16px 12px 0; border-left: 0; }
  .astat:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .astat__v { font-size: 34px; }
  .split--admin { grid-template-columns: 1fr; }
  .agenda__row { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .agenda__day, .agenda__adv { display: none; }
  .mini-client { grid-template-columns: minmax(0, 1fr) auto; }
  .mini-client .adots, .mini-client .spark, .mini-client__next { display: none; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox__list { max-height: 40vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .inbox__title { padding: 20px 16px 12px; }
  .inbox__main { padding: 12px; }
  .inbox__main .convo { height: 70vh; }
  .month__cell { min-height: 72px; padding: 4px; }
  .ev__c { display: none; }
  .profile-head__side { width: 100%; justify-content: space-between; }
  .tabs__note { display: none; }
  .back { margin-bottom: -20px; }
  .landing { padding: 0 16px; }
  .co-grid { grid-template-columns: 1fr; gap: 28px; padding: 8px 0 56px; }
  .co-summary { position: static; order: -1; padding: 22px 20px; }
  .co-summary ul { display: none; }
  .co-row, .co-methods { grid-template-columns: 1fr; }
  .lp-nav { padding: 16px 0; gap: 12px; }
  .lp-nav nav { display: none; }
  .lp-nav .btn { margin-left: auto; }
  .lp-hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 56px; }
  .lp-hero__sub { font-size: 16px; }
  .lp-section { padding: 56px 0; gap: 32px; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(2n) { padding: 22px 0; border-left: 0; }
  .lp-showcase { grid-template-columns: 1fr; padding: 36px 18px; border-radius: 18px; }
  .preview__kpis strong { font-size: 17px; }
  .livestrip { padding: 14px 14px 16px; }
  .livestrip__item { padding: 4px 8px; }
  .livestrip__num { font-size: 26px; }
  .lp-pricing { gap: 28px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .lp-results { padding: 40px 0 48px; gap: 36px; }
  .roles { grid-template-columns: 1fr; }
  .team-add { grid-template-columns: 1fr; }
  .rev-hero { padding: 24px 18px 16px; border-radius: 18px; }
  .rev-hero__top { grid-template-columns: 1fr; gap: 24px; }
  .rev-hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .rev-hero__stats > div, .rev-hero__stats > div + div { padding: 14px 0 0; border-left: 0; }
  .rev-chart__tip { position: static; margin-bottom: 8px; flex-wrap: wrap; }
  .vrow, .vrow--2 { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .vrow > * { scroll-snap-align: start; }
  .vcard__cover { border-radius: 14px; }
  .vfeat { grid-template-columns: 1fr; gap: 24px; padding: 20px; border-radius: 18px; }
  .vfeat__cover { max-width: 260px; justify-self: center; width: 100%; }
  .vfeat__stats { gap: 18px 24px; }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .case { border-radius: 18px; }
  .case__body { padding: 4px 14px 18px; }
  .case__top--logo { padding: 0 14px 8px; }
  .case__body--wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .case__top--icon { flex-wrap: wrap; padding: 20px 16px 4px; }
  .case__top--icon .case__tagline { margin-left: 0; flex-basis: 100%; }
  .case__stats dd { font-size: 28px; }
  .case__growth { flex-wrap: nowrap; gap: 12px; }
  .case__big { font-size: 42px; }
  .case__views strong { font-size: 20px; }
  .case__views span { font-size: 12.5px; }
  .case__views .case__label { font-size: 10px; letter-spacing: 0.1em; padding: 4px 9px; }
  .results { grid-template-columns: 1fr; gap: 24px; }
  .result + .result { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid var(--line); }
  .logos__row img { height: 56px; }
  .lp-about__intro { grid-template-columns: 1fr; gap: 28px; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .member strong { font-size: 13.5px; }
  .member span { font-size: 13px; }
  .member__img { border-radius: 12px; }
  .lp-faq { grid-template-columns: 1fr; }
  .lp-cta { padding: 48px 20px; border-radius: 18px; }
  .main:has(.livepage) { padding: 12px 12px 90px; }
  .livepage { min-height: calc(100vh - 170px); padding: 18px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .logos__row { animation: none !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============ Kalender (postplan) ============ */
.pill--down { background: var(--down-soft); color: var(--down); }
.pill--accent { background: var(--accent-soft); color: var(--accent); }
.pill .icon { display: block; }
.btn--danger-ghost { color: var(--down); }
.btn--danger-ghost:hover { background: var(--down-soft); border-color: var(--down-soft); }
.field select, .field textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 14px; background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.field select { height: 44px; padding-block: 0; }
.field textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
.field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field .seg { justify-self: start; }

/* Month summary: how well the plan is being followed. */
.plan-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.plan-stats > div { display: grid; gap: 6px; align-content: start; padding: 18px 20px 4px 0; }
.plan-stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.plan-stats span { font-size: 14px; color: var(--ink-2); }
.plan-stats strong { display: inline-flex; align-items: center; gap: 6px; font-size: 34px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.plan-stats strong.is-up .icon { color: var(--up); }
.plan-stats strong.is-down { color: var(--down); }
.plan-stats__bar { display: block; height: 5px; border-radius: 9px; background: var(--paper-2); overflow: hidden; margin-top: 4px; max-width: 160px; }
.plan-stats__bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-sky), var(--up)); }

/* Calendar card */
.plan-cal { display: grid; gap: 16px; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.plan-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.plan-cal__nav { display: flex; align-items: center; gap: 6px; }
.plan-cal__nav h2 { min-width: 190px; text-align: center; font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.plan-cal__nav h2 span { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--accent); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-2); }
.plan-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lg { width: 14px; height: 14px; border-radius: 5px; display: grid; place-items: center; }
.lg--posted { background: var(--up); color: #fff; border-radius: 50%; }
.lg--planned { background: var(--paper-2); border: 1px solid var(--line-2); }
.lg--missed { border: 1.5px dashed var(--down); }
.lg--meeting { background: var(--warm-soft); border: 1px solid var(--warm-2); }

.plan-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.plan-grid__wd { padding: 10px 10px 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.plan-day { position: relative; min-height: 118px; display: flex; flex-direction: column; gap: 4px; padding: 8px 7px 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); min-width: 0; }
.plan-day.is-out { background: var(--paper); }
.plan-day.is-out > * { opacity: 0.5; }
.plan-day.can-add { cursor: copy; }
.plan-day__n { align-self: flex-start; min-width: 26px; height: 26px; padding: 0 6px; margin-bottom: 2px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; pointer-events: none; }
.plan-day.is-today .plan-day__n { background: var(--accent); color: #fff; }
.plan-day__add { position: absolute; top: 8px; right: 7px; width: 24px; height: 24px; border-radius: 8px; border: 0; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.plan-day:hover .plan-day__add, .plan-day__add:focus-visible { opacity: 1; }
.plan-day__add:hover { background: var(--accent); color: #fff; }

/* One planned post / meeting in a day cell. */
.plan-chip { display: flex; align-items: flex-start; gap: 6px; width: 100%; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); color: var(--ink); font: inherit; font-size: 12px; text-align: left; cursor: pointer; transition: transform 0.12s var(--ease), box-shadow 0.15s; }
.plan-chip:hover { transform: translateY(-1px); box-shadow: 0 4px 12px -6px rgba(19, 26, 38, 0.25); }
.plan-chip .icon, .plan-chip__check { flex: none; margin-top: 1px; }
.plan-chip__t { min-width: 0; overflow: hidden; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.plan-chip__t b { font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 2px; }
.plan-chip--today { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.plan-chip--posted { background: var(--up-soft); border-color: color-mix(in srgb, var(--up) 25%, transparent); color: color-mix(in srgb, var(--up) 70%, var(--ink)); }
.plan-chip__check { flex: none; width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: var(--up); color: #fff; animation: check-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.plan-chip__check .icon { stroke-width: 2.4; }
.plan-chip--missed { background: transparent; border: 1px dashed color-mix(in srgb, var(--down) 55%, transparent); color: var(--ink-3); }
.plan-chip--missed .plan-chip__t { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--down) 50%, transparent); }
.plan-chip--meeting { background: var(--warm-soft); border-color: color-mix(in srgb, var(--warm) 35%, transparent); color: color-mix(in srgb, var(--warm) 55%, var(--ink)); }
@keyframes check-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Phone list (the grid collapses to dots) */
.plan-agenda { display: none; list-style: none; margin: 0; padding: 0; }
.plan-agenda__day { padding: 14px 2px 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.plan-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font: inherit; font-size: 14px; text-align: left; color: var(--ink); cursor: pointer; }
.plan-row span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.plan-row b { font-variant-numeric: tabular-nums; margin-right: 3px; }
.plan-row--meeting { grid-template-columns: 18px minmax(0, 1fr); background: var(--warm-soft); border-color: transparent; }
.plan-row--missed span:nth-child(2) { color: var(--ink-3); text-decoration: line-through; }

/* Detail drawer */
.plan-detail { display: grid; gap: 20px; }
.plan-detail h2 { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.plan-detail__status { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--paper-2); }
.plan-detail__status > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-2); flex: none; }
.plan-detail__status div { display: grid; gap: 1px; }
.plan-detail__status strong { font-size: 15px; }
.plan-detail__status small { font-size: 13px; color: var(--ink-2); }
.plan-detail__status--posted { background: var(--up-soft); }
.plan-detail__status--posted > span { background: var(--up); color: #fff; animation: check-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.plan-detail__status--missed { background: var(--down-soft); }
.plan-detail__status--missed > span { color: var(--down); }
.plan-detail__status--today { background: var(--accent-soft); }
.plan-detail__status--today > span { color: var(--accent); }
.plan-detail__facts { margin: 0; display: grid; gap: 10px; }
.plan-detail__facts div { display: grid; grid-template-columns: 100px 1fr; gap: 12px; align-items: center; font-size: 14.5px; }
.plan-detail__facts dt { color: var(--ink-3); }
.plan-detail__facts dd { margin: 0; display: inline-flex; align-items: center; gap: 7px; }
.plan-detail__note { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--warm-soft); }
.plan-detail__note p { color: var(--ink); line-height: 1.5; }
.plan-detail__post { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; }
.plan-detail__post > div:last-child { display: grid; gap: 4px; font-size: 14px; }
.plan-detail__thumb { border-radius: 10px; overflow: hidden; }
.plan-detail__thumb .thumb { display: block; width: 100%; }
.plan-detail__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.plan-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* "Koble til kalenderen din" */
.sync { gap: 16px; }
.sync__apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sync__apps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.sync__apps strong { font-size: 14.5px; }
.sync__apps p { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 2px; }
.sync__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.sync__ico--google { background: linear-gradient(135deg, #4285f4, #34a853 60%, #fbbc05); }
.sync__ico--apple { background: linear-gradient(135deg, #ff5f57, #ff2d55); }
.sync__ico--outlook { background: linear-gradient(135deg, #0078d4, #28a8ea); }
.sync__file { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper-2); flex-wrap: wrap; }
.sync__file p { font-size: 13px; margin-top: 2px; max-width: 34ch; }

@media (max-width: 900px) {
  .plan-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .plan-stats > div { padding-bottom: 14px; }
  .plan-cal { padding: 14px 12px 16px; border-radius: 18px; }
  .plan-cal__nav h2 { min-width: 0; font-size: 19px; }
  .plan-legend { display: none; }
  .plan-day { min-height: 54px; padding: 5px 4px 6px; flex-direction: row; flex-wrap: wrap; align-content: flex-start; gap: 3px; }
  .plan-day__n { width: 100%; min-width: 0; height: 22px; font-size: 12px; margin: 0; justify-items: center; }
  .plan-day__add { display: none; }
  .plan-grid__wd { padding: 8px 0; text-align: center; font-size: 11px; letter-spacing: 0.02em; }
  /* chips become coloured dots */
  .plan-chip { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; gap: 0; overflow: hidden; background: var(--ink-3); }
  .plan-chip > * { display: none; }
  .plan-chip--posted { background: var(--up); }
  .plan-chip--today { background: var(--accent); }
  .plan-chip--missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--down); }
  .plan-chip--meeting { background: var(--warm); }
  .plan-agenda { display: block; }
  .plan-form__row { grid-template-columns: 1fr; }
}

/* Subscription (customer settings) + request banner (admin customer page) */
.sub-request { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; background: var(--warm-surface); border: 1px solid var(--warm-border); font-size: 14px; }
.sub-request > span:first-of-type { flex: 1; min-width: 200px; }
.sub-request__btns { display: inline-flex; gap: 8px; }
.sub-request--admin { margin: 0 0 16px; }
.sub-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.co-methods--stack { grid-template-columns: 1fr; }
.co-brreg { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: 12.5px; color: var(--up); }
.co-terms a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Vilkår / personvern */
.legal__doc { max-width: 720px; margin: 0 auto; padding: 24px 16px 80px; }
.legal__doc h1 { font-size: clamp(32px, 5vw, 44px); margin: 8px 0 6px; }
.legal__doc section { margin-top: 28px; }
.legal__doc h2 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 8px; }
.legal__doc p { margin: 0 0 10px; line-height: 1.6; color: var(--ink-2); }
.legal__draft { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 10px; background: var(--warm-surface); border: 1px solid var(--warm-border); color: var(--ink) !important; font-size: 14px; }
.legal__confirm { font-size: 13.5px; padding: 8px 12px; border-left: 3px solid var(--warm); background: var(--warm-surface); }
.legal__confirm span { display: inline-block; margin-right: 8px; font-size: 11px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: var(--warm); }
.legal__foot { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: grid; gap: 8px; }
.legal__foot nav, .lp-foot__links { display: inline-flex; gap: 16px; flex-wrap: wrap; }
