:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #192638; background: #f3f6fa; }
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1200px; margin: auto; padding: 24px; }
.signin { max-width: 560px; margin-top: 8vh; }
h1, h2 { line-height: 1.2; }
h2 { margin-top: 0; }
header, .actions, form, .summary { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
header { justify-content: space-between; margin-bottom: 24px; }
header h1 { margin: 0; }
section { background: white; padding: 20px; border: 1px solid #d9e1eb; border-radius: 8px; margin: 20px 0; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
input, select, button { font: inherit; padding: 8px 12px; border: 1px solid #8897aa; border-radius: 4px; }
input, select { max-width: 100%; background: white; color: inherit; }
button { cursor: pointer; color: white; background: #234d7c; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { color: #234d7c; background: white; }
button.danger { background: #8b2738; }
:focus-visible { outline: 3px solid #3678c3; outline-offset: 3px; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
caption { text-align: left; margin: 12px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #d9e1eb; vertical-align: top; }
th { white-space: nowrap; }
td.identity { overflow-wrap: anywhere; min-width: 210px; }
.summary > div { flex: 1; min-width: 220px; background: #f3f6fa; padding: 12px; }
.summary strong { display: block; font-size: 1.1rem; }
.note { color: #45566e; }
#message { min-height: 1.5em; }
[hidden] { display: none !important; }
@media (max-width: 600px) { main { padding: 12px; } section { padding: 12px; } }

/* Dashboard uses the same native controls as sign-in, with task-oriented work areas. */
.dashboard { max-width: 1320px; padding: 36px 32px 72px; }
.dashboard .masthead { align-items: flex-start; margin-bottom: 16px; gap: 24px; }
.dashboard h1 { font-size: 2.4rem; letter-spacing: -.04em; }
.dashboard h2 { font-size: 1.8rem; letter-spacing: -.025em; margin-bottom: 12px; }
.dashboard h3 { font-size: 1.2rem; margin: 30px 0 8px; }
.dashboard .eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .12em; color: #50647a; margin: 0 0 10px; }
.dashboard p { margin: 8px 0 16px; }
.dashboard a { color: #24547c; text-underline-offset: 4px; }
.dashboard button, .dashboard input, .dashboard select { min-height: 44px; }
.dashboard summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.dashboard .owner-menu { width: 250px; background: white; border: 1px solid #d9e1eb; border-radius: 10px; padding: 0 14px; }
.dashboard .owner-menu button { width: 100%; margin-bottom: 10px; }
.dashboard #identity { font-size: .8rem; }
.dashboard #message { position: sticky; top: 8px; z-index: 2; padding: 10px 14px; background: #e8eef4; border-radius: 6px; font-size: .9rem; }
.dashboard #message[data-state="error"] { color: #762431; background: #fff0f1; border-left: 4px solid #8b2738; }
.dashboard #message[data-state="loading"] { color: #254e78; background: #e4f0ff; }
.dashboard nav { gap: 4px; border-bottom: 1px solid #cad5e1; margin: 24px 0; }
.dashboard nav a { text-decoration: none; padding: 13px 20px; border-bottom: 3px solid transparent; }
.dashboard nav a[aria-current] { color: #143854; border-bottom-color: #206b65; background: #e6efef; }
.dashboard .filter-panel { background: #eaf0f5; border: 1px solid #d6e0ea; border-radius: 12px; padding: 20px; }
.dashboard #filters { display: block; }
.dashboard .filter-heading, .dashboard .section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dashboard .filter-heading .note { font-size: .85rem; }
.dashboard .presets { margin: 14px 0; align-items: center; font-size: .85rem; }
.dashboard .presets button { padding: 6px 12px; }
.dashboard .filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.dashboard label { font-size: .85rem; }
.dashboard #as-of { font-size: .75rem; overflow-wrap: anywhere; margin-bottom: 0; }
.dashboard #filter-status { font-size: .85rem; margin: 12px 0 0; }
.dashboard section { padding: 28px; border-radius: 12px; margin-top: 24px; }
.dashboard .summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }
.dashboard .summary > div { min-width: 0; border: 1px solid #dbe4ec; border-radius: 8px; padding: 20px; background: white; }
.dashboard .summary strong { font-size: 1rem; }
.dashboard .summary p { font-size: .85rem; }
.dashboard .summary .total-estimate { grid-column: 1 / -1; grid-row: 1; background: #edf5f3; border-color: #c5ded8; }
.dashboard .total-estimate > p:first-of-type { font-size: 2rem; margin: 0; line-height: 1.25; }
.dashboard .total-estimate .cost small { font-size: .9rem; }
.dashboard .total-estimate .note { margin: 4px 0 0; }
.dashboard .coverage { border-left: 3px solid #ad8432; background: #fcf8ed; padding: 16px 20px; margin: 20px 0; font-size: .9rem; }
.dashboard .coverage p:last-child { margin-bottom: 0; }
.dashboard .coverage ul { padding-left: 20px; margin: 8px 0; }
.dashboard .finalized-panel { border-block: 1px solid #d9e1eb; padding: 8px 0; }
.dashboard .finalized-panel > p { font-size: .9rem; }
.dashboard table, .dashboard #users-section table { min-width: 0; table-layout: fixed; }
.dashboard th { white-space: normal; color: #45566e; font-size: .75rem; text-transform: uppercase; letter-spacing: .035em; background: #f3f6fa; }
.dashboard td { overflow-wrap: anywhere; padding: 18px 10px; }
.dashboard td.identity { min-width: 0; }
.dashboard caption { font-size: .8rem; color: #45566e; }
.dashboard .table-wrap { border-top: 1px solid #d9e1eb; }
.dashboard td details > p { font-size: .8rem; }
.dashboard td summary { font-size: .85rem; }
.dashboard td .cost summary { padding: 0; min-height: 44px; }
.dashboard .badge { display: inline-block; background: #eaf0f5; color: #32485e; padding: 4px 8px; border-radius: 5px; font-size: .8rem; }
.dashboard .inspect-user, .dashboard .view-usage { font-size: .8rem; }
.dashboard .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; font-size: .85rem; }
.dashboard .pagination p { margin: 0; flex: 1; min-width: 200px; }
.dashboard .lookup { padding: 20px; background: #f3f6fa; border-radius: 8px; margin: 24px 0; }
.dashboard .lookup label { flex: 1; min-width: 240px; }
.dashboard .page-search { max-width: 450px; }
.dashboard #users-result { font-size: .85rem; }
.dashboard .account-controls label { margin-bottom: 12px; }
.dashboard .account-controls .note { font-size: .8rem; }
.dashboard .account-controls .danger { font-size: .8rem; width: 100%; }
.dashboard .beta-approvals { background: #f7faf9; border-color: #cfe1dc; }
.dashboard .beta-approvals .lookup { margin: 12px 0; }
.dashboard [data-view] { scroll-margin-top: 18px; }
@media (max-width: 760px) {
  .dashboard { padding: 20px 12px 40px; }
  .dashboard .masthead { display: block; }
  .dashboard .owner-menu { width: 100%; margin-top: 14px; }
  .dashboard h1 { font-size: 2rem; }
  .dashboard h2 { font-size: 1.45rem; }
  .dashboard nav { flex-wrap: nowrap; gap: 0; }
  .dashboard nav a { padding: 12px 8px; flex: 1; text-align: center; font-size: .85rem; }
  .dashboard .filter-panel, .dashboard section { padding: 16px; }
  .dashboard .filter-fields { grid-template-columns: 1fr; }
  .dashboard .summary { grid-template-columns: 1fr; }
  .dashboard .summary > div { padding: 16px; }
  .dashboard .total-estimate { overflow-wrap: anywhere; }
  .dashboard .total-estimate > p:first-of-type { font-size: 1.7rem; }
  .dashboard .coverage { padding: 14px; }
  .dashboard table, .dashboard tbody, .dashboard tr, .dashboard td { display: block; width: 100%; }
  .dashboard thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .dashboard tr { border: 1px solid #d9e1eb; border-radius: 8px; margin: 12px 0; padding: 8px 14px; }
  .dashboard td { border: 0; padding: 8px 0; }
  .dashboard td[data-label]::before { content: attr(data-label); display: block; color: #50647a; font-size: .72rem; font-weight: 700; margin-bottom: 4px; }
  .dashboard td .cost summary { min-height: 44px; }
  .dashboard .lookup { padding: 14px; }
  .dashboard .lookup label { min-width: 0; width: 100%; flex-basis: 100%; }
  .dashboard .lookup button { width: 100%; }
}
.dashboard .multiline { white-space: pre-line; }
.dashboard .amount { font-variant-numeric: tabular-nums; }
.dashboard details.cost { display: inline-block; max-width: 100%; vertical-align: top; }
.dashboard .cost small { display: block; overflow-wrap: anywhere; white-space: normal; }
.dashboard td.identity small { display: block; margin-top: 5px; color: #45566e; font-size: .75rem; }
.dashboard [id] { scroll-margin-top: 80px; }
.dashboard .summary .provider-cost .cost, .dashboard .summary .provider-cost > span { display: block; }
.dashboard .summary .provider-cost > span { color: #45566e; }
.dashboard .summary .provider-cost summary { padding: 4px 0; min-height: 44px; }
@media (max-width: 760px) {
  .dashboard caption { display: block; width: 100%; }
}
html:has(.dashboard) { scroll-padding-top: 80px; }
.dashboard :is(button, input, select, summary, a) { scroll-margin-top: 80px; }
