/* Company typography and colors are shared with website/ through assets/brand.css. */
:root {
  --paper: #f2f7fc;
  --paper-alt: #e8edf8;
  --ink: #24324b;
  --ink-soft: #52617a;
  --muted: #6b7280;
  --line: rgba(0, 0, 0, 0.08);
  --brand: #ffce2d;
  --brand-hover: #f5c000;
  --charcoal: #262626;
  --accent: #655597;
  --white: #fff;
  --font-sans: var(--qb-body);
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  color-scheme: light;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header, footer { width: 100%; max-width: 1280px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: 32px; }
header { height: 64px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -.025em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.mark { flex-shrink: 0; display: block; }
.subbrand { margin-left: 8px; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
header nav a { font-size: 16px; font-weight: 500; color: var(--ink); }
main { position: relative; isolation: isolate; width: 100%; max-width: 1280px; margin-inline: auto; padding: 64px 32px 80px; flex: 1; }
body::before { content: ""; position: absolute; z-index: -1; pointer-events: none; inset: 0 0 auto; height: 620px; max-height: 100%; background: radial-gradient(ellipse at 4% 10%, #e7edf5a6, transparent 58%), radial-gradient(ellipse at 95% 5%, #fff3c480, transparent 54%); }
footer { min-height: 100px; padding-block: 28px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; }
.footer-brand span { margin-left: 10px; font-weight: 400; color: var(--muted); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin-bottom: 20px; }
h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.015em; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
p { color: var(--ink-soft); line-height: 1.6; font-size: 16px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.hl { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: .16em; text-underline-offset: .1em; text-decoration-skip-ink: none; }
.auth-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 88px; align-items: center; padding: 8px 32px; }
.auth-layout > *, .portal-grid > * { min-width: 0; }
.intro h1 { font-size: clamp(40px, 4.5vw, 60px); line-height: 1.02; }
.lede { max-width: 430px; font-size: 18px; margin-top: 28px; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.auth h2 { font-size: 26px; }
.fine, small { font-size: 13px; line-height: 1.6; color: var(--muted); }
.fine { margin: 18px 0 0; }
form { margin: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input, select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); border: 1px solid rgba(0, 0, 0, .16); border-radius: 10px; background: var(--white); margin-bottom: 18px; }
input::placeholder { color: var(--muted); }
input[type=hidden] { display: none; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; font-family: inherit; font-size: 16px; font-weight: 600; line-height: 24px; background: var(--brand); color: var(--ink); border: 1px solid transparent; border-radius: 12px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08), inset 0 -1px 0 rgba(0, 0, 0, .08); transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease; }
button:hover, .button:hover { background: var(--brand-hover); text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
.auth button, .narrow button { width: 100%; }
.secondary { background: var(--white); border-color: rgba(0, 0, 0, .12); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.secondary:hover { background: var(--white); border-color: rgba(0, 0, 0, .3); }
.danger { color: #b42318; }
.muted { color: var(--muted); font-size: 13px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.workspace-preview { margin: 32px 0 0; max-width: 490px; }
.workspace-frame { border-radius: 14px; padding: 8px; background: #1c1c1e; box-shadow: 0 20px 36px -24px rgba(26, 21, 35, .35), 0 0 0 1px rgba(0, 0, 0, .3); }
.workspace-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border-radius: 8px; }
.workspace-preview figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }
.narrow { max-width: 490px; margin: 32px auto; }
.narrow h1 { font-size: 34px; }
.text-link { display: inline-block; font-size: 14px; font-weight: 500; margin-top: 22px; }
.code { font-family: var(--font-mono); letter-spacing: 7px; font-size: 24px; }
.page-title { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-title h1 { margin-bottom: 12px; }
.page-title p { margin-bottom: 0; overflow-wrap: anywhere; }
.page-title .eyebrow { margin-bottom: 12px; }
.portal-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; }
.license-card { border: 1px solid #373737; background: var(--charcoal); color: #dcdcdc; padding: 36px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .05); }
.card-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 40px; flex-wrap: wrap; }
.card-heading .eyebrow { margin: 0; color: #b8b8b8; }
.badge { border: 1px solid rgba(255, 206, 45, .3); background: rgba(255, 206, 45, .08); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; color: var(--brand); }
.license-card h2 { font-size: 34px; max-width: 420px; color: var(--white); }
.license-card p { max-width: 450px; color: #b8b8b8; }
.license-card .text-link { color: var(--brand); }
.license-card a:focus-visible { outline-color: var(--brand); }
dl { border-top: 1px solid #494949; margin-top: 30px; padding-top: 22px; display: flex; gap: 32px; flex-wrap: wrap; }
dt { font-size: 13px; color: #b8b8b8; margin-bottom: 8px; }
dd { margin: 0; font-size: 15px; font-weight: 600; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 28px; border-top: 1px solid var(--line); margin-top: 36px; padding-top: 28px; }
.device-row p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.device-row button { white-space: nowrap; }
.alert { background: #fff1f0; color: #912018; border: 1px solid #ffd2cc; padding: 18px; border-radius: 12px; margin-bottom: 24px; line-height: 1.6; }
.grant-form { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr auto; gap: 20px; align-items: start; }
.grant-form > * { min-width: 0; }
.grant-form button { margin-top: 28px; white-space: nowrap; }
.grant-form input, .grant-form select { margin-bottom: 5px; }
.license-list { margin-top: 40px; }
.compact { margin-bottom: 20px; }
.compact h2 { margin: 0; }
.search { display: flex; gap: 8px; }
.search button { white-space: nowrap; }
.search input { margin: 0; }
.table-scroll { overflow: auto; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
th { color: var(--muted); background: var(--paper-alt); font-size: 12px; font-weight: 600; }
th, td { padding: 18px 16px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
td { overflow-wrap: anywhere; }
th:first-child, td:first-child { min-width: 220px; }
th:nth-child(2), td:nth-child(2) { min-width: 150px; }
th:nth-child(3), td:nth-child(3) { min-width: 180px; }
.table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
td button { min-height: 40px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 1100px) {
  .auth-layout { padding-inline: 0; gap: 40px; }
  .grant-form { grid-template-columns: 1fr 1fr; }
  .grant-form button { align-self: end; margin: 0; }
}
@media (max-width: 760px) {
  header, footer { padding-inline: 20px; }
  header nav { display: none; }
  .subbrand { font-size: 13px; padding-left: 14px; margin-left: 0; }
  main { padding: 36px 20px 48px; }
  .auth-layout, .portal-grid { grid-template-columns: 1fr; gap: 30px; }
  .intro h1 { font-size: 42px; }
  .workspace-preview { display: none; }
  .lede { max-width: none; margin-top: 24px; }
  .panel, .license-card { padding: 24px; }
  .narrow { margin: 8px auto; }
  .page-title { align-items: flex-start; }
  h1 { font-size: 34px; }
  .page-title > form button { padding-inline: 15px; white-space: nowrap; font-size: 14px; }
  .license-card h2 { font-size: 30px; }
  .card-heading { margin-bottom: 28px; }
  .device-row { align-items: flex-start; flex-direction: column; }
  .grant-form { grid-template-columns: 1fr; }
  .grant-form button { margin-top: 4px; }
  .compact { flex-direction: column; align-items: stretch; }
  dl { flex-direction: column; gap: 20px; }
  footer { min-height: 80px; padding-block: 22px; }
  .footer-brand span, footer > span:last-child { display: none; }
  .table-scroll table { min-width: 650px; }
}
@media (prefers-reduced-motion: reduce) {
  button, .button { transition: none; }
  button:active, .button:active { transform: none; }
}

.mark, .footer-brand img { border-radius: 10px; }
.login-companion img { display: block; width: 100%; height: auto; }
.capy-footer { display: flex; align-items: center; gap: 24px; margin-top: 50px; border-top: 1px solid var(--line); padding-top: 20px; }
.capy-footer p { margin: 0; font-size: 14px; }
.capy-footer img { object-fit: contain; flex-shrink: 0; }
.key-card { background: white; padding: 24px; border: 1px solid var(--line); border-radius: 16px; margin-block: 16px; }
.key-card code { font-family: var(--font-mono); font-size: 15px; overflow-wrap: anywhere; user-select: all; }
.seat-form { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.seat-form input[type=number] { width: 100px; margin: 0; }
.seat-form label { margin: 0; }
.grant-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grant-form button { margin-top: 0; }
.license-card { background: #e8edf8; color: var(--ink); border-color: var(--line); }
.license-card h2, .license-card dd { color: var(--ink); }
.license-card p, .license-card dt, .card-heading .eyebrow { color: var(--ink-soft); }
.license-card .text-link { color: var(--accent); }
.license-card dl { border-color: #cbd3e4; }
.badge { background: #fff4bd; color: #5b4900; }
@media(max-width:760px) { .grant-form { grid-template-columns: 1fr; } .capy-footer { gap: 12px; } .capy-footer img { width: 95px; height: 110px; } }

.back-home { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 32px; color: var(--ink-soft); font-size: 14px; }
.customer-licenses { max-width: 780px; margin-inline: auto; }
.customer-licenses h1 { font-size: 36px; margin-bottom: 10px; }
.license-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 36px 0 12px; }
.license-toolbar p { margin: 0; font-size: 14px; }
.license-toolbar button { white-space: nowrap; }
.buy-form { display: flex; gap: 10px; align-items: center; }
.buy-form input[type=number] { width: 84px; margin: 0; }
.checkout-note { color: var(--ink-soft); font-size: 13px; margin: 12px 0 24px; }
.customer-key-list { margin-top: 28px; }
.customer-key { background: #fff; border: 1px solid #dce3ef; border-radius: 14px; padding: 22px 24px; margin-bottom: 14px; }
.key-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); margin-bottom: 14px; }
.key-status { font-size: 12px; text-transform: capitalize; }
.key-status.active { color: #337454; }
.key-value { display: flex; align-items: center; gap: 12px; }
.key-value code { flex: 1; min-width: 0; font: 16px/1.7 var(--font-mono); overflow-wrap: anywhere; user-select: all; }
.copy-key { width: 44px; height: 44px; min-height: 44px; padding: 0; flex-shrink: 0; border-radius: 10px; box-shadow: none; }
.key-issued { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.license-empty { padding: 48px 24px; text-align: center; border: 1px dashed #cad3e3; border-radius: 14px; }
.license-empty h2 { font-size: 20px; margin-bottom: 8px; }
.license-empty p { font-size: 14px; margin: 0; }
.copy-feedback { min-height: 22px; margin: 12px 0; font-size: 13px; color: #337454; }
.license-footnote { font-size: 13px; margin-top: 24px; }
.checkout-price { font-size: 32px; font-weight: 600; color: var(--ink); }
.test-checkout .checkout-note { padding: 14px; background: #edf0fa; border-radius: 10px; }
@media(max-width:600px) {
  .customer-licenses h1 { font-size: 28px; }
  .customer-licenses .page-title { gap: 12px; }
  .customer-licenses .page-title p { font-size: 13px; }
  .license-toolbar { align-items: flex-start; flex-direction: column; gap: 16px; }
  .customer-key { padding: 18px 16px; }
  .key-value code { font-size: 13px; }
}
.instance-card { overflow-wrap: anywhere; }
.instance-card details p { margin: 16px 0 0; }
#instances > .search { margin-top: 24px; }
#instances summary { cursor: pointer; padding-block: 12px; }

/* Seats: one key per seat with the device that holds it. */
.seat { border-top: 1px solid #edf1f7; padding-top: 16px; margin-top: 16px; }
.seat-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; font-size: 13px; }
.seat-label { font-weight: 700; color: var(--ink); }
.seat-device { color: var(--ink-soft); overflow-wrap: anywhere; }
.seat-device.free { color: var(--muted); font-style: italic; }
.seat-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 12px 0 0; padding: 12px 14px; border: 0; background: #f4f7fc; border-radius: 10px; }
.seat-facts div { min-width: 0; }
.seat-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.seat-facts dd { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.seat-facts code { font-family: var(--font-mono); font-size: 13px; }
.seat-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
button.small { min-height: 40px; padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.key-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.key-foot .key-issued { margin: 0; }
.portal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.key-status.expired, .key-status.revoked, .key-status.unpaid { color: #b42318; }
.seat-details { margin-top: 16px; }
.seat-details summary { cursor: pointer; padding-block: 8px; font-weight: 600; font-size: 14px; }
.seat-table th:first-child, .seat-table td:first-child { min-width: 0; }
.seat-table th, .seat-table td { padding: 12px 14px; font-size: 13px; }
.seat-table code { font-size: 12px; }
@media(max-width:600px) {
  .seat-facts { grid-template-columns: 1fr; gap: 10px; }
  .seat-actions form, .seat-actions button { width: 100%; }
}
