:root {
  --navy: #14223a;
  --navy-light: #203c61;
  --accent: #315984;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #dce3ed;
  --muted: #52647d;
  --error: #a52a21;
  --error-bg: #fcebea;
  --success: #146b3a;
  --success-bg: #e8f3ed;
  --warn: #9a6400;
  --warn-bg: #fdf3df;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--navy);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; }
/* Every hide/show toggle on this site sets the native `hidden` attribute.
   Without this, .button-link's `display: inline-flex` (equal specificity to
   the browser's own [hidden] rule, and author styles always win) would keep
   a "hidden" button visible - this bit us on payment-success's optional
   Download-app button. */
[hidden] { display: none !important; }
.shell { width: min(880px, calc(100% - 40px)); margin: 0 auto; }
.shell-narrow { width: min(440px, calc(100% - 40px)); margin: 0 auto; }
/* Header/nav/hamburger/drawer are styled once, for every page, in
   site-shell.css (.site-header / .nav-drawer). */
main.shell, main.shell-narrow { padding: 48px 0 24px; }

.hero { text-align: center; margin-bottom: 40px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 auto; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 32px; }
.loading { text-align: center; color: var(--muted); grid-column: 1 / -1; }
.plan-card {
  /* Override the shared button{display:inline-flex} rule below - a plan
     card is a <button> so its several stacked <p> children lay out
     correctly (name, then price, then limits) instead of being forced into
     a flex row with everything else. */
  display: block; width: 100%;
  background: var(--card); border: 2px solid var(--border); border-radius: 14px;
  padding: 20px; cursor: pointer; text-align: left; font: inherit; color: inherit;
  transition: border-color .15s, transform .1s;
}
.plan-card:hover { border-color: #a9bdd8; }
.plan-card.selected { border-color: var(--navy); background: #eef3f8; }
.plan-name { font-weight: 800; font-size: 15px; margin: 0 0 4px; }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 10px; }
.plan-limits { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.plan-badge { display: inline-block; margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); background: #eef3f8; padding: 3px 8px; border-radius: 999px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.card h2 { margin-top: 0; }
label { display: block; margin-top: 16px; font-size: 13px; font-weight: 700; }
input { display: block; width: 100%; min-height: 46px; margin-top: 7px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; }
input:focus { outline: 2px solid #8aa5c8; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; line-height: 1.5; }
.secure-note { margin-top: 14px; text-align: center; }
.error { color: var(--error); min-height: 20px; font-size: 13px; }
.field-note { color: var(--muted); font-size: 12px; margin-top: 4px; }

button, .button-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border: 1px solid var(--navy); border-radius: 10px;
  background: var(--navy); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
  text-decoration: none;
}
button:hover, .button-link:hover { background: var(--navy-light); }
button:disabled { opacity: 0.55; cursor: default; }
.primary { width: 100%; margin-top: 20px; font-size: 16px; }
.secondary { background: #fff; color: var(--navy); border-color: #cbd5e1; }
.secondary:hover { background: #eef3f8; }
.danger { background: #fff; color: var(--error); border-color: #f0c9c4; }
.danger:hover { background: var(--error-bg); }
.small-btn { min-height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 8px; }
/* Compact on desktop; full 44px touch target on touch screens. */
@media (pointer: coarse) { .small-btn { min-height: 44px; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.success-eyebrow { color: var(--success); }
.success-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.success-grid .label, .kv .label { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.license-key-row { background: #eef3f8; border: 1px dashed var(--accent); border-radius: 10px; padding: 16px; text-align: center; }
.license-key-row code { font-size: 20px; font-weight: 800; letter-spacing: 0.04em; color: var(--navy); }
.steps { padding-left: 20px; line-height: 1.9; }
.steps li { padding-left: 4px; }

.error-card { border-color: var(--error-bg); background: var(--error-bg); }

.footer { padding: 24px 0 48px; color: var(--muted); font-size: 13px; text-align: center; line-height: 1.6; }

/* Auth pages (login / signup / forgot-password) */
.auth-card { margin-top: 24px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Dashboard */
.site-page.dashboard-page { width: min(1220px, calc(100% - 40px)); padding-top: 24px; padding-bottom: 24px; }
.dashboard-panel { overflow: hidden; padding: 0 32px; border: 1px solid #dce5f1; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(20, 34, 58, .035); }
.dashboard-account { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px 4px 20px; border-bottom: 1px solid #dfe7f1; }
.account-identity { display: flex; align-items: center; gap: 24px; min-width: 0; }
.account-avatar { flex: 0 0 68px; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #dcecff; color: #164f99; font-size: 27px; font-weight: 800; }
.dashboard-account h1 { margin: 0; font-size: clamp(28px, 3vw, 34px); line-height: 1.05; }
.dashboard-account p { margin: 6px 0 0; color: #3f5a80; font-size: 14px; }
.account-note { display: grid; gap: 4px; min-width: 185px; color: #536a8c; font-size: 12px; line-height: 1.35; }
.account-note strong { color: #294a75; font-size: 12px; font-weight: 500; }
.dashboard-message { padding: 28px 4px; border-bottom: 1px solid #dfe7f1; }
.dashboard-error { color: var(--error); }
.dashboard-section { padding: 18px 4px; border-bottom: 1px solid #dfe7f1; }
.dashboard-section:last-child { border-bottom: 0; }
#dashboard-content > .dashboard-section:first-child { padding-bottom: 11px; }
.dashboard-split { display: grid; grid-template-columns: minmax(320px, 390px) minmax(0, 1fr); gap: 32px; align-items: start; }
.dashboard-section-intro { display: flex; align-items: flex-start; gap: 22px; min-width: 0; }
.dashboard-section-intro h2 { margin: 8px 0 4px; color: var(--navy); font-size: 18px; line-height: 1.25; }
.dashboard-section-intro p { margin: 0; max-width: 310px; color: #536a8c; font-size: 13px; line-height: 1.5; }
.dashboard-icon { flex: 0 0 64px; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #edf5ff; color: #0968d7; }
.dashboard-icon svg { width: 25px; height: 25px; stroke-width: 2.2; }
.plan-summary-box { padding: 12px 14px; border: 1px solid #dce6f3; border-radius: 9px; background: #fff; }
.plan-summary-grid { display: grid; grid-template-columns: 1.55fr .85fr 1fr; align-items: start; }
.plan-summary-grid .kv { min-width: 0; padding: 1px 14px; }
.plan-summary-grid .kv:first-child { padding-left: 0; }
.plan-summary-grid .kv + .kv { border-left: 1px solid #dfe7f1; }
.kv .value { display: block; color: var(--navy); font-size: 15px; font-weight: 800; line-height: 1.4; }
.license-key-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-top: 12px; padding: 9px 12px 9px 18px; border: 1px solid #dfe8f3; border-radius: 8px; background: #f1f6fc; text-align: left; }
.license-key-row > div { flex: 1 1 200px; min-width: 0; }
.license-key-row .label { margin-bottom: 3px; text-transform: none; letter-spacing: 0; }
.license-key-row code { display: block; overflow-wrap: anywhere; color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: .045em; }
.license-key-row button { flex: 0 0 auto; gap: 8px; min-height: 38px; padding-inline: 16px; background: #fff; }
.license-key-row button svg { width: 17px; height: 17px; color: #0968d7; }
.trial-detail { margin: 10px 2px 0; color: #8a6400; font-size: 12.5px; font-weight: 700; }
.dashboard-usage-section { padding-top: 16px; }
.dashboard-usage-top { align-items: center; }
.usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-metric { min-width: 0; padding: 13px 18px; border: 1px solid #dce6f3; border-radius: 8px; background: #f4f8fd; }
.dashboard-wide-area { margin: 16px 0 0 86px; }
.dashboard-wide-area h3 { margin: 0 0 10px; font-size: 15px; }
.table-scroll { overflow-x: auto; }
.dashboard-page table { min-width: 650px; width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.dashboard-page table th { padding: 9px 14px; border: 0; background: #f1f6fc; color: #4b6489; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-align: left; text-transform: uppercase; }
.dashboard-page table th:first-child { border-radius: 7px 0 0 7px; }
.dashboard-page table th:last-child { border-radius: 0 7px 7px 0; }
.dashboard-page table td { padding: 10px 14px; border-bottom: 1px solid #edf1f6; color: #1f385c; vertical-align: middle; }
.dashboard-page table tr:last-child td { border-bottom: 0; }
.empty-row { height: 72px; color: #5f7391 !important; text-align: center; }
.dashboard-empty-state { display: grid; justify-items: center; gap: 7px; }
.dashboard-empty-state svg { width: 21px; height: 21px; color: #6e85a7; }
.payment-table-wrap { align-self: center; }
.payment-table-wrap table { min-width: 560px; }
.dashboard-payment-section { padding-bottom: 13px; }
.dashboard-manage { align-items: center; padding-top: 28px; padding-bottom: 17px; }
.dashboard-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-actions .button-link, .dashboard-actions button { min-height: 44px; margin: 0; padding-inline: 22px; }
.dashboard-primary { background: #1268c9; border-color: #1268c9; color: #fff; }
.dashboard-primary:hover { background: #0f57aa; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 10px; border-radius: 999px; }
.badge-active { color: var(--success); background: var(--success-bg); }
.badge-trial { color: #8a6400; background: #fff3cf; }
.badge-expired, .badge-blocked { color: var(--error); background: var(--error-bg); }
.badge-revoked { color: var(--muted); background: #eef1f5; }

@media (max-width: 960px) {
  .dashboard-split { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); gap: 24px; }
  .dashboard-wide-area { margin-left: 76px; }
  .plan-summary-grid { grid-template-columns: 1.35fr .8fr 1fr; }
  .dashboard-icon { flex-basis: 56px; width: 56px; height: 56px; }
}
@media (max-width: 820px) {
  .site-page.dashboard-page { width: min(100% - 28px, 1220px); padding-top: 18px; }
  .dashboard-panel { padding-inline: 22px; }
  .dashboard-account { align-items: flex-start; }
  .account-note { display: none; }
  .dashboard-split { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-wide-area { margin-left: 0; }
  .dashboard-section-intro { align-items: center; gap: 16px; }
  .dashboard-section-intro h2 { margin-top: 0; }
  .dashboard-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .dashboard-icon svg { width: 21px; height: 21px; }
}
@media (max-width: 560px) {
  .success-grid { grid-template-columns: 1fr; }
  main.shell, main.shell-narrow { padding: 32px 0 16px; }
  .site-page.dashboard-page { width: min(100% - 20px, 1220px); padding-top: 12px; padding-bottom: 16px; }
  .dashboard-panel { padding-inline: 16px; border-radius: 9px; }
  .dashboard-account { padding-top: 18px; }
  .account-identity { gap: 14px; }
  .account-avatar { flex-basis: 52px; width: 52px; height: 52px; font-size: 21px; }
  .dashboard-account h1 { font-size: 26px; }
  .dashboard-section { padding-block: 18px; }
  .plan-summary-grid, .usage-grid { grid-template-columns: 1fr; }
  .plan-summary-grid .kv { padding: 10px 0; }
  .plan-summary-grid .kv + .kv { border-top: 1px solid #dfe7f1; border-left: 0; }
  .license-key-row { align-items: stretch; flex-direction: column; padding: 12px; }
  .license-key-row button { width: 100%; }
  .dashboard-actions { display: grid; grid-template-columns: 1fr; }
  .dashboard-actions .button-link, .dashboard-actions button { width: 100%; }
}

/* Administrator: client-first operational workspace. */
.site-page.admin-page { width: min(1220px, calc(100% - 40px)); padding-block: 32px 48px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid #dce5f1; }
.admin-heading h1 { margin: 0 0 7px; font-size: clamp(30px, 4vw, 42px); }
.admin-heading > div > p:last-child { max-width: 650px; margin: 0; color: #52647d; line-height: 1.6; }
.admin-timezone { flex: 0 0 auto; margin: 0; padding: 8px 11px; color: #34547c; border: 1px solid #d6e2f0; border-radius: 7px; background: #f4f8fc; font-size: 12px; font-weight: 700; }
.admin-state { margin: 18px 0; color: #52647d; font-size: 14px; }
.admin-state-error { padding: 13px 15px; color: var(--error); border: 1px solid #f0c9c4; border-radius: 8px; background: var(--error-bg); }
.admin-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-menu { display: grid; gap: 6px; position: sticky; top: 16px; padding: 10px; border: 1px solid #dce5f1; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(20,34,58,.035); }
.admin-menu-item { justify-content: flex-start; width: 100%; min-height: 40px; padding-inline: 12px; color: #3f5879; border: 0; border-radius: 7px; background: transparent; font-size: 13px; }
.admin-menu-item:hover { color: #143d70; background: #edf5ff; }
.admin-menu-item.active, .admin-menu-item.active:hover { color: #fff; background: #1d5fae; }
.admin-main { min-width: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.admin-stats article { min-width: 0; padding: 16px 18px; border: 1px solid #dce5f1; border-radius: 10px; background: #fff; }
.admin-stats span { display: block; overflow: hidden; color: #60738d; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-stats strong { display: block; margin-top: 5px; color: #142f56; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.admin-section-heading h2 { margin: 0 0 4px; color: #142f56; font-size: 22px; }
.admin-section-heading p { margin: 0; color: #60738d; font-size: 13px; line-height: 1.5; }
.admin-search { width: min(280px, 100%); margin: 0; }
.admin-search input { min-height: 40px; margin: 0; color: #1f385c; font-size: 13px; }
.client-management-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.client-list-panel, .client-detail-panel, .admin-payment-card { border: 1px solid #dce5f1; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(20,34,58,.035); }
.client-list-panel { overflow: hidden; }
.client-list { max-height: min(650px, 72vh); overflow-y: auto; }
.client-row { display: grid; gap: 3px; width: 100%; min-height: 0; padding: 14px 16px; color: #1f385c; border: 0; border-bottom: 1px solid #e8edf4; border-radius: 0; background: #fff; text-align: left; }
.client-row:hover { background: #f5f9fe; }
.client-row.selected, .client-row.selected:hover { color: #153d70; background: #eaf3ff; box-shadow: inset 3px 0 #2468b8; }
.client-row-title { overflow: hidden; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.client-row-email, .client-row-meta { overflow: hidden; color: #61738b; font-size: 12px; font-weight: 500; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.client-row-meta { color: #496789; font-size: 11px; }
.client-detail-panel { min-height: 410px; overflow: hidden; }
.client-detail-empty { display: grid; min-height: 410px; place-items: center; padding: 24px; color: #64758c; text-align: center; }
.client-detail-header { padding: 22px 24px 18px; border-bottom: 1px solid #e2e9f2; background: #f7fafe; }
.client-detail-header .eyebrow { margin-bottom: 6px; }
.client-detail-header h2 { margin: 0 0 5px; color: #142f56; font-size: 24px; }
.client-detail-header p:last-child { margin: 0; overflow-wrap: anywhere; color: #58708e; font-size: 14px; }
.client-detail-section { padding: 20px 24px; border-bottom: 1px solid #e7edf4; }
.client-detail-section:last-child { border-bottom: 0; }
.client-detail-section h3 { margin: 0 0 12px; color: #25476f; font-size: 14px; letter-spacing: .01em; }
.client-data-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #e1e8f1; border-radius: 8px; overflow: hidden; }
.client-data-pair { min-width: 0; padding: 11px 13px; border-right: 1px solid #e1e8f1; border-bottom: 1px solid #e1e8f1; }
.client-data-pair:nth-child(2n) { border-right: 0; }
.client-data-pair:nth-last-child(-n+2) { border-bottom: 0; }
.client-data-pair span { display: block; margin-bottom: 3px; color: #64758c; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.client-data-pair strong { display: block; overflow-wrap: anywhere; color: #1f385c; font-size: 12.5px; line-height: 1.45; }
.client-detail-note { margin: 10px 0 0; color: #64758c; font-size: 11.5px; line-height: 1.5; }
.admin-table-scroll { overflow-x: auto; }
.client-detail-section table { width: 100%; min-width: 580px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.client-detail-section th { padding: 8px 10px; color: #506b8c; background: #f1f6fc; font-size: 10px; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
.client-detail-section th:first-child { border-radius: 6px 0 0 6px; }
.client-detail-section th:last-child { border-radius: 0 6px 6px 0; }
.client-detail-section td { padding: 10px; border-bottom: 1px solid #e8edf4; color: #294664; vertical-align: top; }
.client-detail-section tr:last-child td { border-bottom: 0; }
.client-detail-section td small { display: block; margin-top: 2px; color: #6d7e92; font-size: 11px; }
.admin-badge { display: inline-flex; padding: 3px 7px; color: #49627f; border-radius: 999px; background: #edf1f5; font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.admin-badge-active, .admin-badge-paid { color: #146b3a; background: #e8f3ed; }
.admin-badge-trial, .admin-badge-pending { color: #8a6400; background: #fff3cf; }
.admin-badge-expired, .admin-badge-blocked, .admin-badge-failed, .admin-badge-revoked { color: #a52a21; background: #fcebea; }
.admin-empty { margin: 0; padding: 22px; color: #65778d; font-size: 13px; text-align: center; }
.admin-payment-card { padding: 24px; }
.admin-payment-card p { margin: 0 0 16px; color: #52647d; line-height: 1.55; }
.admin-primary { min-height: 44px; background: #1d5fae; border-color: #1d5fae; }
.admin-primary:hover { background: #174f91; }
.admin-payment-card pre { max-width: 100%; margin: 18px 0 0; padding: 14px; overflow: auto; color: #223b5e; border: 1px solid #dce5f1; border-radius: 8px; background: #f6f9fc; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.admin-release-form { display: grid; gap: 16px; padding: 24px; border: 1px solid #dce5f1; border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(20,34,58,.035); }
.admin-release-form label { margin: 0; color: #304b70; }
.admin-release-form input[type="file"] { padding: 9px; }
.admin-release-form textarea { display: block; width: 100%; margin-top: 7px; padding: 10px 12px; resize: vertical; color: #1f385c; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; line-height: 1.5; }
.admin-release-form textarea:focus { outline: 2px solid #8aa5c8; border-color: var(--accent); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-check { display: flex; align-items: center; gap: 9px; color: #405b7d !important; font-size: 13px; }
.admin-check input { width: 16px; min-height: 16px; margin: 0; accent-color: #1d5fae; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 1024px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-management-grid { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .site-page.admin-page { width: min(100% - 24px, 1220px); padding-block: 22px 36px; }
  .admin-heading { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 18px; }
  .admin-workspace { grid-template-columns: 1fr; gap: 16px; }
  .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); position: static; }
  .admin-menu-item { justify-content: center; }
  .admin-section-heading { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-search { width: 100%; }
  .client-management-grid { grid-template-columns: 1fr; }
  .client-list { max-height: 300px; }
}
@media (max-width: 480px) {
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 8px; }
  .admin-stats article { padding: 13px; }
  .admin-stats strong { font-size: 24px; }
  .client-detail-header, .client-detail-section { padding-inline: 16px; }
  .client-data-grid { grid-template-columns: 1fr; }
  .client-data-pair, .client-data-pair:nth-child(2n), .client-data-pair:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid #e1e8f1; }
  .client-data-pair:last-child { border-bottom: 0; }
  .admin-form-grid { grid-template-columns: 1fr; }
}

/* Legal pages: one readable document surface, rather than a stack of cards. */
.legal-page { padding-block: clamp(40px, 7vw, 76px); }
.legal-document { width: min(860px, 100%); margin-inline: auto; padding: clamp(24px, 4vw, 48px); background: #fff; border: 1px solid #dce5f1; border-radius: 14px; box-shadow: 0 8px 24px rgba(20, 34, 58, .045); }
.legal-document header { padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid #e5ebf3; }
.legal-document h1 { margin: 0 0 10px; color: var(--navy); }
.legal-document h2 { margin: 30px 0 10px; color: var(--navy); font-size: 20px; }
.legal-document p, .legal-document li { color: #40536d; font-size: 15px; line-height: 1.72; }
.legal-document p { margin: 0 0 14px; }
.legal-document ul { margin: 0 0 16px; padding-left: 22px; }
.legal-document a { color: #245fae; font-weight: 700; }
.legal-document .legal-meta { color: #62748d; font-size: 13px; }
.legal-document .legal-note { padding: 14px 16px; border-left: 3px solid #2d67b5; background: #f1f6fc; color: #314d70; }
@media (max-width: 560px) {
  .legal-page { padding-block: 28px 40px; }
  .legal-document { padding: 22px 18px; border-radius: 10px; }
  .legal-document h2 { font-size: 18px; }
}

/* Administrator workspace: dense, table-led operations rather than cards. */
.site-page.admin-page { width: min(1280px, calc(100% - 48px)); padding-block: 34px 56px; }
.admin-heading { padding-bottom: 22px; border-color: #dfe6ef; }
.admin-heading h1 { font-size: clamp(29px, 3.4vw, 40px); letter-spacing: -.035em; }
.admin-timezone { padding: 0; color: #60738d; border: 0; border-radius: 0; background: transparent; font-weight: 600; }
.admin-state { margin: 14px 0 22px; }
.admin-workspace { grid-template-columns: 196px minmax(0, 1fr); gap: 36px; }
.admin-menu { gap: 3px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.admin-menu-item { display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 40px; padding: 0 10px; color: #526981; border: 0; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; background: transparent; font-size: 13px; font-weight: 700; }
.admin-menu-item:hover { color: #1d5fae; background: #eef5fc; }
.admin-menu-item.active, .admin-menu-item.active:hover { color: #1d5fae; border-left-color: #1d5fae; background: #edf5ff; }
.admin-menu-logout { margin-top: 12px; color: #8a4d46; }
.admin-menu-logout:hover { color: #a52a21; background: #fdf0ef; }
.admin-nav-icon { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-main { min-width: 0; }
.admin-section-heading { align-items: flex-end; margin-bottom: 18px; }
.admin-section-heading h2 { margin: 0 0 4px; color: #14223a; font-size: 22px; letter-spacing: -.02em; }
.admin-section-heading p { color: #64758c; }
.admin-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 38px; border-bottom: 1px solid #dfe6ef; }
.admin-summary > div { min-width: 0; padding: 0 28px 22px; }
.admin-summary > div:first-child { padding-left: 0; }
.admin-summary > div + div { border-left: 1px solid #dfe6ef; }
.admin-summary span { display: block; overflow: hidden; color: #6c7c90; font-size: 10px; font-weight: 800; letter-spacing: .085em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.admin-summary strong { display: block; margin-top: 8px; color: #14223a; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.055em; line-height: 1; }
.admin-data-section, .admin-action-section { padding: 27px 0 30px; border-top: 1px solid #dfe6ef; background: transparent; }
.admin-data-section:first-of-type { border-top: 0; }
.admin-data-section-table { padding-top: 20px; }
.admin-table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 12.5px; }
.admin-table th { padding: 0 12px 10px; color: #738195; border-bottom: 1px solid #dfe6ef; background: transparent; font-size: 10px; font-weight: 800; letter-spacing: .065em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.admin-table th:first-child, .admin-table td:first-child { padding-left: 0; }
.admin-table th:last-child, .admin-table td:last-child { padding-right: 0; }
.admin-table td { padding: 13px 12px; color: #314963; border-bottom: 1px solid #e9edf3; line-height: 1.4; vertical-align: middle; }
.admin-table td strong { color: #1c344f; font-size: 12.5px; }
.admin-table tbody tr:hover td { background: #f5f9fd; }
.admin-clickable-row { cursor: pointer; }
.admin-clickable-row:focus-visible { outline: 2px solid #78a7d6; outline-offset: -2px; }
.admin-row-arrow { color: #1d5fae !important; font-size: 20px; text-align: right; }
.admin-badge { padding: 2px 6px; border-radius: 999px; font-size: 9.5px; letter-spacing: .045em; }
.admin-badge-active, .admin-badge-paid, .admin-badge-captured { color: #146b3a; background: #e8f3ed; }
.admin-badge-trial { color: #245fae; background: #eaf3ff; }
.admin-badge-expiring, .admin-badge-pending { color: #926100; background: #fff4d7; }
.admin-badge-expired, .admin-badge-failed { color: #a52a21; background: #fcebea; }
.admin-badge-no-plan { color: #687789; background: #eef1f4; }
.admin-empty { padding: 22px 0 0; color: #718093; text-align: left; }
.admin-link-button { min-height: 32px; padding: 0; color: #1d5fae; border: 0; border-radius: 0; background: transparent; font-size: 12px; font-weight: 800; }
.admin-link-button:hover { color: #174f91; background: transparent; text-decoration: underline; }
.admin-back-button::before { content: "←"; margin-right: 7px; }
.admin-list-controls { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-search { width: min(360px, 100%); }
.admin-search input, .admin-sort-label select { min-height: 40px; margin-top: 0; border-color: #ccd7e4; background: #fff; color: #29445f; }
.admin-sort-label { display: grid; gap: 6px; margin: 0; color: #66778c; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-sort-label select { padding: 0 34px 0 10px; border-radius: 7px; font: inherit; letter-spacing: 0; text-transform: none; }
.client-detail { border-top: 1px solid #dfe6ef; background: transparent; }
.client-detail-empty { min-height: 240px; place-items: start; padding: 28px 0; text-align: left; }
.client-detail-header { padding: 25px 0 22px; border-bottom: 1px solid #dfe6ef; background: transparent; }
.client-detail-header > div { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.client-detail-header h2 { margin: 0; color: #14223a; font-size: 30px; letter-spacing: -.035em; }
.client-detail-header p:last-child, .client-detail-header p { margin: 5px 0 0; color: #66778c; font-size: 13px; }
.client-detail-section { padding: 26px 0 30px; border-bottom: 1px solid #dfe6ef; }
.client-detail-section:last-child { border-bottom: 0; }
.client-detail-section h3 { margin: 0 0 14px; color: #1b3859; font-size: 15px; }
.client-data-list, .admin-settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid #e4eaf1; }
.client-data-list > div, .admin-settings-list > div { min-width: 0; padding: 11px 12px 11px 0; border-bottom: 1px solid #e4eaf1; }
.client-data-list > div:nth-child(even), .admin-settings-list > div:nth-child(even) { padding-left: 12px; border-left: 1px solid #e4eaf1; }
.client-data-list dt, .admin-settings-list dt { margin: 0 0 4px; color: #718094; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.client-data-list dd, .admin-settings-list dd { margin: 0; overflow-wrap: anywhere; color: #29445f; font-size: 12.5px; font-weight: 700; line-height: 1.45; }
.admin-settings-list span { display: block; margin-bottom: 4px; color: #718094; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.admin-settings-list strong { display: block; overflow-wrap: anywhere; color: #29445f; font-size: 12.5px; line-height: 1.45; }
.admin-release-form { max-width: 840px; padding: 26px 0; border: 0; border-top: 1px solid #dfe6ef; border-radius: 0; background: transparent; box-shadow: none; }
.admin-release-form label { color: #304b70; }
.admin-release-form textarea { border-color: #ccd7e4; border-radius: 7px; background: #fff; }
.admin-release-form label:has(#feature-code) { display: grid; gap: 0; }
.admin-release-form #feature-code { min-height: 260px; color: #203951; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.admin-release-form small { display: block; margin-top: 7px; color: #718093; font-size: 12px; font-weight: 500; line-height: 1.5; }
.admin-check { margin-top: 2px !important; }
.admin-action-section { max-width: 760px; }
.admin-action-section p { margin: 0 0 16px; color: #52647d; line-height: 1.55; }
.admin-action-section pre { max-width: 100%; margin: 18px 0 0; padding: 14px; overflow: auto; color: #223b5e; border: 1px solid #dce5f1; border-radius: 7px; background: #f6f9fc; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.admin-primary { min-height: 42px; background: #1d5fae; border-color: #1d5fae; }
.admin-primary:hover { background: #174f91; }

/* Content from the combined feature-section editor is rendered by the
   existing approved-release page after server-side HTML/CSS sanitization. */
.update-details #update-custom:not(:empty) { margin: 22px 0; }
.update-details #update-custom > :first-child { margin-top: 0; }
.update-details #update-custom > :last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .admin-workspace { grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
  .admin-summary > div { padding-right: 18px; padding-left: 18px; }
}
@media (max-width: 767px) {
  .site-page.admin-page { width: min(100% - 24px, 1280px); padding-block: 24px 42px; }
  .admin-heading { gap: 8px; }
  .admin-workspace { grid-template-columns: 1fr; gap: 22px; }
  .admin-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 8px; }
  .admin-menu-item { min-height: 42px; padding-inline: 8px; font-size: 12px; }
  .admin-menu-logout { margin-top: 0; }
  .admin-summary { margin-bottom: 28px; }
  .admin-summary > div { padding: 0 12px 18px; }
  .admin-summary strong { font-size: 27px; }
  .admin-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .admin-list-controls { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-sort-label { width: 100%; }
  .admin-sort-label select { width: 100%; }
  .client-data-list, .admin-settings-list { grid-template-columns: 1fr; }
  .client-data-list > div:nth-child(even), .admin-settings-list > div:nth-child(even) { padding-left: 0; border-left: 0; }
  .admin-table { min-width: 680px; }
  .admin-release-form #feature-code { min-height: 220px; }
}
@media (max-width: 430px) {
  .admin-menu { grid-template-columns: 1fr; }
  .admin-summary { grid-template-columns: 1fr; }
  .admin-summary > div, .admin-summary > div:first-child { padding: 0 0 16px; }
  .admin-summary > div + div { padding-top: 16px; border-top: 1px solid #e1e7ef; border-left: 0; }
}
/* ===== EasyEDetailing-Lite Admin Premium UI v2 ===== */
.admin-shell-v2{
  background:
    radial-gradient(circle at 7% 3%,rgba(45,103,181,.08),transparent 25%),
    linear-gradient(180deg,#f7faff 0%,#f3f6fa 100%);
  min-height:100vh;
}
.admin-shell-v2 .site-page.admin-page{
  width:min(1380px,calc(100% - 48px));
  padding:30px 0 64px;
}
.admin-shell-v2 .admin-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  margin-bottom:20px;
  padding:0 0 24px;
  border-bottom:1px solid #dce5ef;
}
.admin-shell-v2 .admin-heading-copy{min-width:0}
.admin-shell-v2 .admin-heading-badge{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:12px;
  padding:5px 9px;
  border:1px solid #d8e6f6;
  border-radius:999px;
  background:#eef6ff;
  color:#285b95;
  font-size:10px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
}
.admin-shell-v2 .admin-heading-badge span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#34c759;
  box-shadow:0 0 0 4px rgba(52,199,89,.12);
}
.admin-shell-v2 .admin-heading .eyebrow{
  margin:0 0 6px;
  color:#5c708c;
  font-size:10px;
  letter-spacing:.15em;
}
.admin-shell-v2 .admin-heading h1{
  margin:0 0 8px;
  color:#102b4e;
  font-size:clamp(30px,3.6vw,44px);
  letter-spacing:-.045em;
  line-height:1;
}
.admin-shell-v2 .admin-heading-copy>p:last-child{
  margin:0;
  color:#64758c;
  font-size:14px;
  line-height:1.55;
}
.admin-shell-v2 .admin-heading-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
  padding:8px 11px;
  border:1px solid #dbe5f0;
  border-radius:10px;
  background:rgba(255,255,255,.78);
  box-shadow:0 5px 14px rgba(16,43,78,.04);
}
.admin-shell-v2 .admin-live-dot{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#34c759;
  box-shadow:0 0 0 4px rgba(52,199,89,.12);
}
.admin-shell-v2 .admin-timezone{
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:#4d6480;
  font-size:11px;
  font-weight:700;
}
.admin-shell-v2 .admin-state{
  margin:0 0 18px;
  padding:11px 14px;
  border:1px solid #dce7f2;
  border-radius:10px;
  background:rgba(255,255,255,.68);
  color:#60738d;
  font-size:12px;
}
.admin-shell-v2 .admin-state:empty{display:none}
.admin-shell-v2 .admin-state-error{
  color:#a52a21;
  border-color:#f1cac4;
  background:#fff2f0;
}

.admin-shell-v2 .admin-workspace{
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  gap:24px;
  align-items:start;
}
.admin-shell-v2 .admin-menu{
  position:sticky;
  top:84px;
  display:grid;
  gap:5px;
  padding:12px;
  border:1px solid #dce5ef;
  border-radius:16px;
  background:rgba(255,255,255,.92);
  box-shadow:0 14px 34px rgba(18,44,76,.07);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.admin-shell-v2 .admin-menu::before{
  content:"CONTROL CENTER";
  display:block;
  padding:6px 10px 8px;
  color:#8a98aa;
  font-size:9px;
  font-weight:900;
  letter-spacing:.13em;
}
.admin-shell-v2 .admin-menu-item{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  width:100%;
  min-height:44px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#536a85;
  font-size:12.5px;
  font-weight:750;
  box-shadow:none;
}
.admin-shell-v2 .admin-menu-item:hover{
  color:#174f91;
  background:#eef5fd;
}
.admin-shell-v2 .admin-menu-item.active,
.admin-shell-v2 .admin-menu-item.active:hover{
  color:#fff;
  background:linear-gradient(135deg,#1f67b7,#174f91);
  box-shadow:0 8px 16px rgba(31,103,183,.20);
}
.admin-shell-v2 .admin-menu-logout{
  margin-top:10px;
  border-top:1px solid #edf1f5;
  border-radius:0 0 10px 10px;
  color:#a24e45;
}
.admin-shell-v2 .admin-menu-logout:hover{
  color:#a52a21;
  background:#fff1ef;
}
.admin-shell-v2 .admin-nav-icon{
  width:17px;
  height:17px;
  flex:0 0 17px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.admin-shell-v2 .admin-main{
  min-width:0;
}
.admin-shell-v2 .admin-view{
  min-width:0;
}
.admin-shell-v2 .admin-section-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
}
.admin-shell-v2 .admin-section-heading h2{
  margin:0 0 4px;
  color:#102b4e;
  font-size:21px;
  line-height:1.2;
  letter-spacing:-.025em;
}
.admin-shell-v2 .admin-section-heading p{
  margin:0;
  color:#718096;
  font-size:12.5px;
  line-height:1.5;
}
.admin-shell-v2 .admin-link-button{
  min-height:36px;
  padding:0 12px;
  border:1px solid #d4e1ef;
  border-radius:9px;
  background:#fff;
  color:#1d5fae;
  font-size:11.5px;
  font-weight:800;
  box-shadow:0 4px 10px rgba(18,44,76,.03);
}
.admin-shell-v2 .admin-link-button:hover{
  background:#eef5fc;
}

.admin-shell-v2 .admin-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:0 0 26px;
  border:0;
}
.admin-shell-v2 .admin-summary-card{
  min-width:0;
  min-height:116px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border:1px solid #dce6f1;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 26px rgba(16,43,78,.055);
}
.admin-shell-v2 .admin-summary-card>div:last-child{min-width:0}
.admin-shell-v2 .admin-summary-card+.admin-summary-card{
  border-left:1px solid #dce6f1;
}
.admin-shell-v2 .admin-summary-icon{
  width:44px;
  height:44px;
  flex:0 0 44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:#1d5fae;
  background:#eaf4ff;
}
.admin-shell-v2 .admin-summary-live .admin-summary-icon{
  color:#1f8654;
  background:#eaf8f0;
}
.admin-shell-v2 .admin-summary-users .admin-summary-icon{
  color:#6656c7;
  background:#f0edff;
}
.admin-shell-v2 .admin-summary-icon svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.admin-shell-v2 .admin-summary span{
  display:block;
  color:#718096;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.admin-shell-v2 .admin-summary strong{
  display:block;
  margin-top:5px;
  color:#102b4e;
  font-size:clamp(24px,2.5vw,34px);
  line-height:1;
  letter-spacing:-.045em;
}
.admin-shell-v2 .admin-summary small{
  display:block;
  margin-top:6px;
  color:#95a1b0;
  font-size:10px;
  line-height:1.3;
}

.admin-shell-v2 .admin-data-section,
.admin-shell-v2 .admin-action-section{
  margin-bottom:18px;
  padding:20px;
  border:1px solid #dce5ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,43,78,.045);
}
.admin-shell-v2 .admin-data-section:first-of-type{
  border-top:1px solid #dce5ef;
}
.admin-shell-v2 .admin-data-section>.admin-section-heading{
  margin-bottom:14px;
}
.admin-shell-v2 .admin-data-section-table{
  padding-top:18px;
}
.admin-shell-v2 .admin-table-scroll{
  width:100%;
  overflow:auto;
  border:1px solid #e3eaf2;
  border-radius:11px;
}
.admin-shell-v2 .admin-table{
  width:100%;
  min-width:780px;
  border-collapse:separate;
  border-spacing:0;
  background:#fff;
  font-size:12px;
}
.admin-shell-v2 .admin-table th{
  position:sticky;
  top:0;
  z-index:2;
  padding:11px 12px;
  border-bottom:1px solid #dce5ef;
  background:#f7f9fc;
  color:#748397;
  font-size:9px;
  font-weight:900;
  letter-spacing:.07em;
  text-transform:uppercase;
  white-space:nowrap;
}
.admin-shell-v2 .admin-table td{
  padding:12px;
  border-bottom:1px solid #edf1f5;
  color:#405873;
  vertical-align:middle;
}
.admin-shell-v2 .admin-table tbody tr:last-child td{border-bottom:0}
.admin-shell-v2 .admin-table tbody tr:hover td{background:#f7fbff}
.admin-shell-v2 .admin-table th:first-child,
.admin-shell-v2 .admin-table td:first-child{padding-left:14px}
.admin-shell-v2 .admin-table th:last-child,
.admin-shell-v2 .admin-table td:last-child{padding-right:14px}
.admin-shell-v2 .admin-clickable-row{cursor:pointer}
.admin-shell-v2 .admin-clickable-row:focus-visible{
  outline:2px solid #1d5fae;
  outline-offset:-2px;
}
.admin-shell-v2 .admin-empty{
  margin:14px 0 0;
  padding:18px;
  border:1px dashed #d8e2ec;
  border-radius:10px;
  background:#fafcff;
  color:#7d8b9d;
  text-align:center;
  font-size:12px;
}

.admin-shell-v2 .admin-list-controls{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin:0 0 14px;
  padding:12px;
  border:1px solid #e0e8f1;
  border-radius:12px;
  background:rgba(255,255,255,.76);
}
.admin-shell-v2 .admin-search{
  flex:1 1 auto;
  width:auto;
  margin:0;
}
.admin-shell-v2 .admin-search input{
  min-height:42px;
  margin:0;
  padding:0 13px;
  border:1px solid #d3deea;
  border-radius:9px;
  background:#fff;
  color:#233f61;
  font-size:12px;
}
.admin-shell-v2 .admin-search input:focus{
  outline:none;
  border-color:#8bb4df;
  box-shadow:0 0 0 3px rgba(45,103,181,.08);
}
.admin-shell-v2 .admin-sort-label{
  margin:0;
  color:#748397;
  font-size:10px;
  font-weight:800;
}
.admin-shell-v2 .admin-sort-label select{
  display:block;
  min-height:42px;
  margin-top:5px;
  padding:0 32px 0 11px;
  border:1px solid #d3deea;
  border-radius:9px;
  background:#fff;
  color:#294764;
  font:700 12px inherit;
}

.admin-shell-v2 .admin-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 8px;
  border-radius:999px;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.02em;
}
.admin-shell-v2 .admin-badge-active,
.admin-shell-v2 .admin-badge-paid,
.admin-shell-v2 .admin-badge-captured{
  color:#16784a;
  background:#e8f7ef;
}
.admin-shell-v2 .admin-badge-trial{
  color:#5e55b4;
  background:#f0edff;
}
.admin-shell-v2 .admin-badge-expiring,
.admin-shell-v2 .admin-badge-pending{
  color:#996400;
  background:#fff4d8;
}
.admin-shell-v2 .admin-badge-expired,
.admin-shell-v2 .admin-badge-failed{
  color:#a13c35;
  background:#fdeceb;
}
.admin-shell-v2 .admin-badge-no-plan{
  color:#60738d;
  background:#eef2f6;
}

.admin-shell-v2 .client-detail{
  overflow:hidden;
  border:1px solid #dce5ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,43,78,.045);
}
.admin-shell-v2 .client-detail-empty{
  min-height:340px;
  color:#7d8b9d;
}
.admin-shell-v2 .client-detail-header{
  padding:22px;
  background:linear-gradient(180deg,#f9fbfe,#fff);
  border-bottom:1px solid #e5ebf2;
}
.admin-shell-v2 .client-detail-section{
  padding:20px 22px;
}
.admin-shell-v2 .client-data-list,
.admin-shell-v2 .admin-settings-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  overflow:hidden;
  border:1px solid #e1e8f0;
  border-radius:12px;
  background:#fff;
}
.admin-shell-v2 .client-data-list>div,
.admin-shell-v2 .admin-settings-list>div{
  padding:14px 16px;
  border-bottom:1px solid #edf1f5;
}
.admin-shell-v2 .client-data-list>div:nth-child(even),
.admin-shell-v2 .admin-settings-list>div:nth-child(even){
  border-left:1px solid #edf1f5;
}
.admin-shell-v2 .client-data-list span,
.admin-shell-v2 .admin-settings-list span{
  display:block;
  margin-bottom:5px;
  color:#8390a0;
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.admin-shell-v2 .client-data-list strong,
.admin-shell-v2 .admin-settings-list strong{
  color:#29445f;
  font-size:12.5px;
  line-height:1.45;
}

.admin-shell-v2 .admin-release-form{
  max-width:900px;
  margin:0;
  padding:22px;
  border:1px solid #dce5ef;
  border-radius:15px;
  background:#fff;
  box-shadow:0 10px 28px rgba(16,43,78,.045);
}
.admin-shell-v2 .admin-release-form label{
  color:#365271;
  font-size:11.5px;
  font-weight:800;
}
.admin-shell-v2 .admin-release-form input,
.admin-shell-v2 .admin-release-form textarea{
  margin-top:7px;
  border:1px solid #d3deea;
  border-radius:9px;
  background:#fbfcfe;
  color:#203951;
}
.admin-shell-v2 .admin-release-form input:focus,
.admin-shell-v2 .admin-release-form textarea:focus{
  outline:none;
  border-color:#8bb4df;
  background:#fff;
  box-shadow:0 0 0 3px rgba(45,103,181,.08);
}
.admin-shell-v2 .admin-form-grid{
  gap:12px;
}
.admin-shell-v2 .admin-release-form #feature-code{
  min-height:250px;
  background:#f7f9fc;
  font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.admin-shell-v2 .admin-check{
  display:flex;
  align-items:center;
  gap:9px;
  padding:12px 14px;
  border:1px solid #e0e7ef;
  border-radius:10px;
  background:#f8fafc;
}
.admin-shell-v2 .admin-check input{
  width:16px;
  min-height:16px;
  margin:0;
}
.admin-shell-v2 .admin-primary{
  min-height:42px;
  border-radius:9px;
  background:linear-gradient(135deg,#1f67b7,#174f91);
  border-color:#174f91;
  box-shadow:0 8px 16px rgba(31,103,183,.18);
}
.admin-shell-v2 .admin-primary:hover{
  background:linear-gradient(135deg,#1b5ca4,#123f76);
}
.admin-shell-v2 .admin-action-section pre{
  border-radius:10px;
  background:#f7f9fc;
}

@media(max-width:1050px){
  .admin-shell-v2 .admin-workspace{
    grid-template-columns:190px minmax(0,1fr);
  }
  .admin-shell-v2 .admin-summary-card{
    padding:15px;
  }
}
@media(max-width:820px){
  .admin-shell-v2 .site-page.admin-page{
    width:min(100% - 24px,1380px);
    padding:22px 0 42px;
  }
  .admin-shell-v2 .admin-heading{
    align-items:flex-start;
    flex-direction:column;
    gap:12px;
  }
  .admin-shell-v2 .admin-workspace{
    grid-template-columns:1fr;
  }
  .admin-shell-v2 .admin-menu{
    position:static;
    grid-template-columns:repeat(3,minmax(0,1fr));
    top:auto;
  }
  .admin-shell-v2 .admin-menu::before{
    grid-column:1/-1;
  }
  .admin-shell-v2 .admin-menu-logout{
    margin-top:0;
  }
  .admin-shell-v2 .admin-summary{
    grid-template-columns:1fr;
  }
  .admin-shell-v2 .admin-summary-card{
    min-height:96px;
  }
  .admin-shell-v2 .admin-list-controls{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-shell-v2 .admin-sort-label select{
    width:100%;
  }
}
@media(max-width:560px){
  .admin-shell-v2 .site-page.admin-page{
    width:min(100% - 18px,1380px);
  }
  .admin-shell-v2 .admin-heading h1{
    font-size:30px;
  }
  .admin-shell-v2 .admin-heading-meta{
    width:100%;
    justify-content:center;
  }
  .admin-shell-v2 .admin-menu{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:9px;
  }
  .admin-shell-v2 .admin-menu-item{
    min-height:42px;
    padding:0 8px;
    font-size:11px;
  }
  .admin-shell-v2 .admin-data-section,
  .admin-shell-v2 .admin-action-section,
  .admin-shell-v2 .admin-release-form{
    padding:14px;
    border-radius:12px;
  }
  .admin-shell-v2 .admin-table{
    min-width:700px;
  }
  .admin-shell-v2 .client-data-list,
  .admin-shell-v2 .admin-settings-list{
    grid-template-columns:1fr;
  }
  .admin-shell-v2 .client-data-list>div:nth-child(even),
  .admin-shell-v2 .admin-settings-list>div:nth-child(even){
    border-left:0;
  }
}
