/* XizmatBOR / Premium. Shared tokens and components for the web application. */
:root{
 color-scheme:dark;--bg:#111315;--surface:#191c20;--surface2:#22262c;--surface3:#2a2f35;
 --text:#f3f0ea;--muted:#afb1b5;--line:#34383e;--brand:#efb75b;--brand2:#efb75b;
 --primary:#efb75b;--accent:#efb75b;--success:#92d4b2;--danger:#ff9da8;
 --action:#efb75b;--action-hover:#f7c879;--action-text:#18130a;--tint:#2d281e;
 --radius:16px;--shadow:0 8px 26px rgba(0,0,0,.08);--focus:#efb75b;
 --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;
 --motion-fast:160ms;--motion-panel:220ms;--ease:cubic-bezier(.2,.7,.2,1);
}
html[data-theme=light]{
 color-scheme:light;--bg:#f6f5f1;--surface:#fffefa;--surface2:#eeede7;--surface3:#e4e2d9;
 --text:#20211e;--muted:#66685f;--line:#ddded5;--brand:#85520d;--brand2:#85520d;
 --primary:#85520d;--accent:#85520d;--success:#266746;--danger:#b52d43;
 --action:#efb75b;--action-hover:#e8aa43;--action-text:#18130a;--tint:#f5ebd8;
 --shadow:0 8px 26px rgba(40,36,25,.035);--focus:#a2640d;
}
@media(prefers-color-scheme:light){html[data-theme=system]{
 color-scheme:light;--bg:#f6f5f1;--surface:#fffefa;--surface2:#eeede7;--surface3:#e4e2d9;
 --text:#20211e;--muted:#66685f;--line:#ddded5;--brand:#85520d;--brand2:#85520d;
 --primary:#85520d;--accent:#85520d;--success:#266746;--danger:#b52d43;
 --action:#efb75b;--action-hover:#e8aa43;--action-text:#18130a;--tint:#f5ebd8;
 --shadow:0 8px 26px rgba(40,36,25,.035);--focus:#a2640d;
}}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:100px;scroll-padding-bottom:20px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;padding:0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);font-size:15px;line-height:1.65}
button,input,select,textarea{font:inherit}
a{color:inherit;text-decoration:none}
button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
button,summary{cursor:pointer}
button{color:inherit}
button:disabled,.btn:disabled{opacity:.5;cursor:not-allowed}
[hidden]{display:none!important}
:where(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--focus);outline-offset:5px}
:where(h1,h2,h3,h4,p){overflow-wrap:anywhere}
h1,h2,h3,h4{font-weight:650;letter-spacing:-.025em;line-height:1.3;margin:0}
h1{font-size:clamp(28px,3.2vw,42px)}
h2{font-size:clamp(22px,2.4vw,28px)}
h3{font-size:17px}
p{margin:0 0 16px}
p:last-child{margin-bottom:0}
svg{vertical-align:middle}
.xb-icon{display:inline-block;flex-shrink:0;vertical-align:middle}
img{max-width:100%}
.container{width:min(1160px,calc(100% - 64px));margin-inline:auto}
.app-shell{min-height:100dvh;display:flex;flex-direction:column}
main{flex:1;min-width:0;min-height:55vh}
.section{padding:40px 0 56px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:28px}
.section-head h2,.section h2{font-size:clamp(22px,2.4vw,28px);margin:0}
.section-head p{margin:10px 0 0;max-width:650px;color:var(--muted);font-size:14px;line-height:1.8}
.section-kicker,.eyebrow{font-size:11px;letter-spacing:.09em;font-weight:650;text-transform:uppercase;color:var(--brand)}
.section-kicker{display:block;margin-bottom:8px}
.eyebrow{display:inline-flex;align-items:center;padding:5px 8px;border-radius:6px;background:var(--tint)}
.muted{color:var(--muted)}
.grid{display:grid;gap:24px}
.grid>*{min-width:0}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{min-width:0;border:1px solid var(--line);border-radius:var(--radius);padding:26px;background:var(--surface);box-shadow:none;overflow-wrap:anywhere;animation:none}
.card h3{margin-bottom:12px}
.card>p{line-height:1.8}
main .container>.card+.card,main .container>.card+.grid,main .container>.grid+.card{margin-top:24px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;max-width:100%;border:1px solid var(--line);border-radius:10px;padding:13px 19px;background:transparent;color:var(--text);font-size:14px;font-weight:600;line-height:1.45;text-align:center;white-space:normal;cursor:pointer;box-shadow:none;transition:background-color var(--motion-fast),border-color var(--motion-fast),transform var(--motion-fast)}
.btn:hover{background:var(--surface2);border-color:var(--muted);filter:none}
.btn:active,button:not(:disabled):active{transform:translateY(1px)}
.btn-primary,html[data-theme=dark] .btn-primary,.chat-screen .chat-composer .btn-primary{background:var(--action);border-color:var(--action);color:var(--action-text);box-shadow:none}
.btn-primary:hover,html[data-theme=dark] .btn-primary:hover{background:var(--action-hover);border-color:var(--action-hover)}
.btn-secondary,.btn-ghost,.btn-hero-outline,.btn-white{background:transparent;border-color:var(--line);color:var(--text)}
.btn-soft{background:var(--tint);border-color:transparent;color:var(--brand)}
.btn-soft:hover{border-color:var(--brand);background:var(--tint)}
.btn-danger{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 40%,var(--line));background:transparent}
.btn-danger:hover{background:color-mix(in srgb,var(--danger) 8%,var(--surface));border-color:var(--danger)}
.btn-good{color:var(--success);border-color:color-mix(in srgb,var(--success) 40%,var(--line));background:transparent}
.btn-link,.text-link{display:inline-flex;align-items:center;gap:9px;color:var(--brand);font-size:14px;font-weight:600;line-height:1.6;text-decoration:none;text-underline-offset:5px}
.btn-link{border:0;background:transparent;padding:12px 0;min-height:48px;border-radius:0}
.text-link:hover,.btn-link:hover{text-decoration:underline}
.arrow-right{display:inline-flex;transform:rotate(180deg)}
.action-bar,.button-group,.hero-actions,.dialog-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.hero-actions,.dialog-actions{margin-top:24px}
.dialog-actions{justify-content:flex-end}
.action-bar>.btn,.button-group>.btn{margin:0}
.icon-btn,.icon-link,.hamburger,.avatar-trigger{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--text);cursor:pointer;position:relative;transition:background-color var(--motion-fast),border-color var(--motion-fast)}
.icon-btn:hover,.icon-link:hover,.hamburger:hover,.avatar-trigger:hover{background:var(--surface2);border-color:var(--line)}
.badge{display:inline-flex;align-items:center;padding:5px 9px;background:var(--surface2);color:var(--muted);border:1px solid var(--line);border-radius:6px;font-size:11px;font-weight:600;line-height:1.5}
.badge.good{background:transparent;border-color:color-mix(in srgb,var(--success) 35%,var(--line));color:var(--success)}
/* Shell: one compact row, settings live inside the account drawer. */
.topbar{position:sticky;top:0;z-index:90;background:var(--bg);border-bottom:1px solid var(--line);padding:0;box-shadow:none}
.nav{display:flex;align-items:center;gap:28px;min-height:80px;padding-block:16px}
.brand{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font-size:22px;font-weight:750;letter-spacing:-.8px;color:var(--text)}
.brand-text{display:inline!important;font-size:22px;font-weight:750;letter-spacing:-.8px;white-space:nowrap;color:var(--text)}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--action);color:var(--action-text);font-size:11px}
.header-context{min-width:0;max-width:230px;color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-left:1px solid var(--line);padding-left:24px}
.desktop-nav{display:flex;align-items:center;gap:26px;margin-left:auto}
.desktop-nav a{font-size:13px;font-weight:550;min-height:44px;display:inline-flex;align-items:center;position:relative;color:var(--muted)}
.desktop-nav a:hover,.desktop-nav a[aria-current=page]{color:var(--text)}
.desktop-nav a[aria-current=page]:after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;border-radius:2px;background:var(--brand)}
.nav-actions{margin-left:auto;display:flex;align-items:center;gap:10px}
.desktop-nav+.nav-actions{margin-left:8px}
.avatar-trigger{background:var(--surface2);border-color:var(--line);font-size:14px;font-weight:650;overflow:visible}
.avatar-trigger img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.avatar-trigger>span{display:grid;place-items:center}
.top-search{display:none}
.icon-link b,[data-chat-badge],[data-notice-badge]{position:absolute;right:-2px;top:-2px;display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;background:var(--action);color:var(--action-text);border:2px solid var(--bg);border-radius:10px;font-size:9px;font-style:normal;font-weight:750;line-height:1}
[data-chat-badge][hidden],[data-notice-badge][hidden]{display:none}
.drawer-backdrop{position:fixed;inset:0;z-index:108;background:rgba(0,0,0,.56);opacity:0;pointer-events:none;transition:opacity var(--motion-panel) var(--ease)}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.drawer{position:fixed;inset:0 0 0 auto;z-index:110;width:min(380px,calc(100vw - 28px));padding:26px;background:var(--surface);border-left:1px solid var(--line);box-shadow:-16px 0 60px rgba(0,0,0,.18);transform:translateX(105%);transition:transform var(--motion-panel) var(--ease);overflow-y:auto;overscroll-behavior:contain}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.drawer-head .icon-btn{display:inline-flex}
.drawer-user{display:flex;align-items:center;gap:14px;padding:24px 0}
.drawer-user>div:last-child{min-width:0;flex:1}
.drawer-user strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.drawer-user span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.drawer-avatar{position:static!important;width:46px!important;height:46px!important;border-radius:12px!important}
.drawer-nav{display:flex;flex-direction:column;gap:6px;margin-top:18px}
.drawer-nav a{display:flex;align-items:center;gap:13px;min-height:48px;padding:12px 14px;border:1px solid transparent;border-radius:10px;font-size:14px;font-weight:550;color:var(--muted)}
.drawer-nav a:hover,.drawer-nav a[aria-current=page]{background:var(--surface2);color:var(--text)}
.drawer-nav a[aria-current=page]>.xb-icon{color:var(--brand)}
.drawer-nav .nav-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px}
.drawer-section{border-top:1px solid var(--line);margin-top:22px;padding-top:10px}
.drawer-section>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;list-style:none;font-size:12px;font-weight:600;color:var(--muted)}
.drawer-section>summary::-webkit-details-marker{display:none}
.drawer-section>summary:after{content:'+';font-size:19px;font-weight:400}
.drawer-section[open]>summary:after{content:'−'}
.drawer-section .drawer-nav{margin:2px 0 8px}
.drawer-setting{display:flex;align-items:center;justify-content:flex-start;gap:13px;width:100%;min-height:48px;padding:12px 14px;border:0;border-radius:10px;background:transparent;text-align:left;color:var(--muted);font-size:14px}
.drawer-setting:hover{background:var(--surface2);color:var(--text)}
.drawer-setting>span:last-child{margin-left:auto}
.danger-link{color:var(--danger)!important}
.role-switch{display:flex;align-items:center;gap:4px;padding:4px;margin:14px 0;border:1px solid var(--line);border-radius:10px;background:var(--bg);max-width:100%}
.role-switch button{display:flex;align-items:center;justify-content:center;gap:7px;flex:1;min-width:0;min-height:40px;padding:9px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:550;line-height:1.5}
.role-switch button.active{background:var(--surface2);color:var(--text);box-shadow:none}
.bottom-nav{display:none}
.footer{display:block;margin-top:40px;padding:42px 0 24px;border-top:1px solid var(--line);background:var(--bg)}
.footer-grid{display:grid;grid-template-columns:1.8fr 1fr 1fr;gap:48px;margin-bottom:32px}
.footer-grid>div{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}
.footer-grid strong{font-size:12px;font-weight:600;color:var(--text);margin-bottom:5px}
.footer-grid p{font-size:13px;line-height:1.9;max-width:360px;color:var(--muted);margin:6px 0 0}
.footer-grid a:not(.footer-brand){font-size:12px;min-height:32px;display:inline-flex;align-items:center;color:var(--muted)}
.footer-grid .footer-brand{font-size:22px;color:var(--text)}
.footer-grid a:hover,.footer-legal a:hover,.app-footer a:hover{color:var(--text)}
.footer-legal{display:flex;align-items:center;gap:10px 28px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:20px;color:var(--muted);font-size:11px}
.footer-legal a{display:inline-flex;align-items:center;min-height:40px}
.app-footer{margin-top:40px;border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:11px}
.app-footer>.container{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.app-footer a{display:inline-flex;align-items:center;min-height:44px}
.footer-inline>nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px 26px}
.footer-wordmark{font-size:11px;font-weight:500;color:var(--muted)}
.skip-link{position:fixed;top:12px;left:16px;z-index:1000;transform:translateY(-190%);padding:12px 18px;border-radius:8px;background:var(--action);color:var(--action-text);font-size:14px;font-weight:650}
.skip-link:focus{transform:none;outline:2px solid var(--focus);outline-offset:4px}
/* Shared forms: deliberate rhythm, one action row per task. */
.form-card{max-width:820px;margin:24px auto;padding:32px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 22px;align-items:start}
.form-grid>.btn{align-self:end}
.field{display:flex;flex-direction:column;gap:9px;min-width:0}
.field.full{grid-column:1/-1}
.field label{font-size:13px;font-weight:550;line-height:1.6;color:var(--text)}
.field small,.field .helper{font-size:12px;line-height:1.75;color:var(--muted)}
.input,.select,.textarea,.select-mini{width:100%;min-width:0;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;outline:none;background:var(--bg);color:var(--text);font-size:15px;line-height:1.5;box-shadow:none;transition:border-color var(--motion-fast),box-shadow var(--motion-fast)}
.input::placeholder,.textarea::placeholder{color:var(--muted);opacity:.8}
.input:focus,.select:focus,.textarea:focus{border-color:var(--brand);outline:2px solid color-mix(in srgb,var(--brand) 16%,transparent);outline-offset:2px}
.textarea{min-height:142px;resize:vertical}
.select-mini{width:auto}
input[type=checkbox],input[type=radio]{accent-color:var(--action);width:17px;height:17px;flex-shrink:0}
.input[aria-invalid=true],.select[aria-invalid=true],.textarea[aria-invalid=true]{border-color:var(--danger)}
.required,.req{color:var(--danger)}
.field-error{font-size:12px;line-height:1.7;color:var(--danger)!important;min-height:0;margin:0}
.field-error:empty{display:none}
.character-count,.char-count{font-size:11px;line-height:1.5;text-align:right;color:var(--muted);display:block}
.phone-field,.phone-input{display:flex;align-items:center;border:1px solid var(--line);border-radius:9px;background:var(--bg);overflow:hidden}
.phone-field>span,.phone-input>span{padding-left:14px;color:var(--muted);font-size:14px}
.phone-field>span,.phone-input>span{white-space:nowrap;flex:0 0 auto;padding-right:8px}
.phone-field .input,.phone-input .input{border:0;box-shadow:none;background:transparent}
.phone-field>.input,.phone-input>.input{flex:1 1 0;width:0;min-width:0}
.phone-field:focus-within,.phone-input:focus-within{border-color:var(--brand)}
.phone-field .input:focus,.phone-input .input:focus{outline:none}
input[type=file]{max-width:100%;padding:8px;font-size:13px}
input[type=file]::file-selector-button{font:inherit;padding:9px 12px;border:1px solid var(--line);border-radius:6px;background:var(--surface2);color:var(--text);margin-right:12px;cursor:pointer}
.alert{margin-top:18px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;font-size:14px;line-height:1.75;background:var(--surface)}
.alert.error{color:var(--danger);border-color:color-mix(in srgb,var(--danger) 30%,var(--line))}
.alert.success{color:var(--success);border-color:color-mix(in srgb,var(--success) 30%,var(--line))}
.card form+form{margin-top:28px}
.table-wrap{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);scrollbar-width:thin}
table{border-collapse:collapse;width:100%;min-width:680px;font-size:13px;line-height:1.7}
th,td{padding:17px 20px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--line)}
th{font-size:11px;font-weight:600;color:var(--muted);background:var(--surface2);white-space:nowrap}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:color-mix(in srgb,var(--text) 2%,var(--surface))}
td .btn{min-height:40px;padding:9px 12px;font-size:12px}
details.card{padding:0}
details.card>summary{padding:22px 26px;min-height:64px;list-style-position:inside;font-size:14px;font-weight:550;line-height:1.6}
details.card[open]>summary{border-bottom:1px solid var(--line);color:var(--brand)}
details.card>form,details.card>.form-grid{padding:26px;margin:0}
details.card>p{padding:0 26px 26px;margin:22px 0 0;font-size:14px;line-height:1.8}
/* Profiles, directory and account */
.avatar{display:grid;place-items:center;flex:0 0 auto;width:56px;height:56px;border-radius:13px;background:var(--surface3);border:1px solid var(--line);color:var(--text);font-size:20px;font-weight:600;overflow:hidden}
.avatar.small{width:44px;height:44px;font-size:16px}
.avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.master-directory{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}
.master-card{display:flex;align-items:flex-start;gap:15px;padding:24px;transition:border-color var(--motion-fast),background-color var(--motion-fast)}
.master-card:hover{border-color:var(--brand);background:var(--surface2);transform:none;box-shadow:none}
.master-card>div:last-child{min-width:0;flex:1}
.master-card h3{font-size:15px;font-weight:600;line-height:1.6;margin:0 0 6px}
.master-card p{font-size:12px;line-height:1.8;margin:4px 0;color:var(--muted)}
.master-card .muted{font-size:11px}
.identity-name{display:inline;overflow-wrap:anywhere}
.identity-name .xb-icon{color:var(--brand);vertical-align:-3px;margin-left:4px}
.new-label{font-size:10px;background:var(--surface2);color:var(--muted);border:1px solid var(--line);border-radius:5px;padding:3px 6px;margin-left:5px}
.trust-info{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-height:44px;min-width:44px;padding:5px;border:0;border-radius:9px;background:transparent;color:var(--brand);cursor:pointer;position:relative;z-index:2}
.trust-info>span{font-size:11px;color:var(--muted)}
.profile-summary{display:flex;align-items:center;gap:20px;max-width:820px;padding:28px;margin:0 auto 24px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.profile-summary>div:last-child{min-width:0;flex:1}
.profile-summary h3{font-size:23px;margin:0 0 8px;line-height:1.4}
.profile-summary small{color:var(--muted);font-size:11px}
.profile-summary .avatar{width:70px;height:70px;border-radius:16px;font-size:24px}
.profile-summary .role-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:270px;margin:12px 0 0}
.profile-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0}
.profile-actions .btn{font-size:13px}
.profile-action{display:flex;align-items:center;gap:16px;padding:24px}
.profile-action>span{flex:1;min-width:0}
.profile-action>.xb-icon:first-child{color:var(--brand)}
.profile-action small{display:block;font-size:12px;color:var(--muted);line-height:1.7;margin-top:5px}
.profile-details .form-grid{gap:24px}
.public-profile{max-width:900px;margin-inline:auto}
.identity-hero{text-align:center;padding:32px}
.identity-hero h1{font-size:27px;margin:20px 0 12px}
.profile-avatar{margin-inline:auto}
.profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}
.profile-stats .card{display:flex;flex-direction:column;gap:8px;text-align:center;padding:24px 16px}
.profile-stats strong{font-size:28px;letter-spacing:-.04em;font-weight:550}
.profile-stats span{font-size:12px;color:var(--muted)}
.profile-stats23{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:24px 0}
.preserve-lines{white-space:pre-wrap;overflow-wrap:anywhere}
.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.portfolio-grid figure{margin:0;overflow:hidden;border-radius:12px}
.portfolio-grid img{display:block;width:100%;aspect-ratio:1.2;max-height:320px;object-fit:cover;border-radius:12px}
.portfolio-grid figcaption{padding:18px;white-space:pre-wrap;font-size:13px;line-height:1.8}
.upload-preview{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.upload-preview img{width:100px;height:100px;object-fit:cover;border-radius:10px}
.specialty-search{margin:10px 0}
.specialty-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.specialty-option{display:flex;align-items:center;gap:10px;min-height:48px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:13px;line-height:1.65;cursor:pointer}
.specialty-option:has(input:checked){border-color:var(--brand);background:var(--tint)}
.specialty-option:has(input:disabled){opacity:.5}
.readiness-card,[data-readiness]{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:22px 24px!important;margin-block:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.readiness-card>div{min-width:0;flex:1}
.readiness-card strong{font-size:14px;font-weight:600;display:block}
.readiness-card p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.7}
.readiness-card small{font-size:11px;color:var(--muted)}
.readiness-switch{position:relative;display:inline-block;width:58px;height:36px;flex:0 0 58px;direction:ltr;touch-action:pan-y;cursor:pointer}
.readiness-switch input[type=checkbox]{position:absolute;inset:-5px 0;width:100%;height:46px;opacity:0;margin:0;z-index:2;cursor:pointer}
.readiness-switch span{position:absolute;inset:0;border-radius:999px;background:var(--surface3);border:1px solid var(--line);transition:background-color var(--motion-fast);pointer-events:none}
.readiness-switch span:before{content:'';position:absolute;width:26px;height:26px;left:4px;top:4px;border-radius:50%;background:var(--muted);transition:transform var(--motion-fast),background-color var(--motion-fast)}
.readiness-switch input:checked+span{background:var(--action);border-color:var(--action)}
.readiness-switch input:checked+span:before{transform:translateX(22px);background:var(--action-text)}
.readiness-switch input:focus-visible+span{outline:2px solid var(--focus);outline-offset:5px}
.readiness-switch input:disabled+span{opacity:.5}
.balance-card{padding:30px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--text);margin-bottom:20px}
.balance-card strong{display:block;font-size:38px;font-weight:500;letter-spacing:-.05em;margin:10px 0}
.balance-card p{font-size:12px;color:var(--muted)}
.ledger-row{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid var(--line);font-size:13px}
.ledger-row:last-child{border-bottom:0}
.ledger-row>span{min-width:0;flex:1}
.ledger-row small{display:block;color:var(--muted);font-size:11px;margin-top:5px}
.code-digits{text-align:center;font-size:clamp(28px,6vw,44px);letter-spacing:.16em;padding:24px;background:var(--surface2);border-radius:12px;margin:22px 0;font-weight:550}
/* One authenticated home: useful status, current work, then quiet tools. */
.workspace-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin:0 0 28px}
.workspace-head h1{font-size:clamp(27px,3vw,38px);font-weight:550;letter-spacing:-.04em;margin:6px 0 10px}
.workspace-head p{font-size:13px;color:var(--muted);line-height:1.8;max-width:640px}
.workspace-head .eyebrow{background:transparent;padding:0;color:var(--muted);font-size:10px;letter-spacing:.12em}
.workspace-summary{display:flex;align-items:stretch;gap:0;margin:28px 0 32px;padding:22px 0;border-block:1px solid var(--line)}
.workspace-summary>a,.workspace-summary>div{flex:1;min-width:0;padding:0 28px;border-left:1px solid var(--line);display:flex;flex-direction:column;gap:5px}
.workspace-summary>:first-child{padding-left:0;border-left:0}
.workspace-summary strong{font-size:26px;line-height:1.3;font-weight:500;letter-spacing:-.04em}
.workspace-summary span,.workspace-summary small{font-size:11px;color:var(--muted);line-height:1.6}
.workspace-summary a:hover span{color:var(--text)}
.workspace-focus{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin:28px 0}
.workspace-focus>div{min-width:0;flex:1}
.workspace-focus h2,.workspace-focus h3{font-size:20px;margin:0 0 9px;font-weight:550}
.workspace-focus p{font-size:13px;color:var(--muted);line-height:1.8;margin:0;max-width:600px}
.workspace-focus>.btn{flex-shrink:0}
.workspace-list{margin:34px 0}
.workspace-list>.section-head{margin-bottom:10px}
.workspace-list h2{font-size:20px;font-weight:550}
.workspace-row{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:98px;padding:24px 0;border-bottom:1px solid var(--line)}
.workspace-row>div{min-width:0;flex:1}
.workspace-row h3{font-size:15px;font-weight:550;margin:0 0 6px;line-height:1.6}
.workspace-row p,.workspace-row small{font-size:12px;color:var(--muted);line-height:1.75;margin:0}
.workspace-row .badge{flex-shrink:0}
.workspace-row:hover h3{color:var(--brand)}
.workspace-tools{margin-top:34px;border-top:1px solid var(--line);padding-top:8px}
.workspace-tools>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;font-size:13px;color:var(--muted);list-style:none}
.workspace-tools>summary:after{content:'+';font-size:21px;font-weight:300}
.workspace-tools[open]>summary:after{content:'−'}
.workspace-tools>div,.workspace-tools .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 0}
.workspace-tools a{display:flex;align-items:center;gap:12px;min-height:52px;padding:12px 14px;background:var(--surface);border:1px solid var(--line);border-radius:9px;font-size:12px}
.workspace-tools a:hover{border-color:var(--muted)}
.workspace-tools a>.xb-icon{color:var(--muted)}
/* Three-step request and order lifecycle */
.order-workspace{max-width:900px;margin-inline:auto}
.order-stepper{display:flex;align-items:stretch;gap:24px;list-style:none;padding:0;margin:0 0 30px;border-bottom:1px solid var(--line)}
.order-stepper li,.order-stepper>button,.order-stepper>a{flex:1;min-width:0;padding:0 0 18px;position:relative;font-size:12px;color:var(--muted);line-height:1.7}
.order-stepper [aria-current=step],.order-stepper .active,.order-stepper .is-current{color:var(--brand)}
.order-stepper [aria-current=step]:after,.order-stepper .active:after,.order-stepper .is-current:after{content:'';position:absolute;inset:auto 0 -1px;height:2px;background:var(--brand)}
.order-stepper button{background:transparent;border:0;color:inherit;font:inherit;padding:0;text-align:left;min-height:44px}
.order-stepper .step-number{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;margin-right:8px;border:1px solid var(--line);border-radius:7px;font-size:10px}
.order-step{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.order-step h2,.order-step h3{font-size:20px;margin-bottom:12px}
.order-step>p{font-size:13px;color:var(--muted);line-height:1.8;margin-bottom:24px}
.order-flow-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}
.order-flow-actions .btn-primary{margin-left:auto}
.order-review{display:grid;gap:0;margin:20px 0}
.order-review>div,.order-review>dl{padding:18px 0;border-bottom:1px solid var(--line);margin:0}
.order-review dt,.order-review small{font-size:11px;color:var(--muted);margin-bottom:6px}
.order-review dd{margin:0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.order-overview{padding:28px;border:1px solid var(--line);border-radius:14px;background:var(--surface);margin-bottom:28px}
.order-overview h1,.order-overview h2{font-size:clamp(23px,2.8vw,32px);line-height:1.4;margin:14px 0}
.order-overview p{font-size:14px;line-height:1.9;color:var(--muted)}
.order-next-action{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px;border:1px solid var(--line);border-radius:13px;background:var(--surface);margin:28px 0}
.order-next-action h2,.order-next-action h3{font-size:18px;margin-bottom:8px}
.order-next-action p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
.order-next-action>div{min-width:0;flex:1}
.order-next-action>.btn{flex-shrink:0}
.order-secondary-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:24px 0}
.order-secondary-actions .btn{font-size:12px;min-height:44px}
.order-list-card{padding:24px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.order-list-card h3{font-size:17px;line-height:1.6;margin:10px 0}
.order-list-card p{font-size:13px;color:var(--muted);line-height:1.8}
.order-list-card:hover h3{color:var(--brand)}
.order-filter-panel{padding:20px 24px;margin:24px 0;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.order-filter-panel>summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}
.order-filter-panel .form-grid{padding-top:20px}
.order-tabs{display:flex;gap:24px;overflow:auto;border-bottom:1px solid var(--line);margin-bottom:24px;scrollbar-width:thin}
.order-tabs a{display:inline-flex;align-items:center;min-height:48px;white-space:nowrap;font-size:13px;color:var(--muted);border-bottom:2px solid transparent}
.order-tabs a[aria-current=page],.order-tabs .active{border-bottom-color:var(--brand);color:var(--text)}
/* Guest landing: one primary task, editorial hierarchy, no repeated CTA grid. */
.premium-home main{min-height:0}
.landing-hero{border-bottom:1px solid var(--line)}
.landing-hero-inner{padding-block:88px 68px}
.landing-eyebrow{font-size:10px;line-height:1.7;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin:0 0 28px}
.landing-hero h1{max-width:920px;font-size:clamp(38px,5.4vw,68px);font-weight:500;line-height:1.12;letter-spacing:-.05em;margin:0}
.landing-hero h1>span{display:block;color:var(--brand)}
.landing-intro{max-width:650px;font-size:15px;line-height:1.9;color:var(--muted);margin:26px 0 36px}
.landing-search{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr) auto;align-items:end;gap:16px;max-width:960px;padding:22px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.landing-search label{display:block;font-size:11px;font-weight:500;line-height:1.7;color:var(--muted);margin-bottom:8px}
.landing-search-query,.landing-search-region{min-width:0}
.landing-search-query>div{display:flex;align-items:center;gap:10px;background:var(--bg);border:1px solid var(--line);border-radius:8px;padding:0 13px;min-height:48px}
.landing-search-query>div:focus-within{border-color:var(--brand)}
.landing-search-query .xb-icon{color:var(--muted)}
.landing-search input,.landing-search select{width:100%;min-width:0;min-height:48px;border:0;border-radius:8px;background:var(--bg);color:var(--text);font-size:13px;line-height:1.5;padding:11px 0;outline:none}
.landing-search input::placeholder{color:var(--muted);opacity:.8}
.landing-search select{border:1px solid var(--line);padding:11px 13px}
.landing-search select:focus{border-color:var(--brand)}
.landing-search>.btn{min-height:48px;white-space:normal;font-size:13px;padding-inline:20px}
.landing-section{padding:56px 0;border-bottom:1px solid var(--line)}
.landing-section:last-child{border-bottom:0}
.landing-section .section-head{margin-bottom:28px;align-items:flex-end}
.landing-section h2{font-size:25px;font-weight:550}
.landing-section .section-head p{font-size:13px;margin-top:9px}
.landing-services{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.landing-service{display:flex;align-items:center;gap:15px;min-height:88px;padding:20px;border:1px solid var(--line);border-radius:11px;background:var(--surface);transition:border-color var(--motion-fast),background-color var(--motion-fast)}
.landing-service:hover{border-color:var(--brand);background:var(--surface2)}
.landing-service-icon{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;color:var(--brand)}
.landing-service-icon svg{width:26px;height:26px}
.landing-service strong{font-size:13px;font-weight:550;line-height:1.65;flex:1;min-width:0}
.landing-service>.arrow-right{color:var(--muted)}
.landing-service-more{margin-top:24px}
.landing-service-more>summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:12px;color:var(--muted);list-style:none}
.landing-service-more>summary::-webkit-details-marker{display:none}
.landing-service-more>summary:hover{color:var(--brand)}
.landing-service-more[open]>summary{margin-bottom:18px;color:var(--brand)}
.landing-service-more[open]>summary .xb-icon{transform:rotate(45deg)}
.landing-request{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin:24px 0 0;color:var(--muted);font-size:12px;line-height:1.9}
.landing-request .text-link{font-size:12px;min-height:36px}
.landing-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;list-style:none;padding:0;margin:0}
.landing-steps li{position:relative;padding-top:6px}
.landing-step-icon{display:inline-grid;place-items:center;width:44px;height:44px;margin-bottom:23px;color:var(--brand)}
.landing-step-number{position:absolute;right:0;top:12px;color:var(--muted);font-size:10px;letter-spacing:.08em}
.landing-steps h3{font-size:15px;font-weight:550;line-height:1.65;margin:0 0 10px}
.landing-steps p{max-width:310px;font-size:13px;line-height:1.9;color:var(--muted);margin:0}
.landing-master-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.landing-master{position:relative;display:flex;flex-direction:column;gap:20px;padding:25px;border:1px solid var(--line);border-radius:13px;background:var(--surface);min-width:0;transition:border-color var(--motion-fast),background-color var(--motion-fast)}
.landing-master:hover,.landing-master:focus-within{border-color:var(--brand);background:var(--surface2)}
.landing-master-head{display:flex;align-items:center;gap:12px;min-width:0}
.landing-master-head>.avatar{width:46px;height:46px;min-width:46px;font-size:17px;border-radius:11px}
.landing-master-head>div{flex:1;min-width:0}
.landing-master-head h3{font-size:14px;font-weight:600;line-height:1.6;margin:0 0 3px}
.landing-master-head p{font-size:11px;line-height:1.7;color:var(--muted);margin:0}
.landing-master-link:after{content:'';position:absolute;inset:0;border-radius:13px;z-index:1}
.landing-master-bio{font-size:12px;line-height:1.9;color:var(--muted);margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.landing-master-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 14px;padding-top:18px;border-top:1px solid var(--line);font-size:10px;line-height:1.7;color:var(--muted);margin-top:auto}
.landing-master-meta>span:first-child{display:inline-flex;gap:5px;align-items:center;color:var(--text)}
.landing-master-meta .xb-icon{color:var(--brand)}
.landing-master-action{display:flex;align-items:center;justify-content:space-between;font-size:11px;font-weight:550;color:var(--brand)}
/* Maps, permissions, dialogs and notification centre */
.xb-dialog{width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;border:1px solid var(--line);border-radius:16px;padding:28px;background:var(--surface);color:var(--text);box-shadow:0 24px 90px rgba(0,0,0,.3)}
.xb-dialog[open]{animation:panel-in var(--motion-panel) var(--ease) both}
.xb-dialog::backdrop{background:rgba(0,0,0,.66)}
.xb-dialog h3{font-size:20px;margin:0 0 18px}
.xb-dialog .section-head{margin-bottom:20px;gap:16px}
.xb-dialog .section-head h3{margin:0}
.choice-list{display:grid;gap:10px}
.language-choice{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:52px;padding:15px 16px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:14px}
.language-choice.selected{border-color:var(--brand);color:var(--brand);background:var(--tint)}
.message-actions-menu{max-width:340px;padding:10px}
.message-actions-menu button{display:flex;align-items:center;gap:13px;width:100%;min-height:48px;padding:14px 16px;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;font-size:14px}
.message-actions-menu button:hover{background:var(--surface2)}
.location-dialog{width:min(660px,calc(100vw - 32px));max-width:660px}
.location-map-wrap{overflow:hidden;border:1px solid var(--line);border-radius:11px;position:relative}
.location-map-wrap #locationPickerMap{height:320px}
.location-summary,.location-card{display:flex;align-items:flex-start;gap:13px;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--bg);overflow-wrap:anywhere}
.location-summary{margin:18px 0;font-size:13px}
.location-summary strong,.location-card strong{display:block;margin-bottom:6px}
.location-summary small,.location-card small{display:block;font-size:11px;color:var(--muted);line-height:1.8}
.location-address{display:grid;gap:9px;margin:18px 0}
.location-card{max-width:100%;color:inherit;text-align:left;font:inherit}
.location-card .btn{max-width:100%;overflow-wrap:anywhere}
.location-dialog .hero-actions{gap:12px;margin-top:22px}
.location-dialog .hero-actions .btn{flex:1 1 140px}
.permission-panel,.permission-onboarding{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.permission-panel h3{font-size:17px;margin-bottom:12px}
.permission-panel p,.permission-status{font-size:12px;line-height:1.85;color:var(--muted)}
.permission-panel .btn{font-size:12px;margin:6px 8px 6px 0}
.permission-onboarding{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:24px 0}
.permission-onboarding>div:first-child{flex:1;min-width:220px}
.permission-onboarding .hero-actions{margin:0}
.permission-onboarding p{font-size:12px;line-height:1.85;color:var(--muted);margin:7px 0 0}
.inbox-heading,.inbox-actions{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.inbox-heading{margin-bottom:24px}
.inbox-heading p{margin:0;font-size:13px}
.inbox-actions{margin:28px 0 18px}
.inbox-actions strong{font-size:13px;font-weight:550}
.inbox-actions form{margin:0}
.inbox-filters{display:flex;gap:22px;overflow:auto;scrollbar-width:thin;padding:0;margin-bottom:24px;border-bottom:1px solid var(--line)}
.inbox-filter{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:10px 0;border:0;border-bottom:2px solid transparent;background:transparent;color:var(--muted);font-size:12px;white-space:nowrap;border-radius:0;font-weight:500}
.inbox-filter span{font-size:10px;opacity:.8}
.inbox-filter.selected{background:transparent;color:var(--text);border-bottom-color:var(--brand)}
.inbox-list{display:grid;gap:14px}
.notice-card,.guidance-card{display:flex;gap:18px;min-width:0;margin:0}
.notice-card.is-unread{border-left:2px solid var(--brand);background:var(--surface)}
.notice-icon,.guidance-marker{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:10px;background:var(--surface2);color:var(--brand)}
.notice-content{flex:1;min-width:0;overflow-wrap:anywhere}
.notice-content h3{font-size:16px;font-weight:550;line-height:1.6;margin:6px 0 10px}
.notice-content p{font-size:13px;line-height:1.85;margin:6px 0 14px}
.notice-content small{font-size:10px;color:var(--muted);line-height:1.8}
.notice-content form{margin-top:16px}
.notice-open{display:inline-flex;align-items:center;gap:9px;color:var(--brand);font-size:12px}
.guidance-card>div:last-child{min-width:0;flex:1}
.guidance-card p{font-size:13px;line-height:1.85;margin:0 0 18px}
.guidance-card .btn{font-size:12px;text-align:left}
.inbox-guidance .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:16px}
.inbox-guidance h3{font-size:18px;margin-bottom:12px}
.live-notice{position:relative;display:flex;flex-direction:column;gap:7px;padding:18px 20px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-left:2px solid var(--brand);border-radius:11px;box-shadow:var(--shadow);animation:panel-in var(--motion-panel) var(--ease)}
.live-notice strong{font-size:13px;font-weight:600}
.live-notice span{font-size:12px;color:var(--muted);line-height:1.8}
#xbLiveNotices{position:fixed;z-index:500;right:20px;top:96px;width:min(360px,calc(100vw - 32px));display:grid;gap:12px}
.empty-state{padding:40px 24px;text-align:center}
.empty-state h3{font-size:19px;line-height:1.6;margin:0 0 12px;font-weight:550}
.empty-state p{max-width:520px;color:var(--muted);font-size:13px;line-height:1.85;margin:0 auto 24px}
.empty-state-icon{display:grid;place-items:center;width:56px;height:56px;color:var(--muted);margin:0 auto 22px}
/* Full-screen conversation remains a single focused workspace. */
.chat-row{display:flex;align-items:center;gap:15px;min-height:92px;padding:22px 0;border-bottom:1px solid var(--line)}
.chat-row:last-child{border-bottom:0}
.chat-row>div:nth-child(2){flex:1;min-width:0}
.chat-row strong{font-size:14px;font-weight:550}
.chat-row .muted,.chat-row .ellipsis{font-size:12px;color:var(--muted);margin-top:4px}
.ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.chat-screen{overflow:hidden;padding:0}
body.chat-screen .topbar,body.chat-screen .bottom-nav,body.chat-screen .footer,body.chat-screen .app-footer,body.chat-screen .drawer,body.chat-screen .drawer-backdrop{display:none!important}
body.chat-screen .app-shell{height:100dvh;min-height:0;overflow:hidden;padding:0}
body.chat-screen main{height:100dvh;min-height:0;margin:0;padding:0}
body.chat-screen .section{height:100%;padding:0}
body.chat-screen .section>.container{height:100%;width:100%;max-width:960px;padding:0}
body.chat-screen .section>.container>.section-head{display:none}
.xb-chat{display:flex;flex-direction:column;height:100dvh;min-height:0;max-width:960px;width:100%;padding:0;border:0;border-inline:1px solid var(--line);border-radius:0;margin:auto;overflow:hidden;background:var(--bg)}
.chat-top,.chat-head{display:flex;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line);background:var(--surface);flex:none}
.chat-person{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.chat-person>.avatar{width:40px;height:40px;min-width:40px;flex:0 0 40px;border-radius:10px;font-size:15px}
.chat-person>span:last-child{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}
.chat-person strong,.chat-person small{display:block;line-height:1.5}
.chat-person small{font-size:11px;color:var(--muted)}
.chat-person strong{font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.chat-presence{font-size:11px;color:var(--muted);margin-top:3px}
.chat-tools{display:flex;align-items:center;gap:10px}
.chat-order-context{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid var(--line);background:var(--surface);font-size:11px;color:var(--muted);flex:none}
.chat-search{display:flex;align-items:center;gap:10px;margin:0;padding:12px 18px;flex:none}
.chat-search input{flex:1;min-width:0}
.xb-chat .messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:24px;background:var(--bg);scroll-behavior:auto}
.bubble{position:relative;max-width:min(82%,520px);width:fit-content;align-self:flex-start;flex-shrink:0;padding:12px 15px;border:1px solid var(--line);border-radius:14px 14px 14px 4px;background:var(--surface);color:var(--text);font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere;touch-action:pan-y;cursor:pointer}
body.chat-screen .xb-chat .bubble.me,.bubble.me{align-self:flex-end;background:var(--surface3);color:var(--text);border-radius:14px 14px 4px 14px}
.bubble small,body.chat-screen .xb-chat .bubble.me small{display:block;margin-top:7px;font-size:10px;color:var(--muted);text-align:right;opacity:1}
.bubble img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:8px}
.bubble audio{max-width:100%}
.bubble blockquote{margin:0 0 10px;padding:8px 11px;border-left:2px solid var(--brand);font-size:12px;line-height:1.65;background:var(--bg)}
.bubble .message-reply{display:none}
.message-check{font-size:12px;letter-spacing:-3px;padding-inline:4px}
.message-check.read{color:var(--brand)}
.chat-composer{display:flex;align-items:flex-end;gap:10px;flex:none;margin:0;padding:14px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
.chat-composer textarea{flex:1;min-width:0;min-height:46px;max-height:130px;resize:none;border-radius:10px;padding:10px 13px;font-size:16px;line-height:1.55}
.chat-composer .btn,.chat-composer .icon-btn{flex-shrink:0;margin:0}
.voice-send{display:grid;place-items:center;width:46px;height:46px;min-width:46px;padding:0;border:1px solid var(--action);border-radius:11px;background:var(--action);color:var(--action-text);touch-action:none;user-select:none}
.voice-send.recording{background:var(--danger);border-color:var(--danger);color:var(--action-text)}
.voice-player{display:flex;align-items:center;gap:10px;width:min(245px,65vw);max-width:100%;min-width:165px;height:44px;color:inherit;cursor:auto}
.voice-player audio{display:none}
.voice-play{display:grid;place-items:center;width:40px;height:40px;min-width:40px;padding:0;border:1px solid var(--line);border-radius:50%;background:var(--surface3);color:var(--text);font-size:14px;cursor:pointer}
.voice-track{min-width:0;flex:1}
.voice-track canvas{width:150px;max-width:100%;height:25px}
.voice-track span{display:block;font-size:10px;color:var(--muted)}
.voice-wave{max-width:100%;height:28px;display:block}
.chat-attachment,.recording-hud{display:flex;align-items:center;gap:13px;flex:none;padding:12px 18px;background:var(--surface);font-size:12px}
.chat-attachment img{width:76px;height:76px;object-fit:cover;border-radius:9px}
.recording-hud canvas{flex:1;min-width:30px;height:35px}
.recording-hud.cancelled{color:var(--danger)}
.reply-preview{flex:none;padding:12px 18px;border-left:2px solid var(--brand);background:var(--surface);font-size:12px}
#chatError{margin:0;padding:8px 18px;font-size:12px;color:var(--danger)}
#chatError:empty{display:none}
.older-chat{display:inline-flex;align-items:center;align-self:center;gap:7px;min-height:36px;margin:8px;padding:8px 13px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);font-size:11px}
.call-screen{min-height:85dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px;text-align:center;padding:32px}
.call-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:16px}
.service-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.service-status span{padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px}
.spaced-form{display:grid;gap:24px;margin-top:24px}
.spaced-form label{display:grid;gap:10px}
.step-form{max-width:700px;margin:28px auto}
.info-button{border:1px solid var(--line);border-radius:8px;padding:11px 13px;background:var(--surface);color:var(--text);font-size:12px;min-height:44px}
/* Account and discovery use disclosure, rather than bars of competing buttons. */
.brand-symbol{display:inline-flex;align-items:center;justify-content:center;color:var(--brand)}
.header-login{display:inline-flex;align-items:center;min-height:44px;font-size:12px;color:var(--muted);padding:10px 8px}
.header-login:hover{color:var(--text)}
.account-hub{max-width:840px;margin-inline:auto}
.account-identity{display:flex;align-items:center;gap:22px;padding:28px}
.account-identity>.avatar{width:64px;height:64px;min-width:64px;border-radius:15px;font-size:23px}
.account-name{min-width:0;flex:1}
.account-name .eyebrow{padding:0;background:transparent;color:var(--muted);font-size:10px;letter-spacing:.1em}
.account-name h1{font-size:27px;line-height:1.4;font-weight:550;margin:7px 0}
.account-name p{font-size:11px;line-height:1.8;margin:0;color:var(--muted)}
.account-identity>.btn{font-size:12px;min-height:44px;flex-shrink:0}
.account-section{margin-top:24px}
.account-section>h2{font-size:15px;font-weight:550;margin:0 0 16px}
.account-disclosure-body{padding:26px}
.account-section .permission-panel{border:0;border-radius:0;background:transparent}
.account-section .permission-panel .btn{margin:0}
.account-disclosure-body .role-switch{margin:0;max-width:320px}
.settings-list{display:flex;flex-direction:column;gap:0}
.settings-row{display:flex;align-items:center;gap:17px;min-height:67px;padding:16px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.7}
.settings-row:last-child{border-bottom:0}
.settings-row>span:nth-child(2){flex:1;min-width:0}
.settings-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;flex:0 0 30px;color:var(--muted)}
.settings-chevron{display:inline-flex;transform:rotate(180deg);color:var(--muted)}
.settings-row:hover{color:var(--brand)}
.settings-row:hover .settings-icon{color:var(--brand)}
.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:4px}
.form-actions .btn,.form-actions .text-link{margin:0}
.form-actions .text-link{font-size:13px;min-height:48px}
.field-label{font-size:13px;font-weight:550;line-height:1.6;color:var(--text)}
.directory-search{margin-bottom:30px;max-width:100%}
.directory-searchbar{display:flex;gap:14px;align-items:stretch}
.search-field{display:flex;align-items:center;gap:12px;min-width:0;flex:1;border:1px solid var(--line);border-radius:9px;padding:0 15px;background:var(--surface)}
.search-field>.xb-icon{color:var(--muted)}
.search-field .input{border:0;background:transparent;outline:none;box-shadow:none;padding-inline:0;min-width:0}
.search-field:focus-within{border-color:var(--brand)}
.search-field .input:focus{outline:none}
.directory-searchbar>.btn{flex-shrink:0;min-width:112px}
.directory-filters{margin-top:15px}
.directory-filters>summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;color:var(--muted);font-size:12px;list-style:none}
.directory-filters>summary::-webkit-details-marker{display:none}
.directory-filters[open]>summary{color:var(--brand)}
.directory-filter-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-top:14px}
.directory-filter-fields>.form-actions{grid-column:1/-1}
.master-card-content{min-width:0;flex:1}
.master-card .master-card-bio{font-size:12px;line-height:1.85;margin:13px 0;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.master-card .master-card-rating{color:var(--text);font-size:11px;margin-top:13px;line-height:1.8}
.master-card-rating>.xb-icon{color:var(--brand)}
.master-card-chevron{display:inline-flex;transform:rotate(180deg);flex:0 0 18px;align-self:center;color:var(--muted)}
.pagination-actions{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:32px}
.profile-detail{max-width:900px;margin-inline:auto}
.profile-detail .form-actions{margin-top:24px}
.workspace-role{display:inline-flex;align-items:center;font-size:10px;line-height:1.7;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 8px;flex-shrink:0}
.workspace-focus h1{font-size:clamp(23px,2.8vw,33px);line-height:1.4;font-weight:550;margin:0 0 12px;letter-spacing:-.035em}
.workspace-focus>.action-bar{flex:0 0 auto;justify-content:flex-end}
.workspace-focus .action-bar form{margin:0}
.workspace-content{margin-top:34px}
.workspace-content>.section-head{margin-bottom:8px}
.workspace-content h2{font-size:20px;font-weight:550}
.workspace-content>.section-head .text-link{font-size:12px;min-height:44px}
.workspace-list{margin:0}
.workspace-row-icon{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border:1px solid var(--line);border-radius:10px;color:var(--muted);background:var(--surface)}
.workspace-row-copy{min-width:0;flex:1}
.workspace-row-copy strong{display:block;font-size:14px;font-weight:550;line-height:1.7;overflow-wrap:anywhere}
.workspace-row-copy small{display:block;font-size:11px;color:var(--muted);margin-top:5px;line-height:1.8}
.workspace-row-tail{display:flex;align-items:center;gap:12px;flex-shrink:0;color:var(--muted);font-size:12px}
.workspace-row:hover .workspace-row-copy strong{color:var(--brand)}
.workspace-row-tail>.xb-icon:first-child{color:var(--brand)}
.workspace-empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:38px 24px;border-block:1px solid var(--line);text-align:center;color:var(--muted)}
.workspace-empty h3{font-size:16px;color:var(--text);font-weight:550;line-height:1.7;margin:0}
.workspace-empty p{font-size:12px;line-height:1.9;max-width:460px;margin:0}
.workspace-tools>summary:after{display:none}
.workspace-tools>summary .xb-icon{color:var(--muted);transition:transform var(--motion-fast)}
.workspace-tools[open]>summary .xb-icon{transform:rotate(180deg)}
.workspace-tools a>.xb-icon:last-child{margin-left:auto;flex-shrink:0}
.order-create-form fieldset{min-inline-size:0;margin:0}
.order-step legend{font-size:16px;font-weight:550;line-height:1.6;padding:0 9px;margin-left:-9px;color:var(--text)}
.order-stepper li>span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border:1px solid var(--line);border-radius:7px;margin-right:8px;font-size:10px;font-weight:550}
.order-stepper li>strong{font-size:12px;font-weight:500;line-height:1.7}
.order-stepper li[aria-current=step]>span{border-color:var(--brand);color:var(--brand)}
.order-target{display:flex;align-items:center;gap:15px;padding:20px 0;margin-bottom:24px;border-bottom:1px solid var(--line)}
.order-target>div{min-width:0;flex:1}
.order-target strong{display:block;font-size:14px;font-weight:550;line-height:1.7}
.order-target small,.order-target>div>span{display:block;font-size:11px;line-height:1.8;color:var(--muted)}
.order-review h3{font-size:16px;font-weight:550;margin:12px 0}
.order-review>p{font-size:12px;line-height:1.85;margin:0;color:var(--muted)}
.order-review dl{padding:8px 0 0;margin:0}
.order-review dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px;padding:16px 0;border-bottom:1px solid var(--line)}
.order-review dt{font-size:11px;line-height:1.8;color:var(--muted);margin:0}
.order-review dd{font-size:12px;line-height:1.8;margin:0;overflow-wrap:anywhere}
.order-review>small{font-size:11px;line-height:1.85;color:var(--muted);margin-top:18px}
.order-location-choice{align-items:flex-start;gap:12px}
.order-location-choice>.btn{font-size:12px}

/* Order detail: one next step, a readable brief, secondary tools behind disclosure. */
.order-overview-top{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.order-price{padding:22px 0;margin:18px 0 4px;border-top:1px solid var(--line)}
.order-price small{display:block;font-size:11px;line-height:1.8;color:var(--muted);margin-bottom:7px}
.order-price strong{font-size:27px;font-weight:500;letter-spacing:-.035em;line-height:1.5}
.order-status-steps{margin:22px 0 0}
.order-detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;grid-template-areas:'main action';gap:28px;align-items:start}
.order-detail-main{grid-area:main;min-width:0}
.order-detail-layout>.order-next-action{grid-area:action;position:sticky;top:105px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:18px;padding:25px;margin:0;min-width:0}
.order-next-action .section-kicker{margin:0;font-size:10px}
.order-detail-layout .order-next-action h2{font-size:20px;line-height:1.5;margin:0}
.order-detail-layout .order-next-action p{font-size:12px;line-height:1.9;margin:0}
.order-detail-layout .order-next-action .btn{font-size:12px;align-self:stretch;width:100%}
.order-next-action .form-grid{grid-template-columns:1fr;gap:22px}
.order-next-action form{margin:0}
.order-next-action .textarea{min-height:110px}
.order-brief h2,.order-review-form h2{font-size:20px;margin:0 0 22px;font-weight:550}
.order-brief>.preserve-lines{font-size:14px;line-height:1.95;margin:0 0 24px}
.order-address{display:flex;align-items:flex-start;gap:13px;padding:22px 0;border-top:1px solid var(--line)}
.order-address>span{color:var(--muted);padding-top:2px}
.order-address>div{min-width:0;flex:1}
.order-address small{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-bottom:7px}
.order-address p{font-size:13px;line-height:1.9;margin:0;color:var(--text)}
.order-brief>.text-link{font-size:12px;min-height:44px;margin-bottom:12px}
.order-brief .portfolio-grid{margin:18px 0}
.order-fee-details{border-top:1px solid var(--line);padding-top:10px;margin-top:24px}
.order-fee-details>summary{display:flex;align-items:center;min-height:44px;font-size:11px;color:var(--muted);list-style:none}
.order-fee-details>summary:after{content:'+';font-size:18px;margin-left:auto}
.order-fee-details[open]>summary:after{content:'−'}
.order-fee-details p{font-size:11px;line-height:1.9;margin:12px 0;color:var(--muted)}
.order-offers{margin-top:32px;scroll-margin-top:110px}
.order-offers h2{font-size:20px;font-weight:550}
.order-offers h2>span{font-size:12px;color:var(--muted);margin-left:8px}
.order-offer-list{display:grid;gap:16px}
.order-offer{padding:24px}
.order-offer-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:18px}
.order-offer-heading>div{min-width:0;flex:1}
.order-offer-heading strong{display:block;font-size:14px;font-weight:550;line-height:1.7;overflow-wrap:anywhere}
.order-offer-heading>strong{font-size:17px;font-weight:500;line-height:1.5;letter-spacing:-.025em;text-align:right;flex-shrink:0;max-width:45%}
.order-offer-heading small{font-size:10px;line-height:1.8;color:var(--muted);display:block;margin-top:6px}
.order-offer-heading small .xb-icon{color:var(--brand)}
.order-offer>p{font-size:13px;line-height:1.9;color:var(--muted);margin-bottom:20px}
.order-offer-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-top:18px;border-top:1px solid var(--line)}
.order-offer-actions .btn{font-size:11px;min-height:44px}
.order-offer-actions form{margin:0}
.order-review-form{margin-top:28px;scroll-margin-top:110px}
.order-detail-main>details.order-secondary-actions{display:block;padding:0;margin:28px 0;border:1px solid var(--line);border-radius:12px}
.order-secondary-actions>summary{display:flex;align-items:center;gap:12px;min-height:60px;padding:20px 24px;font-size:13px;line-height:1.7;list-style:none}
.order-secondary-body{padding:26px}
.order-secondary-body>section+section,.order-secondary-body>section+form,.order-secondary-body>form+section{margin-top:28px;padding-top:26px;border-top:1px solid var(--line)}
.order-secondary-body h3{font-size:16px;font-weight:550;margin:0 0 12px;line-height:1.7}
.order-secondary-body p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:22px}
.order-secondary-body>section:has(>form+form){display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.order-secondary-body>section:has(>form+form)>form{margin:0}
.order-secondary-body .order-flow-actions{grid-column:1/-1;justify-content:flex-start;gap:16px;flex-wrap:wrap}
.order-secondary-body .order-flow-actions>.btn{flex:0 1 auto}
.order-back-link{min-height:44px;font-size:12px;margin-top:6px}
.orders-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:26px}
.order-mode-tabs{display:flex;align-items:center;gap:24px;overflow:auto;scrollbar-width:thin;min-width:0;flex:1}
.order-mode-tabs a{display:inline-flex;align-items:center;min-height:50px;padding:10px 0;border-bottom:2px solid transparent;white-space:nowrap;font-size:12px;color:var(--muted)}
.order-mode-tabs a[aria-current=page],.order-mode-tabs a.is-current{color:var(--text);border-bottom-color:var(--brand)}
.orders-toolbar>.btn{font-size:12px;flex-shrink:0}
.order-filter-panel>summary{justify-content:flex-start;gap:12px;list-style:none}
.order-filter-panel>summary::-webkit-details-marker{display:none}
.order-filter-panel>summary .badge{margin-left:auto}
.order-filter-panel .order-flow-actions{grid-column:1/-1;justify-content:flex-start;gap:16px;margin-top:0;border:0;padding-top:0;flex-wrap:wrap}
.order-filter-panel .order-flow-actions>.btn{flex:0 0 auto}
.order-list{display:flex;flex-direction:column;gap:0}
.order-list .order-list-card{display:block;padding:27px 0;transition:color var(--motion-fast)}
.order-list-meta{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}
.order-list-meta>span:first-child{font-size:10px;line-height:1.8;color:var(--muted)}
.order-list-card h3{font-size:18px;font-weight:550;line-height:1.6;margin:0 0 12px}
.order-list-card>p{font-size:13px;line-height:1.9;color:var(--muted);margin:0 0 18px;max-width:750px}
.order-list-footer{display:flex;align-items:center;gap:20px;font-size:12px;line-height:1.8}
.order-list-footer small{font-size:11px;color:var(--muted);flex:1;min-width:0}
.order-list-footer strong{font-size:13px;font-weight:550;letter-spacing:-.02em}
.order-list-footer>.arrow-right{color:var(--muted)}

/* Application navigation and account settings: persistent on desktop, direct on mobile. */
.site-sidebar{display:none}
.sidebar-brand{display:flex;align-items:center;gap:10px;min-height:48px;color:var(--text);font-size:21px;font-weight:700;letter-spacing:-.7px}
.sidebar-brand>.xb-icon,.sidebar-brand .brand-symbol{color:var(--brand)}
.sidebar-group{display:flex;flex-direction:column;gap:5px;margin:26px 0 0}
.sidebar-group>h2,.sidebar-group>strong,.sidebar-group-label{display:block;margin:0 0 7px;padding:0 12px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;line-height:1.6}
.sidebar-group>nav{display:grid;gap:4px}
.sidebar-link{display:flex;align-items:center;gap:12px;min-height:46px;padding:11px 12px;border:1px solid transparent;border-radius:9px;font-size:13px;font-weight:500;line-height:1.6;color:var(--muted);position:relative}
.sidebar-link>span{min-width:0;flex:1}
.sidebar-link>.xb-icon,.sidebar-link .nav-icon{flex:0 0 21px;color:inherit}
.sidebar-link .nav-icon{display:inline-flex;position:relative}
.sidebar-link:hover{background:var(--surface2);color:var(--text)}
.sidebar-link[aria-current=page],.sidebar-link.is-current{background:var(--tint);border-color:color-mix(in srgb,var(--brand) 25%,var(--line));color:var(--brand)}
.sidebar-account{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);margin-top:auto;padding:20px 8px 2px;min-width:0}
.sidebar-account>div{min-width:0;flex:1}
.sidebar-account>span:nth-child(2){min-width:0;flex:1}
.sidebar-account strong{display:block;font-size:13px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.sidebar-account small,.sidebar-account p{display:block;font-size:12px;line-height:1.65;color:var(--muted);margin:3px 0 0}
.sidebar-account .avatar{width:38px;height:38px;border-radius:10px;font-size:14px}
.sidebar-account .icon-link{width:40px;min-width:40px;height:40px;min-height:40px}
.sidebar-navigation{min-width:0}
.drawer-group{margin:22px 0 0}
.drawer-group>h2{font-size:11px!important;line-height:1.7;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:0 12px;margin:0 0 8px;font-weight:600}
.drawer-group>nav{display:grid;gap:5px}
.drawer-link{display:flex;align-items:center;gap:13px;min-height:48px;padding:12px;border:1px solid transparent;border-radius:9px;font-size:14px;line-height:1.6;color:var(--muted)}
.drawer-link>span{min-width:0;flex:1}
.drawer-link:hover{color:var(--text);background:var(--surface2)}
.drawer-link[aria-current=page]{color:var(--brand);border-color:color-mix(in srgb,var(--brand) 25%,var(--line));background:var(--tint)}
.page-intro{max-width:960px;margin:0 auto 20px;color:var(--muted);font-size:14px;line-height:1.8}
.settings-section-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:960px;margin:0 auto 24px;padding-bottom:4px}
.settings-section-nav a{display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:13px;line-height:1.6;color:var(--muted);text-align:center}
.settings-section-nav a:hover{color:var(--brand);border-color:var(--brand);background:var(--tint)}
.settings-layout{display:grid;gap:24px;max-width:960px;margin-inline:auto}
.settings-panel{padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--surface);scroll-margin-top:100px;min-width:0}
.settings-panel>h2,.settings-panel>header h2{font-size:20px;line-height:1.5;font-weight:600;margin:0 0 8px}
.settings-panel>p,.settings-panel>header p{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 20px;max-width:650px}
.settings-panel .settings-row{gap:20px;min-height:78px;padding:18px 0}
.settings-panel .settings-row:first-child{padding-top:0}
.settings-panel .settings-row:last-child{padding-bottom:0}
.settings-panel .settings-row>div:first-child,.settings-row-copy{min-width:0;flex:1}
.settings-panel .settings-row strong,.settings-panel .settings-row h3{display:block;font-size:14px;line-height:1.6;font-weight:550;margin:0}
.settings-panel .settings-row small,.settings-panel .settings-row p{display:block;font-size:12px;line-height:1.75;color:var(--muted);margin:4px 0 0}
.settings-panel .settings-row>.settings-control{flex:0 1 auto;min-width:0}
.settings-control .btn{min-height:44px;font-size:13px}
.settings-options{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.settings-options>button,.settings-options>a,.settings-options>label{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--muted);font-size:13px;line-height:1.6;cursor:pointer}
.settings-options>[aria-pressed=true],.settings-options>[aria-current=true],.settings-options>.selected,.settings-options>label:has(input:checked){color:var(--brand);border-color:var(--brand);background:var(--tint)}
.settings-options>:hover{color:var(--text);border-color:var(--muted)}
.settings-panel>.form-actions{margin-top:20px}
.settings-panel h2>.xb-icon{color:var(--brand);margin-right:6px;vertical-align:-4px}
.settings-theme{min-inline-size:0;border:0;margin:0 0 12px;padding:0}
.settings-theme>legend{font-size:13px;line-height:1.7;color:var(--muted);margin:0 0 12px;padding:0}
.settings-options>.settings-theme-option{position:relative;flex:1 1 0;min-width:0;min-height:94px;padding:16px 10px;display:flex;flex-direction:column;gap:8px;align-items:center}
.settings-theme-option>.xb-icon:last-child{position:absolute;right:8px;top:8px;width:15px;height:15px}
.settings-theme-option[aria-pressed=false]>.xb-icon:last-child{visibility:hidden}
.settings-actions{display:flex;flex-wrap:wrap;gap:12px}
.settings-actions>.btn{font-size:13px}
.settings-feedback{font-size:12px;line-height:1.75;color:var(--muted);margin:14px 0 0}
.settings-feedback:empty{display:none}
.page-heading{font-size:clamp(25px,2.3vw,32px);line-height:1.35;font-weight:600;letter-spacing:-.03em;margin:0}
.account-flow-nav{display:flex;gap:6px;max-width:840px;padding:5px;margin:20px auto 24px;border:1px solid var(--line);border-radius:11px;background:var(--surface)}
.account-flow-nav>a{display:flex;align-items:center;justify-content:center;gap:9px;flex:1;min-width:0;min-height:48px;padding:11px 13px;border:1px solid transparent;border-radius:7px;color:var(--muted);font-size:14px;line-height:1.6;text-align:center}
.account-flow-nav>a:hover{color:var(--text);background:var(--surface2)}
.account-flow-nav>a[aria-current=page],.account-flow-nav>a.is-current{color:var(--brand);background:var(--tint);border-color:color-mix(in srgb,var(--brand) 25%,var(--line))}
.account-flow .form-grid{grid-template-columns:1fr;max-width:620px;gap:22px;margin-top:24px}
.account-flow .form-actions{margin-top:4px}
.account-flow>h3{font-size:16px;line-height:1.6;margin-top:22px}
.account-flow-steps{display:flex;list-style:none;gap:16px;padding:0;margin:24px 0;counter-reset:account-step}
.account-flow-steps>li{flex:1;min-width:0;border-bottom:2px solid var(--line);padding:0 0 13px;color:var(--muted);font-size:13px;line-height:1.7;counter-increment:account-step}
.account-flow-steps>li:before{content:counter(account-step);display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:6px;margin-right:8px;font-size:11px;line-height:1}
.account-flow-steps>li[aria-current=step]{color:var(--brand);border-bottom-color:var(--brand)}
.account-flow-steps>li[aria-current=step]:before{border-color:var(--brand)}
.account-email-status{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0;padding:14px 16px;background:var(--bg);border:1px solid var(--line);border-radius:10px;min-width:0}
.account-email-status>strong{min-width:0;font-size:14px;line-height:1.7;font-weight:550;overflow-wrap:anywhere}
.account-flow-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding-top:2px}
.account-flow-footer>a{min-height:44px;font-size:13px}
.account-flow-footer>.danger-link{font-size:12px}
.connection-steps{list-style:none;display:grid;gap:18px;padding:0;margin:24px 0;counter-reset:connection-step}
.connection-steps>li{position:relative;padding-left:42px;min-height:30px;font-size:14px;line-height:1.8;counter-increment:connection-step}
.connection-steps>li:before{content:counter(connection-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:8px;color:var(--brand);font-size:12px;line-height:1}
.connection-code{display:block;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:clamp(26px,6vw,40px);line-height:1.5;font-weight:600;letter-spacing:.12em;overflow-wrap:anywhere;padding:20px;margin:20px 0;background:var(--bg);border:1px solid var(--line);border-radius:10px}
.connection-panel{max-width:840px;margin-inline:auto}
.connection-panel+.account-flow-footer{max-width:840px;margin:20px auto 0}
.location-settings h2{font-size:23px;margin:16px 0 12px}
.location-settings>p{font-size:14px;line-height:1.8}
/* Authentication is one focused task, with recovery and role choices in sequence. */
.auth-layout{width:100%;max-width:540px;margin:0 auto}
.auth-page .section{padding-block:32px 48px}
.auth-page .section>.container>.section-head{max-width:540px;margin:0 auto 24px}
.auth-page .section>.container>.section-head h1,.auth-page .section>.container>.section-head h2{font-size:28px;line-height:1.35;font-weight:600}
.auth-panel{padding:30px;border-radius:16px}
.auth-intro{margin:0 0 24px}
.auth-intro>p,.auth-intro p{font-size:14px;line-height:1.8;color:var(--muted);margin:0}
.auth-form{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;min-width:0}
.auth-form>.field,.auth-form>.field.full{grid-column:1/-1}
.auth-form .field{gap:8px}
.auth-form .field label{font-size:14px}
.auth-form .field small,.auth-form .helper{font-size:12px;line-height:1.75}
.auth-form>.btn-primary{width:100%;margin-top:4px}
.auth-password{display:flex;align-items:center;min-width:0;position:relative}
.auth-password>.input{padding-right:94px}
.auth-password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:84px;min-width:84px;height:44px;min-height:44px;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;line-height:1.5;cursor:pointer}
.auth-password-toggle:hover{background:var(--surface2);color:var(--text)}
.auth-password-toggle:not(:disabled):active{transform:translateY(-50%)}
.auth-role-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-inline-size:0;margin:0;padding:0;border:0}
.auth-role-options>legend{font-size:14px;font-weight:550;padding:0;margin:0 0 10px}
.auth-role-option{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--bg);font-size:14px;line-height:1.65;cursor:pointer;min-width:0}
.auth-role-option input{margin:4px 0 0}
.auth-role-option>span{min-width:0;flex:1}
.auth-role-option strong{font-size:14px;font-weight:550;line-height:1.6;display:block}
.auth-role-option small{display:block;font-size:12px;line-height:1.75;color:var(--muted);margin-top:4px}
.auth-role-option:has(input:checked){background:var(--tint);border-color:var(--brand)}
.auth-role-option:has(input:focus-visible){outline:2px solid var(--focus);outline-offset:4px}
.auth-switch{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 12px;padding-top:22px;margin-top:24px;border-top:1px solid var(--line);font-size:13px;line-height:1.8;color:var(--muted)}
.auth-switch a{color:var(--brand);min-height:44px;display:inline-flex;align-items:center;font-weight:550}
.auth-progress{display:flex;gap:12px;list-style:none;margin:0 0 24px;padding:0}
.auth-progress li{flex:1;min-width:0;padding:0 0 12px;border-bottom:2px solid var(--line);font-size:12px;line-height:1.7;color:var(--muted)}
.auth-progress li[aria-current=step],.auth-progress .is-current{border-color:var(--brand);color:var(--brand)}
.auth-progress li>span{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:6px;font-size:11px;line-height:1;flex:0 0 24px;margin-right:8px}
.auth-progress li[aria-current=step]>span{border-color:var(--brand)}
.auth-email-summary{padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--bg);font-size:14px;line-height:1.8;overflow-wrap:anywhere;margin-bottom:20px}
.auth-email-summary>span{display:block;overflow-wrap:anywhere}
.auth-email-summary>a{display:inline-flex;align-items:center;min-height:40px;color:var(--brand);font-size:12px}
.auth-help{border-top:1px solid var(--line);margin-top:24px;padding-top:8px}
.auth-help>summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;color:var(--muted);font-size:13px;list-style:none}
.auth-help>summary::-webkit-details-marker{display:none}
.auth-help>summary:after{content:'+';font-size:19px;font-weight:400}
.auth-help[open]>summary:after{content:'−'}
.auth-help>p{font-size:12px;line-height:1.8;color:var(--muted);margin:8px 0 0}
.auth-resend-form{margin-top:8px}
.auth-resend-form .btn-link{font-size:13px;line-height:1.7;text-align:left}
.auth-secondary-actions{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-top:18px;font-size:13px}
.auth-secondary-actions>a,.auth-secondary-actions>button{display:inline-flex;align-items:center;min-height:44px;color:var(--brand)}
@media(min-width:1100px){
 .has-sidebar .app-shell{margin-left:248px}
 .site-sidebar{display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:248px;z-index:100;padding:20px 16px;border-right:1px solid var(--line);background:var(--surface);overflow:hidden;gap:0}
 .site-sidebar .sidebar-brand{flex:0 0 auto}
 .sidebar-navigation{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-block:4px 14px;margin-top:14px}
 .sidebar-navigation>.sidebar-group:first-child{margin-top:0}
 .site-sidebar .sidebar-account{flex:0 0 auto;margin-top:0;padding-top:16px}
 .has-sidebar .topbar .brand{display:none}
 .has-sidebar .topbar #menuOpen{display:none}
 .has-sidebar .desktop-nav{display:none}
 .has-sidebar .header-context{border:0;padding:0;max-width:none;font-size:14px;color:var(--text)}
 .has-sidebar .nav{min-height:72px;padding-block:12px;gap:16px}
 .has-sidebar .nav-actions{margin-left:auto}
 .has-sidebar .container{width:min(1100px,calc(100% - 64px))}
 .has-sidebar .section{padding-top:32px}
 .has-sidebar .master-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
 .has-sidebar .workspace-focus{padding:24px;margin-block:16px}
 .has-sidebar .workspace-focus h1{font-size:28px}
}
/* Motion communicates state; it never delays use or animates every card. */
@keyframes panel-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.landing-eyebrow,.landing-hero h1,.landing-intro{animation:panel-in 420ms var(--ease) both}
.landing-hero h1{animation-delay:30ms}
.landing-intro{animation-delay:60ms}
body.page-leaving:before{content:'';position:fixed;inset:0 auto auto 0;width:100%;height:2px;background:var(--brand);z-index:10000;transform-origin:left;animation:page-progress 1.2s var(--ease) both}
@keyframes page-progress{from{transform:scaleX(.12);opacity:.5}to{transform:scaleX(.92);opacity:1}}
@media(max-width:1050px){
 .desktop-nav{gap:20px}.nav{gap:22px}.header-context{display:none}
 .master-directory{grid-template-columns:repeat(2,minmax(0,1fr))}
 .landing-services{grid-template-columns:repeat(2,minmax(0,1fr))}
 .landing-master-grid{gap:16px}.landing-master{padding:22px}
 .landing-search{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;gap:12px}
}
@media(max-width:800px){
 .container{width:calc(100% - 40px)}.desktop-nav{display:none}.desktop-nav+.nav-actions{margin-left:auto}
 .nav{min-height:74px;padding-block:15px}.brand,.brand-text{font-size:21px}
 .section{padding:32px 0 44px}.grid{gap:20px}.grid-3,.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
 .landing-hero-inner{padding-block:66px 52px}.landing-hero h1{font-size:51px}.landing-intro{font-size:14px;margin:24px 0 30px;max-width:590px}
 .landing-search{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:18px;padding:22px}
 .landing-search>.btn{grid-column:1/-1;justify-self:start;min-width:165px}
 .landing-section{padding:46px 0}.landing-steps{gap:28px}.landing-steps h3{font-size:14px}.landing-steps p{font-size:12px}
 .landing-master-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.landing-master:last-child:nth-child(odd){display:none}
 .footer-grid{gap:32px}.form-card{padding:28px}
 .workspace-tools>div,.workspace-tools .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-summary>a,.workspace-summary>div{padding-inline:22px}
}
@media(max-width:650px){
 html{scroll-padding-top:88px;scroll-padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}.container{width:calc(100% - 32px)}
 body.is-authenticated:not(.chat-screen) main :where(button,a,input,select,textarea,summary){scroll-margin-block:100px}
 body.is-authenticated:not(.chat-screen) main{padding-bottom:16px}
 html:has(body.chat-screen){scroll-padding:0}
 .nav{min-height:70px;padding-block:13px;gap:14px}.nav-actions{gap:8px}.brand,.brand-text{font-size:21px}
 .header-context{display:none}.desktop-only{display:none}
 .icon-btn,.icon-link,.hamburger,.avatar-trigger{width:44px;height:44px;min-width:44px;min-height:44px}
 body.is-authenticated:not(.chat-screen){padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 body:not(.chat-screen):has(.bottom-nav){padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .bottom-nav{position:fixed;inset:auto 0 0;z-index:95;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;padding:9px 12px calc(9px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--surface)}
 .bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:48px;border-radius:9px;color:var(--muted);font-size:10px;font-weight:500;line-height:1.4;text-align:center;min-width:0}
 .bottom-nav a>span{display:inline-flex;align-items:center;justify-content:center;position:relative;width:32px;height:25px;padding:0;margin:0;background:transparent!important;border-radius:0;box-shadow:none;flex-shrink:0}
 .bottom-nav a>b{font-size:9px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
 .bottom-nav a[aria-current=page],.bottom-nav a.active{color:var(--brand)}
 .bottom-plus span{margin:0!important;width:32px!important;height:25px!important;color:inherit;background:transparent!important}
 .section{padding:28px 0 36px}.section-head{gap:16px;margin-bottom:24px}.section-head h2,.section h2{font-size:23px}.section-head p{font-size:13px}
 .card{padding:23px;border-radius:13px}.grid{gap:20px}.grid-2,.grid-3{grid-template-columns:1fr}
 .btn{font-size:13px;padding:13px 17px;min-height:48px}.action-bar,.button-group,.hero-actions,.dialog-actions{gap:12px}
 .input,.select,.textarea{font-size:16px;min-height:48px}.form-grid{grid-template-columns:1fr;gap:24px}.form-card{padding:24px;margin:22px auto}
 .field label{font-size:13px}.field small{font-size:11px}.field-error{font-size:12px}
 .drawer{padding:24px;width:min(360px,calc(100vw - 24px))}.drawer-section{margin-top:20px}
 .footer{padding:32px 0 22px;margin-top:24px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 24px;margin-bottom:26px}.footer-grid>div:first-child{grid-column:1/-1}
 .footer-grid p{font-size:12px;max-width:100%}.footer-grid a:not(.footer-brand){font-size:12px;min-height:36px}.footer-legal{gap:8px 24px;padding-top:16px;font-size:10px}
 .app-footer{margin-top:28px;padding:18px 0;font-size:10px}.app-footer>.container{gap:8px 20px}
 .landing-hero-inner{padding-block:52px 40px}.landing-eyebrow{font-size:9px;letter-spacing:.11em;margin-bottom:24px}
 .landing-hero h1{font-size:42px;letter-spacing:-.045em;line-height:1.16}.landing-intro{font-size:13px;line-height:1.95;margin:23px 0 28px}
 .landing-search{padding:20px;gap:20px;grid-template-columns:1fr}.landing-search>.btn{grid-column:auto;justify-self:stretch;min-height:48px}
 .landing-search label{font-size:11px;margin-bottom:8px}.landing-search input,.landing-search select{font-size:16px}.landing-search input::placeholder{font-size:12px}
 .landing-section{padding:38px 0}.landing-section .section-head{margin-bottom:24px}.landing-section h2{font-size:23px}.landing-section .section-head p{font-size:12px}
 .landing-services{gap:12px}.landing-service{gap:10px;padding:17px 14px;min-height:100px;align-items:flex-start;flex-direction:column;position:relative;border-radius:10px}
 .landing-service-icon{width:29px;height:29px;flex-basis:29px}.landing-service-icon svg{width:24px;height:24px}
 .landing-service strong{font-size:12px;line-height:1.65;padding-right:15px}.landing-service>.arrow-right{position:absolute;right:12px;bottom:19px}.landing-service>.arrow-right svg{width:15px;height:15px}
 .landing-service-more{margin-top:20px}.landing-request{font-size:11px;gap:5px 10px;margin-top:20px}.landing-request .text-link{font-size:11px}
 .landing-steps{grid-template-columns:1fr;gap:28px}.landing-steps li{padding-left:66px;min-height:64px;padding-top:0}.landing-step-icon{position:absolute;left:0;top:0;margin:0;width:42px;height:42px}.landing-step-number{display:none}
 .landing-steps h3{font-size:14px;margin-bottom:7px}.landing-steps p{font-size:12px;max-width:none;line-height:1.85}
 .landing-master-grid{grid-template-columns:1fr;gap:16px}.landing-master{padding:23px;gap:20px}.landing-master:last-child:nth-child(odd){display:flex}
 .landing-master-head h3{font-size:14px}.landing-master-head p{font-size:11px}.landing-master-bio{font-size:12px;line-height:1.9}
 .landing-master-meta{font-size:10px}.landing-master-action{font-size:12px}
 .master-directory{grid-template-columns:1fr;gap:16px;margin-top:24px}.master-card{padding:23px;gap:15px}.master-card h3{font-size:15px}.master-card p{font-size:12px}
 .profile-summary{padding:24px;gap:16px}.profile-summary h3{font-size:21px}.profile-summary .avatar{width:58px;height:58px;font-size:21px;border-radius:13px}
 .profile-actions{gap:12px;margin:24px 0}.profile-actions .btn{font-size:12px;padding:12px 15px}
 details.card>summary{padding:21px 23px;min-height:64px}details.card>form,details.card>.form-grid{padding:24px}details.card>p{padding:0 24px 24px;margin-top:21px}
 .readiness-card,[data-readiness]{padding:21px 23px!important;gap:20px}.readiness-card strong{font-size:13px}.readiness-card p{font-size:11px}
 .specialty-options{grid-template-columns:1fr;gap:12px}.specialty-option{font-size:12px}.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .profile-stats{gap:12px}.profile-stats .card{padding:20px 10px}.profile-stats strong{font-size:25px}.profile-stats span{font-size:10px;line-height:1.7}
 .workspace-head{margin-bottom:24px;gap:20px;flex-wrap:wrap}.workspace-head h1{font-size:29px}.workspace-head p{font-size:12px;line-height:1.9}
 .workspace-summary{padding:20px 0;margin:24px 0 28px}.workspace-summary>a,.workspace-summary>div{padding-inline:17px;gap:6px}.workspace-summary>:first-child{padding-left:0}
 .workspace-summary strong{font-size:24px}.workspace-summary span,.workspace-summary small{font-size:10px;line-height:1.7}
 .workspace-focus{flex-direction:column;align-items:stretch;gap:22px;padding:24px;margin:24px 0}.workspace-focus h2,.workspace-focus h3{font-size:19px}.workspace-focus p{font-size:12px;line-height:1.9}.workspace-focus>.btn{align-self:flex-start}
 .workspace-list{margin:32px 0}.workspace-list h2{font-size:19px}.workspace-row{gap:18px;padding:23px 0;min-height:0;align-items:flex-start}.workspace-row h3{font-size:14px}.workspace-row p,.workspace-row small{font-size:11px}
 .workspace-tools{margin-top:30px}.workspace-tools>div,.workspace-tools .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-tools a{font-size:11px;padding:13px;gap:10px;align-items:flex-start}
 .order-stepper{gap:16px;margin-bottom:25px}.order-stepper li,.order-stepper>button,.order-stepper>a{font-size:11px;padding-bottom:15px;line-height:1.75}.order-stepper .step-number{display:flex;margin-bottom:8px}
 .order-step{padding:24px}.order-step h2,.order-step h3{font-size:19px}.order-step>p{font-size:12px;line-height:1.9}
 .order-flow-actions{gap:16px;margin-top:24px;padding-top:23px}.order-flow-actions>.btn-primary{flex:1}.order-flow-actions>.btn:not(.btn-primary){padding-inline:12px}
 .order-overview{padding:24px;margin-bottom:24px}.order-overview h1,.order-overview h2{font-size:25px}.order-overview p{font-size:13px}
 .order-next-action{flex-direction:column;align-items:stretch;gap:22px;padding:24px}.order-next-action>.btn{align-self:flex-start}.order-next-action h2,.order-next-action h3{font-size:18px}.order-next-action p{font-size:12px}
 .order-secondary-actions{gap:12px}.order-filter-panel{padding:20px}.order-list-card{padding:23px 0}.order-list-card h3{font-size:16px}.order-tabs{gap:22px}
 .xb-dialog{padding:24px;max-height:calc(100dvh - 32px);border-radius:13px}.xb-dialog h3{font-size:19px}.location-dialog{width:calc(100vw - 28px)}.location-map-wrap #locationPickerMap{height:270px}
 .location-summary,.location-card{padding:16px;gap:12px}.location-dialog .hero-actions{gap:12px}.permission-panel,.permission-onboarding{padding:23px}
 .permission-onboarding{gap:20px}.permission-onboarding>div:first-child{min-width:0;flex-basis:100%}.permission-onboarding .hero-actions{gap:12px}
 .inbox-filters{gap:21px}.inbox-filter{font-size:11px}.inbox-heading{gap:18px}.inbox-heading p{font-size:12px}.inbox-actions strong{font-size:12px}
 .notice-card,.guidance-card{gap:14px}.notice-icon,.guidance-marker{width:32px;height:32px;flex-basis:32px;border-radius:8px}.notice-icon svg,.guidance-marker svg{width:19px;height:19px}
 .notice-content h3{font-size:15px;line-height:1.7}.notice-content p{font-size:12px;line-height:1.9}.notice-content small{font-size:10px}.notice-open{font-size:11px}
 #xbLiveNotices{top:85px;right:16px;width:calc(100vw - 32px)}
 .chat-top,.chat-head{padding:14px 16px;gap:10px}.chat-person strong{font-size:13px}.chat-presence{font-size:10px}.chat-tools{gap:7px}
 .xb-chat{border:0}.xb-chat .messages{padding:18px 14px;gap:12px}.bubble{max-width:90%;font-size:13px;line-height:1.8;padding:11px 13px}
 .chat-composer{padding:12px 12px max(12px,env(safe-area-inset-bottom));gap:8px}.chat-composer textarea{font-size:16px;min-height:46px}.chat-composer .icon-btn{min-width:38px;width:38px}
 .chat-order-context{padding:12px 16px;font-size:10px;gap:10px}.voice-player{min-width:150px}.voice-track canvas{width:135px}.call-screen{padding:24px;gap:24px}.call-actions{gap:16px}
}
@media(max-width:380px){
 .container{width:calc(100% - 28px)}.nav{gap:12px}.brand,.brand-text{font-size:20px}.nav-actions{gap:6px}
 .landing-hero-inner{padding-block:44px 34px}.landing-eyebrow{font-size:8px;letter-spacing:.1em;margin-bottom:22px}.landing-hero h1{font-size:36px;line-height:1.18;letter-spacing:-.045em}.landing-intro{font-size:12px;line-height:1.95;margin:22px 0 26px}
 .landing-search{padding:18px;gap:20px}.landing-search input::placeholder{font-size:11px}.landing-search-query>div{padding-inline:11px;gap:8px}.landing-search-query .xb-icon{width:18px;height:18px}.landing-search>.btn{font-size:12px}
 .landing-section{padding:34px 0}.landing-section h2{font-size:21px}.landing-section .section-head p{font-size:12px}.landing-services{gap:12px}.landing-service{padding:17px 13px;min-height:112px;gap:12px}.landing-service strong{font-size:11px;line-height:1.75}.landing-service>.arrow-right{right:10px;bottom:19px}
 .landing-steps li{padding-left:57px}.landing-step-icon{width:36px;height:40px}.landing-steps h3{font-size:13px}.landing-steps p{font-size:11px;line-height:1.95}
 .landing-master{padding:21px}.landing-master-head{gap:11px}.landing-master-head>.avatar{width:42px;height:42px;min-width:42px}.landing-master-head h3{font-size:13px}.landing-master-head p{font-size:10px}.landing-master-bio{font-size:11px;line-height:1.95}.landing-master-meta{font-size:9px}
 .card,.form-card{padding:21px}.form-grid{gap:24px}.field label{font-size:12px}.btn{font-size:12px;padding:13px 15px}.field small{font-size:10px;line-height:1.9}
 .profile-summary{padding:22px;gap:13px;align-items:flex-start}.profile-summary .avatar{width:45px;height:45px;min-width:45px;font-size:17px;border-radius:11px}.profile-summary h3{font-size:18px}.profile-summary .role-switch button{font-size:10px;padding:9px 7px;gap:5px}.profile-summary .role-switch svg{width:15px;height:15px}
 .profile-actions .btn{font-size:11px;padding:12px 13px}.readiness-card,[data-readiness]{padding:20px 21px!important;gap:16px}.readiness-card strong{font-size:12px}.readiness-card p{font-size:10px;line-height:1.85}
 .workspace-head h1{font-size:27px}.workspace-summary>a,.workspace-summary>div{padding-inline:13px}.workspace-summary>:first-child{padding-left:0}.workspace-summary strong{font-size:23px}.workspace-summary span,.workspace-summary small{font-size:9px;line-height:1.85}
 .workspace-focus{padding:22px}.workspace-focus h2,.workspace-focus h3{font-size:18px}.workspace-focus p{font-size:11px;line-height:1.95}.workspace-tools>div,.workspace-tools .grid{grid-template-columns:1fr}.workspace-tools a{font-size:12px;align-items:center;gap:12px}
 .workspace-row{gap:14px}.workspace-row .badge{font-size:9px;padding:5px 7px}.workspace-row h3{font-size:13px}.workspace-row p,.workspace-row small{font-size:10px}
 .order-stepper{gap:12px}.order-stepper li,.order-stepper>button,.order-stepper>a{font-size:10px}.order-step,.order-overview,.order-next-action{padding:22px}.order-step h2,.order-step h3{font-size:18px}.order-step>p{font-size:11px;line-height:1.95}.order-flow-actions{gap:12px}.order-flow-actions>.btn{font-size:11px;padding-inline:13px}.order-overview h1,.order-overview h2{font-size:23px}
 .xb-dialog{padding:22px;width:calc(100vw - 28px)}.location-dialog{padding:18px}.location-map-wrap #locationPickerMap{height:230px}.location-dialog .hero-actions .btn{flex-basis:100%}.location-summary small,.location-card small{font-size:10px}
 .notice-card,.guidance-card{gap:12px}.notice-icon,.guidance-marker{width:28px;height:28px;flex-basis:28px}.notice-content h3{font-size:13px}.notice-content p{font-size:11px;line-height:1.95}.notice-content small{font-size:9px}.inbox-filter{font-size:10px}.inbox-filters{gap:18px}.inbox-heading p{font-size:11px}.permission-panel,.permission-onboarding{padding:21px}
 .footer-grid{gap:25px 20px}.footer-grid p{font-size:11px;line-height:1.95}.footer-grid a:not(.footer-brand){font-size:11px}.footer-legal{gap:8px 20px;font-size:9px}.bottom-nav{gap:6px;padding-inline:9px}.bottom-nav a>b{font-size:8px;line-height:1.7}
 .chat-composer{gap:7px;padding-inline:9px}.chat-composer .icon-btn{min-width:34px;width:34px}.voice-send{width:44px;height:46px;min-width:44px}.bubble{max-width:93%;font-size:12px}.voice-player{min-width:140px}.voice-track canvas{width:125px}
}
@media(max-width:650px){
 .account-identity{padding:24px;gap:16px;flex-wrap:wrap}.account-identity>.avatar{width:56px;height:56px;min-width:56px;border-radius:13px;font-size:21px}.account-name h1{font-size:23px}.account-name p{font-size:10px}.account-identity>.btn{margin-left:72px;min-height:44px;font-size:11px}
 .account-section{margin-top:22px}.account-section>h2{font-size:14px}.account-disclosure-body{padding:24px}.settings-row{gap:14px;min-height:65px;font-size:12px;padding:16px 0}.settings-icon{width:28px;height:28px;flex-basis:28px}.form-actions{gap:12px 18px}.form-actions .text-link{font-size:12px}
 .directory-searchbar{gap:12px}.directory-searchbar>.btn{min-width:88px;font-size:12px;padding-inline:16px}.search-field{padding-inline:12px;gap:10px}.search-field .input{font-size:14px}.directory-filters>summary{font-size:11px;gap:9px}.directory-filter-fields{grid-template-columns:1fr;gap:24px;padding:22px;margin-top:12px}.master-card .master-card-bio{font-size:11px;line-height:1.9}.master-card .master-card-rating{font-size:10px}.master-card-chevron{align-self:center}.master-card{gap:13px}.pagination-actions{margin-top:28px}
 .workspace-focus>.action-bar{align-self:stretch;justify-content:flex-start}.workspace-focus h1{font-size:25px;line-height:1.45}.workspace-content{margin-top:30px}.workspace-content h2{font-size:19px}.workspace-content>.section-head{gap:12px}.workspace-row{gap:14px}.workspace-row-icon{width:34px;height:38px;flex-basis:34px;border-radius:8px}.workspace-row-icon .xb-icon{width:19px;height:19px}.workspace-row-copy strong{font-size:13px}.workspace-row-copy small{font-size:10px;line-height:1.9}.workspace-row-tail{gap:8px;font-size:11px;max-width:130px}.workspace-row-tail .badge{font-size:9px;padding:5px 7px;white-space:normal}.workspace-empty{padding:32px 20px;gap:13px}.workspace-empty h3{font-size:15px}.workspace-empty p{font-size:11px;line-height:1.95}
 .order-step legend{font-size:15px}.order-stepper li{display:flex;flex-direction:column;align-items:flex-start;gap:9px}.order-stepper li>span{margin:0}.order-stepper li>strong{font-size:10px;font-weight:500;line-height:1.8}.order-review dl>div{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr)}.order-review dd{font-size:11px}.order-review dt{font-size:10px}.order-review h3{font-size:15px}.order-review>p{font-size:11px}.order-target{margin-bottom:22px;padding:18px 0}
}
@media(max-width:380px){
 .brand-symbol .xb-icon{width:21px;height:21px}.brand{gap:7px}.brand,.brand-text{font-size:18px}.header-login{font-size:11px;padding-inline:5px}.nav-actions{gap:5px}
 .account-identity{padding:22px;gap:13px}.account-identity>.avatar{width:46px;height:46px;min-width:46px;font-size:18px;border-radius:11px}.account-name h1{font-size:20px}.account-identity>.btn{margin-left:59px;font-size:10px}.account-name .eyebrow{font-size:9px}.account-disclosure-body{padding:22px}.settings-row{font-size:11px;gap:13px}.settings-icon{width:25px;flex-basis:25px}.settings-icon .xb-icon{width:19px;height:19px}
 .directory-searchbar{gap:12px;flex-wrap:wrap}.search-field{flex-basis:100%;min-height:48px}.directory-searchbar>.btn{width:100%;font-size:12px}.directory-filter-fields{padding:21px}.master-card{gap:12px}.master-card .avatar{width:44px;height:44px;font-size:17px;border-radius:11px}.master-card h3{font-size:13px}.master-card p{font-size:11px}.master-card-chevron{display:none}
 .workspace-row-tail{max-width:85px}.workspace-row-tail>.xb-icon:last-child{display:none}.workspace-row-copy strong{font-size:12px}.workspace-row-copy small{font-size:9px}.workspace-row-icon{width:30px;flex-basis:30px;height:35px}.workspace-focus h1{font-size:23px}.workspace-role{font-size:9px}.workspace-head p{font-size:11px}
 .order-stepper li>strong{font-size:9px}.order-step legend{font-size:14px}.order-review dl>div{grid-template-columns:1fr;gap:5px}.order-review dt{font-size:10px}.order-review dd{font-size:12px}
}

@media(max-width:900px){.order-detail-layout{grid-template-columns:minmax(0,1fr) 290px;gap:22px}.order-detail-layout>.order-next-action{padding:23px}}
@media(max-width:650px){
 .order-overview-top{gap:16px}.order-price{padding:20px 0;margin:16px 0 0}.order-price strong{font-size:25px}.order-price small{font-size:10px}.order-status-steps{margin-top:20px}
 .order-detail-layout{grid-template-columns:1fr;grid-template-areas:'action' 'main';gap:24px}.order-detail-layout>.order-next-action{position:static;padding:24px;gap:20px}.order-detail-layout .order-next-action h2{font-size:20px}.order-detail-layout .order-next-action p{font-size:12px;line-height:1.9}.order-detail-layout .order-next-action>.btn{align-self:flex-start;width:auto;min-width:140px}.order-next-action form>.btn{width:auto;min-width:140px}
 .order-brief h2,.order-review-form h2{font-size:19px;margin-bottom:20px}.order-brief>.preserve-lines{font-size:13px;line-height:1.95}.order-address{padding:20px 0;gap:12px}.order-address p{font-size:12px;line-height:1.9}.order-fee-details{margin-top:20px}.order-fee-details p{font-size:11px}.order-offers{margin-top:28px}.order-offers h2{font-size:19px}.order-offer{padding:23px}.order-offer-heading strong{font-size:13px}.order-offer-heading>strong{font-size:16px}.order-offer>p{font-size:12px;line-height:1.9}
 .order-secondary-body{padding:24px}.order-secondary-actions>summary{padding:20px 23px;font-size:12px}.order-secondary-body h3{font-size:15px}.order-secondary-body p{font-size:11px;line-height:1.95}.order-secondary-body .order-flow-actions>.btn{flex:1 1 100%}
 .orders-toolbar{gap:20px;flex-wrap:wrap;margin-bottom:22px}.order-mode-tabs{gap:22px;flex-basis:100%}.order-mode-tabs a{font-size:11px;min-height:46px}.orders-toolbar>.btn{font-size:12px}.order-list-meta{gap:16px}.order-list-card h3{font-size:16px;line-height:1.7}.order-list-card>p{font-size:12px;line-height:1.95}.order-list-footer{gap:15px;flex-wrap:wrap}.order-list-footer small{font-size:10px}.order-list-footer strong{font-size:12px}.order-list-meta .badge{font-size:10px}.order-list .order-list-card{padding:24px 0}
}
@media(max-width:380px){
 .order-detail-layout>.order-next-action{padding:22px}.order-detail-layout .order-next-action h2{font-size:18px}.order-detail-layout .order-next-action p{font-size:11px;line-height:1.95}.order-price strong{font-size:23px}.order-price small{font-size:10px}.order-offer{padding:21px}.order-offer-heading>strong{font-size:14px}.order-offer-heading strong{font-size:12px}.order-offer>p{font-size:11px;line-height:1.95}.order-secondary-body{padding:22px}.order-secondary-actions>summary{padding:20px 21px;font-size:11px}.order-secondary-body h3{font-size:14px}
 .order-list-meta>span:first-child{font-size:9px}.order-list-meta .badge{font-size:9px}.order-list-card h3{font-size:15px}.order-list-card>p{font-size:11px;line-height:1.95}.order-list-footer{gap:12px}.order-list-footer strong{font-size:11px}.order-list-footer small{font-size:9px}.order-list-footer>.arrow-right{display:none}
}

/* Reviewed page rhythm: content and useful actions stay close to the first viewport. */
.landing-hero-inner{padding-block:54px 44px}
.landing-eyebrow{font-size:11px;margin-bottom:20px}
.landing-hero h1{font-size:clamp(36px,4.6vw,58px);line-height:1.14;max-width:900px}
.landing-intro{font-size:16px;line-height:1.8;margin:22px 0 28px}
.landing-search{padding:18px;gap:14px}
.landing-search label{font-size:12px}
.landing-section{padding:40px 0}
.landing-section .section-head{margin-bottom:22px}
.landing-section .section-head p,.landing-steps p{font-size:14px;line-height:1.8}
.landing-service{min-height:76px;padding:16px 18px}
.landing-service strong{font-size:14px}
.landing-steps{gap:30px}
.landing-step-icon{margin-bottom:14px}
.landing-master-bio{font-size:13px;line-height:1.8}
.landing-master-head p,.landing-master-meta,.landing-master-action{font-size:12px}
.workspace-head p{margin:0}
.workspace-summary{margin-block:20px 24px;padding-block:18px}
.workspace-summary span,.workspace-summary small{font-size:12px;line-height:1.65}
.workspace-focus{margin-block:20px;padding:24px}
.workspace-focus p{font-size:14px;line-height:1.75}
.workspace-content{margin-top:24px}
.workspace-row-copy small{font-size:12px;line-height:1.7}
.workspace-row-tail .badge{font-size:11px}
.workspace-empty p{font-size:13px;line-height:1.8}
.directory-filters>summary{font-size:13px}
.master-card .master-card-bio,.master-card p{font-size:13px;line-height:1.75}
.master-card .master-card-rating,.master-card .muted{font-size:12px}
.order-list-meta>span:first-child,.order-list-footer small{font-size:12px}
.order-list-card>p{font-size:14px;line-height:1.75}
.order-list-footer strong{font-size:14px}
.order-detail-layout .order-next-action p,.order-secondary-body p,.order-fee-details p{font-size:13px;line-height:1.8}
.order-address p{font-size:14px}
.order-address small,.order-offer-heading small{font-size:12px}
.order-offer>p{font-size:14px;line-height:1.8}
.order-secondary-actions>summary{font-size:14px}
.account-name p{font-size:13px;line-height:1.7}
.settings-row{font-size:14px}
.field small,.field .helper{font-size:12px}
@media(max-width:800px){
 .landing-hero-inner{padding-block:40px 32px}
 .landing-hero h1{font-size:44px}
 .landing-intro{font-size:15px;margin:20px 0 24px}
 .landing-section{padding:32px 0}
 .landing-steps p{font-size:13px}
 .settings-panel .settings-row{align-items:flex-start;flex-wrap:wrap;gap:12px}
 .settings-panel .settings-row>.settings-control{flex:1 1 100%}
 .settings-options{width:100%}
 .settings-options>button,.settings-options>a,.settings-options>label{flex:1 1 auto}
}
@media(max-width:650px){
 .nav{min-height:66px;padding-block:11px}
 .section{padding-block:24px 32px}
 .section-head{margin-bottom:20px}
 .landing-hero-inner{padding-block:32px 28px}
 .landing-eyebrow{font-size:10px;margin-bottom:16px;letter-spacing:.09em}
 .landing-hero h1{font-size:clamp(31px,8.8vw,39px);line-height:1.15}
 .landing-intro{font-size:14px;line-height:1.75;margin:18px 0 22px}
 .landing-search{grid-template-columns:minmax(0,1fr) auto;gap:14px 12px;padding:16px}
 .landing-search-query{grid-column:1/-1}
 .landing-search>.btn{grid-column:auto;align-self:end;justify-self:stretch;padding-inline:14px;font-size:13px;max-width:140px;min-width:0}
 .landing-search label{font-size:12px;margin-bottom:7px}
 .landing-search input::placeholder{font-size:14px}
 .landing-search select{font-size:14px}
 .landing-section{padding:28px 0}
 .landing-section h2{font-size:22px}
 .landing-section .section-head{margin-bottom:18px}
 .landing-section .section-head p{font-size:13px;line-height:1.75}
 .landing-services{gap:10px}
 .landing-service{flex-direction:row;align-items:center;gap:10px;min-height:76px;padding:13px 12px}
 .landing-service-icon{width:25px;height:25px;flex-basis:25px}
 .landing-service-icon svg{width:23px;height:23px}
 .landing-service strong{font-size:12px;line-height:1.55;padding:0}
 .landing-service>.arrow-right{display:none}
 .landing-request,.landing-request .text-link,.landing-service-more>summary{font-size:12px}
 .landing-steps{gap:20px}
 .landing-steps li{padding-left:54px;min-height:56px}
 .landing-step-icon{width:34px;height:34px}
 .landing-master{padding:20px;gap:16px}
 .landing-master-head p,.landing-master-meta,.landing-master-action{font-size:12px}
 .landing-master-bio{font-size:13px;line-height:1.75}
 .workspace-page .section{padding-top:20px}
 .workspace-head{align-items:center;gap:12px;margin-bottom:12px;flex-wrap:nowrap}
 .workspace-head p{font-size:13px;line-height:1.6;margin:0}
 .workspace-role{font-size:11px;padding:4px 8px}
 .workspace-focus{padding:20px;margin-block:12px;gap:16px;border-radius:13px}
 .workspace-focus h1{font-size:23px;line-height:1.35;margin-bottom:8px}
 .workspace-focus p{font-size:13px;line-height:1.7}
 .workspace-focus>.action-bar{align-self:stretch}
 .workspace-focus .action-bar>.btn,.workspace-focus .action-bar>form,.workspace-focus .action-bar>form>.btn{width:100%}
 .workspace-focus .btn{font-size:14px}
 .workspace-readiness{padding:16px 18px!important;margin-block:12px;gap:16px}
 .workspace-readiness strong{font-size:13px}
 .workspace-readiness p{font-size:12px;line-height:1.65}
 .workspace-summary{margin-block:16px 20px;padding-block:14px}
 .workspace-summary>a,.workspace-summary>div{padding-inline:16px;gap:4px}
 .workspace-summary strong{font-size:24px}
 .workspace-summary span,.workspace-summary small{font-size:12px;line-height:1.6}
 .workspace-content{margin-top:20px}
 .workspace-content h2{font-size:19px}
 .workspace-row{padding-block:18px;gap:12px}
 .workspace-row-copy strong{font-size:14px;line-height:1.55}
 .workspace-row-copy small{font-size:12px;line-height:1.65;margin-top:5px}
 .workspace-row-tail .badge{font-size:11px;line-height:1.55;padding:5px 7px}
 .workspace-empty{padding:28px 20px}
 .workspace-empty p{font-size:13px;line-height:1.75}
 .workspace-tools a{font-size:13px}
 .bottom-nav a>b{font-size:11px;line-height:1.45}
 .directory-filters>summary{font-size:13px}
 .master-card{padding:20px}
 .master-card p,.master-card .master-card-bio{font-size:13px;line-height:1.7}
 .master-card .master-card-rating,.master-card .muted{font-size:12px}
 .account-identity{padding:20px;gap:16px}
 .account-name h1{font-size:23px;line-height:1.4}
 .account-name p{font-size:13px;line-height:1.7}
 .settings-row{font-size:14px;min-height:64px}
 .settings-layout{gap:18px}
 .settings-section-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .settings-section-nav>a:last-child:nth-child(odd){grid-column:1/-1}
 .settings-panel{padding:20px}
 .settings-panel>h2,.settings-panel>header h2{font-size:19px}
 .settings-panel .settings-row{padding-block:16px;gap:12px}
 .settings-panel .settings-row strong,.settings-panel .settings-row h3{font-size:14px}
 .settings-panel .settings-row p,.settings-panel .settings-row small{font-size:12px}
 .settings-options>button,.settings-options>a,.settings-options>label{padding-inline:12px}
 .order-list-meta>span:first-child,.order-list-footer small{font-size:12px}
 .order-list-meta .badge{font-size:11px}
 .order-list-card h3{font-size:17px;line-height:1.5}
 .order-list-card>p{font-size:13px;line-height:1.75}
 .order-list-footer strong{font-size:14px}
 .order-detail-layout .order-next-action p,.order-secondary-body p,.order-fee-details p{font-size:13px;line-height:1.8}
 .order-address p{font-size:14px}
 .order-address small,.order-offer-heading small{font-size:12px}
 .order-offer>p{font-size:14px;line-height:1.8}
 .order-secondary-actions>summary{font-size:14px}
 .order-review dt,.order-review dd,.order-stepper li>strong{font-size:12px}
 .auth-page .section{padding-block:24px 36px}
 .auth-page .section>.container>.section-head{margin-bottom:20px}
 .auth-page .section>.container>.section-head h1,.auth-page .section>.container>.section-head h2{font-size:26px}
 .auth-panel{padding:22px 20px}
 .auth-intro{margin-bottom:20px}
 .auth-intro p{font-size:14px;line-height:1.75}
 .auth-form{gap:20px}
 .auth-form .input{font-size:16px}
 .auth-form .field label{font-size:14px}
 .auth-role-option{padding:12px;gap:8px}
 .auth-role-option strong{font-size:14px}
 .auth-role-option small{font-size:12px}
 .auth-switch{font-size:13px;margin-top:22px;padding-top:18px}
 .auth-secondary-actions{font-size:13px;gap:8px 16px}
}
@media(max-width:380px){
 .workspace-focus{padding:18px}
 .workspace-focus h1{font-size:22px}
 .workspace-row-tail>.xb-icon{display:none}
 .workspace-row-tail{max-width:92px}
 .workspace-row-icon{display:none}
 .auth-role-options{grid-template-columns:1fr}
 .landing-search>.btn{padding-inline:10px;max-width:126px}
 .landing-search input::placeholder{font-size:13px}
 .account-flow-nav{gap:4px;padding:4px}
 .account-flow-nav>a{font-size:13px;padding:10px 8px;gap:6px;flex-wrap:wrap}
 .account-flow-nav>a>.xb-icon{width:17px;height:17px}
 .account-flow-steps{gap:12px}
 .account-flow-steps>li{font-size:12px}
}
@media(max-width:650px) and (max-height:740px){
 .workspace-page .section{padding-top:16px}
 .workspace-focus{padding:18px;margin-block:10px;gap:12px}
 .workspace-focus p{font-size:13px;line-height:1.65}
 .workspace-readiness{padding-block:12px!important;margin-block:10px}
 .workspace-readiness p{display:none}
 .workspace-summary{margin-block:12px 16px;padding-block:10px}
 .workspace-content{margin-top:16px}
 .workspace-row{padding-block:12px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 .btn:active,button:not(:disabled):active{transform:none!important}.reveal{opacity:1;transform:none}
}
@media(forced-colors:active){
 .btn,.card,.icon-btn,.avatar-trigger,.landing-service,.landing-master{border:1px solid ButtonText}
 .bottom-nav a[aria-current=page],.desktop-nav a[aria-current=page]{outline:1px solid LinkText}
}

/* Email verification before account access. */
.auth-verification-panel .auth-email-summary>div{min-width:0;flex:1}
.auth-verification-panel .auth-email-summary small,.auth-verification-panel .auth-email-summary strong{display:block;overflow-wrap:anywhere}
.auth-verification-panel .auth-email-summary strong{margin-top:5px}
.auth-verification-panel #verificationCode{text-align:center;font-variant-numeric:tabular-nums;font-size:1.25rem;letter-spacing:.22em}
@media(max-width:380px){.auth-verification-panel .auth-email-summary{align-items:flex-start;flex-direction:column;gap:10px}}

/* 2.3.3: profile name collapsed to a 4px column on phones (flex-basis 0 + wrap). */
.account-name{flex:1 1 160px}

/* 2.3.3 navigation: one map for sidebar, drawer, profile, app and bot. */
.site-sidebar{overflow-y:auto}
.sidebar-foot{margin-top:auto;display:grid;gap:10px;padding-top:14px;border-top:1px solid var(--line)}
.sidebar-foot .role-switch{margin:0}
.sidebar-foot .sidebar-account{border-top:0;margin:0}
.sidebar-logout{display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 12px;border-radius:9px;color:var(--muted);font-size:13px}
.sidebar-logout:hover{color:var(--danger,#e5484d);background:var(--surface-2,rgba(127,127,127,.08))}
.header-register{min-height:40px;padding:8px 14px;font-size:12px}
.drawer-section-flat{border-top:1px solid var(--line);margin-top:8px;padding-top:12px}
.drawer-section-flat>h2{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);margin:6px 0 4px}
.workspace-tools-title{font-size:13px;font-weight:500;color:var(--muted);margin:14px 0 0}
.order-mode-spacer{flex:1}
.settings-row.danger-link,.settings-row.danger-link .settings-icon{color:var(--danger,#e5484d)}
/* Phones already have the bottom bar; the cabinet does not need a second link footer. */
body.is-authenticated .app-footer{display:none}
@media(max-width:650px){.header-register{min-height:36px;padding:6px 10px;font-size:11px}}
@media(max-width:380px){.header-register{padding:6px 8px}}
/* 2.3.3 admin: grouped dashboard and readable user cards. */
.admin-hub{display:grid;gap:18px;margin-block:8px 32px}
.admin-hub-alert{display:flex;align-items:center;gap:10px}
.admin-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.admin-stat{display:flex;align-items:center;gap:14px;padding:20px}
.admin-stat small{display:block;color:var(--muted);font-size:12px}
.admin-stat strong{display:block;font-size:26px;font-weight:600;line-height:1.2}
.admin-hub .account-section{margin:0;padding-bottom:6px}
.admin-search{margin-block:8px 18px}
.admin-user-list{display:grid;gap:14px;margin-bottom:24px}
.admin-user{padding:18px 20px;display:grid;gap:14px}
.admin-user header{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.admin-user-copy{display:grid;flex:1 1 160px;min-width:0}
.admin-user-copy small{color:var(--muted)}
.admin-user-actions{display:flex;flex-wrap:wrap;gap:8px}
.admin-user-actions .btn{min-height:40px;font-size:12px}
.badge-danger{color:var(--danger);border-color:currentColor}
.admin-credit>summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:var(--muted);font-size:13px;list-style:none}
.admin-credit[open]>summary{margin-bottom:12px}
@media(max-width:650px){.admin-stat{flex-direction:column;align-items:flex-start;gap:8px;padding:14px}.admin-stat strong{font-size:22px}.admin-stats{gap:10px}}

.account-role .account-disclosure-body{padding:0}
/* 2.3.3 polish */
main .workspace-tools>h2.workspace-tools-title{font-size:20px;font-weight:550;color:var(--text);margin:18px 0 0;line-height:1.4}
.header-register{white-space:nowrap}
.has-sidebar .sidebar-link{min-height:40px;padding:8px 12px}
.has-sidebar .sidebar-group{margin-top:18px}
@media(max-width:520px){
 .nav-actions .header-register{display:none}
 .nav-actions .header-login{border:1px solid var(--line);border-radius:9px;padding:8px 14px;color:var(--text);font-weight:550}
}
/* 3.0 trust marks */
.xb-verified{display:inline-flex;vertical-align:-3px;margin-left:4px}
.xb-level{display:inline-flex;align-items:center;padding:3px 9px;border-radius:8px;font-size:11px;font-weight:700;background:rgba(240,182,90,.14);color:var(--accent,#c88a2e)}
.xb-level-0{background:var(--surface2);color:var(--muted)}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.permission-grid .form-actions{grid-column:1/-1}
.audit-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.audit-list li{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:10px;font-size:13px;padding:8px 0;border-bottom:1px solid var(--line)}
.audit-list span,.audit-list small{color:var(--muted)}
.admin-temp code{font-size:20px;letter-spacing:.08em;user-select:all}
@media(max-width:650px){.permission-grid{grid-template-columns:1fr}.audit-list li{grid-template-columns:1fr}}
/* 3.0 order form */
.urgency-choice{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.urgency-option{position:relative}
.urgency-option input{position:absolute;opacity:0;inset:0;cursor:pointer}
.urgency-option span{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:22px;border:1px solid var(--line);background:var(--surface);font-weight:650;font-size:14px;transition:background .2s,color .2s,border-color .2s}
.urgency-option input:checked+span{background:var(--accent,#f0b65a);border-color:var(--accent,#f0b65a);color:#14110b}
.urgency-option input:focus-visible+span{outline:2px solid var(--accent,#f0b65a);outline-offset:2px}
.urgency-option:has(input[value=now]:checked) span{background:#e5484d;border-color:#e5484d;color:#fff}
.urgency-now-hint,.schedule-fields{display:none}
.urgency-field:has(input[value=now]:checked) .urgency-now-hint{display:block;margin-top:8px;color:#e5484d;font-weight:600}
.urgency-field:has(input[value=scheduled]:checked) .schedule-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:12px}
.package-summary{display:grid;gap:4px;padding:16px;border:1px solid var(--accent,#f0b65a);border-radius:14px;background:rgba(240,182,90,.08)}
.package-summary strong{font-size:17px}
.price-guide{padding:12px 14px;border-radius:12px;background:rgba(76,195,138,.1);color:var(--text);font-size:13px;font-weight:600}
@media(max-width:520px){.urgency-field:has(input[value=scheduled]:checked) .schedule-fields{grid-template-columns:1fr}}
/* 3.0 order stages */
.order-stage{display:grid;gap:14px}
.order-stage-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.order-stage-head h2{margin:0;font-size:20px}
.stage-track{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.stage-track li{display:grid;gap:6px}
.stage-track li span{height:6px;border-radius:6px;background:var(--line)}
.stage-track li.done span{background:#3fb27f}
.stage-track li.now span{background:var(--accent,#f0b65a);box-shadow:0 0 0 3px rgba(240,182,90,.18)}
.stage-track small{font-size:10px;line-height:1.3;color:var(--muted);text-align:center}
.stage-track li.now small{color:var(--text);font-weight:700}
.stage-actions{display:flex;flex-wrap:wrap;gap:10px}
.stage-actions .btn{min-height:48px}
.order-map{border-radius:16px;overflow:hidden;border:1px solid var(--line);height:240px}
.order-map iframe{width:100%;height:100%;border:0;display:block}
.result-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px}
.result-gallery img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;display:block}
.stage-upload,.warranty-claim form{display:grid;gap:10px}
.order-warranty,.order-when,.order-master-marks{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.warranty-claim>summary{cursor:pointer;font-weight:650;color:var(--accent,#c88a2e)}
/* 3.0: the stage track replaces the older three-step strip on the order page. */
body:has(.order-stage) .order-status-steps{display:none}
/* 3.0 packages */
.package-list{display:grid;gap:10px}
.package-card{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.package-card p{margin:4px 0;font-size:13px}
.package-buy{display:grid;gap:8px;justify-items:end;flex-shrink:0}
.package-buy span{font-size:16px;font-weight:800;color:var(--accent,#c88a2e)}
.packages-editor .package-row{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
@media(max-width:520px){.package-card{flex-direction:column;align-items:stretch}.package-buy{justify-items:stretch}}

/* ===== XizmatBOR 3.0 design (variant A: dark + gold, floating glass navigation) ===== */
:root{--bg:#0e0f12;--surface:#17191e;--surface2:#1f2228;--surface3:#2a2e36;--line:#2c3037;--brand:#f0b65a;--brand2:#f0b65a;--primary:#f0b65a;--accent:#f0b65a;--action:#f0b65a;--action-hover:#f6c77f;--tint:#2a2418;--radius:20px;--ok:#3fb27f;--bad:#e5484d;--glass:rgba(28,30,36,.74);--glass-line:rgba(255,255,255,.09);--glass-shadow:0 18px 40px rgba(0,0,0,.45)}
html[data-theme=light]{--ok:#1f8a5c;--bad:#c9353b;--glass:rgba(255,255,255,.84);--glass-line:rgba(20,24,32,.08);--glass-shadow:0 18px 40px rgba(20,24,32,.14)}
@media(prefers-color-scheme:light){html[data-theme=system]{--ok:#1f8a5c;--bad:#c9353b;--glass:rgba(255,255,255,.84);--glass-line:rgba(20,24,32,.08);--glass-shadow:0 18px 40px rgba(20,24,32,.14)}}
.btn{border-radius:14px;transition:transform var(--motion-fast) var(--ease),background var(--motion-fast),border-color var(--motion-fast),box-shadow var(--motion-fast)}
.btn:active{transform:scale(.97)}
.btn-primary{box-shadow:0 10px 24px rgba(240,182,90,.18)}
.input,.select,.textarea{border-radius:14px}
.badge{border-radius:10px}
/* Floating glass bottom bar on phones (iOS style): a pill with a highlighted capsule for the current section. */
@media(max-width:900px){
 .bottom-nav{inset:auto 12px calc(12px + env(safe-area-inset-bottom)) 12px;padding:7px;gap:4px;border:1px solid var(--glass-line);border-radius:34px;background:var(--glass);-webkit-backdrop-filter:blur(22px) saturate(160%);backdrop-filter:blur(22px) saturate(160%);box-shadow:var(--glass-shadow)}
 .bottom-nav a{min-height:54px;border-radius:27px;gap:3px;transition:background var(--motion-panel) var(--ease),color var(--motion-panel) var(--ease)}
 .bottom-nav a>b{font-size:11px;font-weight:650;line-height:1.3}
 .bottom-nav a[aria-current=page],.bottom-nav a.active{background:rgba(240,182,90,.16);color:var(--brand)}
 body.is-authenticated main{padding-bottom:calc(104px + env(safe-area-inset-bottom))}
}
/* Status colours: green for done, red for urgent or cancelled. */
.badge-danger{background:rgba(229,72,77,.12);color:var(--bad);border-color:rgba(229,72,77,.4)}
.stage-track li.done span{background:var(--ok)}
.urgency-option:has(input[value=now]:checked) span{background:var(--bad);border-color:var(--bad)}
.urgency-field:has(input[value=now]:checked) .urgency-now-hint{color:var(--bad)}
.price-guide{background:rgba(63,178,127,.12)}
/* Gentle motion: content fades in, cards lift on hover where a pointer exists. */
@keyframes xb-rise{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
main>.section>.container{animation:xb-rise 260ms var(--ease) both}
@media(hover:hover){a.card,.package-card,.workspace-row,.master-card{transition:transform var(--motion-panel) var(--ease),border-color var(--motion-panel)}a.card:hover,.package-card:hover,.master-card:hover{transform:translateY(-2px);border-color:rgba(240,182,90,.35)}}
@media(prefers-reduced-motion:reduce){main>.section>.container{animation:none}.btn,.bottom-nav a,a.card,.package-card,.master-card{transition:none}.btn:active{transform:none}a.card:hover,.package-card:hover,.master-card:hover{transform:none}}
/* 3.0 drawer: the appearance block and sign-out line up with the navigation groups above. */
.drawer-section-flat{border-top:1px solid var(--line);margin-top:22px;padding-top:16px}
.drawer-section-flat>h2{font-size:11px!important;line-height:1.7;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);padding:0 12px;margin:0 0 8px;font-weight:600}
.drawer-section-flat .drawer-links{display:grid;gap:5px}
.drawer-section-flat .drawer-setting,.drawer-section-flat .drawer-links>a{display:flex;align-items:center;gap:13px;width:100%;min-height:48px;padding:12px;border:1px solid transparent;border-radius:9px;background:transparent;font-size:14px;line-height:1.6;color:var(--muted);text-align:left;cursor:pointer}
.drawer-section-flat .drawer-setting:hover,.drawer-section-flat .drawer-links>a:hover{background:var(--surface2);color:var(--text)}
.drawer-section-flat .drawer-setting>span:not(:first-child){flex:1;min-width:0}
.drawer-section-flat .drawer-setting>small{margin-left:auto;flex-shrink:0;padding:3px 10px;border-radius:999px;background:var(--surface2);color:var(--muted);font-size:12px;line-height:1.6;white-space:nowrap}
.drawer-section-flat .drawer-links>a.danger-link{margin-top:12px;border-color:color-mix(in srgb,var(--danger) 35%,var(--line));color:var(--danger);font-weight:600}
.drawer-section-flat .drawer-links>a.danger-link:hover{background:color-mix(in srgb,var(--danger) 10%,transparent)}
.drawer-section-flat .xb-icon{flex-shrink:0}

/* ===== 3.0 page polish (mobile first): one card language across lists and profiles ===== */
/* Disclosure rows: no browser triangle; a quiet chevron that turns when open. */
details>summary{list-style:none;cursor:pointer}
details>summary::-webkit-details-marker{display:none}
.card details>summary,details.card>summary{display:flex;align-items:center;gap:8px}
.card details>summary::after,details.card>summary::after{content:'';margin-left:auto;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);transition:transform var(--motion-fast) var(--ease)}
.card details[open]>summary::after,details.card[open]>summary::after{transform:rotate(-135deg)}
/* Orders: full cards with a gap instead of hairlines with half-rounded corners. */
.order-list{gap:12px}
.order-list .order-list-card{padding:16px 18px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.order-list .order-list-card h3{font-size:16px;margin:0 0 6px}
.order-list .order-list-card>p{margin:0 0 12px;line-height:1.6}
.order-list-meta{margin-bottom:8px}
.order-list-meta>span:first-child{font-size:12px}
/* Chats: name, then order title, then the last message; time on the right. */
.chat-row{min-height:76px;padding:14px 0;gap:14px}
.chat-row-content{display:grid;gap:2px}
.chat-row-content>strong{font-size:15px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-row-content>small{display:block;font-size:12px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-row-content>p{margin:2px 0 0;font-size:13px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-time{align-self:flex-start;margin-top:2px;font-size:11px;color:var(--muted);white-space:nowrap}
/* Master profile: three stat tiles instead of a stacked definition list. */
.professional-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.professional-metrics>div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:14px 8px;border:1px solid var(--line);border-radius:16px;background:var(--surface2);text-align:center}
.professional-metrics dt{order:2;font-size:11px;line-height:1.35;color:var(--muted)}
.professional-metrics dd{order:1;margin:0;display:flex;align-items:center;gap:4px;font-size:18px;font-weight:700;line-height:1.2}
.professional-metrics dd small{font-size:12px;color:var(--muted);font-weight:500}
.professional-summary .account-identity{align-items:flex-start}
.professional-summary .account-name h1{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.professional-actions{display:flex;flex-wrap:wrap;gap:10px}
/* Review cards are compact. */
.review-card,.reviews .card{padding:16px 18px}
/* Dashboard tool tiles: icon, label and chevron on one centred line. */
.workspace-tools a{align-items:center;min-height:56px}
.workspace-tools a>span,.workspace-tools a{line-height:1.35}
@media(max-width:520px){
 .professional-actions>.btn-primary{flex:1 1 100%;justify-content:center}
 .workspace-tools>div,.workspace-tools .grid{grid-template-columns:1fr}
}
.professional-metrics dd{white-space:nowrap;font-size:17px}
.professional-metrics dd .xb-icon{width:15px;height:15px}
.identity-name{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}

/* ===== 3.0.1 polish: back buttons, chat, profile, inbox, dashboard tiles ===== */
:root{--me-bubble:color-mix(in srgb,var(--brand) 20%,var(--surface));--me-bubble-line:color-mix(in srgb,var(--brand) 32%,transparent)}
html[data-theme=light]{--me-bubble:color-mix(in srgb,var(--brand) 26%,#fff);--me-bubble-line:color-mix(in srgb,var(--brand) 45%,transparent)}
@media(prefers-color-scheme:light){html[data-theme=system]{--me-bubble:color-mix(in srgb,var(--brand) 26%,#fff);--me-bubble-line:color-mix(in srgb,var(--brand) 45%,transparent)}}

/* Back button: every inner page has one, tab roots do not. */
.page-heading.has-back{display:flex;align-items:center;justify-content:flex-start;gap:10px}
.page-back{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;height:40px;min-width:40px;padding:0 12px 0 8px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--text);font-size:14px;font-weight:600;text-decoration:none;transition:background var(--motion-fast,.15s)}
.page-back:hover{background:var(--surface2)}
.page-back .xb-icon{width:19px;height:19px}
.page-heading.has-back .page-back span{display:none}
.page-heading.has-back h1{min-width:0}
.page-back-bar{margin:0 0 14px}

/* Chat list */
.conversation-list{padding:6px 18px}
.chat-row{min-height:76px;padding:14px 0;gap:13px;color:inherit;text-decoration:none}
.chat-row .avatar.small{width:50px;height:50px;min-width:50px;border-radius:50%;font-size:18px}
.chat-row strong{display:inline-flex;align-items:center;gap:5px;font-size:15px;font-weight:650}
.chat-row .ellipsis{margin-top:3px;font-size:13.5px}
.chat-row.is-unread .ellipsis{color:var(--text);font-weight:600}
.chat-row .chat-time{align-self:flex-start;margin-top:4px;font-size:12px;color:var(--muted);white-space:nowrap}
.chat-row .unread-dot{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:var(--brand);color:#14110b;font-size:12px;font-weight:700;display:inline-grid;place-items:center}

/* Chat screen */
.xb-chat .chat-top{gap:6px;padding:10px 10px 10px 6px;background:var(--glass,var(--surface));backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border-bottom:1px solid var(--line)}
.chat-person{gap:11px;padding:5px 8px 5px 4px;border-radius:14px;color:inherit;text-decoration:none}
.chat-person.is-link:hover,.chat-person.is-link:active{background:var(--surface2)}
.chat-person>.avatar{width:42px;height:42px;min-width:42px;flex:0 0 42px;border-radius:50%}
.chat-person-text{display:flex;flex-direction:column;min-width:0;flex:1}
.chat-person-text strong{display:inline-flex;align-items:center;gap:5px;font-size:16px;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-person-text small{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-person-go{display:inline-flex;color:var(--muted)}
.xb-chat .messages{gap:6px;padding:16px 12px 18px}
.xb-chat .bubble{max-width:min(80%,520px);padding:8px 12px 6px;border:0;border-radius:18px 18px 18px 6px;background:var(--surface2);font-size:15px;line-height:1.42;box-shadow:0 1px 0 rgba(0,0,0,.12)}
body.chat-screen .xb-chat .bubble.me,.xb-chat .bubble.me{background:var(--me-bubble);border:1px solid var(--me-bubble-line);border-radius:18px 18px 6px 18px}
.xb-chat .bubble small[data-meta],body.chat-screen .xb-chat .bubble.me small[data-meta]{display:flex;justify-content:flex-end;align-items:center;gap:4px;margin:2px 0 0;font-size:11px;line-height:1.2;color:var(--muted)}
.xb-chat .bubble .message-check{color:var(--muted);letter-spacing:-.15em}
.xb-chat .bubble .message-check.read{color:#1D9BF0}
.xb-chat .bubble blockquote{border-radius:8px;border-left:3px solid var(--brand);background:color-mix(in srgb,var(--bg) 55%,transparent)}
.xb-chat .bubble img{border-radius:12px;margin:-2px -6px 4px}
.xb-chat .voice-player{width:min(230px,62vw);min-width:180px;height:40px;gap:10px}
.xb-chat .voice-play{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:0;background:var(--brand);color:#14110b;font-size:13px;display:grid;place-items:center;cursor:pointer}
.xb-chat .voice-track{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.xb-chat .voice-track canvas{width:100%;max-width:170px;height:22px}
.xb-chat .voice-track span{font-size:11px;color:var(--muted)}
.xb-chat .chat-composer{align-items:center;gap:6px;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:var(--glass,var(--surface))}
.xb-chat .chat-composer textarea{min-height:44px;padding:10px 16px;border-radius:22px;border:1px solid var(--line);background:var(--surface2);box-shadow:none}
.xb-chat .chat-composer .icon-btn{width:40px;min-width:40px;height:40px;border-radius:50%;color:var(--muted)}
.xb-chat .voice-send{width:44px;min-width:44px;height:44px;border-radius:50%}
.xb-chat .chat-order-context{border-radius:0}

/* Profile hero */
.profile-hero{display:grid;gap:18px;padding:22px}
.profile-hero-top{display:flex;align-items:center;gap:16px;min-width:0}
.profile-hero-avatar{position:relative;width:76px;height:76px;min-width:76px;border-radius:50%;font-size:28px;overflow:visible;text-decoration:none;color:inherit}
.profile-hero-avatar img{border-radius:50%}
.profile-hero-cam{position:absolute;right:-2px;bottom:-2px;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#14110b;border:2px solid var(--surface)}
.profile-hero-name{min-width:0;flex:1}
.profile-hero-name h1{margin:2px 0 4px;font-size:clamp(22px,5.5vw,28px);line-height:1.2;overflow-wrap:anywhere}
.profile-hero-name .muted{display:flex;align-items:center;gap:6px;margin:4px 0 0;font-size:13px}
.profile-hero-marks{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.status-dot{width:8px;height:8px;border-radius:50%;display:inline-block;background:var(--muted)}
.status-dot.on{background:var(--ok)}.status-dot.off{background:var(--bad)}
.profile-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.profile-hero-stats>div{padding:12px 10px;border-radius:14px;background:var(--surface2);text-align:center;min-width:0}
.profile-hero-stats dt{font-size:11.5px;color:var(--muted);line-height:1.3}
.profile-hero-stats dd{margin:4px 0 0;font-size:19px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:4px}
.profile-hero-stats dd .xb-icon{width:15px;height:15px;color:var(--brand)}
.profile-hero-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-hero-actions .btn{flex:1 1 160px;justify-content:center}
.account-hub .account-section>h2{font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:650;margin:0 0 4px}
.account-hub .settings-row{min-height:54px;padding:8px 0}
.account-hub .settings-icon{width:34px;height:34px;min-width:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface2);color:var(--brand)}
.account-hub .settings-icon .xb-icon{width:19px;height:19px}
.account-hub .danger-link .settings-icon{color:var(--bad)}

/* Master page */
.service-tags{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 6px}
.service-tags .badge{margin:0}
.professional-trust{margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.professional-trust>summary{display:flex;align-items:center;gap:8px;cursor:pointer;list-style:none;font-weight:600}
.review-card{display:grid;gap:8px}
.review-card .section-head{margin:0}
.review-card>p{margin:0}
.review-card blockquote{margin:2px 0 0;padding:10px 12px;border-left:3px solid var(--brand);border-radius:10px;background:var(--surface2);font-size:14px}
.review-card blockquote::before{content:attr(data-label);display:block;font-size:11px;font-weight:650;color:var(--brand);margin-bottom:3px}
.review-card details>summary{cursor:pointer;color:var(--muted);font-size:14px}
.review-rating{display:inline-flex;align-items:center;gap:4px;color:var(--brand);font-weight:700}

/* Notifications */
.inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px}
.inbox-heading p{margin:0;font-size:14px}
.inbox-heading .btn{min-height:40px;padding:0 14px;font-size:14px}
.inbox-filters{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:16px -16px 18px;padding:2px 16px;border:0;scroll-snap-type:x proximity}
.inbox-filters::-webkit-scrollbar{display:none}
.inbox-filter{flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--muted);font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;scroll-snap-align:start}
.inbox-filter span{min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--surface2);font-size:12px;display:inline-grid;place-items:center}
.inbox-filter.selected{background:var(--brand);border-color:var(--brand);color:#14110b}
.inbox-filter.selected span{background:rgba(20,17,11,.16);color:#14110b}
.inbox-filter.selected::after{display:none}
.inbox-guidance h3{margin:0 0 4px}
.inbox-guidance>p{margin:0 0 12px;font-size:14px}
.guidance-card{display:flex;gap:12px;align-items:flex-start;padding:16px}
.guidance-card p{margin:0 0 10px;line-height:1.5}
.guidance-marker{width:36px;height:36px;min-width:36px;border-radius:10px;display:grid;place-items:center;background:var(--tint,var(--surface2));color:var(--brand)}
.notice-card{display:flex;gap:12px;padding:16px}
.notice-card.is-unread{border-color:var(--me-bubble-line)}
.notice-icon{width:38px;height:38px;min-width:38px;border-radius:50%;display:grid;place-items:center;background:var(--surface2);color:var(--brand)}
.notice-content{min-width:0;flex:1}
.notice-content h3{font-size:15.5px;margin:3px 0}
.notice-content p{font-size:14px;margin:0 0 8px;color:var(--muted)}

/* Dashboard: numbers as tiles, compact recent list */
.workspace-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:10px;margin:18px 0 24px;padding:0;border:0}
.workspace-summary>a.stat-tile,.workspace-summary>a.stat-tile:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:inherit;text-decoration:none;min-width:0;transition:transform var(--motion-fast,.15s),border-color var(--motion-fast,.15s)}
.workspace-summary>a.stat-tile:hover{border-color:var(--me-bubble-line);transform:translateY(-1px)}
.stat-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:var(--tint,var(--surface2));color:var(--brand)}
.workspace-summary .stat-tile strong{font-size:26px;line-height:1.1;font-weight:750;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.workspace-summary .stat-tile span:last-child{font-size:12.5px;color:var(--muted);line-height:1.3;overflow-wrap:anywhere}
.workspace-list{margin:10px 0 24px}
.workspace-row{gap:12px;min-height:64px;padding:12px 0}
.workspace-row-copy{min-width:0;flex:1}
.workspace-row-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:15px;line-height:1.35}
.workspace-row-copy small{display:block;margin-top:3px;font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-row-tail{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px}
.workspace-row-icon{width:38px;height:38px;min-width:38px;border-radius:12px;display:grid;place-items:center;background:var(--surface2);color:var(--brand)}
.badge.status-completed{color:var(--ok);border-color:color-mix(in srgb,var(--ok) 40%,transparent);background:color-mix(in srgb,var(--ok) 12%,transparent)}
.badge.status-cancelled{color:var(--bad);border-color:color-mix(in srgb,var(--bad) 40%,transparent);background:color-mix(in srgb,var(--bad) 12%,transparent)}
.badge.status-open,.badge.status-new{color:var(--brand);border-color:var(--me-bubble-line);background:color-mix(in srgb,var(--brand) 12%,transparent)}
.workspace-focus{padding:20px}
.workspace-focus h1{font-size:clamp(21px,5.4vw,28px);line-height:1.2}
@media(max-width:900px){body.is-authenticated:not(.chat-screen) main{padding-bottom:calc(112px + env(safe-area-inset-bottom))}}
.chat-person-text strong{overflow:visible;max-width:100%}
.chat-person-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-person-text strong svg{flex:0 0 auto}
.chat-person-go{margin-left:auto}
@media(max-width:520px){
 .workspace-summary{gap:8px}
 .workspace-summary>a.stat-tile,.workspace-summary>a.stat-tile:first-child{padding:12px 8px 12px 10px}
 .workspace-summary .stat-tile span:last-child{font-size:11px;letter-spacing:-.01em;overflow-wrap:normal;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}
.chat-person>.chat-person-text{flex:1 1 auto;min-width:0;gap:1px}
.chat-person>span.chat-person-go{flex:0 0 auto;display:inline-flex;min-width:0}
.chat-person-text strong{display:flex;align-items:center;gap:5px;font-size:16px}
/* Avatars: the photo always fills a true circle/square, never stretches. */
.avatar{position:relative}
.avatar>img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;border-radius:inherit}
.avatar:has(>img){border-color:transparent;background:var(--surface2)}
.profile-hero-avatar{width:80px;height:80px;min-width:80px;box-shadow:0 0 0 3px var(--surface),0 0 0 4px var(--line)}
.profile-hero-avatar>img{border-radius:50%}
.profile-hero-cam{width:24px;height:24px;right:0;bottom:0;z-index:1}
.profile-hero-cam .xb-icon{width:13px;height:13px}
.profile-hero-name h1{margin:0 0 6px}
.role-chip{display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:999px;background:var(--tint,var(--surface2));color:var(--brand);font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
html[data-theme=light] .role-chip{background:color-mix(in srgb,var(--brand) 16%,#fff);color:#8a5a12}
.profile-hero-marks .xb-level{display:inline-flex;align-items:center;height:24px}
.profile-hero-stats>div{display:flex;flex-direction:column-reverse;justify-content:flex-start;gap:2px;padding:12px 8px}
.profile-hero-stats dd{margin:0;font-size:22px;line-height:1.15}
.profile-hero-stats dt{font-size:11.5px;line-height:1.25;overflow-wrap:normal}
.profile-hero-stats dt::first-letter{text-transform:uppercase}
.chat-row .avatar.small,.chat-person>.avatar{background:var(--surface2)}
.professional-summary .account-identity>.avatar{border-radius:50%}
.professional-metrics dt::first-letter{text-transform:uppercase}
/* Android app download */
.app-download{display:inline-flex;align-items:center;gap:8px}
.landing-app-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;margin-top:16px}
.landing-app-row small{color:var(--muted);font-size:13px;max-width:360px;line-height:1.45}
.app-download-card{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.app-download-card h2{margin:0 0 4px;font-size:16px;text-transform:none;letter-spacing:0;color:var(--text)}
.app-download-card p{margin:0;font-size:13.5px}
.app-download-card .btn{flex:0 0 auto}
@media(max-width:520px){.app-download-card .btn{flex:1 1 100%;justify-content:center}}
.footer-app{display:inline-flex;align-items:center;gap:5px;color:var(--brand)!important}
.app-link-card{margin-top:16px}
.app-link-card h3{display:flex;align-items:center;gap:8px;margin:0 0 6px}
