/* Xiaobu workspace theme. Keep behavior and layout contracts in styles.css/app.js. */
:root {
  --ink: #152122;
  --muted: #667475;
  --line: #dfe7e5;
  --panel: #fff;
  --soft: #f0f5f3;
  --green: #227462;
  --green-dark: #1c6153;
  --coral: #3f776a;
  --sidebar: #f4f7f6;
  --xb-mint: #baf5d5;
  --xb-dark: #101718;
  color: var(--ink);
  background: #f5f8f7;
}
.xiaobu-workbench { -webkit-font-smoothing: antialiased; }
.xiaobu-workbench :focus-visible { outline: 2px solid #32826c; outline-offset: 4px; }
.xiaobu-workbench input:focus-visible, .xiaobu-workbench textarea:focus-visible, .xiaobu-workbench select:focus-visible { outline-offset: 2px; }
.xiaobu-workbench .field input:focus-visible, .xiaobu-workbench .field textarea:focus-visible, .xiaobu-workbench #messageInput:focus-visible { outline: none; }
.xiaobu-symbol { display: inline-flex; width: 31px; height: 31px; flex: 0 0 auto; align-items: flex-end; gap: 3px; color: inherit; }
.xiaobu-symbol b { width: 8px; display: block; background: currentColor; border-radius: 2px 2px 0 0; transform: skewY(-13deg); }
.xiaobu-symbol b:nth-child(1) { height: 12px; }
.xiaobu-symbol b:nth-child(2) { height: 21px; }
.xiaobu-symbol b:nth-child(3) { height: 30px; }
.wordmark { gap: 12px; font-size: 25px; font-weight: 720; letter-spacing: -.8px; }
.wordmark-caption { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 2px; }
.primary-button, .secondary-button, .text-button, .danger-button, .new-chat-button { border-radius: 9px; min-height: 42px; font-size: 13px; transition: background .18s, border-color .18s, box-shadow .18s; }
.primary-button { background: #18372e; }
.primary-button:hover { background: #235442; box-shadow: 0 4px 12px #12342a16; }
.secondary-button { border-color: var(--line); }
.icon-button { border-radius: 9px; }
.field input, .field select, .field textarea { border-radius: 9px; border-color: #d8e2df; }
.field input::placeholder, .field textarea::placeholder { color: #8b9693; }
.eyebrow { color: #417568; font-size: 10px; letter-spacing: 1.9px; }

/* Login and first-sign-in share the same frame. */
.auth-shell { grid-template-columns: minmax(0, 1.02fr) minmax(460px, 1fr); background: #fafcfb; }
.auth-panel { order: 2; min-height: 100dvh; padding: 38px clamp(32px, 5vw, 80px) 24px; background: #fafcfb; }
.auth-topline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.auth-wordmark { color: #192c26; }
.auth-home-link { display: inline-flex; align-items: center; gap: 6px; color: #64736d; font-size: 12px; white-space: nowrap; }
.auth-home-link:hover { color: #1c6153; }
.auth-home-link svg { width: 15px; height: 15px; }
.auth-form { width: min(100%, 366px); gap: 20px; padding: 48px 0 30px; }
.auth-heading { margin-bottom: 12px; }
.auth-heading .eyebrow { margin-bottom: 15px; font-size: 9px; letter-spacing: 2px; }
.auth-heading h1 { font-family: inherit; font-size: clamp(27px, 2.6vw, 36px); font-weight: 680; letter-spacing: -1.2px; line-height: 1.3; margin-bottom: 12px; }
.auth-heading p:last-child { font-size: 13px; }
.auth-form .field > span:first-child { font-size: 12px; font-weight: 600; }
.auth-form .field input { height: 49px; padding-left: 15px; background: #fff; font-size: 14px; }
.auth-form .password-field input { padding-right: 48px; }
.auth-form .password-toggle { top: 6px; right: 6px; color: #75847d; }
.auth-form .legal-consent { gap: 10px; margin-top: 1px; }
.auth-form .legal-consent label { font-size: 11px; line-height: 1.8; }
.auth-form .legal-consent input { margin-top: 3px; }
.auth-form .form-error:empty { display: none; }
.auth-form .primary-button { min-height: 50px; justify-content: space-between; padding: 0 18px; background: #182c24; font-size: 14px; }
.auth-form .primary-button:hover { background: #275540; }
.auth-help { margin: -3px 0 0; text-align: center; color: #75837d; font-size: 11px; line-height: 1.7; }
.auth-help a { margin-left: 3px; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal-footer { margin-top: 20px; font-size: 9px; line-height: 1.9; }
.auth-legal-footer a { color: #65746d; text-decoration: none; }
.auth-legal-footer a:hover { text-decoration: underline; }
.auth-legal-footer nav { gap: 8px 16px; }
.auth-legal-footer p { margin: 5px 0 0; }
.auth-note { order: 1; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; isolation: isolate; background: #0c1213; padding: clamp(38px, 5vw, 72px); }
.auth-note::before { content: ''; inset: 0; background: radial-gradient(ellipse at 12% 0%, #9fffc813, transparent 60%); z-index: -1; }
.auth-scene-copy { position: relative; z-index: 2; }
.auth-scene-label { display: flex; align-items: center; gap: 10px; color: #a4b5af; font-size: 9px; letter-spacing: 2.2px; }
.auth-scene-label > span { height: 5px; width: 5px; border-radius: 50%; background: var(--xb-mint); }
.auth-scene-copy h2 { margin: clamp(40px, 7vh, 76px) 0 22px; color: #f6fbf8; font-size: clamp(35px, 4.1vw, 62px); font-weight: 550; line-height: 1.3; letter-spacing: -2px; }
.auth-scene-copy h2 em { color: var(--xb-mint); font-style: normal; }
.auth-note .auth-scene-copy p { text-align: left; color: #a0b2aa; font-size: 13px; line-height: 1.9; }
.auth-scene-art { position: absolute; z-index: -1; width: 127%; max-width: none; height: 62%; object-fit: cover; object-position: 61% 54%; left: -15%; bottom: 5%; opacity: .95; mask-image: linear-gradient(transparent, #000 20%, #000 85%, transparent); }
.auth-scene-footer { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 310px; color: #9aaba3; font-size: 10px; letter-spacing: .5px; }
.auth-scene-footer > span:last-child { font-size: 8px; letter-spacing: 1.6px; }
.scene-divider { color: #52655a; margin: 0 10px; }

/* Persistent product rail. */
.app-shell { grid-template-columns: 218px minmax(0, 1fr); background: #f5f8f7; }
.product-rail { background: var(--xb-dark); border-right-color: #22302d; }
.product-brand { min-height: 116px; padding: 26px; border-bottom-color: #ffffff0e; }
.product-brand .wordmark { font-size: 25px; color: #f5fcf8; }
.product-brand .xiaobu-symbol { color: var(--xb-mint); }
.product-brand .wordmark-caption { margin-top: 4px; color: #91a79e; font-size: 9px; letter-spacing: 2px; }
.product-nav { gap: 7px; padding: 24px 14px; }
.product-nav-item { height: 45px; border-radius: 9px; gap: 12px; padding: 0 15px; color: #aabbb5; font-weight: 500; }
.product-nav-item:hover { background: #ffffff0a; color: #fff; }
.product-nav-item.active { background: var(--xb-mint); color: #15372a; font-weight: 650; box-shadow: 0 3px 20px #7be4b00b; }
.product-nav-item svg { width: 17px; height: 17px; }
.product-account { border-top-color: #ffffff10; padding: 18px 16px 16px; }
.product-account .account-copy { gap: 4px; }
.product-account .account-copy strong { max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 550; }
.product-account .account-copy span { color: #96aaa1; font-size: 10px; }
.product-account .icon-button { width: 30px; height: 36px; color: #9eb3a9; }
.workspace-filing { margin-top: 12px; color: #92a59c; font-size: 8px; line-height: 1.7; }

/* Home: an editorial welcome followed by actual account applications and usage. */
.workbench-home { background: #f5f8f7; padding: 0 clamp(24px, 3.5vw, 52px) 42px; }
.product-page-header { min-height: 132px; border-bottom: 0; }
.product-page-header h1 { font-size: 29px; letter-spacing: -.9px; font-weight: 670; }
.product-page-header .eyebrow { color: #688077; margin-bottom: 9px; font-size: 9px; letter-spacing: 2px; }
.product-page-header > div:first-child > p:last-child { font-size: 12px; margin-top: 9px; }
.product-page-header > .secondary-button { min-height: 38px; font-size: 12px; }
.workspace-welcome { min-height: 205px; position: relative; overflow: hidden; isolation: isolate; border: 1px solid #dfe9e2; border-radius: 17px; background: #eaf1e9; }
.workspace-welcome-copy { position: relative; z-index: 2; padding: 30px 34px; }
.welcome-label { display: flex; align-items: center; gap: 7px; color: #557466; font-size: 10px; letter-spacing: 1.2px; }
.welcome-label > span { width: 5px; height: 5px; border-radius: 50%; background: #55836c; }
.workspace-welcome h2 { font-size: clamp(22px, 2.15vw, 30px); letter-spacing: -.8px; font-weight: 570; margin: 15px 0 12px; }
.workspace-welcome p { color: #697d71; font-size: 12px; line-height: 1.9; margin: 0; }
.workspace-welcome > img { position: absolute; inset: 0 0 0 auto; width: 57%; height: 100%; object-fit: cover; object-position: 50% 51%; mix-blend-mode: multiply; mask-image: linear-gradient(90deg, transparent, #000 23%); }
.welcome-index { position: absolute; bottom: 18px; right: 24px; color: #527166; font-size: 8px; letter-spacing: 2px; }
.workbench-overview { grid-template-columns: minmax(0, 1fr) 232px; gap: 28px; padding-top: 32px; }
.section-title-row { min-height: 44px; align-items: center; }
.section-title-row h2 { font-size: 16px; font-weight: 630; }
.section-title-row p { margin-top: 6px; font-size: 10px; color: #738078; }
#enabledProductCount { display: inline-flex; padding: 5px 9px; border: 1px solid #e0e8e3; border-radius: 6px; background: #fafffb; color: #65776a; font-size: 10px; white-space: nowrap; }
.product-card-grid { gap: 12px; margin-top: 16px; }
.product-card { min-height: 153px; position: relative; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 16px 12px; border-color: #e1e8e4; border-radius: 13px; padding: 20px; box-shadow: 0 2px 4px #17382902; }
.product-card:hover { border-color: #99b9a6; background: #fefffe; box-shadow: 0 9px 25px #203e3010; transform: translateY(-2px); }
.product-card .product-icon { width: 40px; height: 40px; border-radius: 11px; }
.product-card .product-icon svg { width: 21px; height: 21px; }
.product-card > svg { grid-column: 2; grid-row: 1; align-self: center; width: 17px; color: #8fa397; transition: transform .18s; }
.product-card:hover > svg { transform: translate(2px, -2px); color: #256047; }
.product-card-copy { grid-column: 1 / -1; gap: 7px; }
.product-card-copy strong { font-size: 14px; font-weight: 620; }
.product-card-copy small { white-space: normal; font-size: 11px; line-height: 1.6; color: #6b7a72; }
.chat-card .product-icon { background: #e2f4eb; color: #2a7660; }
.files-card .product-icon { background: #e8f0f7; color: #527d9f; }
.avatar-card .product-icon { background: #eeebf9; color: #7b6ba4; }
.zelda-card .product-icon { background: #f0eddf; color: #8e7c48; }
.food-card .product-icon { background: #fbede3; color: #ad7250; }
.workspace-activity { align-self: start; padding: 20px; border: 1px solid #e1e8e4; border-radius: 13px; background: #fff; margin-top: 60px; }
.workspace-activity .section-title-row { min-height: auto; }
.workspace-activity .section-title-row h2 { font-size: 13px; }
.workspace-activity .section-title-row p { font-size: 10px; }
.workspace-activity .section-title-row > span { display: none; }
.workspace-activity dl { margin-top: 12px; }
.workspace-activity dl div { min-height: 62px; flex-wrap: wrap; align-content: center; gap: 7px; }
.workspace-activity dt { font-size: 11px; }
.workspace-activity dd { font-size: 11px; }
.workspace-status { border: 0; background: #f1f7f3; margin-top: 18px; border-radius: 9px; padding: 12px 10px; gap: 10px; }
.workspace-status strong { font-size: 10px; font-weight: 600; }
.workspace-status small { font-size: 9px; line-height: 1.6; }
.workspace-status > span { height: 6px; width: 6px; }

/* Conversation, files and management retain their original controls and IDs. */
.workspace { background: #fafcfb; }
.sidebar { border-right-color: var(--line); background: #f1f5f3; }
.sidebar-header { color: #335246; }
.sidebar-label { color: #788d80; letter-spacing: 1px; }
.new-chat-button { min-height: 42px; border-color: #d8e5dd; background: #fff; color: #315843; }
.conversation-row { border-radius: 8px; }
.conversation-row.active { background: #e2eee5; }
.conversation-open { font-size: 12px; }
.topbar { background: #ffffffde; border-color: #e5ebe7; }
.profile-switcher select { font-size: 14px; }
.empty-state { padding: 52px 0; }
.empty-state h1 { font-family: inherit; font-size: 28px; font-weight: 580; letter-spacing: -.7px; }
.empty-mark { width: 65px; height: 65px; border: 4px solid #fff; box-shadow: 0 3px 24px #24593d10; }
.prompt-grid { gap: 12px; }
.prompt-grid button { min-height: 90px; align-items: flex-start; border: 1px solid #e0e8e2; border-radius: 12px; background: #fff; padding: 17px; color: #4a6354; font-size: 12px; line-height: 1.8; }
.prompt-grid button:hover { border-color: #a1bda9; background: #f4faf5; }
.prompt-grid svg { align-self: flex-end; }
.message-content { line-height: 1.85; }
.composer-wrap { background: #fafcfb; }
.composer { border-radius: 15px; border-color: #d5e2d9; box-shadow: 0 4px 24px #2d503e08; background: #fff; }
.composer:focus-within { border-color: #83a893; box-shadow: 0 3px 20px #2d503e10; }
.send-button { border-radius: 10px; background: #1c4635; }
.composer-tool { border-radius: 8px; color: #708778; }
.ai-disclosure, .app-legal-footer { color: #738076; }
.files-product { background: #f8faf9; }
.files-header { min-height: 126px; }
.file-commandbar { border-top: 1px solid var(--line); min-height: 74px; }
.file-search { border-radius: 9px; height: 39px; }
.view-segment { border-radius: 8px; }
.view-segment button { border-radius: 6px; }
.file-list-head { height: 46px; background: #f8faf9; }
.file-row { min-height: 65px; border-bottom-color: #e5ebe7; }
.file-row:hover { background: #edf4ef; }
.file-type-icon { border-radius: 9px; }
.file-list.grid .file-row { border-radius: 12px; border-color: #e0e8e2; }
.file-list.grid .file-row:hover { border-color: #9cbaa6; }
.file-empty { color: #718579; }
.settings-panel { border-left-color: #e0e9e2; width: min(620px, 100vw); box-shadow: -12px 0 60px #112b2520; }
.settings-panel:not(.open) { visibility: hidden; }
.panel-scrim { background: #0b201f48; backdrop-filter: blur(3px); }
.settings-header { background: #f5f9f6; min-height: 96px; }
.settings-header h2, .dialog-header h2 { font-family: inherit; font-weight: 620; font-size: 23px; letter-spacing: -.5px; }
.settings-header .eyebrow { font-size: 8px; letter-spacing: 2px; margin-bottom: 8px; }
.settings-tabs { padding: 10px 18px; gap: 6px; background: #f5f9f6; }
.settings-tabs button { height: 38px; border: 0; border-radius: 8px; font-size: 12px; }
.settings-tabs button.active { background: #173c2f; color: #f6fff9; }
.settings-subtabs { padding-top: 10px; padding-bottom: 10px; background: #f8faf8; }
.settings-list { border-top-color: #e5ece6; }
.profile-row { padding: 22px; border-bottom-color: #e5ece6; }
.profile-row.active { box-shadow: inset 3px 0 #61997a; background: #fcfffd; }
.product-config-icon { border-radius: 10px; background: #e3f1e8; color: #2c7051; }
.dialog { border-radius: 16px; border-color: #dde8df; box-shadow: 0 24px 100px #142f2730; }
.dialog::backdrop { background: #0b201f60; backdrop-filter: blur(4px); }
.dialog-body { padding: 26px; }
.dialog-header { margin-bottom: 8px; }
.dialog-actions { gap: 10px; }
.toast { border-radius: 10px; box-shadow: 0 7px 24px #183d2428; font-size: 12px; }

@media (min-width: 1580px) {
  .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .workbench-overview { grid-template-columns: minmax(0, 1fr) 260px; }
}
@media (min-width: 861px) and (max-width: 1120px) {
  .app-shell { grid-template-columns: 194px minmax(0, 1fr); }
  .product-brand { padding-left: 22px; }
  .workbench-overview { grid-template-columns: 1fr; gap: 24px; }
  .workspace-activity { margin-top: 0; }
  .workspace-activity dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .workspace-status { max-width: 280px; }
  .auth-note { padding: 38px; }
  .auth-scene-copy h2 { font-size: 38px; }
  .auth-scene-art { height: 53%; bottom: 12%; }
}
@media (max-width: 860px) {
  .auth-shell { display: block; }
  .auth-note { display: none; }
  .auth-panel { padding: 30px clamp(24px, 8vw, 80px) 20px; background: radial-gradient(ellipse at 90% 0%, #d4f4e180, transparent 45%), #fafcfb; }
  .auth-form { padding-top: 54px; padding-bottom: 38px; }
  .auth-heading h1 { font-size: 32px; }
  .auth-legal-footer { text-align: center; }
  .auth-legal-footer nav { justify-content: center; }
  .app-shell { grid-template-columns: 1fr; grid-template-rows: 64px minmax(0, 1fr); }
  .product-rail { background: #101718; border-bottom-color: #263830; }
  .product-brand { min-height: 64px; padding: 0 19px; }
  .product-brand .wordmark { font-size: 20px; gap: 10px; }
  .product-brand .xiaobu-symbol { width: 25px; height: 26px; gap: 2px; }
  .product-brand .xiaobu-symbol b { width: 7px; }
  .product-brand .xiaobu-symbol b:nth-child(1) { height: 10px; }
  .product-brand .xiaobu-symbol b:nth-child(2) { height: 17px; }
  .product-brand .xiaobu-symbol b:nth-child(3) { height: 25px; }
  .product-brand .wordmark-caption { display: inline; margin-left: 11px; color: #a0b5aa; font-size: 10px; letter-spacing: 1px; vertical-align: middle; font-weight: 400; }
  .product-account { padding: 0 13px; }
  .product-account .icon-button { width: 36px; height: 40px; }
  .product-nav { height: calc(67px + env(safe-area-inset-bottom)); gap: 3px; border-top-color: #dfe9e2; background: #fbfdfb; padding: 6px 7px env(safe-area-inset-bottom); box-shadow: 0 -3px 18px #16372206; }
  .product-nav-item { gap: 5px; height: 53px; padding: 0 2px; border-radius: 9px; color: #6c8174; font-size: 9px; }
  .product-nav-item.active { color: #205239; background: #e4f1e6; box-shadow: none; }
  .product-nav-item:hover { color: #205239; background: #eaf3ec; }
  .product-stage { padding-bottom: calc(67px + env(safe-area-inset-bottom)); }
  .workbench-home { padding: 0 25px 28px; }
  .product-page-header { min-height: 125px; }
  .workspace-welcome { min-height: 198px; }
  .workbench-overview { grid-template-columns: 1fr; gap: 24px; padding-top: 25px; }
  .workspace-activity { margin-top: 0; border-top: 1px solid #e1e8e4; padding: 20px; }
  .workspace-activity dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .workspace-status { max-width: 285px; }
  .sidebar { inset: 64px auto calc(67px + env(safe-area-inset-bottom)) 0; }
  .sidebar:not(.open) { visibility: hidden; }
  .empty-state h1 { font-size: 26px; }
  .settings-header { min-height: 85px; }
  .settings-tabs { padding-right: 14px; padding-left: 14px; }
}
@media (max-width: 620px) {
  .auth-panel { padding: 25px 25px 18px; }
  .auth-topline .wordmark { font-size: 24px; }
  .auth-home-link { font-size: 11px; }
  .auth-form { padding: 48px 0 28px; gap: 19px; }
  .auth-heading { margin-bottom: 8px; }
  .auth-heading h1 { font-size: 30px; }
  .auth-heading p:last-child { font-size: 12px; }
  .auth-legal-footer { font-size: 8px; }
  .auth-legal-footer p { display: flex; flex-wrap: wrap; justify-content: center; gap: 1px 7px; }
  .workbench-home { padding: 0 18px 24px; }
  .product-page-header { min-height: 125px; gap: 10px; }
  .product-page-header h1 { font-size: 26px; }
  .product-page-header > .secondary-button { width: 36px; height: 36px; min-height: 36px; padding: 0; }
  .product-page-header > .secondary-button span { display: none; }
  .product-page-header > .secondary-button svg { width: 16px; }
  .workspace-welcome { min-height: 183px; border-radius: 13px; }
  .workspace-welcome-copy { padding: 24px 22px; }
  .workspace-welcome h2 { font-size: 22px; margin: 14px 0 10px; }
  .workspace-welcome p { font-size: 11px; line-height: 1.8; }
  .workspace-welcome > img { width: 55%; opacity: .32; object-position: 35% 50%; mask-image: linear-gradient(90deg, transparent, #000); }
  .welcome-label { font-size: 9px; letter-spacing: .8px; }
  .welcome-index { display: none; }
  .section-title-row h2 { font-size: 15px; }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
  .product-card { min-height: 158px; gap: 14px 8px; padding: 16px 14px; border-radius: 11px; }
  .product-card .product-icon { width: 36px; height: 36px; border-radius: 10px; }
  .product-card-copy strong { font-size: 13px; }
  .product-card-copy small { font-size: 10px; line-height: 1.7; }
  .workspace-activity { padding: 18px; }
  .workspace-activity dl { gap: 12px; }
  .workspace-activity dl div { align-items: flex-start; flex-direction: column; gap: 6px; min-height: 70px; }
  .workspace-activity dt, .workspace-activity dd { font-size: 10px; }
  .empty-state { padding: 36px 0; }
  .empty-state h1 { font-size: 23px; text-align: center; line-height: 1.6; }
  .prompt-grid { gap: 9px; }
  .prompt-grid button { min-height: 61px; padding: 14px; align-items: center; }
  .prompt-grid svg { align-self: center; }
  .files-product { padding-right: 16px; padding-left: 16px; }
  .files-header { min-height: 138px; }
  .file-commandbar { min-height: 94px; }
  .file-primary-actions { gap: 6px; }
  .file-primary-actions .primary-button, .file-primary-actions .secondary-button { min-height: 35px; font-size: 11px; padding: 0 10px; }
  .settings-header h2, .dialog-header h2 { font-size: 21px; }
  .settings-toolbar { gap: 10px; }
  .dialog { max-width: calc(100vw - 24px); border-radius: 13px; }
  .dialog-body { padding: 21px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* The workspace is an app launcher; each app owns its navigation. */
.app-shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: 76px minmax(0, 1fr); }
.workspace-topbar { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 0 clamp(24px, 4vw, 64px); background: #101718; color: #f4fbf7; border-bottom: 1px solid #26382f; }
.workspace-brand .wordmark { font-size: 23px; color: inherit; }
.workspace-brand .xiaobu-symbol { color: var(--xb-mint); width: 25px; height: 27px; gap: 2px; }
.workspace-brand .xiaobu-symbol b { width: 7px; }
.workspace-brand .xiaobu-symbol b:nth-child(1) { height: 11px; }
.workspace-brand .xiaobu-symbol b:nth-child(2) { height: 19px; }
.workspace-brand .xiaobu-symbol b:nth-child(3) { height: 27px; }
.workspace-brand .wordmark-caption { color: #9bb3a7; font-size: 8px; letter-spacing: 2px; }
.workspace-account { margin-left: auto; display: flex; align-items: center; gap: 22px; min-width: 0; }
.workspace-account .account-copy strong { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.workspace-account .account-copy span { color: #96aea2; font-size: 10px; }
.workspace-account .icon-button { color: #b5cbbd; width: 38px; height: 38px; }
.workspace-account .icon-button:hover { color: #fff; background: #ffffff10; }
.workspace-back { display: inline-flex; gap: 7px; align-items: center; flex: 0 0 auto; min-height: 36px; padding: 0 12px; border: 1px solid #385146; border-radius: 8px; color: #d5e7db; background: #ffffff05; font-size: 12px; }
.workspace-back:hover { color: #fff; border-color: #749985; background: #ffffff0b; }
.workspace-back svg { width: 15px; height: 15px; }
.active-app-label { color: #a9c3b4; font-size: 12px; }
.app-shell[data-active-product="home"] #backWorkspaceButton, .app-shell[data-active-product="home"] #activeAppLabel { display: none; }
.product-stage { padding-bottom: 0; }
.workbench-home { padding-inline: max(28px, calc((100vw - 1240px) / 2)); padding-bottom: 26px; }
.workbench-home > .workspace-welcome { margin-top: clamp(16px, 2.2vw, 28px); }
.workbench-overview { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.product-card { min-height: 176px; padding: 25px; text-decoration: none; }
.workbench-home .workspace-activity { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 20px 25px; }
.workbench-home .workspace-activity dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; }
.workbench-home .workspace-activity dl div { min-height: 52px; flex-direction: column; align-items: flex-start; justify-content: center; border: 0; }
.workbench-home .workspace-status { margin: 0; }
.workspace-home-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; color: #7c8f83; font-size: 9px; line-height: 1.8; }
@media (max-width: 1000px) {
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-home .workspace-activity { grid-template-columns: 110px minmax(0, 1fr); gap: 20px; }
  .workbench-home .workspace-status { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .app-shell { grid-template-rows: 64px minmax(0, 1fr); }
  .workspace-topbar { padding-inline: 20px; gap: 16px; }
  .sidebar { inset: 64px auto 0 0; }
  .sidebar-scrim { inset: 64px 0 0; }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .active-app-label { display: none; }
}
@media (max-width: 620px) {
  .workspace-topbar { gap: 12px; padding-inline: 17px; }
  .workspace-brand .wordmark { gap: 9px; font-size: 20px; }
  .workspace-brand .wordmark-caption, .workspace-account .account-copy { display: none; }
  .workspace-account { gap: 0; }
  .workspace-back { gap: 5px; padding-inline: 8px; font-size: 11px; }
  .workspace-account .icon-button { width: 33px; }
  .workbench-home { padding: 0 18px 24px; }
  .product-card-grid { gap: 10px; }
  .product-card { padding: 17px 15px; min-height: 178px; gap: 17px 4px; }
  .product-card-copy strong { font-size: 14px; }
  .product-card-copy small { font-size: 10px; line-height: 1.7; }
  .workbench-home .workspace-activity { display: block; padding: 18px; }
  .workbench-home .workspace-activity dl { gap: 14px; margin-top: 14px; }
  .workbench-home .workspace-status { margin-top: 15px; }
  .workspace-home-footer { gap: 5px 13px; margin-top: 23px; font-size: 8px; }
}
