:root {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color: #27292d;
  background: #f5f6f7;
  font-synthesis: none;
  --muted: #757a82;
  --line: rgba(35, 42, 52, .09);
  --white: rgba(255, 255, 255, .86);
  --radius: 19px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 14px; line-height: 1.55; letter-spacing: -.012em; }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .48; }
a { color: inherit; }
button, input, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid #748598; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(29px, 3.1vw, 39px); line-height: 1.13; letter-spacing: -.055em; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.025em; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
svg { width: 18px; height: 18px; flex-shrink: 0; }
.skip-link { position: fixed; top: -60px; left: 18px; z-index: 100; background: #fff; padding: 12px 18px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 29px 16px 17px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(239,242,244,.95), rgba(248,249,250,.72)); backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: flex-start; flex-direction: column; margin: 3px 17px 36px; text-decoration: none; }
.brand img { width: 115px; height: auto; display: block; }
.brand span { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 9px; margin-top: 11px; }
.nav-label { color: #90949b; font-size: 10px; letter-spacing: .085em; text-transform: uppercase; padding: 0 14px; margin-bottom: 10px; }
.navigation { display: grid; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid transparent; background: transparent; padding: 11px 13px; border-radius: 11px; text-align: left; color: #747980; }
.nav-button:hover { background: rgba(255,255,255,.56); color: #33373c; }
.nav-button.active { background: #fff; color: #2f3338; box-shadow: 0 2px 7px rgba(25,31,42,.025); border-color: rgba(255,255,255,.9); }
.nav-button .nav-badge { margin-left: auto; font-size: 9px; color: #858991; background: #f0f1f3; border-radius: 5px; padding: 1px 5px; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; position: relative; }
.sidebar-note { font-size: 11px; color: #999da3; margin: 0 14px 15px; }
.workspace-trigger { display: flex; align-items: center; width: 100%; gap: 10px; background: var(--white); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 3px 15px rgba(28,34,40,.045); border-radius: 14px; padding: 12px 10px; text-align: left; }
.workspace-trigger .workspace-copy { min-width: 0; flex: 1; }
.workspace-copy strong, .workspace-copy span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.workspace-copy strong { font-size: 12px; font-weight: 600; }
.workspace-copy span { font-size: 10px; color: var(--muted); margin-top: 2px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: #f3f4f5; color: #626971; font-size: 12px; font-weight: 550; flex-shrink: 0; }
.workspace-popover { position: absolute; left: 0; bottom: 85px; z-index: 30; width: 316px; max-width: calc(100vw - 30px); max-height: min(520px, 70vh); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 15px 70px rgba(20,29,41,.14); padding: 10px; }
.workspace-popover input { width: 100%; padding: 11px; margin-bottom: 8px; background: #f6f7f8; }
.workspace-option { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 10px; border-radius: 10px; text-align: left; }
.workspace-option:hover, .workspace-option.selected { background: #f3f5f6; }
.workspace-option .option-copy { min-width: 0; }
.workspace-option strong { font-size: 12px; display: block; }
.workspace-option small { font-size: 10px; color: var(--muted); display: block; }
.workspace-section { font-size: 10px; color: var(--muted); margin: 13px 10px 5px; }
.account-line { display: flex; gap: 7px; align-items: center; margin: 14px 11px 0; font-size: 10px; color: #858a91; }
.account-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.icon-button { background: transparent; border: 0; border-radius: 6px; padding: 4px; display: inline-flex; }
.icon-button svg { width: 15px; height: 15px; }
.main { padding: 27px 42px 64px; max-width: 1530px; width: 100%; margin: 0 auto; }
.topline { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #8a8e94; font-size: 11px; margin-bottom: 40px; }
.breadcrumb { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumb span:last-child { color: #60666e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topline .identity-name { color: #8a8e94; text-align: right; }
.page-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 29px; }
.page-heading p { color: var(--muted); margin-top: 12px; font-size: 13px; max-width: 650px; }
.page-heading .btn { flex-shrink: 0; }
.partner-select { width: auto; max-width: 240px; }
.eyebrow { font-size: 10px; color: #848a91; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 9px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #dfe3e7; background: rgba(234,238,241,.68); border-radius: 12px; padding: 10px 14px; margin-bottom: 27px; font-size: 11px; color: #68717a; }
.demo-banner strong { color: #4e5964; font-weight: 600; }
.demo-banner select { max-width: 250px; background: rgba(255,255,255,.76); font-size: 11px; padding: 7px 28px 7px 10px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat { border: 1px solid rgba(255,255,255,.95); background: rgba(255,255,255,.63); border-radius: 15px; padding: 21px 24px 19px; }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-value { font-size: 32px; line-height: 1.3; letter-spacing: -.055em; margin: 6px 0 4px; font-weight: 550; }
.stat-detail { font-size: 10px; color: #92979e; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(275px, 1fr); align-items: start; gap: 24px; }
.card { background: var(--white); border: 1px solid rgba(255,255,255,.95); border-radius: var(--radius); box-shadow: 0 3px 20px rgba(35,43,55,.023); overflow: hidden; }
.card + .card { margin-top: 21px; }
.card-head { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding: 23px 24px 20px; }
.card-head h2 { font-size: 16px; }
.card-head p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.card-body { padding: 0 24px 25px; }
.card-body.padded { padding-top: 24px; }
.card-head .count { font-size: 11px; color: #8d9198; }
.customer-list { display: grid; }
.customer-row { display: flex; align-items: center; gap: 13px; padding: 18px 24px; border-top: 1px solid var(--line); }
.customer-row .avatar { width: 40px; height: 40px; border-radius: 12px; }
.customer-info { min-width: 0; flex: 1; }
.customer-name { font-weight: 550; display: block; text-align: left; background: transparent; padding: 0; border: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.customer-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 5px; font-size: 10px; color: #969aa1; }
.customer-row .btn { padding: 7px 11px; font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; color: #818992; white-space: nowrap; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #a3a9af; flex-shrink: 0; }
.status.ok::before { background: #88a093; }
.status.warn::before { background: #b49e90; }
.status.pending::before { background: #abb1b7; }
.btn { border: 1px solid #e3e5e8; background: rgba(255,255,255,.9); padding: 10px 16px; border-radius: 10px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; line-height: 1.5; }
.btn:hover:not(:disabled) { background: #f5f6f7; border-color: #d2d6db; }
.btn.primary { background: #303338; border-color: #303338; color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.07); }
.btn.primary:hover:not(:disabled) { background: #44484e; }
.btn.danger { color: #995f59; background: #fff; border-color: #e9dad7; }
.btn.subtle { background: transparent; border-color: transparent; color: #747c84; }
.btn.full { width: 100%; }
.btn svg { width: 15px; height: 15px; }
.form { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 11px; color: #5f666e; }
input, select { width: 100%; min-width: 0; border: 1px solid #e0e3e7; border-radius: 9px; background: #fcfcfd; padding: 10px 11px; color: #383e45; font-size: 12px; }
input::placeholder { color: #a1a6ad; }
.field-hint, .small-note { font-size: 10px; color: #959ba2; line-height: 1.65; }
.subtle-rule { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.invitation-result { margin-top: 17px; border-top: 1px solid var(--line); padding-top: 15px; }
.invitation-result p { font-size: 11px; color: #68727a; margin-bottom: 10px; }
.copy-row { display: flex; gap: 6px; }
.copy-row input { font-size: 10px; background: #f6f7f8; }
.copy-row .btn { padding: 8px 10px; }
.empty { padding: 32px 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); text-align: center; }
.empty p + p { margin-top: 8px; font-size: 11px; color: #9a9fa6; }
.message { border: 1px solid #e0e4e8; border-radius: 12px; padding: 15px 17px; background: #f5f7f8; font-size: 12px; color: #737d86; line-height: 1.65; }
.message strong { display: block; color: #505b66; font-weight: 550; margin-bottom: 4px; }
.message.error { border-color: #eadbd7; background: #faf5f4; color: #986c65; }
.message.mock { margin-bottom: 24px; background: #eeeff2; border-color: #e0e3e6; }
.stack { display: grid; gap: 21px; }
.stack > .card + .card { margin-top: 0; }
.info-list { margin: 0; }
.info-line { display: grid; grid-template-columns: 1fr 1.5fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.info-line:last-child { border-bottom: 0; }
.info-line dt { color: #959ba1; }
.info-line dd { margin: 0; color: #555e67; text-align: right; overflow-wrap: anywhere; }
.info-line dd.mono { font-size: 10px; font-family: ui-monospace, SFMono-Regular, monospace; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.step-list li:last-child { border-bottom: 0; }
.step-number { border: 1px solid #e0e4e7; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-size: 10px; color: #9ba1a7; flex-shrink: 0; }
.step-number.done { background: #f0f4f2; color: #8a9b90; border-color: #e6ede8; }
.step-copy strong { display: block; font-size: 12px; font-weight: 550; }
.step-copy p { font-size: 11px; color: #949ba2; margin-top: 3px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 19px; }
.section-title { font-size: 14px; margin: 29px 0 13px; font-weight: 550; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { padding: 12px 24px; color: #9399a1; font-size: 10px; font-weight: 500; background: #fafbfc; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
td { padding: 16px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td .secondary { display: block; font-size: 10px; color: #959ba2; margin-top: 3px; }
td .btn { padding: 6px 11px; font-size: 10px; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.mock-grid .card + .card { margin-top: 0; }
.mock-price { font-size: 36px; letter-spacing: -.04em; line-height: 1.3; margin-bottom: 6px; color: #747c85; }
.mock-price small { font-size: 12px; letter-spacing: 0; color: #969ca3; margin-left: 5px; }
.mock-card { position: relative; }
.mock-card .stat-value { color: #6b757f; }
.mock-tag { font-size: 9px; text-transform: uppercase; letter-spacing: .075em; color: #a0a5ac; border: 1px solid #e5e8ec; border-radius: 5px; padding: 3px 6px; }
.identity-strip { display: flex; align-items: center; gap: 9px; font-size: 11px; color: #8d959c; margin-bottom: 20px; }
.identity-strip svg { width: 14px; height: 14px; }
.permissions { margin: 13px 0 0; padding-left: 17px; color: #7c858f; font-size: 12px; }
.permissions li { padding: 4px 0; }
.notice { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 100; max-width: min(580px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: #30353c; color: #fff; font-size: 12px; box-shadow: 0 8px 30px rgba(25,30,39,.14); }
.confirmation { border: 1px solid rgba(255,255,255,.8); border-radius: 22px; padding: 29px; width: min(465px, calc(100vw - 36px)); background: #fafbfc; color: #353a42; box-shadow: 0 24px 100px rgba(0,0,0,.17); }
.confirmation::backdrop { background: rgba(50,57,67,.2); backdrop-filter: blur(5px); }
.confirmation h2 { margin-bottom: 11px; font-size: 20px; }
.confirmation p { font-size: 13px; color: #7f8892; line-height: 1.65; }
.confirmation .action-row { justify-content: flex-end; margin-top: 24px; }
.login-screen, .loading-screen { min-height: 100dvh; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 28px; background: radial-gradient(ellipse at 20% 15%,#edf0f3,transparent 60%),#f5f6f7; }
.login-card { max-width: 520px; width: 100%; background: rgba(255,255,255,.8); border: 1px solid #fff; padding: 43px; border-radius: 25px; box-shadow: 0 12px 55px rgba(25,32,40,.05); }
.login-card .brand { margin: 0 0 42px; }
.login-card h1 { font-size: 36px; letter-spacing: -.025em; }
.login-card > p { color: #848b94; font-size: 13px; margin: 17px 0 25px; }
.login-card .small-note { margin-top: 18px; display: block; }
.login-card .demo-banner { display: block; margin: 23px 0 0; }
.login-card .demo-banner select { max-width: none; margin-top: 10px; }
.login-actions { display: grid; gap: 10px; }
.login-card > .message + .login-actions { margin-top: 18px; }
.existing-login { margin-top: 23px; padding-top: 19px; border-top: 1px solid var(--line); }
.existing-login > p { color: var(--muted); font-size: 10px; text-align: center; margin-bottom: 7px; }
.account-security { display: flex; align-items: center; gap: 10px; padding: 13px 10px 5px; margin-top: 9px; border-top: 1px solid var(--line); text-decoration: none; font-size: 11px; color: #68717a; }
.account-security span { flex: 1; }
.account-security small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.account-security > svg { width: 15px; height: 15px; }
.invite-card .info-list { margin-bottom: 20px; }
.loading-screen p { color: #969da5; margin-top: 15px; font-size: 13px; }
.loading-mark { width: 30px; height: 30px; border-radius: 10px; background: #dce2e7; box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); }
.invite-card { max-width: 630px; }
.invite-card .permissions { margin-bottom: 24px; }
.invite-card h1 { font-size: 31px; }
.muted { color: var(--muted); }
.mt { margin-top: 21px; }
.mobile-workspace { display: none; }
@media (min-width: 1700px) { .main { padding-left: 60px; padding-right: 60px; } }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .main { padding: 27px 27px 50px; }
  .content-grid { grid-template-columns: 1fr; }
  .content-grid > .stack { grid-template-columns: 1fr 1fr; }
  .stat { padding: 18px; }
  .customer-row { padding: 17px 20px; }
  .topline .identity-name { display: none; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; padding: 17px 18px 11px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0 0 17px; }
  .brand img { width: 100px; }
  .brand span { display: none; }
  .nav-label, .sidebar-note { display: none; }
  .navigation { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 2px; }
  .nav-button { width: auto; white-space: nowrap; font-size: 11px; padding: 8px 10px; gap: 7px; }
  .nav-button svg { width: 14px; height: 14px; }
  .sidebar-bottom { position: absolute; top: 11px; right: 18px; padding: 0; width: min(205px, 55vw); }
  .workspace-trigger { padding: 7px 9px; border-radius: 9px; gap: 7px; }
  .workspace-trigger .avatar { display: none; }
  .workspace-copy span { display: none; }
  .workspace-copy strong { font-size: 11px; }
  .workspace-popover { left: auto; right: 0; top: 44px; bottom: auto; }
  .account-line { display: none; }
  .main { padding: 19px 19px 42px; }
  .topline { margin-bottom: 26px; font-size: 10px; }
  .page-heading { align-items: flex-start; margin-bottom: 22px; }
  .page-heading p { font-size: 12px; }
  .demo-banner { flex-direction: column; align-items: stretch; gap: 8px; padding: 11px 13px; }
  .demo-banner select { max-width: none; }
  .stats { gap: 9px; margin-bottom: 19px; }
  .stat { padding: 15px 11px; border-radius: 11px; }
  .stat-value { font-size: 25px; }
  .stat-label { font-size: 10px; }
  .stat-detail { font-size: 9px; }
  .content-grid > .stack, .mock-grid { grid-template-columns: 1fr; }
  .card { border-radius: 15px; }
  .card-head { padding: 21px 19px 18px; }
  .card-body { padding: 0 19px 22px; }
  .customer-row { gap: 10px; padding: 16px 19px; }
  .customer-row .avatar { width: 33px; height: 33px; font-size: 10px; border-radius: 10px; }
  .customer-row .btn { padding: 7px; font-size: 0; gap: 0; }
  .customer-row .btn svg { width: 16px; height: 16px; }
  .customer-name { font-size: 12px; }
  td, th { padding: 13px 18px; }
  .login-card { padding: 29px 25px; }
  .login-card h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-button, .workspace-option { transition: background .13s ease, border-color .13s ease; }
}
