@font-face { font-family: Montserrat; src: url("/static/fonts/Montserrat-Variable-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Brand palette approved by the Head of Creatives (cyan, teal-to-navy gradient). Contrast
   ratios (WCAG 2.x) are noted next to each text colour; keep them at 4.5:1 or more. */
:root {
  --cyan: #89F1FF;          /* primary buttons, accents on dark; never as text on white (1.3:1) */
  --cyan-hover: #5FE3F5;    /* primary button hover; #080F23 text on it is 12.5:1 */
  --on-cyan: #080F23;       /* text on cyan: 14.6:1 */
  --teal: #0D323B;
  --teal-mid: #0A212F;
  --navy: #080F23;
  --dark-gradient: linear-gradient(135deg, #0D323B 0%, #0A212F 50%, #080F23 100%);
  --brand: #0D6E7E;         /* links, eyebrows on light: 5.9:1 on white, 5.5:1 on --bg-soft */
  --brand-dark: #0B5F6D;    /* link hover: 7.3:1 on white */
  --accent: #0D6E7E;        /* check marks and small graphics on light */
  --ink: #080F23;           /* body text: 19.0:1 on white */
  --muted: #4A5568;         /* secondary text: 7.5:1 on white, 7.0:1 on --bg-soft */
  --on-dark: #FFFFFF;       /* text on the dark gradient: 13.7:1 or more */
  --on-dark-muted: #D5E6EA; /* secondary text on dark: 10.6:1 on #0D323B, 14.8:1 on #080F23 */
  --focus: #0D6E7E;         /* focus ring on light; --cyan on dark */
  --line: #DDE6EA;
  --bg: #ffffff;
  --bg-soft: #F3F7F9;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(8, 15, 35, .08);
  --max: 1160px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.on-dark, .hero, .strip, .cta-band, .site-footer { --focus: var(--cyan); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Placeholder markers */
.tbd { background: #fff3bf; color: #7a5b00; border: 1px dashed #e0b400; border-radius: 6px; padding: 0 .35em; font-size: .9em; font-weight: 500; }
.preview-bar { background: var(--navy); color: #e2e8f0; font-size: .85rem; text-align: center; padding: .4rem 1rem; }
.placeholder-box { border: 2px dashed #9FC3CB; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #F5FAFB, #F5FAFB 12px, #EAF4F6 12px, #EAF4F6 24px); color: var(--muted); display: grid; place-items: center; align-content: center; gap: .35rem; text-align: center; padding: 2rem; min-height: 220px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: .95rem; white-space: nowrap; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.05rem; }
.btn-sm { padding: .25rem .65rem; font-size: .8rem; border-radius: 8px; border-width: 1px; gap: .3rem; }
.btn-primary { background: var(--cyan); color: var(--on-cyan); border-color: #4FD6E8; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--cyan-hover); border-color: var(--cyan-hover); color: var(--on-cyan); }
.btn-primary:active { background: #3FD3E8; }
/* Outline button: navy on light backgrounds, white on dark ones (.hero, .strip, .cta-band, .on-dark). */
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: #fff; }
.hero .btn-secondary, .strip .btn-secondary, .cta-band .btn-secondary, .on-dark .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.hero .btn-secondary:hover, .strip .btn-secondary:hover, .cta-band .btn-secondary:hover, .on-dark .btn-secondary:hover { background: rgba(137, 241, 255, .14); border-color: var(--cyan); color: #fff; }
.btn-ghost { color: var(--ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; height: 28px; width: auto; }
.site-footer .brand-logo { height: 32px; }
/* Site name "Specz" beside the approved brand mark (the SpeczISP wordmark is the product logo, not the site name). */
.brand-mark { display: inline-block; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 6px; background: url("/static/img/brand-mark.svg") center / contain no-repeat; }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(137, 241, 255, .35); }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav > ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--brand); }
.has-sub { position: relative; }
.sub { display: none; position: absolute; top: 100%; left: -1rem; list-style: none; margin: 0; padding: .5rem 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; }
.sub a { display: block; padding: .45rem 1rem; }
.sub a:hover { background: var(--bg-soft); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.header-actions { display: flex; gap: .5rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .8rem; font: inherit; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 1rem 1.25rem 1.25rem; }
  .site-nav.open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: .25rem; }
  .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 1rem; min-width: 0; }
  .header-actions { flex-direction: column; }
}

/* Sections */
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 2.25rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: .5rem; display: block; }
/* Home hero: approved hero-bg artwork (dark, clear on the left for the headline). WebP with a
   JPEG fallback; the plain url() line is for browsers without image-set() type(). A navy wash on
   the left keeps the text readable where the artwork is cropped on narrow screens. */
.hero { padding-top: clamp(3.5rem, 8vw, 6.5rem); color: var(--on-dark); background-color: var(--teal-mid);
  background-image: linear-gradient(90deg, rgba(8, 15, 35, .55) 0%, rgba(8, 15, 35, .15) 55%, rgba(8, 15, 35, 0) 100%), url("/static/img/hero-bg.jpg");
  background-image: linear-gradient(90deg, rgba(8, 15, 35, .55) 0%, rgba(8, 15, 35, .15) 55%, rgba(8, 15, 35, 0) 100%), image-set(url("/static/img/hero-bg.webp") type("image/webp"), url("/static/img/hero-bg.jpg") type("image/jpeg"));
  background-size: cover; background-position: center right; background-repeat: no-repeat; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--cyan); }
.hero p.lead, .hero .hero-note { color: var(--on-dark-muted); }
.hero a:not(.btn) { color: var(--cyan); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; }
.hero .placeholder-box { border-color: rgba(137, 241, 255, .8); background: rgba(8, 15, 35, .55); color: var(--on-dark-muted); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); aspect-ratio: 16 / 10; min-height: 0; }
@media (max-width: 900px) {
  .hero { background-image: linear-gradient(180deg, rgba(8, 15, 35, .72), rgba(8, 15, 35, .5)), url("/static/img/hero-bg.jpg");
    background-image: linear-gradient(180deg, rgba(8, 15, 35, .72), rgba(8, 15, 35, .5)), image-set(url("/static/img/hero-bg.webp") type("image/webp"), url("/static/img/hero-bg.jpg") type("image/jpeg")); }
}
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.breadcrumb { font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Grids and cards */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-top: .25rem; }
a.card { color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; display: block; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(8,15,35,.12); }
.card .more { color: var(--brand); font-weight: 600; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E3F9FC; color: var(--brand-dark); font-weight: 800; font-size: 1.1rem; }
.module-icon { display: block; width: 48px; height: 48px; border-radius: 12px; }
/* Segment artwork (1200x800, 3:2). object-fit keeps any slot with another ratio cropped, not stretched. */
.segment-figure { display: block; margin: 0; }
.segment-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--teal-mid); box-shadow: var(--shadow); }
.card-media { display: block; margin: -1.5rem -1.5rem 1.25rem; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.card-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--teal-mid); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.strip { background: var(--dark-gradient); color: var(--on-dark); border-radius: var(--radius); padding: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.strip h2 { color: #fff; }
.strip p { color: var(--on-dark-muted); margin: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; }
.steps.grid-3, .steps.grid-4 { display: grid; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1.25rem 4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 1.25rem; top: 1.15rem; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--teal); color: var(--cyan); display: grid; place-items: center; font-weight: 700; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .9rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--bg-soft); font-size: .9rem; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
td.us { background: #EAFBFD; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: .5rem 0 1rem; }
.price-card .btn { margin-top: auto; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .95rem; display: block; margin-bottom: .3rem; }
.optional { color: var(--muted); font-weight: 400; }
input, select, textarea { width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid #B8C7CE; border-radius: 10px; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }
.form-success { border: 1px solid #a7e3cf; background: #f0fbf7; border-radius: var(--radius); padding: 1.5rem; }
.field-error { color: #b42318; font-size: .85rem; margin-top: .25rem; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.25rem; background: #fff; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; }

/* CTA band */
.cta-band { background: var(--dark-gradient); color: var(--on-dark); }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); margin: 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--dark-gradient); color: var(--on-dark-muted); padding: 3.5rem 0 1.5rem; border-top: 1px solid rgba(137, 241, 255, .12); }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); text-decoration: underline; }
.site-footer .brand { color: #fff; }
.site-footer .muted { color: #A9BCC6; max-width: 32ch; margin-top: .75rem; } /* 7.0:1 on #0D323B */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer-h { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.tag { display: inline-block; background: #E3F9FC; color: var(--brand-dark); border-radius: 999px; padding: .15rem .7rem; font-size: .8rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero-note { margin-top: .9rem; font-size: .95rem; color: var(--muted); }
.site-nav .btn-primary { color: var(--on-cyan); }
.price-card.featured { border: 2px solid var(--brand); box-shadow: 0 0 0 4px rgba(137, 241, 255, .35), var(--shadow); }

/* Web app additions */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.site-header form { margin: 0; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--bg-soft); }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
.brand { font-weight: 800; }

/* Accounts (step 2) */
.auth-card { max-width: 480px; margin-inline: auto; }
.auth-card-wide { max-width: 640px; }
.auth-card .btn-lg { margin-top: .25rem; }
.auth-links { margin: 1rem 0 0; font-size: .95rem; text-align: center; }
.form-control, .form-select { border-color: #B8C7CE; border-radius: 10px; padding: .7rem .8rem; }
.form-control.is-invalid, .form-select.is-invalid { border-color: #b42318; }
.form-text { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.form-check { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .55rem; padding-left: 0; }
.form-check .form-check-input { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; margin: .2rem 0 0; padding: 0; float: none; }
.form-check .form-check-label { font-weight: 500; margin: 0; flex: 1; }
.form-check .form-text, .form-check .field-error { flex-basis: 100%; margin-left: 1.7rem; margin-top: 0; }
.alert { border-radius: 10px; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.verify-banner form { margin: 0; }
.account-grid > * + * { margin-top: 1.5rem; }
.account-details { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1rem; }
.account-details dt { color: var(--muted); font-weight: 600; }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
.tag-ok { background: #e3f7ee; color: #0f6b47; }
.tag-warn { background: #fff3bf; color: #7a5b00; }
.activation-code { border-style: dashed; }
.activation-code-value code { font-size: 1.35rem; letter-spacing: .08em; color: var(--ink); background: var(--bg-soft); padding: .3rem .6rem; border-radius: 8px; }
.checksum { overflow-wrap: anywhere; font-size: .85rem; }
.price-card .price.price-soon { font-size: 1.35rem; }
.plan-name { margin-top: .6rem; }
.pt-0 { padding-top: 0; }
/* Google sign-in button, per Google's branding guidelines (light theme). */
.google-form { margin: 0; }
.gsi-button { display: flex; align-items: center; justify-content: center; gap: .75rem; width: 100%; min-height: 44px; padding: 0 12px; background: #fff; color: #1f1f1f; border: 1px solid #747775; border-radius: 10px; font: 500 15px/1 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.gsi-button:hover { background: #f8f9fa; box-shadow: 0 1px 2px rgba(60,64,67,.3); }
.gsi-button img { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.plan-tags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.plan-name { font-weight: 800; }
.card .h4, .card .h5 { font-weight: 700; }
.header-actions form .btn { font-weight: 500; font-size: .95rem; font-family: inherit; }

/* Billing credits (story 4.4) */
.billing-credits .credit-policy { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.billing-credits .credit-policy li { margin-bottom: .25rem; }
.billing-credits td.price-soon { color: var(--muted); font-weight: 600; }
.credits-note { margin-top: 1rem; font-weight: 600; }
.small { font-size: .85rem; }
.plan-detail h2 { font-size: 1.35rem; margin-top: 1.5rem; }
.plan-detail h2:first-child { margin-top: 0; }

/* Admin area (story 4.3) */
.admin-hero { padding-block: 2rem 1.5rem; }
.admin-nav { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.admin-nav a { padding: .6rem .9rem; color: var(--muted); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.admin-nav a:hover { color: var(--ink); }
.admin-nav a[aria-current="page"] { color: var(--brand-dark); border-bottom-color: var(--brand); }
.admin h2.h4 { margin-top: 2rem; font-weight: 700; }
.admin h2.h4:first-of-type { margin-top: 0; }
.admin-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; }
.admin-section-head h2.h4 { margin: 0; }
.admin-table th, .admin-table td { padding: .7rem .9rem; font-size: .95rem; vertical-align: middle; }
.admin-table tbody th { font-weight: 600; }
.admin-table code { font-size: .85rem; }
.admin-empty { padding: 1.25rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); background: var(--bg-soft); }
.admin-form { max-width: 760px; }
.admin-form fieldset { border: 0; padding: 0; margin: 0; }
.admin-form legend { font-weight: 700; margin-bottom: .5rem; }
.admin-form h2.h5 { font-weight: 700; margin-top: 1.25rem; }
.admin-form h2.h5:first-of-type { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-items: start; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.admin-check { padding-top: 2rem; }
.form-grid .admin-check { padding-top: 2.1rem; }
.admin-form > .admin-check { padding-top: 0; }
.admin-search { max-width: 520px; margin-bottom: 1.25rem; }
.admin-search-row { display: flex; gap: .5rem; }
.admin-pager { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.admin-stats .card { font-size: 1.05rem; }
.admin-stats .stat { font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.audit-json { white-space: pre-wrap; word-break: break-word; font-size: .8rem; display: block; max-width: 28rem; }
.admin-message { white-space: pre-wrap; max-width: 24rem; }
section:has(> .container.admin) { padding-top: 1.75rem; }
.admin-form > .btn { align-self: flex-start; }

/* Step 4: checkout, orders, account and admin queues */
.plan-details-link { align-self: center; margin-top: .75rem; font-size: .95rem; font-weight: 600; }
.num { text-align: right; white-space: nowrap; }
.order-table, .orders-table { width: 100%; }
.order-table tfoot th, .order-table tfoot td { font-weight: 400; }
.order-table tfoot tr.total th, .order-table tfoot tr.total td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.orders-table th, .orders-table td { padding: .65rem .85rem; font-size: .95rem; }
.tag-bad { background: #fde8e8; color: #9b1c1c; }
.checkout { max-width: 760px; }
.checkout .card > h2 { margin-bottom: 1rem; }
.checkout-form { margin-top: 1.5rem; }
.test-pay-hero { background: repeating-linear-gradient(135deg, #fff8e1, #fff8e1 18px, #fff3cd 18px, #fff3cd 36px); }
.test-pay-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.delivery + .delivery { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.delivery .account-details { margin-bottom: 0; }
.plan-current { font-size: 1.6rem; font-weight: 800; margin: 0 0 .75rem; }
.plan-history { margin-top: .5rem; font-size: .95rem; }
.plan-history ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.receipt-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.receipt-meta { margin: 0; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.admin-filters .admin-check { margin-bottom: .45rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }
.admin-tabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); background: #fff; }
.admin-tabs a[aria-current="page"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.row-attention { background: #fff8e1; }
.inline-form { display: flex; gap: .5rem; align-items: center; min-width: 280px; }
@media print {
  .site-header, .site-footer, .preview-bar, .no-print, .skip-link, .cta-band { display: none !important; }
  body { background: #fff; }
  .receipt { box-shadow: none; border: 0; padding: 0; }
  section { padding: 0 !important; }
  .tbd { background: none; }
}
.card .table-wrap + * { margin-top: 1rem; }
.receipt h2, .receipt h3 { font-weight: 700; }
.order-no a { white-space: nowrap; }
.orders-table th[scope="row"] .small { font-weight: 400; }

/* Bootstrap form controls in the brand palette (focus ring and checked state). */
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(13, 110, 126, .25); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
code { color: var(--brand-dark); }

/* Download page: the button sits right of the file name */
.release-file-head { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .75rem; }
.release-file-name { overflow-wrap: anywhere; }

/* Upload progress bar (admin release forms; static/js/upload.js) */
.upload-progress { margin: 1rem 0; }
.upload-track { height: .9rem; background: var(--line); border-radius: 999px; overflow: hidden; }
.upload-bar { height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width .15s linear; }
.upload-failed .upload-bar { background: #b91c1c; }
.upload-failed .upload-status { color: #b91c1c; }

/* Alerts in the brand palette (text 7:1 or more on each background). */
.alert-success { background: #E6F6F2; border-color: #A7DCCF; color: #0B4A3C; }
.alert-danger { background: #FDECEC; border-color: #F3B7B7; color: #7F1D1D; }
.alert-warning { background: #FFF6DB; border-color: #F2D98A; color: #5C4300; }
.alert a { color: inherit; font-weight: 600; }
.btn-sm.btn-primary { border-width: 1px; }

/* Approved illustrations and feature icons (Creatives, 2026-10). Decorative only. */
.page-hero .page-illus { float: right; width: 220px; margin: -1rem 0 1rem 2rem; }
.page-hero .page-illus img { display: block; width: 100%; height: auto; }
.page-hero::after { content: ""; display: table; clear: both; }
@media (max-width: 760px) { .page-hero .page-illus { display: none; } }
.empty-illus { display: block; width: 220px; margin: 0 0 .75rem; }
.empty-illus img { display: block; width: 100%; height: auto; }
.feature-icon { display: block; width: 40px; height: 40px; margin-bottom: .75rem; }
/* Headings in Montserrat (vendored, OFL). */
h1, h2, h3, .h4, .h5, .brand, .plan-name, .footer-h { font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2 { font-weight: 800; }
h3, .h4, .h5 { font-weight: 700; }
/* Site name "Specz" as a type wordmark (brand check, 2026-10). Ink on light, cyan on dark. */
.brand { font-family: Montserrat, system-ui, sans-serif; font-weight: 800; letter-spacing: -.01em; font-size: 1.3rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.site-footer .brand, .site-footer .brand:hover, .on-dark .brand { color: var(--cyan); text-decoration: none; }

/* Home hero dashboard screenshot */
.hero-shot{display:block}
.hero-shot img{display:block;width:100%;height:auto;border-radius:12px;box-shadow:0 20px 50px rgba(0,0,0,.35)}
/* Two plans plus the billing add-on (plan model 2026-10-14). */
.plan-cards.grid-2 { max-width: none; }
.addon-strip { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding: 1rem 1.25rem; border: 1px dashed #9FC3CB; border-radius: 12px; background: rgba(137,241,255,.06); }
.addon-strip .addon-icon { flex: 0 0 40px; }
.addon-strip .addon-body { flex: 1 1 auto; }
.addon-strip .addon-title { font-size: 1.1rem; margin: 0 0 .25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.addon-strip .btn { flex: 0 0 auto; }
@media (max-width: 640px) { .addon-strip { flex-direction: column; align-items: flex-start; } }
section.faq-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.faq { text-align: left; }
.faq h2 { margin-bottom: 1rem; }
.faq details { max-width: none; }
.plan-account-note { margin: .75rem 0 0; text-align: center; }
.hero-free { color: var(--on-dark); }
.hero-free strong { color: var(--cyan); }
.addon-strip p { margin: 0; }
/* Pricing layout (designer, 2026-10-14): Free on the left, the three Business tiers to its right
   under one shared "Business" label, the middle tier highlighted; the Billing strip runs full
   width below all four. Mobile stacks Free, the Business label, then the tiers. */
.plan-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.25rem; align-items: stretch; }
.plan-free { display: flex; flex-direction: column; padding-top: 3.75rem; }
.plan-free > .price-card { flex: 1 1 auto; }
.plan-business { display: flex; flex-direction: column; min-width: 0; }
.plan-group-label { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; background: var(--dark-gradient); color: var(--on-dark); border-radius: 12px; padding: .7rem 1.1rem; margin-bottom: .75rem; font-family: Montserrat, system-ui, sans-serif; }
.plan-group-label > span:first-child { color: var(--cyan); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.plan-group-note { color: var(--on-dark-muted); font-size: .85rem; font-weight: 500; }
.plan-business-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; flex: 1 1 auto; }
.price-card .price-note { margin: -.85rem 0 1rem; color: var(--muted); font-size: .9rem; }
.price-card .plan-name, .price-card .price { font-family: Montserrat, system-ui, sans-serif; }
.price-card.featured { border: 2px solid var(--cyan); box-shadow: 0 0 0 4px rgba(137, 241, 255, .35), var(--shadow); }
.plan-layout + .addon-strip { margin-top: 1.5rem; }
@media (max-width: 1100px) { .plan-layout { grid-template-columns: 1fr; } .plan-free { padding-top: 0; } }
@media (max-width: 760px) { .plan-business-cards { grid-template-columns: 1fr; } }
/* Follow-up (2026-10-14): card titles and prices line up across Free and the Business tiers; every
   card stretches to the row height with its button pushed to the bottom. */
.plan-layout .price-card { display: flex; flex-direction: column; height: 100%; }
.plan-layout .price-card .plan-tags { min-height: 1.75rem; margin-bottom: .25rem; }
.plan-layout .price-card .plan-name { min-height: 2.5rem; margin-bottom: 0; }
.plan-layout .price-card .price { min-height: 3rem; }
.plan-layout .price-card .btn { margin-top: auto; }
.plan-free { height: 100%; }
.plan-business-cards > .price-card { height: 100%; }
@media (max-width: 1100px) { .plan-layout .price-card .plan-tags:empty { display: none; } }
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-wrap .compare-table { min-width: 720px; width: 100%; }
/* The line under each button (account note on Free, "See details" on the tiers) gets the same
   height so the buttons line up too. */
.plan-layout .price-card .plan-account-note, .plan-layout .price-card .plan-details-link { display: block; min-height: 2.9rem; margin: .6rem 0 0; text-align: center; }
/* Card tags ("All features included" on Free, "Most popular" on Business Pro): the same cyan
   pill with dark text, in the same top-left spot. */
.price-card .plan-tags .tag { background: var(--cyan); color: var(--on-cyan); }
.plan-upgrades { border-top: 1px solid var(--line); padding-top: .75rem; margin: .5rem 0 1rem; }
.upgrade-note { color: var(--muted); font-size: .9rem; }
/* Product content (2026-10-14): feature grid and list, hardware table, open-source section. */
.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.feature-item { display: flex; align-items: center; gap: .75rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; font-weight: 600; }
.feature-item .feature-icon, .feature-list .feature-icon { flex: 0 0 auto; }
@media (max-width: 1000px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.feature-list li { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; break-inside: avoid; }
@media (max-width: 700px) { .feature-list { columns: 1; } }
.hw-wrap { overflow-x: auto; }
.hw-table { min-width: 560px; width: 100%; }
.open-source { display: flex; gap: 1.25rem; align-items: flex-start; }
.open-source h2 { margin-top: 0; }
.open-source-list { columns: 2; column-gap: 2rem; }
@media (max-width: 620px) { .open-source-list { columns: 1; } }
.section-icon { display: block; margin-bottom: .75rem; }
.plan-tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.tag-link { font-size: .8rem; font-weight: 600; color: #0D323B; text-decoration: underline; text-underline-offset: 2px; }
.tag-link:hover, .tag-link:focus { color: #080F23; }
/* Base OS line and footer trademark notice (2026-10-14). External links get a small arrow. */
.powered-by { font-weight: 600; }
.footer-trademark { padding-top: .5rem; color: inherit; opacity: .8; }
a.external::after { content: " \2197"; }

.sub .sub-soon{display:flex;align-items:center;gap:.5rem;padding:.45rem 1rem;color:var(--muted,#8a94a6);cursor:default;white-space:nowrap}
.tag-soon{font-size:.7rem}

/* Docs guides */
.prose .doc-shot { margin: 1rem 0 1.5rem; }
.prose .doc-shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.prose .card { margin: 1.5rem 0; }

.ftth-shots{display:grid;gap:1rem}
.ftth-shots img{width:100%;height:auto;border-radius:8px;border:1px solid var(--border,#dfe3ea);box-shadow:0 4px 16px rgba(0,0,0,.08)}
/* Billing add-on: features and credit packs */
.addon-strip.addon-billing { align-items: flex-start; }
.addon-strip.addon-billing p.muted { margin-bottom: .5rem; }
.addon-features { margin: 0 0 1rem; padding-left: 1.2rem; }
.addon-features li { margin-bottom: .2rem; font-weight: 600; }
.addon-packs { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: .75rem; }
.addon-pack { flex: 1 1 160px; padding: .75rem 1rem; border: 1px solid #9FC3CB; border-radius: 10px; background: #fff; }
.addon-pack-price { font-size: 1.4rem; font-weight: 700; }
.addon-pack-credits { margin-bottom: .5rem; color: var(--muted); }

/* Free welcome credits banner (/product/billing/) and ribbon (pricing). Text on the dark
   gradient uses --on-dark (13.7:1+); the badge is --on-cyan on --cyan (14.6:1). */
.welcome-banner { padding: 2.5rem 0; background: radial-gradient(120% 140% at 100% 0%, rgba(137, 241, 255, .22) 0%, rgba(137, 241, 255, 0) 55%), var(--dark-gradient); color: var(--on-dark); }
.welcome-banner-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid rgba(137, 241, 255, .35); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(8, 15, 35, .35); }
.welcome-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--cyan); color: var(--on-cyan); font-weight: 800; font-size: .8rem; letter-spacing: .08em; vertical-align: middle; }
.welcome-banner-title { margin: .75rem 0 .25rem; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; font-weight: 800; color: var(--on-dark); }
.welcome-banner-sub { margin: 0 0 .75rem; font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; color: var(--cyan); }
.welcome-banner-note { max-width: 58ch; color: var(--on-dark-muted); }
.welcome-banner .btn-cyan { background: var(--cyan); border-color: var(--cyan); color: var(--on-cyan); font-weight: 700; }
.welcome-banner .btn-cyan:hover, .welcome-banner .btn-cyan:focus-visible { background: var(--cyan-hover); border-color: var(--cyan-hover); color: var(--on-cyan); }
.welcome-banner .btn-outline-light { color: var(--on-dark); border-color: rgba(255, 255, 255, .7); }
.welcome-banner a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.welcome-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.welcome-steps li { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: var(--on-dark-muted); }
.welcome-steps strong { color: var(--on-dark); }
.welcome-step-num { flex: 0 0 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: var(--on-cyan); font-weight: 800; }
@media (max-width: 860px) { .welcome-banner-inner { grid-template-columns: 1fr; } }
.welcome-ribbon { display: inline-block; margin: .25rem 0 0; padding: .4rem .9rem; border-radius: 999px; background: #E6FBFE; border: 1px solid #9FE6F0; color: var(--ink); font-weight: 600; }
.welcome-breadcrumb { margin-bottom: 1rem; color: var(--on-dark-muted); }
.welcome-breadcrumb a { color: var(--cyan); }
.welcome-eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-muted); vertical-align: middle; margin-right: .4rem; }
.page-hero-compact { padding: 1.75rem 0 1.25rem; }
.page-hero-compact h1 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); margin: .25rem 0; }
.page-hero-compact p { margin: 0; font-size: 1rem; }

/* Documentation (/docs/): sidebar with a nested table of contents and search, content,
   on-page section list. Under 992px the sidebar becomes a drawer opened by "Docs menu". */
.docs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 220px; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 68px); }
.docs-layout:not(:has(.docs-onpage)) { grid-template-columns: 280px minmax(0, 1fr); }
.docs-sidebar { background: var(--bg-soft); border-right: 1px solid var(--line); padding: 1.25rem 1rem 2rem; position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; }
.docs-main { padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 3rem; min-width: 0; }
.docs-article { max-width: 820px; }
.docs-article h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.docs-article > p:first-of-type { font-size: 1.1rem; color: var(--muted); }
.docs-article h2 { margin-top: 2.5rem; padding-top: .5rem; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.docs-article h3 { margin-top: 1.75rem; scroll-margin-top: 84px; }
.heading-anchor { margin-left: .4rem; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .heading-anchor, h3:hover .heading-anchor, .heading-anchor:focus { opacity: 1; }
.docs-article ol > li, .docs-article ul > li { margin-bottom: .4rem; }
.docs-article pre { background: var(--navy); color: #E8F4F7; padding: 1rem 1.1rem; border-radius: 10px; overflow-x: auto; font-size: .9rem; }
.docs-article :not(pre) > code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .05rem .35rem; color: var(--ink); font-size: .9em; }
.doc-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .95rem; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: .5rem .7rem; vertical-align: top; }
.doc-table thead th { background: var(--bg-soft); }
.admonition { border: 1px solid var(--line); border-left: 5px solid var(--brand); border-radius: 10px; background: #EEF9FB; padding: .9rem 1.1rem; margin: 1.25rem 0 1.5rem; }
.admonition > :last-child { margin-bottom: 0; }
.admonition-title { font-weight: 700; margin-bottom: .35rem; }
.admonition-warning { border-left-color: #B45309; background: #FFF7E8; }
.admonition-warning .admonition-title { color: #7C3A06; }
.docs-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; }
.docs-crumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--muted); }
.docs-crumbs [aria-current] { color: var(--ink); }
.docs-toc ul { list-style: none; margin: 0; padding: 0; }
.docs-toc ul ul { padding-left: .9rem; border-left: 1px solid var(--line); margin: .15rem 0 .35rem .55rem; }
.docs-toc a { display: block; padding: .3rem .55rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.docs-toc a:hover { background: #E3EEF2; }
.docs-toc a[aria-current="page"] { background: #fff; color: var(--brand-dark); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
.docs-toc .docs-toc-section { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); margin-top: 1rem; }
.docs-toc .docs-toc-headings a { font-size: .88rem; color: var(--muted); padding: .2rem .55rem; }
.docs-search { position: relative; margin-bottom: 1rem; }
.docs-search-results { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .35rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); max-height: 60vh; overflow-y: auto; }
.docs-search-results a { display: block; padding: .4rem .55rem; border-radius: 6px; text-decoration: none; color: var(--ink); }
.docs-search-results a:hover, .docs-search-results a:focus, .docs-search-results a.is-active { background: var(--bg-soft); outline: none; }
.docs-search-results .muted { display: block; font-size: .8rem; }
.docs-search-results .empty { padding: .4rem .55rem; color: var(--muted); }
.docs-onpage { padding: 1.5rem 1rem; position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; font-size: .9rem; }
.docs-onpage-h { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; color: var(--muted); margin-bottom: .5rem; }
.docs-onpage ul, .docs-onpage-mobile ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.docs-onpage a, .docs-onpage-mobile a { display: block; padding: .25rem .75rem; color: var(--muted); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.docs-onpage a:hover, .docs-onpage a.is-active { color: var(--brand-dark); border-left-color: var(--brand); }
.docs-onpage .lvl-3 a { padding-left: 1.5rem; }
.docs-onpage-mobile { display: none; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .9rem; margin-bottom: 1.25rem; background: var(--bg-soft); }
.docs-onpage-mobile summary { font-weight: 600; cursor: pointer; }
.docs-onpage-mobile ul { margin-top: .5rem; }
.docs-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 820px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.docs-pager a { display: flex; flex-direction: column; gap: .15rem; border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; text-decoration: none; font-weight: 600; }
.docs-pager a:hover { border-color: var(--brand); }
.docs-pager-next { text-align: right; grid-column: 2; }
.docs-mobilebar { display: none; }
@media (max-width: 1199.98px) {
  .docs-layout, .docs-layout:not(:has(.docs-onpage)) { grid-template-columns: 260px minmax(0, 1fr); }
  .docs-onpage { display: none; }
  .docs-onpage-mobile { display: block; }
}
@media (max-width: 991.98px) {
  .docs-layout, .docs-layout:not(:has(.docs-onpage)) { display: block; }
  .docs-sidebar { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .docs-mobilebar { display: flex; align-items: center; gap: .75rem; position: sticky; top: 68px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); padding: .6rem 1.25rem; }
  .docs-mobilebar-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .docs-layout.js .docs-sidebar { display: none; }
  .docs-layout.js.menu-open .docs-sidebar { display: block; position: fixed; z-index: 45; top: calc(68px + 53px); left: 0; bottom: 0; width: min(320px, 88vw); overflow-y: auto; box-shadow: var(--shadow); border-right: 1px solid var(--line); }
  .docs-main { padding-top: 1.1rem; }
}
@media (max-width: 575.98px) {
  .docs-pager { grid-template-columns: 1fr; }
  .docs-pager-next { grid-column: 1; }
}

/* Admin docs editor: Markdown and preview side by side on wide screens. */
.admin-wide { max-width: 1400px; }
.doc-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.doc-editor-text { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; min-height: 36rem; }
.doc-preview { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.25rem; min-height: 36rem; max-height: 48rem; overflow-y: auto; background: #fff; max-width: none; }
.doc-preview h1 { font-size: 1.8rem; }
.doc-media-thumb { border: 1px solid var(--line); border-radius: 6px; }
@media (max-width: 991.98px) { .doc-editor { grid-template-columns: 1fr; } }

/* Bank transfer by QR code (release 18) */
.qr-pay-grid { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; }
@media (max-width: 700px) { .qr-pay-grid { grid-template-columns: 1fr; } }
.qr-image { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; }
.qr-facts { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin-bottom: 1rem; }
.qr-facts dt { color: var(--muted); font-weight: 500; }
.qr-facts dd { margin: 0; }
.qr-amount { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.qr-ref { font-size: 1.1rem; }
.qr-steps { padding-left: 1.2rem; }
.qr-instructions { white-space: pre-line; }
.pay-methods .form-check { margin-bottom: .6rem; }
.php-input { max-width: 220px; }

/* Admin KPIs (release 19) */
.kpi-table th[scope="row"] { white-space: nowrap; }
.kpi-table td, .kpi-table thead th { white-space: nowrap; }
.kpi-sub th[scope="row"] { padding-left: 1.6rem; font-weight: 500; color: var(--muted); }
.kpi-now { background: #E3F9FC; }
