:root { color: #1b2838; background: #f1f5f9; font: 16px system-ui,sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1rem max(1rem, calc((100vw - 1100px)/2)); background: #122840; color: white; font-weight: 650; }
header a { color: inherit; text-decoration: none; }
main { max-width: 1132px; margin: 2rem auto; padding: 0 1rem; }
.layout { display: grid; grid-template-columns: minmax(160px, 235px) 1fr; gap: 1rem; align-items: start; }
.card { background: white; border: 1px solid #dbe4ee; border-radius: 12px; padding: 1.35rem; }
.login { max-width: 420px; margin: auto; }
h1 { margin: 0 0 1rem; font-size: 1.65rem; }
h2 { font-size: 1.05rem; margin: 1.5rem 0 .65rem; }
nav h2 { margin-top: 0; }
nav a { display: block; padding: .6rem; border-radius: 6px; overflow-wrap: anywhere; }
nav a[aria-current] { background: #e5efff; }
small { display: block; color: #516579; }
a { color: #164b96; }
label { display: block; margin: .7rem 0; font-size: .9rem; font-weight: 600; }
input { width: 100%; display: block; border: 1px solid #aebdce; border-radius: 6px; color: inherit; background: white; padding: .6rem; margin-top: .3rem; font: inherit; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.check { display: flex; align-items: center; gap: .5rem; }
.check input { width: auto; margin: 0; }
button { background: #194c94; border: 1px solid transparent; border-radius: 6px; padding: .55rem .85rem; color: white; font: inherit; cursor: pointer; }
button.quiet { background: #edf3ff; color: #194c94; }
button:disabled { opacity: .45; cursor: default; }
.hint { color: #516579; margin: .25rem 0; font-size: .875rem; }
.notice,.status { background: #e8f1ff; padding: .65rem .8rem; border-radius: 6px; }
.run { margin-top: .65rem; }
@media(max-width: 650px) { .layout,.grid { grid-template-columns: 1fr; } .grid { gap: 0; } }

/* Release 3.2: navigation shell and client/agent listings. */
.app-shell { display:grid; grid-template-columns: 205px minmax(0,1fr); gap:1rem; align-items:start; }
.app-sidebar { position:sticky; top:1rem; }
.app-sidebar a,.app-sidebar .nav-unavailable { display:block; padding:.65rem .7rem; border-radius:6px; margin:.15rem 0; }
.app-sidebar .nav-unavailable { color:#788596; font-style:italic; cursor:not-allowed; }
.nav-divider { border-top:1px solid #dbe4ee; margin:.8rem 0; }
.app-content { min-width:0; }
.breadcrumb { margin:0 0 1rem; font-size:.88rem; color:#516579; }
.section-heading { display:flex; justify-content:space-between; align-items:start; gap:1rem; flex-wrap:wrap; }
.section-heading h1 { margin-bottom:.3rem; }
.client-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; background:#f1f5f9; padding:1rem; border-radius:8px; margin:1rem 0; overflow-wrap:anywhere; }
.table-scroll { overflow-x:auto; }
.data-table { border-collapse:collapse; width:100%; text-align:left; }
.data-table th,.data-table td { padding:.85rem .65rem; border-bottom:1px solid #dbe4ee; vertical-align:top; }
.data-table td { overflow-wrap:anywhere; }
.report-state + .report-state { margin-top:.75rem; }
.data-table th { font-size:.85rem; color:#516579; }
.agent-tile { border:1px solid #dbe4ee; border-radius:8px; padding:1rem; }
.agent-tile h2 { margin-top:0; }
.help-page li { margin:.7rem 0; line-height:1.5; }
@media(max-width:650px) {
 .app-shell { grid-template-columns:minmax(0,1fr); }
 .app-sidebar { position:static; }
 .client-summary { grid-template-columns:1fr; }
}
