:root {
  color-scheme: light;
  --ink: #20252e;
  --muted: #5d6673;
  --paper: #f6f7f9;
  --white: #fff;
  --line: #e3e6eb;
  --line-strong: #d6dbe3;
  --surface: #f6f8fa;
  --accent: #145dcc;
  --accent-hover: #104ead;
  --accent-soft: #ebf3ff;
  --dark: #232833;
  --focus: #226bdd;
  --panel-shadow: 0 2px 5px #17233708;
  font-family: "Segoe UI","PingFang SC","Microsoft YaHei UI",system-ui,sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
}
*,*::before,*::after{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--focus);outline-offset:3px}
.shell{width:min(1240px,calc(100% - 64px));margin:0 auto}.brand{display:inline-flex;align-items:center;gap:11px;font-weight:800;font-size:16px}.brand div{display:flex;align-items:center;gap:12px}.brand div span{display:block;padding-left:12px;border-left:1px solid var(--line);color:var(--muted);font-size:13px;font-weight:500}.brand-icon{position:relative;width:34px;height:34px;flex:none;border-radius:10px;background:var(--accent)}.brand-icon::before,.brand-icon::after{content:"";position:absolute;width:13px;height:12px;border:1.6px solid var(--white);border-radius:3px;left:13px;top:8px}.brand-icon::after{top:13px;left:8px;background:var(--accent);background-image:linear-gradient(var(--white),var(--white));background-size:100% 1px;background-position:0 2px;background-repeat:no-repeat}
.main{padding:39px 0 60px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}h1,h2,p{margin:0}h1{font-size:clamp(29px,4vw,42px);line-height:1.2;letter-spacing:-.035em;font-weight:800}h2{font-size:23px;line-height:1.25;font-weight:800}.button{border:1px solid var(--line);border-radius:9px;min-height:40px;padding:0 14px;display:inline-flex;align-items:center;justify-content:center;gap:5px;white-space:nowrap;color:var(--ink);background:var(--white);font-weight:700}.button:hover{border-color:#b8c8dd}.button.ghost{background:transparent}.button.primary{background:var(--accent);border-color:var(--accent);color:var(--white)}.button.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.page-heading .primary{min-height:44px;padding:0 17px}
.metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:27px}.metric{min-height:109px;display:flex;flex-direction:column;justify-content:space-between;padding:17px 18px 15px;border-radius:13px;border:1px solid var(--line);background:var(--white);min-width:0}.metric:hover{border-color:#b8c8dd}.metric>span{display:flex;align-items:center;gap:7px;color:var(--muted);font-weight:650}.metric strong{font-size:34px;font-weight:790;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.metric-main{background:var(--accent-soft);border-color:#d6e5fb}.metric-main strong{color:var(--accent)}.state-dot{width:7px;height:7px;border-radius:50%;display:inline-block;background:#869580;flex:none}.state-dot.active{background:#58914f}.state-dot.expired{background:#ae7430}.state-dot.disabled{background:#a35a60}
.inventory{border:1px solid var(--line);background:var(--white);border-radius:14px;overflow:hidden}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px}.filters{display:flex;gap:8px;min-width:0;flex:1}.filters input,.filters select,.stack input{border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--ink);height:42px;padding:0 12px;min-width:0}.filters select{max-width:125px;flex:none}.search{display:flex;align-items:center;flex:1;max-width:380px;min-width:130px;position:relative}.search input{width:100%;padding-left:33px}.search span{position:absolute;left:12px;width:11px;height:11px;border:1.5px solid var(--muted);border-radius:50%;pointer-events:none}.search span::after{position:absolute;content:"";width:6px;height:1px;background:var(--muted);transform:rotate(46deg);left:7px;top:8px}.batch-view{padding:0 15px 13px;color:var(--muted);display:flex;gap:14px}.batch-view a,.text-button{color:var(--accent);font-weight:700}.batch-view a:hover,.text-button:hover{text-decoration:underline}
table{border-collapse:collapse;width:100%;font-size:13px;text-align:left}th{background:var(--surface);color:var(--muted);font-weight:700;white-space:nowrap}th,td{padding:14px 11px;border-top:1px solid var(--line);vertical-align:middle}td:first-child,th:first-child{padding-left:15px}td:last-child,th:last-child{padding-right:15px}td{line-height:1.45}td small,.memo{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:3px;overflow-wrap:anywhere}.code-row{display:flex;align-items:center;gap:7px}.code-row code{font-family:Consolas,"SF Mono",monospace;font-size:12px;letter-spacing:-.025em;overflow-wrap:anywhere}.badge{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border-radius:20px;background:#eef1f5;color:#4e5a69;white-space:nowrap}.badge.active{background:#e7f1e0;color:#36562e}.badge.expired{background:#f8eedf;color:#764817}.badge.disabled{background:#f6e9e8;color:#743d43}.actions form{display:inline-block}.text-button{border:0;background:none;padding:4px;white-space:nowrap;font-size:12px}.device-count{white-space:nowrap;font-variant-numeric:tabular-nums}time{font-variant-numeric:tabular-nums;color:inherit}.empty{padding:64px 18px;text-align:center;border-top:1px solid var(--line)}.empty strong{font-size:17px}.empty p{color:var(--muted);margin-top:8px}.pagination{border-top:1px solid var(--line);padding:12px 15px;display:flex;justify-content:flex-end;align-items:center;gap:13px;color:var(--muted)}
.notice{background:var(--accent-soft);color:#214b87;border:1px solid #d6e5fb;border-radius:9px;padding:11px 13px;margin:0 0 14px}.notice.error{background:#f7eae5;border-color:#eed8cf;color:#793e31}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);padding:10px 17px;border-radius:8px;background:var(--dark);color:white;z-index:2}
dialog{width:min(440px,calc(100% - 30px));padding:25px;border:1px solid var(--line);border-radius:15px;background:var(--white);color:var(--ink);box-shadow:0 18px 55px #1723372e}dialog::backdrop{background:#18243a5c}.dialog-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:21px}.icon-close{width:33px;height:33px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--muted);font-size:22px;line-height:1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.stack{display:grid;gap:15px}.stack label{display:grid;gap:7px;font-weight:700}.stack input{width:100%;background:var(--white);font-weight:500}.stack small{font-weight:500;color:var(--muted);font-size:12px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:5px}.auth-card{width:min(100%,420px);background:var(--white);border:1px solid var(--line);padding:28px;border-radius:16px}.auth-card h1{font-size:28px;margin:25px 0 18px}.auth-card .button{margin-top:7px}
@media(max-width:900px){.shell{width:calc(100% - 40px)}.metrics{gap:8px}.metric{padding:14px 12px;min-height:95px}.metric strong{font-size:30px}table,tbody,tr,td{display:block}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px;background:var(--surface);border-top:1px solid var(--line)}tbody tr{min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--white);padding:11px}tbody td{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;border:0;padding:5px 0!important;text-align:right}tbody td::before{content:attr(data-label);text-align:left;color:var(--muted);white-space:nowrap;font-weight:600;margin-right:auto}.card-cell{display:block;text-align:left;border-bottom:1px solid var(--line);padding-bottom:9px!important;margin-bottom:4px}.card-cell::before,.actions::before{display:none}.code-row{justify-content:space-between}.actions{justify-content:flex-end;border-top:1px solid var(--line);margin-top:4px;padding:7px 0 0!important}.actions form{display:block}td small{margin:0}td:has(small):not(.card-cell){flex-wrap:wrap}td:has(small):not(.card-cell) small{width:100%;text-align:right}}
@media(max-width:570px){.shell{width:calc(100% - 28px)}.brand div{gap:8px}.brand div span{padding-left:8px;font-size:11px}.main{padding:27px 0 38px}.page-heading{margin-bottom:17px}.page-heading .primary{font-size:13px;min-height:40px;padding:0 12px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin-bottom:16px}.metric{min-height:74px;padding:11px 12px}.metric>span{font-size:12px}.metric-main{grid-column:1/-1;flex-direction:row;align-items:center}.metric strong{font-size:27px}.toolbar{flex-wrap:wrap;padding:11px;gap:8px}.filters{display:grid;grid-template-columns:minmax(0,1fr) 92px auto;flex-basis:100%;gap:6px}.filters select{width:100%;padding:0 6px;font-size:12px}.search{min-width:0}.search input{font-size:12px}.toolbar .button{font-size:12px;padding:0 9px}.toolbar>.export{margin-left:auto;min-height:35px}.batch-view{padding:0 11px 10px;font-size:12px}tbody{grid-template-columns:1fr;gap:8px;padding:8px}.empty{padding:37px 13px}dialog{padding:18px}.auth-card{padding:22px}}

.devices-heading,
.device-details {
  display: flex;
  align-items: center;
  gap: 8px;
}
.expiry-time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sale-cell { max-width: 196px; overflow-wrap: anywhere; }
.sale-cell .sale-price { color: var(--accent); font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.update-form textarea { min-width: 0; width: 100%; resize: vertical; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); padding: 10px 12px; color: var(--ink); font: inherit; font-size: 16px; }
.update-form input[type="file"] { height: auto; min-height: 44px; padding: 9px; }
.update-history { margin: 0; padding: 0; list-style: none; }
.update-history li { display: grid; gap: 6px; padding: 11px 0; border-top: 1px solid var(--line); }
.update-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.update-history time { color: var(--muted); font-size: 12px; }
.update-history p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.badge.refunded { background: #f6e9e8; color: #773746; }
.state-dot.refunded { background: #a34461; }
.detail-sale-fields { min-width: 0; border: 0; padding: 0; margin: 0; }
.transaction-panel { margin-bottom: 15px; scroll-margin-top: 75px; }
.transaction-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.transaction-heading h2 { font-size: 18px; }
.transaction-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 10px; }
.transaction-form { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.transaction-form summary { cursor: pointer; padding: 12px 13px; font-weight: 700; color: var(--accent); }
.transaction-refund summary { color: #963d50; }
.transaction-form .stack { padding: 2px 13px 13px; }
.transaction-form p,.transaction-unavailable { line-height: 1.6; }
.transaction-unavailable { align-self: center; }
.transaction-danger.button { background: #fcf0f2; color: #963d50; border-color: #efd7df; }
.transaction-history { list-style: none; margin: 0; padding: 0; }
.transaction-panel .transaction-history { margin-top: 11px; }
.transaction-history li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 8px; padding: 11px 0; border-top: 1px solid var(--line); }
.transaction-history li > div { min-width: 0; overflow-wrap: anywhere; }
.transaction-history time,.transaction-history small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.transaction-history .text-button { padding: 0; }
.transaction-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.transaction-amount.refund,.revenue-refunds strong { color: #963d50; }
.revenue-filter { margin-bottom: 14px; padding: 0; }
.revenue-metrics strong { overflow-wrap: anywhere; font-size: clamp(21px,2.1vw,30px); }
.revenue-table td,.revenue-table th { white-space: nowrap; }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 15px;
}
.detail-panel {
  min-width: 0;
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.detail-code {
  justify-content: space-between;
  border-radius: 8px;
  padding: 10px;
  background: var(--surface);
}
.card-dates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 20px;
}
.card-dates dt { color: var(--muted); font-size: 12px; }
.card-dates dd { margin: 4px 0 0; font-size: 13px; font-variant-numeric: tabular-nums; }
.devices-heading { justify-content: space-between; flex-wrap: wrap; }
.muted, .device-details, .device-list small { color: var(--muted); }
.device-list { list-style: none; padding: 0; margin: 14px 0; }
.device-list li { padding: 11px 0; border-top: 1px solid var(--line); }
.device-list small { display: block; margin-top: 5px; }
.fingerprint { justify-content: space-between; }
.fingerprint code { min-width: 0; overflow-wrap: anywhere; }
.device-details { margin-top: 7px; font-size: 12px; }
.device-empty { padding: 18px 0; }
dialog { max-height: calc(100dvh - 24px); overflow: auto; }
.stack select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
}
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.activation-help { margin-top: -7px; }

.admin-page .main { padding-top: 25px; }
.ops-heading p { color: var(--muted); margin-top: 8px; line-height: 1.55; }
.ops-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 19px; }
.ops-metric,.ops-panel { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--panel-shadow); }
.ops-metric { display: grid; align-content: start; gap: 9px; min-height: 117px; padding: 15px 17px; }
a.ops-metric:hover { border-color: #bfd3f0; }
.ops-metric span { display: flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 650; }
.ops-metric strong { font-size: clamp(28px,3.2vw,36px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.ops-metric small { color: var(--muted); }
.ops-metric-live strong { color: var(--accent); }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 18px; }
.ops-panel { padding: 20px; }
.ops-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.ops-panel h2 { font-size: 18px; }
.chart-legend { color: var(--muted); display: flex; gap: 11px; font-size: 12px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.chart-legend i { width: 8px; height: 8px; border-radius: 3px; background: #a7c8f8; }
.chart-legend span:last-child i { background: var(--accent); }
.trend-chart { display: grid; gap: 10px; padding: 6px 0 3px; }
.trend-row { display: grid; grid-template-columns: 42px minmax(0,1fr) 68px; align-items: center; gap: 9px; }
.trend-row time,.trend-values { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.trend-values { text-align: right; }
.trend-series { display: grid; gap: 3px; }
.trend-series progress { appearance: none; border: 0; width: 100%; height: 6px; border-radius: 5px; color: #a7c8f8; background: #edf1f6; }
.trend-series progress::-webkit-progress-bar { background: #edf1f6; border-radius: inherit; }
.trend-series progress::-webkit-progress-value { background: #a7c8f8; border-radius: inherit; }
.trend-series progress.activation-bar::-webkit-progress-value { background: var(--accent); }
.trend-series progress::-moz-progress-bar { background: #a7c8f8; border-radius: inherit; }
.trend-series progress.activation-bar::-moz-progress-bar { background: var(--accent); }
.activity-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
.activity-metrics a { display: grid; gap: 5px; padding: 11px 12px; background: var(--surface); border-radius: 9px; }
.activity-metrics a:hover { background: var(--accent-soft); }
.activity-metrics span { color: var(--muted); font-size: 12px; }
.activity-metrics strong { font-size: 25px; font-variant-numeric: tabular-nums; }
.ops-empty,.ops-timezone { color: var(--muted); font-size: 12px; line-height: 1.6; }
.ops-timezone { margin-top: 12px; }
.compact-list { display: grid; }
.compact-list > * { display: flex; justify-content: space-between; align-items: center; gap: 9px; min-height: 37px; border-bottom: 1px solid var(--line); font-size: 12px; overflow-wrap: anywhere; }
.compact-list > :last-child { border-bottom: 0; }
.compact-list time { color: var(--muted); white-space: nowrap; }
.recent-panel { margin-top: 18px; }
.ops-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 15px; }
.ops-filter label { display: grid; gap: 6px; font-size: 12px; font-weight: 650; min-width: 0; }
.ops-filter input,.ops-filter select { width: 100%; min-width: 0; min-height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: 8px; padding: 0 10px; color: var(--ink); font-size: 13px; }
.ops-search { flex: 1 1 200px; max-width: 380px; }
.ops-stack { display: grid; justify-items: start; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.ops-stack small { margin: 0; }
.ops-table time { white-space: nowrap; }
.device-reveal { font-size: 12px; color: var(--muted); }
.device-reveal summary { cursor: pointer; }
.device-reveal code { display: block; max-width: 16ch; margin-top: 4px; overflow-wrap: anywhere; }
.detail-ops { display: flex; gap: 10px; margin: 7px 0 12px; }
.ops-table .text-button,.compact-list .text-button,.detail-ops .text-button { padding: 0; }
@media(max-width:900px) {
  .ops-table .ops-stack { justify-items: end; }
}
@media(max-width:690px) {
  .overview-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ops-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin-bottom: 12px; }
  .ops-metric { min-height: 108px; padding: 12px; }
  .ops-metric small { font-size: 11px; }
  .ops-panel { padding: 13px; }
  .recent-panel { margin-top: 12px; }
}
@media(max-width:460px) {
  .ops-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-filter .button { justify-self: start; }
}

.admin-page {
  --rail-width: 214px;
  min-height: 100vh;
  padding-inline-start: var(--rail-width);
}
.admin-page .shell { width: min(1400px,calc(100% - 56px)); }
.console-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  width: var(--rail-width);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 13px 14px;
  background: #fbfcfd;
  border-right: 1px solid var(--line);
}
.console-brand { display: flex; align-items: center; gap: 11px; min-height: 75px; padding: 0 8px; margin-bottom: 15px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 750; }
.console-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 500; }
.console-nav { display: grid; gap: 5px; }
.console-nav a,.console-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: #394453;
  white-space: nowrap;
}
.console-nav a:hover,.console-footer a:hover { background: var(--surface); }
.console-nav a[aria-current],.console-footer a[aria-current] { color: var(--accent); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); font-weight: 700; }
.console-nav a i { width: 14px; height: 13px; border: 1px solid currentColor; border-radius: 3px; flex: none; color: #637286; }
.console-nav a[aria-current] i { color: var(--accent); }
.console-nav .nav-overview { background: currentColor; box-shadow: inset 0 0 0 3px var(--white); }
.console-nav .nav-cards { background: linear-gradient(currentColor,currentColor) center 4px / 100% 1px no-repeat; }
.console-nav .nav-clients { height: 10px; border-radius: 2px; box-shadow: 0 3px var(--white),0 4px currentColor; }
.console-nav .nav-devices { border-style: dashed; }
.console-nav .nav-growth { border-top: 0; border-right: 0; border-radius: 0; background: linear-gradient(currentColor,currentColor) 2px 100% / 2px 30% no-repeat,linear-gradient(currentColor,currentColor) 6px 100% / 2px 55% no-repeat,linear-gradient(currentColor,currentColor) 10px 100% / 2px 82% no-repeat; }
.console-nav .nav-activity { background: repeating-linear-gradient(to bottom,transparent 0 2px,currentColor 2px 3px,transparent 3px 5px) center / 7px 9px no-repeat; }
.console-footer { margin-top: auto; padding-top: 12px; }
.console-footer a { min-height: 38px; border-top: 1px solid var(--line); border-radius: 7px; }
.console-header { position: sticky; top: 0; z-index: 2; background: var(--white); border-bottom: 1px solid var(--line); }
.console-header-inner { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 12px; }
.console-path { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.console-path strong { color: var(--ink); }
.console-header .button { min-height: 34px; font-size: 12px; }
.mobile-app-bar,.mobile-tabs { display: none; }
.filters > .export { margin-inline-start: auto; }
.admin-page h1 { font-size: clamp(24px,3vw,31px); letter-spacing: -.02em; }
.button { min-height: 38px; border-color: var(--line-strong); border-radius: 8px; font-weight: 650; }
.button:hover { background: var(--surface); }
.page-heading .primary { min-height: 38px; }
.inventory,.detail-panel,.metric,.auth-card { box-shadow: var(--panel-shadow); border-radius: 12px; }
.workspace-heading { margin-bottom: 21px; }
.workspace-heading p { margin-top: 6px; color: var(--muted); }
.overview-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dashboard-grid { align-items: start; }
.dashboard-column { display: grid; gap: 14px; min-width: 0; }
.dashboard-panel { padding: 16px 18px 17px; }
.dashboard-panel .ops-panel-heading { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.dashboard-panel h2 { font-size: 16px; }
#expiring { scroll-margin-top: 70px; }
.overview-events { padding: 0; margin: 0; list-style: none; }
.overview-events li { display: grid; grid-template-columns: minmax(0,1fr) auto; padding: 8px 0; gap: 4px 6px; border-bottom: 1px solid var(--line); }
.overview-events li:last-child { border-bottom: 0; padding-bottom: 1px; }
.overview-event-name,.overview-event-meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.overview-event-name { font-size: 13px; }
.overview-events time,.overview-event-meta { color: var(--muted); font-size: 11px; }
.overview-event-meta { grid-column: 1 / -1; padding-inline-start: 13px; }
.overview-event-meta .text-button { padding: 0; font-size: inherit; }
.admin-page .auth-card h1 { margin: 0 0 20px; }
.hardware-cell { max-width: 26ch; overflow-wrap: anywhere; }
.hardware-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.hardware-grid > div { padding: 12px; min-width: 0; background: var(--white); }
.hardware-grid dt { color: var(--muted); font-size: 12px; }
.hardware-grid dd { margin: 5px 0 0; overflow-wrap: anywhere; font-weight: 650; }
.hardware-grid .hardware-fingerprint { grid-column: 1 / -1; }
.report-period { display: inline-flex; gap: 3px; padding: 3px; margin-bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; color: var(--muted); }
.report-period a { min-height: 35px; display: grid; align-items: center; padding: 0 13px; border-radius: 6px; white-space: nowrap; }
.report-period a[aria-current] { color: var(--accent); background: var(--white); box-shadow: 0 1px 4px #2c45781a; font-weight: 750; }
.growth-chart { display: flex; align-items: end; gap: 12px; min-height: 139px; overflow-x: auto; padding: 8px 1px; }
.growth-point { display: grid; justify-items: center; align-items: end; gap: 6px; flex: 1 0 34px; max-width: 50px; }
.growth-point strong,.growth-point time { font-size: 11px; color: var(--muted); }
.growth-point meter { width: 14px; height: 76px; writing-mode: vertical-rl; direction: rtl; }
.growth-point meter::-webkit-meter-bar { background: #e6edfb; border: 0; border-radius: 5px; }
.growth-point meter::-webkit-meter-optimum-value { background: #4166c9; border-radius: 5px; }
.channel-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.channel-list li { display: grid; align-items: center; grid-template-columns: minmax(45px,auto) minmax(0,1fr) minmax(20px,auto); gap: 9px; color: var(--muted); }
.channel-list li span { overflow-wrap: anywhere; }
.channel-list progress { width: 100%; height: 11px; accent-color: var(--accent); }
.channel-list strong { color: var(--ink); text-align: right; }
.report-scroll { max-height: 370px; overflow: auto; }
.report-table { display: table; }
.report-table thead { display: table-header-group; position: sticky; top: 0; width: auto; height: auto; clip-path: none; }
.report-table tbody { display: table-row-group; }
.report-table tr { display: table-row; }
.report-table td,.report-table th { display: table-cell; padding: 8px 9px !important; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.report-table td:first-child,.report-table th:first-child { text-align: left; }
.report-table td::before { display: none; }
@media(max-width:1100px) and (min-width:761px) {
  .admin-page { --rail-width: 190px; }
  .admin-page .shell { width: calc(100% - 34px); }
}
@media(max-width:1000px) and (min-width:761px) {
  .admin-page .overview-grid { grid-template-columns: minmax(0,1fr); }
}
@media(max-width:760px) {
  .workspace-heading { align-items: start; flex-wrap: wrap; gap: 12px; }
  .workspace-heading p { font-size: 13px; }
  .dashboard-panel { padding: 14px; }
}
@media(max-width:460px) {
  .hardware-grid > div { padding: 9px; }
  .report-table td,.report-table th { padding: 7px 5px !important; }
}

@media (max-width: 900px) {
  .sale-cell { max-width: none; }
}
@media (max-width: 700px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 570px) {
  .detail-panel { padding: 15px; }
  .actions { align-items: center; }
}

.login-layout {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: clamp(24px,5vw,70px);
  background: radial-gradient(ellipse at 14% 15%,#e6edfb,transparent 50%),#f4f6fa;
}
.login-frame {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(0,1fr);
  width: min(100%,1112px);
  min-height: 618px;
  overflow: hidden;
  border: 1px solid #dce4f1;
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 24px 65px #20365b1a,0 3px 12px #2335510b;
}
.login-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto auto minmax(0,1fr);
  align-content: start;
  padding: 37px clamp(30px,4vw,58px) 35px;
  overflow: hidden;
  background: radial-gradient(ellipse at 81% 76%,#25539b 0%,transparent 67%),linear-gradient(151deg,#101d39,#182f5e 72%,#1a3b76);
  color: #f6f9ff;
}
.login-wordmark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}
.login-wordmark .brand-icon { width: 43px; height: 43px; border-radius: 13px; background: #366dc9; box-shadow: 0 5px 18px #0a16357a,inset 0 0 0 1px #76aaff75; }
.login-wordmark .brand-icon::before { left: 17px; top: 12px; }
.login-wordmark .brand-icon::after { left: 12px; top: 17px; background-color: #366dc9; }
.login-wordmark strong { display: block; font-size: 16px; font-weight: 750; }
.login-wordmark small { display: block; margin-top: 4px; color: #b2c5e5; font-size: 12px; line-height: 1.3; }
.login-copy { position: relative; z-index: 1; margin-top: clamp(40px,6vw,81px); }
.login-display { color: #f6f9ff; font-size: clamp(31px,3.3vw,47px); font-weight: 790; line-height: 1.19; letter-spacing: -.035em; }
.login-description { max-width: 27em; margin-top: 15px; color: #bdcce8; font-size: 14px; line-height: 1.75; }

.login-visual { position: relative; z-index: -1; min-height: 218px; align-self: end; margin: 9px -10px 1px; }
.login-visual::before {
  content: "";
  position: absolute;
  inset: -10px -45px -30px -32px;
  background: linear-gradient(90deg,#b1ceff17 1px,transparent 1px) 0 0 / 25px 25px,linear-gradient(#b1ceff17 1px,transparent 1px) 0 0 / 25px 25px;
  mask-image: radial-gradient(ellipse 57% 61% at 54% 53%,#000 30%,transparent 98%);
}
.login-orbit { position: absolute; inset: 15% 5% 9% 2%; border: 1px solid #9bbcf841; border-radius: 50%; transform: rotate(-14deg); box-shadow: 0 0 0 21px #9bbcf80d,0 0 0 42px #9bbcf809; }
.login-orbit::before,.login-orbit::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #82baff; box-shadow: 0 0 11px #82baffd9; }
.login-orbit::before { top: 22%; right: 9%; }
.login-orbit::after { bottom: 22%; left: 8%; width: 4px; height: 4px; }
.login-window {
  position: absolute;
  width: 58%;
  height: 61%;
  overflow: hidden;
  border: 1px solid #9fc5ff8f;
  border-radius: 15px;
  box-shadow: 0 18px 40px #0b183860,inset 0 1px #d4e1ff42;
  transform: rotate(-12deg);
}
.login-window-back {
  top: 13%;
  left: 33%;
  background: linear-gradient(#a7caff47,#a7caff47) 0 24% / 100% 1px no-repeat,linear-gradient(155deg,#6699ec60,#497ed24d);
}
.login-window-front {
  top: 28%;
  left: 14%;
  display: grid;
  grid-template-rows: 23% 1fr;
  background: linear-gradient(145deg,#3e659f,#284c8c 57%,#2d59a1);
}
.login-window-tools { display: flex; align-items: center; gap: 5px; padding-inline-start: 12px; border-bottom: 1px solid #abc7ff51; }
.login-window-tools i { width: 5px; height: 5px; border-radius: 50%; background: #c0d7ff9c; }
.login-window-tools i:first-child { background: #a5def0; }
.login-window-content { display: grid; grid-template-columns: 30% minmax(0,1fr); align-items: center; gap: 10%; padding: 0 12%; }
.login-window-symbol { width: 100%; aspect-ratio: 1; border: 1px solid #b4d1ff7a; border-radius: 11px; background: #9abfff27; position: relative; }
.login-window-symbol::before,.login-window-symbol::after { content: ""; position: absolute; width: 42%; height: 33%; border: 1px solid #e0ecff; border-radius: 3px; top: 24%; left: 35%; }
.login-window-symbol::after { top: 39%; left: 24%; background: #5277ad; }
.login-window-lines { height: 44%; background: linear-gradient(#b9d2ffa6,#b9d2ffa6) 0 17% / 88% 2px no-repeat,linear-gradient(#a9c8ff73,#a9c8ff73) 0 53% / 67% 2px no-repeat,linear-gradient(#a9c8ff66,#a9c8ff66) 0 89% / 46% 2px no-repeat; }

.login-panel { display: grid; align-items: center; justify-items: center; padding: 44px clamp(32px,5vw,73px); background: #fff; min-width: 0; }
.login-form { width: min(100%,360px); min-width: 0; }
.login-form h1 { margin: 0 0 30px; color: #172744; font-size: clamp(26px,2.6vw,34px); letter-spacing: -.027em; }
.login-help { margin: -15px 0 19px; color: #50617d; font-size: 13px; line-height: 1.65; }
.login-form .notice { margin-bottom: 17px; }
.login-fields { display: grid; gap: 19px; margin: 0; }
.login-field { display: grid; gap: 8px; min-width: 0; }
.login-field label { color: #344662; font-size: 13px; font-weight: 700; }
.login-field input {
  width: 100%;
  min-width: 0;
  min-height: 51px;
  padding: 10px 14px;
  color: #172744;
  border: 1px solid #cdd8e8;
  border-radius: 11px;
  background: #fbfcff;
  font-size: 16px;
}
.login-field input::placeholder { color: #63738d; }
.login-field input:focus { border-color: #4b81dc; outline: 3px solid #145dcc24; outline-offset: 0; }
.login-field input[readonly] { background: #f0f3f8; }
.login-password { position: relative; }
.login-password input { padding-inline-end: 53px; }
.login-password input::-ms-reveal { display: none; }
.login-password-toggle { position: absolute; inset: 4px 4px 4px auto; display: grid; width: 44px; border: 0; border-radius: 8px; place-items: center; background: transparent; color: #4c6388; }
.login-password-toggle[hidden],.login-eye-slash { display: none; }
.login-password-toggle:hover { background: #eaf1fe; color: #184eaa; }
.login-password-toggle.password-visible .login-eye-slash { display: inline; }
.login-submit.button {
  position: relative;
  width: 100%;
  min-height: 51px;
  margin-top: 7px;
  border-radius: 11px;
  font-size: 15px;
  background: linear-gradient(166deg,#2869d2,#1d55bd);
  box-shadow: 0 5px 15px #1c58bf24;
}
.login-submit.button:hover { background: #1c53b6; }
.login-submit svg { position: absolute; inset-inline-end: 17px; }

@media (max-width: 760px) {
  .login-layout { display: block; padding: 0; background: #f2f5fb; }
  .login-frame { display: block; width: 100%; min-height: 100dvh; padding-bottom: calc(25px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; background: #f2f5fb; box-shadow: none; }
  .login-intro {
    display: block;
    min-height: 143px;
    padding: calc(33px + env(safe-area-inset-top)) max(18px,env(safe-area-inset-right),calc((100% - 410px) / 2)) 38px max(22px,env(safe-area-inset-left),calc((100% - 410px) / 2));
  }
  .login-copy { display: none; }
  .login-visual { position: absolute; width: 258px; min-height: 142px; margin: 0; inset: auto -42px -10px auto; opacity: .63; }
  .login-panel {
    position: relative;
    width: min(440px,calc(100% - max(14px,env(safe-area-inset-left)) - max(14px,env(safe-area-inset-right))));
    margin: -22px auto 0;
    padding: 25px 21px 27px;
    border: 1px solid #e0e7f2;
    border-radius: 23px;
    box-shadow: 0 9px 26px #263e6813;
  }
  .login-form h1 { margin-bottom: 24px; font-size: 27px; }
  .login-help { margin-top: -9px; }
  .login-fields { gap: 17px; }
  .login-field input,.login-submit.button { min-height: 52px; }
}
@media (max-width: 355px) {
  .login-panel { padding-inline: 16px; }
}
@media (max-width: 760px) {
  .admin-page {
    --paper: #f3f6fb;
    --ink: #152744;
    --muted: #536580;
    --line: #e0e8f3;
    --line-strong: #d8e4f2;
    --surface: #f4f7fc;
    --panel-shadow: 0 4px 14px #253f6a0a;
    background: var(--paper);
    min-height: 100dvh;
    padding: 0;
    padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  }
  .console-rail,.console-header { display: none; }
  .admin-page .shell { width: min(550px,calc(100% - 32px)); }
  .admin-page .main { padding: 23px 0 calc(91px + env(safe-area-inset-bottom)); }
  .mobile-app-bar {
    display: block;
    position: sticky;
    z-index: 8;
    inset-block-start: 0;
    padding-top: env(safe-area-inset-top);
    background: #f8fafff5;
    border-bottom: 1px solid #dfe8f4;
    backdrop-filter: blur(16px);
  }
  .mobile-app-inner { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 60px; }
  .mobile-brand,.mobile-back { display: flex; align-items: center; gap: 9px; min-height: 44px; font-weight: 750; }
  .mobile-brand strong,.mobile-brand small { display: block; line-height: 1.25; }
  .mobile-brand strong { font-size: 15px; }
  .mobile-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 550; }
  .mobile-app-bar .brand-icon { box-shadow: 0 4px 9px #165cca25; }
  .mobile-back { color: var(--accent); margin-inline-start: -5px; padding-inline-end: 8px; }
  .mobile-icon { flex: none; }
  .mobile-account { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: #e8f0ff; color: #275bac; }
  .mobile-account[aria-current] { border: 1px solid #b7cef6; }
  .mobile-tabs {
    position: fixed;
    z-index: 9;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    padding: 5px max(10px,env(safe-area-inset-right),calc((100% - 568px) / 2)) max(7px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left),calc((100% - 568px) / 2));
    background: #fffffffa;
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 22px #253f6a0a;
    backdrop-filter: blur(16px);
  }
  .mobile-tabs :is(a,button) { min-height: 54px; margin: 0 2px; padding: 4px 2px; display: grid; justify-items: center; align-content: center; gap: 4px; border: 0; border-radius: 14px; background: transparent; color: #526583; font-size: 11px; line-height: 1.2; font-weight: 650; }
  .mobile-tabs :is([aria-current],.current) { color: #124fae; background: #e9f2ff; font-weight: 800; }
  .mobile-tabs :is([aria-current],.current) .mobile-icon { stroke-width: 1.9; }

  .admin-page .page-heading { gap: 10px; margin-bottom: 16px; }
  .admin-page h1 { font-size: clamp(24px,7.1vw,32px); line-height: 1.16; }
  .admin-page .page-heading p { margin-top: 7px; font-size: 13px; line-height: 1.5; }
  .admin-page .ops-heading > div { min-width: 0; }
  .admin-page .button { min-height: 44px; padding-inline: 12px; border-radius: 12px; font-size: 13px; }
  .admin-page .overview-actions { gap: 6px; }
  .admin-page .overview-actions .primary { padding-inline: 11px; }
  .admin-page .inventory,.admin-page .detail-panel,.admin-page .ops-panel,.admin-page .auth-card { border-radius: 19px; }
  .admin-page .ops-panel,.admin-page .detail-panel { padding: 16px; }
  .admin-page .overview-grid,.admin-page .detail-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .admin-page .dashboard-column { gap: 12px; }
  .admin-page .ops-panel h2,.admin-page .detail-panel h2 { font-size: 16px; }
  .admin-page .compact-list > * { min-height: 44px; }
  .admin-page #expiring,.admin-page #devices { scroll-margin-top: calc(68px + env(safe-area-inset-top)); }
  .admin-page .overview-events li { padding: 10px 0; }
  .admin-page .account-panel { width: 100%; }

  .admin-page .metrics { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; margin-bottom: 16px; }
  .admin-page .metric { min-height: 72px; padding: 10px; border-radius: 14px; box-shadow: var(--panel-shadow); }
  .admin-page .metric > span { gap: 5px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .admin-page .metric > strong { font-size: 25px; }
  .admin-page .metric .state-dot { width: 6px; height: 6px; }
  .admin-page .ops-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 16px; }
  .admin-page .workspace-heading + .ops-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-page .ops-metric { padding: 12px 10px; min-height: 94px; gap: 7px; border-radius: 14px; }
  .admin-page .ops-metric > span { font-size: 12px; line-height: 1.3; }
  .admin-page .ops-metric > strong { font-size: 26px; }
  .admin-page .ops-metric > small { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live) {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-column: 1 / -1;
    justify-content: start;
    align-content: center;
    gap: 7px;
    min-height: 114px;
    padding: 15px 19px;
    border: 1px solid #245abd;
    border-radius: 19px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(ellipse at 98% 0,#4c83ea 0,transparent 70%),linear-gradient(118deg,#193c85,#245bbb 65%,#326ed2);
    box-shadow: 0 8px 17px #1b56b827;
  }
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live)::before,
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live)::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 79px;
    height: 53px;
    inset: auto 20px 19px auto;
    border: 1px solid #cce3ff65;
    border-radius: 11px;
    background: linear-gradient(#cce3ff50,#cce3ff50) 0 14px / 100% 1px no-repeat,#b8dbff23;
    transform: rotate(-9deg);
  }
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live)::before { inset: auto 36px 33px auto; background-color: #c0ddff17; }
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live) > span { color: #f1f6ff; font-size: 13px; }
  .admin-page :is(.metric-main,.workspace-heading + .ops-metrics .ops-metric-live) > strong { color: white; font-size: 41px; }
  .admin-page .workspace-heading + .ops-metrics .ops-metric-live > small { color: #dceaff; }
  .admin-page .workspace-heading + .ops-metrics .ops-metric-live .state-dot { background: #91e9b0; }

  .admin-page .toolbar { padding: 12px; }
  .admin-page .filters { display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "search submit" "state export"; gap: 8px; }
  .admin-page .filters .search { grid-area: search; min-width: 0; max-width: none; }
  .admin-page .filters button { grid-area: submit; }
  .admin-page .filters select { grid-area: state; width: auto; max-width: min(100%,151px); justify-self: start; }
  .admin-page .filters .export { grid-area: export; margin: 0; }
  .admin-page .ops-filter { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 8px; padding: 12px; }
  .admin-page .ops-filter .ops-search { grid-column: 1 / -1; max-width: none; }
  .admin-page :is(.filters,.ops-filter,.stack) :is(input:not([type="hidden"]),select) { min-height: 44px; border-radius: 11px; background: var(--surface); font-size: 16px; }

  .admin-page table:not(.report-table) tbody { grid-template-columns: minmax(0,1fr); background: var(--surface); gap: 8px; padding: 9px; }
  .admin-page table:not(.report-table) tbody tr { border-radius: 14px; padding: 12px; }
  .admin-page table:not(.report-table) tbody td { min-width: 0; gap: 8px; overflow-wrap: anywhere; }
  .admin-page table:not(.report-table) tbody td::before { color: var(--muted); font-size: 12px; }
  .admin-page .ops-table .text-button,.admin-page .ops-table td button { min-height: 38px; display: inline-flex; align-items: center; }
  .admin-page .ops-table td button { padding-inline: 8px; }
  .admin-page .device-reveal summary { padding: 7px 0; }
  .admin-page .card-table tr { display: grid; grid-template-columns: minmax(0,1fr) auto; }
  .admin-page .card-table td { grid-column: 1 / -1; }
  .admin-page .card-table .card-cell { border-bottom: 1px solid var(--line); margin: 0 0 4px; padding: 0 0 5px !important; }
  .admin-page .code-row code { min-width: 0; font-size: 13px; font-weight: 700; }
  .admin-page .code-row .copy { min-height: 39px; padding-inline: 9px; border-radius: 9px; background: var(--accent-soft); }
  .admin-page .card-table .sale-cell { grid-column: 1; grid-row: 2; text-align: left; }
  .admin-page .card-table .sale-cell small { text-align: left; }
  .admin-page .card-table .card-state { grid-column: 2; grid-row: 2; justify-content: end; }
  .admin-page .card-table :is(.sale-cell,.card-state)::before { display: none; }
  .admin-page .card-table .actions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; padding-top: 8px !important; }
  .admin-page .card-table .actions > * { flex: 1; }
  .admin-page .card-table .actions .text-button { display: grid; place-items: center; width: 100%; min-height: 44px; border-radius: 10px; background: var(--accent-soft); }
  .admin-page .card-table .actions button[value="disable"],.admin-page .dialog-actions button[value="disable"],.admin-page .mobile-menu-logout button { color: #9e3648; background: #fcf0f2; }
  .admin-page .notice { border-radius: 12px; }
  .admin-page .toast { z-index: 10; bottom: calc(77px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); border-radius: 12px; }
  .admin-page .report-period { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 4px; border-radius: 13px; background: #e8eff9; }
  .admin-page .report-period a { min-height: 42px; justify-items: center; border-radius: 10px; padding-inline: 4px; }

  .admin-page :is(#issue-dialog,#mobile-menu) {
    position: fixed;
    inset: auto 0 0;
    width: min(100%,550px);
    max-width: none;
    max-height: calc(100dvh - 16px - env(safe-area-inset-top));
    margin: 0 auto;
    padding: 10px max(18px,env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left));
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    overscroll-behavior: contain;
  }
  .admin-page :is(#issue-dialog,#mobile-menu)::before { content: ""; display: block; width: 33px; height: 4px; margin: 0 auto 9px; background: #c6d1e2; border-radius: 8px; }
  .admin-page :is(#issue-dialog,#mobile-menu)::backdrop { background: #0a1e42a3; backdrop-filter: blur(3px); }
  .admin-page :is(#issue-dialog,#mobile-menu) .dialog-header { margin-bottom: 12px; }
  .admin-page :is(#issue-dialog,#mobile-menu) h2 { font-size: 21px; }
  .admin-page .icon-close { width: 44px; height: 44px; border-radius: 13px; }
  .admin-page #issue-dialog .stack { gap: 12px; }
  .admin-page #issue-dialog .dialog-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 8px; }
  .mobile-menu-items { display: grid; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); padding: 0 13px; }
  .mobile-menu-items a { display: grid; grid-template-columns: 24px minmax(0,1fr) 18px; align-items: center; gap: 10px; min-height: 52px; font-weight: 700; }
  .mobile-menu-items a + a { border-top: 1px solid var(--line); }
  .mobile-menu-items a .mobile-icon { color: #3064b4; }
  .mobile-menu-items a .mobile-icon:last-child { width: 17px; color: #61738e; }
  .mobile-menu-items a[aria-current] { color: var(--accent); }
  .mobile-menu-logout { margin: 12px 0 0; }
  .mobile-menu-logout .button { width: 100%; border-color: #f2dce2; }
}

@media (max-width: 355px) {
  .admin-page .shell { width: calc(100% - 24px); }
  .admin-page .metric { padding-inline: 6px; }
  .admin-page .metric:not(.metric-main) > span { font-size: 10px; }
  .admin-page .overview-actions .button { padding-inline: 8px; }
  .admin-page .card-dates { grid-template-columns: 1fr 1fr; }
  .admin-page .card-dates > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .admin-page .report-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-page .revenue-filter { padding: 0; }
  .admin-page .revenue-filter button { grid-column: 1 / -1; width: 100%; }
  .admin-page .transaction-controls { grid-template-columns: minmax(0,1fr); }
  .admin-page .transaction-form summary { min-height: 44px; }
  .admin-page .revenue-metrics strong { font-size: clamp(19px,5vw,24px); }
}
