:root {
  --ink: #162724;
  --muted: #64726f;
  --teal: #0d4f4a;
  --teal-deep: #073c38;
  --mint: #d9eee7;
  --cream: #f5f3ea;
  --paper: #fffef9;
  --line: #dbe2dd;
  --amber: #b9660b;
  --amber-bg: #fff4da;
  --red: #a43c35;
  --shadow: 0 18px 50px rgba(19, 53, 48, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--cream); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(13,79,74,.28); outline-offset: 2px; }
.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; }
.topbar {
  height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center;
  justify-content: space-between; background: rgba(255, 254, 249, .94); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px);
}
.brand { color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; display: block; flex: 0 0 auto; filter: drop-shadow(0 5px 10px rgba(13, 79, 74, .14)); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .015em; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 11px; }
nav { display: flex; gap: 6px; }
.nav-button { border: 0; background: transparent; padding: 10px 18px; color: var(--muted); border-radius: 10px; font-weight: 700; }
.nav-button.active { color: var(--teal); background: var(--mint); }
.nav-button.logout-button { color: #9b3f37; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 3px; border-radius: 999px; background: var(--red); color: white; font-size: 10px; }
.page { display: none; }
.page.active { display: block; }
.hero { padding: 64px 24px 42px; text-align: center; background: radial-gradient(circle at 75% 10%, #dceee8 0, transparent 29%), linear-gradient(180deg, #fffef9, #f5f3ea); }
.eyebrow { color: var(--teal); font-size: 12px; letter-spacing: .18em; font-weight: 850; margin: 0 0 14px; }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 span { color: var(--teal); }
.hero-copy { margin: 20px auto 26px; max-width: 600px; line-height: 1.7; color: var(--muted); }
.search-box { margin: 0 auto; max-width: 760px; height: 68px; display: flex; align-items: center; background: white; padding: 7px; border: 1px solid #cbd7d2; border-radius: 18px; box-shadow: var(--shadow); }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(13,79,74,.09), var(--shadow); }
.search-box svg { width: 23px; margin: 0 14px; fill: none; stroke: var(--teal); stroke-width: 1.8; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; font-size: 17px; color: var(--ink); }
.search-box button, .primary-button { border: 0; color: white; background: var(--teal); border-radius: 12px; padding: 15px 24px; font-weight: 800; }
.search-box button:hover, .primary-button:hover { background: var(--teal-deep); }
.quick-search { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 12px; }
.quick-search button { color: var(--teal); background: rgba(255,255,255,.8); border: 1px solid var(--line); padding: 7px 10px; border-radius: 999px; }
.stats-strip { min-height: 32px; margin-top: 28px; display: flex; justify-content: center; gap: 22px; color: var(--muted); font-size: 12px; }
.stats-strip strong { color: var(--ink); font-size: 14px; }
.content-panel { max-width: 1180px; margin: 0 auto 64px; padding: 26px 24px; }
.empty-state { text-align: center; padding-top: 58px; color: var(--muted); }
.empty-state h2 { color: var(--ink); margin: 18px 0 8px; font-size: 20px; }
.empty-illustration { width: 88px; height: 116px; border: 5px solid #b7cdc6; border-radius: 16px; margin: auto; display: grid; place-items: center; transform: rotate(-5deg); }
.empty-illustration span { width: 9px; height: 9px; background: #b7cdc6; border-radius: 50%; position: relative; top: -42px; }
.result-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.result-heading h2 { margin: 0; font-size: 24px; }
.result-heading p { margin: 6px 0 0; color: var(--muted); }
.count-pill { flex: none; padding: 7px 11px; background: var(--mint); color: var(--teal); border-radius: 999px; font-size: 12px; font-weight: 800; }
.warning { display: flex; gap: 10px; padding: 13px 15px; background: var(--amber-bg); color: #774207; border: 1px solid #ead29e; border-radius: 12px; margin: 14px 0 20px; line-height: 1.5; font-size: 13px; }
.result-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 16px; }
.result-tools label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.result-tools select { border: 1px solid var(--line); background: white; border-radius: 9px; padding: 8px 10px; color: var(--ink); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.pagination button { border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--teal); padding: 8px 12px; font-weight: 750; }
.pagination button:disabled { opacity: .45; cursor: default; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(275px, 1fr)); gap: 14px; }
.result-card { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
button.result-card:hover { transform: translateY(-2px); border-color: #aabfb8; box-shadow: 0 12px 28px rgba(20,55,50,.09); }
.result-card-layout { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: stretch; }
.result-card-image { min-height: 108px; border-radius: 12px; background: #edf1ed; display: grid; place-items: center; overflow: hidden; }
.result-card-image img { display: block; width: 100%; height: 108px; object-fit: contain; }
.result-card-image .phone-placeholder { width: 36px; height: 68px; border-width: 3px; border-radius: 9px; }
.result-card-image .phone-placeholder::before { width: 4px; height: 4px; top: 4px; left: calc(50% - 2px); }
.result-card-copy { min-width: 0; }
.card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.card-brand { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em; }
.result-card h3 { margin: 6px 0 10px; line-height: 1.28; font-size: 17px; }
.card-meta { display: flex; gap: 12px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.size-badge { background: var(--ink); color: white; border-radius: 9px; padding: 7px 9px; font-weight: 850; white-space: nowrap; }
.size-badge.missing-size { background: var(--red); font-size: 11px; }
.confidence { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; padding: 6px 8px; border-radius: 8px; font-size: 11px; font-weight: 800; }
.confidence.level-1, .confidence.level-2 { color: #12633e; background: #def2e4; }
.confidence.level-3 { color: var(--teal); background: var(--mint); }
.confidence.level-4 { color: #865112; background: var(--amber-bg); }
.confidence.level-5, .confidence.level-null { color: #68716f; background: #eef0ef; }
.reference-film-codes { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.reference-film-codes span { color: var(--muted); font-size: 10px; font-weight: 800; }
.reference-film-codes strong { padding: 5px 8px; border: 1px solid #b9d7ce; border-radius: 999px; background: #edf8f4; color: var(--teal); font-size: 11px; line-height: 1; }
.reference-film-codes em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 750; }
.reference-film-codes.empty em { padding: 5px 8px; border-radius: 999px; background: #eef0ef; }
.reference-film-codes.compact { margin-top: 10px; }
.reference-film-codes.compact strong { padding: 4px 7px; font-size: 10px; }
.detail-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.back-button { border: 0; background: transparent; color: var(--teal); font-weight: 750; padding: 4px 0 18px; }
.detail-main, .detail-aside { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; }
.device-hero { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.phone-image { background: #edf1ed; border-radius: 14px; height: 170px; display: grid; place-items: center; overflow: hidden; }
.phone-image img { width: 100%; height: 100%; object-fit: contain; }
.phone-placeholder { width: 66px; height: 118px; border: 4px solid #b5c3be; border-radius: 13px; position: relative; }
.phone-placeholder::before { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #b5c3be; top: 6px; left: calc(50% - 3px); }
.detail-brand { color: var(--teal); font-weight: 850; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.device-hero h2 { margin: 7px 0 8px; font-size: clamp(24px, 4vw, 34px); letter-spacing: -.035em; }
.alias-line { color: var(--muted); font-size: 12px; line-height: 1.5; }
.key-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-top: 18px; }
.key-spec { padding: 10px; background: #f3f4ef; border-radius: 10px; }
.key-spec small, .key-spec strong { display: block; }
.key-spec small { color: var(--muted); font-size: 10px; margin-bottom: 4px; }
.key-spec strong { font-size: 13px; }
.key-spec.size-spec { background: var(--teal); color: white; }
.key-spec.size-spec small { color: #cbe6de; }
.key-spec.size-spec strong { font-size: 17px; }
.detail-section { padding: 24px; border-bottom: 1px solid var(--line); }
.detail-section:last-child { border-bottom: 0; }
.section-title { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; }
.section-title h3 { margin: 0; font-size: 17px; }
.section-title span { color: var(--muted); font-size: 11px; }
.compat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.compat-item { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: white; color: var(--ink); text-align: left; width: 100%; }
button.compat-item:hover { border-color: #9ab9b0; background: #f5faf7; }
.compat-item.review-risk { border-color: #e0bb77; background: #fffaf0; }
.compat-item strong, .compat-item small { display: block; }
.compat-item small { color: var(--muted); margin-top: 5px; }
.more-results { margin-top: 12px; }
.more-results summary { color: var(--teal); font-size: 12px; font-weight: 800; cursor: pointer; padding: 8px 0; }
.more-results[open] summary { margin-bottom: 10px; }
.detail-aside { padding: 20px; }
.detail-aside h3 { margin: 0 0 14px; }
.source-row { border-left: 3px solid var(--mint); padding: 2px 0 2px 12px; margin: 14px 0; }
.source-row strong, .source-row small { display: block; }
.source-row small { color: var(--muted); margin-top: 4px; line-height: 1.4; }
.source-row a { color: var(--teal); font-size: 11px; }
.reference-code-details { margin-top: 8px; }
.reference-code-details summary { color: var(--teal); cursor: pointer; font-size: 11px; font-weight: 800; }
.reference-code-details small { margin-top: 8px; }
.source-chip { display: inline-block; margin: 3px 4px 0 0; border: 1px solid var(--line); padding: 4px 7px; border-radius: 999px; font-size: 10px; color: var(--muted); }
.warning.critical { background: #fff0ee; color: #7c2822; border-color: #e5b0ab; }
.no-data { color: var(--muted); font-size: 13px; line-height: 1.6; }
.no-data.padded { padding: 16px; }
.online-card { max-width: 760px; margin: 26px auto; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.online-card-head { display: grid; grid-template-columns: 100px 1fr; gap: 18px; }
.online-card img { width: 100px; height: 115px; border-radius: 12px; object-fit: contain; background: #edf1ed; }
.online-card h3 { margin: 4px 0 8px; }
.online-button { border: 1px solid var(--teal); background: white; color: var(--teal); border-radius: 10px; padding: 11px 15px; font-weight: 800; }
.loader { width: 30px; height: 30px; border: 3px solid #cfddd8; border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.admin-heading { max-width: 1180px; margin: auto; padding: 52px 24px 24px; display: flex; justify-content: space-between; align-items: end; }
.admin-heading h1 { font-size: 38px; margin: 0; letter-spacing: -.04em; }
.admin-heading p:last-child { color: var(--muted); margin-bottom: 0; }
.admin-toolbar { max-width: 1180px; margin: 0 auto; padding: 0 24px 12px; display: flex; gap: 8px; align-items: end; }
.admin-toolbar > label { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 750; }
.admin-toolbar .toolbar-search { flex: 1; }
.admin-toolbar input, .admin-toolbar select { min-width: 0; border: 1px solid var(--line); background: white; padding: 12px 14px; border-radius: 10px; outline: 0; color: var(--ink); }
.admin-toolbar input { width: 100%; }
.admin-toolbar button { border: 0; background: var(--ink); color: white; border-radius: 10px; padding: 0 20px; font-weight: 750; }
.queue-summary { max-width: 1132px; min-height: 26px; margin: 0 auto 12px; color: var(--muted); font-size: 11px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.queue-summary strong { color: var(--ink); }
.admin-layout { max-width: 1180px; margin: 0 auto 60px; padding: 0 24px; display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
.admin-list, .admin-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.admin-list { max-height: 720px; overflow-y: auto; }
.admin-list-item { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; padding: 14px 16px; color: var(--ink); }
.admin-list-item:last-child { border-bottom: 0; }
.admin-list-item:hover, .admin-list-item.active { background: #edf6f2; }
.admin-list-item strong, .admin-list-item small { display: block; }
.admin-list-item small { color: var(--muted); margin-top: 5px; }
.admin-form-wrap { min-height: 260px; padding: 22px; }
.admin-form-wrap h2 { margin-top: 0; }
.edit-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; color: var(--muted); font-weight: 800; }
.field input, .field select, .field textarea { border: 1px solid #ccd6d2; padding: 10px 11px; border-radius: 9px; background: white; color: var(--ink); outline: 0; }
.field textarea { min-height: 78px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.form-actions button { border: 0; padding: 11px 15px; border-radius: 9px; font-weight: 800; }
.save-button { background: var(--teal); color: white; }
.verify-box { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 18px; }
.verify-box h3 { margin: 0 0 10px; font-size: 15px; }
.verify-row { display: grid; grid-template-columns: repeat(3, minmax(80px, 100px)) minmax(150px, 1fr) auto; gap: 8px; }
.verify-row input { border: 1px solid #ccd6d2; padding: 10px; border-radius: 9px; min-width: 0; }
.verify-row button { border: 0; background: #ddf0e4; color: #12633e; border-radius: 9px; padding: 0 14px; font-weight: 850; }
.sub-verify-title { margin-top: 22px !important; }
.compatibility-verify { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.compatibility-verify input { min-width: 0; border: 1px solid #ccd6d2; padding: 10px; border-radius: 9px; }
.compatibility-verify button { border: 0; background: var(--ink); color: white; border-radius: 9px; padding: 0 14px; font-weight: 800; }
.form-help { color: var(--muted); font-size: 11px; }
.toast { position: fixed; right: 20px; bottom: 20px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s; z-index: 40; }
.toast.show { opacity: 1; transform: translateY(0); }

.access-status { max-width: 1132px; margin: 0 auto 16px; padding: 14px 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 14px; display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: center; }
.access-status small { color: var(--muted); }
.service-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.service-dot.ready { background: #24935b; }
.access-list { max-width: 1180px; margin: 0 auto 60px; padding: 0 24px; display: grid; gap: 12px; }
.access-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.access-card-main { min-width: 0; }
.access-card-main > div:first-child { display: flex; align-items: center; gap: 10px; }
.access-card h3 { margin: 0; font-size: 17px; }
.access-email { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.access-card p { margin: 7px 0; color: var(--muted); font-size: 13px; }
.access-status-pill { font-size: 10px; font-weight: 850; border-radius: 999px; padding: 5px 8px; background: #eef0ef; color: var(--muted); }
.access-status-pill.pending { color: #865112; background: var(--amber-bg); }
.access-status-pill.approved { color: #12633e; background: #def2e4; }
.access-status-pill.revoked, .access-status-pill.rejected { color: var(--red); background: #fff0ee; }
.access-meta { color: var(--muted); display: flex; gap: 18px; font-size: 11px; }
.access-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.access-action { border: 1px solid var(--line); background: white; color: var(--ink); padding: 9px 12px; border-radius: 9px; font-weight: 750; font-size: 12px; }
.access-action.approve { background: var(--teal); border-color: var(--teal); color: white; }
.access-action.danger { color: var(--red); border-color: #e5b0ab; }
.access-action:disabled { opacity: .55; cursor: wait; }
.access-action { text-decoration: none; }
.invite-panel { max-width: 1132px; margin: 0 auto 16px; padding: 18px; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: center; }
.invite-panel img { width: 112px; height: 112px; border-radius: 10px; }
.invite-panel h2 { margin: 0 0 6px; font-size: 18px; }
.invite-panel p { color: var(--muted); margin: 0 0 12px; font-size: 13px; line-height: 1.55; }
.email-status { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; padding: 5px 8px; border-radius: 8px; background: #eef0ef; color: var(--muted); font-size: 11px; }
.email-status.delivered, .email-status.sent, .email-status.opened, .email-status.clicked { color: #12633e; background: #def2e4; }
.email-status.failed, .email-status.bounced, .email-status.complained, .email-status.suppressed { color: var(--red); background: #fff0ee; }
.session-list { margin-top: 12px; display: grid; gap: 7px; }
.session-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf7; }
.session-row strong, .session-row small { display: block; }
.session-row strong { font-size: 12px; }
.session-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.session-row button { border: 0; background: transparent; color: var(--red); font-size: 11px; font-weight: 750; }

.auth-body { background: radial-gradient(circle at 15% 15%, #cfe7df 0, transparent 36%), var(--cream); }
.auth-shell { width: min(100%, 500px); min-height: 100vh; margin: 0 auto; padding: 44px 24px; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.auth-intro { display: grid; gap: 34px; }
.auth-heading h1 { font-size: clamp(34px, 7vw, 48px); line-height: 1.05; letter-spacing: -.045em; margin: 0 0 8px; }
.auth-heading p { margin: 0; color: var(--muted); }
.auth-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #edf1ed; padding: 4px; border-radius: 11px; gap: 4px; }
.auth-tabs button { border: 0; padding: 11px; background: transparent; color: var(--muted); border-radius: 8px; font-weight: 800; }
.auth-tabs button.active { background: white; color: var(--teal); box-shadow: 0 2px 8px rgba(19,53,48,.08); }
.auth-panel { display: none; padding: 24px 4px 4px; }
.auth-panel.active { display: block; }
.auth-panel h2 { margin: 0 0 8px; font-size: 23px; }
.auth-panel > p, #email-step > p, #code-step > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 14px; margin-top: 20px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-form input, .auth-form textarea { width: 100%; border: 1px solid #cbd7d2; border-radius: 10px; padding: 12px 13px; outline: 0; color: var(--ink); background: white; }
.auth-form textarea { min-height: 84px; resize: vertical; }
.auth-form input:focus, .auth-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,79,74,.08); }
.auth-form button { border: 0; border-radius: 10px; padding: 13px 16px; background: var(--teal); color: white; font-weight: 850; }
.auth-form button:disabled { opacity: .55; }
.otp-input { letter-spacing: .35em; text-align: center; font-size: 25px; font-weight: 850; }
.text-button { border: 0; background: transparent; color: var(--teal); padding: 0 0 15px; font-weight: 750; }
.auth-message { display: none; margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.auth-message.show { display: block; background: #eef0ef; color: var(--ink); }
.auth-message.success { background: #def2e4; color: #12633e; }
.auth-message.error { background: #fff0ee; color: var(--red); }

@media (max-width: 800px) {
  .topbar { height: 66px; padding: 0 14px; }
  .topbar .brand span { display: none; }
  .topbar .brand-mark { width: 34px; height: 34px; }
  .topbar nav { min-width: 0; overflow-x: auto; gap: 2px; }
  .nav-button { padding: 9px 8px; white-space: nowrap; font-size: 13px; }
  .hero { padding: 44px 16px 30px; }
  .hero h1 { font-size: 40px; }
  .hero-copy { font-size: 14px; }
  .search-box { height: 60px; border-radius: 15px; }
  .search-box svg { margin: 0 8px; }
  .search-box input { font-size: 14px; }
  .search-box button { padding: 13px 16px; }
  .stats-strip { gap: 10px; flex-wrap: wrap; }
  .content-panel { padding: 22px 14px; }
  .detail-shell { grid-template-columns: 1fr; }
  .device-hero { grid-template-columns: 105px 1fr; gap: 15px; padding: 16px; }
  .phone-image { height: 135px; }
  .key-specs { grid-template-columns: 1fr; }
  .compat-list { grid-template-columns: 1fr; }
  .admin-heading { padding: 35px 14px 20px; align-items: start; }
  .admin-heading h1 { font-size: 30px; }
  .admin-heading p:last-child { display: none; }
  .admin-toolbar, .admin-layout { padding-left: 14px; padding-right: 14px; }
  .admin-toolbar { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
  .admin-toolbar .toolbar-search { grid-column: 1 / -1; }
  .admin-toolbar button { min-height: 44px; }
  .queue-summary { margin-left: 14px; margin-right: 14px; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-form-wrap { order: -1; }
  .admin-list { max-height: 480px; }
  .edit-form { grid-template-columns: 1fr; }
  .field.full { grid-column: 1; }
  .form-actions, .verify-box { grid-column: 1; }
  .verify-row { grid-template-columns: 1fr; }
  .compatibility-verify { grid-template-columns: 1fr; }
  .compatibility-verify button { padding: 11px; }
  .verify-row button { padding: 11px; }
  .access-status { margin-left: 14px; margin-right: 14px; grid-template-columns: auto 1fr; }
  .access-status small { grid-column: 1 / -1; }
  .access-list { padding-left: 14px; padding-right: 14px; }
  .invite-panel { margin-left: 14px; margin-right: 14px; grid-template-columns: 82px 1fr; }
  .invite-panel img { width: 82px; height: 82px; }
  .access-card { align-items: stretch; flex-direction: column; }
  .access-actions { justify-content: flex-start; }
  .auth-shell { min-height: 100svh; padding: 28px 18px; gap: 20px; }
  .auth-intro { gap: 26px; }
  .auth-heading h1 { font-size: 34px; }
  .auth-card { padding: 18px; }
}
