:root {
    --navy-950: #06152f;
    --navy-900: #092047;
    --blue-700: #0b56c7;
    --blue-600: #1767dc;
    --blue-100: #e7f0ff;
    --gold-500: #f6b800;
    --gold-100: #fff4c7;
    --ink-900: #172033;
    --ink-700: #465269;
    --ink-500: #738098;
    --line: #dfe5ef;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --success: #087a55;
    --success-bg: #e4f7ef;
    --danger: #c22b39;
    --danger-bg: #fdebed;
    --warning: #9a6400;
    --warning-bg: #fff3d1;
    --shadow: 0 16px 40px rgba(18, 38, 74, .08);
    --radius: 16px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink-900);
    background: var(--canvas);
    line-height: 1.5;
}

a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }

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

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: 264px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--navy-950), var(--navy-900));
    color: #fff;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 22px 18px;
    color: #fff;
}

.brand:hover { text-decoration: none; }

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: var(--gold-500);
    color: var(--navy-950);
    font-size: 1.35rem;
    font-weight: 900;
}

.brand strong, .install-brand strong { display: block; letter-spacing: .08em; }
.brand small, .install-brand small { display: block; opacity: .75; }

.nav-section-title {
    margin: 18px 20px 7px;
    color: rgba(255,255,255,.5);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.sidebar nav { padding: 0 12px; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 44px;
    margin: 3px 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.78);
    font-weight: 600;
}

.nav-link:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav-link.active { color: #fff; background: rgba(23,103,220,.55); }
.nav-icon { width: 22px; text-align: center; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 20px; background: var(--gold-500); color: var(--navy-950); font-size: .72rem; font-weight: 900; }

.sidebar-user {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.sidebar-user strong, .sidebar-user small { display: block; }
.sidebar-user small { color: rgba(255,255,255,.6); margin-top: 2px; }
.sidebar-user .button { margin-top: 12px; width: 100%; }

.main-wrap { margin-left: 264px; min-height: 100vh; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 28px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.topbar-title { margin: 0; font-size: 1.2rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink-700);
}

.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--danger);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
}

.content { padding: 28px; max-width: 1540px; margin: 0 auto; }

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.page-heading h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; }
.page-heading p { margin: 7px 0 0; color: var(--ink-700); }
.heading-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-body { padding: 20px; }
.card-header { padding: 17px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.05rem; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { position: relative; padding: 20px; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; width: 84px; height: 84px; right: -24px; top: -24px; border-radius: 50%; background: var(--blue-100); }
.stat-label { color: var(--ink-700); font-size: .875rem; font-weight: 650; }
.stat-value { margin-top: 6px; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.15; font-weight: 850; }
.stat-note { margin-top: 8px; color: var(--ink-500); font-size: .8rem; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 18px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink-900);
    font-weight: 700;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 7px 20px rgba(20,40,80,.1); }
.button.primary { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.button.gold { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-950); }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.ghost { background: transparent; color: inherit; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: .82rem; }
.button.large { min-height: 50px; padding-inline: 22px; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.filters {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.filters label { min-width: 150px; flex: 1 1 160px; }
.filters .button { flex: 0 0 auto; }

label { display: block; color: var(--ink-700); font-size: .875rem; font-weight: 650; }
label small, .help { display: block; margin-top: 5px; color: var(--ink-500); font-size: .78rem; font-weight: 500; }

input, select, textarea {
    width: 100%;
    min-height: 44px;
    margin-top: 6px;
    padding: 9px 11px;
    border: 1px solid #cbd4e3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink-900);
    outline: none;
}

textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(23,103,220,.14); }
input[type="checkbox"], input[type="radio"] { width: 18px; min-height: 18px; margin: 0; }

.check-row { display: flex; align-items: center; gap: 9px; min-height: 42px; }
.check-row label { display: flex; align-items: center; gap: 9px; cursor: pointer; }

.form-card { max-width: 980px; }
.form-grid { display: grid; gap: 20px; }
fieldset { margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 8px; color: var(--navy-900); font-weight: 800; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

.alert { padding: 13px 15px; margin-bottom: 15px; border-radius: 10px; border: 1px solid; font-weight: 600; }
.alert.success { color: var(--success); background: var(--success-bg); border-color: #b9ead8; }
.alert.danger { color: var(--danger); background: var(--danger-bg); border-color: #f6c8cf; }
.alert.warning { color: var(--warning); background: var(--warning-bg); border-color: #eedb9c; }
.alert.neutral { color: var(--ink-700); background: #f0f3f8; border-color: var(--line); }

.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border-radius: 99px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
.badge.success { color: var(--success); background: var(--success-bg); }
.badge.danger { color: var(--danger); background: var(--danger-bg); }
.badge.warning { color: var(--warning); background: var(--warning-bg); }
.badge.neutral { color: var(--ink-700); background: #edf1f6; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--ink-500); font-size: .77rem; text-transform: uppercase; letter-spacing: .045em; background: #fafbfd; }
td { font-size: .9rem; }
tbody tr:hover { background: #fbfcfe; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.muted { color: var(--ink-500); }
.strong { font-weight: 800; }

.empty-state { padding: 48px 20px; text-align: center; color: var(--ink-700); }
.empty-icon { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 12px; border-radius: 16px; background: var(--blue-100); color: var(--blue-700); font-size: 1.5rem; }
.empty-state h3 { margin: 0 0 5px; color: var(--ink-900); }
.empty-state p { margin: 0 auto 16px; max-width: 520px; }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-image { position: relative; aspect-ratio: 1 / .82; display: grid; place-items: center; background: linear-gradient(145deg, #f7f9fd, #eaf0f9); overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-placeholder { color: var(--ink-500); font-weight: 750; text-align: center; padding: 20px; }
.stock-pill { position: absolute; left: 10px; top: 10px; }
.product-content { display: flex; flex-direction: column; flex: 1; padding: 15px; }
.product-category { color: var(--ink-500); font-size: .75rem; text-transform: uppercase; font-weight: 800; }
.product-title { margin: 4px 0 6px; font-size: 1.02rem; }
.product-price { color: var(--navy-900); font-size: 1.15rem; font-weight: 850; }
.commission-box { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding: 9px 10px; background: var(--gold-100); color: #6a4a00; border-radius: 9px; font-size: .82rem; font-weight: 700; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }

.tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 17px; }
.tab { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-700); background: #fff; font-weight: 700; }
.tab.active { color: #fff; border-color: var(--blue-700); background: var(--blue-700); }

.order-items { display: grid; gap: 10px; }
.order-item-row { display: grid; grid-template-columns: 1fr 110px 44px; gap: 10px; align-items: end; }
.remove-row { width: 44px; height: 44px; border: 1px solid #efc1c7; background: var(--danger-bg); color: var(--danger); border-radius: 9px; font-weight: 900; }

.progress-track { height: 10px; overflow: hidden; border-radius: 20px; background: #e8edf5; }
.progress-value { height: 100%; background: linear-gradient(90deg, var(--blue-700), #27a4ed); }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; }
.detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-item span { display: block; color: var(--ink-500); font-size: .78rem; }
.detail-item strong { display: block; margin-top: 3px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 27px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 17px; bottom: 2px; width: 2px; background: var(--line); }

.poster-layout { display: grid; grid-template-columns: minmax(320px, 720px) minmax(280px, 1fr); gap: 22px; align-items: start; }
.poster-canvas-wrap { padding: 12px; background: #18233b; border-radius: 18px; box-shadow: var(--shadow); }
#posterCanvas { display: block; width: 100%; height: auto; border-radius: 11px; background: #fff; }
.poster-tools { position: sticky; top: 94px; }
.phone-preview { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: 10px; background: var(--blue-100); color: var(--blue-700); font-weight: 850; }

.notification-list { display: grid; gap: 10px; }
.notification-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.notification-item:last-child { border-bottom: 0; }
.notification-item strong, .notification-item small { display: block; }
.notification-item p { margin: 4px 0; color: var(--ink-700); }

dialog { width: min(92vw, 560px); max-height: 85vh; border: 0; border-radius: 16px; padding: 0; box-shadow: 0 30px 90px rgba(5,20,50,.3); }
dialog::backdrop { background: rgba(5,16,37,.55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-header h2 { margin: 0; font-size: 1.1rem; }
.dialog-body { padding: 20px; max-height: 65vh; overflow-y: auto; }
.dialog-close { width: 36px; height: 36px; border: 0; border-radius: 9px; background: #edf1f6; }

.install-page, .login-page { min-height: 100vh; background: radial-gradient(circle at 85% 15%, #154c9f 0, transparent 34%), linear-gradient(145deg, var(--navy-950), var(--navy-900)); }
.install-shell { width: min(100% - 28px, 920px); margin: 0 auto; padding: 38px 0; }
.install-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: #fff; }
.install-card { padding: clamp(20px, 4vw, 36px); border-radius: 22px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.26); }
.install-card h1 { margin-top: 0; }
.step-label { padding: 6px 10px; border-radius: 20px; color: var(--blue-700); background: var(--blue-100); font-size: .78rem; font-weight: 800; }
.success-panel { text-align: center; }
.success-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: #fff; background: var(--success); font-size: 2rem; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 6vw, 70px); color: #fff; }
.login-brand-panel h1 { max-width: 680px; margin: 60px 0 10px; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.03; }
.login-brand-panel p { max-width: 580px; color: rgba(255,255,255,.75); font-size: 1.05rem; }
.login-form-panel { display: grid; place-items: center; padding: 25px; background: rgba(255,255,255,.96); }
.login-card { width: min(100%, 430px); }
.login-card h2 { margin: 0 0 7px; font-size: 1.8rem; }
.login-card > p { margin: 0 0 24px; color: var(--ink-700); }
.login-card .button { width: 100%; margin-top: 8px; }
.login-footer { color: rgba(255,255,255,.55); font-size: .8rem; }
.login-register-box { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); text-align: center; }
.login-register-box strong { display: block; color: var(--navy-900); }
.login-register-box p { margin: 7px 0 12px; color: var(--ink-500); font-size: .88rem; }

.registration-page { min-height: 100vh; background: linear-gradient(150deg, var(--navy-950) 0, var(--navy-900) 36%, var(--canvas) 36%); }
.registration-header { width: min(100% - 32px, 1240px); min-height: 82px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.registration-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.registration-brand:hover { text-decoration: none; }
.registration-brand img { width: 46px; height: 46px; object-fit: contain; padding: 4px; border-radius: 11px; background: #fff; }
.registration-brand strong, .registration-brand small { display: block; }
.registration-brand strong { letter-spacing: .08em; }
.registration-brand small { color: rgba(255,255,255,.67); }
.registration-header .button { border-color: rgba(255,255,255,.25); color: #fff; }
.registration-shell { width: min(100% - 32px, 1240px); margin: 20px auto 54px; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.28fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.registration-intro { position: sticky; top: 30px; padding: 30px 0; color: #fff; }
.registration-intro .step-label { background: rgba(255,255,255,.12); color: var(--gold-500); }
.registration-intro h1 { margin: 22px 0 14px; font-size: clamp(2.1rem, 4.5vw, 4.2rem); line-height: 1.03; }
.registration-intro > p { max-width: 600px; color: rgba(255,255,255,.75); font-size: 1.02rem; }
.registration-steps { list-style: none; display: grid; gap: 18px; margin: 28px 0; padding: 0; }
.registration-steps li { display: flex; align-items: flex-start; gap: 13px; }
.registration-steps li > span { flex: 0 0 32px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); font-weight: 900; }
.registration-steps strong, .registration-steps small { display: block; }
.registration-steps small { margin-top: 2px; color: rgba(255,255,255,.63); }
.privacy-note { padding: 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.07); color: rgba(255,255,255,.72); font-size: .87rem; }
.privacy-note strong { color: #fff; }
.registration-card { padding: clamp(22px, 4vw, 38px); border-radius: 24px; background: #fff; box-shadow: 0 28px 90px rgba(4,19,45,.22); }
.registration-card-heading { margin-bottom: 22px; }
.registration-card-heading h2 { margin: 0 0 5px; font-size: 1.65rem; }
.registration-card-heading p { margin: 0; color: var(--ink-500); }
.registration-card fieldset { display: grid; gap: 16px; }
.file-drop { padding: 17px; border: 1px dashed #aab8cc; border-radius: 11px; background: #f8faff; }
.file-drop input { padding: 8px; background: #fff; }
.consent-row { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-700); font-weight: 600; cursor: pointer; }
.consent-row input { flex: 0 0 auto; margin-top: 3px; }
.registration-card form > .button { width: 100%; }
.registration-login-link { margin: -7px 0 0; text-align: center; color: var(--ink-500); }
.registration-success { padding: 38px 10px; }
.registration-success p { max-width: 540px; margin: 0 auto 24px; color: var(--ink-700); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.application-list { display: grid; gap: 16px; }
.application-card { overflow: hidden; }
.application-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); }
.application-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.application-title-row h2 { margin: 0; font-size: 1.2rem; }
.application-contact { margin: 5px 0 2px; color: var(--ink-700); }
.application-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 18px 20px; background: #fafbfd; border-bottom: 1px solid var(--line); }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.review-panel { display: grid; align-content: start; gap: 14px; padding: 20px; }
.review-panel + .review-panel { border-left: 1px solid var(--line); }
.review-panel h3 { margin: 0; font-size: 1rem; }
.approve-panel { background: linear-gradient(145deg, #fff, var(--success-bg)); }
.reject-panel { background: linear-gradient(145deg, #fff, var(--danger-bg)); }
.review-history { padding: 18px 20px; }
.review-history strong, .review-history small { display: block; }
.review-history p { margin: 9px 0 0; color: var(--ink-700); }

.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 18px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pagination .current { background: var(--blue-700); color: #fff; border-color: var(--blue-700); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hide { display: none !important; }

@media (max-width: 1180px) {
    .stats-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 15px 0 60px rgba(0,0,0,.25); }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .main-wrap { margin-left: 0; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .content { padding: 20px; }
    .topbar { padding-inline: 20px; }
    .dashboard-grid, .detail-grid, .poster-layout, .login-shell { grid-template-columns: 1fr; }
    .poster-tools { position: static; }
    .login-brand-panel { display: none; }
    .registration-page { background: linear-gradient(165deg, var(--navy-950) 0, var(--navy-900) 24%, var(--canvas) 24%); }
    .registration-shell { grid-template-columns: 1fr; margin-top: 0; }
    .registration-intro { position: static; padding: 22px 0 4px; }
    .registration-intro h1 { max-width: 620px; }
    .registration-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .registration-steps li { display: block; }
    .registration-steps li > span { margin-bottom: 8px; }
    .application-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .content { padding: 15px; }
    .topbar { min-height: 62px; padding: 9px 14px; }
    .topbar-title { font-size: 1.02rem; }
    .page-heading { align-items: stretch; flex-direction: column; }
    .heading-actions { justify-content: flex-start; }
    .stats-grid, .product-grid, .grid.two, .grid.three, .detail-list { grid-template-columns: 1fr; }
    .stat-card { padding: 17px; }
    .filters { align-items: stretch; flex-direction: column; }
    .filters label, .filters .button { width: 100%; flex: 0 0 auto; }
    .product-actions { grid-template-columns: 1fr; }
    .order-item-row { grid-template-columns: 1fr 80px 44px; }
    .form-actions { align-items: stretch; flex-direction: column-reverse; }
    .form-actions .button { width: 100%; }
    th, td { padding: 11px 10px; }
    .install-shell { padding: 18px 0; }
    fieldset { padding: 14px; }
    .registration-header { min-height: 72px; }
    .registration-header .button { min-height: 36px; padding: 6px 10px; font-size: .78rem; }
    .registration-shell { width: min(100% - 20px, 1240px); gap: 22px; margin-bottom: 24px; }
    .registration-intro h1 { font-size: 2rem; }
    .registration-steps { grid-template-columns: 1fr; }
    .registration-steps li { display: flex; }
    .registration-card { padding: 18px 14px; border-radius: 18px; }
    .application-summary { align-items: stretch; flex-direction: column; }
    .application-summary .button { width: 100%; }
    .application-details, .review-grid { grid-template-columns: 1fr; }
    .review-panel + .review-panel { border-left: 0; border-top: 1px solid var(--line); }
}

@media print {
    .sidebar, .topbar, .filters, .heading-actions, .button, dialog { display: none !important; }
    .main-wrap { margin: 0; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; }
    body { background: #fff; }
}
