/* Shared cabinet design, loaded after the original functional components. */
:root,body{--bg:#ffffff;--bg-2:#fff;--bg-3:#f3f4f6;--ink:#20242c!important;--muted:#656d79;--line:#e9ebef;--accent:#cf4828!important;--accent-2:#cf4828!important;--font:Manrope,"Helvetica Neue",sans-serif;--display:Manrope,"Helvetica Neue",sans-serif;--sidebar-w:236px}
body.chat-body{font-family:var(--font)!important;background:var(--bg)!important;color:var(--ink)!important}button,input,textarea,select{font-family:inherit}button,a,input,textarea,summary{touch-action:manipulation}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #245bb3;outline-offset:3px}button:disabled{cursor:not-allowed}.chat-main,.chat-content,.chat-header{background:var(--bg)!important}.chat-sidebar{background:#f8f9fb!important;border-right:1px solid var(--line)!important}.chat-sidebar__brand{height:96px;padding:25px 24px}.chat-logo__img{width:137px!important;height:38px!important}.sidebar-section-label{margin:26px 24px 12px;font-size:9px;letter-spacing:1.4px;font-weight:700;color:#858c98}.chat-modes{padding:0 12px;gap:6px}.chat-modes__btn{min-height:49px;border:1px solid transparent;border-radius:8px!important;gap:13px;padding:10px 14px;color:#525b69;background:transparent;font-weight:500}.chat-modes__btn:hover{background:#eff1f5}.chat-modes__btn.is-active{background:#fff!important;color:#bd3c21!important;border-color:#e5e8ed!important;box-shadow:0 2px 5px #20242c04}.chat-modes__icon{background:transparent!important;border:0!important;color:inherit!important;width:23px;height:26px}.chat-modes__label{font-size:13px}.chat-sidebar__profile{padding:16px 18px;border-top:1px solid var(--line)}.profile-login-btn{border-radius:8px;background:#20242c!important;border:0!important;min-height:46px;font-weight:600;font-size:13px;width:100%}.profile-login-btn:hover{background:#40453d!important}.sidebar-note{margin:20px 18px 10px;padding:16px;border:1px solid #d9dbd1;border-radius:9px;color:#5e6458}.sidebar-note>span{font-size:11px;font-weight:700;color:#3c4435}.sidebar-note p{font-size:11px;line-height:1.7;margin:9px 0 12px}.sidebar-note a{font-size:11px;display:flex;justify-content:space-between;align-items:center;min-height:32px;text-decoration:underline;text-underline-offset:4px}.cabinet-home{font-size:12px;color:#6b7380;padding:12px 24px;min-height:44px}.chat-header{min-height:80px;padding:18px 36px;border-bottom:1px solid var(--line)!important;gap:16px}.cabinet-breadcrumb{font-size:12px;color:#7b8390;white-space:nowrap}.cabinet-breadcrumb>span{margin:0 12px;color:#b1b6bf}.cabinet-breadcrumb strong{color:#303744;font-weight:600}.chat-header__right{gap:20px}.cabinet-preview{font-size:10px;color:#846747;background:#f0eadf;border-radius:4px;padding:5px 9px}.chat-support-btn{font-size:12px;color:#535d6b!important;min-height:44px;padding:8px 12px;border:1px solid #e5e8ed;border-radius:7px}.chat-support-btn:hover{background:#f3f4f7}.chat-messages{padding:32px 40px 20px}.chat-messages:not(:has(.msg)){justify-content:center}.chat-empty.cabinet-welcome{display:block;width:100%;max-width:880px;padding:16px 0;margin:auto}.cabinet-welcome .chat-empty__copy{min-width:0;max-width:100%;width:100%;text-align:left}.cabinet-eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:#a84730;margin:0 0 18px}.chat-empty h1{font-family:var(--font);font-weight:500!important;font-size:clamp(28px,3vw,42px);letter-spacing:-1.7px!important;color:#20242c!important;line-height:1.15;margin:0 0 15px}.chat-empty__lead{font-size:13px;line-height:1.8;max-width:590px;color:#656d79!important;margin:0 0 34px}.cabinet-examples-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin:0 0 14px;font-size:12px;font-weight:600}.cabinet-examples-head span+span{font-size:10px;color:#7c8490;font-weight:400}.cabinet-examples{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cabinet-example{padding:0 0 14px;text-align:left;border:1px solid #e5e8ed;border-radius:10px;overflow:hidden;background:#fff;transition:transform .18s,border-color .18s;min-width:0}.cabinet-example:hover{transform:translateY(-3px);border-color:#b17d68}.cabinet-example img{display:block;width:100%;height:174px;object-fit:cover;object-position:center 43%}.example-meta{display:flex;justify-content:space-between;gap:8px;font-size:9px;color:#7b7e73;margin:13px 14px 7px}.example-meta>span{font-size:14px;color:#a94e36}.cabinet-example strong{display:block;font-size:12px;font-weight:600;margin:0 14px;line-height:1.5}.cabinet-example-note{font-size:10px;color:#77808e;margin:13px 0 0;line-height:1.6}.chat-composer-wrap{padding:12px 40px max(24px,env(safe-area-inset-bottom));background:var(--bg)}.cabinet-input-label{display:block;max-width:880px;margin:0 auto 10px;font-size:12px;font-weight:600}.chat-composer{max-width:880px;border:1px solid #dfe3e9!important;box-shadow:0 6px 24px #20242c05!important;background:#fff!important;border-radius:12px!important;padding:14px;gap:12px}.chat-composer:focus-within{border-color:#b16a52!important;box-shadow:0 0 0 3px #cf482810!important}.chat-composer textarea{min-width:0;min-height:72px;max-height:160px;font-size:14px;line-height:1.65;padding:8px 2px;color:#20242c}.chat-composer textarea::placeholder{color:#8a929e}.chat-attach-btn{width:44px;height:44px;min-width:44px;border-radius:7px;background:#f3f5f8!important;color:#667180!important}.chat-send-btn{width:44px;height:44px;min-width:44px;border-radius:8px;background:#cf4828!important;color:white!important;box-shadow:none!important}.chat-send-btn:hover{background:#96311d!important}.composer-help{max-width:880px;margin:11px auto 0;font-size:10px;line-height:1.5;color:#7d8592;text-align:center}.chat-pin{max-width:880px}.writing-sample{display:flex;align-items:center;height:174px;padding:24px;background:#ebe9df;font-family:Georgia,serif;font-size:30px;color:#605f46}.cabinet-example--text:nth-child(2) .writing-sample{background:#e6ebe4;color:#53664f}.cabinet-example--text:nth-child(3) .writing-sample{background:#f1e5dc;color:#9d5538}.chat-new-btn{background:#fff;border:1px solid #d9dbd0;color:#3b4434;border-radius:7px;min-height:44px;box-shadow:none}.chat-list__empty{color:#777e6f;font-size:11px;line-height:1.7}.msg__bubble{border-radius:12px}.audio-layout{flex:1;min-height:0;height:auto;padding:32px;gap:24px;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.audio-studio,.audio-library,.settings-card{background:#fff!important;border:1px solid #e5e8ed!important;border-radius:12px;box-shadow:none}.audio-studio{padding:28px}.audio-studio__title,.audio-library__head h2,.chat-settings__title{font-family:var(--font);color:#20242c;font-weight:500;letter-spacing:-.8px}.audio-studio__title{font-size:30px}.audio-studio__lead{font-size:12px;line-height:1.8;color:#717b89}.audio-field__label{font-size:12px}.audio-field input,.audio-field textarea,.auth-form input{border-color:#e0e4eb;background:#ffffff;border-radius:7px;font-size:14px}.audio-seg{background:#f2f4f7;border-radius:7px;padding:4px;gap:4px}.audio-seg__btn{min-height:40px;border-radius:5px;font-size:12px}.audio-seg__btn.is-active{background:#fff!important;color:#9f3c25!important;box-shadow:0 1px 4px #20242c10}.audio-chip{border-color:#d7dccf!important;border-radius:5px;font-size:11px;min-height:36px}.audio-submit,.btn-primary{background:#cf4828!important;border-color:#cf4828!important;border-radius:8px;box-shadow:none;min-height:48px}.audio-library{padding:24px;background:#f8f9fb!important}.audio-library__empty{color:#6b7482;line-height:1.8;padding:48px 16px}.audio-library__head h2{font-size:19px}.audio-form__hint{color:#717b89;font-size:11px}.audio-library__refresh{min-width:44px;min-height:44px}.modal__panel{background:#ffffff!important;border:1px solid #e5e8ed;border-radius:16px;box-shadow:0 20px 80px #20242c26!important}.auth-hero h2,.auth-title{font-family:var(--font);letter-spacing:-1px}.auth-sso__btn{background:#fff!important;border:1px solid #e5e8ed;border-radius:8px;box-shadow:none}.auth-submit{background:#cf4828!important;border-radius:8px;box-shadow:none!important}.modal__close{width:44px;height:44px}.chat-settings{padding:36px}.chat-settings__inner{max-width:760px}.settings-card{padding:24px}.artcookie__card{background:#fff!important;border-color:#e5e8ed!important;box-shadow:0 4px 24px #20242c0d!important}.artcookie__btn{background:#cf4828!important}
@media(max-width:1100px){:root{--sidebar-w:210px}.chat-header{padding:16px 24px}.chat-messages{padding:24px}.chat-composer-wrap{padding-inline:24px}.cabinet-example img,.writing-sample{height:142px}.cabinet-example strong{font-size:11px}.cabinet-examples{gap:12px}.sidebar-note{margin-inline:12px;padding:12px}.audio-layout{padding:24px;grid-template-columns:1fr}.audio-studio{overflow:visible}.audio-library{min-height:210px}}
@media(max-width:768px){.chat-header{min-height:68px;padding:10px 16px;gap:8px}.chat-header__left{gap:8px}.chat-header__right{gap:8px}.cabinet-breadcrumb{font-size:11px}.cabinet-breadcrumb>span{margin:0 6px}.cabinet-preview{display:none}.chat-burger{width:44px;height:44px}.chat-messages{padding:28px 22px 16px}.chat-empty.cabinet-welcome{padding:0}.chat-empty h1{font-size:34px}.chat-empty__lead{margin-bottom:28px}.chat-composer-wrap{padding:12px 22px max(18px,env(safe-area-inset-bottom))}.chat-sidebar__brand{padding:24px;height:85px}.sidebar-section-label{margin-top:20px}.chat-sidebar{box-shadow:none}.chat-app.is-sidebar-open .chat-sidebar{box-shadow:12px 0 35px #20242c1a}.audio-layout{padding:20px}.audio-studio{padding:22px}.chat-main:has(.chat-settings) .cabinet-breadcrumb{display:block}}
@media(max-width:480px){.chat-header{padding-inline:10px}.chat-support-btn{padding:8px 10px;font-size:11px}.chat-messages{padding:24px 18px 14px}.chat-empty h1{font-size:29px;letter-spacing:-1.2px!important;line-height:1.18}.cabinet-eyebrow{font-size:9px;margin-bottom:13px}.chat-empty__lead{font-size:12px;line-height:1.7;margin-bottom:24px}.cabinet-examples-head{display:block;font-size:12px;margin-bottom:12px}.cabinet-examples-head span+span{display:block;margin-top:5px}.cabinet-examples{grid-template-columns:1fr;gap:10px}.cabinet-example{display:grid;grid-template-columns:80px 1fr;grid-template-rows:auto auto;padding:0 12px 0 0;column-gap:12px;align-items:center;min-height:80px}.cabinet-example img,.writing-sample{grid-row:1/3;width:80px;height:90px;border-radius:0;object-fit:cover}.example-meta{margin:12px 0 2px;font-size:9px;align-self:end}.cabinet-example strong{margin:0 0 12px;align-self:start;font-size:12px}.cabinet-example-note{font-size:9px;margin-top:12px}.chat-composer-wrap{padding:10px 14px max(12px,env(safe-area-inset-bottom))}.cabinet-input-label{font-size:11px;margin-bottom:7px}.chat-composer{padding:10px;gap:7px;flex-wrap:wrap;position:relative}.chat-composer textarea{order:-1;flex:1 0 100%;min-height:56px;max-height:112px;font-size:16px;padding:3px}.chat-send-btn{margin-left:auto}.chat-attach-btn,.chat-send-btn{width:40px;height:44px;min-width:44px}.composer-help{font-size:9px;margin-top:7px;text-align:left}.writing-sample{font-size:17px;padding:10px}.audio-layout{padding:16px;gap:16px}.audio-studio{padding:20px 16px}.audio-studio__title{font-size:27px}.audio-field input,.audio-field textarea{font-size:16px}.chat-settings{padding:20px 16px}.settings-card{padding:18px}.cabinet-breadcrumb{font-size:10px}.artcookie__card{padding:14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.artcookie__link{color:#a43f29!important}
@media(max-width:1100px){.chat-app[data-chat-mode="audio"] .chat-main{overflow:hidden}.audio-layout{display:block;overflow:auto;flex:1;min-height:0}.audio-studio,.audio-library{height:auto;max-height:none;min-height:initial;overflow:visible}.audio-library{margin-top:20px}.audio-library__list{max-height:none;overflow:visible}}
.cabinet-close-menu{display:none}
@media(max-width:768px){.cabinet-close-menu{display:grid;place-items:center;margin-left:auto;width:44px;height:44px;font-size:25px;border-radius:7px}.cabinet-close-menu:hover{background:#e1e2d9}}
.px-support-modal__panel{background:#ffffff;border:1px solid #e5e8ed;border-radius:14px;font-family:var(--font);color:#20242c}.px-support-modal__title{font-family:var(--font);font-weight:600;letter-spacing:-.6px}.px-support-modal__panel [data-support-close]{min-height:44px}.px-support-step[data-support-step="preview"]>button{background:#cf4828;color:#fff;border-radius:8px;padding:12px 24px}
/* Practical photo tasks, based on common editing scenarios. */
.photo-tasks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.photo-task{text-align:left;background:#fff;border:1px solid #e5e8ed;border-radius:10px;padding:19px 20px 15px;display:grid;grid-template-columns:1fr;align-content:start;min-width:0;transition:border-color .18s,background .18s}.photo-task:hover{border-color:#b8755d;background:#fffaf7}.photo-task__icon{display:flex;align-items:center;margin-bottom:15px;color:#ab452d}.photo-task strong{font-size:14px;font-weight:700;line-height:1.4}.photo-task__description{font-size:12px;line-height:1.65;color:#68717e;margin-top:7px;min-height:40px}.photo-task__action{border-top:1px solid #f3f4f7;padding-top:10px;margin-top:15px;display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7b6457}.photo-task__action>span{font-size:16px}.photo-task-guidance{color:#68717e;font-size:11px;line-height:1.7;margin:16px 0 0;max-width:700px}.cabinet-welcome:has(.photo-tasks) .chat-empty__lead{margin-bottom:25px}
@media(max-width:1100px){.photo-task{padding:15px}.photo-task strong{font-size:13px}.photo-task__description{font-size:11px}}
@media(max-width:580px){.photo-tasks{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.photo-task{padding:14px 12px 11px}.photo-task__icon{margin-bottom:12px}.photo-task strong{font-size:13px}.photo-task__description{font-size:11px;min-height:54px}.photo-task__action{font-size:9px;margin-top:12px}.photo-task-guidance{font-size:10px;margin-top:13px}.cabinet-welcome:has(.photo-tasks) .chat-empty__lead{margin-bottom:20px}}
/* Compact task chooser; overflowing welcome content must remain reachable. */
.chat-messages:not(:has(.msg)){justify-content:flex-start}.chat-empty.cabinet-welcome{flex-shrink:0}
.chat-app[data-chat-mode="image"] .chat-messages{padding-block:18px 12px}
.cabinet-welcome:has(.photo-tasks){padding:0;max-width:880px}
.cabinet-welcome:has(.photo-tasks) .cabinet-eyebrow{margin-bottom:10px}
.cabinet-welcome:has(.photo-tasks) h1{font-size:34px;margin-bottom:10px}
.cabinet-welcome:has(.photo-tasks) .chat-empty__lead{margin-bottom:16px;line-height:1.6;max-width:720px}
.cabinet-welcome:has(.photo-tasks) .cabinet-examples-head{margin-bottom:10px}
.photo-tasks{gap:10px}.photo-task{position:relative;padding:14px;grid-template-columns:22px minmax(0,1fr);column-gap:10px;align-items:center}
.photo-task__icon{margin:0}.photo-task strong{font-size:13px;padding-right:15px}
.photo-task__description{grid-column:1/-1;min-height:0;margin-top:8px;font-size:12px;line-height:1.5}
.photo-task__action{position:absolute;right:12px;top:13px;border:0;padding:0;margin:0;font-size:0}.photo-task__action>span{font-size:16px}
.photo-task-guidance{margin-top:10px;font-size:10px;line-height:1.5}
@media(max-width:580px){.cabinet-welcome:has(.photo-tasks) h1{font-size:27px}.photo-task{padding:12px;column-gap:7px;grid-template-columns:18px minmax(0,1fr)}.photo-task__icon svg{width:18px;height:18px}.photo-task strong{font-size:12px;padding-right:0}.photo-task__action{display:none}.photo-task__description{font-size:11px}.cabinet-welcome:has(.photo-tasks) .chat-empty__lead{margin-bottom:14px}}
@media(max-height:740px) and (min-width:769px){.chat-app[data-chat-mode="image"] .chat-header{min-height:64px;padding-block:10px}.chat-app[data-chat-mode="image"] .chat-composer-wrap{padding-top:8px;padding-bottom:12px}.chat-app[data-chat-mode="image"] .chat-composer textarea{min-height:52px}.chat-app[data-chat-mode="image"] .composer-help{margin-top:7px}.cabinet-welcome:has(.photo-tasks) h1{font-size:30px}.cabinet-welcome:has(.photo-tasks) .cabinet-eyebrow{margin-bottom:7px}}

/* White workspace with restrained coral accents. */
.chat-modes__btn.is-active{background:#fff0e9!important;border-color:#f8ded0!important;color:#ad3b22!important;box-shadow:none}
.chat-modes__btn{border-radius:10px!important}
.chat-support-btn{background:#fff}.chat-support-btn:hover{background:#f5f6f8}
.photo-task{border-radius:12px;box-shadow:0 2px 5px #20242c03;transition:border-color .18s,box-shadow .18s,background .18s}
.photo-task:hover{border-color:#e8b5a3;box-shadow:0 5px 16px #20242c08;background:#fffaf7}
.photo-task__icon{color:#c44a2d}.photo-task__action{color:#9ba3af}
.photo-task:hover .photo-task__action{color:#c44a2d}
.chat-composer{border-radius:16px!important;box-shadow:0 5px 24px #20242c07!important}
.chat-composer:focus-within{border-color:#d88369!important;box-shadow:0 0 0 3px #e9794512,0 5px 24px #20242c07!important}
.chat-attach-btn{border-color:#e9ecf1!important;border-radius:10px}
.chat-send-btn{border-radius:10px}.chat-send-btn:hover{background:#b73c20!important}
.modal__panel,.px-support-modal__panel{background:#fff!important}
.auth-form input{background:#f9fafb}.cabinet-breadcrumb strong{color:#303744}

/* Preview keeps the readable answer and its locked continuation in one card. */
.msg--preview .msg__bubble{overflow:hidden;position:relative;padding-bottom:24px!important}
.answer-preview__blur{position:relative;display:flex;flex-direction:column;gap:12px;margin-top:16px;height:126px;overflow:hidden;filter:blur(4px);user-select:none;pointer-events:none;mask-image:linear-gradient(#0009,#0004 65%,transparent)}
.answer-preview__blur span{display:block;height:9px;flex-shrink:0;border-radius:4px;background:repeating-linear-gradient(90deg,#56606c 0 34px,transparent 34px 40px,#56606c 40px 92px,transparent 92px 100px)}
.answer-preview__gate{position:relative;margin-top:-28px;text-align:center;padding:0 12px;display:flex;align-items:center;flex-direction:column;gap:10px}
.answer-preview__gate strong{font-size:17px;color:#252a32;line-height:1.4}
.answer-preview__note{font-size:13px!important;line-height:1.6!important;color:#7a828f!important;margin:0!important;max-width:340px}
.answer-preview__gate .btn{margin-top:6px;min-height:44px;border-radius:10px;box-shadow:none}
@media(max-width:580px){.answer-preview__gate{padding:0}.answer-preview__gate .btn{width:100%}.answer-preview__blur{height:108px}}
