/* MeoVideoAI master redesign · 2026-09-05                                   */
/* White SaaS system shared by public pages, Creator Workspace and Admin.     */
/* ========================================================================== */

:root {
  color-scheme: light;
  --night: #111827;
  --night-soft: #f7f8fa;
  --panel: #ffffff;
  --panel-strong: #f7f8fa;
  --panel-light: #ffffff;
  --text: #111827;
  --text-dark: #111827;
  --muted: #667085;
  --muted-dark: #667085;
  --line: #e8eaf0;
  --line-strong: #d9dce5;
  --blue: #5546f5;
  --blue-light: #6d61f7;
  --cyan: #5546f5;
  --violet: #7667ff;
  --amber: #f59e0b;
  --success: #12a579;
  --danger: #ef4444;
  --info: #2979ff;
  --primary: #5546f5;
  --primary-hover: #4436dc;
  --surface: #f7f8fa;
  --shadow-sm: 0 8px 24px rgba(17, 24, 39, .06);
  --shadow-lg: 0 28px 80px rgba(50, 43, 130, .14);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 16px;
  --display: Inter, "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --sans: Inter, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, monospace;
}

html { background: #fff; color-scheme: light; scroll-padding-top: 80px; }
body { min-width: 320px; color: var(--text); background: #fff; font: 400 15px/1.6 var(--sans); overflow-wrap: anywhere; }
body::before, body::after { display: none !important; }
::selection { color: #fff; background: rgba(85, 70, 245, .85); }
:focus-visible { outline: 3px solid rgba(85, 70, 245, .36); outline-offset: 3px; }
.skip-link { background: var(--text); color: #fff; }
.section-shell { width: min(1180px, calc(100% - 48px)); }
.icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; }
.sr-only, .visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
[hidden] { display: none !important; }

h1, h2, h3, strong { color: var(--text); }
p { color: var(--muted); }
.section-kicker, .card-label, .eyebrow { margin: 0 0 12px; color: var(--primary); font: 700 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .55fr); gap: 48px; align-items: end; margin-bottom: 32px; }
.section-heading h2 { margin: 0; color: var(--text); font: 700 clamp(34px, 4vw, 52px)/1.08 var(--display); letter-spacing: -.045em; }
.section-heading p { margin: 12px 0 0; color: var(--muted); }
.centered-heading { display: flex; justify-content: space-between; align-items: end; text-align: left; }
.section-link, .text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 650; }

.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid var(--primary); border-radius: 11px; background: var(--primary); color: #fff; font-weight: 650; letter-spacing: -.01em; box-shadow: 0 8px 18px rgba(85, 70, 245, .18); transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-1px); border-color: var(--primary-hover); background: var(--primary-hover); box-shadow: 0 12px 24px rgba(85, 70, 245, .22); }
.button-small { min-height: 40px; padding-inline: 15px; font-size: 13px; }
.button-large { min-height: 52px; padding-inline: 23px; }
.button-full { width: 100%; }
.button-secondary, .button-ghost { border-color: var(--line-strong); background: #fff; color: var(--text); box-shadow: none; }
.button-secondary:hover, .button-ghost:hover { border-color: rgba(85, 70, 245, .42); background: #f8f7ff; color: var(--primary); box-shadow: none; }
.button-danger { border-color: #ef4444; background: #ef4444; color: #fff; box-shadow: none; }
.button-danger:hover { border-color: #dc2626; background: #dc2626; }
.icon-button { position: relative; display: inline-grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }

input, select, textarea { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--text); color-scheme: light !important; }
select option, select optgroup { background: #fff !important; color: #111827 !important; color-scheme: light !important; }
input::placeholder, textarea::placeholder { color: #98a2b3; }
textarea { padding: 12px; }

/* Keep every Admin form control light while focused or expanded. The legacy
   stylesheet has a more-specific dark focus rule, so these states must be
   overridden explicitly instead of relying on the base select declaration. */
body.admin-page,
body.admin-page dialog { color-scheme: only light !important; }
body.admin-page input:focus,
body.admin-page select,
body.admin-page select:focus,
body.admin-page select:active,
body.admin-page textarea:focus {
  border-color: #8c82ff !important;
  background-color: #fff !important;
  color: #111827 !important;
  color-scheme: only light !important;
}
body.admin-page select option,
body.admin-page select optgroup,
body.admin-page select option:checked {
  background: #fff linear-gradient(#fff, #fff) !important;
  color: #111827 !important;
  color-scheme: only light !important;
}
@supports selector(select:open) {
  body.admin-page select:open {
    background-color: #fff !important;
    color: #111827 !important;
    color-scheme: only light !important;
  }
}
.admin-light-select { position: relative; width: 100%; min-width: 150px; color-scheme: only light; }
.admin-native-select { display: none !important; }
.admin-light-select-trigger {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
  text-align: left;
  white-space: nowrap;
}
.admin-light-select-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #111827;
  border-bottom: 2px solid #111827;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
.admin-light-select-trigger[aria-expanded="true"] { border-color: #8c82ff; background: #fff; color: #111827; box-shadow: 0 0 0 3px rgba(85, 70, 245, .18); }
.admin-light-select-trigger[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.admin-light-select-menu {
  position: absolute;
  z-index: 420;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  box-shadow: 0 16px 36px rgba(17, 24, 39, .14);
}
.admin-light-select-option {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font: inherit;
  text-align: left;
}
.admin-light-select-option[aria-selected="true"] { background: #f1efff; color: #4234cb; font-weight: 700; box-shadow: inset 3px 0 0 var(--primary); }
.admin-light-select-option:hover,
.admin-light-select-option:focus-visible { background: #f7f8fa; color: #111827; outline: none; }
.admin-light-select-option:disabled { color: #98a2b3; cursor: not-allowed; }
.date-range .admin-light-select { min-width: 128px; }
.date-range .admin-light-select-trigger { min-height: 40px; padding-left: 4px; border: 0; font-size: 11px; box-shadow: none; }
.dialog-card .admin-light-select { min-width: 0; }

/* Public navigation */
.site-header { position: sticky; z-index: 100; top: 0; min-height: 68px; padding: 0; border-bottom: 1px solid rgba(232, 234, 240, .92); background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); }
.header-inner { display: flex; width: min(1180px, calc(100% - 48px)); min-height: 68px; margin: auto; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.brand-logo { display: block; width: 32px; height: 32px; color: var(--primary); object-fit: contain; }
.brand > span { display: flex; align-items: baseline; gap: 5px; color: var(--text); font: 700 17px/1 var(--display); letter-spacing: -.035em; }
.brand small { color: var(--primary); font: 700 8px/1 var(--sans); letter-spacing: .1em; }
.desktop-nav { display: flex; align-items: center; gap: 24px; color: #475467; font-size: 13px; font-weight: 550; }
.desktop-nav a { position: relative; padding-block: 23px; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a.is-active { color: var(--primary); }
.desktop-nav a.is-active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; border-radius: 2px; background: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-login { color: #344054; font-size: 13px; font-weight: 600; }
.language-menu { position: relative; }
.language-menu summary { display: flex; min-height: 40px; align-items: center; gap: 5px; padding: 0 8px; border-radius: 9px; color: #475467; font-size: 12px; font-weight: 600; list-style: none; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary .icon { width: 15px; }
.language-menu .icon-chevron { width: 13px; }
.language-menu > div { position: absolute; top: calc(100% + 10px); right: 0; display: grid; min-width: 190px; gap: 3px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.language-menu small { color: var(--muted); }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.drawer-backdrop { position: fixed; z-index: 150; inset: 0; background: rgba(17, 24, 39, .36); backdrop-filter: blur(2px); }
.mobile-drawer { position: fixed; z-index: 160; top: 0; right: 0; bottom: 0; display: flex; width: min(360px, 90vw); flex-direction: column; padding: 18px; background: #fff; box-shadow: -24px 0 70px rgba(17, 24, 39, .18); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.drawer-nav { display: grid; padding: 16px 0; }
.drawer-nav a { min-height: 48px; padding: 12px 10px; border-radius: 9px; color: #344054; font-weight: 600; }
.drawer-nav a:hover { background: var(--surface); color: var(--primary); }
.drawer-account { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.drawer-language { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 12px; border-radius: 10px; background: var(--surface); }
.drawer-language > span:nth-child(2) { display: grid; flex: 1; }
.drawer-language small { color: var(--muted); }
.mobile-bottom-nav { display: none; }
body.drawer-open { overflow: hidden; }

/* Homepage */
.home-hero { display: grid; grid-template-areas: "copy visual" "kpis kpis"; grid-template-columns: minmax(0, .9fr) minmax(500px, 1.1fr); gap: 48px 54px; align-items: center; padding-block: 78px 42px; }
.home-hero-copy { grid-area: copy; }
.announcement { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 10px 6px 6px; border: 1px solid #e3e0ff; border-radius: 999px; background: #f8f7ff; color: #4f46a5; font-size: 11px; font-weight: 600; }
.announcement span { padding: 3px 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 9px; letter-spacing: .08em; }
.home-hero h1 { margin: 0; color: var(--text); font: 700 clamp(52px, 5.2vw, 72px)/.99 var(--display); letter-spacing: -.06em; }
.home-hero h1 span { background: linear-gradient(95deg, #5546f5, #7467ff); background-clip: text; -webkit-background-clip: text; color: transparent; }
.home-hero .hero-lede { max-width: 590px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 16px; margin: 22px 0 0; padding: 0; color: #667085; font-size: 12px; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 5px; }
.trust-list .icon { width: 14px; height: 14px; color: var(--success); }
.studio-visual { position: relative; grid-area: visual; min-width: 0; }
.studio-window { overflow: hidden; border: 1px solid #dfe2eb; border-radius: 16px; background: #fff; box-shadow: 0 30px 70px rgba(45, 36, 128, .17); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.studio-window-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 42px; padding: 0 13px; border-bottom: 1px solid var(--line); background: #fbfbfd; font-size: 10px; }
.studio-window-bar > strong { font-size: 10px; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #d0d5dd; }
.studio-ready { display: flex; justify-self: end; align-items: center; gap: 5px; color: #667085; }
.studio-ready i, .queue-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(18, 165, 121, .1); }
.studio-window-body { display: block; min-height: 0; }
.studio-mini-nav { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 8px; border-right: 1px solid var(--line); background: #fafbfc; }
.studio-mini-nav b { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; background: var(--primary); color: #fff; font-size: 9px; }
.studio-mini-nav i { width: 18px; height: 5px; border-radius: 4px; background: #d8dce5; }
.studio-mini-nav i.is-active { background: var(--primary); }
.studio-shot-wrap { overflow: hidden; background: #f5f6f9; }
.studio-shot-wrap img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: top center; }
.studio-control-row { display: grid; grid-template-columns: 1.25fr 1fr .7fr 1fr; border-top: 1px solid var(--line); }
.studio-control-row > span { display: grid; gap: 3px; padding: 11px 13px; border-right: 1px solid var(--line); }
.studio-control-row small { color: #98a2b3; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.studio-control-row strong { font-size: 10px; }
.studio-control-row .queue-status { display: flex; align-items: center; gap: 8px; border-right: 0; color: var(--success); }
.floating-note { position: absolute; z-index: 2; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .95); color: #475467; font-size: 11px; font-weight: 650; box-shadow: var(--shadow-sm); }
.note-start { top: 72px; left: -30px; }
.note-finish { right: -18px; bottom: 66px; color: var(--primary); }
.hero-kpis { grid-area: kpis; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(17, 24, 39, .04); }
.kpi-item { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 22px 24px; border-right: 1px solid var(--line); }
.kpi-item:last-child { border-right: 0; }
.kpi-item > strong { min-width: 48px; color: var(--primary); font: 700 30px/1 var(--display); letter-spacing: -.04em; }
.kpi-item > span { display: grid; min-width: 0; color: var(--text); font-size: 13px; font-weight: 650; }
.kpi-item small { overflow: hidden; margin-top: 2px; color: #98a2b3; font-size: 10px; font-weight: 450; text-overflow: ellipsis; white-space: nowrap; }
.home-section { padding-block: 94px; }
.model-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.model-card-new { display: flex; min-width: 0; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 22px rgba(17, 24, 39, .04); }
.model-card-new:hover { border-color: #d3cffc; box-shadow: 0 18px 40px rgba(49, 46, 129, .09); }
.model-card-head { display: flex; align-items: center; gap: 10px; }
.model-card-head > div:nth-child(2) { min-width: 0; flex: 1; }
.model-card-head p, .model-card-head small { margin: 0; color: #98a2b3; font-size: 10px; }
.model-card-head h3, .model-card-head h2 { margin: 1px 0 0; font-size: 17px; letter-spacing: -.025em; }
.model-provider-mark { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #f8f7ff; color: var(--primary); font-weight: 800; }
.status-badge { display: inline-flex; min-height: 24px; align-items: center; justify-content: center; padding: 3px 8px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 9px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.badge-hot, .status-error { background: #fff1f2; color: #e11d48; }
.badge-info, .status-info { background: #eff6ff; color: #2563eb; }
.badge-success, .status-success { background: #ecfdf3; color: #07855f; }
.status-warning { background: #fffaeb; color: #b54708; }
.status-neutral { background: #f2f4f7; color: #475467; }
.model-media { position: relative; overflow: hidden; margin: 18px 0 15px; border-radius: 11px; background: var(--surface); aspect-ratio: 16 / 9; }
.model-media img { width: 100%; height: 100%; object-fit: cover; }
.model-media > span { position: absolute; right: 8px; bottom: 8px; padding: 4px 7px; border-radius: 6px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 8px; }
.duration-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.duration-chips span { padding: 5px 9px; border-radius: 7px; background: #f3f1ff; color: var(--primary); font-size: 10px; font-weight: 650; }
.feature-checks { display: grid; gap: 9px; margin: 18px 0 22px; padding: 0; color: #475467; font-size: 12px; list-style: none; }
.feature-checks li { display: flex; align-items: flex-start; gap: 7px; }
.feature-checks .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--success); }
.model-card-new .button { margin-top: auto; }

/* Official API cost reference */
.api-cost-section { padding-block: 104px; border-block: 1px solid var(--line); background: linear-gradient(145deg, #fbfbff 0%, #f7f8fa 58%, #f4f3ff 100%); }
.api-cost-layout { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 72px; align-items: center; }
.api-cost-intro h2 { max-width: 560px; margin: 0; font: 700 clamp(40px, 4.4vw, 58px)/1.04 var(--display); letter-spacing: -.05em; }
.api-cost-intro > p:not(.section-kicker) { max-width: 520px; margin: 20px 0 0; }
.cost-trust-note { display: flex; max-width: 520px; align-items: flex-start; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid #dedbea; color: #667085; font-size: 11px; }
.cost-trust-note .icon { margin-top: 2px; color: var(--primary); }
.cost-trust-note span { display: grid; gap: 2px; }.cost-trust-note strong { font-size: 12px; }
.cost-calculator { min-width: 0; overflow: hidden; scroll-margin-top: 92px; border: 1px solid #d8d4ff; border-radius: 16px; background: #fff; box-shadow: 0 24px 60px rgba(60, 51, 142, .12); }
.cost-calculator-head { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #fcfcff; }
.cost-calculator-head > div { display: grid; }.cost-calculator-head span:not(.status-badge) { color: #98a2b3; font-size: 8px; font-weight: 750; letter-spacing: .1em; }.cost-calculator-head strong { font-size: 15px; }
.cost-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 22px; }
.cost-controls label { display: grid; min-width: 0; gap: 7px; color: #475467; font-size: 10px; font-weight: 650; }
.cost-controls input, .cost-controls select { width: 100%; min-width: 0; padding: 0 12px; border-color: #d7dce6 !important; background: #fff !important; color: var(--text) !important; font-size: 12px; }
.cost-controls input:focus, .cost-controls select:focus { border-color: #8c82ff !important; outline: 3px solid rgba(85, 70, 245, .18); }
.cost-rate-input { position: relative; }
.cost-rate-input input { padding-right: 84px; }
.cost-rate-input span { position: absolute; top: 50%; right: 12px; color: #98a2b3; font-size: 9px; font-weight: 650; transform: translateY(-50%); pointer-events: none; }
.cost-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 0 22px 20px; }
.cost-presets > span { margin-right: 3px; color: #98a2b3; font-size: 9px; font-weight: 650; }
.cost-presets button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #667085; font-size: 10px; }
.cost-presets button:hover, .cost-presets button.is-active { border-color: #cbc5ff; background: #f5f3ff; color: var(--primary); }
.cost-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.cost-results > div { display: grid; min-height: 92px; align-content: center; gap: 6px; padding: 16px; background: #fff; }
.cost-results span { color: #98a2b3; font-size: 9px; font-weight: 650; }.cost-results strong { font: 700 23px/1.1 var(--display); letter-spacing: -.035em; }
.cost-results small { color: #667085; font-size: 9px; }
.cost-results .cost-difference { background: var(--primary); }.cost-results .cost-difference span, .cost-results .cost-difference strong { color: #fff; }
.cost-example { margin: 16px 22px 0; color: #344054; font-size: 11px; font-weight: 600; }
.cost-source { display: flex; align-items: flex-start; gap: 9px; margin: 14px 22px 0; padding: 13px; border-radius: 10px; background: #f7f8fa; color: #667085; font-size: 10px; }
.cost-source .icon { margin-top: 2px; color: var(--info); }.cost-source > div { display: grid; gap: 3px; }.cost-source a { color: var(--primary); font-weight: 650; }.cost-source small { color: #98a2b3; }
.cost-disclaimer { margin: 14px 22px; color: #7a8497; font-size: 9px; line-height: 1.6; }
.cost-disclaimer strong { color: #475467; }
.cost-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 22px 22px; padding: 14px; border: 1px solid #d8d4ff; border-radius: 11px; background: #f8f7ff; }
.cost-cta > div { display: grid; gap: 2px; }.cost-cta strong { font-size: 11px; }.cost-cta span { color: #667085; font-size: 9px; }.cost-cta .button { min-height: 40px; flex: 0 0 auto; padding-inline: 14px; font-size: 10px; }

.workflow-section { padding-block: 92px; background: var(--surface); }
.workflow-comparison { display: grid; grid-template-columns: .85fr 1.15fr; gap: 18px; }
.workflow-comparison > article { padding: 28px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.manual-workflow { opacity: .86; }
.studio-workflow { border-color: #d9d5ff !important; box-shadow: 0 12px 34px rgba(85, 70, 245, .08); }
.workflow-card-title { display: flex; align-items: center; gap: 12px; }
.workflow-card-title small { color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.workflow-card-title h3 { margin: 2px 0 0; font-size: 18px; }
.status-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.manual-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; counter-reset: manual; list-style: none; }
.manual-steps li { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: #667085; font-size: 11px; }
.manual-steps li:not(:last-child)::after { content: "→"; margin-left: 9px; color: #c2c6cf; }
.auto-flow { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 24px; }
.auto-flow > span { display: grid; min-width: 76px; min-height: 72px; place-items: center; align-content: center; gap: 4px; padding: 8px; border-radius: 10px; background: #f8f7ff; color: var(--primary); text-align: center; }
.auto-flow > span > .icon { width: 22px; height: 22px; }
.auto-flow strong { color: var(--primary); font-size: 22px; line-height: 1; }
.auto-flow small { color: #5f5a8d; font-size: 10px; }
.flow-arrow { width: 14px; color: #c3bffa; }
.workflow-illustration, .clone-illustration, .lifecycle-illustration { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.workflow-illustration img, .clone-illustration img, .lifecycle-illustration img { display: block; width: 100%; height: auto; }
.product-shot-frame > a { display: block; overflow: hidden; background: #eef4fb; }
.product-shot-frame > a:focus-visible { outline: 3px solid rgba(85, 70, 245, .32); outline-offset: -3px; }
.product-shot-frame img { display: block; width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: top center; }
.product-shot-frame figcaption { padding: 11px 16px; border-top: 1px solid var(--line); background: #fff; color: #667085; font-size: 9px; text-align: center; }
.workflow-proof-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.workflow-proof-strip article { display: flex; min-width: 0; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.workflow-proof-strip article > div { display: grid; min-width: 0; gap: 2px; }.workflow-proof-strip small { color: #98a2b3; font-size: 8px; font-weight: 750; letter-spacing: .08em; }.workflow-proof-strip strong { font-size: 11px; }
.clone-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 76px; align-items: center; padding-block: 104px; }
.clone-copy h2 { margin: 0; font: 700 clamp(38px, 4.4vw, 58px)/1.02 var(--display); letter-spacing: -.05em; }
.clone-copy > p:not(.section-kicker) { margin: 18px 0 0; }
.feature-checks.compact { grid-template-columns: 1fr 1fr; }
.content-rail { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; gap: 8px; align-items: center; }
.rail-step { display: grid; min-width: 88px; gap: 8px; justify-items: center; color: #344054; font-size: 10px; text-align: center; }
.rail-step span { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #ddd9ff; border-radius: 14px; background: #f8f7ff; color: var(--primary); }
.rail-step .icon { width: 22px; height: 22px; }
.rail-line { height: 1px; min-width: 14px; background: repeating-linear-gradient(90deg, #c9c4fb 0 5px, transparent 5px 9px); }
.clone-illustration { box-shadow: 0 18px 50px rgba(60, 51, 142, .09); }
.clone-illustration figcaption { padding: 12px 16px; }
.sample-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: start; }
.sample-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.sample-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.sample-card-landscape { grid-column: span 2; }
.sample-media { position: relative; overflow: hidden; background: #111827; }
.sample-media-landscape { aspect-ratio: 16 / 9; }
.sample-media-portrait { aspect-ratio: 9 / 16; }
.sample-media video { width: 100%; height: 100%; object-fit: contain; background: #111827; }
.duration-badge { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(17, 24, 39, .78); color: #fff; font-size: 9px; }
.sample-meta { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px; }
.sample-meta h3, .sample-meta h2 { margin: 0; font-size: 14px; }
.sample-meta p { margin: 2px 0 0; font-size: 10px; }
.sample-meta > span { padding: 4px 7px; border-radius: 6px; background: var(--surface); color: #667085; font-size: 9px; }
.inline-conversion-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 18px 20px; border: 1px solid #d8d4ff; border-radius: 14px; background: linear-gradient(100deg, #f8f7ff, #fff); }
.inline-conversion-cta > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; }.inline-conversion-cta strong { font-size: 15px; }.inline-conversion-cta small { grid-column: 2; color: #667085; }
.pricing-home { padding-block: 94px; background: var(--surface); }
.offer-countdown { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; align-items: center; max-width: 720px; margin: -8px auto 34px; padding: 14px 18px; border: 1px solid #ded9ff; border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); }
.offer-countdown span { color: #344054; font-size: 11px; font-weight: 700; }.offer-countdown strong { grid-row: span 2; color: var(--primary); font: 700 28px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }.offer-countdown small { color: #667085; font-size: 10px; }.offer-countdown[data-offer-phase="reserved"] { border-color: #b7e6d7; background: #f5fdf9; }.offer-countdown[data-offer-phase="reserved"] strong { color: #067a58; }.offer-countdown.is-final { border-color: #fed7aa; background: #fffaf3; }.offer-countdown.is-final strong { color: #b54708; }.offer-countdown.is-expired { border-color: #d0d5dd; background: #f8fafc; }.offer-countdown.is-expired strong { color: #475467; font: 750 15px/1.1 var(--sans); letter-spacing: .04em; }
.offer-countdown-page { margin-top: 0; }
.pricing-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.pricing-card h2, .pricing-card h3 { margin: 1px 0 0; font-size: 18px; }
.plan-label { margin: 0; color: #98a2b3; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.pricing-card .price, .admin-plan-grid .price { margin: 30px 0 0; color: var(--text); font: 700 54px/1 var(--display); letter-spacing: -.055em; }
.pricing-card .price-vnd { color: var(--primary); font-size: clamp(46px, 5vw, 58px); }
.pricing-card .price sup, .admin-plan-grid .price sup { color: var(--primary); font-size: 19px; vertical-align: top; }
.pricing-card > strong { margin-top: 7px; color: #667085; font-size: 12px; }
.reference-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 9px; margin-top: 26px; color: #98a2b3; }
.reference-price span { font-size: 9px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.reference-price del { color: #667085; font-size: 16px; font-weight: 700; text-decoration-color: var(--error); text-decoration-thickness: 2px; }
.reference-price + .price { margin-top: 8px; }
.pricing-card .saving { display: inline-flex; align-self: flex-start; padding: 5px 8px; border-radius: 7px; background: #ecfdf3; color: #067a58; font-weight: 750; }
.pricing-card .feature-checks { flex: 1; }
.pricing-best { border: 2px solid var(--primary); box-shadow: 0 18px 44px rgba(85, 70, 245, .12); }
.best-badge { position: absolute; top: -12px; right: 18px; padding: 5px 10px; border-radius: 999px; background: var(--success); color: #fff; font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.pricing-best .saving { color: var(--success); }
.provider-credit-note { display: flex; max-width: 780px; align-items: flex-start; justify-content: center; gap: 9px; margin: 24px auto 0; color: #667085; font-size: 12px; text-align: center; }
.provider-credit-note .icon { color: var(--info); }
.reference-price-row { background: #fff8f8; color: #667085; }
.reference-price-row del { text-decoration-color: var(--error); text-decoration-thickness: 2px; }
.faq-section { padding-block: 92px; }
.faq-list { display: grid; max-width: 900px; margin: auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; color: var(--text); font-weight: 650; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .icon { transition: transform .18s ease; }
.faq-list details[open] summary .icon { transform: rotate(180deg); }
.faq-list details p { margin: -4px 42px 22px 0; }
.final-cta-simple { display: flex; min-height: 280px; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 72px; padding: 48px; border: 1px solid #dad6ff; border-radius: 16px; background: linear-gradient(100deg, #faf9ff, #fff); }
.final-cta-simple h2 { max-width: 640px; margin: 0; font: 700 clamp(32px, 4vw, 48px)/1.08 var(--display); letter-spacing: -.04em; }
.final-cta-simple p:not(.section-kicker) { margin: 12px 0 0; }
.cta-row { display: flex; flex: 0 0 auto; gap: 10px; }

/* Catalog and guide pages */
.subpage-hero { padding-block: 64px 36px; }
.subpage-hero h1 { margin: 12px 0 0; font: 700 clamp(42px, 5vw, 62px)/1 var(--display); letter-spacing: -.055em; }
.subpage-hero > p:last-child { max-width: 680px; margin: 14px 0 0; font-size: 16px; }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: #98a2b3; font-size: 11px; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs .icon { width: 12px; height: 12px; }
.models-catalog, .sample-library { padding-bottom: 96px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip, .chart-tabs button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #667085; font-size: 11px; font-weight: 600; }
.filter-chip.is-active, .filter-chip:hover, .chart-tabs button.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.model-list { display: grid; gap: 16px; margin-top: 24px; }
.model-row { display: grid; grid-template-columns: 1.05fr .75fr .8fr .75fr; gap: 24px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.model-row-main { display: flex; align-items: flex-start; gap: 13px; }
.model-name-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.model-name-line h2 { margin: 0; font-size: 20px; }
.model-row-main p { margin: 6px 0 12px; font-size: 12px; }
.model-row-media { overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; }
.model-row-media img { width: 100%; height: 100%; object-fit: cover; }
.model-row > .feature-checks { margin: 0; }
.model-row-fit { display: grid; gap: 8px; }
.model-row-fit > small { color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.model-row-fit > span { display: flex; align-items: center; gap: 6px; color: #475467; font-size: 11px; }
.model-row-fit > span .icon { width: 14px; color: var(--success); }
.model-row-fit .button { margin-top: 7px; }
.catalog-note { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 18px; border: 1px solid #dbe4ff; border-radius: 12px; background: #f8faff; }
.catalog-note > .icon { width: 22px; height: 22px; color: var(--info); }
.catalog-note > div { flex: 1; }
.catalog-note strong { font-size: 13px; }
.catalog-note p { margin: 3px 0 0; font-size: 11px; }
.model-detail { padding-block: 36px 96px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 7px; color: #667085; font-size: 12px; font-weight: 600; }
.model-detail-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; margin-top: 28px; }
.model-detail-title { display: flex; align-items: center; gap: 13px; }
.model-detail-title p { margin: 0; font-size: 11px; }
.model-detail-title h1 { margin: 0; font: 700 42px/1.05 var(--display); letter-spacing: -.045em; }
.model-detail-copy > .status-badge { margin-top: 18px; }
.model-detail-copy > h2 { margin: 22px 0 0; font: 700 28px/1.18 var(--display); letter-spacing: -.035em; }
.model-detail-copy > p { margin: 12px 0 24px; }
.field-label { display: block; margin-bottom: 8px; color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.duration-chips.large span { padding: 7px 11px; font-size: 11px; }
.field-note { margin: 8px 0 0; font-size: 11px; }
.feature-list-large { margin-block: 24px; font-size: 13px; }
.model-detail-media { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.model-detail-media video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #e9ebf0; }
.model-detail-media > div { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.model-detail-media p { margin: 0; font-size: 11px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.search-control { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.search-control .icon { color: #98a2b3; }
.search-control input { min-width: 210px; padding: 0; border: 0; outline: 0; }
.sample-library-grid .sample-card[hidden] { display: none; }

/* Owner-supplied showcase: complete frames, separate portrait/landscape shelves. */
.model-demo video { display: block; width: 100%; height: 100%; object-fit: contain; background: #f1f3f7; }
.model-demo-detail { align-self: start; }
.model-demo-detail video { display: block; height: auto; max-height: 70vh; max-height: 70dvh; aspect-ratio: auto; object-fit: contain; background: #f1f3f7; }
.sample-library-controls { min-width: 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.sample-library-controls .sample-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sample-filters .filter-chip { min-height: 44px; font-size: 13px; }
.sample-filter-count { margin-left: 4px; opacity: .8; font-size: 11px; }
.sample-refinements { display: grid; grid-template-columns: minmax(200px, 1.5fr) 1fr 1fr auto; align-items: end; gap: 12px; }
.sample-refinements .search-control { min-width: 0; }
.sample-refinements input, .sample-refinements input:focus, .sample-refinements input:hover { min-width: 0; width: 100%; background: #fff !important; color: #111827 !important; color-scheme: light; }
.sample-refinements input::placeholder { color: #667085; opacity: 1; }
.sample-select { display: grid; gap: 6px; min-width: 0; color: #344054; font-size: 12px; }
.sample-select select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #d5d9e5; border-radius: 10px; padding: 0 12px; color-scheme: light; background: #fff !important; color: #111827 !important; }
.sample-select select option { background: #fff; color: #111827; }
.sample-result-count { margin: 20px 0 28px; font-size: 13px; color: #475467; }
.sample-group-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sample-group-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.sample-group-heading h2 span { color: #667085; font-size: 16px; font-weight: 500; }
.sample-group-heading p { margin: 0; font-size: 13px; }
.sample-orientation-group + .sample-orientation-group { margin-top: 48px; }
.sample-orientation-group[hidden], #sampleLibrary .sample-card[hidden] { display: none !important; }
.sample-library-grid.sample-grid-landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sample-library-grid .sample-card { grid-column: auto; }
.sample-library-grid .sample-meta { display: grid; align-content: start; gap: 8px; min-height: 118px; }
.sample-library-grid .sample-meta > span { justify-self: start; font-size: 11px; }
.sample-library-grid .sample-meta p { font-size: 11px; }
.sample-new-label { position: absolute; top: 10px; left: 10px; padding: 4px 8px; border-radius: 6px; background: #fff; color: #5546f5; font-size: 10px; font-weight: 700; pointer-events: none; }
.sample-library-link { display: flex; width: fit-content; margin: 24px auto; }
@media (max-width: 1000px) {
  .sample-refinements { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .sample-library-controls .sample-filters { flex-wrap: nowrap; overflow-x: auto; padding: 3px 3px 8px; }
  .sample-refinements { grid-template-columns: 1fr 1fr; }
  .sample-refinements .search-control, .sample-refinements > button { grid-column: 1 / -1; }
  .sample-refinements input, .sample-select select { font-size: 16px; }
  .sample-group-heading { display: grid; gap: 6px; }
  .sample-library-grid.sample-grid-landscape { grid-template-columns: 1fr; }
  .sample-home-selection .sample-card { grid-column: 1; }
  .sample-media-portrait { max-height: 70vh; max-height: 70dvh; background: #f1f3f7; }
  .sample-media-portrait video { background: #f1f3f7; }
}
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 48px 24px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); text-align: center; }
.empty-state > .icon { width: 28px; height: 28px; color: #98a2b3; }
.empty-state h2, .empty-state strong { margin: 0; font-size: 16px; }
.empty-state p { margin: 0; }
.billing-toggle { display: inline-flex; gap: 3px; margin-top: 22px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.billing-toggle span { padding: 7px 12px; border-radius: 7px; color: #667085; font-size: 10px; font-weight: 650; }
.billing-toggle .is-active { background: var(--primary); color: #fff; }
.pricing-page-cards { padding-block: 20px 72px; }
.comparison-section-light { padding-block: 78px; border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.plan-table { width: 100%; min-width: 700px; border-collapse: collapse; background: #fff; }
.plan-table th, .plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: #475467 !important; font-size: 12px; text-align: center; }
.plan-table th:first-child { text-align: left; }
.plan-table thead th { background: var(--surface); color: var(--text); font-weight: 650; }
.plan-table tbody th { color: var(--text) !important; }
.guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-block: 56px 96px; }
.guide-layout > *, .guide-content { min-width: 0; }
.guide-sidebar { position: sticky; top: 94px; align-self: start; }
.guide-sidebar nav { display: grid; gap: 3px; }
.guide-sidebar a { min-height: 38px; padding: 8px 10px; border-left: 2px solid transparent; color: #667085; font-size: 12px; }
.guide-sidebar a.is-active, .guide-sidebar a:hover { border-color: var(--primary); background: #f8f7ff; color: var(--primary); }
.guide-content > section:first-child h1 { margin: 0; font: 700 50px/1.05 var(--display); letter-spacing: -.05em; }
.guide-content > section:first-child > p:not(.section-kicker) { margin: 12px 0 24px; }
.guide-video { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.guide-video img { display: block; width: 100%; height: auto; object-fit: contain; object-position: top center; }
.guide-video > span { position: absolute; top: 50%; left: 50%; display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: rgba(85, 70, 245, .92); color: #fff; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(85, 70, 245, .3); }
.guide-steps { display: grid; gap: 0; margin: 36px 0 0; padding: 0; list-style: none; }
.guide-steps > li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.guide-steps > li > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #f0eeff; color: var(--primary); font-weight: 700; }
.guide-steps h2 { margin: 2px 0 6px; font-size: 20px; }
.guide-steps p { margin: 0; }
.guide-steps ul { color: #667085; }
.guide-steps .button { margin-top: 12px; }
.guide-feature-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.guide-feature-links article { padding: 22px; border: 1px solid var(--line); border-radius: 13px; }
.guide-feature-links article > .icon { color: var(--primary); }
.guide-feature-links h2 { margin: 14px 0 5px; font-size: 19px; }
.guide-feature-links p { margin: 0 0 14px; }
.guide-feature-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 650; }
.guide-content { display: grid; gap: 0; }
.guide-hero { scroll-margin-top: 90px; }
.guide-video { margin: 28px 0 0; }
.guide-video figcaption { padding: 10px 14px; border-top: 1px solid var(--line); color: #667085; background: #fff; font-size: 10px; }
.guide-youtube { scroll-margin-top: 96px; margin-top: 28px; overflow: hidden; border: 1px solid #2d2e4d; border-radius: 16px; background: #111225; box-shadow: 0 22px 50px rgba(27, 29, 61, .18); color: #fff; }
.guide-youtube-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; padding: 22px 24px; background: radial-gradient(circle at 82% 0, rgba(102, 88, 255, .32), transparent 40%), linear-gradient(120deg, #191a35, #111225); }
.guide-youtube-heading .section-kicker { margin-bottom: 7px; color: #aaa2ff; }
.guide-youtube-heading h2 { margin: 0; color: #fff; font: 700 clamp(23px, 3.2vw, 36px)/1.08 var(--display); letter-spacing: -.035em; }
.guide-youtube-heading p:last-child { max-width: 620px; margin: 9px 0 0; color: #c3c6d8; font-size: 11px; }
.guide-youtube-heading > a { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 9px; color: #fff; font-size: 10px; font-weight: 700; }
.guide-youtube-heading > a:hover { border-color: #aaa2ff; background: rgba(255, 255, 255, .08); }
.guide-youtube-frame { aspect-ratio: 16 / 9; background: #090a14; }
.guide-youtube-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.guide-youtube-note { margin: 0; padding: 11px 24px 13px; color: #aeb2c7; font-size: 9px; }
.guide-product-shot { margin: 18px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-product-shot img { display: block; width: 100%; height: auto; }
.guide-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.guide-paths a { display: grid; min-height: 132px; align-content: start; gap: 7px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.guide-paths a:hover { transform: translateY(-2px); border-color: #bcb5ff; box-shadow: var(--shadow-sm); }
.guide-paths strong { font-size: 13px; }.guide-paths span { color: #667085; font-size: 11px; line-height: 1.55; }
.guide-section { scroll-margin-top: 90px; padding: 54px 0 8px; border-top: 1px solid var(--line); }
.guide-section-heading { max-width: 760px; margin-bottom: 24px; }
.guide-section-heading h2 { margin: 0; font: 700 clamp(28px, 3.5vw, 40px)/1.1 var(--display); letter-spacing: -.04em; }
.guide-section-heading > p:last-child { margin: 10px 0 0; }
.guide-provider-map, .guide-workflows, .guide-cost-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide-provider-map article, .guide-workflows article, .guide-cost-grid article { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.guide-provider-number, .guide-cost-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; background: #f0eeff; color: #4234cb; font: 750 11px var(--mono); }
.guide-provider-map h3, .guide-workflows h3, .guide-cost-grid h3 { margin: 14px 0 7px; font-size: 16px; line-height: 1.3; }
.guide-provider-map p, .guide-workflows p, .guide-cost-grid p { margin: 0; font-size: 11px; }
.guide-provider-map ol, .guide-workflows ol, .guide-workflows ul { margin: 14px 0; padding-left: 18px; color: #475467; font-size: 11px; }
.guide-provider-map li + li, .guide-workflows li + li { margin-top: 7px; }
.guide-inline-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.guide-inline-links a { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 10px; border: 1px solid #d8d4ff; border-radius: 8px; background: #f8f7ff; color: #4234cb; font-size: 10px; font-weight: 650; }
.guide-inline-links a:hover { border-color: var(--primary); background: #f1efff; }
.guide-disclosure, .guide-faq details { margin-top: 12px; overflow: clip; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.guide-disclosure summary, .guide-faq summary, .entity-details summary { position: relative; display: grid; min-height: 52px; align-content: center; gap: 2px; padding: 12px 46px 12px 16px; list-style: none; color: var(--text); font-weight: 700; }
.guide-disclosure summary::-webkit-details-marker, .guide-faq summary::-webkit-details-marker, .entity-details summary::-webkit-details-marker { display: none; }
.guide-disclosure summary::after, .guide-faq summary::after, .entity-details summary::after { content: "+"; position: absolute; top: 50%; right: 16px; color: var(--primary); font: 500 24px/1 var(--display); transform: translateY(-50%); }
.guide-disclosure[open] summary::after, .guide-faq details[open] summary::after, .entity-details[open] summary::after { content: "−"; }
.guide-disclosure summary small { color: #667085; font-size: 9px; font-weight: 500; }
.guide-disclosure > div { padding: 2px 18px 18px; border-top: 1px solid var(--line); }
.guide-disclosure > div > p, .guide-disclosure > div > ul { font-size: 11px; }
.guide-disclosure > div > ul { padding-left: 18px; color: #475467; }
.guide-legal-note { padding: 11px 12px; border-left: 3px solid #f59e0b; background: #fffaf3; color: #7a2e0e !important; }
.guide-workflows-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.guide-checklist { display: grid; gap: 8px; margin: 0; padding: 0; counter-reset: guide-check; list-style: none; }
.guide-checklist li { position: relative; min-height: 44px; padding: 11px 14px 11px 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; font-size: 11px; }
.guide-checklist li::before { content: "✓"; position: absolute; top: 11px; left: 14px; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #eafaf5; color: #067a58; font-size: 10px; font-weight: 800; }
.guide-callout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; margin-top: 16px; padding: 16px; border: 1px solid #d8d4ff; border-radius: 11px; background: #f8f7ff; }
.guide-callout strong { color: #4234cb; }.guide-callout span { color: #475467; font-size: 11px; }
.guide-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.guide-status-grid > span { display: grid; gap: 4px; min-height: 90px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: #667085; font-size: 10px; }
.guide-status-grid strong { font: 700 10px var(--mono); text-transform: uppercase; }
.guide-cost-grid dl { display: grid; gap: 0; margin: 15px 0 0; }
.guide-cost-grid dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10px; }
.guide-cost-grid dt { color: #667085; }.guide-cost-grid dd { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.guide-cost-grid .button { margin-top: 18px; }
.guide-budget-example { margin-top: 14px; padding: 18px; border: 1px solid #b7e6d7; border-radius: 12px; background: #f5fdf9; }
.guide-budget-example > strong { color: #067a58; }.guide-budget-example ol { margin: 10px 0; padding-left: 20px; color: #344054; font-size: 11px; }.guide-budget-example p { margin: 0; font-size: 10px; }
.guide-security-list li::before { content: "✓"; }
.guide-faq { display: grid; gap: 8px; }.guide-faq details { margin: 0; }.guide-faq details > p { margin: 0; padding: 0 18px 18px; color: #475467; font-size: 11px; }

/* Shared application shell */
.app-page { background: var(--surface); }
.app-page main#main { min-height: 100vh; }
.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.app-sidebar { position: sticky; z-index: 40; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 22px 14px 14px; border-right: 1px solid var(--line); background: #fff; }
.app-sidebar > .brand { padding: 0 8px 22px; }
.app-sidebar nav { display: grid; gap: 3px; overflow-y: auto; }
.app-sidebar nav > p { margin: 12px 10px 7px; color: #98a2b3; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.app-sidebar nav button, .app-sidebar nav a { position: relative; display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-radius: 9px; background: transparent; color: #667085; font-size: 12px; font-weight: 560; text-align: left; }
.app-sidebar nav button:hover, .app-sidebar nav a:hover, .app-sidebar nav .is-active { background: #f3f1ff; color: var(--primary); }
.app-sidebar nav .icon { width: 17px; height: 17px; }
.nav-count { margin-left: auto; padding: 1px 6px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 9px; }
.sidebar-profile { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); }
.sidebar-profile > div { display: grid; min-width: 0; flex: 1; }
.sidebar-profile strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile small { overflow: hidden; color: #98a2b3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-profile .icon-button { width: 34px; height: 34px; }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #ece9ff; color: var(--primary); font-size: 11px; font-weight: 700; }
.app-main { min-width: 0; }
.app-topbar { position: sticky; z-index: 30; top: 0; display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.app-topbar > div:nth-child(2) { display: grid; }
.app-topbar > div:nth-child(2) strong { font-size: 13px; }
.app-topbar > div:nth-child(2) small { color: #98a2b3; font-size: 9px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.app-menu-toggle { display: none; }
.app-content { width: min(1280px, calc(100% - 56px)); margin: auto; padding-block: 32px 64px; }
.workspace-welcome, .admin-page-title, .panel-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-welcome h1, .admin-page-title h1, .panel-title h1 { margin: 0; font: 700 clamp(28px, 3vw, 38px)/1.1 var(--display); letter-spacing: -.04em; }
.workspace-welcome h1 span { color: var(--primary); }
.workspace-welcome p:not(.section-kicker), .admin-page-title p:not(.section-kicker), .panel-title p { margin: 7px 0 0; }
.workspace-actions { display: flex; gap: 9px; }
.workspace-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.workspace-metrics article, .admin-kpi-grid article, .content-inventory article { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.metric-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.tone-violet { background: #f0eeff; color: var(--primary); }
.tone-blue { background: #eef6ff; color: var(--info); }
.tone-amber { background: #fff7e8; color: var(--amber); }
.tone-success { background: #eafaf5; color: var(--success); }
.workspace-metrics article > div, .admin-kpi-grid article > div, .content-inventory article > div { display: grid; min-width: 0; }
.workspace-metrics small, .admin-kpi-grid small, .content-inventory small { color: #98a2b3; font-size: 10px; }
.workspace-metrics strong, .admin-kpi-grid strong, .content-inventory strong { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.portal-overview-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.onboarding-card, .subscription-summary, .download-card, .requirements-card, .subpanel, .recent-customer-card { padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.account-security-panel { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-security-panel > div { min-width: 0; }
.account-security-panel h2 { margin-bottom: 6px; }
.account-security-panel p { margin: 0; }
.account-security-panel .button { flex: 0 0 auto; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading h2, .card-heading h3 { margin: 0; font-size: 18px; }
.onboarding-list { display: grid; gap: 0; margin: 22px 0; padding: 0; list-style: none; }
.onboarding-list li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; }
.onboarding-list li:not(:last-child)::after { content: ""; position: absolute; top: 47px; bottom: -13px; left: 18px; width: 1px; background: var(--line); }
.onboarding-list li > span { display: grid; z-index: 1; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #98a2b3; }
.onboarding-list li.is-current > span { border-color: #cec9ff; background: #f0eeff; color: var(--primary); }
.onboarding-list li.is-complete > span { border-color: var(--success); background: var(--success); color: #fff; }
.onboarding-list li > div { display: grid; }
.onboarding-list small { color: #98a2b3; font-size: 10px; }
.subscription-progress { margin-top: 24px; }
.subscription-progress > div { display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
progress { width: 100%; height: 7px; margin-top: 9px; overflow: hidden; border: 0; border-radius: 999px; background: #eaecf0; }
progress::-webkit-progress-bar { background: #eaecf0; }
progress::-webkit-progress-value { background: var(--primary); }
progress::-moz-progress-bar { background: var(--primary); }
.subscription-summary dl, .admin-plan-grid dl, .admin-model-grid dl { display: grid; gap: 0; margin: 20px 0; }
.subscription-summary dl > div, .admin-plan-grid dl > div, .admin-model-grid dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.subscription-summary dt, .admin-plan-grid dt, .admin-model-grid dt { color: #98a2b3; }
.subscription-summary dd, .admin-plan-grid dd, .admin-model-grid dd { margin: 0; color: var(--text); font-weight: 650; text-align: right; }
.text-error { color: var(--danger) !important; }
.license-list, .table-list, .device-card-list, .admin-list { display: grid; gap: 12px; }
.license-card, .data-row, .device-card, .admin-row { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.license-top, .row-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.license-top .card-label { margin-bottom: 4px; }
.license-card { position: relative; overflow: visible; }
.license-trial { overflow: visible; border-color: #cfcaff; }
.license-trial::before { display: none; content: none; }
.trial-access, .license-key { margin-top: 14px; padding: 13px; border-radius: 9px; background: var(--surface); }
.trial-access { display: grid; gap: 3px; border: 1px solid #d8d4ff; background: #f8f7ff; }
.trial-access strong { color: #4234cb; font: 700 16px/1.3 var(--display); }
.trial-access span { color: #475467; font-size: 11px; }
.license-key { display: flex; justify-content: space-between; gap: 12px; }
.license-key code { overflow: hidden; color: var(--primary); text-overflow: ellipsis; }
.copy-button { border: 0; background: none; color: var(--primary); font-weight: 650; }
.license-meta, .row-meta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; color: #98a2b3; font-size: 10px; }
.device-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.device-row p { margin: 2px 0 0; font-size: 10px; }
.status-pill { max-width: 180px; flex: 0 0 auto; justify-content: center; border: 1px solid #e4e7ec; background: #f2f4f7; color: #475467; line-height: 1.25; text-align: center; white-space: normal; }
.status-pill.active, .status-pill.approved, .status-pill.fulfilled { border-color: #b7e6d7; background: #ecfdf3; color: #067a58; }
.status-pill.pending, .status-pill.awaiting_payment { border-color: #fed7aa; background: #fff7ed; color: #92400e; }
.status-pill.revoked, .status-pill.rejected, .status-pill.blocked, .status-pill.account_blocked, .status-pill.expired, .status-pill.suspended { border-color: #fecaca; background: #fff1f2; color: #b42318; }
.device-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.device-card-head { display: flex; justify-content: space-between; gap: 12px; }
.device-card dl { display: grid; gap: 8px; }
.device-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; }
.device-card dt { color: #98a2b3; }
.device-card dd { margin: 0; font-weight: 600; }
.subpanel { margin-top: 18px; }
.download-card { display: flex; align-items: center; gap: 18px; }
.download-card > div { flex: 1; }
.download-card h2 { margin: 0; }
.download-card p { margin: 5px 0; }
.download-card small { color: #98a2b3; }
.download-app-icon { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #f0eeff; color: var(--primary); }
.download-app-icon .icon { width: 26px; height: 26px; }
.requirements-card { margin-top: 18px; }
.skeleton-card { min-height: 140px; border-radius: 12px; background: linear-gradient(100deg, #f2f4f7 30%, #fafafa 45%, #f2f4f7 60%); background-size: 220% 100%; animation: skeleton 1.4s ease infinite; }
@keyframes skeleton { to { background-position-x: -220%; } }

/* Admin */
.admin-app-shell { grid-template-columns: 218px minmax(0, 1fr); }
.admin-app-sidebar { padding-inline: 10px; }
.admin-app-sidebar nav button { min-height: 38px; }
.admin-topbar { justify-content: space-between; }
.global-search { display: flex; width: min(520px, 52vw); min-height: 40px; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.global-search input { flex: 1; min-height: 38px; padding: 0; border: 0; background: transparent; outline: 0; }
.global-search kbd { padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: #98a2b3; font: 9px var(--sans); }
.server-health { display: inline-flex; align-items: center; gap: 5px; color: #667085; font-size: 10px; }
.server-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--danger); }
.date-range { display: flex; min-height: 42px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.date-range select { min-height: 40px; padding: 0; border: 0; font-size: 11px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-kpi-grid em { overflow: hidden; color: #98a2b3; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.admin-overview-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(250px, .4fr); gap: 18px; }
.revenue-chart-card, .license-status-card, .needs-attention-card, .tool-activity-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.chart-tabs { display: flex; gap: 5px; }
.chart-tabs button { min-height: 32px; padding-inline: 9px; }
.custom-trend-range { display: flex; align-items: end; justify-content: flex-end; gap: 8px; margin-top: 12px; padding: 10px; border-radius: 10px; background: var(--surface); }
.custom-trend-range label { display: grid; gap: 3px; color: #667085; font-size: 9px; }.custom-trend-range input { min-height: 38px; padding: 0 8px; font-size: 11px; }
.revenue-trend { display: flex; height: 210px; align-items: end; gap: 3px; margin-top: 24px; padding-top: 10px; border-bottom: 1px solid var(--line); background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 52px; overflow-x: hidden; }
.revenue-trend .trend-day { display: flex; min-width: 0; flex: 1; height: 100%; align-items: end; gap: 1px; }
.revenue-trend .trend-bars { display: flex; width: 100%; height: 100%; align-items: end; gap: 1px; }
.revenue-trend .trend-bars b { width: 50%; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--primary); }
.revenue-trend .trend-bars b:last-child { background: #a9a2ff; }
.revenue-trend .trend-day small { display: none; }
.trend-bars .level-0 { height: 1px; opacity: .2; }
.trend-bars .level-1 { height: 10%; }.trend-bars .level-2 { height: 20%;}.trend-bars .level-3 { height: 30%;}.trend-bars .level-4 { height: 40%;}.trend-bars .level-5 { height: 50%;}.trend-bars .level-6 { height: 60%;}.trend-bars .level-7 { height: 70%;}.trend-bars .level-8 { height: 80%;}.trend-bars .level-9 { height: 90%;}.trend-bars .level-10 { height: 100%;}
.chart-legend { display: flex; gap: 16px; margin-top: 11px; color: #667085; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--primary); }
.chart-legend .legend-sale { background: #a9a2ff; }.chart-legend .legend-register { background: #d0d5dd; }
.status-breakdown { display: grid; margin-top: 16px; }
.status-breakdown button { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: #475467; font-size: 11px; }
.status-breakdown button span { display: flex; align-items: center; gap: 7px; }
.status-breakdown i { width: 7px; height: 7px; border-radius: 50%; }.dot-success { background: var(--success); }.dot-violet { background: var(--primary); }.dot-error { background: var(--danger); }.dot-amber { background: var(--amber); }.dot-neutral { background: #98a2b3; }
.admin-lower-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.attention-actions { display: grid; margin-top: 12px; }
.attention-actions > button { display: flex; min-height: 62px; align-items: center; gap: 10px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; }
.attention-actions > button > span:nth-child(2) { display: grid; flex: 1; }
.attention-actions small { color: #98a2b3; font-size: 9px; }
.attention-actions b { color: var(--danger); }
.tool-activity-card > strong { display: block; margin-top: 26px; color: var(--primary); font-size: 28px; }
.tool-activity-card > p { margin: 3px 0 19px; font-size: 10px; }
.activity-beacon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eafaf5; }
.activity-beacon i { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(18, 165, 121, .12); }
.activity-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.activity-stat-row button { display: grid; gap: 2px; padding: 10px 5px; border: 0; border-radius: 8px; background: var(--surface); }
.activity-stat-row b { color: var(--text); }.activity-stat-row span { color: #98a2b3; font-size: 8px; }
.recent-customer-card { margin-top: 18px; }
.recent-account-list { display: grid; margin-top: 10px; }
.recent-account-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) 160px 100px; gap: 10px; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); }
.recent-account-list article > div { display: grid; }.recent-account-list small { color: #98a2b3; font-size: 9px; }.recent-account-list article > span:nth-child(3), .recent-account-list time { color: #667085; font-size: 10px; }
.filter-cluster { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 16px; }
.filter-cluster > label:not(.search-control) { display: grid; gap: 4px; }
.filter-cluster label > span { color: #98a2b3; font-size: 9px; font-weight: 650; }
.filter-cluster select { min-width: 150px; padding: 0 10px; font-size: 11px; }
.data-table-head { display: grid; grid-template-columns: 1.6fr 1fr 1fr .7fr .7fr; gap: 12px; padding: 10px 14px; color: #98a2b3; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.admin-row h3 { margin: 0; font-size: 13px; }.admin-row p { margin: 4px 0 0; font-size: 10px; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.admin-entity-row { align-items: flex-start; }
.entity-main { min-width: 0; flex: 1; }
.entity-title { display: flex; align-items: center; gap: 9px; }
.entity-title > div { min-width: 0; }
.entity-email { color: #98a2b3 !important; }
.account-avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #f0eeff; color: var(--primary); font-size: 11px; font-weight: 700; }
.entity-facts { display: grid; grid-template-columns: repeat(5, minmax(90px, 1fr)); gap: 6px; margin-top: 13px; }
.entity-facts > span { display: grid; min-width: 0; padding: 9px; border-radius: 8px; background: var(--surface); }
.entity-facts small { color: #667085; font-size: 8px; }.entity-facts strong { overflow: hidden; margin-top: 2px; color: #344054; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.entity-facts .activity-fact strong { color: #4234cb; }
.entity-facts .activity-fact.never strong, .entity-facts .activity-fact.inactive_30d strong { color: #b54708; }
.entity-details { margin-top: 10px; overflow: clip; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.entity-details summary { min-height: 44px; padding: 9px 40px 9px 12px; color: #4234cb; font-size: 10px; font-weight: 700; }
.entity-details[open] summary { border-bottom: 1px solid var(--line); background: #f8f7ff; }
.entity-details .detail-grid, .entity-details .license-device-list { margin: 0; padding: 10px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.detail-grid span { display: grid; padding: 9px; border: 1px solid var(--line); border-radius: 8px; color: #667085; font-size: 8px; }.detail-grid strong { margin-top: 2px; color: #344054; font-size: 10px; }
.key-prefix { margin: 0; color: var(--primary) !important; font: 650 11px var(--mono); }
.license-device-list { display: grid; gap: 6px; margin-top: 8px; }.license-device-list span { display: flex; justify-content: space-between; padding: 8px; border-radius: 7px; background: var(--surface); font-size: 9px; }
.device-admin-grid, .admin-plan-grid, .admin-model-grid, .content-inventory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-plan-grid article, .admin-model-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.admin-plan-grid article > div:first-child { display: flex; justify-content: space-between; }.admin-plan-grid h2 { margin: 16px 0 0; font-size: 17px; }.admin-plan-grid .price { margin-top: 18px; font-size: 42px; }
.admin-model-grid article > p { min-height: 48px; }.admin-model-grid article > a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 11px; font-weight: 650; }
.content-inventory article a { margin-top: 4px; color: var(--primary); font-size: 10px; }
.settings-list { display: grid; gap: 10px; }.settings-list article { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.settings-list article > span:first-child { display: grid; }.settings-list small { color: #98a2b3; }
.audit-list .audit-action { min-width: 150px; font-weight: 650; }.audit-detail { flex: 1; overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.audit-list time { color: #98a2b3; font-size: 9px; }

/* Dialogs, auth, legacy content brought into the white system */
dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 16px; background: transparent; color: var(--text); color-scheme: light !important; box-shadow: 0 30px 90px rgba(17, 24, 39, .22); }
dialog::backdrop { background: rgba(17, 24, 39, .4); backdrop-filter: blur(3px); }
.dialog-card { position: relative; display: grid; gap: 10px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color-scheme: light !important; }
.dialog-card h2 { margin: 0; font-size: 24px; }.dialog-lede { margin: 0 0 8px; }.dialog-card label { margin-top: 4px; color: #475467; font-size: 11px; font-weight: 650; }.dialog-card input, .dialog-card select { width: 100%; padding: 0 11px; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #667085; }
.dialog-note { display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; border: 1px solid #dbe8ff; border-radius: 9px; background: #f5f8ff; color: #475467; font-size: 10px; line-height: 1.55; }
.dialog-note .icon { width: 16px; height: 16px; color: var(--info); }
.confirm-dialog-card { justify-items: center; text-align: center; }.confirm-dialog-icon { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; background: #fff1f2; color: var(--danger); }.confirm-dialog-icon .icon { width: 24px; height: 24px; }.dialog-actions { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.form-message { padding: 10px; border-radius: 8px; background: #fff1f2; color: #b42318; font-size: 11px; }
.toast { position: fixed; z-index: 300; right: 22px; bottom: 22px; max-width: 360px; padding: 13px 16px; border: 1px solid #c5eadf; border-radius: 10px; background: #ecfdf3; color: #067a58; box-shadow: var(--shadow-sm); font-weight: 600; }
.auth-shell, .portal-head, .admin-head, .page-hero, .requirements, .pricing-note, .trial-pricing-banner, .software-visual-intro, .building-blocks, .outcome-grid, .final-cta { color: var(--text); }
.auth-panel, .auth-card, .legal-copy, .support-card, .legal-content article, .requirements, .product-shot, .software-browser-shot, .software-settings-shot { border-color: var(--line) !important; background: #fff !important; color: var(--text) !important; box-shadow: var(--shadow-sm); }
.auth-pitch h1, .page-hero h1, .portal-head h1, .admin-head h1 { color: var(--text); }.auth-pitch p, .page-hero p { color: var(--muted) !important; }
.auth-card input, .auth-card select { color: var(--text); background: #fff; }
.model-band, .automation-band { border-color: var(--line); background: var(--surface); }
.feature-card, .model-card, .plan-card, .value-stack-grid article, .outcome-grid article { border-color: var(--line); background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.feature-card p, .model-card p, .plan-card p, .value-stack-grid p, .outcome-grid p { color: var(--muted); }
.software-hero-shot img, .software-browser-shot img, .software-settings-shot img { border-color: var(--line); }
.legal-content h2, .legal-content p { color: var(--text); }.legal-content p { color: var(--muted); }
.support-contact-band { display: grid; grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; margin-top: -12px; padding: 28px; border: 1px solid #d8d4ff; border-radius: 16px; background: linear-gradient(135deg, #fbfbff, #f3f1ff); box-shadow: var(--shadow-sm); }
.support-contact-copy h2 { margin: 5px 0 10px; font: 700 clamp(27px, 3vw, 38px)/1.08 var(--display); letter-spacing: -.04em; }.support-contact-copy > p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.support-contact-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.support-contact-link { display: grid; min-height: 126px; align-content: center; gap: 5px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); box-shadow: 0 8px 22px rgba(43, 35, 112, .06); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.support-contact-link:hover { transform: translateY(-2px); border-color: #bcb5ff; box-shadow: 0 13px 28px rgba(43, 35, 112, .1); }.support-contact-link span { color: var(--primary); font-size: 9px; font-weight: 750; letter-spacing: .1em; }.support-contact-link strong { font-size: 15px; }.support-contact-link small { color: var(--muted); font-size: 10px; }
.support-content article { position: relative; padding-left: 72px; }
.support-content article::before { position: absolute; top: 34px; left: 28px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #f1efff; color: var(--primary); font-size: 11px; font-weight: 750; }
.support-content article:nth-child(1)::before { content: "01"; }.support-content article:nth-child(2)::before { content: "02"; }.support-content article:nth-child(3)::before { content: "03"; }.support-content article:nth-child(4)::before { content: "04"; }
.building-blocks { color: var(--text); }
.lifecycle-illustration { max-width: 1180px; margin-inline: auto; background: #fbfbff; }
.lifecycle-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.lifecycle-legend span { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #475467; font-size: 10px; font-weight: 650; }
.lifecycle-legend span::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px #f1efff; }
.requirements li { color: #475467 !important; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--text); }
.footer-inner { display: grid; width: min(1180px, calc(100% - 48px)); grid-template-columns: 1.45fr repeat(3, 1fr); gap: 48px; margin: auto; padding-block: 52px; }
.footer-brand-block p { max-width: 320px; margin-top: 16px; }
.footer-column { display: grid; align-content: start; gap: 9px; }
.footer-column strong { margin-bottom: 4px; font-size: 12px; }.footer-column a, .footer-column span { color: #667085; font-size: 11px; }
.footer-column a:hover { color: var(--primary); }
.footer-bottom { display: flex; width: min(1180px, calc(100% - 48px)); justify-content: space-between; gap: 20px; margin: auto; padding: 18px 0 24px; border-top: 1px solid var(--line); color: #98a2b3; font-size: 10px; }

@media (max-width: 1100px) {
  .pricing-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desktop-nav { gap: 14px; }
  .home-hero { grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); gap: 38px; }
  .model-row { grid-template-columns: 1fr .8fr .8fr; }.model-row-fit { grid-column: 1 / -1; grid-template-columns: auto repeat(3, 1fr) auto; align-items: center; }
  .content-rail { overflow-x: auto; padding-bottom: 8px; }
  .app-shell, .admin-app-shell { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .desktop-nav { display: none; }.header-login, .header-actions > .button { display: none; }.nav-toggle { display: grid; }
  .home-hero { grid-template-areas: "copy" "kpis" "visual"; grid-template-columns: 1fr; padding-top: 58px; }.home-hero-copy { max-width: 700px; }.studio-visual { width: min(760px, 100%); margin: 0 auto; }
  .model-card-grid, .sample-grid, .pricing-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.model-card-grid article:last-child { grid-column: 1 / -1; }
  .api-cost-layout, .workflow-comparison, .clone-section, .model-detail-grid { grid-template-columns: 1fr; }.api-cost-layout { gap: 36px; }.clone-section { gap: 40px; }.content-rail { grid-template-columns: auto 40px auto 40px auto 40px auto 40px auto 40px auto 40px auto; }
  .model-row { grid-template-columns: 1fr 1fr; }.model-row > .feature-checks, .model-row-fit { grid-column: auto; }.model-row-fit { display: grid; grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; gap: 24px; }.guide-sidebar { position: static; }.guide-sidebar nav { display: flex; overflow-x: auto; padding-bottom: 5px; }.guide-sidebar a { flex: 0 0 auto; border-bottom: 2px solid transparent; border-left: 0; white-space: nowrap; }
  .app-shell, .admin-app-shell { grid-template-columns: 1fr; }.app-sidebar { position: fixed; z-index: 90; top: 0; bottom: 0; left: 0; width: 250px; visibility: hidden; pointer-events: none; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 20px 0 60px rgba(17, 24, 39, .16); }.app-sidebar.is-open { visibility: visible; pointer-events: auto; transform: none; }.app-menu-toggle { display: grid; }.app-content { width: min(100% - 40px, 1000px); }
  .admin-overview-grid, .admin-lower-grid { grid-template-columns: 1fr; }.device-admin-grid, .admin-plan-grid, .admin-model-grid, .content-inventory { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body:not(.app-page) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  body { font-size: 16px; }
  input, select, textarea { font-size: 16px; }
  .section-shell { width: min(100% - 32px, 600px); }
  .site-header, .header-inner { min-height: 60px; }.header-inner { width: calc(100% - 28px); }.brand-logo { width: 29px; height: 29px; }.brand > span { font-size: 15px; }.language-menu summary { min-height: 44px; }.header-actions { gap: 5px; }
  .mobile-bottom-nav { position: fixed; z-index: 95; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 5px calc(5px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); box-shadow: 0 -8px 24px rgba(17, 24, 39, .05); backdrop-filter: blur(14px); }
  body[data-page="auth"], body[data-page="admin-login"], body[data-page="admin-setup"] { padding-bottom: 0; }
  body[data-page="auth"] .mobile-bottom-nav, body[data-page="admin-login"] .mobile-bottom-nav, body[data-page="admin-setup"] .mobile-bottom-nav { display: none; }
  .mobile-bottom-nav a { display: grid; min-height: 52px; place-items: center; align-content: center; gap: 3px; color: #98a2b3; font-size: 9px; }.mobile-bottom-nav a.is-active { color: var(--primary); }.mobile-bottom-nav .icon { width: 20px; height: 20px; }
  .home-hero { gap: 28px; padding-block: 34px 30px; }.announcement { margin-bottom: 16px; font-size: 9px; }.home-hero h1 { font-size: clamp(40px, 12vw, 52px); line-height: 1.02; }.home-hero .hero-lede { margin-top: 18px; font-size: 14px; }.hero-actions { display: grid; gap: 9px; margin-top: 22px; }.hero-actions .button { width: 100%; }.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }.trust-list li:last-child { grid-column: 1 / -1; }
  .hero-kpis { grid-template-columns: repeat(3, 1fr); overflow: hidden; }.kpi-item { display: grid; justify-items: center; gap: 5px; padding: 15px 7px; text-align: center; }.kpi-item:nth-child(3) { border-right: 0; }.kpi-item:nth-child(4) { display: none; }.kpi-item > strong { min-width: 0; font-size: 24px; }.kpi-item > span { font-size: 10px; }.kpi-item small { display: none; }
  .studio-window { transform: none; }.studio-window-bar { min-height: 36px; }.studio-window-body { min-height: 0; }.studio-shot-wrap img { min-height: 0; }.studio-control-row { grid-template-columns: 1.2fr 1fr .8fr; }.studio-control-row .queue-status { display: none; }.studio-control-row > span { padding: 9px; }.floating-note { display: none; }
  .home-section, .workflow-section, .faq-section, .api-cost-section { padding-block: 64px; }.section-heading, .centered-heading { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }.section-heading { margin-bottom: 24px; }.section-heading h2 { font-size: 34px; }.model-card-grid, .sample-grid, .pricing-card-grid { grid-template-columns: 1fr; }.model-card-grid article:last-child, .pricing-card-grid article:last-child { grid-column: auto; }.model-card-new { display: grid; grid-template-columns: 1fr; }.model-media { aspect-ratio: 16 / 8; }
  .api-cost-intro h2 { font-size: 38px; }.cost-calculator-head { align-items: flex-start; }.cost-calculator-head .status-badge { max-width: 128px; text-align: center; white-space: normal; }.cost-controls { grid-template-columns: 1fr; padding: 18px; }.cost-presets { padding: 0 18px 18px; }.cost-results { margin-inline: 18px; }.cost-results > div { min-height: 82px; padding: 13px; }.cost-results strong { font-size: 20px; }.cost-example, .cost-source, .cost-disclaimer { margin-right: 18px; margin-left: 18px; }
  .cost-cta, .inline-conversion-cta { display: grid; align-items: stretch; margin-right: 18px; margin-left: 18px; }.cost-cta .button, .inline-conversion-cta .button { width: 100%; }.inline-conversion-cta { margin-top: 18px; }.inline-conversion-cta > div { grid-template-columns: 1fr; }.inline-conversion-cta small { grid-column: auto; }.offer-countdown { grid-template-columns: 1fr; margin-bottom: 24px; }.offer-countdown strong { grid-row: auto; font-size: 24px; }.offer-countdown.is-expired strong { font-size: 14px; }
  .workflow-comparison { gap: 12px; }.workflow-comparison > article { padding: 20px; }.workflow-proof-strip { grid-template-columns: 1fr; }.auto-flow { display: grid; grid-template-columns: 1fr 16px 1fr; }.auto-flow .flow-arrow { transform: rotate(90deg); }.auto-flow > .flow-arrow:nth-of-type(2), .auto-flow > span:nth-of-type(4) { display: none; }
  .clone-section { padding-block: 66px; }.clone-copy h2 { font-size: 40px; }.feature-checks.compact { grid-template-columns: 1fr 1fr; }.content-rail { width: 100%; max-width: 100%; margin-right: 0; padding-right: 8px; }
  .pricing-card { padding: 22px; }.pricing-card .price { font-size: 48px; }
  .faq-list summary { min-height: 60px; font-size: 13px; }.faq-list details p { margin-right: 0; }
  .final-cta-simple { display: grid; min-height: 0; gap: 28px; margin-bottom: 34px; padding: 30px 22px; }.final-cta-simple h2 { font-size: 34px; }.cta-row { display: grid; width: 100%; }.cta-row .button { width: 100%; }
  .footer-inner { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 32px 22px; padding-block: 38px; }.footer-brand-block { grid-column: 1 / -1; }.footer-bottom { width: calc(100% - 32px); flex-direction: column; }
  .subpage-hero { padding-block: 38px 26px; }.subpage-hero h1 { font-size: 42px; }.models-catalog, .sample-library { padding-bottom: 60px; }.filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }.filter-chip { flex: 0 0 auto; }.model-row { grid-template-columns: 1fr; padding: 18px; }.model-row-media { order: -1; }.model-row > .feature-checks, .model-row-fit { grid-column: auto; }.catalog-note { align-items: flex-start; flex-wrap: wrap; }.catalog-note .button { width: 100%; }.model-detail { padding-block: 20px 80px; }.model-detail-grid { gap: 28px; margin-top: 12px; }.model-detail-copy { display: contents; }.model-detail-title { order: 1; }.model-detail-copy > .status-badge { order: 2; justify-self: start; }.model-detail-copy > h2 { order: 3; }.model-detail-copy > p { order: 4; }.model-detail-copy > div:not(.model-detail-title) { order: 5; }.model-detail-copy > .feature-checks { order: 6; }.model-detail-media { order: 0; }.model-detail-cta { position: sticky; z-index: 20; bottom: calc(66px + env(safe-area-inset-bottom)); order: 7; width: 100%; box-shadow: 0 10px 28px rgba(85, 70, 245, .28); }.model-detail-title h1 { font-size: 36px; }.library-toolbar { display: grid; }.search-control input { width: 100%; min-width: 0; }.sample-library-grid { grid-template-columns: 1fr; }
  .pricing-page-cards { padding-bottom: 50px; }.comparison-section-light { padding-block: 58px; }.guide-layout { width: calc(100% - 32px); padding-block: 35px 70px; }.guide-sidebar { width: 100%; min-width: 0; margin-inline: 0; padding-inline: 0; overflow: hidden; }.guide-sidebar nav { width: 100%; max-width: 100%; }.guide-content > section:first-child h1 { font-size: 40px; }.guide-paths, .guide-provider-map, .guide-workflows, .guide-workflows-two, .guide-cost-grid, .guide-status-grid { grid-template-columns: 1fr; }.guide-paths a { min-height: 0; }.guide-steps > li { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; }.guide-steps ul { padding-left: 18px; }.guide-section { padding-top: 42px; }.guide-callout { grid-template-columns: 1fr; gap: 6px; }.guide-feature-links { grid-template-columns: 1fr; }.lifecycle-legend { grid-template-columns: 1fr 1fr; }.support-content article { padding: 24px 20px 24px 64px; }.support-content article::before { top: 25px; left: 20px; }
  .support-contact-band { grid-template-columns: 1fr; gap: 22px; padding: 22px; }.support-contact-actions { grid-template-columns: 1fr; }.support-contact-link { min-height: 96px; }
  .app-topbar { min-height: 58px; padding: 0 16px; }.app-topbar > div:nth-child(2) small, .topbar-actions .button { display: none; }.app-content { width: calc(100% - 28px); padding-block: 22px 48px; }.workspace-welcome, .admin-page-title, .panel-title { display: grid; align-items: start; }.workspace-actions { display: grid; grid-template-columns: 1fr 1fr; }.workspace-actions .button { padding-inline: 10px; font-size: 11px; }.workspace-metrics, .admin-kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.workspace-metrics article, .admin-kpi-grid article { padding: 13px; }.workspace-metrics strong, .admin-kpi-grid strong { font-size: 15px; }.portal-overview-grid { grid-template-columns: 1fr; }.onboarding-card, .subscription-summary { padding: 18px; }.device-card-list { grid-template-columns: 1fr; }.download-card { display: grid; }.download-card .button { width: 100%; }
  .global-search { width: auto; flex: 1; }.global-search kbd, .server-health { display: none; }.admin-app-content { width: calc(100% - 24px); }.admin-page-title .date-range { justify-self: start; }.admin-overview-grid, .admin-lower-grid { gap: 12px; }.revenue-chart-card, .license-status-card, .needs-attention-card, .tool-activity-card { padding: 16px; }.chart-tabs { flex-wrap: wrap; }.custom-trend-range { display: grid; grid-template-columns: 1fr 1fr; justify-content: stretch; }.custom-trend-range .button { grid-column: 1 / -1; }.revenue-trend { overflow: visible; }.recent-account-list article { grid-template-columns: auto minmax(0, 1fr) auto; }.recent-account-list article > span:nth-child(3) { display: none; }.filter-cluster { display: grid; grid-template-columns: 1fr 1fr; }.filter-cluster .search-control { grid-column: 1 / -1; }.filter-cluster select { width: 100%; min-width: 0; }.data-table-head { display: none; }.admin-row, .admin-entity-row { display: grid; }.row-actions { justify-content: stretch; }.row-actions .button { flex: 1; }.entity-facts { grid-template-columns: 1fr 1fr; }.detail-grid { grid-template-columns: 1fr; }.device-admin-grid, .admin-plan-grid, .admin-model-grid, .content-inventory { grid-template-columns: 1fr; }.audit-list .admin-row { gap: 5px; }.audit-list .audit-action { min-width: 0; }.audit-detail { white-space: normal; }.toast { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); left: 14px; max-width: none; }
}

@media (max-width: 680px) {
  .guide-youtube { border-radius: 12px; }
  .guide-youtube-heading { display: grid; gap: 15px; padding: 18px; }
  .guide-youtube-heading h2 { font-size: 25px; }
  .guide-youtube-heading > a { width: fit-content; }
  .guide-youtube-note { padding: 10px 18px 12px; line-height: 1.55; }
}

@media (max-width: 390px) {
  .section-shell { width: calc(100% - 24px); }.home-hero h1 { font-size: 39px; }.home-hero .button { font-size: 12px; }.trust-list { grid-template-columns: 1fr; }.trust-list li:last-child { grid-column: auto; }.feature-checks.compact { grid-template-columns: 1fr; }.cost-results, .lifecycle-legend, .workspace-actions, .workspace-metrics, .admin-kpi-grid, .filter-cluster { grid-template-columns: 1fr; }.cost-results .cost-difference { min-height: 92px; }.filter-cluster .search-control { grid-column: auto; }.app-content { width: calc(100% - 20px); }.mobile-bottom-nav a { font-size: 8px; }
  .support-contact-band { padding: 20px 16px; }.support-contact-copy h2 { font-size: 30px; }.support-contact-link { min-height: 92px; }
}

@media (max-width: 760px) {
  .account-security-panel { display: grid; gap: 16px; }
  .account-security-panel .button { width: 100%; }
}

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

.customer-drawer { position: fixed; z-index: 170; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); overflow-y: auto; padding: 22px; background: #fff; box-shadow: -24px 0 70px rgba(17, 24, 39, .18); }
.customer-drawer > header { position: sticky; z-index: 2; top: -22px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: -22px -22px 0; padding: 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.customer-drawer h2 { margin: 0; font-size: 24px; }
.customer-drawer-body { display: grid; gap: 14px; padding-top: 20px; }
.customer-drawer-section { padding: 17px; border: 1px solid var(--line); border-radius: 11px; }
.customer-drawer-section h3 { margin: 0 0 12px; font-size: 14px; }
.customer-drawer-section dl { display: grid; gap: 9px; margin: 0; }
.customer-drawer-section dl > div { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 10px; }
.customer-drawer-section dt { color: #98a2b3; }.customer-drawer-section dd { margin: 0; font-weight: 650; text-align: right; }
.customer-drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pagination-summary { color: #667085; font-size: 10px; }
.pagination-pages { display: flex; align-items: center; gap: 5px; }
.pagination-pages button { display: grid; min-width: 40px; min-height: 40px; place-items: center; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #475467; font-size: 11px; font-weight: 650; }
.pagination-pages button:hover:not(:disabled), .pagination-pages button.is-active { border-color: var(--primary); background: #f4f3ff; color: var(--primary); }
.pagination-pages button:disabled { cursor: not-allowed; opacity: .42; }
.pagination-ellipsis { padding-inline: 3px; color: #98a2b3; }
.trend-bars b { width: 33.333% !important; }
.trend-bars .trend-revenue { background: var(--primary) !important; }.trend-bars .trend-sales { background: var(--success) !important; }.trend-bars .trend-registrations { background: #cbd0da !important; }
.chart-legend .legend-revenue { background: var(--primary); }.chart-legend .legend-sale { background: var(--success); }.chart-legend .legend-register { background: #cbd0da; }
.revenue-trend { display: block; height: 228px; padding-top: 8px; overflow: visible; background: none; border-bottom: 0; }
.revenue-trend > svg { display: block; width: 100%; height: 196px; overflow: visible; }
.trend-gridline { stroke: #e8eaf0; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trend-area { fill: rgba(85, 70, 245, .07); }
.revenue-line { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trend-hit { fill: transparent; stroke: transparent; vector-effect: non-scaling-stroke; }
.trend-point { fill: #fff; stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.revenue-trend svg .trend-day { display: inline; }
.trend-day:focus { outline: none; }.trend-day:focus .trend-hit { fill: rgba(85, 70, 245, .12); stroke: rgba(85, 70, 245, .35); }
.trend-axis { display: flex; justify-content: space-between; margin-top: 6px; color: #98a2b3; font-size: 9px; }
@media (max-width: 680px) { .customer-drawer { width: 100%; padding: 18px; }.customer-drawer > header { top: -18px; margin: -18px -18px 0; padding: 18px; }.customer-drawer-actions { grid-template-columns: 1fr; }.admin-pagination { display: grid; }.pagination-pages { justify-content: space-between; }.pagination-pages button { min-width: 44px; min-height: 44px; }.pagination-pages .page-number, .pagination-ellipsis { display: none; } }

/* Authentication remains part of the same calm, white product system. */
.auth-layout { width: min(1080px, calc(100% - 48px)); grid-template-columns: minmax(0, 1fr) minmax(380px, 450px); gap: clamp(48px, 8vw, 104px); min-height: calc(100vh - 66px); padding-block: 64px; }
.auth-pitch h1 { max-width: 650px; font-size: clamp(48px, 5.8vw, 72px); line-height: 1.02; }
.auth-pitch h1 span { color: var(--primary); }
.auth-pitch > p:not(.eyebrow) { max-width: 570px; color: var(--muted); font-size: 16px; }
.auth-benefits { margin-top: 34px; border-color: var(--line); }
.auth-benefits div { grid-template-columns: 44px 170px minmax(0, 1fr); border-color: var(--line); }
.auth-benefits span { color: var(--primary); font: 700 10px var(--mono); }
.auth-benefits strong { color: var(--text); }
.auth-benefits small { color: var(--muted); }
.security-stack { margin-top: 28px; }
.security-stack span { border-color: var(--line); background: var(--surface); color: #667085; }
.auth-card { padding: 34px; border: 1px solid var(--line) !important; border-radius: 16px; background: #fff !important; box-shadow: 0 18px 50px rgba(17, 24, 39, .08); }
.auth-card h2 { color: var(--text); font: 700 29px/1.14 var(--font); letter-spacing: -.035em; }
.auth-card-lede { color: var(--muted); line-height: 1.65; }
.trial-runway { gap: 6px; }
.trial-runway span { min-height: 34px; border-color: #dddafe; background: #f4f3ff; color: var(--primary); font: 700 10px var(--mono); }
.trial-runway span:last-child { border-color: var(--primary); background: var(--primary); color: #fff; }
.trial-terms { border-left-color: var(--primary); background: #f8f7ff; }
.trial-terms strong { color: #4234cb; }
.trial-terms small { color: var(--muted); }
.form-stack label:not(.plan-choice label), .auth-card .plan-choice legend { color: #344054; font-size: 12px; font-weight: 650; }
.auth-card input, .auth-card select { min-height: 48px; border-color: #d0d5dd; border-radius: 10px; background: #fff; color: var(--text); }
.auth-card input::placeholder { color: #98a2b3; }
.auth-card input:focus, .auth-card select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(85, 70, 245, .12); }
.password-field button { top: 6px; right: 6px; min-height: 36px; border: 1px solid #dddafe; border-radius: 8px; background: #f4f3ff; color: var(--primary); }
.plan-choice label > span { border-color: var(--line); background: var(--surface); color: var(--text); }
.plan-choice input:checked + span { border-color: var(--primary); background: #f4f3ff; box-shadow: inset 0 0 0 1px var(--primary); }
.plan-choice input:focus-visible + span { outline-color: var(--primary); }
.auth-switch a, .auth-help a { color: var(--primary); }
.auth-card .form-message { border-color: #fecaca; background: #fff1f2; color: #b42318; }

@media (max-width: 760px) {
  .auth-layout { width: min(100% - 32px, 560px); grid-template-columns: 1fr; gap: 34px; min-height: 0; padding-block: 38px 60px; }
  .auth-pitch h1 { font-size: clamp(40px, 11vw, 54px); }
  .auth-pitch > p:not(.eyebrow) { font-size: 14px; }
  .auth-benefits { margin-top: 26px; }
  .auth-benefits div { grid-template-columns: 38px minmax(118px, .7fr) 1fr; }
  .auth-card { padding: 24px; }
}

@media (max-width: 420px) {
  .auth-layout { width: calc(100% - 24px); }
  .auth-benefits div { grid-template-columns: 36px minmax(0, 1fr); }
  .auth-benefits small { grid-column: 2; }
  .auth-card { padding: 20px; }
  .auth-card h2 { font-size: 25px; }
}
