:root {
  font: 100%/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #252123;
  background: #f9f8f7;
  --wine: #6e1f2b;
  --muted: #685f63;
  --border: #dfdbd9;
}
* { box-sizing: border-box }
body, h1, h2, h3, p, dl, dd { margin: 0 }
[hidden] { display: none !important }
button, input, select { font: inherit }
button, select { cursor: pointer }
button { min-height: 2.75rem; border: 0; border-radius: .55rem; font-weight: 600 }
button:disabled, input:disabled, select:disabled { opacity: .6; cursor: wait }
:focus-visible { outline: 3px solid #aa5161; outline-offset: 3px }
button, nav a { -webkit-tap-highlight-color: transparent }
h1 { font-size: clamp(2.5rem,5vw,4rem); line-height: 1.06; letter-spacing: -.06em; font-weight: 650 }
h2 { font-size: 1.1rem; letter-spacing: -.02em; font-weight: 600 }
.eyebrow, .sidebar-label { font-size: .79rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; color: var(--muted) }
.eyebrow { margin-bottom: .8rem }
.primary, .secondary, .google { padding: .65rem 1.2rem }
.primary { background: var(--wine); color: white }
.primary:hover { background: #571723 }
.secondary, .google { background: white; border: 1px solid #cfc7c8; color: #272022 }
.secondary:hover, .google:hover { background: #f5f0f0 }
.text-btn { padding: .45rem .3rem; background: transparent; color: var(--wine) }
.text-btn:hover { text-decoration: underline }
.message { color: var(--muted); font-size: .94rem }
.message:not(:empty) { margin: 1rem 0 }
.message[data-error] { color: #902a35 }
#entry { min-height: 100svh; display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); background: white }
.entry-brand, .brand { display: flex; align-items: center; gap: .55rem; font-size: 1.55rem; letter-spacing: -.065em }
.entry-brand { position: absolute; top: clamp(1.5rem,4vw,4rem); left: clamp(1.5rem,5vw,5rem) }
.entry-brand img, .brand img { width: 1.7rem; height: auto }
.entry-main { display: grid; align-items: center; padding: 8rem clamp(1.5rem,5vw,5rem) }
.entry-card { max-width: 27rem; width: 100%; margin: 0 auto }
#entry-copy, dialog form > p, .section-intro { color: var(--muted) }
#entry-copy { margin: 1.15rem 0 2rem; max-width: 24rem; font-size: 1.08rem }
.google { display: flex; width: 100%; align-items: center; justify-content: center; gap: .8rem }
.google img { object-fit: contain }
.entry-art { display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 82% 25%,#964552 0,transparent 58%),linear-gradient(145deg,#42141f,#791f30 66%,#4a1621) }
.entry-art::before, .entry-art::after { content: ""; position: absolute; width: 130%; height: 85%; border: 1px solid #ffffff20; border-radius: 50%; transform: rotate(-33deg); left: 3%; top: -25% }
.entry-art::after { top: 55%; left: -65%; width: 170% }
.art-shield { width: min(52%,24rem); aspect-ratio: 153/136; background: linear-gradient(140deg,#fbd9cc,#dda0a3); mask: url("/freeway-logo.svg") center/contain no-repeat }
#entry-actions { display: flex; align-items: center; gap: 1rem }
#console { display: grid; grid-template-columns: 15rem 1fr; min-height: 100svh }
.sidebar { background: #fff; padding: 2.1rem 1.1rem 1.25rem; border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0 }
.brand { padding-left: .85rem }
.sidebar-label { margin: 3.8rem 0 1rem .85rem }
nav { display: grid; gap: .35rem }
nav a { display: flex; align-items: center; gap: .9rem; min-height: 2.8rem; padding: .6rem .9rem; border-radius: .55rem; font-weight: 550; color: #524c50; text-decoration: none }
nav a:hover { background: #f7f5f4 }
nav a[aria-current="page"] { color: var(--wine); background: #f4e9e9 }
.nav-icon { width: 1rem; height: 1rem; display: inline-grid; place-content: center; flex: none }
.grid-icon { background: linear-gradient(currentColor 0 0) 0 0,linear-gradient(currentColor 0 0) 100% 0,linear-gradient(currentColor 0 0) 0 100%,linear-gradient(currentColor 0 0) 100% 100%; background-size: 41% 41%; background-repeat: no-repeat }
.users-icon { position: relative }
.users-icon::before, .users-icon::after { content: ""; position: absolute; border: 1.5px solid currentColor; left: 50%; transform: translateX(-50%) }
.users-icon::before { width: .32rem; height: .32rem; border-radius: 50%; top: 0 }
.users-icon::after { width: .82rem; height: .4rem; border-radius: .6rem .6rem .12rem .12rem; bottom: 0 }
.account { margin-top: auto; padding: 1rem .6rem 0; display: grid; justify-items: start; gap: .3rem; border-top: 1px solid var(--border) }
#my-email { max-width: 100%; overflow-wrap: anywhere; font-size: .87rem; color: var(--muted) }
.workspace { width: 100%; max-width: 90rem; min-width: 0; padding: clamp(2rem,5vw,5rem) clamp(1.4rem,5vw,5rem) }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem }
.organization-card, .metric, .table-wrap { background: white; border: 1px solid var(--border); border-radius: .95rem }
.organization-card { display: grid; grid-template-columns: 1fr 1.15fr; padding: clamp(1.3rem,3vw,2.4rem); gap: 2rem }
.org-total { display: flex; flex-direction: column; justify-content: space-between }
.org-total strong, .metric strong { display: block; font-size: clamp(3rem,6vw,5.25rem); letter-spacing: -.065em; line-height: 1.1; font-weight: 550; font-variant-numeric: tabular-nums; overflow-wrap: anywhere }
.org-total strong { color: var(--wine); margin-top: 1rem }
.breakdown { border-left: 1px solid var(--border); padding-left: clamp(1.5rem,3vw,3rem) }
.breakdown h3 { font-size: .95rem; font-weight: 600 }
#mix { width: 100%; height: .6rem; border-radius: .4rem; margin: .85rem 0 .45rem; display: block }
dl div { display: flex; align-items: center; justify-content: space-between; font-size: .94rem; padding: .25rem 0 }
dt { display: flex; gap: .65rem; align-items: center; color: var(--muted) }
dt i { width: .56rem; height: .56rem; border-radius: 50% }
.individuals { background: #732633; fill: #732633 }
.teams { background: #bd777b; fill: #bd777b }
.companies { background: #d3a787; fill: #d3a787 }
dd { font-weight: 600; font-variant-numeric: tabular-nums }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem }
.metric { padding: clamp(1.3rem,3vw,2.4rem) }
.metric strong { font-size: clamp(2.7rem,5vw,4.2rem); margin-top: 1.6rem }
.section-intro { margin-bottom: 1.2rem }
.table-wrap { overflow-x: auto }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem }
th, td { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border) }
th { font-weight: 550; color: var(--muted); background: #f4f2f1; white-space: nowrap }
td:first-child { overflow-wrap: anywhere }
tbody tr:last-child td { border-bottom: 0 }
.role { border-radius: .4rem; background: #efedec; color: #524d4e; padding: .2rem .55rem; font-size: .83rem; font-weight: 600; white-space: nowrap }
.role[data-admin] { background: #f4e4e6; color: var(--wine) }
#more { margin-top: 1rem }
dialog { width: min(28rem, calc(100% - 2rem)); max-height: 90svh; padding: 1.7rem; border: 1px solid var(--border); border-radius: .9rem; color: inherit }
dialog::backdrop { background: #21151965 }
dialog h2 { font-size: 1.7rem }
dialog form > p { margin: .65rem 0 1rem }
label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: .4rem }
input, select { width: 100%; min-height: 2.8rem; padding: .6rem .75rem; border: 1px solid #bfb9b9; border-radius: .45rem; background: #fff; color: inherit; margin-bottom: 1rem }
select { appearance: none; background: linear-gradient(45deg,transparent 50%,#655 50%) calc(100% - 1rem) center/5px 5px no-repeat, linear-gradient(135deg,#655 50%,transparent 50%) calc(100% - .7rem) center/5px 5px no-repeat }
#role-help { font-size: .9rem; margin: -.5rem 0 1rem }
.dialog-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.4rem }
@media (max-width: 52rem) {
  #console { grid-template-columns: 1fr; display: block }
  .sidebar { display: flex; flex-flow: row wrap; gap: .7rem 1rem; align-items: center; padding: .8rem 1.2rem; border: 0; border-bottom: 1px solid var(--border) }
  .brand { padding: 0 }
  .sidebar-label { display: none }
  nav { display: flex }
  .account { margin: 0 0 0 auto; padding: 0; border: 0; gap: 0 }
  .account .role, #my-email { display: none }
  .workspace { padding-top: 2.25rem }
}
@media (max-width: 38rem) {
  #entry { grid-template-columns: 1fr }
  .entry-art { display: none }
  .sidebar nav { order: 2; width: 100% }
  nav a { min-height: 2.45rem }
  .page-head { margin-bottom: 1.6rem }
  .organization-card { grid-template-columns: 1fr; gap: 1.3rem }
  .breakdown { border-left: 0; padding: 1rem 0 0; border-top: 1px solid var(--border) }
  .metric h2 { font-size: 1rem }
  .metric-row { gap: .7rem }
  .metric { padding: 1rem }
  th, td { padding: .8rem }
}
