:root {
  --ink: #211d19;
  --muted: #746a63;
  --paper: #fffaf2;
  --indigo: #29225b;
  --violet: #6356a5;
  --line: rgba(45, 37, 32, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(144, 123, 238, 0.14), transparent 28%),
    radial-gradient(circle at 95% 8%, rgba(240, 132, 101, 0.12), transparent 25%),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.admin-header {
  display: flex;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 25px 0;
  align-items: center;
  justify-content: space-between;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand-icon {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 12px;
  object-fit: contain;
}

.admin-brand span,
.login-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--indigo);
  font-size: 14px;
}

.logout-button,
.refresh-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #554d47;
  background: rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.admin-main {
  width: min(1240px, calc(100% - 40px));
  margin: 35px auto 70px;
}

.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: #9b4d76;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 0;
  font-size: clamp(42px, 7vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.heading-copy {
  margin: 15px 0 0;
  color: var(--muted);
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
}

.refresh-button.is-loading span { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 38px;
}

.stats article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.63);
  box-shadow: 0 20px 55px rgba(62, 45, 28, 0.05);
  backdrop-filter: blur(18px);
}

.stats span { color: var(--muted); font-size: 13px; font-weight: 650; }
.stats strong { display: block; margin-top: 9px; font-size: 28px; letter-spacing: -0.04em; }

.admin-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 26px;
  padding: 6px;
  border: 1px solid rgba(99,86,165,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 36px rgba(41,34,91,.07);
  backdrop-filter: blur(18px);
}
.admin-tabs button { display: flex; min-height: 44px; padding: 0 22px; align-items: center; justify-content: center; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 800; cursor: pointer; transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.admin-tabs button:hover { color: var(--indigo); background: rgba(99,86,165,.07); }
.admin-tabs button[aria-selected="true"] { color: white; background: linear-gradient(135deg, #3b326f, var(--indigo)); box-shadow: 0 9px 22px rgba(41,34,91,.22); }
.admin-tabs button[aria-selected="true"]:hover { color: white; transform: translateY(-1px); }
.admin-tabs button:focus-visible { outline: 3px solid rgba(99,86,165,.22); outline-offset: 2px; }

.management-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.setting-card, .quick-license { padding: 24px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.68); box-shadow: 0 20px 55px rgba(62,45,28,.05); }
.setting-card { display: flex; min-width: 0; flex-direction: column; }
.setting-card h2, .quick-license h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.035em; }
.setting-card p:not(.eyebrow), .quick-license p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.setting-card form { display: grid; gap: 8px; margin-top: auto; padding-top: 20px; }
.setting-card label, .quick-license label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.setting-card input, .quick-license input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; background: white; }
.setting-card input:focus, .quick-license input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,86,165,.1); }
.setting-card button, .quick-license form > button { height: 46px; padding: 0 18px; border: 0; border-radius: 999px; color: white; background: var(--indigo); font-size: 12px; font-weight: 750; cursor: pointer; }
.setting-card button:disabled, .quick-license button:disabled { cursor: wait; opacity: .65; }
.settings-message { min-height: 16px; color: #28734d; font-size: 11px; line-height: 1.4; }
.settings-message.error { color: #b53e3e; }
.health-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 20px 0 8px; }
.health-metrics div { min-width: 0; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.66); }
.health-metrics dt { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.health-metrics dd { margin: 6px 0 0; color: #28734d; overflow-wrap: anywhere; font-size: 12px; font-weight: 800; }
.health-metrics dd.health-warning { color: #a15f22; }
.quick-license { display: flex; margin-top: 18px; align-items: end; justify-content: space-between; gap: 28px; }
.quick-license > div { min-width: 0; max-width: 390px; }
.quick-license form { display: grid; width: min(650px, 100%); min-width: 0; flex: 0 1 650px; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.quick-license label { min-width: 0; }
.quick-license .settings-message { grid-column: 1 / -1; }
.input-with-action { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.input-with-action input { width: auto; min-width: 0; }
.quick-license .input-with-action .paste-device-id { height: 46px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; color: #554d47; background: rgba(255,255,255,.82); box-shadow: 0 6px 16px rgba(62,45,28,.05); font-size: 11px; font-weight: 750; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.quick-license .input-with-action .paste-device-id:hover { border-color: rgba(99,86,165,.28); color: var(--indigo); background: white; }
.quick-license .input-with-action .paste-device-id:focus-visible { outline: 3px solid rgba(99,86,165,.2); outline-offset: 2px; }

.app-releases { margin-top: 18px; padding: 28px; border: 1px solid rgba(255,255,255,.92); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.84), rgba(247,243,255,.72)); box-shadow: 0 20px 55px rgba(62,45,28,.06); backdrop-filter: blur(18px); }
.app-releases-heading h2 { margin: 6px 0 0; font-size: 27px; }
.app-releases-heading > p:not(.eyebrow) { max-width: 700px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.app-release-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.app-upload-form { display: grid; min-width: 0; min-height: 270px; padding: 20px; gap: 14px; grid-template-rows: auto 1fr auto auto auto; border: 1px solid rgba(99,86,165,.13); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 12px 32px rgba(41,34,91,.055); transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.app-upload-form:hover { border-color: rgba(99,86,165,.25); box-shadow: 0 16px 38px rgba(41,34,91,.085); transform: translateY(-1px); }
.app-platform-heading { display: flex; min-width: 0; align-items: center; gap: 12px; }
.app-platform-heading > span:last-child { display: grid; min-width: 0; gap: 4px; }
.app-platform-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #6d60b4, #29225b); box-shadow: 0 8px 18px rgba(41,34,91,.17); font-size: 11px; font-weight: 850; letter-spacing: -.02em; }
.app-upload-form[data-app-platform="android"] .app-platform-icon { background: linear-gradient(145deg, #4f9d78, #26684c); }
.ios-link-form .app-platform-icon { background: linear-gradient(145deg, #53545d, #1d1d22); }
.app-upload-form strong { color: var(--indigo); font-size: 16px; }
.app-upload-form [data-app-current] { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 11px; line-height: 1.45; }
.app-upload-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.app-upload-form input[type="file"] { width: 100%; min-height: 58px; padding: 9px; border: 1px dashed rgba(99,86,165,.34); border-radius: 14px; color: var(--muted); background: #faf8ff; font-size: 11px; cursor: pointer; }
.app-upload-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 10px 13px; border: 0; border-radius: 10px; color: #493d80; background: #eae5ff; font-weight: 800; cursor: pointer; transition: background .18s ease; }
.app-upload-form input[type="file"]::-webkit-file-upload-button { margin-right: 10px; padding: 10px 13px; border: 0; border-radius: 10px; color: #493d80; background: #eae5ff; font-weight: 800; cursor: pointer; }
.app-upload-form input[type="file"]:hover::file-selector-button { background: #dfd8ff; }
.app-upload-form input[type="url"] { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; color: var(--ink); background: white; }
.app-upload-form input[type="url"]:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,86,165,.1); }
.app-upload-form progress { width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; accent-color: var(--violet); }
.app-upload-form > button { min-height: 46px; padding: 0 18px; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #3b326f, var(--indigo)); box-shadow: 0 9px 20px rgba(41,34,91,.14); font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.app-upload-form > button:hover { box-shadow: 0 12px 24px rgba(41,34,91,.2); transform: translateY(-1px); }
.app-upload-form > button:disabled { cursor: wait; opacity: .65; }
.app-upload-form .settings-message { min-height: 16px; }

.tbank-settings { margin-top: 18px; padding: 26px; border: 1px solid rgba(255,255,255,.9); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 20px 55px rgba(62,45,28,.05); }
.tbank-settings-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; }
.tbank-settings h2 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.04em; }
.tbank-settings-heading p:not(.eyebrow) { max-width: 670px; margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.production-badge { padding: 8px 12px; border-radius: 999px; color: #28734d; background: #e5f5e9; font-size: 10px; font-weight: 800; white-space: nowrap; }
.production-badge.test-mode { color: #73540b; background: #fff0c7; }
.tbank-settings form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.tbank-settings label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.tbank-settings input, .tbank-settings select { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; outline: 0; color: var(--ink); background: white; }
.tbank-settings input:focus, .tbank-settings select:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99,86,165,.1); }
.tbank-settings .cashbox-toggle { display: flex; padding: 15px 17px; align-items: flex-start; gap: 12px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: rgba(246,241,235,.6); cursor: pointer; }
.tbank-settings .cashbox-toggle input { width: 19px; height: 19px; min-width: 19px; margin: 1px 0 0; accent-color: var(--violet); }
.cashbox-toggle > span { display: grid; gap: 5px; }
.cashbox-toggle strong { font-size: 12px; }
.cashbox-toggle small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1.45; }
.tbank-settings .wide-field { grid-column: 1 / -1; }
.tbank-mode-field { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 750; }
.tbank-mode-field > small { font-weight: 500; line-height: 1.45; }
.tbank-mode-switch { display: grid; width: min(360px, 100%); padding: 4px; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: 999px; background: #f6f1eb; }
.tbank-settings .tbank-mode-switch label { display: block; position: relative; cursor: pointer; }
.tbank-mode-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tbank-mode-switch label span { display: flex; min-height: 38px; padding: 0 16px; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.tbank-mode-switch input:checked + span { color: white; background: var(--indigo); box-shadow: 0 7px 18px rgba(41,34,91,.2); }
.tbank-mode-switch input:focus-visible + span { outline: 3px solid rgba(99,86,165,.2); outline-offset: 2px; }
.terminal-credentials { display: grid; min-width: 0; margin: 0; padding: 18px; gap: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.46); }
.terminal-credentials legend { padding: 0 7px; color: var(--indigo); font-size: 12px; font-weight: 800; }
.terminal-credentials.active-credentials { border-color: rgba(99,86,165,.34); background: rgba(240,236,255,.48); box-shadow: 0 0 0 3px rgba(99,86,165,.06); }
.tbank-api { display: grid; gap: 7px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(246,241,235,.6); }
.tbank-api span { color: var(--muted); font-size: 10px; font-weight: 750; }
.tbank-api code { color: #493d80; overflow-wrap: anywhere; font-size: 11px; }
.tbank-settings form > button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); font-size: 12px; font-weight: 800; cursor: pointer; }
.tbank-settings form > button:disabled { cursor: wait; opacity: .65; }
.tbank-settings form > .settings-message { grid-column: 1 / -1; }
.test-payment { display: block; width: max-content; margin-top: 6px; padding: 3px 7px; border-radius: 999px; color: #76552b; background: #fff0bf; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.cashbox-status { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.cashbox-status.sent { color: #26714b; }
.cashbox-status.failed { color: #a33b32; }

.purchases-panel {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 25px 70px rgba(62, 45, 28, 0.07);
  overflow: hidden;
}

.panel-toolbar {
  display: flex;
  min-height: 76px;
  padding: 14px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  width: min(420px, 100%);
  height: 46px;
  padding: 0 15px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.search-field span { color: #897f78; font-size: 22px; }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.result-count { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px 20px; color: #887e76; background: rgba(246, 241, 235, 0.65); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
td { padding: 18px 20px; border-top: 1px solid var(--line); vertical-align: middle; font-size: 13px; }
tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: rgba(244, 237, 255, 0.4); }
.customer-name { font-weight: 750; }
.customer-email { margin-top: 4px; color: var(--muted); font-size: 12px; }
.purchase-code { color: #493d80; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 750; white-space: nowrap; }
.purchase-date { color: var(--muted); white-space: nowrap; }
.purchase-amount { font-weight: 750; white-space: nowrap; }
.status-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: #28734d; background: #e5f5e9; font-size: 11px; font-weight: 800; }
.status-pill.refunded { color: #986420; background: #fff0d9; }
.license-preview { display: block; max-width: 115px; color: #493d80; overflow: hidden; font-size: 11px; font-weight: 750; white-space: nowrap; }
.table-license-button { margin-top: 6px; padding: 7px 10px; border: 0; border-radius: 999px; color: white; background: var(--indigo); font-size: 10px; font-weight: 750; cursor: pointer; }
.table-license-button.has-license { color: #493d80; background: #eee9ff; }
.table-license-button:disabled { color: #958d86; background: #ece9e5; cursor: not-allowed; }
.license-column { position: sticky; right: 0; z-index: 1; min-width: 126px; background: rgba(255, 252, 248, .98); box-shadow: -12px 0 22px rgba(50, 40, 34, .035); }
th.license-column { z-index: 2; background: #f6f1eb; }
tbody tr:hover .license-column { background: #faf6fc; }

.empty-state { padding: 70px 20px; text-align: center; }
.empty-state > span { display: grid; width: 48px; height: 48px; margin: 0 auto; place-items: center; border-radius: 50%; color: var(--violet); background: #eee9ff; font-size: 24px; }
.empty-state h2 { margin: 18px 0 0; font-size: 20px; }
.empty-state p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }

[hidden] { display: none !important; }

.login-dialog {
  width: min(440px, calc(100% - 28px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: #fffaf4;
  box-shadow: 0 35px 100px rgba(27, 21, 41, 0.28);
}

.license-dialog,
.license-result-dialog {
  width: min(480px, calc(100% - 28px));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 30px;
  color: var(--ink);
  background: #fffaf4;
  box-shadow: 0 35px 100px rgba(27, 21, 41, 0.28);
}

.login-dialog::backdrop,
.license-dialog::backdrop,
.license-result-dialog::backdrop { background: rgba(31, 25, 43, 0.58); backdrop-filter: blur(8px); }
.login-card { display: grid; padding: 38px; }
.login-mark { width: 48px; height: 48px; margin-bottom: 25px; font-size: 17px; }
.login-card h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -0.045em; }
.login-card > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.login-card label { display: grid; gap: 8px; margin-top: 24px; font-size: 12px; font-weight: 750; }
.login-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; outline: 0; background: white; }
.login-card input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99, 86, 165, 0.1); }
.login-error { min-height: 17px; margin-top: 6px; color: #b53e3e; font-size: 12px; }
.login-card button { min-height: 52px; margin-top: 8px; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); font-weight: 750; cursor: pointer; }
.login-card button:disabled { opacity: 0.65; cursor: wait; }
.login-card > a { margin-top: 18px; color: var(--muted); text-align: center; font-size: 12px; }

.license-dialog-card,
.license-result-card { position: relative; display: grid; padding: 38px; }
.dialog-close { position: absolute; top: 17px; right: 17px; display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); background: white; font-size: 22px; cursor: pointer; }
.license-dialog-card h2,
.license-result-card h2 { margin: 8px 42px 0 0; font-size: 32px; letter-spacing: -.045em; }
.license-dialog-card > p:not(.eyebrow),
.license-result-card > p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.license-dialog-card label { display: grid; gap: 8px; margin-top: 24px; font-size: 12px; font-weight: 750; }
.license-dialog-card input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; outline: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.license-dialog-card input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(99, 86, 165, .1); }
.license-dialog-error { min-height: 18px; margin-top: 7px; color: #b53e3e; font-size: 11px; }
.generate-license-button,
.result-done { min-height: 50px; border: 0; border-radius: 999px; color: white; background: linear-gradient(135deg, #e96042, #9b4d76 58%, #574b99); font-weight: 750; cursor: pointer; }
.generate-license-button:disabled { opacity: .65; cursor: wait; }
.success-mark { display: grid; width: 48px; height: 48px; margin-bottom: 23px; place-items: center; border-radius: 50%; color: white; background: #348d6c; font-size: 20px; font-weight: 800; }
.admin-license-key { display: flex; align-items: center; gap: 8px; margin-top: 20px; padding: 9px; border-radius: 15px; background: #eee9ff; }
.admin-license-key code { min-width: 0; flex: 1; padding-left: 7px; color: #493d80; overflow-wrap: anywhere; font-size: 11px; line-height: 1.5; }
.admin-license-key button { padding: 10px; border: 0; border-radius: 10px; color: white; background: var(--indigo); font-size: 10px; font-weight: 750; cursor: pointer; }
.result-done { margin-top: 18px; }

@media (max-width: 920px) {
  .quick-license { align-items: stretch; flex-direction: column; }
  .quick-license > div { max-width: 560px; }
  .quick-license form { width: 100%; flex-basis: auto; }
}

@media (max-width: 700px) {
  .admin-main { margin-top: 18px; }
  .admin-heading { align-items: start; }
  .refresh-button { padding: 10px; }
  .refresh-button:not([hidden]) { font-size: 0; }
  .refresh-button span { font-size: 20px; }
  .stats { grid-template-columns: 1fr; }
  .management-settings { grid-template-columns: 1fr; }
  .health-metrics { grid-template-columns: 1fr; }
  .admin-tabs { display: grid; width: 100%; }
  .admin-tabs button { padding-inline: 12px; }
  .app-release-grid { grid-template-columns: 1fr; }
  .app-releases { padding: 21px; }
  .app-upload-form { min-height: 0; }
  .quick-license form { grid-template-columns: 1fr; }
  .tbank-settings-heading { flex-direction: column; }
  .tbank-settings form { grid-template-columns: 1fr; }
  .tbank-settings .wide-field { grid-column: auto; }
  .terminal-credentials { padding: 16px; }
  .panel-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  th, td { padding-inline: 14px; }
  .login-card { padding: 30px 22px; }
  .license-dialog-card, .license-result-card { padding: 32px 22px 25px; }
}
