:root {
  color-scheme: light;
  --ink: #152238;
  --muted: #6b7789;
  --line: #dfe5ec;
  --canvas: #f3f6f9;
  --paper: #ffffff;
  --navy: #10213b;
  --navy-2: #193558;
  --blue: #1d6fe8;
  --blue-soft: #eaf2ff;
  --cyan: #18a9b8;
  --green: #15866b;
  --green-soft: #e3f6ef;
  --amber: #a86605;
  --amber-soft: #fff2d8;
  --red: #c23e4d;
  --red-soft: #ffe8eb;
  --shadow: 0 18px 50px rgba(19, 38, 65, .09);
  --radius: 18px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(29,111,232,.3); outline-offset: 2px; }
[hidden] { display: none !important; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(620px, 1.18fr) minmax(430px, .82fr); background: var(--paper); }
.login-brand { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; padding: clamp(34px, 4.5vw, 70px); color: #fff; background-color: #071629; background-image: linear-gradient(90deg, rgba(3,16,31,.95) 0%, rgba(5,24,44,.78) 54%, rgba(3,25,46,.52) 100%), url("./lianmeng-login-bg.png"); background-position: center; background-size: cover; }
.login-brand::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .24; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to bottom right, #000, transparent 70%); }
.login-brand::after { content: ""; position: absolute; z-index: -1; width: 510px; height: 510px; right: -205px; bottom: -250px; border: 1px solid rgba(120,235,229,.18); border-radius: 50%; box-shadow: 0 0 0 72px rgba(107,226,223,.035), 0 0 0 150px rgba(107,226,223,.02); }
.login-brand-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.login-wordmark { display: flex; align-items: center; gap: 13px; }
.login-wordmark > span:last-child, .login-wordmark strong, .login-wordmark small { display: block; }
.brand-logo-image { display: block; width: 92px; height: 92px; object-fit: cover; border-radius: 14px; mix-blend-mode: screen; filter: drop-shadow(0 10px 22px rgba(0,0,0,.2)); }
.login-wordmark strong { color: #fff; font-size: 19px; letter-spacing: .09em; }
.login-wordmark small { margin-top: 4px; color: #7190aa; font-size: 8px; font-weight: 700; letter-spacing: .18em; }
.login-logo-mark { position: relative; display: grid; place-items: center; width: 46px; height: 46px; overflow: hidden; border: 1px solid rgba(155,247,242,.34); border-radius: 15px 6px 15px 6px; color: #baf9f4; background: linear-gradient(145deg, rgba(51,196,203,.28), rgba(39,102,183,.2)); font-size: 13px; font-weight: 900; letter-spacing: -.08em; box-shadow: inset 0 0 22px rgba(101,235,229,.1), 0 12px 28px rgba(0,0,0,.16); }
.login-logo-mark::after { content: ""; position: absolute; width: 21px; height: 7px; border: 2px solid #67ded8; border-radius: 999px; transform: rotate(-38deg); opacity: .4; }
.login-service { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; color: #a6bdd1; background: rgba(3,17,31,.22); font-size: 11px; backdrop-filter: blur(8px); }
.login-service i { width: 7px; height: 7px; border-radius: 50%; background: #55ddb0; box-shadow: 0 0 0 4px rgba(85,221,176,.12), 0 0 16px rgba(85,221,176,.7); }
.login-hero { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(330px, 1fr) minmax(210px, .62fr); align-items: center; flex: 1; gap: clamp(8px, 2vw, 30px); padding: 44px 0 26px; }
.login-hero-copy { align-self: center; }
.login-hero-copy .eyebrow { margin-bottom: 17px; }
.login-hero-copy h1 { max-width: 650px; margin: 0; font-size: clamp(46px, 4.6vw, 72px); line-height: 1.12; letter-spacing: -.055em; }
.login-hero-copy h1 span { color: #8ce8e3; }
.mascot-scene { position: relative; align-self: end; display: flex; align-items: flex-end; justify-content: center; min-height: 430px; }
.mascot-scene::before { content: ""; position: absolute; left: 50%; bottom: 9%; width: 82%; height: 14%; border-radius: 50%; background: rgba(21,185,206,.2); filter: blur(28px); transform: translateX(-50%); }
.mascot-scene img { position: relative; z-index: 1; display: block; width: min(100%, 330px); max-height: 57vh; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0,0,0,.22)); }
.mascot-message { position: absolute; z-index: 2; top: 9%; left: -8%; min-width: 177px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.42); border-radius: 16px 16px 4px 16px; color: var(--navy); background: rgba(255,255,255,.94); box-shadow: 0 18px 38px rgba(0,16,32,.2); transform: rotate(-2deg); }
.mascot-message::after { content: ""; position: absolute; right: -9px; bottom: -1px; width: 19px; height: 18px; background: inherit; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.mascot-message strong, .mascot-message span { display: block; }
.mascot-message strong { margin-bottom: 4px; font-size: 13px; }
.mascot-message span { color: #688096; font-size: 10px; }
.login-brand-footer { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); color: #66859f; font-size: 10px; letter-spacing: .12em; }
.login-brand-footer span:last-child { letter-spacing: .05em; }
.brand-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 32px; border-radius: 17px; color: #0d2c49; background: #77e0dd; font-weight: 900; letter-spacing: -1px; box-shadow: 0 12px 30px rgba(36,205,202,.25); }
.brand-mark.small { width: 42px; height: 42px; margin: 0; border-radius: 12px; font-size: 12px; }
.eyebrow { margin: 0 0 8px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-brand .eyebrow { color: #6edbd9; }
.login-copy { max-width: 550px; margin: 27px 0 31px; color: #aac0d2; font-size: 15px; line-height: 1.9; }
.brand-points { display: flex; flex-wrap: wrap; gap: 9px; }
.brand-points span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #c6d6e4; background: rgba(255,255,255,.035); font-size: 11px; }
.brand-points b { margin-right: 4px; color: #66dbd7; font-size: 9px; letter-spacing: .08em; }
.login-panel { position: relative; display: grid; place-items: center; align-content: center; min-height: 100vh; padding: 80px clamp(34px, 5vw, 76px); background: radial-gradient(circle at 90% 8%, rgba(29,111,232,.07), transparent 25%), #f6f8fb; }
.login-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.72), transparent 46%); }
.login-panel-nav { position: absolute; z-index: 2; top: 34px; right: clamp(34px, 5vw, 76px); left: clamp(34px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; }
.login-panel-nav a { color: #4c6077; font-size: 12px; font-weight: 700; text-decoration: none; transition: color .16s ease; }
.login-panel-nav a:hover { color: var(--blue); }
.console-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border: 1px solid #dbe4ee; border-radius: 999px; color: #567087; background: rgba(255,255,255,.72); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.admin-login-card { position: relative; z-index: 1; width: min(460px, 100%); padding: clamp(34px, 4vw, 48px); border-color: #e3e9f0; border-radius: 28px; box-shadow: 0 24px 70px rgba(20,44,75,.1), 0 3px 10px rgba(20,44,75,.035); }
.admin-login-card::before { content: ""; position: absolute; top: 0; left: 45px; width: 54px; height: 3px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #1d6fe8, #27c6c0); }
.login-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 31px; color: #708095; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2dcc95; box-shadow: 0 0 0 4px rgba(45,204,149,.14); }
.login-card h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.03em; }
.admin-login-card h2 { font-size: 31px; letter-spacing: -.035em; }
.login-card > p.login-subtitle { margin: 0 0 31px; color: var(--muted); line-height: 1.7; }
.login-field { gap: 9px; margin-bottom: 20px; }
.login-field > span:first-child { color: #35465b; font-size: 12px; }
.input-shell { position: relative; display: block; }
.input-shell > svg { position: absolute; z-index: 1; top: 50%; left: 15px; width: 18px; height: 18px; fill: none; stroke: #8696a9; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: translateY(-50%); pointer-events: none; }
.login-field .input-shell input { min-height: 52px; padding: 12px 54px 12px 44px; border-color: #d8e0e9; border-radius: 13px; background: #fbfcfd; }
.login-field .input-shell input:hover { border-color: #b8c6d6; }
.login-field .input-shell input:focus { border-color: #2b7be8; background: #fff; box-shadow: 0 0 0 4px rgba(29,111,232,.09); }
.password-toggle { position: absolute; z-index: 2; top: 50%; right: 10px; min-width: 42px; padding: 6px; border: 0; border-radius: 8px; color: #6d7d90; background: transparent; font-size: 11px; font-weight: 700; transform: translateY(-50%); }
.password-toggle:hover { color: var(--blue); background: var(--blue-soft); }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 1px 0 24px; color: #6d7d90; font-size: 11px; }
.remember-option { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.remember-option input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.secure-login { display: inline-flex; align-items: center; gap: 5px; }
.secure-login i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: #fff; background: #42ad8d; font-size: 9px; font-style: normal; }
.login-submit { position: relative; min-height: 52px; overflow: hidden; border-radius: 13px; background: linear-gradient(110deg, #1d68dc, #147f9e) !important; box-shadow: 0 14px 28px rgba(25,104,194,.23) !important; }
.login-submit::after { content: "→"; position: absolute; right: 19px; font-size: 18px; font-weight: 400; transition: transform .18s ease; }
.login-submit:hover::after { transform: translateX(3px); }
.login-submit:disabled::after { content: ""; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.38); border-top-color: #fff; border-radius: 50%; animation: login-spin .7s linear infinite; }
@keyframes login-spin { to { transform: rotate(360deg); } }
.admin-login-card .form-error { display: flex; align-items: center; min-height: 24px; margin: 8px 0 0; }
.admin-login-card .form-error:not(:empty)::before { content: "!"; display: grid; place-items: center; flex: 0 0 auto; width: 16px; height: 16px; margin-right: 7px; border-radius: 50%; color: #fff; background: var(--red); font-size: 10px; font-weight: 900; }
.local-hint { display: grid; gap: 8px; margin-top: 24px; padding: 14px; border-radius: 12px; color: var(--muted); background: var(--canvas); font-size: 12px; }
.local-hint code { overflow-wrap: anywhere; color: var(--ink); }
.admin-local-hint { grid-template-columns: 1fr auto; gap: 4px 14px; margin-top: 17px; padding: 14px 15px; border: 1px dashed #d7e1eb; background: #f7f9fb; font-size: 11px; }
.admin-local-hint div { min-width: 0; }
.admin-local-hint strong, .admin-local-hint span { display: block; }
.admin-local-hint strong { color: #46586d; font-size: 11px; }
.admin-local-hint span { margin-top: 3px; color: #8a98a8; font-size: 9px; }
.admin-local-hint button { grid-row: 1 / span 2; grid-column: 2; align-self: center; padding: 7px 10px; border: 1px solid #d5e0eb; border-radius: 8px; color: #34669e; background: #fff; font-size: 10px; font-weight: 700; }
.admin-local-hint button:hover { border-color: #9ebce0; background: var(--blue-soft); }
.admin-local-hint code { grid-column: 1 / -1; margin-top: 7px; color: #163453; font-size: 11px; }
.login-copyright { position: absolute; z-index: 1; bottom: 28px; margin: 0; color: #9aa6b3; font-size: 10px; letter-spacing: .04em; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px; color: #dce7f2; background: var(--navy); }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: #fff; font-size: 16px; }
.sidebar-brand span { margin-top: 3px; color: #8294a9; font-size: 11px; }
.nav { display: grid; gap: 7px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px 14px; border: 0; border-radius: 12px; color: #9fb0c3; background: transparent; text-align: left; transition: .18s ease; }
.nav-item span { color: #5e7897; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: linear-gradient(110deg, #245fa5, #187e8e); box-shadow: 0 10px 25px rgba(0,0,0,.18); }
.nav-item.active span { color: #a9f1ed; }
.sidebar-footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 16px 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { color: #e7f0f7; font-size: 12px; }
.sidebar-footer small { margin-top: 3px; color: #758ba3; }
.main { min-width: 0; padding: 0 38px 48px; }
.topbar { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: 92px; margin-bottom: 28px; border-bottom: 1px solid var(--line); background: rgba(243,246,249,.94); backdrop-filter: blur(12px); }
.topbar h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.topbar .eyebrow { margin-bottom: 4px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.environment-chip { padding: 7px 10px; border-radius: 999px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.menu-button { display: none; }

.view { display: none; animation: view-in .2s ease; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.intro-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.intro-row h3 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.025em; }
.intro-row p { margin: 0; color: var(--muted); line-height: 1.7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.runtime-panel { margin-bottom: 18px; }
.runtime-panel .metric-grid { margin-top: 14px; margin-bottom: 0; }
.amount-negative { color: var(--red); font-weight: 800; }
.metric { position: relative; overflow: hidden; min-height: 148px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 26px rgba(27,48,76,.04); }
.metric::after { content: ""; position: absolute; width: 74px; height: 74px; right: -25px; bottom: -28px; border: 16px solid var(--blue-soft); border-radius: 50%; }
.metric span, .metric small { display: block; color: var(--muted); }
.metric strong { display: block; margin: 14px 0 7px; font-size: 36px; letter-spacing: -.04em; }
.metric.accent { color: #fff; border-color: transparent; background: linear-gradient(135deg, #173c6a, #167887); }
.metric.accent span, .metric.accent small { color: #c3dce4; }
.metric.accent::after { border-color: rgba(255,255,255,.08); }
.dashboard-grid { display: grid; grid-template-columns: 1.45fr .75fr; gap: 20px; }
.two-column { display: grid; grid-template-columns: minmax(330px,.8fr) minmax(360px,1.2fr); gap: 20px; margin-bottom: 20px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 8px 26px rgba(27,48,76,.04); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading h3, .panel h3 { margin: 0; font-size: 18px; }
.panel-heading > span { color: var(--muted); font-size: 12px; }
.dark-panel { color: #fff; background: var(--navy-2); border-color: transparent; }
.dark-panel h3 { margin-bottom: 22px; font-size: 22px; }
.step-list { display: grid; gap: 16px; margin: 0 0 26px; padding: 0; list-style: none; color: #c4d0dd; }
.step-list li { display: flex; align-items: center; gap: 12px; }
.step-list span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #062f39; background: #73ddd9; font-size: 11px; font-weight: 900; }
.compact-list { display: grid; gap: 2px; }
.compact-item { display: grid; grid-template-columns: minmax(150px,1fr) minmax(120px,.7fr) auto; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.compact-item:last-child { border: 0; }
.compact-item strong, .compact-item small { display: block; }
.compact-item small { margin-top: 4px; color: var(--muted); }

.button { min-height: 40px; padding: 0 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 8px 18px rgba(29,111,232,.2); }
.button.secondary { color: var(--navy-2); border-color: #cbd7e5; background: #f8fafc; }
.button.ghost { color: var(--muted); border-color: var(--line); background: transparent; }
.button.light { color: var(--navy); background: #fff; }
.button.danger { color: #fff; background: var(--red); }
.button.small-button { min-height: 31px; padding: 0 10px; border-radius: 8px; font-size: 12px; }
.button.wide { width: 100%; }
.text-button { padding: 4px; border: 0; color: var(--blue); background: none; font-weight: 700; }
.icon-button { border: 0; background: transparent; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.form-grid.single { grid-template-columns: 1fr; gap: 14px; }
.field { display: grid; gap: 8px; }
.field > span { color: #4b586b; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, .search, .table-toolbar select { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid #cfd8e4; border-radius: 10px; outline: none; color: var(--ink); background: #fff; transition: .16s ease; }
.field textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,232,.11); }
.field input:disabled { color: var(--muted); background: var(--canvas); }
.penalty-upload-field small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.penalty-upload-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.penalty-upload-heading .button { flex: none; }
.penalty-upload-field input[type="file"] { padding: 7px; color: var(--muted); background: var(--canvas); }
.penalty-upload-field input[type="file"]::file-selector-button { min-height: 30px; margin-right: 10px; padding: 0 12px; border: 1px solid #cbd7e5; border-radius: 8px; color: var(--navy-2); background: #fff; font-weight: 700; cursor: pointer; }
.penalty-evidence-preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.penalty-evidence-preview:empty { display: none; }
.penalty-evidence-preview figure { min-width: 0; margin: 0; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); }
.penalty-evidence-preview figure.is-uploading { border-color: #9cc0ee; background: #f1f7ff; }
.penalty-evidence-preview figure.is-error { border-color: #efb4bc; background: #fff3f5; }
.penalty-evidence-preview img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.penalty-evidence-preview figcaption { margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.penalty-evidence-preview .upload-state { display: block; margin-top: 3px; color: var(--blue); font-size: 10px; font-weight: 700; }
.penalty-evidence-preview .is-error .upload-state { color: var(--red); }
.upload-status { min-height: 18px; margin: 0; color: var(--green); font-size: 12px; }
.span-2 { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.form-error { min-height: 18px; color: var(--red) !important; font-size: 12px; }
.credential-panel { align-self: start; }
.quote-panel { color: #fff; background: linear-gradient(135deg,#142f52,#166e7c); border: 0; }
.quote-panel .eyebrow { color: #72dedb; }
.quote-empty { display: grid; place-items: center; min-height: 174px; color: #b9cad9; border: 1px dashed rgba(255,255,255,.22); border-radius: 14px; }
.quote-total { display: flex; align-items: flex-end; justify-content: space-between; margin: 26px 0; }
.quote-total span { color: #bdd0df; }
.quote-total strong { font-size: 34px; }
.quote-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quote-lines div { padding: 13px; border-radius: 10px; background: rgba(255,255,255,.08); }
.quote-lines span, .quote-lines b { display: block; }
.quote-lines span { color: #bcd0df; font-size: 11px; }
.quote-lines b { margin-top: 7px; font-size: 15px; }
.quote-panel small { display: block; margin-top: 18px; color: #8fb2c7; overflow-wrap: anywhere; }

.table-panel { padding: 0; overflow: hidden; }
.order-filter-panel { overflow: visible; }
.order-filter-panel .table-wrap { border-right: 1px solid var(--line); border-left: 1px solid var(--line); }
.table-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.table-toolbar.order-toolbar { justify-content: flex-start; flex-wrap: wrap; }
.table-toolbar.order-toolbar .search { flex: 1 1 280px; }
.table-toolbar.order-toolbar select { width: auto; min-width: 150px; }
.advanced-order-filters { display: grid; grid-template-columns: repeat(4,minmax(155px,1fr)); gap: 14px; align-items: end; overflow: visible; padding: 20px; background: linear-gradient(180deg,#fff,#fbfcfe); }
.filter-component { position: relative; display: grid; gap: 7px; min-width: 0; }
.filter-component > label { color: #66788c; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.filter-wide { grid-column: span 2; }
.ui-input-shell,.ui-select-shell { min-height: 43px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #ced9e6; border-radius: 11px; color: #7890a6; background: #fff; transition: .16s ease; }
.ui-input-shell:focus-within,.ui-select-shell:focus-within { border-color: #2b7be8; box-shadow: 0 0 0 3px rgba(29,111,232,.08); }
.ui-input-shell > i { display: grid; place-items: center; min-width: 18px; height: 18px; color: #66819a; font-size: 11px; font-style: normal; }
.ui-input-shell > em { color: #8898a9; font-size: 10px; font-style: normal; }
.ui-input-shell input,.ui-select-shell select { width: 100%; min-width: 0; min-height: 41px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; }
.ui-select-shell select { appearance: none; cursor: pointer; }.ui-select-shell > i { margin-left: -22px; color: #73869a; font-size: 10px; font-style: normal; pointer-events: none; }
.date-range-component { grid-column: span 2; }
.ui-date-range { min-height: 43px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #ced9e6; border-radius: 11px; background: #fff; transition: .16s ease; }
.ui-date-range:focus-within { border-color: #2b7be8; box-shadow: 0 0 0 3px rgba(29,111,232,.08); }
.ui-date-range > span { display: flex; align-items: center; min-width: 0; }.ui-date-range i { color: #66819a; font-size: 11px; font-style: normal; }.ui-date-range input { width: 100%; min-width: 0; min-height: 41px; padding: 0 5px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }.ui-date-range > b { color: #a0acb9; font-size: 10px; font-weight: 400; }
.date-quick-actions { display: flex; gap: 5px; }.date-quick-actions button { padding: 3px 7px; border: 1px solid #dce5ef; border-radius: 7px; color: #55718d; background: #f7faff; font-size: 9px; }.date-quick-actions button:hover { color: #1d6fe8; border-color: #a9c6ec; }
.filter-actions { display: flex; justify-content: flex-end; gap: 8px; align-self: end; }.filter-actions .button { min-height: 43px; }
.ui-combobox { position: relative; min-width: 210px; }
.ui-combobox-trigger { width: 100%; min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; }
.ui-combobox-trigger:hover,.ui-combobox-trigger[aria-expanded="true"] { border-color: #83aee7; box-shadow: 0 0 0 3px rgba(29,111,232,.08); }
.ui-combobox-trigger i { color: #71859b; font-style: normal; }
.ui-combobox-popover { position: absolute; z-index: 80; top: calc(100% + 7px); left: 0; width: 330px; max-width: min(90vw,330px); padding: 10px; border: 1px solid #d7e2ee; border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(12,38,68,.18); }
.ui-combobox-search { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #71859b; }
.ui-combobox-search input { width: 100%; min-height: 38px; padding: 7px 0; border: 0; outline: 0; }
.ui-option-list { max-height: 330px; overflow: auto; }
.ui-option-group { display: flex; justify-content: space-between; padding: 10px 8px 5px; color: #8190a2; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.ui-option { width: 100%; display: grid; grid-template-columns: 34px 1fr 18px; align-items: center; gap: 9px; padding: 9px 8px; border: 0; border-radius: 9px; color: var(--ink); background: transparent; text-align: left; }
.ui-option:hover,.ui-option.selected { background: #eef6ff; }
.ui-option-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; color: #1c668d; background: #dff3f5; font-size: 11px; font-weight: 900; }
.ui-option b,.ui-option small { display: block; }
.ui-option small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.ui-option > i { color: var(--blue); font-style: normal; }
.choice-card-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.choice-card-group legend { grid-column: 1 / -1; margin-bottom: 2px; color: #43566d; font-size: 12px; font-weight: 800; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: block; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); transition: .16s ease; }
.choice-card b,.choice-card small { display: block; }
.choice-card small { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.choice-card input:checked + span { border-color: var(--blue); background: #eef5ff; box-shadow: 0 0 0 3px rgba(29,111,232,.08); }
.contact-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.club-metrics { margin-bottom: 18px; }
.fanout-control { display: grid; grid-template-columns: minmax(260px,1fr) minmax(360px,1.15fr); gap: 24px; align-items: center; margin-bottom: 18px; background: linear-gradient(120deg,#fff,#f5fbff); }
.fanout-control > div > p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 11px; }.fanout-control form { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.ui-number-control { display: grid; grid-template-columns: 36px 72px 36px; overflow: hidden; border: 1px solid #cdd9e5; border-radius: 11px; background: #fff; }.ui-number-control button { border: 0; color: #38658f; background: #eef5fc; font-size: 18px; }.ui-number-control input { width: 72px; min-height: 42px; padding: 0 5px; border: 0; outline: 0; text-align: center; font-weight: 900; appearance: textfield; }.ui-number-control input::-webkit-inner-spin-button { display: none; }
.fanout-presets { display: flex; flex-wrap: wrap; gap: 6px; }.fanout-presets button { padding: 7px 9px; border: 1px solid #d4e0ec; border-radius: 8px; color: #55718d; background: #fff; font-size: 9px; }.fanout-presets button:hover { color: #1d6fe8; border-color: #9bbde8; }
.routing-score { color: #137c84; font-size: 18px; }
.rating-choice { display: flex; gap: 9px; margin: 0; padding: 0; border: 0; }
.rating-choice legend { width: 100%; margin-bottom: 8px; color: #43566d; font-size: 12px; font-weight: 800; }
.rating-choice label { position: relative; cursor: pointer; }.rating-choice input { position: absolute; opacity: 0; pointer-events: none; }.rating-choice span { display: grid; place-items: center; width: 46px; height: 42px; border: 1px solid var(--line); border-radius: 10px; color: #60758b; background: #fff; font-weight: 900; }.rating-choice input:checked + span { color: #fff; border-color: #1d6fe8; background: linear-gradient(135deg,#1d6fe8,#18a0a7); box-shadow: 0 7px 18px rgba(29,111,232,.2); }
.api-doc-hero { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 18px; }
.api-doc-hero article { display: grid; grid-template-columns: 46px 1fr; gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.api-doc-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #0c6380; background: linear-gradient(145deg,#d8f5f2,#dfeaff); font-size: 11px; font-weight: 900; }
.api-doc-hero b,.api-doc-hero p,.api-doc-hero code { display: block; }
.api-doc-hero p { margin: 6px 0 9px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.api-doc-hero code { color: #28577f; font-size: 10px; }
.api-flow-card { margin-bottom: 18px; }
.api-flow { display: grid; grid-template-columns: repeat(6,1fr); gap: 0; margin: 4px 0 0; padding: 0; list-style: none; }
.api-flow li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; padding: 8px 12px; }
.api-flow li:not(:last-child)::after { content: ""; position: absolute; top: 23px; right: -5px; width: 10px; height: 1px; background: #afc4da; }
.api-flow li > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: linear-gradient(135deg,#2174e8,#1594a2); font-size: 11px; }
.api-flow span,.api-flow small { display: block; }
.api-flow span { font-size: 11px; font-weight: 800; }
.api-flow small { margin-top: 4px; color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.45; }
.api-doc-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.api-doc-main,.api-doc-aside { display: grid; gap: 14px; }
.api-doc-section { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.api-doc-section summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; cursor: pointer; list-style: none; }
.api-doc-section summary::-webkit-details-marker { display: none; }
.api-doc-section summary b,.api-doc-section summary small { display: block; }
.api-doc-section summary small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.api-doc-section summary i { color: #71859b; font-style: normal; transition: transform .16s ease; }
.api-doc-section[open] summary i { transform: rotate(180deg); }
.api-endpoint-table { border-top: 1px solid var(--line); }
.api-endpoint { display: grid; grid-template-columns: 76px minmax(245px,.8fr) 1fr; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid #edf1f5; }
.api-endpoint:last-child { border-bottom: 0; }
.api-endpoint code { overflow-wrap: anywhere; color: #263b54; font-size: 10px; }
.api-endpoint > span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.method { display: inline-flex; justify-content: center; width: 70px; padding: 5px 7px; border-radius: 7px; font-size: 9px; font-style: normal; font-weight: 900; }
.method.get { color: #126c4d; background: #e2f7ed; }.method.post { color: #175dab; background: #e5f0ff; }.method.put { color: #8b5a0b; background: #fff2d6; }.method.both { color: #6a48a1; background: #f0e9ff; }
.api-header-list { margin: 0; }.api-header-list div { display: grid; grid-template-columns: 125px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid #edf1f5; }.api-header-list div:last-child { border: 0; }.api-header-list dt { color: #28577f; font-family: Consolas,monospace; font-size: 10px; }.api-header-list dd { margin: 0; color: var(--muted); font-size: 10px; }
.api-example pre { overflow: auto; margin: 0; padding: 15px; border-radius: 10px; color: #cce7ff; background: #0e233a; font-size: 10px; line-height: 1.65; }
.api-error-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }.api-error-list li { display: grid; grid-template-columns: 65px 1fr; gap: 8px; }.api-error-list b { color: #28577f; }.api-error-list span { color: var(--muted); font-size: 10px; }
.api-socket-callout { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 18px; align-items: center; margin-bottom: 18px; padding: 22px; border: 1px solid #74d7ce; border-radius: 17px; color: #e7ffff; background: linear-gradient(120deg,#0e3654,#0f6c75); box-shadow: 0 16px 38px rgba(7,63,83,.16); }
.api-socket-callout h3 { margin: 0 0 7px; font-size: 18px; }.api-socket-callout p:not(.eyebrow) { margin: 0; color: #b9dfe3; font-size: 11px; line-height: 1.7; }.api-socket-callout code { color: #fff; }
.socket-pulse { position: relative; display: grid; place-items: center; width: 62px; height: 62px; }.socket-pulse i { position: absolute; width: 18px; height: 18px; border: 2px solid #6ce3d7; border-radius: 50%; animation: socket-pulse 2.2s infinite; }.socket-pulse i:nth-child(2) { animation-delay: .6s; }.socket-pulse i:nth-child(3) { animation-delay: 1.2s; }
@keyframes socket-pulse { 0% { opacity: .95; transform: scale(.45); } 80%,100% { opacity: 0; transform: scale(3); } }
.socket-rules { display: grid; grid-template-columns: repeat(3,auto); gap: 8px; }.socket-rules span { padding: 9px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.06); font-size: 10px; }.socket-rules b { display: block; margin-bottom: 3px; color: #78eee2; }
.socket-doc-section { border-color: #9cded9; }.socket-step-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }.socket-step-list > div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 14px 18px; border-right: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; }.socket-step-list > div:nth-child(2n) { border-right: 0; }.socket-step-list > div > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #0b6a70; background: #dff6f3; font-size: 10px; }.socket-step-list code,.socket-step-list small { display: block; }.socket-step-list code { overflow-wrap: anywhere; color: #173a5a; font-size: 10px; }.socket-step-list small { margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.socket-example pre { max-height: 430px; }
.compact-date { display: grid; gap: 4px; min-width: 205px; color: var(--muted); font-size: 10px; }
.compact-date input { min-height: 43px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; }
.completion-evidence-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(130px,1fr)); gap: 12px; margin: 8px 0 20px; }
.completion-evidence-grid figure { min-width: 0; margin: 0; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.completion-evidence-grid img { display: block; width: 100%; height: 105px; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.completion-evidence-grid.large img { height: min(54vh,520px); object-fit: contain; background: #e8eef5; }
.completion-evidence-grid figcaption { margin-top: 6px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.search { max-width: 360px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
th { color: #728096; background: #f7f9fb; font-size: 11px; letter-spacing: .04em; }
td strong, td small { display: block; }
td small { max-width: 280px; margin-top: 4px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; }
.table-actions { display: flex; gap: 7px; }
.current-admin-chip { display: grid; gap: 2px; min-width: 112px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; line-height: 1.15; }
.current-admin-chip strong { color: var(--ink); font-size: 11px; }
.current-admin-chip small { color: var(--muted); font-size: 9px; }
.account-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.role-badges { display: flex; flex-wrap: wrap; gap: 5px; max-width: 260px; }
.admin-role-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 0; padding: 0; border: 0; }
.admin-role-picker legend { margin-bottom: 8px; color: #43566d; font-size: 12px; font-weight: 800; }
.admin-role-picker label { position: relative; cursor: pointer; }
.admin-role-picker input { position: absolute; opacity: 0; pointer-events: none; }
.admin-role-picker span { display: block; min-height: 68px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: .16s ease; }
.admin-role-picker b,.admin-role-picker small { display: block; }
.admin-role-picker small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.admin-role-picker input:checked + span { border-color: #2d79df; background: #eef6ff; box-shadow: 0 0 0 2px rgba(45,121,223,.1); }
.penalty-evidence-thumbnails { display: flex; gap: 5px; }
.penalty-evidence-thumbnails a { display: block; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); }
.penalty-evidence-thumbnails img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .16s ease; }
.penalty-evidence-thumbnails a:hover img { transform: scale(1.08); }
.empty-state { padding: 42px 20px; color: var(--muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 20px; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge.success { color: var(--green); background: var(--green-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.danger { color: var(--red); background: var(--red-soft); }
.badge.info { color: #245fa5; background: var(--blue-soft); }
.badge.neutral { color: var(--muted); background: #edf1f5; }
.api-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.api-grid code { display: block; margin-top: 10px; padding: 10px; border-radius: 8px; color: #35516f; background: #f3f6f9; font-size: 12px; overflow-wrap: anywhere; }
.api-grid p { color: var(--muted); line-height: 1.7; }
.api-grid a { color: var(--blue); font-weight: 700; text-decoration: none; }
.payment-grid { display: grid; grid-template-columns: minmax(280px,.58fr) minmax(520px,1.42fr); gap: 20px; align-items: start; }
.oss-settings-panel { grid-column: 2; }
.nested-form-grid { padding: 0; }
.game-management-grid { display: grid; grid-template-columns: minmax(280px,.48fr) minmax(520px,1.52fr); gap: 20px; align-items: start; }
.game-editor-panel { align-self: start; }
.game-editor-panel .form-actions { padding-top: 8px; }
.game-editor-panel .form-actions .button { flex: 1; }
.game-editor-panel input:read-only { color: var(--muted); background: var(--canvas); cursor: not-allowed; }
.game-list-heading { margin: 0; padding: 24px 24px 18px; }
.game-list-heading > span b { color: var(--ink); font-weight: 700; }
.game-table-panel .table-actions { min-width: 126px; }
.center-balance-card { position: sticky; top: 122px; padding: 30px; overflow: hidden; border-radius: var(--radius); color: #fff; background: linear-gradient(145deg,#102c50,#127a83); box-shadow: 0 18px 45px rgba(13,52,77,.16); }
.center-balance-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -70px; bottom: -90px; border: 34px solid rgba(255,255,255,.06); border-radius: 50%; }
.center-balance-card > span, .center-balance-card > strong, .center-balance-card > small { position: relative; z-index: 1; display: block; }
.center-balance-card > span { margin-top: 22px; color: #c6dce7; }
.center-balance-card > strong { margin: 10px 0 28px; font-size: clamp(34px,4vw,52px); letter-spacing: -.04em; }
.center-balance-card > small { color: #afd0d8; line-height: 1.7; }
.provider-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; border-top: 1px solid var(--line); }
.provider-heading:first-of-type { border-top: 0; }
.provider-heading h3 { margin: 0; font-size: 17px; }
.settings-note { padding: 13px 15px; border-radius: 10px; color: #5f6f82; background: var(--canvas); font-size: 12px; line-height: 1.7; }

dialog { width: min(520px,calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 0; border-radius: 20px; box-shadow: 0 28px 90px rgba(8,24,44,.28); }
dialog.wide-dialog { width: min(1040px,calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10,24,43,.55); backdrop-filter: blur(3px); }
.dialog-card { display: grid; gap: 18px; padding: 26px; background: #fff; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.dialog-heading h3 { margin: 0; font-size: 22px; }
.dialog-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--muted); background: var(--canvas); font-size: 22px; line-height: 1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dialog-note { margin: 0; color: var(--muted); }
.warning-box { padding: 13px 15px; border: 1px solid #f0d9a5; border-radius: 10px; color: #7c570f; background: #fff8e7; line-height: 1.6; }
.credential-list { display: grid; gap: 0; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.credential-list div { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.credential-list div:last-child { border: 0; }
.credential-list dt { color: var(--muted); }
.credential-list dd { margin: 0; font-family: Consolas,monospace; overflow-wrap: anywhere; }
.detail-summary { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.detail-summary > div { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--canvas); }
.detail-summary span, .detail-summary strong { display: block; }
.detail-summary span { margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.detail-summary strong { font-size: 20px; }
.detail-orders-heading { margin: 4px 0 12px; }
.detail-order-wrap { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.toast { position: fixed; z-index: 100; right: 28px; bottom: 28px; max-width: 420px; padding: 14px 18px; border-radius: 12px; color: #fff; background: var(--navy); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast.error { background: var(--red); }

@media (max-width: 1260px) {
  .login-screen { grid-template-columns: minmax(0,1.08fr) minmax(410px,.92fr); }
  .login-brand { padding: 34px; }
  .login-hero { grid-template-columns: minmax(300px,1fr) minmax(190px,.52fr); }
  .login-hero-copy h1 { font-size: clamp(43px,5vw,58px); }
  .mascot-scene { min-height: 390px; }
  .mascot-message { left: -10%; }
  .login-panel { padding-right: 36px; padding-left: 36px; }
  .login-panel-nav { right: 36px; left: 36px; }
}
@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .two-column { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .oss-settings-panel { grid-column: 1; }
  .game-management-grid { grid-template-columns: 1fr; }
  .center-balance-card { position: static; }
  .api-grid { grid-template-columns: 1fr 1fr; }
  .api-doc-hero { grid-template-columns: 1fr; }
  .api-doc-layout { grid-template-columns: 1fr; }
  .api-flow { grid-template-columns: repeat(3,1fr); }
  .api-socket-callout { grid-template-columns: 62px 1fr; }
  .socket-rules { grid-column: 1 / -1; }
  .advanced-order-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .fanout-control { grid-template-columns: 1fr; }.fanout-control form { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 920px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-brand { min-height: 440px; padding: 28px 32px 24px; }
  .login-hero { grid-template-columns: minmax(310px,1fr) 190px; gap: 12px; padding: 34px 0 12px; }
  .login-hero-copy h1 { font-size: 44px; }
  .login-copy { max-width: 480px; margin: 20px 0; font-size: 13px; }
  .mascot-scene { min-height: 275px; }
  .mascot-scene img { width: 185px; max-height: 300px; }
  .mascot-message { display: none; }
  .login-panel { min-height: 680px; padding: 86px 32px 72px; }
  .login-panel-nav { top: 28px; right: 32px; left: 32px; }
}
@media (max-width: 760px) {
  .login-brand { min-height: 385px; padding: 24px 22px 19px; }
  .login-wordmark { gap: 10px; }
  .brand-logo-image { width: 72px; height: 72px; border-radius: 11px; }
  .login-logo-mark { width: 40px; height: 40px; border-radius: 13px 5px; font-size: 11px; }
  .login-wordmark strong { font-size: 16px; }
  .login-service { padding: 7px 9px; font-size: 9px; }
  .login-hero { grid-template-columns: minmax(235px,1fr) 110px; align-items: end; padding: 28px 0 5px; }
  .login-hero-copy h1 { font-size: clamp(31px,8.5vw,39px); line-height: 1.18; }
  .login-copy { margin: 17px 0 0; font-size: 12px; line-height: 1.75; }
  .brand-points { display: none; }
  .mascot-scene { min-height: 205px; }
  .mascot-scene img { width: 132px; max-width: none; max-height: 220px; }
  .login-brand-footer { padding-top: 13px; }
  .login-brand-footer span:first-child { display: none; }
  .login-panel { min-height: 650px; padding: 82px 20px 68px; }
  .login-panel-nav { top: 25px; right: 22px; left: 22px; }
  .login-card, .admin-login-card { padding: 30px 24px; border-radius: 22px; }
  .login-copyright { bottom: 22px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 50; left: -260px; width: 248px; transition: left .2s ease; }
  .sidebar.open { left: 0; box-shadow: 20px 0 60px rgba(8,24,44,.25); }
  .main { padding: 0 18px 36px; }
  .menu-button { display: block; font-size: 21px; }
  .topbar { min-height: 78px; }
  .topbar .eyebrow, .environment-chip { display: none; }
  .topbar h2 { font-size: 19px; }
  .metric-grid, .form-grid, .api-grid { grid-template-columns: 1fr; }
  .account-metrics,.admin-role-picker { grid-template-columns: 1fr; }
  .current-admin-chip { display: none; }
  .span-2 { grid-column: auto; }
  .intro-row { align-items: stretch; flex-direction: column; }
  .quote-lines { grid-template-columns: 1fr; }
  .table-toolbar { align-items: stretch; flex-direction: column; }
  .detail-summary { grid-template-columns: 1fr; }
  .search { max-width: none; }
  .api-flow { grid-template-columns: 1fr; }
  .api-flow li:not(:last-child)::after { display: none; }
  .api-endpoint { grid-template-columns: 68px 1fr; }
  .api-endpoint > span { grid-column: 2; }
  .choice-card-group { grid-template-columns: 1fr; }
  .contact-field-grid { grid-template-columns: 1fr; }
  .fanout-control form { grid-template-columns: 1fr; }.ui-number-control { width: max-content; }
  .advanced-order-filters { grid-template-columns: 1fr; }
  .filter-wide,.date-range-component { grid-column: auto; }
  .filter-actions { justify-content: stretch; }.filter-actions .button { flex: 1; }
  .api-socket-callout { grid-template-columns: 1fr; }
  .socket-pulse { display: none; }
  .socket-rules,.socket-step-list { grid-template-columns: 1fr; }
  .socket-step-list > div { border-right: 0; }
}
@media (max-width: 440px) {
  .login-service { font-size: 0; }
  .login-service i { margin: 1px; }
  .login-hero { grid-template-columns: minmax(220px,1fr) 82px; }
  .mascot-scene img { width: 112px; }
  .login-brand-footer { font-size: 9px; }
  .login-options { align-items: flex-start; }
  .secure-login { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
