:root {
  color-scheme: light;
  --ink: #162740;
  --muted: #53647a;
  --line: #dbe3ed;
  --blue: #1459bc;
  --deep-blue: #104591;
  --surface: #fff;
  --canvas: #f3f6fa;
  font: 16px/1.5 "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box }
body { margin: 0; min-width: 240px }
button, input, select { font: inherit }
button, a, select { touch-action: manipulation }
a { color: var(--blue); text-underline-offset: .16em }
a:hover { color: var(--deep-blue) }
:focus-visible { outline: 3px solid #256cbe; outline-offset: 3px }
h1, h2, h3, p, figure, ol { margin: 0 }
h1, h2, h3 { line-height: 1.2; font-weight: 650; text-wrap: balance }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em }
h2 { font-size: 1.45rem; letter-spacing: -.028em }
h3 { font-size: 1.08rem }
code, .code { font: .94em/1.5 ui-monospace, Consolas, monospace; overflow-wrap: anywhere }
.wrap, .header-inner { width: min(1160px, calc(100% - 64px)); margin: 0 auto }
.skip { position: fixed; z-index: 20; left: 10px; top: -6em; padding: .65em 1em; background: #fff; border-radius: 6px }
.skip:focus { top: 10px }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line) }
.header-inner { min-height: 70px; display: flex; align-items: center; gap: 28px }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; text-decoration: none }
.brand-tile { position: relative; display: inline-grid; place-items: center; overflow: hidden; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(145deg,#3980f0,#0a4bab) }
.brand-tile i { position: relative; width: 23px; height: 9px; margin-top: 6px; border-radius: 9px; background: white }
.brand-tile i::before, .brand-tile i::after { content: ""; position: absolute; background: white; border-radius: 50% }
.brand-tile i::before { width: 12px; height: 12px; top: -6px; left: 4px }
.brand-tile i::after { width: 9px; height: 9px; top: -3px; right: 2px }
.header-inner nav { margin-left: auto; display: flex; align-items: center; gap: 6px }
.header-inner nav a, .nav-signout, .nav-signin { padding: 7px 12px; border-radius: 6px; text-decoration: none; font-size: .93rem; font-weight: 570 }
.header-inner nav a { color: var(--muted) }
.header-inner nav a:hover, .nav-signout:hover, .nav-signin:hover { background: #edf3fb; color: var(--deep-blue) }
.header-inner nav [aria-current] { color: var(--blue); background: #e8f1ff }
.nav-signout { border: 1px solid var(--line); color: var(--ink); background: white; cursor: pointer }
.nav-signin { color: var(--blue); border: 1px solid #b9cee9 }
.button, .revoke { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 600; text-align: center; text-decoration: none }
.button { min-height: 43px; padding: 9px 18px; background: var(--blue); color: white }
.button:hover { background: var(--deep-blue); color: white }
.button.secondary { border-color: #c4d1e1; background: var(--surface); color: var(--ink) }
.button.secondary:hover { background: #edf3fa; border-color: #9eb6d4 }
.revoke { min-height: 36px; padding: 5px 11px; font-size: .875rem }
.revoke { background: #fff; border-color: #dbcbd0; color: #9a3644 }
.revoke:hover { background: #fff0f2 }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px }
.hero { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(24px,4vw,64px); padding: 64px 0 48px }
.hero h1 { font-size: clamp(2.8rem, 5.5vw, 4.9rem); letter-spacing: -.062em; line-height: 1.03 }
.lead { margin-top: 22px; max-width: 39em; color: var(--muted); font-size: clamp(1.05rem,1.4vw,1.23rem); line-height: 1.55 }
.product-preview { padding: clamp(20px,3.2vw,44px) clamp(15px,2.8vw,35px); border: 1px solid #d1def0; border-radius: 18px; background: linear-gradient(140deg,#e2ebfb 0%,#c2d8fa 62%,#dcecff 100%) }
.product-preview img { width: 100%; height: auto; display: block; border-radius: 7px; box-shadow: 0 9px 24px #23466a33 }
.onboarding { padding: 24px 0 64px }
.onboarding > h2 { font-size: clamp(1.6rem,2.6vw,2.1rem) }
.steps { padding: 0; margin-top: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; list-style: none; counter-reset: setup }
.steps li { counter-increment: setup; display: flex; align-items: flex-start; gap: 12px; padding: 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface) }
.steps li::before { content: counter(setup); flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; font-size: .85rem; font-weight: 700; color: var(--deep-blue); background: #e6effc }
.steps h3 { margin: 3px 0 6px }
.steps p, .auth-panel > p, .client-card p, .page-heading p, .invite-code p { color: var(--muted) }
.auth-layout { width: min(100% - 32px, 488px); margin: clamp(26px,7vh,86px) auto }
.auth-panel { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(23px,4vw,38px); box-shadow: 0 10px 35px #2949700b }
.auth-panel h1 { font-size: clamp(1.65rem,3.5vw,2.2rem) }
.auth-panel > p { margin-top: 8px }
.auth-panel > .form { margin-top: 24px }
.auth-panel .auth-foot { padding-top: 16px; margin-top: 24px; border-top: 1px solid var(--line); font-size: .92rem }
.form, .field { display: grid; align-content: start }
.form { gap: 16px }
.field { gap: 5px; min-width: 0 }
.field > span { font-weight: 600; font-size: .92rem }
.field small, .form-note { color: var(--muted); font-size: .86rem }
input, select { min-height: 41px; max-width: 100%; min-width: 0; border-radius: 6px; border: 1px solid #aab9cc; background: #fff; color: var(--ink); padding: 6px 10px }
input:focus, select:focus { border-color: var(--blue) }
.auth-panel input { width: 100% }
.notice { background: #e8f5ed; border: 1px solid #b2d7c2; border-radius: 8px; color: #20583c; padding: 11px 14px; overflow-wrap: anywhere; margin: 16px 0 }
.notice.error { background: #fff1f2; border-color: #e9b7be; color: #8b2936 }
.workspace { padding-top: 35px; padding-bottom: 48px; display: grid; gap: 19px }
.page-heading p { margin: 6px 0 2px; overflow-wrap: anywhere }
.page-heading p strong { color: var(--ink) }
.workspace > .notice { margin: 0 }
.card-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 13px; background: white }
.usage { background: linear-gradient(125deg,#f8fbff,#eaf2ff); border-color: #d1def0 }
.usage h2 { color: #2a4e80 }
.usage-value { margin: 16px 0 7px; font-size: clamp(1.7rem,3.5vw,2.5rem); color: #183d73; letter-spacing: -.045em; font-weight: 650; line-height: 1.2 }
.usage-value span { color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0 }
progress { width: 100%; height: 8px; display: block; border: 0; border-radius: 8px; background-color: #d9e4f3; accent-color: var(--blue); overflow: hidden; margin: 14px 0 6px }
progress::-webkit-progress-bar { background-color: #d9e4f3 }
progress::-webkit-progress-value { background-color: var(--blue) }
progress::-moz-progress-bar { background-color: var(--blue) }
.muted, .empty { color: var(--muted) }
.empty, .client-card p { margin: 9px 0 }
.client-card p { max-width: 48em }
.client-card .button { margin-top: 5px }
.table-panel { padding: 0; overflow: hidden }
.inset, .section-head { padding: 21px 24px }
.section-head { display: flex; gap: 10px; align-items: center }
.count { color: #526780; border: 1px solid var(--line); border-radius: 20px; padding: 1px 8px; font-size: .86rem; font-variant-numeric: tabular-nums }
.table-scroll { max-width: 100%; overflow: auto; overscroll-behavior-x: contain }
.table-scroll:focus-visible { outline-offset: -3px }
.file-scroll { max-height: 32rem }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: .92rem }
td, th { padding: 10px 15px; border-top: 1px solid #e3e9f1; vertical-align: middle; overflow-wrap: anywhere }
td:first-child, th:first-child { padding-left: 24px }
td:last-child, th:last-child { padding-right: 24px }
th[scope="col"] { position: sticky; top: 0; z-index: 1; color: var(--muted); background: #f6f8fb; font-size: .82rem; font-weight: 600 }
th[scope="row"] { font-weight: 600 }
tbody tr:hover { background: #f8faff }
td small, th small { display: block; color: var(--muted); font-weight: 400 }
.file-name { min-width: 160px; max-width: 35em }
.num { white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums }
.settings-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px }
.settings-grid .button { justify-self: start }
.password { border-left: 1px solid var(--line); padding: 0 0 0 28px }
.password summary { color: var(--blue); cursor: pointer; font-weight: 600; padding: 5px 0 }
.password form { padding-top: 12px }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px 19px }
.section-nav a { font-size: .94rem; padding: 6px 10px; border-radius: 5px }
.section-nav a[aria-current="page"] { background: #e5efff; color: #164785; font-weight: 600 }
.inline-form, .amount, .invite-create { display: flex; flex-wrap: wrap; align-items: center; gap: 6px }
.amount input { width: 7.5em }
.amount select { padding-right: 4px; min-width: 4.35em }
.inline-form input, .inline-form select { min-height: 36px; font-size: .88rem }
#invites table { min-width: 560px }
#invites .inset > .muted { margin-top: 5px }
.invite-create { align-items: flex-end; gap: 10px; margin-top: 16px }
.invite-create select { min-width: 140px }
.invite-code { background: #edf5ff; border: 1px solid #c8dbf3; border-radius: 8px; padding: 14px; margin-top: 17px }
.invite-code p { font-size: .9rem; margin-top: 8px }
.state { display: inline-block; border-radius: 5px; padding: 2px 7px; color: var(--muted); background: #edf0f4; font-size: .84rem }
.state.active { color: #205f43; background: #e5f4eb }
.card-row .form .button { justify-self: start }
time { font-variant-numeric: tabular-nums; white-space: nowrap }
@media (max-width: 860px) {
  .wrap, .header-inner { width: calc(100% - 40px) }
  .hero { grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 40px }
  .steps { grid-template-columns: 1fr }
  .steps li { padding: 15px 18px }
}
@media (max-width: 650px) {
  .wrap, .header-inner { width: calc(100% - 28px) }
  .header-inner { min-height: 59px; flex-wrap: wrap; gap: 5px 8px; padding: 9px 0 }
  .header-inner nav { gap: 0 }
  .header-inner nav a, .nav-signout, .nav-signin { padding: 6px 7px; font-size: .83rem }
  .brand { font-size: 1.15rem; gap: 5px }
  .brand-tile { width: 30px; height: 30px; border-radius: 8px }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 33px 0 8px }
  .hero-copy h1 br { display: none }
  .hero-copy h1 { max-width: 12em; font-size: 2.55rem }
  .hero-copy .lead { margin-top: 12px }
  .actions { margin-top: 18px }
  .onboarding { padding-bottom: 34px }
  .workspace { padding-top: 24px; gap: 13px }
  .card-row, .settings-grid { grid-template-columns: 1fr; gap: 13px }
  .panel, .inset, .section-head { padding: 17px }
  .table-panel { padding: 0 }
  .file-scroll { max-height: 27rem }
  td, th { padding: 9px }
  td:first-child, th:first-child { padding-left: 14px }
  td:last-child, th:last-child { padding-right: 14px }
  .password { border-left: 0; border-top: 1px solid var(--line); padding: 9px 0 0 }
  .section-nav { gap: 5px 13px }
}
@media (max-width: 420px) {
  .header-inner:has(.signout) nav { order: 3; width: 100%; margin: 0 }
  .signout { margin-left: auto }
  .actions .button { flex-grow: 1 }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .nav-signout { transition: background-color .12s ease, border-color .12s ease }
}


@media (max-width: 650px) {
  #members table, #invites table { display: block; min-width: 0 }
  #members thead, #invites thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden }
  #members tbody, #invites tbody { display: block }
  #members tbody tr, #invites tbody tr { display: grid; gap: 5px; padding: 14px 17px; border-top: 1px solid var(--line) }
  #members tbody th, #invites tbody th { padding: 0 0 3px; border: 0 }
  #members tbody td, #invites tbody td { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; border: 0; padding: 0; text-align: left }
  #members tbody td::before, #invites tbody td::before { content: attr(data-label); color: var(--muted); font-size: .82rem }
  #invites .revoke { min-height: 41px }
}
