/* Shared, restrained interface for the public helpdesk and staff workspace. */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --green: #0066cc;
  --green-dark: #0055ad;
  --mint: #eaf2fc;
  --line: #e5e5ea;
  --canvas: #f5f5f7;
  --radius: 14px;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
h1 { font-weight: 650; letter-spacing: -.9px; }
h2, h3 { font-weight: 600; }
.button { border-color: #dcdce2; border-radius: 10px; font-size: 13px; padding: 10px 17px; min-height: 42px; font-weight: 550; }
.button.primary { box-shadow: none; }
.button:hover { background: #f0f0f4; border-color: #c5c5cc; }
.button.small { font-size: 12px; min-height: 36px; }
.button:active { transform: translateY(1px); }
.text-link { font-size: 13px; font-weight: 500; }
.brand { gap: 11px; letter-spacing: -.4px; font-size: 18px; font-weight: 650; }
.brand-emblem { flex: none; object-fit: contain; }
.brand small { color: var(--muted); text-transform: none; font-size: 10px; letter-spacing: 0; font-weight: 400; margin-top: 5px; }
.sidebar { background: #f9f9fb; padding-top: 27px; }
.sidebar .brand { margin-bottom: 32px; }
.nav-item { color: #545459; padding: 10px 14px; font-size: 13px; border-radius: 8px; }
.nav-item.active { background: #e8edf5; color: #1d426d; font-weight: 600; }
.nav-item:hover { background: #ececf1; color: var(--ink); }
.nav-label { color: #8e8e93; font-size: 10px; letter-spacing: .6px; margin-top: 28px; }
.profile { font-weight: 500; }
.avatar { background: #e6e8ed; color: #555e6c; }
.topbar { background: #fafafccc; backdrop-filter: blur(18px); font-weight: 500; font-size: 13px; height: 70px; }
.footer { color: #8e8e93; font-size: 11px; padding-top: 22px; }
.eyebrow, .overline { color: #6e6e73; font-size: 12px; letter-spacing: .1px; font-weight: 500; text-transform: none; }
.page-heading h1 { font-size: 30px; }
.page-heading p { font-size: 13px; }
.panel, .stat, .filters { border-color: #e8e8ed; box-shadow: 0 2px 7px #1d1d1f03; }
.stat-label { color: #6e6e73; font-size: 12px; }
.stat-number { font-weight: 600; color: #1d1d1f; }
.stat p { color: #86868b; font-size: 11px; }
.filters { background: #fff; gap: 13px; }
.filters label { font-size: 11px; color: #737379; }
.filters input, .filters select { font-size: 12px; height: 39px; }
.filters .input-icon input { padding-left: 11px; }
input:not([type=checkbox]), select, textarea { border-color: #dcdce2; border-radius: 9px; }
input::placeholder, textarea::placeholder { color: #94949b; }
input:focus, select:focus, textarea:focus { border-color: #4b91df; box-shadow: 0 0 0 3px #007aff18; }
input[type=file]::file-selector-button { background: #eef1f6; color: #394d68; }
.bar-track { background: #f0f1f5; }
.bar-track>div { background: #8da9d1; }
.bar-row:first-child .bar-track>div { background: #467cbc; }
.bar-row { font-size: 12px; }
.column-track { background: #f1f3f7; }
.column-track>div { background: #a6bad7; }
.chart-column:last-child .column-track>div { background: #467cbc; }
.legend, .chart-column>span { color: #7b7b83; }
.category-strip { background: transparent; border-color: var(--line); }
.category-strip>div { color: #6e6e73; }
.category-strip>div+div { border-color: var(--line); }
.kind-dot.request { background: #668dbd; }
.kind-dot.maintenance { background: #8a91a2; }
.kind-dot.security { background: #ad7d87; }
.kind-dot.incident { background: #c19c63; }
.badge { font-weight: 500; }
.badge.archived, .badge.unknown { background: #f0f0f3; color: #74747b; }
.badge.new, .badge.pending, .badge.in_progress { background: #ebf2fc; color: #3567a3; }
.subtle-tag { color: #777781; background: #f2f2f7; }
thead { background: #fafafc; }
th { color: #74747b; font-size: 11px; }
td { border-color: #f0f0f4; }
tbody tr:hover { background: #fafafc; }
.info-strip, .notice { background: #f0f3f8; border-color: #e2e7ef; color: #536173; }
.info-strip strong { color: #536173; font-weight: 500; }
.info-strip p { color: #7b8390; }
.notice.success { background: #edf6f0; color: #316346; }
.notice.error { background: #fff0ed; color: #963f31; border-color: #edd2cb; }
.tabs { background: #eaeaef; }
.tabs a { color: #73737a; }
.tabs .active { color: #1d1d1f; box-shadow: 0 1px 4px #0000000c; }
.prose-panel p { color: #6e6e73; }
.steps-list li:before, .step-number { background: #edf1f6; color: #5c6d82; }
.stage-card { background: #fafafc; }
.stage-card.current { border-color: #9eb7da; background: #f1f6fc; }
.stage-card.done { background: #f5f7fa; }
.stage-index, .current .stage-index, .done .stage-index { background: #e8edf5; color: #5c7190; }
.timeline-dot { background: #91a4c1; border-color: #edf1f6; }
.timeline-item:before { border-color: #e1e5ec; }
.auth-card { box-shadow: 0 6px 30px #1d1d1f05; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-wrap { margin-top: 45px; }
.readable { margin-left: auto; margin-right: auto; }
.skip { border-radius: 9px; }
:focus-visible { outline-color: #78aeea; }

/* Public entry point: support first, with a secondary service scope page. */
.public-shell { background: #f5f5f7; }
.public-shell .workspace { margin-left: 0; }
.public-header { max-width: 1180px; margin: 0 auto; min-height: 94px; padding: 20px 38px; display: flex; align-items: center; gap: 32px; }
.public-header .brand { margin: 0; font-size: 20px; }
.public-header .brand small { font-size: 11px; }
.public-header>.button { margin-left: 0; }
.public-nav { display: flex; gap: 26px; align-items: center; margin-left: auto; }
.public-nav a { font-size: 12px; color: #6e6e73; white-space: nowrap; }
.public-nav a[aria-current=page] { color: #1d1d1f; font-weight: 600; }
.public-nav a:hover { color: #0066cc; }
.public-shell main { max-width: 1180px; padding: 42px 38px 50px; min-height: calc(100vh - 170px); }
.public-shell .footer { max-width: 1104px; margin: 0 auto; padding: 22px 0; }
.support-hero { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 75px; align-items: center; padding: 25px 0 58px; }
.support-intro .overline { margin: 0 0 21px; font-size: 13px; }
.support-intro h1 { font-size: 46px; letter-spacing: -1.6px; line-height: 1.15; font-weight: 650; margin: 0 0 23px; }
.support-intro>p:not(.overline) { font-size: 16px; color: #6e6e73; line-height: 1.7; max-width: 540px; margin-bottom: 0; }
.support-intro .hero-actions { margin-top: 29px; gap: 12px; }
.support-intro .button { padding: 12px 23px; font-size: 14px; min-height: 46px; }
.support-intro>small { display: block; margin-top: 14px; color: #86868b; font-size: 11px; }
.support-context { background: #fff; border: 1px solid #e8e8ed; border-radius: 19px; padding: 29px; box-shadow: 0 4px 16px #1d1d1f03; }
.support-context h2 { font-size: 19px; line-height: 1.4; letter-spacing: -.35px; margin-bottom: 11px; max-width: 270px; }
.support-context p { font-size: 13px; color: #6e6e73; line-height: 1.75; }
.support-context h3 { font-size: 13px; margin-bottom: 8px; }
.support-context small { font-size: 11px; color: #86868b; }
.context-divider { border-top: 1px solid #ededf0; margin: 23px 0; }
.public-ticket-stats { border-top: 1px solid #dedee4; padding: 28px 0 30px; }
.ticket-stats-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.ticket-stats-heading h2 { font-size: 17px; margin: 0; }
.ticket-stats-heading p { font-size: 12px; color: var(--muted); margin: 0; }
.ticket-stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 0 0 15px; }
.ticket-stats-grid>div { background: #fff; border: 1px solid #e8e8ed; border-radius: 14px; padding: 20px 23px; }
.ticket-stats-grid dt { font-size: 12px; color: var(--muted); }
.ticket-stats-grid dd { font-size: 32px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; margin: 6px 0 0; overflow-wrap: anywhere; }
.ticket-stats-note, .ticket-stats-empty { font-size: 11px; color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
.support-process { border-top: 1px solid #dedee4; padding: 30px 0 33px; }
.support-process>h2 { font-size: 17px; margin-bottom: 23px; }
.support-process ol { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 32px; list-style: none; }
.support-process li { display: flex; gap: 13px; }
.support-process li>span { font-size: 13px; line-height: 25px; color: #8e8e93; }
.support-process h3 { font-size: 13px; margin: 2px 0 6px; }
.support-process p { font-size: 12px; color: #86868b; margin: 0; line-height: 1.7; }
.support-scope { border-top: 1px solid #dedee4; padding: 28px 0 5px; display: flex; gap: 35px; justify-content: space-between; align-items: center; }
.support-scope h2 { font-size: 16px; margin-bottom: 8px; }
.support-scope p { color: #6e6e73; font-size: 12px; margin-bottom: 5px; }
.support-scope small { font-size: 11px; color: #86868b; }
.support-scope .text-link { flex-shrink: 0; font-size: 12px; }
.directory-heading { margin-bottom: 30px; }
.directory-heading h1 { font-size: 35px; }
.directory-heading p { max-width: 650px; }
.support-directory { border: 1px solid #e5e5ea; background: #fff; border-radius: 15px; overflow: hidden; }
.support-service { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 24px 28px; }
.support-service+.support-service { border-top: 1px solid #ededf0; }
.support-service h2 { font-size: 16px; margin-bottom: 5px; }
.support-service p { font-size: 13px; color: #6e6e73; margin: 0; max-width: 730px; }
.support-service .button { flex-shrink: 0; }
.directory-footnote { margin-top: 24px; font-size: 12px; color: #86868b; }
.directory-footnote strong { font-weight: 500; }
@media(max-width:1100px) {
  .support-hero { gap: 40px; }
  .support-intro h1 { font-size: 40px; }
  .public-nav { gap: 18px; }
  .public-header { gap: 20px; }
}
@media(max-width:900px) {
  .support-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 10px; padding-bottom: 35px; }
  .support-context { max-width: none; }
  .support-context h2 { max-width: none; }
  .support-context .context-divider, .support-context h3, .support-context small, .support-context h3+p { display: none; }
  .public-header { flex-wrap: wrap; gap: 16px; padding-bottom: 16px; }
  .public-header>.button { margin-left: auto; }
  .public-nav { flex-basis: 100%; order: 3; margin-left: 0; padding-top: 8px; gap: 24px; }
  .support-scope { align-items: flex-start; flex-direction: column; gap: 15px; }
}
@media(max-width:760px) {
  .ticket-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .ticket-stats-grid>div { padding: 17px 18px; }
  .ticket-stats-grid dd { font-size: 29px; }
  .public-header { padding: 18px 22px 14px; gap: 12px; }
  .public-header .brand { font-size: 17px; }
  .public-header .brand small { font-size: 10px; }
  .brand-emblem { width: 30px; height: 40px; }
  .public-nav { gap: 22px; padding-top: 12px; }
  .public-nav a { font-size: 11px; }
  .public-shell main { padding: 28px 22px 35px; }
  .public-shell .footer { margin: 0 22px; gap: 7px; font-size: 10px; }
  .support-hero { gap: 30px; padding-bottom: 30px; }
  .support-intro .overline { font-size: 11px; margin-bottom: 18px; }
  .support-intro h1 { font-size: 36px; letter-spacing: -1.2px; margin-bottom: 19px; }
  .support-intro>p:not(.overline) { font-size: 14px; line-height: 1.7; }
  .support-intro .hero-actions { margin-top: 23px; }
  .support-intro .button { padding: 11px 19px; font-size: 13px; }
  .support-context { padding: 23px; border-radius: 15px; }
  .support-context h2 { font-size: 17px; }
  .support-context p { font-size: 12px; }
  .support-process { padding: 26px 0; }
  .support-process ol { grid-template-columns: 1fr; gap: 20px; }
  .support-process h3 { font-size: 13px; }
  .support-process li { gap: 14px; }
  .support-scope { padding-top: 25px; }
  .directory-heading h1 { font-size: 29px; }
  .support-service { padding: 21px; flex-wrap: wrap; gap: 15px; }
  .support-service h2 { font-size: 16px; }
  .support-service p { font-size: 12px; }
  .support-service .button { min-height: 39px; font-size: 12px; }
  .page-heading { flex-wrap: wrap; }
  .page-heading>button { font-size: 11px; padding: 8px 12px; }
  .page-heading h1 { font-size: 25px; }
  .stat p { font-size: 10px; }
  .stat-label { font-size: 11px; }
  .filters input, .filters select { font-size: 12px; }
  .topbar>span { font-size: 12px; }
  .topbar .button.small { font-size: 12px; }
  .auth-wrap { margin: 10px auto 25px; }
  .auth-card { padding: 25px 21px; }
}
@media(prefers-reduced-motion:reduce) { *, *::before, *::after { scroll-behavior: auto!important; transition: none!important; } }
@media print { .public-header { display: none; } .public-shell main { max-width: none; padding: 0; } .panel, .stat { box-shadow: none; } }
