[v-cloak] { display: none; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, "Microsoft YaHei", sans-serif; background: #071126; color: #dcecff; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at 70% 20%, rgba(17, 117, 221, .28), transparent 32%), #061126; }
.login-panel { width: min(420px, calc(100vw - 32px)); padding: 32px; border: 1px solid rgba(58, 160, 255, .55); border-radius: 8px; background: rgba(8, 28, 58, .94); box-shadow: 0 20px 70px rgba(0,0,0,.38); }
.brand-mark { color: #3bd5ff; font-weight: 700; margin-bottom: 16px; }
h1, h2 { margin: 0; letter-spacing: 0; }
.login-panel h1 { font-size: 26px; }
.login-panel p, .topbar p, .import-panel p { color: #8eabc9; }
label { color: #a9c6e9; }
input, select, textarea { width: 100%; min-height: 38px; padding: 0 11px; border: 1px solid #244e7d; border-radius: 6px; background: #081c38; color: #eaf5ff; outline: none; }
textarea { padding-top: 9px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #2bc8ff; box-shadow: 0 0 0 3px rgba(43, 200, 255, .12); }
.login-panel label { display: block; margin: 16px 0 6px; }
.primary { border: 0; border-radius: 6px; min-height: 38px; padding: 0 16px; background: #31d0ff; color: #041a32; font-weight: 700; }
.wide { width: 100%; margin-top: 20px; }
.muted { color: #8eabc9 !important; }
.install-link { display: inline-block; margin-top: 14px; color: #8edfff; text-decoration: none; }
.form-error { margin-top: 12px; color: #ffb4b4; }
.app-shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.app-shell.screening { display: block; }
.app-shell.screening .main { padding: 0; }
.sidebar { padding: 18px 14px; border-right: 1px solid rgba(55, 142, 235, .24); background: #071a36; }
.logo { height: 46px; display: flex; align-items: center; color: #46d7ff; font-size: 20px; font-weight: 800; }
.sidebar button { width: 100%; height: 38px; margin: 5px 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #c8dfff; text-align: left; padding: 0 12px; }
.sidebar button:hover, .sidebar button.active { border-color: rgba(63, 184, 255, .35); background: rgba(38, 139, 229, .18); color: #fff; }
.main { min-width: 0; padding: 22px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.topbar h1 { font-size: 24px; }
.topbar p { margin: 6px 0 0; }
.user-pill { border: 1px solid rgba(72, 174, 255, .35); border-radius: 999px; padding: 8px 12px; color: #b9d9ff; background: rgba(12, 41, 82, .72); white-space: nowrap; }
.page-grid { display: grid; grid-template-columns: minmax(660px, 1.45fr) minmax(210px, .38fr) minmax(300px, .52fr); gap: 14px; }
.dashboard-screen { position: relative; overflow: hidden; padding: 2px; }
.dashboard-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(64, 179, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(64, 179, 255, .05) 1px, transparent 1px), radial-gradient(circle at 18% 82%, rgba(33, 205, 255, .18), transparent 26%), radial-gradient(circle at 72% 24%, rgba(42, 167, 255, .16), transparent 28%); background-size: 72px 72px, 72px 72px, auto, auto; opacity: .9; }
.kpi-row { position: relative; z-index: 1; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi, .panel, .edit-card { border: 1px solid rgba(52, 135, 224, .36); border-radius: 8px; background: rgba(8, 28, 58, .78); box-shadow: inset 0 1px 0 rgba(111, 195, 255, .08); }
.kpi { position: relative; min-height: 72px; padding: 14px 16px 14px 74px; display: flex; align-items: center; gap: 6px; overflow: hidden; background: linear-gradient(110deg, rgba(12, 39, 76, .92), rgba(9, 27, 56, .86) 48%, rgba(14, 72, 115, .82)); border-color: rgba(72, 203, 255, .68); box-shadow: 0 0 0 1px rgba(54, 199, 255, .13) inset, 0 0 22px rgba(21, 186, 255, .22), inset 0 -18px 36px rgba(36, 212, 255, .08); }
.kpi::before { content: ""; position: absolute; inset: -40% -8% auto 38%; height: 120%; background: radial-gradient(circle, rgba(78, 234, 255, .44), transparent 54%); filter: blur(18px); opacity: .55; }
.kpi i { position: absolute; left: 18px; top: 50%; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; transform: translateY(-50%); color: #dffaff; font-style: normal; font-weight: 800; font-size: 15px; background: radial-gradient(circle at 34% 28%, #74f7ff, #1589bd 54%, #16355f); border: 1px solid rgba(120, 231, 255, .62); box-shadow: 0 0 18px rgba(32, 205, 255, .36), inset 0 0 14px rgba(255,255,255,.24); }
.kpi.profit i { color: #fff4c9; background: radial-gradient(circle at 34% 28%, #ffe49a, #9a7a35 56%, #2f3550); border-color: rgba(255, 218, 120, .64); }
.kpi span, .screen-card span { color: #f0f7ff; font-weight: 700; white-space: nowrap; }
.kpi strong { position: relative; z-index: 1; margin-left: 2px; color: #ffe5a3; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.panel { padding: 16px; min-width: 0; }
.panel h2, .edit-card h2 { font-size: 17px; margin-bottom: 14px; }
.dashboard-panel { position: relative; z-index: 1; border-radius: 5px; border-color: rgba(80, 205, 255, .72); background: linear-gradient(145deg, rgba(5, 19, 42, .9), rgba(7, 35, 66, .8)); box-shadow: 0 0 0 1px rgba(48, 196, 255, .15) inset, 0 0 26px rgba(24, 194, 255, .16); }
.dashboard-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(75, 223, 255, .2), transparent) 0 0 / 100% 1px no-repeat, linear-gradient(90deg, transparent, rgba(75, 223, 255, .14), transparent) 0 100% / 100% 1px no-repeat; }
.map-panel { min-height: 500px; padding: 0; overflow: hidden; }
.wide-panel { grid-column: 1 / -1; }
.chart { width: 100%; height: 500px; }
.map-tools { position: absolute; z-index: 3; top: 12px; right: 14px; display: flex; gap: 4px; padding: 4px; border: 1px solid rgba(54, 186, 255, .42); border-radius: 5px; background: rgba(7, 24, 50, .78); }
.map-tools button, .rank-head button { min-height: 26px; padding: 0 9px; border: 0; border-radius: 4px; background: transparent; color: #8ebee1; font-size: 12px; }
.map-tools button.active, .rank-head button.active { color: #4df2ff; background: rgba(47, 199, 255, .16); }
.rank-panel { display: flex; flex-direction: column; gap: 10px; padding: 12px; height: 500px; min-height: 500px; overflow: hidden; }
.dashboard-transport-panel { display: flex; flex-direction: column; height: 500px; min-height: 500px; overflow: hidden; }
.dashboard-warning-panel { display: flex; flex-direction: column; height: 500px; min-height: 500px; overflow: hidden; }
.dashboard-warning-panel .screen-warning-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.dashboard-warning-panel .screen-warning-empty { min-height: 420px; }
.dashboard-stock-list { flex: 1 1 auto; min-height: 0; display: grid; align-content: start; gap: 7px; overflow: hidden; padding-right: 0; scrollbar-color: rgba(81, 227, 255, .62) rgba(14, 46, 85, .42); scrollbar-width: thin; }
.dashboard-stock-list::-webkit-scrollbar { width: 6px; }
.dashboard-stock-list::-webkit-scrollbar-thumb { background: rgba(81, 227, 255, .62); border-radius: 999px; }
.dashboard-stock-list::-webkit-scrollbar-track { background: rgba(14, 46, 85, .42); border-radius: 999px; }
.dashboard-stock-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border: 1px solid rgba(53, 130, 214, .32); border-radius: 5px; background: linear-gradient(90deg, rgba(13, 57, 103, .72), rgba(7, 24, 50, .66)); }
.dashboard-stock-row span { color: #fff3f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-stock-row strong { min-height: 24px; display: grid; place-items: center; border-radius: 4px; color: #51e3ff; background: rgba(27, 83, 124, .45); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dashboard-stock-row strong.low-stock-cell { color: #fff; background: rgba(220, 38, 38, .88); box-shadow: 0 0 14px rgba(255, 64, 64, .28); }
.dashboard-transport-wrap { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 4px; scrollbar-color: rgba(81, 227, 255, .62) rgba(14, 46, 85, .42); scrollbar-width: thin; }
.dashboard-transport-wrap::-webkit-scrollbar { width: 6px; height: 6px; }
.dashboard-transport-wrap::-webkit-scrollbar-thumb { background: rgba(81, 227, 255, .62); border-radius: 999px; }
.dashboard-transport-wrap::-webkit-scrollbar-track { background: rgba(14, 46, 85, .42); border-radius: 999px; }
.dashboard-transport-table { min-width: 860px; border-collapse: separate; border-spacing: 0 8px; }
.dashboard-transport-table th, .dashboard-transport-table td { padding: 8px 10px; border: 0; text-align: left; white-space: nowrap; }
.dashboard-transport-table th { position: sticky; top: 0; z-index: 1; color: #83bddf; background: rgba(8, 35, 68, .96); font-size: 12px; }
.dashboard-transport-table td { color: #eef8ff; background: rgba(10, 45, 82, .72); font-size: 12px; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.dashboard-transport-table tbody tr td:first-child { border-radius: 5px 0 0 5px; color: #51e3ff; font-weight: 700; }
.dashboard-transport-table tbody tr td:last-child { border-radius: 0 5px 5px 0; }
.rank-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(57, 196, 255, .22); padding-bottom: 8px; }
.rank-head h2 { margin: 0; color: #eef8ff; font-size: 16px; white-space: nowrap; }
.rank-head div { display: flex; gap: 4px; border: 1px solid rgba(64, 188, 255, .28); border-radius: 5px; padding: 2px; }
.rank-tabs { display: grid; grid-template-columns: 38px minmax(88px, 1fr) minmax(92px, .9fr); gap: 6px; padding: 8px 10px; border: 1px solid rgba(55, 179, 255, .32); border-radius: 4px; background: rgba(8, 35, 68, .72); color: #83bddf; font-size: 12px; white-space: nowrap; }
.rank-board { flex: 1 1 auto; min-height: 0; display: grid; gap: 8px; overflow-y: auto; padding-right: 6px; scrollbar-color: rgba(81, 227, 255, .62) rgba(14, 46, 85, .42); scrollbar-width: thin; }
.rank-board::-webkit-scrollbar { width: 6px; }
.rank-board::-webkit-scrollbar-thumb { background: rgba(81, 227, 255, .62); border-radius: 999px; }
.rank-board::-webkit-scrollbar-track { background: rgba(14, 46, 85, .42); border-radius: 999px; }
.rank-card { display: grid; grid-template-columns: 38px minmax(88px, 1fr) minmax(92px, .9fr); gap: 6px; align-items: center; min-height: 46px; padding: 7px 10px; border: 1px solid rgba(58, 145, 224, .36); border-radius: 5px; background: linear-gradient(90deg, rgba(10, 45, 82, .88), rgba(8, 25, 52, .84)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.rank-card b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 4px; color: #eaf5ff; background: rgba(121, 158, 187, .3); font-size: 14px; }
.rank-card strong { color: #f6fbff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-card span { color: #51e3ff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-card.rank-1 { border-color: rgba(255, 204, 93, .55); background: linear-gradient(90deg, rgba(111, 82, 27, .82), rgba(9, 41, 71, .86)); }
.rank-card.rank-2 { border-color: rgba(196, 220, 246, .45); }
.rank-card.rank-3 { border-color: rgba(222, 154, 99, .48); }
.rank-card.rank-1 b { background: linear-gradient(135deg, #ffe695, #ad771c); color: #14223a; }
.rank-card.rank-2 b { background: linear-gradient(135deg, #f0f7ff, #7e9bb3); color: #14223a; }
.rank-card.rank-3 b { background: linear-gradient(135deg, #ffc596, #93552d); color: #14223a; }
.rank-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(111, 178, 241, .12); }
.rank-index { color: #ffd253; font-weight: 800; }
.rank-name { color: #e7f4ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-value { color: #34e2ff; font-weight: 700; }
.data-wrap { width: 100%; overflow: auto; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.toolbar-title h2 { margin: 0; color: #eef8ff; font-size: 17px; }
.toolbar-title span { display: block; margin-top: 4px; color: #8eabc9; font-size: 13px; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; min-width: min(100%, 560px); }
.toolbar-actions input { min-width: 260px; }
.toolbar-actions .primary, .toolbar-actions .secondary { white-space: nowrap; }
.purchase-search-toolbar { align-items: flex-start; }
.purchase-filter-grid { flex: 1; min-width: min(100%, 900px); display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)) auto; gap: 8px; align-items: center; }
.purchase-filter-grid input, .purchase-filter-grid select { min-width: 0; }
.batch-filter-grid { flex: 1; min-width: min(100%, 1080px); display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: 8px; align-items: center; }
.batch-filter-grid input, .batch-filter-grid select { min-width: 0; }
.batch-filter-grid .purchase-filter-actions { grid-column: span 2; }
.purchase-filter-actions { display: flex; align-items: center; gap: 8px; }
.purchase-filter-actions .layui-btn { white-space: nowrap; }
.table-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px; border: 1px solid #f0f0f0; border-radius: 2px; background: #fafafa; color: #666; }
.pagination-actions { display: flex; align-items: center; gap: 8px; }
.pagination-actions select { width: auto; min-width: 92px; }
.pagination-actions .secondary { min-height: 34px; padding: 0 12px; }
.pagination-actions .secondary[disabled] { opacity: .45; cursor: not-allowed; }
.page-count { min-width: 58px; text-align: center; color: #333; font-variant-numeric: tabular-nums; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 10px 11px; border-bottom: 1px solid rgba(111, 178, 241, .13); text-align: left; white-space: nowrap; }
th { color: #8bbbe7; font-weight: 700; background: rgba(19, 65, 116, .42); }
td { color: #d8eaff; }
.link-btn { border: 0; background: transparent; color: #3bd5ff; padding: 0; }
.link-btn.danger { color: #ff9f9f; }
.table-actions { display: flex; gap: 10px; align-items: center; }
.empty-cell { text-align: center; color: #8eabc9; }
.summary-row td { color: #ffe1a6; font-weight: 700; background: rgba(255, 184, 0, .08); }
.workbench { display: grid; gap: 16px; }
.edit-card { padding: 16px; }
.edit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.edit-actions { display: flex; gap: 8px; }
.secondary { min-height: 38px; padding: 0 14px; border: 1px solid #315d8b; border-radius: 6px; color: #cfe7ff; background: #0b2446; }
.form-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; }
.alias-input { grid-column: 1 / -1; min-height: 78px; }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; }
.upload-grid label { display: grid; gap: 8px; padding: 18px; border: 1px dashed rgba(69, 173, 255, .55); border-radius: 8px; background: rgba(7, 30, 64, .66); }
.notice { margin-top: 16px; color: #7ff0bd; }
.profit-period-tabs { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #f0f0f0; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.profit-period-tabs .layui-btn { border-color: #d2d2d2; background: #fff; color: #333; }
.profit-period-tabs .layui-btn.active { border-color: #16baaa; background: #16baaa; color: #fff; }
.batch-profit-tabs { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; padding: 10px 12px; border: 1px solid #f0f0f0; border-bottom: 0; border-radius: 2px 2px 0 0; background: #fff; }
.batch-profit-tabs .layui-btn { min-height: 34px; border-color: #d2d2d2; background: #fff; color: #333; }
.batch-profit-tabs .layui-btn.active { border-color: #16baaa; background: #16baaa; color: #fff; }
.profit-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.profit-card { min-height: 92px; padding: 16px; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); border-left: 4px solid #16baaa; }
.profit-card span { display: block; color: #8c8c8c; font-size: 13px; }
.profit-card strong { display: block; margin-top: 12px; color: #1f2329; font-size: 24px; line-height: 1; font-weight: 700; font-variant-numeric: tabular-nums; }
.profit-card.emphasis { border-left-color: #ffb800; }
.profit-card.emphasis strong { color: #d48806; }

.app-shell:not(.screening) { background: #f2f2f2; color: #333; }
.app-shell:not(.screening) .sidebar { background: #20222a; border-right: 0; box-shadow: 2px 0 8px rgba(0,0,0,.12); }
.app-shell:not(.screening) .logo { color: #fff; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; }
.app-shell:not(.screening) .sidebar .layui-btn { display: flex; align-items: center; justify-content: flex-start; margin: 6px 0; height: 40px; border: 0; border-radius: 2px; background: transparent; color: rgba(255,255,255,.76); text-align: left; text-decoration: none; }
.app-shell:not(.screening) .sidebar .layui-btn:hover, .app-shell:not(.screening) .sidebar .layui-btn.active { background: #16baaa; color: #fff; }
.app-shell:not(.screening) .sidebar .layui-btn.muted { color: rgba(255,255,255,.58) !important; }
.app-shell:not(.screening) .main { background: #f2f2f2; }
.app-shell:not(.screening) .topbar { margin-bottom: 16px; padding: 16px 18px; border-radius: 2px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.app-shell:not(.screening) .topbar h1 { color: #1f2329; font-size: 22px; font-weight: 600; }
.app-shell:not(.screening) .topbar p { color: #8c8c8c; }
.app-shell:not(.screening) .user-pill { border-color: #e6e6e6; background: #fafafa; color: #666; }
.workbench .panel, .workbench .edit-card { border: 0; border-radius: 2px; background: #fff; color: #333; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.workbench .panel { padding: 16px; }
.workbench .panel h2, .workbench .edit-card h2 { color: #1f2329; font-size: 16px; font-weight: 600; }
.workbench .edit-card { padding: 0; }
.workbench .edit-card-head { min-height: 52px; margin: 0; border-bottom: 1px solid #f0f0f0; }
.workbench .edit-card-head h2 { margin: 0; }
.workbench .layui-card-body { padding: 16px; }
.workbench input:not([type=file]), .workbench select, .workbench textarea, .toolbar-actions input { min-height: 38px; border: 1px solid #e6e6e6; border-radius: 2px; background: #fff; color: #333; }
.workbench input:focus, .workbench select:focus, .workbench textarea:focus, .toolbar-actions input:focus { border-color: #16baaa; box-shadow: 0 0 0 3px rgba(22, 186, 170, .1); }
.workbench input:disabled { color: #999; background: #f7f7f7; cursor: not-allowed; }
.workbench .table-toolbar { padding: 12px 14px; border: 1px solid #f0f0f0; border-radius: 2px; background: #fafafa; }
.workbench .toolbar-title h2 { color: #1f2329; }
.workbench .toolbar-title span { color: #8c8c8c; }
.workbench .layui-table { margin: 0; color: #333; }
.workbench .layui-table th { color: #333; background: #fafafa; font-weight: 600; }
.workbench .layui-table td { color: #333; }
.workbench .layui-table .summary-row td { color: #8a5a00; background: #fff8e6; font-weight: 600; }
.workbench .table-actions { gap: 6px; }
.workbench .empty-cell { color: #999; }
.primary.layui-btn, .workbench .primary.layui-btn { border-color: #16baaa; background: #16baaa; color: #fff; }
.secondary.layui-btn-primary, .workbench .secondary.layui-btn-primary { border-color: #d2d2d2; background: #fff; color: #333; }
.layui-layer { color: #333; }
.layui-layer input,
.layui-layer textarea,
.layui-layer .layui-layer-input {
  background: #fff !important;
  color: #333 !important;
  border-color: #d2d2d2 !important;
  box-shadow: none !important;
}
.layui-layer input:focus,
.layui-layer textarea:focus,
.layui-layer .layui-layer-input:focus {
  border-color: #16baaa !important;
  box-shadow: 0 0 0 3px rgba(22, 186, 170, .1) !important;
}

.big-screen { position: relative; height: 100vh; min-height: 0; display: grid; grid-template-columns: 380px minmax(0, 1fr); grid-template-rows: 84px minmax(0, 1fr); gap: 14px; padding: 16px; background: radial-gradient(circle at 78% 20%, rgba(18, 171, 255, .24), transparent 28%), radial-gradient(circle at 18% 84%, rgba(217, 119, 6, .15), transparent 24%), linear-gradient(135deg, #020817 0%, #061326 48%, #020617 100%); overflow: hidden; }
.big-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(79, 213, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 213, 255, .045) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle at 62% 48%, #000 0, transparent 72%); }
.big-screen::after { content: ""; position: absolute; left: -20%; right: -20%; top: 0; height: 140px; pointer-events: none; background: linear-gradient(180deg, rgba(76, 220, 255, .18), transparent); animation: screenScan 5.5s ease-in-out infinite; }
.screen-top { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: 150px minmax(0, 1fr) 210px; align-items: center; gap: 16px; min-height: 68px; padding: 10px 16px; border: 1px solid rgba(67, 211, 255, .5); border-radius: 6px; background: linear-gradient(90deg, rgba(4, 16, 35, .88), rgba(7, 40, 70, .74), rgba(4, 16, 35, .88)); box-shadow: 0 0 34px rgba(24, 194, 255, .16), inset 0 0 24px rgba(47, 199, 255, .08); }
.screen-title { text-align: center; color: #eaf8ff; }
.screen-title span { display: block; color: #51e3ff; font-size: 12px; font-weight: 700; letter-spacing: 0; }
.screen-title strong { display: block; margin-top: 2px; font-size: 30px; font-weight: 900; text-shadow: 0 0 18px rgba(73, 222, 255, .42); }
.screen-clock { justify-self: end; color: #ffe0a3; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.screen-brand { color: #8edfff; font-size: 14px; font-weight: 800; white-space: nowrap; }
.screen-back { min-height: 38px; border: 1px solid rgba(83, 206, 255, .58); background: rgba(10, 45, 92, .72); color: #dff4ff; border-radius: 5px; padding: 0 16px; box-shadow: inset 0 0 14px rgba(71, 214, 255, .12); transition: background .2s ease, border-color .2s ease; }
.screen-back:hover { border-color: rgba(255, 218, 120, .7); background: rgba(16, 64, 116, .9); }
.screen-left { position: relative; z-index: 1; grid-row: 2; display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 0; overflow: hidden; }
.screen-card { position: relative; overflow: hidden; padding: 16px; min-height: 98px; border: 1px solid rgba(64, 188, 255, .46); border-radius: 6px; background: linear-gradient(140deg, rgba(10, 43, 82, .86), rgba(4, 17, 38, .92)); box-shadow: 0 0 0 1px rgba(75, 223, 255, .08) inset, 0 16px 36px rgba(0,0,0,.22); }
.screen-card::before { content: ""; position: absolute; inset: -60% -20% auto 34%; height: 130%; background: radial-gradient(circle, rgba(76, 220, 255, .36), transparent 55%); filter: blur(18px); opacity: .75; }
.screen-card span { position: relative; z-index: 1; display: block; color: #bcecff; font-size: 14px; font-weight: 700; }
.screen-card strong { position: relative; z-index: 1; display: block; margin-top: 12px; color: #55efff; font-size: 32px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(78, 234, 255, .34); white-space: nowrap; }
.screen-card small { position: relative; z-index: 1; display: block; margin-top: 12px; color: #709bc0; font-size: 11px; font-weight: 700; }
.screen-card.primary-card { min-height: 142px; border-color: rgba(255, 202, 91, .55); background: linear-gradient(140deg, rgba(45, 39, 38, .9), rgba(8, 35, 68, .9)); }
.screen-card.primary-card strong { color: #ffd56d; font-size: 42px; text-shadow: 0 0 22px rgba(255, 183, 74, .36); }
.screen-card.profit strong { color: #ffd56d; }
.screen-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.screen-metric-grid .screen-card { min-height: 110px; }
.screen-metric-grid .screen-card strong { font-size: 24px; }
.screen-side-panel { min-height: 0; padding: 14px; border: 1px solid rgba(64, 188, 255, .46); border-radius: 6px; background: rgba(4, 17, 38, .82); box-shadow: inset 0 0 28px rgba(30, 144, 255, .1); }
.screen-rank-panel { flex: 0 0 auto; }
.screen-warning-panel { flex: 1 1 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.screen-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid rgba(76, 220, 255, .24); color: #eaf8ff; font-weight: 800; }
.screen-panel-head b { color: #51e3ff; font-size: 12px; }
.screen-panel-head.warning b { color: #ff8888; }
.screen-rank-list { max-height: 280px; overflow-y: auto; padding-right: 6px; scrollbar-color: rgba(81, 227, 255, .62) rgba(14, 46, 85, .42); scrollbar-width: thin; }
.screen-rank-list::-webkit-scrollbar, .screen-warning-list::-webkit-scrollbar { width: 6px; }
.screen-rank-list::-webkit-scrollbar-thumb, .screen-warning-list::-webkit-scrollbar-thumb { background: rgba(81, 227, 255, .62); border-radius: 999px; }
.screen-rank-list::-webkit-scrollbar-track, .screen-warning-list::-webkit-scrollbar-track { background: rgba(14, 46, 85, .42); border-radius: 999px; }
.screen-rank { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 40px; margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(53, 130, 214, .32); border-radius: 5px; background: linear-gradient(90deg, rgba(13, 57, 103, .72), rgba(7, 24, 50, .66)); }
.screen-rank b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: rgba(81, 227, 255, .16); color: #eaf8ff; }
.screen-rank:first-of-type b { background: linear-gradient(135deg, #ffe08a, #b77a1a); color: #10233e; }
.screen-rank span { color: #f2fbff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-rank strong { color: #51e3ff; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.screen-warning-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-color: rgba(255, 136, 136, .7) rgba(80, 22, 34, .42); scrollbar-width: thin; }
.screen-warning-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 38px; margin-top: 8px; padding: 8px 10px; border: 1px solid rgba(255, 88, 88, .42); border-radius: 5px; background: linear-gradient(90deg, rgba(101, 22, 34, .72), rgba(42, 13, 28, .64)); }
.screen-warning-row span { color: #fff3f3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen-warning-row strong { color: #ff9a9a; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.screen-warning-empty { flex: 1 1 auto; display: grid; place-items: center; min-height: 0; color: #7fb7d8; font-weight: 700; }
.screen-right { position: relative; z-index: 1; grid-row: 2; display: grid; grid-template-rows: minmax(0, 1fr) 96px; gap: 14px; min-width: 0; min-height: 0; }
.screen-map-frame { position: relative; min-height: 0; border: 1px solid rgba(82, 213, 255, .58); border-radius: 6px; background: radial-gradient(circle at 58% 48%, transparent 0 27%, rgba(80, 230, 255, .12) 27.2% 27.6%, transparent 27.9% 36%, rgba(255, 209, 102, .1) 36.2% 36.6%, transparent 36.9% 48%, rgba(80, 230, 255, .08) 48.2% 48.5%, transparent 48.8%), radial-gradient(circle at 58% 48%, rgba(70, 213, 255, .25), transparent 42%), linear-gradient(135deg, rgba(2, 12, 31, .92), rgba(3, 26, 55, .76)); box-shadow: 0 0 48px rgba(24, 194, 255, .2), inset 0 0 42px rgba(47, 199, 255, .08); overflow: hidden; }
.screen-map-frame > .screen-map::after { content: ""; position: absolute; inset: 12%; pointer-events: none; background: conic-gradient(from 80deg, transparent, rgba(83, 232, 255, .2), transparent 18%, transparent); border-radius: 50%; opacity: .72; animation: radarSweep 7s linear infinite; }
.screen-map-frame::before, .screen-map-frame::after { content: ""; position: absolute; width: 86px; height: 86px; pointer-events: none; border-color: #64e8ff; opacity: .85; }
.screen-map-frame::before { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; }
.screen-map-frame::after { right: 12px; bottom: 12px; border-right: 2px solid; border-bottom: 2px solid; }
.screen-map { position: relative; z-index: 1; width: 100%; height: 100%; min-height: 520px; }
.screen-bottom { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.screen-bottom article { min-width: 0; padding: 14px 16px; border: 1px solid rgba(64, 188, 255, .42); border-radius: 6px; background: linear-gradient(135deg, rgba(7, 31, 62, .86), rgba(5, 16, 34, .9)); box-shadow: inset 0 0 18px rgba(61, 205, 255, .08); }
.screen-bottom span { display: block; color: #9fc6f0; font-size: 13px; }
.screen-bottom strong { display: block; margin-top: 8px; color: #f6fbff; font-size: 24px; line-height: 1; font-weight: 900; font-variant-numeric: tabular-nums; }
.screen-bottom .screen-channel-box { padding: 12px 14px; }
.screen-bottom .screen-channel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; row-gap: 5px; margin-top: 7px; }
.screen-bottom .screen-channel-list strong { min-width: 0; margin-top: 0; color: #35f28b; font-size: 13px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes screenScan {
    0%, 100% { transform: translateY(-120px); opacity: .08; }
    50% { transform: translateY(80vh); opacity: .28; }
}
@keyframes radarSweep {
    to { transform: rotate(360deg); }
}
@media (max-width: 1100px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow: auto; border-right: 0; border-bottom: 1px solid rgba(55, 142, 235, .24); }
    .logo { min-width: 110px; }
    .sidebar button { min-width: 100px; text-align: center; }
    .page-grid { grid-template-columns: 1fr; }
    .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
    .big-screen { min-height: auto; overflow: auto; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .screen-top { grid-template-columns: 120px 1fr; }
    .screen-clock { grid-column: 1 / -1; justify-self: center; }
    .screen-left, .screen-right { grid-row: auto; }
    .screen-map { height: 58vh; min-height: 420px; }
    .screen-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .main { padding: 14px; }
    .topbar { align-items: flex-start; flex-direction: column; }
    .kpi-row, .form-grid, .upload-grid { grid-template-columns: 1fr; }
    .chart { height: 360px; }
    .kpi { min-height: 66px; padding-left: 68px; }
    .kpi strong { font-size: 16px; }
    .map-panel, .rank-panel, .dashboard-warning-panel { height: auto; min-height: auto; }
    .rank-tabs, .rank-card { min-width: 320px; }
    .table-toolbar, .toolbar-actions { align-items: stretch; flex-direction: column; }
    .toolbar-actions { min-width: 0; }
    .toolbar-actions input { min-width: 0; }
    .purchase-filter-grid, .batch-filter-grid { grid-template-columns: 1fr; min-width: 0; width: 100%; }
    .batch-filter-grid .purchase-filter-actions { grid-column: auto; }
    .purchase-filter-actions { align-items: stretch; flex-direction: column; }
    .table-pagination, .pagination-actions { align-items: stretch; flex-direction: column; }
    .pagination-actions select { width: 100%; }
    .page-count { min-width: 0; }
    .profit-summary-grid { grid-template-columns: 1fr; }
    .big-screen { padding: 10px; gap: 10px; }
    .screen-top { grid-template-columns: 1fr; text-align: center; }
    .screen-title strong { font-size: 22px; }
    .screen-back, .screen-clock { justify-self: stretch; }
    .screen-metric-grid, .screen-bottom { grid-template-columns: 1fr; }
    .screen-card.primary-card strong { font-size: 32px; }
    .screen-map { min-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
    .big-screen::after { animation: none; }
    .screen-map-frame > .screen-map::after { animation: none; }
    .screen-back { transition: none; }
}
.show-page { overflow: hidden; }
.show-page .big-screen { height: 100vh; min-height: 0; overflow: hidden; }
.show-page .screen-left, .show-page .screen-right { min-height: 0; overflow: hidden; }
.show-page .screen-warning-panel { min-height: 0; overflow: hidden; }
.show-page .screen-warning-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
