:root {
  color-scheme: light;
  --ink: #172034;
  --muted: #536077;
  --line: #e1e6ef;
  --canvas: #f5f7fb;
  --blue: #234ad8;
  --nav: #111b31;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #5888ff; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: 1rem; transform: translateY(-200%); z-index: 2; padding: .75rem; background: white; }
.skip:focus { transform: none; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.65rem .9rem 1rem; background: var(--nav); color: white; }
.brand { display: flex; align-items: center; gap: .75rem; padding: 0 .55rem 2.7rem; text-decoration: none; color: white; font-size: 1.2rem; font-weight: 750; line-height: 1.05; }
.brand-sub { display: block; color: #b5c1d9; font-size: .85rem; font-weight: 500; margin-top: .35rem; }
.mark { display: grid; place-items: center; width: 42px; height: 42px; background: #3157ea; border-radius: .7rem; font-size: 1.25rem; font-weight: 800; }
.sidebar nav { display: grid; gap: .35rem; }
.sidebar nav a { display: flex; align-items: center; gap: .6rem; padding: .76rem .7rem; color: #cad4e8; text-decoration: none; border-radius: .55rem; font-size: .92rem; font-weight: 560; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: #253555; color: white; }
.nav-icon { display: inline-grid; place-items: center; width: 1.25rem; font-size: 1.05rem; color: #b8caff; }
.workspace { margin-top: auto; padding: 1.05rem .6rem 0; border-top: 1px solid #30405c; color: #cad4e8; font-size: .82rem; }
.workspace-dot { display: inline-block; width: 8px; height: 8px; background: #79a0ff; border-radius: 50%; margin-right: .3rem; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem, 3.3vw, 3.4rem); align-items: center; min-height: 65px; background: white; border-bottom: 1px solid var(--line); font-weight: 650; }
.topbar-team { color: var(--muted); font-size: .875rem; font-weight: 500; }
main { padding: clamp(1.35rem, 3.3vw, 3.4rem); max-width: 1580px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; margin: 0 0 1.7rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.95rem, 3.2vw, 2.75rem); font-weight: 760; letter-spacing: -.045em; line-height: 1.12; overflow-wrap: anywhere; }
h2 { font-size: 1.13rem; font-weight: 720; letter-spacing: -.016em; }
.page-heading p { color: var(--muted); margin-top: .55rem; line-height: 1.5; }
.button { border: 1px solid transparent; border-radius: .55rem; min-height: 42px; padding: .62rem .95rem; font: inherit; font-size: .9rem; font-weight: 680; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; cursor: pointer; }
.primary { background: var(--blue); color: white; }
.primary:hover { background: #1939b3; }
.secondary { border-color: #cdd5e5; background: white; color: var(--ink); }
.secondary:hover { background: #eef2ff; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin-bottom: 1.55rem; }
.metric, .panel { background: white; border: 1px solid var(--line); border-radius: .78rem; box-shadow: 0 2px 4px #14294b08; }
.metric { color: var(--muted); padding: 1.15rem; text-decoration: none; }
a.metric:hover { border-color: #aab9ea; }
.metric span { display: flex; gap: .45rem; align-items: center; font-size: .88rem; font-weight: 620; min-height: 2.2em; }
.metric strong { display: block; margin-top: .25rem; color: var(--ink); font-size: 2.05rem; letter-spacing: -.04em; line-height: 1.1; }
.panel { min-width: 0; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.25rem .95rem; gap: 1rem; }
.result-count { color: var(--muted); font-size: .875rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; padding: 0 1.25rem; border-bottom: 1px solid var(--line); }
.tabs a { padding: .68rem .05rem; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 640; border-bottom: 2px solid transparent; }
.tabs a[aria-current] { color: var(--blue); border-color: var(--blue); }
.tabs a:hover { color: var(--blue); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: 1rem 1.25rem; }
.filters .search { flex: 1 1 170px; max-width: 325px; }
.subtle-link, .back { font-size: .9rem; font-weight: 650; }
.back { display: inline-block; margin-bottom: 1rem; }
input, select, textarea { display: block; width: 100%; min-height: 42px; padding: .65rem .75rem; background: white; border: 1px solid #cdd5e5; border-radius: .5rem; font: inherit; font-size: 1rem; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #5e6b80; }
select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg, transparent 50%, #596580 50%) right 16px center / 5px 5px no-repeat, linear-gradient(135deg, #596580 50%, transparent 50%) right 11px center / 5px 5px no-repeat, white; }
textarea { resize: vertical; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #687891; }
.dot.new { background: #295ae9; }
.dot.working { background: #6d38db; }
.dot.waiting { background: #a76200; }
.dot.resolved { background: #087d59; }
.table-wrap { overflow-x: auto; border-radius: 0 0 .78rem .78rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.filters + .table-wrap table { min-width: 780px; }
.filters + .table-wrap td:nth-child(2) { min-width: 135px; }
thead { background: #f4f6fb; color: var(--muted); }
th, td { padding: .89rem .7rem; }
th:first-child, td:first-child { padding-left: 1.25rem; }
th:last-child, td:last-child { padding-right: 1.25rem; }
th { font-size: .875rem; font-weight: 680; }
td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td:first-child { min-width: 170px; }
td:nth-child(2) { max-width: 235px; }
tbody tr:hover { background: #fafbff; }
.ticket-link { color: var(--ink); font-weight: 700; }
.ticket-link:hover { color: var(--blue); }
.folio, .table-sub { display: block; margin-top: .3rem; }
.folio { color: #435476; font-size: .81rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.table-sub { font-size: .85rem; }
.state { display: inline-flex; align-items: center; gap: .38rem; font-weight: 590; white-space: nowrap; }
.state-heading { padding: .62rem .85rem; background: white; border: 1px solid var(--line); border-radius: .5rem; }
.pill { display: inline-block; padding: .28rem .5rem; border-radius: .35rem; white-space: nowrap; font-size: .875rem; font-weight: 660; }
.critical { background: #fce5ec; color: #9a1740; }
.high { background: #ffeddf; color: #953708; }
.normal { background: #e8eeff; color: #2744a0; }
.low { background: #edf0f5; color: #43536e; }
.success { background: #dff4e9; color: #14644a; }
.empty { text-align: center; padding: 3rem 1.2rem; border-top: 1px solid var(--line); }
.empty p { margin: .55rem 0 1.1rem; color: var(--muted); }
.card { padding: 1.25rem; }
.card h2 { margin-bottom: .85rem; }
.narrow { max-width: 800px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(265px, 1fr); align-items: start; gap: 1rem; }
.stack { display: grid; gap: 1rem; min-width: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card p + .form-grid { margin-top: 1rem; }
.form-grid.single { grid-template-columns: minmax(0, 1fr); }
.form-grid label { display: grid; align-content: start; gap: .4rem; font-size: .9rem; font-weight: 650; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: .55rem; flex-wrap: wrap; }
.help { font-weight: 450; }
.muted, .reporter, .help { color: var(--muted); line-height: 1.48; }
.reporter { font-size: .875rem; margin-bottom: .75rem; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.timing { margin: 0 0 .75rem; }
.timing div { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.timing dd { margin: 0; font-weight: 650; text-align: right; }
.timeline { padding-left: 1rem; margin: 0; border-left: 2px solid var(--line); list-style: none; }
.timeline li + li { margin-top: 1.1rem; }
.timeline li p { margin-top: .4rem; }
.notice { margin-bottom: .9rem; padding: .72rem .9rem; border-radius: .45rem; background: #e0f4ec; color: #0e5e46; }
.notice.error { background: #fce5ec; color: #9a1740; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1030px) {
  body { grid-template-columns: 195px minmax(0, 1fr); }
  main { padding-inline: 1.35rem; }
}
@media (max-width: 830px) {
  body { display: block; }
  .sidebar { position: static; height: auto; padding: .9rem 1.15rem; gap: .6rem; }
  .brand { padding: 0; }
  .sidebar nav { display: flex; flex-wrap: wrap; }
  .sidebar nav a { padding: .55rem .65rem; }
  .workspace { display: none; }
  .topbar { padding: .65rem 1.35rem; min-height: 48px; }
}
@media (max-width: 620px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .metric { padding: .85rem; }
  .detail-layout, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar-team { display: none; }
  main { padding-inline: 1rem; }
  .filters .search { flex-basis: 100%; max-width: none; }
}

.request-list { display: grid; gap: .7rem; list-style: none; padding: 0; margin: 0; max-width: 850px; }
.request-ticket { display: flex; justify-content: space-between; gap: .7rem 1.35rem; flex-wrap: wrap; padding: 1rem 1.2rem; overflow-wrap: anywhere; }
.request-ticket .folio { margin: 0 0 .28rem; }
.request-ticket p:last-child { margin-top: .3rem; font-size: .9rem; }
.request-meta { display: flex; align-items: flex-end; justify-content: center; flex-direction: column; gap: .4rem; font-size: .9rem; }
.metric small { display: block; margin-top: .5rem; font-size: .8rem; }
.metrics-note { margin-top: .85rem; font-size: .9rem; }
.service-table { min-width: 790px; font-variant-numeric: tabular-nums; }
.service-table tbody th { border-top: 1px solid var(--line); min-width: 180px; }
.service-table tbody th .table-sub { font-weight: 500; }
@media (max-width: 700px) {
  .request-meta { align-items: flex-start; }
}

.signed-out { display: block; background: radial-gradient(ellipse at 50% 22%, #e6eeff, var(--canvas) 64%); }
.signed-out .sidebar { display: none; }
.signed-out .shell { min-height: 100vh; }
.signed-out main { max-width: 530px; padding-top: clamp(1.5rem, 8vh, 5rem); }
.login-card { padding: clamp(1.25rem, 5vw, 2rem); }
.login-mark { background: var(--blue); color: white; margin-bottom: 1rem; }
.login-card h1 { font-size: clamp(2rem, 8vw, 2.45rem); }
.login-card p { margin-top: .45rem; }
.login-card p + .notice { margin-top: 1rem; }
.login-card button { justify-content: center; margin-top: .2rem; }
.account-bar { display: flex; align-items: center; gap: .75rem; }
.account-label { display: grid; text-align: right; font-size: .84rem; overflow-wrap: anywhere; }
.account-label span { color: var(--muted); font-weight: 500; }
@media (max-width: 480px) {
  .topbar:has(.account-bar) { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .account-bar { align-self: stretch; justify-content: space-between; }
  .account-label { text-align: left; }
}
