:root {
  --ink: #172220;
  --muted: #68736f;
  --paper: #f2efe7;
  --panel: #fffdf8;
  --line: #dcd8ce;
  --navy: #102a2a;
  --navy-2: #193c39;
  --mint: #b9e5d2;
  --orange: #ec6a38;
  --amber: #dca73a;
  --red: #b94a3f;
  --shadow: 0 18px 50px rgba(25, 41, 38, .09);
  --radius: 18px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: var(--navy); color: white; overflow: hidden; }
.auth-art { position: relative; display: grid; place-items: center; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 50% 45%, #234c46 0, #102a2a 54%, #0a1d1d 100%); }
.auth-art > span { position: relative; z-index: 2; display: grid; place-items: center; width: 145px; height: 145px; border-radius: 42px; color: var(--navy); background: var(--mint); font: 900 50px Georgia, serif; box-shadow: 22px 22px 0 var(--orange); transform: rotate(-4deg); }
.auth-orbit { position: absolute; width: 560px; height: 560px; border: 1px solid rgba(185,229,210,.2); border-radius: 50%; }
.auth-orbit::before, .auth-orbit::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 25px var(--orange); }
.auth-orbit::before { left: 38px; top: 132px; }
.auth-orbit::after { right: 62px; bottom: 93px; background: var(--mint); box-shadow: 0 0 25px var(--mint); }
.auth-orbit.two { width: 800px; height: 800px; opacity: .45; }
.auth-scan { position: absolute; width: 70%; height: 1px; background: var(--orange); box-shadow: 0 0 25px var(--orange); animation: authscan 4s ease-in-out infinite; }
@keyframes authscan { 0%,100% { transform: translateY(-210px); opacity: .2; } 50% { transform: translateY(210px); opacity: 1; } }
.auth-card { align-self: center; justify-self: center; width: min(430px, calc(100vw - 40px)); padding: 45px; color: var(--ink); background: var(--panel); border-radius: 25px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 55px; }
.auth-brand strong, .auth-brand span { display: block; }
.auth-brand span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.auth-card h1 { margin: 0 0 8px; font: 700 35px Georgia, "Noto Serif SC", serif; }
.auth-card > p { margin: 0 0 25px; color: var(--muted); font-size: 13px; }
.auth-card form { display: grid; gap: 15px; }
.auth-card label { display: grid; gap: 7px; color: #505b57; font-size: 11px; font-weight: 700; }
.auth-card input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: white; }
.auth-card input:focus { border-color: #64877e; box-shadow: 0 0 0 3px rgba(100,135,126,.12); }
.auth-submit { width: 100%; margin-top: 5px; padding: 13px !important; }
.auth-security { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: #84908b; font-size: 10px; line-height: 1.6; }

.app-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 18px; background: var(--navy); color: white; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--orange); color: #fff; font-weight: 900; font-size: 20px; transform: rotate(-3deg); }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 18px; letter-spacing: .04em; }
.brand span { margin-top: 3px; color: #9bb1ac; font-size: 12px; }
.nav { display: grid; gap: 7px; }
.nav-item { border: 0; color: #b9cac6; background: transparent; border-radius: 12px; padding: 13px 14px; text-align: left; transition: .2s ease; }
.nav-item span { display: inline-grid; width: 27px; font-size: 17px; color: #8da39e; }
.nav-item:hover { background: rgba(255,255,255,.06); color: white; }
.nav-item.active { color: white; background: #224843; box-shadow: inset 3px 0 0 var(--mint); }
.nav-item.active span { color: var(--mint); }
.sidebar-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 10px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot span { margin-top: 2px; color: #91aaa4; font-size: 11px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #6bd39e; box-shadow: 0 0 0 5px rgba(107,211,158,.12); }

.main { min-width: 0; padding: 34px clamp(22px, 4vw, 64px) 60px; }
.topbar { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; }
.eyebrow, .section-label, .hero-kicker { margin: 0 0 7px; color: var(--orange); font-weight: 800; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.topbar h1 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(28px, 3vw, 42px); line-height: 1; font-weight: 700; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.date-chip { color: var(--muted); font-size: 13px; padding-right: 10px; }
.user-chip { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--ink); padding: 4px 6px; border-radius: 10px; }
.user-chip:hover { background: #e7e3da; }
.user-chip span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--navy-2); font-size: 11px; }
.user-chip b { font-size: 11px; }

button.primary, button.secondary, .light-button, .ghost-button, .text-button { border-radius: 10px; border: 0; padding: 10px 16px; font-weight: 700; transition: .2s ease; }
button.primary { background: var(--orange); color: white; box-shadow: 0 8px 20px rgba(236,106,56,.22); }
button.primary:hover { transform: translateY(-1px); background: #dc5e2e; }
button.secondary { background: white; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
button.secondary:hover { border-color: #a8b0ad; }
.text-button { background: transparent; color: var(--orange); padding-inline: 5px; }

.page { display: none; animation: rise .25s ease both; }
.page.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.hero-card { position: relative; min-height: 300px; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; background: var(--navy); color: white; border-radius: 25px; padding: 40px 46px; box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: auto auto -170px -100px; width: 430px; height: 300px; border-radius: 50%; border: 1px solid rgba(185,229,210,.2); }
.hero-card h2 { position: relative; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(35px, 4vw, 57px); line-height: 1.08; letter-spacing: -.025em; }
.hero-card p { position: relative; max-width: 610px; color: #b6c9c5; font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 22px; }
.light-button { background: var(--mint); color: var(--navy); }
.ghost-button { color: white; border: 1px solid rgba(255,255,255,.22); background: transparent; }
.hero-visual { position: relative; min-height: 210px; align-self: center; }
.shelf { position: absolute; display: flex; align-items: end; gap: 10px; padding: 13px; border: 2px solid rgba(185,229,210,.42); border-top: 0; }
.shelf::after { content: ""; position: absolute; left: -8px; right: -8px; bottom: -7px; height: 5px; background: var(--mint); opacity: .6; }
.shelf i { display: block; width: 40px; height: 56px; background: rgba(236,106,56,.85); border-radius: 4px 4px 1px 1px; }
.shelf i:nth-child(2) { height: 78px; background: rgba(185,229,210,.8); }
.shelf i:nth-child(3) { height: 42px; background: rgba(255,255,255,.36); }
.shelf-a { right: 30px; bottom: 25px; width: 190px; }
.shelf-b { right: 18px; top: 0; width: 142px; transform: scale(.75); opacity: .55; }
.scan-line { position: absolute; left: 15px; right: 0; top: 52%; height: 1px; background: var(--orange); box-shadow: 0 0 15px var(--orange); animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-70px); opacity: .35; } 50% { transform: translateY(70px); opacity: 1; } }
.location-flag { position: absolute; right: 160px; top: 70px; padding: 7px 9px; background: var(--panel); color: var(--navy); font-size: 10px; font-weight: 900; box-shadow: 6px 6px 0 var(--orange); }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.metric span, .metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: flex; align-items: baseline; gap: 7px; margin: 10px 0 5px; font-family: Georgia, serif; font-size: 34px; line-height: 1; }
.metric strong b { font: inherit; }
.metric strong em { font-style: normal; color: #b4bab6; font-size: 20px; }
.metric.warning { background: #fff3e4; border-color: #efd0a1; }
.metric.warning strong { color: #b85c27; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.span-2 { grid-column: span 2; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 6px 26px rgba(41,47,43,.035); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 15px; }
.panel h3 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 21px; }
.muted { color: var(--muted); font-size: 12px; }

.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 18px; color: #7b8581; font-weight: 600; text-align: left; background: #f8f5ee; border-block: 1px solid #e6e1d8; white-space: nowrap; }
td { padding: 15px 18px; border-bottom: 1px solid #ece8df; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfaf5; }
.empty-row td { text-align: center; color: var(--muted); padding: 35px; }
.type-pill, .stock-pill, .pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.type-inbound { background: #e5f6ee; color: #267657; }
.type-outbound { background: #fff0e6; color: #b75027; }
.type-return { background: #eceafb; color: #5c52a0; }
.stock-low { background: #fff0df; color: #b55c28; }
.stock-ok { background: #e6f4ed; color: #247155; }
.sku-cell strong, .sku-cell span, .product-cell strong, .product-cell span { display: block; }
.sku-cell span, .product-cell span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.qty-positive { color: #278160; font-weight: 800; }
.qty-negative { color: #c15435; font-weight: 800; }
.alert-list { padding: 0 20px 18px; }
.alert-item { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #ece8df; }
.alert-item:last-child { border-bottom: 0; }
.alert-item strong, .alert-item span { display: block; }
.alert-item strong { font-size: 12px; }
.alert-item span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.alert-count { min-width: 38px; height: 38px; display: grid; place-items: center; color: #ad5427; background: #fff0df; border-radius: 50%; font-weight: 900; }

.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search-box { flex: 1; max-width: 470px; display: flex; align-items: center; gap: 9px; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; }
.search-box input { width: 100%; padding: 12px 0; border: 0; outline: 0; background: transparent; }
.toolbar-copy { margin: 0; color: var(--muted); font-size: 13px; }
.products-table table { min-width: 900px; }
.barcode-mini { display: flex; gap: 8px; align-items: center; }
.barcode-mini code { color: var(--navy); background: #edf3ef; border-radius: 5px; padding: 4px 6px; font-size: 10px; }
.small-button { border: 1px solid var(--line); background: white; border-radius: 8px; padding: 6px 9px; font-size: 10px; font-weight: 700; }

.operation-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.operation-card { display: flex; align-items: center; gap: 15px; min-height: 108px; padding: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); text-align: left; box-shadow: 0 6px 26px rgba(41,47,43,.035); }
.operation-card > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 13px; font-size: 25px; }
.operation-card strong, .operation-card small { display: block; }
.operation-card small { color: var(--muted); margin-top: 7px; line-height: 1.5; }
.operation-card.inbound > span { color: #237458; background: #dff4ea; }
.operation-card.outbound > span { color: #b8522c; background: #fff0e6; }
.operation-card.returns > span { color: #645aa4; background: #eceafb; }
.operation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.location-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.location-card::after { content: attr(data-zone); position: absolute; right: -6px; bottom: -22px; font-family: Georgia, serif; font-size: 92px; font-weight: 900; color: #edf0e9; z-index: 0; }
.location-card > * { position: relative; z-index: 1; }
.location-card .location-code { color: var(--orange); font-size: 23px; font-family: Georgia, serif; font-weight: 800; }
.location-card h3 { margin: 7px 0 4px; font-size: 15px; }
.location-card p { margin: 0; color: var(--muted); font-size: 11px; }
.location-stats { display: flex; gap: 25px; margin-top: 25px; }
.location-stats strong, .location-stats span { display: block; }
.location-stats strong { font-size: 24px; font-family: Georgia, serif; }
.location-stats span { color: var(--muted); font-size: 10px; }

.pda-shell { max-width: 850px; margin: 0 auto; padding: 34px; border-radius: 25px; color: white; background: var(--navy); box-shadow: var(--shadow); }
.pda-top { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.pda-top h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 34px; }
.pda-top p { margin: 10px 0 0; color: #a9bfba; font-size: 13px; }
.pda-online { display: flex; gap: 8px; align-items: center; color: #b9d5ce; font-size: 11px; white-space: nowrap; }
.pda-online i { width: 8px; height: 8px; border-radius: 50%; background: #69d29e; box-shadow: 0 0 0 5px rgba(105,210,158,.12); }
.scan-box { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 17px; margin: 30px 0 20px; background: white; color: var(--ink); border-radius: 15px; }
.scan-box input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; font-size: 17px; }
.scan-box button { border: 0; border-radius: 10px; background: var(--orange); color: white; font-weight: 800; padding: 12px 20px; }
.scan-icon { font-size: 24px; color: var(--orange); }
.scan-result { min-height: 270px; border-radius: 18px; background: #f8f6f0; color: var(--ink); overflow: hidden; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #86908c; }
.empty-state strong { margin: 12px 0 5px; color: var(--ink); }
.empty-state span { font-size: 12px; }
.empty-icon { font-size: 42px; color: #a8b5b1; }
.scan-product { padding: 27px; }
.scan-product-head { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.scan-product h3 { margin: 0 0 7px; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; }
.scan-product p { margin: 0; color: var(--muted); font-size: 12px; }
.scan-total { text-align: right; }
.scan-total strong, .scan-total span { display: block; }
.scan-total strong { color: var(--orange); font-family: Georgia, serif; font-size: 39px; }
.scan-total span { color: var(--muted); font-size: 10px; }
.scan-locations { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding-top: 18px; }
.scan-location { display: flex; justify-content: space-between; padding: 16px; border: 1px solid var(--line); border-radius: 12px; }
.scan-location strong, .scan-location span { display: block; }
.scan-location span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.scan-location b { font-family: Georgia, serif; font-size: 24px; }

.integration-card { max-width: 900px; margin: 0 auto; padding: 45px; background: var(--panel); border: 1px solid var(--line); border-radius: 25px; box-shadow: var(--shadow); }
.integration-logo { display: inline-grid; place-items: center; min-width: 90px; height: 55px; padding: 0 12px; border-radius: 14px; background: #ff6a00; color: white; font-size: 24px; font-weight: 900; font-style: italic; }
.integration-copy { margin: 24px 0 30px; }
.integration-copy h2 { margin: 15px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 32px; }
.integration-copy p { color: var(--muted); line-height: 1.8; }
.pill.pending { color: #a45a26; background: #fff0df; }
.integration-steps { display: grid; gap: 8px; }
.integration-steps div { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.integration-steps b { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #e8ebe5; color: #85908c; }
.integration-steps .done b { background: #dff4ea; color: #237458; }
.integration-steps strong, .integration-steps small { display: block; }
.integration-steps small { margin-top: 3px; color: var(--muted); }

.system-grid { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 18px; align-items: start; }
.user-list { padding: 0 22px 20px; }
.user-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.user-avatar { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e3efe9; color: #246b53; font-weight: 900; }
.user-row strong, .user-row span { display: block; }
.user-row strong { font-size: 12px; }
.user-row span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.operator-note { padding: 10px 12px; border: 1px solid #d7e6de; border-radius: 9px; color: #426d5d; background: #eef7f2; font-size: 11px; }
.audit-detail { max-width: 260px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.modal { width: min(620px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow: auto; border: 0; border-radius: 21px; padding: 0; box-shadow: 0 30px 100px rgba(8,25,23,.3); background: var(--panel); }
.modal.wide { width: min(950px, calc(100vw - 28px)); }
.modal::backdrop { background: rgba(13,31,29,.58); backdrop-filter: blur(4px); }
.modal form { padding: 28px; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.modal-head h2 { margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 27px; }
.icon-button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eeece5; font-size: 22px; color: #67726e; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { display: grid; gap: 7px; color: #4f5956; font-size: 11px; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; padding: 11px 12px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 9px; outline: none; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: #64877e; box-shadow: 0 0 0 3px rgba(100,135,126,.12); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.variant-title { display: flex; align-items: center; justify-content: space-between; margin: 25px 0 12px; }
.variant-title strong, .variant-title small { display: block; }
.variant-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.variant-rows { display: grid; gap: 10px; }
.variant-row { display: grid; grid-template-columns: 1.05fr 1fr 1.05fr .7fr 1.15fr .78fr .78fr 34px; gap: 8px; align-items: end; padding: 12px; background: #f5f2ea; border-radius: 12px; }
.variant-row label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; }
.variant-row input, .variant-row select { width: 100%; min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 11px; }
.remove-variant { width: 32px; height: 32px; border: 0; border-radius: 8px; color: #a3483c; background: #f7e6e2; }
.hidden { display: none !important; }

.toast { position: fixed; right: 25px; bottom: 25px; z-index: 99; max-width: 360px; padding: 13px 17px; border-radius: 11px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: 12px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: none; opacity: 1; }
.toast.error { background: #a7433c; }

@media (max-width: 1100px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .span-2 { grid-column: auto; }
  .system-grid { grid-template-columns: 1fr; }
  .system-grid .span-2 { grid-column: auto; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr .6fr; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; inset: auto 0 0; height: auto; padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); z-index: 20; }
  .brand, .sidebar-foot { display: none; }
  .nav { grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .nav-item { display: grid; place-items: center; gap: 2px; padding: 7px 2px; font-size: 9px; text-align: center; }
  .nav-item span { width: auto; font-size: 16px; }
  .nav-item.active { box-shadow: inset 0 2px 0 var(--mint); }
  .main { padding: 23px 15px 95px; }
  .topbar { align-items: flex-start; gap: 15px; }
  .top-actions .date-chip { display: none; }
  .top-actions .primary { padding: 9px 10px; font-size: 11px; }
  .hero-card { grid-template-columns: 1fr; min-height: 385px; padding: 29px 25px; }
  .hero-card h2 { font-size: 38px; }
  .hero-visual { position: absolute; right: 0; bottom: 0; width: 220px; height: 130px; min-height: 0; opacity: .55; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric { padding: 16px; }
  .metric strong { font-size: 28px; }
  .operation-cards { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .page-toolbar { align-items: stretch; flex-direction: column; }
  .search-box { max-width: none; }
  .pda-shell { padding: 24px 16px; border-radius: 18px; }
  .pda-top { display: block; }
  .pda-online { margin-top: 16px; }
  .scan-locations { grid-template-columns: 1fr; }
  .scan-box { gap: 6px; padding-left: 11px; }
  .scan-box input { font-size: 13px; }
  .scan-box button { padding-inline: 13px; }
  .integration-card { padding: 28px 22px; }
  .auth-screen { grid-template-columns: 1fr; padding: 20px; }
  .auth-art { display: none; }
  .auth-card { width: min(430px, 100%); padding: 32px 24px; }
  .auth-brand { margin-bottom: 38px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .variant-row { grid-template-columns: 1fr 1fr; }
  .variant-row .remove-variant { grid-column: 2; justify-self: end; }
}

@media print {
  .sidebar, .topbar, .page:not(.active), button { display: none !important; }
  .app-shell { display: block; }
  .main { padding: 0; }
  .panel { border: 0; box-shadow: none; }
}
