:root{color-scheme:light;--paper:#f6f6f6;--cream:#e8e8e8;--card:#fdfdfd;--ink:#292929;--muted:#5a5a5a;--placeholder:#676767;--text-berry:#464646;--text-green:#4f4f4f;--text-amber:#545454;--text-risk:#505050;--text-purple:#535353;--berry:#494949;--berry-dark:#3c3c3c;--rose:#e7e7e7;--line:#e2e2e2;--green:#4f4f4f;--warning:#545454;--shadow:0 5px 20px #3f3f3f04;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:15px;line-height:1.65;background:var(--paper);color:var(--ink)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:1px;line-height:1.4;font-weight:650;margin-bottom:10px}h1 span{color:var(--berry)}h2{font-size:17px;line-height:1.5;margin-bottom:13px}h3{font-size:16px;line-height:1.6;margin-bottom:9px}p{margin-bottom:12px}small,.small-note{font-size:12px;color:var(--muted)}[hidden]{display:none!important}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8c8c8c;outline-offset:3px}input,textarea,select{width:100%;border:1px solid var(--line);background:#fefefe;color:var(--ink);border-radius:8px;padding:10px 12px;transition:border-color .15s,box-shadow .15s;min-width:0}input,select{min-height:43px}textarea{resize:vertical;line-height:1.8;display:block}input:focus,textarea:focus,select:focus{outline:none;border-color:#949494;box-shadow:0 0 0 3px #94949416}input::placeholder,textarea::placeholder{opacity:1;color:var(--placeholder);font-size:13px}input:disabled,textarea:disabled{background:#f3f3f3;color:var(--muted)}label{display:block;font-size:14px;font-weight:550;margin:18px 0 7px}form>label:first-child{margin-top:0}form small{display:block;margin-top:5px}summary{cursor:pointer;list-style:none}summary::-webkit-details-marker{display:none}summary:after{content:'⌄';color:var(--muted);margin-left:10px}details[open]>summary:after{content:'⌃'}ul{padding-left:20px;margin:8px 0}li+li{margin-top:9px}.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:43px;padding:9px 18px;border:1px solid transparent;border-radius:8px;font-size:14px;font-weight:550;white-space:nowrap;transition:background .15s,transform .15s}.button:active:not(:disabled){transform:translateY(1px)}.button.primary{background:var(--berry);color:#ffffff}.button.primary:hover:not(:disabled){background:var(--berry-dark)}.button.light{background:#fcfcfc;border-color:var(--line);color:var(--berry)}.button.light:hover:not(:disabled){background:var(--rose)}.button.small{min-height:35px;padding:5px 12px;font-size:13px}.button.full{width:100%}.text-button{border:0;background:none;color:var(--berry);font-size:13px;padding:5px 3px;white-space:nowrap}.text-button:hover:not(:disabled){text-decoration:underline}.button-row{display:flex;align-items:center;gap:13px;margin-top:15px;flex-wrap:wrap}.pill{display:inline-block;font-size:12px;line-height:1.5;padding:5px 10px;border-radius:20px;background:var(--rose);color:var(--berry);white-space:nowrap}.pill.pending{color:var(--text-amber);background:#eeeeee}.pill.confirmed{background:#eeeeee;color:var(--text-green)}.pill.event{background:#ececec;color:var(--text-purple)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:var(--muted);margin-bottom:10px}.muted{color:var(--muted)}.optional{font-size:12px;color:var(--muted);font-weight:400;margin-left:5px}.panel{background:var(--card);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}.padded{padding:23px}.panel-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-top h2{margin:0}.notice{background:#eaeaea;border:1px solid #dadada;color:var(--muted);border-radius:9px;padding:13px 17px;margin-bottom:20px;font-size:13px;line-height:1.8}.notice.warning{background:#f2f2f2;color:var(--warning);border-color:#e1e1e1}.notice p:last-child{margin-bottom:0}.error{color:#3c3c3c;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.global-error{margin:15px 30px;padding:12px 16px;background:#efefef;border:1px solid #d3d3d3;border-radius:8px}.small-note{line-height:1.7;margin:12px 0 0}.empty-small{color:var(--muted);font-size:13px;line-height:1.8;text-align:center;margin:26px 0}.brand{display:flex;gap:11px;align-items:center}.brand strong{display:block;font-size:21px;letter-spacing:3px;font-weight:650;line-height:1.4}.brand small{display:block;font-size:10px;letter-spacing:.5px;color:var(--muted);margin-top:2px}.brand-mark{display:flex;align-items:center;justify-content:center;width:42px;height:45px;flex-shrink:0;background:var(--berry);color:#ffffff;border-radius:15px 15px 15px 4px;font-family:serif;font-size:25px}.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:var(--muted)}.loading-screen .brand-mark{width:55px;height:58px}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr;max-width:1440px;margin:auto}.auth-story{padding:65px 11%;background:var(--cream);display:flex;flex-direction:column;justify-content:space-between;gap:70px;position:relative;overflow:hidden}.auth-story:after{content:'♡';position:absolute;right:-35px;bottom:80px;font:440px Georgia,serif;color:#dadada;transform:rotate(-12deg);pointer-events:none}.auth-story>div,.auth-story>small{z-index:1}.auth-story .eyebrow{color:var(--muted);font-size:12px}.auth-story h1{font-size:48px;line-height:1.5;font-weight:500;letter-spacing:3px;margin:15px 0 23px}.auth-story p:not(.eyebrow){color:var(--muted);line-height:2.1}.auth-story>small{color:var(--muted)}.auth-card{width:100%;max-width:485px;padding:60px 45px;align-self:center;justify-self:center}.auth-card h2{font-size:27px;margin:21px 0 8px}.auth-card form{margin-top:30px}.auth-card .full{margin-top:25px}.auth-foot{font-size:12px;color:var(--muted);text-align:center;margin:25px 0 0}.auth-card .notice{margin:20px 0 0}.sidebar{position:fixed;top:0;bottom:0;left:0;width:210px;background:var(--cream);border-right:1px solid #dedede;display:flex;flex-direction:column;padding:30px 19px 20px;z-index:20}.sidebar>.brand{margin:0 9px 35px}.sidebar-caption{font-size:11px;letter-spacing:1px;color:var(--muted);padding-left:15px;margin-bottom:12px}.nav{border:0;background:transparent;color:var(--muted);display:flex;align-items:center;gap:12px;width:100%;padding:12px 15px;border-radius:8px;font-size:14px;text-align:left;margin-bottom:4px}.nav>span{font-size:19px;line-height:1;width:18px;text-align:center;color:var(--muted)}.nav>small{margin-left:auto;color:var(--muted);font-size:11px}.nav.active{background:var(--berry);color:white}.nav.active>span,.nav.active>small{color:#dfdfdf}.nav:not(.active):hover{background:#dddddd}.nav-divider{color:var(--muted);font-size:10px;letter-spacing:1px;margin:23px 15px 11px}.sidebar-note{margin-top:auto;padding:45px 12px 25px;color:var(--muted)}.sidebar-note>span{color:#a7a7a7;font:32px Georgia,serif}.sidebar-note p{font-size:13px;line-height:1.9;margin:8px 0}.sidebar-note small{font-size:10px;letter-spacing:1px;color:var(--muted)}.sidebar-person{padding-top:16px;border-top:1px solid #d3d3d3;display:flex;align-items:center;gap:9px}.avatar{display:inline-flex;width:33px;height:33px;flex-shrink:0;align-items:center;justify-content:center;background:#d9d9d9;color:var(--berry);border-radius:50%;font-size:14px}.sidebar-person>div{min-width:0;flex:1}.sidebar-person strong{display:block;font-size:12px;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-person small{display:block;font-size:10px}.sidebar-person .text-button{font-size:11px}.main{margin-left:210px;min-height:100vh}.topbar{height:65px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 32px;font-size:12px;color:var(--muted);background:#fafafa}.topbar b{font-weight:400;margin:0 15px;color:var(--muted)}.topbar strong{font-size:12px;font-weight:400;color:var(--muted)}.provider-status{font-size:11px;color:var(--green);background:#f0f0f0;border:1px solid #e6e6e6;border-radius:20px;padding:4px 11px;max-width:50%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.provider-status:before{content:'●';font-size:7px;margin-right:7px;vertical-align:2px}.provider-status.unconfigured{color:var(--text-amber);background:#f1f1f1;border-color:#e0e0e0}.demo-banner{background:#dedede;color:var(--text-amber);font-size:13px;font-weight:600;text-align:center;padding:12px}.view{padding:30px 32px 25px;max-width:1600px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.page-heading p:last-child{font-size:13px;color:var(--muted);margin-bottom:0}.page-heading .button{align-self:center}.desk-grid{display:grid;grid-template-columns:225px minmax(0,1fr);gap:22px;align-items:start}.consultation-panel{padding:17px 12px;position:sticky;top:20px}.consultation-panel .panel-top{padding:0 4px;margin-bottom:14px}.consultation-panel h2{font-size:15px}.consultation-panel input[type=search]{min-height:37px;padding:7px 10px;font-size:13px;background:#f7f7f7;margin-bottom:12px}.consultation-panel input::placeholder{font-size:12px}.consultation-list{max-height:calc(100vh - 320px);overflow:auto;margin:0 -3px}.consultation-item{display:block;text-align:left;width:100%;background:none;border:1px solid transparent;border-radius:8px;padding:13px 10px;margin-bottom:5px;color:var(--ink)}.consultation-item:hover{background:#f0f0f0}.consultation-item.selected{background:#e8e8e8;border-color:#d8d8d8}.consultation-item>strong{display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere}.consultation-meta{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:10px;color:var(--muted);margin-top:6px}.status-active{color:var(--text-amber)}.list-foot{font-size:10px;color:var(--muted);margin:12px 4px 0}.new-form{padding:12px 3px 16px;margin-bottom:9px;border-bottom:1px solid var(--line)}.new-form label{font-size:12px;margin-top:0}.new-form small{font-size:10px}.new-form .button-row{gap:8px}.consultation-workspace{min-width:0}.no-selection{min-height:450px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 20px}.no-selection h2{font-size:21px;font-weight:500;margin-top:30px}.no-selection p{font-size:13px;line-height:2;color:var(--muted)}.empty-bubbles{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.empty-bubbles span,.empty-bubbles strong{font-size:13px;padding:11px 20px;border-radius:12px 12px 12px 2px;background:#e6e6e6;color:var(--muted);transform:rotate(-5deg);font-weight:400}.empty-bubbles strong{background:var(--berry);color:#ffffff;border-radius:12px 12px 2px 12px;margin-left:36px;transform:rotate(3deg)}.consultation-title{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:0 3px 17px}.consultation-title h2{font-size:16px;line-height:1.5;margin:0 0 3px;overflow-wrap:anywhere}.consultation-title .muted{font-size:11px}.consultation-title .pill{font-size:11px}.conversation-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.input-panel,.reply-panel,.reminders-panel{padding:22px}.panel-heading{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid #e7e7e7;padding-bottom:18px;margin-bottom:18px}.panel-heading .step{font:18px Georgia,serif;color:var(--muted);background:#ebebeb;border-radius:8px;width:35px;height:37px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.panel-heading h2{font-size:16px;margin:0 0 3px}.panel-heading p{font-size:11px;color:var(--muted);margin:0}.history-details{margin:0 0 18px;border-bottom:1px solid var(--line);padding-bottom:13px}.history-details>summary{font-size:12px;color:var(--muted)}.history-details>summary>span{font-size:10px;color:var(--muted);margin-left:8px}.message-history{max-height:320px;overflow:auto;padding-top:12px}.history-message{border:1px solid #e1e1e1;background:#f7f7f7;border-radius:8px;padding:10px 12px;margin-bottom:10px}.history-message.assistant-message{background:#ededed;border-color:#dfdfdf}.history-meta{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:var(--muted)}.history-meta strong{font-weight:500;color:var(--muted)}.history-text{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.image-history-note{font-size:10px;display:block;margin-top:8px}.input-panel label{font-size:13px}.input-panel textarea{font-size:14px}.field-foot{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;margin-top:6px}.product-details{margin-top:20px}.product-details>summary{font-size:12px;color:var(--muted)}.product-details>summary span{display:block;font-size:10px;color:var(--muted);margin-top:3px}.product-details>summary:after{float:right;margin-top:-30px}.product-details textarea{margin-top:10px}.upload-area{border:1px dashed #c4c4c4;background:#f9f9f9;border-radius:8px;margin-top:20px;padding:11px}.upload-area.dragover{background:#dfdfdf;border-color:var(--berry)}.upload-trigger{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;border:0;background:none;padding:6px;color:var(--muted);text-align:left}.upload-trigger>span{font-size:25px;line-height:1;color:var(--muted)}.upload-trigger strong{display:block;font-size:12px;font-weight:500}.upload-trigger small{font-size:10px;display:block;color:var(--muted);margin-top:3px}.image-previews{display:flex;gap:9px;flex-wrap:wrap}.image-previews:not(:empty){margin-top:10px}.image-preview{position:relative;width:70px;height:70px}.image-preview img{width:100%;height:100%;object-fit:cover;border-radius:5px;border:1px solid #d7d7d7}.remove-image{position:absolute;right:-4px;top:-4px;background:var(--berry);color:white;border:0;width:21px;height:21px;border-radius:50%;font-size:14px;line-height:1}.privacy-note{font-size:10px;line-height:1.8;color:var(--muted);margin:10px 0 0}.submit-row{justify-content:space-between;gap:8px;margin-top:22px}.submit-row>small{font-size:10px;color:var(--muted);display:inline-block;margin:0}.submit-row .button{font-size:13px;padding:9px 14px}.input-panel .small-note{font-size:10px}.response-stack{display:flex;flex-direction:column;gap:18px;min-width:0}.reply-empty{min-height:210px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted);font-size:12px;text-align:center}.reply-empty>span{font:42px Georgia,serif;color:#bebebe}.reply-empty>p{margin:18px 0}.reply-editor>.pill{font-size:10px;margin:0 0 12px;background:#eaeaea}.reply-editor textarea{border-color:#d5d5d5;background:#fbfbfb;font-size:15px;line-height:2;padding:15px;min-height:210px}.reply-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px}.reply-actions small{font-size:10px;color:var(--muted);line-height:1.7}.reply-actions .button{font-size:12px;min-height:37px;padding:7px 14px}.feedback-panel{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.feedback-panel>span{font-size:10px;color:var(--muted);width:100%;margin-bottom:2px}.chip{border:1px solid #dcdcdc;color:var(--muted);background:#f9f9f9;border-radius:18px;padding:5px 12px;font-size:12px;line-height:1.6}.chip:hover{background:#e7e7e7}.chip.active{background:var(--berry);color:#ffffff;border-color:var(--berry)}.feedback-panel .chip{font-size:10px}.feedback-panel form{width:100%;margin-top:7px}.feedback-panel textarea{font-size:12px}.job-wait{padding:25px 8px;display:flex;gap:14px;align-items:flex-start;min-height:185px}.job-wait strong{display:block;font-size:14px;color:var(--berry);font-weight:500}.job-wait p{font-size:12px;line-height:1.9;color:var(--muted);margin:8px 0 0}.spinner{width:21px;height:21px;border:2px solid #e0e0e0;border-top-color:var(--berry);border-radius:50%;animation:spin .9s linear infinite;flex-shrink:0;margin-top:3px}@keyframes spin{to{transform:rotate(360deg)}}.reminders-panel{background:#eeeeee;border-color:#dfdfdf}.reminders-panel h3{font-size:13px;color:var(--text-amber);margin-bottom:5px}.reminders-panel .small-note{font-size:10px;color:var(--text-amber);margin:0 0 10px}.reminders-panel .empty-small{font-size:11px;margin:10px 0;text-align:left;color:var(--text-amber)}.reminders-panel ul{font-size:12px;color:var(--text-amber);line-height:1.85}.reminders-panel .panel-heading{border-bottom-color:#d9d9d9}.reminders-panel .panel-heading h2{font-size:14px}.reminders-panel .panel-heading p{color:var(--text-amber)}.reminders-panel .step{background:#e0e0e0;color:var(--text-amber)}.reminders-panel #missing-section{padding-top:12px;margin-top:12px;border-top:1px solid #d6d6d6}.reminders-panel #missing-section h3{color:var(--text-amber)}.desk-footer{font-size:10px;text-align:center;color:var(--muted);margin:25px 0 0}.toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px}.toolbar input{max-width:560px}.toolbar select{max-width:230px}.toolbar.rule-filters{margin-top:28px;flex-wrap:wrap;gap:9px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.faq-card{padding:0;overflow:hidden}.faq-card summary{padding:18px 21px;display:flex;align-items:center;gap:12px}.faq-card summary:after{margin-left:auto}.faq-card summary strong{font-size:14px;font-weight:550}.faq-id{font-size:10px;color:var(--muted);flex-shrink:0;min-width:29px}.faq-card[open] summary{border-bottom:1px solid #e6e6e6}.faq-body{padding:19px 22px}.faq-answer{background:#e9e9e9;color:var(--text-berry);border-left:3px solid #959595;padding:14px 17px;white-space:pre-wrap;font-size:14px;line-height:1.95;overflow-wrap:anywhere;border-radius:3px}.faq-body .text-button{font-size:12px}.template-panel{padding:23px;position:sticky;bottom:18px;margin-top:24px;background:#fafafa;border-color:#afafaf;box-shadow:0 6px 35px #59595912}.template-panel .panel-top{margin-bottom:15px}.flow-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.flow-card{border:1px solid var(--line);border-radius:9px;padding:18px;background:#fcfcfc;position:relative}.flow-number{font:24px Georgia,serif;color:var(--muted);display:block;margin-bottom:9px}.flow-card h3{font-size:14px}.flow-card p{font-size:12px;line-height:1.9;color:var(--muted);margin-bottom:0;white-space:pre-wrap}.rule-card{padding:21px}.rule-card .panel-top{margin-bottom:12px}.rule-code{font-size:11px;color:var(--muted);letter-spacing:.5px}.rule-card h3{font-size:15px}.rule-card>p{font-size:13px;line-height:1.95;white-space:pre-wrap;color:var(--muted);margin-bottom:0}.rule-card.pending{border-color:#d7d7d7;background:#fbfbfb}.rule-card.event{border-color:#d9d9d9;background:#fbfbfb}.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:25px}.stat-card{padding:20px 24px;background:#fbfbfb;border:1px solid var(--line);border-radius:10px;display:flex;align-items:baseline;gap:15px}.stat-card strong{font:30px Georgia,serif;color:var(--muted)}.stat-card span{font-size:12px;color:var(--muted)}.retention-note{grid-column:1/-1;font-size:11px;color:var(--muted);line-height:1.9;padding:0 4px}.admin-grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(350px,1.2fr);gap:22px;align-items:start}.admin-grid form>.button{margin-top:24px}.admin-grid form>small{font-size:11px}.user-row{display:flex;align-items:center;gap:13px;padding:17px 0;border-bottom:1px solid var(--line)}.user-row:last-child{border-bottom:0}.user-detail{flex:1;min-width:0}.user-detail strong{display:block;font-size:14px;font-weight:500}.user-detail small{display:block;font-size:11px;margin-top:3px;overflow-wrap:anywhere}.user-row .text-button{font-size:12px}.form-split{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-split label{margin-top:0}.section-title{font-size:17px;margin:29px 0 15px}.editable-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.rule-edit-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.rule-edit-top select{width:auto;min-height:33px;padding:5px 9px;font-size:12px}.editable-rule label{font-size:12px}.editable-rule textarea{font-size:13px}.advanced-editor{margin-top:22px}.advanced-editor summary{font-size:14px}.advanced-editor textarea{font:12px/1.8 ui-monospace,SFMono-Regular,Menlo,monospace;margin:14px 0}.publish-bar{position:sticky;bottom:0;z-index:4;display:flex;gap:13px;align-items:center;padding:18px 0;background:#f6f6f6f5;margin-top:5px}.publish-bar>span{font-size:12px;color:var(--muted);margin-right:auto}.revision-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.revision-row:last-child{border-bottom:0}.revision-row strong{font-size:13px;font-weight:500}.revision-row small{font-size:11px}.account-panel{max-width:520px}.account-panel .muted{font-size:13px}.account-panel form>.button{margin-top:23px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:10px;background:#3a3a3aed;color:#ffffff;font-size:13px;box-shadow:0 6px 25px #28282820;z-index:100;max-width:calc(100% - 35px);text-align:center}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.clipboard-helper{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}.account-panel .button,.auth-card .button{margin-bottom:2px}
@media(min-width:1750px){.view{padding-top:40px}.desk-grid{grid-template-columns:250px minmax(0,1fr);gap:26px}.conversation-grid{gap:25px}.input-panel,.reply-panel,.reminders-panel{padding:27px}.sidebar{width:230px;padding-left:25px;padding-right:25px}.main{margin-left:230px}.sidebar>.brand{margin-top:7px;margin-bottom:45px}}
@media(max-width:1399px){.desk-grid{grid-template-columns:1fr}.consultation-panel{position:static;padding:15px 18px;display:grid;grid-template-columns:175px minmax(0,1fr);column-gap:18px}.consultation-panel .panel-top{grid-column:1;grid-row:1;margin-bottom:8px}.consultation-panel input[type=search]{grid-column:1;grid-row:2;margin-bottom:0}.consultation-list{grid-column:2;grid-row:1/4;display:flex;gap:7px;max-height:110px;overflow:auto;padding:1px 3px}.consultation-item{min-width:180px;width:180px;max-width:200px;margin:0;align-self:stretch;padding:13px 12px}.consultation-meta{margin-top:14px;flex-wrap:wrap;font-size:10px}.consultation-panel .list-foot{grid-column:1;margin:7px 0 0}.consultation-panel .empty-small{grid-column:2;grid-row:1/3;align-self:center;margin:0}.consultation-panel .new-form{grid-column:1/-1;grid-row:4;padding:15px 0 0;border:0;margin:0}.new-form form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.new-form label{margin:0;font-size:12px}.new-form input{max-width:300px}.new-form small{display:none}.new-form .button-row{margin:0}.new-form .error{width:100%}.no-selection{min-height:350px}.sidebar-note{padding-top:30px;padding-bottom:20px}}
@media(max-width:1100px){.sidebar{width:180px;padding:25px 13px 17px}.main{margin-left:180px}.sidebar .brand{gap:9px;margin-left:7px;margin-right:0}.brand strong{font-size:19px}.brand small{font-size:9px}.brand-mark{width:36px;height:40px;font-size:23px}.nav{padding:11px 12px;font-size:13px;gap:10px}.sidebar-person{gap:6px}.sidebar-person .avatar{width:28px;height:28px;font-size:12px}.sidebar-person .text-button{font-size:10px}.topbar{padding:0 25px}.view{padding:26px 25px}.page-heading h1{font-size:25px}.input-panel,.reply-panel,.reminders-panel{padding:19px}.conversation-grid{gap:16px}.input-panel label{font-size:12px}.input-panel textarea,.reply-editor textarea{font-size:14px}.submit-row>small{display:none}.submit-row{justify-content:flex-end}.reminders-panel ul{font-size:12px}.admin-grid{grid-template-columns:1fr 1.15fr;gap:17px}.padded{padding:20px}.page-heading p:last-child{font-size:12px}.card-grid{gap:13px}.faq-card summary{padding:16px;gap:8px}.faq-card summary strong{font-size:13px}.faq-body{padding:15px}.faq-answer{font-size:13px;padding:12px 14px}.rule-card{padding:18px}.rule-card p{font-size:12px}.editable-rules{grid-template-columns:1fr}.auth-story{padding:50px 11%}.auth-story h1{font-size:38px}.auth-card{padding:45px 35px}.publish-bar{gap:9px}.publish-bar .button{font-size:12px;padding:9px 12px}.publish-bar>span{font-size:11px}}
@media(max-width:900px){.sidebar{position:static;width:100%;height:auto;padding:18px 22px 12px;display:grid;grid-template-columns:1fr auto;align-items:center;border-right:0;border-bottom:1px solid #d5d5d5}.sidebar>.brand{margin:0}.sidebar-caption,.sidebar-note{display:none}.sidebar-person{grid-column:2;grid-row:1;padding:0;border:0;gap:10px}.sidebar-person strong{font-size:13px}.sidebar-person small{font-size:10px}.sidebar-person .text-button{font-size:12px;margin-left:7px}.sidebar nav{grid-column:1/-1;display:flex;gap:6px;align-items:center;overflow:auto;margin-top:17px}.sidebar nav>.admin-only{display:contents}.nav{width:auto;white-space:nowrap;margin:0;padding:8px 11px;font-size:12px;gap:6px}.nav>span{font-size:14px;width:14px}.nav>small{display:none}.nav-divider{display:none}.main{margin:0}.topbar{height:49px;padding:0 23px}.view{padding:26px 23px}.sidebar .brand strong{font-size:19px}.sidebar .brand small{font-size:9px}.sidebar .brand-mark{width:32px;height:36px;font-size:21px}.global-error{margin:13px 23px}.auth-story h1{font-size:32px}.auth-card{padding:40px 28px}.auth-card h2{font-size:24px}.flow-grid{gap:10px}.flow-card{padding:15px}}
@media(max-width:680px){:root{font-size:14px}.sidebar{padding:15px 16px 12px}.sidebar-person .avatar,.sidebar-person small{display:none}.sidebar-person{gap:8px}.sidebar-person strong{font-size:12px}.sidebar-person .text-button{font-size:11px}.sidebar nav{gap:4px;margin-top:14px}.nav{font-size:12px;padding:8px 10px}.nav>span{display:none}.topbar{padding:0 17px;height:45px;font-size:10px}.topbar strong{font-size:10px}.topbar b{margin:0 8px}.provider-status{font-size:9px;padding:3px 8px;max-width:48%}.view{padding:23px 16px}.page-heading{gap:12px;margin-bottom:20px;align-items:flex-start}.page-heading h1{font-size:23px;letter-spacing:.2px;margin-bottom:8px}.eyebrow{font-size:8px;letter-spacing:1.5px}.page-heading p:last-child{font-size:11px;line-height:1.9}.page-heading .button{font-size:11px;min-height:35px;padding:7px 10px;align-self:flex-start;margin-top:23px}.page-heading>.pill{font-size:9px;max-width:100%;white-space:normal;margin-top:24px}.consultation-panel{grid-template-columns:135px minmax(0,1fr);padding:13px;gap:0 12px}.consultation-panel h2{font-size:13px}.consultation-panel .text-button{font-size:10px}.consultation-panel input[type=search]{font-size:11px;padding:6px 8px;min-height:34px}.consultation-panel input::placeholder{font-size:10px}.consultation-list{max-height:96px}.consultation-item{min-width:150px;width:150px;padding:11px 9px}.consultation-item>strong{font-size:12px}.consultation-meta{font-size:9px;margin-top:12px}.consultation-panel .list-foot{font-size:9px}.new-form input{max-width:none;width:100%;font-size:13px}.desk-grid{gap:18px}.consultation-title{margin-bottom:14px}.consultation-title h2{font-size:15px}.consultation-title .muted{font-size:10px}.consultation-title .pill{font-size:10px}.conversation-grid{grid-template-columns:1fr;gap:17px}.input-panel,.reply-panel,.reminders-panel{padding:20px}.panel-heading h2{font-size:16px}.panel-heading p{font-size:12px}.panel-heading .step{width:36px;height:39px;font-size:20px}.input-panel label{font-size:14px}.input-panel textarea{font-size:15px}.input-panel textarea::placeholder{font-size:13px}.field-foot{font-size:10px}.product-details>summary{font-size:13px}.upload-trigger strong{font-size:13px}.upload-trigger small{font-size:11px}.privacy-note{font-size:11px}.input-panel .small-note{font-size:10px}.submit-row>small{display:inline-block;font-size:10px}.submit-row{justify-content:space-between}.submit-row .button{font-size:13px}.reply-editor textarea{font-size:15px;min-height:180px}.reply-actions .button{font-size:13px}.reply-actions small{font-size:11px}.feedback-panel>span,.feedback-panel .chip{font-size:11px}.reminders-panel ul{font-size:13px}.reminders-panel .small-note{font-size:11px}.card-grid{grid-template-columns:1fr}.toolbar{gap:9px;flex-wrap:wrap}.toolbar input{max-width:none}.toolbar select{max-width:none}.faq-card summary{padding:17px;gap:10px}.faq-card summary strong{font-size:14px}.faq-body{padding:17px}.faq-answer{font-size:14px}.flow-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.flow-card p{font-size:11px}.flow-card h3{font-size:13px}.flow-number{font-size:22px}.rule-card p{font-size:13px}.rule-card h3{font-size:15px}.rule-filters .chip{font-size:11px;padding:5px 10px}.admin-grid{grid-template-columns:1fr}.stats-grid{gap:9px}.stat-card{padding:14px 10px;display:flex;flex-direction:column;align-items:center;gap:3px}.stat-card strong{font-size:26px}.stat-card span{font-size:10px}.retention-note{font-size:10px}.form-split{grid-template-columns:1fr;gap:16px}.padded{padding:20px}.editable-rule label{font-size:13px}.editable-rule textarea{font-size:14px}.publish-bar{flex-wrap:wrap;padding:12px 0;gap:9px}.publish-bar>span{width:100%;margin-bottom:2px}.publish-bar .button{flex:1;font-size:13px}.revision-row small{font-size:10px}.account-panel{max-width:none}.template-panel{padding:17px;bottom:10px}.template-panel textarea{font-size:14px}.auth-screen{grid-template-columns:1fr;min-height:100vh;align-content:start}.auth-story{padding:25px 28px 29px;gap:26px}.auth-story>small{display:none}.auth-story h1{font-size:29px;letter-spacing:2px;margin:7px 0 0;line-height:1.6}.auth-story h1 br{display:none}.auth-story>div:nth-child(2)>p:not(.eyebrow){display:none}.auth-story .eyebrow{font-size:10px;margin:0}.auth-story:after{font-size:240px;right:-10px;bottom:-70px}.auth-card{padding:30px 28px;max-width:460px}.auth-card h2{margin-top:15px;font-size:24px}.auth-card form{margin-top:24px}.auth-card label{font-size:14px}.auth-card .pill{font-size:11px}.global-error{margin:12px 16px}.notice{font-size:12px;padding:12px 14px}.demo-banner{font-size:11px;padding:9px 13px}.toast{bottom:19px;font-size:12px;padding:11px 16px;min-width:180px}.no-selection{min-height:310px;padding:30px 15px}.no-selection h2{font-size:18px}.no-selection p{font-size:12px}.desk-footer{font-size:10px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition:none!important}}

.review-feedback{background:#fbfbfb}.review-feedback>h3{font-size:14px;color:var(--muted)}.review-feedback-row{border-top:1px solid var(--line);padding:13px 0;font-size:12px}.review-feedback-row>strong{font-weight:500;color:var(--berry);font-size:12px}.review-feedback-row>small{display:block;font-size:10px;margin-top:3px}.review-feedback-row>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0 0}.review-feedback-row details{margin-top:12px;color:var(--muted)}.review-feedback-row summary{font-size:11px}.review-feedback-row .history-text{color:var(--muted)}

/* Compact work screens: keep the form and reply close to the page title. */
.view{padding-top:20px}.page-heading{margin-bottom:17px}.page-heading h1{font-size:22px;line-height:1.4;letter-spacing:0;margin-bottom:5px}.page-heading p:last-child{font-size:12px}.page-heading .button{margin-top:0}.topbar{height:54px}.sidebar>.brand{margin-bottom:24px}.sidebar-person{margin-top:auto}.no-selection{min-height:170px;padding:28px 20px}.no-selection h2{font-size:17px;font-weight:500;margin:0 0 8px}.no-selection p{font-size:12px;line-height:1.8;margin:0}.reply-empty{min-height:135px}.reply-empty p{margin:0}.panel-heading{padding-bottom:13px;margin-bottom:14px}.auth-story:after{display:none}.auth-story h1{font-size:30px;letter-spacing:0}.auth-story{gap:30px}#view-assistant>footer{font-size:11px;color:var(--muted);margin-top:18px;text-align:center}.analysis-option{display:inline-flex;align-items:flex-start;gap:8px;margin:0!important;font-size:12px!important;font-weight:400!important;line-height:1.6;cursor:pointer}.analysis-option input{appearance:auto;width:15px;height:15px;min-height:15px;padding:0;margin:3px 0 0;flex-shrink:0;accent-color:var(--berry)}.analysis-option span{color:var(--muted)}.analysis-option small{display:block;font-size:10px;line-height:1.5;color:var(--muted);margin:3px 0 0}.analysis-mode-badge{display:inline-block;border-radius:5px;background:#ebebeb;color:var(--muted);padding:4px 8px;font-size:10px;line-height:1.6;margin:0 0 14px}.submit-row,.practice-submit-row{justify-content:space-between;align-items:center}.submit-row .button,.practice-submit-row .button{flex-shrink:0}@media(max-width:900px){.sidebar>.brand{margin-bottom:0}.sidebar-person{margin-top:0}}@media(max-width:680px){.view{padding-top:18px}.page-heading h1{font-size:21px}.page-heading .button{align-self:center}.topbar{height:46px}.no-selection{min-height:150px;padding:24px 16px}.no-selection h2{font-size:16px}.no-selection p{font-size:11px}.analysis-option{font-size:12px!important}.analysis-option small{font-size:9px}.submit-row,.practice-submit-row{gap:10px}.submit-row .button,.practice-submit-row .button{font-size:12px;padding:9px 12px}.auth-story h1{font-size:25px}}@media(max-width:360px){.analysis-option{width:100%}.submit-row .button,.practice-submit-row .button{margin-left:auto}}

/* Optional context and screenshots stay compact above the submit action. */
.context-details{margin-top:14px}.context-details>summary{font-size:12px;color:var(--muted)}.context-details textarea{margin-top:9px}.input-panel .product-details{margin-top:14px}.input-panel .history-details{margin-bottom:12px;padding-bottom:10px}.input-panel .upload-area{margin-top:14px;padding:0;border:0;background:none}.input-panel .upload-trigger{justify-content:flex-start;gap:8px;width:auto;max-width:100%;padding:7px 10px;border:1px solid #d0d0d0;border-radius:7px;background:#f9f9f9}.input-panel .upload-trigger>span{font-size:19px}.input-panel .upload-trigger strong{font-size:12px;line-height:1.5;font-weight:500}.input-panel .upload-trigger small{font-size:10px;line-height:1.5;margin:0}.input-panel .upload-area.dragover{outline:2px dashed #acacac;outline-offset:5px}.input-panel .privacy-note{margin-top:8px;line-height:1.65}.input-panel .submit-row{margin-top:16px}@media(max-width:680px){.context-details>summary{font-size:13px}.input-panel .upload-trigger strong{font-size:12px}.input-panel .upload-trigger small{font-size:10px}.input-panel .privacy-note{font-size:10px}}

/* Single-entry library editing, for the team owner. */
.faq-card-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.faq-edit-dialog{width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:auto;padding:25px;border:1px solid #bcbcbc;border-radius:14px;background:var(--card);color:var(--ink);box-shadow:0 18px 70px #29292926}.faq-edit-dialog::backdrop{background:#29292966}.faq-edit-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}.faq-edit-header h2{font-size:21px;margin:0}.faq-edit-status{font-size:13px;line-height:1.8;color:var(--muted);margin:0 0 15px}.faq-edit-context{white-space:pre-wrap;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:13px;line-height:1.8;color:var(--muted)}.faq-edit-dialog textarea{font-size:15px;line-height:1.85}.faq-edit-dialog label{color:var(--ink)}.faq-edit-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.faq-edit-preview-card{min-width:0;border:1px solid var(--line);border-radius:9px;padding:17px;background:var(--paper)}.faq-edit-preview-card:last-child{background:#efefef;border-color:#c0c0c0}.faq-edit-preview-card h4{font-size:14px;color:var(--text-berry);margin:0 0 12px}.faq-edit-preview-question{font-size:15px;font-weight:600;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.faq-edit-preview-answer{font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink);margin-bottom:0}.faq-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:22px}.faq-edit-discard{margin-top:20px;padding:16px;border:1px solid #c9c9c9;border-radius:8px;background:#f2f2f2;color:var(--text-amber)}.faq-edit-discard p{margin:0 0 12px}.faq-edit-dialog .error{margin-top:15px}@media(max-width:680px){.faq-edit-dialog{padding:20px 17px;max-height:calc(100dvh - 24px);width:calc(100vw - 20px)}.faq-edit-preview-grid{grid-template-columns:1fr;gap:12px}.faq-edit-actions{gap:10px}.faq-edit-actions .button{white-space:normal}.faq-edit-header h2{font-size:19px}}

/* A small, named conversation for occasional sales help. */
.chat-desk{grid-template-columns:225px minmax(0,1fr);gap:22px}.chat-workspace{max-width:1000px;width:100%;justify-self:center}.chat-thread{height:clamp(260px,calc(100dvh - 410px),680px);overflow:auto;padding:22px;scroll-behavior:smooth}.chat-thread .message-history{max-height:none;overflow:visible;padding:0;display:flex;flex-direction:column;gap:18px}.chat-thread .chat-message{margin:0;padding:15px 17px;max-width:94%;border:1px solid var(--line);border-radius:10px;background:#fdfdfd;box-shadow:none}.chat-thread .sales-chat-message{align-self:flex-end;max-width:86%;background:#e7e7e7;border-color:#cecece}.chat-thread .ai-chat-message{align-self:flex-start;width:94%;background:#f6f6f6}.chat-thread .history-meta{font-size:11px;margin-bottom:9px}.chat-thread .history-meta strong{color:var(--ink);font-weight:600}.chat-thread .history-text{font-size:14px;line-height:1.85;margin:6px 0 0;color:var(--ink)}.chat-customer-reply{margin-top:12px;padding:13px 15px;background:#fdfdfd;border:1px solid #c9c9c9;border-left:3px solid var(--berry);border-radius:8px}.chat-customer-reply .history-text{margin:6px 0 12px}.chat-customer-reply h3,.chat-customer-reply h4,.chat-customer-reply>strong{font-size:12px;color:var(--text-berry);font-weight:600;margin:0 0 8px}.chat-internal-note{font-size:13px;line-height:1.85;color:var(--ink);margin-top:12px;overflow-wrap:anywhere}.chat-internal-note h3,.chat-internal-note h4,.chat-internal-note>strong{font-size:12px;color:var(--muted);font-weight:550;margin:0 0 6px}.chat-internal-note p{white-space:pre-wrap;margin:4px 0 8px}.chat-internal-note li+li{margin-top:7px}.chat-message .image-history-note{font-size:11px;color:var(--muted);display:block;margin-top:10px}.chat-composer{border:1px solid #c8c8c8;border-radius:11px;background:#fdfdfd;padding:14px 16px;margin-top:14px}.chat-composer>label:first-child{font-size:13px;margin:0 0 8px}.chat-composer textarea{font-size:15px;min-height:100px;line-height:1.8;background:#fdfdfd}.chat-composer .submit-row{margin-top:10px;gap:12px}.chat-composer .upload-area{margin-top:10px;border:0;padding:0;background:none}.chat-composer .upload-trigger{padding:4px 0;min-height:30px;border:0;background:none;display:inline-flex;width:auto;gap:7px;color:var(--text-berry)}.chat-composer .upload-trigger>span{font-size:19px}.chat-composer .upload-trigger strong{font-size:12px;font-weight:500}.chat-composer .upload-trigger small{font-size:11px}.chat-composer .privacy-note{font-size:11px;line-height:1.7;margin:7px 0 0;color:var(--muted)}.chat-composer .field-foot{font-size:11px}.chat-workspace .job-wait{padding:14px 2px}.chat-workspace .consultation-title{margin-bottom:12px}.chat-thread .empty-small{font-size:14px;line-height:1.9;padding:30px 10px;color:var(--muted)}
@media(max-width:900px){.chat-desk{grid-template-columns:200px minmax(0,1fr);gap:16px}.chat-thread{padding:16px}.chat-thread .ai-chat-message{width:100%;max-width:100%}}@media(max-width:680px){.chat-desk{grid-template-columns:1fr}.chat-thread{height:420px;max-height:65dvh;padding:13px}.chat-thread .chat-message{padding:12px 13px;max-width:100%}.chat-thread .sales-chat-message{max-width:92%}.chat-composer{padding:12px}.chat-composer textarea{font-size:15px}.chat-internal-note{font-size:13px}.chat-thread .history-text{font-size:14px}.chat-customer-reply{padding:11px 12px}}
/* Keep the conversation list vertical and the composer visible at all times. */
.chat-desk>.consultation-panel{display:block;position:sticky;top:20px;padding:17px 14px}.chat-desk .consultation-list{display:block;max-height:calc(100dvh - 380px);overflow:auto;margin:0 -3px;padding:0}.chat-desk .consultation-panel .empty-small{margin:22px 0;font-size:12px}.chat-desk .consultation-panel .panel-top{margin-bottom:14px;padding:0}.chat-desk .consultation-panel input[type=search]{height:38px;min-height:38px;margin-bottom:12px;font-size:13px}.chat-desk .consultation-panel .list-foot{margin:10px 0 0;font-size:10px}.chat-desk .new-form form{display:block}.chat-desk .new-form label{margin-bottom:7px}.chat-desk .new-form input{width:100%;max-width:none}.chat-desk .new-form .button-row{margin-top:12px;gap:7px}.chat-desk .new-form{padding:12px 0 17px;margin-bottom:12px;border-bottom:1px solid var(--line)}.chat-thread{height:calc(100dvh - 240px);min-height:500px;max-height:950px;display:flex;flex-direction:column;overflow:hidden}.chat-thread>.message-history{flex:1;min-height:140px;overflow:auto;padding-right:6px;scroll-behavior:smooth}.chat-thread>.job-wait{flex-shrink:0}.chat-composer{flex-shrink:0;margin-top:18px}.chat-composer textarea{min-height:92px;border:0;padding:3px;box-shadow:none}.chat-composer .privacy-note{font-size:10px}.chat-composer .button-row{justify-content:space-between}.chat-desk .consultation-item{width:100%}
@media(max-width:680px){.chat-desk>.consultation-panel{position:static;padding:13px}.chat-desk .consultation-list{max-height:140px}.chat-thread{height:600px;max-height:85dvh;min-height:460px}.chat-composer{margin-top:12px}.chat-composer textarea{min-height:86px}}
.chat-thread{height:calc(100dvh - 290px);padding:18px}.chat-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 14px;padding:13px 15px}.chat-composer>textarea{grid-column:1/-1}.chat-composer>.upload-area{grid-column:1;grid-row:2;margin:0;align-self:center}.chat-composer>.submit-row{grid-column:2;grid-row:2;margin:0;justify-content:flex-end}.chat-composer>.privacy-note,.chat-composer>.error{grid-column:1/-1;margin:0}.chat-composer #question-count{display:none}.chat-composer .upload-trigger small{display:none}.chat-composer .button{min-height:37px;padding:7px 17px}.chat-composer .image-previews:not(:empty){margin-top:8px}.chat-composer>label.sr-only{position:absolute}.chat-thread .chat-message{flex-shrink:0}@media(max-width:680px){.chat-thread{height:590px;min-height:450px;padding:12px}.chat-composer{padding:10px 12px;gap:7px 10px}}
.faq-conditions{margin:14px 0;font-size:12px;color:var(--muted);line-height:1.8}.faq-conditions>summary{font-size:12px}.faq-conditions ul{padding-left:18px}.faq-conditions li+li{margin-top:5px}

/* Quiet monochrome workspace: readable text, a familiar conversation layout. */
:root{--paper:#fff;--cream:#f7f7f7;--card:#fff;--ink:#202020;--muted:#555;--placeholder:#696969;--text-berry:#242424;--text-green:#303030;--text-amber:#373737;--text-risk:#292929;--text-purple:#373737;--berry:#202020;--berry-dark:#000;--rose:#ededed;--line:#dedede;--green:#404040;--warning:#373737;--shadow:none;background:#fff;color:#202020}
body{background:#fff}.sidebar{width:180px;background:#f7f7f7;border-color:#e5e5e5;padding:24px 13px 18px}.sidebar>.brand{margin:0 10px 25px}.brand strong{font-size:19px;letter-spacing:0}.brand small{font-size:10px}.brand-mark{background:#202020;border-radius:9px;font-family:inherit;font-size:23px}.sidebar-caption{display:none}.nav{font-size:13px;padding:10px 12px;gap:9px;color:#383838;border-radius:7px}.nav>span{font-size:17px;color:#494949}.nav.active{background:#e8e8e8;color:#171717}.nav.active>span,.nav.active>small{color:#171717}.nav:not(.active):hover{background:#eee}.nav-divider{color:#626262;margin:20px 12px 8px}.main{margin-left:180px}.topbar{background:#fff;border-color:#e9e9e9;height:48px}.panel{box-shadow:none;border-color:#e0e0e0}.button{border-radius:7px}.button.primary{background:#202020;color:#fff}.button.primary:hover:not(:disabled){background:#000}.button.light{color:#262626;background:#fff;border-color:#d4d4d4}.button.light:hover:not(:disabled){background:#f3f3f3}.pill{background:#eee;color:#333}.provider-status{background:#f5f5f5;border-color:#e2e2e2;color:#484848}.provider-status.unconfigured{background:#f2f2f2;color:#4c4c4c;border-color:#ddd}.page-heading h1{font-size:21px;letter-spacing:0;font-weight:600}.page-heading p:last-child{color:#555}.auth-story{background:#f7f7f7}.auth-story h1{font-weight:550}.avatar{background:#e9e9e9;color:#333}.sidebar-person{border-color:#dedede}.text-button{color:#333}.text-button:hover{color:#000}.notice{background:#f5f5f5;border-color:#ddd;color:#424242}.notice.warning{background:#f2f2f2;border-color:#cecece;color:#333}.global-error{background:#f2f2f2;border-color:#aaa;color:#202020}input,textarea,select{background:#fff;border-color:#d4d4d4;color:#202020}input:focus,textarea:focus,select:focus{border-color:#777;box-shadow:0 0 0 2px #0000000a}button:focus-visible,a:focus-visible,summary:focus-visible{outline-color:#666}.chat-desk,.practice-desk{grid-template-columns:200px minmax(0,1fr);gap:24px}.chat-desk>.consultation-panel,.practice-history{border:0;background:#fafafa;padding:16px 12px;border-radius:8px}.chat-desk .consultation-panel input[type=search],.practice-history input[type=search]{background:#fff}.consultation-item.selected,.practice-list-item.selected{background:#eaeaea;border-color:#dedede}.consultation-item:hover,.practice-list-item:hover{background:#eee}.chat-thread{border:0;background:#fff;padding:10px 0 0;height:calc(100dvh - 275px);min-height:480px}.chat-thread .chat-message{border:0;border-radius:14px;padding:13px 16px;box-shadow:none}.chat-thread .sales-chat-message{background:#f0f0f0;max-width:85%}.chat-thread .ai-chat-message{background:#fff;width:100%;max-width:100%;padding:12px 0}.chat-thread .history-meta{font-size:11px;color:#626262}.chat-thread .history-text{font-size:15px;color:#202020;line-height:1.9}.chat-customer-reply{background:#f7f7f7;border:1px solid #e3e3e3;border-left:1px solid #e3e3e3;border-radius:9px;padding:15px 17px}.chat-customer-reply h3,.chat-customer-reply h4,.chat-customer-reply>strong{color:#444}.chat-customer-reply .text-button{color:#333;font-size:12px}.chat-internal-note{font-size:14px;color:#292929}.chat-internal-note>strong{color:#555}.chat-composer{background:#fff;border:1px solid #c9c9c9;border-radius:13px;box-shadow:0 2px 8px #00000005;padding:13px 15px}.chat-composer textarea{background:#fff}.chat-composer .upload-trigger{color:#424242}.chat-composer .button{border-radius:8px}.faq-card{border-radius:8px}.faq-id{background:#eee;color:#555}.faq-answer{color:#202020}.faq-edit-dialog{background:#fff;border-color:#c8c8c8;box-shadow:0 14px 60px #00000024}.faq-edit-dialog::backdrop{background:#00000055}.faq-edit-preview-card{background:#f7f7f7;border-color:#ddd}.faq-edit-preview-card:last-child{background:#fff;border-color:#777}.faq-edit-discard{background:#f1f1f1;border-color:#aaa;color:#333}.demo-banner{background:#eee;color:#333}.practice-facts{background:#f7f7f7;border-color:#e2e2e2}.practice-current{background:#fff;border-color:#ddd}.practice-customer{background:#f1f1f1;color:#202020}.practice-round-dot{background:#e9e9e9;color:#333}.practice-turn>summary.practice-turn-heading{background:#f5f5f5;border-color:#ddd}.practice-chat,.practice-chat.learner-chat{background:#f5f5f5;border-color:#dedede}.practice-summary{background:#fff;border-color:#ddd}.learning-process{background:#f5f5f5;border-color:#ddd}
@media(max-width:900px){.sidebar{width:auto;padding:13px 18px}.main{margin-left:0}.sidebar>.brand{margin:0}.sidebar-caption{display:none}.chat-desk,.practice-desk{grid-template-columns:180px minmax(0,1fr);gap:18px}.chat-thread{min-height:440px}}
@media(max-width:680px){.sidebar{padding:12px 15px}.brand strong{font-size:18px}.nav{font-size:12px;padding:9px}.topbar{height:44px}.chat-desk,.practice-desk{grid-template-columns:1fr;gap:15px}.chat-thread{height:560px;max-height:83dvh;min-height:420px}.chat-thread .history-text{font-size:14px}.chat-internal-note{font-size:13px}.chat-desk>.consultation-panel,.practice-history{padding:12px}.page-heading h1{font-size:20px}}
/* Compact conversation titles, like a chat sidebar. */
.chat-desk .consultation-item{display:block;min-height:34px;width:100%;padding:7px 9px;margin:2px 0;border:0;border-radius:6px;text-align:left}.chat-desk .consultation-item>strong{display:block;font-size:13px;line-height:1.5;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-desk .consultation-meta{display:none}.chat-desk .consultation-item.selected{background:#e9e9e9;border:0}.chat-desk .consultation-item.selected>strong{font-weight:550}.chat-desk .consultation-item:hover{background:#ededed}.chat-desk>.consultation-panel{padding:14px 10px}.chat-desk .consultation-panel .panel-top{margin-bottom:10px}.chat-desk .consultation-panel h2{font-size:13px;font-weight:550}.chat-desk .consultation-panel input[type=search]{height:34px;min-height:34px;font-size:12px;margin-bottom:9px}.chat-desk .consultation-panel .list-foot{font-size:10px;margin-top:9px}.chat-desk .consultation-list{margin:0}

/* A quiet, unified conversation workspace. */
:root{--ink:#202123;--muted:#595959;--placeholder:#686868;--line:#e6e6e6;--cream:#f7f7f7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;letter-spacing:0;-webkit-font-smoothing:antialiased}
#app-shell{--sidebar-width:244px;min-height:100dvh}
.ui-icon{width:20px;height:20px;flex:none;display:block;pointer-events:none}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:7px;border:0;border-radius:8px;background:transparent;color:#565656;flex:none}
.icon-button:hover{background:#eaeaea;color:#202123}
button,a,input,textarea,select,summary{outline-offset:3px}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #666}
#app-shell .sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;padding:18px 12px 12px;display:flex;flex-direction:column;gap:0;border:0;background:#f7f7f7;z-index:40;transition:transform .18s ease;overflow:hidden}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;margin:0 4px 20px;flex:none;gap:12px}
#app-shell .sidebar .brand{margin:0;display:flex;align-items:center;gap:9px}
#app-shell .sidebar .brand-mark{width:30px;height:30px;border-radius:9px;font-size:18px;font-weight:600;background:#262626}
#app-shell .sidebar .brand strong{font-size:16px;font-weight:600;letter-spacing:-.3px}
.new-chat-button{display:flex;gap:10px;align-items:center;border:0;background:transparent;border-radius:8px;color:#242424;font-size:14px;font-weight:500;padding:10px 12px;margin:0 0 16px;min-height:40px;width:100%;flex:none}
.new-chat-button:hover{background:#eaeaea}
#app-shell .consultation-panel{flex:1;min-height:100px;display:flex;flex-direction:column;padding:0;border:0;background:none;position:static;overflow:hidden;margin:0 0 18px}
.consultation-panel .panel-top{padding:0 12px;margin:0 0 8px;display:flex;align-items:center;justify-content:space-between}
.consultation-panel .panel-top h2{font-size:11px;line-height:20px;font-weight:500;letter-spacing:.3px;color:#626262;margin:0}
.consultation-panel .panel-top .text-button{font-size:11px;color:#626262;padding:2px 0}
#consultation-search{border:0;box-shadow:none;background:#ededed;border-radius:7px;height:33px;min-height:33px;font-size:12px;margin:0 6px 10px;width:calc(100% - 12px);padding:7px 10px}
#consultation-search:focus{box-shadow:inset 0 0 0 1px #a6a6a6}
#consultation-list{display:block;flex:1;min-height:0;max-height:none;overflow:auto;margin:0;padding:0;scrollbar-width:thin;scrollbar-color:#cfcfcf transparent}
#consultation-list .consultation-item{width:100%;display:block;border:0;border-radius:7px;min-height:35px;margin:1px 0;padding:8px 12px;text-align:left;background:transparent;box-shadow:none}
#consultation-list .consultation-item>strong{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:13px;font-weight:400;line-height:1.5;color:#323232}
#consultation-list .consultation-item:hover{background:#ececec}
#consultation-list .consultation-item.selected{background:#e8e8e8}
#consultation-list .consultation-item.selected>strong{color:#171717;font-weight:500}
#consultation-list .consultation-meta{display:none}
#consultation-count{margin:8px 12px 0;font-size:10px;line-height:1.5;color:#626262}
#consultation-empty{font-size:12px;line-height:1.8;padding:4px 12px;margin:10px 0;color:#626262}
#app-shell .sidebar nav{display:block;width:100%;margin:0;flex:none;border:0;padding:0}
#app-shell .sidebar .nav{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:10px;padding:8px 12px;margin:2px 0;border-radius:8px;font-size:13px;min-height:36px;line-height:20px;font-weight:400;color:#363636}
#app-shell .sidebar .nav .ui-icon{width:18px;height:18px;color:#505050}
#app-shell .sidebar .nav-label{font:inherit;display:flex;align-items:center;gap:8px;color:inherit;flex:1}
#app-shell .sidebar .nav small{margin-left:auto;font-size:10px;color:#626262;background:none}
#app-shell .sidebar .nav.active{background:#e8e8e8;color:#171717;font-weight:500}
#app-shell .sidebar .nav:hover{background:#ececec}
#app-shell .sidebar .admin-nav{border-top:1px solid #e5e5e5;margin:10px 0 0;padding:7px 0 0}
#app-shell .sidebar-person{padding:11px 3px 0;margin:10px 0 0;border-top:1px solid #e5e5e5;display:flex;align-items:center;justify-content:space-between;gap:5px;flex:none}
.profile-button{display:flex;align-items:center;gap:9px;min-width:0;border:0;background:none;border-radius:8px;padding:5px;color:#303030;text-align:left;flex:1}
.profile-button:hover{background:#ebebeb}
.profile-info{display:flex;flex-direction:column;min-width:0;gap:1px}
#app-shell .profile-info strong{font-size:12px;font-weight:500;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:133px}
#app-shell .profile-info small{font-size:10px;line-height:1.5;color:#626262}
#app-shell .sidebar-person .avatar{width:29px;height:29px;min-width:29px;font-size:13px;background:#e2e2e2;color:#444}
#app-shell #logout{font-size:11px;padding:5px;color:#5c5c5c}
#app-shell .main{margin-left:var(--sidebar-width);height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden;transition:margin-left .18s ease;background:#fff}
#app-shell.sidebar-collapsed .sidebar{transform:translateX(-100%)}
#app-shell.sidebar-collapsed .main{margin-left:0}
#app-shell .topbar{height:58px;min-height:58px;flex:none;padding:0 26px;border:0;background:#fff;font-size:14px;display:flex;justify-content:space-between;gap:15px;align-items:center}
.topbar-left{display:flex;gap:12px;min-width:0;align-items:center}
#view-name{font-size:14px;line-height:1.5;font-weight:500;color:#4a4a4a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app-shell:not(.sidebar-collapsed) #sidebar-toggle{display:none}
.topbar-actions{display:flex;align-items:center;gap:18px;flex:none}
#app-shell .provider-status{padding:0;border:0;background:transparent;font-size:11px;font-weight:400;color:#666;white-space:nowrap}
#app-shell .provider-status:before{display:none}
#consultation-to-learning{font-size:11px;font-weight:400;color:#595959;padding:5px 0;white-space:nowrap}
#app-shell .view{padding:32px 40px 40px;width:100%;max-width:1200px;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
#app-shell .page-heading{margin-bottom:30px;align-items:center}
#app-shell .page-heading h1{font-size:25px;line-height:1.45;font-weight:600;letter-spacing:-.5px;margin-bottom:8px}
#app-shell .page-heading p{font-size:13px;line-height:1.8;color:#595959;margin:0}
#app-shell .button{min-height:38px;border-radius:9px;font-size:13px;font-weight:500;padding:8px 16px;line-height:1.5;box-shadow:none;transform:none}
#app-shell .button.primary{background:#242424;border-color:#242424;color:#fff}
#app-shell .button.primary:hover:not(:disabled){background:#080808;border-color:#080808}
#app-shell .button.light{background:#fff;border-color:#dedede;color:#333}
#app-shell .button.light:hover:not(:disabled){background:#f5f5f5}
#app-shell .panel{box-shadow:none;border-color:#e6e6e6;border-radius:12px}
#app-shell .pill{border:0;border-radius:5px;background:#f2f2f2;font-size:11px;color:#505050;padding:3px 8px}
#app-shell input,#app-shell textarea,#app-shell select{border-radius:9px;border-color:#dcdcdc;box-shadow:none;color:#242424}
#app-shell input:focus,#app-shell textarea:focus,#app-shell select:focus{border-color:#909090;box-shadow:0 0 0 2px #00000005}
#app-shell #view-assistant{max-width:none;padding:0;overflow:hidden;display:flex;flex-direction:column;min-height:0}
#view-assistant #model-notice{margin:8px 28px;flex:none}
#app-shell .chat-desk{display:block;min-height:0;flex:1;height:100%;margin:0}
#app-shell .chat-workspace{height:100%;max-width:none;width:100%;margin:0}
#selected-workspace{height:100%;display:flex;flex-direction:column;min-height:0}
#app-shell .consultation-title{margin:0;border:0;padding:0;flex:none;min-height:0}
.consultation-title>div:first-child{min-width:0}
#selected-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
#selected-owner:empty{display:none}
#selected-owner:not(:empty){display:block;font-size:12px;margin:6px 28px;color:#595959}
.consultation-title .learning-source-actions{display:none}
#read-only-notice{margin:6px 28px 8px;font-size:12px;padding:9px 12px;flex:none}
#app-shell .chat-thread{border:0;border-radius:0;height:auto;max-height:none;min-height:0;flex:1;padding:0;margin:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}
#app-shell .chat-thread>.message-history{flex:1;min-height:0;overflow:auto;max-height:none;display:flex;flex-direction:column;gap:30px;padding:30px max(32px,calc((100% - 740px)/2)) 30px;scrollbar-width:thin;scrollbar-color:#d4d4d4 transparent;scroll-behavior:auto;overscroll-behavior:contain}
#app-shell .chat-thread .chat-message{width:100%;max-width:100%;margin:0;padding:0;border:0;box-shadow:none;background:transparent;border-radius:0;flex-shrink:0;overflow-wrap:anywhere}
#app-shell .chat-thread .sales-chat-message{width:fit-content;max-width:86%;align-self:flex-end;border-radius:18px;background:#f3f3f3;padding:13px 19px;color:#222}
#app-shell .sales-chat-message .history-meta{display:none}
#app-shell .chat-thread .ai-chat-message{align-self:flex-start;padding:0;background:none}
#app-shell .chat-thread .history-meta{margin:0 0 12px;align-items:center;font-size:11px;line-height:1.5;gap:15px;justify-content:flex-start;color:#666}
#app-shell .chat-thread .history-meta strong{font-size:12px;font-weight:600;color:#333}
#app-shell .chat-thread .history-meta time{font-size:10px;color:#707070}
#app-shell .chat-thread .history-text{font-size:15px;font-weight:400;line-height:1.85;color:#242424;white-space:pre-wrap;word-break:normal;overflow-wrap:anywhere;margin:0}
#app-shell .chat-customer-reply{padding:0;margin:0;border:0;border-radius:0;background:none}
#app-shell .chat-customer-reply>strong{display:block;margin:0 0 8px;color:#555;font-size:12px;font-weight:400}
#app-shell .chat-customer-reply .history-text{margin:0 0 12px}
#app-shell .copy-message{border:1px solid #e5e5e5;border-radius:7px;background:#fff;padding:5px 10px;font-size:11px;min-height:29px;color:#505050;line-height:1.5}
#app-shell .copy-message:hover{background:#f5f5f5;border-color:#d7d7d7}
#app-shell .chat-internal-note{margin:21px 0 0;padding:0;font-size:13px;line-height:1.85;color:#474747}
#app-shell .chat-internal-note>strong{display:block;margin:0 0 7px;font-size:12px;color:#555;font-weight:500}
#app-shell .chat-internal-note ul{margin:0;padding-left:18px}
#app-shell .chat-internal-note li{padding-left:2px}
#app-shell .chat-internal-note li+li{margin-top:5px}
#app-shell .image-history-note{font-size:11px;color:#666;line-height:1.7}
#app-shell .chat-composer{position:relative;flex:none;width:calc(100% - 64px);max-width:780px;align-self:center;margin:8px auto 38px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:8px;padding:15px 18px 12px;border:1px solid #dedede;border-radius:20px;background:#fff;box-shadow:0 3px 16px #00000006}
#app-shell .chat-composer:focus-within{border-color:#c4c4c4;box-shadow:0 3px 16px #00000008}
#app-shell .chat-composer textarea{grid-column:1/-1;min-height:44px;max-height:180px;height:44px;resize:none;border:0!important;border-radius:0;box-shadow:none!important;padding:0;font-size:15px;line-height:1.75;background:transparent;overflow:auto}
#app-shell .chat-composer textarea::placeholder{color:#6a6a6a;opacity:1}
#app-shell .chat-composer>.upload-area{grid-column:1;grid-row:2;margin:0;border:0;padding:0;background:transparent;align-self:center;min-width:0}
#app-shell .chat-composer .upload-trigger{padding:5px 2px;margin:0;min-height:30px;width:auto;display:flex;align-items:center;gap:6px;color:#555;font-size:12px;border:0;background:none}
#app-shell .chat-composer .upload-trigger .ui-icon{width:20px;height:20px}
#app-shell .chat-composer .upload-trigger strong{font-size:11px;font-weight:400}
#app-shell .chat-composer>.submit-row{grid-column:2;grid-row:2;margin:0;display:flex;align-items:center}
#app-shell #generate{width:34px;height:34px;min-height:34px;padding:7px;border-radius:50%;font-size:0;transition:background .15s}
#generate .ui-icon{width:20px;height:20px}
#generate.is-busy .ui-icon{opacity:.4}
#app-shell .chat-composer>.privacy-note{position:absolute;left:0;right:0;bottom:-27px;grid-column:auto;margin:0;padding:0;text-align:center;font-size:10px;line-height:1.5;color:#686868;white-space:nowrap}
#app-shell .chat-composer>.error{grid-column:1/-1;margin:0;font-size:12px;line-height:1.7}
#app-shell .chat-composer .image-previews:not(:empty){margin-top:6px;max-width:100%;flex-wrap:wrap}
#app-shell .chat-composer .image-preview{width:52px;height:52px}
#app-shell .chat-workspace .job-wait{max-width:780px;width:calc(100% - 64px);margin:0 auto;padding:8px 0 12px;min-height:0;border:0;flex:none}
#app-shell .job-wait strong{font-size:12px;font-weight:500}
#app-shell .job-wait p{font-size:11px;margin:3px 0 0;color:#666}
#app-shell .job-wait .spinner{width:15px;height:15px}
#app-shell .no-selection{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;background:none;text-align:center;padding:32px 24px 90px;box-shadow:none;min-height:0}
.welcome-mark{width:46px;height:46px;display:flex;align-items:center;justify-content:center;font-size:25px;border-radius:14px;background:#262626;color:white;margin-bottom:25px;font-weight:500}
#app-shell .no-selection h2{font-size:25px;line-height:1.5;font-weight:550;letter-spacing:-.6px;margin:0 0 13px;color:#272727}
#app-shell .no-selection p{font-size:14px;line-height:1.9;color:#626262;margin-bottom:25px}
#app-shell .no-selection small{font-size:11px;margin-top:14px;color:#686868}
.conversation-welcome{flex:1;min-height:160px;display:flex;align-items:center;justify-content:center;text-align:center;flex-direction:column;padding:40px 0 70px}
.conversation-welcome h2{font-size:25px;font-weight:500;letter-spacing:-.5px;margin:0 0 12px;color:#262626}
.conversation-welcome p{font-size:13px;color:#626262;line-height:1.8;margin:0}
.new-chat-dialog{width:min(430px,calc(100vw - 40px));padding:30px;border:1px solid #dedede;border-radius:18px;background:#fff;color:#242424;box-shadow:0 20px 90px #00000026;max-height:calc(100dvh - 40px);overflow:auto}
.new-chat-dialog::backdrop{background:#00000035;backdrop-filter:blur(2px)}
.new-chat-dialog h2{font-size:20px;font-weight:550;margin:0 0 10px;line-height:1.5}
.new-chat-dialog p{font-size:13px;color:#606060;line-height:1.8;margin-bottom:24px}
.new-chat-dialog label{font-size:12px;margin:0 0 8px;font-weight:500;color:#454545}
.new-chat-dialog input{min-height:44px;font-size:14px;padding:10px 12px;border:1px solid #ccc}
.new-chat-dialog small{font-size:11px;display:block;margin-top:8px;color:#666}
.new-chat-dialog .button-row{display:flex;justify-content:flex-end;gap:9px;margin-top:26px}
.new-chat-dialog .error{color:#333;margin:12px 0 0;font-size:12px}
#sidebar-scrim{position:fixed;inset:0;z-index:35;background:#00000032;border:0;border-radius:0;padding:0}
#app-shell .demo-banner{font-size:11px;padding:5px 20px;text-align:center;flex:none;margin:0;background:#f1f1f1;color:#4a4a4a}
#app-shell .global-error{flex:none;margin:0 20px;padding:8px 12px;font-size:12px}
@media(min-width:1600px){#app-shell{--sidebar-width:260px}#app-shell .chat-thread .history-text{font-size:16px}}
@media(max-width:1000px){#app-shell{--sidebar-width:220px}#app-shell .view{padding:26px}#app-shell .topbar{padding:0 23px}.topbar-actions{gap:12px}#app-shell .provider-status{font-size:10px}}
@media(max-width:760px){
 #app-shell{--sidebar-width:260px}#app-shell .sidebar{width:260px;height:100dvh;padding:18px 12px 12px;display:flex;position:fixed;inset:0 auto 0 0;border:0}
 #app-shell .main,#app-shell.sidebar-collapsed .main{margin-left:0;height:100dvh}
 #app-shell .topbar{min-height:54px;height:54px;padding:0 14px;gap:8px}
 #app-shell:not(.sidebar-collapsed) #sidebar-toggle{display:inline-flex}
 #app-shell .topbar-left{gap:9px;min-width:0;flex:1}
 #view-name{font-size:13px}
 #app-shell .topbar-actions{gap:10px}
 #app-shell[data-view=assistant] .provider-status{display:none}
 #consultation-to-learning{font-size:10px}
 #app-shell .view{padding:24px 18px 32px;max-width:none}
 #app-shell .page-heading{gap:16px;margin-bottom:24px}
 #app-shell .page-heading h1{font-size:23px}
 #app-shell .page-heading p{font-size:12px}
 #app-shell .page-heading .button{margin:0;font-size:12px;align-self:center}
 #app-shell #view-assistant{padding:0}
 #app-shell .chat-thread>.message-history{padding:25px 20px 24px;gap:26px}
 #app-shell .chat-thread .history-text{font-size:15px;line-height:1.8}
 #app-shell .chat-thread .sales-chat-message{max-width:92%;padding:11px 15px}
 #app-shell .chat-composer{width:calc(100% - 28px);padding:13px 14px 10px;border-radius:18px;margin-bottom:35px}
 #app-shell .chat-composer textarea{font-size:16px;min-height:42px}
 #app-shell .chat-composer>.privacy-note{font-size:9px;bottom:-24px}
 #app-shell .no-selection h2,.conversation-welcome h2{font-size:23px}
 #app-shell .no-selection p{font-size:13px}
 #app-shell .chat-workspace .job-wait{width:calc(100% - 40px)}
 #selected-owner:not(:empty),#read-only-notice{margin-left:20px;margin-right:20px}
}
@media(prefers-reduced-motion:reduce){#app-shell .sidebar,#app-shell .main{transition:none}}

/* Secondary workspaces only. Append after the existing page styles.
   DOM checked against index.html plus the app/practice/learning renderers.
   No shell, sidebar, main, or live-assistant selectors are changed here. */

:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) {
  --ink: #202020;
  --muted: #606060;
  --line: #e8e8e8;
  --card: #fff;
  --paper: #fafafa;
  --text-berry: #303030;
  --text-green: #303030;
  --text-amber: #303030;
  --text-risk: #303030;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 32px 32px 40px;
  color: #202020;
  font-size: 14px;
  line-height: 1.7;
}

:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading {
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading h1 {
  margin: 0 0 6px;
  color: #202020;
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.3px;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading p:last-child {
  margin: 0;
  color: #606060;
  font-size: 14px;
  line-height: 1.7;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(h2,h3,h4) {
  color: #262626;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .panel {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: none;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .padded { padding: 24px; }
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(p,li) {
  color: #303030;
  overflow-wrap: anywhere;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(.small-note,.empty-small,.muted,.list-foot,.optional,.field-foot,small) {
  color: #606060;
  font-size: 13px;
  line-height: 1.7;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) label {
  color: #303030;
  font-size: 14px;
  font-weight: 500;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(input:not([type=checkbox]),textarea,select) {
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  color: #202020;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.7;
  padding: 10px 12px;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(input,textarea)::placeholder {
  color: #777;
  font-size: 14px;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) :is(input,textarea,select):focus {
  border-color: #777;
  outline: 2px solid #e3e3e3;
  outline-offset: 2px;
  box-shadow: none;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .button {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: none;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .button.primary {
  background: #202020;
  border-color: #202020;
  color: #fff;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .button.primary:hover:not(:disabled) { background: #383838; border-color: #383838; }
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .button.light {
  background: #fff;
  border-color: #dedede;
  color: #303030;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .button.light:hover:not(:disabled) { background: #f7f7f7; }
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .text-button {
  color: #4b4b4b;
  font-size: 14px;
  line-height: 1.6;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .pill {
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  background: #fafafa;
  color: #555;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .notice {
  padding: 14px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}
:is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .error { color: #303030; font-size: 14px; font-weight: 500; }
:is(#view-practice,#view-learning) .no-selection { padding: 64px 24px; border: 0; background: #fff; }
:is(#view-practice,#view-learning) .no-selection h2 { font-size: 18px; font-weight: 500; }
:is(#view-practice,#view-learning) .no-selection p { color: #606060; font-size: 14px; line-height: 1.9; }

/* Practice: one clear customer message and composer, optional detail beneath. */
#view-practice .practice-top-note { margin: -12px 0 24px; }
#view-practice .practice-top-note p { color: #606060; font-size: 13px; }
#view-practice .practice-desk { grid-template-columns: 216px minmax(0,1fr); gap: 32px; }
#view-practice .practice-history {
  display: block;
  position: sticky;
  top: 24px;
  padding: 4px 20px 8px 0;
  border: 0;
  border-right: 1px solid #e8e8e8;
  border-radius: 0;
}
#view-practice .practice-history .panel-top { padding: 0; margin-bottom: 16px; }
#view-practice .practice-history h2 { font-size: 15px; }
#view-practice .practice-history input[type=search] { height: 40px; margin-bottom: 14px; font-size: 14px; }
#view-practice .practice-history input::placeholder { font-size: 14px; }
#view-practice .practice-list { display: block; margin: 0; max-height: calc(100dvh - 340px); padding: 0; }
#view-practice .practice-list-item { width: 100%; min-width: 0; max-width: none; margin: 0 0 4px; padding: 12px; border: 0; border-radius: 8px; }
#view-practice .practice-list-item:hover { background: #f7f7f7; }
#view-practice .practice-list-item.selected { background: #f1f1f1; }
#view-practice .practice-list-item>strong { color: #303030; font-size: 14px; font-weight: 500; line-height: 1.6; }
#view-practice .practice-list-meta { gap: 4px; margin-top: 5px; font-size: 12px; color: #666; }
#view-practice .practice-title { margin: 0 0 18px; align-items: flex-start; }
#view-practice .practice-title h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
#view-practice .practice-title .muted { font-size: 13px; line-height: 1.7; }
#view-practice .practice-facts { padding: 12px 0; margin: 0 0 20px; border: 0; border-bottom: 1px solid #e8e8e8; border-radius: 0; background: #fff; }
#view-practice .practice-facts>summary { color: #606060; font-size: 14px; }
#view-practice .practice-facts[open]>summary { margin-bottom: 20px; }
#view-practice .practice-facts-title { margin-bottom: 16px; }
#view-practice .practice-facts-title>h3 { color: #555; font-size: 14px; font-weight: 400; }
#view-practice .practice-facts-grid { gap: 24px; }
#view-practice .practice-facts-grid>div+div { border-color: #e8e8e8; padding-left: 24px; }
#view-practice .practice-facts-grid h3 { font-size: 14px; margin-bottom: 8px; }
#view-practice .practice-facts-grid ul { color: #444; font-size: 14px; line-height: 1.8; }
#view-practice .practice-current { padding: 0; margin: 24px 0 0; border: 0; border-radius: 0; background: #fff; }
#view-practice .practice-customer-label { gap: 10px; margin-bottom: 12px; }
#view-practice .practice-customer-label strong { color: #555; font-size: 14px; }
#view-practice .practice-customer-label .avatar { width: 28px; height: 28px; border-radius: 50%; background: #f1f1f1; color: #555; }
#view-practice .practice-customer { padding: 16px 18px; margin: 0 0 24px; border-radius: 12px; background: #f7f7f7; color: #202020; font-size: 16px; line-height: 1.9; }
#view-practice .practice-current textarea { min-height: 128px; font-size: 15px; line-height: 1.9; }
#view-practice .practice-current :is(.field-foot,.small-note) { font-size: 13px; }
#view-practice .practice-submit-row { margin-top: 16px; gap: 16px; }
#view-practice .practice-finish-row { padding: 20px 0; gap: 16px; }
#view-practice .practice-finish-row>span { font-size: 13px; color: #666; }
#view-practice .practice-turns { margin-top: 28px; gap: 0; border-top: 1px solid #e8e8e8; }
#view-practice .practice-turn { border-bottom: 1px solid #e8e8e8; }
#view-practice .practice-turn>summary.practice-turn-heading { gap: 10px; padding: 16px 0; margin: 0; border: 0; border-radius: 0; background: #fff; }
#view-practice .practice-turn[open]>summary.practice-turn-heading { margin-bottom: 8px; }
#view-practice .practice-turn-heading h3 { font-size: 14px; font-weight: 500; }
#view-practice .practice-round-dot { width: 24px; height: 24px; background: #f4f4f4; color: #606060; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1; }
#view-practice .practice-turn-toggle { font-size: 13px; color: #666; }
#view-practice .practice-exchange { gap: 16px; margin-bottom: 20px; }
#view-practice .practice-chat { margin: 0; padding: 14px 16px; border: 0; border-radius: 10px; background: #fafafa; }
#view-practice .practice-chat.learner-chat { margin: 0; background: #f3f3f3; border: 0; border-radius: 10px; }
#view-practice .practice-chat-role { color: #666; font-size: 12px; }
#view-practice .practice-chat p { color: #303030; font-size: 15px; line-height: 1.9; }
#view-practice .practice-review { padding: 0 0 24px; border: 0; border-radius: 0; }
#view-practice .practice-review-caption { margin-bottom: 18px; padding-bottom: 12px; border-color: #e8e8e8; font-size: 13px; color: #666; letter-spacing: 0; }
#view-practice .practice-review h4 { color: #303030; font-size: 15px; }
#view-practice .practice-comment blockquote { padding: 10px 14px; border-left: 2px solid #d4d4d4; border-radius: 0; background: #fafafa; color: #303030; font-size: 14px; line-height: 1.9; }
#view-practice .practice-comment blockquote::before { color: #666; font-size: 12px; letter-spacing: 0; }
#view-practice :is(.practice-comment>p,.practice-review-empty,.practice-focus,.practice-rule-risks ul) { color: #444; font-size: 14px; line-height: 1.9; }
#view-practice .practice-omission { font-size: 12px; background: #f5f5f5; color: #555; }
#view-practice .practice-rule-risks { margin: 20px 0; padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fafafa; }
#view-practice .practice-reference>p { padding: 14px 16px; border-left: 2px solid #d4d4d4; border-radius: 0; background: #fafafa; color: #303030; font-size: 15px; line-height: 1.9; }
#view-practice .practice-summary { margin: 24px 0 0; padding: 24px; background: #fff; border-color: #e8e8e8; }
#view-practice .practice-summary-heading { padding-bottom: 18px; margin-bottom: 20px; border-color: #e8e8e8; }
#view-practice .practice-summary-heading h2 { font-size: 18px; margin: 0 0 6px; }
#view-practice .practice-summary-heading p { color: #606060; font-size: 13px; }
#view-practice .practice-summary-overview { color: #303030; font-size: 15px; line-height: 1.9; margin-bottom: 24px; }
#view-practice .practice-summary-section { padding-bottom: 22px; }
#view-practice .practice-summary-section h3 { font-size: 15px; margin-bottom: 10px; }
#view-practice .practice-summary-section ul { color: #444; font-size: 14px; line-height: 1.9; }
#view-practice .practice-summary-risks { padding: 16px; margin-bottom: 22px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 10px; }
#view-practice .practice-summary .small-note { color: #606060; font-size: 13px; }
#view-practice .practice-summary .button { min-height: 40px; font-size: 14px; padding: 9px 16px; }

/* Learning: flat reading sections; form and publication controls stay intact. */
#view-learning .learning-process { gap: 10px; margin-bottom: 12px; color: #666; font-size: 13px; }
#view-learning .learning-process>span { padding: 0; border-radius: 0; background: transparent; }
#view-learning .learning-process>b { color: #999; font-size: 12px; }
#view-learning .learning-note { margin-bottom: 28px; color: #606060; font-size: 13px; line-height: 1.8; }
#view-learning .learning-desk { grid-template-columns: 216px minmax(0,1fr); gap: 32px; }
#view-learning .learning-list-panel { display: block; position: sticky; top: 24px; padding: 4px 20px 8px 0; border: 0; border-right: 1px solid #e8e8e8; border-radius: 0; }
#view-learning .learning-list-panel .panel-top { padding: 0; margin-bottom: 16px; }
#view-learning .learning-list-panel h2 { font-size: 15px; }
#view-learning .learning-list-panel :is(input[type=search],select) { min-height: 40px; margin-bottom: 12px; padding: 8px 10px; font-size: 14px; background: #fff; }
#view-learning .learning-list-panel input::placeholder { font-size: 14px; }
#view-learning .learning-list { margin: 0; max-height: calc(100dvh - 380px); }
#view-learning .learning-list-item { min-width: 0; max-width: none; width: 100%; margin: 0 0 4px; padding: 12px; border: 0; border-radius: 8px; }
#view-learning .learning-list-item:hover { background: #f7f7f7; }
#view-learning .learning-list-item.selected { background: #f1f1f1; }
#view-learning .learning-list-item>strong { color: #303030; font-size: 14px; font-weight: 500; line-height: 1.6; }
#view-learning .learning-list-meta { color: #666; font-size: 12px; line-height: 1.7; }
#view-learning .learning-case-heading { margin: 0 0 20px; align-items: flex-start; }
#view-learning .learning-case-heading h2 { font-size: 18px; }
#view-learning .learning-case-heading p { color: #606060; font-size: 13px; line-height: 1.7; }
#view-learning .learning-create { margin-bottom: 28px; padding: 24px; border-color: #e8e8e8; background: #fff; }
#view-learning .learning-create :is(small,form>small) { color: #606060; font-size: 13px; line-height: 1.8; }
#view-learning .learning-check { font-size: 14px!important; line-height: 1.8!important; font-weight: 400!important; }
#view-learning .learning-check span { color: #444; }
#view-learning .learning-check input { accent-color: #202020; }
#view-learning .learning-material { padding: 16px 0; margin-bottom: 24px; border: 0; border-bottom: 1px solid #e8e8e8; border-radius: 0; }
#view-learning .learning-material>summary { color: #555; font-size: 14px; }
#view-learning .learning-material[open]>summary { padding-bottom: 16px; margin-bottom: 20px; border-color: #e8e8e8; }
#view-learning .learning-message { margin: 0 28px 12px 0; padding: 14px 16px; border: 0; border-radius: 10px; background: #fafafa; }
#view-learning .learning-message.sales { margin: 0 0 12px 28px; border: 0; background: #f3f3f3; }
#view-learning .learning-message>span { color: #666; font-size: 12px; }
#view-learning .learning-message>p { color: #303030; font-size: 15px; line-height: 1.9; }
#view-learning .learning-text-section { margin: 24px 0; }
#view-learning .learning-text-section h3 { color: #303030; font-size: 15px; margin-bottom: 10px; }
#view-learning .learning-text-section>p { color: #444; font-size: 14px; line-height: 1.9; }
#view-learning :is(.learning-analyze,.learning-analysis,.learning-preview,.learning-editor,.learning-publish) { margin-bottom: 24px; background: #fff; border-color: #e8e8e8; }
#view-learning .learning-analyze>p { color: #606060; font-size: 14px; }
#view-learning .learning-review-section { margin-top: 24px; padding-top: 22px; border-color: #e8e8e8; }
#view-learning .learning-review-section>h3 { color: #303030; font-size: 15px; margin-bottom: 14px; }
#view-learning .learning-comment blockquote { margin-bottom: 10px; padding: 10px 14px; border-left: 2px solid #d4d4d4; border-radius: 0; background: #fafafa; color: #303030; font-size: 14px; line-height: 1.9; }
#view-learning .learning-comment :is(p,.learning-suggestion) { color: #444; font-size: 14px; line-height: 1.9; }
#view-learning .learning-omission { color: #555; font-size: 12px; background: #f5f5f5; }
#view-learning .learning-rule-questions { border: 1px solid #e8e8e8; border-radius: 10px; padding: 16px; background: #fafafa; }
#view-learning .learning-rule-questions :is(p,li) { color: #444; font-size: 14px; line-height: 1.9; }
#view-learning .learning-candidate-card { padding: 20px 0; border: 0; border-bottom: 1px solid #e8e8e8; border-radius: 0; background: #fff; }
#view-learning .learning-candidate-card:last-child { border-bottom: 0; padding-bottom: 0; }
#view-learning .learning-candidate-card :is(h3,h4) { color: #303030; font-size: 15px; }
#view-learning .learning-candidate-card li { font-size: 14px; line-height: 1.9; }
#view-learning .learning-editor-actions { gap: 12px; padding-top: 20px; border-color: #e8e8e8; }
#view-learning .learning-editor-actions>span { color: #606060; font-size: 13px; line-height: 1.7; }
#view-learning .learning-audit { border: 0; border-top: 1px solid #e8e8e8; border-radius: 0; padding: 18px 0; }
#view-learning .learning-audit>summary { color: #606060; font-size: 14px; }
#view-learning .learning-audit-row { padding: 16px 0; border-color: #e8e8e8; }
#view-learning .learning-audit-row strong { color: #303030; font-size: 14px; font-weight: 500; }
#view-learning .learning-audit-row :is(small,p) { color: #606060; font-size: 13px; line-height: 1.8; }

/* Reference library and its existing owner editor. */
#view-library .toolbar { gap: 12px; margin-bottom: 14px; }
#view-library .toolbar input { flex: 1; min-width: 0; }
#view-library .toolbar select { flex: 0 0 176px; }
#view-library>.small-note { margin: 0 0 24px; }
#view-library .card-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid #e8e8e8; }
#view-library .faq-card { border: 0; border-bottom: 1px solid #e8e8e8; border-radius: 0; overflow: visible; }
#view-library .faq-card>summary { padding: 18px 0; gap: 14px; }
#view-library .faq-card>summary strong { color: #303030; font-size: 15px; line-height: 1.8; font-weight: 500; }
#view-library .faq-id { min-width: 30px; padding: 2px 6px; border-radius: 5px; background: #f5f5f5; color: #666; font-size: 12px; text-align: center; }
#view-library .faq-card[open]>summary { border-bottom: 0; }
#view-library .faq-body { padding: 0 0 24px 44px; }
#view-library .faq-answer { margin: 0; padding: 14px 18px; border-left: 2px solid #d4d4d4; border-radius: 0; background: #fafafa; color: #202020; font-size: 15px; line-height: 1.9; }
#view-library .faq-conditions { margin: 16px 0; color: #606060; font-size: 14px; line-height: 1.8; }
#view-library .faq-conditions>summary { color: #606060; font-size: 13px; }
#view-library .faq-card-actions { margin-top: 16px; gap: 16px; }
#view-library .faq-body .text-button { font-size: 14px; }
#view-library .learning-faq-provenance { margin: 16px 0; padding: 14px 16px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; color: #555; }
#view-library .learning-faq-provenance :is(strong,li) { color: #555; font-size: 14px; line-height: 1.8; }
#view-library .template-panel { margin-top: 28px; padding: 24px; border-color: #dedede; background: #fff; }

#faq-edit-dialog { width: min(860px,calc(100vw - 40px)); padding: 28px; border: 1px solid #e8e8e8; border-radius: 16px; background: #fff; color: #202020; box-shadow: 0 16px 64px #0000001f; font-size: 14px; line-height: 1.8; }
#faq-edit-dialog::backdrop { background: #00000040; }
#faq-edit-dialog .faq-edit-header { margin-bottom: 20px; }
#faq-edit-dialog .faq-edit-header h2 { color: #202020; font-size: 20px; font-weight: 600; letter-spacing: 0; }
#faq-edit-dialog :is(.small-note,.faq-edit-status,.faq-edit-context) { color: #606060; font-size: 13px; line-height: 1.8; }
#faq-edit-dialog :is(.notice,.faq-edit-discard) { border: 1px solid #e8e8e8; border-radius: 10px; background: #fafafa; color: #444; }
#faq-edit-dialog label { color: #303030; font-size: 14px; font-weight: 500; }
#faq-edit-dialog :is(textarea,input) { border: 1px solid #dedede; border-radius: 9px; background: #fff; color: #202020; font-size: 15px; line-height: 1.8; }
#faq-edit-dialog :is(textarea,input):focus { border-color: #777; outline: 2px solid #e3e3e3; outline-offset: 2px; box-shadow: none; }
#faq-edit-dialog .faq-edit-preview-grid { gap: 20px; margin: 24px 0; }
#faq-edit-dialog .faq-edit-preview-card { padding: 18px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
#faq-edit-dialog .faq-edit-preview-card:last-child { border-color: #bdbdbd; background: #fff; }
#faq-edit-dialog .faq-edit-preview-card h4 { margin-bottom: 16px; color: #606060; font-size: 14px; font-weight: 500; }
#faq-edit-dialog .faq-edit-preview-question { color: #303030; font-size: 15px; font-weight: 600; line-height: 1.8; }
#faq-edit-dialog .faq-edit-preview-answer { color: #303030; font-size: 15px; line-height: 1.9; }
#faq-edit-dialog .faq-edit-actions { gap: 12px; padding-top: 18px; border-top: 1px solid #e8e8e8; }
#faq-edit-dialog .button { min-height: 40px; padding: 9px 16px; border-radius: 9px; font-size: 14px; font-weight: 500; box-shadow: none; }
#faq-edit-dialog .button.primary { background: #202020; border-color: #202020; color: #fff; }
#faq-edit-dialog .button.light { background: #fff; border-color: #dedede; color: #303030; }
#faq-edit-dialog .text-button { color: #555; font-size: 14px; }

/* Rules, team settings, and editable business guidance. */
#view-rules>h2 { margin: 0 0 18px; }
#view-rules .flow-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 32px; }
#view-rules .flow-card { padding: 4px 0 4px 16px; border: 0; border-left: 2px solid #e8e8e8; border-radius: 0; background: #fff; }
#view-rules .flow-number { margin-bottom: 8px; color: #777; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.5; }
#view-rules .flow-card h3 { margin-bottom: 8px; font-size: 15px; }
#view-rules .flow-card p { color: #555; font-size: 14px; line-height: 1.8; }
#view-rules .rule-filters { gap: 8px; margin: 0 0 24px; }
#view-rules .chip { min-height: 36px; padding: 7px 12px; border: 1px solid transparent; border-radius: 8px; background: #fff; color: #606060; font-size: 14px; }
#view-rules .chip:hover { background: #f7f7f7; }
#view-rules .chip.active { background: #f1f1f1; color: #202020; border-color: transparent; }
#view-rules .card-grid { gap: 16px; }
#view-rules .rule-card { padding: 22px; background: #fff; border-color: #e8e8e8; }
#view-rules .rule-card .panel-top { margin-bottom: 14px; }
#view-rules .rule-code { color: #666; font-size: 12px; }
#view-rules .rule-card h3 { margin-bottom: 10px; font-size: 16px; }
#view-rules .rule-card>p { color: #444; font-size: 14px; line-height: 1.9; }
#view-rules .pill.pending { border-style: dashed; }
#view-team .stats-grid { gap: 16px; margin-bottom: 28px; }
#view-team .stat-card { padding: 20px 22px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; gap: 14px; }
#view-team .stat-card strong { color: #202020; font-family: inherit; font-size: 26px; font-weight: 500; line-height: 1.4; }
#view-team .stat-card span { color: #606060; font-size: 14px; }
#view-team .retention-note { color: #606060; font-size: 13px; line-height: 1.8; padding: 0; }
#view-team .admin-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 24px; }
#view-team .admin-grid form>small { color: #606060; font-size: 13px; }
#view-team .user-row { padding: 18px 0; gap: 12px; border-color: #e8e8e8; }
#view-team .user-row .avatar { width: 32px; height: 32px; background: #f3f3f3; color: #444; font-size: 14px; }
#view-team .user-detail strong { color: #303030; font-size: 14px; font-weight: 500; }
#view-team .user-detail small { color: #606060; font-size: 13px; line-height: 1.8; }
#view-team .user-row .text-button { font-size: 14px; }
#view-manage .section-title { margin: 32px 0 18px; }
#view-manage .editable-rules { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
#view-manage .editable-rule { padding: 22px; }
#view-manage .rule-edit-top { gap: 16px; margin-bottom: 18px; }
#view-manage .rule-code { color: #666; font-size: 12px; }
#view-manage .editable-rule label { font-size: 14px; }
#view-manage .editable-rule textarea { font-size: 15px; line-height: 1.9; }
#view-manage .advanced-editor { margin-top: 24px; }
#view-manage .advanced-editor>summary { color: #555; font-size: 14px; }
#view-manage #knowledge-json { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 13px; line-height: 1.8; }
#view-manage .publish-bar { gap: 12px; padding: 18px 0; margin-top: 24px; border-top: 1px solid #e8e8e8; background: #fffffffa; }
#view-manage .publish-bar>span { color: #606060; font-size: 13px; }
#view-manage .revision-row { padding: 16px 0; border-color: #e8e8e8; }
#view-manage .revision-row strong { color: #303030; font-size: 14px; font-weight: 500; }
#view-manage .revision-row small { color: #606060; font-size: 13px; }
#view-account .account-panel { max-width: 560px; padding: 28px; }
#view-account .account-panel .muted { font-size: 14px; line-height: 1.8; }

/* Existing authentication page, without changing authentication behavior. */
#auth-screen { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 28px; width: 100%; max-width: 464px; min-height: 100dvh; padding: 48px 28px; margin: auto; color: #202020; background: #fff; }
#auth-screen .auth-story { width: 100%; padding: 0; gap: 16px; background: #fff; text-align: center; overflow: visible; }
#auth-screen .auth-story::after { display: none; }
#auth-screen .auth-story .brand { justify-content: center; }
#auth-screen .auth-story .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: #202020; color: #fff; font-size: 17px; }
#auth-screen .auth-story h1 { margin: 8px 0 6px; color: #202020; font-size: 24px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
#auth-screen .auth-story p:not(.eyebrow) { display: block; margin: 0; color: #606060; font-size: 14px; line-height: 1.8; }
#auth-screen .auth-story>small { display: block; color: #666; font-size: 12px; line-height: 1.7; }
#auth-screen .auth-card { width: 100%; max-width: none; padding: 0; align-self: auto; justify-self: auto; }
#auth-screen .auth-card>.pill { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f5f5f5; color: #606060; font-size: 12px; }
#auth-screen .auth-card h2 { margin: 18px 0 8px; color: #202020; font-size: 20px; font-weight: 600; line-height: 1.5; }
#auth-screen .auth-card .muted { margin: 0; color: #606060; font-size: 14px; line-height: 1.8; }
#auth-screen .auth-card form { margin-top: 24px; }
#auth-screen .auth-card label { color: #303030; font-size: 14px; font-weight: 500; }
#auth-screen .auth-card input { min-height: 44px; padding: 10px 12px; border: 1px solid #dedede; border-radius: 9px; background: #fff; color: #202020; font-size: 15px; }
#auth-screen .auth-card input:focus { border-color: #777; outline: 2px solid #e3e3e3; outline-offset: 2px; box-shadow: none; }
#auth-screen .auth-card input::placeholder { color: #777; font-size: 14px; }
#auth-screen .auth-card .button { min-height: 44px; border-radius: 9px; background: #202020; border-color: #202020; color: #fff; font-size: 15px; font-weight: 500; box-shadow: none; }
#auth-screen .auth-card .button:hover:not(:disabled) { background: #383838; }
#auth-screen :is(.auth-foot,form>small) { color: #606060; font-size: 13px; line-height: 1.8; }
#auth-screen .error { font-size: 14px; color: #303030; }

@media (max-width: 1000px) {
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) { padding: 28px 24px 36px; }
  #view-practice .practice-desk,#view-learning .learning-desk { grid-template-columns: 190px minmax(0,1fr); gap: 24px; }
  #view-practice .practice-history,#view-learning .learning-list-panel { padding-right: 16px; }
  #view-practice .practice-exchange { grid-template-columns: 1fr; }
  #view-manage .editable-rules { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) { padding: 24px 18px 32px; }
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading { gap: 16px; align-items: flex-start; }
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading h1 { font-size: 24px; }
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading .button { min-height: 40px; margin: 0; font-size: 14px; white-space: nowrap; }
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .padded { padding: 20px; }
  #view-practice .practice-desk,#view-learning .learning-desk { grid-template-columns: 1fr; gap: 28px; }
  #view-practice .practice-history,#view-learning .learning-list-panel { position: static; padding: 0 0 20px; border-right: 0; border-bottom: 1px solid #e8e8e8; }
  #view-practice .practice-list,#view-learning .learning-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 8px; max-height: 172px; }
  #view-practice .practice-list-item,#view-learning .learning-list-item { margin: 0; }
  #view-practice .practice-facts-grid { grid-template-columns: 1fr; gap: 18px; }
  #view-practice .practice-facts-grid>div+div { padding: 18px 0 0; border-left: 0; border-top: 1px solid #e8e8e8; }
  #view-practice .practice-summary { padding: 20px; }
  #view-practice .practice-turn-heading h3 { font-size: 14px; }
  #view-practice .practice-turn-toggle { font-size: 12px; }
  #view-learning .learning-create { padding: 20px; }
  #view-learning .learning-message,#view-learning .learning-message.sales { margin-inline: 0; }
  #view-learning .learning-process { gap: 6px 10px; line-height: 1.9; }
  #view-library .faq-body { padding-left: 0; }
  #view-library .toolbar select { flex-basis: 144px; }
  #view-rules .flow-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 16px; }
  #view-rules .card-grid,#view-team .admin-grid { grid-template-columns: 1fr; }
  #view-team .stat-card { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; }
  #view-team .stat-card span { font-size: 13px; }
  #view-manage .publish-bar { flex-wrap: wrap; }
  #view-manage .publish-bar>span { flex-basis: 100%; }
  #view-manage .publish-bar .button { font-size: 14px; }
  #view-account .account-panel { padding: 22px; }
  #faq-edit-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 22px; border-radius: 14px; }
  #faq-edit-dialog .faq-edit-preview-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 420px) {
  :is(#view-practice,#view-learning,#view-library,#view-rules,#view-team,#view-manage,#view-account) .page-heading { flex-wrap: wrap; }
  #view-practice .practice-list,#view-learning .learning-list { grid-template-columns: 1fr; }
  #view-library .toolbar { flex-wrap: wrap; }
  #view-library .toolbar select { flex-basis: 100%; }
  #view-rules .flow-grid { grid-template-columns: 1fr; }
  #view-team .stats-grid { gap: 10px; }
  #view-team .stat-card { padding: 12px; }
  #view-team .stat-card strong { font-size: 24px; }
  #auth-screen { padding: 32px 24px; gap: 24px; }
}
/* Keep native form controls consistent across browsers. */
#app-shell .view select:not([multiple]),#auth-screen select{appearance:none;-webkit-appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606060' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px;min-height:42px}
#app-shell .view:not(#view-assistant){max-width:1120px}

#view-learning .learning-process{padding:0;background:transparent}
#view-learning .learning-list-panel .list-foot{font-size:12px}
#app-shell .provider-status{max-width:none}
