:root {
  --navy: #16263f;
  --navy-2: #203553;
  --blue: #316bff;
  --blue-soft: #edf3ff;
  --ink: #172235;
  --muted: #69778d;
  --line: #e4e9f1;
  --canvas: #f4f6fa;
  --white: #fff;
  --green: #17a673;
  --orange: #ef8f2f;
  --red: #dd4e5b;
  --shadow: 0 12px 35px rgba(31, 48, 76, .07);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 20; display: flex; flex-direction: column; padding: 25px 18px 18px; color: #d8e0eb; background: linear-gradient(180deg, #182a45 0%, #122037 100%); }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px; color: var(--ink); }
.sidebar .brand { color: #fff; }
.brand-mark { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(140deg, #618cff, #316bff); box-shadow: 0 8px 22px rgba(49,107,255,.3); }
.brand-mark svg { width: 27px; height: 27px; stroke-width: 2; }
.brand strong { display: block; font-size: 18px; letter-spacing: -.3px; }
.brand small { display: block; margin-top: 2px; font-size: 10px; color: #96a8bf; letter-spacing: .5px; text-transform: uppercase; }
.nav { margin-top: 46px; }
.nav-caption { display: block; margin: 0 13px 10px; font-size: 10px; color: #71849d; font-weight: 700; letter-spacing: 1.4px; }
.nav-item { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 13px; padding: 0 13px; margin: 4px 0; border: 0; border-radius: 10px; color: #aab8cb; background: transparent; font-weight: 600; font-size: 14px; transition: .18s ease; }
.nav-item svg { width: 20px; height: 20px; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(73,123,255,.28), rgba(73,123,255,.12)); box-shadow: inset 3px 0 #6992ff; }
.sidebar-footer { margin-top: auto; }
.system-online { display: flex; align-items: center; gap: 10px; margin: 0 9px 14px; padding: 12px 10px; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; background: rgba(255,255,255,.035); }
.system-online > span { width: 9px; height: 9px; border-radius: 99px; background: #31cf91; box-shadow: 0 0 0 5px rgba(49,207,145,.1); }
.system-online strong, .system-online small { display: block; }
.system-online strong { color: #eaf0f7; font-size: 11px; }
.system-online small { color: #8293a9; font-size: 9px; margin-top: 2px; }
.logout { justify-content: flex-start; }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 88px; position: sticky; top: 0; z-index: 12; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.topbar h1 { margin: 2px 0 0; font-size: 23px; letter-spacing: -.5px; }
.eyebrow { margin: 0; color: #8a98aa; font-size: 9px; font-weight: 800; letter-spacing: 1.45px; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle { width: 39px; height: 39px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: #5f6f84; background: var(--white); transition: border-color .18s, color .18s, background .18s, transform .18s; }
.theme-toggle:hover { color: var(--blue); border-color: #b8c9ee; transform: translateY(-1px); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity .18s, transform .22s; }
.theme-icon-sun { opacity: 0; transform: rotate(-35deg) scale(.65); }
[data-theme="dark"] .theme-icon-moon { opacity: 0; transform: rotate(35deg) scale(.65); }
[data-theme="dark"] .theme-icon-sun { opacity: 1; transform: rotate(0) scale(1); }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #2d405e, #1a2b45); font-weight: 700; font-size: 14px; }
.menu-button { display: none; width: 40px; height: 40px; place-items: center; padding: 0; border: 0; color: var(--ink); background: transparent; }
.content { width: min(1450px, 100%); margin: 0 auto; padding: 31px 34px 60px; }

.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; font-size: 13px; transition: .18s ease; white-space: nowrap; }
.button svg { width: 17px; height: 17px; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 7px 18px rgba(49,107,255,.2); }
.button-primary:hover { background: #245cea; box-shadow: 0 9px 25px rgba(49,107,255,.28); }
.button-instagram { color: #fff; border: 0; background: linear-gradient(120deg, #6d4be9, #c13584 55%, #e46b3c); box-shadow: 0 8px 22px rgba(193,53,132,.2); }
.button-instagram:hover { box-shadow: 0 10px 28px rgba(193,53,132,.3); filter: saturate(1.08); }
.button-secondary { color: var(--blue); border-color: #cddcff; background: #fff; }
.button-soft { color: #285be0; background: var(--blue-soft); }
.button-ghost { color: #5e6b7c; border-color: var(--line); background: #fff; box-shadow: none; }
.button-full { width: 100%; min-height: 49px; margin-top: 5px; }
.button-large { min-height: 48px; padding: 0 24px; }
.button-table { min-height: 34px; padding: 0 13px; border-color: var(--line); background: #fff; color: #536176; font-size: 12px; }
.compact { min-height: 39px; padding: 0 14px; }
.plus { font-size: 19px; line-height: 1; font-weight: 400; }
.text-link { color: var(--blue); font-size: 12px; font-weight: 700; }
.icon-link { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; color: #728096; background: #f2f5f9; font-size: 22px; }

.welcome-row, .page-intro, .detail-header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 25px; }
.page-actions { display: flex; align-items: center; gap: 9px; }
.welcome-row h2, .page-intro h2, .detail-header h2 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.6px; }
.welcome-row p, .page-intro p, .detail-header p { margin: 0; color: var(--muted); font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { min-height: 114px; display: grid; grid-template-columns: 48px 1fr 20px; align-items: center; gap: 14px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(31,48,76,.035); transition: .2s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; }
.stat-icon svg { width: 22px; height: 22px; stroke-width: 2; }
.stat-card span { display: block; color: var(--muted); font-size: 11px; font-weight: 650; }
.stat-card strong { display: block; margin-top: 4px; font-size: 27px; line-height: 1; }
.stat-card .stat-arrow { justify-self: end; font-size: 18px; color: #a6b0bf; }
.accent-blue .stat-icon { color: var(--blue); background: #edf3ff; }
.accent-green .stat-icon { color: var(--green); background: #eaf9f3; }
.accent-orange .stat-icon { color: var(--orange); background: #fff5e9; }
.accent-red .stat-icon { color: var(--red); background: #fff0f1; }

.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(31,48,76,.035); }
.card-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #edf0f5; }
.card-header h3 { margin: 3px 0 0; font-size: 16px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(270px, .8fr); gap: 18px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 12px 18px; color: #8a97aa; background: #fafbfc; font-size: 9px; letter-spacing: .8px; text-align: left; white-space: nowrap; }
td { padding: 14px 18px; border-top: 1px solid #edf0f5; color: #4b596e; font-size: 12px; white-space: nowrap; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fbfcfe; }
.account-cell { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.account-cell > div strong, .account-cell > div small { display: block; }
.account-cell > div small { margin-top: 2px; color: #8995a5; font-size: 9px; }
.account-avatar { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid #dce4f0; border-radius: 10px; color: #375889; background: linear-gradient(145deg, #eff4ff, #e3ebfa); font-weight: 800; font-size: 12px; }
.account-avatar.small { width: 28px; height: 28px; border-radius: 8px; }
.account-avatar.large { width: 40px; height: 40px; border-radius: 12px; font-size: 14px; }
.account-avatar.xl { width: 55px; height: 55px; border-radius: 16px; font-size: 20px; }
.media-type { display: inline-flex; padding: 5px 9px; border-radius: 6px; color: #546276; background: #f1f4f8; font-size: 10px; font-weight: 700; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 99px; color: #667388; background: #f1f3f7; font-size: 10px; font-weight: 750; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: #8b97a8; }
.status-active, .status-published { color: #087a55; background: #e9f8f2; }.status-active i, .status-published i { background: #17a673; }
.status-queued, .status-validating, .status-uploading, .status-creating_container, .status-processing, .status-publishing, .status-retry_wait { color: #2560d8; background: #ebf2ff; }.status-queued i, .status-validating i, .status-uploading i, .status-creating_container i, .status-processing i, .status-publishing i, .status-retry_wait i { background: var(--blue); }
.status-failed, .status-needs_reauth, .status-unknown_outcome, .status-circuit_open { color: #b63743; background: #ffedef; }.status-failed i, .status-needs_reauth i, .status-unknown_outcome i, .status-circuit_open i { background: var(--red); }
.status-paused_manual, .status-disabled { color: #96601f; background: #fff4e6; }.status-paused_manual i, .status-disabled i { background: var(--orange); }
.date-cell { color: #4d5b70; }.date-cell small { display: block; margin-top: 2px; color: #98a2b1; font-size: 9px; }
.account-list { padding: 9px 21px; }
.account-row { display: grid; grid-template-columns: 40px 1fr 10px; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #eef1f5; }
.account-row:last-child { border-bottom: 0; }
.account-row strong, .account-row small { display: block; }
.account-row strong { font-size: 12px; }.account-row small { margin-top: 3px; color: #94a0b0; font-size: 9px; }
.account-dot { width: 8px; height: 8px; border-radius: 50%; background: #c4cbd5; }.account-dot.online { background: #22b47e; box-shadow: 0 0 0 4px #e8f8f2; }
.tip { display: flex; gap: 10px; margin: 8px 20px 20px; padding: 12px; border-radius: 10px; color: #607087; background: #f5f8fd; }
.tip > span { width: 19px; height: 19px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #6b8bc1; font-weight: 800; font-size: 10px; }
.tip p { margin: 0; font-size: 10px; line-height: 1.45; }.tip strong { display: block; color: #3f5068; }
.empty-state, .empty-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 330px; padding: 40px; text-align: center; }
.empty-state h4, .empty-page h3 { margin: 10px 0 5px; font-size: 17px; }.empty-state p, .empty-page p { max-width: 470px; margin: 0 0 18px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 20px; }
.empty-compact { padding: 28px; color: var(--muted); text-align: center; font-size: 12px; }.empty-compact a { color: var(--blue); font-weight: 700; }

.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.account-card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 20px rgba(31,48,76,.035); }
.account-card-head { display: flex; align-items: flex-start; justify-content: space-between; }
.account-card h3 { margin: 17px 0 4px; font-size: 17px; }.muted { color: var(--muted); }.account-card > p { margin: 0; font-size: 11px; }
.official-connection { display: inline-flex; align-items: center; gap: 4px; margin-top: 9px; padding: 4px 7px; border-radius: 99px; color: #15815d; background: #eaf8f3; font-size: 8px; font-weight: 800; letter-spacing: .25px; }
.account-metrics { display: grid; grid-template-columns: 1fr 1fr; margin: 20px 0; padding: 15px 0; border-block: 1px solid #edf0f4; }
.account-metrics div + div { padding-left: 17px; border-left: 1px solid #edf0f4; }
.account-metrics strong, .account-metrics span { display: block; }.account-metrics strong { font-size: 14px; }.account-metrics span { margin-top: 3px; color: #8c98a8; font-size: 9px; }
.account-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.account-card-actions form, .account-card-actions button { width: 100%; }
.inline-warning { margin: -8px 0 14px; padding: 9px; border-radius: 7px; color: #a8681e; background: #fff5e8; font-size: 10px; }
.route-assignment { display: grid; grid-template-columns: 1fr 35px; align-items: end; gap: 7px; margin: -5px 0 16px; }.route-assignment label { min-width: 0; }.route-assignment label > span { display: block; margin-bottom: 5px; color: #8a97a8; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }.route-assignment select { width: 100%; height: 36px; padding: 0 9px; border: 1px solid #dfe5ed; border-radius: 8px; outline: none; color: #46556a; background: #f9fafc; font-size: 10px; }.route-assignment button { width: 35px; height: 36px; border: 0; border-radius: 8px; color: #fff; background: var(--blue); font-weight: 800; }.route-note { display: flex; align-items: center; gap: 6px; margin: -9px 0 14px !important; color: #17805c !important; font-size: 9px !important; }.route-note span { width: 7px; height: 7px; border-radius: 50%; background: #25b981; box-shadow: 0 0 0 3px #e4f7f0; }
.empty-illustration { position: relative; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 20px; color: var(--blue); background: var(--blue-soft); font-size: 38px; }
.empty-illustration i { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--blue); font-size: 14px; font-style: normal; }

.oauth-notice { display: flex; align-items: center; gap: 13px; margin-bottom: 21px; padding: 15px 17px; border: 1px solid #cce9dd; border-radius: 13px; color: #326752; background: #effaf5; }.oauth-notice-icon { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #fff; background: #24ae7b; font-size: 14px; font-weight: 900; }.oauth-notice strong { display: block; font-size: 11px; }.oauth-notice p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; }.oauth-notice-warning { color: #7d5727; border-color: #edd9bc; background: #fff8ed; }.oauth-notice-warning .oauth-notice-icon { background: #e79a3c; }
.oauth-setup-card { width: min(600px, 100%); }.setup-steps { display: grid; gap: 8px; margin: 0 0 21px; padding: 14px; border-radius: 11px; background: #f5f8fc; }.setup-steps span { display: flex; align-items: center; gap: 9px; color: #607087; font-size: 10px; }.setup-steps b { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #fff; background: #6b82aa; font-size: 9px; }.copy-field { display: grid; grid-template-columns: minmax(0, 1fr) 82px; }.copy-field input { border-radius: 9px 0 0 9px; }.copy-field button { border: 1px solid #dce2eb; border-left: 0; border-radius: 0 9px 9px 0; color: #315fba; background: #edf3ff; font-size: 10px; font-weight: 800; }.meta-help-link { width: fit-content; color: var(--blue); font-size: 10px; font-weight: 750; }

.network-notice { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 16px 18px; border: 1px solid #cfe8df; border-radius: 13px; color: #326451; background: #f0faf6; }.network-notice-icon { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; color: #17865e; background: #ddf4eb; }.network-notice strong { display: block; font-size: 12px; }.network-notice p { margin: 3px 0 0; font-size: 10px; line-height: 1.45; }
.proxy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }.proxy-card { padding: 22px; }.proxy-card-head { display: flex; align-items: flex-start; justify-content: space-between; }.proxy-icon { width: 47px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: #315fba; background: #edf3ff; }.proxy-card h3 { margin: 16px 0 4px; font-size: 16px; }.proxy-address { margin: 0; overflow: hidden; color: #768398; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }.proxy-meta { margin: 18px 0; border-block: 1px solid #edf0f4; }.proxy-meta > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #f0f2f6; }.proxy-meta > div:last-child { border: 0; }.proxy-meta dt { color: #8793a4; font-size: 9px; }.proxy-meta dd { margin: 0; color: #455368; font-size: 10px; font-weight: 700; }.proxy-actions { display: grid; grid-template-columns: 1.15fr .85fr .72fr; gap: 8px; }.proxy-actions form, .proxy-actions button { width: 100%; }.proxy-actions button:disabled { cursor: not-allowed; opacity: .45; transform: none; }.button-danger-soft { color: #b63d49; border: 1px solid #f0c9ce; background: #fff1f3; }.button-danger-soft:hover { color: #fff; border-color: #c74754; background: #c74754; }
.proxy-fields { display: grid; grid-template-columns: 105px minmax(0, 1fr) 90px; gap: 10px; }.fail-closed-label { display: flex; gap: 10px; padding: 12px; border-radius: 10px; color: #476858; background: #eff9f5; }.fail-closed-label > span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #24a978; font-size: 10px; font-weight: 800; }.fail-closed-label p { margin: 0; font-size: 9px; line-height: 1.45; }.fail-closed-label strong { display: block; color: #315747; }

.modal[hidden] { display: none; }.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(13,25,43,.62); backdrop-filter: blur(5px); }
.modal-card { position: relative; width: min(530px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 31px; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(10,22,40,.28); }
.modal-card h2 { margin: 5px 0 7px; }.modal-card > p.muted { margin: 0 0 24px; font-size: 12px; }
.modal-close { position: absolute; right: 20px; top: 18px; border: 0; color: #728095; background: transparent; font-size: 25px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 7px; }

.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; color: #3f4d61; font-size: 12px; font-weight: 700; }
.field > span em { color: #99a4b4; font-weight: 500; font-style: normal; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #dce2eb; border-radius: 9px; outline: none; color: var(--ink); background: #fff; transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 45px; padding: 0 12px; }.field textarea { resize: vertical; padding: 12px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #7fa0ff; box-shadow: 0 0 0 3px rgba(49,107,255,.1); }
.field input::placeholder, .field textarea::placeholder { color: #aeb7c5; }
.field small { color: #929dad; font-weight: 500; font-size: 9px; }
.password-field { position: relative; }.password-field input { padding-right: 48px; }.password-field button { position: absolute; right: 4px; top: 4px; width: 38px; height: 37px; display: grid; place-items: center; padding: 0; border: 0; color: #8895a6; background: transparent; }.password-field svg { width: 18px; }
.form-error { display: flex; align-items: center; gap: 9px; margin: 18px 0; padding: 12px; border-radius: 9px; color: #a6333e; background: #ffedef; font-size: 12px; }.form-error span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-weight: 800; }

.publish-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .65fr); gap: 20px; align-items: start; }
.form-card { padding: 26px; }.step-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }.step-heading > span { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 12px; font-weight: 800; }.step-heading h3 { margin: 0; font-size: 15px; }.step-heading p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.divider { height: 1px; margin: 27px 0; background: #edf0f4; }
.destination-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 13px; }.format-field { width: min(240px, 100%); }.selection-tools { display: flex; align-items: center; gap: 12px; padding-bottom: 2px; }.selection-tools strong { color: #56657a; font-size: 10px; }.selection-tools button { padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 10px; font-weight: 750; }
.account-selector { max-height: 275px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; overflow-y: auto; padding: 3px 5px 3px 3px; scrollbar-width: thin; }.account-option { position: relative; min-width: 0; display: grid; grid-template-columns: 40px minmax(0, 1fr) 23px; align-items: center; gap: 10px; padding: 12px; border: 1px solid #dde4ed; border-radius: 11px; background: #fff; cursor: pointer; transition: .16s ease; }.account-option:hover { border-color: #aebfdd; background: #fbfcff; }.account-option:has(input:checked) { border-color: #7da0ff; background: #f4f7ff; box-shadow: 0 0 0 2px rgba(49,107,255,.07); }.account-option input { position: absolute; opacity: 0; pointer-events: none; }.account-option-copy { min-width: 0; }.account-option-copy strong, .account-option-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.account-option-copy strong { color: #354359; font-size: 11px; }.account-option-copy small { margin-top: 3px; color: #98a3b2; font-size: 8px; }.check-mark { width: 21px; height: 21px; display: grid; place-items: center; border: 1px solid #ccd5e1; border-radius: 7px; color: transparent; background: #fff; font-size: 11px; font-weight: 900; transition: .16s; }.account-option input:checked ~ .check-mark { color: #fff; border-color: var(--blue); background: var(--blue); }.field-error { margin: 8px 0 0; color: #bf3c48; font-size: 10px; font-weight: 700; }
.upload-zone { min-height: 184px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; border: 1.5px dashed #bdc9da; border-radius: 12px; color: #46556b; background: #fbfcfe; text-align: center; cursor: pointer; transition: .17s; }.upload-zone:hover, .upload-zone.dragging { border-color: var(--blue); background: #f5f8ff; }.upload-zone input { position: absolute; opacity: 0; pointer-events: none; }.upload-zone strong { margin: 10px 0 5px; font-size: 12px; }.upload-zone small { color: #929dad; font-size: 9px; }.upload-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; color: var(--blue); background: var(--blue-soft); }.selected-file { margin-top: 11px; padding: 6px 10px; border-radius: 7px; color: #2258d3; background: #e7efff; font-size: 10px; font-weight: 700; }
.media-guidance { display: flex; align-items: center; gap: 9px; margin-top: 11px; padding: 10px 12px; border-radius: 9px; color: #607087; background: #f5f8fd; }.media-guidance > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #7894bd; font-size: 9px; font-weight: 800; }.media-guidance p { margin: 0; font-size: 9px; }.media-guidance strong { margin-right: 4px; }
.counter { justify-self: end; margin-top: -26px; margin-right: 10px; padding: 3px; background: #fff; }.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.preview-card { position: sticky; top: 111px; padding: 22px; }.preview-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }.preview-title > span { color: #93a0b0; font-size: 10px; font-weight: 650; }.phone-preview { overflow: hidden; border: 1px solid #dfe5ed; border-radius: 13px; background: #fff; }.phone-head { height: 54px; display: grid; grid-template-columns: 28px 1fr 30px; align-items: center; gap: 8px; padding: 0 12px; }.phone-head strong, .phone-head small { display: block; }.phone-head strong { max-width: 165px; overflow: hidden; text-overflow: ellipsis; font-size: 10px; }.phone-head small { margin-top: 2px; color: #9ba5b3; font-size: 7px; }.phone-head b { color: #6f7c8e; font-size: 12px; letter-spacing: 1px; }
.preview-media { aspect-ratio: 1/1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; color: #a4afbd; background: #f0f3f7; font-size: 9px; }.preview-media svg { width: 38px; height: 38px; stroke-width: 1.2; }.preview-media img, .preview-media video { width: 100%; height: 100%; object-fit: cover; }.phone-actions { display: flex; gap: 12px; padding: 10px 12px 3px; font-size: 18px; line-height: 1; }.phone-actions .bookmark { margin-left: auto; }.preview-copy { min-height: 48px; padding: 6px 12px 13px; color: #596679; font-size: 9px; line-height: 1.45; }.preview-copy strong { color: #273448; }.preview-note { margin: 12px 0 0; color: #97a1af; font-size: 8px; text-align: center; }
.callout { display: flex; align-items: center; gap: 13px; padding: 18px; border-radius: 13px; }.callout > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; }.callout strong, .callout p { display: block; margin: 0; }.callout p { margin-top: 3px; font-size: 11px; }.callout .button { margin-left: auto; }.callout-warning { color: #8a591d; background: #fff4e5; }.callout-warning > span { color: #fff; background: var(--orange); }

.filter-bar { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-bottom: 1px solid var(--line); }.filter-tabs { display: flex; align-self: stretch; gap: 6px; }.filter-tabs a { display: flex; align-items: center; padding: 0 12px; border-bottom: 2px solid transparent; color: #7e8a9b; font-size: 11px; font-weight: 700; }.filter-tabs a.active { color: var(--blue); border-color: var(--blue); }.result-count { color: #98a2b1; font-size: 10px; }.attempts { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: #f1f4f8; font-size: 10px; font-weight: 700; }

.breadcrumb { display: flex; gap: 8px; margin-bottom: 19px; color: #8b97a8; font-size: 11px; }.breadcrumb a { color: var(--blue); font-weight: 700; }.detail-header { align-items: flex-end; }.detail-header .status { margin-bottom: 10px; }.detail-header h2 { margin-bottom: 4px; }.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 19px; }.detail-list { margin: 0; padding: 6px 22px; }.detail-list > div { min-height: 52px; display: grid; grid-template-columns: 145px 1fr; align-items: center; border-bottom: 1px solid #edf0f4; }.detail-list > div:last-child { border-bottom: 0; }.detail-list dt { color: #8b97a8; font-size: 10px; }.detail-list dd { display: flex; align-items: center; gap: 8px; margin: 0; color: #354358; font-size: 11px; font-weight: 700; }.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px !important; word-break: break-all; }.caption-box { margin: 8px 22px 22px; padding: 15px; border-radius: 10px; color: #526176; background: #f6f8fb; }.caption-box span { color: #8c98a9; font-size: 9px; font-weight: 700; text-transform: uppercase; }.caption-box p { margin: 7px 0 0; font-size: 11px; line-height: 1.55; white-space: pre-wrap; }.error-box { display: flex; gap: 11px; margin: 8px 22px 22px; padding: 14px; border-radius: 10px; color: #973641; background: #ffedef; }.error-box > span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--red); font-size: 10px; font-weight: 800; }.error-box strong { font-size: 11px; }.error-box p { margin: 4px 0 0; font-size: 10px; line-height: 1.45; }.timeline { margin: 0; padding: 20px 22px 25px; list-style: none; }.timeline li { position: relative; display: flex; gap: 13px; min-height: 58px; }.timeline li::before { content: ""; position: absolute; left: 4px; top: 13px; bottom: -4px; width: 1px; background: #dce3ec; }.timeline li:last-child::before { display: none; }.timeline li > span { width: 9px; height: 9px; flex: 0 0 auto; margin-top: 3px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px #bfd0ff; }.timeline strong, .timeline small { display: block; }.timeline strong { color: #465469; font-size: 10px; }.timeline small { margin-top: 4px; color: #9aa5b4; font-size: 8px; }

.toast { position: fixed; z-index: 30; top: 104px; right: 27px; width: min(390px, calc(100vw - 36px)); display: grid; grid-template-columns: 25px 1fr 20px; align-items: center; gap: 10px; padding: 14px; border: 1px solid; border-radius: 12px; background: #fff; box-shadow: 0 16px 50px rgba(26,41,64,.18); font-size: 11px; animation: toast-in .25s ease-out; }.toast-success { color: #147554; border-color: #bce9d9; }.toast-error { color: #a6333e; border-color: #f1c5ca; }.toast-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: currentColor; font-weight: 900; }.toast-icon::first-letter { color: #fff; }.toast button { border: 0; color: #8f9aa9; background: transparent; font-size: 20px; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } }

.login-body { background: #fff; }.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(430px, 46%) 1fr; }.login-visual { position: relative; overflow: hidden; padding: 44px 55px; color: #fff; background: radial-gradient(circle at 15% 15%, rgba(70,120,224,.5), transparent 32%), radial-gradient(circle at 85% 80%, rgba(31,157,160,.18), transparent 32%), linear-gradient(145deg, #172a48, #0e1c31); }.login-visual::before, .login-visual::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }.login-visual::before { width: 560px; height: 560px; right: -260px; top: -180px; }.login-visual::after { width: 380px; height: 380px; left: -190px; bottom: -210px; }.login-visual-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }.brand-light { padding: 0; color: #fff; }.login-message { margin: auto 0; }.pill-light { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.17); border-radius: 99px; color: #aec5f8; background: rgba(255,255,255,.05); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }.login-message h1 { max-width: 540px; margin: 24px 0 18px; font-size: clamp(34px, 4.1vw, 56px); line-height: 1.08; letter-spacing: -2px; }.login-message p { max-width: 450px; margin: 0; color: #a6b5c9; font-size: 15px; line-height: 1.7; }.login-proof { color: #a7b6c9; font-size: 11px; }.login-proof span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 7px; border-radius: 50%; color: #8ee1c2; background: rgba(45,201,143,.12); }.login-panel { display: grid; place-items: center; padding: 45px; }.login-card { width: min(390px, 100%); }.login-card h2 { margin: 5px 0 7px; font-size: 28px; letter-spacing: -.8px; }.login-card > p.muted { margin: 0 0 26px; font-size: 12px; }.login-help { margin: 24px 0 0; color: #9aa5b5; font-size: 9px; text-align: center; }.mobile-brand { display: none; }
.login-theme-toggle { position: fixed; z-index: 10; top: 24px; right: 25px; }
.backdrop { display: none; }

/* Users and access control */
.nav-caption-admin { margin-top: 17px; }
.access-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 19px; }
.access-summary-card { display: flex; align-items: baseline; gap: 9px; padding: 18px 20px; }
.access-summary-card strong { color: var(--blue); font-size: 25px; }
.access-summary-card span { color: var(--muted); font-size: 10px; font-weight: 700; }
.user-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-bottom: 20px; }
.user-card { padding: 21px; }
.user-card-head { display: grid; grid-template-columns: 45px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.user-card-head h3 { margin: 0 0 3px; font-size: 14px; }
.user-card-head p { margin: 0; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { width: 45px; height: 45px; }
.user-meta { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; padding: 14px 0; border-block: 1px solid var(--line); }
.user-meta span { display: grid; gap: 3px; color: var(--muted); font-size: 8px; text-align: center; }
.user-meta span + span { border-left: 1px solid var(--line); }
.user-meta b { overflow: hidden; color: var(--ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.user-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.user-modal-card { width: min(650px, 100%); }
.compact-modal-card { width: min(450px, 100%); }
.switch-row { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; }
.switch-row > span { width: 39px; height: 22px; flex: 0 0 auto; padding: 3px; border-radius: 99px; background: #cbd4df; transition: .2s; }
.switch-row > span::after { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: .2s; }
.switch-row input:checked + span { background: var(--green); }
.switch-row input:checked + span::after { transform: translateX(17px); }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 11px; }.switch-row small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.account-access-list { max-height: 230px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; overflow-y: auto; margin: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.account-access-list legend { padding: 0 5px; color: var(--ink); font-size: 11px; font-weight: 800; }
.account-access-list > p { grid-column: 1 / -1; margin: 0 0 3px; color: var(--muted); font-size: 9px; }
.account-access-list label { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: 10px; cursor: pointer; }
.account-access-list label:has(input:checked) { color: var(--blue); border-color: var(--blue); background: var(--blue-soft); }
.account-access-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.audit-card { margin-top: 2px; }.audit-card .card-header p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.profile-grid { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(350px, 1.3fr); gap: 19px; align-items: start; }
.profile-card { padding: 30px; text-align: center; }.profile-avatar { width: 68px; height: 68px; margin: 0 auto 15px; font-size: 24px; }
.profile-card h3 { margin: 0; font-size: 20px; }.profile-card > p { margin: 5px 0 22px; color: var(--muted); font-size: 11px; }
.profile-card dl { margin: 0; text-align: left; }.profile-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--line); }
.profile-card dt { color: var(--muted); font-size: 9px; }.profile-card dd { margin: 0; color: var(--ink); font-size: 10px; font-weight: 750; }

/* Dark theme */
[data-theme="dark"] {
  color-scheme: dark;
  --navy: #dce7f7;
  --navy-2: #b9c9df;
  --blue: #6f98ff;
  --blue-soft: #17284d;
  --ink: #e7edf7;
  --muted: #95a5ba;
  --line: #29364a;
  --canvas: #0b1220;
  --white: #141e2d;
  --green: #43c995;
  --orange: #f4aa58;
  --red: #ef7180;
  --shadow: 0 14px 38px rgba(0, 0, 0, .25);
}
[data-theme="dark"] body,
[data-theme="dark"] .login-body { background: var(--canvas); }
[data-theme="dark"] .sidebar { background: linear-gradient(180deg, #111d31 0%, #0b1423 100%); border-right: 1px solid #1f2d42; }
[data-theme="dark"] .topbar { border-color: var(--line); background: rgba(14, 23, 37, .94); }
[data-theme="dark"] .theme-toggle { color: #bdc9da; border-color: #34445b; background: #172235; }
[data-theme="dark"] .theme-toggle:hover { color: #fff; border-color: #5879b4; background: #1d2b41; }
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .account-card,
[data-theme="dark"] .modal-card,
[data-theme="dark"] .phone-preview,
[data-theme="dark"] .account-option,
[data-theme="dark"] .button-secondary,
[data-theme="dark"] .button-ghost,
[data-theme="dark"] .button-table,
[data-theme="dark"] .toast { color: var(--ink); border-color: var(--line); background: var(--white); box-shadow: 0 5px 22px rgba(0,0,0,.18); }
[data-theme="dark"] .card-header,
[data-theme="dark"] td,
[data-theme="dark"] .account-row,
[data-theme="dark"] .account-metrics,
[data-theme="dark"] .account-metrics div + div,
[data-theme="dark"] .proxy-meta,
[data-theme="dark"] .proxy-meta > div,
[data-theme="dark"] .detail-list > div,
[data-theme="dark"] .filter-bar { border-color: #29364a; }
[data-theme="dark"] th { color: #8fa0b7; background: #101a29; }
[data-theme="dark"] td { color: #b5c1d2; }
[data-theme="dark"] tbody tr:hover { background: #172235; }
[data-theme="dark"] .account-avatar { color: #9ebaff; border-color: #34465f; background: linear-gradient(145deg, #1d3154, #18263b); }
[data-theme="dark"] .media-type,
[data-theme="dark"] .status,
[data-theme="dark"] .attempts,
[data-theme="dark"] .icon-link { color: #afbdd0; background: #202c3e; }
[data-theme="dark"] .status-active,
[data-theme="dark"] .status-published { color: #68dcad; background: #14372e; }
[data-theme="dark"] .status-queued,
[data-theme="dark"] .status-validating,
[data-theme="dark"] .status-uploading,
[data-theme="dark"] .status-creating_container,
[data-theme="dark"] .status-processing,
[data-theme="dark"] .status-publishing,
[data-theme="dark"] .status-retry_wait { color: #8db0ff; background: #172d57; }
[data-theme="dark"] .status-failed,
[data-theme="dark"] .status-needs_reauth,
[data-theme="dark"] .status-unknown_outcome,
[data-theme="dark"] .status-circuit_open { color: #ff95a0; background: #45232d; }
[data-theme="dark"] .status-paused_manual,
[data-theme="dark"] .status-disabled { color: #ffc17a; background: #432f1d; }
[data-theme="dark"] .field { color: #c7d2e1; }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .route-assignment select { color: var(--ink); border-color: #34445b; background: #101a29; }
[data-theme="dark"] .field input::placeholder,
[data-theme="dark"] .field textarea::placeholder { color: #637287; }
[data-theme="dark"] .tip,
[data-theme="dark"] .media-guidance,
[data-theme="dark"] .caption-box { color: #aab8ca; background: #182436; }
[data-theme="dark"] .tip strong,
[data-theme="dark"] .caption-box p,
[data-theme="dark"] .detail-list dd,
[data-theme="dark"] .timeline strong,
[data-theme="dark"] .account-option-copy strong { color: #d3deec; }
[data-theme="dark"] .upload-zone { color: #bac7d8; border-color: #465875; background: #101a29; }
[data-theme="dark"] .upload-zone:hover,
[data-theme="dark"] .upload-zone.dragging { border-color: var(--blue); background: #14233c; }
[data-theme="dark"] .account-option:hover { border-color: #536887; background: #182436; }
[data-theme="dark"] .account-option:has(input:checked) { border-color: #6f98ff; background: #17284d; }
[data-theme="dark"] .check-mark { border-color: #445570; background: #101a29; }
[data-theme="dark"] .preview-media { color: #718198; background: #111b2a; }
[data-theme="dark"] .preview-copy { color: #aab7c8; }
[data-theme="dark"] .preview-copy strong { color: #e0e8f3; }
[data-theme="dark"] .counter { background: var(--white); }
[data-theme="dark"] .network-notice { color: #9bd4bd; border-color: #255345; background: #132c27; }
[data-theme="dark"] .network-notice-icon { color: #72dcb2; background: #194137; }
[data-theme="dark"] .fail-closed-label { color: #9dcab8; background: #142d28; }
[data-theme="dark"] .fail-closed-label strong { color: #c1e4d6; }
[data-theme="dark"] .inline-warning,
[data-theme="dark"] .callout-warning { color: #f0bd7e; background: #3a2a1a; }
[data-theme="dark"] .official-connection { color: #82ddb8; background: #17372f; }
[data-theme="dark"] .oauth-notice { color: #a9d7c4; border-color: #285143; background: #142c27; }
[data-theme="dark"] .oauth-notice-warning { color: #e8bd86; border-color: #554026; background: #332719; }
[data-theme="dark"] .setup-steps { background: #182436; }
[data-theme="dark"] .setup-steps span { color: #aab8ca; }
[data-theme="dark"] .copy-field button { color: #9bb6ff; border-color: #34445b; background: #192a4b; }
[data-theme="dark"] .error-box,
[data-theme="dark"] .form-error { color: #ff9ca6; background: #3f222b; }
[data-theme="dark"] .timeline li::before { background: #35445a; }
[data-theme="dark"] .timeline li > span { border-color: var(--white); }
[data-theme="dark"] .login-panel { background: var(--canvas); }
[data-theme="dark"] .mobile-brand { color: var(--ink); }
[data-theme="dark"] .account-access-list label { background: #101a29; }
[data-theme="dark"] .switch-row > span { background: #3a485d; }
[data-theme="dark"] .button-danger-soft { color: #ff9ca6; border-color: #59313a; background: #3f222b; }
[data-theme="dark"] ::-webkit-scrollbar { width: 10px; height: 10px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0c1422; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { border: 2px solid #0c1422; border-radius: 99px; background: #34445b; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid, .publish-layout, .detail-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; }.phone-preview { max-width: 380px; margin: auto; }
  .account-grid { grid-template-columns: repeat(2, 1fr); }
  .proxy-grid { grid-template-columns: repeat(2, 1fr); }
  .user-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { width: min(285px, 86vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 15px 0 50px rgba(10,20,35,.2); }.sidebar.open { transform: translateX(0); }
  .main { width: 100%; }.menu-button { display: grid; }.topbar { height: 75px; padding: 0 17px; }.topbar .eyebrow { display: none; }.topbar h1 { font-size: 18px; }.topbar > div:nth-child(2) { margin-right: auto; margin-left: 8px; }.topbar-actions .compact span { display: none; }.topbar-actions .compact { width: 39px; padding: 0; }.avatar { width: 35px; height: 35px; }
  .content { padding: 23px 17px 45px; }.backdrop.visible { position: fixed; inset: 0; z-index: 15; display: block; background: rgba(9,20,36,.5); }
  .welcome-row, .page-intro, .detail-header { align-items: flex-start; }.welcome-row h2, .page-intro h2, .detail-header h2 { font-size: 20px; }.welcome-row > .button { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.stat-card { min-height: 100px; grid-template-columns: 39px 1fr; padding: 14px; }.stat-icon { width: 39px; height: 39px; }.stat-card strong { font-size: 23px; }.stat-card .stat-arrow { display: none; }
  .account-grid { grid-template-columns: 1fr; }.page-intro { flex-wrap: wrap; }.page-intro > .button { width: 100%; }
  .page-actions { width: 100%; }.page-actions .button { flex: 1; }
  .proxy-grid { grid-template-columns: 1fr; }
  .access-summary { grid-template-columns: 1fr; }.profile-grid { grid-template-columns: 1fr; }
  .filter-bar { align-items: flex-end; overflow-x: auto; }.filter-tabs { min-width: max-content; }.result-count { display: none; }
  .detail-header { flex-direction: column; }.detail-list > div { grid-template-columns: 110px 1fr; }
  .toast { top: 88px; right: 18px; }
  .login-layout { display: block; }.login-visual { display: none; }.login-panel { min-height: 100vh; padding: 28px; }.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 65px; }.mobile-brand .brand-mark { width: 36px; height: 36px; flex-basis: 36px; }.mobile-brand .brand-mark svg { width: 23px; }.mobile-brand strong { font-size: 17px; }
}
@media (max-width: 520px) {
  .stat-grid { grid-template-columns: 1fr; }.stat-card { min-height: 86px; }
  .field-grid { grid-template-columns: 1fr; }.form-card { padding: 20px 16px; }.form-actions { display: grid; grid-template-columns: 1fr 1.5fr; }.form-actions .button { padding: 0 10px; }
  .destination-head { align-items: stretch; flex-direction: column; gap: 10px; }.format-field { width: 100%; }.selection-tools { justify-content: space-between; }.account-selector { grid-template-columns: 1fr; max-height: 330px; }
  .modal-card { padding: 28px 20px 22px; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .proxy-fields { grid-template-columns: 1fr 1fr; }.proxy-fields .proxy-host { grid-column: 1 / -1; grid-row: 1; }.network-notice { align-items: flex-start; }
  .page-actions { display: grid; grid-template-columns: 1fr; }.oauth-notice { align-items: flex-start; }
  .detail-list { padding-inline: 16px; }.detail-list > div { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }.caption-box, .error-box { margin-inline: 16px; }
  .card-header { padding-inline: 16px; }.welcome-row, .page-intro { margin-bottom: 20px; }
  .account-access-list { grid-template-columns: 1fr; }.user-card-head { grid-template-columns: 45px minmax(0, 1fr); }.user-card-head .status { grid-column: 1 / -1; width: fit-content; }.user-meta { grid-template-columns: 1fr; gap: 9px; }.user-meta span + span { border-left: 0; }.user-card-actions { grid-template-columns: 1fr; }
}
