/* Shared foundations from the recorded live bridal design. Component sizes follow
   bridal chat.css, custom-image.css and mobile-nav.css rather than the base scale. */
:root{--color-bg:#fff;--color-surface:#f5f5f7;--color-text:#1d1d1f;--color-muted:#6e6e73;--color-primary:#0071e3;--color-primary-hover:#0066cc;--color-primary-pressed:#0055aa;--color-primary-soft:#eaf3ff;--color-border:#d2d2d7;--color-danger:#b42318;--color-overlay:#1d1d1f66;--font-ui:-apple-system,BlinkMacSystemFont,'PingFang SC','Noto Sans CJK SC','Microsoft YaHei','Segoe UI',sans-serif;--text-title:32px;--text-section:24px;--text-body:17px;--text-small:14px;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--page-gutter:48px;--content-max:1280px;--radius-control:12px;--radius-card:24px;--radius-pill:999px;--motion-fast:160ms;--motion-panel:240ms;--rail-width:68px;--detail-width:232px;--sidebar-width:calc(var(--rail-width) + var(--detail-width));--ink:var(--color-text);--muted:var(--color-muted);--line:var(--color-border)}
*{box-sizing:border-box}body{margin:0;background:var(--color-surface);color:var(--color-text);font:var(--text-body)/1.6 var(--font-ui);-webkit-font-smoothing:antialiased}body:has(dialog[open]){overflow:hidden}button,input,textarea,select{font:inherit}button,a,input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 24px;cursor:pointer;border:1px solid var(--color-border);border-radius:var(--radius-pill);background:#fff;color:inherit;line-height:1.4;transition:background-color var(--motion-fast) ease-out,border-color var(--motion-fast) ease-out,color var(--motion-fast) ease-out}button:hover:not(:disabled){background:var(--color-surface)}button:disabled{opacity:.48;cursor:default}button:focus-visible,a:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}button:active:not(:disabled){background:#eeeef1}a{color:inherit;text-decoration:none}button svg,a svg{flex-shrink:0}[hidden]{display:none!important}input,textarea,select{min-width:0;color:inherit;background:#f8f8fa;border:1px solid #dedee7;border-radius:var(--radius-control);padding:12px 14px}input:focus,textarea:focus{outline:2px solid #9fc0ff;outline-offset:2px}input::placeholder,textarea::placeholder{color:#929298}h1,h2,h3,p{overflow-wrap:anywhere}h1{font-size:var(--text-title);font-weight:600;letter-spacing:-.6px;line-height:1.35;margin:0 0 12px}h2{font-size:var(--text-section);font-weight:600;line-height:1.4;margin:0 0 20px}h3{font-size:20px;line-height:1.4;font-weight:550;margin:0 0 8px}p{margin:0 0 16px;color:var(--color-muted);line-height:1.8}.hint,.muted{color:var(--color-muted);font-size:13px;line-height:1.7}.primary{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.primary:hover:not(:disabled){background:var(--color-primary-hover);border-color:var(--color-primary-hover)}.primary:active:not(:disabled){background:var(--color-primary-pressed)}.ui-icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex:0 0 auto}.icon-button{display:inline-grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:9px;background:transparent;color:var(--color-muted)}.icon-button .ui-icon{width:18px;height:18px}.shell{margin-left:var(--sidebar-width);min-width:0;transition:none}.shell>.page-header{height:var(--page-header-height,80px);display:flex;align-items:center;gap:12px;padding:16px 32px;color:var(--color-text);flex-shrink:0}.page-header-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;margin-left:auto}.mobile{display:none}.help{padding:8px 0;min-height:36px;border:0;background:transparent;font-size:13px;color:#86868b}.help .ui-icon{width:15px;height:15px}main{width:100%;max-width:calc(var(--content-max) + 2 * var(--page-gutter));margin:0 auto;min-height:calc(100dvh - 144px);padding:32px var(--page-gutter) 48px}.page-lead{margin:0 0 28px}.page-lead>p{margin:0;font-size:15px}footer{display:flex;justify-content:space-between;gap:16px;padding:20px var(--page-gutter);font-size:12px;color:#96969c}footer span{white-space:nowrap}.panel{background:#fff;border:0;border-radius:var(--radius-card);padding:32px;min-width:0;margin-bottom:24px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{font-size:13px;min-height:40px;padding:9px 12px}.status-pill{display:inline-flex;align-items:center;border-radius:var(--radius-pill);background:var(--color-surface);color:var(--color-muted);font-size:13px;padding:4px 12px}
/* Primary icon rail and contextual secondary column. */
#sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);height:100dvh;padding:18px 14px 18px calc(var(--rail-width) + 14px);display:flex;flex-direction:column;background:#fff;z-index:40;border-right:1px solid #eeeef1;overflow:hidden;transition:transform var(--motion-panel) ease-out}#sidebar::before{content:'';position:absolute;inset:0 auto 0 0;width:var(--rail-width);background:#fafafa;border-right:1px solid #eeeef1;z-index:-1}.brand{position:absolute;top:24px;left:14px;width:40px;height:40px;display:grid;place-items:center;border-radius:12px}.brand:hover{background:#f0f0f3}.brand-logo{width:23px;height:28px;object-fit:contain}.brand-name{display:none}#nav{position:absolute;top:100px;left:10px;width:48px;display:flex;flex-direction:column;gap:12px}#nav a{display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;width:48px;height:60px;border-radius:12px;color:#86868b;transition:background-color var(--motion-fast) ease-out,color var(--motion-fast) ease-out}#nav a.active,#nav a:hover{background:#f0f0f2;color:var(--color-text)}#nav a:active{background:#e8e8ed}#nav svg{width:18px;height:18px}#nav .nav-label{display:block;font-size:10px;line-height:14px;font-weight:400;white-space:nowrap;color:inherit}.sidebar-detail-heading{min-height:48px;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 20px 12px;white-space:nowrap}.sidebar-detail-heading strong{font-size:18px;font-weight:600;letter-spacing:-.4px}.collapse-detail{display:grid;place-items:center;width:32px;height:32px;min-height:32px;padding:6px;border:0;border-radius:8px;background:transparent;color:#929297}#chatSubnav{display:flex;flex-direction:column;gap:5px;min-height:0;overflow-y:auto}#chatSubnav>a,#chatSubnav>button{display:flex;align-items:center;justify-content:flex-start;gap:10px;width:100%;flex-shrink:0;min-height:42px;text-align:left;padding:10px 12px;border:0;border-radius:10px;background:transparent;font-size:13px;color:#55555b}#chatSubnav>a:hover,#chatSubnav>button:hover,#chatSubnav>a.active{background:#f5f5f7;color:#1d1d1f}#chatSubnav .ui-icon{width:18px;height:18px}.detail-label{font-size:12px;color:#96969c;margin:22px 12px 6px}.detail-record span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-heading{border-top:1px solid #eeeef1;margin:14px -14px 12px;padding:20px 26px 0;color:#96969c;font-size:12px;white-space:nowrap}#history{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden}.history-item{display:flex;align-items:center;border-radius:9px;position:relative;margin-bottom:3px}.history-item.current,.history-item:hover{background:#f5f5f7}.history-item>button:first-child{display:block;min-width:0;flex:1;border:0;text-align:left;padding:11px 30px 11px 12px;font-size:12px;min-height:42px;border-radius:9px;background:transparent}.history-item>button:first-child>span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.history-item small{display:block;font-size:11px;color:#96969c;margin-top:3px}.history-delete{position:absolute;right:2px;width:28px;height:30px;min-height:30px;padding:6px;opacity:0}.history-item:hover .history-delete,.history-delete:focus-visible{opacity:1}.history-delete .ui-icon{width:15px;height:15px}.history-empty{font-size:12px;padding:8px 12px;color:#96969c}.side-bottom{position:absolute;bottom:20px;left:13px;width:42px}.account{padding:0;border:0;width:42px;min-height:42px;background:transparent}.avatar{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:500;background:#f5b95f;color:#fff}#accountLabel{display:none}.detail-collapsed{--sidebar-width:var(--rail-width)}.detail-collapsed #sidebar{padding-inline:0}.detail-collapsed #sidebar>:is(.sidebar-detail-heading,#chatSubnav,.history-heading,#history,#sidebarScroll){visibility:hidden;pointer-events:none}.detail-collapsed .brand{background:#eeeef1}body[data-section=billing]{--sidebar-width:var(--rail-width)}body[data-section=billing] #sidebar{padding:0}body[data-section=billing] #sidebar>:is(.sidebar-detail-heading,#chatSubnav,.history-heading,#history,#sidebarScroll){display:none}.sidebar-scrim{display:none}
/* Live bridal conversation styling, including its compact input-first welcome. */
.chat-route{overflow:hidden;background:#fff}.chat-route footer{display:none}.chat-route main{max-width:none;height:calc(var(--viewport-height,100dvh) - var(--page-header-height,80px));min-height:0;padding:0;background:#fff}.chat-page{display:flex;flex-direction:column;height:100%;min-height:0}.chat-new{min-height:44px;padding:10px 12px;border:0;border-radius:10px;font-size:13px;color:#55555b;background:transparent}.chat-new .ui-icon{width:18px;height:18px}.chat-area{flex:1;min-height:0;overflow:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable both-edges;overflow-anchor:none;padding:32px 24px 16px}.message{max-width:760px;margin:0 auto 34px;font-size:16px;line-height:1.85;overflow-wrap:anywhere}.message-content{white-space:pre-wrap;min-height:29px}.message.user{display:flex;justify-content:flex-end;padding-left:20%}.message.user .message-content{background:#f5f5f7;border-radius:22px;padding:12px 20px;max-width:100%}.message.assistant{padding-inline:6px}.message-actions{display:flex;gap:4px;margin-top:8px}.message-actions .icon-button{width:32px;height:32px;min-height:32px;padding:7px;border-radius:7px}.chat-dock{flex-shrink:0;padding:12px 24px max(24px,env(safe-area-inset-bottom));background:#fff}.chat-greeting{width:min(640px,100%);margin:0 auto 26px;text-align:center;font-size:24px;font-weight:550;letter-spacing:-.3px}.composer{position:relative;width:min(760px,100%);margin:auto;padding:17px 17px 13px;border:1px solid #e5e5e9;border-radius:26px;background:#f7f7f8}.composer:focus-within{border-color:#d8d8de}.composer textarea{display:block;width:100%;min-height:28px;height:28px;max-height:180px;padding:0 3px;margin:0;border:0;border-radius:0;background:transparent;resize:none;outline:none;box-shadow:none;font-size:16px;line-height:26px;overflow-y:auto}.composer-bottom{display:flex;justify-content:flex-end;margin-top:10px}.chat-send{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:8px;border:0;border-radius:50%;color:#fff;background:var(--color-primary)}.chat-send:hover:not(:disabled){background:var(--color-primary-hover)}.chat-send:disabled{background:#e7e7ea;color:#b1b1b8;opacity:1}.chat-send.is-stop .ui-icon{fill:currentColor;stroke:none;width:18px;height:18px}.chat-page.is-empty{overflow-y:auto;overscroll-behavior-y:contain}.is-empty .chat-area{display:none}.is-empty .chat-dock{width:100%;margin-block:auto;padding-block:32px max(8vh,env(safe-area-inset-bottom))}.is-empty .composer{width:min(640px,100%);min-height:80px;padding:18px 64px 18px 20px;border-radius:20px}.is-empty .composer-bottom{position:absolute;right:16px;bottom:16px;margin:0}.chat-home{width:min(640px,100%);margin:26px auto 0}.chat-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 36px;margin-top:16px}.chat-suggestion{display:block;position:relative;width:100%;min-height:66px;padding:10px 26px 10px 32px;text-align:left;border:0;border-radius:10px;background:transparent;line-height:1.55}.chat-suggestion>svg{position:absolute;left:2px;top:12px;width:20px;height:20px;opacity:.7}.chat-suggestion strong{display:block;font-size:14px;font-weight:550;line-height:1.5;margin-bottom:3px}.chat-suggestion>span{display:block;font-size:13px;color:#77777e}.chat-suggestion i{position:absolute;right:2px;top:21px;width:16px;height:16px;color:#777;opacity:.6}.chat-suggestion i svg{width:16px;height:16px}.agent-intro{max-width:640px;margin:-10px auto 24px;text-align:center;font-size:13px;line-height:1.9;color:#86868b}.chat-area>.form-error{max-width:760px;margin:8px auto 20px}
/* The compact bridal custom-image workspace. */
.image-workspace{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:24px;align-items:start}.image-workspace form,.image-workspace fieldset{min-width:0;margin:0;padding:0;border:0}.image-workspace .panel{padding:22px;border-radius:24px;margin-bottom:16px;box-shadow:0 5px 24px #24243b03}.image-workspace h2{font-size:18px;margin:0 0 16px}.image-workspace textarea{width:100%;height:150px;min-height:130px;padding:14px 16px;line-height:1.65;resize:vertical;border-radius:15px;font-size:15px}.image-help{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:12px;line-height:1.6;color:#83838b;margin-top:10px}.image-help span:last-child{white-space:nowrap;margin-left:auto}.image-title{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.image-title>span,.image-title small{white-space:nowrap;font-size:13px;font-weight:400;color:#81818b}.reference-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.reference{border:1px solid #e4e4ed;border-radius:13px;padding:8px;overflow:hidden;background:#fafafa;min-width:0}.reference-preview{position:relative;display:block;width:100%;height:106px;min-height:0;padding:0;border:0;background:transparent;border-radius:8px;overflow:hidden}.reference img{width:100%;height:100%;object-fit:contain}.reference-preview span{position:absolute;top:5px;left:5px;background:#0009;color:#fff;border-radius:7px;padding:4px 7px;font-size:11px}.reference p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;margin:8px 0 4px}.reference>div{display:flex;justify-content:space-between;gap:8px}.reference>div button{font-size:12px;padding:5px;min-height:30px;border:0;border-radius:6px;background:transparent;color:#777;gap:4px}.reference>div button:hover{color:#2464ce;background:#edf3ff}.reference button .ui-icon{width:14px;height:14px}.reference-upload{grid-column:1/-1;min-height:88px;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px 16px;border:1px dashed #d1d1df;border-radius:16px;background:#fafafe}.reference-upload b{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:550}.reference-upload span{font-size:12px;color:#888;line-height:1.5}.reference-upload.drag-over{background:var(--color-primary-soft);border-color:var(--color-primary)}.image-workspace .hint{font-size:12px;line-height:1.6;margin:12px 0 0}.image-error,.form-error{font-size:13px;line-height:1.6;color:var(--color-danger);overflow-wrap:anywhere}.image-error:empty,.form-error:empty{display:none}.image-ratios{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.image-ratios button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:64px;min-width:0;padding:9px 2px;border:1px solid #e4e4ec;border-radius:9px;background:#fafafa;font-size:13px;line-height:1.2}.image-ratios .selected{background:#edf3ff;border-color:#9bbaf6;color:#3566bf}.ratio-shape{display:block;border:1.5px solid currentColor;border-radius:2px;color:#86868b;flex-shrink:0}.selected .ratio-shape{color:inherit}#imageBtn{width:100%;margin-top:18px;min-height:48px}.image-output{position:sticky;top:24px;min-width:0}.empty{position:relative;min-height:350px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:28px;border:1px solid #eaeaf1;border-radius:18px;background:#f8f8fa;text-align:center;overflow:hidden}.empty h3{font-size:16px;font-weight:550;line-height:1.5;margin:0}.empty p{font-size:13px;line-height:1.8;margin:0;max-width:360px}.empty-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#eeeef2;color:#9898a4}.empty-icon svg{width:28px;height:28px}.image-result{min-width:0}.image-result>img{display:block;width:100%;max-height:calc(100dvh - 250px);object-fit:contain;background:#f8f8fa;border-radius:18px}.image-result .actions{margin-top:16px}.image-result .actions button{flex:1}.loading-spinner{display:inline-block;width:18px;height:18px;border:2px solid #ffffff66;border-top-color:currentColor;border-radius:50%;animation:ci-spin 1s linear infinite}
/* Industry, membership, account and checkout retain the same foundations. */
.industry{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:24px;overflow:hidden;isolation:isolate;transition:box-shadow var(--motion-fast) ease-out}.industry[href]:hover{box-shadow:0 6px 24px #1d1d1f0a}.industry-cover{display:block;width:100%;height:auto;aspect-ratio:600/650;object-fit:cover;flex-shrink:0}.industry-body{width:100%;padding:24px 26px;display:flex;flex:1;flex-direction:column;align-items:flex-start}.industry h3{font-size:20px;margin:0 0 8px}.industry p{font-size:14px;margin:0 0 24px}.industry-action{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;font-size:14px;color:var(--color-primary);margin-top:auto;min-height:32px}.industry-action svg{width:17px;height:17px}.industry.unavailable .industry-cover{filter:saturate(.2);opacity:.85}.industry .status-pill{margin-top:auto;min-height:32px}.industry.unavailable h3{color:var(--color-text)}.package{display:flex;flex-direction:column;align-items:stretch}.package h2{font-size:20px}.package h1{font-size:32px;margin-block:8px}.package p{font-size:14px}.package .hint{flex:1;margin-bottom:24px}.package .primary{width:100%;font-size:15px}.package .primary:disabled{color:#fff}dialog{width:min(460px,calc(100vw - 32px));max-width:100%;max-height:calc(100dvh - 40px);padding:28px;border:0;border-radius:24px;background:#fff;color:var(--color-text);box-shadow:0 24px 100px #1d1d1f26;overflow:auto}dialog::backdrop{background:var(--color-overlay)}dialog[open]{animation:dialog-in var(--motion-panel) ease-out}dialog .close{position:absolute;right:14px;top:14px}dialog h2{font-size:22px;line-height:1.4;margin:0 36px 8px 0}dialog p{font-size:14px;margin:12px 0;line-height:1.7}dialog label{display:block;font-size:14px;color:#55555b;margin:16px 0 8px}dialog input:not([type=checkbox]){display:block;width:100%;min-height:46px;margin-top:8px;font-size:15px}dialog .primary{width:100%;margin-top:16px;min-height:48px;font-size:15px}dialog>img{border-radius:12px}.account-email{font-size:14px;overflow-wrap:anywhere;color:#777;margin:0 0 16px!important}.compact-account{padding:16px;background:#f5f5f7;border-radius:16px;margin-bottom:16px}.account-plan{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 16px;align-items:center;font-size:13px;color:#777}.account-plan>strong{justify-self:end;text-align:right;color:#1d1d1f;font-weight:550}.account-balance{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e2e2e8;margin-top:16px;padding-top:16px;font-size:14px;color:#777}.account-balance strong{font-size:26px;color:#1d1d1f;font-weight:600}.account-link{display:flex;width:100%;min-height:44px;margin-top:8px;padding:10px 14px;border:0;border-radius:12px;background:transparent;text-align:left;justify-content:flex-start;font-size:14px}.account-link svg:last-child{margin-left:auto}.code-input{display:flex;gap:8px;align-items:center}.code-input input{min-width:0}.code-input button{white-space:nowrap;flex-shrink:0;font-size:12px;padding:10px 12px;min-height:46px;margin-top:8px;border-radius:12px}.consent{display:flex;align-items:flex-start;gap:9px;line-height:1.8}.consent input{width:18px;height:18px;flex-shrink:0;margin-top:4px;accent-color:var(--color-primary)}.order-row{border-bottom:1px solid #eeeef1;padding:16px 0;font-size:14px}.order-row:last-child{border-bottom:0}.order-row p{font-size:13px}.order-row button{font-size:12px;min-height:36px;padding:7px 12px;margin:0 6px 6px 0}#toast{position:fixed;left:50%;bottom:32px;transform:translate(-50%,8px);max-width:calc(100vw - 32px);padding:12px 20px;border-radius:12px;background:#24262b;color:#fff;font-size:13px;box-shadow:0 8px 32px #0002;opacity:0;visibility:hidden;pointer-events:none;z-index:100;transition:opacity var(--motion-fast) ease-out,transform var(--motion-fast) ease-out,visibility var(--motion-fast)}#toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}
/* The exact one-shot navigation motion from the bridal reference. */
.chat-nav-icon,.custom-image-nav-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;overflow:visible;vertical-align:middle;margin:0}.chat-bubble{transform-box:view-box;transform-origin:12px 12px}.chat-playing .chat-bubble{animation:chat-breathe 1s ease-in-out 1 both}.chat-playing .chat-dot-a{animation:chat-dot-a 1s ease-in-out 1 both}.chat-playing .chat-dot-b{animation:chat-dot-b 1s ease-in-out 1 both}.chat-playing .chat-dot-c{animation:chat-dot-c 1s ease-in-out 1 both}@keyframes chat-breathe{0%,100%{transform:scale(1)}45%{transform:scale(1.035)}}@keyframes chat-dot-a{0%,10%,45%,100%{transform:translateY(0)}26%{transform:translateY(-1.5px)}}@keyframes chat-dot-b{0%,25%,60%,100%{transform:translateY(0)}41%{transform:translateY(-1.5px)}}@keyframes chat-dot-c{0%,40%,75%,100%{transform:translateY(0)}56%{transform:translateY(-1.5px)}}@keyframes dialog-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes chat-wait{50%{opacity:.35}}@keyframes ci-spin{to{transform:rotate(360deg)}}
@media(min-width:768px) and (max-width:1023px){:root{--detail-width:212px;--page-gutter:32px}.grid3{gap:16px}.panel{padding:24px}.image-workspace{grid-template-columns:minmax(0,1fr);gap:0}.image-output{position:static}.image-workspace .panel{padding:22px}.grid3:has(.package){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){:root{--rail-width:60px;--detail-width:226px;--page-gutter:20px;--text-title:28px;--text-section:20px;--text-body:16px}.shell{margin-left:0}.shell>.page-header{--page-header-height:64px;height:64px;padding:10px 16px;gap:8px;background:#fff}.page-header-actions{gap:4px}.shell>.page-header .help{font-size:12px}.mobile{display:inline-grid;flex-shrink:0}.shell main{padding:24px 20px 32px;min-height:calc(100dvh - 128px)}footer{padding:16px 20px;font-size:11px}#sidebar{width:min(286px,88vw);transform:translateX(-100%);padding-left:74px}#nav{left:6px}.brand{left:10px}.side-bottom{left:9px}.sidebar-detail-heading{margin-left:10px}.sidebar-detail-heading strong{font-size:17px}.collapse-detail{display:none}.detail-collapsed #sidebar{padding-inline:74px 14px}.detail-collapsed #sidebar>:is(.sidebar-detail-heading,#chatSubnav,.history-heading,#history,#sidebarScroll){visibility:visible;pointer-events:auto}.menu-open #sidebar{transform:translateX(0)}.menu-open .sidebar-scrim{display:block;position:fixed;inset:0;z-index:35;width:100%;height:100%;border:0;border-radius:0;padding:0;background:var(--color-overlay);animation:dialog-in var(--motion-panel) ease-out}.history-delete{opacity:1}.grid3{grid-template-columns:minmax(0,1fr);gap:16px}.panel{padding:24px}.page-lead{margin-bottom:22px}.page-lead>p{font-size:14px}.chat-route .shell main{height:calc(var(--viewport-height,100dvh) - 64px);padding:0;min-height:0}.chat-new{font-size:12px;min-height:42px}.chat-area{padding:20px 20px 16px}.message{margin-bottom:28px}.message.user{padding-left:12%}.message.user .message-content{padding:11px 16px;border-radius:20px}.message.assistant{padding-inline:0}.chat-dock{padding:10px 16px max(16px,env(safe-area-inset-bottom))}.chat-greeting{font-size:23px;margin-bottom:20px}.composer{padding:14px 14px 11px;border-radius:24px}.composer textarea{max-height:130px}.is-empty .chat-dock{padding-top:24px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.is-empty .composer{padding:18px 60px 18px 16px}.chat-home{margin-top:22px}.chat-suggestions{grid-template-columns:minmax(0,1fr);gap:4px;margin-top:12px}.chat-suggestion{min-height:58px;padding-left:32px}.agent-intro{font-size:12px}.image-workspace{grid-template-columns:minmax(0,1fr);gap:0}.image-workspace .panel{padding:18px;border-radius:20px}.image-workspace textarea{height:145px;font-size:15px}.image-ratios{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.image-ratios button{padding:10px}.image-output{position:static}.image-help span:first-child{max-width:70%}.reference-preview{height:112px}.reference-upload span{flex-basis:100%}.empty{min-height:280px;padding:24px}.image-result>img{max-height:550px}.industry-body{padding:22px}.industry-cover{aspect-ratio:4/3}dialog{padding:24px;width:calc(100vw - 32px);max-height:calc(100dvh - 32px)}dialog h2{font-size:22px}.package h1{font-size:30px}body[data-section=billing] .shell{margin-left:0}body[data-section=billing] #sidebar{width:min(286px,88vw);transform:translateX(-100%);padding-left:74px}body[data-section=billing].menu-open #sidebar{transform:translateX(0)}body[data-section=billing] .mobile{display:inline-grid}.page-header #headerHelp .ui-icon{display:block;width:18px;height:18px}.page-header .header-help-label,.page-header .header-new-label{display:none}.page-header #headerHelp,.page-header .chat-new,.page-header .mobile{width:44px;height:44px;min-height:44px;padding:12px;border-radius:10px}.page-header #breadcrumb{font-size:15px;line-height:22px}}
@media(max-height:500px){.is-empty .chat-home,.is-empty .chat-greeting,.is-empty .agent-intro{display:none}.is-empty .chat-dock{margin-top:auto;margin-bottom:0;padding-block:12px max(16px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.admin-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.admin-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:24px}.admin-stats span{display:block;color:#777;font-size:13px}.admin-stats strong{display:block;font-size:30px;margin-top:10px}.admin-table{overflow:auto}.admin-table table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:13px}.admin-table th,.admin-table td{padding:15px 12px;border-bottom:1px solid #eee}.admin-table th{color:#777;font-weight:500}.admin-pagination{display:flex;gap:12px;align-items:center;margin-top:24px}

/* Resize only on an explicit panel toggle; route changes use their final layout. */
@media(min-width:768px){.sidebar-resizing .shell{transition:margin-left var(--motion-panel) ease-out}.sidebar-resizing #sidebar{transition:width var(--motion-panel) ease-out}}
@media(max-width:767px){body:not(.menu-open) #sidebar{transition:none}}
@media(prefers-reduced-motion:reduce){.sidebar-resizing .shell,.sidebar-resizing #sidebar{transition:none}}

/* Industry tiles respond once, in reading order, within the same one-second window. */
.industry-playing>.ui-icon>rect{transform-box:fill-box;transform-origin:center;animation:industry-tile 640ms ease-in-out both}.industry-playing>.ui-icon>rect:nth-child(2){animation-delay:100ms}.industry-playing>.ui-icon>rect:nth-child(3){animation-delay:200ms}.industry-playing>.ui-icon>rect:nth-child(4){animation-delay:300ms}@keyframes industry-tile{0%,100%{transform:translateY(0) scale(1)}40%{transform:translateY(-2px) scale(.9)}70%{transform:translateY(0) scale(1.04)}}
@media(prefers-reduced-motion:reduce){.industry-playing>.ui-icon>rect{animation:none}}

/* A photo and a folded document share the fan-out silhouette of the reference. */
.works-nav-icon{width:18px;height:18px;flex:0 0 18px;overflow:visible}
.works-document,.works-photo,.works-photo-mask{transform-box:view-box}
.works-playing .works-document{animation:works-document-spread 1s ease-in-out 1 both}
.works-playing .works-photo,.works-playing .works-photo-mask{animation:works-photo-spread 1s ease-in-out 1 both}
@keyframes works-document-spread{0%,100%{transform:translate(0,0)}40%{transform:translate(.65px,-.8px)}70%{transform:translate(.15px,-.15px)}}
@keyframes works-photo-spread{0%,100%{transform:translate(0,0)}40%{transform:translate(-.65px,.45px)}70%{transform:translate(-.15px,.1px)}}
@media(prefers-reduced-motion:reduce){.works-playing .works-document,.works-playing .works-photo,.works-playing .works-photo-mask{animation:none}}

/* Works has one primary rail and no empty secondary column on any viewport. */
body[data-section=works]{--detail-width:0px;--sidebar-width:var(--rail-width)}
body[data-section=works] #sidebar{width:var(--rail-width);padding:0}
body[data-section=works] #sidebar>:is(.sidebar-detail-heading,#chatSubnav,.history-heading,#history,#sidebarScroll){display:none}

.image-help:has(>#promptCount:only-child){justify-content:flex-end}

/* Agent management reuses the production workspace foundations. */
.agent-admin-panel{padding:0;background:transparent}.ag-top{display:flex;justify-content:space-between;gap:24px;align-items:center;margin:0 0 24px}.ag-top h2{margin:0 0 6px}.ag-top p{margin:0}.ag-top .actions{align-items:center;justify-content:flex-end}.ag-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:24px;align-items:start}.ag-card{background:#fff;border-radius:24px;min-width:0;overflow:hidden}.ag-tabs{display:flex;gap:22px;padding:0 28px;height:64px;border-bottom:1px solid #eeeef1}.ag-tabs button{border:0;border-radius:0;padding:0;font-size:14px;color:#6e6e73;white-space:nowrap}.ag-tabs button.selected{border-bottom:2px solid #1d1d1f;color:#1d1d1f}.ag-section{padding:28px}.ag-section h3{font-size:18px}.ag-section label{display:block;font-size:14px;margin:20px 0 8px;color:#55555b}.ag-section input,.ag-section textarea{width:100%;font-size:14px;line-height:1.8}.ag-section .hint{margin:12px 0 0}.ag-avatar-row{display:flex;align-items:center;gap:16px;margin:24px 0}.ag-avatar{width:64px;height:64px;display:inline-grid;place-items:center;object-fit:cover;border-radius:18px;background:#f5f5f7;color:#6e6e73}.ag-avatar .ui-icon{width:28px;height:28px}.ag-avatar-row button{min-height:36px;font-size:12px;padding:8px 16px}.ag-preview-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eeeef1;padding:16px 24px;gap:12px;font-size:14px}.ag-preview-heading button{border:0;min-height:32px;padding:4px 0;color:#0071e3;font-size:12px}.ag-preview{height:520px;overflow:auto;padding:28px 24px}.ag-profile{text-align:center;margin-bottom:24px}.ag-profile h3{font-size:18px;margin:14px 0 8px}.ag-profile p{font-size:13px;margin:0}.ag-reply{white-space:pre-wrap;font-size:14px;line-height:1.85;margin:18px 0}.ag-user{white-space:pre-wrap;background:#f5f5f7;border-radius:20px;padding:12px 16px;margin:18px 0 18px auto;font-size:14px;width:fit-content;max-width:90%}.ag-suggestions{display:flex;flex-wrap:wrap;gap:8px}.ag-suggestions button{font-size:12px;min-height:36px;padding:8px 12px}.ag-composer{display:flex;gap:8px;align-items:center;background:#f7f7f8;border:1px solid #e5e5e9;border-radius:20px;margin:16px 24px 0;padding:10px}.ag-composer textarea{border:0;background:transparent;resize:vertical;width:100%;font-size:14px}.ag-composer button{min-height:36px;padding:8px 12px;font-size:12px}.ag-preview-note{text-align:center;font-size:11px;color:#86868b;margin:10px 16px 20px}.ag-history-row{padding:16px 0;border-bottom:1px solid #eeeef1;font-size:14px}.agent-public-intro{max-width:640px;margin:0 auto 24px;text-align:center}.agent-public-intro p{font-size:13px;margin:8px 0}.agent-public-avatar{display:block;width:56px;height:56px;object-fit:cover;border-radius:16px;margin:0 auto 16px}.agent-opening{white-space:pre-wrap}@media(max-width:1100px){.ag-layout{grid-template-columns:minmax(0,1fr)}.ag-top{align-items:flex-start;flex-direction:column}.ag-tabs{gap:18px}.ag-preview{height:380px}}@media(max-width:767px){.ag-section{padding:24px}.ag-tabs{padding:0 24px;gap:16px}.ag-tabs button{font-size:12px}.ag-tabs .hint{font-size:10px}.ag-top .actions{justify-content:flex-start}}

/* Compact account popover, matched to bridal production.css 566–572. */
.account[aria-expanded=true]{background:#f2f2f5;border-radius:12px}.account-menu{position:fixed;z-index:80;box-sizing:border-box;width:248px;max-width:calc(100vw - 24px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid #eee;border-radius:14px;background:#fff;box-shadow:0 8px 32px #0002}.account-menu-heading{padding:8px 10px;font-size:12px;overflow-wrap:anywhere;color:#86868b;border-bottom:1px solid #eee;margin-bottom:5px}.account-menu button{display:flex;width:100%;align-items:center;justify-content:flex-start;gap:9px;min-height:38px;padding:8px 10px;border:0;border-radius:8px;background:transparent;font-size:13px;text-align:left}.account-menu button:hover,.account-menu button:focus-visible{background:#f5f5f7}.account-menu .ui-icon{width:17px;height:17px;flex:0 0 17px}.account-menu-label{flex:1;white-space:nowrap}.account-menu button>span:not(.account-menu-label){flex-shrink:0;font-size:12px;color:#6e6e73}@media(pointer:coarse){.account-menu button{min-height:44px}}

/* Match bridal topbar typography: primary location is body ink, secondary is muted. */
#breadcrumb{flex:1;min-width:0;margin:0;font-family:var(--font-ui);font-size:16px;font-weight:550;line-height:24px;color:var(--color-text);letter-spacing:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Account avatar stays centered in the primary rail on every route and screen size. */
.side-bottom{left:calc((var(--rail-width) - 44px)/2);right:auto;bottom:20px;width:44px}
.account{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border-radius:12px}
.account:hover,.account[aria-expanded=true]{background:#f2f2f5}
.account .avatar{width:32px;height:32px;flex:0 0 32px;background:#f6bd66}
#accountLabel,.account-more{display:none}
/* Bridal shared page title scale; component-specific headings keep their own rules. */
h1{line-height:1.25;letter-spacing:normal}

.industry-cover.clothing-cover{object-position:85% center}@media(min-width:1100px){.industry-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.industry-grid .industry-body{padding:24px 20px}}@media(min-width:768px) and (max-width:1099px){.industry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Original bridal wallet artwork and one-second flap motion. */
.motion-wallet{width:18px;height:18px;flex-shrink:0;overflow:visible;vertical-align:middle}
.wallet-playing .wallet-flap{transform-origin:19px 14px;animation:demo-flap 1s ease both}
@keyframes demo-flap{0%,100%{transform:scaleX(1)}45%,70%{transform:scaleX(.65)}}
@media(prefers-reduced-motion:reduce){.wallet-playing .wallet-flap{animation:none}}

/* API settings follow the existing administrative workspace components. */
.api-admin-panel{padding:0;background:transparent}.api-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:24px}.api-heading h2{margin:0 0 6px}.api-heading p{margin:0}.api-heading>button{min-height:38px;font-size:13px;padding:8px 16px;flex-shrink:0}.api-tabs{display:flex;gap:10px;margin-bottom:24px}.api-tabs button{font-size:14px;min-height:40px;padding:9px 20px}.api-content{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr);gap:24px;align-items:start}.api-form-column{min-width:0}.api-form-column .panel{margin-bottom:20px}.api-form-column h3,.api-explanation h3{font-size:18px;margin-bottom:20px}.api-form-column label{display:block;font-size:14px;color:#55555b;margin:18px 0 8px}.api-form-column input:not([type=checkbox]),.api-form-column select{display:block;width:100%;font-size:14px;margin-top:8px}.api-form-column .api-enable{display:flex;align-items:center;gap:8px}.api-enable input{width:18px;height:18px;accent-color:var(--color-primary);margin:0}.api-row{display:flex;align-items:flex-end;gap:12px}.api-row label{flex:1;min-width:0;margin-top:0}.api-row>button{min-height:44px;padding:10px 14px;font-size:13px;white-space:nowrap;margin-bottom:8px}.api-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.api-form-column details{margin-top:20px;font-size:14px}.api-form-column summary{cursor:pointer;color:#55555b}.api-form-column .hint{font-size:12px}.api-explanation{position:static;width:auto;inset:auto;display:block;border:0}.api-explanation p{font-size:13px;line-height:1.85}.api-status{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.api-form-column .actions{margin-top:20px}@media(max-width:1050px){.api-content{grid-template-columns:minmax(0,1fr)}}@media(max-width:767px){.api-heading{align-items:flex-start}.api-field-grid{grid-template-columns:1fr;gap:0}.api-content{gap:0}.api-form-column .panel{padding:24px}.api-row{flex-wrap:wrap}.api-row label{flex-basis:100%}}
/* Assistant Markdown; user messages retain their literal whitespace. */
.message.assistant .message-content{white-space:normal;overflow-wrap:anywhere;min-width:0}
.message.assistant .message-content>:first-child{margin-top:0}.message.assistant .message-content>:last-child{margin-bottom:0}
.message.assistant .message-content p{color:inherit;font-size:inherit;line-height:inherit;margin:0 0 16px}
.message.assistant .message-content :is(h1,h2,h3,h4,h5,h6){color:inherit;font-weight:600;letter-spacing:0;line-height:1.5;margin:28px 0 12px}
.message.assistant .message-content h1{font-size:24px}.message.assistant .message-content h2{font-size:21px}.message.assistant .message-content h3{font-size:18px}.message.assistant .message-content :is(h4,h5,h6){font-size:16px}
.message.assistant .message-content :is(ul,ol){padding-left:26px;margin:12px 0 20px}.message.assistant .message-content li{padding-left:3px;margin:6px 0}.message.assistant .message-content li>p{margin:6px 0}
.message.assistant .message-content blockquote{margin:16px 0;padding:2px 16px;border-left:3px solid var(--color-border);color:var(--color-muted)}
.message.assistant .message-content a{color:var(--color-primary);text-decoration:underline;text-underline-offset:3px}
.message.assistant .message-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.88em;background:#f5f5f7;padding:2px 5px;border-radius:5px}
.message.assistant .message-content pre{max-width:100%;overflow-x:auto;padding:16px;background:#f5f5f7;border-radius:12px;white-space:pre;line-height:1.6}.message.assistant .message-content pre code{padding:0;background:none}
.message.assistant .message-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:16px 0;font-size:14px}.message.assistant .message-content :is(th,td){border:1px solid var(--color-border);padding:8px 12px;text-align:left}.message.assistant .message-content th{background:#f5f5f7;font-weight:600}.message.assistant .message-content hr{border:0;border-top:1px solid var(--color-border);margin:24px 0}.message.assistant .message-content input[type=checkbox]{min-height:0;width:14px;height:14px;padding:0;margin-right:6px}
.icon-tooltip{position:fixed;z-index:200;max-width:calc(100vw - 16px);padding:6px 10px;border-radius:7px;background:#242426;color:white;font-size:12px;font-weight:400;line-height:18px;white-space:nowrap;pointer-events:none;box-shadow:0 2px 8px #0001}
.history-group-label{font-size:11px;color:var(--color-muted);padding:14px 12px 5px}.history-item:focus-within .history-delete,.history-delete[aria-expanded=true]{opacity:1}.history-menu{position:fixed;z-index:150;width:172px;padding:5px;border:1px solid #e5e5e9;border-radius:12px;background:white;box-shadow:0 8px 30px #0002}.history-menu button{display:flex;width:100%;justify-content:flex-start;border:0;border-radius:8px;padding:9px 10px;min-height:38px;font-size:13px;gap:10px}.history-menu .ui-icon{width:16px;height:16px}.history-menu .danger{color:var(--color-danger)}
.message.assistant .message-content .answer-table{margin:18px 0;max-width:100%;min-width:0;border:1px solid #e5e5ea;border-radius:12px;overflow:hidden}.message.assistant .message-content .answer-table table{margin:0;border:0;line-height:1.65}.message.assistant .message-content .answer-table :is(th,td){min-width:100px;max-width:560px;padding:12px 16px;white-space:normal;overflow-wrap:anywhere}.message.assistant .message-content .answer-table th{background:#f5f5f7}.message.assistant .message-content .answer-table td{vertical-align:top}
.message.assistant .message-content .answer-table{overflow-x:auto}.message.assistant .message-content .answer-table table{display:table;width:100%;min-width:480px}

/* The initial HTML mirrors the empty conversation before scripts and account data arrive. */
.skeleton-block{display:block;position:relative;overflow:hidden;background:#eeeef1;border-radius:7px}
.skeleton-block::after{content:'';position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,#ffffffa6 50%,transparent 80%);transform:translateX(-100%);animation:startup-shimmer 1.6s ease-in-out infinite}
@keyframes startup-shimmer{to{transform:translateX(100%)}}
.loading-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.startup-nav{display:flex;flex-direction:column;align-items:center;gap:48px;padding-top:18px}.skeleton-nav-icon{width:22px;height:24px;border-radius:7px}
.skeleton-side-row{display:flex;align-items:center;gap:10px;min-height:44px;padding:11px 12px}.skeleton-side-icon{width:18px;height:18px;flex-shrink:0}.skeleton-side-label{width:76px;height:12px}.skeleton-side-label.short{width:56px}
.startup-history{display:grid;gap:27px;padding:14px 12px}.skeleton-history-line{width:86%;height:12px}.skeleton-history-line:nth-child(2n){width:64%}.skeleton-history-line:last-child{width:74%}
.boot-loading .account{opacity:1}.boot-loading .avatar{background:#eeeef1}.boot-loading #accountLabel>strong,.boot-loading #accountLabel>small{color:transparent;background:#eeeef1;border-radius:5px;width:88px;height:12px;margin-block:5px}.boot-loading #accountLabel>small{width:60px;height:10px}.boot-loading .account-more{visibility:hidden}
.skeleton-greeting{display:flex;align-items:center;justify-content:center;height:30px;margin-bottom:26px}.skeleton-greeting>.skeleton-block{width:224px;max-width:70%;height:26px}
.is-empty .skeleton-composer{height:80px;min-height:80px}.skeleton-input{width:150px;max-width:65%;height:14px;margin-top:10px;background:#e7e7eb}.skeleton-send{position:absolute;right:16px;bottom:16px;width:36px;height:36px;border-radius:50%;background:#e3e3e8}
.skeleton-suggestion{position:relative;min-width:0;min-height:66px;padding:13px 26px 10px 32px}.skeleton-suggestion-icon{position:absolute;left:2px;top:13px;width:20px;height:20px}.skeleton-suggestion-title{width:96px;max-width:80%;height:13px;margin-bottom:10px}.skeleton-suggestion-text{width:100%;height:11px}
@media(max-width:767px){.skeleton-greeting>.skeleton-block{width:192px;height:22px}}

/* Sidebar group headings stay quiet; conversation titles use readable body text. */
#chatSubnav .sidebar-section-title{margin:18px 12px 3px;font-size:11px;line-height:16px;font-weight:500;color:#86868b;letter-spacing:.3px}
#chatSubnav .agent-nav-entry span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-heading,.history-group-label{font-size:11px;line-height:16px;font-weight:500;color:#86868b;letter-spacing:.3px}
.history-item>button:first-child{font-size:13px;line-height:20px;font-weight:400;color:var(--color-text)}
.agent-nav-avatar{display:block;width:20px;height:20px;flex:0 0 20px;object-fit:cover;border-radius:6px}
.chat-page[data-kind=agent] .chat-suggestion{padding-left:12px}
.sidebar-search{flex-shrink:0;color:var(--color-muted);width:36px;height:36px;min-height:36px;padding:8px;line-height:0}.sidebar-search>[data-icon]{display:grid;place-items:center;width:18px;height:18px;line-height:0}.sidebar-search .ui-icon{display:block;width:18px;height:18px;vertical-align:initial}
dialog:has(#conversationSearchInput){width:min(640px,calc(100vw - 32px));padding:24px}.conversation-search-field{display:flex;align-items:center;gap:10px;margin-top:20px;padding:0 14px;background:#f5f5f7;border:1px solid #e5e5ea;border-radius:12px;color:#86868b}.conversation-search-field input{width:100%;border:0;background:transparent;padding:12px 0;outline:none;font-size:14px}.conversation-search-field:focus-within{outline:2px solid #9fc0ff;outline-offset:2px}.conversation-search-results{margin-top:14px;max-height:min(52dvh,460px);overflow-y:auto}.conversation-search-result{display:flex;width:100%;gap:12px;text-align:left;justify-content:flex-start;align-items:flex-start;padding:12px;border:0;border-radius:10px;min-height:64px;background:transparent}.conversation-search-result>svg,.conversation-search-result>img{width:20px;height:20px;object-fit:cover;border-radius:6px;flex-shrink:0;margin-top:2px}.conversation-search-result>span{min-width:0;flex:1}.conversation-search-result strong{display:block;font-size:14px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.conversation-search-result small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.6;color:#6e6e73;margin-top:4px;white-space:pre-line}.conversation-search-result em{display:block;font-size:11px;font-style:normal;color:#86868b;margin-top:4px}.search-status{font-size:13px;text-align:center;padding:24px 10px;color:#86868b;margin:0}

.agent-unavailable{color:#777;text-align:center;font-size:14px;margin:0 0 12px}.composer textarea:disabled{cursor:not-allowed;color:#888}

.conversation-history-state{display:flex;align-items:center;justify-content:center;gap:10px;min-height:200px;color:#73737c;font-size:14px}.conversation-history-state[role=alert]{flex-direction:column}.conversation-history-state p{margin:0}.conversation-history-state button{font-size:13px;min-height:38px;padding:8px 18px}

/* Action feedback belongs to the affected record or control, without blocking navigation. */
.history-operation{padding:9px 12px;margin:5px 0;color:var(--color-muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.history-operation>span{display:block}.history-operation button{padding:5px 9px;min-height:32px;margin-top:5px;font-size:12px;border-radius:8px}
button[aria-busy=true]{cursor:progress}

/* Bridal custom-image loading: full preview wave field and explicit time estimate. */
.image-output .image-generation-stage{position:relative;width:100%;max-width:100%;min-width:0;min-height:220px;max-height:calc(100dvh - 250px);border:1px solid #eaeaf1;border-radius:18px;background:#f8f8fa;overflow:hidden}
.image-output .dot-generation{position:absolute;inset:0;display:block;background:#fcfcfc;padding:24px;overflow:hidden}
.image-output .dot-generation h2{position:absolute;top:24px;left:24px;right:24px;margin:0;font-size:18px;font-weight:400;line-height:1.5;color:#656565}
.image-output .generation-dots{display:block;position:absolute;top:70px;left:24px;width:calc(100% - 48px);height:calc(100% - 98px)}
.image-output .generation-dots.is-static-fallback{background-image:radial-gradient(circle,#4d6feb80 1.3px,transparent 1.6px);background-size:16px 16px}
.image-output .dot-estimate{position:absolute;right:24px;bottom:20px;padding:8px 17px;border-radius:32px;border:1px solid #e4e4e4;background:#fff;color:#656565;font-size:12px;line-height:1.6}
.image-output .dot-estimate b{font-size:20px;font-weight:500;font-variant-numeric:tabular-nums;margin-left:4px}
@media(max-width:767px){.image-output .image-generation-stage{max-height:550px}}

/* Reply failures use compact actions, independently of form and payment errors. */
.reply-error{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;margin:10px 0 0;color:var(--color-danger);font-size:13px;line-height:20px;white-space:normal;overflow-wrap:anywhere}
.reply-error>span{min-width:0;max-width:100%}
.reply-error.is-stopped{color:var(--color-muted)}
.reply-retry{flex:0 0 auto;min-height:32px;height:32px;padding:4px 8px;gap:4px;border:0;border-radius:8px;background:transparent;color:var(--color-muted);font-size:13px;line-height:20px;white-space:nowrap}
.reply-retry .ui-icon{width:14px;height:14px}
.reply-retry:hover:not(:disabled){background:#f5f5f7;color:var(--color-text)}
.reply-retry:active:not(:disabled){background:#eeeef1}
.chat-followups{width:min(780px,100%);margin:0 auto 14px}.chat-followups[hidden]{display:none}.chat-followup-heading{margin:0 0 10px;font-size:12px;line-height:1.5;color:#808590;font-weight:500;letter-spacing:.02em}.chat-followup-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.chat-followup-options button{min-width:0;min-height:40px;padding:9px 12px;border:1px solid #e5e8ef;border-radius:12px;font:inherit;font-size:12px;line-height:1.5;background:#f7f8fa;color:#626976;opacity:.48;cursor:pointer;text-align:left;transition:opacity .18s ease,background .18s ease,border-color .18s ease}.chat-followup-options button:not(:disabled):hover,.chat-followup-options button:focus-visible,.chat-followup-options button.selected{opacity:1;background:#eef5ff;border-color:#bed7fb;color:#006eec}.chat-followup-options button:focus-visible{outline:2px solid #83b6fa;outline-offset:2px}.chat-followup-options button:disabled{cursor:default}@media(max-width:767px){.chat-followup-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.chat-followup-options button{min-height:44px;padding:9px 10px;font-size:11px}.chat-followups{margin-bottom:12px}}@media(prefers-reduced-motion:reduce){.chat-followup-options button{transition:none}}
@media(max-width:767px){.reply-retry{min-height:44px;height:44px}}
@media(pointer:coarse){.reply-retry{min-height:44px;height:44px}}

.message.assistant .message-content .answer-table th.answer-table-title{text-align:left;font-weight:600;max-width:none;white-space:normal;overflow-wrap:anywhere}

.answer-table-block{margin:18px 0;min-width:0}.message.assistant .message-content .answer-table-block .answer-table{margin:0}.answer-table-toolbar{display:flex;justify-content:flex-end;margin-bottom:4px}.answer-table-export{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:8px;background:transparent;color:var(--color-muted);font-size:13px;line-height:20px;min-height:32px;padding:4px 8px}.answer-table-export .ui-icon{width:16px;height:16px}.answer-table-export:hover:not(:disabled){background:#f5f5f7;color:var(--color-text)}@media(max-width:767px),(pointer:coarse){.answer-table-export{min-height:44px}}

.billing-offer{margin:0 0 24px;padding:18px 22px;border-radius:16px;background:#eef5ff;color:var(--color-text)}.billing-offer p{margin:8px 0}.billing-offer b{font-variant-numeric:tabular-nums}.billing-original{font-size:13px;color:var(--color-muted)}.billing-recommended{display:inline-block;padding:4px 10px;border-radius:20px;background:#eef5ff;color:#006be6;font-size:12px}.package h1{margin-top:12px}

/* A single scrolling detail column keeps agents and conversations together. */
#sidebarScroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:transparent transparent;scrollbar-gutter:stable;margin-right:-8px;padding-right:2px}
#sidebarScroll:hover,#sidebarScroll:focus-within{scrollbar-color:#c5c5c9 transparent}
#sidebarScroll::-webkit-scrollbar{width:6px}
#sidebarScroll::-webkit-scrollbar-track{background:transparent}
#sidebarScroll::-webkit-scrollbar-thumb{background:transparent;border-radius:999px}
#sidebarScroll:hover::-webkit-scrollbar-thumb,#sidebarScroll:focus-within::-webkit-scrollbar-thumb{background:#c5c5c9}
#sidebarScroll::-webkit-scrollbar-thumb:hover{background:#a3a3a8}
#sidebarScroll #history{overflow:visible;flex:none}
body[data-section=chat] #sidebarScroll #chatSubnav{display:contents}
body[data-section=chat] #chatSubnav>button:first-child{position:sticky;top:0;z-index:2;background:#fff;box-shadow:0 5px 0 #fff;margin-bottom:5px}
body[data-section=chat] #chatSubnav>button:first-child:hover{background:#f5f5f7}
#sidebarScroll #chatSubnav .agent-nav-entry{margin-bottom:5px}
@media(hover:none){#sidebarScroll{scrollbar-color:#c5c5c9 transparent}#sidebarScroll::-webkit-scrollbar-thumb{background:#c5c5c9}}
/* Bridal feature navigation shares the production shell. */
.bridal-selector{display:block;margin:8px 10px 18px}.bridal-selector select{width:100%;min-height:46px;border:1px solid #ddd;border-radius:10px;padding:0 12px;background:#f7f7f8;color:#222}body[data-section="industry"] #chatSubnav a{display:flex;align-items:center;gap:10px;padding:13px 12px;margin:3px 8px;width:auto;min-width:0;border-radius:10px;color:inherit;text-decoration:none}body[data-section="industry"] #chatSubnav a.active{background:#ededf0}#bridal-workspace{display:block;min-width:0}body[data-section="industry"] #main:has(#bridal-workspace){padding:0}

.account-trial{margin-top:16px;padding-top:14px;border-top:1px solid #eeeef2}.account-trial>div{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#6e6e73}.account-trial strong{font-size:15px;font-weight:600;color:#1d1d1f}.account-trial p{margin:6px 0 0;font-size:12px;line-height:20px;color:#86868b}.trial-purchase-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.trial-purchase-actions button{min-height:44px}

#modal.account-ledger-dialog{width:min(720px,calc(100vw - 32px))}.account-ledger-loading{display:flex;align-items:center;gap:10px}.account-ledger-scroll{max-width:100%;max-height:380px;overflow:auto;overscroll-behavior:contain;margin-top:18px;border:1px solid #eeeef2;border-radius:12px}.account-ledger-scroll:focus-visible{outline:2px solid #0071e3;outline-offset:3px}.account-ledger-scroll table{width:100%;min-width:500px;border-collapse:collapse;font-size:13px}.account-ledger-scroll th,.account-ledger-scroll td{padding:12px 14px;text-align:left;border-bottom:1px solid #eeeef2;vertical-align:top}.account-ledger-scroll th{position:sticky;top:0;background:#f5f5f7;color:#6e6e73;font-weight:500;white-space:nowrap}.account-ledger-scroll td:last-child{white-space:nowrap;color:#6e6e73}.account-ledger-scroll tr:last-child td{border-bottom:0}.account-ledger-pages{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.account-ledger-pages button{min-height:44px}

/* Login-device controls reuse the account dialog and keep long lists scrollable. */
#modal:has([data-account-sessions]){width:min(640px,calc(100vw - 32px))}
[data-account-sessions]{min-width:0}
[data-account-sessions] .account-sessions-intro{margin:8px 0 22px;color:var(--color-muted)}
.account-sessions-loading{display:flex;align-items:center;gap:10px;min-height:120px;color:var(--color-muted)}
.account-sessions-scroll{max-height:min(50dvh,420px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;border:1px solid #e8e8ed;border-radius:16px;scrollbar-width:thin}
.account-sessions-scroll:focus-visible{outline:2px solid var(--color-primary);outline-offset:3px}
.account-sessions-list{list-style:none;padding:0;margin:0}
.account-session-row{display:flex;align-items:center;gap:16px;padding:18px 20px;border-bottom:1px solid #eeeef2}
.account-session-row:last-child{border-bottom:0}
.account-session-detail{flex:1;min-width:0;overflow-wrap:anywhere}
.account-session-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;font-size:15px;line-height:22px}
.account-session-heading strong{font-weight:550}
.account-session-current{flex-shrink:0;padding:2px 8px;border-radius:8px;background:#eaf6ee;color:#27824c;font-size:11px;line-height:20px;white-space:nowrap}
[data-account-sessions] .account-session-os{margin:4px 0 10px;color:var(--color-muted);font-size:13px;line-height:20px}
.account-session-detail dl{margin:0;font-size:12px;line-height:20px;color:var(--color-muted)}
.account-session-detail dl>div{display:flex;flex-wrap:wrap;gap:4px 12px}
.account-session-detail dt,.account-session-detail dd{margin:0;font-weight:400}
.account-session-revoke{min-height:44px;padding:9px 14px;flex-shrink:0;font-size:13px;border-radius:10px}
[data-account-sessions] .account-sessions-help{color:var(--color-muted);font-size:12px;line-height:20px;margin:12px 0}
.account-sessions-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:20px}
.account-sessions-actions button,.account-sessions-confirm-actions button,.account-sessions-error button{min-height:44px;padding:10px 16px;border-radius:12px;font-size:13px}
.account-sessions-bulk{color:var(--color-danger)}
[data-account-sessions] .account-sessions-notice{padding:10px 12px;margin:0 0 14px;border-radius:12px;background:#eef5ff;color:#275f9f;font-size:13px;line-height:20px}
.account-sessions-error{padding:12px 0}.account-sessions-error p,.account-sessions-confirm-error{color:var(--color-danger);overflow-wrap:anywhere}
.account-sessions-empty{padding:28px 18px;margin:0!important;text-align:center;color:var(--color-muted)}
.account-sessions-confirm{padding-top:8px}.account-sessions-confirm h3{margin:0 0 12px;font-size:18px;line-height:26px}.account-sessions-confirm p{overflow-wrap:anywhere}
.account-sessions-confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.account-sessions-confirm-actions .primary{width:auto;margin:0;background:var(--color-danger);min-height:44px;font-size:14px}
@media(max-width:767px){.account-session-row{padding:16px 14px;gap:10px;align-items:flex-start}.account-session-heading{font-size:14px}.account-session-revoke{padding-inline:12px}.account-sessions-scroll{max-height:50dvh}.account-session-detail dl>div{display:block;margin-top:4px}.account-sessions-actions{gap:8px}.account-sessions-actions button{flex:1;min-width:0;padding-inline:10px}.account-sessions-confirm-actions button{flex:1}.account-sessions-confirm-actions .primary{width:auto}}

#chatSubnav .detail-record[aria-current="true"]{background:var(--hover,#eeeef0);color:var(--text,#202124)}

.history-item .history-task-status{font-size:11px;line-height:1.5;color:#777b87}.history-item .history-task-status[data-state="pending"],.history-item .history-task-status[data-state="submitting"]{color:#3478d5}.history-item .history-task-status[data-state="succeeded"]{color:#4c8065}.history-item .history-task-status[data-state="failed"]{color:#a45646}.chat-task-confirm{padding:12px 20px;color:var(--muted,#777);font-size:13px}.chat-task-confirm button{min-height:40px;padding:8px 18px}

/* Approved sidebar typography: variant D. Only the secondary navigation. */
#sidebarScroll{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;-webkit-font-smoothing:antialiased}
#chatSubnav .sidebar-section-title,.history-heading,.history-group-label,#chatSubnav .detail-label{font-size:14px;line-height:20px;font-weight:600;letter-spacing:0;color:#666}
#chatSubnav .sidebar-section-title,#chatSubnav .detail-label{margin:23px 12px 8px}
.history-group-label{padding:23px 12px 8px}
#chatSubnav>a,#chatSubnav>button{font-size:14px;font-weight:400;line-height:20px;padding:9px 12px;min-height:40px;border-radius:8px}
.history-item{margin-bottom:2px;border-radius:8px}
.history-item>button:first-child{font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0;color:#242424;padding:9px 30px 9px 12px;min-height:38px;border-radius:8px}
.history-item>button:first-child>small{display:none}
.history-item.current,#chatSubnav>a.active{background:#ededed}
.history-item:hover,#chatSubnav>a:hover,#chatSubnav>button:hover{background:#f1f1f1}

/* Approved D spacing refinement: secondary sidebar only. */
#chatSubnav .sidebar-section-title,#chatSubnav .detail-label{margin:28px 12px 10px}
.history-group-label{padding:28px 12px 10px}
.history-heading{margin-bottom:10px;padding-top:28px}
.history-item>button:first-child{min-height:40px;padding:10px 30px 10px 12px;line-height:20px}
.history-item{margin-bottom:2px}
#chatSubnav>a,#chatSubnav>button{min-height:40px;padding:10px 12px;line-height:20px;gap:10px}
#sidebarScroll #chatSubnav .agent-nav-entry{margin-bottom:2px}

/* Route feedback is rendered before any network or feature-module wait. */
.route-skeleton{max-width:1280px;margin:auto;padding:24px 0}.route-skeleton h1{font-size:28px;margin:0 0 28px}.route-studio-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.route-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.route-skeleton-card{background:#fff;border-radius:24px;padding:28px;min-width:0}.route-placeholder{display:block;border-radius:10px;margin-bottom:22px}.route-line{height:18px;width:70%}.route-line.short{width:44%}.route-box{height:360px;width:100%;border-radius:18px}.route-upload{height:290px}.route-input{height:160px}.route-price{height:48px;width:65%;margin:36px 0}.route-pill{height:48px;border-radius:28px;width:100%}.route-row{height:46px;width:100%;margin-bottom:16px}.route-skeleton-tabs{display:flex;gap:12px;flex-wrap:wrap}.route-skeleton-tabs .route-pill{width:130px}.route-option{width:70px;height:70px}.route-plan-grid .route-skeleton-card{min-height:510px}@media(max-width:700px){.route-studio-grid,.route-plan-grid{grid-template-columns:1fr;gap:16px}.route-skeleton{padding:12px 0}.route-skeleton h1{font-size:24px;margin-bottom:20px}.route-skeleton-card{padding:20px;border-radius:20px}.route-box,.route-upload{height:260px}.route-plan-grid .route-skeleton-card{min-height:360px}}@media(prefers-reduced-motion:reduce){.route-skeleton .skeleton-block,.works-skeleton .skeleton-block{animation:none!important}}

.route-skeleton .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}

body[data-section=chat] .chat-page.is-empty[data-kind="chat"] .chat-home{display:none}

@media(max-width:767px){
 body[data-section=billing] #sidebar{width:var(--rail-width);padding:0}
 body[data-section=billing] #sidebar :is(.sidebar-detail-heading,#sidebarScroll,#chatSubnav,.history-heading,#history){display:none!important}
}

@media(max-width:767px){body[data-section=billing].menu-open .mobile-nav-close{top:auto;bottom:76px;right:8px}}
/* Account membership: thin ring and centered grade pill. */
#sidebar .account[data-tier]{position:relative;height:52px;min-height:52px;--tier-ring:#a1a1aa;--tier-bg:#f1f1f3;--tier-fg:#52525b;--tier-badge:#e4e4e7;--tier-label:#3f3f46}
#sidebar .account[data-tier=go]{--tier-ring:#1677ff;--tier-bg:#eaf3ff;--tier-fg:#0667ed;--tier-badge:#0875ff;--tier-label:#fff}
#sidebar .account[data-tier=plus]{--tier-ring:#9567ee;--tier-bg:#f1eaff;--tier-fg:#6d28d9;--tier-badge:#7134dc;--tier-label:#fff}
#sidebar .account[data-tier=pro]{--tier-ring:#c79534;--tier-bg:#fff5dd;--tier-fg:#956419;--tier-badge:#d9b25f;--tier-label:#3e2b0a}
#sidebar .account[data-tier] .avatar{position:relative;overflow:visible;box-sizing:border-box;width:36px;height:36px;flex:0 0 36px;margin-bottom:7px;border:1px solid var(--tier-ring);box-shadow:inset 0 0 0 2px #fff;background:var(--tier-bg);color:var(--tier-fg);font-size:12px;font-weight:600;padding-bottom:3px}
#sidebar .account .account-tier-badge{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);box-sizing:border-box;min-width:30px;height:18px;padding:0 6px;border:2px solid #fafafa;border-radius:999px;background:var(--tier-badge);color:var(--tier-label);font-size:10px;line-height:14px;font-weight:600;white-space:nowrap;pointer-events:none}
#sidebar .account:focus-visible{outline:2px solid #1677ff;outline-offset:3px}
/* Compact real trial countdown in the existing account menu. */
#accountMenu .account-trial-countdown{margin:4px 8px 8px;padding:10px 12px;background:#f6f6f8;border-radius:10px}
#accountMenu .account-trial-caption{font-size:12px;color:#777780}
#accountMenu .account-trial-time{font-size:16px;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:.2px;margin-top:3px;color:#252528}
#accountMenu .account-trial-countdown.is-expired .account-trial-time{font-size:12px;font-weight:400;color:#666}

/* Suppress empty-chat edge bounce without clipping long forms or messages. */
@media(max-width:767px){
html:has(body.chat-route),body.chat-route{overscroll-behavior-y:none}
.chat-page.is-empty{overscroll-behavior-y:none}
/* Pull-to-refresh feedback stays inside the empty chat viewport. */
.chat-page.is-empty[data-kind="chat"]{position:relative}
.chat-pull-refresh{
 position:absolute;z-index:1;top:0;left:50%;
 transform:translate(-50%,var(--chat-pull-offset,0px));
 padding:7px 12px;border-radius:20px;background:#eef5ff;color:#075dbb;
 font-size:13px;white-space:nowrap;pointer-events:none;
}
.chat-page.is-empty[data-kind="chat"] .chat-dock{
 transform:var(--chat-pull-dock-transform,none);
}
.page-header #headerNewChat.header-login{width:auto;min-width:88px;height:44px;min-height:44px;padding:0 22px;border:1px solid var(--color-primary);border-radius:999px;background:var(--color-primary);color:#fff;font-size:16px;font-weight:600;line-height:22px;white-space:nowrap}
.page-header #headerNewChat.header-login:hover{background:var(--color-primary-hover);border-color:var(--color-primary-hover)}
.page-header #headerNewChat.header-login:active{background:var(--color-primary-pressed);border-color:var(--color-primary-pressed)}
.page-header #headerNewChat.header-login .header-new-label{display:inline}
.page-header #headerNewChat.header-login .ui-icon{display:none}
}

/* Mobile-only primary navigation; desktop sidebar and chat DOM stay intact. */
.mobile-chat-tabs,.mobile-agent-library,.mobile-agent-context{display:none}
@media(max-width:767px){
 .page-header.has-mobile-chat-tabs{position:relative;border-bottom:1px solid #f0f0f2}
 .page-header.has-mobile-chat-tabs #breadcrumb{display:none}
 .mobile-chat-tabs{position:absolute;left:50%;top:10px;transform:translateX(-50%);height:44px;display:flex;align-items:stretch;gap:2px;padding:3px;background:#f1f4f8;border-radius:14px}
 .mobile-chat-tabs button{position:relative;min-width:66px;min-height:0;padding:0 8px;border:0;border-radius:11px;background:transparent;color:#77777e;font-size:15px;font-weight:500;white-space:nowrap}
 .mobile-chat-tabs button[aria-selected="true"]{color:#075dbb;font-weight:650;background:#fff;box-shadow:0 1px 3px #152e4818}
 .mobile-library-open #main{display:none}
 .mobile-agent-library{display:block;height:calc(100dvh - 64px);overflow:auto;overscroll-behavior-y:none;background:#fff}
 .mobile-agent-library-content{padding:36px 24px max(32px,env(safe-area-inset-bottom));max-width:600px;margin:0 auto}
 .mobile-agent-library-content h1{font-size:24px;font-weight:650;line-height:1.4;letter-spacing:0;margin:0 0 6px}
 .mobile-agent-library-content>p{font-size:15px;line-height:1.6;color:#77777e;margin:0}
 .mobile-agent-list{margin-top:22px}
 .mobile-agent-item{display:flex;align-items:center;gap:16px;min-height:90px;padding:14px 0;border-bottom:1px solid #e8e8ed;color:var(--color-text)}
 .mobile-agent-item:active{background:#f7f9fc}
 .mobile-agent-avatar{flex:0 0 54px;width:54px;height:54px;border-radius:15px;background:#eef5ff;display:grid;place-items:center;overflow:hidden}
 .mobile-agent-avatar img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
 .mobile-agent-avatar>.ui-icon{width:32px;height:32px;color:var(--color-primary)}
 .mobile-agent-item:nth-child(2) .mobile-agent-avatar{background:#f3edff}
 .mobile-agent-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}
 .mobile-agent-copy strong{font-size:17px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
 .mobile-agent-copy>span{font-size:14px;line-height:1.6;color:#77777e;overflow-wrap:anywhere}
 .mobile-agent-item>.ui-icon{width:18px;height:18px;color:#929297;flex:0 0 18px}
 .mobile-agent-empty{padding:24px 0;font-size:15px}
 .page-header > button.mobile.icon-button{place-items:center;padding:0;background:#f1f4f8;color:#28384c;border:1px solid #e4eaf1;border-radius:12px}
 .page-header > button.mobile.icon-button > span{display:flex}
 .page-header > button.mobile.icon-button .ui-icon{width:22px;height:22px}
 .page-header > button.mobile.icon-button:is(:active,[aria-expanded="true"]){background:#e4edf8;color:#075dbb}
 .mobile-agent-context{display:flex;align-items:center;gap:12px;height:52px;padding:0 16px;background:#f8fafc;border-bottom:1px solid #e9edf3}
 .mobile-agent-context button{display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 9px;border:0;border-radius:10px;background:transparent;color:#075dbb;font-size:13px;font-weight:550;flex-shrink:0}
 .mobile-agent-context button:active{background:#e4edf8}
 .mobile-agent-context button .ui-icon{width:16px;height:16px}
 .mobile-agent-context>span{min-width:0;padding-left:12px;border-left:1px solid #dce4ed;font-size:15px;font-weight:650;color:var(--color-text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .chat-route.mobile-agent-detail .shell main{height:calc(var(--viewport-height,100dvh) - 116px)}
}
@media(max-width:360px){
 .page-header #headerNewChat.header-login{min-width:64px;padding-inline:14px;font-size:14px}
 .mobile-chat-tabs{gap:2px}.mobile-chat-tabs button{min-width:62px;font-size:16px;padding-inline:6px}
 .mobile-agent-library-content{padding-inline:20px;padding-top:30px}
 .mobile-agent-item{gap:12px}.mobile-agent-avatar{width:52px;height:52px;flex-basis:52px;border-radius:15px}
 .mobile-agent-copy strong{font-size:16px}.mobile-agent-copy>span{font-size:13px}
}
