:root{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;color:#14213d;background:#fbf7f0;font-size:15px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #be482b;outline-offset:2px}header{height:68px;background:#14213d;color:white;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(15px,4vw,50px);gap:15px}.brand{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:750}.brand b{color:#ff987e}.brand-icon{background:#f2623f;border-radius:11px;padding:8px 11px;font-size:22px}.header-right{display:flex;gap:12px;align-items:center}.pill{font-size:10px;font-weight:800;letter-spacing:1px;background:#14213d;padding:6px 9px;border-radius:20px}button.link{border:0;background:none;color:white;text-decoration:underline}.layout{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:calc(100vh - 68px)}.sidebar{background:#fbf7f0;border-right:1px solid #e5dbd0;padding:18px 12px;display:flex;flex-direction:column;gap:8px}.nav{padding:13px;border:0;background:transparent;border-radius:10px;text-align:left;color:#14213d;font-weight:650}.nav.active{background:#fce8df;color:#14213d}.sidebar-info{margin-top:auto;background:white;border:1px solid #e5dbd0;padding:14px;border-radius:10px;color:#4f5260;line-height:1.7;font-size:12px}.workspace{min-width:0;display:flex;flex-direction:column}.workspace-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:20px 24px;border-bottom:1px solid #e5dbd0;background:white}.workspace-head h2{font-size:20px;margin:0}.workspace-head p{color:#4f5260;margin:5px 0 0;font-size:12px}.workspace-content{flex:1;padding:25px;overflow:auto;max-height:calc(100vh - 240px);min-height:360px}.composer{padding:14px 20px;background:white;border-top:1px solid #e5dbd0}.row{display:flex;align-items:center;gap:10px}.row+.row{margin-top:10px}.composer .row textarea{flex:1;min-width:0;resize:vertical;border:1px solid #e5dbd0;border-radius:10px;padding:12px;max-height:150px}.composer select,.attach-label{border:1px solid #e5dbd0;background:white;border-radius:9px;color:#4f5260;padding:9px;font-size:12px}.attach-label{cursor:pointer}.primary{background:#f2623f;color:white;padding:12px 17px;border:0;border-radius:9px;font-weight:750}.primary:disabled{opacity:.55;cursor:wait}.outline{background:white;border:1px solid #e5dbd0;border-radius:9px;padding:10px 13px;color:#14213d;font-weight:700}.small{font-size:11px;color:#4f5260;line-height:1.6}.auth{max-width:440px;margin:60px auto;padding:28px}.card,.item,.chat-bubble,.intro{background:white;border:1px solid #e5dbd0;border-radius:14px}.auth h1{font-size:25px;line-height:1.2}.auth p{color:#4f5260}.auth label,.field{display:block;font-size:13px;font-weight:700;margin:14px 0}.auth input,.field input,.field select,.field textarea{display:block;width:100%;border:1px solid #e5dbd0;border-radius:9px;padding:12px;margin-top:6px;background:white;color:#14213d}.auth .primary{width:100%;margin-top:10px}.tabs{display:flex;background:#fce8df;border-radius:9px;padding:4px;gap:4px}.tabs button{flex:1;border:0;padding:9px;border-radius:7px;background:transparent}.tabs button.active{background:white;color:#14213d;font-weight:800}.intro{text-align:center;max-width:620px;margin:15px auto;padding:30px}.intro h1{font-size:27px;margin:8px}.intro p{color:#4f5260}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:620px;margin:18px auto}.item{padding:17px}.quick{color:#14213d;text-align:left;cursor:pointer}.quick:hover{border-color:#f2623f}.quick strong{display:block;margin:8px 0}.quick span{color:#4f5260;font-size:12px}.chat-line{display:flex;margin:15px 0;gap:10px}.chat-line.user{justify-content:flex-end}.chat-bubble{white-space:pre-wrap;line-height:1.7;max-width:min(80%,680px);padding:13px 16px}.user .chat-bubble{background:#f2623f;color:white;border-color:#f2623f}.bot-icon{background:#fce8df;color:#14213d;width:30px;height:30px;border-radius:9px;display:grid;place-items:center;flex-shrink:0}.toolbar{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}.subtitle{color:#4f5260;font-size:13px}.panel{max-width:750px;margin:auto}.panel h3{margin:5px 0 8px;font-size:22px}.device-card{display:flex;justify-content:space-between;align-items:center;gap:10px}.muted{color:#4f5260}.notice{background:#fce8df;padding:14px;border:1px solid #e5dbd0;border-radius:10px;line-height:1.6;font-size:13px}.support-form label{font-size:13px;font-weight:650;display:block;margin:12px 0}.support-form input,.support-form textarea,.support-form select{width:100%;display:block;border:1px solid #e5dbd0;border-radius:9px;padding:12px;margin-top:6px}.support-form label.consent{display:flex;align-items:flex-start;gap:8px;font-weight:400}.consent input{width:auto;margin-top:4px}.mobile-nav{display:none}#alert{padding:11px 20px;background:#fff4db;color:#694a00;border-bottom:1px solid #e5bf72;font-size:13px}#alert.success{background:#e5f7ed;color:#16623b;border-color:#b6e3c8}@media(max-width:720px){.layout{grid-template-columns:1fr}.sidebar{display:none}.mobile-nav{display:flex;background:#fff;border-bottom:1px solid #e5dbd0;overflow-x:auto;padding:8px;gap:5px}.mobile-nav button{white-space:nowrap;background:#fce8df;border:0;border-radius:7px;padding:10px;color:#14213d;font-size:12px}.workspace-head{padding:15px}.workspace-content{padding:13px;max-height:none}.composer{padding:12px}.quick-grid{gap:8px}.intro{padding:18px}.auth{margin:20px 12px}.brand{font-size:15px}.pill{display:none}header{height:60px}.chat-bubble{max-width:90%}}

/* Accidental Techie identity */
:root {
  --brand-ink: #14213d;
  --brand-blue: #f2623f;
  --brand-wash: #fce8df;
  --brand-muted: #4f5260;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--brand-ink);
  background: #fbf7f0;
}
[hidden] { display: none !important; }
header { background: var(--brand-ink); }
.brand { gap: 12px; letter-spacing: -.025em; }
.brand b { color: white; }
.brand-mark { flex: none; }
.landing {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  max-width: 1170px;
  margin: 0 auto;
  padding: clamp(24px, 6vw, 84px) clamp(16px, 4vw, 48px);
}
.welcome {
  background: var(--brand-wash);
  border: 1px solid #e5dbd0;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 54px);
}
.welcome h1 {
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.welcome > p, .auth > p { color: var(--brand-muted); line-height: 1.65; }
.welcome > p { font-size: 1.13rem; }
.help-topics { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 22px 0; }
.help-topics li { background: white; border: 1px solid #e5dbd0; border-radius: 999px; padding: 6px 12px; font-size: .86rem; }
.coach-preview { display: flex; gap: 12px; padding: 16px; background: white; border: 1px solid #e5dbd0; border-radius: 14px; }
.coach-preview p { margin: 4px 0 0; color: var(--brand-muted); line-height: 1.5; }
.coach-mark, .bot-icon { color: var(--brand-blue); background: var(--brand-wash); }
.coach-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.auth { max-width: none; margin: 0; padding: clamp(20px, 3vw, 32px); }
.auth h2 { font-size: 1.5rem; margin: 0; letter-spacing: -.025em; }
.primary, .user .chat-bubble { background: var(--brand-blue); border-color: var(--brand-blue); }
.nav.active, .mobile-nav button.active { background: #fce8df; color: #14213d; }
.intro .bot-icon { margin: 0 auto; }
@media (max-width: 760px) {
  .landing { grid-template-columns: minmax(0, 1fr); }
  .welcome { border-radius: 18px; }
}


/* Keep the pilot composer in view while the conversation scrolls. */
body:has(#application:not([hidden])) {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}
body:has(#application:not([hidden])) > header,
#alert, .workspace-head, .mobile-nav, .composer {
    flex: none;
}
#application {
    flex: 1;
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
}
#application .sidebar { overflow-y: auto; }
#application .workspace { min-height: 0; }
#application .workspace-content {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
.chat-bubble { overflow-wrap: anywhere; }
.coach-responding { color: var(--brand-muted); font-style: italic; }
.composer > .small { margin: 5px 0 0; }

.login-page { width: min(100% - 32px, 480px); margin: clamp(24px, 8vw, 80px) auto; }
.login-page h1 { margin: 14px 0 0; }
.back-link { display: inline-block; padding: 6px 0; color: #14213d; }
.access-link { display: inline-block; text-decoration: none; }
.maintenance-control { margin-bottom: 16px; }
.maintenance-switch { display: flex; align-items: center; gap: 12px; min-height: 48px; font-weight: 700; }
.maintenance-switch input { width: 24px; height: 24px; accent-color: var(--brand-blue); }
@media (max-width: 720px) { .mobile-nav { flex-wrap: wrap; } }

.admin-menu-groups { display: grid; gap: 8px; min-width: 0; }
.admin-menu { min-width: 0; background: white; border: 1px solid #e5dbd0; border-radius: 10px; }
.admin-menu summary { padding: 13px 10px; cursor: pointer; font-weight: 700; }
.admin-menu summary:focus-visible { outline: 3px solid #be482b; outline-offset: 2px; }
.admin-menu .nav { display: block; width: 100%; min-height: 44px; white-space: normal; }
.user-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.user-filters .field, .user-location .field { margin: 0; min-width: 0; }
.user-filters .toolbar { grid-column: 1 / -1; margin: 0; }
.user-filters input { min-width: 0; }
.user-results { display: grid; gap: 12px; }
.registered-user h3 { overflow-wrap: anywhere; }
.registered-user dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; }
.registered-user dt { font-weight: 650; }
.registered-user dd { margin: 0; overflow-wrap: anywhere; }
.user-location { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.user-location .field { flex: 1 1 170px; }
@media (max-width: 720px) {
    .mobile-nav .admin-menu-groups { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
    .mobile-nav .admin-menu button { white-space: normal; }
    .user-filters { grid-template-columns: minmax(0, 1fr); }
}


.mobile-admin { display: none; }
@media (max-width: 720px) {
    :root { font-size: 16px; }
    header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .brand { font-size: 18px; }
    header .link, .back-link, .access-link, .primary, .outline, .tabs button {
        min-height: 44px;
    }
    header .link, .primary, .outline, .tabs button { font-size: 16px; }
    .workspace-head { padding: 10px 16px; }
    .workspace-head h2 { font-size: 22px; }
    .workspace-head p, .subtitle, .composer .small { font-size: 13px; }
    .workspace-content { padding: 14px 16px; }
    .chat-bubble { max-width: 88%; font-size: 16px; line-height: 1.5; }
    .composer { padding: 8px max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
    .composer select, .attach-label { min-height: 44px; font-size: 14px; display: inline-flex; align-items: center; }
    .composer select { min-width: 0; max-width: 55%; }
    .composer textarea { font-size: 16px; padding: 8px 10px; }
    .auth input, .field input, .field select, .support-form input, .support-form select, .support-form textarea {
        font-size: 16px;
        min-height: 44px;
    }
    .quick { min-height: 56px; }

    .mobile-admin {
        display: block;
        flex: none;
        padding: 6px 12px;
        background: var(--brand-wash);
    }
    .mobile-admin .admin-menu summary { min-height: 44px; }
    .mobile-nav {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible;
        gap: 2px;
        padding: 4px max(5px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
        border: 0;
        border-top: 1px solid #e5dbd0;
        background: white;
        box-shadow: 0 -3px 12px #14213d0d;
    }
    .mobile-nav button {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        min-height: 65px;
        min-width: 0;
        padding: 4px 2px;
        background: transparent;
        color: var(--brand-muted);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }
    .mobile-nav button.active { color: #14213d; background: var(--brand-wash); }
    .mobile-tab-icon { font-size: 22px; line-height: 1; }
}


.user-list-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.compact-users { gap: 0; }
.registered-user-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    border-bottom: 1px solid #e5dbd0; padding: 0 8px; min-width: 0;
}
.registered-user-link {
    min-height: 44px; min-width: 0; padding: 5px 0; border: 0; background: transparent;
    color: #14213d; text-align: left; text-decoration: underline; overflow-wrap: anywhere; font-weight: 700;
}
.user-role { flex: none; font-size: 13px; color: var(--brand-muted); }
.admin-dialog {
    width: min(680px, calc(100% - 24px)); max-width: none;
    max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #e5dbd0;
    border-radius: 16px; color: var(--brand-ink); background: white;
}
.admin-dialog[open] { display: flex; flex-direction: column; }
.admin-dialog::backdrop { background: #14213d80; }
.admin-dialog-header {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex: none; padding: 12px 16px; border-bottom: 1px solid #e5dbd0;
}
.admin-dialog-header h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.admin-dialog-body { padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.registered-user-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin-top: 0; }
.registered-user-facts dt { font-weight: 650; }
.registered-user-facts dd { margin: 0; }
.admin-conversation { border: 1px solid #e5dbd0; border-radius: 10px; margin: 8px 0; }
.admin-conversation summary { min-height: 44px; padding: 10px; cursor: pointer; overflow-wrap: anywhere; }
.admin-conversation summary .subtitle { display: block; margin-top: 4px; }
.admin-conversation > div { padding: 0 10px 10px; }
.admin-transcript-message { padding: 8px 0; border-top: 1px solid #e5dbd0; }
.admin-transcript-message p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 720px) {
    .admin-dialog { max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .admin-dialog-header, .admin-dialog-body { padding: 12px; }
    .registered-user-link { font-size: 16px; }
}


.tester-access { margin: 18px 0; padding: 12px; border: 1px solid #e5dbd0; border-radius: 10px; }
.tester-access h3 { margin: 0; }
.tester-reset-form { padding: 0 12px 12px; }

.dashboard-panel, .dashboard-reports { display: grid; gap: 12px; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.dashboard-metric { display: grid; align-content: start; gap: 6px; min-width: 0; }
.dashboard-metric span { font-weight: 650; color: var(--brand-muted); }
.dashboard-metric strong { font-size: clamp(1.15rem,4vw,1.65rem); overflow-wrap: anywhere; }
.dashboard-action { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.usage-period { max-width: 220px; margin: 0; }
.usage-bars { display: grid; grid-template-columns: repeat(var(--days),minmax(0,1fr)); gap: 3px; height: 106px; align-items: end; border-bottom: 1px solid #e5dbd0; }
.usage-bar { height: var(--fill); min-height: 2px; max-width: 40px; width: 100%; justify-self: center; border-radius: 3px 3px 0 0; background: var(--brand-blue); }
.usage-chart-labels { display: flex; justify-content: space-between; font-size: 13px; margin: 5px 0 8px; }
.usage-daily-counts summary { min-height: 44px; padding: 10px 0; cursor: pointer; }
.usage-daily-counts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 260px; margin: 0; }
.usage-daily-counts dd { margin: 0; text-align: right; }
.dashboard-person, .dashboard-ticket { border-top: 1px solid #e5dbd0; padding: 8px 0; overflow-wrap: anywhere; }
.dashboard-person p, .dashboard-ticket p { margin: 3px 0; }
@media (max-width: 380px) {
    .dashboard-metric { padding: 12px; }
    .usage-bars { gap: 2px; }
}


.admin-activity-list { margin: 0; padding: 0; list-style: none; }
.admin-activity-row {
    display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 10px;
    align-items: baseline; padding: 12px 6px; border-bottom: 1px solid #e5dbd0;
}
.admin-activity-row time { text-align: right; }
.activity-accounts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--brand-muted); font-size: 14px; overflow-wrap: anywhere; }
.activity-accounts span { min-width: 0; }
@media (max-width: 480px) {
    .admin-activity-row { grid-template-columns: minmax(0,1fr); gap: 4px; }
    .admin-activity-row time { text-align: left; }
    .activity-accounts { flex-direction: column; }
}


.account-email-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.account-email-form .field { margin-top: 0; }
.account-email-form .primary { min-height: 44px; }

.account-panel { display: grid; gap: 12px; }
.account-card h3 { margin: 0 0 10px; }
.account-card > button + .outline, .account-card > .outline { margin-top: 8px; }
.close-account summary { cursor: pointer; padding: 6px 0; min-height: 44px; font-weight: 700; }
.account-confirm { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 10px; }
.account-confirm input { width: 22px; height: 22px; flex: none; }
@media (max-width: 480px) {
    header .brand { gap: 6px; font-size: 15px; }
    header .brand-mark { width: 33px; height: 33px; }
    header .header-right { gap: 4px; }
    header .header-right button { padding-inline: 4px; font-size: 14px; white-space: nowrap; }
    .account-card .primary, .account-card .outline { width: 100%; }
}

.own-tickets { margin: 12px 0; }
.own-tickets h3 { margin: 0 0 8px; }
.ticket-status-form { max-width: 360px; }
.ticket-status-form .field { margin: 8px 0; }
@media (max-width: 480px) {
    .ticket-status-form .primary { width: 100%; }
}

.chat-screenshot { display: block; max-width: 100%; max-height: 230px; object-fit: contain; margin-top: 8px; border-radius: 8px; }
.screenshot-link { display: block; width: fit-content; max-width: 100%; }
.shared-transcript { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }

.chat-support-action { margin-top: 12px; }
.chat-support-action button { min-height: 44px; max-width: 100%; white-space: normal; }

.getting-started { display: grid; gap: 12px; }
.onboarding-card h3 { margin: 0 0 8px; }
.onboarding-card p { margin: 6px 0; line-height: 1.55; }
.onboarding-topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.onboarding-topics button { display: flex; align-items: center; gap: 8px; min-height: 52px; text-align: left; }
.onboarding-actions { margin-bottom: 0; }
.account-guide-link { justify-self: start; }
@media (max-width: 380px) {
    .onboarding-topics { grid-template-columns: minmax(0,1fr); }
}


/* Accidental Techie identity from the supplied beta designs. */
:root {
    --brand-ink: #14213d;
    --brand-accent: #f2623f;
    --brand-blue: var(--brand-accent);
    --brand-wash: #fce8df;
    --brand-muted: #4f5260;
    --brand-paper: #fbf7f0;
    --brand-line: #e5dbd0;
    font-family: Inter, 'Segoe UI', system-ui, sans-serif;
    background: var(--brand-paper);
}
h1, h2, h3, .brand, .beta-brand { font-family: 'Space Grotesk', Inter, 'Segoe UI', system-ui, sans-serif; }
header { background: var(--brand-ink); color: white; }
.brand-mark { object-fit: contain; }
.brand-accent { color: #ff987e; }
.primary, .user .chat-bubble { background: var(--brand-accent); color: var(--brand-ink); border-color: var(--brand-accent); }
.outline { color: var(--brand-ink); border-color: var(--brand-line); }
.nav.active, .mobile-nav button.active, .tabs button.active { color: var(--brand-ink); background: var(--brand-wash); }
.coach-mark, .bot-icon { color: var(--brand-ink); background: var(--brand-wash); }
a:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; }
.beta-landing { font-size: 17px; line-height: 1.55; }
.beta-wrap { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.beta-header { display: block; height: auto; background: var(--brand-paper); color: var(--brand-ink); padding: 0; }
.beta-header-inner, .beta-header nav { display: flex; align-items: center; gap: clamp(10px,2vw,24px); }
.beta-header-inner { justify-content: space-between; padding: 16px 0; }
.beta-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 750; font-size: clamp(16px,2vw,23px); white-space: nowrap; text-decoration: none; color: var(--brand-ink); }
.beta-brand img { object-fit: contain; flex: none; }
.beta-brand b, .beta-hero h1 span { color: #bd4225; }
.beta-header nav a:not(.beta-button), .beta-footer a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.beta-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.beta-section { padding-block: clamp(42px,7vw,78px); }
.beta-hero, .beta-team, .beta-apply-grid { display: grid; grid-template-columns: minmax(0,1.07fr) minmax(0,1fr); gap: clamp(22px,5vw,60px); align-items: center; }
.beta-hero { padding-top: clamp(25px,5vw,52px); }
.beta-kicker { margin: 0 0 14px; font-weight: 650; font-size: 14px; }
.beta-landing h1 { font-size: clamp(40px,6vw,72px); line-height: 1.02; margin: 0 0 20px; letter-spacing: -.052em; }
.beta-landing h2 { font-size: clamp(28px,4vw,43px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.035em; }
.beta-landing h3 { font-size: clamp(18px,2vw,22px); line-height: 1.25; margin: 0 0 7px; }
.beta-lead { font-size: clamp(17px,2vw,21px); max-width: 36rem; }
.beta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.beta-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; border: 2px solid transparent; border-radius: 999px; padding: 8px 18px; background: var(--brand-accent); color: var(--brand-ink); font-size: 1rem; line-height: 1.2; font-weight: 750; text-decoration: none; text-align: center; }
.beta-button:disabled { opacity: .65; }
.beta-ghost { border-color: var(--brand-ink); background: transparent; }
.beta-chat, .beta-dark { background: var(--brand-ink); color: var(--brand-paper); }
.beta-chat { border-radius: 26px; padding: clamp(16px,4vw,28px); }
.beta-chat-title { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #ffffff29; padding-bottom: 12px; }
.beta-chat p { max-width: 88%; border-radius: 16px; margin: 12px 0 0; padding: 9px 13px; }
.beta-chat .beta-chat-you { background: #ffffff21; margin-left: auto; }
.beta-chat-coach { background: var(--brand-accent); color: var(--brand-ink); }
.beta-white { background: #fff; }
.beta-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding: 0; margin: 23px 0 0; }
.beta-grid > *, .beta-audiences article { padding: clamp(16px,3vw,26px); border: 1px solid var(--brand-line); border-radius: 18px; background: white; }
.beta-grid p, .beta-audiences p { margin: 0; }
.beta-topics article { background: var(--brand-paper); }
.beta-steps { list-style: none; counter-reset: beta-step; }
.beta-steps li { counter-increment: beta-step; }
.beta-steps li::before { content: counter(beta-step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-ink); color: white; margin-bottom: 12px; font-weight: 700; }
.beta-steps li:last-child { background: var(--brand-accent); border-color: transparent; }
.beta-audiences { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: clamp(23px,5vw,48px); }
.beta-audiences .beta-dark { background: var(--brand-ink); border-color: var(--brand-ink); }
.beta-art { overflow: hidden; border-radius: 20px; }
.beta-art svg { width: 100%; height: auto; }
.beta-faq { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 24px; }
.beta-faq details { border-bottom: 1px solid var(--brand-line); }
.beta-faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; min-height: 44px; }
.beta-faq p { margin: 0 0 12px; }
.beta-apply { background: var(--brand-accent); }
.beta-apply-grid { align-items: start; }
.beta-form { padding: clamp(16px,3vw,26px); border-radius: 18px; background: var(--brand-paper); }
.beta-form label { display: block; font-weight: 650; margin-bottom: 12px; }
.beta-form input { display: block; width: 100%; min-height: 46px; border: 1px solid #ae9e91; border-radius: 10px; padding: 8px 11px; margin-top: 4px; font-size: 16px; color: var(--brand-ink); background: white; }
.beta-form-note { font-size: 14px; }
#beta-result { margin-bottom: 0; }
#beta-result:empty { display: none; }
.beta-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; }
.beta-queue { display: grid; gap: 10px; }
.beta-queue article { overflow-wrap: anywhere; }
.beta-queue article h3 { margin: 0 0 4px; }
@media (max-width: 760px) {
    .beta-wrap { width: calc(100% - 32px); }
    .beta-hero, .beta-team, .beta-apply-grid { grid-template-columns: minmax(0,1fr); }
    .beta-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .beta-header nav .beta-nav-detail, .beta-header nav .beta-header-apply { display: none; }
    .beta-team .beta-art { order: 1; }
}
@media (max-width: 480px) {
    .beta-grid, .beta-audiences, .beta-faq { grid-template-columns: minmax(0,1fr); }
    .beta-header-inner { gap: 8px; padding-block: 10px; }
    .beta-brand img { width: 36px; height: 36px; }
    .beta-header nav { gap: 0; }
    .beta-actions .beta-button, .beta-form .beta-button { width: 100%; }
}

.registered-users-panel { max-width: 1120px; }
.registered-users-table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; }
.registered-users-table th, .registered-users-table td {
    padding: 4px 8px; border-bottom: 1px solid var(--brand-line); vertical-align: middle;
}
.registered-users-table th:nth-child(2) { width: 27%; }
.user-sort-heading { width: 100%; min-height: 44px; border: 0; background: transparent; text-align: left; color: inherit; padding: 4px 0; font-weight: 700; }
.registered-user-cell { min-width: 0; overflow-wrap: anywhere; }
.registered-user-cell .user-role { display: block; }
.registered-users-sort { display: none; }
@media (max-width: 760px) {
    .registered-users-sort { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
    .registered-users-sort .field { margin: 0; min-width: 0; }
    .registered-users-table thead { display: none; }
    .registered-users-table, .registered-users-table tbody, .registered-users-table tr { display: block; }
    .registered-users-table tr { border: 1px solid var(--brand-line); border-radius: 10px; background: white; padding: 7px 10px; margin-bottom: 8px; }
    .registered-users-table td { display: grid; grid-template-columns: 94px minmax(0,1fr); align-items: center; gap: 8px; border: 0; padding: 4px 0; }
    .registered-users-table td::before { content: attr(data-label); color: var(--brand-muted); font-size: 13px; font-weight: 700; }
}

/* Keep the chat starters in two rows on desktop. */
@media (min-width: 721px) {
    .workspace-content:has(.quick-grid) {
        padding-block: 14px;
    }

    .workspace-content:has(.quick-grid) .intro {
        margin-block: 0;
        padding: 8px 16px;
    }

    .workspace-content:has(.quick-grid) .intro .bot-icon {
        display: none;
    }

    .workspace-content:has(.quick-grid) .intro h1 {
        margin: 0;
        font-size: 22px;
    }

    .workspace-content:has(.quick-grid) .intro p {
        margin: 6px 0 0;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-block: 10px;
    }

    .quick-grid .quick {
        padding: 8px 12px;
    }

    .quick-grid .quick strong {
        margin: 4px 0 0;
    }

    .quick-grid .quick span {
        display: none;
    }
}

@media (max-width: 720px) {
    .workspace-content:has(.quick-grid) {
        padding-block: 8px;
    }

    .workspace-content:has(.quick-grid) .intro {
        margin: 0 auto;
        padding: 0;
        background: transparent;
        border: 0;
    }

    .workspace-content:has(.quick-grid) .intro h1 {
        margin: 0;
        font-size: 17px;
    }

    .workspace-content:has(.quick-grid) .intro .bot-icon,
    .workspace-content:has(.quick-grid) .intro p,
    .workspace-content:has(.quick-grid) .quick span,
    .workspace-content:has(.quick-grid) > .subtitle {
        display: none;
    }

    .quick-grid {
        gap: 6px;
        margin-block: 8px 0;
    }

    .quick-grid .quick {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 44px;
        padding: 5px 8px;
        font-size: 14px;
        line-height: 1.15;
    }

    .quick-grid .quick strong {
        margin: 0;
    }
}

@media (max-width: 720px) and (max-height: 650px) {
    .workspace-content:has(.quick-grid) {
        padding-block: 4px;
    }

    .quick-grid {
        margin-top: 3px;
    }

    .workspace:has(.quick-grid) .workspace-head {
        padding-block: 4px;
    }

    .workspace:has(.quick-grid) #view-subtitle,
    .workspace:has(.quick-grid) #chat-keyboard-hint {
        display: none;
    }

    .workspace:has(.quick-grid) .composer .row textarea {
        height: 44px;
    }

    .workspace:has(.quick-grid) .composer .row + .row {
        margin-top: 4px;
    }

    .workspace:has(.quick-grid) .mobile-nav button {
        min-height: 48px;
    }
}

