/* 116financialgroups.com — one stylesheet. Quiet and simple, like 116financial.com: a dark-teal header carrying the
   logo, aqua accents, serif page titles, plenty of whitespace. Works on a laptop and a phone. */
:root {
  --aqua: #00A8C0; --aqua-dark: #0090A6; --deep: #0B3C47; --teal: #006070; --pale: #E6F6F9; --pale-2: #F3FAFC;
  --ink: #1B2B33; --ink-2: #4F6670; --ink-3: #7E929B; --rule: #D5E6EA; --rule-2: #E7F0F3; --bg: #FFFFFF;
  --good: #1E7F4F; --good-bg: #E6F5EC; --warn: #9A6400; --warn-bg: #FFF5DC; --bad: #B4322B; --bad-bg: #FDE9E7;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: var(--bg); font-family: var(--sans); line-height: 1.5; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
a:hover { color: var(--aqua-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--aqua); outline-offset: 2px; }
h1, h2, h3 { font-weight: 500; color: var(--deep); margin: 0 0 .6rem; }
h1 { font-family: var(--serif); font-size: 2rem; line-height: 1.15; }
h2 { font-family: var(--serif); font-size: 1.35rem; margin-top: 2rem; }
h3 { font-size: 1rem; margin-top: 1.4rem; }
p { max-width: 72ch; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.tiny { font-size: .8rem; }
.nowrap { white-space: nowrap; }
code { background: var(--pale-2); padding: 0 .3em; border-radius: 3px; font-size: .9em; }

/* header */
header.top { background: var(--deep); color: #fff; }
header.top .in { max-width: 1180px; margin: 0 auto; padding: .5rem 1rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
header.top .brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: #fff; }
header.top .brand img { height: 64px; width: auto; display: block; }
header.top .brand span { font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em; color: #BFE9F0; }
header.top nav { display: flex; gap: .15rem; flex-wrap: wrap; margin-left: .5rem; }
header.top nav a { color: #D6F1F5; text-decoration: none; padding: .45rem .7rem; border-radius: 5px; font-size: .92rem; letter-spacing: .01em; }
header.top nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
header.top nav a.here { background: rgba(0,168,192,.28); color: #fff; }
header.top .right { margin-left: auto; font-size: .85rem; color: #BFE9F0; display: flex; gap: .9rem; align-items: center; }
header.top .right a { color: #fff; }
header.top .bar { height: 3px; background: linear-gradient(90deg, var(--teal), var(--aqua) 60%, #7ADCEA); }

main { max-width: 1180px; width: 100%; margin: 0 auto; padding: 1.6rem 1rem 3rem; flex: 1; }
footer { border-top: 1px solid var(--rule); color: var(--ink-3); font-size: .82rem; padding: 1.2rem 1rem 1.6rem; text-align: center; }
footer .verse { font-family: var(--serif); font-style: italic; color: var(--ink-2); margin-top: .2rem; }

/* page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua-dark); margin-bottom: .25rem; }

/* flashes */
.flash { border-left: 4px solid var(--aqua); background: var(--pale); padding: .7rem 1rem; margin: 0 0 1rem; border-radius: 0 6px 6px 0; max-width: 90ch; }
.flash.good { border-color: var(--good); background: var(--good-bg); }
.flash.warn { border-color: var(--warn); background: var(--warn-bg); }
.flash.bad { border-color: var(--bad); background: var(--bad-bg); }

/* cards & grids */
.card { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.2rem; background: #fff; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.stack > * + * { margin-top: 1rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; font-size: .95rem; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; }
.stat { display: inline-block; min-width: 7rem; padding: .5rem .8rem; border: 1px solid var(--rule); border-radius: 6px; margin: 0 .4rem .4rem 0; background: var(--pale-2); }
.stat b { display: block; font-size: 1.4rem; font-family: var(--serif); font-weight: 500; color: var(--deep); }
.stat span { font-size: .8rem; color: var(--ink-2); }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: .4rem 0 1rem; }
th { text-align: left; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); border-bottom: 2px solid var(--rule); padding: .5rem .6rem; vertical-align: bottom; font-weight: 600; }
td { border-bottom: 1px solid var(--rule-2); padding: .5rem .6rem; vertical-align: top; }
tbody tr:hover td { background: var(--pale-2); }
th.n, td.n { text-align: right; }
td.wrap { max-width: 44ch; }
.table-wrap { overflow-x: auto; }
tfoot td { font-weight: 600; border-top: 2px solid var(--rule); }

/* tags */
.tag { display: inline-block; padding: .05rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; background: var(--pale); color: var(--teal); border: 1px solid #BFE4EB; }
.tag.good { background: var(--good-bg); color: var(--good); border-color: #BFE3CC; }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: #F1D98F; }
.tag.bad { background: var(--bad-bg); color: var(--bad); border-color: #F3C2BE; }
.tag.quiet { background: #F2F4F5; color: var(--ink-2); border-color: var(--rule); }
.tag.deep { background: var(--deep); color: #fff; border-color: var(--deep); }
.tag.wrap { white-space: normal; }

/* forms */
form { margin: 0; }
label { display: block; font-size: .85rem; color: var(--ink-2); margin-bottom: .2rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: .95rem; padding: .45rem .55rem; border: 1px solid #B9CCD2; border-radius: 5px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--aqua); }
textarea { min-height: 5.5rem; resize: vertical; }
input[type=checkbox], input[type=radio] { width: auto; margin-right: .35rem; }
.field { margin-bottom: .85rem; }
.fields { display: grid; gap: .3rem 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fields .wide { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--ink); }
.actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.inline { display: inline; }
.inline-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; }
button, .btn { font: inherit; font-size: .92rem; padding: .45rem .95rem; border-radius: 5px; border: 1px solid var(--teal); background: #fff; color: var(--teal); cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
button:hover, .btn:hover { background: var(--pale); color: var(--deep); }
button.primary, .btn.primary { background: var(--aqua); border-color: var(--aqua); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--aqua-dark); border-color: var(--aqua-dark); color: #fff; }
button.quiet, .btn.quiet { border-color: var(--rule); color: var(--ink-2); }
button.danger, .btn.danger { border-color: var(--bad); color: var(--bad); }
button.small, .btn.small { font-size: .8rem; padding: .25rem .6rem; }
button[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
.help { font-size: .82rem; color: var(--ink-3); margin-top: .15rem; }

/* login */
.login { max-width: 26rem; margin: 3rem auto; }
.login .card { padding: 1.6rem 1.8rem; }
.login h1 { font-size: 1.7rem; }
.login .code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; }

/* group page */
.group-head { margin-bottom: .6rem; }
.group-head h1 { margin-bottom: .15rem; }
.group-head .meta { color: var(--ink-2); font-size: .92rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.tabs { display: flex; gap: .1rem; border-bottom: 1px solid var(--rule); margin: .8rem 0 1.4rem; overflow-x: auto; }
.tabs a { padding: .55rem .8rem; text-decoration: none; color: var(--ink-2); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: .95rem; }
.tabs a:hover { color: var(--deep); }
.tabs a.here { color: var(--deep); border-bottom-color: var(--aqua); font-weight: 600; }

/* carriers tab */
.carrier { border: 1px solid var(--rule); border-radius: 8px; padding: 1rem 1.2rem; margin-bottom: 1rem; }
.carrier.off { background: #FAFBFB; color: var(--ink-2); }
.carrier .head { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.carrier .head h3 { margin: 0; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; }
.carrier .head .right { margin-left: auto; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.checklist { list-style: none; padding: 0; margin: .6rem 0; }
.checklist li { padding: .25rem 0; display: flex; gap: .5rem; align-items: baseline; }
.checklist .mark { width: 1.3rem; text-align: center; font-weight: 700; flex: none; }
.checklist .mark.ok { color: var(--good); }
.checklist .mark.no { color: var(--bad); }
.checklist .mark.meh { color: var(--warn); }
.checklist .lvl { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

/* census */
.census-table { font-size: .8rem; }
.census-table td, .census-table th { padding: .2rem .3rem; font-size: inherit; }
.census-table th { font-size: .68rem; }
/* the columns fit a 1148px page (a 1366px laptop) with no sideways scroll: the inputs start narrow and grow when focused (§5.7) */
.census-table input, .census-table select { padding: .15rem .25rem; font-size: inherit; width: 100%; min-width: 3em; border-color: transparent; background: transparent; }
.census-table td.name input { min-width: 5.5em; } .census-table td.email input { min-width: 6.5em; } .census-table td.dob input { min-width: 6.4em; }
.census-table td.zip input { min-width: 3.8em; } .census-table td.st input { min-width: 2.4em; } .census-table td.phone input { min-width: 5.6em; }
.census-table td.status input { min-width: 4em; } .census-table td.rel select { min-width: 4em; } .census-table td.sex select, .census-table td.cobra select { min-width: 3.4em; }
.census-table td.tier select { min-width: 4.4em; }
.census-table td.email input:focus, .census-table td.phone input:focus, .census-table td.status input:focus, .census-table td.name input:focus { min-width: 12em; }
.census-table input:hover, .census-table select:hover { border-color: #B9CCD2; background: #fff; }
.census-table input:focus, .census-table select:focus { border-color: var(--aqua); background: #fff; }
.census-table tr.out td { color: var(--ink-3); background: #FAFBFB; }
.census-table tr.out input, .census-table tr.out select { color: var(--ink-3); }
.census-table tr.dep td.rowno { padding-left: 1.2rem; }
.census-table td.rowno { width: 2em; white-space: nowrap; }
.census-table td.flags { font-size: .7rem; min-width: 9em; max-width: 13em; line-height: 1.35; white-space: normal; }
.census-table .pill { display: inline-block; padding: 0 .4em; border-radius: .6em; margin: 0 .15em .15em 0; background: #EEF1F2; color: var(--ink-3); }
.census-table .pill.bad { background: #F7ECEB; color: var(--bad); font-weight: 600; }
.census-table .pill.warn { background: #FFF3DC; color: var(--warn); }
.census-table tr.filtered-out { display: none; }
.census-table tr.hit td { background: #FFF6CC; transition: background 1.5s; }
.js .census-table .save-col { display: none; }
.census-table .saved { color: var(--good); font-size: .75rem; }
.census-table .err { color: var(--bad); font-size: .75rem; }
.census-filter { display: flex; gap: .6rem; align-items: center; margin: .4rem 0 .5rem; flex-wrap: wrap; }
.js .census-filter .apply-filter { display: none; }
.issues-box { border-left: 4px solid var(--bad); margin: .4rem 0 .8rem; }
.issues-box h3 { margin: .2rem 0 .4rem; } .issues-box h3.bad-head { color: var(--bad); } .issues-box h3.warn-head { color: var(--warn); margin-top: .8rem; }
.issues-box ul.issue-groups { margin: 0 0 .3rem 1.1rem; padding: 0; font-size: .9rem; }
.issues-box li { margin: .2rem 0 .45rem; }
.issues-box .row-link { display: inline-block; padding: 0 .5em; border-radius: 999px; text-decoration: none; font-size: .85rem; margin: .1rem 0; border: 1px solid transparent; }
.issues-box .row-link.bad { background: #F7ECEB; color: var(--bad); border-color: #E8C9C5; } .issues-box .row-link.warn { background: #FFF3DC; color: var(--warn); border-color: #F0DDB0; }
.issues-box .row-link:hover { text-decoration: underline; }
.issues-box .how { margin: .1rem 0 0; }
.panel-status .tag { text-decoration: none; }
.inline-help { display: inline-block; font-family: var(--sans); font-size: .8rem; font-weight: 400; vertical-align: middle; margin-left: .4rem; position: relative; }
.inline-help > summary { display: inline-block; width: 1.3rem; height: 1.3rem; line-height: 1.3rem; text-align: center; border-radius: 50%; border: 1px solid var(--rule); color: var(--muted); list-style: none; }
.inline-help > summary::-webkit-details-marker { display: none; }
.inline-help .help-body { position: absolute; left: 0; top: 1.6rem; z-index: 5; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: .5rem .8rem; width: 34rem; max-width: 80vw; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.panel-list { margin: .3rem 0 .6rem 1.1rem; padding: 0; font-size: .9rem; }
.panel-list li { margin: .15rem 0; }
.panel-list.bad li { color: var(--bad); }
.panel-list.warn li { color: var(--warn); }
.mapping-table select { min-width: 14rem; }
.samples { color: var(--ink-3); font-size: .82rem; }

/* dashboard */
.attention li { margin: .3rem 0; }
.status-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.status-grid a { display: block; border: 1px solid var(--rule); border-radius: 6px; padding: .6rem .8rem; text-decoration: none; color: var(--ink); background: var(--pale-2); }
.status-grid a b { display: block; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--deep); }
.status-grid a span { font-size: .82rem; color: var(--ink-2); }

/* misc */
details summary { cursor: pointer; color: var(--teal); }
pre.mail { white-space: pre-wrap; overflow-wrap: anywhere; font: .88rem/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--pale-2); border: 1px solid var(--rule); border-radius: 6px; padding: .9rem 1rem; }
pre.mail.clip { max-height: 24rem; overflow: auto; }                 /* a long email scrolls inside its box; "Show all" lets it grow (the text is whole either way) */
pre.mail.quoted { background: #F6F7F8; color: var(--muted); margin-top: .3rem; }
.mail-head { display: grid; grid-template-columns: max-content 1fr; column-gap: .6rem; row-gap: .1rem; margin-bottom: .4rem; }
.mail-head > div { display: contents; }
.mail-head b { color: var(--muted); font-weight: 500; }
details.quoted > summary { color: var(--muted); }
details.email-block { border: 1px solid var(--rule); border-radius: 8px; padding: .5rem .8rem; margin: .5rem 0; background: #fff; }
details.email-block > summary { cursor: pointer; }
details.email-block[open] > summary { margin-bottom: .5rem; }
.thread-item.this-one { border-color: var(--teal); }
.thread-item.ours { background: var(--pale); }
.pager { display: flex; gap: .6rem; align-items: center; }
.toast { position: fixed; right: 1rem; bottom: 1rem; background: var(--deep); color: #fff; padding: .6rem 1rem; border-radius: 6px; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); opacity: 0; transition: opacity .2s; pointer-events: none; }
.toast.show { opacity: 1; }
.rule-table input, .rule-table select { font-size: .85rem; padding: .25rem .35rem; }
.rule-table td { padding: .3rem .35rem; }
td.off { opacity: .35; } td.off input { background: #F2F4F5; }

@media (max-width: 720px) {
  html { font-size: 15px; }
  h1 { font-size: 1.6rem; }
  header.top .in { gap: .6rem; }
  header.top .brand img { height: 48px; }
  header.top .right { width: 100%; margin-left: 0; justify-content: space-between; }
  .kv { grid-template-columns: 1fr; gap: 0 }
  .kv dt { margin-top: .4rem; }
  main { padding: 1rem .8rem 2.5rem; }
}

/* the inbox badge in the nav */
.badge { display: inline-block; min-width: 1.3rem; padding: 0 .4rem; border-radius: 999px; background: var(--warn); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; line-height: 1.3rem; vertical-align: 1px; }

/* the carrier readiness board: a grid of tiles, each a <details>; an open tile stretches across the row with its panel */
.board { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.tile { border: 1px solid var(--rule); border-radius: 8px; background: #F2F4F5; color: var(--ink-2); }
.tile > summary { list-style: none; cursor: pointer; padding: .6rem .75rem; display: flex; flex-direction: column; gap: .1rem; min-height: 5.4rem; }
.tile > summary::-webkit-details-marker { display: none; }
.tile .tile-name { font-weight: 600; color: var(--ink); line-height: 1.25; }
.tile .tile-state { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.tile .tile-words { font-size: .8rem; line-height: 1.3; }
.tile.ready { background: var(--good-bg); border-color: #9FD3B4; color: var(--good); }
.tile.ready .tile-state, .tile.ready .tile-name { color: var(--good); }
.tile.moving { background: var(--pale); border-color: #8FD3DF; color: var(--teal); }
.tile.moving .tile-state, .tile.moving .tile-name { color: var(--teal); }
.tile.declined { background: #F7ECEB; border-color: #E2B8B4; color: #8C4A45; }
.tile.declined .tile-state { color: var(--bad); }
.tile.waiting { background: #fff; border: 1px dashed #AFC3CA; color: var(--ink-2); }
.tile.waiting .tile-state { color: var(--ink-2); }
.tile.blocked .tile-state { color: var(--ink-3); }
.tile.inactive { opacity: .6; }
.tile[open] { grid-column: 1 / -1; background: #fff; }
.tile[open] > summary { border-bottom: 1px solid var(--rule); }
.tile.ready[open] > summary { background: var(--good-bg); } .tile.moving[open] > summary { background: var(--pale); }
.tile.declined[open] > summary { background: #F7ECEB; } .tile.blocked[open] > summary, .tile.inactive[open] > summary { background: #F2F4F5; }
.tile-panel { padding: .6rem .9rem .8rem; color: var(--ink); }
.tile-panel .checklist li { padding: .15rem 0; }
.tile-panel .checklist.muted .mark.meh { color: var(--ink-3); }
.mark-form { display: inline-block; margin-left: .4rem; }
.mark-form > summary { font-size: .8rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; border: 1px solid var(--rule); background: #F2F4F5; }
.swatch.ready { background: var(--good-bg); border-color: #9FD3B4; } .swatch.moving { background: var(--pale); border-color: #8FD3DF; }
.swatch.waiting { background: #fff; border: 1px dashed #AFC3CA; } .swatch.declined { background: #F7ECEB; border-color: #E2B8B4; }

/* the path to sending */
ol.path { list-style: none; margin: 0; padding: 0; counter-reset: step; }
ol.path > li.step { padding: .45rem 0 .45rem 2.1rem; border-top: 1px solid var(--rule-2); position: relative; }
ol.path > li.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .55rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1px solid var(--rule); font-size: .72rem; display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: #fff; }
ol.path > li.step.done::before { background: var(--good-bg); border-color: #9FD3B4; color: var(--good); }
ol.path.second > li.step::before { content: "○"; }
.step-line { display: flex; gap: .5rem; align-items: baseline; }
.step-line .mark { width: 1.1rem; font-weight: 700; flex: none; }
.step-line .mark.ok { color: var(--good); } .step-line .mark.no { color: var(--bad); } .step-line .mark.meh { color: var(--ink-3); }
.step-how { margin: .1rem 0 0 1.6rem; color: var(--ink-2); }
.good { color: var(--good); font-weight: 600; } .bad-text { color: var(--bad); font-weight: 600; } .warn-text { color: var(--warn); font-weight: 600; }
.milestone { margin: .45rem 0 .1rem 1.6rem; padding: .45rem .7rem; border-left: 3px solid var(--aqua); background: var(--pale-2); font-size: .9rem; display: flex; gap: .5rem .8rem; flex-wrap: wrap; align-items: center; }
.ms { display: inline-block; padding: .1rem .55rem; border-radius: 999px; border: 1px solid var(--rule); background: #fff; font-size: .82rem; }
.ms .ms-words { color: var(--ink-2); font-size: .78rem; }
.ms.ready { background: var(--good-bg); border-color: #9FD3B4; } .ms.ready .ms-words { color: var(--good); }
.ms.moving { background: var(--pale); border-color: #8FD3DF; } .ms.moving .ms-words { color: var(--teal); }
.ms.declined { background: #F7ECEB; border-color: #E2B8B4; }
.ms.waiting { border-style: dashed; }

/* the office viewing the site as an agent */
.view-as { background: var(--warn-bg); border-bottom: 2px solid var(--warn); color: var(--warn); font-size: .9rem; padding: .45rem 1rem; text-align: center; }
.view-as b { color: var(--ink); }
.view-as a { color: var(--teal); }

/* the office's flag strip: what is waiting */
.flags { background: var(--pale); border-bottom: 1px solid #BFE4EB; padding: .4rem 1rem; font-size: .9rem; display: flex; gap: .5rem 1.6rem; flex-wrap: wrap; justify-content: center; }
.flags a { color: var(--deep); text-decoration: none; }
.flags a b { display: inline-block; min-width: 1.5rem; padding: 0 .45rem; border-radius: 999px; background: var(--aqua); color: #fff; text-align: center; margin-right: .3rem; }
.flags a:hover { text-decoration: underline; }
.flags a.bad { color: var(--bad); font-weight: 600; }                               /* the mailbox or the classifier needs the office (DESIGN.md §8.42) */
.flags a.bad b { background: var(--bad); }

/* the dashboard's Notifications and the /notifications page (DESIGN.md §8.42): the status line, the filter bar, the rows — a new row marked */
.status-line { margin: .2rem 0 .5rem; padding: .45rem .8rem; border-left: 3px solid var(--aqua); background: var(--pale-2); font-size: .9rem; max-width: none; }
.status-line.status-red { border-left-color: var(--bad); background: var(--bad-bg); }
.note-bar { display: flex; gap: .6rem 1rem; align-items: center; flex-wrap: wrap; margin: .2rem 0 .3rem; }
table.notifications td:first-child { width: 9.5rem; }
table.notifications tr.unseen td { background: #FBFDFE; }
table.notifications tr.unseen td:first-child { border-left: 3px solid var(--aqua); }
table.notifications tr.lvl-bad.unseen td:first-child { border-left-color: var(--bad); }
table.notifications tr.lvl-warn.unseen td:first-child { border-left-color: var(--warn); }

/* the agent portal's guidance and thread (DESIGN.md §8.9) */
.help-box{margin:.25rem 0 .1rem}
.help-box summary{color:var(--muted);cursor:pointer}
.help-body{margin:.3rem 0 .2rem .4rem;padding:.4rem .7rem;border-left:3px solid var(--aqua);background:var(--pale-2);border-radius:0 6px 6px 0}
.help-body p{margin:.2rem 0}
.thread .msg{padding:.5rem .7rem;margin:.3rem 0;border-radius:8px;background:var(--pale-2);max-width:46rem}
.thread .msg.office{background:var(--pale);border-left:3px solid var(--aqua)}
.thread .msg .text{white-space:pre-wrap}
.person-picks{display:flex;flex-wrap:wrap;gap:.3rem;margin:.3rem 0 0}
.help-body a{font-weight:600}

/* the carrier knowledge (DESIGN.md §8.12): the recommendations strip above the tiles, a recommended tile, the networks ticks, the facts table */
.recommend { margin: 0 0 .8rem; padding: .5rem .8rem; border: 1px solid #9FD3B4; border-left-width: 4px; border-radius: 6px; background: var(--good-bg); color: var(--ink); }
.recommend ul { margin: .25rem 0 0 1.1rem; padding: 0; }
.recommend li { margin: .15rem 0; }
.rec-recommend { color: var(--good); }
.rec-warn { color: var(--warn); }
.rec-out { color: var(--bad); }
.tile .tile-state .rec { color: var(--good); }
.networks label.check { font-weight: 400; }
table.facts th { width: 11rem; text-align: left; color: var(--ink-2); font-weight: 600; vertical-align: top; padding: .25rem .5rem .25rem 0; border-bottom: 1px solid var(--rule-2); }
table.facts td { padding: .25rem .4rem; border-bottom: 1px solid var(--rule-2); }
table.facts td.strong { font-weight: 600; color: var(--ink); }

/* the rates (DESIGN.md §8.13): the tables, the numbers right-aligned, the words under each table */
table.rates td.num, table.rates th.num { text-align: right; white-space: nowrap; }
table.rates .caveat-row td { border-bottom: 2px solid var(--rule); padding-top: .15rem; }
.caveat { color: var(--ink-2); }

/* the quick-start guide (templates/guide.html) */
ol.guide li, ul.guide li { margin: 0 0 .55rem; line-height: 1.45; }
ol.guide { padding-left: 1.4rem; }

/* a demo group (demo.py): the banner above its name on every page of it, office and portal */
.demo-banner{display:inline-block;background:#fff4d6;color:#6b4a00;border:1px solid #e8c56a;border-radius:6px;padding:.25rem .7rem;margin-bottom:.4rem;font-weight:600;font-size:.9rem}

/* "Send the agent what's missing" (missing.py): the carriers as a plain list of ticks */
ul.plain{list-style:none;padding:0}
ul.plain li{margin:.15rem 0}

/* questions for the office (DESIGN.md §8.24): one block at the top of a group's tabs, each question with its yes / no */
.card.questions{border-left:4px solid var(--warn, #c98a1b)}
.questions-list li.question{margin:.5rem 0;padding:.45rem 0;border-top:1px solid var(--line, #e3e3e3)}
.questions-list li.question:first-child{border-top:0}

/* the office's search in the top bar (search.py, DESIGN.md §8.26): the box, and the typeahead under it */
.top .gsearch{position:relative;flex:1 1 14rem;max-width:26rem;margin:0 .8rem}
.top .gsearch input{width:100%;padding:.35rem .6rem;border:1px solid var(--rule);border-radius:6px;font:inherit;font-size:.9rem;background:#fff}
.gsearch-drop{position:absolute;top:100%;left:0;right:0;z-index:40;margin-top:.25rem;background:#fff;border:1px solid var(--rule);border-radius:6px;box-shadow:0 8px 24px rgba(0,0,0,.12);max-height:24rem;overflow:auto;text-align:left}
.gsearch-drop .kind{padding:.35rem .7rem .15rem;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);background:var(--pale-2)}
.gsearch-drop a.row{display:block;padding:.4rem .7rem;text-decoration:none;color:var(--ink);border-top:1px solid var(--pale-2)}
.gsearch-drop a.row b{font-weight:600}
.gsearch-drop a.row span{display:block;font-size:.8rem;color:var(--ink-2)}
.gsearch-drop a.row.active,.gsearch-drop a.row:hover{background:var(--pale-2)}
.gsearch-drop a.row.deleted b{color:var(--ink-2);text-decoration:line-through}
.gsearch-drop a.more{display:block;padding:.4rem .7rem;font-size:.85rem;border-top:1px solid var(--rule)}
.search-hits li{margin:.3rem 0}
.search-hits li.deleted a{color:var(--ink-2)}

/* the dashboard's groups by status (DESIGN.md §8.27): one collapsible block per status */
.status-blocks{display:flex;flex-direction:column;gap:.4rem}
.status-block{border:1px solid var(--rule);border-radius:6px;background:var(--pale-2);padding:.3rem .8rem}
.status-block summary{cursor:pointer;font-family:var(--serif);font-size:1.05rem;color:var(--deep)}
.status-block summary b{display:inline-block;min-width:2rem;font-size:1.3rem;font-weight:500}
.status-block summary a{font-family:var(--sans);margin-left:.6rem}
.status-block table{margin:.4rem 0 .5rem;background:#fff}

/* View as (§8.36): the agent's controls drawn and disabled — greyed, never pressed */
fieldset.readonly { border: 0; margin: 0; padding: 0; min-inline-size: 0; display: block; }
fieldset.readonly button, fieldset.readonly input, fieldset.readonly select, fieldset.readonly textarea { opacity: .55; cursor: not-allowed; }
fieldset.readonly form { position: relative; }
.ro-top { margin: 0 0 .8rem; padding: .4rem .7rem; border: 1px dashed var(--rule); border-radius: 6px; font-size: .9rem; color: var(--muted); }
.ro-note { display: inline-block; margin: .2rem 0; color: var(--muted); font-style: italic; }
