:root {
    --ink: #101821;
    --muted: #66717c;
    --line: #dfe4e7;
    --paper: #f4f6f5;
    --white: #fff;
    --navy: #102338;
    --navy-2: #183752;
    --lime: #b7ef45;
    --blue: #2e6df6;
    --red: #c9473d;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI Variable", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid rgba(46, 109, 246, .24);
    outline-offset: 2px;
}
[hidden] { display: none !important; }
.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;
}

.brand-lockup { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.ego-internal-brand { text-decoration: none; }
.ego-internal-brand img {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}
.brand-lockup-light { color: var(--white); }
.brand-symbol {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: var(--white);
    background: var(--navy);
    font-size: 15px;
    font-weight: 900;
    letter-spacing: -.08em;
}
.brand-lockup-light .brand-symbol { color: var(--navy); background: var(--lime); }
.brand-lockup > span:last-child { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 14px; letter-spacing: .12em; }
.brand-lockup small { opacity: .58; font-size: 9px; letter-spacing: .18em; }
.eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow-light { color: var(--lime); }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(430px, .92fr);
    background: var(--white);
}
.login-brand {
    position: relative;
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 64px;
    overflow: hidden;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035) 25%, transparent 25%) 0 0 / 26px 26px,
        linear-gradient(315deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 26px 26px,
        var(--navy);
}
.login-brand::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -170px;
    border: 1px solid rgba(183,239,69,.35);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(183,239,69,.035), 0 0 0 140px rgba(183,239,69,.025);
}
.login-ego-brand { position: relative; z-index: 2; color: #fff; text-decoration: none; }
.login-ego-brand img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: #fff; }
.login-language { display: flex; width: max-content; margin: 0 0 35px auto; border: 1px solid var(--line); }
.login-language a { padding: 7px 9px; color: var(--muted); text-decoration: none; font-size: 8px; font-weight: 900; }
.login-language a.active { color: #fff; background: var(--navy); }
.mobile-brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 50%; }
.login-home-link { display: block; margin-top: 22px; color: var(--blue); text-align: center; text-decoration: none; font-size: 9px; font-weight: 900; }
.login-statement { position: relative; z-index: 1; max-width: 690px; margin: 70px 0 50px; }
.login-statement h1 {
    margin: 0 0 28px;
    font-size: clamp(52px, 6vw, 88px);
    line-height: .92;
    letter-spacing: -.065em;
}
.login-statement p { max-width: 540px; margin: 0; color: #b8c5cf; font-size: 18px; line-height: 1.65; }
.login-metric {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 430px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.15);
}
.login-metric span { color: var(--lime); font-size: 28px; font-weight: 900; }
.login-metric p { margin: 0; color: #9eacb8; font-size: 13px; line-height: 1.5; }
.login-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(16,35,56,.025) 50%, transparent 50.2%) 0 0 / 80px 80px,
        var(--white);
}
.login-card { width: min(100%, 430px); }
.mobile-brand { display: none; }
.login-card h2 { margin: 0 0 12px; font-size: 42px; letter-spacing: -.045em; }
.muted, .login-card > p { color: var(--muted); line-height: 1.6; }
.login-card > .muted { margin: 0 0 34px; }
.login-card label, .modal label {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
    color: #3e4851;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}
.login-card input, .modal input, .modal select {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid #ccd3d8;
    border-radius: 3px;
    color: var(--ink);
    background: #fff;
    font-size: 15px;
}
.login-card input:focus, .modal input:focus, .modal select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(46,109,246,.08);
    outline: 0;
}
.remember-toggle, .active-toggle {
    display: flex !important;
    align-items: center;
    gap: 9px !important;
    font-weight: 600 !important;
}
.remember-toggle input, .active-toggle input { width: 17px !important; height: 17px !important; margin: 0; }
.form-error {
    margin: -4px 0 16px;
    padding: 10px 12px;
    color: #a4352c;
    border-left: 3px solid var(--red);
    background: #fff3f1;
    font-size: 13px;
}
.primary-button, .secondary-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 18px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 900;
}
.primary-button {
    border: 0;
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 7px 18px rgba(46,109,246,.18);
}
.primary-button:hover:not(:disabled) { background: #205fe9; transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; }
.secondary-button { border: 1px solid #cbd2d6; color: var(--navy); background: var(--white); }
.secondary-button.compact { min-height: 38px; padding-inline: 12px; font-size: 10px; }
.login-button { width: 100%; min-height: 56px; margin-top: 6px; }
.security-note {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin: 24px 0 0 !important;
    color: #8a949c !important;
    font-size: 11px;
}
.security-note span { color: #54ad6f; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: 252px;
    display: flex;
    flex-direction: column;
    padding: 27px 18px 22px;
    border-right: 1px solid var(--line);
    background: #fbfcfb;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.sidebar .brand-lockup { padding: 0 9px 28px; border-bottom: 1px solid var(--line); }
.sidebar nav { display: grid; gap: 6px; margin-top: 28px; }
.sidebar nav .staff-nav-label { margin-top: 13px; }
.nav-label {
    padding: 0 12px 9px;
    color: #737f88;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.sidebar nav button, .sidebar nav a {
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 13px;
    border: 0;
    color: #44515b;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: .005em;
    text-align: left;
    text-decoration: none;
}
.sidebar nav button > span, .sidebar nav a > span { width: 21px; flex: 0 0 21px; font-size: 18px; text-align: center; }
.sidebar nav button b {
    min-width: 22px;
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 20px;
    color: var(--navy);
    background: #e8ecef;
    font-size: 8px;
    text-align: center;
}
.sidebar nav button .nav-update-alert {
    min-width: 20px;
    margin-left: auto;
    color: #fff;
    background: #c4372b;
    box-shadow: 0 0 0 4px rgba(196,55,43,.12);
}
.sidebar nav button .nav-update-alert + b { margin-left: 0; }
.sidebar nav button:hover, .sidebar nav a:hover { color: var(--navy); background: #edf1f3; }
.sidebar nav button.active { color: #183b78; background: #e5edfb; box-shadow: inset 3px 0 0 #315ca8; }
.sidebar-status {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: auto;
    padding: 17px 12px 0;
    border-top: 1px solid var(--line);
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #adb5bb; }
.status-dot.online { background: #4bad68; box-shadow: 0 0 0 5px rgba(75,173,104,.12); }
.sidebar-status div { display: grid; gap: 3px; }
.sidebar-status strong { font-size: 12px; }
.sidebar-status small { color: var(--muted); font-size: 10px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.82);
}
.topbar-tools { display: flex; align-items: center; gap: 16px; }
.internal-language { display: flex; border: 1px solid var(--line); background: #fff; }
.internal-language a {
    min-width: 31px;
    padding: 7px 8px;
    color: var(--muted);
    text-align: center;
    text-decoration: none;
    font-size: 8px;
    font-weight: 900;
}
.internal-language a.active { color: #fff; background: var(--navy); }
.breadcrumbs { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.breadcrumbs span { color: #9ca5ab; font-weight: 900; letter-spacing: .12em; }
.breadcrumbs i { color: #c4cacf; font-style: normal; }
.breadcrumbs strong { font-size: 11px; }
.user-area { display: flex; align-items: center; gap: 11px; }
.user-avatar {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--navy);
    font-size: 10px;
    font-weight: 900;
}
.user-area > div { display: grid; gap: 2px; min-width: 110px; }
.user-area strong { font-size: 10px; }
.user-area small { color: var(--muted); font-size: 8px; }
.user-area form { margin: 0; }
.icon-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: var(--white);
    font-size: 15px;
}
.content { display: none; min-height: calc(100vh - 70px); padding: 54px 48px 80px; }
.content.active { display: block; }
.content > * { width: min(100%, 1240px); margin-inline: auto; }

.search-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.search-intro h1, .page-heading h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(42px, 5vw, 68px);
    line-height: .95;
    letter-spacing: -.055em;
}
.catalog-fact {
    min-width: 255px;
    display: grid;
    gap: 5px;
    padding: 19px 21px;
    border-left: 3px solid var(--lime);
    background: var(--navy);
    color: var(--white);
}
.catalog-fact > span { color: #95a5b2; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.catalog-fact > strong { font-size: 18px; }
.catalog-fact > small { color: #aab7c1; font-size: 9px; }
.catalog-fact small b { color: var(--white); }
.pricing-label {
    justify-self: start;
    margin-top: 7px;
    padding: 5px 7px;
    color: var(--navy);
    background: var(--lime);
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 6px;
    border: 1px solid #cfd6da;
    background: var(--white);
    box-shadow: 0 14px 38px rgba(16,35,56,.08);
}
.search-icon { width: 60px; color: var(--blue); font-size: 25px; text-align: center; }
.search-box input { min-width: 0; height: 58px; flex: 1; border: 0; outline: 0; font-size: 19px; font-weight: 700; }
.search-box .primary-button { min-width: 145px; min-height: 54px; }
.search-meta { display: flex; gap: 10px; margin-top: 12px; color: #8e989f; font-size: 9px; }
.active-list-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.7);
}
.active-list-bar label { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.active-list-bar select {
    min-width: 240px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd2d6;
    background: var(--white);
    font-size: 10px;
}
.inline-message {
    margin-top: 18px;
    padding: 14px 16px;
    color: var(--muted);
    border-left: 2px solid var(--blue);
    background: rgba(255,255,255,.72);
    font-size: 11px;
}
.inline-message.error { color: #a4352c; border-color: var(--red); background: #fff4f2; }
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 28px;
    border: 1px solid var(--line);
    background: var(--white);
}
.quick-grid article { display: flex; gap: 18px; padding: 27px; }
.quick-grid article + article { border-left: 1px solid var(--line); }
.quick-grid article > span { color: var(--blue); font-size: 24px; font-weight: 900; }
.quick-grid article div { display: grid; gap: 7px; }
.quick-grid strong { font-size: 11px; }
.quick-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.table-card { margin-top: 23px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 25px;
    border-bottom: 1px solid var(--line);
}
.section-heading .eyebrow { margin-bottom: 5px; }
.section-heading h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.section-heading > span { color: var(--muted); font-size: 9px; font-weight: 800; }
.result-table { min-width: 900px; }
.result-row {
    display: grid;
    grid-template-columns: minmax(145px, .8fr) minmax(110px, .6fr) minmax(260px, 1.5fr) 140px 90px 42px;
    align-items: center;
    gap: 16px;
    min-height: 70px;
    padding: 13px 24px;
    border-bottom: 1px solid #edf0f2;
    font-size: 10px;
}
.result-row:last-child { border-bottom: 0; }
.result-row p { margin: 0; color: var(--muted); line-height: 1.5; }
.result-row b { color: var(--blue); font-size: 12px; }
.result-head { min-height: 40px; color: #8d979f; background: #f8f9f9; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.add-button {
    width: 34px;
    height: 34px;
    border: 0;
    color: var(--navy);
    background: var(--lime);
    font-size: 20px;
    font-weight: 900;
}
.add-button:disabled { cursor: not-allowed; opacity: .6; color: #fff; background: var(--red); }
.unavailable-result { background: #fff8f6; }
.unavailable-result > strong { text-decoration: line-through; }
.unavailable-note { display: block; margin-top: 5px; color: var(--red); font-size: 8px; font-weight: 900; }
.result-delivery { display: block; width: max-content; max-width: 100%; margin-top: 6px; padding: 4px 6px; color: #765811; background: #fff6d8; font-size: 8px; font-weight: 900; }
.unavailable-tag { display: inline-flex; padding: 5px 7px; color: #fff; background: var(--red); font-size: 8px; text-transform: uppercase; }
.price-history-trigger { position: relative; display: inline-flex; align-items: center; gap: 5px; cursor: help; }
.price-history-trigger > em {
    padding: 3px 4px;
    color: var(--navy);
    background: var(--lime);
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
}
.price-history-popover {
    position: absolute;
    z-index: 30;
    right: 0;
    bottom: calc(100% + 10px);
    width: 230px;
    display: none;
    padding: 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 16px 40px rgba(16,35,56,.2);
    text-align: left;
}
.price-history-trigger:hover .price-history-popover,
.price-history-trigger:focus .price-history-popover { display: grid; gap: 7px; }
.price-history-popover > strong { color: var(--navy); font-size: 9px; text-transform: uppercase; }
.price-history-popover > span { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid #edf0f2; }
.price-history-popover time { color: var(--muted); font-size: 8px; }
.price-history-popover b { color: var(--navy); font-size: 9px; }

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}
.page-heading h1 { font-size: clamp(42px, 4.5vw, 62px); }
.page-heading p { max-width: 650px; margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.lists-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .48fr); gap: 18px; align-items: start; }
.list-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.list-card { border: 1px solid var(--line); background: var(--white); }
.list-card.selected { border-color: var(--blue); box-shadow: inset 3px 0 var(--blue); }
.list-open { width: 100%; padding: 22px; border: 0; background: transparent; text-align: left; }
.list-card-top { display: flex; align-items: center; justify-content: space-between; }
.list-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--navy); background: var(--lime); }
.list-card h2 { margin: 24px 0 7px; font-size: 19px; letter-spacing: -.035em; }
.list-card p { margin: 0; color: var(--muted); font-size: 9px; }
.list-stats { display: flex; gap: 25px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.list-stats span { color: var(--muted); font-size: 9px; }
.list-stats strong { margin-right: 4px; color: var(--navy); font-size: 15px; }
.delete-link { width: 100%; padding: 10px 22px; border: 0; border-top: 1px solid var(--line); color: var(--red); background: #fff; font-size: 9px; font-weight: 800; text-align: left; }
.empty-lists {
    grid-column: 1 / -1;
    min-height: 340px;
    display: grid;
    place-content: center;
    justify-items: center;
    padding: 35px;
    border: 1px dashed #cbd2d6;
    background: rgba(255,255,255,.55);
    text-align: center;
}
.empty-lists > span { color: var(--blue); font-size: 38px; }
.empty-lists h2 { margin: 16px 0 8px; }
.empty-lists p { max-width: 390px; margin: 0 0 22px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.list-detail { position: sticky; top: 88px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.detail-heading { display: flex; justify-content: space-between; gap: 15px; padding: 23px; border-bottom: 1px solid var(--line); }
.detail-heading .eyebrow { margin-bottom: 5px; }
.detail-heading h2 { margin: 0; font-size: 21px; }
.detail-heading-actions { display: flex; align-items: center; gap: 8px; }
.list-copy-button { color: #204f3a; border-color: #b8d5c4; background: #f1f8f4; }
.detail-summary { display: grid; grid-template-columns: 1fr 1fr; color: var(--white); background: var(--navy); }
.detail-summary span { display: grid; gap: 6px; padding: 17px 20px; color: #91a3b1; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.detail-summary span + span { border-left: 1px solid rgba(255,255,255,.12); }
.detail-summary strong { color: var(--white); font-size: 17px; text-transform: none; }
.detail-items { max-height: 520px; overflow-y: auto; }
.detail-item { padding: 18px 20px; border-bottom: 1px solid var(--line); }
.detail-item > div:first-child { display: flex; justify-content: space-between; gap: 12px; }
.detail-item > div:first-child span { color: var(--blue); font-size: 9px; font-weight: 900; }
.detail-item p { margin: 8px 0 14px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.item-controls { display: flex; align-items: flex-end; gap: 12px; }
.item-controls label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 800; }
.item-controls input { width: 58px; height: 31px; padding: 0 7px; border: 1px solid #cbd2d6; }
.item-controls > strong { margin-left: auto; color: var(--blue); font-size: 11px; }
.item-controls > button { padding: 0; border: 0; color: var(--red); background: transparent; font-size: 8px; font-weight: 800; }
.mini-empty { padding: 35px 22px; color: var(--muted); font-size: 10px; line-height: 1.6; text-align: center; }
.list-order-actions { display: grid; gap: 9px; padding: 17px 20px 20px; border-top: 1px solid var(--line); background: #f8faf9; }
.list-order-actions textarea {
    width: 100%;
    min-height: 68px;
    padding: 10px;
    resize: vertical;
    border: 1px solid #ccd3d8;
    background: #fff;
    font: inherit;
    font-size: 10px;
}
.list-order-actions small { color: var(--muted); font-size: 8px; line-height: 1.5; }

.profile-state { padding: 8px 11px; color: #7f611a; background: #fff3cf; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.profile-state.complete { color: #277a45; background: #e9f6ed; }
.profile-form-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 30px;
    border: 1px solid var(--line);
    background: #fff;
}
.profile-form-card label {
    display: grid;
    gap: 8px;
    color: #3e4851;
    font-size: 10px;
    font-weight: 800;
}
.profile-form-card input, .profile-form-card textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid #ccd3d8;
    background: #fff;
    font: inherit;
}
.profile-form-card textarea { min-height: 95px; resize: vertical; }
.profile-form-card .wide { grid-column: 1 / -1; }
.profile-form-card .primary-button { width: max-content; min-width: 190px; }
.client-order-list { display: grid; gap: 10px; }
.order-lock-notice {
    display: grid;
    gap: 4px;
    margin-bottom: 14px;
    padding: 15px 18px;
    border: 1px solid #d8c6ac;
    color: var(--navy);
    background: #fff8ee;
}
.order-lock-notice strong { font-size: 11px; }
.order-lock-notice span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.client-order-card {
    display: grid;
    grid-template-columns: minmax(190px, 1.4fr) 130px 100px 130px 70px;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid var(--line);
    background: #fff;
}
.client-order-card > div { display: grid; gap: 5px; }
.client-order-card > div span { color: var(--muted); font-size: 8px; }
.client-order-immutable { color: #8a633a; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.client-order-card strong { color: var(--navy); font-size: 11px; }
.client-order-card > span { color: var(--muted); font-size: 9px; }
.client-order-card > a { color: var(--blue); font-size: 9px; font-weight: 900; text-decoration: none; }
.client-order-status { justify-self: start; padding: 6px 8px; font-weight: 900; text-transform: uppercase; }
.client-order-status.submitted { color: #6b5316; background: #fff4cf; }
.client-order-status.processing { color: #26496a; background: #e7f0ff; }
.client-order-status.ready { color: #277a45; background: #e9f6ed; }
.client-order-status.completed { color: #5d6570; background: #edf0f2; }
.client-order-status.rejected { color: #943f37; background: #fff0ee; }

.admin-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.system-update-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid #cdd9ef;
    background: #f3f7ff;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.system-update-bar > div { display: grid; gap: 4px; }
.system-update-bar strong { color: var(--navy); font-size: 11px; }
.system-update-bar span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.system-update-alert {
    justify-self: start;
    margin-bottom: 3px;
    padding: 5px 8px;
    border-radius: 2px;
    color: #fff;
    background: #bd2f25;
    font-size: 8px;
    font-style: normal;
    font-weight: 950;
    letter-spacing: .11em;
}
.system-update-bar.update-required {
    border-color: #d8463a;
    background: #fff0ee;
    box-shadow: 0 0 0 4px rgba(216,70,58,.09);
}
.system-update-bar.update-required strong { color: #8f241c; }
.system-update-bar.update-required span { color: #73423e; }
.system-update-bar.update-required #system-update-button {
    border-color: #bd2f25;
    color: #fff;
    background: #bd2f25;
}
.system-update-bar.update-check-failed {
    border-color: #d49a38;
    background: #fff8e8;
}
.admin-metrics article {
    min-height: 145px;
    display: grid;
    align-content: space-between;
    gap: 10px;
    padding: 23px;
    border: 1px solid var(--line);
    background: var(--white);
}
.admin-metrics span, .admin-metrics small { color: var(--muted); font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.admin-metrics strong { overflow-wrap: anywhere; color: var(--navy); font-size: 33px; letter-spacing: -.045em; }
.admin-panel { overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.admin-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; padding: 26px 28px; border-bottom: 1px solid var(--line); }
.admin-panel-heading .eyebrow { margin-bottom: 6px; }
.admin-panel-heading h2 { margin: 0; font-size: 23px; }
.admin-panel-heading p { max-width: 430px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.settings-panel { margin-bottom: 18px; }
.settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    padding: 24px 28px;
}
.settings-form > label:not(.active-toggle) {
    display: grid;
    gap: 7px;
    color: #3e4851;
    font-size: 10px;
    font-weight: 800;
}
.settings-form input[type="number"], .settings-form input[type="email"], .settings-form input[type="text"], .settings-form textarea {
    width: 100%;
    height: 45px;
    padding: 0 12px;
    border: 1px solid #ccd3d8;
    color: var(--ink);
    background: #fff;
}
.settings-form textarea { min-height: 82px; padding: 11px 12px; resize: vertical; }
.settings-toggle { min-height: 45px; margin: 0 !important; }
.settings-form-section {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
    margin-top: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.settings-form-section strong { color: var(--navy); font-size: 13px; }
.settings-form-section span { color: var(--muted); font-size: 9px; line-height: 1.55; }
.settings-wide { grid-column: 1 / -1; }
.settings-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.settings-inline-note {
    align-self: center;
    margin: 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}
.settings-form .primary-button { width: 100%; }
.admin-user-table { min-width: 880px; }
.admin-user-row {
    min-height: 78px;
    display: grid;
    grid-template-columns: minmax(230px, 1.25fr) 145px minmax(180px, .9fr) 105px 100px;
    align-items: center;
    gap: 17px;
    padding: 14px 28px;
    border-bottom: 1px solid #edf0f2;
}
.admin-user-row:last-child { border-bottom: 0; }
.admin-user-head { min-height: 40px; color: #89939b; background: #f8f9f9; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.admin-identity { min-width: 0; display: flex; align-items: center; gap: 11px; }
.admin-identity > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--white); background: var(--navy); font-size: 10px; font-weight: 900; }
.admin-identity > div, .markup-value { min-width: 0; display: grid; gap: 4px; }
.admin-identity strong, .admin-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-identity strong { font-size: 11px; }
.admin-identity small, .markup-value small { color: var(--muted); font-size: 8px; }
.role-badge, .user-status { justify-self: start; padding: 6px 8px; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.role-badge { color: #3e596c; background: #edf2f5; }
.role-badge.admin { color: #26496a; background: #e7f0ff; }
.role-badge.manager { color: #6b5316; background: #fff4cf; }
.markup-value strong { color: var(--blue); font-size: 14px; }
.user-status { color: var(--muted); background: #f1f3f4; }
.user-status.active { color: #277a45; background: #e9f6ed; }
.admin-actions { display: flex; justify-content: flex-end; }
.admin-actions button { min-height: 31px; padding: 0 9px; border: 1px solid #cfd6da; background: var(--white); font-size: 9px; font-weight: 800; }

.catalog-pill { display: flex; align-items: center; gap: 8px; padding: 10px 13px; color: var(--muted); border: 1px solid var(--line); background: var(--white); font-size: 9px; text-transform: uppercase; }
.catalog-pill span { width: 7px; height: 7px; border-radius: 50%; background: #aab2b8; }
.catalog-pill.ready span { background: #4bad68; }
.catalog-pill.ready { color: #277a45; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; }
.upload-card, .catalog-overview { position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--line); background: var(--white); }
.upload-number { position: absolute; top: 17px; right: 22px; color: #e7ebed; font-size: 52px; font-weight: 900; }
.upload-card h2, .catalog-overview h2 { margin: 4px 0 11px; font-size: 29px; letter-spacing: -.045em; }
.upload-card > p { max-width: 650px; margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.drop-zone {
    min-height: 205px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 28px;
    border: 1px dashed #bcc6cc;
    background: #fafbfb;
    text-align: center;
    cursor: pointer;
}
.drop-zone.has-file { border-color: var(--blue); background: #f4f7ff; }
.drop-zone input { display: none; }
.upload-icon { width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); background: var(--blue); font-size: 24px; }
.drop-zone strong { max-width: 460px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.drop-zone small { color: var(--muted); font-size: 9px; }
.import-button { width: 100%; min-height: 52px; margin-top: 15px; }
.import-progress { display: grid; grid-template-columns: 1fr auto; gap: 7px 14px; margin-top: 17px; }
.import-progress > div { height: 5px; overflow: hidden; grid-column: 1 / -1; background: #e8ecef; }
.import-progress > div span { display: block; width: 0; height: 100%; background: var(--blue); transition: width .2s; }
.import-progress p { margin: 0; color: var(--muted); font-size: 9px; }
.import-progress strong { font-size: 9px; }
.catalog-overview { color: var(--white); border-color: var(--navy); background: var(--navy); }
.catalog-overview .eyebrow { color: var(--lime); }
.catalog-overview .upload-number { color: rgba(255,255,255,.08); }
.overview-stat { display: grid; gap: 8px; margin: 32px 0 21px; padding-bottom: 23px; border-bottom: 1px solid rgba(255,255,255,.12); }
.overview-stat span, .overview-row span { color: #94a6b6; font-size: 8px; font-weight: 900; text-transform: uppercase; }
.overview-stat strong { color: var(--lime); font-size: 42px; }
.overview-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); }
.overview-row strong { font-size: 10px; }
.warning-note { margin: 24px 0 0; padding: 14px; color: #a8b7c4; border-left: 2px solid var(--lime); background: rgba(255,255,255,.045); font-size: 9px; line-height: 1.55; }
.catalog-review {
    margin-top: 18px;
    padding: 32px;
    border: 1px solid #cad3d9;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15,32,47,.07);
}
.catalog-review[hidden] { display: none; }
.catalog-review-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}
.catalog-review-heading h2 { margin: 4px 0 8px; font-size: 28px; letter-spacing: -.04em; }
.catalog-review-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.catalog-review-status {
    flex: 0 0 auto;
    padding: 9px 12px;
    color: #26723f;
    border: 1px solid #b8dfc3;
    background: #eef9f1;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}
.catalog-review-status.warning {
    color: #8a5918;
    border-color: #ead09e;
    background: #fff8e9;
}
.catalog-review-status.critical {
    color: #a02f2f;
    border-color: #efb4b4;
    background: #fff0f0;
}
.catalog-review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 24px 0;
    background: var(--line);
    border: 1px solid var(--line);
}
.catalog-review-grid article { min-width: 0; display: grid; gap: 7px; padding: 19px; background: #fbfcfc; }
.catalog-review-grid span { color: var(--muted); font-size: 10px; font-weight: 800; }
.catalog-review-grid strong { color: var(--navy); font-size: 26px; letter-spacing: -.04em; }
.catalog-review-grid small { color: #71808a; font-size: 10px; line-height: 1.45; }
.catalog-review-warnings { display: grid; gap: 8px; margin-bottom: 20px; }
.catalog-review-warning {
    display: grid;
    grid-template-columns: 9px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 12px 14px;
    color: #775018;
    border: 1px solid #edd5aa;
    background: #fff9ee;
    font-size: 11px;
    line-height: 1.5;
}
.catalog-review-warning::before { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #d8982f; content: ""; }
.catalog-review-warning.critical { color: #892c2c; border-color: #efb9b9; background: #fff2f2; }
.catalog-review-warning.critical::before { background: #d44141; }
.catalog-review-clear {
    padding: 12px 14px;
    color: #26723f;
    border: 1px solid #c0e0c8;
    background: #f0f9f2;
    font-size: 11px;
    line-height: 1.5;
}
.catalog-review-confirm {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 16px;
    border: 1px solid #cbd4da;
    background: #f7f9fa;
    cursor: pointer;
}
.catalog-review-confirm input { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; accent-color: var(--blue); }
.catalog-review-confirm span { color: var(--navy); font-size: 11px; font-weight: 750; line-height: 1.5; }
.catalog-review-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.catalog-review-actions button { min-width: 190px; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(8,18,28,.62);
    backdrop-filter: blur(5px);
}
.modal { position: relative; width: min(100%, 440px); padding: 34px; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; background: #f0f2f3; font-size: 20px; }
.modal h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.04em; }
.modal > p { margin: 0 0 23px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.modal .primary-button { width: 100%; }
.user-editor-modal { width: min(100%, 650px); }
.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-height: 56vh; padding-right: 5px; overflow-y: auto; }
.user-form-grid .wide-field { grid-column: 1 / -1; }
.user-form-grid textarea {
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    resize: vertical;
    border: 1px solid #ccd3d8;
    font: inherit;
}
.modal input:disabled { color: #7a858d; background: #f2f4f5; cursor: not-allowed; }
.price-preview {
    display: grid;
    grid-template-columns: 1fr auto auto 1fr auto;
    align-items: center;
    gap: 9px;
    margin: 0 0 19px;
    padding: 13px 15px;
    color: var(--muted);
    background: #f3f6f8;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}
.price-preview strong { color: var(--navy); font-size: 11px; white-space: nowrap; }
.price-preview i { color: var(--blue); font-size: 16px; font-style: normal; }
.active-toggle { padding: 12px 14px; background: #f8f9f9; }
.toast {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 17px;
    color: var(--white);
    background: var(--navy);
    box-shadow: 0 14px 35px rgba(0,0,0,.2);
    font-size: 11px;
}
.toast span { color: var(--lime); }
.mobile-menu-button,
.mobile-drawer,
.mobile-drawer-backdrop { display: none; }

.temporary-pricing {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 135px auto auto;
    align-items: center;
    gap: 18px;
    margin: 18px 0;
    padding: 17px 19px;
    border: 1px solid #cbd9e6;
    background: linear-gradient(120deg, #f4f8ff, #fff);
    box-shadow: 0 10px 25px rgba(16, 35, 56, .05);
}
.temporary-pricing > div:first-child { display: grid; gap: 4px; }
.temporary-pricing > div:first-child > span { color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.temporary-pricing > div:first-child > strong { font-size: 15px; }
.temporary-pricing > div:first-child > small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.temporary-pricing > label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.temporary-pricing > label > span { display: flex; align-items: center; gap: 6px; color: var(--navy); font-size: 15px; }
.temporary-pricing input { width: 95px; min-height: 39px; padding: 7px 9px; border: 1px solid #bbc8d4; background: #fff; font-weight: 900; }
.temporary-price-preview { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.temporary-price-preview small { color: var(--muted); text-decoration: line-through; }
.temporary-price-preview b { color: var(--blue); }
.temporary-price-preview strong { color: var(--navy); font-size: 15px; }

.analytics-period { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.analytics-period select { min-height: 43px; padding: 0 35px 0 13px; border: 1px solid var(--line); background: #fff; }
.analytics-panel, .backup-panel { margin-bottom: 26px; padding: 25px; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 34px rgba(16, 35, 56, .05); }
.analytics-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-bottom: 20px; background: var(--line); }
.analytics-summary article { min-height: 118px; display: grid; align-content: center; gap: 7px; padding: 17px; background: #fff; }
.analytics-summary span { color: var(--muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.analytics-summary strong { color: var(--navy); font-size: clamp(22px, 2.5vw, 34px); letter-spacing: -.04em; }
.analytics-summary small { color: var(--muted); font-size: 11px; }
.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 20px; }
.analytics-card { min-width: 0; border: 1px solid var(--line); background: #fbfcfc; }
.analytics-chart { height: 260px; display: flex; align-items: stretch; gap: 3px; padding: 24px 20px 18px; overflow-x: auto; border-top: 1px solid var(--line); }
.chart-day { min-width: 18px; display: grid; grid-template-rows: 1fr auto; gap: 8px; flex: 1 0 18px; }
.chart-bars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart-bars i, .chart-bars b { width: 44%; max-width: 9px; min-height: 3px; display: block; border-radius: 3px 3px 0 0; }
.chart-bars i { background: var(--navy-2); }
.chart-bars b { background: var(--blue); }
.chart-day > span { color: var(--muted); font-size: 8px; text-align: center; transform: rotate(-55deg); transform-origin: center; white-space: nowrap; }
.top-searches { max-height: 305px; overflow-y: auto; border-top: 1px solid var(--line); }
.top-searches article { display: grid; grid-template-columns: 25px 1fr auto auto; align-items: center; gap: 9px; padding: 10px 13px; border-bottom: 1px solid #e8ecea; }
.top-searches article > b { color: var(--muted); font-size: 10px; }
.top-searches article > strong { color: var(--navy); overflow-wrap: anywhere; }
.top-searches article > span { color: var(--blue); font-weight: 900; }
.top-searches article > small { color: var(--muted); font-size: 10px; }
.analytics-privacy { margin: 17px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.backup-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; padding: 0 24px 22px; }
#backup-requirement { margin-left: auto; color: #267446; font-size: 11px; font-weight: 800; }
#backup-requirement.error { color: var(--red); }
.backup-progress {
    display: grid;
    gap: 9px;
    margin: 0 24px 22px;
    padding: 15px 17px;
    border: 1px solid #cad7e2;
    background: #f4f8fb;
}
.backup-progress[hidden] { display: none; }
.backup-progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.backup-progress-heading span { color: var(--navy); font-size: 11px; font-weight: 900; }
.backup-progress-heading strong { color: var(--blue); font-size: 13px; }
.backup-progress-track { height: 8px; overflow: hidden; border-radius: 10px; background: #dfe7ed; }
.backup-progress-track span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #315ca8, #3d8a67); transition: width .35s ease; }
.backup-progress small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.backup-progress.success { border-color: #bcdcc8; background: #f1f9f4; }
.backup-progress.success .backup-progress-track span { background: #3d8a67; }
.backup-progress.error { border-color: #ecc9c5; background: #fff5f3; }
.backup-progress.error .backup-progress-heading strong,
.backup-progress.error small { color: var(--red); }
.backup-progress.error .backup-progress-track span { background: var(--red); }
.backup-list { border-top: 1px solid var(--line); }
.backup-list article { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
.backup-list article > div { min-width: 0; display: grid; gap: 4px; }
.backup-list article > div strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backup-list article > div small { color: var(--muted); font-size: 11px; }
.backup-type, .backup-status { padding: 6px 8px; font-size: 9px; font-weight: 900; text-align: center; text-transform: uppercase; }
.backup-type { color: #fff; background: var(--navy); }
.backup-type.database { color: var(--navy); background: #e5ecf2; }
.backup-status.ready { color: #247443; background: #e9f6ed; }
.backup-list a, .backup-list button { padding: 8px 10px; border: 1px solid #cbd4da; color: var(--navy); background: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.backup-list button { color: var(--red); border-color: #ebcecb; }

/* Comfortable minimum text sizes throughout the operational interface. */
.brand-lockup small, .login-language a, .login-home-link,
.internal-language a, .catalog-fact > span, .catalog-fact > small,
.pricing-label, .search-meta, .active-list-bar label, .result-head,
.unavailable-note, .result-delivery, .unavailable-tag, .list-card p,
.list-stats span, .detail-summary span, .detail-item p, .item-controls label,
.list-order-actions small, .profile-state, .client-order-card span,
.client-order-immutable, .system-update-bar span, .system-update-alert,
.admin-metrics span, .admin-metrics small, .settings-form-section span,
.settings-note, .admin-user-head, .admin-identity small, .markup-value small,
.role-badge, .user-status, .drop-zone small, .import-progress p,
.overview-stat span, .overview-row span, .warning-note {
    font-size: max(10px, .69rem);
}

@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
    .sidebar { width: 220px; padding-inline: 13px; }
    .sidebar nav button, .sidebar nav a { padding-inline: 10px; font-size: 12px; }
    .content { padding-inline: 28px; }
    .lists-layout, .import-layout { grid-template-columns: 1fr; }
    .list-detail { position: static; }
    .admin-panel { overflow-x: auto; }
}

@media (max-width: 820px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { display: none; }
    .login-panel { min-height: 100vh; padding: 32px 22px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 52px; }
    .app-shell { display: block; }
    .sidebar { display: none; }
    .workspace { display: block; }
    .topbar { height: 64px; gap: 12px; padding: 0 18px; }
    .breadcrumbs, .user-area > div { display: none; }
    .topbar-tools { gap: 8px; }
    .content { min-height: calc(100vh - 64px); padding: 34px 18px 42px; }
    .mobile-menu-button {
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 0 13px;
        border: 1px solid #cfd7dd;
        color: var(--navy);
        background: #fff;
        font: inherit;
        font-size: 12px;
        font-weight: 850;
    }
    .mobile-menu-button:focus-visible,
    .mobile-drawer-close:focus-visible,
    .mobile-drawer-nav button:focus-visible,
    .mobile-drawer-nav a:focus-visible,
    .mobile-drawer-logout:focus-visible {
        outline: 3px solid rgba(49, 92, 168, .3);
        outline-offset: 2px;
    }
    .mobile-menu-lines {
        width: 19px;
        display: grid;
        gap: 4px;
    }
    .mobile-menu-lines i {
        width: 100%;
        height: 2px;
        display: block;
        border-radius: 4px;
        background: currentColor;
    }
    body.mobile-menu-open { overflow: hidden; }
    .mobile-drawer-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        opacity: 0;
        background: rgba(7, 18, 29, .58);
        backdrop-filter: blur(3px);
        transition: opacity .24s ease;
    }
    .mobile-drawer-backdrop.open { opacity: 1; }
    .mobile-drawer-backdrop[hidden] { display: none; }
    .mobile-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 91;
        width: min(86vw, 330px);
        height: 100vh;
        height: 100dvh;
        display: flex;
        flex-direction: column;
        visibility: hidden;
        overflow: hidden;
        border-right: 1px solid #d5dce1;
        background: #fbfcfb;
        box-shadow: 24px 0 60px rgba(5, 18, 31, .24);
        transform: translateX(-105%);
        transition: transform .26s ease, visibility 0s linear .26s;
        pointer-events: none;
    }
    .mobile-drawer.open {
        visibility: visible;
        transform: translateX(0);
        transition-delay: 0s;
        pointer-events: auto;
    }
    .mobile-drawer-header {
        min-height: 77px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        flex: 0 0 auto;
        padding: 13px 16px;
        border-bottom: 1px solid var(--line);
        background: #fff;
    }
    .mobile-drawer-header .brand-lockup { min-width: 0; }
    .mobile-drawer-header .ego-internal-brand img { width: 45px; height: 45px; }
    .mobile-drawer-header .brand-lockup strong { font-size: 13px; }
    .mobile-drawer-close {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        flex: 0 0 42px;
        border: 1px solid #d6dde2;
        color: var(--navy);
        background: #f5f7f8;
        font-size: 25px;
        line-height: 1;
    }
    .mobile-drawer-nav {
        display: grid;
        align-content: start;
        gap: 5px;
        flex: 1 1 auto;
        padding: 20px 14px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
    .mobile-drawer-nav .nav-label {
        margin-top: 4px;
        padding: 5px 12px 7px;
        font-size: 10px;
    }
    .mobile-drawer-nav .staff-nav-label { margin-top: 13px; }
    .mobile-drawer-nav button,
    .mobile-drawer-nav a {
        min-height: 50px;
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 0 13px;
        border: 0;
        color: #34424d;
        background: transparent;
        font: inherit;
        font-size: 13px;
        font-weight: 760;
        line-height: 1.25;
        text-align: left;
        text-decoration: none;
    }
    .mobile-drawer-nav button > span,
    .mobile-drawer-nav a > span {
        width: 23px;
        display: inline-grid;
        place-items: center;
        flex: 0 0 23px;
        font-size: 19px;
    }
    .mobile-drawer-nav button > b {
        min-width: 22px;
        margin-left: auto;
        padding: 3px 6px;
        border-radius: 20px;
        color: var(--navy);
        background: #e8ecef;
        font-size: 9px;
        text-align: center;
    }
    .mobile-drawer-nav button .nav-update-alert {
        min-width: 20px;
        color: #fff;
        background: #c4372b;
        box-shadow: 0 0 0 4px rgba(196, 55, 43, .12);
    }
    .mobile-drawer-nav button .nav-update-alert + b { margin-left: 0; }
    .mobile-drawer-nav button:hover,
    .mobile-drawer-nav a:hover { color: var(--navy); background: #edf1f3; }
    .mobile-drawer-nav button.active {
        color: #183b78;
        background: #e5edfb;
        box-shadow: inset 3px 0 0 #315ca8;
    }
    .mobile-drawer-footer {
        display: grid;
        gap: 12px;
        flex: 0 0 auto;
        padding: 14px 16px max(14px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: #fff;
    }
    .mobile-drawer-user,
    .mobile-drawer-status {
        display: flex;
        align-items: center;
        gap: 11px;
    }
    .mobile-drawer-user > div,
    .mobile-drawer-status > div { min-width: 0; display: grid; gap: 2px; }
    .mobile-drawer-user strong,
    .mobile-drawer-status strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-drawer-user small,
    .mobile-drawer-status small { color: var(--muted); font-size: 10px; }
    .mobile-drawer-status { padding-top: 11px; border-top: 1px solid #e8ecef; }
    .mobile-drawer-logout {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        border: 1px solid #d3dae0;
        color: var(--navy);
        background: #f5f7f8;
        font: inherit;
        font-size: 12px;
        font-weight: 850;
    }
    .search-intro, .page-heading { align-items: stretch; flex-direction: column; }
    .catalog-fact { width: 100%; min-width: 0; }
    .search-box { flex-wrap: wrap; }
    .search-icon { width: 45px; }
    .search-box input { width: calc(100% - 45px); height: 54px; font-size: 16px; }
    .search-box .primary-button { width: 100%; margin-top: 4px; }
    .active-list-bar { align-items: stretch; flex-wrap: wrap; }
    .active-list-bar label { width: 100%; }
    .active-list-bar select { min-width: 0; flex: 1; }
    .quick-grid, .admin-metrics { grid-template-columns: 1fr; }
    .system-update-bar { align-items: stretch; flex-direction: column; }
    .temporary-pricing { grid-template-columns: 1fr 1fr; }
    .temporary-pricing > div:first-child { grid-column: 1 / -1; }
    .analytics-summary { grid-template-columns: repeat(2, 1fr); }
    .analytics-summary article:last-child { grid-column: 1 / -1; }
    .analytics-grid { grid-template-columns: 1fr; }
    .backup-list article { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .backup-list article > a, .backup-list article > button { grid-row: 2; }
    .backup-list article > a { grid-column: 2; }
    .backup-list article > button { grid-column: 3; }
    .quick-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
    .table-card { overflow-x: auto; }
    .list-cards { grid-template-columns: 1fr; }
    .profile-form-card { grid-template-columns: 1fr; padding: 22px; }
    .profile-form-card .wide { grid-column: auto; }
    .detail-heading { align-items: stretch; flex-direction: column; gap: 14px; }
    .detail-heading-actions { flex-wrap: wrap; }
    .detail-heading-actions .list-copy-button { flex: 1 1 150px; }
    .client-order-card { grid-template-columns: 1fr 1fr; }
    .client-order-card > div, .client-order-card > a { grid-column: 1 / -1; }
    .admin-panel-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .admin-panel { overflow-x: visible; }
    .admin-user-table { min-width: 0; }
    .admin-user-head { display: none; }
    .admin-user-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        margin: 12px;
        padding: 18px;
        border: 1px solid var(--line);
    }
    .admin-identity { grid-column: 1 / -1; }
    .markup-value { justify-self: end; text-align: right; }
    .admin-actions { grid-column: 1 / -1; }
    .admin-actions button { width: 100%; min-height: 42px; }
    .upload-card, .catalog-overview { padding: 27px 22px; }
    .catalog-review { padding: 25px 22px; }
    .catalog-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .toast { right: 12px; bottom: 12px; left: 12px; }
}

@media (max-width: 480px) {
    .topbar { justify-content: space-between; padding-inline: 10px; }
    .topbar-tools { width: auto; min-width: 0; justify-content: flex-end; gap: 5px; margin-left: auto; }
    .internal-language { max-width: 96px; overflow-x: auto; }
    .internal-language a { flex: 0 0 31px; }
    .user-area { gap: 4px; }
    .user-area .user-avatar { display: none; }
    .login-card h2 { font-size: 35px; }
    .search-intro h1, .page-heading h1 { font-size: 42px; }
    .search-meta { flex-wrap: wrap; }
    .modal { padding: 29px 22px; }
    .user-form-grid, .price-preview { grid-template-columns: 1fr; }
    .user-form-grid .wide-field { grid-column: auto; }
    .settings-form { grid-template-columns: 1fr; padding: 20px; }
    .settings-note { grid-column: auto; }
    .settings-form-section, .settings-wide { grid-column: auto; }
    .page-heading .primary-button { width: 100%; }
    .catalog-review-heading { display: grid; gap: 14px; }
    .catalog-review-status { justify-self: start; }
    .catalog-review-grid { grid-template-columns: 1fr; }
    .catalog-review-actions { display: grid; }
    .catalog-review-actions button { width: 100%; min-width: 0; }
    .admin-panel-heading { padding: 20px; }
    .admin-user-row { grid-template-columns: 1fr 1fr; margin-inline: 0; padding-inline: 18px; }
    .role-badge, .user-status { justify-self: stretch; text-align: center; }
    .price-preview i { display: none; }
    .temporary-pricing { grid-template-columns: 1fr; padding: 15px; }
    .temporary-pricing > div:first-child { grid-column: auto; }
    .temporary-price-preview { justify-content: space-between; }
    .analytics-panel, .backup-panel { padding: 15px 0; }
    .analytics-summary { margin-inline: 14px; grid-template-columns: 1fr; }
    .analytics-summary article:last-child { grid-column: auto; }
    .analytics-grid { padding-inline: 14px; }
    .backup-actions { align-items: stretch; flex-direction: column; padding-inline: 14px; }
    .backup-progress { margin-inline: 14px; }
    #backup-requirement { margin-left: 0; }
    .backup-list article { grid-template-columns: 52px minmax(0, 1fr); }
    .backup-list .backup-status { grid-column: 1 / -1; justify-self: start; }
    .backup-list article > a, .backup-list article > button { grid-row: auto; grid-column: auto; text-align: center; }
}

@media (max-width: 360px) {
    .mobile-menu-button strong { display: none; }
    .mobile-menu-button { width: 44px; justify-content: center; padding: 0; }
    .internal-language { max-width: 92px; }
}
