/*!
 * Corporate Website + CMS — styles
 * Mobile-first. Breakpoints: 640px (sm) · 768px (md) · 1024px (lg) · 1280px (xl)
 * 1. Tokens & base   2. Public site   3. Admin panel
 */

/* ════════════════════════ 1. TOKENS & BASE ════════════════════════ */

:root {
  /* Brand tokens — overwritten at runtime from Admin → Theme */
  --c-primary: #0b5fff; --c-primaryText: #ffffff; --c-accent: #16c7f5; --c-background: #ffffff; --c-surface: #ffffff;
  --c-muted: #f3f6fb; --c-text: #0b1b33; --c-textMuted: #55657e; --c-border: #e3e8f0; --c-dark: #071a35;
  --f-heading: "Manrope"; --f-body: "Inter";
  --r-brand: 14px; --btn-radius: 14px;
  --font-heading: var(--f-heading), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: var(--f-body), ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow-lg: 0 20px 40px -12px rgb(11 27 51 / .14);
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  /* Context colours (switch inside dark sections) */
  --ctx-fg: var(--c-text); --ctx-muted: var(--c-textMuted); --ctx-line: var(--c-border);
  --ctx-card: var(--c-surface); --ctx-eyebrow: var(--c-primary);

  /* Admin palette */
  --a-bg: #f8fafc; --a-surface: #ffffff; --a-border: #e2e8f0; --a-border-strong: #cbd5e1; --a-text: #0f172a; --a-muted: #64748b;
  --a-subtle: #f1f5f9; --a-hover: #f8fafc; --a-primary: #4f46e5; --a-primary-hover: #6366f1; --a-primary-soft: #eef2ff; --a-primary-text: #4338ca;
  --a-danger: #dc2626; --a-ok: #059669; --a-warn: #d97706; --a-radius: 10px;
  color-scheme: light;
}
html.dark {
  --c-primary: #4c8dff; --c-primaryText: #ffffff; --c-accent: #38d6ff; --c-background: #060e1c; --c-surface: #0c1729;
  --c-muted: #0a1424; --c-text: #e8eef8; --c-textMuted: #9aa8bf; --c-border: #1c2a42; --c-dark: #030912;
  --shadow-lg: 0 20px 40px -12px rgb(0 0 0 / .5);
  --a-bg: #020617; --a-surface: #0f172a; --a-border: #1e293b; --a-border-strong: #334155; --a-text: #f1f5f9; --a-muted: #94a3b8;
  --a-subtle: #1e293b; --a-hover: #162033; --a-primary: #6366f1; --a-primary-hover: #818cf8; --a-primary-soft: rgb(99 102 241 / .14); --a-primary-text: #a5b4fc;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100dvh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; line-height: 1.5; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.admin :focus-visible { outline-color: var(--a-primary); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.i { width: 20px; height: 20px; flex-shrink: 0; }
.i-xs { width: 14px; height: 14px; } .i-sm { width: 16px; height: 16px; } .i-lg { width: 24px; height: 24px; } .i-xl { width: 28px; height: 28px; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Boot */
#app:empty::before { content: ""; position: fixed; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgb(127 127 127 / .25); border-top-color: var(--c-primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.boot-error { max-width: 36rem; margin: 15vh auto; padding: 24px; font-family: system-ui, sans-serif; text-align: center; }
.boot-error h1 { font-size: 1.5rem; margin-bottom: .5rem; }
.boot-error a { color: var(--c-primary); text-decoration: underline; }

/* ════════════════════════ 2. PUBLIC SITE ════════════════════════ */

body.site { background: var(--c-background); color: var(--c-text); font-family: var(--font-body); font-size: 1rem; }
.site h1, .site h2, .site h3, .site h4 { font-family: var(--font-heading); letter-spacing: -.02em; line-height: 1.15; }

.container { width: 100%; max-width: 80rem; margin-inline: auto; padding-inline: 16px; }
.container--prose { max-width: 48rem; }
.container--wide-text { max-width: 64rem; }
.container--toc { max-width: 72rem; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
@media (min-width: 1024px) { .container { padding-inline: 32px; } }

.is-dark { --ctx-fg: #fff; --ctx-muted: rgb(255 255 255 / .74); --ctx-line: rgb(255 255 255 / .12); --ctx-card: rgb(255 255 255 / .05); --ctx-eyebrow: var(--c-accent); color: #fff; }
.sec { position: relative; scroll-margin-top: calc(var(--header-h) + 24px); }
.sec--default { background: var(--c-background); color: var(--c-text); }
.sec--muted { background: var(--c-muted); color: var(--c-text); }
.sec--brand { background: var(--c-primary); color: var(--c-primaryText); --ctx-fg: var(--c-primaryText); --ctx-eyebrow: var(--c-primaryText); }
.sec--brand .btn--primary { background: var(--c-primaryText); color: var(--c-primary); }
.sec--dark { background: var(--c-dark); color: #fff; }
.pad-sm { padding-block: 40px; } .pad-md { padding-block: 64px; } .pad-lg { padding-block: 96px; } .pad-none { padding-block: 0; }
@media (min-width: 768px) { .pad-sm { padding-block: 48px; } .pad-md { padding-block: 96px; } .pad-lg { padding-block: 128px; } }
@media (max-width: 767.98px) { .hide-mobile { display: none; } }
@media (min-width: 768px) { .hide-desktop { display: none; } }

/* Scroll reveal (only hides when JS + motion are available) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: var(--btn-radius);
  font-size: .875rem; font-weight: 600; line-height: 1.2; text-align: center; transition: transform .2s, filter .2s, background-color .2s, border-color .2s; border: 1px solid transparent; }
.btn--primary { background: var(--c-primary); color: var(--c-primaryText); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.btn--primary:hover { filter: brightness(1.1); transform: translateY(-2px); }
.btn--secondary { border-color: color-mix(in srgb, currentColor 25%, transparent); }
.btn--secondary:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.btn--on-dark { color: #fff; }
.btn--ghost { padding-inline: 0; text-underline-offset: 4px; }
.btn--ghost:hover { text-decoration: underline; }
.btn--lg { min-height: 48px; padding-inline: 24px; font-size: .9375rem; }
.btn--pill { border-radius: 999px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; transform: none; }

/* Section heading */
.sh { max-width: 42rem; margin-bottom: 40px; }
.sh--center { margin-inline: auto; text-align: center; }
@media (min-width: 768px) { .sh { margin-bottom: 56px; } }
.eyebrow { margin-bottom: 12px; color: var(--ctx-eyebrow); font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.sh__title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 800; }
.sh__intro { margin-top: 16px; color: var(--ctx-muted); font-size: 1.125rem; }

/* Rich text */
.rich { font-size: 1.0625rem; line-height: 1.75; overflow-wrap: anywhere; }
.rich > * + * { margin-top: 1em; }
.rich h2 { font-size: 1.6rem; font-weight: 700; margin-top: 2em; line-height: 1.25; scroll-margin-top: calc(var(--header-h) + 24px); }
.rich h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.rich > :first-child { margin-top: 0; }
.rich a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
.rich ul { list-style: disc; padding-inline-start: 1.4em; }
.rich ol { list-style: decimal; padding-inline-start: 1.4em; }
.rich li + li { margin-top: .35em; }
.rich blockquote { border-inline-start: 3px solid var(--c-primary); padding-inline-start: 1em; color: var(--ctx-muted); font-style: italic; }
.rich img { border-radius: var(--r-brand); }
.rich table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--ctx-line); padding: .5em .75em; text-align: start; }
.rich iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-brand); }
.rich code { font-size: .9em; background: var(--c-muted); padding: .1em .35em; border-radius: 4px; }
.rich pre { overflow-x: auto; background: var(--c-muted); padding: 1em; border-radius: var(--r-brand); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; transition: background-color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: color-mix(in srgb, var(--c-background) 86%, transparent); border-bottom-color: var(--c-border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.skip { position: absolute; inset-inline-start: 16px; top: -100px; z-index: 60; padding: 8px 16px; border-radius: 8px; background: var(--c-primary); color: var(--c-primaryText); font-weight: 600; }
.skip:focus { top: 12px; }
.hdr { display: flex; align-items: center; gap: 24px; height: var(--header-h); max-width: 80rem; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .hdr { padding-inline: 24px; } }
@media (min-width: 1024px) { .hdr { padding-inline: 32px; } }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 1.125rem; font-weight: 800; letter-spacing: -.02em; min-width: 0; }
.brand__logo { height: 36px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--c-primary); color: var(--c-primaryText); font-size: .875rem; flex-shrink: 0; }
.only-dark { display: none; }
html.dark .only-dark { display: block; } html.dark .only-light { display: none; }
.nav { display: none; margin-inline-start: auto; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: 999px; font-size: .875rem; font-weight: 500; transition: background-color .2s, color .2s; }
.nav__link:hover { background: color-mix(in srgb, currentColor 6%, transparent); }
.nav__link.is-active { color: var(--c-primary); }
.nav__chev { transition: transform .2s; }
.has-dd:hover .nav__chev, .has-dd:focus-within .nav__chev { transform: rotate(180deg); }
.dd { position: absolute; inset-inline-start: 0; top: 100%; padding-top: 8px; visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s, visibility .2s; }
.has-dd:hover .dd, .has-dd:focus-within .dd { visibility: visible; opacity: 1; transform: none; }
.dd__panel { min-width: 15rem; padding: 8px; border: 1px solid var(--c-border); border-radius: 16px; background: var(--c-surface); box-shadow: var(--shadow-lg); }
.dd__link { display: block; padding: 10px 12px; border-radius: 12px; }
.dd__link:hover, .dd__link:focus-visible { background: var(--c-muted); }
.dd__label { display: block; font-size: .875rem; font-weight: 600; }
.dd__desc { display: block; font-size: .75rem; color: var(--c-textMuted); }
.hdr__actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
@media (min-width: 1024px) { .hdr__actions { margin-inline-start: 0; } }
.locales { display: none; align-items: center; gap: 4px; }
@media (min-width: 640px) { .locales { display: flex; } }
.locales__link { padding: 4px 8px; border-radius: 999px; font-size: .75rem; font-weight: 600; text-transform: uppercase; opacity: .6; }
.locales__link:hover { opacity: 1; }
.locales__link.is-active { opacity: 1; background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; transition: background-color .2s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.hdr__cta { display: none; min-height: 40px; margin-inline-start: 8px; }
@media (min-width: 640px) { .hdr__cta { display: inline-flex; } }
@media (min-width: 1024px) { .burger { display: none; } }
.mnav { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--c-background); color: var(--c-text); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: 16px; flex-shrink: 0; }
.mnav__nav { flex: 1; overflow-y: auto; padding: 0 16px 40px; }
.mnav__group { border-bottom: 1px solid var(--c-border); padding-block: 8px; }
.mnav__link { display: block; padding-block: 12px; font-size: 1.125rem; font-weight: 600; }
.mnav__sub { display: block; padding: 8px 0; padding-inline-start: 16px; color: var(--c-textMuted); }
.mnav__cta { margin-top: 24px; min-height: 48px; }
.mnav__locales { display: flex; gap: 8px; margin-top: 24px; }
.mnav__locale { padding: 8px 16px; border: 1px solid var(--c-border); border-radius: 999px; font-size: .875rem; }
.mnav__locale.is-active { background: var(--c-muted); }
@media (min-width: 1024px) { .mnav { display: none !important; } }

/* Hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; }
.hero--lg { min-height: 560px; } .hero--md { min-height: 440px; } .hero--full { min-height: calc(100svh - var(--header-h)); }
@media (min-width: 768px) { .hero--lg { min-height: 640px; } }
.hero--plain { background: var(--c-muted); color: var(--c-text); }
.hero--media { background: var(--c-dark); }
.hero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--c-dark), color-mix(in srgb, var(--c-dark) 80%, transparent), color-mix(in srgb, var(--c-dark) 30%, transparent)); }
[dir="rtl"] .hero__overlay { background: linear-gradient(270deg, var(--c-dark), color-mix(in srgb, var(--c-dark) 80%, transparent), color-mix(in srgb, var(--c-dark) 30%, transparent)); }
.hero__glow { position: absolute; inset-inline-end: -160px; top: -160px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 15%, transparent); filter: blur(64px); }
.hero__inner { padding-block: 80px; }
.hero__content { max-width: 48rem; }
.hero--center .hero__inner { text-align: center; } .hero--center .hero__content, .hero--center .hero__sub { margin-inline: auto; }
.hero__eyebrow { display: inline-flex; margin-bottom: 20px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary);
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero--media .hero__eyebrow { background: rgb(255 255 255 / .1); color: var(--c-accent); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .15); }
.hero__title { font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 800; line-height: 1.05; }
.hero__sub { max-width: 42rem; margin-top: 24px; color: var(--ctx-muted); font-size: clamp(1.0625rem, 2vw, 1.25rem); line-height: 1.6; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero--center .hero__actions { justify-content: center; }

/* Page header */
.phero { position: relative; isolation: isolate; overflow: hidden; background: var(--c-muted); }
.phero--media { background: var(--c-dark); }
.phero__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.phero__overlay { position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-dark) 75%, transparent); }
.phero__inner { padding-block: 64px; }
@media (min-width: 768px) { .phero__inner { padding-block: 96px; } }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; color: var(--ctx-muted); font-size: .875rem; }
.crumbs a:hover { text-decoration: underline; }
.phero__title { max-width: 48rem; font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
.phero__sub { max-width: 42rem; margin-top: 20px; color: var(--ctx-muted); font-size: 1.125rem; }

/* Logo cloud */
.logos__title { margin-bottom: 32px; color: var(--ctx-muted); font-size: .875rem; font-weight: 500; text-align: center; }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px 48px; }
.logos__img { height: 36px; width: auto; object-fit: contain; }
.logos--gray .logos__img { filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos--gray .logos__img:hover { filter: none; opacity: 1; }
.logos__name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 700; color: color-mix(in srgb, var(--ctx-muted) 70%, transparent); }

/* Grids & cards */
.grid { display: grid; gap: 24px; }
.grid--feat { gap: 20px; }
@media (min-width: 640px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .grid--md2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--md3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card-link { display: block; height: 100%; }
.fcard { height: 100%; padding: 24px; border: 1px solid var(--ctx-line); border-radius: var(--r-brand); background: var(--ctx-card); transition: transform .3s, box-shadow .3s; }
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.is-dark .fcard:hover { box-shadow: none; }
.icon-tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); }
.is-dark .icon-tile { background: rgb(255 255 255 / .1); color: var(--c-accent); }
.icon-tile--solid, .is-dark .icon-tile--solid { background: var(--c-primary); color: var(--c-primaryText); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--c-primary) 50%, transparent); }
.icon-tile--xl { width: 56px; height: 56px; border-radius: 16px; margin-bottom: 20px; }
.fcard__title { margin-top: 20px; font-size: 1.125rem; font-weight: 700; }
.fcard__text { margin-top: 8px; color: var(--ctx-muted); font-size: .9375rem; line-height: 1.6; }
.more-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; color: var(--c-primary); font-size: .875rem; font-weight: 600; }
.is-dark .more-link { color: var(--c-accent); }
.more-link .i { transition: transform .2s; }
a:hover > * > .more-link .i, a:hover .more-link .i { transform: translateX(4px); }
[dir="rtl"] a:hover .more-link .i { transform: scaleX(-1) translateX(4px); }
.empty-note { color: var(--ctx-muted); text-align: center; }
.grid-cta { margin-top: 48px; text-align: center; }

.scard { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--ctx-line); border-radius: var(--r-brand); background: var(--ctx-card); transition: transform .3s, border-color .3s, box-shadow .3s; }
.scard:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c-primary) 40%, transparent); box-shadow: var(--shadow-lg); }
.scard__title { margin-top: 24px; font-size: 1.25rem; font-weight: 700; }
.scard__text { flex: 1; margin-top: 8px; color: var(--ctx-muted); line-height: 1.6; }
.scard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.scard__foot .more-link { margin-top: 0; }
.scard__price { font-size: .875rem; font-weight: 600; }

.ccard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--ctx-line); border-radius: var(--r-brand); background: var(--ctx-card); color: var(--ctx-fg); transition: transform .3s, box-shadow .3s; }
.ccard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ccard__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-muted); }
.ccard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ccard:hover .ccard__media img { transform: scale(1.05); }
.ccard__body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.ccard__meta { color: var(--c-primary); font-size: .75rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.is-dark .ccard__meta { color: var(--c-accent); }
.ccard__title { margin-top: 8px; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.ccard__text { flex: 1; margin-top: 8px; color: var(--ctx-muted); font-size: .9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.jobs { max-width: 56rem; margin-inline: auto; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-brand); background: var(--c-surface); color: var(--c-text); --ctx-muted: var(--c-textMuted); }
.jobs li + li { border-top: 1px solid var(--c-border); }
.jobs__item { display: flex; flex-direction: column; gap: 8px; padding: 24px; transition: background-color .2s; }
.jobs__item:hover { background: var(--c-muted); }
.jobs__item .more-link { margin-top: 0; color: var(--c-primary); }
@media (min-width: 640px) { .jobs__item { flex-direction: row; align-items: center; justify-content: space-between; } }
.jobs__title { font-size: 1.125rem; font-weight: 700; }
.jobs__meta { color: var(--c-textMuted); font-size: .875rem; }

/* Stats */
.stats__title { margin-bottom: 40px; font-size: 1.875rem; font-weight: 800; text-align: center; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: flex; flex-direction: column-reverse; text-align: center; }
.stat__label { margin-top: 8px; color: var(--ctx-muted); font-size: .875rem; font-weight: 500; }
.stat__value { color: var(--c-primary); font-family: var(--font-heading); font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.is-dark .stat__value { color: #fff; }

/* Rich text block with TOC */
.rt-grid { display: grid; gap: 48px; }
.toc { display: none; }
@media (min-width: 1024px) { .rt-grid { grid-template-columns: 220px minmax(0, 1fr); } .toc { display: block; } }
.toc__inner { position: sticky; top: calc(var(--header-h) + 40px); font-size: .875rem; }
.toc__title { margin-bottom: 12px; font-weight: 600; }
.toc ul { display: grid; gap: 8px; padding-inline-start: 16px; border-inline-start: 1px solid var(--ctx-line); }
.toc a { color: var(--ctx-muted); } .toc a:hover { color: var(--c-primary); }

/* Image + text */
.split { display: grid; align-items: center; gap: 48px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split__media--right { order: 2; } }
.split__media { overflow: hidden; border-radius: calc(var(--r-brand) * 1.5); background: var(--c-muted); }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__title { font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 800; }
.split__text { margin-top: 20px; color: var(--ctx-muted); }
.split__cta { margin-top: 32px; }

/* Testimonials */
.tcard { display: flex; flex-direction: column; height: 100%; padding: 28px; border: 1px solid var(--ctx-line); border-radius: var(--r-brand); background: var(--ctx-card); color: var(--ctx-fg); }
.stars { display: flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 16px; height: 16px; }
.stars .dim { opacity: .25; }
.tcard__quote { flex: 1; margin-top: 16px; line-height: 1.65; }
.tcard__who { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar--initial { display: grid; place-items: center; background: color-mix(in srgb, var(--c-primary) 10%, transparent); color: var(--c-primary); font-weight: 700; }
.tcard__name { display: block; font-weight: 600; }
.tcard__role { display: block; color: var(--ctx-muted); font-size: .875rem; }
.tsingle { max-width: 56rem; text-align: center; }
.tsingle__icon { width: 40px; height: 40px; margin-inline: auto; color: var(--c-primary); }
.tsingle__quote { margin-top: 24px; font-family: var(--font-heading); font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 600; line-height: 1.35; }
.tsingle__name { margin-top: 24px; font-weight: 600; }
.tsingle__role { color: var(--ctx-muted); font-size: .875rem; }

/* FAQ */
.faq { overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-brand); background: var(--c-surface); color: var(--c-text); --ctx-muted: var(--c-textMuted); --ctx-line: var(--c-border); }
.faq__item + .faq__item { border-top: 1px solid var(--c-border); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: color-mix(in srgb, var(--c-muted) 60%, transparent); }
.faq__plus { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--c-muted); color: var(--c-primary); font-size: 1.25rem; line-height: 1; transition: transform .25s; }
.faq__item[open] .faq__plus { transform: rotate(45deg); }
.faq__a { padding: 0 24px 24px; color: var(--c-textMuted); }

/* Pricing */
.plans { display: grid; gap: 24px; max-width: 72rem; margin-inline: auto; }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; } }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--c-border); border-radius: calc(var(--r-brand) * 1.4); background: var(--c-surface); color: var(--c-text); --ctx-muted: var(--c-textMuted); }
.plan--hi { border-color: var(--c-primary); background: var(--c-dark); color: #fff; box-shadow: 0 25px 50px -12px color-mix(in srgb, var(--c-primary) 25%, transparent); --ctx-muted: rgb(255 255 255 / .65); }
@media (min-width: 1024px) { .plan--hi { padding-block: 48px; } }
.plan__badge { position: absolute; top: -12px; inset-inline-start: 32px; padding: 4px 12px; border-radius: 999px; background: var(--c-primary); color: var(--c-primaryText); font-size: .75rem; font-weight: 700; }
.plan__name { font-size: 1.125rem; font-weight: 700; }
.plan__price { margin-top: 16px; }
.plan__amount { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 800; letter-spacing: -.02em; }
.plan__period { color: var(--ctx-muted); }
.plan__features { flex: 1; display: grid; gap: 12px; margin-top: 24px; font-size: .9375rem; }
.plan__features li { display: flex; gap: 10px; }
.plan__check { width: 20px; height: 20px; margin-top: 1px; color: var(--c-primary); }
.plan--hi .plan__check { color: var(--c-accent); }
.plan__cta { margin-top: 32px; }

/* Gallery */
.gallery__title { margin-bottom: 40px; font-size: 1.875rem; font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.chip { padding: 8px 16px; border-radius: 999px; background: var(--c-muted); font-size: .875rem; font-weight: 600; text-transform: capitalize; transition: background-color .2s; }
.chip:hover { background: var(--c-border); }
.chip[aria-selected="true"] { background: var(--c-primary); color: var(--c-primaryText); }
.gallery { display: grid; gap: 16px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .gallery.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gallery.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gtile { position: relative; overflow: hidden; border-radius: var(--r-brand); background: var(--c-muted); text-align: start; }
.gtile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gtile:hover img, .gtile:focus-visible img { transform: scale(1.05); }
.gtile__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 16px; background: linear-gradient(to top, rgb(0 0 0 / .7), transparent); color: #fff; font-size: .875rem; font-weight: 500; opacity: 0; transition: opacity .25s; }
.gtile:hover .gtile__cap, .gtile:focus-visible .gtile__cap { opacity: 1; }
@media (hover: none) { .gtile__cap { opacity: 1; } }
.lightbox { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .9); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lightbox__close { position: absolute; top: 16px; inset-inline-end: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; }
.lightbox__fig { max-width: 64rem; }
.lightbox__fig img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 8px; object-fit: contain; }
.lightbox__fig figcaption { margin-top: 12px; color: rgb(255 255 255 / .8); text-align: center; }

/* Form section */
.formblock { display: grid; gap: 48px; }
@media (min-width: 1024px) { .formblock--side { grid-template-columns: 1fr 1.4fr; } }
.formblock__title { font-size: 1.875rem; font-weight: 800; }
.formblock__text { margin-top: 16px; color: var(--ctx-muted); }
.contact-card { display: grid; gap: 20px; margin-top: 32px; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-brand); background: var(--c-surface); color: var(--c-text); }
.contact-card__row { display: flex; gap: 12px; }
.contact-card__row .i { color: var(--c-primary); margin-top: 2px; }
.contact-card dt { font-size: .875rem; font-weight: 600; }
.contact-card dd { color: var(--c-textMuted); }
.contact-card a:hover { color: var(--c-primary); }
.contact-card__hours { color: var(--c-textMuted); font-size: .875rem; }
.form-card { padding: 24px; border: 1px solid var(--c-border); border-radius: calc(var(--r-brand) * 1.4); background: var(--c-surface); color: var(--c-text); box-shadow: 0 20px 25px -5px rgb(0 0 0 / .03); }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.is-dark .form-card { border-color: rgb(255 255 255 / .1); background: rgb(255 255 255 / .05); color: #fff; box-shadow: none; }
.form-card__title { margin-bottom: 24px; font-size: 1.5rem; font-weight: 800; }

.cform { position: relative; display: grid; gap: 16px; }
@media (min-width: 640px) { .cform:not(.cform--compact) { grid-template-columns: 1fr 1fr; } .cform:not(.cform--compact) > .field:not(.field--half), .cform > .form-alert, .cform > .cform__submit { grid-column: 1 / -1; } }
.cform--compact { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .cform--compact { flex-direction: row; flex-wrap: wrap; } .field--grow { flex: 1; min-width: 10rem; } }
.cform--compact .form-alert { flex-basis: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__label { display: block; margin-bottom: 6px; font-size: .875rem; font-weight: 500; }
.req { color: #ef4444; }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface); color: var(--c-text); font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 30%, transparent); }
.input[aria-invalid="true"] { border-color: #ef4444; }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; padding-inline-end: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
[dir="rtl"] select.input { background-position: left 14px center; }
.cform--dark .input, .is-dark .form-card .input { border-color: rgb(255 255 255 / .2); background-color: rgb(255 255 255 / .05); color: #fff; }
.cform--dark .input::placeholder { color: rgb(255 255 255 / .55); }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: .875rem; }
.check input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--c-primary); }
.field__err { margin-top: 4px; color: #ef4444; font-size: .875rem; }
.is-dark .field__err, .cform--dark .field__err { color: #fca5a5; }
.form-alert { color: #ef4444; font-size: .875rem; }
.is-dark .form-alert, .cform--dark .form-alert { color: #fca5a5; }
.cform__submit .btn { width: 100%; }
@media (min-width: 640px) { .cform__submit .btn { width: auto; } }
.cform--compact .cform__submit .btn { min-height: 48px; }
.form-success { padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-brand); background: var(--c-muted); font-weight: 500; text-align: center; color: var(--c-text); }
.is-dark .form-success { border-color: rgb(255 255 255 / .2); background: transparent; color: #fff; }
.form-missing { font-size: .875rem; opacity: .7; }

/* CTA band */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: 64px 24px; border-radius: calc(var(--r-brand) * 2); background: var(--c-dark); text-align: center; }
@media (min-width: 640px) { .cta-band { padding-inline: 64px; } }
@media (min-width: 768px) { .cta-band { padding-block: 80px; } }
.cta-band__media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.cta-band__overlay { position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--c-dark) 80%, transparent); }
.cta-band__glow1, .cta-band__glow2 { position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%; filter: blur(64px); }
.cta-band__glow1 { inset-inline-start: -96px; top: -96px; background: color-mix(in srgb, var(--c-primary) 40%, transparent); }
.cta-band__glow2 { inset-inline-end: -96px; bottom: -96px; background: color-mix(in srgb, var(--c-accent) 25%, transparent); }
.cta-band__title { max-width: 42rem; margin-inline: auto; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 800; }
.cta-band__text { max-width: 36rem; margin: 16px auto 0; color: rgb(255 255 255 / .75); font-size: 1.125rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

/* Map & video */
.map-frame { width: 100%; border: 0; }
.video__title { margin-bottom: 32px; font-size: 1.875rem; font-weight: 800; text-align: center; }
.video-frame { aspect-ratio: 16 / 9; overflow: hidden; border-radius: calc(var(--r-brand) * 1.4); background: var(--c-dark); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }

/* Detail pages */
.dhead { background: var(--c-muted); }
.dhead__grid { display: grid; align-items: center; gap: 40px; padding-block: 56px; }
@media (min-width: 768px) { .dhead__grid, .dhead__job { padding-block: 80px; } }
@media (min-width: 1024px) { .dhead__grid { grid-template-columns: 1fr 1fr; } }
.dhead__job { padding-block: 56px; }
.dhead__kicker { margin-bottom: 8px; color: var(--c-primary); font-size: .875rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.dhead__title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
.dhead__sub { margin-top: 20px; color: var(--c-textMuted); font-size: 1.125rem; }
.dhead__price { margin-top: 24px; font-size: 1.25rem; font-weight: 700; }
.dhead__price--lg { font-size: 1.5rem; font-weight: 800; }
.dhead__cta { margin-top: 32px; }
.dhead__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r-brand) * 1.5); box-shadow: var(--shadow-lg); }
.detail-body { display: grid; gap: 56px; padding-block: 64px; }
@media (min-width: 1024px) { .detail-body { grid-template-columns: minmax(0, 1fr) 320px; } .detail-body--job { grid-template-columns: minmax(0, 1fr) 420px; } }
.detail-main { min-width: 0; }
.detail-aside { display: grid; gap: 24px; align-content: start; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 48px; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-brand); }
@media (min-width: 640px) { .results { grid-template-columns: repeat(4, 1fr); } }
.results > div { display: flex; flex-direction: column; }
.results__value { color: var(--c-primary); font-family: var(--font-heading); font-size: 1.875rem; font-weight: 800; }
.results__label { color: var(--c-textMuted); font-size: .875rem; }
.detail-sec + .detail-sec { margin-top: 48px; }
.detail-sec h2 { margin-bottom: 16px; font-size: 1.5rem; font-weight: 800; }
.detail-gallery { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .detail-gallery { grid-template-columns: 1fr 1fr; } }
.detail-gallery img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-brand); }
.aside-card { padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-brand); }
.aside-card__title { font-weight: 700; }
.checklist { display: grid; gap: 12px; margin-top: 16px; }
.checklist li { display: flex; gap: 8px; }
.checklist .i { margin-top: 2px; color: var(--c-primary); }
.specs { overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--r-brand); }
.specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px; font-size: .875rem; }
.specs > div + div { border-top: 1px solid var(--c-border); }
.specs dt { color: var(--c-textMuted); } .specs dd { font-weight: 600; text-align: end; }
.enquire { padding-block: 64px; background: var(--c-muted); scroll-margin-top: calc(var(--header-h) + 16px); }
.enquire__title { margin-bottom: 24px; font-size: 1.875rem; font-weight: 800; text-align: center; }
.related { padding-block: 64px; }
.related__title { margin-bottom: 32px; font-size: 1.5rem; font-weight: 800; }
.related-band { padding-block: 64px; }
.rcard { display: block; padding: 24px; border: 1px solid var(--c-border); border-radius: var(--r-brand); transition: border-color .2s, box-shadow .2s; }
.rcard:hover { border-color: color-mix(in srgb, var(--c-primary) 40%, transparent); box-shadow: var(--shadow-lg); }
.rcard--surface { background: var(--c-surface); }
.rcard__title { font-weight: 700; } .rcard__meta + .rcard__title { margin-top: 8px; }
.rcard__text { margin-top: 8px; color: var(--c-textMuted); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__meta { color: var(--c-primary); font-size: .75rem; font-weight: 600; text-transform: uppercase; }
.post-head { padding-top: 56px; }
.post-head__title { font-size: clamp(2.25rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; }
.post-head__excerpt { margin-top: 20px; color: var(--c-textMuted); font-size: 1.25rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 24px; color: var(--c-textMuted); font-size: .875rem; }
.post-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta__author { color: var(--c-text); font-weight: 600; }
.post-hero { margin-top: 40px; }
.post-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--r-brand) * 1.5); }
.post-body { padding-block: 48px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.tag { padding: 4px 12px; border-radius: 999px; background: var(--c-muted); font-size: .875rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; color: var(--c-textMuted); }
.job-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.lead { margin-bottom: 1em; font-size: 1.125rem; }
.apply-card { height: fit-content; padding: 24px; border: 1px solid var(--c-border); border-radius: calc(var(--r-brand) * 1.4); background: var(--c-surface); }
@media (min-width: 1024px) { .apply-card { position: sticky; top: calc(var(--header-h) + 40px); } .apply-card .cform { grid-template-columns: 1fr; } .apply-card .cform > .field { grid-column: auto; } }
.apply-card__title { margin-bottom: 20px; font-size: 1.25rem; font-weight: 800; }
.back-link { display: flex; align-items: center; gap: 8px; width: fit-content; margin: 0 auto 64px; color: var(--c-primary); font-size: .875rem; font-weight: 600; }

/* Footer */
.site-footer { background: var(--c-dark); color: #fff; }
.ft-grid { display: grid; gap: 48px; padding-block: 64px; }
@media (min-width: 768px) { .ft-grid { grid-template-columns: 4fr 5fr 3fr; } }
.ft-brand__name { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; }
.ft-brand__text { max-width: 24rem; margin-top: 16px; color: rgb(255 255 255 / .7); font-size: .875rem; line-height: 1.65; }
.ft-contact { display: grid; gap: 10px; margin-top: 24px; color: rgb(255 255 255 / .8); font-size: .875rem; }
.ft-contact li, .ft-contact a { display: flex; gap: 10px; }
.ft-contact .i { margin-top: 2px; color: var(--c-accent); }
.ft-contact a:hover { color: #fff; }
.ft-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (min-width: 640px) { .ft-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ft-cols__title { font-size: .875rem; font-weight: 600; }
.ft-cols ul { display: grid; gap: 10px; margin-top: 16px; }
.ft-cols a { color: rgb(255 255 255 / .65); font-size: .875rem; transition: color .2s; }
.ft-cols a:hover { color: #fff; }
.ft-news__text { margin: 8px 0 16px; color: rgb(255 255 255 / .65); font-size: .875rem; }
.ft-news .cform--compact { flex-direction: column; }
@media (min-width: 1024px) { .ft-news .cform--compact { flex-direction: row; } }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .15); border-radius: 50%; font-size: .8125rem; font-weight: 700; text-transform: lowercase; transition: border-color .2s, background-color .2s; }
.social:hover { border-color: rgb(255 255 255 / .4); background: rgb(255 255 255 / .1); }
.ft-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.ft-bottom__inner { display: flex; flex-direction: column; gap: 12px; padding-block: 24px; color: rgb(255 255 255 / .6); font-size: .75rem; }
@media (min-width: 640px) { .ft-bottom__inner { flex-direction: row; align-items: center; justify-content: space-between; } }
.ft-legal { display: flex; flex-wrap: wrap; gap: 20px; }
.ft-legal a:hover { color: #fff; }

/* Misc */
.preview-banner { position: sticky; top: var(--header-h); z-index: 40; padding: 8px 16px; background: #fbbf24; color: #000; font-size: .875rem; font-weight: 600; text-align: center; }
.notfound { display: flex; min-height: 60vh; flex-direction: column; align-items: center; justify-content: center; padding-block: 96px; text-align: center; }
.notfound__code { color: var(--c-primary); font-family: var(--font-heading); font-size: 4.5rem; font-weight: 800; line-height: 1; }
.notfound__title { margin-top: 16px; font-size: 1.875rem; font-weight: 800; }
.notfound__text { max-width: 28rem; margin: 12px 0 32px; color: var(--c-textMuted); }
main:focus { outline: none; }

/* ════════════════════════ 3. ADMIN PANEL ════════════════════════ */

body.admin { background: var(--a-bg); color: var(--a-text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: .875rem; }
.admin h1, .admin h2, .admin h3 { font-family: inherit; letter-spacing: -.01em; }

/* Layout */
.a-shell { display: flex; min-height: 100dvh; }
.a-side { position: sticky; top: 0; display: none; width: 240px; height: 100dvh; flex-shrink: 0; border-inline-end: 1px solid var(--a-border); background: var(--a-surface); }
@media (min-width: 1024px) { .a-side { display: block; } }
.a-side__inner { display: flex; height: 100%; flex-direction: column; }
.a-side__brand { display: flex; align-items: center; gap: 10px; height: 56px; padding-inline: 16px; border-bottom: 1px solid var(--a-border); }
.a-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--a-primary); color: #fff; font-weight: 700; flex-shrink: 0; }
.a-logo--lg { width: 44px; height: 44px; margin-inline: auto; border-radius: 12px; font-size: 1.125rem; }
.a-side__company { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.a-nav { flex: 1; display: grid; align-content: start; gap: 20px; overflow-y: auto; padding: 16px 12px; }
.a-nav__label { margin-bottom: 4px; padding-inline: 8px; color: var(--a-muted); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.a-nav__link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 6px 8px; border-radius: 8px; color: var(--a-muted); transition: background-color .15s, color .15s; }
.a-nav__link:hover { background: var(--a-subtle); color: var(--a-text); }
.a-nav__link.is-active { background: var(--a-primary-soft); color: var(--a-primary-text); font-weight: 500; }
.a-nav__count { margin-inline-start: auto; padding: 0 6px; border-radius: 999px; background: var(--a-primary); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1.6; }
.a-side__user { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--a-border); }
.a-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--a-subtle); font-size: .75rem; font-weight: 600; }
.a-side__who { min-width: 0; flex: 1; }
.a-side__name { overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.a-side__role { overflow: hidden; color: var(--a-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.a-drawer { position: fixed; inset: 0; z-index: 50; }
.a-drawer__backdrop { position: absolute; inset: 0; background: rgb(2 6 23 / .5); }
.a-drawer__panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(280px, 85vw); background: var(--a-surface); animation: slide-in .2s var(--ease); }
@keyframes slide-in { from { transform: translateX(-100%); } }
@media (min-width: 1024px) { .a-drawer { display: none !important; } }
.a-content { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.a-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 8px; height: 56px; padding-inline: 16px; border-bottom: 1px solid var(--a-border); background: color-mix(in srgb, var(--a-surface) 85%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (min-width: 1024px) { .a-top .a-top__menu { display: none; } }
.a-main { width: 100%; max-width: 80rem; margin-inline: auto; padding: 16px; }
@media (min-width: 640px) { .a-main { padding: 24px; } }
@media (min-width: 1024px) { .a-main { padding: 32px; } }
.a-main--full { max-width: none; padding: 0; }
.a-main:focus { outline: none; }

/* Primitives */
.a-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding-inline: 14px; border: 1px solid transparent; border-radius: 8px; font-size: .875rem; font-weight: 500; white-space: nowrap; transition: background-color .15s, border-color .15s, opacity .15s; }
.a-btn--sm { height: 32px; padding-inline: 10px; font-size: .75rem; }
.a-btn--primary { background: var(--a-primary); color: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
.a-btn--primary:hover:not(:disabled) { background: var(--a-primary-hover); }
.a-btn--secondary { border-color: var(--a-border-strong); background: var(--a-surface); color: var(--a-text); }
.a-btn--secondary:hover:not(:disabled) { background: var(--a-hover); }
.a-btn--ghost { color: var(--a-muted); }
.a-btn--ghost:hover:not(:disabled) { background: var(--a-subtle); color: var(--a-text); }
.a-btn--danger { background: var(--a-danger); color: #fff; }
.a-btn--danger:hover:not(:disabled) { background: #ef4444; }
.a-btn--block { width: 100%; }
.a-btn:disabled { opacity: .5; }
.a-iconlink { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 8px; color: var(--a-muted); transition: background-color .15s, color .15s; }
.a-iconlink:hover { background: var(--a-subtle); color: var(--a-text); }
.a-iconlink--danger:hover { color: var(--a-danger); }
.a-card { border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-surface); min-width: 0; }
.a-card--pad { padding: 20px; }
.a-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 20px; border-bottom: 1px solid var(--a-border); }
.a-card__title { font-size: .875rem; font-weight: 600; }
.a-card__foot { padding: 12px; border-top: 1px solid var(--a-border); }
.a-ph { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
@media (min-width: 640px) { .a-ph { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.a-ph__title { font-size: 1.25rem; font-weight: 600; }
.a-ph__desc { max-width: 48rem; margin-top: 4px; color: var(--a-muted); }
.a-ph__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.a-empty { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; text-align: center; }
.a-empty__title { font-weight: 500; }
.a-empty__text { max-width: 24rem; margin-top: 4px; color: var(--a-muted); }
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.badge--gray { background: var(--a-subtle); color: var(--a-muted); }
.badge--green { background: #ecfdf5; color: #047857; } .badge--amber { background: #fffbeb; color: #b45309; } .badge--red { background: #fef2f2; color: #b91c1c; } .badge--indigo { background: #eef2ff; color: #4338ca; }
html.dark .badge--green { background: rgb(16 185 129 / .12); color: #34d399; } html.dark .badge--amber { background: rgb(245 158 11 / .12); color: #fbbf24; }
html.dark .badge--red { background: rgb(239 68 68 / .12); color: #f87171; } html.dark .badge--indigo { background: rgb(99 102 241 / .14); color: #a5b4fc; }
.a-alert { padding: 12px 16px; border-radius: 8px; }
.a-alert--amber { background: #fffbeb; color: #92400e; } .a-alert--red { background: #fef2f2; color: #b91c1c; }
html.dark .a-alert--amber { background: rgb(245 158 11 / .1); color: #fcd34d; } html.dark .a-alert--red { background: rgb(239 68 68 / .1); color: #fca5a5; }
.a-main > .a-alert { margin-bottom: 16px; }

/* Forms */
.a-label { display: block; margin-bottom: 6px; color: var(--a-text); font-size: .75rem; font-weight: 500; opacity: .85; }
.a-req { color: var(--a-danger); }
.a-input { width: 100%; min-height: 36px; padding: 7px 12px; border: 1px solid var(--a-border-strong); border-radius: 8px; background: var(--a-surface); color: var(--a-text); font-size: .875rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.a-input::placeholder { color: #94a3b8; }
.a-input:focus { border-color: var(--a-primary); box-shadow: 0 0 0 3px rgb(99 102 241 / .2); }
.a-input:disabled { opacity: .6; background: var(--a-subtle); }
.a-input[aria-invalid="true"] { border-color: var(--a-danger); }
textarea.a-input { resize: vertical; }
select.a-input { appearance: none; padding-inline-end: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
.a-input--sm { min-height: 32px; padding-block: 4px; width: auto; }
.a-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .75rem; }
.a-help { margin-top: 4px; color: var(--a-muted); font-size: .75rem; }
.a-err { margin-top: 4px; color: var(--a-danger); font-size: .75rem; }
.a-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.a-check input { width: 16px; height: 16px; accent-color: var(--a-primary); }
.a-color { width: 48px; height: 36px; flex-shrink: 0; padding: 3px; border: 1px solid var(--a-border-strong); border-radius: 8px; background: var(--a-surface); cursor: pointer; }
.a-range { width: 100%; accent-color: var(--a-primary); }
.switch-row { display: flex; align-items: center; gap: 12px; }
.switch-row__label { font-weight: 500; cursor: pointer; }
.switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; border-radius: 999px; background: var(--a-border-strong); transition: background-color .2s; }
.switch::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .2); transition: inset-inline-start .2s; }
.switch[aria-checked="true"] { background: var(--a-primary); }
.switch[aria-checked="true"]::after { inset-inline-start: 18px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.fcell { grid-column: span 2; min-width: 0; }
@media (min-width: 640px) { .fcell--half { grid-column: span 1; } }
.media-input { display: flex; align-items: center; gap: 8px; }
.thumb-btn { display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0; overflow: hidden; border: 1px dashed var(--a-border-strong); border-radius: 8px; background: var(--a-subtle); color: var(--a-muted); }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.link-input { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 8px; border: 1px solid var(--a-border); border-radius: 8px; }
@media (min-width: 640px) { .link-input { grid-template-columns: 1fr 1fr auto; } .link-input__tab { grid-column: 1 / -1; } }
.link-input__tab { color: var(--a-muted); font-size: .75rem; }
.list-input { display: grid; gap: 6px; }
.rep { display: grid; gap: 8px; justify-items: start; }
.rep > .rep__item { width: 100%; }
.rep__item { border: 1px solid var(--a-border); border-radius: 8px; }
.rep__head { display: flex; align-items: center; gap: 2px; padding: 4px 6px 4px 12px; }
.rep__toggle { display: flex; flex: 1; align-items: center; gap: 8px; min-height: 32px; min-width: 0; font-weight: 500; text-align: start; }
.rep__toggle span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rep__chev { color: var(--a-muted); transition: transform .2s; } .rep__chev.is-open { transform: rotate(180deg); }
.rep__body { padding: 12px; border-top: 1px solid var(--a-border); }
.rte { overflow: hidden; border: 1px solid var(--a-border-strong); border-radius: 8px; }
.rte:focus-within { border-color: var(--a-primary); box-shadow: 0 0 0 3px rgb(99 102 241 / .2); }
.rte__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-bottom: 1px solid var(--a-border); background: var(--a-subtle); }
.rte__tool { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 6px; color: var(--a-muted); font-size: .75rem; }
.rte__tool:hover, .rte__tool.is-on { background: var(--a-border); color: var(--a-primary-text); }
.rte__area { min-height: 14rem; padding: 16px; background: var(--a-surface); font-size: .9375rem; outline: none; --ctx-line: var(--a-border); --ctx-muted: var(--a-muted); --c-primary: var(--a-primary); --c-muted: var(--a-subtle); }
.rte__area:empty::before { content: attr(data-placeholder); color: #94a3b8; }
.rte__html { display: block; width: 100%; min-height: 14rem; padding: 12px; border: 0; background: var(--a-surface); outline: none; resize: vertical; }

/* Layout helpers */
.a-stack { display: grid; gap: 16px; } .a-stack-sm { display: grid; gap: 8px; } .a-stack-lg { display: grid; gap: 24px; align-content: start; }
.a-row { display: flex; align-items: center; gap: 8px; } .a-row--tight { gap: 4px; } .a-row--between { justify-content: space-between; } .a-row--end { justify-content: flex-end; } .a-wrap { flex-wrap: wrap; }
.a-grow { flex: 1; min-width: 0; }
.a-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.a-grid2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .a-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .a-span2 { grid-column: span 2; } }
.a-grid3 { display: grid; gap: 16px; }
@media (min-width: 1024px) { .a-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .a-span-lg2 { grid-column: span 2; } .a-span-lg3 { grid-column: span 3; } }
.a-mt { margin-top: 16px; } .a-mt-sm { margin-top: 8px; } .a-mt-lg { margin-top: 24px; } .a-mb { margin-bottom: 16px; } .a-mb-sm { margin-bottom: 8px; }
.a-pad { padding: 16px 20px; } .a-pad-sm { padding: 8px; } .a-pad-lg { padding: 32px; }
.a-muted { color: var(--a-muted); } .a-center { text-align: center; } .a-right { text-align: end; } .a-xs { font-size: .75rem; } .a-strong { font-weight: 600; }
.a-big { font-size: 1.5rem; font-weight: 600; } .a-upper { text-transform: uppercase; } .a-nowrap { white-space: nowrap; } .a-block { display: block; } .a-break { word-break: break-all; }
.a-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .a-min0 { min-width: 0; }
.a-maxw-sm { max-width: 24rem; } .a-maxw-md { max-width: 28rem; } .a-w-auto { width: auto; } .a-w-24 { width: 6rem; } .a-w-grip { width: 40px; } .a-h-fit { height: fit-content; } .a-self-end { align-self: end; padding-bottom: 8px; }
.a-link { color: var(--a-primary-text); font-weight: 500; } .a-link:hover { text-decoration: underline; }
.a-link-plain:hover { color: var(--a-primary-text); }
.a-eyebrow { color: var(--a-muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.a-ok { color: var(--a-ok); } .a-bad { color: var(--a-danger); font-weight: 500; }
.a-sticky { align-self: start; }
@media (min-width: 1024px) { .a-sticky { position: sticky; top: 80px; } }
.a-toolbar { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-bottom: 1px solid var(--a-border); }
.a-toolbar--plain { padding: 0; border: 0; align-items: center; }
.a-search { position: relative; min-width: 12rem; }
.a-search__icon { position: absolute; top: 10px; inset-inline-start: 12px; color: #94a3b8; pointer-events: none; }
.a-search .a-input { padding-inline-start: 36px; }
.a-tabbtn { padding: 6px 12px; border-radius: 8px; background: var(--a-surface); box-shadow: inset 0 0 0 1px var(--a-border); }
.a-tabbtn.is-active { background: var(--a-primary); color: #fff; box-shadow: none; }
.a-loc { padding: 4px 8px; border-radius: 6px; color: var(--a-muted); font-size: .75rem; text-transform: uppercase; }
.a-loc.is-active { background: var(--a-subtle); color: var(--a-text); font-weight: 600; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--a-border-strong); border-radius: 8px; background: var(--a-surface); }
.seg__btn { display: grid; place-items: center; min-width: 32px; height: 28px; padding-inline: 6px; border-radius: 6px; color: var(--a-muted); }
.seg__btn--text { padding-inline: 12px; font-size: .8125rem; text-transform: capitalize; }
.seg__btn[aria-pressed="true"] { background: var(--a-primary); color: #fff; }
.b-devices .seg__btn[aria-pressed="true"] { background: var(--a-subtle); color: var(--a-text); }

/* Tables & lists */
.a-table-wrap { position: relative; overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; }
.a-table th { padding: 12px; color: var(--a-muted); font-size: .6875rem; font-weight: 500; letter-spacing: .06em; text-align: start; text-transform: uppercase; white-space: nowrap; }
.a-table th:first-child, .a-table td:first-child { padding-inline-start: 20px; }
.a-table td { padding: 10px 12px; border-top: 1px solid var(--a-border); vertical-align: middle; }
.a-table tbody tr { background: var(--a-surface); transition: background-color .15s; }
.a-table tbody tr:hover { background: var(--a-hover); }
.a-table tr.is-dragging { position: relative; z-index: 2; box-shadow: 0 8px 24px rgb(0 0 0 / .12); opacity: .95; }
.a-cell-title { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.a-cell-title:hover { color: var(--a-primary-text); }
.a-cell-img { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; }
.a-list > li + li { border-top: 1px solid var(--a-border); }
.a-list__row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.a-list__row--activity { flex-wrap: wrap; gap: 4px 12px; padding-block: 10px; }
.a-when { width: 10rem; flex-shrink: 0; }
.a-list__empty { padding: 32px 20px; color: var(--a-muted); text-align: center; }
.a-list--scroll { max-height: 70vh; overflow-y: auto; }

/* Stats & charts */
.a-stats { display: grid; gap: 16px; }
@media (min-width: 640px) { .a-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .a-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-card { padding: 20px; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-surface); }
.stat-card__label { color: var(--a-muted); }
.stat-card__value { margin-top: 8px; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat-card__up, .stat-card__down { margin-top: 4px; font-size: .75rem; font-weight: 500; }
.stat-card__up { color: var(--a-ok); } .stat-card__down { color: var(--a-danger); }
.chart { width: 100%; height: auto; }
.chart__grid { stroke: var(--a-border); }
.chart__label { fill: #94a3b8; font-size: 11px; }
.chart__area { fill: rgb(99 102 241 / .1); }
.chart__views { stroke: #94a3b8; }
.chart__visitors { stroke: var(--a-primary); }
.chart-legend { display: flex; gap: 12px; color: var(--a-muted); font-size: .75rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: 4px; }
.chart-legend i { display: inline-block; width: 12px; }
.lg-visitors { height: 2px; background: var(--a-primary); }
.lg-views { border-top: 1px dashed #94a3b8; }
.barlist { display: grid; gap: 8px; }
.barlist li { position: relative; overflow: hidden; border-radius: 6px; }
.barlist__bar { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 6px; background: rgb(99 102 241 / .1); }
.barlist__row { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 6px 10px; }
.barlist__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.barlist__value { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Modals & toasts */
.a-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 8vh 16px 16px; background: rgb(2 6 23 / .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: fade .15s; }
.a-modal { width: 100%; max-width: 32rem; border: 1px solid var(--a-border); border-radius: 12px; background: var(--a-surface); color: var(--a-text); box-shadow: 0 25px 50px -12px rgb(0 0 0 / .35); animation: pop .18s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.a-modal--wide { max-width: 56rem; }
.a-modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--a-border); }
.a-modal__title { font-size: 1rem; font-weight: 600; }
.a-modal__x { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; color: var(--a-muted); }
.a-modal__x:hover { background: var(--a-subtle); }
.a-modal__body { padding: 20px; }
.a-confirm { margin-bottom: 16px; line-height: 1.6; }
.toasts { position: fixed; bottom: 16px; inset-inline-end: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { padding: 10px 16px; border-radius: 8px; background: #0f172a; color: #fff; font-family: Inter, system-ui, sans-serif; font-size: .875rem; font-weight: 500; box-shadow: 0 10px 20px rgb(0 0 0 / .2); pointer-events: auto; animation: pop .2s var(--ease); transition: opacity .3s; }
html.dark .toast { background: #334155; }
.toast--error, html.dark .toast--error { background: var(--a-danger); }
.toast--out { opacity: 0; }

/* Media */
.mgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mgrid--picker { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 55vh; overflow-y: auto; }
@media (min-width: 640px) { .mgrid--picker { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mgrid__empty { grid-column: 1 / -1; }
.mtile { overflow: hidden; border: 1px solid var(--a-border); border-radius: 8px; text-align: start; transition: box-shadow .15s; }
.mtile:hover { box-shadow: 0 0 0 2px var(--a-primary); }
.mtile.is-selected { border-color: var(--a-primary); box-shadow: 0 0 0 2px var(--a-primary); }
.mtile__thumb { width: 100%; aspect-ratio: 1; }
.mtile__name { overflow: hidden; padding: 6px 8px; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.a-thumb-img { object-fit: cover; background: var(--a-subtle); }
.a-thumb-ph { display: grid; place-items: center; background: var(--a-subtle); color: var(--a-muted); }
.dropzone { min-height: 20rem; padding: 12px; transition: background-color .15s, box-shadow .15s; }
.dropzone.is-over { background: var(--a-primary-soft); box-shadow: inset 0 0 0 2px var(--a-primary); }
.media-detail__thumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; }
.a-media-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .a-media-grid { grid-template-columns: minmax(0, 1fr) 300px; } }

/* Page builder */
.b-wrap { display: flex; height: calc(100dvh - 56px); flex-direction: column; }
.b-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--a-border); background: var(--a-surface); }
.b-title { max-width: 16rem; }
.b-badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.b-devices { display: none; }
@media (min-width: 768px) { .b-devices { display: inline-flex; } }
@media (max-width: 639.98px) { .b-toolbar .a-btn--sm span { display: none; } .b-toolbar [data-b="publish"] span { display: inline; } }
.b-cols { display: grid; min-height: 0; flex: 1; grid-template-columns: 1fr; overflow-y: auto; }
@media (min-width: 1024px) { .b-cols { grid-template-columns: 260px minmax(0, 1fr) 380px; overflow: hidden; } }
.b-list { display: flex; min-height: 0; flex-direction: column; border-inline-end: 1px solid var(--a-border); background: var(--a-surface); }
.b-list__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.b-rows { flex: 1; overflow-y: auto; padding: 0 8px 16px; }
@media (max-width: 1023.98px) { .b-list { border-bottom: 1px solid var(--a-border); } .b-rows { max-height: 40vh; } }
.b-row { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; padding: 6px; border: 1px solid transparent; border-radius: 8px; background: var(--a-surface); }
.b-row:hover { background: var(--a-hover); }
.b-row.is-active { border-color: var(--a-primary); background: var(--a-primary-soft); }
.b-row.is-hidden { opacity: .5; }
.b-row.is-dragging { position: relative; z-index: 2; box-shadow: 0 8px 24px rgb(0 0 0 / .15); }
.b-row__grip { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 6px; color: #94a3b8; cursor: grab; touch-action: none; }
.b-row__grip:active { cursor: grabbing; }
.b-row__grip:hover:not(:disabled) { background: var(--a-subtle); color: var(--a-text); }
.b-row__grip:disabled { opacity: .3; cursor: not-allowed; }
.b-row__main { min-width: 0; flex: 1; text-align: start; }
.b-row__label { display: block; overflow: hidden; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.b-row__sum { display: block; overflow: hidden; color: var(--a-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.b-row__tools { display: flex; opacity: 0; transition: opacity .15s; }
.b-row:hover .b-row__tools, .b-row:focus-within .b-row__tools, .b-row.is-active .b-row__tools { opacity: 1; }
@media (hover: none) { .b-row__tools { opacity: 1; } }
.b-row__tools .a-iconlink { min-width: 28px; height: 28px; }
.b-preview { position: relative; display: none; min-height: 0; overflow: hidden; padding: 16px; background: var(--a-subtle); }
@media (min-width: 1024px) { .b-preview { display: block; } }
.b-frame-box { position: absolute; top: 16px; left: 50%; overflow: hidden; border: 1px solid var(--a-border); border-radius: 8px; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .08); transform-origin: top center; }
.b-frame { width: 100%; height: 100%; border: 0; }
.b-panel { min-height: 0; overflow-y: auto; border-inline-start: 1px solid var(--a-border); background: var(--a-surface); }
.b-panel__head { position: sticky; top: 0; z-index: 2; padding: 16px 20px 0; border-bottom: 1px solid var(--a-border); background: var(--a-surface); }
.b-panel__body { padding: 20px; }
.b-tabs { display: flex; gap: 16px; margin-top: 12px; }
.b-tab { padding-bottom: 8px; border-bottom: 2px solid transparent; color: var(--a-muted); }
.b-tab.is-active { border-color: var(--a-primary); color: var(--a-text); font-weight: 500; }
.lib-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .lib-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lib-grid { grid-template-columns: repeat(3, 1fr); } }
.lib-item { padding: 12px; border: 1px solid var(--a-border); border-radius: 8px; text-align: start; transition: border-color .15s, background-color .15s; }
.lib-item:hover, .lib-item:focus-visible { border-color: var(--a-primary); background: var(--a-primary-soft); }
.lib-item__name { display: block; font-weight: 500; }
.lib-item__desc { display: block; margin-top: 2px; color: var(--a-muted); font-size: .75rem; }

/* SEO panel */
.seo-panel { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--a-border); border-radius: 8px; }
.seo-panel__title { font-weight: 600; }
.serp { padding: 12px; border-radius: 8px; background: var(--a-subtle); }
.serp__url { overflow: hidden; color: var(--a-muted); font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.serp__title { overflow: hidden; color: #1a0dab; font-size: 1.125rem; text-overflow: ellipsis; white-space: nowrap; }
html.dark .serp__title { color: #a5b4fc; }
.serp__desc { color: var(--a-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a-count { color: #94a3b8; font-size: .75rem; } .a-count--warn { color: var(--a-warn); }

/* Editors */
.a-ihead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; }
.a-editor-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .a-editor-grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.nav-editor > li + li { border-top: 1px solid var(--a-border); }
.nav-editor__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px; }
.nav-editor__row.is-child { padding-inline-start: 40px; background: color-mix(in srgb, var(--a-subtle) 60%, transparent); }
.nav-editor__label { width: 100%; } .nav-editor__url { width: 100%; }
@media (min-width: 768px) { .nav-editor__label { width: 11rem; } .nav-editor__url { width: 14rem; } }
.a-theme-grid { display: grid; gap: 24px; }
@media (min-width: 1280px) { .a-theme-grid { grid-template-columns: minmax(0, 1fr) 420px; } }
.theme-sample { border-radius: 0 0 12px 12px; }
.theme-sample__eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.theme-sample__title { margin-top: 8px; font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.theme-sample__muted { margin-top: 8px; }
.theme-sample__btn { display: inline-block; padding: 8px 16px; font-weight: 600; }
.theme-sample__btn--o { border: 1px solid; }
.theme-sample__card { margin-top: 16px; padding: 16px; border: 1px solid; }
.theme-sample__dark { margin-top: 16px; padding: 16px; color: #fff; }
.a-side-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .a-side-grid { grid-template-columns: 260px minmax(0, 1fr); } .a-side-grid--narrow { grid-template-columns: 240px minmax(0, 1fr); } }
.a-pick { padding: 8px; }
.a-pick__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 8px; text-align: start; }
.a-pick__btn:hover { background: var(--a-hover); }
.a-pick__btn.is-active { background: var(--a-primary-soft); color: var(--a-primary-text); font-weight: 500; }
.form-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; border: 1px solid var(--a-border); border-radius: 8px; }
@media (min-width: 640px) { .form-field-row { grid-template-columns: 1fr 1fr 120px auto; } .form-field-row .a-span2 { grid-column: span 2; } }
.a-leads-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .a-leads-grid { grid-template-columns: 380px minmax(0, 1fr); align-items: start; } }
.lead { display: block; width: 100%; padding: 12px 16px; text-align: start; }
.lead:hover { background: var(--a-hover); }
.lead.is-active { background: var(--a-primary-soft); }
.kv > div { display: grid; gap: 4px; padding-block: 10px; }
.kv > div + div { border-top: 1px solid var(--a-border); }
@media (min-width: 640px) { .kv > div { grid-template-columns: 160px 1fr; } }
.kv dt { color: var(--a-muted); font-weight: 500; text-transform: capitalize; }
.kv dd { white-space: pre-wrap; overflow-wrap: anywhere; }
.a-settings { display: grid; gap: 24px; }
.a-settings > * { min-width: 0; }
@media (min-width: 768px) { .a-settings--tabs { grid-template-columns: 200px minmax(0, 1fr); } }
.a-settings__nav { display: flex; gap: 4px; overflow-x: auto; align-self: start; }
.a-settings__nav:empty { display: none; }
@media (min-width: 768px) { .a-settings__nav { flex-direction: column; } }
.a-settings__tab { padding: 8px 12px; border-radius: 8px; color: var(--a-muted); text-align: start; white-space: nowrap; }
.a-settings__tab:hover { background: color-mix(in srgb, var(--a-surface) 60%, transparent); color: var(--a-text); }
.a-settings__tab.is-active { background: var(--a-surface); color: var(--a-text); font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / .05), inset 0 0 0 1px var(--a-border); }
.perm-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .perm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .perm-grid { grid-template-columns: repeat(3, 1fr); } }
.perm-group { margin: 0; padding: 12px; border: 1px solid var(--a-border); border-radius: 8px; }
.perm-group legend { padding-inline: 4px; color: var(--a-muted); font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.perm-item { display: flex; padding-block: 4px; }
.perm-group:disabled .perm-item { opacity: .8; cursor: default; }

/* Auth screens */
.a-auth { display: grid; min-height: 100dvh; place-items: center; padding: 16px; }
.a-auth__box { width: 100%; max-width: 24rem; }
.a-auth__head { margin-bottom: 32px; text-align: center; }
.a-auth__title { margin-top: 16px; font-size: 1.25rem; font-weight: 600; }
.a-auth__back { margin-top: 24px; text-align: center; }
.a-auth__back a { color: var(--a-muted); } .a-auth__back a:hover { color: var(--a-text); }

/* Print */
@media print {
  .site-header, .site-footer, .preview-banner, .cform, .cta-band__actions { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  body.site { background: #fff; color: #000; }
}
