:root {
  --ink: #172033;
  --muted: #68758a;
  --line: #e3e8ef;
  --surface: #ffffff;
  --canvas: #f4f6f9;
  --nav: #172338;
  --nav-muted: #97a5bb;
  --accent: #2878c8;
  --accent-dark: #1d5d9e;
  --success: #19734b;
  --success-bg: #e8f6ee;
  --warning: #9b6415;
  --warning-bg: #fff5df;
  --danger: #b42318;
  --danger-bg: #fff0ee;
  --radius: 7px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; }
input, button, textarea, select { font: inherit; }
button, .button-link { border: 1px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: #fff; padding: 8px 13px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; min-height: 36px; white-space: nowrap; }
button:hover, .button-link:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
button.secondary, .button-link.secondary { background: #fff; border-color: #cbd5e1; color: #3d4b61; }
button.secondary:hover, .button-link.secondary:hover { background: #f7f9fb; }
button.danger { background: var(--danger); border-color: var(--danger); }
button.danger:hover { background: #8e1e15; border-color: #8e1e15; }
button.small { min-height: 30px; padding: 5px 9px; font-size: 12px; }
a { color: var(--accent-dark); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; letter-spacing: 0; margin-bottom: 5px; }
h2 { font-size: 16px; letter-spacing: 0; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: var(--radius); background: #fff; color: var(--ink); padding: 9px 10px; outline: none; }
input[type="checkbox"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
input[type="radio"] { width: 16px; height: 16px; padding: 0; accent-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(40,120,200,.12); }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: middle; }
th { color: #5d6b7e; background: #fafbfc; font-size: 12px; font-weight: 600; white-space: nowrap; }
tbody tr:hover { background: #fbfdff; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: #eef3f8; }
.login-panel { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 34px; box-shadow: 0 14px 35px rgba(30,48,76,.08); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.login-brand .brand-mark { width: 42px; height: 42px; }
.login-panel h1 { font-size: 21px; margin-bottom: 4px; }
.login-panel .subtle { color: var(--muted); margin: 0; }
.login-panel label, .tool-form label { display: grid; gap: 7px; color: #536176; font-size: 13px; font-weight: 600; }
.login-panel form { display: grid; gap: 17px; }
.login-panel button { width: 100%; margin-top: 3px; }
.form-error { color: var(--danger); background: var(--danger-bg); border: 1px solid #f5c4bf; border-radius: 6px; padding: 9px 10px; margin: 0; }

.admin-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.admin-nav { display: flex; flex-direction: column; background: var(--nav); color: #fff; padding: 24px 16px 18px; min-height: 100vh; max-height: 100vh; overflow-y: auto; position: sticky; top: 0; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 10px 28px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #4c99dc; color: #fff; font-weight: 800; font-size: 19px; }
.brand { font-weight: 700; font-size: 17px; line-height: 1.1; }
.brand-subtitle { color: var(--nav-muted); font-size: 11px; margin-top: 4px; }
.admin-nav nav { display: grid; gap: 4px; }
.nav-caption { color: #71819a; font-size: 11px; font-weight: 700; letter-spacing: .05em; padding: 13px 12px 5px; }
.admin-nav a { color: #cbd6e6; text-decoration: none; padding: 11px 12px; border-radius: 6px; display: flex; align-items: center; gap: 10px; }
.admin-nav a:hover, .admin-nav a.active { color: #fff; background: rgba(87,153,212,.2); }
.nav-icon { color: #94bce0; width: 18px; text-align: center; font-size: 16px; }
.nav-footer { margin-top: auto; padding: 16px 10px 0; border-top: 1px solid rgba(255,255,255,.1); }
.secure-dot { color: #9db0c9; font-size: 12px; display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.secure-dot span { width: 7px; height: 7px; background: #57c98c; border-radius: 50%; }
.logout-link { padding: 0 !important; color: #aab7c9 !important; font-size: 12px; }

.admin-content { min-width: 0; padding: 28px clamp(18px, 3vw, 42px) 42px; overflow-x: auto; }
.page-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
.page-kicker { color: var(--accent-dark); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.page-subtitle { color: var(--muted); margin: 0; }
.topbar-meta { text-align: right; color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar-meta strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 4px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-height: 112px; }
.metric-card .metric-label { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.metric-card strong { display: block; color: var(--ink); font-size: 28px; line-height: 1; margin-top: 18px; }
.metric-card .metric-note { color: var(--muted); font-size: 11px; margin-top: 8px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-heading { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-heading h2 { margin: 0; }
.panel-body { padding: 18px; }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { justify-content: flex-start; color: #34445b; background: #f8fafc; border-color: var(--line); }
.quick-actions a:has(span) { display: grid; gap: 3px; padding: 12px 14px; }
.quick-actions a span { color: var(--muted); font-size: 11px; font-weight: 400; }
.quick-actions .quick-action-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.quick-actions .quick-action-primary span { color: rgba(255,255,255,.78); }
.quick-actions a:hover { color: var(--accent-dark); background: #f1f7fd; }

.filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; padding: 15px 16px; background: #fbfcfd; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.filters label { min-width: 160px; flex: 1 1 180px; display: grid; gap: 6px; color: #5b687b; font-size: 12px; font-weight: 600; }
.filters .filter-action { flex: 0 0 auto; }
.table-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table-scroll { overflow-x: auto; }
.table-panel table { min-width: 760px; }
.table-panel .table-empty { padding: 34px; text-align: center; color: var(--muted); }
.tool-form { display: grid; grid-template-columns: 120px 120px minmax(180px, 1fr) auto; gap: 12px; align-items: end; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.tool-form h2 { grid-column: 1 / -1; margin: 0 0 2px; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stacked-form { grid-template-columns: 1fr; align-items: stretch; margin: 0; }
.stacked-form button { justify-self: start; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-line { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.bulk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.bulk-toolbar select { width: 150px; }
.bulk-toolbar label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.bulk-toolbar label input { width: 78px; }
.section-gap { margin-top: 18px; }
.release-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); align-items: end; }
.release-form h2 { grid-column: 1 / -1; }
.tool-form .wide { min-width: 220px; }
.blacklist-form { grid-template-columns: minmax(240px, 1fr) minmax(300px, 2fr) auto; }
.blacklist-form .wide { min-width: 0; }
.generated-box { margin-bottom: 16px; background: #f7fbff; border: 1px solid #cfe2f5; border-radius: var(--radius); padding: 16px; }
.generated-box h2 { margin-bottom: 10px; }
.generated-box textarea { min-height: 126px; font-family: Consolas, monospace; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; min-width: 190px; }
.actions form { display: flex; gap: 5px; align-items: center; }
.actions input { width: 64px; padding: 5px 7px; min-height: 30px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 150px; }
.product-tags span { color: #345a7d; background: #eef6fd; border: 1px solid #d6e8f8; border-radius: 5px; padding: 3px 6px; font-size: 11px; white-space: nowrap; }
.table-edit-input { min-width: 96px; padding: 6px 7px; }
.compact-number { width: 86px; min-width: 86px; }
.compact-check { margin-top: 6px; white-space: nowrap; font-size: 11px; color: var(--muted); }
.license-key-cell { min-width: 285px; }
.license-key-cell code { color: var(--ink); font-family: Consolas, monospace; font-size: 12px; white-space: nowrap; }
.copy-key { margin-left: 8px; }
.legacy-key-note { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.mono { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.mono-compact { font-family: Consolas, monospace; font-size: 11px; color: #536176; white-space: nowrap; }
.detail-cell { max-width: 360px; color: #536176; overflow-wrap: anywhere; word-break: break-word; line-height: 1.5; }
.alerts-table { min-width: 1180px; table-layout: fixed; }
.alerts-table th:nth-child(1) { width: 150px; }
.alerts-table th:nth-child(2) { width: 70px; }
.alerts-table th:nth-child(3) { width: 140px; }
.alerts-table th:nth-child(4) { width: 155px; }
.alerts-table th:nth-child(5) { width: 165px; }
.alerts-table th:nth-child(7) { width: 90px; }
.alerts-table th:nth-child(8) { width: 250px; }
.alerts-table td:nth-child(7) { white-space: nowrap; }
.alerts-table .detail-cell { max-width: none; }
.alerts-table .actions { min-width: 0; }
.integrity-drop-zone { border: 2px dashed #a9bfd4; border-radius: var(--radius); background: #f7fbff; color: #47617b; padding: 22px; text-align: center; display: grid; gap: 7px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.integrity-drop-zone strong { color: var(--ink); font-size: 15px; }
.integrity-drop-zone span, .integrity-drop-zone small { color: var(--muted); }
.integrity-drop-zone.drag-active { border-color: var(--accent); background: #eef7ff; box-shadow: 0 0 0 4px rgba(40,120,200,.10); }
.integrity-drop-zone.is-working { cursor: wait; opacity: .8; }
.status-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.status-success, .status-online { color: var(--success); background: var(--success-bg); }
.status-warning, .status-offline { color: var(--warning); background: var(--warning-bg); }
.status-danger, .status-kicked, .status-revoked { color: var(--danger); background: var(--danger-bg); }
.status-neutral, .status-disabled { color: #59677b; background: #eef1f5; }
.muted { color: var(--muted); }
.notice { padding: 11px 13px; border-radius: 6px; background: #f1f7fd; color: #345a7d; border: 1px solid #cfe2f5; margin-bottom: 16px; }
.danger-zone { margin-top: 18px; padding-top: 16px; border-top: 1px solid #efd0cd; }
.danger-zone strong { color: var(--danger); font-size: 13px; }
.danger-zone p { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.security-panel { max-width: 620px; }
.settings-form { display: grid; gap: 15px; }
.settings-form label { display: grid; gap: 7px; color: #536176; font-size: 13px; font-weight: 600; }
.settings-form label small { color: var(--muted); font-size: 11px; font-weight: 400; }
.settings-form button { justify-self: start; }

.topbar-actions { display: flex; align-items: end; gap: 10px; }
.product-picker label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.product-picker select { min-width: 190px; background: #fff; }
.product-switcher { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 12px; margin: -2px 0 12px; }
.product-switcher a { min-width: 180px; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.product-switcher a.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(40,120,200,.1); }
.product-switcher strong, .product-switcher small { display: block; }
.product-switcher small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.product-avatar { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; flex: 0 0 auto; color: #176347; background: #e8f6ee; font-weight: 700; }
.compact-metrics { margin-top: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel-heading p { color: var(--muted); font-size: 12px; margin: 5px 0 0; }
.field-caption { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); background: #f8fafc; border-radius: var(--radius); margin-bottom: 14px; }
.copy-field code { flex: 1; font-family: Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.icon-button { width: 30px; min-width: 30px; min-height: 30px; padding: 0; border-color: transparent; background: transparent; color: #536176; font-size: 18px; }
.icon-button:hover { color: var(--accent-dark); border-color: var(--line); background: #f4f7fa; }
.empty-state { border: 1px dashed #cbd5e1; text-align: center; padding: 50px 20px; background: #fff; border-radius: var(--radius); }
.empty-state p { color: var(--muted); }
.app-dialog { width: min(520px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: 0 24px 70px rgba(23,32,51,.25); }
.app-dialog::backdrop { background: rgba(23,32,51,.48); }
.dialog-form { display: grid; gap: 16px; padding: 20px; }
.dialog-form header, .dialog-form footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-form header { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.dialog-form footer { justify-content: flex-end; border-top: 1px solid var(--line); padding-top: 15px; }
.dialog-form h2, .dialog-form p { margin: 0; }
.dialog-form p, .dialog-form small { color: var(--muted); font-size: 12px; }
.dialog-form label, .generator-fields label, .update-form label { display: grid; gap: 7px; color: #536176; font-size: 13px; font-weight: 600; }
.wizard-dialog { width: min(600px, calc(100% - 28px)); }
.dialog-form [hidden] { display: none !important; }
.wizard-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; margin: 0; list-style: none; counter-reset: wizard; }
.wizard-progress li { position: relative; padding-top: 22px; color: var(--muted); font-size: 12px; text-align: center; border-top: 3px solid var(--line); }
.wizard-progress li.active { color: var(--accent-dark); border-color: var(--accent); font-weight: 700; }
.wizard-step { display: grid; gap: 15px; min-height: 190px; align-content: start; padding: 4px 0; }
.wizard-step[hidden] { display: none; }
.wizard-summary { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.wizard-summary ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: #46566d; }
.product-checkboxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; margin: 0; padding: 0; border: 0; }
.product-checkboxes legend { grid-column: 1 / -1; color: #536176; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.product-checkboxes label { display: flex; align-items: flex-start; gap: 9px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfd; cursor: pointer; }
.product-checkboxes input { flex: 0 0 auto; margin-top: 2px; }
.product-checkboxes span { min-width: 0; }
.product-checkboxes strong, .product-checkboxes small { display: block; overflow-wrap: anywhere; }
.product-checkboxes small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }
.generator-panel { margin-bottom: 16px; }
.generator-form { padding: 18px; }
.license-type-picker { border: 0; padding: 0; margin: 0 0 16px; }
.license-type-picker legend { color: #536176; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.license-type-picker { display: grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); gap: 8px; }
.license-type-picker legend { grid-column: 1 / -1; }
.license-type-picker label { position: relative; cursor: pointer; }
.license-type-picker input { position: absolute; opacity: 0; pointer-events: none; }
.license-type-picker span { display: block; min-height: 63px; padding: 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.license-type-picker strong, .license-type-picker small { display: block; }
.license-type-picker small { color: var(--muted); margin-top: 5px; font-size: 11px; }
.license-type-picker input:checked + span { border-color: var(--accent); background: #f1f7fd; box-shadow: 0 0 0 2px rgba(40,120,200,.1); }
.generator-fields { display: grid; grid-template-columns: 130px 130px minmax(220px, 1fr) auto; align-items: end; gap: 10px; }
.generator-fields [hidden] { display: none; }
.generated-box { padding: 0; overflow: hidden; }
.generated-box textarea { margin: 14px; width: calc(100% - 28px); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.plan-card.is-disabled { opacity: .72; }
.plan-card-footer { padding: 12px 18px; border-top: 1px solid var(--line); }
.switch-line { display: flex !important; align-items: center; justify-content: space-between; gap: 18px !important; padding: 11px 0; }
.switch-line span, .switch-line strong, .switch-line small { display: block; }
.switch-line small { color: var(--muted); font-weight: 400; margin-top: 4px; }
.switch-line input { flex: 0 0 auto; }
.update-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.update-form .wide { grid-column: 1 / -1; }
.update-form button { justify-self: start; }
.announcement-layout { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
.announcement-list { display: grid; gap: 12px; }
.announcement-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; }
.announcement-item header, .announcement-item footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.announcement-item time, .announcement-item footer { color: var(--muted); font-size: 11px; }
.announcement-item h2 { margin: 14px 0 8px; }
.announcement-item p { color: #536176; line-height: 1.7; white-space: pre-wrap; }
.security-summary { display: grid; gap: 0; }
.security-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.security-summary span { color: var(--muted); }
.security-summary .button-link { justify-self: start; margin-top: 16px; }
.checklist { display: grid; gap: 12px; }
.checklist label { display: flex; align-items: center; gap: 9px; color: #536176; }
.agent-shell { min-height: 100vh; background: var(--canvas); }
.agent-header { height: 72px; background: var(--nav); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 52px); }
.agent-header .brand-block { padding: 0; }
.agent-header > div:last-child { display: flex; align-items: center; gap: 18px; }
.agent-header a { color: #cbd6e6; }
.agent-content { width: min(1280px, 100%); margin: 0 auto; padding: 28px clamp(16px, 3vw, 36px) 50px; }
.agent-generator { display: grid; grid-template-columns: minmax(180px, 1fr) 120px minmax(220px, 1fr) auto; align-items: end; gap: 12px; }
.agent-generator label { display: grid; gap: 7px; color: #536176; font-size: 13px; font-weight: 600; }

@media (max-width: 1080px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: repeat(2, minmax(270px, 1fr)); }
  .license-type-picker { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { min-height: auto; padding: 14px; }
  .brand-block { padding-bottom: 14px; }
  .admin-nav nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav-caption { display: none; }
  .admin-nav a { padding: 8px 9px; font-size: 12px; }
  .nav-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; }
  .secure-dot { margin: 0; }
  .admin-content { padding: 22px 14px 30px; }
  .page-topbar { display: block; }
  .page-topbar > button, .page-topbar > .product-picker, .topbar-actions { margin-top: 14px; }
  .topbar-actions { align-items: stretch; flex-wrap: wrap; }
  .topbar-meta { text-align: left; margin-top: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric-card { padding: 14px; min-height: 96px; }
  .metric-card strong { font-size: 24px; margin-top: 14px; }
  .tool-form { grid-template-columns: 1fr 1fr; }
  .form-columns { grid-template-columns: 1fr; }
  .settings-grid, .announcement-layout { grid-template-columns: 1fr; }
  .generator-fields { grid-template-columns: 1fr 1fr; }
  .generator-fields .wide, .generator-fields button { grid-column: 1 / -1; }
  .plan-grid { grid-template-columns: 1fr; }
  .release-form { grid-template-columns: 1fr 1fr; }
  .release-form label:last-of-type, .release-form button { grid-column: 1 / -1; }
  .tool-form .wide, .tool-form button { grid-column: 1 / -1; }
  .blacklist-form { grid-template-columns: 1fr; }
  .blacklist-form .wide, .blacklist-form button { grid-column: auto; }
  .agent-generator { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .tool-form { grid-template-columns: 1fr; }
  .release-form { grid-template-columns: 1fr; }
  .release-form label:last-of-type, .release-form button { grid-column: auto; }
  .tool-form .wide, .tool-form button { grid-column: auto; }
  .login-panel { padding: 25px 20px; }
  .agent-generator { grid-template-columns: 1fr; }
  .license-type-picker { grid-template-columns: repeat(2, 1fr); }
  .generator-fields, .update-form, .split-fields { grid-template-columns: 1fr; }
  .generator-fields .wide, .generator-fields button, .update-form .wide { grid-column: auto; }
}
