/* Aerobmusic account: presentation only; existing motion and handlers are retained. */
:root {
    --bg: #fff;
    --surface: #fff;
    --surface-soft: #eaf8f4;
    --text: #111827;
    --muted: #535c68;
    --line: #dedede;
    --primary: #078462;
    --primary-dark: #08785e;
    --accent: #078462;
    --success: #08785e;
    --action: #3159d9;
    --action-hover: #2548b8;
    --action-soft: #dce5ff;
    --shadow: 0 12px 36px rgba(17, 24, 39, .06);
    --auth-radius: 16px;
    color-scheme: light;
}
html { scrollbar-color: #a4b7b1 #f7f7f7; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: #b6e9da; color: var(--text); }
:is(button, a, input):focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
input { caret-color: var(--primary); }
a { text-underline-offset: 4px; }
h1, h2 { color: var(--text); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
.auth-page, .dashboard-page { background: #fff; font-weight: 400; }
.auth-card, .auth-card.narrow { width: min(100%, 560px); padding: 32px; box-shadow: none; border-color: var(--line); }
.auth-logo-link { width: 200px; height: 58px; border-radius: 0; margin-bottom: 28px; }
.auth-card h1 { max-width: none; font-size: clamp(32px, 4vw, 44px); }
.auth-switch, .auth-bottom, .auth-policy, .auth-token-email { font-size: 17px; color: var(--muted); }
.auth-bottom-note, .auth-policy { color: var(--muted); font-size: 15px; font-weight: 400; }
.auth-switch a, .auth-bottom a, .auth-policy a, .label-row a { color: var(--primary); font-weight: 600; }
.auth-form { margin-top: 32px; }
label { font-size: 16px; font-weight: 500; color: var(--text); }
input { min-height: 54px; border-color: var(--line); border-radius: 12px; padding: 12px 16px; font-size: 17px; font-weight: 400; }
input::placeholder { color: #626b76; }
.label-row a { font-size: 15px; }
.btn { min-height: 54px; border-radius: 12px; padding: 12px 20px; font-size: 17px; font-weight: 600; }
.btn.primary, .btn.secondary, .btn.ghost { background: var(--action); color: #fff; box-shadow: none; }
.btn.primary:hover, .btn.secondary:hover, .btn.ghost:hover { background: var(--action-hover); }
.topbar-user .btn.ghost { background: var(--text); color: #fff; }
.topbar-user .btn.ghost:hover { background: #263442; }
.topbar-user .btn.ghost:focus-visible { outline-color: var(--text); }
.btn:focus-visible, .analysis-button:focus-visible, .download-link:focus-visible, .password-toggle:focus-visible { outline-color: var(--action); }
.password-toggle { color: var(--action); border-radius: 8px; }
.password-toggle:hover { color: var(--action-hover); background: var(--action-soft); }
.brand-mark { background: var(--primary); }
.topbar {
    display: grid;
    grid-template-columns: auto minmax(190px, 1fr) auto auto;
    gap: 24px;
    align-items: center;
    padding: 18px clamp(24px, 3vw, 48px);
    background: #fff;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
    box-shadow: none;
}
.brand { font-size: 16px; font-weight: 500; }
.brand-logo { box-shadow: none; }
.split-brand { display: flex; color: var(--text); text-shadow: none; font-size: clamp(26px, 2.6vw, 42px); min-width: 0; }
/* Keep .split-half, its clip paths, hover transforms and transition untouched. */
.topbar-user { gap: 12px; }
.topbar-user form { margin: 0; }
.topbar-user span { color: inherit; }
.analysis-button {
    min-width: 0;
    min-height: 54px;
    padding: 10px 14px 10px 18px;
    border: 1px solid var(--primary);
    border-radius: 12px;
    color: #fff;
    background: var(--primary);
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
}
.analysis-button:hover { color: #fff; background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: none; }
.analysis-button:focus-visible { outline-color: var(--primary); }
.analysis-icon { width: 30px; height: 30px; color: #fff !important; background: rgba(255, 255, 255, .16); }
.analysis-button:hover .analysis-icon { background: rgba(255, 255, 255, .2); }
.analysis-icon svg { padding: 6px; stroke-width: 1.8; }
.order-button-floating { display: block; }
.order-button-floating .order-track-button { position: relative; top: auto; right: auto; z-index: auto; }
.order-track-button { min-height: 54px; border-radius: 12px; background: var(--action); font-weight: 600; }
.order-track-button::before { border-radius: 9px; background: var(--action); box-shadow: none; }
.order-track-button:hover, .order-track-button:hover::before { background: var(--action-hover); }
.order-track-button:focus-visible { outline-color: var(--action); }
.order-track-button::after {
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #2548b8, #4269e7, #2548b8);
    background-size: 240% 100%;
    filter: none;
    opacity: .35;
}
.order-track-button > span:last-child { font-size: 16px; }
.order-sparkles span:nth-child(1) { background: var(--action-soft); }
.order-sparkles span:nth-child(3) { background: var(--action-soft); }
.order-sparkles span:nth-child(4) { background: #f0f4ff; }
.container { width: min(1480px, calc(100% - 64px)); padding-top: 40px; }
.hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr); gap: 24px; }
.discount-panel, .stats-card, .section-card {
    border-color: var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}
.discount-panel::after { background: var(--surface-soft); }
.discount-panel:hover, .stats-card:hover, .section-card:hover { box-shadow: 0 10px 30px rgba(17, 24, 39, .05); }
.discount-value, .progress-caption { color: var(--primary); }
.discount-value, .discount-progress, .step strong, .deal-field b, td { font-variant-numeric: tabular-nums; }
.discount-panel .muted { font-size: 16px; font-weight: 400; }
.discount-panel .muted strong { color: var(--text); font-weight: 500; }
.discount-progress { height: 12px; background: #edf1ef; }
.discount-progress::-webkit-progress-bar { background: #edf1ef; }
.discount-progress::-webkit-progress-value { background: var(--primary); }
.discount-progress::-moz-progress-bar { background: var(--primary); }
.progress-caption { font-size: 16px; font-weight: 500; }
.profile-row { grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.profile-card .profile-label, .sync-card .profile-label { color: var(--muted); font-weight: 500; text-transform: none; font-size: 13px; }
.profile-card .profile-value, .sync-card .profile-value { color: var(--text); font-weight: 500; }
.profile-card .profile-title, .sync-card .sync-title { color: var(--text); font-weight: 600; font-size: 23px; }
.sync-card { opacity: 1; border-style: solid; }
.sync-card .profile-row { grid-template-columns: 85px minmax(0, 1fr); }
.sync-card .btn.secondary { color: #fff; background: var(--action); font-size: 16px; width: 100%; }
.sync-card .btn.secondary:hover { background: var(--action-hover); }
.section-card { margin-top: 24px; }
.section-head .eyebrow { display: none; }
.step { border-color: var(--line); background: #fff; }
.step.done { border-color: #beded3; background: #f4faf7; }
.step.current { border-color: var(--primary); background: var(--surface-soft); box-shadow: none; }
.current-badge { background: var(--primary); font-weight: 500; text-transform: none; }
.step strong, .step.done strong { color: var(--primary); font-weight: 600; }
.step span { color: var(--muted); font-weight: 400; }
.step em { color: var(--primary-dark); font-weight: 400; font-size: 13px; }
.deal-card, .table-scroll { border-color: var(--line); }
.deal-card { background: #fff; }
.deal-card h3, .title-cell .table-title-wrap > span { color: var(--text); font-weight: 600; }
.deal-field, th { background: #f7f7f7; }
.deal-field span, th { color: var(--muted); font-weight: 500; }
.deal-field b, .title-cell { font-weight: 500; }
.download-link { border-color: var(--action); background: var(--action); color: #fff; border-radius: 10px; font-weight: 500; }
.download-link:hover { border-color: var(--action-hover); background: var(--action-hover); box-shadow: none; }
.status.active { color: var(--primary-dark); background: var(--surface-soft); }
.status.completed { color: var(--primary-dark); background: var(--surface-soft); }
.empty-state { border-color: var(--line); background: #f7f7f7; font-weight: 400; }
.site-credit a { color: var(--primary); }
@media (max-width: 1240px) {
    .topbar { grid-template-columns: auto 1fr auto; gap: 14px 24px; }
    .brand { grid-column: 1; }
    .split-brand { grid-column: 2 / 4; justify-content: flex-end; }
    .order-button-floating { grid-column: 1; }
    .topbar-user { grid-column: 2 / 4; justify-content: flex-end; }
    .hero-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .discount-panel { grid-column: 1 / -1; }
    .profile-card, .sync-card { grid-column: auto; }
}
@media (max-width: 720px) {
    .topbar { position: static; grid-template-columns: minmax(0, 1fr); padding: 18px 20px; gap: 16px; }
    .brand, .split-brand, .order-button-floating, .topbar-user { grid-column: 1; }
    .brand { width: auto; font-size: 15px; }
    .split-brand { justify-content: flex-start; font-size: 32px; }
    .topbar-user { justify-content: flex-start; align-items: center; }
    .topbar-user .btn.ghost { min-height: 48px; border-radius: 12px; font-size: 15px; }
    .analysis-button { min-height: 48px; font-size: 15px; }
    .order-button-floating { position: static; transform: none; width: 100%; max-width: none; pointer-events: auto; contain: none; }
    .order-button-floating .order-track-button { width: 100%; min-width: 0; max-width: none; min-height: 50px; box-shadow: none; }
    .order-track-button > span:last-child { font-size: 16px; }
    .dashboard-page { padding-bottom: 0; }
    .container { width: calc(100% - 32px); padding-top: 24px; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .profile-card, .sync-card { grid-column: 1; }
    .profile-row, .sync-card .profile-row { grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
    .discount-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step { padding: 16px 12px; min-height: 112px; }
    .step strong { font-size: 28px; }
    .step span, .step em { font-size: 13px; }
    .current-badge { font-size: 11px; padding: 4px 8px; }
    .section-card { margin-top: 20px; }
    .deal-fields { grid-template-columns: minmax(0, 1fr); }
    .deal-field.wide { grid-column: auto; }
    .auth-wrap { padding: 24px 16px; }
    .auth-card, .auth-card.narrow { padding: 24px 20px; }
    .auth-card h1 { font-size: 34px; }
    .auth-logo-link { width: 190px; height: 54px; }
    .auth-switch, .auth-bottom { font-size: 16px; }
    .label-row { gap: 8px; }
}
