:root {
  --navy-950: #08172d;
  --navy-900: #0d2340;
  --navy-800: #14335a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1ff;
  --ink: #162337;
  --muted: #6b7a90;
  --line: #e6ebf2;
  --surface: #ffffff;
  --page: #f5f7fb;
  --success: #16805c;
  --success-bg: #eaf8f2;
  --warning: #ae6c00;
  --warning-bg: #fff6df;
  --danger: #c53b4c;
  --danger-bg: #fff0f2;
  --purple: #7357bd;
  --shadow: 0 8px 28px rgba(17, 41, 76, .08);
  --radius: 12px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--page); }
body { font-size: 14px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .62; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(circle at 50% 0%, #1c416f 0, var(--navy-950) 58%); }
.auth-card { width: min(430px, 100%); padding: 42px 42px 34px; background: rgba(255,255,255,.98); border-radius: 18px; box-shadow: 0 22px 70px rgba(0, 12, 35, .32); }
.brand-mark { width: 54px; height: 54px; display: grid; place-items: center; color: #fff; border-radius: 15px; background: linear-gradient(145deg, #2b78e7, #173a71); font-size: 27px; font-weight: 700; box-shadow: 0 8px 18px rgba(37,99,235,.28); }
.brand-mark-small { width: 38px; height: 38px; border-radius: 10px; font-size: 19px; box-shadow: none; }
.auth-card .brand-mark { margin-bottom: 27px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.auth-card h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.auth-card > .muted { margin: 8px 0 28px; }
.stack-form, .modal-form { display: grid; gap: 17px; }
.form-field { display: grid; gap: 7px; }
.form-field label, .field-label { color: #37475d; font-size: 13px; font-weight: 700; }
.form-field small, .field-help { color: var(--muted); font-size: 12px; line-height: 1.55; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid #d7deea; border-radius: 8px; background: #fff; outline: none; transition: border-color .16s, box-shadow .16s; }
input, select { min-height: 42px; padding: 9px 12px; }
textarea { min-height: 104px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #4b83ed; box-shadow: 0 0 0 3px rgba(37,99,235,.11); }
input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; accent-color: var(--blue); }
input[type="color"] { width: 52px; height: 42px; padding: 3px; }
input[type="file"] { padding: 8px; }
.form-error { margin: 0; color: var(--danger); font-size: 13px; }
.auth-note { margin: 27px 0 0; padding-top: 17px; color: #8995a5; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 238px; display: flex; flex-direction: column; padding: 25px 14px 16px; color: #c5d1e5; background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 13px 29px; color: #fff; }
.sidebar-brand strong { display: block; font-size: 15px; letter-spacing: .04em; }
.sidebar-brand small { display: block; margin-top: 2px; color: #7792b5; font-size: 11px; }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin: 0 7px 26px; padding: 13px 11px; border: 1px solid rgba(150,180,220,.13); border-radius: 10px; background: rgba(255,255,255,.05); }
.sidebar-user strong { display: block; color: #fff; font-size: 13px; }
.sidebar-user small { display: block; margin-top: 2px; color: #8da3c2; font-size: 11px; }
.avatar { flex: none; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; color: #ddebff; background: #265b9e; font-size: 13px; font-weight: 700; }
.primary-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #9eb3cf; border: 0; border-radius: 8px; background: transparent; text-align: left; transition: .16s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.is-active { color: #fff; background: linear-gradient(90deg, #225a9e, #1b497f); box-shadow: inset 3px 0 0 #65a3ff; }
.nav-icon { width: 18px; color: #8fb2e6; font-size: 17px; font-weight: 700; text-align: center; }
.nav-item.is-active .nav-icon { color: #b9d7ff; }
.nav-item em { min-width: 22px; margin-left: auto; padding: 2px 5px; color: #bcd5f5; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11px; font-style: normal; text-align: center; }
.sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(180,203,236,.12); }
.nav-link { display: flex; }
.logout-button { display: flex; align-items: center; gap: 12px; min-height: 40px; margin-top: 7px; padding: 0 12px; color: #91a8c8; border: 0; background: transparent; text-align: left; }
.logout-button:hover { color: #fff; }
.logout-button span { width: 18px; font-size: 18px; text-align: center; }
.workspace { width: calc(100% - 238px); min-height: 100vh; margin-left: 238px; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.breadcrumb { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-size: 15px; }
.breadcrumb-separator { color: #a9b6c8; }
.topbar-actions { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.server-clock { margin-right: 10px; font-variant-numeric: tabular-nums; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #23a26d; box-shadow: 0 0 0 3px #e4f6ed; }
.status-text { color: var(--success); }
.workspace-content { padding: 33px 42px 56px; }
.page-view { display: none; max-width: 1500px; margin: 0 auto; }
.page-view.is-active { display: block; }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: 27px; letter-spacing: -.035em; }
.page-heading p { margin: 6px 0 0; color: var(--muted); }
.heading-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; color: #46566c; border: 1px solid #d8e0eb; border-radius: 8px; background: #fff; font-weight: 700; transition: .15s; }
.button:hover { border-color: #a9b9ce; background: #f7f9fc; }
.button-primary { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 5px 12px rgba(37,99,235,.16); }
.button-primary:hover { border-color: var(--blue-dark); background: var(--blue-dark); }
.button-secondary { color: #245b9e; border-color: #c9daf3; background: #f4f8ff; }
.button-danger { color: var(--danger); border-color: #f0cbd1; background: #fff7f8; }
.button-quiet { color: var(--muted); border-color: transparent; background: transparent; }
.button-small { min-height: 31px; padding: 0 10px; font-size: 12px; }
.button-block { width: 100%; min-height: 44px; }
.icon-button { width: 33px; height: 33px; display: grid; place-items: center; color: #74839a; border: 0; border-radius: 7px; background: transparent; font-size: 24px; line-height: 1; }
.icon-button:hover { color: var(--ink); background: #f1f4f8; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 2px 5px rgba(31,52,79,.02); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { margin: 0; color: #223249; font-size: 15px; }
.card-header small { color: var(--muted); font-size: 12px; }
.card-body { padding: 21px; }
.dashboard-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; padding: 27px 29px; color: #fff; border-radius: 14px; background: linear-gradient(115deg, #122f55 0%, #1b4a82 68%, #2268af 100%); box-shadow: 0 12px 28px rgba(13,35,64,.15); }
.dashboard-hero h1 { margin: 0; font-size: 26px; letter-spacing: -.04em; }
.dashboard-hero p { margin: 6px 0 0; color: #b8cee8; }
.dashboard-hero .button { color: #dceaff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); }
.dashboard-hero .button:hover { background: rgba(255,255,255,.16); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { min-height: 125px; padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-icon { width: 29px; height: 29px; display: grid; place-items: center; color: #326fc0; border-radius: 8px; background: #eef5ff; font-size: 15px; }
.stat-value { display: block; margin-top: 13px; color: #1d2e45; font-size: 28px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-meta { margin-top: 4px; color: #8b98a8; font-size: 11px; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); gap: 20px; }
.dashboard-stack { display: grid; gap: 20px; }
.warning-list, .audit-list { display: grid; }
.warning-item, .audit-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 21px; border-bottom: 1px solid #eef1f5; }
.warning-item:last-child, .audit-item:last-child { border-bottom: 0; }
.warning-mark { width: 25px; height: 25px; display: grid; place-items: center; flex: none; color: var(--warning); border-radius: 7px; background: var(--warning-bg); font-weight: 800; }
.warning-item strong, .audit-item strong { display: block; color: #314157; font-size: 13px; }
.warning-item span, .audit-item span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.audit-item time { margin-left: auto; flex: none; color: #97a4b5; font-size: 11px; }
.scheduler-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 21px; }
.scheduler-line strong { color: #263b55; }
.scheduler-line span { color: var(--muted); font-size: 12px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.filters input, .filters select { width: auto; min-width: 125px; min-height: 37px; padding-top: 7px; padding-bottom: 7px; font-size: 13px; }
.filters .search-input { min-width: 220px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 13px 19px; color: #748398; border-bottom: 1px solid var(--line); background: #fbfcfe; font-size: 11px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
td { padding: 15px 19px; color: #43536a; border-bottom: 1px solid #edf0f4; font-size: 13px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdff; }
.table-primary { color: #233650; font-weight: 700; }
.table-secondary { display: block; margin-top: 3px; color: #8794a5; font-size: 11px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-success { color: var(--success); background: var(--success-bg); }
.badge-warning { color: var(--warning); background: var(--warning-bg); }
.badge-danger { color: var(--danger); background: var(--danger-bg); }
.badge-neutral { color: #68788f; background: #eef1f5; }
.badge-blue { color: #2d63ac; background: var(--blue-soft); }
.badge-purple { color: var(--purple); background: #f1edff; }
.site-title-cell { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.site-dot { width: 10px; height: 10px; flex: none; border-radius: 50%; box-shadow: 0 0 0 4px rgba(37,99,235,.08); }
.code-chip { display: inline-block; margin-left: 6px; padding: 2px 5px; color: #8591a2; border-radius: 4px; background: #f0f2f6; font-size: 10px; font-family: Consolas, monospace; }
.check-list { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; color: #53657b; border: 1px solid #dce3ed; border-radius: 7px; background: #fff; font-size: 12px; }
.check-pill:has(input:checked) { color: #225da5; border-color: #a9c8ee; background: #f2f7ff; }

.state-card { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 35px; border: 1px dashed #dce3ed; border-radius: var(--radius); background: #fff; color: var(--muted); }
.state-card strong { color: #42536a; }
.empty-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 4px; color: #9fb2ca; border: 2px solid #cbd7e5; border-radius: 50%; font-size: 20px; }
.loading-state { min-height: 180px; flex-direction: row; }
.spinner { width: 18px; height: 18px; display: inline-block; border: 2px solid #d6e3f6; border-top-color: var(--blue); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-state { color: var(--danger); border-color: #f0cbd1; background: #fffafa; }
.error-state strong { color: var(--danger); }
.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 19px; color: var(--muted); font-size: 12px; }
.pagination .button { min-width: 32px; min-height: 30px; padding: 0 8px; }
.page-number { padding: 0 8px; font-variant-numeric: tabular-nums; }

.draw-number-list { display: flex; flex-wrap: wrap; gap: 4px; }
.draw-number { width: 25px; height: 25px; display: grid; place-items: center; color: #27528d; border-radius: 50%; background: #edf4ff; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.draw-number.hidden-number { color: #9caabd; background: #f0f2f5; }
.correction-note { margin-top: 4px; color: var(--danger); font-size: 11px; }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; color: #73521a; border: 1px solid #f2dfab; border-radius: 8px; background: #fff9e8; font-size: 12px; }
.callout strong { display: block; margin-bottom: 2px; color: #654b17; }

.modal-layer { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 20, 40, .56); backdrop-filter: blur(2px); }
.modal { position: relative; width: min(700px, 100%); max-height: calc(100vh - 44px); display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; background: #fff; box-shadow: 0 25px 70px rgba(2,12,29,.3); }
.modal.modal-wide { width: min(950px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 26px 18px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; color: #1c2d43; font-size: 20px; letter-spacing: -.03em; }
.modal-body { overflow-y: auto; padding: 23px 26px 26px; }
.modal-form { gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 5px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; color: #506177; font-size: 13px; }
.checkbox-row input { margin-top: 2px; }
.checkbox-row strong { display: block; color: #3b4e65; }
.checkbox-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.switch-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border: 1px solid #e2e7ef; border-radius: 8px; background: #fbfcfe; }
.switch-line + .switch-line { margin-top: 8px; }
.switch-line .checkbox-row { flex: 1; }
.lottery-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.number-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.number-grid input { padding: 8px 4px; text-align: center; font-weight: 700; }
.upload-row { display: flex; align-items: center; gap: 8px; }
.upload-row input { flex: 1; }
.upload-row .button { flex: none; }
.json-editor { min-height: 160px; color: #304663; background: #f8fafc; font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 22px; margin-bottom: 22px; }
.detail-item dt { color: #8996a8; font-size: 11px; }
.detail-item dd { margin: 3px 0 0; color: #2b3c53; font-size: 13px; font-weight: 600; word-break: break-word; }
.detail-section { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 11px; color: #2b3d55; font-size: 14px; }
.correction-list { display: grid; gap: 10px; }
.correction-card { padding: 12px 14px; border: 1px solid #f0dadd; border-radius: 8px; background: #fff8f9; }
.correction-card p { margin: 5px 0 0; color: #6f4a52; font-size: 12px; }
.source-error { max-width: 260px; color: var(--danger); font-size: 11px; word-break: break-word; }

/* 共用交互状态与辅助排版 */
body.modal-open { overflow: hidden; }
fieldset { min-width: 0; margin: 0; padding: 12px 0 0; border: 0; }
legend { padding: 0; color: #37475d; font-size: 13px; font-weight: 700; }
:focus-visible { outline: 3px solid #83b4ff; outline-offset: 3px; }
.sidebar { overflow-y: auto; }
.workspace, .card, .card-body, .dashboard-stack, .form-field { min-width: 0; }
.card { overflow: hidden; }
.table-wrap { max-width: 100%; }
td { overflow-wrap: anywhere; }
.table-actions { min-width: 160px; }
.text-link { color: #2563ae; text-decoration: underline; text-underline-offset: 3px; }
.mini-tag { display: inline-block; margin: 2px; padding: 3px 6px; border-radius: 4px; background: #f0f4fa; color: #557095; font-size: 11px; white-space: nowrap; }
.binding-help { margin-bottom: 20px; }
.filter-card { padding: 17px 19px; margin-bottom: 18px; }
.filters { align-items: flex-end; }
.filters .form-field { flex: 0 1 160px; }
.filters input, .filters select { width: 100%; }
.filter-actions { display: flex; gap: 8px; align-items: center; }
.section-heading { margin: 28px 0 16px; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.password-card { max-width: 620px; }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.json-detail { max-height: 400px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; font: 12px/1.7 Consolas, monospace; }
.error-detail { color: var(--danger); }
.content-preview { display: block; max-width: 100%; max-height: 320px; object-fit: contain; margin-bottom: 12px; border-radius: 8px; border: 1px solid var(--line); }
.url-cell { max-width: 300px; overflow-wrap: anywhere; }
.mapping-help { color: var(--muted); font-size: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 11px 13px; }
.mapping-help summary { cursor: pointer; color: #335980; font-weight: 700; }
.toast-region { position: fixed; z-index: 100; top: 18px; right: 22px; width: min(430px, calc(100vw - 36px)); display: grid; gap: 9px; pointer-events: none; }
.toast { padding: 14px 18px; color: #165c43; border: 1px solid #b6dfce; border-radius: 10px; background: #f2fcf7; box-shadow: var(--shadow); overflow-wrap: anywhere; white-space: pre-wrap; }
.toast-error { color: #9f2e3d; border-color: #efc4ca; background: #fff5f6; }
.status-dot.is-error { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.status-text.is-error { color: var(--danger); }
form[aria-busy="true"] { opacity: .8; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation-duration: 1.8s !important; } }

@media (max-width: 1120px) {
  .sidebar { width: 205px; }
  .workspace { width: calc(100% - 205px); margin-left: 205px; }
  .topbar, .workspace-content { padding-left: 27px; padding-right: 27px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-columns { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; min-height: auto; padding: 13px; }
  .app-shell { display: block; }
  .sidebar-brand { padding: 0 8px 14px; }
  .sidebar-user { display: none; }
  .primary-nav { display: flex; overflow-x: auto; padding-bottom: 3px; }
  .nav-item { width: auto; min-width: max-content; padding: 0 10px; }
  .sidebar-bottom { display: flex; align-items: center; overflow-x: auto; margin-top: 8px; padding-top: 9px; }
  .sidebar-bottom .nav-item { display: flex; }
  .logout-button { margin: 0 0 0 auto; }
  .workspace { width: 100%; margin-left: 0; }
  .topbar { height: 61px; padding: 0 17px; }
  .topbar-actions .status-text, .server-clock { display: none; }
  .workspace-content { padding: 22px 15px 42px; }
  .page-heading { display: block; margin-bottom: 20px; }
  .heading-actions { margin-top: 15px; }
  .stat-grid { gap: 10px; }
  .stat-card { min-height: 110px; padding: 14px; }
  .stat-value { font-size: 23px; }
  .dashboard-hero { display: block; padding: 22px; }
  .dashboard-hero .button { margin-top: 15px; }
  .form-grid, .form-grid.three, .detail-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .modal-layer { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); }
  .modal-header, .modal-body { padding-left: 17px; padding-right: 17px; }
  .number-grid { gap: 4px; }
  .number-grid input { min-width: 0; }
  .filters .search-input { min-width: 160px; }
  th, td { padding-left: 12px; padding-right: 12px; }
}
