:root {
  color-scheme: light;
  --paper: #f4f6fa;
  --ink: #151c28;
  --muted: #606e82;
  --blue: #0865d8;
  --blue-hover: #004fb5;
  --electric: #0788f5;
  --line: #dfe5ee;
  --white: #ffffff;
  --pale: #edf4ff;
  --red: #ad302b;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea, summary { outline-offset: 4px; }
:focus-visible { outline: 3px solid var(--electric); }
::selection { background: #cce3ff; color: #101a29; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { margin: 12px 0 18px; font-size: clamp(32px, 3.5vw, 50px); line-height: 1.13; font-weight: 650; letter-spacing: -1.9px; overflow-wrap: anywhere; }
h2 { font-size: 20px; line-height: 1.4; letter-spacing: -.5px; font-weight: 650; }
p + p { margin-top: 12px; }
strong { font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { display: block; }
.eyebrow { display: block; font-size: 10px; font-weight: 650; letter-spacing: 1.6px; line-height: 1.6; }
.lead { max-width: 560px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.full { grid-column: 1 / -1; }
.skip-link { position: fixed; top: 12px; left: 12px; transform: translateY(-180%); z-index: 20; padding: 12px 20px; border-radius: 6px; background: var(--blue); color: white; }
.skip-link:focus { transform: translateY(0); }

/* The supplied logo is always rendered intact at its original aspect ratio. */
.itechx-logo { height: auto; object-fit: contain; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; display: flex; flex-direction: column; width: 248px; padding: 22px 20px 26px; background: #060809; color: #b8c3d4; overflow-y: auto; }
.brand { display: block; flex-shrink: 0; padding: 0 0 25px; border-bottom: 1px solid #232933; text-decoration: none; }
.brand:hover { text-decoration: none; }
.sidebar-logo { width: 208px; }
.brand-sub { display: block; margin: 0 0 0 9px; color: #a0aec2; font-size: 8px; font-weight: 600; letter-spacing: 2.4px; }
.nav-label { margin: 31px 15px 13px; color: #8b98ab; font-size: 9px; letter-spacing: 2px; font-weight: 600; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { display: flex; align-items: center; gap: 13px; min-height: 47px; padding: 10px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 500; }
.nav-icon { width: 19px; color: #91a0b5; font-size: 20px; line-height: 1; text-align: center; }
.sidebar nav a:hover { color: white; background: #141b25; text-decoration: none; }
.sidebar nav a[aria-current] { border-color: #163963; color: white; background: #0b2440; }
.sidebar nav a[aria-current] .nav-icon { color: #4ba8ff; }
.sidebar :focus-visible { outline-color: #4ba8ff; }
.sidebar-foot { display: grid; gap: 8px; margin-top: auto; padding: 28px 13px 0; border-top: 1px solid #232933; font-size: 12px; }
.account-identity { margin-bottom: 13px; padding-top: 4px; overflow-wrap: anywhere; }
.sidebar-foot .eyebrow { color: #8f9cb0; font-size: 8px; letter-spacing: 1.8px; }
.sidebar-foot strong { display: block; margin-top: 6px; color: white; font-size: 14px; }
.sidebar-foot a { padding: 4px 0; }
.sidebar-foot [aria-current] { color: #6cb8ff; }
.text-button { min-height: 36px; padding: 2px 0; border: 0; background: none; color: var(--blue); text-align: left; font-size: 12px; font-weight: 550; }
.text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.sidebar-foot .text-button { color: #b8c3d4; }

/* The workspace keeps information light and leaves the brand in the frame. */
main { min-width: 0; max-width: 1670px; margin-left: 248px; padding: 0 46px; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 80px; border-bottom: 1px solid var(--line); }
.workspace-label { display: inline-flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; }
.workspace-label strong { color: var(--ink); font-size: 16px; letter-spacing: -.4px; }
.topline-divider { width: 1px; height: 16px; background: #cdd5e1; }
.private-label { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; color: #4b5b71; font-size: 10px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.page-heading { padding: 44px 0 32px; }
.page-heading > .eyebrow, .page-heading > div > .eyebrow { color: var(--blue); }
.heading-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.heading-row > div { min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 23px; min-height: 46px; padding: 11px 20px; border: 1px solid var(--blue); border-radius: 7px; background: var(--blue); color: white; font-size: 12px; font-weight: 600; line-height: 1.6; text-align: center; text-decoration: none; }
.button:hover { background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: none; }
.button.secondary { color: #344967; background: white; border-color: #c8d3e3; }
.button.secondary:hover { color: var(--blue-hover); background: #edf4ff; border-color: #a9c8f3; }
.button.compact { min-height: 36px; padding: 6px 12px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 5px 0 32px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 3px 12px #16233b03; overflow: hidden; }
.stats > div { min-width: 0; padding: 24px 26px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: 1.3px; }
.stats strong { display: block; margin-top: 10px; font-size: 33px; font-weight: 600; line-height: 1.3; letter-spacing: -1.3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stats small { color: #77869b; font-size: 19px; font-weight: 400; letter-spacing: -.3px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 30px 0 18px; }
.section-title > div { min-width: 0; }
.section-title h2 { font-size: 19px; }
.count { display: inline-block; min-width: 24px; margin-left: 6px; padding: 2px 7px; border: 1px solid #d8e4f5; border-radius: 5px; background: #eaf2ff; color: var(--blue); font-size: 11px; text-align: center; vertical-align: middle; }
.bot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.bot-card { min-width: 0; padding: 22px 22px 0; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 4px 20px #18253b04; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 27px; }
.product-glyph { display: inline-grid; flex-shrink: 0; place-items: center; width: 46px; height: 46px; border: 1px solid #dce8fa; border-radius: 10px; background: #eff5ff; color: #1759ab; font-size: 27px; line-height: 1; }
.badge { display: inline-block; padding: 5px 9px; border: 1px solid #e2e7ef; border-radius: 5px; background: #f1f4f8; color: #536178; font-size: 10px; font-weight: 550; line-height: 1.5; overflow-wrap: anywhere; }
.badge.green { border-color: #cee2ff; background: #ebf3ff; color: #0758ba; }
.bot-card .eyebrow { color: var(--muted); font-size: 9px; letter-spacing: .9px; }
.bot-card h2 { margin-top: 6px; font-size: 19px; overflow-wrap: anywhere; }
.bot-card h2 a:hover { color: var(--blue); }
.card-limits { display: flex; justify-content: space-between; gap: 16px; margin: 26px 0 14px; }
.card-limits > div { min-width: 0; }
.card-limits span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.card-limits strong { font-size: 21px; font-weight: 600; letter-spacing: -.6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.card-link { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding: 15px 0; border-top: 1px solid var(--line); color: #22538c; font-size: 12px; font-weight: 550; }
.card-link span { color: var(--blue); font-size: 17px; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 14px 18px; background: #edf1f7; color: #536278; font-size: 9px; font-weight: 650; letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
td { padding: 18px; border-top: 1px solid var(--line); font-size: 12px; vertical-align: top; }
td:first-child { min-width: 220px; }
td a { font-weight: 600; }
td a:hover { color: var(--blue); }
td .block { margin-top: 5px; }
.table-empty { padding: 36px; color: var(--muted); text-align: center; }
.service-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 30px; padding: 25px; border: 1px solid var(--line); border-radius: 10px; background: #eef2f8; }
.service-strip > div:first-child { grid-column: 1 / -1; padding-bottom: 16px; border-bottom: 1px solid #d7e0eb; }
.service-strip > div:first-child p { max-width: 670px; margin-top: 6px; }
.service-strip strong, .service-strip .small { display: block; margin-top: 8px; }
.service-strip strong { font-size: 12px; }
footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 35px; padding: 29px 0; border-top: 1px solid var(--line); color: #66758a; font-size: 10px; }
footer strong { color: #344761; }

/* Controls and decision details share one clear visual language. */
.panel { min-width: 0; margin-bottom: 22px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.panel h2 + p { margin-top: 10px; }
.narrow { max-width: 790px; }
.notice { margin: 18px 0; padding: 18px 22px; border: 1px solid #cddff8; border-left: 3px solid var(--blue); border-radius: 8px; background: #ecf3ff; color: #29476f; overflow-wrap: anywhere; }
.notice p { margin-top: 6px; }
.notice a { color: #064fab; text-decoration: underline; }
.notice.error { border-color: #edcac7; border-left-color: #c44137; background: #fff0ee; color: #962b25; }
.error-text { color: var(--red); }
.errorlist { padding-left: 18px; color: var(--red); font-size: 12px; }
form > .errorlist { padding: 15px 18px 15px 35px; border: 1px solid #edcac7; border-radius: 7px; background: #fff1ef; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 27px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; }
input:not([type=checkbox]):not([type=hidden]), select, textarea { min-width: 0; width: 100%; min-height: 45px; padding: 11px 12px; border: 1px solid #becbdd; border-radius: 6px; background: #fff; color: var(--ink); box-shadow: 0 1px 2px #13254403; }
input:hover, select:hover, textarea:hover { border-color: #839dbc; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); }
input:disabled, select:disabled { border-color: #d8e0eb; background: #f0f3f8; color: #5d6a7d; }
textarea { resize: vertical; }
.help { display: block; color: #5e6d81; font-size: 11px; line-height: 1.7; }
.help ul { margin: 4px 0; padding-left: 17px; }
.has-error input, .has-error select { border-color: var(--red); }
.form-section-heading { display: flex; gap: 17px; margin-bottom: 27px; }
.form-section-heading > div { min-width: 0; }
.form-section-heading p { margin-top: 6px; }
.step { display: grid; flex: 0 0 36px; place-items: center; height: 36px; border: 1px solid #cddff8; border-radius: 8px; background: #eef5ff; color: #155bb4; font-size: 11px; font-weight: 650; }
.template-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 26px; }
.template-choice { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid #d6deeb; border-radius: 10px; background: white; }
.template-choice.selected { border-color: var(--blue); box-shadow: inset 0 3px 0 var(--blue); background: #f2f7ff; }
.template-choice .eyebrow { color: #626f82; font-size: 8px; }
.template-choice strong { font-size: 15px; }
.template-choice > span:last-child { color: #175ab2; font-size: 11px; }
.template-choice:hover { border-color: var(--blue); text-decoration: none; }
.formula { margin-top: 24px; padding: 15px; border: 1px solid #e0e7f1; border-radius: 6px; background: #f3f6fa; color: #4c5c73; font-size: 11px; }
.baseline-note { margin-bottom: 24px; padding: 27px; border: 1px solid #bcd4f6; border-left: 3px solid var(--blue); border-radius: 10px; background: #eaf2ff; color: #29466c; }
.baseline-note .eyebrow { color: #1558ad; }
.baseline-note h2 { margin: 9px 0 12px; color: #193454; }
.baseline-note p { max-width: 850px; font-size: 13px; line-height: 1.8; }
.baseline-note p.small { font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; }
.back-link { display: block; margin-bottom: 24px; color: #4d6688; font-size: 12px; }
.back-link:hover { color: var(--blue); }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.inline-actions .back-link { margin: 0; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 12px 25px; color: var(--muted); font-size: 11px; }
.section-title form { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; }
.section-title select { width: auto; max-width: 100%; min-height: 36px; padding: 6px 10px; font-size: 11px; }
.definition-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 9px 24px; font-size: 12px; overflow-wrap: anywhere; }
.definition-grid dt { color: var(--muted); }
.definition-grid dd { margin: 0; }
.listing-title { max-width: 900px; font-size: 36px; }
.status-word { font-size: 25px !important; }
.reason-list { padding-left: 20px; font-size: 13px; }
.reason-list li { margin: 7px 0; }
.profit-result { margin: 20px 0; padding: 18px; border: 1px solid #cddff8; border-radius: 7px; background: var(--pale); color: #24476f; }
.profit-result strong { display: block; margin-top: 4px; color: #0655b7; font-size: 27px; }
.empty { padding: 45px; border: 1px solid #cfdcf0; border-radius: var(--radius); background: linear-gradient(135deg, #ffffff, #eef4ff); text-align: center; }
.empty .product-glyph { width: 56px; height: 56px; border-radius: 12px; }
.empty h2 { margin: 18px 0 11px; }
.empty p { max-width: 500px; margin: 0 auto 25px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.connection-steps { padding-left: 22px; font-size: 13px; line-height: 1.85; }
.connection-steps li { margin: 10px 0; padding-left: 3px; }
.connection-steps a { color: #0759bd; text-decoration: underline; }
code { border-radius: 3px; background: #edf1f8; color: #234e88; padding: 2px 5px; font-size: .93em; }
.pairing-code { margin-top: 25px; padding: 20px; border: 1px solid #bad4fa; border-radius: 8px; background: #edf4ff; }
.pairing-code code { display: block; margin: 15px 0; padding: 12px; border: 1px solid #d4e4fb; background: white; color: #0b4da2; font-size: 15px; overflow-wrap: anywhere; }
.spaced { margin-top: 20px; }
.spaced + .small { margin-top: 16px; }
.invite-url { margin-top: 10px; font-size: 12px; }
.preview-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.preview-row strong { display: block; margin-bottom: 10px; }
.preview-row > span { margin-right: 15px; }
.preview-row ul { font-size: 12px; }
summary { cursor: pointer; }
details[open] > summary { margin-bottom: 18px; }
#id_allowed_conditions { display: flex; flex-wrap: wrap; gap: 12px 18px; }
#id_allowed_conditions label { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 4px 10px; border: 1px solid #dbe3ef; border-radius: 6px; background: #f8faff; font-size: 12px; font-weight: 500; }
#id_allowed_conditions input { width: 15px; height: 15px; accent-color: var(--blue); }
.archive-filter { margin-top: 0; }
.archive-record .section-title { margin-top: 0; }
.archive-summary { display: flex; flex-wrap: wrap; gap: 18px 40px; margin: 18px 0 24px; }
.archive-summary dt { color: var(--muted); font-size: 10px; }
.archive-summary dd { margin: 4px 0 0; font-size: 16px; }
.archive-json { max-height: 500px; overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.archive-pagination > div { min-width: 110px; }
.archive-pagination > div:last-child { text-align: right; }

/* Public access pairs the original black logo with a calm, white form. */
.auth-main { max-width: 1300px; margin: 0 auto; padding: 0 44px; }
.auth-main .topline { min-height: 90px; }
.header-brand { display: block; overflow: hidden; width: 105px; border-radius: 5px; background: #050606; }
.header-logo { width: 105px; }
.access-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 640px; margin: 34px 0 20px; border: 1px solid #dbe2ec; border-radius: 16px; background: white; overflow: hidden; box-shadow: 0 18px 60px #17284108; }
.access-hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 30px 42px 34px; background: #050606; color: white; }
.auth-logo { width: 300px; max-width: 100%; flex-shrink: 0; }
.access-hero-copy { margin: 24px 0 36px; }
.access-hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; color: #b7c7dd; font-size: 9px; letter-spacing: 1.7px; }
.access-hero-copy .eyebrow::before { content: ''; width: 23px; height: 2px; background: #0788f5; }
.access-hero h1 { margin: 20px 0 22px; color: white; font-size: clamp(34px, 3.5vw, 46px); font-weight: 500; letter-spacing: -1.8px; line-height: 1.17; }
.access-hero-copy > p { max-width: 330px; color: #a9b7c9; font-size: 14px; line-height: 1.9; }
.access-principles { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; margin-top: auto; padding-top: 26px; border-top: 1px solid #29313c; color: #a9b7c9; font-size: 10px; }
.auth-card { min-width: 0; width: 100%; max-width: 520px; margin: 0 auto; padding: 70px 44px 44px; }
.auth-card > .eyebrow { color: #526d94; font-size: 9px; letter-spacing: 1.6px; }
.auth-card > h2 { margin: 13px 0 10px; font-size: 29px; font-weight: 650; letter-spacing: -.9px; }
.auth-card .lead { margin-bottom: 31px; font-size: 13px; line-height: 1.8; }
.auth-card .field { margin-top: 21px; }
.auth-card .field input { min-height: 48px; }
.auth-card .button { width: 100%; justify-content: space-between; margin-top: 27px; }
.auth-card .button span { font-size: 18px; line-height: 1; }
.access-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 32px; padding-top: 23px; border-top: 1px solid var(--line); color: #5e6d83; }
.access-note p { font-size: 11px; line-height: 1.8; }
.note-marker { display: inline-grid; flex: 0 0 24px; place-items: center; height: 24px; border: 1px solid #d7e5fa; border-radius: 5px; background: #eff5ff; color: var(--blue); font-size: 14px; }
.password-guidance { margin-top: 20px; color: #5e6d83; font-size: 11px; line-height: 1.8; }
.auth-main > .auth-card { max-width: 540px; margin: 60px auto; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.account-brand { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin: -28px -28px 30px; padding: 0 27px; border-radius: 11px 11px 0 0; background: #050606; color: #afbed2; }
.account-logo { width: 140px; }
.account-brand > span { font-size: 9px; letter-spacing: 1.5px; }
.password-panel .field { margin-bottom: 22px; }
.password-panel .button { margin-top: 10px; }

@media (prefers-reduced-motion: no-preference) {
  a, button, input, select, textarea { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
}
@media (min-width: 1550px) {
  main { padding-right: 65px; padding-left: 65px; }
  .bot-grid { gap: 24px; }
}
@media (max-width: 1190px) {
  .sidebar { width: 220px; padding-right: 16px; padding-left: 16px; }
  .sidebar-logo { width: 188px; }
  main { margin-left: 220px; padding-right: 30px; padding-left: 30px; }
  .bot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .template-picker { grid-template-columns: 1fr; }
  .template-choice { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; }
  .stats > div { padding: 22px 19px; }
  .stats strong { font-size: 29px; }
  .auth-main { margin: 0 auto; padding: 0 30px; }
  .access-hero { padding-right: 32px; padding-left: 32px; }
  .auth-card { padding: 60px 32px 35px; }
}
@media (max-width: 900px) {
  .access-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .access-hero { padding: 26px; }
  .auth-card { padding: 48px 27px 32px; }
  .access-hero h1 { font-size: 35px; }
  .auth-logo { width: 250px; }
  .service-strip { gap: 18px; padding: 22px; }
  .service-strip strong { font-size: 11px; }
}
@media (max-width: 760px) {
  .sidebar { position: static; width: 100%; padding: 8px 18px 17px; overflow: visible; }
  .brand { display: flex; align-items: center; gap: 22px; padding: 0; border-bottom: 0; }
  .sidebar-logo { width: 145px; }
  .brand-sub { max-width: 135px; margin: 0; font-size: 8px; line-height: 2; letter-spacing: 2px; }
  .nav-label { display: none; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 5px 0 14px; }
  .sidebar nav a { justify-content: center; min-width: 0; min-height: 40px; padding: 8px 5px; font-size: 11px; text-align: center; }
  .nav-icon { display: none; }
  .sidebar-foot { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 9px 1px 0; font-size: 10px; }
  .account-identity { max-width: 100%; margin: 0 auto 0 0; padding: 0; }
  .sidebar-foot .eyebrow { display: none; }
  .sidebar-foot strong { margin: 0; font-size: 11px; }
  .sidebar-foot .text-button { min-height: 32px; font-size: 10px; }
  main { margin: 0; padding: 0 20px; }
  .topline { min-height: 65px; }
  .workspace-label { gap: 10px; font-size: 10px; }
  .workspace-label strong { font-size: 13px; }
  .private-label { gap: 5px; padding: 4px 7px; font-size: 9px; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  .page-heading { padding: 31px 0 27px; }
  .heading-row { align-items: flex-start; flex-direction: column; gap: 20px; }
  .lead { font-size: 14px; }
  .stats { margin-bottom: 26px; }
  .stats > div { padding: 19px 13px; }
  .stats .eyebrow { font-size: 8px; letter-spacing: .7px; }
  .stats strong { font-size: 26px; }
  .stats small { font-size: 15px; }
  .bot-grid { grid-template-columns: 1fr; }
  .bot-card { padding: 24px 24px 0; }
  .card-limits { gap: 30px; }
  .panel { padding: 23px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-section-heading { gap: 13px; }
  .template-choice { display: flex; gap: 9px; }
  .template-choice .eyebrow { font-size: 9px; }
  .baseline-note { padding: 23px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .button { width: 100%; }
  .section-title { align-items: flex-start; flex-wrap: wrap; }
  .section-title h2 { font-size: 18px; }
  .section-title .small { font-size: 11px; }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-grid dd { margin-bottom: 10px; }
  .detail-meta { flex-direction: column; gap: 8px; }
  .back-link { font-size: 11px; }
  .listing-title { font-size: 29px; }
  .status-word { font-size: 21px !important; }
  .service-strip { grid-template-columns: 1fr; gap: 20px; }
  .service-strip > div:not(:first-child) { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; }
  .service-strip .badge { grid-column: 2; grid-row: 1; align-self: center; }
  .service-strip strong { grid-column: 1; grid-row: 1; margin: 0; font-size: 12px; }
  .service-strip .small { grid-column: 1 / -1; margin-top: 2px; }
  .empty { padding: 33px 22px; }
  .table-empty { padding: 30px 23px; font-size: 13px; }
  footer { flex-direction: column; gap: 8px; margin-top: 27px; padding: 25px 0; }
  .auth-main { margin: 0; padding: 0 20px; }
  .auth-main .topline { min-height: 77px; }
  .header-brand, .header-logo { width: 90px; }
  .access-layout { grid-template-columns: 1fr; min-height: 0; margin-top: 22px; border-radius: 12px; }
  .access-hero { padding: 20px 27px 29px; }
  .auth-logo { width: 220px; }
  .access-hero-copy { margin: 4px 0 0; }
  .access-hero h1 { margin: 16px 0 17px; font-size: 35px; letter-spacing: -1.4px; }
  .access-hero-copy > p { font-size: 13px; }
  .access-principles { display: none; }
  .auth-card { max-width: 100%; padding: 31px 27px 34px; }
  .auth-card > h2 { font-size: 27px; }
  .auth-card .lead { margin-bottom: 26px; }
  .auth-card .field { margin-top: 18px; }
  .auth-card .field input { font-size: 16px; }
  .auth-main > .auth-card { margin: 30px auto; padding: 27px; }
  .account-brand { margin: -23px -23px 26px; padding: 0 22px; }
  .account-logo { width: 125px; }
  .account-brand > span { font-size: 8px; line-height: 1.8; }
  .archive-filter form { width: 100%; }
  .archive-filter select { flex: 1; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px 15px; padding: 16px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stats > div:last-child { border-bottom: 0; }
  .stats .eyebrow { font-size: 9px; }
  .stats strong { margin: 0; font-size: 26px; }
  .stats > div > .small { grid-column: 1 / -1; }
  .archive-pagination { gap: 10px; }
  .archive-pagination > div { min-width: 85px; }
  .archive-pagination .button { min-height: 42px; padding: 9px 12px; font-size: 11px; }
}
