:root {
    --ink: #0c0d12;
    --paper: #ffffff;
    --canvas: #f5f5f7;
    --purple: #6c56ff;
    --purple-dark: #5440ef;
    --purple-soft: #eeeaff;
    --line: rgba(12, 13, 18, .16);
    --line-strong: rgba(12, 13, 18, .34);
    --line-dark: rgba(255, 255, 255, .28);
    --muted: rgba(12, 13, 18, .58);
    --muted-light: rgba(255, 255, 255, .6);
    --rise: #ef3f5b;
    --fall: #287eff;
    --success: #008c67;
    --warning: #a76700;
    --sidebar: 216px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(108, 86, 255, .3); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* Brand */
.brand, .console-brand { display: inline-flex; align-items: center; gap: 14px; font-weight: 900; letter-spacing: -.8px; }
.brand strong, .console-brand strong { font-size: 24px; }
.brand-logo { display: block; flex: 0 0 40px; width: 40px; height: 40px; object-fit: cover; }
.brand.inverse { color: #fff; }

/* Shared buttons */
.button, .landing-connect-form button, .inline-connect-form button, .schedule-action { min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .18s; }
.button:hover, .landing-connect-form button:hover, .inline-connect-form button:hover, .schedule-action:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--purple); background: var(--purple); }
.button-naver { border-color: #03c75a; background: #03c75a; color: #fff; }
.button-naver:hover { border-color: #02b351; background: #02b351; }
.button-quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.button-quiet:hover { border-color: var(--purple); color: var(--purple); }
.button-outline { background: transparent; color: var(--ink); }
.button-outline:hover { border-color: var(--purple); color: var(--purple); }
.button-small { min-height: 40px; padding-inline: 16px; font-size: 12px; }

/* Branded alerts */
.autop-confirm-dialog { width: min(430px, calc(100% - 30px)); padding: 0; border: 1px solid rgba(108,86,255,.34); border-radius: 18px; background: #fff; color: var(--ink); box-shadow: 0 30px 90px rgba(24,17,70,.28); }
.autop-confirm-dialog::backdrop { background: rgba(12,13,18,.56); backdrop-filter: blur(5px); }
.autop-confirm-dialog form { padding: 28px; display: grid; grid-template-columns: 48px 1fr; gap: 18px; }
.autop-confirm-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, var(--purple), #8c7aff); color: #fff; box-shadow: 0 10px 24px rgba(108,86,255,.3); font-size: 17px; font-weight: 950; }
.autop-confirm-dialog[data-tone="danger"] .autop-confirm-mark { background: linear-gradient(145deg, #ef3f5b, #ff7187); box-shadow: 0 10px 24px rgba(239,63,91,.24); }
.autop-confirm-copy small { color: var(--purple); font-size: 9px; font-weight: 950; letter-spacing: .12em; }
.autop-confirm-copy h2 { margin: 7px 0 0; font-size: 21px; letter-spacing: -.7px; }
.autop-confirm-copy p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-line; }
.autop-confirm-dialog footer { padding-top: 8px; grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.autop-confirm-dialog footer button { min-height: 42px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.autop-confirm-dialog footer .autop-confirm-submit { border-color: var(--purple); background: var(--purple); color: #fff; }
.autop-confirm-dialog[data-tone="danger"] footer .autop-confirm-submit { border-color: var(--rise); background: var(--rise); }
.autop-toast-region { width: min(390px, calc(100% - 28px)); position: fixed; z-index: 1000; top: 18px; right: 18px; display: grid; gap: 9px; pointer-events: none; }
.autop-toast { min-height: 76px; padding: 14px 14px 14px 16px; display: grid; grid-template-columns: 10px 1fr 28px; align-items: center; gap: 12px; border: 1px solid #d9d2ff; border-radius: 14px; background: rgba(255,255,255,.98); box-shadow: 0 18px 50px rgba(22,17,55,.18); opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .18s ease; pointer-events: auto; }
.autop-toast.visible { opacity: 1; transform: translateY(0); }
.autop-toast.leaving { opacity: 0; transform: translateY(-8px); }
.autop-toast > i { width: 8px; height: 36px; border-radius: 999px; background: var(--purple); }
.autop-toast.success > i { background: var(--success); }
.autop-toast.warning > i { background: var(--warning); }
.autop-toast.error > i { background: var(--rise); }
.autop-toast strong, .autop-toast p { display: block; margin: 0; }
.autop-toast strong { font-size: 11px; }
.autop-toast p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.autop-toast > button { width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; }

/* Product landing */
.landing-body { background: var(--paper); }
.landing-header { height: 94px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.topnav { display: flex; gap: 32px; color: var(--muted); font-size: 13px; font-weight: 700; }
.topnav a:hover { color: var(--purple); }
.landing-gate { margin-top: 34px; padding: 34px 38px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(260px, .8fr) minmax(470px, 1.2fr); gap: 26px 58px; border: 1px solid var(--purple); background: linear-gradient(125deg, #f5f2ff 0%, #fff 68%); box-shadow: 0 22px 60px rgba(60, 43, 150, .09); }
.landing-gate::after { width: 190px; height: 190px; position: absolute; right: -85px; bottom: -110px; border: 34px solid rgba(108,86,255,.08); border-radius: 50%; content: ""; pointer-events: none; }
.landing-gate > header { grid-row: 1 / 3; align-self: center; }
.landing-gate > header > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.landing-gate > header h2 { margin: 13px 0 0; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.2; letter-spacing: -1.8px; }
.landing-gate > header h2 b { color: var(--purple); }
.landing-gate > header p { margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.onboarding-funnel { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; }
.onboarding-funnel > span { color: #aaa5b7; font-size: 14px; }
.onboarding-funnel article { min-width: 0; display: flex; align-items: center; gap: 10px; }
.onboarding-funnel article > i { width: 31px; height: 31px; display: grid; flex: 0 0 31px; place-items: center; border: 1px solid #cbc7d2; background: #fff; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 900; }
.onboarding-funnel article.complete > i { border-color: var(--success); background: var(--success); color: #fff; }
.onboarding-funnel article.current > i { border-color: var(--purple); background: var(--purple); color: #fff; box-shadow: 0 0 0 5px rgba(108,86,255,.1); }
.onboarding-funnel article p { min-width: 0; margin: 0; }
.onboarding-funnel article strong, .onboarding-funnel article small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onboarding-funnel article strong { font-size: 10px; }
.onboarding-funnel article small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.onboarding-sync { padding: 12px 14px; display: flex; align-items: center; gap: 11px; border-left: 3px solid var(--success); background: #f1faf7; }
.onboarding-sync.warning { border-left-color: var(--warning); background: #fff8ec; }
.onboarding-sync > i { width: 23px; height: 23px; display: grid; flex: 0 0 23px; place-items: center; border-radius: 50%; background: var(--success); color: #fff; font-size: 9px; font-style: normal; font-weight: 900; }
.onboarding-sync.warning > i { background: var(--warning); }
.onboarding-sync p { margin: 0; }
.onboarding-sync strong, .onboarding-sync small { display: block; }
.onboarding-sync strong { font-size: 10px; }
.onboarding-sync small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.landing-gate-action { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.landing-gate-action p { margin: 0; }
.landing-gate-action strong, .landing-gate-action small { display: block; }
.landing-gate-action strong { font-size: 11px; }
.landing-gate-action small { margin-top: 5px; color: var(--muted); font-size: 9px; }
.landing-gate-action .button { flex: 0 0 auto; }
.landing-gate-buttons { display: flex; gap: 8px; }
.landing-hero { padding: 112px 0 104px; }
.landing-kicker { margin: 0 0 40px; color: var(--purple); font-size: 12px; font-weight: 900; letter-spacing: 2px; }
.landing-hero h1 { max-width: 900px; margin: 0; font-size: clamp(52px, 7vw, 88px); line-height: 1.08; letter-spacing: clamp(-5px, -.4vw, -2.4px); }
.landing-hero h1 span { color: var(--purple); }
.landing-lead { margin: 36px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 23px); line-height: 1.7; }
.landing-hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts { margin-top: 76px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.hero-facts strong { padding: 24px 18px; font-size: 15px; }
.hero-facts strong + strong { border-left: 1px solid var(--line); }
.landing-dark { padding: 104px 0; background: var(--ink); color: #fff; }
.landing-dark h2 { max-width: 850px; margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.25; letter-spacing: -2.8px; }
.landing-dark .page-shell > p { margin: 27px 0 0; color: var(--muted-light); font-size: 18px; line-height: 1.75; }
.problem-grid { margin-top: 70px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.problem-grid article { padding: 32px 28px; display: flex; flex-direction: column; }
.problem-grid article:first-child { padding-left: 0; }
.problem-grid article + article { border-left: 1px solid var(--line-dark); }
.problem-grid b { color: var(--purple); font-size: 38px; }
.problem-grid strong { margin-top: 18px; font-size: 20px; }
.problem-grid span { margin-top: 9px; color: var(--muted-light); font-size: 14px; }
.landing-dark h3 { margin: 42px 0 0; font-size: 24px; }
.landing-dark h3 span { color: #8d7cff; }
.landing-section { padding-block: 112px; }
.split-section { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr); gap: 84px; align-items: start; }
.section-intro > b { color: var(--purple); font-size: 72px; line-height: 1; }
.section-intro h2 { margin: 30px 0 0; font-size: clamp(36px, 4vw, 52px); line-height: 1.25; letter-spacing: -2.5px; }
.section-intro p { margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.market-lines { border-top: 3px solid var(--ink); }
.market-lines > div { min-height: 86px; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.market-lines p { margin: 0; }
.market-lines p strong, .market-lines p span, .market-lines footer strong, .market-lines footer span { display: block; }
.market-lines p strong { font-size: 18px; }
.market-lines p span { margin-top: 6px; color: var(--muted); font-size: 12px; }
.market-lines > div > b { font-size: 24px; }
.market-lines footer { padding: 22px 0; border-bottom: 3px solid var(--ink); }
.market-lines footer strong { color: var(--purple); font-size: 15px; }
.market-lines footer span { margin-top: 8px; color: var(--muted); font-size: 13px; }
.source-note { margin: 25px 0 0 !important; padding-left: 18px; border-left: 4px solid var(--purple); font-size: 14px !important; line-height: 1.7; }
.source-note a { color: var(--purple); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.landing-purple { padding: 108px 0; background: var(--purple); color: #fff; }
.landing-purple header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.landing-purple header h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.24; letter-spacing: -2.8px; }
.landing-purple header > b { font-size: 72px; line-height: 1; }
.formula-line { margin-top: 68px; padding: 42px 10px; display: flex; align-items: center; justify-content: center; gap: 22px; border-top: 2px solid #fff; border-bottom: 1px solid rgba(255,255,255,.45); font-size: clamp(17px, 2.2vw, 28px); font-weight: 900; }
.formula-line i { opacity: .55; font-style: normal; }
.formula-values { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 2px solid #fff; }
.formula-values div { padding: 25px 24px; }
.formula-values div:first-child { padding-left: 0; }
.formula-values div + div { border-left: 1px solid rgba(255,255,255,.45); }
.formula-values span, .formula-values strong { display: block; }
.formula-values span { opacity: .65; font-size: 12px; }
.formula-values strong { margin-top: 8px; font-size: 20px; }
.formula-values .formula-quote-value { font-size: 18px; white-space: nowrap; }
.landing-purple footer { margin-top: 38px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.landing-purple footer p { max-width: 650px; margin: 0; line-height: 1.75; }
.landing-purple footer div { flex: 0 0 auto; text-align: right; }
.landing-purple footer span, .landing-purple footer strong { display: block; }
.landing-purple footer span { opacity: .65; font-size: 13px; }
.landing-purple footer strong { margin-top: 7px; font-size: 40px; }
.safety-section .split-section { padding-block: 0; }
.safety-section .section-intro p { color: var(--muted-light); }
.impact-lines { border-top: 2px solid #fff; }
.impact-lines div { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-dark); }
.impact-lines strong { font-size: 24px; }
.impact-lines div:first-child strong, .impact-lines div:last-child strong { color: #8d7cff; }
.landing-pricing { padding-block: 112px 20px; }
.landing-pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.landing-pricing-head span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.6px; }
.landing-pricing-head h2 { margin: 17px 0 0; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.2; letter-spacing: -2.5px; }
.landing-pricing-head > p { max-width: 430px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.landing-plan-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.landing-plan-grid article { min-height: 510px; padding: 34px; position: relative; display: flex; flex-direction: column; }
.landing-plan-grid article + article { border-left: 1px solid var(--line); }
.landing-plan-grid article.recommended { background: #f7f5ff; }
.landing-plan-grid article > em { padding: 6px 9px; position: absolute; top: 28px; right: 28px; background: var(--purple); color: #fff; font-size: 9px; font-style: normal; font-weight: 850; }
.landing-plan-grid article > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.3px; }
.landing-plan-grid h3 { margin: 12px 0 0; font-size: 27px; }
.landing-plan-grid article > strong { margin-top: 30px; display: flex; align-items: baseline; font-size: 15px; }
.landing-plan-grid article > strong b { margin-right: 4px; font-size: 45px; letter-spacing: -2px; }
.landing-plan-grid article > strong small { margin-left: 5px; color: var(--muted); font-size: 10px; }
.landing-plan-grid ul { margin: 32px 0 38px; padding: 0; display: grid; gap: 16px; list-style: none; }
.landing-plan-grid li { padding-left: 19px; position: relative; color: var(--muted); font-size: 13px; }
.landing-plan-grid li::before { position: absolute; left: 0; color: var(--purple); content: "✓"; font-weight: 900; }
.landing-plan-grid article > a { min-height: 48px; margin-top: auto; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; }
.landing-plan-grid article.recommended > a { border-color: var(--purple); background: var(--purple); }
.landing-faq { padding-block: 112px; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(520px, 1.28fr); gap: 84px; border-top: 1px solid var(--line); }
.landing-faq > header { position: sticky; top: 30px; align-self: start; }
.landing-faq > header > span { color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
.landing-faq > header h2 { margin: 20px 0 0; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.2; letter-spacing: -2.5px; }
.landing-faq > header p { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.landing-faq-list { border-top: 2px solid var(--ink); }
.landing-faq-unsubscribe { margin: 18px 0 26px; padding: 34px 36px; position: relative; overflow: hidden; background: #111117; color: #fff; }
.landing-faq-unsubscribe::before { width: 7px; position: absolute; inset: 0 auto 0 0; background: #03c75a; content: ""; }
.landing-faq-unsubscribe > span { color: #50df8b; font-size: 10px; font-weight: 900; letter-spacing: .17em; }
.landing-faq-unsubscribe h3 { margin: 16px 0 0; font-size: 27px; line-height: 1.35; letter-spacing: -1.2px; }
.landing-faq-unsubscribe > p { margin: 24px 0 0; padding: 16px 18px; border: 1px solid rgba(80,223,139,.32); background: rgba(3,199,90,.09); font-size: 14px; line-height: 1.75; }
.landing-faq-unsubscribe > p strong { color: #fff; }
.landing-faq-unsubscribe ul { margin: 22px 0 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.landing-faq-unsubscribe li { padding-left: 18px; position: relative; color: #c9c9d3; font-size: 13px; line-height: 1.65; }
.landing-faq-unsubscribe li::before { position: absolute; left: 0; color: #50df8b; content: "✓"; font-weight: 900; }
.landing-faq-unsubscribe > a { min-height: 48px; margin-top: 26px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; background: #03c75a; color: #07160d; font-size: 12px; font-weight: 900; }
.landing-faq-list details { border-bottom: 1px solid var(--line); }
.landing-faq-list summary { min-height: 76px; padding: 22px 48px 22px 4px; position: relative; display: flex; align-items: center; font-size: 17px; font-weight: 850; line-height: 1.45; cursor: pointer; list-style: none; }
.landing-faq-list summary::-webkit-details-marker { display: none; }
.landing-faq-list summary::after { position: absolute; right: 8px; color: var(--purple); content: "+"; font-size: 23px; font-weight: 500; }
.landing-faq-list details[open] summary::after { content: "−"; }
.landing-faq-list details > p { margin: -4px 48px 0 4px; padding: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.connect-block { margin-block: 112px; padding: 76px; display: grid; grid-template-columns: 1fr; gap: 44px; background: var(--purple); color: #fff; }
.connect-block > div > span { font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
.connect-block h2 { margin: 24px 0 0; font-size: clamp(34px, 4vw, 50px); line-height: 1.25; letter-spacing: -2.5px; }
.connect-block > div > p { margin: 22px 0 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.connect-intro { max-width: 850px; }
.platform-connect-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-connect-card { min-width: 0; padding: 32px; display: flex; flex-direction: column; background: #fff; color: var(--ink); }
.platform-connect-card header { display: flex; align-items: center; gap: 14px; }
.platform-connect-card header > i { width: 44px; height: 44px; display: grid; flex: 0 0 44px; place-items: center; background: var(--ink); color: #fff; font-size: 18px; font-style: normal; font-weight: 950; }
.platform-connect-card.naver header > i { background: #03c75a; }
.platform-connect-card header span, .platform-connect-card header strong { display: block; }
.platform-connect-card header span { color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: 1.2px; }
.platform-connect-card header strong { margin-top: 5px; font-size: 18px; }
.platform-connect-card > p { min-height: 48px; margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.platform-connect-card ol { margin: 24px 0 30px; padding: 22px 0; display: grid; gap: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); counter-reset: platform-step; list-style: none; }
.platform-connect-card li { padding-left: 27px; position: relative; color: var(--muted); font-size: 12px; line-height: 1.55; counter-increment: platform-step; }
.platform-connect-card li::before { width: 19px; height: 19px; position: absolute; top: 0; left: 0; display: grid; place-items: center; border-radius: 50%; background: var(--purple-soft); color: var(--purple); content: counter(platform-step); font-size: 9px; font-weight: 900; }
.platform-connect-card.naver li::before { background: #e8fbf0; color: #029b46; }
.platform-connect-card > a { min-height: 48px; margin-top: auto; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; }
.platform-connect-card.naver > a { background: #03c75a; }
.connect-block .platform-connect-note { grid-column: 1 / -1; margin: 6px 0 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.7; text-align: center; }
.landing-connect-form { padding: 30px; background: #fff; color: var(--ink); }
.landing-connect-form label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 800; }
.landing-connect-form > div { height: 54px; padding: 0 16px; display: flex; align-items: center; border: 1px solid var(--ink); }
.landing-connect-form input { min-width: 0; flex: 1; border: 0; outline: 0; }
.landing-connect-form > div span { color: var(--muted); font-size: 13px; }
.landing-connect-form button { width: 100%; margin-top: 12px; }
.landing-connect-form.connected-action > a { width: 100%; min-height: 48px; margin-top: 18px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 850; }
.landing-connect-form > p { margin: 14px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.landing-footer { padding: 85px 0 28px; background: var(--ink); color: #fff; }
.landing-footer .page-shell > p { margin: 52px 0 66px; font-size: clamp(36px, 5vw, 58px); line-height: 1.25; font-weight: 900; letter-spacing: -2.8px; }
.landing-footer nav { margin-bottom: 20px; display: flex; gap: 22px; color: var(--muted-light); font-size: 12px; }
.landing-footer nav a:hover { color: #fff; }
.landing-footer small { display: block; padding-top: 22px; border-top: 1px solid var(--line-dark); color: var(--muted-light); }

/* Console */
.console-body { min-width: 320px; min-height: 100vh; background: var(--canvas); }
.dash-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: var(--sidebar); padding: 26px 18px 20px; display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.console-brand { padding: 0 7px; }
.console-brand .brand-logo { flex-basis: 38px; width: 38px; height: 38px; }
.console-brand strong { font-size: 23px; }
.service-name { margin: 18px 7px 0; color: rgba(255,255,255,.38); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.dash-nav { margin-top: 34px; display: flex; flex-direction: column; }
.dash-nav a, .dash-nav .nav-item { min-height: 43px; padding: 0 9px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.58); font-size: 11px; font-weight: 750; transition: color .18s, background .18s; }
.dash-nav a span, .dash-nav .nav-item > span { width: 22px; color: rgba(255,255,255,.28); font-size: 9px; font-weight: 900; }
.dash-nav a:hover { color: #fff; }
.dash-nav a.active { color: #fff; background: linear-gradient(90deg, rgba(108,86,255,.26), transparent); }
.dash-nav a.active span { color: #9a8cff; }
.dash-nav .nav-item.disabled { color: rgba(255,255,255,.28); cursor: not-allowed; }
.dash-nav .nav-item small { margin-left: auto; color: rgba(255,255,255,.2); font-size: 7px; font-weight: 600; }
.nav-divider { height: 18px; border-bottom: 1px solid rgba(255,255,255,.18); }
.sidebar-promo { margin-top: auto; padding: 15px; display: block; position: relative; overflow: hidden; border: 1px solid #ffd264; border-radius: 12px; background: linear-gradient(145deg, #ffc428, #ffac0b); color: #111218; text-decoration: none; box-shadow: 0 16px 32px rgba(0,0,0,.28); transition: border-color .18s, box-shadow .18s, transform .18s; }
.sidebar-promo::after { width: 70px; height: 70px; position: absolute; right: -28px; bottom: -33px; border: 16px solid rgba(255,255,255,.3); border-radius: 50%; content: ""; }
.sidebar-promo-media { width: 150%; height: 100%; position: absolute; z-index: 0; inset: 0 0 0 auto; object-fit: cover; object-position: 72% center; opacity: .16; mix-blend-mode: multiply; pointer-events: none; }
.sidebar-promo:hover { border-color: #fff0ba; box-shadow: 0 20px 38px rgba(0,0,0,.36); transform: translateY(-3px); }
.sidebar-promo:focus-visible { outline: 3px solid rgba(255,196,40,.5); outline-offset: 3px; }
.sidebar-promo > strong { display: block; position: relative; z-index: 1; font-size: 12px; line-height: 1.42; letter-spacing: -.3px; }
.sidebar-promo > strong mark { display: block; margin-bottom: 6px; background: transparent; color: rgba(17,18,24,.62); font-size: 8px; font-weight: 950; letter-spacing: .9px; }
.sidebar-promo > strong span { display: block; color: #111218; font-weight: 950; }
.sidebar-promo > strong span + span { font-size: 13px; }
.sidebar-promo-platforms { margin-top: 12px; display: flex; position: relative; z-index: 1; gap: 5px; }
.sidebar-promo-platforms b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.92); color: #111218; font-size: 9px; box-shadow: 0 5px 10px rgba(107,68,0,.16); }
.sidebar-promo-platforms b:first-child { color: #03b85c; }
.sidebar-promo > em { margin-top: 13px; display: flex; position: relative; z-index: 1; align-items: center; justify-content: space-between; color: rgba(17,18,24,.72); font-size: 8px; font-style: normal; font-weight: 900; }
.sidebar-promo > em b { color: #111218; font-size: 13px; }
.dash-main { min-height: 100vh; margin-left: var(--sidebar); }
.console-topbar { min-height: 70px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.admin-support-indicator { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 13px; border: 1px solid #f2c76d; border-radius: 12px; background: #fff8e9; color: #79500b; }
.admin-support-indicator span { display: flex; flex-direction: column; gap: 2px; }
.admin-support-indicator b { font-size: 11px; }
.admin-support-indicator small { font-size: 9px; }
.admin-support-indicator form { margin: 0; }
.admin-support-indicator button { min-height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: #79500b; color: #fff; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.console-top-actions { display: flex; align-items: center; gap: 9px; }
.store-selector { min-width: 260px; height: 46px; padding: 0 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 9px; border: 1px solid var(--ink); background: #fff; }
.store-selector.store-connect, .store-selector.connected { color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.store-selector.store-connect:hover { border-color: var(--purple); background: var(--purple-soft); transform: translateY(-1px); }
.store-selector.connected:hover { border-color: var(--purple); transform: translateY(-1px); }
.store-selector.store-connect:focus-visible { outline: 3px solid rgba(108,86,255,.28); outline-offset: 2px; }
.platform-dot { width: 28px; height: 28px; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 10px; font-weight: 900; }
.store-selector.connected .platform-dot { background: var(--purple); }
.store-selector.connected.naver .platform-dot { background: #03c75a; }
.store-selector p { min-width: 0; margin: 0; }
.store-selector small, .store-selector strong { display: block; }
.store-selector small { color: var(--muted); font-size: 8px; }
.store-selector small em { margin-left: 6px; color: #a1a1aa; font-style: normal; font-weight: 650; }
.store-selector strong { margin-top: 3px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.store-selector > i { padding: 4px 6px; background: #efeff2; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 800; }
.store-selector.connected > i { background: #e6f6f0; color: var(--success); }
.store-selector.connected > i.trial { background: var(--purple-soft); color: var(--purple); }
.store-selector.connected > i.warning { background: #fff4dd; color: #9b6500; }
.store-selector.connected > i.inactive { background: #efeff2; color: var(--muted); }
.live-market-strip { height: 43px; display: grid; grid-template-columns: auto minmax(0, 1fr) 42px; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.08); background: #111218; color: #fff; }
.live-market-label { min-width: 118px; padding: 0 18px; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; border-right: 1px solid rgba(255,255,255,.12); background: #111218; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 850; letter-spacing: .2px; }
.live-market-label i { width: 6px; height: 6px; border-radius: 50%; background: #35d7a6; box-shadow: 0 0 0 4px rgba(53,215,166,.1); animation: live-market-pulse 1.8s ease-in-out infinite; }
.live-market-viewport { min-width: 0; overflow: hidden; }
.live-market-track { width: max-content; height: 100%; display: flex; will-change: transform; }
.live-market-strip.ready .live-market-track { animation: live-market-scroll var(--marquee-duration, 42s) linear infinite; }
.live-market-strip:hover .live-market-track, .live-market-strip:focus-within .live-market-track, .live-market-strip.paused .live-market-track { animation-play-state: paused; }
.live-market-group { height: 100%; display: flex; flex: 0 0 auto; align-items: stretch; }
.live-market-loading, .live-market-quote, .live-market-promo { min-width: max-content; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 9px; border-right: 1px solid rgba(255,255,255,.09); white-space: nowrap; }
.live-market-loading { color: rgba(255,255,255,.58); font-size: 10px; }
.live-market-loading b { color: #9b8cff; font-size: 8px; letter-spacing: 1px; }
.live-market-quote > b { color: #a99cff; font-size: 9px; letter-spacing: .3px; }
.live-market-quote > small { color: rgba(255,255,255,.5); font-size: 8px; }
.live-market-quote > strong { font-size: 11px; }
.live-market-quote > em { font-size: 8px; font-style: normal; font-weight: 800; }
.live-market-quote > em.up { color: #ff6078 !important; }
.live-market-quote > em.down { color: #5e9cff !important; }
.live-market-quote > em.waiting { color: rgba(255,255,255,.36) !important; }
.live-market-promo { position: relative; overflow: hidden; background: rgba(108,86,255,.14); font-size: 9px; font-weight: 750; transition: background .18s; }
.live-market-promo::before { width: 52px; height: 52px; position: absolute; right: -28px; border: 12px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; }
.live-market-promo:hover { background: rgba(108,86,255,.3); }
.live-market-promo b { position: relative; color: #ad9fff; font-size: 8px; letter-spacing: .9px; }
.live-market-promo span, .live-market-promo em { position: relative; }
.live-market-promo em { color: #ad9fff; font-style: normal; }
.live-market-promo.almani { background: linear-gradient(100deg, rgba(108,86,255,.25), rgba(108,86,255,.08)); }
.live-market-promo.trial b, .live-market-promo.trial em { color: #35d7a6; }
.live-market-promo.blue { background: linear-gradient(100deg, rgba(45,126,247,.26), rgba(45,126,247,.08)); }
.live-market-promo.blue b, .live-market-promo.blue em { color: #72a9ff; }
.live-market-promo.orange { background: linear-gradient(100deg, rgba(246,145,42,.28), rgba(246,145,42,.08)); }
.live-market-promo.orange b, .live-market-promo.orange em { color: #ffb35f; }
.live-market-pause { width: 42px; position: relative; z-index: 2; border: 0; border-left: 1px solid rgba(255,255,255,.12); background: #111218; color: rgba(255,255,255,.55); cursor: pointer; }
.live-market-pause:hover { color: #fff; background: #1b1d25; }
.live-market-pause span { font-size: 9px; font-weight: 900; }
.almani-hero-banner { display: block; position: relative; overflow: hidden; background: #ffb713; box-shadow: 0 10px 24px rgba(93,58,0,.14); }
.almani-hero-banner::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,.2) 48%, transparent 62%); content: ""; opacity: 0; transform: translateX(-35%); transition: opacity .25s, transform .55s; pointer-events: none; }
.almani-hero-banner:hover::after { opacity: 1; transform: translateX(35%); }
.almani-hero-banner:focus-visible { z-index: 3; outline: 4px solid rgba(108,86,255,.55); outline-offset: -4px; }
.almani-hero-banner img { width: 100%; height: auto; display: block; }
@keyframes live-market-scroll { to { transform: translate3d(-50%, 0, 0); } }
@keyframes live-market-pulse { 50% { opacity: .45; transform: scale(.84); } }
.dashboard-content { width: min(1440px, calc(100% - 72px)); margin: 0 auto; padding: 34px 0 72px; }
.connection-banner { padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--purple); color: #fff; }
.connection-banner-copy { display: flex; align-items: center; gap: 20px; }
.banner-index { padding-right: 20px; border-right: 1px solid rgba(255,255,255,.4); font-size: 10px; font-weight: 900; letter-spacing: 1.2px; }
.connection-banner-copy strong { display: block; font-size: 18px; }
.connection-banner-copy p { margin: 7px 0 0; color: rgba(255,255,255,.7); font-size: 11px; }
.dashboard-started-banner { margin-bottom: 18px; padding: 25px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #d8d1ff; background: linear-gradient(120deg, var(--purple-soft), #fff 72%); }
.dashboard-started-copy { display: flex; align-items: center; gap: 16px; }
.dashboard-started-copy > i { width: 42px; height: 42px; display: grid; flex: 0 0 42px; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-size: 16px; font-style: normal; font-weight: 900; }
.dashboard-started-copy span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: 1.3px; }
.dashboard-started-copy strong { margin-top: 5px; display: block; font-size: 16px; }
.dashboard-started-copy strong b { color: var(--purple); }
.dashboard-started-copy p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.dashboard-started-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.dashboard-started-actions a { min-height: 42px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--purple); background: var(--purple); color: #fff; font-size: 10px; font-weight: 850; }
.dashboard-started-actions a.quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.inline-connect-form { display: flex; gap: 8px; }
.inline-connect-form > div { width: 250px; height: 46px; padding: 0 13px; display: flex; align-items: center; background: #fff; color: var(--ink); }
.inline-connect-form input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 12px; }
.inline-connect-form > div span { color: var(--muted); font-size: 10px; }
.inline-connect-form button { min-height: 46px; border-color: var(--ink); background: var(--ink); }
.summary-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: #fff; }
.summary-card { min-height: 156px; padding: 24px; }
.summary-card + .summary-card { border-left: 1px solid var(--line); }
.summary-card > div { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; }
.summary-card > div i { color: var(--purple); font-size: 9px; font-style: normal; font-weight: 900; }
.summary-card > strong { margin-top: 22px; display: block; font-size: 34px; line-height: 1; }
.summary-card > strong small { margin-left: 4px; color: var(--muted); font-size: 11px; }
.summary-card > p { margin: 15px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.summary-card > p b { color: var(--ink); }
.summary-card > p b + b { margin-left: 10px; }
.rise, .up { color: var(--rise) !important; }
.fall, .down { color: var(--fall) !important; }
.waiting { color: rgba(12,13,18,.42) !important; }
.section-heading-row { margin-top: 66px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading-row > div:first-child > span, .recent-card header div > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.4px; }
.section-heading-row h2 { margin: 16px 0 0; font-size: 34px; line-height: 1.22; letter-spacing: -1.9px; }
.section-heading-row p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.market-section-head { margin-top: 54px; padding: 0 0 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.market-section-head h2 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -1.2px; }
.market-section-head p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.data-status { min-height: 36px; padding: 0 13px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--warning); font-size: 9px; font-weight: 750; }
.data-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.data-status.live { color: var(--success); }
.data-status.configuration-required { color: var(--rise); }
.manual-quote-panel { margin-top: 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); background: #fff; }
.manual-quote-panel summary { min-height: 62px; padding: 0 18px; display: grid; grid-template-columns: 110px 160px 1fr auto; align-items: center; gap: 16px; list-style: none; cursor: pointer; }
.manual-quote-panel summary::-webkit-details-marker { display: none; }
.manual-quote-panel summary > span { color: var(--purple); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.manual-quote-panel summary > strong { font-size: 12px; }
.manual-quote-panel summary > small { color: var(--muted); font-size: 9px; }
.manual-quote-panel summary > i { font-size: 17px; font-style: normal; }
.manual-quote-panel[open] summary > i { transform: rotate(45deg); }
.manual-quote-panel form { padding: 20px 18px; display: grid; grid-template-columns: 1.1fr .8fr .8fr 1.5fr auto auto; align-items: end; gap: 10px; border-top: 1px solid var(--line); }
.manual-quote-panel label { color: var(--muted); font-size: 8px; font-weight: 800; }
.manual-quote-panel input, .manual-quote-panel select { width: 100%; height: 42px; margin-top: 7px; padding: 0 10px; border: 1px solid var(--line); border-radius: 0; outline: 0; background: #fff; color: var(--ink); font-size: 10px; }
.manual-quote-panel input:focus, .manual-quote-panel select:focus { border-color: var(--purple); }
.manual-quote-panel button { height: 42px; padding: 0 16px; border: 0; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.manual-quote-panel button.manual-reset { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.manual-quote-panel button:disabled { opacity: .45; cursor: wait; }
.manual-quote-panel form > p { grid-column: 1 / -1; min-height: 14px; margin: 0; color: var(--muted); font-size: 9px; }
.manual-quote-panel form > p.success { color: var(--success); }
.manual-quote-panel form > p.error { color: var(--rise); }
.market-ticker { margin-top: 24px; display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)); overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 16px 16px 0 0; background: #fff; }
.ticker-item { min-width: 135px; min-height: 108px; padding: 18px 16px; display: grid; grid-template-columns: 1fr auto; gap: 7px; border: 0; border-right: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background .16s ease; }
.ticker-item:last-child { border-right: 0; }
.ticker-item > span { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 7px; }
.ticker-item > span i { color: var(--purple); font-size: 9px; font-style: normal; font-weight: 900; }
.ticker-item > span b { overflow: hidden; color: var(--muted); font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ticker-item > strong { align-self: end; font-size: 16px; }
.ticker-item > em { align-self: end; font-size: 8px; font-style: normal; text-align: right; }
.ticker-item:hover { background: #faf9ff; }
.ticker-item.active { background: var(--purple-soft); box-shadow: inset 0 -3px var(--purple); }
.market-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .75fr); overflow: hidden; border: 1px solid var(--line-strong); border-top: 0; border-radius: 0 0 18px 18px; box-shadow: 0 20px 50px rgba(12,13,18,.07); }
.quote-stage { min-height: 550px; padding: 32px 32px 26px; position: relative; overflow: hidden; background: radial-gradient(circle at 85% 0%, rgba(108,86,255,.16), transparent 38%), var(--ink); color: #fff; }
.quote-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.quote-stage-head > div > span { color: #a99dff; font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.quote-stage-head h2 { margin: 8px 0 0; font-size: 18px; }
.source-badge { min-height: 30px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.65); font-size: 8px; }
.source-badge i { width: 5px; height: 5px; border-radius: 50%; background: #35d7a6; }
.source-badge b { font-weight: 600; }
.quote-number { margin-top: 28px; display: flex; align-items: baseline; gap: 10px; }
.quote-number strong { font-size: clamp(38px, 4.3vw, 58px); line-height: 1; letter-spacing: -2.7px; }
.quote-number > span { color: rgba(255,255,255,.45); font-size: 11px; font-weight: 800; }
.quote-number em { margin-left: 8px; color: rgba(255,255,255,.52); font-size: 10px; font-style: normal; font-weight: 800; }
.gold-purity-strip { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.035); }
.gold-purity-strip[hidden] { display: none; }
.gold-purity-strip p { margin: 0; padding: 14px 16px; display: grid; gap: 5px; border-left: 1px solid rgba(255,255,255,.1); }
.gold-purity-strip p:first-child { border-left: 0; }
.gold-purity-strip span, .gold-purity-strip small { color: rgba(255,255,255,.46); font-size: 8px; }
.gold-purity-strip strong { color: #ffd66d; font-size: 14px; }
.chart-toolbar { min-height: 44px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.chart-toolbar p { margin: 0; display: flex; align-items: center; gap: 10px; }
.chart-toolbar p span { color: rgba(255,255,255,.45); font-size: 9px; }
.chart-toolbar p strong { color: rgba(255,255,255,.9); font-size: 10px; }
.chart-toolbar p strong.up { color: var(--rise); }
.chart-toolbar p strong.down { color: #5e9cff; }
.chart-wrap { height: 270px; margin-top: 8px; position: relative; }
#market-chart { position: relative; z-index: 2; width: 100%; height: 100%; }
.chart-grid { position: absolute; inset: 18px 72px 34px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.chart-grid i { height: 1px; background: rgba(255,255,255,.09); }
.chart-y-axis { position: absolute; z-index: 1; top: 12px; right: 0; bottom: 30px; width: 60px; display: flex; flex-direction: column; justify-content: space-between; color: rgba(255,255,255,.38); font-size: 8px; text-align: right; }
.chart-x-axis { position: absolute; z-index: 1; right: 72px; bottom: 4px; left: 12px; display: flex; justify-content: space-between; color: rgba(255,255,255,.36); font-size: 8px; }
.chart-crosshair { position: absolute; z-index: 4; top: 18px; bottom: 34px; width: 1px; border-left: 1px dashed rgba(255,255,255,.38); pointer-events: none; }
.chart-crosshair[hidden] { display: none; }
.chart-crosshair b { width: 9px; height: 9px; position: absolute; top: var(--point-y, 0); left: -5px; border: 2px solid #fff; border-radius: 50%; background: var(--chart-line, #5e9cff); box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.chart-empty { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--ink); color: rgba(255,255,255,.5); text-align: center; }
.chart-empty.hidden { display: none; }
.chart-empty span { color: var(--purple); font-size: 30px; }
.chart-empty strong { margin-top: 13px; color: #fff; font-size: 13px; }
.chart-empty p { margin: 8px 0 0; font-size: 9px; }
.chart-tooltip { position: absolute; z-index: 5; min-width: 154px; padding: 11px 13px; transform: translateX(-50%); border: 1px solid rgba(12,13,18,.08); border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 28px rgba(0,0,0,.24); pointer-events: none; }
.chart-tooltip strong, .chart-tooltip span { display: block; }
.chart-tooltip strong { font-size: 11px; }
.chart-tooltip span { margin-top: 5px; color: var(--muted); font-size: 8px; }
.quote-stage-foot { min-height: 46px; padding-top: 15px; display: flex; align-items: center; justify-content: flex-start; gap: 34px; border-top: 1px solid rgba(255,255,255,.12); }
.quote-stage-foot p { margin: 0; display: flex; align-items: center; gap: 9px; }
.quote-stage-foot p span { color: rgba(255,255,255,.45); font-size: 8px; }
.quote-stage-foot p strong { font-size: 9px; }
.chart-ranges { padding: 3px; display: flex; gap: 3px; border-radius: 9px; background: rgba(255,255,255,.07); }
.chart-ranges button { min-width: 48px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 750; cursor: pointer; }
.chart-ranges button.active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.16); }
.watch-panel { min-height: 550px; background: #fff; }
.watch-head { min-height: 78px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--ink); }
.watch-head span { color: var(--purple); font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.watch-head h2 { margin: 6px 0 0; font-size: 16px; }
.watch-head > strong { font-size: 9px; }
.watch-head > strong b { color: var(--purple); }
.watch-list { max-height: 422px; overflow-y: auto; }
.watch-row { width: 100%; min-height: 62px; padding: 10px 18px; display: grid; grid-template-columns: 34px minmax(75px, 1fr) auto 52px; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid var(--line); background: #fff; text-align: left; cursor: pointer; }
.watch-row > i { width: 32px; height: 32px; display: grid; place-items: center; background: #f0eefc; color: var(--purple); font-size: 8px; font-style: normal; font-weight: 900; }
.watch-row > i.gold { background: #fff1cf; color: #8d5c00; }
.watch-row > span { min-width: 0; }
.watch-row > span strong, .watch-row > span small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-row > span strong { font-size: 10px; }
.watch-row > span small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.watch-row > b { font-size: 9px; }
.watch-row > em { font-size: 8px; font-style: normal; text-align: right; }
.watch-row.active { background: var(--purple-soft); box-shadow: inset 3px 0 var(--purple); }
.bottom-dashboard-grid { margin-top: 66px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 18px; }
.recent-card, .schedule-card { background: #fff; }
.recent-card { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.recent-card header { min-height: 112px; padding: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.recent-card h2 { margin: 10px 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -1px; }
.recent-card header p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }
.recent-card header button, .recent-card header > a { border: 0; background: transparent; color: var(--purple); font-size: 9px; font-weight: 800; text-decoration: none; cursor: pointer; }
.table-head { min-height: 36px; padding: 0 20px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.recent-change-row { min-height: 60px; padding: 8px 20px; display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); align-items: center; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; text-decoration: none; }
.recent-change-row strong { overflow: hidden; padding-right: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recent-change-row span { color: var(--muted); }
.recent-change-row em { color: var(--success); font-style: normal; font-weight: 900; }
.recent-change-status { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.recent-change-status em.unchanged { color: #a36a00; }
.recent-change-status small { max-width: 150px; color: #8b6a2b; font-size: 7px; line-height: 1.45; word-break: keep-all; }
.empty-table { min-height: 154px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-table[hidden] { display: none; }
.empty-table i { color: var(--purple); font-size: 24px; font-style: normal; font-weight: 900; }
.empty-table strong { margin-top: 11px; font-size: 11px; }
.empty-table p { margin: 7px 0 0; color: var(--muted); font-size: 8px; }
.schedule-card { padding: 24px; background: var(--purple); color: #fff; }
.schedule-card header { display: flex; align-items: center; justify-content: space-between; }
.schedule-card h2 { margin: 0; font-size: 17px; }
.schedule-card header span { color: rgba(255,255,255,.6); font-size: 8px; }
.schedule-time { margin-top: 26px; padding: 21px 0; display: flex; align-items: center; gap: 17px; border-top: 1px solid rgba(255,255,255,.45); border-bottom: 1px solid rgba(255,255,255,.45); }
.schedule-time i { font-size: 30px; font-style: normal; font-weight: 900; }
.schedule-time p { margin: 0; }
.schedule-time strong, .schedule-time small { display: block; }
.schedule-time strong { font-size: 10px; }
.schedule-time small { margin-top: 5px; color: rgba(255,255,255,.6); font-size: 7px; }
.schedule-card ol { margin: 21px 0; padding: 0; list-style: none; }
.schedule-card li { padding: 8px 0; display: flex; justify-content: space-between; color: rgba(255,255,255,.72); font-size: 9px; }
.schedule-card li b { color: #fff; }
.schedule-action { width: 100%; border-color: var(--ink); background: var(--ink); text-decoration: none; }
.schedule-action.disabled { opacity: .48; cursor: not-allowed; }
.recent-card button:disabled, .schedule-action:disabled { opacity: .48; cursor: not-allowed; transform: none; }

/* Cafe24 error */
.center-page { min-height: 100vh; padding: 24px; display: grid; place-items: center; background: var(--canvas); }
.error-panel { width: min(540px, 100%); padding: 48px; border-top: 3px solid var(--ink); border-bottom: 3px solid var(--ink); background: #fff; text-align: center; }
.error-logo { width: 48px; height: 48px; margin: 0 auto 24px; }
.section-kicker { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.error-panel h1 { margin: 20px 0 15px; font-size: 32px; line-height: 1.3; letter-spacing: -1.7px; }
.error-panel p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.error-panel code { display: inline-block; margin-top: 8px; padding: 7px 10px; background: var(--purple-soft); color: var(--purple-dark); font-size: 10px; }
.error-actions { margin-top: 26px; display: flex; justify-content: center; gap: 8px; }
.button-ghost { background: #fff; color: var(--ink); }

@media (max-width: 1180px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-card:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .summary-card:nth-child(4) { border-top: 1px solid var(--line); }
    .market-ticker { grid-template-columns: repeat(6, 150px); }
    .bottom-dashboard-grid { grid-template-columns: 1fr; }
}

.product-page { padding-bottom: 100px; }
.product-hero { padding: 72px 0 46px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; border-bottom: 1px solid var(--line-strong); }
.product-hero > div:first-child > span, .product-list-card header span { display: block; margin-bottom: 15px; color: var(--purple); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.product-hero p { margin: 20px 0 0; color: var(--muted); }
.compact-page-intro { padding: 22px 0 18px; align-items: center; gap: 16px; }
.compact-page-intro > div:first-child { flex: 1; }
.compact-page-intro p { max-width: 720px; margin: 0; font-size: 13px; line-height: 1.6; }
.product-workspace-copy { display: grid; gap: 16px; }
.product-console-tabs { width: fit-content; padding: 4px; display: inline-flex; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.product-console-tabs a { min-width: 126px; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 850; text-decoration: none; transition: background .18s ease, color .18s ease; }
.product-console-tabs a:hover { color: var(--ink); }
.product-console-tabs a.active { background: var(--ink); color: #fff; box-shadow: 0 8px 20px rgba(12,13,18,.12); }
.product-sync-actions { min-width: 210px; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; text-align: right; }
.product-sync-actions .button-link { min-height: 52px; }
.product-sync-actions button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--purple); color: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.product-sync-actions button:disabled { opacity: .55; cursor: wait; }
.product-sync-actions p { width: 100%; min-height: 20px; margin: 2px 0 0; font-size: 12px; }
.product-sync-actions p.success { color: var(--success); }
.product-sync-actions p.warning { color: #b17100; }
.product-sync-actions p.error { color: var(--danger); }
.product-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-stats article { min-height: 150px; padding: 26px 28px; border-left: 1px solid var(--line); background: white; }
.product-stats article > span { color: var(--muted); font-size: 11px; font-weight: 850; }
.product-stats article > strong { margin-top: 22px; display: block; font-size: 13px; }
.product-stats article > strong b { font-size: 32px; }
.product-stats article > p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.product-list-card { margin-top: 38px; border: 1px solid var(--line-strong); background: white; }
.product-list-card > header { min-height: 110px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.product-list-card header span { margin-bottom: 7px; }
.product-list-card header h2 { margin: 0; font-size: 24px; }
.product-card-heading > div > p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.product-list-card header > strong { font-size: 13px; color: var(--muted); }
.product-list-card header > strong b { color: var(--ink); font-size: 24px; }
.price-rule-management-card { margin-top: 12px; }
.price-rule-management-card > header h2 { font-size: 22px; }
.price-rule-management-card > header p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.rule-management-list { display: grid; }
.rule-management-row { min-width: 980px; min-height: 104px; padding: 18px 24px; display: grid; grid-template-columns: minmax(240px, 1.4fr) minmax(150px, .75fr) minmax(300px, 1.5fr) minmax(130px, .65fr) 118px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.rule-management-row:last-child { border-bottom: 0; }
.rule-management-product, .rule-management-basis { min-width: 0; display: flex; align-items: center; gap: 12px; }
.rule-management-product > p, .rule-management-basis > p { min-width: 0; margin: 0; display: grid; gap: 6px; }
.rule-management-product > p strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.rule-management-product > p small, .rule-management-basis > p small { color: var(--muted); font-size: 9px; }
.rule-management-basis > em { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--purple); color: white; font-size: 10px; font-style: normal; font-weight: 900; }
.rule-management-basis > em.gold { background: #ae7d13; }
.rule-management-basis > p strong { font-size: 11px; }
.rule-management-formula { display: grid; grid-template-columns: repeat(4, minmax(62px, 1fr)); gap: 8px; }
.rule-management-formula span { min-width: 0; padding-left: 10px; display: grid; gap: 5px; border-left: 1px solid var(--line); }
.rule-management-formula small { color: var(--muted); font-size: 8px; }
.rule-management-formula b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rule-management-state { display: grid; justify-items: start; gap: 7px; }
.rule-management-state em { padding: 5px 8px; border-radius: 999px; background: #f0f0f3; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 850; }
.rule-management-state em.automated { background: #e9f8f1; color: var(--success); }
.rule-management-state small { color: var(--muted); font-size: 8px; }
.rule-management-actions { display: flex; justify-content: flex-end; gap: 7px; }
.rule-management-actions a, .rule-management-actions button { min-width: 52px; min-height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: white; color: var(--ink); font-size: 9px; font-weight: 850; cursor: pointer; }
.rule-management-actions a:hover { border-color: var(--purple); color: var(--purple); }
.rule-management-actions button { border-color: #f1c8ce; color: var(--danger); }
.rule-management-actions button:disabled { opacity: .45; cursor: not-allowed; }
.product-last-sync { margin: 0; display: grid; gap: 5px; text-align: right; }
.product-last-sync small { color: var(--muted); font-size: 10px; font-weight: 800; }
.product-last-sync strong { font-size: 13px; }
.product-last-sync em { color: var(--purple); font-size: 9px; font-style: normal; font-weight: 800; }
.product-status-filters { padding: 4px; display: flex; align-items: center; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.product-status-filters a { min-height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; color: var(--muted); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.product-status-filters a b { color: inherit; font-size: 10px; }
.product-status-filters a.active { background: var(--ink); color: white; }
.product-toolbar { min-height: 76px; padding: 14px 20px; display: flex; align-items: flex-end; gap: 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.product-search { flex: 1 1 380px; }
.product-search input, .product-filter select, .product-page-size select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); }
.product-filter { flex: 0 0 170px; }
.product-filter, .product-page-size { display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 800; }
.product-page-size { flex: 0 0 96px; }
.product-search-submit { min-height: 44px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink); font-size: 11px; font-weight: 850; cursor: pointer; }
.product-search-submit:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-dark); }
.visible-product-count { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 800; white-space: nowrap; }
.direct-all-prices { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 8px; background: var(--ink); color: white; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.product-bulk-bar { min-height: 66px; padding: 12px 20px; display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); background: #f0edff; }
.product-bulk-bar label { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 850; cursor: pointer; }
.product-bulk-bar input, .product-select { width: 18px; height: 18px; accent-color: var(--purple); }
.product-bulk-bar p { margin: 0; color: var(--muted); font-size: 11px; }
.product-bulk-bar button { min-height: 40px; margin-left: auto; padding: 0 16px; border: 1px solid var(--purple); border-radius: 8px; background: var(--purple); color: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.product-bulk-bar button:disabled { opacity: .42; cursor: not-allowed; }
.product-bulk-actions { margin-left: auto; display: flex; gap: 8px; }
.product-bulk-actions button { margin-left: 0; }
.product-bulk-actions button.secondary { border-color: var(--ink); background: white; color: var(--ink); }
.product-action-status { min-height: 0; margin: 0; padding: 0 20px; font-size: 12px; transition: padding .15s; }
.product-action-status:not(:empty) { min-height: 48px; padding-block: 15px; border-bottom: 1px solid var(--line); }
.product-action-status.success { color: var(--success); }
.product-action-status.warning { color: var(--warning); }
.product-action-status.error { color: var(--danger); }
.product-table { width: 100%; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
.product-row { min-height: 94px; padding: 13px 20px; display: grid; grid-template-columns: 42px minmax(220px, 1.5fr) minmax(190px, .9fr) 80px minmax(150px, .8fr) minmax(150px, 260px); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.product-row[hidden] { display: none; }
.product-row:last-child { border-bottom: 0; }
.product-row-head { min-height: 42px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 800; }
.product-sort-link { width: fit-content; min-height: 28px; display: inline-flex; align-items: center; gap: 5px; color: inherit; text-decoration: none; white-space: nowrap; }
.product-sort-link small { color: inherit; font-size: 9px; }
.product-sort-link i { min-width: 22px; height: 20px; padding: 0 5px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: white; color: #918d99; font-size: 9px; font-style: normal; line-height: 1; }
.product-sort-link:hover, .product-sort-link.active { color: var(--purple-dark); }
.product-sort-link.active i { border-color: #cfc6ff; background: var(--purple-soft); color: var(--purple-dark); }
.product-select-cell { display: grid; place-items: center; }
.product-select:disabled { opacity: .28; cursor: not-allowed; }
.product-identity { min-width: 0; display: flex; align-items: center; gap: 12px; }
.product-identity > span { min-width: 0; display: grid; gap: 5px; }
.product-identity > .product-thumb { flex: 0 0 52px; width: 52px; height: 52px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.product-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-thumb i { color: var(--purple); font-size: 10px; font-style: normal; font-weight: 850; }
.product-thumb.has-image i { display: none; }
.product-thumb.image-error img { display: none; }
.product-thumb.has-image.image-error i { display: block; }
.product-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-identity small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.product-price { display: flex; align-items: baseline; gap: 5px; }
.product-price b { font-size: 16px; }
.product-price small { color: var(--muted); font-size: 9px; }
.product-price-comparison { min-width: 0; display: grid; grid-template-columns: minmax(70px, 1fr) 14px minmax(80px, 1fr); align-items: center; gap: 7px; }
.product-price-comparison > span { min-width: 0; display: grid; gap: 3px; }
.product-price-comparison small { color: var(--muted); font-size: 8px; font-weight: 800; }
.product-price-comparison b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.product-price-comparison > i { color: #bbb7c2; font-size: 11px; font-style: normal; }
.product-price-comparison .available b { color: var(--purple); }
.product-price-comparison .blocked b { color: var(--danger); }
.product-price-comparison .waiting b { color: #aaa6b1; }
.product-price-comparison em { padding: 0; background: transparent; color: var(--purple); font-size: 8px; }
.product-row em { display: inline-flex; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 800; }
.product-row em.on { background: #e9f8f1; color: #16835d; }
.product-row em.off { background: var(--surface); color: var(--muted); }
.product-rule-summary { display: grid; justify-items: start; gap: 6px; }
.product-rule-summary em.configured { background: var(--purple-soft); color: var(--purple); }
.product-rule-summary em.not-configured { background: var(--surface); color: var(--muted); }
.product-rule-summary small { color: var(--muted); font-size: 9px; }
.inline-rule-toggle { width: fit-content; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.inline-rule-toggle input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.inline-rule-toggle > span { width: 34px; height: 19px; margin: 0; padding: 2px; display: block; border-radius: 999px; background: #cbc8d1; transition: background .18s ease; }
.inline-rule-toggle > span::after { width: 15px; height: 15px; display: block; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0,0,0,.2); content: ""; transition: transform .18s ease; }
.inline-rule-toggle input:checked + span { background: var(--purple); }
.inline-rule-toggle input:checked + span::after { transform: translateX(15px); }
.inline-rule-toggle input:focus-visible + span { outline: 3px solid rgba(108,86,255,.2); }
.inline-rule-toggle input:disabled + span { opacity: .45; }
.inline-rule-toggle b { color: var(--muted); font-size: 9px; white-space: nowrap; }
.open-rule { min-height: 34px; padding: 0 11px; border: 1px solid var(--purple); border-radius: 7px; background: var(--purple-soft); color: var(--purple-dark); font-size: 11px; font-weight: 850; cursor: pointer; }
.open-rule:hover { border-color: var(--purple-dark); background: #e3ddff; color: #4530df; }
.product-rule-actions { min-width: 0; display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.product-rule-actions button { min-width: 0; flex: 1 1 120px; padding-inline: 8px; line-height: 1.25; white-space: normal; }
.apply-price { min-height: 34px; padding: 0 11px; border: 1px solid var(--purple); border-radius: 7px; background: var(--purple); color: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.apply-price:disabled { opacity: .5; cursor: wait; }
.direct-price { min-height: 34px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 7px; background: var(--ink); color: white; font-size: 11px; font-weight: 850; cursor: pointer; }
.direct-price.secondary { border-color: var(--line-strong); background: #f4f4f7; color: var(--ink); }
.direct-price.secondary:hover { border-color: var(--ink); background: #e9e9ee; }
.product-pagination { padding: 22px; display: flex; align-items: center; justify-content: center; gap: 6px; border-top: 1px solid var(--line); }
.product-pagination a, .product-pagination span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-size: 11px; font-weight: 800; text-decoration: none; }
.product-pagination a:hover { border-color: var(--purple); color: var(--purple); }
.product-pagination a.active { border-color: var(--ink); background: var(--ink); color: white; }
.product-pagination span { color: #b2afba; background: var(--surface); }
.product-filter-empty { border-top: 0; }
.product-empty-state { min-height: 240px; padding: 42px 24px; background: linear-gradient(180deg, #fff 0%, #faf9ff 100%); }
.product-empty-state::before { width: 46px; height: 46px; margin-bottom: 18px; display: block; border: 1px solid #dcd6ff; border-radius: 14px; background: var(--purple-soft); color: var(--purple); content: "＋"; font-size: 24px; font-weight: 500; line-height: 44px; }
.product-empty-state strong, .product-filter-empty strong { margin-top: 0; font-size: 15px; }
.product-empty-state p, .product-filter-empty p { max-width: 420px; font-size: 11px; line-height: 1.7; }
.rule-dialog { width: min(980px, calc(100% - 30px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: white; color: var(--ink); box-shadow: 0 30px 100px rgba(15, 12, 30, .25); }
.rule-dialog::backdrop { background: rgba(13, 11, 20, .6); backdrop-filter: blur(4px); }
.rule-dialog form > header, .rule-dialog > section > header { min-height: 100px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.rule-dialog header span, .rule-preview > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.rule-dialog header h2 { margin: 5px 0 0; font-size: 24px; }
.rule-dialog header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.rule-dialog header button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 22px; cursor: pointer; }
.dialog-purpose-badge { width: fit-content; margin-bottom: 5px; padding: 5px 8px; display: inline-flex !important; border-radius: 999px; background: var(--purple-soft); }
.dialog-purpose-badge.direct { background: #edf1f5; color: #4f5967; }
.rule-dialog-body { padding: 24px 28px; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(220px, .7fr); align-items: start; gap: 20px; background: #fbfbfd; }
.rule-form-sections { display: grid; gap: 14px; }
.rule-field-section { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.rule-field-section > header { padding: 17px 20px 0; }
.rule-field-section > header b { display: block; font-size: 12px; }
.rule-field-section > header p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.rule-fields { padding: 18px 20px 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule-fields label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 800; }
.rule-fields label[hidden], .rule-fields article[hidden] { display: none; }
.rule-fields label small { color: var(--muted); font-size: 9px; font-weight: 600; line-height: 1.5; }
.rule-fields input, .rule-fields select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #c9c6d2; border-radius: 8px; background: #fbfafd; color: var(--ink); font: inherit; }
.rule-fields input:focus, .rule-fields select:focus { border-color: var(--purple); outline: 3px solid rgba(108,86,255,.12); background: white; }
.rule-asset-context { grid-column: 1 / -1; min-height: 64px; padding: 13px 15px; display: flex; align-items: center; gap: 12px; border: 1px solid #d8d1ff; border-radius: 10px; background: linear-gradient(135deg, #f7f4ff, #fcfbff); }
.rule-asset-context i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--purple); color: white; font-size: 13px; font-style: normal; font-weight: 900; }
.rule-asset-context.gold { border-color: #ead8a7; background: linear-gradient(135deg, #fffaf0, #fffdf8); }
.rule-asset-context.gold i { background: #ae7d13; }
.rule-asset-context p { margin: 0; display: grid; gap: 4px; }
.rule-asset-context strong { color: var(--ink); font-size: 12px; }
.rule-asset-context small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.rule-base-quote-context { grid-column: 1 / -1; min-height: 86px; padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 5px 18px; border: 1px solid rgba(108,86,255,.28); border-left: 4px solid var(--purple); border-radius: 10px; background: linear-gradient(125deg, #f3efff, #fff); }
.rule-base-quote-context > span { grid-row: 1 / span 2; align-self: stretch; padding-right: 18px; display: flex; align-items: center; border-right: 1px solid rgba(108,86,255,.18); color: var(--purple-dark); font-size: 9px; font-weight: 900; letter-spacing: .06em; }
.rule-base-quote-context strong { color: var(--ink); font-size: 16px; line-height: 1.35; }
.rule-base-quote-context small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.rule-base-quote-context[data-state="loading"] strong { color: var(--muted); font-size: 12px; }
.rule-base-quote-context[data-state="error"] { border-color: #f1c8ce; border-left-color: var(--danger); background: #fff7f8; }
.rule-base-quote-context[data-state="error"] > span, .rule-base-quote-context[data-state="error"] strong { color: var(--danger); }
.rule-input-with-unit { position: relative; }
.rule-input-with-unit input { padding-right: 68px; }
.rule-input-with-unit b { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--purple); font-size: 10px; pointer-events: none; }
.rule-manual-quote-field { padding: 12px; border: 1px solid #d8d1ff; border-radius: 10px; background: var(--purple-soft); }
.rule-manual-quote-field[hidden] { display: none; }
.rule-fields .rule-toggle { min-height: 62px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; border: 1px solid #dcd6ff; border-radius: 9px; background: var(--purple-soft); color: var(--ink); }
.rule-toggle input { width: 20px; height: 20px; accent-color: var(--purple); }
.rule-toggle > span { display: grid; gap: 4px; }
.rule-toggle > span b { font-size: 11px; }
.rule-toggle > span small { font-size: 9px; }
.rule-help-panel { position: sticky; top: 0; padding: 20px; border: 1px solid #dcd6ff; border-radius: 12px; background: var(--purple-soft); }
.rule-help-panel > strong { font-size: 12px; line-height: 1.5; }
.rule-help-panel > p { margin: 12px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.rule-help-panel > p b { color: var(--ink); }
.rule-help-panel > div { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d8d1ff; }
.rule-help-panel > div span { display: block; color: var(--purple); font-size: 9px; font-weight: 900; }
.rule-help-panel code { margin-top: 8px; display: block; color: var(--ink); font-size: 10px; line-height: 1.7; white-space: normal; }
.rule-live-formula { display: grid; gap: 8px; }
.rule-live-formula strong { color: var(--ink); font-size: 12px; line-height: 1.5; }
.rule-live-formula p { margin: 0; padding: 10px 11px; border: 1px solid rgba(108,86,255,.14); border-radius: 8px; background: rgba(255,255,255,.82); color: var(--ink); font-size: 10px; font-weight: 800; line-height: 1.7; word-break: keep-all; }
.rule-live-formula small { color: var(--muted); font-size: 9px; line-height: 1.65; }
.rule-live-formula em { min-height: 15px; color: var(--purple-dark); font-size: 9px; font-style: normal; font-weight: 800; line-height: 1.55; }
.rule-preview { margin: 0 28px; padding: 20px; border: 1px solid var(--line); background: var(--surface); }
.rule-preview > p { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.rule-preview > div { margin-top: 14px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 18px; }
.rule-preview div p { margin: 0; display: grid; gap: 4px; }
.rule-preview div small { color: var(--muted); }
.rule-preview div strong { font-size: 28px; }
.rule-preview div i { color: var(--purple); font-style: normal; }
.rule-preview em { display: block; margin-top: 14px; color: var(--success); font-size: 12px; font-style: normal; font-weight: 850; }
.rule-preview.blocked em { color: var(--danger); }
.rule-calculation-detail { margin-top: 16px; padding: 13px 15px; display: grid; gap: 5px; border-radius: 9px; background: white; }
.rule-calculation-detail b { color: var(--ink); font-size: 11px; }
.rule-calculation-detail p { margin: 0; color: var(--ink); font-size: 13px; font-weight: 850; }
.rule-calculation-detail small { color: var(--muted); font-size: 10px; line-height: 1.55; }
.rule-dialog form > footer, .rule-dialog > section > footer { min-height: 84px; padding: 18px 28px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); }
.rule-dialog footer p { margin-right: auto; color: var(--muted); font-size: 12px; }
.rule-dialog footer p.error { color: var(--danger); }
.rule-dialog footer p.success { color: var(--success); }
.rule-dialog footer button { min-height: 42px; padding: 0 17px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font-weight: 850; cursor: pointer; }
.rule-dialog footer button.secondary { background: white; color: var(--ink); }
.rule-dialog footer button.secondary:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-dark); }
.rule-dialog footer button[type="submit"] { border-color: var(--purple); background: var(--purple); color: white; }
.rule-dialog footer #apply-batch-preview { border-color: var(--purple); background: var(--purple); color: white; }
.rule-dialog footer button:disabled { opacity: .42; cursor: not-allowed; }
.price-batch-preview-dialog { width: min(860px, calc(100% - 30px)); }
.template-picker-dialog { width: min(780px, calc(100% - 30px)); overflow: hidden; }
.template-picker-dialog > section { max-height: calc(100vh - 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.template-picker-body { min-height: 0; padding: 24px 28px; overflow-y: auto; background: #fbfbfd; }
.template-picker-guide, .template-example-preview > header > div { display: flex; align-items: center; gap: 11px; }
.template-picker-guide > i, .template-example-preview header i { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 10px; font-style: normal; font-weight: 900; }
.template-picker-guide p, .template-example-preview header p { margin: 0; display: grid; gap: 4px; }
.template-picker-guide strong, .template-example-preview header strong { font-size: 12px; }
.template-picker-guide small, .template-example-preview header small { color: var(--muted); font-size: 9px; }
.saved-template-list { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.saved-template-card { min-width: 0; padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.saved-template-card:hover { border-color: var(--purple); }
.saved-template-card.selected { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.saved-template-card > span { min-width: 0; display: flex; align-items: center; gap: 9px; }
.saved-template-card > span i { width: 30px; height: 30px; display: grid; flex: 0 0 30px; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-size: 9px; font-style: normal; font-weight: 900; }
.saved-template-card > span strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.saved-template-card > p { min-width: 0; margin: 0; display: grid; grid-column: 1; gap: 4px; }
.saved-template-card > p b { font-size: 10px; }
.saved-template-card > p small, .saved-template-card > small { color: var(--muted); font-size: 8px; }
.saved-template-card > em { justify-self: end; padding: 5px 7px; border-radius: 999px; background: #e9f8f1; color: #16835d; font-size: 8px; font-style: normal; font-weight: 850; }
.saved-template-card > small { align-self: end; justify-self: end; }
.saved-template-empty { margin-top: 16px; padding: 22px; border: 1px dashed #cbc7d3; border-radius: 12px; background: white; text-align: center; }
.saved-template-empty strong { font-size: 12px; }
.saved-template-empty p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.create-new-template { width: 100%; min-height: 64px; margin-top: 12px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px dashed var(--purple); border-radius: 12px; background: white; color: var(--ink); text-align: left; cursor: pointer; }
.create-new-template > i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--purple-soft); color: var(--purple); font-style: normal; }
.create-new-template > span { display: grid; gap: 4px; }
.create-new-template strong { font-size: 11px; }
.create-new-template small { color: var(--muted); font-size: 9px; }
.template-example-preview { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.template-example-preview > header { display: flex; align-items: center; justify-content: space-between; }
.template-example-preview > header > span { color: var(--purple); font-size: 10px; font-weight: 850; }
#template-preview-items { margin-top: 13px; display: grid; gap: 7px; }
#template-preview-items article { min-height: 54px; padding: 11px 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
#template-preview-items article strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
#template-preview-items article p { margin: 0; color: var(--muted); font-size: 9px; }
#template-preview-items article p b { margin-left: 7px; color: var(--purple); font-size: 11px; }
#template-preview-items article em { color: var(--success); font-size: 8px; font-style: normal; font-weight: 850; }
#template-preview-items article.blocked em { color: var(--danger); }
.template-name-section { border-color: #cfc8ff; box-shadow: 0 8px 26px rgba(108,86,255,.08); }
.batch-preview-summary { padding: 20px 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--surface); }
.batch-preview-summary article { padding: 15px 16px; border: 1px solid var(--line); background: #fff; }
.batch-preview-summary span { display: block; color: var(--muted); font-size: 9px; }
.batch-preview-summary strong { margin-top: 7px; display: block; font-size: 19px; }
.batch-preview-summary strong.rise { color: var(--rise); }
.batch-preview-summary strong.fall { color: #3984e9; }
.batch-preview-items { max-height: 430px; padding: 0 28px; overflow: auto; }
.batch-preview-items article { min-height: 78px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .8fr) minmax(120px, auto); align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.batch-preview-items article > div { min-width: 0; display: grid; gap: 5px; }
.batch-preview-items article > div strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.batch-preview-items article > div small { color: var(--muted); font-size: 9px; }
.batch-preview-items article > p { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.batch-preview-items article > p span { color: var(--muted); text-decoration: line-through; }
.batch-preview-items article > p i { color: var(--purple); font-style: normal; }
.batch-preview-items article > p b { font-size: 13px; }
.batch-preview-items article > em { justify-self: end; max-width: 180px; color: var(--success); font-size: 9px; font-style: normal; font-weight: 850; line-height: 1.5; text-align: right; }
.batch-preview-items article.blocked { opacity: .72; }
.batch-preview-items article.blocked > em { color: var(--danger); }
.batch-preview-loading { padding: 60px 0; color: var(--muted); font-size: 12px; text-align: center; }
.direct-price-dialog { width: min(720px, calc(100% - 30px)); }
.direct-price-content { padding: 30px 28px; display: grid; gap: 22px; }
.direct-price-content > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.direct-price-modes { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; border: 0; }
.direct-price-modes legend { margin-bottom: 9px; color: var(--muted); font-size: 9px; font-weight: 900; }
.direct-price-modes label { min-width: 0; min-height: 78px; padding: 13px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.direct-price-modes label:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); box-shadow: inset 0 0 0 1px var(--purple); }
.direct-price-modes input { width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--purple); }
.direct-price-modes span, .direct-price-modes b, .direct-price-modes small { display: block; }
.direct-price-modes b { font-size: 11px; }
.direct-price-modes small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.direct-mode-fields { padding: 20px; display: grid; gap: 16px; border: 1px solid #dcd6ff; border-radius: 12px; background: linear-gradient(145deg, #f7f5ff, #fff); }
.direct-mode-fields[hidden] { display: none; }
.direct-mode-fields label { display: grid; gap: 8px; color: var(--ink); font-size: 10px; font-weight: 900; }
.direct-mode-fields label > small { color: var(--muted); font-size: 9px; font-weight: 650; line-height: 1.55; }
.direct-number-input { display: flex; align-items: center; border-bottom: 2px solid var(--ink); }
.direct-number-input input { min-width: 0; width: 100%; height: 60px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 30px; font-weight: 900; }
.direct-number-input span { color: var(--muted); font-size: 14px; }
.direct-quick-values { display: flex; flex-wrap: wrap; gap: 7px; }
.direct-quick-values button { min-height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--purple-dark); font-size: 9px; font-weight: 900; cursor: pointer; }
.direct-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.direct-mode-fields input, .direct-mode-fields select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fff; color: var(--ink); font-size: 12px; }
.direct-mode-fields input:focus, .direct-mode-fields select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,86,255,.1); }
.direct-ratio-formula { padding: 15px; border-left: 3px solid var(--purple); border-radius: 0 9px 9px 0; background: #fff; }
.direct-ratio-formula span, .direct-ratio-formula strong, .direct-ratio-formula p { display: block; margin: 0; }
.direct-ratio-formula span { color: var(--purple); font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.direct-ratio-formula strong { margin-top: 6px; font-size: 11px; }
.direct-ratio-formula p { margin-top: 5px; color: var(--muted); font-size: 9px; }
.direct-price-preview { padding: 16px 18px; border-radius: 11px; background: var(--ink); color: #fff; }
.direct-price-preview span { color: #a99cff; font-size: 8px; font-weight: 950; letter-spacing: .08em; }
.direct-price-preview p { margin: 7px 0 0; font-size: 11px; line-height: 1.6; }
.direct-price-preview strong { color: #bcb2ff; }
.direct-price-content aside { padding: 18px; border: 1px solid #dcd6ff; border-radius: 10px; background: var(--purple-soft); }
.direct-price-content aside strong { font-size: 11px; }
.direct-price-content aside p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.history-table article { min-height: 86px; padding: 18px 28px; display: grid; grid-template-columns: minmax(230px, 1.4fr) minmax(260px, 1fr) 100px 110px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.history-table article:last-child { border-bottom: 0; }
.history-table article > div { display: grid; gap: 5px; }
.history-table article > div span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.history-table article > div strong { font-size: 14px; }
.history-table article p { margin: 0; display: flex; gap: 10px; color: var(--muted); font-size: 11px; }
.history-table article p b { font-weight: 750; }
.history-table article > em { justify-self: start; padding: 5px 8px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 900; }
.history-table article > em.success { background: #e9f8f1; color: #16835d; }
.history-table article > em.failed { background: #fff0f1; color: var(--danger); }
.history-table article > em.partial { background: #fff6df; color: #a66a00; }
.history-table article > a { color: var(--ink); font-size: 11px; font-weight: 850; text-decoration: none; }
.history-back { display: inline-flex; margin-bottom: 20px; color: var(--muted); font-size: 12px; font-weight: 800; text-decoration: none; }
.run-summary-card { padding: 28px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(340px, 1.6fr) minmax(190px, auto); align-items: center; gap: 30px; border: 1px solid var(--line-dark); background: var(--ink); color: #fff; }
.run-summary-card > div:first-child span { color: #a99dff; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.run-summary-card h2 { margin: 8px 0 6px; font-size: 32px; }
.run-summary-card > div:first-child p { margin: 0; color: rgba(255,255,255,.5); font-size: 11px; }
.run-summary-card dl, .history-item-list dl { margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.run-summary-card dl div { padding: 4px 18px; border-left: 1px solid rgba(255,255,255,.14); }
.run-summary-card dt, .history-item-list dt { color: rgba(255,255,255,.45); font-size: 9px; font-weight: 800; }
.run-summary-card dd { margin: 5px 0 0; font-size: 21px; font-weight: 900; }
.run-actions { display: grid; gap: 8px; justify-items: stretch; }
.run-actions .button { white-space: nowrap; }
.run-actions p { min-height: 14px; margin: 0; color: #ffb9bf; font-size: 10px; }
.history-item-list article { padding: 24px 28px; border-bottom: 1px solid var(--line); }
.history-item-list article:last-child { border-bottom: 0; }
.history-item-head { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.history-item-head > div { display: grid; gap: 5px; }
.history-item-head span { color: var(--muted); font-size: 10px; }
.history-item-head strong { font-size: 17px; }
.history-item-head em { padding: 6px 9px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 10px; font-style: normal; font-weight: 900; }
.history-item-head em.success { background: #e9f8f1; color: #16835d; }
.history-item-head em.failed { background: #fff0f1; color: var(--danger); }
.history-item-head em.blocked, .history-item-head em.skipped { background: #fff6df; color: #a66a00; }
.history-item-list dl div { padding-right: 16px; }
.history-item-list dt { color: var(--muted); }
.history-item-list dd { margin: 5px 0 0; font-size: 13px; font-weight: 850; }
.history-item-reason { margin: 18px 0 0; padding: 12px 14px; background: #fff5f6; color: var(--danger); font-size: 11px; line-height: 1.6; }
.history-item-list summary { cursor: pointer; font-weight: 850; }
.history-item-list pre { max-height: 190px; margin: 10px 0 0; padding: 13px; overflow: auto; background: var(--surface); color: var(--ink); font-size: 10px; white-space: pre-wrap; word-break: break-all; }
.subscription-onboarding-banner { margin-bottom: 24px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #d6ceff; background: linear-gradient(110deg, var(--purple-soft), #fff); }
.subscription-onboarding-banner span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: 1px; }
.subscription-onboarding-banner strong { margin-top: 7px; display: block; font-size: 17px; }
.subscription-onboarding-banner p { margin: 7px 0 0; color: var(--muted); font-size: 10px; }
.subscription-onboarding-banner > a { min-height: 44px; padding: 0 17px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; background: var(--purple); color: #fff; font-size: 10px; font-weight: 850; }
.plan-grid { margin-top: 38px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-strong); background: #fff; }
.plan-grid article { min-height: 420px; padding: 30px; border-left: 1px solid var(--line); position: relative; }
.plan-grid article:first-child { border-left: 0; }
.plan-grid article.current { background: var(--purple-soft); box-shadow: inset 0 4px 0 var(--purple); }
.plan-grid article > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.plan-grid article h2 { margin: 12px 0 28px; font-size: 30px; }
.plan-grid article > strong { display: block; font-size: 16px; }
.plan-grid article > strong b { font-size: 40px; }
.plan-grid article > strong small { color: var(--muted); font-size: 11px; }
.plan-grid ul { margin: 32px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plan-grid li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.plan-grid li.trial-benefit { color: var(--purple); font-weight: 900; }
.plan-grid button, .plan-grid article > a { width: calc(100% - 60px); min-height: 44px; position: absolute; left: 30px; bottom: 30px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font-size: 11px; font-weight: 850; }
.plan-grid article > a { border-color: var(--ink); background: var(--ink); color: #fff; }
.plan-grid article.current button { border-color: var(--purple); background: var(--purple); color: white; }
.billing-notice { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.naver-customer-page { padding-bottom: 90px; }
.naver-customer-hero { padding: 52px 0 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border-bottom: 2px solid var(--ink); }
.naver-customer-hero > div > span, .naver-unsubscribe-guide > span, .naver-faq-section > header > span, .naver-billing-section > header span, .naver-payment-history-title span { color: #03a94c; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.naver-customer-hero h1 { margin: 12px 0 0; font-size: clamp(34px, 4.5vw, 52px); letter-spacing: -.055em; }
.naver-customer-hero p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.naver-customer-hero > strong { padding: 9px 13px; display: flex; align-items: center; gap: 8px; border: 1px solid #bcebcf; background: #effcf4; color: #07873e; font-size: 10px; }
.naver-customer-hero > strong i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.naver-customer-hero > strong.warning { border-color: #f2d28d; background: #fff8e8; color: #956200; }
.naver-customer-hero > strong.inactive { border-color: var(--line); background: #f4f4f5; color: var(--muted); }
.naver-billing-section { margin-top: 28px; padding: 38px; border: 1px solid var(--line-strong); background: #fff; }
.naver-billing-section > header, .naver-payment-history-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.naver-billing-section > header h2 { margin: 10px 0 0; font-size: 30px; }
.naver-billing-section > header p, .naver-payment-history-title p { max-width: 560px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; text-align: right; }
.naver-billing-summary { margin-top: 28px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.naver-billing-summary article { min-height: 142px; padding: 25px 22px; border-left: 1px solid var(--line); }
.naver-billing-summary article:first-child { border-left: 0; }
.naver-billing-summary span, .naver-billing-summary small { display: block; color: var(--muted); font-size: 9px; }
.naver-billing-summary strong { margin: 22px 0 8px; display: block; font-size: 17px; line-height: 1.35; }
.naver-billing-summary a { margin-top: 16px; display: inline-block; color: #039b47; font-size: 10px; font-weight: 850; text-decoration: none; }
.naver-payment-history { margin-top: 42px; }
.naver-payment-history-title h3 { margin: 9px 0 0; font-size: 24px; }
.naver-payment-table { margin-top: 20px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.naver-payment-head, .naver-payment-table article { display: grid; grid-template-columns: 1.2fr .8fr 1fr .8fr; align-items: center; gap: 18px; }
.naver-payment-head { min-height: 42px; color: var(--muted); font-size: 9px; }
.naver-payment-table article { min-height: 60px; border-top: 1px solid var(--line); font-size: 11px; }
.naver-payment-table time { color: var(--muted); }
.naver-payment-table em { width: fit-content; padding: 5px 8px; background: #f1f2f3; color: var(--muted); font-size: 9px; font-style: normal; font-weight: 900; }
.naver-payment-table em.paid { background: #effcf4; color: #07873e; }
.naver-payment-table em.failed { background: #fff1f0; color: #ba2d25; }
.naver-payment-table em.refunded { background: #f2efff; color: var(--purple); }
.naver-payment-table strong { font-size: 11px; }
.naver-billing-notice { margin: 18px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.naver-customer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); border-bottom: 1px solid var(--line-strong); }
.naver-customer-grid > article { min-height: 470px; padding: 38px; }
.naver-store-profile { border-right: 1px solid var(--line-strong); }
.naver-store-profile > header { display: flex; align-items: center; gap: 15px; }
.naver-platform-mark { width: 48px; height: 48px; display: grid; place-items: center; background: #03c75a; color: #fff; font-size: 17px; font-weight: 950; }
.naver-store-profile header small { color: var(--muted); font-size: 9px; }
.naver-store-profile h2 { margin: 5px 0 0; font-size: 24px; }
.naver-store-profile dl { margin: 28px 0 0; border-top: 1px solid var(--line); }
.naver-store-profile dl div { min-height: 49px; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.naver-store-profile dt { color: var(--muted); font-size: 9px; }
.naver-store-profile dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; font-weight: 800; }
.naver-store-profile > a, .naver-unsubscribe-guide > a { min-height: 42px; margin-top: 24px; padding: 0 15px; display: inline-flex; align-items: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 10px; font-weight: 850; text-decoration: none; }
.naver-unsubscribe-guide { background: #f7fff9; }
.naver-unsubscribe-guide h2 { max-width: 500px; margin: 15px 0 0; font-size: 28px; line-height: 1.35; letter-spacing: -.04em; }
.naver-unsubscribe-guide > p { margin: 24px 0 0; padding: 20px; border: 1px solid #9de3ba; background: #fff; color: #08753a; font-size: 14px; line-height: 1.8; }
.naver-unsubscribe-guide ul { margin: 22px 0 0; padding-left: 20px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.naver-unsubscribe-guide > a { border-color: #03c75a; background: #03c75a; }
.naver-faq-section { padding: 72px 0 20px; display: grid; grid-template-columns: minmax(230px, .7fr) minmax(480px, 1.3fr); gap: 70px; }
.naver-faq-section > header h2 { margin: 12px 0 0; font-size: 34px; }
.naver-faq-section > header p { max-width: 280px; margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.naver-faq-list { border-top: 2px solid var(--ink); }
.naver-faq-list details { border-bottom: 1px solid var(--line); }
.naver-faq-list summary { min-height: 68px; padding: 20px 42px 20px 4px; position: relative; display: flex; align-items: center; font-size: 14px; font-weight: 850; line-height: 1.5; cursor: pointer; list-style: none; }
.naver-faq-list summary::-webkit-details-marker { display: none; }
.naver-faq-list summary::after { position: absolute; right: 8px; color: #03a94c; content: "+"; font-size: 22px; }
.naver-faq-list details[open] summary::after { content: "−"; }
.naver-faq-list details > p { margin: -3px 42px 0 4px; padding-bottom: 23px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.subscription-hero { align-items: center; }
.subscription-state-badge { min-width: 250px; padding: 24px; border: 1px solid var(--line-dark); background: var(--ink); color: #fff; }
.subscription-state-badge small, .subscription-state-badge strong, .subscription-state-badge span { display: block; }
.subscription-state-badge small { color: #8e80ff; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.subscription-state-badge strong { margin-top: 15px; font-size: 26px; }
.subscription-state-badge span { margin-top: 8px; color: rgba(255,255,255,.5); font-size: 10px; }
.trial-status-card { min-height: 190px; margin-top: 28px; padding: 34px 38px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); align-items: center; gap: 48px; border: 1px solid #dcd6ff; border-radius: 18px; background: linear-gradient(135deg, #f6f3ff 0%, #ffffff 72%); box-shadow: 0 18px 50px rgba(93, 71, 255, .08); }
.trial-status-card.active { background: linear-gradient(135deg, #15131f 0%, #26203f 100%); color: #fff; }
.trial-status-copy > span { color: var(--purple); font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.trial-status-card.active .trial-status-copy > span { color: #a99dff; }
.trial-status-copy > strong { margin-top: 13px; display: block; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.045em; }
.trial-status-copy > p { max-width: 620px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.trial-status-card.active .trial-status-copy > p { color: rgba(255,255,255,.58); }
.trial-day-mark { justify-self: end; display: flex; align-items: baseline; gap: 8px; color: var(--purple); }
.trial-day-mark b { font-size: 76px; line-height: 1; letter-spacing: -.06em; }
.trial-day-mark span { font-size: 16px; font-weight: 900; }
.trial-progress-wrap { min-width: 0; }
.trial-progress-wrap > div:first-child { margin-bottom: 13px; display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.56); font-size: 10px; }
.trial-progress-wrap > div:first-child b { color: #fff; }
.trial-progress { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.12); }
.trial-progress i { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #7c68ff, #a99dff); transition: width .25s ease; }
.subscription-summary { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-strong); }
.subscription-summary article { min-height: 145px; padding: 25px 22px; border-left: 1px solid var(--line); }
.subscription-summary article:first-child { border-left: 0; }
.subscription-summary span, .subscription-summary small { display: block; color: var(--muted); font-size: 9px; }
.subscription-summary strong { margin: 22px 0 8px; display: block; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.plan-section, .payment-history-section { margin-top: 64px; }
.plan-section > header, .payment-history-section > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.plan-section > header span, .payment-history-section > header span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: .15em; }
.plan-section > header h2, .payment-history-section > header h2 { margin: 9px 0 0; font-size: 30px; }
.plan-section > header p, .payment-history-section > header p { margin: 0; color: var(--muted); font-size: 11px; }
.payment-history-table { margin-top: 24px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); }
.payment-history-head, .payment-history-table article { display: grid; grid-template-columns: 1.2fr 1fr .8fr .8fr 1.2fr; align-items: center; gap: 18px; }
.payment-history-head { min-height: 44px; color: var(--muted); font-size: 9px; font-weight: 800; }
.payment-history-table article { min-height: 62px; border-top: 1px solid var(--line); font-size: 11px; }
.payment-history-table time { color: var(--muted); }
.payment-history-table em { width: fit-content; padding: 5px 7px; background: var(--purple-soft); color: var(--purple); font-size: 8px; font-style: normal; font-weight: 900; }
.payment-history-table code { overflow: hidden; color: var(--muted); font-family: inherit; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.payment-history-empty { margin-top: 24px; padding: 50px 24px; border: 1px solid var(--line); background: #fff; text-align: center; }
.payment-history-empty strong { font-size: 16px; }
.payment-history-empty p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.button-link { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 11px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.button-link.secondary { background: #fff; color: var(--ink); }
.row-action-link { min-height: 34px; padding: 0 10px; display: inline-flex; align-items: center; border: 1px solid var(--line-strong); color: var(--ink); font-size: 9px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.row-action-link:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-dark); }
.rule-guide-grid { margin: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-strong); background: #fff; }
.rule-guide-grid article { min-height: 150px; padding: 24px; border-left: 1px solid var(--line); }
.rule-guide-grid article:first-child { border-left: 0; }
.rule-guide-grid i { color: var(--purple); font-size: 9px; font-style: normal; font-weight: 900; }
.rule-guide-grid strong { margin-top: 22px; display: block; font-size: 15px; }
.rule-guide-grid p { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.rule-mode-actions { margin-left: auto; display: flex; gap: 7px; }
.rule-mode-actions button { min-height: 40px; padding: 0 12px; border: 1px solid var(--purple); border-radius: 8px; background: var(--purple); color: #fff; font-size: 10px; font-weight: 850; white-space: nowrap; cursor: pointer; }
.rule-mode-actions button.secondary { border-color: var(--ink); background: #fff; color: var(--ink); }
.rule-mode-actions button:disabled { opacity: .42; cursor: not-allowed; }
.create-rule-template { min-height: 44px; padding: 0 18px; border: 1px solid var(--purple); border-radius: 9px; background: var(--purple); color: #fff; font-size: 11px; font-weight: 900; cursor: pointer; }
.create-rule-template:disabled { opacity: .45; cursor: not-allowed; }
.price-rule-library { overflow: hidden; }
.rule-library-guide { margin: 20px 24px 0; padding: 16px 18px; display: flex; align-items: center; gap: 16px; border: 1px solid #dcd6ff; border-radius: 10px; background: var(--purple-soft); }
.rule-library-guide strong { flex: 0 0 auto; font-size: 11px; }
.rule-library-guide p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.rule-library-list { padding: 20px 24px 24px; display: grid; gap: 10px; }
.rule-library-card { min-height: 112px; padding: 18px 20px; display: grid; grid-template-columns: minmax(210px, 1fr) minmax(420px, 1.7fr) minmax(140px, .65fr) 128px; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.rule-library-name { min-width: 0; display: flex; align-items: center; gap: 12px; }
.rule-library-name > i { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.rule-library-name > i.gold { background: #ad7d14; }
.rule-library-name p { min-width: 0; margin: 0; display: grid; gap: 6px; }
.rule-library-name strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rule-library-name small, .rule-library-state small { color: var(--muted); font-size: 9px; }
.rule-library-formula { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); }
.rule-library-formula span { min-width: 0; padding: 0 12px; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.rule-library-formula small { color: var(--muted); font-size: 8px; }
.rule-library-formula b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.rule-library-state { display: grid; justify-items: start; gap: 8px; }
.rule-library-state em { padding: 5px 8px; border-radius: 999px; background: #f0f0f3; color: var(--muted); font-size: 8px; font-style: normal; font-weight: 850; }
.rule-library-state em.automated { background: #e9f8f1; color: var(--success); }
.rule-library-actions { display: flex; justify-content: flex-end; gap: 7px; }
.rule-library-actions button { min-width: 56px; min-height: 36px; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; color: var(--ink); font-size: 9px; font-weight: 850; cursor: pointer; }
.rule-library-actions .edit-rule-template:hover { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-dark); }
.rule-library-actions .delete-rule-template { border-color: #f1c8ce; color: var(--danger); }
.rule-library-actions button:disabled { opacity: .45; cursor: not-allowed; }
.price-rule-library .product-empty-state .create-rule-template { margin-top: 18px; }
.mobile-console-nav { display: none; }

/* Console footer */
.console-footer { margin-left: var(--sidebar); padding: 42px 36px 22px; border-top: 1px solid var(--line); background: #fff; }
.console-footer-inner { width: min(1440px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1.4fr .8fr; gap: 54px; }
.console-footer section > strong { display: block; margin-bottom: 12px; font-size: 12px; }
.console-footer p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.console-footer a { text-decoration: none; }
.console-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.console-footer-brand .brand-logo { flex-basis: 30px; width: 30px; height: 30px; }
.console-footer-brand strong { font-size: 19px; }
.footer-brand-block > p { max-width: 210px; margin-top: 14px; }
.footer-support-block { display: flex; flex-direction: column; align-items: flex-start; }
.footer-support-block a { margin: 3px 0; color: var(--ink); font-size: 10px; font-weight: 750; }
.console-footer-bottom { width: min(1440px, 100%); margin: 32px auto 0; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.console-footer-bottom nav { display: flex; gap: 18px; font-size: 10px; font-weight: 800; }
.console-footer-bottom small { color: var(--muted); font-size: 9px; }

/* Legal pages */
.legal-body { background: var(--canvas); }
.legal-header { min-height: 76px; padding: 0 max(24px, calc((100% - 1040px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fff; }
.legal-header > a:last-child { color: var(--muted); font-size: 11px; font-weight: 800; }
.legal-main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.legal-main > header span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.legal-main > header h1 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.055em; }
.legal-main > header p { margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.legal-summary { margin-top: 42px; padding: 24px 28px; border-left: 4px solid var(--purple); background: var(--purple-soft); }
.legal-summary strong { font-size: 14px; }
.legal-summary p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.legal-document { margin-top: 30px; padding: 26px 44px; border: 1px solid var(--line); background: #fff; }
.legal-document section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.legal-document section:last-child { border-bottom: 0; }
.legal-document h2 { margin: 0 0 14px; font-size: 17px; }
.legal-document h3 { margin: 28px 0 10px; font-size: 14px; }
.legal-document h2 + h3 { margin-top: 18px; }
.legal-document p, .legal-document li { color: rgba(12,13,18,.72); font-size: 12px; line-height: 1.85; }
.legal-document p { margin: 8px 0 0; }
.legal-document ul, .legal-document ol { margin: 0; padding-left: 20px; }
.legal-document a { color: var(--purple-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.legal-document code { padding: 2px 5px; border-radius: 4px; background: var(--purple-soft); color: var(--purple-dark); font-size: .92em; }
.legal-table { border-top: 2px solid var(--ink); }
.legal-table > div { min-height: 58px; padding: 12px 10px; display: grid; grid-template-columns: 1.2fr 1fr .8fr; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); }
.legal-table > div:first-child { min-height: 42px; background: var(--canvas); font-size: 10px; }
.legal-table span { min-width: 0; overflow-wrap: anywhere; color: rgba(12,13,18,.7); font-size: 10px; line-height: 1.6; }
.legal-body .console-footer { margin-left: 0; }

/* Private marquee administration */
.admin-body { min-height: 100vh; background: #f2f2f5; }
.admin-console-body { background: #f5f5f7; }
.admin-sidebar { width: 244px; padding: 24px 18px 20px; position: fixed; z-index: 40; inset: 0 auto 0 0; display: flex; flex-direction: column; border-right: 1px solid #24252d; background: #111218; color: #fff; }
.admin-sidebar-brand { padding: 0 7px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,.09); }
.admin-sidebar-brand img { border-radius: 9px; }
.admin-sidebar-brand span, .admin-sidebar-brand strong, .admin-sidebar-brand small { display: block; }
.admin-sidebar-brand strong { font-size: 16px; letter-spacing: -.5px; }
.admin-sidebar-brand small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 8px; }
.admin-sidebar nav { padding-top: 24px; display: grid; gap: 6px; }
.admin-sidebar nav > span { margin: 14px 10px 5px; color: rgba(255,255,255,.32); font-size: 7px; font-weight: 850; letter-spacing: 1.1px; }
.admin-sidebar nav > a { min-height: 54px; padding: 0 12px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.58); border: 1px solid transparent; transition: .18s; }
.admin-sidebar nav > a:hover { color: #fff; background: rgba(255,255,255,.04); }
.admin-sidebar nav > a.active { border-color: rgba(136,116,255,.32); background: linear-gradient(100deg, rgba(108,86,255,.24), rgba(108,86,255,.05)); color: #fff; }
.admin-sidebar nav > a > i { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); color: #a898ff; font-size: 10px; font-style: normal; }
.admin-sidebar nav > a span, .admin-sidebar nav > a strong, .admin-sidebar nav > a small { display: block; }
.admin-sidebar nav > a strong { font-size: 10px; }
.admin-sidebar nav > a small { margin-top: 4px; color: rgba(255,255,255,.36); font-size: 7px; }
.admin-sidebar-bottom { margin-top: auto; display: grid; gap: 8px; }
.admin-sidebar-bottom > a, .admin-sidebar-bottom button { width: 100%; min-height: 36px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1); background: transparent; color: rgba(255,255,255,.56); font-size: 8px; cursor: pointer; }
.admin-sidebar-bottom > a:hover, .admin-sidebar-bottom button:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.admin-mobile-header { display: none; }
.admin-login-card { width: min(460px, calc(100% - 32px)); margin: 8vh auto; padding: 42px; border: 1px solid var(--line); background: #fff; box-shadow: 0 28px 80px rgba(12,13,18,.1); }
.admin-login-copy { margin-top: 54px; }
.admin-login-copy > span, .admin-page-intro > div > span { color: var(--purple); font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
.admin-login-copy h1 { margin: 11px 0 0; font-size: 34px; letter-spacing: -1.8px; }
.admin-login-copy p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.admin-login-card form { margin-top: 30px; display: grid; gap: 14px; }
.admin-login-card label, .admin-ad-form > label { color: var(--muted); font-size: 8px; font-weight: 800; }
.admin-login-card input, .admin-ad-form input, .admin-ad-form select { width: 100%; height: 44px; margin-top: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 0; background: #fff; outline: 0; font-size: 10px; }
.admin-login-card input:focus, .admin-ad-form input:focus, .admin-ad-form select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,86,255,.08); }
.admin-login-card form button, .admin-ad-form > button { min-height: 44px; border: 0; background: var(--purple); color: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.admin-login-card form button:disabled { opacity: .4; cursor: not-allowed; }
.admin-back { margin-top: 28px; display: inline-flex; color: var(--muted); font-size: 9px; }
.admin-message { margin: 20px 0 0; padding: 13px 15px; border-left: 3px solid var(--purple); background: var(--purple-soft); font-size: 10px; line-height: 1.6; }
.admin-message.error { border-color: var(--rise); background: #fff1f3; color: #a31f35; }
.admin-message.warning { border-color: var(--warning); background: #fff8e9; color: #79500b; }
.admin-message.success { border-color: var(--success); background: #ebfaf5; color: var(--success); }
.admin-header { height: 78px; padding: 0 max(24px, calc((100% - 1180px) / 2)); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: #fff; }
.admin-header > p { margin: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.admin-header > p small, .admin-header > p strong { display: block; }
.admin-header > p small { color: var(--purple); font-size: 7px; font-weight: 900; letter-spacing: 1px; }
.admin-header > p strong { margin-top: 4px; font-size: 10px; }
.admin-header form { margin-left: auto; }
.admin-header form button { padding: 9px 12px; border: 1px solid var(--line); background: #fff; font-size: 9px; cursor: pointer; }
.admin-main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 58px 0 90px; }
.admin-console-main { width: auto; max-width: 1340px; margin: 0 auto 0 244px; padding: 54px 48px 90px; }
.admin-page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.admin-page-intro h1 { margin: 14px 0 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.13; letter-spacing: -3px; }
.admin-page-intro p { margin: 18px 0 0; color: var(--muted); font-size: 11px; }
.admin-page-intro > strong { display: flex; align-items: baseline; gap: 8px; }
.admin-page-intro > strong b { font-size: 44px; }
.admin-page-intro > strong small { color: var(--muted); font-size: 10px; }
.admin-page-intro.compact h1 { font-size: clamp(34px, 4vw, 50px); }
.admin-new-ad { margin-top: 42px; border: 1px solid #d8d1ff; background: #fff; }
.admin-new-ad summary { min-height: 74px; padding: 0 22px; display: flex; align-items: center; gap: 14px; list-style: none; cursor: pointer; }
.admin-new-ad summary::-webkit-details-marker { display: none; }
.admin-new-ad summary > span { width: 32px; height: 32px; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 17px; }
.admin-new-ad summary div { display: grid; gap: 5px; }
.admin-new-ad summary strong { font-size: 12px; }
.admin-new-ad summary small { color: var(--muted); font-size: 8px; }
.admin-new-ad summary > i { margin-left: auto; color: var(--muted); font-size: 8px; font-style: normal; }
.admin-new-ad .admin-ad-form { border-top: 1px solid var(--line); }
.admin-ad-list { margin-top: 28px; display: grid; gap: 14px; }
.admin-almani-control { margin-top: 26px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid #d9d2ff; background: linear-gradient(110deg, #f5f2ff, #fff); }
.admin-almani-control > div > span { color: var(--purple); font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.admin-almani-control h2 { margin: 8px 0 0; font-size: 22px; }
.admin-almani-control p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.admin-almani-control form { display: flex; align-items: center; gap: 12px; }
.admin-almani-control form > span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.admin-almani-control form > span i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
.admin-almani-control form > span.active { color: #07873e; }
.admin-almani-control form > span.active i { background: #21b765; }
.admin-almani-control button { min-height: 40px; padding: 0 14px; border: 0; background: var(--ink); color: #fff; font-size: 9px; font-weight: 850; cursor: pointer; }
.admin-placement-control { padding: 0; display: block; overflow: hidden; border-color: #d8d1ff; background: #fff; }
.admin-placement-control > header { min-height: 104px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 22px; background: linear-gradient(110deg, #f5f2ff, #fff); }
.admin-placement-control > header > div > span { color: var(--purple); font-size: 8px; font-weight: 950; letter-spacing: .15em; }
.admin-placement-control > header > strong { padding: 8px 10px; display: flex; align-items: center; gap: 7px; background: #ececf0; color: var(--muted); font-size: 8px; }
.admin-placement-control > header > strong i { width: 6px; height: 6px; border-radius: 50%; background: #9d9da6; }
.admin-placement-control > header > strong.active { background: #e7f8f1; color: #087a58; }
.admin-placement-control > header > strong.active i { background: #20b979; box-shadow: 0 0 0 4px rgba(32,185,121,.1); }
.admin-placement-switches { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #e5e2f5; }
.admin-placement-switches article { min-height: 112px; padding: 20px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 11px; border-left: 1px solid var(--line); background: #fff; transition: background .18s; }
.admin-placement-switches article:first-child { border-left: 0; }
.admin-placement-switches article.active { background: linear-gradient(145deg, #fff, #f6fff9); }
.admin-placement-switches article > span { width: 28px; height: 28px; display: grid; place-items: center; background: #eeeef2; color: #8b8b94; font-size: 7px; font-weight: 950; }
.admin-placement-switches article.active > span { background: var(--purple); color: #fff; }
.admin-placement-switches article > div { display: grid; gap: 5px; }
.admin-placement-switches article > div strong { font-size: 10px; }
.admin-placement-switches article > div small { color: var(--muted); font-size: 7px; }
.admin-placement-switches form { display: block; }
.admin-placement-switches button { min-width: 65px; min-height: 34px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 20px; background: #e9e9ed; color: #7d7d86; }
.admin-placement-switches button i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
.admin-placement-switches article.active button { background: #e6f8f0; color: #087a58; }
.admin-placement-switches article.active button i { background: #20b979; }
.admin-platform-links { min-height: 62px; padding: 10px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); background: #fafafa; }
.admin-platform-links > span { padding: 0 12px; display: grid; grid-template-columns: 25px 90px 1fr; align-items: center; gap: 9px; border: 1px solid var(--line); background: #fff; }
.admin-platform-links > span > b { width: 25px; height: 25px; display: grid; place-items: center; background: #03c75a; color: #fff; font-size: 8px; }
.admin-platform-links > span:last-child > b { background: #6653e8; }
.admin-platform-links small { color: var(--muted); font-size: 7px; font-weight: 800; }
.admin-platform-links a { overflow: hidden; color: var(--ink); font-size: 8px; font-weight: 850; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.admin-banner-studio { margin-top: 16px; overflow: hidden; border: 1px solid #d8d1ff; background: #fff; box-shadow: 0 20px 50px rgba(43,30,125,.07); }
.admin-banner-studio-head { min-height: 122px; padding: 28px 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(120deg, #111218 0 58%, #261b62 100%); color: #fff; }
.admin-banner-studio-head > div:first-child > span { color: #a99cff; font-size: 8px; font-weight: 950; letter-spacing: .18em; }
.admin-banner-studio-head h2 { margin: 9px 0 0; font-size: 25px; letter-spacing: -.8px; }
.admin-banner-studio-head p { max-width: 650px; margin: 9px 0 0; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.7; }
.admin-banner-current { min-width: 245px; padding: 15px 17px; display: grid; gap: 6px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); }
.admin-banner-current > span { width: max-content; padding: 4px 6px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.66); font-size: 7px; font-weight: 900; }
.admin-banner-current > span.custom { background: rgba(53,215,166,.15); color: #67efc6; }
.admin-banner-current > strong { max-width: 260px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-banner-current > small { display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.45); font-size: 7px; }
.admin-banner-current > small b { color: rgba(255,255,255,.72); }
.admin-banner-studio-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); }
.admin-banner-editor, .admin-banner-placement { min-width: 0; padding: 28px 30px 30px; }
.admin-banner-placement { border-left: 1px solid var(--line); background: #f8f8fb; }
.admin-banner-editor-title { display: flex; align-items: center; gap: 11px; }
.admin-banner-editor-title > span { width: 30px; height: 30px; display: grid; place-items: center; background: var(--purple); color: #fff; font-size: 8px; font-weight: 950; }
.admin-banner-editor-title > div { display: grid; gap: 4px; }
.admin-banner-editor-title strong { font-size: 11px; }
.admin-banner-editor-title small { color: var(--muted); font-size: 7px; }
.admin-banner-dropzone { min-height: 78px; margin-top: 20px; padding: 15px 17px; display: grid; position: relative; grid-template-columns: 36px 1fr auto; align-items: center; gap: 13px; border: 1px dashed #c7bfff; background: #faf9ff; cursor: pointer; transition: border-color .18s, background .18s, transform .18s; }
.admin-banner-dropzone:hover, .admin-banner-dropzone.dragging { border-color: var(--purple); background: #f3f0ff; transform: translateY(-1px); }
.admin-banner-dropzone.ready { border-style: solid; }
.admin-banner-dropzone input { width: 1px; height: 1px; position: absolute; overflow: hidden; opacity: 0; }
.admin-banner-dropzone > i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--purple); color: #fff; font-size: 18px; font-style: normal; box-shadow: 0 8px 18px rgba(108,86,255,.23); }
.admin-banner-dropzone > span { display: grid; gap: 5px; }
.admin-banner-dropzone > span strong { font-size: 9px; }
.admin-banner-dropzone > span small { color: var(--muted); font-size: 7px; }
.admin-banner-dropzone > b { max-width: 200px; overflow: hidden; color: var(--purple); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.admin-banner-canvas-shell { margin-top: 16px; position: relative; overflow: hidden; border: 1px solid #24242b; background: #16161d; box-shadow: 0 14px 30px rgba(12,13,18,.12); }
.admin-banner-canvas-toolbar { height: 34px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; background: #16161d; color: rgba(255,255,255,.45); }
.admin-banner-canvas-toolbar span { display: flex; align-items: center; gap: 6px; font-size: 7px; font-weight: 850; }
.admin-banner-canvas-toolbar span i { width: 5px; height: 5px; border-radius: 50%; background: #35d7a6; box-shadow: 0 0 0 3px rgba(53,215,166,.12); }
.admin-banner-canvas-toolbar small { font-size: 7px; }
.admin-banner-canvas-shell canvas { width: 100%; height: auto; display: block; background: #ffb510; cursor: grab; touch-action: none; }
.admin-banner-canvas-shell canvas.dragging { cursor: grabbing; }
.admin-banner-canvas-shell canvas:focus-visible { outline: 3px solid #8f7eff; outline-offset: -3px; }
.admin-banner-canvas-grid { position: absolute; z-index: 2; inset: 34px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); pointer-events: none; }
.admin-banner-canvas-grid i { border-left: 1px solid rgba(255,255,255,.2); }
.admin-banner-canvas-grid i:first-child { border-left: 0; }
.admin-banner-controls { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.admin-banner-controls label { min-width: 0; }
.admin-banner-controls label > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-banner-controls label b { font-size: 8px; }
.admin-banner-controls output { color: var(--purple); font-size: 7px; font-weight: 850; }
.admin-banner-controls input[type="range"] { width: 100%; height: 3px; margin-top: 12px; display: block; border: 0; background: #ddd9f8; accent-color: var(--purple); cursor: pointer; }
.admin-banner-tools { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.admin-banner-tools button { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 7px; font-weight: 800; cursor: pointer; }
.admin-banner-tools button:hover { border-color: var(--purple); color: var(--purple); }
.admin-banner-upload-form { min-height: 70px; margin-top: 20px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.admin-banner-upload-form > div { display: grid; gap: 5px; }
.admin-banner-upload-form span { color: var(--ink); font-size: 8px; font-weight: 800; line-height: 1.5; }
.admin-banner-upload-form span[data-tone="error"] { color: #b5233a; }
.admin-banner-upload-form span[data-tone="success"] { color: #087a58; }
.admin-banner-upload-form small { color: var(--muted); font-size: 7px; }
.admin-banner-upload-form button { min-width: 154px; min-height: 42px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--purple); color: #fff; font-size: 8px; font-weight: 900; cursor: pointer; box-shadow: 0 10px 20px rgba(108,86,255,.2); }
.admin-banner-upload-form button i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.admin-banner-upload-form button:disabled { opacity: .42; box-shadow: none; cursor: not-allowed; }
.admin-banner-upload-form button.busy i { border: 1px solid rgba(255,255,255,.35); border-top-color: #fff; background: transparent; animation: banner-spin .7s linear infinite; }
@keyframes banner-spin { to { transform: rotate(360deg); } }
.admin-placement-card { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.admin-placement-card > header { min-height: 32px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); }
.admin-placement-card > header > span { display: flex; gap: 3px; }
.admin-placement-card > header > span i { width: 5px; height: 5px; border-radius: 50%; background: #dedee5; }
.admin-placement-card > header b { font-size: 7px; }
.admin-placement-card > header small { margin-left: auto; color: var(--muted); font-size: 6px; }
.admin-placement-card.desktop > div { aspect-ratio: 1776 / 200; overflow: hidden; background: #ffb510; }
.admin-placement-card.desktop img { width: 100%; height: 100%; display: block; object-fit: cover; }
.admin-placement-small-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-placement-card.mobile > div { height: 78px; overflow: hidden; }
.admin-placement-card.mobile img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.admin-placement-card.sidebar > div { height: 116px; padding: 13px; position: relative; overflow: hidden; background: #ffb510; }
.admin-placement-card.sidebar img { width: 180%; height: 100%; position: absolute; inset: 0 0 0 auto; object-fit: cover; object-position: 72% center; opacity: .18; mix-blend-mode: multiply; }
.admin-placement-card.sidebar span { display: grid; position: relative; z-index: 1; gap: 5px; }
.admin-placement-card.sidebar span small { font-size: 6px; font-weight: 900; letter-spacing: .1em; }
.admin-placement-card.sidebar span strong { max-width: 90px; font-size: 9px; line-height: 1.35; }
.admin-placement-card.sidebar span b { margin-top: 18px; font-size: 6px; }
.admin-placement-card.ticker > div { min-height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 7px; background: #111218; color: #fff; }
.admin-placement-card.ticker > div i { width: 5px; height: 5px; border-radius: 50%; background: #35d7a6; }
.admin-placement-card.ticker > div strong { color: #a99cff; font-size: 6px; letter-spacing: .08em; }
.admin-placement-card.ticker > div span { overflow: hidden; font-size: 7px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.admin-placement-card.ticker > div b { margin-left: auto; color: #a99cff; }
.admin-banner-spec { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.admin-banner-spec span { min-height: 56px; padding: 10px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border-left: 1px solid var(--line); }
.admin-banner-spec span:first-child { border-left: 0; }
.admin-banner-spec b { color: var(--muted); font-size: 6px; }
.admin-banner-spec strong { font-size: 7px; }
.admin-banner-reset { margin-top: 12px; text-align: right; }
.admin-banner-reset button { padding: 7px 0; border: 0; border-bottom: 1px solid #cfcfd6; background: transparent; color: var(--muted); font-size: 7px; cursor: pointer; }
.admin-banner-reset button:hover { border-color: #a31f35; color: #a31f35; }
.admin-ad-card { overflow: hidden; border: 1px solid var(--line); background: #fff; }
.admin-ad-card > header { min-height: 64px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: #111218; color: #fff; }
.admin-ad-preview { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.admin-ad-preview b { color: #ad9fff; font-size: 8px; letter-spacing: 1px; }
.admin-ad-preview span { font-size: 10px; font-weight: 750; }
.admin-ad-preview em { color: #ad9fff; font-style: normal; }
.admin-ad-card.green .admin-ad-preview b, .admin-ad-card.green .admin-ad-preview em { color: #35d7a6; }
.admin-ad-card.blue .admin-ad-preview b, .admin-ad-card.blue .admin-ad-preview em { color: #72a9ff; }
.admin-ad-card.orange .admin-ad-preview b, .admin-ad-card.orange .admin-ad-preview em { color: #ffb35f; }
.admin-ad-card.purple > header { background: linear-gradient(100deg, #211c42, #111218); }
.admin-ad-state { display: grid; grid-template-columns: auto auto; align-items: center; gap: 3px 7px; }
.admin-ad-state i { width: 6px; height: 6px; border-radius: 50%; background: #777; }
.admin-ad-state i.active { background: #35d7a6; }
.admin-ad-state strong { font-size: 8px; }
.admin-ad-state small { grid-column: 2; color: rgba(255,255,255,.5); font-size: 7px; }
.admin-ad-form { padding: 20px; display: grid; grid-template-columns: 120px minmax(180px, 1fr) minmax(180px, 1fr) 120px; align-items: end; gap: 14px; }
.admin-ad-form > label.wide { grid-column: span 2; }
.admin-ad-form > label small { margin-top: 5px; display: block; color: var(--muted); font-size: 7px; font-weight: 500; }
.admin-ad-checks { min-height: 44px; display: flex; align-items: center; gap: 14px; }
.admin-ad-checks label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; font-weight: 700; }
.admin-ad-checks input { width: 14px; height: 14px; margin: 0; accent-color: var(--purple); }
.admin-ad-form > button { padding: 0 16px; }
.admin-ad-visibility { min-height: 48px; padding: 0 20px; display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); background: #fafafa; }
.admin-ad-visibility button { padding: 7px 10px; border: 1px solid var(--line); background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-ad-visibility small { color: var(--muted); font-size: 8px; }
.admin-ad-footer { min-height: 48px; padding-right: 20px; display: flex; align-items: center; border-top: 1px solid var(--line); background: #fafafa; }
.admin-ad-footer .admin-ad-visibility { flex: 1; border-top: 0; }
.admin-ad-delete button { padding: 7px 10px; border: 0; background: transparent; color: #a31f35; font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-token-summary { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: #fff; }
.admin-token-summary article { min-height: 108px; padding: 22px; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.admin-token-summary article:last-child { border-right: 0; }
.admin-token-summary span { color: var(--muted); font-size: 8px; font-weight: 750; }
.admin-token-summary strong { margin-top: 8px; font-size: 20px; letter-spacing: -.7px; }
.admin-token-summary small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.admin-token-list { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-token-list > article { padding: 22px; border: 1px solid var(--line); background: #fff; }
.admin-token-list > article.status-reconnect { border-color: #efb2bb; }
.admin-token-list > article > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-token-list > article > header > div { display: flex; align-items: center; gap: 11px; }
.admin-token-list > article > header > div > i { width: 34px; height: 34px; display: grid; place-items: center; background: #111218; color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.admin-token-list > article > header span, .admin-token-list > article > header strong, .admin-token-list > article > header small { display: block; }
.admin-token-list > article > header strong { font-size: 13px; }
.admin-token-list > article > header small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.token-state { padding: 6px 8px; background: #eef1f5; color: var(--muted); font-size: 7px; font-style: normal; font-weight: 850; }
.token-state.healthy { background: #e8f8f2; color: #087a58; }
.token-state.refresh_due { background: #fff5dc; color: #906000; }
.token-state.reconnect, .token-state.expired { background: #fff0f2; color: #a31f35; }
.admin-token-metrics { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.admin-token-metrics p { margin: 0; padding: 16px 12px; border-right: 1px solid var(--line); }
.admin-token-metrics p:first-child { padding-left: 0; }
.admin-token-metrics p:last-child { border-right: 0; }
.admin-token-metrics span, .admin-token-metrics strong, .admin-token-metrics small { display: block; }
.admin-token-metrics span { color: var(--muted); font-size: 7px; }
.admin-token-metrics strong { margin-top: 6px; font-size: 8px; }
.admin-token-metrics small { margin-top: 4px; color: var(--muted); font-size: 7px; }
.admin-token-scopes { min-height: 58px; padding-top: 15px; display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.admin-token-scopes > span { color: var(--muted); font-size: 7px; font-weight: 800; }
.admin-token-scopes > div { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-token-scopes code { padding: 3px 5px; background: #f2f2f5; color: #575966; font-size: 7px; }
.admin-token-list > article > footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-token-list > article > footer > span { color: var(--muted); font-size: 7px; }
.admin-token-list > article > footer button, .admin-token-list > article > footer a { min-height: 34px; padding: 0 11px; display: grid; place-items: center; border: 0; background: var(--purple); color: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-payment-filter { margin-top: 36px; padding: 18px; display: grid; grid-template-columns: minmax(240px, 1fr) 170px auto auto; align-items: end; gap: 10px; border: 1px solid var(--line); background: #fff; }
.admin-payment-filter label > span { display: block; color: var(--muted); font-size: 7px; font-weight: 800; }
.admin-payment-filter input, .admin-payment-filter select { width: 100%; height: 40px; margin-top: 7px; padding: 0 10px; border: 1px solid var(--line); background: #fff; font-size: 9px; }
.admin-payment-filter button, .admin-payment-filter > a { min-height: 40px; padding: 0 15px; display: grid; place-items: center; border: 0; background: #111218; color: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.admin-payment-filter > a { border: 1px solid var(--line); background: #fff; color: var(--muted); }
.admin-payment-table { margin-top: 18px; border: 1px solid var(--line); background: #fff; }
.admin-payment-table > header, .admin-payment-table > article { display: grid; grid-template-columns: 1.2fr 1.1fr 1fr .7fr 1fr; align-items: center; gap: 16px; }
.admin-payment-table > header { min-height: 42px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #f8f8fa; color: var(--muted); font-size: 7px; font-weight: 850; }
.admin-payment-table > article { min-height: 76px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.admin-payment-table > article:last-child { border-bottom: 0; }
.admin-payment-table article div strong, .admin-payment-table article div small, .admin-payment-table article div time, .admin-payment-table article div code { display: block; }
.admin-payment-table article div strong, .admin-payment-table article div time { font-size: 9px; font-weight: 800; }
.admin-payment-table article div small, .admin-payment-table article div code { margin-top: 5px; color: var(--muted); font-size: 7px; }
.admin-payment-table article form { display: flex; gap: 5px; }
.admin-payment-table article select { min-width: 92px; height: 32px; border: 1px solid var(--line); background: #fff; font-size: 7px; }
.admin-payment-table article button { height: 32px; padding: 0 9px; border: 0; background: var(--purple); color: #fff; font-size: 7px; font-weight: 800; cursor: pointer; }
.admin-force-action { margin-top: 6px; position: relative; }
.admin-force-action summary { min-height: 32px; padding: 0 9px; display: inline-flex; align-items: center; border: 1px solid #f1c8ce; color: var(--danger); font-size: 7px; font-weight: 850; cursor: pointer; list-style: none; }
.admin-force-action summary::-webkit-details-marker { display: none; }
.admin-force-action form { width: 290px; margin-top: 8px; padding: 12px; flex-direction: column; align-items: stretch; gap: 8px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 32px rgba(17,18,24,.12); }
.admin-force-action label span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 7px; font-weight: 800; }
.admin-force-action input, .admin-force-action select { width: 100%; min-height: 34px; padding: 0 9px; border: 1px solid var(--line); background: #fff; font-size: 8px; }
.admin-force-action form > small { color: var(--muted); font-size: 7px; line-height: 1.55; }
.admin-force-action form > button { background: var(--danger); }
.admin-pagination { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.admin-pagination a { padding: 8px 12px; border: 1px solid var(--line); background: #fff; font-size: 8px; }
.admin-pagination span { color: var(--muted); font-size: 8px; }
.admin-safe-note { margin: 22px 0 0; color: var(--muted); font-size: 8px; line-height: 1.7; text-align: center; }
.admin-empty { padding: 70px 20px; border: 1px solid var(--line); background: #fff; text-align: center; }
.admin-empty strong { font-size: 13px; }
.admin-empty p { margin: 8px 0 0; color: var(--muted); font-size: 9px; }

@media (max-width: 920px) {
    :root { --sidebar: 78px; }
    .dash-sidebar { padding-inline: 12px; }
    .console-brand { justify-content: center; padding: 0; }
    .console-brand strong, .service-name, .dash-nav a:not(.active), .dash-nav .nav-item { font-size: 0; }
    .dash-nav a, .dash-nav .nav-item { padding: 0; justify-content: center; }
    .dash-nav a span, .dash-nav .nav-item > span { width: auto; font-size: 9px; }
    .dash-nav .nav-item small { display: none; }
    .dash-nav a.active { font-size: 0; }
    .sidebar-promo { width: 54px; min-height: 54px; padding: 0; display: grid; place-items: center; border-radius: 10px; }
    .sidebar-promo::before { position: relative; z-index: 1; content: "ALMANI\A CRM"; color: #111218; font-size: 8px; line-height: 1.35; font-weight: 950; text-align: center; white-space: pre; }
    .sidebar-promo > strong, .sidebar-promo-platforms, .sidebar-promo > em { display: none; }
    .dashboard-content { width: min(100% - 40px, 1440px); }
    .market-layout { grid-template-columns: 1fr; }
    .manual-quote-panel form { grid-template-columns: 1fr 1fr; }
    .manual-quote-panel button { width: 100%; }
    .watch-panel { border-left: 1px solid var(--line); }
    .watch-list { max-height: 315px; }
    .split-section { grid-template-columns: 1fr; gap: 55px; }
    .landing-gate { grid-template-columns: 1fr; }
    .landing-gate > header { grid-row: auto; }
    .landing-pricing-head { align-items: flex-start; flex-direction: column; }
    .landing-faq { grid-template-columns: 1fr; gap: 48px; }
    .landing-faq > header { position: static; }
    .connect-block { padding: 58px; }
    .product-hero { align-items: flex-start; flex-direction: column; }
    .product-workspace-copy, .product-console-tabs { width: 100%; }
    .product-console-tabs a { flex: 1; }
    .product-sync-actions { justify-content: flex-start; text-align: left; }
    .product-stats { grid-template-columns: repeat(2, 1fr); }
    .rule-guide-grid { grid-template-columns: 1fr 1fr; }
    .rule-guide-grid article:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
    .rule-guide-grid article:nth-child(4) { border-top: 1px solid var(--line); }
    .product-list-card { overflow-x: hidden; }
    .run-summary-card { grid-template-columns: 1fr; }
    .run-summary-card dl div { padding: 4px 10px; }
    .history-item-list { min-width: 680px; }
    .product-toolbar, .product-bulk-bar { min-width: 0; flex-wrap: wrap; }
    .product-toolbar .product-search { flex-basis: 100%; }
    .product-toolbar .visible-product-count { margin-left: 0; }
    .product-status-filters { order: 3; width: 100%; }
    .product-status-filters a { flex: 1; justify-content: center; }
    .rule-dialog-body { grid-template-columns: 1fr; }
    .rule-help-panel { position: static; }
    .product-row { min-width: 920px; }
    .rule-library-card { grid-template-columns: minmax(210px, 1fr) minmax(390px, 1.7fr) minmax(140px, .7fr) 122px; min-width: 930px; }
    .rule-fields { grid-template-columns: 1fr; }
    .plan-grid { grid-template-columns: 1fr; }
    .plan-grid article { border-top: 1px solid var(--line); border-left: 0; }
    .plan-grid article:first-child { border-top: 0; }
    .subscription-summary { grid-template-columns: 1fr 1fr; }
    .subscription-summary article:nth-child(3) { border-left: 0; }
    .naver-customer-grid { grid-template-columns: 1fr; }
    .naver-billing-summary { grid-template-columns: 1fr 1fr; }
    .naver-billing-summary article:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .naver-store-profile { border-right: 0; border-bottom: 1px solid var(--line-strong); }
    .naver-customer-grid > article { min-height: 0; }
    .naver-faq-section { grid-template-columns: 1fr; gap: 34px; }
    .trial-status-card { grid-template-columns: 1fr; gap: 30px; }
    .trial-day-mark { justify-self: start; }
    .payment-history-head { display: none; }
    .payment-history-table article { padding: 14px 0; grid-template-columns: 1fr 1fr; }
    .payment-history-table code { grid-column: 1 / -1; }
    .console-footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-support-block { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
    .admin-ad-form { grid-template-columns: 1fr 1fr; }
    .admin-ad-form > label.wide { grid-column: span 2; }
    .admin-console-main { padding-inline: 28px; }
    .admin-token-list { grid-template-columns: 1fr; }
    .admin-payment-table { overflow-x: auto; }
    .admin-payment-table > header, .admin-payment-table > article { min-width: 860px; }
}

@media (max-width: 700px) {
    .page-shell { width: min(100% - 30px, 1180px); }
    .topnav { display: none; }
    .landing-header { height: 76px; }
    .landing-header .button { display: none; }
    .landing-gate { width: 100%; margin-top: 0; padding: 30px 20px; gap: 26px; border-right: 0; border-left: 0; }
    .onboarding-funnel { grid-template-columns: 1fr; gap: 12px; }
    .onboarding-funnel > span { display: none; }
    .onboarding-funnel article { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
    .landing-gate-action { align-items: stretch; flex-direction: column; }
    .landing-gate-action .button { width: 100%; }
    .landing-gate-buttons { align-items: stretch; flex-direction: column; }
    .landing-hero { padding: 74px 0; }
    .landing-hero h1 { font-size: 48px; letter-spacing: -3px; }
    .landing-hero-actions { align-items: stretch; flex-direction: column; }
    .landing-hero-actions .button { width: 100%; }
    .hero-facts { grid-template-columns: 1fr; }
    .hero-facts strong + strong { border-top: 1px solid var(--line); border-left: 0; }
    .problem-grid { grid-template-columns: 1fr; }
    .problem-grid article:first-child { padding-left: 24px; }
    .problem-grid article + article { border-top: 1px solid var(--line-dark); border-left: 0; }
    .landing-dark, .landing-section, .landing-purple { padding-block: 78px; }
    .formula-line { align-items: flex-start; flex-direction: column; }
    .formula-line i { display: none; }
    .formula-values { grid-template-columns: 1fr 1fr; }
    .formula-values div:first-child { padding-left: 24px; }
    .formula-values div:nth-child(odd) { border-left: 0; }
    .formula-values div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.45); }
    .formula-values div:last-child { grid-column: span 2; border-left: 0; }
    .landing-purple footer { align-items: flex-start; flex-direction: column; }
    .landing-purple footer div { text-align: left; }
    .landing-pricing { padding-block: 78px; }
    .landing-pricing-head h2 { font-size: 38px; }
    .landing-plan-grid { grid-template-columns: 1fr; }
    .landing-plan-grid article { min-height: 460px; padding: 28px 22px; }
    .landing-plan-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
    .landing-plan-grid article > em { top: 24px; right: 22px; }
    .landing-faq { padding-block: 78px; }
    .landing-faq-unsubscribe { padding: 28px 22px; }
    .landing-faq-unsubscribe h3 { font-size: 23px; }
    .landing-faq-unsubscribe > p { padding: 14px; font-size: 13px; }
    .landing-faq-list summary { min-height: 68px; padding-right: 38px; font-size: 15px; }
    .landing-faq-list details > p { margin-right: 20px; font-size: 13px; }
    .connect-block { width: 100%; margin-block: 0; padding: 60px 20px; }
    .platform-connect-grid { grid-template-columns: 1fr; }
    .platform-connect-card { padding: 26px 22px; }
    .landing-footer { margin-top: 0; }
    :root { --sidebar: 0px; }
    .dash-sidebar { display: none; }
    .mobile-console-nav { height: 62px; padding: 5px 4px calc(5px + env(safe-area-inset-bottom)); display: flex; position: fixed; z-index: 100; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--line-strong); background: rgba(255,255,255,.97); box-shadow: 0 -8px 30px rgba(12,13,18,.08); }
    .mobile-console-nav a { min-width: 0; flex: 1 1 0; display: grid; place-items: center; align-content: center; color: var(--muted); text-decoration: none; }
    .mobile-console-nav a small { font-size: 11px; font-weight: 850; }
    .mobile-console-nav a.active { background: var(--purple-soft); color: var(--purple); }
    .dash-main { padding-bottom: 74px; }
    .console-footer { margin-left: 0; padding: 34px 18px 84px; }
    .console-footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .footer-support-block { grid-column: auto; }
    .console-footer-bottom { align-items: flex-start; flex-direction: column; }
    .legal-main { width: calc(100% - 28px); padding: 42px 0 70px; }
    .legal-document { padding: 10px 20px; }
    .legal-table > div { grid-template-columns: 1fr; gap: 6px; }
    .legal-table > div:first-child { display: none; }
    .console-topbar { min-height: 64px; padding: 0 14px; }
    .admin-support-indicator { min-width: 0; flex: 1 1 auto; padding-left: 10px; }
    .admin-support-indicator small { display: none; }
    .admin-support-indicator + .console-top-actions .store-selector.connected { width: 46px; grid-template-columns: 28px; }
    .admin-support-indicator + .console-top-actions .store-selector.connected p,
    .admin-support-indicator + .console-top-actions .store-selector.connected > i { display: none; }
    .live-market-strip { grid-template-columns: 38px minmax(0, 1fr) 36px; }
    .live-market-label { min-width: 38px; padding: 0; justify-content: center; }
    .live-market-label span { display: none; }
    .live-market-loading, .live-market-quote, .live-market-promo { padding-inline: 15px; gap: 7px; }
    .live-market-quote > small { display: none; }
    .live-market-pause { width: 36px; }
    .almani-hero-banner { height: 82px; }
    .almani-hero-banner img { width: auto; min-width: 100%; height: 100%; object-fit: cover; object-position: left center; }
    .store-selector { min-width: 0; width: 46px; padding: 0 8px; grid-template-columns: 28px; border: 0; }
    .store-selector p, .store-selector > i { display: none; }
    .store-selector.connected { width: min(100%, 270px); padding: 0 8px; grid-template-columns: 28px minmax(54px, 1fr) auto; }
    .store-selector.connected p, .store-selector.connected > i { display: block; }
    .store-selector.store-connect { width: auto; padding: 0 10px; grid-template-columns: 28px auto; border: 1px solid var(--ink); }
    .store-selector.store-connect > i { display: block; background: var(--ink); color: #fff; }
    .dashboard-content { width: calc(100% - 28px); padding-top: 20px; }
    .product-list-card > header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .product-list-card > header .product-status-filters { overflow-x: auto; }
    .price-rule-management-card { overflow: visible; border: 0; background: transparent; }
    .price-rule-management-card > header { padding-inline: 4px; border: 0; }
    .rule-management-list { gap: 12px; }
    .rule-management-row { min-width: 0; padding: 18px; grid-template-columns: 1fr 1fr; gap: 18px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: white; }
    .rule-management-product { grid-column: 1 / -1; }
    .rule-management-basis, .rule-management-state { align-self: stretch; padding: 12px; border-radius: 9px; background: var(--surface); }
    .rule-management-formula { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
    .rule-management-formula span { padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; }
    .rule-management-actions { grid-column: 1 / -1; }
    .rule-management-actions a, .rule-management-actions button { min-height: 40px; flex: 1; }
    .product-last-sync { text-align: left; }
    .product-toolbar { padding: 14px; align-items: end; }
    .product-toolbar .product-filter { flex: 1 1 150px; }
    .product-toolbar .product-page-size { flex: 0 0 96px; }
    .product-toolbar .visible-product-count { width: 100%; order: 8; }
    .product-toolbar .direct-all-prices, .product-toolbar .rule-mode-actions { width: 100%; }
    .rule-mode-actions { display: flex; flex-wrap: wrap; gap: 6px; }
    .rule-mode-actions button { flex: 1 1 auto; }
    .product-bulk-bar { padding: 16px; align-items: flex-start; flex-direction: column; }
    .product-bulk-actions { width: 100%; margin-left: 0; flex-wrap: wrap; }
    .product-bulk-actions button { flex: 1 1 130px; }
    .rule-library-guide { margin-inline: 14px; align-items: flex-start; flex-direction: column; gap: 7px; }
    .rule-library-list { padding-inline: 14px; overflow-x: auto; }
    .rule-library-card { min-width: 0; grid-template-columns: 1fr; gap: 18px; }
    .rule-library-formula { grid-template-columns: 1fr 1fr; gap: 10px; }
    .rule-library-formula span { padding: 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
    .rule-library-state { grid-template-columns: auto 1fr; align-items: center; }
    .rule-library-actions button { min-height: 42px; flex: 1; }
    .price-rule-library > header .create-rule-template { width: 100%; }
    .product-pagination { min-width: 0; padding-inline: 12px; }
    .product-pagination a, .product-pagination span { min-width: 34px; height: 36px; padding-inline: 8px; }
    .rule-dialog form > header { min-height: 0; padding: 20px; align-items: flex-start; }
    .rule-dialog-body { padding: 16px; }
    .rule-fields { grid-template-columns: 1fr; padding: 16px; }
    .rule-fields .rule-toggle { grid-column: auto; }
    .rule-base-quote-context { grid-template-columns: 1fr; gap: 8px; }
    .rule-base-quote-context > span { grid-row: auto; padding: 0 0 8px; border-right: 0; border-bottom: 1px solid rgba(108,86,255,.18); }
    .rule-preview { margin-inline: 16px; }
    .rule-dialog form > footer { padding: 14px 16px; align-items: stretch; flex-direction: column; }
    .rule-dialog form > footer p { margin-right: 0; }
    .rule-dialog form > footer button { width: 100%; }
    .direct-price-content { padding: 18px 16px; }
    .direct-price-modes { grid-template-columns: 1fr; }
    .direct-price-modes label { min-height: 0; }
    .direct-quote-grid { grid-template-columns: 1fr; }
    .autop-toast-region { top: 10px; right: 14px; left: 14px; width: auto; }
    .autop-confirm-dialog form { padding: 22px 18px; grid-template-columns: 42px 1fr; }
    .autop-confirm-mark { width: 42px; height: 42px; border-radius: 12px; }
    .autop-confirm-dialog footer button { flex: 1; }
    .trial-status-card { min-height: 0; margin-top: 20px; padding: 28px 22px; border-radius: 14px; }
    .trial-status-copy > strong { font-size: 32px; }
    .trial-day-mark b { font-size: 58px; }
    .subscription-summary { grid-template-columns: 1fr; }
    .subscription-summary article { min-height: 116px; border-left: 0; border-top: 1px solid var(--line); }
    .subscription-summary article:first-child { border-top: 0; }
    .plan-section, .payment-history-section { margin-top: 48px; }
    .plan-section > header, .payment-history-section > header { align-items: flex-start; flex-direction: column; }
    .plan-grid { margin-top: 24px; }
    .plan-grid article { min-height: 440px; padding: 26px 22px; }
    .subscription-onboarding-banner { padding: 22px; align-items: stretch; flex-direction: column; }
    .subscription-onboarding-banner > a { width: 100%; }
    .naver-customer-hero { padding-top: 34px; align-items: flex-start; flex-direction: column; }
    .naver-billing-section { padding: 28px 20px; }
    .naver-billing-section > header, .naver-payment-history-title { align-items: flex-start; flex-direction: column; }
    .naver-billing-section > header p, .naver-payment-history-title p { text-align: left; }
    .naver-billing-summary { grid-template-columns: 1fr; }
    .naver-billing-summary article { min-height: 116px; border-top: 1px solid var(--line); border-left: 0; }
    .naver-billing-summary article:first-child { border-top: 0; }
    .naver-payment-head { display: none; }
    .naver-payment-table article { padding: 14px 0; grid-template-columns: 1fr 1fr; }
    .naver-customer-grid > article { padding: 28px 20px; }
    .naver-store-profile dl div { padding: 11px 0; grid-template-columns: 1fr; gap: 5px; }
    .naver-unsubscribe-guide h2 { font-size: 24px; }
    .naver-unsubscribe-guide > p { padding: 16px; font-size: 13px; }
    .naver-faq-section { padding-top: 54px; }
    .plan-grid button, .plan-grid article > a { width: calc(100% - 44px); left: 22px; }
    .connection-banner { padding: 22px; align-items: stretch; flex-direction: column; }
    .connection-banner-copy { align-items: flex-start; }
    .dashboard-started-banner { padding: 22px; align-items: stretch; flex-direction: column; }
    .dashboard-started-copy { align-items: flex-start; }
    .dashboard-started-actions { width: 100%; }
    .dashboard-started-actions a { flex: 1; }
    .inline-connect-form { flex-direction: column; }
    .inline-connect-form > div { width: 100%; }
    .summary-grid { grid-template-columns: 1fr; }
    .summary-card + .summary-card { border-top: 1px solid var(--line); border-left: 0; }
    .section-heading-row { margin-top: 48px; align-items: flex-start; flex-direction: column; }
    .market-section-head { margin-top: 42px; align-items: flex-start; flex-direction: column; }
    .manual-quote-panel summary { padding-block: 14px; grid-template-columns: 1fr auto; }
    .manual-quote-panel summary > span, .manual-quote-panel summary > small { grid-column: 1; }
    .manual-quote-panel summary > i { grid-column: 2; grid-row: 1 / 4; }
    .manual-quote-panel form { grid-template-columns: 1fr; }
    .market-layout { display: block; }
    .quote-stage { min-height: 510px; padding: 24px 18px 20px; }
    .quote-stage-head { flex-direction: column; }
    .quote-number { flex-wrap: wrap; }
    .quote-number em { width: 100%; margin-left: 0; }
    .gold-purity-strip { grid-template-columns: 1fr; }
    .gold-purity-strip p { border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
    .gold-purity-strip p:first-child { border-top: 0; }
    .chart-toolbar { align-items: flex-start; flex-direction: column; padding-bottom: 12px; }
    .chart-ranges { width: 100%; }
    .chart-ranges button { flex: 1; }
    .chart-wrap { height: 250px; }
    .quote-stage-foot { align-items: flex-start; flex-wrap: wrap; gap: 14px 24px; }
    .watch-panel { min-height: 0; }
    .watch-row { grid-template-columns: 34px minmax(70px, 1fr) auto; }
    .watch-row > em { display: none; }
    .batch-preview-summary { grid-template-columns: 1fr; padding-inline: 18px; }
    .batch-preview-items { padding-inline: 18px; }
    .batch-preview-items article { padding: 16px 0; grid-template-columns: 1fr; gap: 8px; }
    .batch-preview-items article > em { justify-self: start; text-align: left; }
    .template-picker-body { padding: 18px 16px; }
    .saved-template-list { grid-template-columns: 1fr; }
    #template-preview-items article { grid-template-columns: 1fr auto; }
    #template-preview-items article em { grid-column: 1 / -1; }
    .rule-dialog > section > footer { align-items: stretch; flex-direction: column; }
    .rule-dialog > section > footer p { margin-right: 0; }
    .rule-dialog.template-picker-dialog > section > footer { min-height: 0; padding: 14px 16px; align-items: center; flex-direction: row; flex-wrap: wrap; }
    .rule-dialog.template-picker-dialog > section > footer p { width: 100%; margin: 0; }
    .rule-dialog.template-picker-dialog > section > footer p:empty { display: none; }
    .rule-dialog.template-picker-dialog > section > footer button { width: auto; min-width: 0; flex: 1; }
    .recent-card header { align-items: flex-start; flex-direction: column; }
    .table-head { display: none; }
    .error-panel { padding: 38px 22px; }
    .admin-login-card { margin: 0 auto; padding: 34px 24px; border-top: 0; }
    .admin-sidebar { display: none; }
    .admin-mobile-header { min-height: 62px; padding: 0 14px; position: sticky; z-index: 70; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
    .admin-mobile-header > a { display: flex; align-items: center; gap: 8px; }
    .admin-mobile-header > a img { border-radius: 7px; }
    .admin-mobile-header > a strong { font-size: 10px; }
    .admin-mobile-header nav { display: flex; gap: 3px; }
    .admin-mobile-header nav a { padding: 8px 9px; color: var(--muted); font-size: 8px; font-weight: 800; }
    .admin-mobile-header nav a.active { background: var(--purple-soft); color: var(--purple); }
    .admin-header { height: 66px; padding-inline: 15px; }
    .admin-header .brand strong, .admin-header > p { display: none; }
    .admin-main { width: calc(100% - 28px); padding-top: 36px; }
    .admin-console-main { width: calc(100% - 28px); margin: 0 auto; padding: 34px 0 70px; }
    .admin-page-intro { align-items: flex-start; flex-direction: column; }
    .admin-page-intro h1 { font-size: 38px; letter-spacing: -2px; }
    .admin-page-intro > strong { align-self: flex-end; }
    .admin-new-ad { margin-top: 28px; }
    .admin-almani-control { padding: 20px; align-items: stretch; flex-direction: column; }
    .admin-almani-control form { align-items: stretch; flex-direction: column; }
    .admin-almani-control button { width: 100%; }
    .admin-placement-control { padding: 0; }
    .admin-placement-control > header { padding: 22px 18px; align-items: flex-start; flex-direction: column; }
    .admin-placement-switches { grid-template-columns: 1fr; }
    .admin-placement-switches article { min-height: 90px; border-top: 1px solid var(--line); border-left: 0; }
    .admin-placement-switches article:first-child { border-top: 0; }
    .admin-placement-switches button { width: auto; }
    .admin-platform-links { grid-template-columns: 1fr; }
    .admin-platform-links > span { min-height: 48px; grid-template-columns: 25px 75px 1fr; }
    .admin-banner-studio-head { padding: 24px 20px; align-items: stretch; flex-direction: column; }
    .admin-banner-current { min-width: 0; }
    .admin-banner-studio-grid { grid-template-columns: 1fr; }
    .admin-banner-editor, .admin-banner-placement { padding: 22px 18px; }
    .admin-banner-placement { border-top: 1px solid var(--line); border-left: 0; }
    .admin-banner-dropzone { grid-template-columns: 36px 1fr; }
    .admin-banner-dropzone > b { grid-column: 2; max-width: 100%; }
    .admin-banner-controls { grid-template-columns: 1fr; gap: 18px; }
    .admin-banner-upload-form { align-items: stretch; flex-direction: column; }
    .admin-banner-upload-form button { width: 100%; }
    .admin-placement-small-grid { grid-template-columns: 1fr; }
    .admin-ad-card > header { padding-block: 14px; align-items: flex-start; flex-direction: column; }
    .admin-ad-preview { max-width: 100%; white-space: normal; }
    .admin-ad-form { padding: 16px; grid-template-columns: 1fr; }
    .admin-ad-form > label.wide { grid-column: auto; }
    .admin-ad-checks { flex-wrap: wrap; }
    .admin-ad-form > button { width: 100%; }
    .admin-ad-footer { padding: 10px 14px; align-items: flex-start; }
    .admin-ad-footer .admin-ad-visibility { min-height: 0; padding: 0; align-items: flex-start; flex-direction: column; }
    .admin-token-summary { grid-template-columns: 1fr; }
    .admin-token-summary article { min-height: 88px; border-top: 1px solid var(--line); border-right: 0; }
    .admin-token-summary article:first-child { border-top: 0; }
    .admin-token-list > article { padding: 18px; }
    .admin-token-metrics { grid-template-columns: 1fr; }
    .admin-token-metrics p { padding: 12px 0; border-top: 1px solid var(--line); border-right: 0; }
    .admin-token-metrics p:first-child { border-top: 0; }
    .admin-token-list > article > footer { align-items: stretch; flex-direction: column; }
    .admin-payment-filter { grid-template-columns: 1fr 1fr; }
    .admin-payment-filter label:first-child { grid-column: 1 / -1; }
    .admin-payment-filter button, .admin-payment-filter > a { width: 100%; }
    .admin-payment-table { overflow: visible; border: 0; background: transparent; }
    .admin-payment-table > header { display: none; }
    .admin-payment-table > article { min-width: 0; margin-bottom: 10px; padding: 18px; grid-template-columns: 1fr 1fr; gap: 18px 12px; border: 1px solid var(--line); background: #fff; }
    .admin-payment-table > article > form { grid-column: 1 / -1; }
    .admin-payment-table article select { flex: 1; }
    .admin-force-action form { width: 100%; box-shadow: none; }
}

@media (max-width: 1180px) and (min-width: 921px) {
    .admin-banner-studio-grid { grid-template-columns: 1fr; }
    .admin-banner-placement { border-top: 1px solid var(--line); border-left: 0; }
    .admin-placement-small-grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
    .live-market-strip.ready .live-market-track, .live-market-label i { animation: none; }
    .live-market-viewport { overflow-x: auto; }
    .live-market-pause { display: none; }
    .live-market-strip { grid-template-columns: auto minmax(0, 1fr); }
}
