:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: #f2f2f7; letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #007aff; outline-offset: 3px; box-shadow: 0 0 0 5px rgba(0, 122, 255, .18); }
button:disabled { cursor: wait; opacity: .58; }
textarea { width: 100%; min-height: 116px; padding: 11px 12px; resize: vertical; border: 1px solid #d2d2d7; border-radius: 8px; outline: none; background: #fff; color: #1d1d1f; font: inherit; font-size: 13px; line-height: 1.5; }
textarea:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }

#console.app-shell { width: min(1380px, calc(100% - 64px)); margin: 0 auto; padding: 28px 0 72px; }
.topbar, .title-group, .header-actions, .panel-heading, .user-cell, .row-actions, .user-summary, .modal-card header, .modal-actions { display: flex; align-items: center; }
.topbar { justify-content: space-between; min-height: 62px; padding: 0 2px 20px; border-bottom: 1px solid rgba(60, 60, 67, .12); }
.title-group { gap: 14px; }
.eyebrow { margin: 0 0 5px; color: #86868b; font-size: 10px; font-weight: 700; letter-spacing: 1.1px; }
h1, h2, h3, p { letter-spacing: 0; }
h1 { margin: 0; font-size: 27px; line-height: 1.12; }
h2 { margin: 0; font-size: 21px; line-height: 1.2; }
h3 { margin: 0; font-size: 16px; }
.brand-mark { display: block; width: 44px; height: 44px; padding: 0; border-radius: 14px; background: #007aff url('/assets/novalink-icon.svg') center/cover no-repeat; box-shadow: 0 7px 18px rgba(0,122,255,.22); }
.brand-mark span { display: none; }
.brand-mark.small { width: 42px; height: 42px; }
.header-actions { gap: 9px; }
.live-state { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; color: #6e6e73; font-size: 12px; }
.live-state i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 3px rgba(52, 199, 89, .12); }
.primary-button, .secondary-button, .quiet-button, .row-button, .close-button { border: 0; border-radius: 9px; font-weight: 600; }
.primary-button { min-height: 43px; padding: 0 17px; background: #0071e3; color: #fff; }
.primary-button:hover { background: #0077ed; }
.danger-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: #c93636; color: #fff; font-weight: 600; }
.warning-button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: #b8791d; color: #fff; font-weight: 600; }
.warning-button:hover { background: #9b6518; }
.warning-button:disabled { cursor: not-allowed; opacity: .45; }
.danger-button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button, .quiet-button { min-height: 38px; padding: 0 14px; background: #e8e8ed; color: #1d1d1f; }
.quiet-button { background: transparent; color: #6e6e73; }
.secondary-button:hover, .quiet-button:hover { background: #dedee3; }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 28px 0 20px; }
.metrics article { min-height: 132px; padding: 22px; border: 1px solid #e2e2e7; border-radius: 8px; background: #fff; }
.metrics span, .metrics small { display: block; color: #86868b; font-size: 12px; }
.metrics strong { display: block; overflow: hidden; margin: 15px 0 8px; color: #1d1d1f; font-size: clamp(23px, 2.2vw, 31px); line-height: 1; text-overflow: ellipsis; }

.section-nav { display: flex; gap: 3px; width: 100%; max-width: 100%; margin: 20px 0 28px; padding: 4px; overflow-x: auto; border: 1px solid rgba(60,60,67,.1); border-radius: 13px; background: rgba(229,229,234,.82); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); scrollbar-width: none; }
.section-nav::-webkit-scrollbar { display: none; }
.section-nav button { display: flex; flex: 1 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 15px; border: 0; border-radius: 10px; background: transparent; color: #636366; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .18s, color .18s, box-shadow .18s; }
.section-nav button.active { background: #fff; color: #007aff; box-shadow: 0 2px 9px rgba(0,0,0,.1), 0 1px 1px rgba(0,0,0,.04); }
.section-nav i { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: rgba(0, 0, 0, .06); color: #6e6e73; font-size: 10px; font-style: normal; }
.section-nav button.active i { background: #e5f1ff; color: #007aff; }
.mobile-menu-button, .mobile-nav-heading, .mobile-nav-footer, .mobile-nav-backdrop { display: none; }

#workspace { min-height: 440px; animation: workspace-in .22s ease-out; }
@keyframes workspace-in { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { justify-content: space-between; margin: 0 2px 17px; }
.panel-heading > div > p:last-child { margin: 7px 0 0; color: #86868b; font-size: 13px; }
.panel-heading > span { align-self: flex-end; color: #86868b; font-size: 12px; }
.toolbar { display: grid; grid-template-columns: minmax(260px, 420px) 170px; gap: 10px; margin-bottom: 12px; }
.search-field, .filter-field { position: relative; }
.search-field > span, .filter-field > span { position: absolute; top: -7px; left: 11px; z-index: 1; padding: 0 4px; background: #f5f5f7; color: #86868b; font-size: 10px; }
input, select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d2d2d7; border-radius: 8px; outline: none; background: #fff; color: #1d1d1f; font-size: 13px; }
input:focus, select:focus { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, .12); }

.table-card, .form-card, .list-card { border: 1px solid rgba(60,60,67,.12); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 8px 24px rgba(0,0,0,.045); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 1050px; border-collapse: collapse; }
th, td { padding: 14px 13px; border-bottom: 1px solid #eeeef0; text-align: left; color: #515154; font-size: 12px; vertical-align: middle; white-space: nowrap; }
th { padding-top: 13px; padding-bottom: 13px; background: #f8f8fa; color: #8e8e93; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
th:first-child { border-radius: 8px 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfbfd; }
td strong { color: #1d1d1f; font-weight: 600; }
td code { color: #515154; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.user-cell { gap: 10px; min-width: 220px; }
.user-cell > span { display: grid; flex: 0 0 31px; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #edf4ff; color: #0066cc; font-weight: 700; }
.user-cell strong, .user-cell small, .subline { display: block; }
.user-cell small, .subline { margin-top: 4px; color: #98989d; font-size: 10px; font-weight: 400; }
.plan-name { display: block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 99px; background: #f0f0f2; color: #636366; font-size: 10px; font-weight: 600; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.active, .status.paid { background: #ecf8ef; color: #21883b; }
.status.pending { background: #fff7e6; color: #a56700; }
.status.suspended, .status.cancelled { background: #fff0f0; color: #b54545; }
.status.expired, .status.depleted { background: #fff4e8; color: #b45f15; }
.status.admin { background: #edf4ff; color: #0066cc; }
.usage { width: 150px; }
.usage > div { display: flex; justify-content: space-between; margin-bottom: 6px; color: #1d1d1f; }
.usage > div small, .usage > small { color: #98989d; font-size: 9px; }
.usage > i { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: #e8e8ed; }
.usage > i b { display: block; height: 100%; border-radius: inherit; background: #0071e3; }
.usage > small { display: block; margin-top: 5px; }
.muted { color: #98989d; }
.row-button { min-height: 29px; padding: 0 10px; background: #ededf0; color: #515154; font-size: 11px; }
.row-button:hover { background: #dfdfe3; }
.row-button.primary { background: #e9f3ff; color: #0066cc; }
.row-button.danger { background: #fff0f0; color: #b54545; }
.row-actions { gap: 6px; }
.empty-state { display: grid; min-height: 150px; place-items: center; color: #98989d; font-size: 12px; }

.multiplier-layout { display: grid; grid-template-columns: minmax(290px, .72fr) minmax(500px, 1.28fr); gap: 12px; align-items: start; }
.multiplier-bulk-card, .multiplier-users-card { border: 1px solid rgba(60,60,67,.12); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.045); }
.multiplier-bulk-card { position: sticky; top: 16px; padding: 24px; }
.multiplier-icon { display: grid; width: 42px; height: 42px; margin-bottom: 22px; place-items: center; border-radius: 12px; background: #e8f2ff; color: #007aff; font-size: 24px; font-weight: 500; }
.multiplier-bulk-card h3 { font-size: 18px; }
.multiplier-bulk-card > p:not(.eyebrow) { margin: 10px 0 21px; color: #6e6e73; font-size: 12px; line-height: 1.65; }
.multiplier-bulk-card form label { display: grid; gap: 7px; color: #6e6e73; font-size: 11px; }
.multiplier-bulk-card .primary-button { width: 100%; margin-top: 11px; }
.multiplier-input { position: relative; }
.multiplier-input input { padding-right: 38px; }
.multiplier-input b { position: absolute; top: 50%; right: 13px; color: #8e8e93; font-size: 11px; font-weight: 500; transform: translateY(-50%); pointer-events: none; }
.multiplier-presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.multiplier-presets button { min-height: 31px; padding: 0 5px; border: 0; border-radius: 8px; background: #f0f0f3; color: #515154; font-size: 10px; font-weight: 600; }
.multiplier-presets button:hover { background: #e4effc; color: #0071e3; }
.multiplier-users-card { overflow: hidden; }
.multiplier-list-heading { display: flex; align-items: flex-end; justify-content: space-between; padding: 20px 21px 15px; border-bottom: 1px solid #eeeef0; }
.multiplier-list-heading p { margin: 6px 0 0; color: #86868b; font-size: 11px; }
.multiplier-list-heading > span { color: #8e8e93; font-size: 11px; }
.multiplier-list { max-height: 620px; overflow-y: auto; }
.multiplier-user-row { display: grid; grid-template-columns: minmax(220px, 1fr) 68px minmax(190px, auto); gap: 14px; align-items: center; padding: 13px 20px; border-bottom: 1px solid #eeeef0; }
.multiplier-user-row:last-child { border-bottom: 0; }
.multiplier-user-row:hover { background: #fbfbfd; }
.multiplier-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.multiplier-user > span { display: grid; flex: 0 0 32px; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #edf4ff; color: #0066cc; font-size: 12px; font-weight: 700; }
.multiplier-user div { min-width: 0; }
.multiplier-user strong, .multiplier-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multiplier-user strong { color: #1d1d1f; font-size: 12px; }
.multiplier-user small { margin-top: 4px; color: #98989d; font-size: 9px; }
.multiplier-current { justify-self: start; padding: 5px 8px; border-radius: 8px; background: #f0f0f3; color: #515154; font-size: 10px; font-weight: 650; }
.multiplier-row-action { display: flex; align-items: center; gap: 7px; }
.multiplier-input.compact { width: 108px; }
.multiplier-input.compact input { height: 34px; padding: 0 32px 0 9px; }
.multiplier-row-action .row-button { min-width: 50px; }

.code-grid { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr); gap: 12px; }
.announcement-grid { display: grid; grid-template-columns: minmax(360px, .8fr) minmax(480px, 1.2fr); gap: 12px; }
.form-card, .list-card { padding: 22px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 19px 0 14px; }
.form-grid label { display: grid; gap: 7px; color: #6e6e73; font-size: 11px; }
.full-field { grid-column: 1 / -1; }
.form-card .primary-button { width: 100%; }
.code-list { margin-top: 12px; }
.code-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eeeef0; }
.code-list article:last-child { border-bottom: 0; }
.code-list code, .code-list span, .code-list small { display: block; }
.code-list code { margin-bottom: 5px; color: #0066cc; font-size: 12px; font-weight: 650; }
.code-list span { color: #515154; font-size: 11px; }
.code-list small { margin-top: 3px; color: #98989d; font-size: 10px; }
.code-list article > div:last-child { display: flex; gap: 6px; }
.announcement-list { margin-top: 12px; }
.announcement-list article { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid #eeeef0; }
.announcement-list article:last-child { border-bottom: 0; }
.announcement-list strong, .announcement-list p, .announcement-list small { display: block; }
.announcement-list strong { color: #1d1d1f; font-size: 13px; }
.announcement-list p { max-width: 580px; margin: 7px 0; color: #515154; font-size: 12px; line-height: 1.55; white-space: pre-wrap; }
.announcement-list small { color: #98989d; font-size: 10px; }
.ticket-copy { min-width: 260px; max-width: 460px; white-space: normal; }
.ticket-copy strong, .ticket-copy small { display: block; }
.ticket-copy small { margin-top: 5px; overflow: hidden; color: #86868b; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; }
.ticket-status-select { min-width: 104px; height: 32px; padding: 0 8px; font-size: 11px; }
.audit-toolbar { grid-template-columns: repeat(3, minmax(160px, 1fr)) auto; }
.audit-more { display: flex; justify-content: center; padding-top: 14px; }
.audit-details { min-width: 260px; max-width: 480px; overflow: hidden; text-overflow: ellipsis; }
#created-codes { margin-top: 18px; padding-top: 14px; border-top: 1px solid #eeeef0; }
#created-codes p { margin: 0 0 8px; color: #86868b; font-size: 11px; }
#created-codes button { margin: 0 5px 5px 0; padding: 7px 9px; border: 0; border-radius: 6px; background: #edf4ff; color: #0066cc; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }

.login-shell { display: grid; min-height: 100vh; padding: 28px; place-items: center; }
.login-card { width: min(408px, 100%); padding: 34px; border: 1px solid #e2e2e7; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 24px 60px rgba(0, 0, 0, .08); }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { margin-top: 8px; font-size: 29px; }
.login-copy { margin: 9px 0 0; color: #86868b; font-size: 13px; }
.login-message { margin: 16px 0 0; padding: 9px 11px; border-radius: 7px; background: #fff4e8; color: #9d5718; font-size: 11px; }
.login-card form { display: grid; gap: 15px; margin-top: 27px; }
.login-card label { display: grid; gap: 7px; color: #515154; font-size: 11px; }
.login-card .primary-button { margin-top: 2px; }
.security-note { margin: 18px 0 0; color: #98989d; font-size: 10px; text-align: center; }

.modal { display: none; }
.modal.open { position: fixed; inset: 0; z-index: 20; display: grid; padding: 22px; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.modal-card { position: relative; z-index: 1; width: min(580px, 100%); max-height: calc(100vh - 44px); padding: 26px; overflow-y: auto; border: 1px solid rgba(60,60,67,.12); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .2); }
.modal-card header { justify-content: space-between; }
.modal-card h2 { max-width: 470px; overflow: hidden; text-overflow: ellipsis; }
.close-button { width: 32px; height: 32px; background: #ededf0; color: #6e6e73; font-size: 20px; font-weight: 400; line-height: 1; }
.user-summary { flex-wrap: wrap; gap: 9px 14px; margin: 19px 0; padding: 13px; border-radius: 8px; background: #f5f5f7; color: #6e6e73; font-size: 11px; }
.modal-actions { justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-actions > span { flex: 1; }
.danger-modal > p { margin: 18px 0; padding: 13px; border-radius: 8px; background: #fff3f3; color: #983535; font-size: 12px; line-height: 1.55; }
.danger-modal form { display: grid; gap: 7px; }
.danger-modal form label { color: #6e6e73; font-size: 11px; }
.review-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1px; margin:19px 0; overflow:hidden; border:1px solid #e5e5e9; border-radius:9px; background:#e5e5e9; }.review-summary>div{padding:13px;background:#fff}.review-summary span{display:block;margin-bottom:6px;color:#8a8a8f;font-size:10px}.review-summary b,.review-summary code{color:#303034;font-size:12px}.review-checklist{display:grid;gap:10px;padding:15px;border-radius:9px;background:#f5f5f7}.review-checklist p{margin:0 0 2px;color:#6e6e73;font-size:11px}.review-checklist label{display:flex;align-items:center;gap:8px;color:#3f3f43;font-size:12px}.review-checklist input{width:16px;height:16px}.review-card form{margin-top:17px}.review-card form>label{display:grid;gap:7px}.review-card form>label span{color:#6e6e73;font-size:11px}.review-card form>label input{height:42px;padding:0 12px;border:1px solid #d2d2d7;border-radius:8px;font:inherit}.review-warning{margin:10px 0 0;color:#b05a18;font-size:11px}.review-note{display:block;max-width:200px;overflow:hidden;text-overflow:ellipsis}.muted{color:#98989d}.primary-button:disabled{cursor:not-allowed;opacity:.45}

.settings-layout { display: grid; gap: 14px; }
.settings-card { padding: 24px; }
.settings-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #eeeef0; }
.settings-card-heading h3 { font-size: 17px; }
.settings-card-heading p { margin: 6px 0 0; color: #86868b; font-size: 12px; }
.settings-dot { display: inline-grid; min-width: 44px; height: 26px; place-items: center; border-radius: 8px; background: #edf4ff; color: #0066cc; font-size: 10px; font-weight: 750; letter-spacing: .5px; }
.settings-grid { margin: 20px 0 0; }
.settings-grid label { min-width: 0; }
.settings-secret { grid-column: 1 / -1; }
.secret-status { display: flex; align-items: center; gap: 7px; color: #21883b; font-size: 11px; }
.secret-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.settings-test { display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eeeef0; }
.settings-test label { display: grid; flex: 1; gap: 7px; color: #6e6e73; font-size: 11px; }
.settings-test .secondary-button { flex: 0 0 auto; }
.settings-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 2px; color: #86868b; font-size: 11px; }
.settings-divider { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #86868b; font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; }
.settings-divider::after { content: ''; flex: 1; height: 1px; background: #eeeef0; }
.settings-inner-table { margin-top: 18px; border-radius: 10px; box-shadow: none; }
.settings-inner-table table { min-width: 680px; }
.settings-inner-table th, .settings-inner-table td { padding: 12px; }
.admin-modal-account { display: grid; gap: 5px; margin: 18px 0 0; padding: 13px; border-radius: 9px; background: #f5f5f7; color: #303034; }
.admin-modal-account small { color: #86868b; font-size: 11px; }
.checkbox-field { display: flex !important; align-items: center; gap: 9px !important; min-height: 44px; }
.checkbox-field input { width: 18px; height: 18px; }
.checkbox-field span { color: #515154; }

.app-loading, .fatal-state { display: grid; min-height: 100vh; place-items: center; }
.loading-state, .fatal-state { text-align: center; color: #86868b; font-size: 12px; }
.loading-state span { display: block; width: 22px; height: 22px; margin: 0 auto 13px; border: 2px solid #d2d2d7; border-top-color: #0071e3; border-radius: 50%; animation: spin .8s linear infinite; }
.fatal-state h1 { color: #1d1d1f; }
.fatal-state p { margin: 9px 0 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

#notice { position: fixed; z-index: 40; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 11px 15px; border-radius: 9px; background: #1d1d1f; color: #fff; font-size: 12px; opacity: 0; transform: translate(-50%, 10px); transition: opacity .18s, transform .18s; pointer-events: none; }
#notice.show { opacity: 1; transform: translate(-50%, 0); }
#notice.error { background: #9c3030; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }

@media (max-width: 980px) {
  #console.app-shell { width: min(100% - 36px, 1440px); }
  .metrics { grid-template-columns: 1fr 1fr; }
  .code-grid { grid-template-columns: 1fr; }
  .announcement-grid { grid-template-columns: 1fr; }
  .multiplier-layout { grid-template-columns: 1fr; }
  .multiplier-bulk-card { position: static; }
}

@media (max-width: 620px) {
  #console.app-shell { width: min(100% - 24px, 1440px); padding-top: 16px; }
  .topbar { padding-bottom: 16px; }
  .topbar { align-items: center; }
  .mobile-menu-button { display: grid; flex: 0 0 38px; place-content: center; gap: 4px; width: 38px; height: 38px; margin-right: 2px; padding: 0; border: 0; border-radius: 12px; background: #e8f2ff; }
  .mobile-menu-button span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #007aff; }
  .title-group .brand-mark { display: none; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .live-state { width: 100%; justify-content: flex-end; margin: 0 0 2px; }
  h1 { font-size: 24px; }
  .metrics { gap: 8px; margin-top: 22px; }
  .metrics article { min-height: 112px; padding: 17px; }
  .metrics strong { margin-top: 13px; font-size: 22px; }
  .toolbar, .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .code-grid { display: block; }
  .announcement-grid { display: block; }
  .list-card { margin-top: 10px; }
  .login-shell { padding: 14px; }
  .login-card { padding: 27px 22px; }
  .modal.open { padding: 10px; }
  .modal-card { max-height: calc(100vh - 20px); padding: 21px; border-radius: 16px; }
  .review-summary { grid-template-columns:1fr; }
  .section-nav { margin: 14px 0 22px; border-radius: 12px; }
  .section-nav { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; flex-direction: column; align-items: stretch; gap: 4px; width: min(314px, calc(100vw - 46px)); height: 100vh; margin: 0; padding: 18px 10px 14px; overflow-y: auto; border: 0; border-radius: 0 18px 18px 0; background: rgba(255,255,255,.98); box-shadow: 18px 0 42px rgba(0,0,0,.16); transform: translateX(-105%); transition: transform .24s cubic-bezier(.22,.61,.36,1); }
  #console.mobile-nav-open .section-nav { transform: translateX(0); }
  .section-nav button { flex: 0 0 auto; justify-content: flex-start; min-height: 48px; padding: 0 15px; border-radius: 12px; font-size: 15px; font-weight: 500; }
  .section-nav button.active { color: #007aff; background: #eaf3ff; box-shadow: none; }
  .section-nav button i { margin-left: auto; }
  .mobile-nav-heading { display: flex; align-items: center; gap: 11px; min-height: 54px; margin: -4px 2px 15px; padding: 0 4px 14px; border-bottom: 1px solid #e5e5ea; }
  .mobile-nav-heading .brand-mark { display: block; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border-radius: 12px; }
  .mobile-nav-heading strong, .mobile-nav-heading small { display: block; }
  .mobile-nav-heading strong { color: #1d1d1f; font-size: 15px; }
  .mobile-nav-heading small { margin-top: 2px; color: #8e8e93; font-size: 10px; }
  .mobile-nav-heading .close-button { margin-left: auto; }
  .mobile-nav-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: auto 4px 0; padding: 14px 8px 2px; border-top: 1px solid #e5e5ea; color: #8e8e93; font-size: 11px; }
  .mobile-nav-footer span { display: inline-flex; align-items: center; gap: 6px; }
  .mobile-nav-footer span i { width: 7px; height: 7px; border-radius: 50%; background: #34c759; }
  .mobile-nav-footer button { border: 0; background: transparent; color: #007aff; font-size: 11px; }
  .mobile-nav-backdrop { position: fixed; inset: 0; z-index: 29; display: block; background: rgba(0,0,0,.42); opacity: 0; pointer-events: none; transition: opacity .2s; }
  #console.mobile-nav-open .mobile-nav-backdrop { opacity: 1; pointer-events: auto; }
  .panel-heading { align-items: flex-end; margin-bottom: 14px; }
  .panel-heading > div > p:last-child { display: none; }
  .panel-heading h2 { font-size: 19px; }
  .toolbar { gap: 9px; }
  .table-card { border-radius: 12px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 940px; }
  th, td { padding: 11px 10px; }
  .user-cell { min-width: 205px; }
  .usage { width: 132px; }
  .row-button { min-height: 30px; }
  .announcement-list article { align-items: center; }
  .multiplier-bulk-card { padding: 20px; }
  .multiplier-user-row { grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 13px 14px; }
  .multiplier-current { justify-self: end; }
  .multiplier-row-action { grid-column: 1 / -1; }
  .multiplier-input.compact { flex: 1; width: auto; }
  .multiplier-row-action .row-button { min-width: 68px; min-height: 34px; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions > span { display: none; }
  .modal-actions .danger-button { margin-right: auto; }
  .settings-card { padding: 18px; }
  .settings-test, .settings-actions { align-items: stretch; flex-direction: column; }
  .settings-test .secondary-button, .settings-actions .primary-button { width: 100%; }
}

/* Tiffany-inspired luxury palette 20260911 */
:root { color: #0b2d33; background: #f4fbfa; }
body { background: #f4fbfa; }
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline-color: #0abab5; box-shadow: 0 0 0 5px rgba(10,186,181,.18); }
textarea, input, select { border-color: rgba(10,186,181,.22); }
textarea:focus, input:focus, select:focus { border-color: #0abab5; box-shadow: 0 0 0 3px rgba(10,186,181,.14); }
.brand-mark { background-color: #0abab5; box-shadow: 0 7px 18px rgba(10,186,181,.25); }
.primary-button { background: #0abab5; }
.primary-button:hover { background: #078e8a; }
.secondary-button, .quiet-button { background: #e0f5f3; color: #0b4a4f; }
.secondary-button:hover, .quiet-button:hover { background: #cdecea; }
.topbar { border-bottom-color: rgba(10,186,181,.16); }
.metrics article, .table-card, .form-card, .list-card, .multiplier-bulk-card, .multiplier-users-card { border-color: rgba(10,186,181,.16); box-shadow: 0 10px 28px rgba(6,74,79,.07); }
.section-nav { border-color: rgba(10,186,181,.18); background: #e0f5f3; }
.section-nav button.active { color: #0b4a4f; box-shadow: 0 3px 12px rgba(6,74,79,.12); }
.section-nav button.active i, .row-button.primary { background: #d0efed; color: #087c78; }
th { background: #f0faf9; color: #527177; }
th, td { border-bottom-color: #e3f0ef; }
tbody tr:hover, .multiplier-user-row:hover { background: #f5fcfb; }
td strong, .usage > div, .multiplier-user strong { color: #0b2d33; }
.user-cell > span, .multiplier-user > span { background: #e0f5f3; color: #087c78; }
.status.admin { background: #e0f5f3; color: #087c78; }
.status.active, .status.paid { background: #e8f7ed; color: #248a4b; }
.usage > i b { background: #0abab5; }
.multiplier-icon { background: #e0f5f3; color: #087c78; }
.multiplier-presets button:hover { background: #d0efed; color: #087c78; }
.warning-button { background: #b9985a; }
.warning-button:hover { background: #96763d; }

