:root {
  --bg: #f6f5f1;
  --surface: #fff;
  --surface-soft: #faf9f6;
  --ink: #1c1b18;
  --ink-2: #3f3c36;
  --muted: #767167;
  --line: #e4e1d9;
  --line-soft: #eeebe5;
  --accent: #2b2a26;
  --ok: #237a4b;
  --ok-soft: #e7f1ea;
  --bad: #b8382c;
  --bad-soft: #f8e8e4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; display: flex; flex-direction: column; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button:disabled[data-unavailable] { cursor: not-allowed; }
a { color: inherit; }
button, input, textarea, select { border-radius: 7px; }
:focus-visible { outline: 3px solid rgba(47, 84, 235, .4); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.16; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
h2 { font-size: 23px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 16px; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 24px; padding: 12px 20px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 20px max(32px, calc((100vw - 1248px) / 2)); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 27px; height: 27px; }
.brand-word { font-size: 21px; font-weight: 400; letter-spacing: -.9px; }
.brand-word b { font-weight: 650; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.header-email { color: var(--muted); font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.text-link, .text-button, .back-link { font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.text-link:hover, .text-button:hover, .back-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.text-link span { margin-left: 6px; color: var(--muted); }
.main { flex: 1; width: 100%; padding: 52px 32px 80px; outline: none; }
.loading { display: flex; justify-content: center; gap: 10px; align-items: center; color: var(--muted); padding: 100px 0; }
.loading-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: pulse 1.5s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.notice { max-width: 1184px; margin: 0 auto 24px; padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; color: var(--ink-2); overflow-wrap: anywhere; }
.notice.error { border-color: #e9c9c3; color: var(--bad); background: var(--bad-soft); }
.auth-layout { max-width: 468px; margin: 8px auto 0; }
.auth-intro { text-align: center; margin-bottom: 29px; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.5; letter-spacing: 1.4px; text-transform: uppercase; }
.auth-intro .eyebrow { margin-bottom: 13px; }
.auth-intro h1 { font-size: 34px; }
.lede { color: var(--muted); font-size: 15px; margin-top: 12px; line-height: 1.6; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 2px 3px rgba(28,27,24,.025); }
.auth-card { padding: 28px 32px 26px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: #eeece6; padding: 4px; border-radius: 9px; margin-bottom: 26px; }
.segmented button { padding: 9px 8px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; line-height: 1.4; }
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(28,27,24,.12); }
.field { margin-bottom: 18px; }
label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 7px; color: var(--ink-2); font-size: 12px; font-weight: 600; }
.optional { color: var(--muted); font-weight: 400; font-size: 11px; }
input, textarea, select { width: 100%; background: #fff; border: 1px solid #d8d4ca; color: var(--ink); padding: 11px 12px; line-height: 1.4; transition: border-color .15s; }
input:hover, textarea:hover, select:hover { border-color: #b2ada3; }
input:focus, textarea:focus, select:focus { border-color: #6d685e; outline: 2px solid rgba(28,27,24,.12); outline-offset: 1px; }
input::placeholder, textarea::placeholder { color: #999389; opacity: 1; }
input[readonly] { background: var(--surface-soft); color: var(--muted); }
textarea { resize: vertical; min-height: 79px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid transparent; padding: 11px 17px; font-size: 13px; font-weight: 550; line-height: 1.5; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s; }
.button-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.button-primary:hover { background: #44423c; border-color: #44423c; }
.button-secondary { background: #fff; color: var(--ink-2); border-color: #d8d4ca; box-shadow: 0 1px 1px rgba(28,27,24,.025); }
.button-secondary:hover { background: var(--surface-soft); border-color: #b2ada3; }
.button-quiet { background: transparent; color: var(--ink-2); }
.button-quiet:hover { background: #ece9e1; }
.button-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.button-danger:hover { background: #982d23; border-color: #982d23; }
.button-small { padding: 7px 12px; font-size: 12px; gap: 7px; }
.button-full { width: 100%; }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: .55; pointer-events: none; }
.button-full span { margin-left: auto; }
.form-note { margin-top: 13px; font-size: 11px; text-align: center; color: var(--muted); }
.review-note { display: flex; justify-content: center; align-items: flex-start; gap: 8px; color: var(--ink-2); font-size: 12px; margin-top: 21px; }
.review-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; color: var(--muted); }
.privacy-note { font-size: 11px; color: var(--muted); text-align: center; max-width: 350px; margin: 11px auto 0; line-height: 1.65; }
.form-error, .form-success { padding: 10px 12px; border-radius: 6px; margin: 0 0 16px; font-size: 12px; overflow-wrap: anywhere; }
.form-error { background: var(--bad-soft); color: var(--bad); }
.form-success { background: var(--ok-soft); color: var(--ok); }
.back-link, .text-button { padding: 0; background: none; border: 0; }
.back-link { font-size: 12px; }
.back-link span { margin-right: 6px; }
.code-heading { margin: 26px 0; text-align: center; }
.icon-tile { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #666157; }
.icon-tile svg { width: 23px; height: 23px; }
.code-heading .icon-tile { margin-bottom: 15px; }
.code-heading h2 { margin-bottom: 9px; }
.code-heading p { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.code-heading strong { color: var(--ink-2); font-weight: 550; }
.code-input { font: 23px/1.4 var(--mono); letter-spacing: .34em; padding: 13px 10px 13px 18px; text-align: center; }
.code-input::placeholder { color: #c2bdb3; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 7px; }
.resend-note { font-size: 12px; color: var(--muted); margin-top: 18px; text-align: center; }
.resend-note button { margin-left: 3px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.site-footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1248px; width: 100%; padding: 22px 32px 28px; margin: auto auto 0; font-size: 11px; color: var(--muted); }
.site-footer span:first-child { font-weight: 600; }
.account-layout { max-width: 1184px; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 8px 0 35px; }
.page-heading .eyebrow { margin-bottom: 10px; }
.page-heading .lede { margin-top: 9px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 5px; color: #736142; background: #f5eddc; font-size: 11px; font-weight: 550; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.badge.active { color: var(--ok); background: var(--ok-soft); }
.badge.suspended, .badge.rejected { color: var(--bad); background: var(--bad-soft); }
.page-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.page-tabs button { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0 1px 13px; margin-bottom: -1px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; }
.page-tabs button[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.count { display: inline-flex; justify-content: center; align-items: center; min-width: 19px; height: 19px; border-radius: 4px; background: #eae5d9; color: var(--ink-2); font-size: 10px; padding: 0 5px; margin-left: 5px; }
.account-columns { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 28px; align-items: start; }
.workspace-column { min-width: 0; }
.access-card { padding: 40px; }
.access-card .icon-tile { margin-bottom: 25px; }
.access-card .eyebrow { margin-bottom: 9px; }
.access-card h2 { font-size: 28px; }
.access-card > p:not(.field-hint) { margin-top: 15px; max-width: 440px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.access-card .button { margin-top: 25px; }
.profile-card { padding: 27px; }
.profile-card .section-heading { margin-bottom: 25px; }
.profile-card h2 { font-size: 18px; }
.side-column { display: grid; gap: 20px; min-width: 0; }
.password-card { padding: 27px; }
.password-card h2 { font-size: 18px; }
.password-card .section-description { margin: 10px 0 18px; line-height: 1.6; }
.password-card form > .field-hint { margin: 0 0 16px; }
.form-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.verified-label { color: var(--ok); font-size: 10px; font-weight: 550; }
.verified-label::before { content: "✓"; margin-right: 3px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.subtle-label { color: var(--muted); font-size: 11px; font-weight: 400; }
.workspaces-card { padding: 30px; }
.section-description { margin-top: 10px; color: var(--muted); font-size: 13px; }
.small-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); margin-right: 5px; }
.workspace-list { margin-top: 28px; }
.workspace-item { padding: 22px 0; border-top: 1px solid var(--line-soft); }
.workspace-item:last-child { padding-bottom: 0; }
.workspace-item h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.workspace-url { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.workspace-item .button { margin-top: 18px; }
.workspace-item .field-hint { margin-top: 13px; }
.inline-notice { padding: 12px 16px; font-size: 12px; color: #736142; background: #f5eddc; border-radius: 7px; margin: 0 20px 18px; }
.workspace-item .inline-notice { margin: 10px 0 0; }
.admin-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.admin-heading h2 { font-size: 24px; }
.workspace-admin-card { padding: 26px 28px; margin-bottom: 34px; }
.workspace-admin-card .admin-heading { margin-bottom: 22px; }
.workspace-admin-card .eyebrow { margin-bottom: 7px; }
.workspace-admin-card .section-description { max-width: 640px; line-height: 1.65; }
.workspace-admin-card .admin-heading > .button { flex: none; margin-top: 3px; }
.admin-workspace-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-workspace-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--surface-soft); padding: 17px 18px; border-radius: 9px; }
.admin-workspace-info { min-width: 0; }
.admin-workspace-item h3 { font-size: 14px; margin-bottom: 5px; overflow-wrap: anywhere; }
.admin-workspace-item .workspace-url { font-size: 11px; }
.admin-workspace-item > .badge { flex: none; margin-top: 2px; }
.workspace-job { grid-column: 1 / -1; }
.workspace-job-failed { background: #fffafa; border-color: #ead4ce; }
.workspace-job-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; flex: none; }
.workspace-job-description, .workspace-job-error { margin-top: 10px; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.workspace-job-description { color: var(--muted); }
.workspace-job-error { color: var(--bad); }
.workspace-inline-note, .workspace-empty { font-size: 12px; color: var(--muted); line-height: 1.65; }
.workspace-inline-note { padding: 11px 14px; border: 1px solid var(--line); background: var(--surface-soft); border-radius: 7px; margin-bottom: 16px; }
.workspace-empty { padding: 18px 0 2px; border-top: 1px solid var(--line-soft); }
.badge-progress::before { animation: pulse 1.5s ease-in-out infinite; }
.dialog-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 13px 0 23px; }
.workspace-preview { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 7px; padding: 12px 14px; margin-bottom: 22px; }
.workspace-preview > p { margin-top: 4px; font: 12px/1.7 var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
#workspace-create-note { margin: 0 0 18px; }
.users-card { overflow: hidden; }
.table-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 20px; }
.search-field { flex: 1; min-width: 210px; max-width: 370px; margin: 0; }
.search-field input { padding: 9px 12px; font-size: 12px; }
.filter-field { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.filter-field label { margin: 0; color: var(--muted); font-size: 11px; font-weight: 500; }
.filter-field select { width: auto; padding: 9px 28px 9px 10px; font-size: 12px; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.users-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 920px; }
.users-table th { padding: 13px 20px; background: var(--surface-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .25px; }
.users-table td { padding: 20px; vertical-align: top; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.users-table tbody tr:last-child td { border-bottom: 0; }
.users-table th:first-child { width: 23%; }
.users-table th:nth-child(2) { width: 24%; }
.users-table th:nth-child(3) { width: 18%; }
.users-table th:nth-child(4) { width: 18%; }
.user-name { display: block; font-weight: 600; margin-bottom: 3px; overflow-wrap: anywhere; }
.user-email { display: block; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.user-company { display: block; margin-bottom: 5px; font-weight: 500; overflow-wrap: anywhere; }
.user-purpose { display: block; max-width: 260px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 11px; color: var(--muted); }
.user-date { display: block; font-size: 11px; }
.user-last-login { display: block; color: var(--muted); font-size: 10px; margin-top: 5px; }
.user-studio { display: block; color: var(--muted); font-size: 10px; margin-top: 8px; overflow-wrap: anywhere; }
.user-actions { display: flex; flex-wrap: wrap; gap: 7px; max-width: 170px; }
.user-actions .button { padding: 5px 9px; font-size: 10px; }
.admin-label { color: var(--muted); font-size: 9px; font-weight: 500; margin-left: 6px; }
.table-notice { margin: 0 20px 16px; }
.table-empty { text-align: center; padding: 52px 24px; border-top: 1px solid var(--line-soft); }
.table-empty p { color: var(--muted); font-size: 12px; margin-top: 7px; }
dialog { width: min(460px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 14px; padding: 30px; color: var(--ink); box-shadow: 0 24px 80px rgba(28,27,24,.18); }
dialog::backdrop { background: rgba(28,27,24,.3); backdrop-filter: blur(3px); }
dialog .eyebrow { margin-bottom: 10px; }
dialog h2 { margin-bottom: 13px; }
#action-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 23px; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding-top: 9px; }
@media (min-width: 1500px) { .auth-layout { margin-top: 25px; } }
@media (max-width: 900px) { .account-columns { grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; } .access-card { padding: 30px; } .profile-card, .password-card { padding: 24px; } }
@media (max-width: 740px) { .site-header { padding: 18px 22px; min-height: 76px; } .main { padding: 34px 22px 60px; } .header-email { display: none; } .account-columns { grid-template-columns: 1fr; } .page-heading { align-items: flex-start; margin-bottom: 26px; } .profile-card, .password-card { padding: 26px; } .workspaces-card, .access-card { padding: 30px 26px; } .site-footer { padding-left: 22px; padding-right: 22px; } .table-toolbar { padding: 16px; gap: 12px; } .search-field { max-width: none; flex-basis: 100%; } .filter-field { margin-left: 0; } #user-count { margin-left: auto; } }
@media (max-width: 600px) {
  .workspace-admin-card { padding: 23px 20px; margin-bottom: 28px; }
  .workspace-admin-card .admin-heading { flex-direction: column; gap: 16px; }
  .workspace-admin-card .admin-heading > .button { margin-top: 0; }
  .admin-workspace-list { grid-template-columns: 1fr; }
  .workspace-job { flex-direction: column; gap: 14px; }
  .table-scroll { overflow: visible; }
  .users-table { display: block; min-width: 0; }
  .users-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .users-table tbody, .users-table tr { display: block; width: 100%; }
  .users-table tr { padding: 20px 0; border-top: 1px solid var(--line-soft); }
  .users-table td { display: block; width: 100%; padding: 6px 20px; border: 0; }
  .users-table td:first-child { padding-top: 0; }
  .users-table td:last-child { padding-top: 12px; padding-bottom: 0; }
  .users-table td[data-label]::before { content: attr(data-label); display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 6px; }
  .user-name { font-size: 14px; }
  .user-email, .user-company, .user-purpose { font-size: 12px; max-width: none; }
  .user-date { display: inline; }
  .user-last-login { display: inline; margin-left: 8px; }
  .user-studio { display: inline-block; margin: 0 0 0 9px; }
  .user-actions { max-width: none; }
  .user-actions .button { padding: 8px 13px; font-size: 11px; }
  .user-actions .subtle-label { align-self: center; }
}
@media (max-width: 420px) { .site-header { padding: 17px 18px; } .brand-word { font-size: 19px; } .brand-mark { width: 25px; height: 25px; } .text-link { font-size: 11px; } .main { padding: 30px 16px 48px; } .auth-layout { margin-top: 3px; } .auth-intro h1 { font-size: 30px; } .auth-intro { margin-bottom: 23px; } .auth-card { padding: 24px; } .privacy-note { max-width: 300px; } .page-heading { flex-direction: column; gap: 15px; } .page-heading h1 { font-size: 32px; } .site-footer { flex-direction: column; align-items: center; gap: 5px; padding: 20px 16px; } .review-note { padding: 0 6px; font-size: 11px; } .access-card h2 { font-size: 26px; } dialog { padding: 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
