:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-deep: #f5f7fa;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --surface: #f6f8fb;
  --line: rgba(21, 42, 72, .1);
  --line-strong: rgba(21, 42, 72, .17);
  --text: #10213a;
  --muted: #66758a;
  --accent: #3478f6;
  --accent-strong: #1f5fc9;
  --accent-2: #665cf6;
  --link: #1f5fc9;
  --danger: #d94d67;
  --shadow: rgba(31, 54, 84, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; color: var(--text); background: #fff; }
::selection { color: #fff; background: rgba(52,120,246,.72); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 760; letter-spacing: -.03em; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; flex: 0 0 34px; background: url("/assets/talrine-icon-v4-square.png") center / contain no-repeat; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.btn { border: 0; border-radius: 12px; padding: 12px 17px; color: #fff; background: linear-gradient(135deg, #4d8bff, var(--accent)); box-shadow: 0 7px 20px rgba(52,120,246,.16); font-weight: 740; cursor: pointer; transition: transform .18s, filter .18s, box-shadow .18s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); box-shadow: 0 10px 26px rgba(52,120,246,.24); }
.btn:focus-visible { outline: 3px solid rgba(112,148,255,.42); outline-offset: 3px; }
.btn.secondary { color: var(--text); background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 4px 14px rgba(31,54,84,.05); }
.btn.full { width: 100%; }
.hero { min-height: 620px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
.eyebrow { color: var(--accent-strong); font-size: 13px; font-weight: 760; text-transform: uppercase; letter-spacing: .14em; }
h1 { max-width: 680px; margin: 18px 0; font-size: clamp(44px, 6vw, 78px); line-height: .98; letter-spacing: -.065em; }
.hero p { max-width: 570px; color: var(--muted); font-size: 18px; line-height: 1.7; }
.actions { display: flex; gap: 12px; margin-top: 30px; }
.visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.glow { position: absolute; width: 330px; height: 330px; border-radius: 50%; background: linear-gradient(135deg, rgba(52,120,246,.12), rgba(102,92,246,.09)); filter: blur(44px); }
.live-card { position: relative; width: min(410px, 100%); padding: 20px; border: 1px solid var(--line-strong); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px var(--shadow); transform: rotate(2deg); }
.live-header, .row, .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.live-header { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-strong); }
.status:before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 14px currentColor; }
.video { height: 205px; margin: 16px 0; border: 1px solid rgba(52,120,246,.1); border-radius: 15px; display: grid; place-items: center; background: radial-gradient(circle at 72% 18%, rgba(102,92,246,.12), transparent 32%), linear-gradient(135deg, #edf4ff, #f6f9fd 58%, #edf2f8); color: #708096; font-size: 13px; }
.comment { padding: 10px 0; border-top: 1px solid var(--line); font-size: 13px; }
.comment span { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0 0 80px; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(31,54,84,.035); transition: transform .2s, border-color .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-2px); border-color: rgba(52,120,246,.28); box-shadow: 0 12px 30px rgba(31,54,84,.065); }
.feature h3 { margin: 14px 0 8px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }
.icon { color: var(--accent-strong); font-size: 22px; }
.auth-page { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 30px; }
.auth-page { background: #fff; }
.auth-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 20px 55px var(--shadow); }
.auth-card h1 { font-size: 34px; margin: 25px 0 8px; }
.auth-card p { color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 8px; margin: 18px 0; color: #354760; font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 11px; background: #fff; outline: none; font: inherit; transition: border-color .18s, box-shadow .18s, background .18s; }
.field textarea { resize: vertical; line-height: 1.55; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-2); background: #fff; box-shadow: 0 0 0 3px rgba(84,125,241,.12); }
.field small { color: var(--muted); font-size: 10px; font-weight: 500; line-height: 1.45; }
.field-unit { float: right; color: var(--muted); font-size: 10px; font-weight: 600; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; top: 50%; right: 10px; width: 38px; height: 38px; padding: 8px; transform: translateY(-50%); color: var(--muted); border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--text); background: rgba(16,33,58,.06); }
.password-toggle:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 1px; }
.password-toggle svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password-toggle .eye-off { display: none; }
.password-toggle.is-visible .eye-open { display: none; }
.password-toggle.is-visible .eye-off { display: block; }
.hidden { display: none; }
.form-note, .switch { color: var(--muted); font-size: 13px; text-align: center; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.google-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.or-divider:before, .or-divider:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-note { margin: 20px 0 0; }
.form-note a, .legal-page a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.legal-page { max-width: 900px; padding: 58px 0 80px; }
.legal-page article { margin-top: 52px; }
.legal-kicker { display: flex; align-items: center; gap: 14px; }
.policy-status { padding: 6px 10px; border: 1px solid rgba(52,120,246,.2); border-radius: 99px; color: var(--accent-strong); background: rgba(52,120,246,.07); font-size: 11px; font-weight: 760; letter-spacing: .05em; }
.legal-page h1 { margin: 12px 0; font-size: clamp(42px, 6vw, 64px); }
.legal-page h2 { margin: 38px 0 10px; font-size: 21px; }
.legal-page p, .legal-page li { color: #53657b; line-height: 1.85; }
.legal-page li + li { margin-top: 8px; }
.legal-date { color: var(--muted) !important; font-size: 14px; }
.legal-lead { margin: 28px 0; padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: 0 14px 14px 0; background: rgba(52,120,246,.06); }
.legal-lead p { margin: 0; color: #354a61; }
.policy-toc { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #f8fafc; }
.policy-toc a { padding: 7px 10px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.policy-toc a:hover { color: var(--text); background: rgba(84,125,241,.07); }
.callout { padding: 15px 17px; border: 1px solid rgba(84,125,241,.17); border-radius: 13px; color: #405b82 !important; background: rgba(84,125,241,.055); }
.deletion-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 12px; }
.deletion-steps > div { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 10px 30px rgba(31,54,84,.045); }
.deletion-steps span { display: block; color: var(--accent-strong); font-size: 12px; font-weight: 800; letter-spacing: .1em; }
.deletion-steps strong { display: block; margin-top: 12px; }
.deletion-steps p { margin: 5px 0 0; font-size: 13px; line-height: 1.55; }
.legal-footer { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 55px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; }
.legal-footer:before { content: "© 2026 Talrine. All rights reserved."; margin-right: auto; color: var(--muted); }
.site-footer { color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
.site-footer-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.switch { margin-top: 24px; }
.switch a { color: var(--link); }
.link-warning { margin: 22px 0; padding: 13px 15px; border: 1px solid rgba(84,125,241,.16); border-radius: 12px; color: #405b82; background: rgba(84,125,241,.055); font-size: 13px; line-height: 1.6; }
.form-error { min-height: 20px; color: var(--danger); }
.cancel-link { display: block; margin: 16px auto 0; padding: 8px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.cancel-link:hover { color: var(--text); }
.dashboard { min-height: 100vh; }
.app-nav { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.topbar { height: 72px; }
.user-pill { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.account-link { display: flex; align-items: center; gap: 10px; padding: 4px 7px 4px 4px; border-radius: 99px; }
.account-link:hover, .account-link[aria-current="page"] { color: var(--text); background: var(--surface); }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--accent); font-weight: 800; }
.user-menu { position: relative; }
.user-menu-trigger { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 4px 8px 4px 4px; color: var(--muted); border: 1px solid transparent; border-radius: 99px; background: transparent; cursor: pointer; }
.user-menu-trigger:hover, .user-menu.open .user-menu-trigger { color: var(--text); border-color: var(--line); background: #fff; box-shadow: 0 6px 18px rgba(31,54,84,.06); }
.user-menu-trigger > svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
.user-menu.open .user-menu-trigger > svg { transform: rotate(180deg); }
.user-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 80; width: 304px; overflow: hidden; visibility: hidden; opacity: 0; transform: translateY(-7px) scale(.98); transform-origin: top right; border: 1px solid var(--line-strong); border-radius: 16px; background: #fff; box-shadow: 0 22px 60px rgba(31,54,84,.18); transition: opacity .16s, transform .16s, visibility .16s; }
.user-menu.open .user-menu-panel { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.user-menu-identity { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; padding: 17px; background: #fafbfc; }
.user-menu-identity .avatar { width: 38px; height: 38px; }
.user-menu-identity b, .user-menu-identity small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu-identity b { color: var(--text); font-size: 13px; }
.user-menu-identity small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.user-menu-section { display: grid; gap: 2px; padding: 9px; border-top: 1px solid var(--line); }
.user-menu-section > span { padding: 4px 9px 5px; color: #9aa4b2; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.user-menu-section a, .user-menu-section button { width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 9px; text-align: left; color: #43536a; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
.user-menu-section a:hover, .user-menu-section button:hover { color: var(--text); background: var(--surface); }
.user-menu-section svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.user-menu-section b, .user-menu-section small { display: block; }
.user-menu-section b, .user-menu-section button span { font-size: 12px; font-weight: 700; }
.user-menu-section small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; }
.user-menu-footer button { color: #b44055; }
.workspace { padding: 42px 0 70px; }
.workspace h1 { margin: 10px 0; font-size: 42px; }
.workspace-sub { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 30px 0; }
.stat, .panel { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 5px 18px rgba(31,54,84,.035); }
.stat { padding: 20px; }
.stat small { color: var(--muted); }
.stat strong { display: block; margin-top: 13px; font-size: 28px; }
.stat .public-id { font-size: clamp(16px, 2vw, 24px); letter-spacing: .025em; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; }
.panel { padding: 22px; }
.panel h2 { margin: 0 0 18px; font-size: 18px; }
.empty { padding: 28px 0; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
.empty .btn { margin-top: 16px; }
.page-row { padding: 14px 0; border-top: 1px solid var(--line); }
.page-row small { display: block; color: var(--muted); margin-top: 4px; }
.notice { padding: 13px 15px; border-radius: 12px; color: #405b82; background: rgba(84,125,241,.06); font-size: 13px; line-height: 1.5; }

.account-layout { display: grid; grid-template-columns: 210px minmax(0, 800px); gap: 64px; align-items: start; padding: 48px 0 80px; }
.settings-nav { position: sticky; top: 104px; }
.settings-back { display: inline-block; margin-bottom: 30px; color: var(--muted); font-size: 13px; }
.settings-back:hover { color: var(--text); }
.settings-nav-title { margin-bottom: 10px; color: var(--text); font-size: 13px; font-weight: 760; }
.settings-nav nav { display: grid; gap: 4px; }
.settings-nav nav a { padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.settings-nav nav a:hover { color: var(--text); background: var(--surface); }
.settings-nav nav a.active { color: var(--accent-strong); background: rgba(52,120,246,.08); font-weight: 700; }
.account-content { min-width: 0; }
.account-heading { margin-bottom: 34px; }
.account-heading h1 { margin: 10px 0; font-size: clamp(38px, 5vw, 52px); }
.account-heading p { margin: 0; color: var(--muted); line-height: 1.65; }
.account-loading { padding: 28px; border: 1px solid var(--line); border-radius: 18px; color: var(--muted); background: var(--surface); }
.account-sections { display: grid; gap: 18px; }
.settings-card { scroll-margin-top: 100px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 7px 22px rgba(31,54,84,.04); }
.settings-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settings-card h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.settings-card h3 { margin: 0 0 6px; font-size: 16px; }
.settings-card-heading p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #4d8bff, #665cf6); font-size: 18px; font-weight: 800; }
.identity-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 24px 0 6px; padding: 15px 16px; border-radius: 13px; background: var(--surface); }
.identity-strip div { min-width: 0; }
.identity-strip span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.identity-strip strong { display: block; overflow: hidden; text-overflow: ellipsis; letter-spacing: .035em; }
.text-button { flex: 0 0 auto; padding: 8px 10px; color: var(--accent-strong); border: 0; border-radius: 9px; background: rgba(52,120,246,.07); font-size: 12px; font-weight: 700; cursor: pointer; }
.text-button:hover { background: rgba(52,120,246,.12); }
.settings-form { margin-top: 22px; }
.settings-form .field { margin: 16px 0; }
.settings-form .field small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.settings-form .field input:disabled { color: #718096; background: #f5f7fa; cursor: not-allowed; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.inline-status { color: var(--muted); font-size: 13px; }
.inline-status.success { color: #256d52; }
.inline-status.error { color: var(--danger); }
.login-method { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.settings-card-heading + .login-method { margin-top: 14px; border-top: 1px solid var(--line); }
.method-icon { width: 34px; height: 34px; padding: 6px; }
.talrine-method { display: grid; place-items: center; padding: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #4d8bff, #665cf6); font-weight: 800; }
.login-method strong, .login-method small { display: block; }
.login-method small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.method-badge { padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 11px; font-weight: 700; }
.method-badge.connected { color: var(--accent-strong); border-color: rgba(52,120,246,.16); background: rgba(52,120,246,.07); }
.method-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.password-form { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.password-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.password-grid .field { margin-bottom: 8px; }
.password-help { color: var(--muted); font-size: 12px; }
.policy-links { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.policy-links a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.policy-links a:hover { color: var(--accent-strong); }
.policy-links b { color: var(--accent-strong); font-size: 12px; }
.account-meta { margin-top: 20px; color: var(--muted); font-size: 12px; }
@media (max-width: 800px) { .hero, .dashboard-grid { grid-template-columns: 1fr; gap: 20px; } .hero { padding: 50px 0; } .visual { min-height: 350px; } .feature-grid, .stats { grid-template-columns: 1fr 1fr; } .nav-links a:not(.btn) { display: none; } }
@media (max-width: 800px) { .account-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 28px; } .settings-nav { position: static; } .settings-back { margin-bottom: 18px; } .settings-nav nav { display: flex; overflow-x: auto; padding-bottom: 4px; } .settings-nav nav a { white-space: nowrap; } }
@media (max-width: 520px) { .shell { width: min(100% - 28px, 1180px); } h1 { font-size: 50px; } .feature-grid, .stats, .deletion-steps { grid-template-columns: 1fr; } .auth-card { padding: 25px; } .legal-page { padding-top: 35px; } .legal-page article { margin-top: 38px; } }
@media (max-width: 520px) { .topbar { height: 66px; } .user-menu-trigger > [data-user-email] { display: none; } .user-menu-panel { width: min(304px, calc(100vw - 28px)); } .settings-card { padding: 21px; } .password-grid { grid-template-columns: 1fr; gap: 0; } .form-actions { align-items: flex-start; flex-direction: column; } .identity-strip { align-items: flex-start; } }
@media (max-width: 520px) { .site-footer-inner { padding: 18px 0; flex-direction: column; align-items: flex-start; gap: 10px; } }

/* Authenticated workspace shell */
.workbench-body { min-height: 100vh; background: #f7f8fb; }
.workbench-app { min-height: 100vh; }
.workbench-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 264px; display: flex; flex-direction: column; overflow-y: auto; padding: 22px 16px 18px; border-right: 1px solid var(--line); background: #fff; }
.sidebar-brand-row { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sidebar-brand-row .brand { font-size: 19px; }
.sidebar-close, .sidebar-open { display: none; color: var(--text); border: 0; background: transparent; cursor: pointer; }
.workspace-switcher { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 24px 0 20px; padding: 11px; text-align: left; color: var(--text); border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; opacity: 1; }
.workspace-switcher-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #4d8bff, #665cf6); font-weight: 800; }
.workspace-switcher b, .workspace-switcher small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-switcher b { font-size: 13px; }
.workspace-switcher small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; }
.workspace-switcher-arrow { color: #8a97a9; }
.workspace-nav { display: grid; gap: 22px; }
.workspace-nav-group { display: grid; gap: 4px; }
.workspace-nav-label { padding: 0 11px 7px; color: #9aa4b2; font-size: 10px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.workspace-nav a, .sidebar-bottom a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 9px 11px; border-radius: 10px; color: #536174; font-size: 13px; font-weight: 600; }
.workspace-nav a:hover, .sidebar-bottom a:hover { color: var(--text); background: var(--surface); }
.workspace-nav a.active { color: #1f5fc9; background: #eef4ff; }
.workspace-nav svg, .sidebar-bottom svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.workspace-nav a[data-workspace-nav="overview"] svg { fill: currentColor; stroke: none; }
.workspace-nav em { margin-left: auto; padding: 3px 6px; border-radius: 99px; color: #4769c8; background: #e9efff; font-size: 9px; font-style: normal; font-weight: 800; }
.sidebar-bottom { display: grid; gap: 3px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.sidebar-bottom small { padding: 12px 11px 0; color: #a1aab6; font-size: 10px; }
.sidebar-scrim { display: none; }
.workbench-main { min-height: 100vh; margin-left: 264px; }
.workbench-topbar { position: sticky; top: 0; z-index: 20; height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); }
.workbench-topbar-left { display: flex; align-items: center; gap: 12px; color: #5e6c80; font-size: 13px; font-weight: 700; }
.btn.compact { padding: 9px 13px; border-radius: 10px; font-size: 12px; }
.workbench-content { width: min(1440px, 100%); margin: 0 auto; padding: 36px 38px 70px; }
.workspace-view[hidden] { display: none; }
.view-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 28px; }
.view-heading h1 { margin: 8px 0 9px; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; letter-spacing: -.045em; }
.view-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.view-heading .btn[disabled], .console-tools button[disabled], .table-toolbar button[disabled] { cursor: not-allowed; filter: none; opacity: .55; box-shadow: none; }
.overview-status-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 16px; }
.status-summary-card, .workbench-card { border: 1px solid var(--line); background: #fff; box-shadow: 0 5px 18px rgba(31,54,84,.03); }
.status-summary-card { padding: 18px; border-radius: 15px; }
.status-summary-card span, .status-summary-card small { display: block; color: var(--muted); }
.status-summary-card span { font-size: 11px; font-weight: 700; }
.status-summary-card strong { display: block; margin: 11px 0 5px; font-size: 20px; letter-spacing: -.025em; }
.status-summary-card small { font-size: 11px; line-height: 1.45; }
.workbench-card { border-radius: 18px; padding: 24px; }
.workbench-card h2 { margin: 3px 0 0; font-size: 18px; letter-spacing: -.025em; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 16px; }
.card-heading-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-kicker { color: var(--accent-strong); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.progress-label { padding: 5px 9px; border-radius: 99px; color: #4769c8; background: #edf2ff; font-size: 11px; font-weight: 800; }
.setup-progress { height: 4px; margin: 20px 0 13px; overflow: hidden; border-radius: 99px; background: #edf0f4; }
.setup-progress i { display: block; width: 25%; height: 100%; border-radius: inherit; background: #3478f6; }
.setup-list { display: grid; margin: 0; padding: 0; list-style: none; }
.setup-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.setup-list li > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); font-size: 11px; font-weight: 800; }
.setup-list li.complete > span { color: #fff; border-color: #3478f6; background: #3478f6; }
.setup-list b, .setup-list small { display: block; }
.setup-list b { font-size: 13px; }
.setup-list small { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.setup-list em { padding: 4px 7px; border-radius: 99px; color: #665cf6; background: #f0efff; font-size: 9px; font-style: normal; font-weight: 800; }
.capability-list { display: grid; margin-top: 18px; }
.capability-list > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 12px; }
.capability-list span { display: flex; align-items: center; gap: 9px; }
.capability-list i, .live-readiness-bar i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #bbc3ce; }
.capability-list b { color: var(--muted); font-size: 11px; }
.capability-note { margin: 14px 0 0; padding: 12px; border-radius: 11px; color: #63738a; background: #f6f8fb; font-size: 11px; line-height: 1.6; }
.live-readiness-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; color: #65748a; background: #fff; font-size: 11px; }
.live-readiness-bar span { display: inline-flex; align-items: center; gap: 7px; }
.live-readiness-bar time { margin-left: auto; color: #8b96a5; }
.live-console-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(330px, 1fr); gap: 16px; min-height: 610px; }
.comments-console, .video-console { display: flex; flex-direction: column; }
.console-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.console-heading > div { display: flex; align-items: center; gap: 10px; }
.console-heading h2 { margin: 0; }
.console-heading span { padding: 4px 7px; border-radius: 99px; color: var(--muted); background: var(--surface); font-size: 10px; }
.console-tools { display: flex; gap: 4px; }
.console-tools button, .table-toolbar button { padding: 7px 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 10px; }
.console-empty, .large-empty { flex: 1; display: grid; place-content: center; justify-items: center; min-height: 390px; text-align: center; }
.empty-illustration { width: 54px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #6682d8; background: #edf2ff; letter-spacing: 3px; }
.console-empty h3, .large-empty h3 { margin: 18px 0 7px; font-size: 15px; }
.console-empty p, .large-empty p { max-width: 390px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.video-placeholder { min-height: 300px; display: grid; place-content: center; justify-items: center; margin-top: 18px; border: 1px solid #e3e7ed; border-radius: 14px; text-align: center; background: #f5f6f8; }
.video-placeholder > span { width: 48px; height: 48px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; color: #fff; background: #a9b3c0; font-size: 15px; }
.video-placeholder b { margin-top: 16px; font-size: 13px; }
.video-placeholder small { max-width: 230px; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.live-meta { display: grid; margin: 18px 0 0; }
.live-meta div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; }
.live-meta dt { color: var(--muted); }
.live-meta dd { margin: 0; font-weight: 700; }
.table-card { padding: 0; overflow: hidden; }
.table-toolbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.table-toolbar h2 { margin: 0; }
.table-toolbar > span { color: var(--muted); font-size: 11px; }
.large-empty > span { color: #9aa6b7; font-size: 30px; }
.channel-grid, .settings-placeholder-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.connect-card { padding: 36px; }
.facebook-symbol { width: 48px; height: 48px; display: grid; place-items: end center; overflow: hidden; border-radius: 13px; color: #fff; background: #1877f2; font-family: Arial, sans-serif; font-size: 42px; font-weight: 800; line-height: .9; }
.connect-card h2 { margin-top: 20px; font-size: 22px; }
.connect-card > p { max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.connection-requirements { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.connection-requirements span { padding: 7px 10px; border-radius: 9px; color: #607087; background: #f3f5f8; font-size: 10px; font-weight: 700; }
.plain-list { margin: 18px 0 0; padding-left: 18px; color: #5d6d82; font-size: 12px; line-height: 1.8; }
.member-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 20px 22px; }
.member-row b, .member-row small { display: block; }
.member-row small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.feature-pending { padding: 14px 22px; border-top: 1px solid var(--line); color: var(--muted); background: #fafbfc; font-size: 11px; }
.settings-placeholder-grid .workbench-card > h2 { margin-bottom: 20px; }
.field-help { color: var(--muted); font-size: 11px; }
.settings-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 12px; }
.settings-line b { color: var(--muted); font-size: 11px; }
.workspace-currency-form { margin-top: 6px; padding-top: 4px; border-top: 1px solid var(--line); }
.workspace-currency-form .field { margin: 14px 0 12px; }
.workspace-setting-actions { display: flex; align-items: center; gap: 12px; }
.workspace-setting-status { color: var(--muted); font-size: 11px; }
.workspace-setting-status.success { color: #146c43; }
.workspace-setting-status.error { color: #a33c4f; }

/* Commerce workspace */
.commerce-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.commerce-table-card { min-height: 430px; }
.table-toolbar > div:first-child h2, .table-toolbar > div:first-child span { display: block; }
.table-toolbar > div:first-child span { margin-top: 5px; color: var(--muted); font-size: 10px; }
.table-search { width: min(260px, 40vw); display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.table-search svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: #8995a5; stroke-width: 1.8; }
.table-search input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.table-loading { padding: 28px 22px; color: var(--muted); font-size: 12px; }
.data-table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 16px; color: #8b96a5; background: #fafbfc; font-size: 10px; font-weight: 700; text-align: left; white-space: nowrap; }
.data-table td { padding: 15px 16px; border-top: 1px solid var(--line); color: #526176; vertical-align: middle; white-space: nowrap; }
.data-table td:first-child { min-width: 230px; color: var(--text); white-space: normal; }
.product-list-identity { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 11px; align-items: center; }
.product-list-thumbnail { width: 46px; height: 46px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: #98a5b7; background: #f5f7fa; font-size: 10px; }
.product-list-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.product-name-cell b, .product-name-cell small { display: block; }
.product-name-cell small { margin-top: 4px; color: #98a2b1; font-size: 9px; }
.product-category-cell b, .product-category-cell small { display: block; }
.product-category-cell b { color: #536174; font-size: 11px; }
.product-category-cell small { margin-top: 4px; color: #98a2b1; font-size: 9px; }
.low-stock-value { color: #a06416; font-weight: 700; }
.table-action { padding: 6px 9px; color: var(--accent-strong); border: 1px solid #d9e4fb; border-radius: 8px; background: #f8faff; font-size: 10px; font-weight: 700; cursor: pointer; }
.table-action:hover { background: #eef4ff; }
.commerce-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; color: #66758a; background: #f2f4f7; font-size: 9px; font-weight: 700; }
.commerce-status.active, .commerce-status.paid, .commerce-status.fulfilled, .commerce-status.completed { color: #146c43; background: #eaf7f0; }
.commerce-status.pending, .commerce-status.processing, .commerce-status.unfulfilled, .commerce-status.open { color: #98651a; background: #fff5df; }
.commerce-status.cancelled, .commerce-status.failed, .commerce-status.refunded { color: #a33c4f; background: #fcedf0; }
.commerce-empty { min-height: 350px; display: grid; place-content: center; justify-items: center; padding: 42px 20px; text-align: center; }
.commerce-empty .empty-box-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #6480d7; background: #edf2ff; font-size: 22px; }
.commerce-empty h3 { margin: 17px 0 7px; font-size: 15px; }
.commerce-empty p { max-width: 420px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.order-filter-note { color: var(--muted); font-size: 10px; }
.account-connect-card { padding: 30px; }
.account-connect-card > p { max-width: 680px; margin: 16px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.platform-list { display: grid; border-top: 1px solid var(--line); }
.platform-list > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.platform-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; font-size: 18px; font-weight: 800; }
.platform-symbol.facebook { background: #1877f2; }
.platform-symbol.instagram { background: linear-gradient(135deg, #7b36c9, #e14975, #f2a33a); }
.platform-symbol.tiktok { color: #fff; background: #17191d; }
.platform-list b, .platform-list small { display: block; }
.platform-list b { font-size: 12px; }
.platform-list small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.platform-list em { padding: 5px 8px; border-radius: 99px; color: #687890; background: #f2f4f7; font-size: 9px; font-style: normal; font-weight: 700; }
.connected-accounts-card { margin-top: 16px; }
.connected-account-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.connected-account-row b, .connected-account-row small { display: block; }
.connected-account-row small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.compact-empty { min-height: 210px; }
.commerce-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.commerce-modal.hidden { display: none; }
.commerce-modal-scrim { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(20, 35, 58, .32); backdrop-filter: blur(3px); cursor: default; }
.commerce-modal-panel { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 20px; background: #fff; box-shadow: 0 32px 90px rgba(16, 33, 58, .22); }
.product-editor-panel { width: min(860px, calc(100vw - 40px)); max-height: none; }
.commerce-modal-panel > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.commerce-modal-panel > header h2 { margin: 6px 0 0; font-size: 22px; }
.commerce-modal-panel > header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.commerce-modal-panel > header > button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: var(--surface); font-size: 21px; cursor: pointer; }
.commerce-form { display: grid; max-height: calc(100vh - 145px); overflow-y: auto; gap: 17px; padding: 24px 26px 26px; }
.commerce-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.commerce-form-grid.three-columns { grid-template-columns: repeat(3, 1fr); }
.commerce-form .field { margin: 10px 0; }
.product-form-section { padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.product-form-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 7px; }
.product-form-section-heading b { font-size: 14px; }
.product-form-section-heading span { color: var(--muted); font-size: 10px; }
.product-media-section { padding-bottom: 22px; }
.product-image-manager { display: grid; gap: 12px; }
.product-image-dropzone { min-height: 104px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 16px; border: 1px dashed #b9c7da; border-radius: 14px; color: #40526a; background: #fafcff; text-align: center; cursor: pointer; transition: border-color .18s, background .18s; }
.product-image-dropzone:hover, .product-image-dropzone.is-dragging { border-color: var(--accent); background: #f4f7ff; }
.product-image-dropzone.is-disabled { display: none; }
.product-image-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.product-image-dropzone b { font-size: 12px; }
.product-image-dropzone small { color: var(--muted); font-size: 10px; }
.product-image-add-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #fff; background: var(--accent); font-size: 19px; line-height: 1; }
.product-image-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.product-image-grid:empty { display: none; }
.product-image-card { position: relative; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f5f7fa; }
.product-image-card img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-image-card .image-state { position: absolute; top: 6px; left: 6px; padding: 4px 6px; border-radius: 6px; color: #fff; background: rgba(22,36,57,.72); font-size: 8px; font-weight: 700; backdrop-filter: blur(5px); }
.product-image-actions { position: absolute; inset: auto 5px 5px; display: flex; justify-content: flex-end; gap: 4px; }
.product-image-actions button { padding: 4px 6px; border: 0; border-radius: 6px; color: #263950; background: rgba(255,255,255,.93); box-shadow: 0 2px 8px rgba(16,33,58,.14); font-size: 8px; font-weight: 700; cursor: pointer; }
.product-image-actions button.danger { color: #a33c4f; }
.switch-field { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 11px; align-items: center; margin: 14px 0; cursor: pointer; }
.switch-field > input { position: absolute; opacity: 0; pointer-events: none; }
.switch-field > span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #c9d0da; transition: background .18s; }
.switch-field > span:after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16,33,58,.22); transition: transform .18s; }
.switch-field > input:checked + span { background: var(--accent); }
.switch-field > input:checked + span:after { transform: translateX(16px); }
.switch-field b, .switch-field small { display: block; }
.switch-field b { color: #354760; font-size: 12px; }
.switch-field small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.commerce-form footer { position: sticky; bottom: -26px; display: flex; justify-content: flex-end; gap: 9px; margin: 0 -26px -26px; padding: 17px 26px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.commerce-form .form-error { min-height: 0; margin: 0; }
.product-editor-panel > header { padding: 10px 18px 9px; }
.product-editor-panel > header h2 { margin-top: 2px; font-size: 19px; }
.product-editor-panel > header p { display: none; }
.product-editor-panel .commerce-form {
  grid-template-columns: 1fr;
  grid-template-areas: none;
  max-height: none;
  overflow: visible;
  gap: 8px;
  padding: 10px 12px 12px;
}
.product-editor-panel .product-form-section { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-editor-panel .product-compact-section { grid-column: 1 / -1; }
.product-compact-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 12px; }
.product-compact-media { min-width: 0; }
.product-compact-media-heading { display: flex; align-items: center; justify-content: space-between; min-height: 14px; margin: 6px 0; color: #354760; font-size: 10px; }
.product-compact-media-heading span { color: var(--muted); font-size: 9px; }
.product-six-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 8px 10px; }
.product-six-fields .field { min-width: 0; align-self: start; }
.product-six-fields .field-caption { display: flex; align-items: baseline; justify-content: space-between; min-height: 14px; gap: 8px; line-height: 14px; }
.product-six-fields .field input, .product-six-fields .field select { width: 100%; }
.product-editor-panel .product-variants-section { grid-column: 1 / -1; padding-bottom: 8px; }
.product-variants-heading > div { display: grid; gap: 2px; }
.product-variants-heading > div > span { font-size: 9px; }
.product-variant-table-head, .product-variant-row { display: grid; grid-template-columns: 42px minmax(120px, 1.2fr) minmax(105px, 1fr) minmax(90px, .8fr) 74px 28px; gap: 8px; align-items: center; }
.product-variant-table-head { padding: 5px 4px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 8px; font-weight: 700; }
.product-variant-table-head i { font-style: normal; }
.product-variant-list { max-height: 220px; overflow-y: auto; }
.product-variant-row { padding: 6px 4px; border-bottom: 1px solid var(--line); }
.product-variant-row:last-child { border-bottom: 0; }
.product-variant-row input { width: 100%; min-width: 0; padding: 7px 8px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; outline: none; font-size: 10px; }
.product-variant-row input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(84,125,241,.1); }
.variant-image-picker { position: relative; width: 38px; height: 38px; display: grid; place-items: center; overflow: hidden; border: 1px dashed #b9c7da; border-radius: 8px; color: var(--accent-strong); background: #fafcff; cursor: pointer; font-size: 15px; font-weight: 700; }
.variant-image-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.variant-image-picker img { width: 100%; height: 100%; object-fit: cover; }
.variant-image-picker.has-image > span { display: none; }
.variant-image-remove { position: absolute; top: 1px; right: 1px; width: 14px; height: 14px; display: none; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(19,31,49,.72); font-size: 9px; cursor: pointer; }
.variant-image-picker.has-image .variant-image-remove { display: grid; }
.product-variant-remove { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; color: #a33c4f; background: #fcedf0; cursor: pointer; }
.product-variant-empty { padding: 12px 4px 5px; color: var(--muted); font-size: 9px; text-align: center; }
.product-variant-list:not(:empty) + .product-variant-empty { display: none; }
.product-editor-panel .commerce-form .field { gap: 4px; margin: 6px 0; font-size: 10px; }
.product-editor-panel .field input, .product-editor-panel .field select, .product-editor-panel .field textarea { padding: 8px 9px; border-radius: 8px; }
.product-editor-panel .field textarea { resize: none; }
.product-editor-panel .product-form-section-heading { margin-bottom: 5px; }
.product-editor-panel .product-image-dropzone { min-height: 142px; padding: 8px; }
.product-editor-panel .product-image-grid { grid-template-columns: 1fr; }
.product-editor-panel .product-image-add-icon { width: 25px; height: 25px; font-size: 16px; }
.product-editor-panel .product-image-dropzone b { font-size: 10px; }
.product-editor-panel .product-image-dropzone small { font-size: 8px; }
.product-editor-panel .switch-field { margin: 7px 0; }
.product-editor-panel .form-error { grid-column: 1 / -1; min-height: 0; }
.product-editor-panel .commerce-form footer { grid-column: 1 / -1; position: static; margin: 0; padding: 3px 0 0; border: 0; background: transparent; backdrop-filter: none; }
body.modal-open { overflow: hidden; }

@media (max-width: 1120px) {
  .overview-status-grid { grid-template-columns: 1fr 1fr; }
  .commerce-summary-grid { grid-template-columns: 1fr 1fr; }
  .overview-grid, .channel-grid { grid-template-columns: 1fr; }
  .live-console-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); }
}
@media (max-width: 900px) {
  .workbench-sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: 24px 0 60px rgba(16,33,58,.12); }
  .workbench-main { margin-left: 0; }
  .sidebar-open, .sidebar-close { display: block; }
  .sidebar-close { font-size: 25px; }
  .sidebar-open { padding: 7px; font-size: 18px; }
  .workbench-body.sidebar-visible .workbench-sidebar { transform: translateX(0); }
  .workbench-body.sidebar-visible .sidebar-scrim { position: fixed; inset: 0; z-index: 25; display: block; background: rgba(16,33,58,.24); }
  .live-console-grid, .settings-placeholder-grid { grid-template-columns: 1fr; }
  .video-console { order: -1; }
  .product-editor-panel { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .product-editor-panel .commerce-form {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: none;
    max-height: calc(100vh - 92px);
    overflow-y: auto;
    scrollbar-width: none;
  }
  .product-editor-panel .commerce-form::-webkit-scrollbar { display: none; }
}
@media (max-width: 640px) {
  .workbench-topbar { height: 64px; padding: 0 14px; }
  .workbench-topbar .user-pill > .btn { display: none; }
  .workbench-content { padding: 25px 15px 50px; }
  .view-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .view-heading h1 { font-size: 34px; }
  .overview-status-grid { grid-template-columns: 1fr 1fr; }
  .status-summary-card { padding: 15px; }
  .workbench-card { padding: 19px; }
  .live-readiness-bar time { width: 100%; margin-left: 0; }
  .console-heading { align-items: flex-start; flex-direction: column; }
  .table-card { padding: 0; }
  .connect-card { padding: 24px; }
  .commerce-summary-grid { grid-template-columns: 1fr 1fr; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 16px; }
  .table-search { width: 100%; }
  .commerce-form-grid { grid-template-columns: 1fr; }
  .commerce-form-grid.three-columns { grid-template-columns: 1fr; }
  .product-image-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .commerce-modal-panel > header, .commerce-form { padding-left: 20px; padding-right: 20px; }
  .commerce-form footer { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .product-editor-panel .commerce-form {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }
  .product-editor-panel .commerce-form footer { margin: 0; padding: 3px 0 0; }
}
@media (max-width: 640px) {
  .product-compact-layout { grid-template-columns: 1fr; }
  .product-compact-media { width: min(180px, 100%); }
  .product-six-fields { grid-template-columns: 1fr; }
  .product-variant-table-head { display: none; }
  .product-variant-row { grid-template-columns: 42px 1fr 1fr; }
  .product-variant-row [data-variant-price], .product-variant-row [data-variant-inventory] { grid-column: auto; }
}
