:root {
    --bg: #111113;
    --surface-1: #1a1a1e;
    --surface-2: #222226;
    --surface-3: #2a2a2f;
    --border: rgba(255, 255, 255, .08);
    --border-hover: rgba(255, 255, 255, .16);
    --text: #ededf0;
    --text-secondary: #a0a0ad;
    --text-muted: #686872;
    --blue: #4f8fff;
    --orange: #f5a623;
    --red: #ef5350;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow: 0 22px 70px rgba(0, 0, 0, .34);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    min-height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.app-shell { min-height: 100vh; }

.top-bar {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 28px;
    background: rgba(26, 26, 30, .92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.brand { font-weight: 800; letter-spacing: -.02em; }
.brand span { color: var(--text-secondary); font-weight: 600; margin-left: 6px; }
.user-area { display: flex; align-items: center; gap: 16px; color: var(--text-secondary); font-size: 14px; }
.user-area form { margin: 0; }
.icon-button { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; list-style: none; }
.icon-button:hover { color: var(--text); border-color: var(--border-hover); }
.icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.account-menu { position: relative; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-popover { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: 190px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow); }
.account-popover strong { display: block; padding: 8px 10px; color: var(--text-secondary); font-size: 12px; }
.account-popover a { display: block; padding: 9px 10px; border-radius: var(--radius-sm); font-weight: 700; }
.account-popover a:hover { background: var(--surface-3); }

.main-content { width: min(1280px, 100%); margin: 0 auto; padding: 52px 32px; }

.page-header { display: flex; align-items: end; justify-content: space-between; margin-bottom: 34px; }
.page-header h1, .auth-heading h1 { margin: 4px 0 7px; font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.04em; }
.page-header p, .auth-heading p { margin: 0; color: var(--text-secondary); }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.empty-dashboard { min-height: 320px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .012); }

html { scroll-behavior: smooth; }
.landing-shell { min-height: 100vh; overflow: hidden; background: #0c0d10; }
.landing-header { position: fixed; z-index: 100; top: 0; right: 0; left: 0; border-bottom: 1px solid rgba(255,255,255,.065); background: rgba(12,13,16,.78); backdrop-filter: blur(20px); }
.landing-header-inner { width: min(1320px, calc(100% - 48px)); min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 auto; }
.landing-header-left { display: flex; align-items: center; gap: 22px; }
.landing-brand { font-size: 15px; font-weight: 850; letter-spacing: -.025em; }
.landing-brand span { margin-left: 6px; color: #8b8d98; font-weight: 620; }
.landing-login-button { min-height: 34px; display: inline-flex; align-items: center; padding: 6px 13px; color: #f4c675; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.22); border-radius: 999px; font-size: 12px; font-weight: 800; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.landing-login-button:hover { transform: translateY(-1px); background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.4); }
.landing-nav { display: flex; align-items: center; gap: 30px; color: #8b8d98; font-size: 13px; font-weight: 650; }
.landing-nav a { transition: color .15s ease; }
.landing-nav a:hover { color: #f0f0f3; }
.landing-main { padding-top: 72px; }
.landing-main h1:focus { outline: none; }
.landing-hero { position: relative; width: min(1320px, calc(100% - 64px)); min-height: 720px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); align-items: center; gap: 68px; margin: 0 auto; padding: 92px 0 76px; }
.landing-hero::before { content: ""; position: absolute; z-index: 0; top: -260px; left: -300px; width: 760px; height: 760px; pointer-events: none; background: radial-gradient(circle, rgba(245,166,35,.11), transparent 67%); }
.landing-hero::after { content: ""; position: absolute; z-index: 0; right: -360px; bottom: -380px; width: 900px; height: 900px; pointer-events: none; background: radial-gradient(circle, rgba(79,143,255,.105), transparent 65%); }
.landing-hero-copy, .landing-product-visual { position: relative; z-index: 1; }
.landing-pill { width: fit-content; display: inline-flex; align-items: center; gap: 9px; padding: 7px 11px; color: #bfc1ca; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.075); border-radius: 999px; font-size: 11px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.landing-pill i { width: 7px; height: 7px; background: #f5a623; border-radius: 50%; box-shadow: 0 0 15px rgba(245,166,35,.85); }
.landing-hero h1 { margin: 28px 0 24px; font-size: clamp(58px, 6.2vw, 94px); line-height: .94; letter-spacing: -.072em; }
.landing-hero h1 em { color: #f5a623; font-style: normal; }
.landing-hero-copy > p { max-width: 590px; margin: 0; color: #a3a5ae; font-size: clamp(17px, 1.65vw, 21px); line-height: 1.65; }
.landing-hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.landing-cta-primary, .landing-cta-secondary { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 800; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.landing-cta-primary { color: #17130c; background: #f5a623; box-shadow: 0 12px 30px rgba(245,166,35,.14); }
.landing-cta-primary:hover { transform: translateY(-2px); background: #ffb43b; }
.landing-cta-primary span { font-size: 19px; line-height: 1; }
.landing-cta-secondary { color: #c5c6cd; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); }
.landing-cta-secondary:hover { transform: translateY(-2px); color: #fff; border-color: rgba(255,255,255,.18); }
.landing-proof-row { display: flex; flex-wrap: wrap; gap: 11px 20px; margin-top: 32px; color: #767985; font-size: 11px; font-weight: 650; }
.landing-proof-row span { display: inline-flex; align-items: center; gap: 6px; }
.landing-proof-row svg { width: 13px; height: 13px; fill: none; stroke: #68d49b; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.landing-product-visual { overflow: hidden; transform: perspective(1100px) rotateY(-2.5deg) rotateX(1deg); background: #16181d; border: 1px solid rgba(255,255,255,.11); border-radius: 18px; box-shadow: 0 46px 110px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.02) inset; }
.product-window-bar { min-height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 17px; background: rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.07); }
.product-window-bar > div { display: flex; gap: 6px; }
.product-window-bar > div i { width: 8px; height: 8px; background: #393b43; border-radius: 50%; }
.product-window-bar > div i:first-child { background: #b47b2d; }
.product-window-bar > span { color: #848792; font-size: 10px; font-weight: 750; letter-spacing: .04em; }
.product-window-bar > small { justify-self: end; padding: 3px 7px; color: #72dda4; background: rgba(72,193,128,.09); border: 1px solid rgba(72,193,128,.17); border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.product-window-body { min-height: 430px; display: grid; grid-template-columns: 54px 1fr; }
.product-side-rail { display: flex; align-items: center; flex-direction: column; gap: 16px; padding-top: 25px; border-right: 1px solid rgba(255,255,255,.055); background: rgba(0,0,0,.11); }
.product-side-rail span { width: 18px; height: 18px; border: 1px solid #3a3d45; border-radius: 5px; }
.product-side-rail span.active { background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.42); box-shadow: 0 0 18px rgba(245,166,35,.14); }
.product-content { padding: 26px; }
.product-heading { display: flex; align-items: center; justify-content: space-between; color: #dadbe0; font-size: 15px; font-weight: 780; }
.product-heading i { padding: 4px 9px; color: #77dfa9; background: rgba(72,193,128,.09); border: 1px solid rgba(72,193,128,.16); border-radius: 999px; font-size: 8px; font-style: normal; letter-spacing: .05em; text-transform: uppercase; }
.product-address { display: grid; grid-template-columns: 1fr 28px 1fr; align-items: center; gap: 14px; margin-top: 24px; padding: 21px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.065); border-radius: 12px; }
.product-address > div { min-width: 0; display: grid; gap: 5px; }
.product-address small, .product-score-row span { color: #666974; font-size: 8px; font-weight: 850; letter-spacing: .09em; }
.product-address strong { overflow: hidden; color: #e1e2e6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-address > div > span { color: #898c96; font-size: 10px; }
.product-address svg { width: 20px; height: 20px; fill: none; stroke: #5c5f68; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-score-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.product-score-row > div { display: grid; gap: 7px; padding: 15px; background: rgba(255,255,255,.018); border: 1px solid rgba(255,255,255,.055); border-radius: 9px; }
.product-score-row strong { color: #c9cbd1; font-size: 12px; }
.product-score-row > div:first-child strong { color: #76dda7; }
.product-audit-line { display: flex; align-items: center; gap: 9px; margin-top: 22px; padding-top: 17px; color: #747781; border-top: 1px solid rgba(255,255,255,.055); font-size: 9px; }
.product-audit-line i { width: 6px; height: 6px; background: #4f8fff; border-radius: 50%; box-shadow: 0 0 10px #4f8fff; }
.product-audit-line time { margin-left: auto; }
.landing-value-strip { width: min(1320px, calc(100% - 64px)); display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 auto; padding: 25px 0; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.landing-value-strip > div { display: grid; gap: 3px; padding: 0 26px; border-right: 1px solid rgba(255,255,255,.065); }
.landing-value-strip > div:first-child { padding-left: 0; }
.landing-value-strip > div:last-child { border: 0; }
.landing-value-strip strong { font-size: 17px; letter-spacing: -.02em; }
.landing-value-strip span { color: #6f727d; font-size: 11px; }
.landing-section { width: min(1180px, calc(100% - 64px)); margin: 0 auto; padding: 138px 0 128px; }
.landing-section-heading { max-width: 760px; margin-bottom: 52px; }
.landing-section-heading.compact { margin-bottom: 42px; }
.landing-kicker { color: #f5a623; font-size: 10px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.landing-section-heading h2, .landing-operations h2, .landing-final-cta h2 { margin: 16px 0 18px; font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.052em; }
.landing-section-heading p, .landing-operations-copy > p, .landing-final-cta > p { max-width: 630px; margin: 0; color: #91949e; font-size: 17px; line-height: 1.65; }
.landing-feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.landing-feature-card { min-height: 320px; display: flex; align-items: flex-start; flex-direction: column; padding: 30px; background: linear-gradient(145deg, rgba(255,255,255,.033), rgba(255,255,255,.012)); border: 1px solid rgba(255,255,255,.075); border-radius: 16px; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
.landing-feature-card:hover { transform: translateY(-3px); background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.017)); border-color: rgba(255,255,255,.13); }
.landing-feature-card.feature-wide { min-height: 350px; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 27px; border: 1px solid; border-radius: 11px; }
.feature-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-icon.orange { color: #f6b947; background: rgba(245,166,35,.09); border-color: rgba(245,166,35,.19); }
.feature-icon.blue { color: #7cabff; background: rgba(79,143,255,.09); border-color: rgba(79,143,255,.19); }
.feature-icon.green { color: #7bddaa; background: rgba(62,201,122,.09); border-color: rgba(62,201,122,.19); }
.feature-icon.violet { color: #bd9aff; background: rgba(155,105,235,.09); border-color: rgba(155,105,235,.19); }
.landing-feature-card > span { color: #737681; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.landing-feature-card h3 { max-width: 520px; margin: 10px 0 12px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.16; letter-spacing: -.035em; }
.landing-feature-card p { max-width: 530px; margin: 0; color: #91949d; font-size: 14px; line-height: 1.7; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 24px; }
.feature-tags b { padding: 6px 9px; color: #858893; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.065); border-radius: 999px; font-size: 9px; letter-spacing: .03em; }
.landing-flow-section { padding: 120px max(32px, calc((100% - 1180px) / 2)); background: #111217; border-top: 1px solid rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.055); }
.landing-flow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.07); border-radius: 15px; }
.landing-flow-grid article { min-height: 260px; display: flex; justify-content: space-between; flex-direction: column; padding: 28px; background: #14151a; }
.landing-flow-grid article > span { color: #f5a623; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; font-weight: 800; }
.landing-flow-grid h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -.025em; }
.landing-flow-grid p { margin: 0; color: #858893; font-size: 13px; line-height: 1.65; }
.landing-operations { width: min(1180px, calc(100% - 64px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr); align-items: center; gap: 90px; margin: 0 auto; padding: 140px 0; }
.landing-operations-copy ul { display: grid; gap: 22px; margin: 38px 0 0; padding: 0; list-style: none; }
.landing-operations-copy li { display: flex; align-items: flex-start; gap: 14px; }
.landing-operations-copy li > i { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 7px; background: #f5a623; border: 3px solid rgba(245,166,35,.22); border-radius: 50%; box-sizing: content-box; }
.landing-operations-copy li span { display: grid; gap: 3px; color: #7e818c; font-size: 13px; line-height: 1.55; }
.landing-operations-copy li strong { color: #d8d9de; font-size: 14px; }
.landing-operations-panel { overflow: hidden; padding: 24px; background: linear-gradient(145deg, #181a20, #111216); border: 1px solid rgba(255,255,255,.08); border-radius: 17px; box-shadow: 0 35px 90px rgba(0,0,0,.35); }
.operations-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 19px; border-bottom: 1px solid rgba(255,255,255,.065); }
.operations-panel-head > span { font-size: 14px; font-weight: 780; }
.operations-panel-head b { display: flex; align-items: center; gap: 7px; color: #72dca3; font-size: 9px; letter-spacing: .05em; text-transform: uppercase; }
.operations-panel-head b i { width: 6px; height: 6px; background: #58d18e; border-radius: 50%; box-shadow: 0 0 11px #58d18e; }
.operations-status-list { display: grid; margin-top: 12px; }
.operations-status-list > div { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; color: #9a9ca6; border-bottom: 1px solid rgba(255,255,255,.045); font-size: 11px; }
.operations-status-list > div > span { display: flex; align-items: center; gap: 9px; }
.operations-status-list i { width: 7px; height: 7px; border-radius: 2px; }
.operations-status-list i.orange { background: #f5a623; }.operations-status-list i.green { background: #47c87f; }.operations-status-list i.blue { background: #4f8fff; }.operations-status-list i.violet { background: #9b69eb; }
.operations-status-list strong { color: #c3c5cc; font-size: 10px; }
.operations-chart { height: 100px; display: flex; align-items: end; gap: 8px; margin-top: 25px; padding: 0 6px; border-bottom: 1px solid rgba(255,255,255,.08); background: repeating-linear-gradient(to top, transparent 0, transparent 24px, rgba(255,255,255,.025) 25px); }
.operations-chart span { flex: 1; min-height: 8px; background: linear-gradient(to top, rgba(79,143,255,.23), rgba(79,143,255,.8)); border-radius: 3px 3px 0 0; }
.landing-final-cta { position: relative; overflow: hidden; display: grid; justify-items: center; padding: 120px 32px 132px; text-align: center; background: #111217; border-top: 1px solid rgba(255,255,255,.06); }
.landing-final-cta::before { content: ""; position: absolute; width: 820px; height: 420px; top: 20px; background: radial-gradient(ellipse, rgba(245,166,35,.09), transparent 66%); pointer-events: none; }
.landing-final-cta > * { position: relative; }
.landing-final-cta h2 { max-width: 850px; }
.landing-final-cta .landing-cta-primary { margin-top: 32px; }
.landing-footer { width: min(1320px, calc(100% - 64px)); min-height: 126px; display: flex; align-items: center; justify-content: space-between; gap: 30px; margin: 0 auto; color: #5f626d; font-size: 11px; }
.landing-footer > div { display: grid; gap: 5px; }
.landing-footer p { margin: 0; }
.landing-footer-meta { justify-items: end; }
.landing-footer-meta nav { display: flex; gap: 18px; }
.landing-footer-meta a { color: #777b86; text-decoration: none; }
.landing-footer-meta a:hover { color: #d7d9df; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .landing-feature-card, .landing-cta-primary, .landing-cta-secondary, .landing-login-button { transition: none; }
}

.auth-page {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
    position: relative;
    isolation: isolate;
}

.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 20%, rgba(79, 143, 255, .09), transparent 34%),
        radial-gradient(circle at 82% 80%, rgba(245, 166, 35, .07), transparent 30%);
}

.auth-card {
    width: min(430px, 100%);
    padding: 34px;
    background: linear-gradient(145deg, rgba(34, 34, 38, .98), rgba(26, 26, 30, .98));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-card-wide { width: min(500px, 100%); }
.auth-brand { font-size: 14px; font-weight: 800; letter-spacing: .02em; margin-bottom: 44px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h1 { font-size: 34px; }

.form-stack { display: grid; gap: 18px; }
.form-group { display: grid; gap: 8px; color: var(--text-secondary); font-size: 14px; font-weight: 600; }
.form-group input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    color: var(--text);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.form-group input:hover { border-color: var(--border-hover); }
.form-group input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79, 143, 255, .14); background: #18181c; }
.form-group .batch-file-input { height: auto; min-height: 52px; padding: 5px; color: var(--text-secondary); cursor: pointer; }
.batch-file-input::file-selector-button {
    min-height: 40px;
    margin-right: 14px;
    padding: 9px 15px;
    color: #16130d;
    background: var(--orange);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    transition: background .15s ease, transform .12s ease;
}
.batch-file-input:hover::file-selector-button { background: #ffb43b; }
.batch-file-input:active::file-selector-button { transform: translateY(1px); }
.form-group select { width: 100%; height: 46px; padding: 0 14px; color: var(--text); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,143,255,.14); }
.form-hint { margin: -4px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.form-divider { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--border); }
.form-divider span { color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.address-inline { display: grid; grid-template-columns: 1.6fr .7fr; gap: 12px; }

.btn {
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: transform .12s ease, background .15s ease, border-color .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #16130d; background: var(--orange); }
.btn-primary:hover { background: #ffb43b; }
.btn:disabled,
.btn:disabled:hover {
    color: #777982;
    background: #292a30;
    border-color: #383940;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .78;
    transform: none;
}
.btn-secondary { color: var(--text-secondary); background: var(--surface-2); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--border-hover); }
.btn-small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 4px; }

.alert { padding: 11px 13px; margin-bottom: 18px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-error { color: #ffb8b6; background: rgba(239, 83, 80, .09); border: 1px solid rgba(239, 83, 80, .2); }
.alert-success { color: #91e7b5; background: rgba(62, 201, 122, .09); border: 1px solid rgba(62, 201, 122, .2); }
.validation-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(4,5,8,.76); backdrop-filter: blur(9px); animation: validation-overlay-in .15s ease-out; }
.validation-dialog { width: min(520px, 100%); padding: 28px; background: linear-gradient(145deg, #242329, #19191d); border: 1px solid rgba(239,83,80,.32); border-radius: var(--radius-lg); box-shadow: 0 28px 90px rgba(0,0,0,.62); }
.validation-dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 20px; color: #ffaaa7; background: rgba(239,83,80,.12); border: 1px solid rgba(239,83,80,.24); border-radius: 12px; font-size: 22px; font-weight: 900; }
.validation-dialog h2 { margin: 6px 0 10px; font-size: 23px; letter-spacing: -.025em; }
.validation-dialog p { margin: 0 0 12px; color: var(--text-secondary); font-size: 14px; }
.validation-dialog ul { display: grid; gap: 8px; margin: 0 0 24px; padding: 14px 14px 14px 34px; color: #ffcfcd; background: rgba(239,83,80,.055); border: 1px solid rgba(239,83,80,.12); border-radius: var(--radius-sm); }
.validation-dialog .btn { width: 100%; margin-top: 20px; }
@keyframes validation-overlay-in { from { opacity: 0; } to { opacity: 1; } }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 22px; }
.import-dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-dashboard-grid { margin-top: 22px; }
.dashboard-import-overview { align-items: start; }
.shared-dashboard-grid { margin-top: 22px; }
.dashboard-card { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.card-header-actions { display: flex; align-items: center; gap: 10px; }
.card-kicker { color: var(--text-muted); font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.dashboard-card h2 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.025em; }
.card-description, .link-card p { color: var(--text-secondary); font-size: 14px; }
.card-description { margin: 13px 0 24px; }
.status-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.status-info { color: #9fc0ff; background: rgba(79, 143, 255, .1); }
.status-success { color: #91e7b5; background: rgba(62, 201, 122, .1); }
.status-warning { color: #ffd087; background: rgba(245, 166, 35, .11); }
.status-error { color: #ffaaa7; background: rgba(239, 83, 80, .11); }
.progress-track { height: 8px; overflow: hidden; background: var(--surface-3); border-radius: 999px; }
.progress-value { height: 100%; min-width: 0; background: linear-gradient(90deg, var(--orange), #ffd27f); border-radius: inherit; transition: width .25s ease; }
.osm-progress-value { position: relative; overflow: hidden; background: linear-gradient(90deg, #4f8fff, #69d8a6); box-shadow: 0 0 12px rgba(79,143,255,.28); }
.osm-progress-value::after { content: ""; position: absolute; inset: 0; width: 42%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.72), transparent); transform: translateX(-140%); animation: osm-progress-shimmer 1.25s ease-in-out infinite; }
@keyframes osm-progress-shimmer { to { transform: translateX(340%); } }
.progress-track.is-indeterminate .progress-value-indeterminate { width: 32%; min-width: 32%; animation: progress-indeterminate 1.4s ease-in-out infinite; }
@keyframes progress-indeterminate {
    from { transform: translateX(-110%); }
    50% { transform: translateX(110%); }
    to { transform: translateX(330%); }
}
@media (prefers-reduced-motion: reduce) {
    .progress-track.is-indeterminate .progress-value-indeterminate { width: 100%; animation: none; opacity: .65; }
    .osm-progress-value::after { display: none; }
}
.osm-country-dropdown { position: relative; margin-top: 8px; }
.osm-country-summary { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: 0 14px; cursor: pointer; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); user-select: none; }
.osm-country-summary::-webkit-details-marker { display: none; }
.osm-country-dropdown[open] .osm-country-summary { border-color: rgba(79,143,255,.6); box-shadow: 0 0 0 3px rgba(79,143,255,.12); }
.osm-dropdown-chevron { color: var(--muted); transition: transform .2s ease; }
.osm-country-dropdown[open] .osm-dropdown-chevron { transform: rotate(180deg); }
.osm-country-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(720px, calc(100vw - 64px)); max-height: 70vh; overflow: auto; padding: 14px; background: rgba(18,25,38,.98); border: 1px solid rgba(126,153,190,.32); border-radius: var(--radius-md); box-shadow: 0 24px 70px rgba(0,0,0,.48); backdrop-filter: blur(18px); }
.osm-country-menu-header { position: sticky; z-index: 2; top: -14px; display: grid; gap: 11px; margin: -14px -14px 12px; padding: 14px; background: rgba(18,25,38,.98); border-bottom: 1px solid var(--border); }
.osm-country-menu-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.osm-country-search { min-height: 42px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 0 11px; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.osm-country-search:focus-within { border-color: rgba(79,143,255,.65); box-shadow: 0 0 0 3px rgba(79,143,255,.11); }
.osm-country-search > span { font-size: 20px; line-height: 1; transform: translateY(-1px); }
.osm-country-search input { min-width: 0; height: 40px; padding: 0; color: var(--text); background: transparent; border: 0; outline: none; }
.osm-country-search input::-webkit-search-cancel-button { display: none; }
.osm-country-search button { width: 28px; height: 28px; padding: 0; color: var(--text-secondary); background: rgba(255,255,255,.04); border: 0; border-radius: 7px; cursor: pointer; font-size: 19px; line-height: 1; }
.osm-country-search button:hover { color: var(--text); background: rgba(255,255,255,.08); }
.osm-country-empty-search { padding: 28px 16px; color: var(--text-muted); text-align: center; }
.osm-region-group { margin-top: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,.018); }
.osm-region-option, .osm-country-option { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.osm-region-option { min-height: 44px; padding: 0 12px; background: rgba(79,143,255,.08); border-bottom: 1px solid var(--border); }
.osm-region-option span { flex: 1; font-weight: 700; }
.osm-region-option small { color: var(--muted); }
.osm-region-countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--border); }
.osm-country-option { min-width: 0; min-height: 40px; padding: 7px 10px; background: var(--surface-1); }
.osm-country-option > span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.osm-country-option small { flex: 0 0 auto; padding: 2px 6px; border-radius: 999px; font-size: .7rem; }
.osm-country-option .is-imported { color: #91e7b5; background: rgba(62,201,122,.1); }
.osm-country-option .is-missing { color: #9fc4ff; background: rgba(79,143,255,.11); }
.osm-country-menu input[type="checkbox"] { width: 16px; height: 16px; accent-color: #4f8fff; }
.counter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.osm-counter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.counter-grid div { min-width: 0; padding: 13px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.counter-grid span, .counter-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.counter-grid span { margin-bottom: 5px; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.counter-grid strong { font-size: 14px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 2px; }
.progress-message { color: var(--text-secondary); font-size: 13px; }
.batch-progress { display: grid; gap: 10px; margin: 20px 0; }
.batch-import-card { overflow: hidden; padding: 0; }
.batch-import-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; color: var(--text); background: transparent; border: 0; cursor: pointer; text-align: left; }
.batch-import-toggle:hover { background: rgba(255,255,255,.022); }
.batch-import-toggle > span:first-child { min-width: 0; display: grid; gap: 2px; }
.batch-import-toggle strong { font-size: 17px; letter-spacing: -.015em; }
.batch-import-toggle small { overflow: hidden; color: var(--text-secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.batch-import-toggle-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.batch-import-content { padding: 22px; border-top: 1px solid var(--border); animation: batch-import-open .16s ease-out; }
.batch-import-content > p { margin: 0 0 20px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.batch-template-downloads { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.018); }
.batch-template-downloads > span { color: var(--text-secondary); font-size: 13px; }
.batch-template-downloads > div { display: flex; flex-wrap: wrap; gap: 8px; }
.batch-template-downloads .btn { padding: 9px 13px; }
.batch-file-action-row { display: grid; grid-template-columns: minmax(280px, 600px) auto; align-items: end; justify-content: space-between; gap: 24px; }
.batch-file-selector { min-width: 0; }
.batch-file-selector .batch-file-input { min-height: 44px; }
.batch-file-buttons { display: flex; justify-content: flex-end; gap: 10px; }
.batch-file-hint { display: block; margin-top: 7px; color: var(--text-muted); font-size: 12px; }
.batch-file-validation { margin: 9px 0 0; color: #ffaaa7; font-size: 13px; }
.batch-selected-file { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 600px; margin-top: 12px; padding: 9px 12px; color: var(--text-secondary); background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.batch-selected-file strong { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.batch-selected-file span { flex: 0 0 auto; color: var(--text-muted); }
@keyframes batch-import-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.batch-progress-head { display: flex; justify-content: space-between; gap: 16px; color: var(--text-secondary); font-size: 13px; }
.batch-progress-head strong { color: var(--text); }
.batch-progress-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.batch-progress-counters span { padding: 8px 10px; color: var(--text-secondary); background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; }
.batch-progress-counters strong { display: block; color: var(--text); font-size: 15px; }
.import-error { margin: 18px 0 0; }
.last-import { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.last-import-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.last-import-grid div { min-width: 0; }
.last-import-grid span, .last-import-grid strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.last-import-grid span { color: var(--text-muted); font-size: 11px; text-transform: uppercase; }
.last-import-grid strong { margin-top: 4px; font-size: 13px; }
.data-dashboard-summary { min-height: 0; padding: 22px; }
.osm-dashboard-summary { background: radial-gradient(circle at 100% 0, rgba(62,201,122,.11), transparent 42%), var(--surface-1); }
.dhl-dashboard-summary { background: radial-gradient(circle at 100% 0, rgba(245,166,35,.11), transparent 42%), var(--surface-1); }
.data-dashboard-summary .link-card-icon { width: 40px; height: 40px; margin: 0; }
.data-dashboard-summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.data-dashboard-summary p { margin: 10px 0 18px; line-height: 1.55; }
.data-dashboard-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-right: 24px; }
.data-dashboard-metrics div { min-width: 0; padding: 10px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.data-dashboard-metrics span, .data-dashboard-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-dashboard-metrics span { color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.data-dashboard-metrics strong { margin-top: 3px; font-size: 13px; }
.dashboard-live-progress { display: grid; gap: 10px; margin-right: 24px; padding: 12px; background: rgba(79,143,255,.045); border: 1px solid rgba(79,143,255,.16); border-radius: var(--radius-sm); }
.dashboard-live-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-secondary); font-size: 12px; }
.dashboard-live-progress-head strong { color: #9fc0ff; font-size: 13px; }
.dashboard-live-progress-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.dashboard-live-progress-metrics div { min-width: 0; }
.dashboard-live-progress-metrics span, .dashboard-live-progress-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-live-progress-metrics span { color: var(--text-muted); font-size: 9px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dashboard-live-progress-metrics strong { margin-top: 2px; color: var(--text); font-size: 12px; }
.data-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.data-summary-grid article { padding: 18px 20px; background: linear-gradient(145deg, rgba(245,166,35,.045), rgba(255,255,255,.018)); border: 1px solid var(--border); border-radius: var(--radius-md); }
.data-summary-grid span, .data-summary-grid strong { display: block; }
.data-summary-grid span { color: var(--text-muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.data-summary-grid strong { margin-top: 7px; overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.dhl-management-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .65fr); align-items: start; gap: 22px; }
.dhl-source-card { position: sticky; top: 22px; }
.dhl-source-details { display: grid; gap: 10px; margin-top: 20px; }
.dhl-source-details div { min-width: 0; padding: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.dhl-source-details span, .dhl-source-details strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhl-source-details span { color: var(--text-muted); font-size: 10px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.dhl-source-details strong { margin-top: 4px; font-size: 13px; }
.dhl-source-path { overflow-wrap: anywhere; margin: 18px 0 0; color: var(--text-muted); font-size: 11px; }
.dhl-history-card { margin-top: 22px; }
.osm-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.osm-summary-grid article { padding: 18px 20px; background: linear-gradient(145deg, rgba(62,201,122,.045), rgba(255,255,255,.018)); border: 1px solid var(--border); border-radius: var(--radius-md); }
.osm-summary-grid span, .osm-summary-grid strong { display: block; }
.osm-summary-grid span { color: var(--text-muted); font-size: 11px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.osm-summary-grid strong { margin-top: 7px; font-size: 18px; }
.osm-management-grid { display: block; }
.osm-country-status-section { margin-top: 24px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 0 2px 13px; }
.section-heading-row h2 { margin: 4px 0 0; font-size: 24px; letter-spacing: -.03em; }
.section-heading-row > span { color: var(--text-muted); font-size: 13px; }
.section-heading-actions { display: flex; align-items: center; gap: 12px; }
.section-heading-actions > span { color: var(--text-muted); font-size: 13px; }
.osm-rebuild-all-button { min-height: 38px; padding-inline: 10px; letter-spacing: .015em; }
.osm-status-actions-header { text-align: right; white-space: normal; }
.osm-status-table td:first-child strong, .osm-status-table td:first-child small,
.osm-status-table td:nth-child(7) span, .osm-status-table td:nth-child(7) small { display: block; }
.osm-status-table td:first-child small, .osm-status-table td:nth-child(7) small { margin-top: 5px; color: var(--text-muted); font-size: 11px; white-space: normal; }
.osm-status-table { overflow-x: hidden; }
.osm-status-table table { width: 100%; min-width: 0; table-layout: fixed; }
.osm-status-table th, .osm-status-table td { padding: 12px 10px; overflow-wrap: anywhere; }
.osm-status-table th:nth-child(1) { width: 7.5%; }
.osm-status-table th:nth-child(2) { width: 8.5%; }
.osm-status-table th:nth-child(3) { width: 8%; }
.osm-status-table th:nth-child(4), .osm-status-table th:nth-child(5) { width: 11%; }
.osm-status-table th:nth-child(6) { width: 6%; }
.osm-status-table th:nth-child(7) { width: 38%; }
.osm-status-table th:nth-child(8) { width: 10%; }
.osm-status-table td.nowrap { white-space: normal; }
.osm-status-table th:last-child .btn, .osm-status-table td:last-child .btn { width: 100%; min-width: 0; height: auto; min-height: 36px; padding: 8px 6px; line-height: 1.25; white-space: normal; }
.osm-directory-status-cell { min-width: 0; }
.directory-row-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; }
.directory-row-heading strong { color: #ffd087; font-size: 12px; }
.directory-row-progress { height: 7px; margin-top: 9px; overflow: hidden; background: #292a30; border: 1px solid #383940; border-radius: 999px; }
.directory-row-progress span { position: relative; display: block; height: 100%; min-width: 5px; overflow: hidden; background: linear-gradient(90deg, #d8860d, #ffd087, #f5a623); background-size: 200% 100%; border-radius: inherit; transition: width .3s ease; box-shadow: 0 0 12px rgba(245,166,35,.3); animation: directory-progress-pulse 1.4s linear infinite; }
.directory-row-progress span::after { content: ""; position: absolute; inset: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); transform: translateX(-140%); animation: directory-progress-shimmer 1.1s ease-in-out infinite; }
@keyframes directory-progress-pulse { to { background-position: -200% 0; } }
@keyframes directory-progress-shimmer { to { transform: translateX(330%); } }
@media (prefers-reduced-motion: reduce) {
    .directory-row-progress span { animation: none; }
    .directory-row-progress span::after { display: none; }
}
.confirmation-dialog { border-color: rgba(245,166,35,.34); }
.confirmation-dialog-icon { color: #ffd087; background: rgba(245,166,35,.11); border-color: rgba(245,166,35,.24); }
.cancellation-dialog-icon { color: #ffaaa7; background: rgba(239,83,80,.12); border-color: rgba(239,83,80,.24); }
.confirmation-dialog-actions { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 12px; margin-top: 24px; }
.confirmation-dialog-actions-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.confirmation-dialog-actions-three .dialog-back-button { grid-column: 1 / -1; }
.validation-dialog .confirmation-dialog-actions .btn { width: 100%; margin-top: 0; }
.link-card { display: flex; flex-direction: column; position: relative; transition: transform .15s ease, border-color .15s ease; }
.link-card:hover { transform: translateY(-2px); border-color: var(--border-hover); }
.link-card-icon, .tile-icon { width: 46px; height: 46px; display: grid; place-items: center; color: #9fc0ff; background: rgba(79,143,255,.1); border: 1px solid rgba(79,143,255,.16); border-radius: 13px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.link-card-icon { margin-bottom: 42px; }
.link-card-icon svg, .tile-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon { width: 34px; height: 34px; border-radius: 10px; }
.tile-icon svg { width: 18px; height: 18px; }
.icon-import { color: #ffd087; background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.18); }
.icon-dhl { color: #ffd087; background: rgba(245,166,35,.1); border-color: rgba(245,166,35,.18); }
.icon-osm { color: #8de0b4; background: rgba(62,201,122,.1); border-color: rgba(62,201,122,.18); }
.icon-log { color: #83d8ff; background: rgba(55,181,235,.1); border-color: rgba(55,181,235,.18); }
.icon-users { color: #c7a6ff; background: rgba(155,105,235,.11); border-color: rgba(155,105,235,.2); }
.icon-legal { color: #9fc4ff; background: rgba(79,143,255,.1); border-color: rgba(79,143,255,.18); }
.icon-address { color: #87e5b2; background: rgba(62,201,122,.1); border-color: rgba(62,201,122,.18); }
.icon-api { color: #ffaaa7; background: rgba(239,83,80,.1); border-color: rgba(239,83,80,.18); }
.icon-audit { color: #ffcf8a; background: rgba(242,151,50,.1); border-color: rgba(242,151,50,.2); }
.icon-help { color: #9ec6ff; background: rgba(79,143,255,.1); border-color: rgba(79,143,255,.2); }
.help-hero { padding: 58px; background: radial-gradient(circle at 82% 18%, rgba(79,143,255,.14), transparent 34%), linear-gradient(145deg, var(--surface-2), var(--surface-1)); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.help-hero h1 { max-width: 780px; margin: 10px 0 16px; font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -.05em; }
.help-hero p { max-width: 720px; color: var(--text-secondary); font-size: 17px; line-height: 1.65; }
.help-hero-actions { display: flex; gap: 10px; margin-top: 28px; }
.help-section { margin-top: 26px; padding: 32px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.help-section-heading h2, .help-split h2, .help-callout h2 { margin: 6px 0 18px; font-size: 27px; letter-spacing: -.035em; }
.help-steps, .help-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.help-steps article, .help-result { padding: 20px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-md); }
.help-steps article > span { color: var(--orange); font-size: 12px; font-weight: 900; }
.help-steps h3 { margin: 18px 0 8px; }
.help-steps p, .help-result p, .help-split p, .help-callout p { color: var(--text-secondary); line-height: 1.6; }
.help-result-grid { grid-template-columns: repeat(2, 1fr); }
.help-result { border-left-width: 3px; }
.help-result.valid { border-left-color: #62d99a; }.help-result.corrected { border-left-color: #6ca2ff; }.help-result.assisted { border-left-color: #f5a623; }.help-result.unresolved { border-left-color: #e96f6c; }
.help-result strong { font-size: 17px; }
.help-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.help-levels { display: grid; gap: 8px; padding: 0; list-style: none; }
.help-levels li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.help-levels span { color: var(--text-muted); font-size: 13px; text-align: right; }
.help-callout { margin-top: 26px; padding: 34px; background: linear-gradient(120deg, rgba(245,166,35,.09), rgba(79,143,255,.07)); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.link-card p { margin: 12px 28px 0 0; }
.link-arrow { position: absolute; right: 24px; bottom: 22px; color: var(--orange); font-size: 22px; }
.settings-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(420px, 1.2fr); gap: 22px; }
.settings-form { margin-top: 24px; }
.settings-alert { margin: 18px 0 0; }
.api-key-card { min-width: 0; }
.key-reveal { display: grid; gap: 8px; margin-bottom: 20px; padding: 16px; color: #ffe1a9; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.2); border-radius: var(--radius-md); }
.key-reveal code { overflow-wrap: anywhere; color: var(--text); font-size: 14px; }
.key-copy-row { display: flex; align-items: center; gap: 12px; }
.key-copy-row code { min-width: 0; flex: 1; }
.key-reveal span, .key-meta, .key-expiry { color: var(--text-secondary); font-size: 12px; }
.key-list { display: grid; gap: 10px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.key-title { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.key-expiry { margin-top: 4px; color: #ffd087; }
.empty-key-state { padding: 28px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius-md); }
.btn-danger { color: #ffb8b6; background: rgba(239,83,80,.09); border-color: rgba(239,83,80,.2); }
.btn-danger:hover { border-color: rgba(239,83,80,.45); }
.user-management-grid { align-items: start; }
.user-list { display: grid; gap: 10px; margin-top: 22px; }
.user-accordion { overflow: hidden; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.user-accordion-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px; color: var(--text); background: transparent; border: 0; cursor: pointer; text-align: left; }
.user-accordion-toggle:hover { background: rgba(255,255,255,.025); }
.user-accordion-identity { min-width: 0; display: grid; gap: 3px; }
.user-accordion-identity strong, .user-accordion-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-accordion-identity small { color: var(--text-secondary); font-size: 12px; font-weight: 500; }
.accordion-chevron { color: var(--text-muted); font-size: 20px; transition: transform .15s ease; }
.accordion-chevron.expanded { transform: rotate(180deg); }
.user-accordion-content { padding: 0 16px 16px; border-top: 1px solid var(--border); }
.user-created { color: var(--text-muted); font-size: 12px; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.user-row-expanded { display: block; }
.user-row-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.user-row strong, .user-row span { display: block; }
.user-row-main > div:first-child span { margin-top: 5px; color: var(--text-muted); font-size: 12px; }
.user-statuses { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.customer-pricing { display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.customer-pricing label > span { margin-bottom: 6px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.customer-pricing label div { display: flex; align-items: center; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.customer-pricing input { width: 100%; min-width: 0; height: 35px; padding: 0 9px; color: var(--text); background: transparent; border: 0; outline: none; }
.customer-pricing em { padding-right: 9px; color: var(--text-muted); font-size: 12px; font-style: normal; }
.customer-email-settings { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.customer-profile-settings { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.legal-page { width: min(880px, calc(100% - 48px)); min-height: 68vh; margin: 0 auto; padding: 132px 0 90px; }
.legal-page > h1 { margin: 12px 0 34px; font-size: clamp(42px, 6vw, 68px); letter-spacing: -.055em; }
.legal-back-link { display: inline-flex; margin-bottom: 34px; color: var(--text-secondary); font-size: 13px; text-decoration: none; }
.legal-back-link:hover { color: var(--text); }
.legal-content-card { padding: clamp(24px, 5vw, 48px); background: #19191d; border: 1px solid var(--border); border-radius: 18px; }
.legal-content-card h2 { margin: 34px 0 10px; font-size: 19px; }
.legal-content-card h2:first-child { margin-top: 0; }
.legal-content-card p, .legal-copy { color: var(--text-secondary); font-size: 14px; line-height: 1.75; }
.legal-content-card a { color: #9fc4ff; }
.legal-copy { white-space: pre-line; }
.privacy-copy { color: #c8c9d0; }
.legal-updated { margin: 36px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px !important; }
.legal-example-warning, .legal-admin-warning { display: flex; align-items: flex-start; gap: 15px; margin: 0 0 20px; padding: 15px 17px; color: #ffd087; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.22); border-radius: var(--radius-sm); }
.legal-example-warning strong, .legal-example-warning span, .legal-admin-warning strong, .legal-admin-warning span { display: block; }
.legal-example-warning strong, .legal-admin-warning strong { flex: 0 0 auto; }
.legal-example-warning span, .legal-admin-warning span { color: #d3bd98; font-size: 12px; line-height: 1.5; }
.legal-settings-grid { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(500px, 1.15fr); align-items: start; gap: 22px; }
.legal-textarea { width: 100%; resize: vertical; padding: 13px 14px; color: var(--text); background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; font: inherit; font-weight: 500; line-height: 1.55; }
.legal-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,143,255,.14); }
.legal-textarea-small { min-height: 130px; }
.legal-textarea-large { min-height: 720px; }
.legal-example-checkbox { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; padding: 13px; color: var(--text-secondary); background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
.legal-example-checkbox input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--orange); }
.legal-example-checkbox span { display: grid; gap: 3px; }
.legal-example-checkbox strong { color: var(--text); font-size: 13px; }
.legal-example-checkbox small { color: var(--text-muted); font-size: 11px; }
.legal-save-bar { position: sticky; z-index: 20; bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 14px 16px; color: var(--text-muted); background: rgba(26,26,31,.94); border: 1px solid var(--border-hover); border-radius: var(--radius-md); box-shadow: 0 16px 45px rgba(0,0,0,.38); backdrop-filter: blur(16px); font-size: 12px; }
.customer-profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0; }
.profile-address-editor { grid-column: 1 / -1; }
.postal-address-editor { display: grid; gap: 12px; }
.postal-city-row { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(220px, 1.55fr); gap: 12px; }
.street-number-row { display: grid; grid-template-columns: minmax(240px, 1.7fr) minmax(110px, .5fr); gap: 12px; }
.field-hint { display: block; margin-top: -5px; color: var(--text-muted); font-size: 12px; }
.field-hint.warning { color: #ffd087; }
.contact-email-form { display: grid; grid-template-columns: minmax(200px, 1.2fr) minmax(300px, 1.8fr) auto; align-items: end; gap: 12px; margin-top: 12px; }
.email-options { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.email-options label { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: 12px; cursor: pointer; }
.email-options input { accent-color: var(--orange); }
.contact-email-list { display: grid; gap: 9px; margin-top: 14px; }
.contact-email-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(300px, 1.5fr) auto; align-items: center; gap: 12px; padding: 12px; background: rgba(0,0,0,.12); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.contact-email-row > strong { overflow-wrap: anywhere; font-size: 13px; }
.contact-email-actions { display: flex; gap: 7px; }
.audit-filter-card { margin-bottom: 22px; }
.audit-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 14px; margin-top: 22px; }
.filter-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.filter-groups fieldset { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.filter-groups legend { padding: 0 6px; color: var(--text-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.filter-chip { position: relative; cursor: pointer; }
.filter-chip input { position: absolute; opacity: 0; pointer-events: none; }
.filter-chip span { display: block; padding: 7px 10px; color: var(--text-secondary); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; font-weight: 700; }
.filter-chip input:checked + span { color: #dce8ff; background: rgba(79,143,255,.13); border-color: rgba(79,143,255,.38); }
.audit-filter-actions { display: flex; justify-content: flex-end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.audit-summary { display: flex; align-items: baseline; gap: 8px; margin: 8px 2px 14px; }
.audit-summary strong { font-size: 22px; }
.audit-summary span { color: var(--text-muted); font-size: 13px; }
.audit-list { display: grid; gap: 14px; }
.audit-entry { padding: 22px; }
.audit-entry-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.audit-entry-head h2 { margin-top: 6px; font-size: 18px; }
.audit-badges { display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.audit-address-flow { display: grid; grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 10px; margin-top: 18px; padding: 15px; background: rgba(255,255,255,.018); border: 1px solid var(--border); border-radius: var(--radius-md); }
.audit-address-flow div:not(.audit-flow-arrow) { min-width: 0; }
.audit-address-flow span, .audit-address-flow strong, .audit-address-flow small { display: block; }
.audit-address-flow span { margin-bottom: 6px; color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.audit-address-flow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-address-flow small { margin-top: 3px; color: var(--text-secondary); }
.audit-flow-arrow { color: var(--orange); text-align: center; font-size: 22px; }
.audit-meta-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.audit-meta-grid div { padding: 10px 12px; border-left: 2px solid var(--border-hover); }
.audit-meta-grid span, .audit-meta-grid strong { display: block; }
.audit-meta-grid span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.audit-meta-grid strong { margin-top: 4px; font-size: 12px; }
.audit-changes { margin-top: 14px; padding: 11px 13px; color: var(--text-secondary); background: rgba(79,143,255,.055); border-radius: var(--radius-sm); font-size: 13px; }
.audit-changes strong { color: var(--text); }
.audit-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 22px; }
.audit-pagination span { color: var(--text-secondary); font-size: 13px; }

.address-test-card { margin-bottom: 22px; }
.address-flexible-start { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 14px; color: #a9c7ff; background: rgba(79,143,255,.055); border: 1px solid rgba(79,143,255,.14); border-radius: var(--radius-sm); }
.address-flexible-start > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: #9fc4ff; background: rgba(79,143,255,.1); border-radius: 8px; font-size: 17px; }
.address-flexible-start > div { min-width: 0; display: grid; gap: 2px; }
.address-flexible-start strong { color: var(--text); font-size: 13px; }
.address-flexible-start small { color: var(--text-secondary); font-size: 11px; font-weight: 500; line-height: 1.45; }
.address-form-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(120px, .7fr) minmax(140px, .8fr) minmax(0, 1.5fr); gap: 16px; margin-bottom: 24px; }
.address-form-grid label { display: grid; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.address-form-grid input, .address-form-grid select { width: 100%; height: 44px; padding: 0 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.address-form-grid input:focus, .address-form-grid select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,143,255,.14); }
.guided-address-grid { display: grid; grid-template-columns: minmax(130px, .72fr) minmax(170px, 1fr) minmax(260px, 1.75fr) minmax(130px, .72fr); gap: 14px; margin-bottom: 18px; }
.guided-address-field { min-width: 0; display: grid; align-content: start; gap: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.guided-address-field > span, .guided-address-field > label { display: flex; align-items: center; gap: 7px; }
.guided-address-field > span b, .guided-address-field > label b { width: 20px; height: 20px; display: inline-grid; place-items: center; color: #ffca6c; background: rgba(245,166,35,.09); border: 1px solid rgba(245,166,35,.16); border-radius: 6px; font-size: 10px; }
.guided-address-field input, .address-country-field select { width: 100%; height: 46px; padding: 0 13px; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); outline: none; }
.guided-address-field input:hover, .address-country-field select:hover { border-color: var(--border-hover); }
.guided-address-field input:focus, .address-country-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(79,143,255,.14); }
.autocomplete-input-wrap { position: relative; min-width: 0; }
.autocomplete-input-wrap input { padding-right: 44px; }
.autocomplete-field-toggle { position: absolute; z-index: 2; top: 1px; right: 1px; width: 40px; height: 44px; display: grid; place-items: center; padding: 0; color: var(--text-secondary); background: transparent; border: 0; border-left: 1px solid transparent; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; cursor: pointer; font-size: 17px; }
.autocomplete-field-toggle:hover { color: var(--text); background: rgba(255,255,255,.035); border-left-color: var(--border); }
.autocomplete-menu { position: absolute; z-index: 80; top: calc(100% + 7px); left: 0; width: max(100%, 320px); max-height: 290px; overflow-y: auto; padding: 6px; background: #202126; border: 1px solid var(--border-hover); border-radius: 10px; box-shadow: 0 18px 48px rgba(0,0,0,.52); }
.autocomplete-menu-head { position: sticky; z-index: 1; top: -6px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px -6px 5px; padding: 10px 12px; color: #9fc4ff; background: #202126; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.autocomplete-menu-head small { color: #d7dbe4; font-size: 9px; font-weight: 700; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.autocomplete-menu > button { width: 100%; min-height: 38px; padding: 8px 10px; overflow: hidden; color: #f7f8fb; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.autocomplete-menu > button:hover { color: #fff; background: rgba(79,143,255,.19); }
.autocomplete-menu > button[aria-selected="true"] { color: #fff; background: rgba(79,143,255,.31); box-shadow: inset 0 0 0 1px rgba(159,196,255,.34); }
.autocomplete-menu > .autocomplete-option-with-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.autocomplete-option-with-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.autocomplete-option-with-meta small { flex: 0 0 auto; color: #eef1f7; font-size: 10px; font-weight: 700; }
.autocomplete-option-with-meta:hover small, .autocomplete-option-with-meta[aria-selected="true"] small { color: #fff; }
.guided-house-number-field .autocomplete-menu { right: 0; left: auto; }
.address-assist-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 22px; padding: 14px 15px; background: rgba(255,255,255,.018); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.autocomplete-toggle { min-width: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.autocomplete-toggle > input { position: absolute; opacity: 0; pointer-events: none; }
.autocomplete-switch { position: relative; width: 42px; height: 24px; flex: 0 0 auto; background: #303138; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; transition: background .18s ease, border-color .18s ease; }
.autocomplete-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #8c8e98; border-radius: 50%; transition: transform .18s ease, background .18s ease; }
.autocomplete-toggle > input:checked + .autocomplete-switch { background: rgba(245,166,35,.22); border-color: rgba(245,166,35,.42); }
.autocomplete-toggle > input:checked + .autocomplete-switch::after { transform: translateX(18px); background: var(--orange); }
.autocomplete-toggle > input:focus-visible + .autocomplete-switch { box-shadow: 0 0 0 3px rgba(79,143,255,.18); }
.autocomplete-toggle > span:last-child { min-width: 0; display: grid; gap: 2px; }
.autocomplete-toggle strong { font-size: 13px; }
.autocomplete-toggle small { overflow: hidden; color: var(--text-muted); font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.address-country-field { width: min(270px, 100%); flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(170px, 1fr); align-items: center; gap: 10px; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.address-country-field select { height: 40px; }
.autocomplete-status { display: flex; align-items: center; gap: 9px; min-height: 39px; margin: -10px 0 18px; padding: 9px 12px; color: #9fc4ff; background: rgba(79,143,255,.055); border: 1px solid rgba(79,143,255,.12); border-radius: var(--radius-sm); font-size: 12px; }
.autocomplete-status.has-error { color: #ffb8b6; background: rgba(239,83,80,.055); border-color: rgba(239,83,80,.14); }
.autocomplete-status i { width: 13px; height: 13px; flex: 0 0 auto; border: 2px solid rgba(159,196,255,.28); border-top-color: #9fc4ff; border-radius: 50%; animation: autocomplete-spin .7s linear infinite; }
@keyframes autocomplete-spin { to { transform: rotate(360deg); } }
.address-result-card { display: grid; gap: 4px; }
.address-result-card .last-import strong { display: inline-block; margin-top: 8px; }
.address-result-card .last-import div { margin-top: 8px; color: var(--text-secondary); font-size: 14px; }
.address-result-card .last-import div strong { margin: 0; color: var(--text); }
.address-conflict { margin-top: 20px; padding: 20px; color: #ffe4b8; background: rgba(245,166,35,.075); border: 1px solid rgba(245,166,35,.24); border-radius: var(--radius-md); }
.address-conflict h3 { margin: 7px 0 8px; color: var(--text); font-size: 18px; }
.address-conflict p { margin: 0; color: var(--text-secondary); font-size: 14px; }
.conflict-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.conflict-options div { padding: 14px; background: rgba(0,0,0,.14); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.conflict-options span, .conflict-options strong { display: block; }
.conflict-options span { margin-bottom: 6px; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.conflict-options strong { color: var(--text); font-size: 14px; }

.table-card { overflow: auto; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-muted); background: rgba(255,255,255,.02); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.nowrap { white-space: nowrap; color: var(--text-secondary); }
.empty-cell { padding: 38px; text-align: center; color: var(--text-muted); }

#blazor-error-ui { display: none; }
.validation-message { color: #ff8b88; font-size: 13px; }

@media (max-width: 640px) {
    .top-bar { padding: 0 18px; }
    .brand span { display: none; }
    .main-content { padding: 36px 20px; }
    .auth-card { padding: 27px 22px; }
    .auth-brand { margin-bottom: 34px; }
    .counter-grid { grid-template-columns: repeat(2, 1fr); }
    .last-import-grid { grid-template-columns: repeat(2, 1fr); }
    .card-footer { align-items: stretch; flex-direction: column; }
    .batch-progress-counters { grid-template-columns: 1fr 1fr; }
    .batch-template-downloads { align-items: stretch; flex-direction: column; }
    .batch-file-action-row { grid-template-columns: 1fr; gap: 12px; }
    .batch-file-buttons { justify-content: stretch; }
    .batch-file-buttons .btn { flex: 1; }
    .osm-country-menu { left: 0; right: auto; width: calc(100vw - 40px); }
    .osm-region-countries { grid-template-columns: 1fr; }
    .osm-country-menu-header { align-items: stretch; flex-direction: column; }
    .osm-summary-grid, .data-summary-grid { grid-template-columns: 1fr; }
    .data-dashboard-metrics { grid-template-columns: 1fr 1fr; }
    .autocomplete-menu { right: 0; left: 0; width: 100%; }
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .dhl-management-grid { grid-template-columns: 1fr; }
    .dhl-source-card { position: static; }
    .osm-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .data-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-grid { grid-template-columns: 1fr; }
    .legal-settings-grid { grid-template-columns: 1fr; }
    .address-form-grid { grid-template-columns: 1fr 1fr; }
    .guided-address-grid { grid-template-columns: 1fr 1fr; }
    .conflict-options { grid-template-columns: 1fr; }
    .audit-filter-grid, .filter-groups { grid-template-columns: 1fr; }
    .audit-meta-grid { grid-template-columns: 1fr 1fr; }
    .audit-entry-head { flex-direction: column; }
    .audit-badges { justify-content: flex-start; }
    .customer-pricing { grid-template-columns: 1fr; }
    .user-row-main { align-items: flex-start; flex-direction: column; }
    .user-statuses { justify-content: flex-start; }
    .contact-email-form, .contact-email-row { grid-template-columns: 1fr; }
    .customer-profile-grid, .address-inline { grid-template-columns: 1fr; }
    .postal-city-row, .street-number-row { grid-template-columns: 1fr; }
    .help-hero { padding: 34px 24px; }
    .help-steps, .help-result-grid, .help-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .osm-summary-grid, .data-summary-grid { grid-template-columns: 1fr; }
    .guided-address-grid { grid-template-columns: 1fr; }
    .address-assist-row { align-items: stretch; flex-direction: column; }
    .address-country-field { width: 100%; grid-template-columns: 1fr; }
    .autocomplete-toggle small { white-space: normal; }
}

@media (max-width: 1100px) {
    .landing-hero { grid-template-columns: 1fr; gap: 58px; padding-top: 80px; }
    .landing-hero-copy { max-width: 760px; }
    .landing-product-visual { width: min(780px, 100%); transform: none; }
    .landing-operations { grid-template-columns: 1fr; gap: 60px; }
    .landing-operations-panel { width: min(680px, 100%); }
}

@media (max-width: 760px) {
    .landing-header-inner { width: min(100% - 32px, 1320px); }
    .landing-nav { display: none; }
    .landing-header-left { width: auto; justify-content: flex-start; }
    .landing-hero, .landing-value-strip, .landing-section, .landing-operations, .landing-footer { width: calc(100% - 36px); }
    .landing-hero { min-height: auto; padding: 66px 0 58px; }
    .landing-hero h1 { font-size: clamp(54px, 17vw, 78px); }
    .landing-hero-actions { align-items: stretch; flex-direction: column; }
    .landing-cta-primary, .landing-cta-secondary { width: 100%; }
    .landing-proof-row { display: grid; }
    .product-window-body { min-height: 380px; grid-template-columns: 38px 1fr; }
    .product-content { padding: 19px 15px; }
    .product-address { grid-template-columns: 1fr; padding: 15px; }
    .product-address > svg { transform: rotate(90deg); }
    .product-score-row { grid-template-columns: 1fr 1fr; }
    .product-score-row > div:last-child { display: none; }
    .landing-value-strip { grid-template-columns: 1fr 1fr; }
    .landing-value-strip > div { padding: 16px; border-bottom: 1px solid rgba(255,255,255,.065); }
    .landing-value-strip > div:first-child { padding-left: 16px; }
    .landing-value-strip > div:nth-child(2) { border-right: 0; }
    .landing-value-strip > div:nth-child(3), .landing-value-strip > div:nth-child(4) { border-bottom: 0; }
    .landing-section { padding: 100px 0 92px; }
    .landing-feature-grid { grid-template-columns: 1fr; }
    .landing-feature-card, .landing-feature-card.feature-wide { min-height: 310px; padding: 25px; }
    .landing-flow-section { padding: 90px 18px; }
    .landing-flow-grid { grid-template-columns: 1fr; }
    .landing-flow-grid article { min-height: 220px; }
    .landing-operations { padding: 100px 0; }
    .landing-final-cta { padding: 95px 20px 104px; }
    .landing-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 28px 0; }
    .landing-footer-meta { justify-items: start; }
    .legal-page { width: calc(100% - 36px); padding-top: 96px; }
    .legal-save-bar { align-items: stretch; flex-direction: column; }
}

@media (max-width: 460px) {
    .landing-brand span { display: none; }
    .landing-pill { font-size: 9px; }
    .landing-hero h1 { letter-spacing: -.065em; }
    .landing-hero-copy > p { font-size: 16px; }
    .product-side-rail { display: none; }
    .product-window-body { grid-template-columns: 1fr; }
    .product-audit-line time { display: none; }
    .landing-section-heading h2, .landing-operations h2, .landing-final-cta h2 { font-size: 38px; }
}
