:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  color: #152536;
  background: #f4f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --ink: #152536;
  --muted: #6b7b8c;
  --faint: #94a3b8;
  --border: #e3eaf1;
  --border-strong: #cfdae5;
  --teal: #0f766e;
  --teal-dark: #0a5c57;
  --teal-soft: #e7f6f3;
  --blue: #2563eb;
  --blue-soft: #edf3ff;
  --amber: #d97706;
  --amber-soft: #fff5df;
  --violet: #7c3aed;
  --violet-soft: #f2edff;
  --danger: #c2414b;
  --danger-dark: #a5323b;
  --danger-soft: #fff0f1;
  --shadow-sm: 0 2px 8px rgba(23, 43, 63, .04);
  --shadow-md: 0 14px 34px rgba(23, 43, 63, .08);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { display: block; width: 20px; height: 20px; }
.hidden { display: none !important; }

.app-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.app-shell.logged-out { grid-template-columns: minmax(0, 1fr); }
.app-shell.logged-out .sidebar { display: none; }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 264px;
  height: 100vh;
  padding: 24px 16px 18px;
  color: #dce9ee;
  background: #102b3b;
  box-shadow: 8px 0 28px rgba(20, 43, 60, .08);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; }
.sidebar-brand > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.sidebar-brand strong { color: #f8ffff; font-size: 16px; letter-spacing: -.01em; }
.sidebar-brand small { color: #9fb4bf; font-size: 11px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #a8f0dc; background: rgba(168, 240, 220, .13); border: 1px solid rgba(168, 240, 220, .24); border-radius: 12px; }
.brand-mark svg { width: 22px; height: 22px; }
.sidebar-close { display: none; margin-left: auto; color: #b2c7d1; }

.sidebar-product { padding: 16px 10px 19px; border-top: 1px solid rgba(214, 234, 240, .12); border-bottom: 1px solid rgba(214, 234, 240, .12); }
.sidebar-product label { display: block; margin-bottom: 8px; color: #a8bdc8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.select-with-icon { position: relative; display: flex; align-items: center; }
.select-with-icon > svg { position: absolute; left: 11px; width: 17px; height: 17px; color: #85c7bc; pointer-events: none; }
.sidebar select { width: 100%; min-height: 42px; padding: 0 28px 0 36px; color: #f4fffc; background: #17394b; border: 1px solid #2c5162; border-radius: 10px; appearance: none; }
.sidebar-product-meta { margin: 8px 0 0 2px; color: #86a5b2; font-size: 11px; }

.sidebar-nav { flex: 1; padding: 25px 0; }
.nav-label { margin: 0 10px 9px; color: #7f9ba8; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 4px 0; padding: 0 12px; color: #a9c0c9; border-radius: 10px; font-size: 13px; font-weight: 650; text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
.nav-link svg { width: 18px; height: 18px; color: #89aab6; }
.nav-link:hover { color: #effffc; background: rgba(160, 222, 208, .1); transform: translateX(2px); }
.nav-link.active { color: #eafff9; background: linear-gradient(90deg, rgba(50, 187, 164, .22), rgba(50, 187, 164, .08)); box-shadow: inset 3px 0 #58d3bd; }
.nav-link.active svg { color: #70e0ca; }

.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 10px 0; color: #86a5b2; font-size: 11px; }
.service-state { display: flex; align-items: center; gap: 7px; min-width: 0; }
.state-dot { display: inline-block; width: 8px; height: 8px; flex: 0 0 auto; background: #718b98; border-radius: 50%; box-shadow: 0 0 0 3px rgba(113, 139, 152, .14); }
.state-dot.active { background: #58d3bd; box-shadow: 0 0 0 3px rgba(88, 211, 189, .15); }
.state-dot.disabled { background: #ef9b83; box-shadow: 0 0 0 3px rgba(239, 155, 131, .14); }
.sidebar-version { color: #698793; white-space: nowrap; }

.sidebar-backdrop { display: none; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 82px; padding: 15px clamp(20px, 3vw, 44px); background: rgba(255, 255, 255, .9); border-bottom: 1px solid rgba(220, 230, 238, .8); backdrop-filter: blur(16px); }
.topbar-title, .topbar-actions, .heading-actions, .list-tools { display: flex; align-items: center; }
.topbar-title { gap: 12px; }
.topbar-actions { gap: 10px; }
.eyebrow, .section-kicker { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
h1, h2, h3, p { margin: 0; }
h1 { color: var(--ink); font-size: 20px; font-weight: 760; letter-spacing: -.025em; }
h2 { color: var(--ink); font-size: clamp(21px, 2vw, 27px); line-height: 1.2; letter-spacing: -.03em; }
h3 { color: var(--ink); font-size: 15px; line-height: 1.3; }
p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.topbar-product-name { max-width: 220px; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.workspace-body { width: min(1440px, 100%); margin: 0 auto; padding: 0 clamp(20px, 3vw, 44px) 68px; }
.menu-button { display: none; }
.icon-button { display: inline-grid; width: 36px; height: 36px; padding: 0; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 9px; }
.icon-button:hover { color: var(--ink); background: var(--surface-muted); border-color: var(--border); }
.icon-button:focus-visible, .button:focus-visible, .nav-link:focus-visible, .quick-action:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, dialog:focus-visible { outline: 3px solid rgba(37, 99, 235, .23); outline-offset: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 14px; color: #2a3b4a; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 12px; font-weight: 700; transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.button svg { width: 16px; height: 16px; }
.button:hover { background: #f8fafc; border-color: #bdcbd7; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .56; transform: none; }
.button.primary { color: #fff; background: var(--teal); border-color: var(--teal); box-shadow: 0 5px 12px rgba(15, 118, 110, .17); }
.button.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.button.quiet { color: var(--muted); background: transparent; border-color: transparent; box-shadow: none; }
.button.quiet:hover { color: var(--ink); background: var(--surface-muted); border-color: var(--border); }
.button.danger { color: var(--danger); background: var(--danger-soft); border-color: #f5c9cd; }
.button.danger:hover { color: var(--danger-dark); background: #ffe5e7; border-color: #edabb1; }
.button.danger-fill { color: #fff; background: var(--danger); border-color: var(--danger); }
.button.danger-fill:hover { background: var(--danger-dark); border-color: var(--danger-dark); }
.button-wide { width: 100%; min-height: 44px; }

.login-view { display: grid; min-height: calc(100vh - 82px); place-items: center; padding: 42px 0 72px; }
.login-card { width: min(430px, 100%); padding: clamp(28px, 5vw, 46px); text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-md); }
.login-illustration { display: grid; width: 62px; height: 62px; margin: 0 auto 22px; place-items: center; color: var(--teal); background: var(--teal-soft); border-radius: 18px; }
.login-illustration svg { width: 31px; height: 31px; }
.login-card .eyebrow { margin-bottom: 8px; }
.login-intro { margin: 11px auto 28px; }
.login-form { display: grid; gap: 10px; text-align: left; }
.login-form label, .field label { color: #435668; font-size: 12px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 42px; padding: 9px 12px; color: var(--ink); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input::placeholder, textarea::placeholder { color: #a0afbd; }
input:focus, select:focus, textarea:focus { border-color: #62bcb0; box-shadow: 0 0 0 4px rgba(15, 118, 110, .1); outline: none; }
input:disabled, select:disabled, textarea:disabled { color: var(--faint); background: #f1f5f8; cursor: not-allowed; }
textarea { resize: vertical; min-height: 98px; font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; line-height: 1.55; }
.message { min-height: 18px; margin: 3px 0 0; color: var(--danger); font-size: 12px; }
.login-form .message { text-align: center; }
.totp-setup { margin-top: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; text-align: center; }
.totp-setup img { display: block; width: 220px; height: 220px; margin: 10px auto; image-rendering: pixelated; }
.totp-setup code { display: block; overflow-wrap: anywhere; user-select: all; }

.dashboard { padding-top: 4px; }
.view-tabs { display: flex; gap: 4px; margin: 18px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); }
.view-tab { min-height: 36px; padding: 0 14px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
.view-tab:hover { color: var(--ink); background: var(--surface-muted); }
.view-tab.active { color: var(--teal-dark); background: var(--teal-soft); }
.view-tab:focus-visible { outline: 3px solid rgba(37, 99, 235, .23); outline-offset: 2px; }
.page-section { scroll-margin-top: 104px; padding: 34px 0 38px; border-bottom: 1px solid var(--border); }
.page-section[hidden] { display: none; }
.page-heading { align-items: flex-end; margin-bottom: 24px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h2 + p { margin-top: 8px; }
.heading-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card { display: flex; align-items: flex-start; gap: 13px; min-height: 126px; padding: 19px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.stat-card.accent-teal { border-top-color: #28b5a1; }
.stat-card.accent-blue { border-top-color: #5d88ee; }
.stat-card.accent-amber { border-top-color: #edae4a; }
.stat-card.accent-violet { border-top-color: #a58ae9; }
.stat-icon { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; border-radius: 11px; }
.stat-icon svg { width: 20px; height: 20px; }
.accent-teal .stat-icon { color: var(--teal); background: var(--teal-soft); }
.accent-blue .stat-icon { color: var(--blue); background: var(--blue-soft); }
.accent-amber .stat-icon { color: var(--amber); background: var(--amber-soft); }
.accent-violet .stat-icon { color: var(--violet); background: var(--violet-soft); }
.stat-label, .stat-meta { display: block; color: var(--muted); font-size: 12px; }
.stat-value { display: block; margin: 8px 0 4px; color: var(--ink); font-size: 29px; line-height: 1; letter-spacing: -.04em; }
.stat-meta { color: var(--faint); font-size: 11px; }

.quick-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.quick-action { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 16px; text-align: left; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.quick-action:hover { border-color: #bed6d5; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.quick-action > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.quick-action strong { color: var(--ink); font-size: 13px; }
.quick-action small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.quick-action-icon { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 11px; }
.quick-action-icon svg { width: 19px; height: 19px; }
.quick-action-icon.teal { color: var(--teal); background: var(--teal-soft); }
.quick-action-icon.blue { color: var(--blue); background: var(--blue-soft); }
.quick-action-icon.violet { color: var(--violet); background: var(--violet-soft); }
.arrow-icon { width: 17px; height: 17px; margin-left: auto; color: #9aabb9; }

.content-grid { display: grid; gap: 16px; }
.product-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-table { overflow: hidden; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 20px 16px; }
.panel-heading p { margin-top: 5px; font-size: 12px; }
.panel-count { color: var(--faint); font-size: 11px; }
.panel-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; color: var(--teal); background: var(--teal-soft); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.blue-badge { color: var(--blue); background: var(--blue-soft); }
.panel-heading > .status { flex: 0 0 auto; }
.status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; color: #217263; background: var(--teal-soft); border-radius: 999px; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status.revoked { color: var(--danger); background: var(--danger-soft); }
.status.expired { color: #a45f0a; background: var(--amber-soft); }
.status.redeemed { color: var(--blue); background: var(--blue-soft); }
.status.unused { color: var(--teal); background: var(--teal-soft); }
.status.disabled { color: var(--danger); background: var(--danger-soft); }
.status.retired { color: #7c5c9b; background: var(--violet-soft); }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: left; font-size: 12px; }
th, td { padding: 12px 14px; border-top: 1px solid #edf1f5; vertical-align: middle; }
th { position: sticky; top: 0; z-index: 1; color: #708191; background: #fbfcfd; font-size: 10px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
td { color: #344758; overflow-wrap: anywhere; }
tbody tr { transition: background .18s ease; }
tbody tr:hover { background: #fbfdfd; }
td.machine-hash, td.fingerprint { max-width: 210px; color: #5e7181; font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; }
td.actions { width: 1%; min-width: 132px; white-space: nowrap; }
td.actions .button { min-height: 30px; margin: 2px 4px 2px 0; padding: 0 9px; font-size: 11px; }
.empty { height: 92px; color: #9aa9b6; text-align: center; }
.pager { display: flex; align-items: center; justify-content: center; gap: 13px; padding: 15px 20px 18px; color: var(--muted); font-size: 11px; }
.pager .button { min-height: 32px; padding: 0 10px; font-size: 11px; }

.generator-panel { padding-bottom: 20px; }
.form-grid { display: grid; gap: 15px; padding: 0 20px; }
.code-form { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label small { color: var(--faint); font-size: 10px; font-weight: 600; }
.field-wide { grid-column: span 2; }
.checkbox-field { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 3px; color: #435668; font-size: 12px; }
.checkbox-field input { width: 17px; height: 17px; min-height: 17px; accent-color: var(--teal); }
.checkbox-field span { display: grid; gap: 2px; }
.checkbox-field strong { font-size: 12px; }
.checkbox-field small { color: var(--faint); font-size: 10px; }
.code-submit { min-height: 42px; }
.generated-banner { display: flex; align-items: center; gap: 11px; margin: 18px 20px 0; padding: 12px 13px; color: #236e62; background: var(--teal-soft); border: 1px solid #c6e9e3; border-radius: 11px; }
.generated-banner > div { display: grid; gap: 2px; min-width: 0; }
.generated-result { flex: 1; }
.generated-codes-list { display: grid; gap: 6px; margin-top: 8px; }
.generated-code-item { display: flex; align-items: center; gap: 8px; }
.generated-code-item code { flex: 1; min-width: 0; padding: 6px 8px; color: #185a50; background: rgba(255,255,255,.65); border: 1px solid #c6e9e3; border-radius: 6px; overflow-wrap: anywhere; font-size: 11px; }
.generated-code-item .button { min-height: 28px; padding: 0 8px; font-size: 11px; }
.generated-banner strong { overflow: hidden; color: #185a50; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.generated-banner small { color: #559287; font-size: 10px; }
.generated-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; color: var(--teal); background: #c9eee6; border-radius: 9px; }
.generated-icon svg { width: 17px; height: 17px; }
.generated-banner .button { margin-left: auto; }

.list-panel { margin-top: 16px; }
.list-heading { align-items: center; }
.list-tools { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.list-tools > select { width: auto; min-width: 120px; min-height: 36px; }
.search-field { position: relative; display: flex; align-items: center; min-width: 230px; }
.search-field svg { position: absolute; left: 11px; width: 16px; height: 16px; color: #9badba; pointer-events: none; }
.search-field input { min-height: 36px; padding-left: 34px; font-size: 12px; }

.dashboard-message { padding: 8px 0 0; text-align: center; }

.modal-dialog { width: min(500px, calc(100% - 28px)); max-height: min(760px, calc(100vh - 36px)); padding: 0; color: var(--ink); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 70px rgba(16, 43, 59, .22); }
.modal-dialog::backdrop { background: rgba(15, 35, 48, .42); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 24px 26px 18px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { font-size: 21px; }
.dialog-subtitle { margin-top: 6px; font-size: 12px; }
.dialog-form { display: grid; gap: 15px; padding: 21px 26px 25px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 5px; }
.confirm-dialog { width: min(410px, calc(100% - 28px)); padding: 30px 28px 26px; text-align: center; }
.confirm-dialog .confirm-icon { display: grid; width: 48px; height: 48px; margin: 0 auto 15px; place-items: center; color: var(--amber); background: var(--amber-soft); border-radius: 14px; }
.confirm-dialog .confirm-icon svg { width: 25px; height: 25px; }
.confirm-dialog h2 { font-size: 20px; }
.confirm-dialog p { margin: 10px 0 22px; }
.confirm-dialog .dialog-actions { justify-content: center; }
.toast-region { position: fixed; top: 94px; right: 24px; z-index: 50; display: grid; gap: 9px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; color: #314655; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--teal); border-radius: 11px; box-shadow: var(--shadow-md); font-size: 12px; animation: toast-in .2s ease both; pointer-events: auto; }
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--teal); }
.toast.warning { border-left-color: var(--amber); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .code-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-wide { grid-column: span 1; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(286px, 88vw); transform: translateX(-105%); transition: transform .25s ease; }
  .app-shell.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-close { display: inline-grid; }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 19; display: block; background: rgba(15, 35, 48, .42); }
  .app-shell.sidebar-open .sidebar-backdrop { display: block; }
  .menu-button { display: inline-grid; }
  .product-grid { grid-template-columns: 1fr; }
  .topbar { min-height: 72px; }
  .login-view { min-height: calc(100vh - 72px); }
  .workspace-body { padding-right: 20px; padding-left: 20px; }
}
@media (max-width: 640px) {
  .topbar { align-items: flex-start; gap: 10px; padding: 14px 15px; }
  .topbar-actions { gap: 2px; }
  .topbar-product-name { display: none; }
  .topbar-actions .button.quiet:first-of-type span { display: none; }
  .topbar-actions .button.quiet:first-of-type { width: 36px; padding: 0; }
  .topbar-actions #logout-button { display: none !important; }
  .workspace-body { padding: 0 15px 48px; }
  .page-section { padding: 27px 0 31px; scroll-margin-top: 82px; }
  .view-tabs { overflow-x: auto; margin-top: 12px; }
  .view-tab { flex: 0 0 auto; padding: 0 11px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 19px; }
  .heading-actions { width: 100%; justify-content: flex-start; }
  .heading-actions .button { flex: 1; }
  .stats-grid, .quick-actions-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 105px; }
  .quick-action { min-height: 72px; }
  .panel-heading { padding: 17px 15px 14px; }
  .list-heading { align-items: flex-start; flex-direction: column; }
  .list-tools { width: 100%; justify-content: stretch; }
  .search-field { min-width: 0; flex: 1; }
  .list-tools > select { flex: 0 0 auto; }
  .form-grid, .dialog-form { padding-right: 15px; padding-left: 15px; }
  .code-form { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .code-submit { width: 100%; margin-top: 2px; }
  .generated-banner { align-items: flex-start; margin-right: 15px; margin-left: 15px; }
  .generated-banner .button { margin-left: auto; padding: 0 7px; }
  .generated-banner > div { flex: 1; }
  .dialog-header { padding-right: 17px; padding-left: 17px; }
  .dialog-form { padding-bottom: 19px; }
  .login-card { padding: 29px 22px; }
  .login-view { padding-top: 24px; }
  .toast-region { top: 76px; right: 16px; width: calc(100vw - 32px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
