/* Shared reading workspace. Load after the existing component styles. */
.is-workspace, .is-account, dialog, .toast {
  --bg:#f0f0f0; --surface:#fff; --surface-2:#f7f7f5;
  --text:#282620; --muted:#74736e; --line:#e5e5e2;
  --cyan:#39352e; --gold:#96743a; color-scheme:light;
}
.is-workspace {background:var(--bg);color:var(--text);font:14px/1.75 "Noto Sans SC",sans-serif}
.is-workspace .workspace-shell {background:var(--bg)}
.is-workspace :is(button,input,select,textarea) {font-family:"Noto Sans SC",sans-serif}
.is-workspace :is(h1,h2,h3), .is-workspace .brand, .is-workspace .nav-heading, .is-workspace .nav-item {font-family:"Noto Serif SC",serif}
.is-workspace :is(.side-nav,.chat-scroll,.chart-scroll,.table-wrap,pre), dialog {scrollbar-color:#c9c7c1 transparent}
.is-workspace :is(button,a,input,select,textarea,summary,[tabindex]):focus-visible, dialog :is(button,a,input,select,textarea,summary):focus-visible {outline:2px solid #8c703c;outline-offset:3px}

/* Navigation follows the same three-level rhythm on every internal page. */
.is-workspace .sidebar {width:280px;padding:16px 12px 10px;background:#f0f0f0;border-right:1px solid #e2e2df;gap:0}
.is-workspace .sidebar-brand-row {display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:18px}
.is-workspace .sidebar .brand {gap:10px;margin:0;color:#282620;min-width:0}
.is-workspace .sidebar .brand-mark {width:43px;height:43px;flex-shrink:0;color:#a18349}
.is-workspace .sidebar .brand>span {font-size:20px;font-weight:600;line-height:1.5;letter-spacing:0;white-space:nowrap}
.is-workspace .sidebar .brand b {font-size:13px;font-weight:500;color:#8d7445}
.is-workspace .sidebar .brand small {font-size:12px;font-weight:400;letter-spacing:.04em;color:#69665d;margin-top:3px}
.is-workspace #sidebar-collapse {flex-shrink:0;min-width:34px;width:34px;min-height:40px;padding:7px}
.is-workspace .side-membership {position:relative;display:flex;flex-direction:column;justify-content:center;min-height:94px;margin:0 0 15px;padding:16px 18px;border-radius:20px;background:#fff;color:#57452d;box-shadow:0 12px 25px #29251d06;overflow:hidden}
.is-workspace .side-membership:after {content:'';position:absolute;right:-26px;top:-30px;width:110px;height:110px;border:1px solid #f0e9db;border-radius:50%;pointer-events:none}
.is-workspace .side-membership small {font-size:11px;color:#84714d;line-height:1.6}
.is-workspace .side-membership strong {font:600 18px/1.5 "Noto Serif SC",serif;margin-top:5px;padding-right:20px}
.is-workspace .side-membership>span {font-size:12px;color:#7e7563}
.is-workspace .side-membership>.icon {position:absolute;right:18px;bottom:19px;width:24px;height:24px;padding:4px;border-radius:50%;background:#c6a65f;color:#fff}
.is-workspace .new-chat {background:#fff;border:1px solid #e4e3df;border-radius:10px;color:#49463f;min-height:42px;box-shadow:none;font-size:13px;margin:0 0 8px}
.is-workspace .new-chat:hover {background:#e8e7e3;border-color:#d8d6cf}
.is-workspace .side-nav>.new-chat {width:100%;margin:0 0 12px;flex-shrink:0;cursor:pointer}
.is-workspace .conversation-history {margin:0 0 18px;border-bottom:1px solid #dfded8;padding-bottom:12px}
.is-workspace .conversation-history>summary {display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;font:600 15px/1.5 "Noto Serif SC",serif;list-style:none;cursor:pointer;color:#514b3d}
.is-workspace .conversation-history>summary::-webkit-details-marker {display:none}
.is-workspace .conversation-history>summary>.icon {width:17px;height:17px;color:#958a75;flex-shrink:0}
.is-workspace .conversation-history>summary>.icon:last-child {margin-left:auto;width:12px;transform:rotate(180deg)}
.is-workspace .conversation-history[open]>summary>.icon:last-child {transform:rotate(-90deg)}
.is-workspace #conversation-list {max-height:32vh;max-height:32dvh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c9c7c1 transparent;padding:0 3px}
.is-workspace .conversation-history-heading {display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:#8b8270;font-size:11px}
.is-workspace .conversation-history-heading button {display:grid;place-items:center;min-width:34px;min-height:34px;padding:7px}
.is-workspace .conversation-history-heading .icon {width:15px;height:15px}
.is-workspace .conversation-item {display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:9px 11px;border:1px solid transparent;border-radius:9px;background:transparent;text-align:left;color:#686154;font-size:12px;cursor:pointer}
.is-workspace .conversation-item>span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.is-workspace .conversation-item>small {flex-shrink:0;font-size:10px;color:#958a76}
.is-workspace .conversation-item:hover {background:#e8e7e1}
.is-workspace .conversation-item.selected {background:#fff;border-color:#e6e2d8;color:#625031;box-shadow:0 3px 9px #40382105}
.is-workspace .conversation-note {padding:5px 10px;margin:0;font-size:11px;line-height:1.7;color:#8b8270}
.is-workspace .conversation-warning {color:#98753c}
.is-workspace .conversation-save-state {min-height:19px;margin:0 2px 5px;font-size:11px;line-height:1.7;color:#8b8069}
.is-workspace .conversation-save-state .quiet-button {padding:0 5px;text-decoration:underline;text-underline-offset:3px}
.is-workspace .conversation-title {gap:16px;flex-shrink:0;padding:4px 10px 12px}
.is-workspace #conversation-title-text {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.is-workspace #clear-chat {white-space:nowrap;min-height:32px}
.is-workspace .side-intro {display:none}
.is-workspace .side-nav {flex:1;padding:4px 0 12px}
.is-workspace .nav-group {border:0;margin:0 0 12px;padding:0;background:transparent}
.is-workspace .nav-heading {display:flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:8px 12px;font-size:17px;font-weight:600;letter-spacing:0;color:#454138;list-style:none;cursor:pointer}
.is-workspace .nav-heading::-webkit-details-marker {display:none}
.is-workspace .nav-heading>.icon {width:18px;height:18px;color:#958a75;flex-shrink:0}
.is-workspace .nav-heading>.icon:last-child {margin-left:auto;width:13px;height:13px;transform:rotate(-90deg);transition:transform .15s}
.is-workspace .nav-group:not([open]) .nav-heading>.icon:last-child {transform:rotate(180deg)}
.is-workspace .nav-links {border-left:1px solid #d8d7d2;margin:2px 0 8px 17px;padding-left:7px}
.is-workspace .nav-item {min-height:42px;height:auto;gap:10px;padding:9px 12px;margin:2px 0;font-size:14px;font-weight:500;border:0;border-radius:10px;color:#514c42}
.is-workspace .nav-item .icon {width:17px;height:17px;color:#8f8674;flex-shrink:0}
.is-workspace .nav-item:hover {background:#e7e7e3;color:#27251e}
.is-workspace .nav-item.selected {background:#fff;color:#282620;border:0;box-shadow:0 4px 10px #24231f06}
.is-workspace .nav-item.selected .icon {color:#85775a}
.is-workspace .nav-item.selected i {display:none}
.is-workspace .side-home {display:flex;align-items:center;gap:10px;min-height:42px;padding:8px 12px;color:#81745b;font-size:13px}
.is-workspace .side-home>.icon {width:17px;height:17px;flex-shrink:0}
.is-workspace .side-home:hover {color:#403627;background:#e8e6e0;border-radius:9px}
.is-workspace .side-profile {border-top:1px solid #e1e1dd;font-size:13px;color:#322e26;padding:16px 9px 6px;gap:10px}
.is-workspace .side-profile small {font-size:11px;color:#74716a;margin-top:2px}
.is-workspace .profile-avatar {width:36px;height:36px;background:#96736c;border:0;color:#fff;font-size:21px}
.is-workspace .account-side-actions {font-size:11px;color:#79756b;padding:2px 9px 0;gap:5px 9px}
.is-workspace .account-side-actions a,.is-workspace .account-side-actions button {min-height:30px;display:inline-flex;align-items:center}
.is-workspace .workspace-main {margin-left:280px}
.is-workspace .work-header {height:56px;padding:0 28px;background:#f0f0f0;border-color:#e3e3df;backdrop-filter:none}
.is-workspace .breadcrumb {color:#625e54;font-size:14px}
.is-workspace .breadcrumb b {color:#29261f;font-weight:600;font-family:"Noto Serif SC",serif}
.is-workspace .header-right {gap:8px}
.is-workspace .service-state {font-size:11px;color:#77736a}
.is-workspace .work-content {max-width:1240px;padding:30px 36px 40px}
.is-workspace .workspace-footer {background:transparent;color:#7b776d;font-size:12px;letter-spacing:0}
.is-workspace .page-heading {margin-bottom:24px;gap:18px}
.is-workspace .page-heading h1 {font-size:27px;line-height:1.5;color:#302c24;font-weight:600;margin:6px 0 9px}
.is-workspace .page-heading p {font-size:14px;color:#767167;line-height:1.8}
.is-workspace .eyebrow {font-size:11px;letter-spacing:1px;color:#8d7b58}
.is-workspace .panel {background:#fff;border:1px solid #e5e5e1;border-radius:16px;box-shadow:none}
.is-workspace .panel-heading h2 {font-size:18px;color:#3b3529;font-weight:600}
.is-workspace .button,dialog .button {border-radius:10px;letter-spacing:0;font-size:14px;min-height:44px;font-weight:500;box-shadow:none}
.is-workspace .button.primary,dialog .button.primary {background:#39352e;border-color:#39352e;color:#fff;box-shadow:none}
.is-workspace .button.primary:hover,dialog .button.primary:hover {background:#514a3f;border-color:#514a3f;box-shadow:none;transform:none}
.is-workspace .button.secondary,.is-workspace .button.subtle,dialog .button.secondary {background:#fff;border-color:#dfddd7;color:#655d4c}
.is-workspace .button.secondary:hover,.is-workspace .button.subtle:hover,dialog .button.secondary:hover {background:#f4f3ef;border-color:#c5bba4}
.is-workspace .icon-button,dialog .icon-button {color:#686155}
.is-workspace .icon-button:hover,dialog .icon-button:hover {color:#39352e;background:#e6e5e0}
.is-workspace .quiet-button {color:#716957}
.is-workspace .text-link {color:#8b6e34}
.is-workspace .pill {background:#f9f6ef;border-color:#e7ddc9;color:#806938}
.is-workspace .notice {background:#faf8f2;border-color:#e7e1d3;color:#75694f}
.is-workspace .field {font-size:14px;color:#59544a}
.is-workspace .field :is(input,select,textarea),.is-workspace form input:not([type=checkbox]):not([type=hidden]):not([type=radio]),.is-workspace form select,.is-workspace form textarea,dialog .field :is(input,select,textarea) {background:#fff;border-color:#dedbd3;color:#3f3a30;border-radius:9px;min-height:46px;font-size:15px}
.is-workspace .field :is(input,select,textarea):disabled {background:#f0efeb;color:#858075}
.is-workspace form button:not(.button):not(.round-send):not(.icon-button) {background:#f7f6f2;color:#71644d;border-color:#e2ddd1}
.is-workspace .birth-period>span {border-color:#e3ded1;background:#fff}
.is-workspace .form-submit,.is-workspace .profile-actions,.is-workspace .profile-card-head,.is-workspace .account-summary dl>div {border-color:#e8e5dd}
.is-workspace .tool-card {padding:24px;min-height:220px}
.is-workspace .tool-card:hover {background:#fff;border-color:#c9b98e;transform:none;box-shadow:0 8px 18px #27231905}
.is-workspace .tool-card h2 {font-size:21px;letter-spacing:0}
.is-workspace .tool-guide {background:#fff}
.is-workspace .account-overview {margin-inline:auto;max-width:1000px}
.is-workspace .account-balance h2 {color:#665a43}
.is-workspace .account-credit {font-size:40px;margin:24px 0 16px;color:#987b40}
.is-workspace .account-billing {margin:32px auto;max-width:1100px}
.is-workspace .account-billing>.panel-heading h2 {color:#423a2c;font-size:22px}
.is-workspace .billing-product h4 {color:#423b2d}
.is-workspace .billing-group-heading h3 {color:#4a4030}
.is-workspace .billing-price {font-size:29px;color:#997b3d}

/* Conversation: one quiet column, with supporting evidence available on demand. */
.is-workspace .chat-layout {display:block;max-width:860px;margin:0 auto;height:100%;min-height:0}
.is-workspace.is-chat .work-content {max-width:none;width:100%;padding:20px 32px 16px;flex:1;min-height:0}
.is-workspace .chat-main {height:100%;min-height:0;display:flex;flex-direction:column}
.is-workspace .chat-scroll {min-height:0;max-height:none;padding:0 10px 26px;overflow-y:auto;flex:1}
.is-workspace .chat-welcome {max-width:640px;margin:10px auto 24px;text-align:center}
.is-workspace .welcome-orb {width:84px;height:84px;margin:0 auto 24px;border:0;border-radius:50%;background:#e9dfc5 url('assets/golden-hero.webp') 75% 46%/auto 125px no-repeat;box-shadow:none;color:#fff}
.is-workspace .welcome-orb:before,.is-workspace .welcome-orb:after {display:none}
.is-workspace .welcome-orb>.icon {display:none}
.is-workspace .chat-welcome .eyebrow {display:none}
.is-workspace .chat-welcome h1 {font-family:"Noto Sans SC",sans-serif;font-size:25px;font-weight:500;line-height:1.55;letter-spacing:0;margin:0 0 9px;color:#29261f}
.is-workspace .chat-welcome p {font-size:14px;line-height:1.8;color:#77736b;margin:0}
.is-workspace .chat-suggestions {display:flex;justify-content:center;gap:10px;max-width:none;margin:24px auto 0}
.is-workspace .chat-suggestions button {min-height:40px;padding:8px 13px;background:#f8f8f6;border:1px solid #e2e0d9;border-radius:22px;font-size:12px;color:#74684f;white-space:nowrap}
.is-workspace .chat-suggestions button:hover {background:#fff;border-color:#c5b895}
.is-workspace .chat-composer-zone {position:relative;background:transparent;width:100%;max-width:760px;margin:0 auto;flex-shrink:0;padding:8px 0 0}
.is-workspace .chat-composer {background:#fff;border:1px solid #e6e5e1;border-radius:20px;box-shadow:0 7px 18px #29261e07;padding:18px}
.is-workspace .chat-composer:focus-within {border-color:#c5b890;box-shadow:0 5px 20px #29261e09}
.is-workspace .chat-composer textarea {background:transparent;border:0;border-radius:0;padding:0;min-height:58px;font-size:15px;line-height:1.8;color:#3c382e;box-shadow:none}
.is-workspace .composer-bottom {gap:10px;align-items:center}
.is-workspace .composer-bottom .round-send {width:40px;height:40px;flex-basis:40px;background:#a98c4d;color:#fff}
.is-workspace .composer-bottom .round-send:hover {background:#896d34}
.is-workspace .chat-model-note {color:#7d786b;font-size:11px;margin:0 0 6px;min-height:0}
.is-workspace .chat-footnote {font-size:11px;color:#817c70;text-align:center;margin-top:8px}
.is-workspace .chat-context {display:block;position:relative;margin:0 0 6px;padding:0;align-self:auto;background:transparent;border:0;box-shadow:none;color:#7a705a}
.is-workspace .chat-context>summary {list-style:none;font-size:12px;min-height:32px;padding:4px 0;cursor:pointer;display:flex;align-items:center;gap:6px}
.is-workspace .chat-context>summary::-webkit-details-marker {display:none}
.is-workspace .chat-context>summary .icon {width:15px;height:15px}
.is-workspace .chat-context>summary:after {content:'⌃';font-size:15px;margin-left:3px}
.is-workspace .chat-context[open]>summary:after {content:'⌄'}
.is-workspace .chat-context>#chat-context-body {position:absolute;bottom:calc(100% + 8px);left:0;right:0;z-index:12;padding:18px 20px;background:#fff;border:1px solid #e3dfd4;border-radius:14px;box-shadow:0 12px 32px #29261f12;max-height:min(45vh,360px);max-height:min(45dvh,360px);overflow:auto}
.is-workspace .chat-context .context-blank {padding:10px;text-align:left}
.is-workspace .chat-context .context-blank>.icon {display:none}
.is-workspace .chat-context .context-bottom {display:none}
.is-workspace .consult-context>p {margin:0 0 12px;color:#554c3e;font-size:13px}
.is-workspace .consult-context>small {color:#7c7464}
.is-workspace .consult-context-report {border-color:#e9e5db;background:#faf9f5;color:#7b6740}
.is-workspace .consult-record {border-color:#e6e2d8;background:#f8f7f3}
.is-workspace .consult-record>summary {color:#7a6e54}
.is-workspace .conversation-title {font-size:12px;color:#827a69}
.is-workspace .message-bubble {font-family:"Noto Sans SC",sans-serif;font-weight:400;color:#3d3930;font-size:16px;line-height:1.9;background:#fff;border-color:#e5e2d9;box-shadow:none}
.is-workspace .from-ai .message-bubble {border:0;background:transparent;padding:7px 0}
.is-workspace .from-user .message-bubble {background:#fff;border:1px solid #e6e3db;color:#484033}
.is-workspace .message-avatar {background:#e8dfcb;color:#887043}
.is-workspace .message-label {font-size:12px;color:#837969}
.is-workspace .consult-layout .message-bubble h3 {color:#51432e;font-size:18px;font-weight:600}
.is-workspace .consult-intake {background:#fff;border-color:#e3dfd4;box-shadow:none}

/* Reports retain their content structure, with consistent page and reading widths. */
.is-workspace .rp-page,.rp-order {--rp-bg:#f0f0f0;--rp-ink:#302b22;--rp-muted:#777268;--rp-line:#e5e3dd;--rp-gold:#98773a}
.is-workspace .rp-hero {height:330px}
.is-workspace .rp-hero:after {background:linear-gradient(90deg,#fff8e3b0,transparent 60%),linear-gradient(0deg,#f0f0f0,transparent 30%)}
.is-workspace .rp-hero-words>span {font-size:12px;letter-spacing:2px}
.is-workspace .rp-hero-words>p {font-size:32px;letter-spacing:1px;line-height:1.6}
.is-workspace .rp-catalog,.is-workspace .rp-library {max-width:1280px;padding:20px 40px 48px}
.is-workspace .rp-group {margin-bottom:34px}
.is-workspace .rp-group-heading {margin-bottom:12px}
.is-workspace .rp-group-heading p {line-height:1.7;margin-top:3px}
.is-workspace .rp-product {min-height:74px;padding:12px 15px;border-color:#e6e4de;border-radius:13px;box-shadow:none}
.is-workspace .rp-product-copy small {font-family:"Noto Sans SC",sans-serif;line-height:1.65;color:#817a6d}
.is-workspace .rp-product>.rp-icon {color:#b99a55}
.is-workspace .rp-product:hover {border-color:#c8b581;background:#fff;box-shadow:0 4px 12px #34302004}
.is-workspace .rp-document-heading {height:190px;background:#f0f0f0}
.is-workspace .rp-document-heading:after {background:linear-gradient(0deg,#f0f0f0,transparent 90%)}
.is-workspace .rp-document-heading>img {opacity:.12}
.is-workspace .rp-document-body,.is-workspace .rp-detail-body {max-width:920px;padding-inline:28px}
.is-workspace .rp-document-summary {color:#756d5f}
.is-workspace .rp-chapter-card {padding:22px 24px;border-radius:14px}
.is-workspace .rp-chapter-card h2 {font-weight:500;font-size:15px;background:#f7f3e9;border-color:#e8ddc1;color:#957737}
.is-workspace .rp-chapter-card>p {font:14px/1.95 "Noto Sans SC",sans-serif;color:#726c60}
.is-workspace .rp-chapter {padding:36px 42px;border-radius:14px}
.is-workspace .rp-chapter>header>h2 {font-size:25px;color:#403729}
.is-workspace .rp-chapter-text {font-family:"Noto Sans SC",sans-serif;line-height:2;color:#504a3f}
.is-workspace .rp-reading-toolbar {top:64px;background:#fffffff5;border-color:#e4e1d8}
dialog.rp-order-dialog {border-radius:22px;background:#f0f0f0;max-width:720px}
.rp-order {background:#f0f0f0;padding:14px}
.rp-order .rp-order-card {border-radius:14px}
.rp-order .rp-order-banner {height:176px;border-radius:13px}
.rp-order .rp-order-description {padding:22px 30px}
.rp-order .rp-child-list label {min-height:46px}
.rp-order .rp-child-list input {accent-color:#b99a55}
.rp-order .rp-order-footer {border-color:#e6e1d6}
.rp-order .button.primary {background:#a28648;border-color:#a28648;color:white}
.rp-order .button.primary:hover {background:#8b7038;border-color:#8b7038}

/* Login and birth information use the same restrained controls. */
.is-account {background:#f0f0f0;color:#39332a}
.is-account .account-card {border-color:#e3dfd5;background:#fffffff5;box-shadow:0 18px 50px #3b30200a;border-radius:20px}
.is-account .account-card h1 {color:#3e3427;font-size:27px}
.is-account .account-card .button.primary {background:#39352e;border-color:#39352e;color:#fff;font-family:"Noto Sans SC",sans-serif;font-size:15px;font-weight:500}
.is-account .account-card .button.secondary {background:#fff;border-color:#e1d9c7;color:#736348}
.is-account .account-card input:not([type=checkbox]):not([type=hidden]):not([type=radio]),.is-account .account-card select,.is-account .account-card textarea {border-color:#dedbd2;background:#fff;color:#453d30}
.is-account .account-brand .brand {color:#40372b}
.is-account .account-tabs>button[aria-selected=true] {color:#78613b}

@media(min-width:861px) {
  .is-workspace .sidebar-collapsed .sidebar {width:72px;padding-inline:9px}
  .is-workspace .sidebar-collapsed .workspace-main {margin-left:72px}
  .is-workspace .sidebar-collapsed .sidebar-brand-row {flex-direction:column;gap:5px;margin-bottom:12px}
  .is-workspace .sidebar-collapsed .brand>span,.is-workspace .sidebar-collapsed .side-membership,.is-workspace .sidebar-collapsed .nav-heading>span,.is-workspace .sidebar-collapsed .nav-heading>.icon:last-child,.is-workspace .sidebar-collapsed .nav-item>span,.is-workspace .sidebar-collapsed .side-profile>span:not(.profile-avatar),.is-workspace .sidebar-collapsed .side-profile>.icon,.is-workspace .sidebar-collapsed .account-side-actions {display:none}
  .is-workspace .sidebar-collapsed .new-chat {font-size:0;gap:0;padding:8px;min-height:44px}
  .is-workspace .sidebar-collapsed .new-chat>span,.is-workspace .sidebar-collapsed .conversation-history {display:none}
  .is-workspace .sidebar-collapsed .nav-heading,.is-workspace .sidebar-collapsed .nav-item {justify-content:center;padding:10px;min-height:44px}
  .is-workspace .sidebar-collapsed .nav-links {margin:0;padding:0;border:0}
  .is-workspace .sidebar-collapsed .side-home {justify-content:center;padding:10px}
  .is-workspace .sidebar-collapsed .side-home>span {display:none}
  .is-workspace .sidebar-collapsed .side-profile {justify-content:center;padding:15px 0 5px}
}
@media(max-width:1100px) {
  .is-workspace .work-content {padding:28px 24px 36px}
  .is-workspace .rp-catalog,.is-workspace .rp-library {padding-inline:26px}
  .is-workspace .rp-product-grid {grid-template-columns:1fr}
  .is-workspace .billing-products {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px) {
  .is-workspace .sidebar {width:280px;transform:translateX(-100%);visibility:hidden;z-index:30}
  .is-workspace.sidebar-open .sidebar {transform:translateX(0);visibility:visible}
  .is-workspace .workspace-main {margin-left:0;padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))}
  .is-workspace .work-header {height:56px;padding-inline:15px}
  .is-workspace #sidebar-collapse {display:none}
  .is-workspace .mobile-menu {display:inline-grid}
  .is-workspace .mobile-bottom-nav {background:#fffffff5;border-color:#e5e2da;min-height:62px;padding-bottom:env(safe-area-inset-bottom,0px)}
  .is-workspace .mobile-bottom-nav a {color:#80755e;font-size:12px}
  .is-workspace .mobile-bottom-nav a.active {color:#5c4a2a;background:transparent}
  .is-workspace.is-chat .work-content {padding:18px 22px 12px}
  .is-workspace .rp-product-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px) {
  .is-workspace .work-content {padding:24px 17px 30px}
  .is-workspace .page-heading h1 {font-size:25px}
  .is-workspace .page-heading .eyebrow {font-size:10px}
  .is-workspace .page-heading p {font-size:13px}
  .is-workspace .page-heading>.button {font-size:12px;padding:8px 11px}
  .is-workspace .service-state {display:none}
  .is-workspace .tool-card {padding:20px 16px;min-height:205px}
  .is-workspace .tool-card h2 {font-size:20px}
  .is-workspace .tool-card p {font-size:13px}
  .is-workspace .tool-card>div:last-child {font-size:12px}
  .is-workspace .account-credit {font-size:34px}
  .is-workspace .field input,.is-workspace .field select,.is-workspace .field textarea {font-size:16px}
  .is-workspace.is-chat .work-content {padding:12px 12px 8px}
  .is-workspace .chat-scroll {padding:0 3px 20px}
  .is-workspace .chat-welcome {margin:12px auto 18px}
  .is-workspace .welcome-orb {width:64px;height:64px;background-size:auto 100px;margin-bottom:19px}
  .is-workspace .chat-welcome h1 {font-size:22px;margin-bottom:8px}
  .is-workspace .chat-welcome p {font-size:13px}
  .is-workspace .chat-suggestions {gap:6px;margin-top:18px;flex-wrap:wrap}
  .is-workspace .chat-suggestions button {font-size:12px;min-height:38px;padding:7px 11px}
  .is-workspace .chat-suggestions .icon {display:none}
  .is-workspace .chat-composer {padding:14px;border-radius:18px}
  .is-workspace .chat-composer textarea {font-size:16px;min-height:48px}
  .is-workspace .chat-model-note {font-size:10px}
  .is-workspace .chat-footnote {font-size:10px;line-height:1.6;margin-top:6px}
  .is-workspace .chat-context>#chat-context-body {padding:15px}
  .is-workspace .consult-layout .message-bubble {font-size:15px}
  .is-workspace .rp-hero {height:225px}
  .is-workspace .rp-hero-words>span {font-size:10px}
  .is-workspace .rp-hero-words>p {font-size:24px;line-height:1.6}
  .is-workspace .rp-catalog,.is-workspace .rp-library {padding:14px 16px 32px}
  .is-workspace .rp-product-grid {grid-template-columns:1fr}
  .is-workspace .rp-product {min-height:76px;padding:12px}
  .is-workspace .rp-product-copy small {font-size:12px;line-height:1.6}
  .is-workspace .rp-group {margin-bottom:29px}
  .is-workspace .rp-tabs {padding:18px 15px 12px;gap:70px}
  .is-workspace .rp-document-body,.is-workspace .rp-detail-body {padding-inline:14px}
  .is-workspace .rp-chapter {padding:25px 20px}
  .is-workspace .rp-chapter>header>h2 {font-size:23px}
  .is-workspace .rp-chapter-card {padding:18px 16px}
  .is-workspace .rp-chapter-card h2 {font-size:13px}
  .is-workspace .rp-chapter-card>p {font-size:13px}
  .is-workspace .rp-reading-toolbar {top:62px}
  .rp-order .rp-order-banner {height:120px}
  .rp-order .rp-order-description {padding:18px}
  .rp-order .rp-choice-heading {align-items:start}
  .rp-order .rp-choice-heading>span {font-size:11px;text-align:right}
  .rp-order .rp-order-footer {gap:12px}
  .is-account .account-card h1 {font-size:24px}
}
@media print {
  .is-workspace .workspace-main,.is-workspace .sidebar-collapsed .workspace-main {margin-left:0;padding:0}
  .is-workspace .rp-document-body,.is-workspace .rp-detail-body {max-width:none;padding:0}
  .is-workspace .rp-page,.is-workspace .workspace-shell,.is-workspace .rp-chapter {background:#fff}
  .is-workspace .rp-chapter {padding:0;border:0}
}

/* Chat choices use native dialogs for focus containment and Escape dismissal. */
.is-workspace .conversation-tabs {display:flex;gap:4px;min-width:0}
.is-workspace .conversation-tabs button {min-height:40px;padding:5px 7px;background:transparent;border:0;border-bottom:2px solid transparent;border-radius:0;color:#777064;font-size:12px;cursor:pointer;white-space:nowrap}
.is-workspace .conversation-tabs button.selected {border-bottom-color:#a68846;color:#70572c;font-weight:600}
.is-workspace .conversation-item>span>b,.is-workspace .conversation-item>span>em {display:block;overflow:hidden;text-overflow:ellipsis;font-style:normal;font-weight:400}
.is-workspace .conversation-item>span>em {font-size:11px;color:#847b6c;margin-top:2px}
.is-workspace .chat-composer .chat-choice {display:flex;align-items:center;gap:6px;min-height:44px;min-width:0;padding:5px 8px;border:0;border-radius:8px;background:#f7f6f2;color:#6d624e;font-size:12px;cursor:pointer}
.is-workspace .chat-choice>.icon {width:16px;height:16px;flex-shrink:0}
.is-workspace .chat-choice>span:first-of-type {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.is-workspace .chat-composer .chat-mode-choice {margin-left:auto;flex-shrink:0}
.is-workspace .composer-bottom .round-send {margin-left:0;flex-shrink:0;min-width:44px;min-height:44px}
.is-workspace .chat-choice:hover {background:#eeeae0}
.is-workspace .chat-choice:disabled {opacity:.55;cursor:wait}
.is-workspace .chat-linked-chart {font-size:12px;color:#7d7056;margin:8px 2px}
.is-workspace .consult-source a {color:#806735;text-decoration:underline;text-underline-offset:3px;margin-right:6px;overflow-wrap:anywhere}
.chat-choice-dialog {width:min(560px,calc(100vw - 32px));max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);padding:28px;border:1px solid #e3dfd5;border-radius:18px;background:#fff;color:#342f26;box-shadow:0 24px 80px #29261e25}
.chat-choice-dialog::backdrop {background:#29272455;backdrop-filter:blur(3px)}
.chat-choice-dialog .dialog-heading {margin-bottom:16px;gap:15px}
.chat-choice-dialog .dialog-heading h2 {margin:0;font-size:23px;font-weight:600}
.chat-choice-dialog .dialog-heading .icon-button {width:44px;height:44px;flex-shrink:0}
.chat-choice-description {font-size:13px;line-height:1.8;color:#797164;margin:12px 0 18px}
.chat-choice-options {display:grid;gap:12px}
.chat-option {display:flex;align-items:center;gap:14px;width:100%;min-height:92px;padding:18px;text-align:left;background:#fff;border:1px solid #e6e2d9;border-radius:13px;color:#494237;cursor:pointer;font:inherit}
.chat-option:hover {background:#faf9f6;border-color:#cbbf9e}
.chat-option.selected {border-color:#b69a55;background:#fcfaf4;box-shadow:inset 0 0 0 1px #b69a55}
.chat-option>.icon {width:27px;height:27px;color:#9a8048;flex-shrink:0}
.chat-option>span:nth-child(2) {min-width:0;flex:1}
.chat-option strong {display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}
.chat-option strong em {margin-left:8px;padding:2px 6px;background:#f2eee4;color:#8b7346;border-radius:4px;font-size:11px;font-style:normal;white-space:nowrap}
.chat-option small {display:block;font-size:12px;line-height:1.75;margin-top:6px;color:#817767}
.chat-option-check {width:20px;height:20px;border-radius:50%;border:1px solid #ded8cc;color:transparent;display:grid;place-items:center;flex-shrink:0;font-size:13px}
.chat-option.selected .chat-option-check {background:#ac8e4e;border-color:#ac8e4e;color:#fff}
.chat-subject-avatar {width:42px;height:42px;display:grid;place-items:center;background:#eee7d9;color:#8c754e;border-radius:50%;flex-shrink:0;font-size:20px}
.chat-add-subject {display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;width:100%;margin-top:16px;border:1px dashed #cfc4ad;border-radius:12px;background:#faf9f6;color:#8a7040;font:inherit;cursor:pointer}
.chat-add-subject>.icon {width:18px;height:18px}
.chat-add-subject:hover {background:#f2eee3}
@media(max-width:600px){
  .chat-choice-dialog {padding:22px 18px}
  .chat-choice-dialog .dialog-heading h2 {font-size:21px}
  .chat-option {padding:15px 12px;gap:10px}
  .is-workspace .chat-composer .chat-choice {font-size:11px;padding:5px;gap:4px}
  .is-workspace .chat-mode-choice>.icon {display:none}
  .is-workspace .chat-composer .composer-bottom {gap:4px}
}
