/* Atopsales interface system. Shared by every public and workspace page.
   Layout contracts remain in style.css/dashboard.css; visual decisions live here. */
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f8f8f5;
  --bg-secondary: #f0f1ed;
  --bg-card: #fff;
  --bg-card-hover: #fafbf8;
  --bg-glass: #fff;
  --bg-glass-strong: #fff;
  --text-primary: #222b29;
  --text-secondary: #56615d;
  --text-muted: #69746f;
  --accent-primary: #21584b;
  --accent-primary-light: #173f36;
  --accent-secondary: #21584b;
  --accent-secondary-light: #367965;
  --accent-purple: #21584b;
  --accent-purple-light: #367965;
  --accent-cyan: #21584b;
  --accent-green: #257252;
  --border-color: #dfe4de;
  --border-focus: #21584b;
  --border-glow: #b4c9be;
  --glow-color: transparent;
  --gradient-primary: linear-gradient(#21584b, #21584b);
  --gradient-card: linear-gradient(#fff, #fff);
  --ink: #222b29;
  --paper: #f8f8f5;
  --line: #dfe4de;
  --brand: #21584b;
  --lime: #e1eade;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 12px;
  --shadow-sm: 0 1px 2px #20322806;
  --shadow-md: 0 4px 16px #20322806;
  --shadow-lg: 0 12px 32px #2032280a;
  --shadow-xl: 0 18px 48px #20322810;
  --shadow-glow: none;
  --font-heading: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #141b18;
  --bg-secondary: #1c2520;
  --bg-card: #202a24;
  --bg-card-hover: #28342c;
  --bg-glass: #202a24;
  --bg-glass-strong: #202a24;
  --text-primary: #edf1eb;
  --text-secondary: #c0c9bf;
  --text-muted: #a1b09f;
  --accent-primary: #9fcbb5;
  --accent-primary-light: #bedbc9;
  --accent-secondary: #9fcbb5;
  --accent-purple: #9fcbb5;
  --accent-purple-light: #bedbc9;
  --accent-cyan: #9fcbb5;
  --accent-green: #9fcbb5;
  --border-color: #344138;
  --border-focus: #9fcbb5;
  --border-glow: #4d6e59;
  --gradient-primary: linear-gradient(#32634d, #32634d);
  --gradient-card: linear-gradient(#202a24, #202a24);
  --ink: #edf1eb;
  --paper: #141b18;
  --line: #344138;
  --brand: #9fcbb5;
}
html { font-size: 100%; scroll-padding-top: 90px; }
.ui-public, .ui-dashboard, [data-theme="dark"] .ui-public, [data-theme="dark"] .ui-dashboard { background: var(--bg-primary); color: var(--text-primary); font-size: 14px; line-height: 1.6; }
body :is(h1,h2,h3,h4) { text-wrap: balance; }
body :is(p,li) { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
a, button, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--accent-primary); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .55; }
.ui-public .container { max-width: 1200px; }
/* Navigation */
html[data-theme] body.ui-public .navbar, html[data-theme] body.ui-public .navbar.scrolled { position: absolute; padding: 18px 32px !important; background: var(--bg-primary) !important; border-bottom: 1px solid var(--border-color) !important; box-shadow: none !important; backdrop-filter: none !important; }
.ui-public .nav-container { max-width: 1200px; gap: 16px; }
.ui-public .nav-logo img { height: 34px; width: auto; max-width: 150px; object-fit: contain; background: #fff; border-radius: 4px; padding: 3px 7px; }
.ui-public .nav-links { gap: 4px; }
html .ui-public .nav-links a { font-size: 13px; color: var(--text-secondary); padding: 8px 12px; font-weight: 500; background: none; border: 0; }
html .ui-public .nav-links a.active:not(.btn), html .ui-public .nav-links a:hover:not(.btn) { color: var(--accent-primary); background: none; }
html .ui-public .nav-links .btn { padding: 9px 16px !important; border: 1px solid var(--border-color); }
html[data-theme] body .btn, html[data-theme] body .btn-add-cart { border-radius: 6px !important; font-size: 13px; font-weight: 600; letter-spacing: 0 !important; min-height: 42px; box-shadow: none !important; transform: none; transition: background .16s, border-color .16s; }
html[data-theme] body .btn-primary, html[data-theme] body .nav-links .btn-primary, html[data-theme] body .btn-green-pill { background: #21584b !important; border-color: #21584b !important; color: #fff !important; }
html[data-theme] body .btn-primary:hover, html[data-theme] body .btn-green-pill:hover { background: #173f36 !important; transform: none; }
html[data-theme] body .btn-secondary, html[data-theme] body .btn-outline, html[data-theme] body .btn-add-cart { background: var(--bg-card) !important; border: 1px solid var(--border-color) !important; color: var(--text-primary) !important; }
html[data-theme] body .btn-secondary:hover, html[data-theme] body .btn-outline:hover { background: var(--bg-secondary) !important; transform: none; }
html[data-theme] body .btn-large { padding: 12px 20px; font-size: 14px; }
html[data-theme] body .theme-toggle { width: 36px; height: 36px; min-height: 36px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); padding: 8px; border-radius: 6px; box-shadow: none; }
html[data-theme] body .theme-toggle svg { stroke: var(--text-secondary) !important; }
html[data-theme] body .mobile-toggle span { background: var(--text-primary) !important; }
/* Public pages */
html[data-theme] body .section { padding: 88px 28px; background: var(--bg-primary); }
html[data-theme] body .section:nth-child(even) { background: var(--bg-primary); }
.ui-public .section-header { max-width: 700px; margin-bottom: 40px; }
.ui-public .section-title { color: var(--text-primary); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -.04em !important; }
.ui-public .section-subtitle { font-size: 16px; line-height: 1.75; color: var(--text-secondary); max-width: 620px; margin-top: 18px; }
html[data-theme] body .gradient-text, html[data-theme] body .naira-gradient { background: none; color: var(--accent-primary); -webkit-text-fill-color: currentColor; }
.ui-public .section-badge, .auth-eyebrow { display: inline-block; color: var(--accent-primary); padding: 0; background: none; border: 0; font-size: 11px; font-weight: 600; letter-spacing: .12em !important; text-transform: uppercase; margin-bottom: 20px; }
html[data-theme] body .glass-card, html[data-theme] body .plan-card, html[data-theme] body .contact-info-card, html[data-theme] body .ep-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: none; backdrop-filter: none; }
html[data-theme] body .glass-card:hover, html[data-theme] body .plan-card:hover { box-shadow: none; transform: none; }
/* Editorial home, built from real product imagery instead of a screenshot mockup. */
html[data-theme] body.site-home .hero { padding: 154px 28px 80px !important; min-height: auto; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
html .site-home .hero-layout { max-width: 1200px; grid-template-columns: 1fr 1fr; gap: 72px; }
html .site-home .hero-content { max-width: 540px; }
.hero-eyebrow { display: block; font-size: 10px; letter-spacing: .13em !important; font-weight: 600; color: var(--accent-primary); margin-bottom: 28px; }
html[data-theme] body.site-home .hero-title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(48px, 5.8vw, 76px) !important; line-height: 1.04 !important; font-weight: 400; letter-spacing: -.045em !important; color: var(--text-primary); margin-bottom: 26px; }
html .site-home .hero-description { color: var(--text-secondary); font-size: 16px !important; max-width: 460px; line-height: 1.8; margin-bottom: 28px; }
html .site-home .hero-buttons { gap: 10px; }
.workspace-preview { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 18px 44px #233b2f09; overflow: hidden; transform: rotate(-1deg); }
.preview-heading { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border-color); }
.preview-heading strong { font-size: 12px; font-weight: 600; }
.preview-heading > span:last-child { margin-left: auto; font-size: 8px; letter-spacing: .07em !important; color: var(--text-muted); }
.preview-monogram { display: grid; place-items: center; background: #21584b; color: white; width: 28px; height: 28px; border-radius: 5px; font-family: Georgia,serif; font-size: 23px; }
.preview-content { padding: 22px; }
.preview-label { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .1em !important; color: var(--text-muted); margin-bottom: 18px; }
.preview-product { display: grid; grid-template-columns: .95fr 1.05fr; background: var(--bg-secondary); border-radius: 6px; overflow: hidden; }
.preview-product img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; mix-blend-mode: multiply; }
.preview-product > div { padding: 30px 18px 30px 14px; }
.preview-kicker { font-size: 8px; letter-spacing: .07em !important; color: var(--text-secondary); }
.preview-product h2 { font-family: Georgia, serif; font-weight: 400; font-size: 26px; line-height: 1.14; letter-spacing: -.03em !important; margin: 15px 0 12px; }
.preview-product p { font-size: 11px; color: var(--text-secondary); line-height: 1.7; }
.preview-product a { display: inline-block; margin-top: 24px; color: var(--accent-primary); font-size: 10px; font-weight: 600; }
.preview-note { display: flex; gap: 12px; align-items: center; padding: 22px 0 2px; }
.preview-note-icon { display: grid; place-items: center; width: 32px; height: 32px; background: var(--bg-secondary); border-radius: 50%; }
.preview-note strong { font-size: 11px; font-weight: 600; }.preview-note p { font-size: 10px; color: var(--text-muted); margin-top: 3px; }
.preview-footer { display: flex; justify-content: space-between; padding: 14px 22px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 8px; letter-spacing: .06em !important; }
html .capability-grid { margin-top: 48px; border-color: var(--border-color); }
html .capability-card { background: transparent; min-height: 280px; padding: 28px; border-color: var(--border-color); }
html .capability-card:hover { background: var(--bg-card); transform: none; box-shadow: none; }
html .capability-card h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin: 30px 0 12px; letter-spacing: -.025em !important; }
html .capability-number { color: var(--accent-primary); font-size: 11px; font-weight: 500; }
html .capability-card a { color: var(--accent-primary); font-weight: 600; font-size: 12px; }
/* Calculator and community follow the same surface and control hierarchy. */
html .calculator-section { border-block: 1px solid var(--border-color); background: var(--bg-secondary) !important; }
html .calculator-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px !important; box-shadow: none; padding: 36px; }
html .calc-tabs-wrap { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; max-width: 450px; margin-bottom: 36px; }
html .calc-tab-btn { color: var(--text-secondary); border-radius: 4px; font-size: 13px; padding: 12px 18px; }
html .calc-tab-btn.active { color: var(--text-primary); background: var(--bg-card); box-shadow: 0 1px 3px #0001; }
html .field-header label, html .calc-field > label { color: var(--text-secondary) !important; font-size: 13px !important; }
html .field-value { color: var(--text-primary); font-size: 20px; font-weight: 600; }
html .calc-slider { background: var(--border-color); height: 4px; accent-color: var(--accent-primary); }
html .calc-slider::-webkit-slider-thumb { background: var(--accent-primary); width: 18px; height: 18px; box-shadow: none; border: 3px solid var(--bg-card); }
html .calc-right { background: var(--bg-secondary); border: 0; border-radius: 6px !important; padding: 24px; }
html .result-box { background: none; border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; padding: 16px 0; }
html .result-box.highlighted { background: none; border-color: var(--border-color); }
html .result-label { color: var(--text-muted); font-size: 10px; font-weight: 500; letter-spacing: .08em !important; }
html .result-value, html .result-value.green { color: var(--accent-primary); font-size: 30px; font-weight: 600; }
html .calc-subtext, html .field-hint { color: var(--text-muted); font-size: 12px; }
html .plan-pill-btn { color: var(--text-secondary); background: var(--bg-card); border-color: var(--border-color); border-radius: 5px; font-size: 11px; }
html .plan-pill-btn.active { color: #fff; background: #21584b; border-color: #21584b; }
html .community-section { background: var(--bg-primary); }
html .community-card { background: #e9eee5; border: 0; border-radius: 10px !important; box-shadow: none; padding: 56px 48px; color: #223b2d; }
html .community-card::before, html .community-card::after { display: none; }
html .community-title { color: #223b2d; font-size: 38px; font-weight: 500; letter-spacing: -.035em !important; }
html .community-eyebrow { color: #3b6450; background: none; border: 0; }
html .community-description, html .community-subtitle { color: #536551; }
html .btn-community { background: #21584b; color: #fff; border-radius: 6px; box-shadow: none; }
/* Forms, pricing, legal, administration */
html[data-theme] body .form-input { border: 1px solid var(--border-color); background: var(--bg-card); color: var(--text-primary); border-radius: 6px; padding: 12px 14px; font-size: 14px; min-height: 44px; box-shadow: none; }
html[data-theme] body .form-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 12%, transparent); }
html[data-theme] body .form-label { color: var(--text-primary); font-size: 12px; font-weight: 500; margin-bottom: 7px; }
.ui-public .auth-page { padding: 140px 24px 70px; background: var(--bg-primary); }
html .auth-card { max-width: 450px; padding: 36px; border-radius: 10px; }
html .auth-header { text-align: left; margin-bottom: 30px; }
html .auth-eyebrow { font-size: 9px; margin-bottom: 16px; }
html .auth-title { font-size: 30px; font-weight: 500; letter-spacing: -.035em !important; }
html .auth-subtitle { font-size: 14px; color: var(--text-secondary); margin-top: 10px; }
html .auth-footer { color: var(--text-secondary); font-size: 13px; border-color: var(--border-color); }
html .plans-grid { gap: 20px; }
html .plan-card { padding: 32px 26px; border-radius: 10px; }
html .plan-card.featured { border: 1px solid var(--accent-primary); background: var(--bg-card); transform: none; }
html .plan-name { color: var(--text-primary); font-size: 15px; font-weight: 600; }
html .plan-price { color: var(--text-primary); font-size: 38px; font-weight: 600; letter-spacing: -.04em !important; }
html .plan-price-period { font-size: 12px; color: var(--text-muted); font-weight: 400; }
html .plan-features li { font-size: 13px; line-height: 1.6; color: var(--text-secondary); }
html .plan-card::before { display: none; }
html .contact-info-icon, html .feature-icon { color: var(--accent-primary); background: var(--bg-secondary); border: 0; box-shadow: none; border-radius: 8px; }
html .data-table-wrapper { border: 1px solid var(--border-color); border-radius: 8px; box-shadow: none; overflow-x: auto; }
html .data-table { font-size: 13px; }
html .data-table th { background: var(--bg-secondary); color: var(--text-secondary); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: 0 !important; padding: 13px 16px; }
html .data-table td { padding: 16px; border-color: var(--border-color); }
html .admin-tab { background: transparent; border-radius: 5px; font-size: 13px; }
html .admin-tab.active { background: var(--accent-primary); color: var(--bg-card); }
html .stat-value { color: var(--text-primary); font-size: 30px; font-weight: 600; }
html .stat-label { color: var(--text-muted); font-size: 12px; }
html[data-theme] body .footer { background: var(--bg-secondary) !important; border-top: 1px solid var(--border-color); padding: 56px 28px 28px !important; }
html .footer-brand-desc, html .footer a, html .footer-bottom { color: var(--text-secondary); font-size: 12px; }
html .footer h4, html .footer-title { color: var(--text-primary); font-size: 12px; font-weight: 600; }
/* Workspace: quiet chrome, content comes first. */
html[data-theme] body .dashboard-wrapper, html[data-theme] body .dashboard-main { background: var(--bg-primary); }
html[data-theme] body .sidebar { background: var(--bg-card); border-right: 1px solid var(--border-color); box-shadow: none; }
html[data-theme] body .sidebar-header { padding: 24px 20px; border-bottom: 0; }
html[data-theme] body .sidebar-logo img { background: #fff; padding: 3px 7px; height: 34px; border-radius: 4px; }
html[data-theme] body .sidebar-user { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; padding: 12px; margin: 0 16px 16px; }
html[data-theme] body .sidebar-user-name { color: var(--text-primary); font-size: 13px; font-weight: 600; }
html[data-theme] body .sidebar-user-plan { color: var(--text-secondary); background: transparent; border: 0; padding: 0; font-size: 11px; }
html[data-theme] body .sidebar-section-label { color: var(--text-muted); font-size: 9px; letter-spacing: .1em !important; padding: 16px 12px 7px; }
html[data-theme] body .sidebar-link { color: var(--text-secondary); background: transparent; border: 0; border-radius: 5px; padding: 11px 12px; font-weight: 400; font-size: 12px; min-height: 40px; line-height: 1.5; }
html[data-theme] body .sidebar-link:hover { color: var(--text-primary); background: var(--bg-secondary); }
html[data-theme] body .sidebar-link.active { color: var(--accent-primary); background: var(--bg-secondary); box-shadow: inset 2px 0 var(--accent-primary); font-weight: 600; }
html[data-theme] body .sidebar-link-badge { font-size: 8px; padding: 2px 5px; color: var(--text-muted) !important; background: var(--bg-secondary) !important; border: 1px solid var(--border-color); border-radius: 3px; }
html[data-theme] body .sidebar-footer { background: transparent; border-color: var(--border-color); }
html[data-theme] body .dashboard-topbar { min-height: 72px; padding: 14px 30px; background: var(--bg-card); border-bottom: 1px solid var(--border-color); box-shadow: none; gap: 20px; }
html[data-theme] body .dashboard-topbar .topbar-title { color: var(--text-primary); font-size: 13px; font-weight: 500; }
html[data-theme] body .topbar-right { gap: 12px !important; }
html[data-theme] body #topbar-greeting { color: var(--text-muted); font-size: 11px; }
html[data-theme] body #ai-credits-header-bar, html[data-theme] body #asi-credits-bar { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; gap: 8px !important; }
html[data-theme] body #ai-credits-header-bar button, html[data-theme] body #asi-credits-bar button { background: var(--bg-secondary) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; box-shadow: none !important; border-radius: 5px !important; padding: 7px 10px !important; font-size: 10px !important; }
html[data-theme] body #ai-credits-header-bar span, html[data-theme] body #asi-credits-bar span { color: var(--text-secondary) !important; font-size: 11px !important; text-shadow: none !important; }
html[data-theme] body .dashboard-content { width: 100%; min-width: 0; padding: 32px; max-width: 1440px; margin-inline: auto; }
html[data-theme] body .tool-page { max-width: 1200px; }
html[data-theme] body .tool-header { margin-bottom: 28px; }
html[data-theme] body .tool-title { font-size: 28px; font-weight: 500; line-height: 1.25; color: var(--text-primary); letter-spacing: -.035em !important; }
html[data-theme] body .tool-subtitle { color: var(--text-secondary); font-size: 13px; line-height: 1.7; max-width: 640px; margin-top: 8px; }
html[data-theme] body .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
html[data-theme] body .product-card { padding: 14px !important; background: var(--bg-card) !important; border-radius: 8px !important; border: 1px solid var(--border-color) !important; box-shadow: none !important; gap: 16px !important; }
html[data-theme] body .product-card:hover { box-shadow: none !important; transform: none; border-color: var(--border-focus) !important; }
html[data-theme] body .product-card-body { gap: 16px !important; height: 100%; }
html[data-theme] body .product-image-container { border: 0 !important; border-radius: 4px !important; background: #f1f2ef !important; aspect-ratio: 1; }
html[data-theme] body .product-image-container img { object-fit: contain !important; mix-blend-mode: multiply; }
html[data-theme] body .product-info-container { gap: 14px !important; flex: 1; }
html[data-theme] body .product-info-container h3 { font-size: 14px !important; font-weight: 500 !important; line-height: 1.5 !important; margin-bottom: 10px !important; }
.catalog-price { color: var(--text-primary); font-size: 18px; font-weight: 600; line-height: 1.4; margin-bottom: 5px; font-variant-numeric: tabular-nums; }
.catalog-credit { font-size: 11px; color: var(--text-muted); font-weight: 400; margin-left: 5px; }
.catalog-delivery { color: var(--text-muted); font-size: 11px; line-height: 1.65; }
.catalog-delivery-badge { position: absolute; top: 8px; left: 8px; color: #365b44; background: #f7faf5; padding: 4px 7px; border: 1px solid #dfe7dc; border-radius: 3px; font-size: 9px; z-index: 10; }
html[data-theme] body .product-info-container .btn, html[data-theme] body .product-info-container .btn-add-cart { font-size: 12px !important; padding: 10px !important; min-height: 40px; }
html[data-theme] body .product-details { background: transparent; border-color: var(--border-color); box-shadow: none; border-radius: 4px; }
html[data-theme] body .product-details summary { color: var(--text-secondary); font-size: 11px; padding: 10px 0; }
html[data-theme] body .chat-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: none; }
html[data-theme] body .chat-header-bar, html[data-theme] body .chat-input-bar, html[data-theme] body .chat-input-area { background: var(--bg-card); border-color: var(--border-color); }
html[data-theme] body .chat-header-title { color: var(--text-primary); font-size: 14px; }
html[data-theme] body .chat-header-subtitle { color: var(--text-muted); }
html[data-theme] body .chat-messages-area { background: var(--bg-card); background-image: none; }
html[data-theme] body .chat-msg.assistant .chat-msg-bubble { color: var(--text-primary); background: var(--bg-secondary); border: 0; }
html[data-theme] body .chat-msg.user .chat-msg-bubble, html[data-theme] body .chat-send-btn { color: #fff; background: #21584b; box-shadow: none; }
html[data-theme] body .chat-welcome-orb, html[data-theme] body .chat-ai-avatar-badge { background: var(--bg-secondary); color: var(--accent-primary); box-shadow: none; border: 1px solid var(--border-color); }
html[data-theme] body .chat-welcome-title { color: var(--text-primary); font-size: 27px; font-weight: 500; letter-spacing: -.03em !important; }
html[data-theme] body .chat-chip { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 6px; box-shadow: none; }
html[data-theme] body .chat-input { background: var(--bg-card); color: var(--text-primary); border-color: var(--border-color); border-radius: 6px; }
html[data-theme] body .link-card, html[data-theme] body .note-card, html[data-theme] body .wf-acc-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px !important; box-shadow: none !important; }
html[data-theme] body .modal-content, html[data-theme] body .modal-card { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-xl); }
html[data-theme] body .cart-fab { background: #21584b; box-shadow: 0 4px 14px #173f3620; border-radius: 8px; }
/* Responsive rhythm, comfortable targets, and no hover-only information. */
@media (max-width: 1100px) {
  html .site-home .hero-layout { gap: 36px; }
  html[data-theme] body .dashboard-topbar { flex-wrap: wrap; gap: 12px; }
  html[data-theme] body #topbar-greeting { display: none; }
}
@media (max-width: 991px) {
  html .site-home .hero-layout { grid-template-columns: 1fr !important; gap: 44px !important; }
  html .site-home .hero-content { max-width: 620px !important; }
  .workspace-preview { transform: none; max-width: 620px; }
  html .capability-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 768px) {
  html[data-theme] body.ui-public .navbar, html[data-theme] body.ui-public .navbar.scrolled { padding: 14px 20px !important; }
  html .ui-public .nav-links { background: var(--bg-card) !important; border-color: var(--border-color) !important; box-shadow: none !important; gap: 8px; }
  html .ui-public .nav-links a:not(.btn-primary) { color: var(--text-primary) !important; }
  html[data-theme] body.site-home .hero { padding: 116px 20px 48px !important; }
  html[data-theme] body.site-home .hero-title { font-size: clamp(43px, 9vw, 64px) !important; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 22px; }
  html[data-theme] body .section { padding: 56px 20px !important; }
  html[data-theme] body .pricing-page { padding-top: 120px !important; }
  html[data-theme] body .section-title { font-size: 32px !important; }
  html .capability-grid { grid-template-columns: 1fr !important; }
  html .capability-card { min-height: auto !important; padding: 26px 20px !important; }
  html .capability-card h3 { margin-top: 20px !important; font-size: 21px !important; }
  html .calculator-card { padding: 24px 20px !important; }
  html .calc-tab-btn { padding: 10px; font-size: 12px; }
  html .community-card { padding: 32px 24px !important; }
  html .community-title { font-size: 30px !important; }
  html .auth-card { padding: 28px 24px; }
  html[data-theme] body .dashboard-content { padding: 20px 16px !important; }
  html[data-theme] body .dashboard-topbar { padding: 12px 16px; gap: 10px; }
  html[data-theme] body .topbar-right { width: 100%; gap: 8px !important; justify-content: flex-start; }
  html[data-theme] body #ai-credits-header-bar, html[data-theme] body #asi-credits-bar { flex: 1; }
  html[data-theme] body .tool-title { font-size: 25px; }
  html[data-theme] body .sidebar-link { min-height: 44px; font-size: 13px; }
  html[data-theme] body .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 12px !important; }
  html[data-theme] body .product-card { padding: 10px !important; }
  html[data-theme] body .product-card-body { gap: 12px !important; }
  html[data-theme] body .product-info-container h3 { font-size: 13px !important; height: auto !important; min-height: 39px; }
  .catalog-price { font-size: 16px; }.catalog-credit { display: block; margin: 3px 0 0; font-size: 10px; }
  .catalog-delivery { font-size: 10px; }
  html[data-theme] body .chat-container { height: calc(100dvh - 175px) !important; min-height: 430px; border-radius: 8px !important; }
}
@media (max-width: 420px) {
  .preview-heading { padding: 14px; }.preview-heading > span:last-child { display: none; }
  .preview-content { padding: 14px; }.preview-product img { min-height: 210px; }
  .preview-product > div { padding: 24px 12px; }.preview-product h2 { font-size: 23px; }
  .preview-product a { margin-top: 16px; }.preview-kicker { font-size: 7px; }
  .preview-footer { padding: 12px 14px; font-size: 7px; }
  html .hero-buttons .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Remove the legacy inset gradient button skin. */
html[data-theme] body .btn-primary::before, html[data-theme] body .btn-primary::after { content: none; }
html .site-home .hero-description { text-align: left; margin-left: 0; margin-right: 0; }
html .site-home .hero-buttons { justify-content: flex-start; }
html[data-theme] body.site-home .hero-title { font-size: clamp(48px, 4.8vw, 66px) !important; }
.brand-wordmark { display: inline-flex; align-items: baseline; gap: 5px; color: var(--text-primary); font-size: 23px; font-weight: 650; letter-spacing: -.06em !important; line-height: 1; }
.brand-wordmark small { color: var(--accent-primary); font-size: 10px; font-weight: 500; letter-spacing: .02em !important; }
html[data-theme] body .sidebar .brand-wordmark { font-size: 22px; }
@media (max-width: 768px) { html[data-theme] body.site-home .hero-title { font-size: clamp(43px, 9vw, 64px) !important; } }
html[data-theme] body.site-home .hero-description { color: var(--text-secondary) !important; }
html[data-theme] body .dashboard-topbar :is(#notification-bell-btn, #theme-toggle) { min-height: 34px; width: 34px; flex: 0 0 34px; }
html[data-theme] body .ui-dashboard .form-input { font-size: 14px; }
html[data-theme] body #wc-panel .form-input { font-size: 13px !important; min-height: 42px; border-radius: 5px; }
html[data-theme] body #wc-panel .form-label { font-size: 12px !important; }
html[data-theme] body #wc-panel :is(input[type="color"],input[type="checkbox"],input[type="radio"]) { min-height: auto; }
html[data-theme] body .weekly-reset-tooltip { box-shadow: var(--shadow-md); }
html[data-theme] body .ui-dashboard :is(.tool-page,.glass-card) h3 { font-weight: 600; }
@media (max-width: 768px) {
  html[data-theme] body .dashboard-topbar { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  html[data-theme] body .topbar-right { width: auto; justify-content: flex-end; }
  html[data-theme] body .dashboard-topbar:has(#ai-credits-header-bar button) { display: flex; }
  html[data-theme] body .dashboard-topbar:has(#ai-credits-header-bar button) .topbar-right { width: 100%; }
  html[data-theme] body .product-info-container span { padding: 0; }
}
html[data-theme] body .sidebar-link::before { display: none; }
html[data-theme] body .sidebar-nav { padding: 0 12px; }
html[data-theme] body .sidebar-footer { padding: 14px 12px 20px; }
html[data-theme] body :is(.workspace-tabs,.admin-tabs) { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; padding: 4px; }
html[data-theme] body :is(.workspace-tab,.tax-subtab,.platform-chip,.wf-chip) { border-radius: 4px; box-shadow: none; }
html[data-theme] body :is(.workspace-tab.active,.tax-subtab.active,.platform-chip.active,.wf-chip.active) { background: var(--bg-card); color: var(--accent-primary); box-shadow: 0 1px 3px #0001; }
html[data-theme] body :is(.wf-next-btn,.wf-launch-btn,.wf-dot.wf-dot-active) { background: #21584b !important; color: #fff; box-shadow: none !important; border-radius: 5px !important; }
html[data-theme] body :is(.wf-nav-item.wf-nav-active,.wf-choice-active,.wf-goal-active,.wf-aud-active,.wf-time-active,.wf-exp-active) { background: var(--bg-secondary); color: var(--accent-primary); border-color: var(--accent-primary); box-shadow: none; }
html[data-theme] body :is(.wf-checklist-panel,.wf-main-panel,.coming-soon-card,.script-output,.upload-area) { border-radius: 8px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: none; }
html[data-theme] body .admin-tab.active { background: var(--bg-card); color: var(--accent-primary); }
html[data-theme] body .footer-column a:hover { color: var(--accent-primary); }
@media (max-width: 991px) { html .calc-body { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 768px) { html .footer-grid { grid-template-columns: 1fr; } }
html[data-theme] body :is(.chat-action-btn,.super-thinking-btn) { border-radius: 5px; box-shadow: none; font-size: 11px; font-weight: 500; }
html[data-theme] body .chat-new-btn { background: #21584b; box-shadow: none; border-color: #21584b; }
html[data-theme] body .chat-send-btn { border-radius: 6px; box-shadow: none; }
html[data-theme] body .super-thinking-btn.active, html[data-theme] body .super-thinking-btn:hover { color: var(--accent-primary); border-color: var(--accent-primary); background: var(--bg-secondary); }
html[data-theme] body .st-credit-tag { background: var(--bg-secondary); color: var(--text-muted); border-radius: 3px; font-size: 9px; }
html[data-theme] body .st-bolt { font-size: 0; }.st-bolt::before { content: '↗'; font-size: 14px; }
html[data-theme] body .chat-welcome-orb { width: 60px; height: 60px; border-radius: 10px; }
.assistant-monogram { font: 34px Georgia,serif; color: var(--accent-primary); }
.chat-ai-avatar-badge .assistant-monogram { font-size: 23px; }
html[data-theme] body .chat-welcome-sub { max-width: 480px; font-size: 14px; line-height: 1.8; }
html[data-theme] body .chat-welcome-title { font-size: 28px; }
html[data-theme] body select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23697168' stroke-width='1.5'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
html[data-theme] body .affiliate-hero { padding: 144px 24px 64px; background: var(--bg-primary); border-bottom: 1px solid var(--border-color); }
html[data-theme] body .affiliate-hero-title { font: 400 clamp(44px,5vw,64px)/1.08 Georgia,serif; letter-spacing: -.04em; }
html[data-theme] body .affiliate-hero-desc { font-size: 15px; line-height: 1.85; max-width: 580px; }
html[data-theme] body .commission-badge { font-size: 12px; font-weight: 500; border-radius: 5px; background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--accent-primary); box-shadow: none; }
html[data-theme] body .plan-price { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
html[data-theme] body .plan-price-period { letter-spacing: 0; }
html[data-theme] body :is(.page-privacy,.page-terms) .container { max-width: 960px; }
html[data-theme] body :is(.community-bullet-list,.community-subnote,.social-pill-link) { color: #536551; border-color: #cbd8c5; }
@media (max-width: 768px) {
  html[data-theme] body:is(.page-contact,.page-privacy,.page-terms,.page-admin) > .section { padding-top: 120px !important; }
  html[data-theme] body .affiliate-hero { padding-top: 120px; }
  html[data-theme] body .page-affiliate .features-grid, html[data-theme] body.page-affiliate .features-grid { grid-template-columns: 1fr !important; }
  html[data-theme] body .auth-page { padding-top: 104px; }
}
html[data-theme] body svg[fill="none"] { fill: none; }
/* Dashboard shell: content and header controls must size to the available space. */
html[data-theme] body .dashboard-main { min-width: 0; }
html[data-theme] body .dashboard-topbar { flex-wrap: wrap; }
html[data-theme] body .topbar-left { min-width: 0; flex: 1 1 150px; }
html[data-theme] body .topbar-right { min-width: 0; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
html[data-theme] body #asi-credits-bar .btn { width: auto; flex: 0 0 auto; white-space: nowrap; min-height: 34px; }
html[data-theme] body #ai-credits-header-bar, html[data-theme] body #asi-credits-bar { flex-shrink: 0; }
html[data-theme] body #asi-credits-bar > div, html[data-theme] body .ai-credits-balance-pill { background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important; border-radius: 6px !important; box-shadow: none !important; }
html[data-theme] body #asi-credits-bar > div { padding: 5px 8px; flex-wrap: wrap !important; }
html[data-theme] body #asi-credits-bar > div > div { background: transparent !important; border: 0 !important; padding: 0 4px !important; }
html[data-theme] body .dash-section { min-width: 0; }
html[data-theme] body .dash-section .tool-page { width: 100%; min-width: 0; }
html[data-theme] body .workspace-tabs { overflow-x: auto; }
html[data-theme] body .workspace-tab { white-space: nowrap; }
html[data-theme] body .wc-settings-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
html[data-theme] body .wc-settings-grid > div { min-width: 0; }
@media (max-width: 1100px) {
  html[data-theme] body #topbar-greeting { display: none; }
  html[data-theme] body .wc-settings-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 768px) {
  html[data-theme] body .dashboard-topbar { display: flex; padding: 12px 16px !important; gap: 12px !important; }
  html[data-theme] body .topbar-left { flex-basis: 100%; }
  html[data-theme] body .topbar-right { width: 100%; justify-content: flex-start; margin: 0; gap: 8px !important; }
  html[data-theme] body #ai-credits-header-bar, html[data-theme] body #asi-credits-bar { flex: 0 1 auto; }
  html[data-theme] body .dashboard-content { padding: 24px 16px !important; }
  html[data-theme] body .workspace-tabs { justify-content: flex-start; }
  html[data-theme] body .workspace-tab { padding-inline: 16px; flex: 1 0 auto; }
}
html[data-theme] body .dashboard-promo-notice { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: 100%; margin-bottom: 24px; padding: 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); box-shadow: var(--shadow-lg); }
.dashboard-promo-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.dashboard-promo-copy strong { font-size: 12px; font-weight: 600; line-height: 1.5; }
.dashboard-promo-copy span { font-size: 10px; color: var(--text-muted); }
html[data-theme] body .dashboard-promo-claim { min-height: 34px; padding: 8px 12px; flex: 0 0 auto; font-size: 11px; }
.dashboard-promo-dismiss { align-self: flex-start; background: transparent; border: 0; color: var(--text-muted); font-size: 20px; line-height: 1; padding: 2px; cursor: pointer; }
@media (max-width: 768px) {
  html[data-theme] body .dashboard-promo-notice { gap: 10px; padding: 12px; }
}
html[data-theme] body #video-tutorials-container { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important; }
html[data-theme] body .wc-settings-grid input { min-width: 0; }
@media (max-width: 480px) {
  html[data-theme] body #wc-inv-search-controls { grid-template-columns: minmax(0, 1fr); }
  html[data-theme] body #notification-dropdown { width: min(320px, calc(100vw - 32px)) !important; right: -40px !important; }
}
html[data-theme] body .order-status-tabs { max-width: 100%; overflow-x: auto; }
html[data-theme] body .order-status-tabs button { white-space: nowrap; flex: 0 0 auto; font-size: 12px !important; padding: 9px 14px !important; }
html[data-theme] body .order-status-tabs span:empty { display: none; }
html[data-theme] body .credits-filter-row { grid-template-columns: minmax(0,1fr) auto !important; }
html[data-theme] body .credits-filter-row input { min-width: 0; }
@media (max-width: 480px) {
  html[data-theme] body .credits-filter-row { grid-template-columns: minmax(0,1fr) !important; }
  html[data-theme] body #wc-inv-search-controls { grid-template-columns: minmax(0, 1fr) !important; }
}
