:root{font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:#23233f;background:#f5f7fe;font-synthesis:none;--muted:#7b8095;--purple:#6652df;--border:#e8eaf4;--shadow:0 12px 45px #56559809}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 0 15%,#e8e3ff 0,transparent 48%),radial-gradient(ellipse at 100% 80%,#e2f9fd 0,transparent 50%),#f6f8ff}button,input,select,textarea{font:inherit}button,.button{cursor:pointer}a{color:#6052ce;text-decoration:none}a:hover{text-decoration:underline}button:disabled{opacity:.5;cursor:wait}button,.button{border:0;border-radius:11px;min-height:44px;font-weight:600;padding:12px 18px;text-align:center;transition:background .15s,box-shadow .15s}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #9b8ce4;outline-offset:3px}.primary{color:white;background:linear-gradient(110deg,#7260ea,#5076df);box-shadow:0 6px 18px #6557db22}.primary:hover{box-shadow:0 8px 24px #6557db3d}.secondary{color:#5d54b2;background:#efedfb}.secondary:hover{background:#e5e0f9}.compact{padding:10px 16px;font-size:14px;min-height:42px}.text-button{padding:6px 8px;color:#695cc6;background:transparent;font-size:13px;min-height:38px}.button{display:inline-block}.page-shell{width:min(1040px,100% - 48px);margin:0 auto}.site-header{height:92px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #dedff075}.brand{display:flex;align-items:center;gap:11px;color:#32304d;font-size:16px;font-weight:700;letter-spacing:.03em}.brand:hover{text-decoration:none}.brand-icon{display:grid;place-items:center;border-radius:12px;background:linear-gradient(140deg,#7a62e7,#6386ed);color:white;width:34px;height:34px;font-size:21px}.header-caption{font-size:12px;color:var(--muted)}main{padding:44px 0 12px;min-height:calc(100vh - 160px)}.narrow{width:min(510px,100%);margin:0 auto}.intro{padding:28px 0 26px}.eyebrow{font-size:11px;letter-spacing:.18em;color:#8c86ae;font-weight:700}h1{font-size:34px;line-height:1.4;letter-spacing:-.04em;margin:12px 0}h2{font-size:17px;line-height:1.5;margin:0;color:#393158}p{font-size:14px;line-height:1.8;color:#697087;margin:12px 0}label{font-size:13px;font-weight:600;color:#565871;display:block}input,select,textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid #e1e3ef;border-radius:10px;background:#fbfcff;color:#30344e;outline:none}input:focus,select:focus,textarea:focus{border-color:#b1a4f1;background:#fff}input::placeholder,textarea::placeholder{color:#a2a6b8;font-size:13px}textarea{resize:vertical;line-height:1.6;overflow-wrap:anywhere}input[readonly],textarea[readonly]{background:#f6f7fc;font-size:13px}.panel{background:#ffffffed;border:1px solid #ffffff;border-radius:22px;padding:26px;box-shadow:var(--shadow);margin-bottom:20px}.stack{display:flex;flex-direction:column;gap:10px}.stack>button{margin-top:8px}.stack label:not(:first-child){margin-top:5px}.quiet{color:var(--muted);font-size:12px;line-height:1.8}.centered{text-align:center}.page-heading{margin-bottom:25px}.page-heading h1{font-size:29px;margin:8px 0}.page-heading p{margin:4px 0}.phone-panel{text-align:center;padding:28px 20px 22px}.field-caption{font-size:12px;color:#9c98b0;letter-spacing:.07em}.phone-number{font-size:27px;font-weight:700;color:#6262d9;margin:10px 0 19px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.phone-meta{display:flex;gap:8px 20px;flex-wrap:wrap;justify-content:center;border-top:1px solid #f1f0f8;margin-top:22px;padding-top:18px;font-size:11px;color:#9296a8}.phone-meta strong{font-weight:500;color:#73788b;margin-left:4px}.update-panel{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 24px}.status-line{color:#8a66ca;font-size:14px;font-weight:600}.update-panel .quiet{margin:5px 0 0;font-size:11px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:15px}.badge{background:#f0eefb;color:#8876c7;border-radius:20px;font-size:11px;padding:5px 9px;white-space:nowrap}.message-list{display:flex;flex-direction:column;gap:0}.message-item{padding:18px 0;border-top:1px solid #f0eff7}.message-item:first-child{border-top:0;padding-top:3px}.message-item:last-child{padding-bottom:0}.message-meta{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#9698aa;flex-wrap:wrap}.message-sender{font-weight:600;color:#68687c;overflow-wrap:anywhere}.message-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.9;margin:10px 0 0;color:#46455e}.empty-copy{padding:34px 8px;text-align:center;color:#a1a3b4;font-size:13px}.instructions h2{font-size:15px}.instructions ol{padding-left:18px;margin:14px 0;color:#8e93a6;font-size:12px;line-height:2.1}.instructions li{padding-left:4px;margin:5px 0}.instructions li::marker{color:#8c7ed7}.instructions .quiet{font-size:11px;border-top:1px solid #f2f1f7;padding-top:12px;margin-bottom:0}.empty-state{text-align:center;padding:36px 28px}.empty-state p{margin-bottom:24px}.empty-symbol{color:#aea2e6;font-size:36px;margin-bottom:18px}.notice{margin:0 auto 20px;padding:13px 17px;border:1px solid #d7cef8;border-radius:12px;background:#f3efff;color:#605385;line-height:1.7;font-size:13px;overflow-wrap:anywhere;max-width:1040px}.notice[data-kind=error]{background:#fff1f2;border-color:#f4d5dc;color:#a54159}.admin-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-grid .panel{margin-bottom:20px}.step{font-size:12px;letter-spacing:.06em;color:#aaa1c9}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:5px}.optional{font-size:11px;font-weight:400;color:#a8a7b7;margin-left:6px}.login-panel{max-width:420px;margin:36px auto}.result-panel{border:1px solid #dcd3fc;background:#fefeff}.result-panel label{margin:16px 0 8px}.result-panel>button{margin-top:12px}.admin-list{display:flex;flex-direction:column}.admin-item{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 0;border-top:1px solid var(--border)}.admin-item:first-child{border-top:0;padding-top:5px}.admin-item:last-child{padding-bottom:0}.admin-item-main{min-width:0}.admin-item-title{font-size:14px;font-weight:600;color:#4e4d67;overflow-wrap:anywhere}.admin-item .quiet{margin:5px 0 0;overflow-wrap:anywhere}.admin-item-actions{flex-shrink:0;display:flex;align-items:center;gap:10px}.tag{font-size:11px;padding:5px 9px;background:#f2f0fb;border-radius:7px;color:#897cab}.tag.inactive{background:#f1f2f6;color:#969baa}footer{text-align:center;color:#b1b1c2;font-size:11px;padding:28px 0 24px;letter-spacing:.04em}[hidden]{display:none!important}@media(max-width:640px){.page-shell{width:calc(100% - 32px)}.site-header{height:72px}.header-caption{display:none}main{padding-top:28px}.intro{padding-top:10px}h1{font-size:31px}.panel{padding:22px;border-radius:21px;margin-bottom:16px}.phone-panel{padding:26px 16px 21px}.phone-number{font-size:26px}.phone-meta{font-size:10px;gap:7px 12px}.admin-grid{grid-template-columns:1fr;gap:0}.admin-grid .panel{margin-bottom:16px}.admin-heading h1{font-size:24px}.admin-heading{align-items:flex-start}.admin-heading p{font-size:12px}.admin-item{align-items:flex-start;gap:8px}.admin-item-actions{flex-direction:column;align-items:flex-end;gap:5px}.admin-item-actions button{font-size:12px;padding:8px 10px}.page-heading h1{font-size:27px}.update-panel{padding:19px 20px}.section-heading h2{font-size:16px}.form-row{gap:10px}.form-row label{font-size:12px}.notice{margin-bottom:16px}}

.advanced-config{margin-top:24px;border-top:1px solid #e8e3f6;padding-top:16px}.advanced-config summary{cursor:pointer;color:#756798;font-size:13px;line-height:1.8}

.fulfillment-panel h3{margin:0;color:#56516e;font-size:14px;line-height:1.6;font-weight:600}
.fulfillment-fields{min-width:0;border:0;padding:0;margin:10px 0 0}
.fulfillment-config-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.fulfillment-config-grid h3{margin-bottom:3px}
.fulfillment-config-grid .quiet{margin:0}
.fulfillment-pool-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.fulfillment-number-pool{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fulfillment-number{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;cursor:pointer;background:#fbfcff;min-width:0}
.fulfillment-number input,.checkbox-label input{width:17px;min-height:17px;height:17px;flex-shrink:0;margin:3px 0 0;accent-color:var(--purple)}
.fulfillment-number>span{min-width:0;display:flex;flex-direction:column;gap:3px}
.fulfillment-number-title{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.fulfillment-number .quiet{font-weight:400;font-size:11px;overflow-wrap:anywhere}
.checkbox-label{display:flex;align-items:flex-start;gap:9px;margin-top:20px;line-height:1.8;cursor:pointer}
.fulfillment-connection,.fulfillment-orders{border-top:1px solid var(--border);margin-top:26px;padding-top:22px}
.fulfillment-connection label{margin:14px 0 8px}
.copy-field{display:flex;align-items:stretch;gap:9px}
.copy-field input{min-width:0}
.copy-field button{flex-shrink:0}
.fulfillment-secret-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}
.fulfillment-secret-controls .quiet{margin:0}
.fulfillment-secret-controls button{flex-shrink:0}
.fulfillment-secret-result{padding:16px;background:#f6f3ff;border:1px solid #e3dbfb;border-radius:12px;margin-top:14px}
.fulfillment-secret-result .section-heading{margin-bottom:10px}
.fulfillment-secret-result .quiet{margin-bottom:0}
.fulfillment-orders .section-heading{margin-bottom:4px}
.fulfillment-orders>.quiet{margin:0 0 12px}
.fulfillment-orders .admin-item> .tag{flex-shrink:0}
.fulfillment-error{font-size:13px;color:#a54159;background:#fff1f2;border-radius:10px;padding:12px}
.capacity-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:12px}
.capacity-controls label{font-size:12px;line-height:1.6}
.capacity-controls select{width:86px;min-height:34px;padding:6px 10px;font-size:12px}
.capacity-controls button{min-height:34px;padding:6px 10px;font-size:12px}
@media(max-width:640px){.fulfillment-config-grid,.fulfillment-number-pool{grid-template-columns:1fr}.fulfillment-config-grid{gap:22px}.fulfillment-secret-controls{align-items:flex-start;flex-direction:column;gap:4px}.fulfillment-secret-result{padding:12px}.fulfillment-pool-heading{align-items:flex-start;gap:6px;flex-wrap:wrap}.fulfillment-panel>.section-heading{gap:8px}.fulfillment-panel>.section-heading .tag{font-size:10px}}

/* The shared inbox keeps a compact layout on both phones and larger screens. */
body.inbox-view {
  color: #6f7782;
  background: #f5f6fa;
}

body.inbox-view .page-shell {
  width: min(400px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 0 24%, #e7e2ff 0, transparent 68%),
    radial-gradient(ellipse at 100% 0, #d9f6ff 0, transparent 60%),
    linear-gradient(150deg, #f1f0ff 0, #edf2ff 62%, #e9fbff 100%);
}

body.inbox-view .site-header,
body.inbox-view footer {
  display: none;
}

body.inbox-view main {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 18px 2px;
}

body.inbox-view #user-page {
  width: 100%;
}

body.inbox-view .panel {
  margin-bottom: 18px;
  border: 0;
  border-radius: 19px;
  background: #ffffffed;
  box-shadow: 0 8px 24px #6566b006;
}

body.inbox-view .phone-panel {
  min-height: 146px;
  padding: 18px 15px 22px;
}

body.inbox-view .phone-heading {
  color: #4a7dcb;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

body.inbox-view .phone-number {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

body.inbox-view .phone-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-top: 13px;
  padding: 0;
  border: 0;
  color: #8a8c93;
  font-size: 11px;
  line-height: 1.6;
}

body.inbox-view .phone-meta strong {
  margin: 0;
  color: inherit;
  font-weight: 400;
}

body.inbox-view .meta-divider {
  color: #b3b2bc;
}

body.inbox-view #copy-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  margin-top: 13px;
  padding: 5px 10px;
  border-radius: 6px;
  background: linear-gradient(100deg, #785ce8, #288fac);
  box-shadow: 0 7px 17px #8260de35;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

body.inbox-view svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.inbox-view .update-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 22px 18px;
  gap: 12px;
}

body.inbox-view .inbox-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  width: 100%;
}

body.inbox-view .status-line {
  color: #8b95a3;
  font-size: 16px;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
}

body.inbox-view .countdown-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ba45c9;
  font-size: 18px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}

body.inbox-view .countdown-row svg {
  width: 20px;
  height: 20px;
}

body.inbox-view .inbox-latest {
  width: 100%;
  text-align: center;
}

body.inbox-view .inbox-request-controls {
  width: 100%;
  text-align: center;
}

body.inbox-view #request-code {
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  background: linear-gradient(100deg, #785ce8, #288fac);
}

body.inbox-view #inbox-request-note {
  margin: 10px 0 0;
  color: #8791a0;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

body.inbox-view #inbox-latest-text {
  margin: 0 0 14px;
  color: #565d6d;
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body.inbox-view #copy-latest-message,
body.inbox-view #refresh-inbox {
  min-height: 32px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
}

body.inbox-view .messages-panel {
  min-height: 160px;
  padding: 48px 18px 24px;
}

body.inbox-view .section-heading {
  margin-bottom: 0;
}

body.inbox-view h2 {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #554994;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

body.inbox-view .empty-copy {
  padding: 28px 8px 8px;
  color: #8f8f94;
  font-size: 14px;
  line-height: 1.5;
}

body.inbox-view .message-list:has(.message-item) {
  margin-top: 20px;
}

body.inbox-view .message-item {
  padding: 16px 0;
  border-color: #eeecf8;
}

body.inbox-view .message-meta {
  color: #9597a0;
}

body.inbox-view .message-text {
  color: #616777;
  font-size: 14px;
  line-height: 1.85;
}

body.inbox-view .instructions {
  min-height: 240px;
  padding: 49px 18px 24px;
}

body.inbox-view .instructions ul {
  margin: 18px 0 0;
  padding-left: 14px;
  color: #8791a0;
  font-size: 12px;
  line-height: 1.9;
}

body.inbox-view .instructions li {
  margin: 10px 0;
  padding-left: 0;
}

body.inbox-view .instructions li::marker {
  color: #8b76db;
}

body.inbox-view .instructions li:last-child {
  margin-bottom: 0;
}

body.inbox-view .empty-state {
  padding: 40px 24px;
}

body.inbox-view .empty-state h2 {
  justify-content: center;
  font-size: 16px;
}

body.inbox-view .empty-state p {
  color: #8791a0;
  font-size: 13px;
}

body.inbox-view .notice {
  margin-bottom: 18px;
  font-size: 12px;
}

@media (max-width: 350px) {
  body.inbox-view main {
    padding-right: 16px;
    padding-left: 16px;
  }

  body.inbox-view .phone-heading {
    font-size: 15px;
  }

  body.inbox-view .phone-meta {
    font-size: 10px;
  }
}

/* Admin categories are a separate workspace; the public inbox retains its layout. */
body.admin-view {
  --muted: #738095;
  --border: #e7ebf2;
  --purple: #6753d8;
  color: #24324a;
  background: #f5f7fa;
}

body.admin-view .page-shell { width: min(1180px, calc(100% - 64px)); }
body.admin-view .site-header { height: 76px; border-bottom: 1px solid #e6eaf0; }
body.admin-view .brand { color: #24324a; letter-spacing: 0; }
body.admin-view .header-caption { color: #7e8a9c; }
body.admin-view main { padding-top: 28px; }
body.admin-view .admin-heading { margin-bottom: 28px; }
body.admin-view .admin-heading .eyebrow { font-size: 10px; letter-spacing: .12em; color: #8892a3; }
body.admin-view .admin-heading h1 { font-size: 26px; color: #1e2b41; margin: 6px 0; letter-spacing: -.02em; }
body.admin-view .admin-heading p { font-size: 13px; color: #748096; }
body.admin-view .panel { padding: 24px; border: 1px solid #e7ebf2; border-radius: 14px; background: #fff; box-shadow: 0 3px 10px #23345203; margin-bottom: 18px; }
body.admin-view h2 { color: #253349; font-size: 20px; }
body.admin-view h3 { color: #344258; font-size: 14px; line-height: 1.6; margin: 0; font-weight: 650; }
body.admin-view p { color: #738095; }
body.admin-view label { color: #536176; font-size: 12px; }
body.admin-view .quiet { color: #7a8699; font-size: 12px; line-height: 1.7; }
body.admin-view input,
body.admin-view select,
body.admin-view textarea { min-height: 42px; border: 1px solid #dfe5ee; border-radius: 8px; padding: 10px 12px; background: #fff; color: #344258; font-size: 13px; }
body.admin-view input::placeholder,
body.admin-view textarea::placeholder { color: #9aa5b4; font-size: 12px; }
body.admin-view input[readonly],
body.admin-view textarea[readonly] { background: #f7f9fc; }
body.admin-view input:focus,
body.admin-view select:focus,
body.admin-view textarea:focus { border-color: #ab9be8; box-shadow: 0 0 0 3px #eee9ff; }
body.admin-view button { border-radius: 8px; min-height: 40px; font-size: 13px; }
body.admin-view .primary { background: #6a55d7; box-shadow: none; }
body.admin-view .primary:hover { background: #5e48c9; box-shadow: none; }
body.admin-view .secondary { background: #f0edf9; color: #6753c5; }
body.admin-view .secondary:hover { background: #e8e2f7; }
body.admin-view .compact { min-height: 38px; padding: 9px 14px; font-size: 12px; }
body.admin-view .text-button { min-height: 34px; font-size: 12px; padding: 5px 8px; font-weight: 500; }
body.admin-view .badge { background: #f0edfa; color: #715cb4; font-size: 11px; }
body.admin-view .tag { border-radius: 5px; background: #edf7f1; color: #438366; padding: 5px 9px; }
body.admin-view .tag.inactive { background: #f0f2f6; color: #8490a2; }
body.admin-view .notice { max-width: 1180px; }
body.admin-view footer { color: #a3acba; margin-left: 224px; padding-top: 12px; }
body.admin-view .admin-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
body.admin-view .admin-sidebar { position: sticky; top: 24px; padding: 5px 0; }
body.admin-view .sidebar-caption { margin: 0 16px 14px; color: #a0a9b6; font-size: 11px; letter-spacing: .06em; }
body.admin-view .admin-nav { display: flex; flex-direction: column; gap: 6px; }
body.admin-view .admin-nav button { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 12px 16px; background: transparent; color: #6c788b; font-weight: 500; text-align: left; white-space: nowrap; }
body.admin-view .admin-nav button:hover { background: #edf0f5; }
body.admin-view .admin-nav button.is-active { background: #ebe7fa; color: #6852ce; font-weight: 650; }
body.admin-view .admin-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
body.admin-view .sidebar-note { margin: 30px 16px 0; border-top: 1px solid #e2e7ee; padding-top: 20px; color: #a0a9b6; font-size: 11px; line-height: 1.8; }
body.admin-view .admin-workspace { min-width: 0; }
body.admin-view .workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 20px; min-height: 58px; }
body.admin-view .workspace-heading h2 { display: flex; align-items: center; gap: 10px; font-size: 21px; }
body.admin-view .workspace-heading p { font-size: 12px; line-height: 1.7; margin: 5px 0 0; }
body.admin-view .workspace-heading button { flex-shrink: 0; }
body.admin-view #overview-updated { display: inline-block; padding-left: 10px; color: #97a1b1; font-size: 11px; }
body.admin-view .overview-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
body.admin-view .stat-card { display: flex; flex-direction: column; padding: 19px 20px; min-height: 143px; border: 1px solid #e7ebf2; border-radius: 12px; background: #fff; }
body.admin-view .stat-card > span { color: #748096; font-size: 12px; }
body.admin-view .stat-card strong { color: #29364b; font-size: 32px; font-weight: 650; line-height: 1.4; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
body.admin-view .stat-card small { color: #9aa4b3; font-size: 10px; }
body.admin-view .stat-accent { border-color: #e2daf8; background: #f4f0fe; }
body.admin-view .stat-accent strong { color: #6a54d4; }
body.admin-view .overview-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; margin-bottom: 20px; border: 1px solid #e7ebf2; border-radius: 10px; background: #fff; }
body.admin-view .overview-status > div { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
body.admin-view .overview-status strong { color: #4b586d; font-size: 12px; font-weight: 600; }
body.admin-view .overview-status .quiet { font-size: 11px; margin: 0; }
body.admin-view .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #aa9bdd; flex-shrink: 0; }
body.admin-view .overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
body.admin-view .overview-grid > .panel { min-width: 0; padding: 20px; }
body.admin-view .overview-grid .section-heading { margin-bottom: 8px; }
body.admin-view .overview-grid .admin-item { padding: 15px 0; gap: 10px; }
body.admin-view .overview-grid .admin-item-title { font-size: 12px; }
body.admin-view .overview-grid .admin-item .quiet { font-size: 11px; }
body.admin-view .overview-list-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 0; border-top: 1px solid #edf0f5; }
body.admin-view .overview-list-item:first-child { border-top: 0; padding-top: 9px; }
body.admin-view .overview-list-item:last-child { padding-bottom: 2px; }
body.admin-view .overview-list-item .admin-item-title { font-size: 12px; line-height: 1.7; font-weight: 600; }
body.admin-view .overview-list-item .quiet { font-size: 11px; line-height: 1.7; margin: 5px 0 0; overflow-wrap: anywhere; }
body.admin-view .overview-list-item > .tag { flex-shrink: 0; margin-top: 2px; font-size: 10px; white-space: nowrap; }
body.admin-view .section-heading { margin-bottom: 14px; }
body.admin-view .admin-item { padding: 20px 0; gap: 20px; align-items: center; border-color: #ebeff4; }
body.admin-view .admin-item:first-child { padding-top: 0; }
body.admin-view .admin-item:last-child { padding-bottom: 0; }
body.admin-view .admin-item-title { color: #36445a; font-size: 13px; }
body.admin-view .admin-item .quiet { margin-top: 5px; font-size: 11px; line-height: 1.7; }
body.admin-view .admin-item-actions { gap: 8px; }
body.admin-view .admin-item-actions button { font-weight: 500; }
body.admin-view .record-details { margin-top: 8px; }
body.admin-view .record-details > summary { width: fit-content; cursor: pointer; color: #939eb0; font-size: 10px; line-height: 1.7; }
body.admin-view .record-details > .quiet { color: #8c97a8; margin-top: 5px; }
body.admin-view .capacity-controls { margin-top: 10px; gap: 8px; }
body.admin-view .capacity-controls label { font-size: 11px; }
body.admin-view .capacity-controls select { width: 80px; min-height: 30px; font-size: 11px; padding: 5px 9px; }
body.admin-view .capacity-controls button { min-height: 30px; font-size: 11px; padding: 5px 9px; }
body.admin-view .list-panel { padding: 22px 24px; }
body.admin-view .list-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #edf0f5; }
body.admin-view .search-control { max-width: 410px; flex: 1; min-width: 0; }
body.admin-view .search-control input { background: #fafbfd; }
body.admin-view .filter-control { width: 134px; flex-shrink: 0; margin-left: auto; }
body.admin-view .empty-copy { padding: 38px 8px; font-size: 12px; color: #a0a9b7; }
body.admin-view .workspace-footnote { font-size: 11px; line-height: 1.8; color: #96a0af; margin: -4px 2px 20px; }
body.admin-view .admin-disclosure { padding: 0; overflow: hidden; }
body.admin-view .admin-disclosure > summary { display: flex; align-items: center; gap: 12px; position: relative; padding: 19px 24px; list-style: none; cursor: pointer; color: #46546a; font-size: 13px; font-weight: 600; }
body.admin-view .admin-disclosure > summary::-webkit-details-marker { display: none; }
body.admin-view .admin-disclosure > summary::after { content: '+'; display: grid; place-items: center; color: #9aa4b4; width: 20px; height: 20px; font-size: 19px; font-weight: 400; margin-left: auto; }
body.admin-view .admin-disclosure[open] > summary::after { content: '−'; }
body.admin-view .admin-disclosure > summary > span { font-size: 11px; color: #99a2b1; font-weight: 400; }
body.admin-view .admin-disclosure[open] > summary { border-bottom: 1px solid #edf0f5; }
body.admin-view .disclosure-content { padding: 22px 24px; }
body.admin-view .disclosure-content > .quiet:first-child { margin-top: 0; }
body.admin-view #number-form,
body.admin-view #card-form { max-width: 600px; }
body.admin-view .stack { gap: 8px; }
body.admin-view .stack > .quiet { margin: 2px 0 7px; }
body.admin-view #number-form > button,
body.admin-view #card-form > button { align-self: flex-start; min-width: 132px; margin-top: 12px; }
body.admin-view .result-panel { border-color: #ded7f3; background: #fdfcff; }
body.admin-view .result-panel h2 { font-size: 16px; }
body.admin-view .result-panel .quiet { max-width: 720px; }
body.admin-view .fulfillment-orders { border-top: 1px solid #e7ebf2; margin-top: 0; }
body.admin-view .fulfillment-panel { padding: 24px; }
body.admin-view .fulfillment-fields { margin: 0; }
body.admin-view .settings-section { border-top: 1px solid #edf0f5; padding: 22px 0; }
body.admin-view .settings-section:first-child { border-top: 0; padding-top: 5px; }
body.admin-view .settings-section-heading { margin-bottom: 16px; }
body.admin-view .settings-section-heading .quiet { margin: 4px 0 0; }
body.admin-view .settings-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
body.admin-view .settings-package-grid > .stack:first-child { grid-column: span 2; }
body.admin-view .settings-section > .quiet:last-child { margin-bottom: 0; font-size: 11px; }
body.admin-view .fulfillment-pool-heading { margin: 0 0 14px; }
body.admin-view .fulfillment-number-pool { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.admin-view .fulfillment-number { padding: 13px; background: #fafbfd; border-radius: 8px; }
body.admin-view .fulfillment-number:has(input:checked) { border-color: #cfc3f3; background: #f7f4fe; }
body.admin-view .fulfillment-number input,
body.admin-view .checkbox-label input { width: 16px; height: 16px; min-height: 16px; padding: 0; box-shadow: none; }
body.admin-view .fulfillment-number-title { font-size: 12px; }
body.admin-view .fulfillment-number .quiet { font-size: 10px; }
body.admin-view #xgj-app-settings { border: 1px solid #e7ebf2; border-radius: 10px; margin: 0 0 22px; }
body.admin-view #xgj-app-settings > summary { padding: 16px 18px; }
body.admin-view #xgj-app-settings .disclosure-content { padding: 18px; max-width: 650px; }
body.admin-view .settings-save-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 0; }
body.admin-view .settings-save-row .checkbox-label { margin: 0; font-size: 13px; }
body.admin-view .settings-save-row .quiet { font-size: 11px; margin: 5px 0 0; }
body.admin-view .settings-save-row button { flex-shrink: 0; }
body.admin-view .fulfillment-connection { border: 1px solid #e7ebf2; border-radius: 10px; margin-top: 24px; padding: 0; }
body.admin-view .fulfillment-connection > summary { padding: 16px 18px; }
body.admin-view .fulfillment-connection .disclosure-content { padding: 18px; }
body.admin-view .fulfillment-secret-result { border-color: #ddd3f4; background: #f7f3fe; }
body.admin-view .login-panel h2 { font-size: 18px; }
body.admin-view .visually-hidden { 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: 1050px) {
  body.admin-view .page-shell { width: calc(100% - 40px); }
  body.admin-view .admin-layout { grid-template-columns: 164px minmax(0, 1fr); gap: 22px; }
  body.admin-view footer { margin-left: 186px; }
  body.admin-view .overview-stats { gap: 10px; }
  body.admin-view .stat-card { padding: 18px 14px; }
  body.admin-view .overview-grid { grid-template-columns: 1fr; gap: 0; }
  body.admin-view .settings-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-view .settings-package-grid > .stack:first-child { grid-column: auto; }
  body.admin-view .fulfillment-number-pool { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body.admin-view .overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.admin-view .stat-card { min-height: 132px; }
  body.admin-view .admin-item { align-items: flex-start; gap: 10px; }
  body.admin-view .admin-item-actions { flex-direction: column; align-items: flex-end; }
  body.admin-view .workspace-heading { align-items: flex-start; }
}

@media (max-width: 640px) {
  body.admin-view .page-shell { width: calc(100% - 32px); }
  body.admin-view .site-header { height: 66px; }
  body.admin-view main { padding-top: 23px; }
  body.admin-view .admin-heading { margin-bottom: 24px; }
  body.admin-view .admin-heading h1 { font-size: 23px; }
  body.admin-view .admin-heading p { font-size: 12px; }
  body.admin-view .admin-heading .compact { padding: 8px 11px; }
  body.admin-view .admin-layout { display: block; }
  body.admin-view .admin-sidebar { position: static; padding: 0; margin-bottom: 24px; }
  body.admin-view .sidebar-caption,
  body.admin-view .sidebar-note { display: none; }
  body.admin-view .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  body.admin-view .admin-nav button { justify-content: center; gap: 6px; min-height: 41px; padding: 10px 8px; font-size: 12px; }
  body.admin-view .admin-nav svg { width: 15px; height: 15px; }
  body.admin-view .workspace-heading { min-height: 51px; gap: 12px; margin-bottom: 18px; }
  body.admin-view .workspace-heading h2 { font-size: 18px; }
  body.admin-view .workspace-heading p { font-size: 11px; }
  body.admin-view .workspace-heading button { min-height: 34px; padding: 8px 10px; font-size: 11px; }
  body.admin-view #overview-updated { padding-left: 0; display: block; margin-top: 2px; }
  body.admin-view .overview-stats { gap: 10px; margin-bottom: 14px; }
  body.admin-view .stat-card { min-height: 126px; padding: 15px 17px; }
  body.admin-view .stat-card strong { font-size: 29px; margin-top: 6px; }
  body.admin-view .stat-card small { font-size: 10px; }
  body.admin-view .overview-status { padding: 12px 14px; gap: 8px; margin-bottom: 16px; }
  body.admin-view .overview-status > div { column-gap: 7px; row-gap: 5px; }
  body.admin-view .overview-status .quiet { width: calc(100% - 14px); margin-left: 14px; }
  body.admin-view .overview-status > button { flex-shrink: 0; padding: 5px 0; font-size: 11px; }
  body.admin-view .panel,
  body.admin-view .list-panel,
  body.admin-view .fulfillment-panel,
  body.admin-view .overview-grid > .panel { padding: 18px; border-radius: 12px; margin-bottom: 16px; }
  body.admin-view .admin-disclosure { padding: 0; }
  body.admin-view .admin-disclosure > summary { padding: 17px 18px; gap: 8px; flex-wrap: wrap; }
  body.admin-view .admin-disclosure > summary > span { font-size: 10px; }
  body.admin-view .disclosure-content { padding: 18px; }
  body.admin-view .admin-item { padding: 17px 0; }
  body.admin-view .admin-item-title { font-size: 12px; }
  body.admin-view .admin-item .quiet { font-size: 10px; }
  body.admin-view .admin-item-actions button { font-size: 11px; padding: 7px 9px; }
  body.admin-view .capacity-controls { column-gap: 6px; row-gap: 5px; }
  body.admin-view .capacity-controls label { font-size: 10px; }
  body.admin-view .capacity-controls select { width: 67px; }
  body.admin-view .list-toolbar { gap: 8px; margin-bottom: 18px; padding-bottom: 16px; }
  body.admin-view .filter-control { width: 109px; }
  body.admin-view .list-toolbar input,
  body.admin-view .list-toolbar select { padding: 9px 10px; font-size: 11px; min-height: 38px; }
  body.admin-view .list-toolbar input::placeholder { font-size: 10px; }
  body.admin-view .settings-package-grid { gap: 16px 12px; }
  body.admin-view .settings-section { padding: 19px 0; }
  body.admin-view .settings-save-row { align-items: flex-start; flex-direction: column; gap: 16px; }
  body.admin-view .settings-save-row > button { width: 100%; }
  body.admin-view #xgj-app-settings > summary,
  body.admin-view .fulfillment-connection > summary { padding: 15px; }
  body.admin-view #xgj-app-settings .disclosure-content,
  body.admin-view .fulfillment-connection .disclosure-content { padding: 15px; }
  body.admin-view .copy-field { gap: 7px; }
  body.admin-view .copy-field button { padding: 9px 10px; font-size: 11px; }
  body.admin-view .workspace-footnote { font-size: 10px; margin: -2px 2px 18px; }
  body.admin-view footer { margin-left: 0; }
}
