/* 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; }
.census-table input, .census-table select { padding: .15rem .25rem; font-size: inherit; width: 100%; min-width: 3.2em; border-color: transparent; background: transparent; }
.census-table td.name input { min-width: 6em; } .census-table td.email input { min-width: 8em; } .census-table td.dob input { min-width: 7.2em; }
.census-table td.zip input { min-width: 4.2em; } .census-table td.st input { min-width: 2.6em; } .census-table td.phone input { min-width: 6.2em; }
.census-table td.status input { min-width: 4.6em; } .census-table td.rel select { min-width: 4.4em; } .census-table td.sex select, .census-table td.cobra select { min-width: 3.6em; }
.census-table td.tier select { min-width: 4.8em; }
.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:first-child { padding-left: 1.2rem; }
.census-table td.flags { font-size: .74rem; color: var(--warn); min-width: 14em; max-width: 30em; line-height: 1.3; }
.census-table td:first-child { width: 2em; }
.census-table td.flags .issue { color: var(--bad); font-weight: 600; }
.census-table .saved { color: var(--good); font-size: .75rem; }
.census-table .err { color: var(--bad); font-size: .75rem; }
.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; 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; }
.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; }
