:root {
  --ink: #172033;
  --ink-soft: #344054;
  --muted: #667085;
  --subtle: #98a2b3;
  --canvas: #f7f8fa;
  --surface: #ffffff;
  --surface-muted: #f1f4f8;
  --line: #d9e0e8;
  --line-strong: #b9c3d0;
  --blue: #155eef;
  --blue-dark: #004eeb;
  --blue-soft: #eaf1ff;
  --green: #067647;
  --green-soft: #e8f7ee;
  --amber: #9a6700;
  --amber-soft: #fff5d8;
  --red: #b42318;
  --red-dark: #912018;
  --red-soft: #fef0ef;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 12px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .62; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: #fff; background: var(--blue); border-radius: 6px; transform: translateY(-160%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.brand-logo { display: block; width: 32px; height: 32px; max-width: 32px; max-height: 32px; flex: 0 0 32px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.nav-links > a:not(.button) { text-decoration: none; }
.nav-links > a:not(.button):hover, .footer-links a:hover, .text-link:hover { color: var(--blue-dark); text-decoration: underline; }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; font-weight: 700; line-height: 1.25; text-decoration: none; transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button[hidden] { display: none !important; }
.button:hover:not(:disabled) { box-shadow: 0 1px 3px rgba(16, 24, 40, .16); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover:not(:disabled) { background: var(--blue-dark); }
.button-secondary { color: var(--ink-soft); border-color: var(--line-strong); background: var(--surface); }
.button-secondary:hover:not(:disabled) { background: var(--surface-muted); }
.button-danger { color: #fff; background: var(--red); }
.button-danger:hover:not(:disabled) { background: var(--red-dark); }
.button-small { min-height: 36px; padding: 7px 11px; font-size: 13px; }
.full { width: 100%; }

.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); align-items: center; gap: 72px; padding: 104px 0 110px; }
.hero-copy { max-width: 690px; }
.eyebrow, .overline, .card-kicker, .nav-label { margin: 0; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -.03em; }
h1 { max-width: 800px; margin: 16px 0 20px; font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { margin-bottom: 14px; font-size: clamp(1.8rem, 3vw, 2.45rem); }
h3 { margin-bottom: 10px; font-size: 1.18rem; }
.lede { max-width: 640px; margin-bottom: 0; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.18rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.summary-card, .service-card, .auth-card, .content-card, .overview-card, .settings-card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.summary-card { padding: 26px; border-radius: 12px; }
.summary-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.summary-heading h2 { margin: 4px 0 0; font-size: 1.25rem; }
.status-dot { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 5px 9px; color: var(--green); border: 1px solid #a9dfbf; border-radius: 999px; background: var(--green-soft); font-size: 12px; font-weight: 700; }
.status-dot::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
.metric-list { margin: 0; }
.metric-list > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.metric-list > div:last-child { padding-bottom: 0; border: 0; }
.metric-list dt { color: var(--muted); font-size: 14px; }
.metric-list dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; }
.section { padding: 96px 0; }
.section-muted { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-muted); }
.section-copy { max-width: 660px; margin: 0; color: var(--ink-soft); font-size: 1.06rem; line-height: 1.7; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.service-card { min-height: 236px; padding: 25px; border-radius: 10px; }
.service-card h3 { margin-top: 34px; }
.service-card p:not(.card-kicker) { margin-bottom: 0; color: var(--ink-soft); font-size: 15px; }
.card-kicker { color: var(--muted); }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.split-section h2 { max-width: 450px; margin: 12px 0 0; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); background: var(--surface); font-size: 14px; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 82px; }
.footer-links { display: flex; align-items: center; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-link { min-height: 44px; padding: 8px 0; color: var(--muted); border: 0; background: transparent; font-weight: 600; }

.auth-page { display: grid; min-height: 100vh; place-items: center; padding: 38px 20px; background: var(--surface-muted); }
.auth-wrap { width: min(440px, 100%); }
.auth-wrap > .brand { justify-content: center; margin-bottom: 28px; }
.auth-card { padding: 32px; border-radius: 12px; }
.auth-card h1 { margin: 10px 0 9px; font-size: 2rem; }
.auth-card > p { color: var(--ink-soft); }
.field { margin: 20px 0; }
.field label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.field input, select { width: 100%; min-height: 46px; padding: 9px 11px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.field input:focus, select:focus { border-color: var(--blue); outline: 3px solid rgba(21, 94, 239, .2); outline-offset: 0; }
.form-message { min-height: 22px; margin: 12px 0 0; color: var(--red); font-size: 14px; font-weight: 600; }
.back { display: block; margin-top: 20px; color: var(--ink-soft); font-size: 14px; text-align: center; }

.panel-page { min-height: 100vh; display: flex; flex-direction: column; }
.panel-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 18px; }
.account-actions { display: flex; align-items: center; gap: 14px; }
.panel-quick-links { display: flex; align-items: center; gap: 8px; }
.account-role { color: var(--muted); font-size: 14px; font-weight: 700; }
.panel-layout { display: grid; flex: 1; grid-template-columns: 232px minmax(0, 1fr); align-items: start; gap: 42px; padding-top: 34px; padding-bottom: 72px; transition: grid-template-columns .18s ease; }
.panel-layout.is-nav-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.panel-sidebar { position: sticky; top: 18px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.sidebar-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 8px 9px; color: var(--ink-soft); border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 750; text-align: left; }
.sidebar-toggle:hover { background: var(--surface-muted); }
.sidebar-toggle > span:first-child { width: 24px; color: var(--blue-dark); font-size: 24px; line-height: 1; text-align: center; }
.panel-nav { display: grid; gap: 4px; margin-top: 7px; }
.nav-label { padding: 8px 12px; color: var(--subtle); }
.panel-nav-link { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 9px 10px; color: var(--ink-soft); border-radius: 7px; font-size: 14px; font-weight: 700; text-decoration: none; }
.panel-nav-link:hover { color: var(--blue-dark); background: var(--blue-soft); }
.panel-nav-link.is-active { color: var(--blue-dark); background: var(--blue-soft); }
.panel-nav-icon { display: grid; width: 24px; height: 24px; flex: 0 0 24px; place-items: center; color: var(--blue-dark); border-radius: 6px; background: var(--blue-soft); font-size: 12px; font-weight: 800; }
.panel-layout.is-nav-collapsed .sidebar-toggle { justify-content: center; padding: 8px 0; }
.panel-layout.is-nav-collapsed .panel-nav-link { justify-content: center; padding: 9px 0; }
.panel-layout.is-nav-collapsed .nav-label, .panel-layout.is-nav-collapsed .panel-nav-text, .panel-layout.is-nav-collapsed #sidebar-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.panel-workspace { min-width: 0; }
.page-heading { max-width: 760px; margin-bottom: 30px; }
.page-heading h1 { margin: 9px 0 8px; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.page-description { margin: 0; color: var(--ink-soft); }
.app-message { min-height: 0; margin-bottom: 0; }
.app-message:not(:empty) { min-height: 48px; display: flex; align-items: center; margin-bottom: 22px; padding: 12px 14px; border: 1px solid; border-radius: 8px; font-weight: 600; }
.app-message-success { color: var(--green); border-color: #a9dfbf; background: var(--green-soft); }
.app-message-error { color: var(--red); border-color: #f9b5b0; background: var(--red-soft); }
.overview-grid { display: grid; grid-template-columns: 1.3fr repeat(2, 1fr); gap: 16px; margin-bottom: 16px; }
.overview-card { min-height: 220px; padding: 24px; border-radius: 10px; }
.overview-card h2 { margin: 30px 0 10px; font-size: 1.5rem; }
.overview-card p:not(.card-kicker) { margin: 15px 0 0; color: var(--ink-soft); }
.overview-primary { border-color: #c6d6ff; background: var(--blue-soft); }
.text-link { display: inline-block; margin-top: 27px; color: var(--blue-dark); font-size: 14px; font-weight: 700; }
.content-card { margin-bottom: 16px; padding: 25px; border-radius: 10px; }
.content-card h2 { margin: 3px 0 0; font-size: 1.4rem; }
.content-card > p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.compact-card { max-width: 760px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.settings-list { display: grid; gap: 16px; }
.settings-card { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding: 24px; border-radius: 10px; }
.settings-card h2 { margin: 0 0 6px; font-size: 1.2rem; }
.settings-card p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: 15px; }
.settings-card .setting-status { margin-bottom: 8px; color: var(--ink); font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; width: max-content; min-height: 27px; padding: 4px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.status-success { color: var(--green); border-color: #a9dfbf; background: var(--green-soft); }
.status-warning { color: var(--amber); border-color: #f0ce84; background: var(--amber-soft); }
.status-danger { color: var(--red); border-color: #f9b5b0; background: var(--red-soft); }
.status-neutral { color: var(--ink-soft); border-color: var(--line); background: var(--surface-muted); }
.inline-form { display: grid; grid-template-columns: minmax(170px, 1fr) minmax(200px, 1fr) 100px auto; align-items: end; gap: 12px; }
.inline-form .field { margin: 0; }
.license-form { display: grid; grid-template-columns: minmax(170px, .8fr) 110px minmax(250px, 1.5fr) auto; align-items: end; gap: 14px; }
.license-form .field { margin: 0; }
.license-assignee { position: relative; }
.user-picker { position: absolute; z-index: 5; top: calc(100% - 34px); left: 0; right: 0; max-height: 210px; overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); box-shadow: 0 8px 20px rgba(16, 24, 40, .12); }
.user-picker:empty { display: none; }
.user-picker-option { width: 100%; display: block; padding: 10px 11px; color: var(--ink-soft); border: 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; }
.user-picker-option:hover { background: var(--blue-soft); }
.user-picker-option strong, .user-picker-option span { display: block; }
.user-picker-option span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.assignee-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }
.assignee-selected span { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.text-button { min-height: 36px; padding: 4px 6px; color: var(--blue-dark); border: 0; background: transparent; font-size: 13px; font-weight: 700; }
.signup-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.signup-card p { max-width: 610px; }
.account-search { max-width: 660px; margin: 0 0 20px; }
.account-search > label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 14px; font-weight: 700; }
.account-search > div { display: flex; gap: 10px; }
.account-search input { min-height: 44px; flex: 1; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); }
.table-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 14px; font-weight: 700; }
.optional { color: var(--muted); font-weight: 500; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; color: var(--ink-soft); font-size: 14px; text-align: left; }
th, td { padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead { background: var(--surface-muted); }
th { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.table-subtext { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.table-intro { margin: -4px 0 18px; color: var(--ink-soft); font-size: 14px; }
.table-actions { display: flex; gap: 7px; }
.privacy-notice { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 16px; padding: 14px 16px; color: #175c3b; border: 1px solid #a9dfbf; border-radius: 8px; background: var(--green-soft); font-size: 14px; }
.privacy-notice strong { white-space: nowrap; }
.loading-copy { color: var(--muted); }
.panel-footer { margin-top: auto; }
.confirm-dialog { width: min(510px, calc(100% - 32px)); padding: 0; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 54px rgba(16, 24, 40, .24); }
.confirm-dialog::backdrop, .cookie-dialog::backdrop { background: rgba(16, 24, 40, .46); }
.confirm-dialog form { padding: 28px; }
.dialog-heading h2 { margin: 7px 0 9px; font-size: 1.6rem; }
.dialog-heading p:last-child { color: var(--ink-soft); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.cookie-banner { position: fixed; z-index: 90; right: 18px; bottom: 18px; width: min(470px, calc(100% - 36px)); padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 16px 36px rgba(16, 24, 40, .18); }
.cookie-banner h2 { margin: 0 0 7px; font-size: 1.15rem; }
.cookie-banner p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.button-tertiary { color: var(--blue-dark); border-color: transparent; background: transparent; }
.button-tertiary:hover:not(:disabled) { background: var(--blue-soft); }
.cookie-dialog { width: min(540px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 24px 54px rgba(16, 24, 40, .24); }
.cookie-dialog-inner { padding: 27px; }
.cookie-dialog h2 { margin: 0 0 10px; font-size: 1.55rem; }
.cookie-dialog p { color: var(--ink-soft); }
.cookie-choice { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
.cookie-choice input { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }
.cookie-choice strong, .cookie-choice span { display: block; }
.cookie-choice span { margin-top: 3px; color: var(--muted); font-size: 14px; }
.cookie-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.privacy-page { max-width: 860px; padding-top: 76px; padding-bottom: 90px; }
.privacy-page h1 { font-size: clamp(2.45rem, 5vw, 4rem); }
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.privacy-grid .content-card { min-height: 200px; margin: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 46px; padding: 76px 0 82px; }
  .summary-card { max-width: 600px; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-primary { grid-column: 1 / -1; min-height: 190px; }
  .inline-form { grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr); }
  .inline-form .field-seats { max-width: 130px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 32px, 1160px); }
  .nav { min-height: 68px; align-items: flex-start; padding: 14px 0; }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; gap: 10px 15px; font-size: 13px; }
  .nav-links .button { min-height: 38px; padding: 7px 10px; }
  .section { padding: 64px 0; }
  .service-grid, .split-section { grid-template-columns: 1fr; gap: 30px; }
  .privacy-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .service-card h3 { margin-top: 26px; }
  .footer-content { align-items: flex-start; flex-direction: column; justify-content: center; padding: 18px 0; }
  .panel-header-inner { min-height: 66px; }
  .account-role { display: none; }
  .panel-layout, .panel-layout.is-nav-collapsed { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .panel-sidebar { position: static; }
  .panel-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-nav .nav-label { display: none; }
  .panel-nav-link { min-height: 42px; padding: 8px 10px; }
  .panel-layout.is-nav-collapsed .panel-nav { display: none; }
  .panel-layout.is-nav-collapsed .sidebar-toggle { justify-content: flex-start; padding: 8px 9px; }
  .panel-layout.is-nav-collapsed #sidebar-toggle-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .page-heading { margin-bottom: 23px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-primary { grid-column: auto; }
  .settings-card { align-items: flex-start; flex-direction: column; gap: 17px; }
  .settings-card .button, .settings-card .status-badge { width: 100%; }
  .inline-form, .license-form { grid-template-columns: 1fr; }
  .inline-form .field-seats { max-width: none; }
  .inline-form .button { width: 100%; }
  .content-card { padding: 20px; }
  .privacy-notice { flex-direction: column; }
  .signup-card { align-items: flex-start; flex-direction: column; }
  .account-search > div { align-items: stretch; flex-direction: column; }
  .account-search .button { width: 100%; }
}

@media (max-width: 440px) {
  .nav-links > a:not(.button) { display: none; }
  .summary-heading { flex-direction: column; }
  .actions .button { width: 100%; }
  .auth-card { padding: 24px 20px; }
  .account-actions .button { min-height: 38px; padding: 7px 11px; }
  .account-role { display: none; }
  .dialog-actions, .cookie-dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button, .cookie-dialog-actions .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
