.text-replace-layer[data-v-d2c3a0cc]{z-index:85}.text-replace-modal[data-v-d2c3a0cc]{width:min(760px,100%)}.text-replace-content[data-v-d2c3a0cc]{display:grid;gap:16px}.text-replace-description[data-v-d2c3a0cc]{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.text-replace-inputs[data-v-d2c3a0cc]{display:grid;grid-template-columns:1fr 1fr;gap:12px}.text-replace-options[data-v-d2c3a0cc]{display:grid;gap:12px}.text-replace-groups[data-v-d2c3a0cc]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.text-replace-group[data-v-d2c3a0cc]{display:flex;min-width:0;align-items:flex-start;gap:9px;padding:10px;border:1px solid var(--line);border-radius:9px;background:var(--panel-soft, #f8fafc);cursor:pointer}.text-replace-group input[data-v-d2c3a0cc],.text-replace-case input[data-v-d2c3a0cc]{margin-top:2px;accent-color:var(--primary)}.text-replace-group span[data-v-d2c3a0cc]{display:grid;min-width:0;gap:3px}.text-replace-group strong[data-v-d2c3a0cc]{color:var(--text);font-size:13px}.text-replace-group small[data-v-d2c3a0cc]{color:var(--muted);font-size:11px;line-height:1.45}.text-replace-case[data-v-d2c3a0cc]{display:inline-flex;width:max-content;align-items:center;gap:7px;color:var(--text);font-size:13px;cursor:pointer}.text-replace-preview[data-v-d2c3a0cc]{overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft, #f8fafc)}.text-replace-preview__head[data-v-d2c3a0cc]{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--line)}.text-replace-preview__head>div[data-v-d2c3a0cc]{display:inline-flex;align-items:center;gap:7px}.text-replace-preview__head span[data-v-d2c3a0cc]{color:var(--muted);font-size:12px}.text-replace-empty[data-v-d2c3a0cc]{margin:0;padding:18px 12px;color:var(--muted);font-size:12px;text-align:center}.text-replace-results[data-v-d2c3a0cc]{display:grid;max-height:min(32vh,300px);overflow-y:auto}.text-replace-result[data-v-d2c3a0cc]{display:grid;gap:6px;padding:10px 12px;border-bottom:1px solid var(--line)}.text-replace-result[data-v-d2c3a0cc]:last-child{border-bottom:0}.text-replace-result>div[data-v-d2c3a0cc]{display:flex;align-items:center;justify-content:space-between;gap:10px}.text-replace-result strong[data-v-d2c3a0cc]{font-size:12px}.text-replace-result span[data-v-d2c3a0cc]{flex:0 0 auto;color:var(--primary);font-size:11px;font-weight:700}.text-replace-result p[data-v-d2c3a0cc]{margin:0;color:var(--muted);font-size:11px;line-height:1.55;overflow-wrap:anywhere}.text-replace-confirm[data-v-d2c3a0cc]{display:grid;gap:12px;padding:12px;border:1px solid #f1c66d;border-radius:9px;background:#fffbeb}.text-replace-confirm p[data-v-d2c3a0cc]{margin:0;color:#854d0e;font-size:12px;line-height:1.6}.text-replace-success[data-v-d2c3a0cc]{margin:0;padding:10px 12px;border:1px solid rgba(22,101,52,.2);border-radius:9px;color:#166534;background:#f0fdf4;font-size:12px;line-height:1.5}.text-replace-actions[data-v-d2c3a0cc]{justify-content:flex-end}@media(max-width:1023px){.text-replace-inputs[data-v-d2c3a0cc],.text-replace-groups[data-v-d2c3a0cc]{grid-template-columns:1fr}.text-replace-content[data-v-d2c3a0cc]{gap:14px}.text-replace-results[data-v-d2c3a0cc]{max-height:28dvh}.text-replace-actions .studio-button[data-v-d2c3a0cc],.text-replace-confirm .studio-button[data-v-d2c3a0cc]{flex:1 1 0}}.update-notice[data-v-6e932c9d]{position:fixed;z-index:300;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:24px}.update-notice__backdrop[data-v-6e932c9d]{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172aad}.update-notice__panel[data-v-6e932c9d]{position:relative;display:flex;flex-direction:column;width:min(720px,100%);max-height:min(800px,calc(100dvh - 48px));overflow:hidden;border:1px solid var(--color-border);border-radius:14px;background:var(--color-surface);box-shadow:0 24px 80px #0f172a47}.update-notice__head[data-v-6e932c9d]{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px 18px;border-bottom:1px solid var(--color-border)}.update-notice__head h2[data-v-6e932c9d]{min-width:0;margin:0;color:var(--color-text);font-size:22px;line-height:1.35;overflow-wrap:anywhere}.update-notice__version[data-v-6e932c9d]{flex:0 0 auto;padding:5px 8px;border-radius:999px;color:var(--color-accent-strong);background:var(--color-accent-soft);font-size:12px;font-weight:700}.update-notice__content[data-v-6e932c9d]{display:grid;flex:1 1 auto;gap:20px;min-height:0;padding:20px 26px 24px;overflow-y:auto}.update-notice__community[data-v-6e932c9d]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px 18px;border:1px solid var(--color-border);border-radius:8px;background:var(--color-surface-muted)}.update-notice__community-copy[data-v-6e932c9d]{min-width:0}.update-notice__community-message[data-v-6e932c9d]{margin:0;color:var(--color-text);font-size:15px;font-weight:600;line-height:1.6}.update-notice__community-message+.update-notice__community-message[data-v-6e932c9d]{margin-top:4px}.update-notice__answer[data-v-6e932c9d]{color:#dc2626;font-weight:800}.update-notice__community-action[data-v-6e932c9d]{display:flex;align-items:center;gap:10px}.update-notice__copy[data-v-6e932c9d]{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 15px;border:1px solid var(--color-accent);border-radius:6px;color:var(--color-accent-strong);background:var(--color-surface);font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}.update-notice__copy[data-v-6e932c9d]:hover{color:#fff;background:var(--color-accent)}.update-notice__copy[data-v-6e932c9d]:focus-visible,.update-notice__close[data-v-6e932c9d]:focus-visible{outline:none;box-shadow:var(--shadow-focus)}.update-notice__copy-hint[data-v-6e932c9d]{display:inline-flex;align-items:center;gap:4px;color:var(--color-text-muted);font-size:12px;white-space:nowrap}.update-notice__copy-status[data-v-6e932c9d]{margin:-14px 0 -6px;color:var(--color-accent-strong);font-size:13px;font-weight:700}.update-notice__updates[data-v-6e932c9d]{display:grid;gap:12px}.update-notice__updates-head[data-v-6e932c9d]{display:flex;align-items:center;justify-content:space-between;gap:12px}.update-notice__updates-head h3[data-v-6e932c9d]{display:flex;align-items:center;gap:8px;margin:0;color:var(--color-text);font-size:19px;line-height:1.4}.update-notice__updates-head>span[data-v-6e932c9d]{flex:0 0 auto;color:var(--color-text-muted);font-size:12px}.update-notice__item[data-v-6e932c9d]{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:14px;padding:16px;border:1px solid var(--color-border);border-radius:8px}.update-notice__item--image[data-v-6e932c9d]{background:#f3f0ff}.update-notice__item-icon[data-v-6e932c9d]{display:grid;width:40px;height:40px;place-items:center;border-radius:8px}.update-notice__item--image .update-notice__item-icon[data-v-6e932c9d]{color:#6b4bb4;background:#e9ddff}.update-notice__item-copy[data-v-6e932c9d]{min-width:0}.update-notice__item-category[data-v-6e932c9d]{display:inline-flex;align-items:center;width:fit-content;margin-bottom:8px;padding:4px 8px;border-radius:4px;font-size:12px;font-weight:800;line-height:1.3}.update-notice__item--image .update-notice__item-category[data-v-6e932c9d]{color:#5b3d98;background:#e9ddff}.update-notice__item p[data-v-6e932c9d]{margin:0;color:var(--color-text);font-size:15px;font-weight:500;line-height:1.7;overflow-wrap:anywhere}.update-notice__footer[data-v-6e932c9d]{display:flex;flex:0 0 auto;justify-content:flex-end;padding:14px 26px 20px;border-top:1px solid var(--color-border)}.update-notice__close[data-v-6e932c9d]{min-width:96px;min-height:40px;padding:0 18px;border:0;border-radius:6px;color:#fff;background:var(--color-accent);font-weight:700;cursor:pointer}.update-notice__close[data-v-6e932c9d]:hover{background:var(--color-accent-strong)}@media(max-width:640px){.update-notice[data-v-6e932c9d]{align-items:end;padding:10px}.update-notice__panel[data-v-6e932c9d]{width:100%;max-height:calc(100dvh - 20px);border-radius:14px 14px 10px 10px}.update-notice__head[data-v-6e932c9d]{gap:10px;padding:18px 18px 14px}.update-notice__head h2[data-v-6e932c9d]{font-size:20px}.update-notice__content[data-v-6e932c9d]{gap:16px;padding:16px 18px 20px}.update-notice__community[data-v-6e932c9d]{grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}.update-notice__community-message[data-v-6e932c9d]{font-size:14px}.update-notice__community-action[data-v-6e932c9d]{justify-content:space-between}.update-notice__updates-head h3[data-v-6e932c9d]{font-size:17px}.update-notice__item[data-v-6e932c9d]{grid-template-columns:36px minmax(0,1fr);gap:10px;padding:13px}.update-notice__item-icon[data-v-6e932c9d]{width:36px;height:36px}.update-notice__item p[data-v-6e932c9d]{font-size:14px}.update-notice__footer[data-v-6e932c9d]{padding:12px 18px 16px}.update-notice__close[data-v-6e932c9d]{width:100%}}@media(max-width:360px){.update-notice[data-v-6e932c9d]{padding:6px}.update-notice__panel[data-v-6e932c9d]{max-height:calc(100dvh - 12px)}.update-notice__head[data-v-6e932c9d],.update-notice__content[data-v-6e932c9d]{padding-right:14px;padding-left:14px}.update-notice__community-action[data-v-6e932c9d]{gap:8px}.update-notice__copy[data-v-6e932c9d]{gap:7px;padding:0 11px;font-size:15px}.update-notice__footer[data-v-6e932c9d]{padding-right:14px;padding-left:14px}}:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;--color-canvas: #f3f4f6;--color-surface: #ffffff;--color-surface-muted: #f8fafc;--color-text: #1f2937;--color-text-muted: #667085;--color-border: #d0d5dd;--color-accent: #13795b;--color-accent-strong: #0f684d;--color-accent-soft: #e7f6ef;--color-sidebar: #20252b;--color-sidebar-text: #e5e7eb;--color-sidebar-muted: #aeb6c2;--color-warning: #b54708;--sidebar-width: 228px;--sidebar-collapsed-width: 68px;--topbar-height: 60px;--mobile-nav-height: 68px;--radius-sm: 4px;--radius-md: 8px;--shadow-focus: 0 0 0 3px rgb(19 121 91 / 18%)}html,body,#app{width:100%;min-width:320px;height:100%;margin:0}body{overflow:hidden;color:var(--color-text);background:var(--color-canvas)}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:none;box-shadow:var(--shadow-focus)}.workspace-shell{width:100%;height:100dvh;min-height:0;background:var(--color-canvas)}.workspace-shell--desktop{display:grid;grid-template-columns:auto minmax(0,1fr)}.workspace-shell--mobile{display:grid;grid-template-rows:56px minmax(0,1fr) var(--mobile-nav-height)}.workspace-main{display:grid;min-width:0;min-height:0;grid-template-rows:var(--topbar-height) minmax(0,1fr)}.workspace-content{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain}.workspace-content--mobile{padding-bottom:env(safe-area-inset-bottom)}.app-sidebar{display:grid;width:var(--sidebar-width);min-width:var(--sidebar-width);min-height:0;grid-template-rows:var(--topbar-height) minmax(0,1fr) 56px;color:var(--color-sidebar-text);background:var(--color-sidebar);contain:layout paint}.app-sidebar--collapsed{width:var(--sidebar-collapsed-width);min-width:var(--sidebar-collapsed-width)}.app-sidebar__brand{display:flex;align-items:center;min-width:0;padding:0 18px;gap:10px;border-bottom:1px solid rgb(255 255 255 / 8%)}.app-sidebar__brand-mark{display:grid;width:32px;height:32px;flex:0 0 32px;place-items:center;border-radius:var(--radius-sm);color:#10231d;background:#75d4ae;font-size:15px;font-weight:800}.app-sidebar__brand-name{overflow:hidden;font-size:15px;font-weight:700;white-space:nowrap}.app-sidebar__nav{display:flex;min-height:0;padding:12px 10px;overflow-y:auto;flex-direction:column;gap:4px}.app-sidebar__link{display:flex;min-width:0;min-height:42px;align-items:center;padding:0 12px;gap:10px;border-radius:var(--radius-sm);color:var(--color-sidebar-muted);text-decoration:none}.app-sidebar__link svg{flex:0 0 auto}.app-sidebar__link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.app-sidebar__link:hover{color:var(--color-sidebar-text);background:#ffffff12}.app-sidebar__link.router-link-active{color:#fff;background:#75d4ae29}.app-sidebar__toggle{align-self:center;justify-self:center;color:var(--color-sidebar-muted)}.icon-button{display:inline-grid;width:36px;height:36px;padding:0;place-items:center;border:0;border-radius:var(--radius-sm);color:inherit;background:transparent;cursor:pointer}.icon-button:hover{background:#1f293714}.app-topbar{display:flex;min-width:0;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--color-border);background:var(--color-surface)}.app-topbar__heading{display:flex;min-width:0;align-items:center;gap:8px}.app-topbar__heading h1{overflow:hidden;margin:0;font-size:17px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.app-topbar__menu{margin-left:-8px}.mobile-nav{display:flex;min-width:0;padding-bottom:env(safe-area-inset-bottom);overflow-x:auto;border-top:1px solid var(--color-border);background:var(--color-surface);scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav__link{display:flex;min-width:68px;min-height:60px;flex:1 0 68px;align-items:center;justify-content:center;gap:4px;color:var(--color-text-muted);font-size:10px;text-decoration:none;flex-direction:column}.mobile-nav__link span{max-width:62px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-nav__link.router-link-active{color:var(--color-accent-strong);background:var(--color-accent-soft)}.feature-placeholder{width:min(100%,1120px);min-height:100%;margin:0 auto;padding:36px clamp(20px,4vw,52px)}.feature-placeholder__eyebrow{margin-bottom:8px;color:var(--color-accent-strong);font-size:12px;font-weight:700}.feature-placeholder h2{margin:0;font-size:24px;line-height:1.3}.feature-placeholder p{max-width:680px;margin:10px 0 0;color:var(--color-text-muted);line-height:1.7}.feature-placeholder__grid{display:grid;margin-top:32px;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.skeleton-block{min-height:180px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface)}.skeleton-block--short{min-height:112px}@media(max-width:767px){.app-topbar{padding:0 16px}.app-topbar__heading h1{font-size:16px}.feature-placeholder{padding:24px 16px}.feature-placeholder h2{font-size:20px}.feature-placeholder__grid{margin-top:24px;grid-template-columns:minmax(0,1fr);gap:12px}.skeleton-block{min-height:132px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.card-editor-page,.worldbook-page,.history-page{width:min(100%,1440px);min-height:100%;margin:0 auto;padding:28px clamp(16px,3vw,40px) 56px}.module-toolbar{display:flex;min-width:0;align-items:flex-end;justify-content:space-between;padding-bottom:20px;gap:20px;border-bottom:1px solid var(--color-border)}.module-toolbar h2{margin:0;font-size:24px;line-height:1.25}.module-eyebrow{margin:0 0 6px;color:var(--color-accent-strong);font-size:12px;font-weight:700}.toolbar-actions{display:flex;min-width:0;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.tool-button,.text-action,.icon-text-button{min-height:36px;padding:7px 12px;border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text);background:var(--color-surface);cursor:pointer;font-size:13px}.tool-button:hover,.text-action:hover,.icon-text-button:hover{border-color:var(--color-accent);color:var(--color-accent-strong)}.tool-button--primary{border-color:var(--color-accent-strong);color:#fff;background:var(--color-accent-strong)}.tool-button--full{width:100%}.toolbar-status{color:var(--color-text-muted);font-size:13px}.form-error{margin:16px 0 0;padding:10px 12px;border-left:3px solid #c43232;color:#a12727;background:#fff1f1}.card-editor-layout{display:grid;min-width:0;margin-top:24px;grid-template-columns:220px minmax(0,1fr);gap:24px}.editor-identity-panel{align-self:start;padding:16px;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface)}.avatar-frame{width:100%;aspect-ratio:1;margin-bottom:12px;overflow:hidden;border-radius:var(--radius-md);background:var(--color-surface-muted)}.avatar-frame img{display:block;width:100%;height:100%;object-fit:cover}.card-editor-main{min-width:0}.editor-section{padding:20px 0 24px;border-bottom:1px solid var(--color-border)}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.section-heading h3{margin:0;font-size:17px}.section-heading span{color:var(--color-text-muted);font-size:12px}.field-grid{display:grid;min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}.field-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-field{display:flex;min-width:0;flex-direction:column;gap:6px;color:var(--color-text-muted);font-size:12px}.form-field--wide{grid-column:1 / -1}.form-field--inline{flex-direction:row;align-items:center;gap:8px}.form-field input,.form-field textarea,.form-field select,.repeat-row textarea{width:100%;min-width:0;padding:9px 10px;border:1px solid var(--color-border);border-radius:var(--radius-sm);outline:none;color:var(--color-text);background:var(--color-surface);resize:vertical}.form-field input:focus,.form-field textarea:focus,.form-field select:focus,.repeat-row textarea:focus{border-color:var(--color-accent);box-shadow:var(--shadow-focus)}.depth-grid{display:grid;grid-template-columns:140px 180px minmax(0,1fr);gap:14px}.repeat-list{display:grid;gap:12px}.repeat-row{display:grid;align-items:start;grid-template-columns:minmax(0,1fr) auto;gap:8px}.empty-hint,.module-empty-state p{margin:0;color:var(--color-text-muted)}.worldbook-summary{display:flex;padding:14px 0;color:var(--color-text-muted);font-size:13px;gap:18px}.worldbook-list,.history-list-new{display:grid;min-width:0;gap:10px}.worldbook-entry,.history-character-new{overflow:hidden;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface)}.worldbook-entry--active,.history-character-new--active{border-color:var(--color-accent)}.worldbook-entry__header{display:grid;width:100%;min-width:0;min-height:54px;align-items:center;padding:10px 14px;grid-template-columns:46px minmax(120px,220px) minmax(0,1fr) auto;gap:10px;border:0;color:var(--color-text);background:transparent;text-align:left;cursor:pointer}.worldbook-entry__id{color:var(--color-text-muted);font-variant-numeric:tabular-nums}.worldbook-entry__tags{display:flex;min-width:0;overflow:hidden;gap:5px}.worldbook-tag{max-width:130px;padding:3px 7px;overflow:hidden;border-radius:999px;color:var(--color-accent-strong);background:var(--color-accent-soft);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.worldbook-entry__chevron,.history-chevron{color:var(--color-text-muted);font-size:12px}.worldbook-entry__body{display:grid;padding:0 14px 16px;gap:14px;border-top:1px solid var(--color-border)}.worldbook-options{display:flex;align-items:end;flex-wrap:wrap;gap:14px}.toggle-field{display:inline-flex;min-height:36px;align-items:center;gap:6px;color:var(--color-text-muted);font-size:13px}.entry-actions{display:flex;justify-content:flex-end}.icon-text-button--danger{color:#a12727}.module-empty-state{margin-top:20px;padding:42px 20px;border:1px dashed var(--color-border);border-radius:var(--radius-md);text-align:center}.module-empty-state h3{margin:0 0 8px;font-size:16px}.history-character-new__head{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;gap:10px}.history-character-new__toggle{display:flex;min-width:0;align-items:center;padding:0;gap:10px;border:0;color:var(--color-text);background:transparent;text-align:left;cursor:pointer}.history-character-new__toggle img{width:40px;height:40px;flex:0 0 40px;border-radius:var(--radius-sm);object-fit:cover}.history-character-new__toggle span{display:grid;min-width:0;gap:3px}.history-character-new__toggle small,.history-version-row small{color:var(--color-text-muted);font-size:11px}.history-version-list{display:grid;padding:0 14px 12px 64px;gap:6px}.history-version-row{display:flex;min-width:0;align-items:center;justify-content:space-between;padding:8px 10px;border:1px solid var(--color-border);border-radius:var(--radius-sm);gap:8px}.history-version-row--active{border-color:var(--color-accent);background:var(--color-accent-soft)}.history-version-row__open{display:grid;min-width:0;padding:0;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer;gap:3px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.module-toolbar{align-items:flex-start;flex-direction:column}.toolbar-actions{justify-content:flex-start}.card-editor-layout{grid-template-columns:minmax(0,1fr)}.editor-identity-panel{display:grid;align-items:end;grid-template-columns:120px minmax(0,1fr);gap:10px}.avatar-frame{grid-row:span 3;margin:0}.editor-identity-panel .form-field{grid-column:2}.field-grid--three,.depth-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.depth-grid .form-field--wide{grid-column:1 / -1}}@media(max-width:600px){.card-editor-page,.worldbook-page,.history-page{padding:20px 12px 34px}.toolbar-actions{width:100%}.toolbar-actions .tool-button{flex:1 1 auto}.editor-identity-panel,.field-grid,.field-grid--two,.field-grid--three,.depth-grid{grid-template-columns:minmax(0,1fr)}.editor-identity-panel .form-field,.depth-grid .form-field--wide,.form-field--wide{grid-column:auto}.avatar-frame{width:120px;grid-row:auto}.worldbook-entry__header{grid-template-columns:38px minmax(0,1fr) auto}.worldbook-entry__tags{display:none}.history-character-new__head{align-items:flex-start;flex-direction:column}.history-version-list{padding-left:14px}}:root{color-scheme:light;--bg: #f7f9fc;--panel: #ffffff;--soft: #eef3f8;--line: #dbe4ef;--text: #172033;--muted: #667085;--primary: #2563eb;--primary-soft: #dbeafe;--cyan: #06b6d4;--green: #10b981;--amber: #f59e0b;--danger: #ef4444;--shadow-soft: 0 12px 32px rgba(15, 23, 42, .08);--shadow-panel: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 28px rgba(15, 23, 42, .06);--radius: 14px}*{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;min-width:320px;min-height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button{cursor:pointer}@media(min-width:1024px){body{overflow:hidden}}*{scrollbar-width:none;-ms-overflow-style:none}*::-webkit-scrollbar{display:none}.app{min-height:100vh;background:var(--bg)}.topbar{position:sticky;top:0;z-index:30;min-height:64px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;border-bottom:1px solid var(--line);background:#ffffffeb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand__logo{width:42px;height:42px;border-radius:12px;overflow:hidden;background:#fff;box-shadow:0 1px 4px #0f172a14;border:1px solid var(--line);flex:0 0 auto}.brand__logo img{width:100%;height:100%;object-fit:cover;display:block}.brand__copy{min-width:0}.brand__name{font-size:17px;font-weight:700;line-height:1.2}.brand__sub{color:var(--muted);font-size:12px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar__actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr) 390px;grid-template-rows:minmax(0,1fr);align-items:stretch;gap:16px;padding:16px}@media(min-width:1024px){.app{height:100vh;display:flex;flex-direction:column}.workspace{flex:1;min-height:0}}.studio-panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-panel)}.side-panel,.assistant-panel,.main-column{min-height:0}.side-panel,.assistant-panel{display:flex;flex-direction:column;overflow:hidden}.side-panel{padding:16px;gap:16px}.main-column{display:flex;flex-direction:column;gap:12px;min-height:0;overflow:hidden}.editor-panel,.book-panel,.history-panel,.beauty-panel{min-height:0;display:flex;flex-direction:column;overflow:hidden}.book-panel{display:grid;grid-template-rows:auto minmax(0,1fr)}.workspace-switch{flex:0 0 auto;display:inline-flex;align-self:flex-start;gap:6px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:var(--shadow-panel)}.switch-btn{min-width:96px;min-height:36px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-weight:700}.switch-btn.is-active{background:var(--primary);color:#fff}.workspace-panel{display:none;flex:1;min-height:0}.workspace-panel.is-active{display:flex;min-height:0}.studio-label{color:var(--muted);font-size:11px;line-height:1.2;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.panel-title,.panel-header,.assistant-head,.modal__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-header{padding:16px 18px;border-bottom:1px solid var(--line);flex:0 0 auto}.panel-header h1,.panel-header h2,.assistant-head h2,.modal__head h2{margin:4px 0 0;color:var(--text);font-size:17px;line-height:1.2;font-weight:700}.panel-hint{color:var(--muted);font-size:12px;white-space:nowrap}.studio-input,.studio-textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s,background .15s}.studio-input{min-height:42px;padding:9px 12px;font-size:14px}.studio-textarea{padding:12px 13px;line-height:1.65;resize:none;font-size:14px;font-family:JetBrains Mono,Fira Code,Microsoft YaHei,monospace}.studio-input:focus,.studio-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px #2563eb1f}.studio-textarea--large{min-height:100%}.studio-button,.studio-icon-button{display:inline-flex;align-items:center;justify-content:center;border:0;transition:background .15s,border-color .15s,color .15s,box-shadow .15s}.studio-button{gap:8px;min-height:40px;border-radius:12px;padding:9px 15px;font-size:14px;font-weight:600;white-space:nowrap}.studio-button--small{min-height:34px;padding:7px 11px;font-size:13px;border-radius:10px}.studio-button--primary{background:var(--primary);color:#fff;box-shadow:0 1px 2px #0f172a14}.studio-button--primary:hover{background:#1d4ed8}.studio-button--secondary{border:1px solid var(--line);background:#fff;color:var(--text)}.studio-button--secondary:hover{background:var(--soft)}.studio-button--danger{background:#fee2e2;color:#b91c1c}.studio-button--full{width:100%}.studio-icon-button{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--muted);font-size:18px}.studio-icon-button:hover{background:var(--soft);color:var(--text)}.text-button{border:0;background:transparent;color:var(--muted);font-size:13px;padding:4px 6px;border-radius:8px}.text-button:hover{background:var(--soft);color:var(--text)}.text-button--danger{color:#dc2626}.status-pill{display:inline-flex;align-items:center;min-height:30px;padding:6px 11px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.status-pill--ok{background:#ecfdf5;color:#047857}.status-pill--warn{background:#fffbeb;color:#b45309}.avatar-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:14px;background:var(--soft)}.avatar-card__image{aspect-ratio:1 / 1;overflow:hidden;border-radius:13px;border:1px solid var(--line);background:#fff}.avatar-card__image img{width:100%;height:100%;object-fit:cover;display:block}.avatar-card__meta{display:grid;gap:10px;min-width:0}.side-panel__fields{display:grid;gap:12px}.meeting-controls{min-height:0;display:grid;gap:12px}.meeting-add-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.meeting-source{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:13px;background:#fbfdff}.meeting-source__label{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase}.meeting-source__summary{font-weight:800;color:var(--text);line-height:1.4}.meeting-participant-list{display:grid;gap:10px;max-height:min(44vh,480px);overflow:auto}.meeting-participant{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.meeting-participant__body{min-width:0;display:grid;gap:8px}.meeting-participant__head{display:flex;align-items:center;gap:8px;min-width:0}.meeting-participant__title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800;color:var(--text)}.meeting-participant__badge{flex:0 0 auto;padding:2px 7px;border-radius:999px;border:1px solid var(--line);color:var(--muted);background:#f8fafc;font-size:11px;font-weight:800}.meeting-participant__grid{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}.meeting-participant__meta{color:var(--muted);font-size:12px;line-height:1.45}.meeting-auto-summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:end;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.meeting-panel{flex-direction:column;min-height:0}.meeting-actions{display:flex;gap:8px;flex-wrap:wrap}.meeting-panel__body{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:14px}.beauty-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.beauty-workshop{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(220px,1fr) minmax(220px,1fr);gap:12px;padding:0 14px 14px}.beauty-section{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfdff;overflow:hidden}.beauty-section__head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.beauty-section__head h3{margin:2px 0 0;font-size:15px}.beauty-textarea{flex:1;min-height:0;resize:none;font-family:Cascadia Mono,Consolas,monospace}.beauty-code-input,.beauty-regex-area{font-family:Cascadia Mono,Consolas,monospace}.beauty-regex-name-input{color:var(--muted);font-family:Cascadia Mono,Consolas,monospace}.beauty-regex-name-input::placeholder{color:var(--muted);opacity:.72}.beauty-section--regex{overflow:auto}.beauty-regex-area{min-height:88px;resize:vertical}.beauty-regex-options{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.beauty-regex-settings{display:grid;gap:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.beauty-regex-settings__group,.beauty-regex-settings__row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.beauty-regex-settings__group>.studio-label{flex:0 0 72px}.field--compact{gap:5px;min-width:132px}.field--compact .studio-input{min-height:34px}.beauty-error{margin:0;padding:8px 10px;border-radius:10px;background:#fef2f2;color:#b91c1c;font-size:12px;line-height:1.5}.beauty-page-error{margin:0 18px 12px;white-space:pre-line}.beauty-opening-picker-modal{width:min(760px,94vw);max-height:min(820px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.beauty-opening-picker{display:grid;gap:14px;min-height:0;overflow:auto}.beauty-opening-picker__list{display:grid;gap:8px;max-height:min(48vh,480px);overflow:auto}.beauty-opening-picker__item{display:flex;align-items:flex-start;gap:10px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fbfdff;cursor:pointer}.beauty-opening-picker__item.is-selected{border-color:#2563eb8c;background:#eff6ff}.beauty-opening-picker__item>input{margin-top:3px;accent-color:#2563eb}.beauty-opening-picker__body{display:grid;gap:6px;min-width:0;flex:1}.beauty-opening-picker__body strong{font-size:13px}.beauty-opening-picker__body pre{max-height:130px;overflow:auto;margin:0;padding:8px;border-radius:8px;background:#fff;color:var(--text);white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.55}.beauty-opening-picker__position{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:2px}.beauty-opening-picker__position .studio-label{margin-right:4px}.beauty-opening-picker__actions{justify-content:flex-end}.modal.beauty-confirm-layer{z-index:90}.beauty-confirm-modal{width:min(520px,94vw)}.beauty-confirm-modal__content{display:grid;gap:16px}.beauty-confirm-modal__content p{margin:0;white-space:pre-line;line-height:1.65}.beauty-toast{position:fixed;z-index:100;right:22px;bottom:22px;max-width:min(420px,calc(100vw - 44px));padding:11px 14px;border:1px solid rgba(22,101,52,.24);border-radius:9px;background:#f0fdf4;color:#166534;box-shadow:0 12px 30px #0f172a29;font-size:13px;line-height:1.45}.beauty-preview{flex:1;min-height:0;overflow:auto;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff}.beauty-preview-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.preview-mode-toggle{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:#fff}.preview-mode-toggle__btn{min-width:42px;min-height:28px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:12px;font-weight:700}.preview-mode-toggle__btn.is-active{background:var(--primary-soft);color:var(--primary)}.beauty-preview__frame{width:min(100%,390px);height:100%;min-height:320px;display:block;border:0;background:#fff;margin:0 auto}.beauty-preview.is-desktop .beauty-preview__frame{width:1024px;max-width:none;margin:0 auto}.beauty-preview.is-mobile{scrollbar-width:none;-ms-overflow-style:none}.beauty-preview.is-mobile::-webkit-scrollbar{display:none}.beauty-preview-modal{display:flex;flex-direction:column;gap:10px;min-height:min(760px,calc(100vh - 190px))}.beauty-preview-modal__frame{flex:1;width:min(100%,390px);min-height:min(720px,calc(100vh - 230px));border:1px solid var(--line);border-radius:10px;background:#fff;margin:0 auto}.beauty-preview-modal.is-desktop{overflow:auto}.beauty-preview-modal.is-desktop .beauty-preview-modal__frame{width:1024px;max-width:none;margin:0 auto}.beauty-preview-modal.is-mobile{scrollbar-width:none;-ms-overflow-style:none}.beauty-preview-modal.is-mobile::-webkit-scrollbar{display:none}.beauty-preview__plain{margin:0;white-space:pre-wrap;color:var(--text);font:inherit;line-height:1.7}.beauty-preview__empty{height:100%;min-height:120px;display:grid;place-items:center;color:var(--muted);font-size:13px}.script-panel.workspace-panel.is-active{display:grid;grid-template-rows:auto minmax(0,1fr)}.script-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.script-workshop{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.42fr);grid-template-rows:minmax(0,1fr) minmax(190px,.32fr);gap:12px;padding:0 14px 14px}.script-section{min-width:0;min-height:0;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;overflow:hidden}.script-section__head{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.script-section__head h3{margin:2px 0 0;font-size:15px}.script-section--code{grid-column:1;grid-row:1 / span 2}.script-section--meta{grid-column:2;grid-row:1;overflow:auto}.script-section--checks{grid-column:2;grid-row:2}.script-code-area,.script-small-area,.script-json-area{flex:1;min-height:0;resize:none;font-family:Cascadia Mono,Consolas,monospace}.script-code-area{min-height:620px}.script-small-area{min-height:260px}.script-json-area{min-height:96px}.script-field--grow{flex:1;min-height:0}.script-advanced{flex:0 0 auto;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0}.script-advanced summary{cursor:pointer;padding:10px 12px;color:var(--text);font-weight:700;font-size:13px}.script-advanced__body{display:grid;gap:10px;padding:0 12px 12px}.script-check-list{flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:8px}.script-check-item{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:12px;line-height:1.5}.script-check-item strong{color:var(--primary)}.script-check-item--warn strong{color:#b45309}.script-check-item--error strong{color:#b91c1c}.meeting-log{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:12px;padding:4px}.meeting-log__item{width:min(78%,720px);display:grid;gap:5px;line-height:1.6}.meeting-log__name{color:var(--muted);font-size:12px;font-weight:700}.meeting-log__bubble{width:fit-content;max-width:100%;padding:10px 12px;border-radius:13px;border:1px solid var(--line);background:#fff;white-space:pre-wrap}.meeting-log__item--user{align-self:flex-end;justify-items:end}.meeting-log__item--user .meeting-log__bubble{background:#dcfce7;border-color:#bbf7d0}.meeting-log__item--assistant{align-self:flex-start;justify-items:start}.meeting-log__item--assistant .meeting-log__bubble{background:#eff6ff;border-color:#bfdbfe}.meeting-log__item--system{align-self:center;justify-items:center;width:min(90%,640px)}.meeting-log__item--system .meeting-log__bubble{background:#f8fafc;color:var(--muted)}.meeting-composer{display:grid;gap:10px}.meeting-input-wrap{position:relative;min-width:0}.mention-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:20;max-height:min(240px,42vh);overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-panel);padding:6px}.mention-menu__item{width:100%;border:0;border-radius:8px;background:transparent;color:var(--text);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;text-align:left}.mention-menu__item:hover,.mention-menu__item.is-active{background:var(--primary-soft);color:var(--primary)}.mention-menu__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:700}.mention-menu__handle{color:var(--muted);font-size:12px;font-weight:700}.field{display:grid;gap:7px}.field--inline{grid-template-columns:72px 110px;align-items:center;width:fit-content}.field-picker{min-height:0;display:flex;flex-direction:column;gap:10px}.section-list{min-height:0;overflow:auto;display:grid;gap:8px}.tab-btn{width:100%;min-height:40px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);padding:9px 11px;text-align:left;font-weight:600}.tab-btn:hover{background:var(--soft)}.tab-btn.is-active{border-color:var(--primary);background:var(--primary-soft);color:var(--primary)}.fan-source-panel{margin:0 14px 12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;display:grid;gap:10px}.fan-source-panel[hidden]{display:none}.fan-source-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fan-source-panel__head strong{display:block;margin-top:3px;font-size:14px;color:var(--text);overflow-wrap:anywhere}.fan-source-panel__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.fan-source-panel__list{display:grid;gap:8px}.fan-source-file{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fff}.fan-source-file strong,.fan-source-file span{display:block;overflow-wrap:anywhere}.fan-source-file span{margin-top:3px;color:var(--muted);font-size:12px}.fan-source-panel__preview{max-height:150px;overflow:auto;margin:0;padding:10px;border-radius:10px;border:1px solid var(--line);background:#fff;color:var(--muted);white-space:pre-wrap;line-height:1.65;font-size:13px}.fan-workflow{display:grid;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff}.fan-workflow__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fan-workflow__head strong{display:block;margin-top:3px;color:var(--text);font-size:14px;line-height:1.35}.fan-workflow__presets{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.fan-workflow__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.fan-workflow__chunk-grid{display:grid;grid-template-columns:repeat(2,minmax(0,160px));gap:10px}.fan-workflow__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.fan-workflow__status{padding:10px 12px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff;color:#1e3a8a;font-size:12px;line-height:1.55;white-space:pre-wrap}.fan-workflow__status.is-error{border-color:#fecaca;background:#fef2f2;color:#991b1b}.fan-workflow__status.is-done{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.fan-workflow__estimate{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.fan-workflow-stat{min-width:0;padding:9px 10px;border:1px solid var(--line);border-radius:10px;background:#fbfdff}.fan-workflow-stat span,.fan-workflow-stat strong{display:block}.fan-workflow-stat span{color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;line-height:1.2}.fan-workflow-stat strong{margin-top:4px;color:var(--text);font-size:14px;overflow-wrap:anywhere}.fan-model-menu{position:fixed;right:auto;z-index:120;max-width:calc(100vw - 16px)}.fan-dossier-panel{display:grid;gap:10px;padding-top:10px;border-top:1px solid var(--line)}.fan-dossier-panel__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fan-dossier-panel__head strong{display:block;margin-top:3px;color:var(--text);font-size:14px;line-height:1.35}.fan-dossier-panel__stats{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.45}.fan-dossier-panel__select{min-width:0}.fan-dossier-panel .field--inline{grid-template-columns:72px minmax(180px,1fr);width:min(100%,360px)}.fan-dossier-panel__toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;flex-wrap:wrap}.fan-dossier-panel__picker{flex:1 1 320px}.fan-dossier-panel__actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.fan-dossier-panel__editor{min-height:320px;max-height:620px;resize:vertical}@media(max-width:640px){.fan-dossier-panel__head{display:grid}.fan-dossier-panel__actions{justify-content:flex-start}}.fan-workflow__hint{margin:0;color:var(--muted);font-size:12px;line-height:1.55}@media(max-width:1023px){.fan-workflow__grid,.fan-workflow__estimate{grid-template-columns:1fr}.fan-workflow__chunk-grid{grid-template-columns:1fr 1fr}}@media(max-width:640px){.fan-workflow__head{display:grid}.fan-workflow__presets{justify-content:flex-start}.fan-workflow__chunk-grid{grid-template-columns:1fr}}.editor-wrap{flex:1;min-height:0;padding:14px;display:flex}.editor-wrap .studio-textarea{flex:1;min-height:0}.depth-panel{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px;padding:14px}.depth-panel .field:last-child{flex:1;min-height:0}.depth-panel .field:last-child .studio-textarea{flex:1;min-height:0}.creator-meta-panel{flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:12px;padding:14px}.creator-meta-panel .studio-textarea{min-height:auto;resize:vertical}.greeting-panel{flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:12px;padding:14px}.greeting-block,.alternate-greeting{display:grid;gap:10px;border:1px solid var(--line);border-radius:13px;background:#fbfdff;padding:12px}.greeting-block__head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.greeting-textarea{min-height:180px;resize:vertical}.alternate-greeting-list{display:grid;gap:10px}.book-panel.workspace-panel.is-active{display:flex;flex-direction:column;overflow:hidden}.book-panel .entry-list{flex:1;min-height:0;overflow-y:auto;padding:16px}.history-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.history-list{flex:1;min-height:0;overflow:auto;padding:14px;display:grid;align-content:start;gap:12px}.history-character{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.history-character__head{width:100%;min-height:46px;background:#fbfdff;color:var(--text);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 12px 10px 14px;font-weight:800;text-align:left}.history-character__select{min-width:0;border:0;background:transparent;color:var(--text);display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:0;font-weight:800;text-align:left}.history-character__avatar{width:42px;height:42px;border-radius:10px;border:1px solid var(--line);object-fit:cover;background:#fff}.history-character__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-character__count{flex:0 0 auto;color:var(--muted);font-size:12px;font-weight:700}.history-character__delete{min-width:44px;border:1px solid rgba(239,68,68,.24);border-radius:8px;background:#fff5f5;color:#b42318;padding:6px 8px;font-size:12px;font-weight:800}.history-character__delete:hover{background:#fee2e2;border-color:#ef44446b}.history-character.is-active .history-character__head{border-bottom:1px solid var(--line)}.history-versions{display:grid;gap:8px;padding:12px;background:#fff}.history-version{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;padding:9px 10px}.history-version__download{flex:0 0 auto}.history-version.is-current{border-color:var(--primary);background:var(--primary-soft)}.history-version__main{min-width:0;border:0;background:transparent;color:var(--text);display:grid;gap:3px;padding:0;text-align:left}.history-version__main span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:800}.history-version__main small,.history-empty{color:var(--muted);font-size:12px}.worldbook-entry{margin-bottom:8px;border:1px solid var(--line);border-radius:6px;background:#fff;overflow:hidden}.worldbook-entry__head{width:100%;border:0;display:flex;align-items:center;gap:8px;padding:8px 12px;background:#fbfdff;color:var(--text);cursor:pointer;text-align:left}.worldbook-entry__head:hover{background:var(--soft)}.worldbook-entry__drag-handle{display:inline-flex;width:22px;min-width:22px;align-items:center;justify-content:center;color:var(--muted);cursor:grab;touch-action:none}.worldbook-entry__drag-handle:active{cursor:grabbing}.worldbook-entry__id{min-width:35px;color:var(--muted);font-size:11px;flex:0 0 auto}.worldbook-entry--dragging{opacity:.58}.worldbook-entry--drag-over{border-color:var(--primary);box-shadow:0 0 0 2px var(--primary-soft)}.worldbook-entry__title{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.worldbook-entry__tags{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex-wrap:wrap;min-width:0}.worldbook-entry__chevron{color:var(--muted);font-size:11px;flex:0 0 auto}.worldbook-tag{display:inline-flex;align-items:center;min-height:18px;border-radius:3px;background:var(--primary-soft);color:var(--primary);padding:1px 6px;font-size:10px;font-weight:600}.worldbook-tag--more{background:transparent;color:var(--muted)}.worldbook-entry__body{padding:12px;background:var(--bg)}.worldbook-entry__grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.worldbook-field{display:grid;gap:6px;margin-bottom:8px}.worldbook-field span{color:var(--muted);font-size:11px;font-weight:700}.worldbook-field input,.worldbook-field textarea,.worldbook-inline select,.worldbook-inline input{width:100%;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--text);outline:none;font-size:12px}.worldbook-field input{min-height:34px;padding:6px 8px}.worldbook-field textarea{height:250px;padding:8px 10px;line-height:1.55;resize:vertical;font-family:JetBrains Mono,Fira Code,Microsoft YaHei,monospace}.worldbook-entry__options{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:8px}.worldbook-inline,.worldbook-check{display:inline-flex;align-items:center;gap:4px;color:var(--text);font-size:11px}.worldbook-inline select{width:auto;min-height:26px;padding:2px 4px}.worldbook-inline input{width:50px;min-height:26px;padding:2px 4px}.worldbook-check input{width:14px;height:14px;margin:0;accent-color:var(--primary)}.worldbook-field input:focus,.worldbook-field textarea:focus,.worldbook-inline select:focus,.worldbook-inline input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #2563eb1a}.worldbook-entry__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}.worldbook-entry__reorder-actions{display:inline-flex;align-items:center;gap:4px}.worldbook-entry__reorder-actions .studio-icon-button{width:28px;height:28px}.checkline{display:inline-flex;align-items:center;gap:8px;color:var(--text);font-size:13px}.checkline input{width:16px;height:16px;accent-color:var(--primary)}.assistant-head__actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.stream-setting{width:100%;min-height:40px;justify-content:space-between;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600}.stream-setting--inline{width:auto;min-height:34px;padding:7px 10px;white-space:nowrap}.stream-setting--compact{flex:0 0 auto}.assistant-panel{padding:16px;gap:12px}.assistant-mode-pane{flex:1;min-height:0;display:flex;flex-direction:column;gap:12px}.assistant-head{flex:0 0 auto}.beauty-reference-preview{min-height:112px;display:grid;place-items:center;gap:8px;overflow:hidden;border:1px dashed var(--line);border-radius:12px;background:#fff;color:var(--muted);font-size:12px;text-align:center}.beauty-reference-preview img{width:100%;max-height:180px;object-fit:contain;display:block}.beauty-reference-preview span{padding:0 8px 8px;overflow-wrap:anywhere}.beauty-apply-modal{width:min(900px,94vw);max-height:min(760px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.beauty-apply-list{min-height:0;overflow:auto;display:grid;gap:12px;padding:16px}.beauty-apply-item{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.beauty-apply-item__head{justify-content:flex-start}.beauty-apply-item__head strong{margin-left:auto;color:var(--muted);font-size:12px}.beauty-apply-item pre{max-height:220px;overflow:auto;margin:0;padding:10px;border-radius:10px;background:#fff;color:var(--text);white-space:pre-wrap;font-size:12px;line-height:1.55}.beauty-regex-picker-modal{width:min(940px,94vw);max-height:min(780px,92vh);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.beauty-regex-picker-list{min-height:0;overflow:auto;display:grid;gap:10px;padding:4px 2px 2px}.beauty-regex-picker-item{width:100%;display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;color:var(--text);text-align:left}.beauty-regex-picker-item:hover{border-color:#2563eb61;box-shadow:0 10px 24px #0f172a14}.beauty-regex-picker-item__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.beauty-regex-picker-item__head strong{min-width:0;overflow-wrap:anywhere}.beauty-regex-picker-item__head span,.beauty-regex-picker-item__meta{color:var(--muted);font-size:12px}.beauty-regex-picker-item__actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.beauty-regex-picker-item code{display:block;max-width:100%;padding:8px;border-radius:8px;background:#f3f6fb;color:#334155;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.prompt-box{flex:0 0 auto;display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fbfdff}.prompt-box__toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:2px 0;border:0;background:transparent;color:var(--text);text-align:left}.prompt-box__toggle>span{min-width:0;display:grid;gap:4px}.prompt-box__toggle strong{font-size:14px;line-height:1.35}.prompt-box__toggle svg{flex:0 0 auto;color:var(--muted);transition:transform .15s ease}.prompt-box__toggle svg.is-rotated{transform:rotate(180deg)}.prompt-box__body{display:grid;gap:10px}.prompt-box--collapsed{gap:0}.beauty-reference-box .prompt-box__toggle small{color:var(--muted);font-size:11px;line-height:1.4}.beauty-prompt-controls{display:grid;gap:11px}.beauty-prompt-controls .field{min-width:0;gap:8px}.beauty-prompt-actions{justify-content:flex-start;margin-top:2px}.prompt-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.prompt-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.prompt-editor{min-height:150px;max-height:260px;overflow:auto;resize:vertical}.prompt-library{display:grid;gap:12px;max-height:min(70vh,680px);overflow:auto}.prompt-list{display:grid;gap:8px}.prompt-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.prompt-item strong,.prompt-item p{display:block;margin:0}.prompt-item strong{font-size:13px}.prompt-item p{margin-top:4px;color:var(--muted);font-size:11px}.beauty-prompt-editor{display:grid;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.chat-list{flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;gap:10px;padding:4px 0}.message-wrap{display:flex;flex-direction:column;gap:6px}.message-wrap--user{align-items:flex-end}.message-wrap--assistant{align-items:flex-start}.message{max-width:92%;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff;white-space:pre-wrap;line-height:1.65;font-size:13px}.message--user{align-self:flex-end;border-color:#bfdbfe;background:#eff6ff}.message--assistant{align-self:flex-start}.message-meta{color:var(--muted);font-size:10px}.message-edit{width:min(100%,680px);min-width:0;display:grid;gap:8px}.message-edit textarea{min-height:100px;max-height:280px;resize:vertical}.message-edit__actions{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}.chat-message-actions{min-height:30px;display:flex;align-items:center;gap:2px;opacity:.58;transition:opacity .15s ease}.message-wrap:hover .chat-message-actions,.chat-message-actions:focus-within{opacity:1}.chat-message-action{width:30px;height:30px;display:inline-grid;place-items:center;padding:0;border:0;border-radius:6px;background:transparent;color:var(--muted)}.chat-message-action:hover:not(:disabled){background:var(--soft);color:var(--text)}.chat-message-action:disabled{cursor:not-allowed;opacity:.35}@media(hover:none){.chat-message-actions{opacity:.82}}.message-actions{display:flex;gap:8px}.draft-box{flex:0 0 auto;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;padding:12px}.draft-box__grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.draft-box pre{max-height:180px;overflow:auto;margin:10px 0;padding:10px;border-radius:10px;background:#fff;color:var(--muted);white-space:pre-wrap}.pending-box{flex:0 0 auto;border:1px solid #fde68a;background:#fffbeb;border-radius:14px;padding:10px}.pending-toggle{width:100%;min-height:34px;border:0;background:transparent;color:var(--text);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0;font-weight:800;text-align:left}.pending-toggle__meta{flex:0 0 auto;color:#b45309;font-size:12px;font-weight:700}.pending-box__body{max-height:min(34vh,360px);overflow:auto;padding-top:2px}.pending-card{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff}.pending-card__title{font-size:13px;font-weight:700;line-height:1.5;color:var(--text)}.pending-diff{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:8px}.pending-diff__col{min-width:0}.pending-diff__label{margin-bottom:6px;color:var(--muted);font-size:12px;font-weight:700}.pending-card pre{max-height:150px;overflow:auto;margin:8px 0;padding:10px;border-radius:10px;background:#f8fafc;color:var(--muted);white-space:pre-wrap}.pending-version{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:10px 0}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 11px;border:0;border-radius:10px;font-size:13px;font-weight:600}.btn--primary{background:var(--primary);color:#fff}.btn--danger{background:#fee2e2;color:#b91c1c}.button-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.composer{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding-top:12px;border-top:1px solid var(--line)}.composer textarea{min-height:72px;max-height:150px;resize:vertical}.composer__actions{display:flex;flex-direction:column;gap:8px}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;place-items:center;padding:18px}.modal[hidden]{display:none}.modal__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:#0f172a5c;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal__panel{position:relative;width:min(560px,100%);padding:18px}.modal__panel--wide{width:min(1120px,100%)}.modal__head{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:14px}.modal__content{max-height:min(75vh,900px);overflow:auto}.meeting-card-picker{display:grid;gap:12px}.meeting-card-picker__list{max-height:min(58vh,620px);overflow:auto;display:grid;gap:14px;padding-right:2px}.meeting-card-picker__group{display:grid;gap:8px}.meeting-card-picker__group-title{color:var(--muted);font-size:12px;font-weight:800}.meeting-card-option{width:100%;display:grid;grid-template-columns:auto 44px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--text);text-align:left}.meeting-card-option:hover,.meeting-card-option.is-selected{border-color:var(--primary);background:var(--primary-soft)}.meeting-card-character{width:100%;display:grid;grid-template-columns:20px 44px minmax(0,1fr);gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdff;color:var(--text);text-align:left}.meeting-card-character:hover{border-color:var(--primary);background:var(--primary-soft)}.meeting-card-character__arrow{color:var(--muted);font-size:20px;line-height:1;text-align:center}.meeting-card-versions{display:grid;gap:8px;padding-left:34px}.meeting-card-versions .meeting-card-option{background:#fff}.meeting-card-option__avatar{width:44px;height:44px;border-radius:10px;border:1px solid var(--line);object-fit:cover;background:#fff}.meeting-card-option__meta{min-width:0;display:grid;gap:3px}.meeting-card-option__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:800}.meeting-card-option__version,.meeting-card-option__time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:12px;line-height:1.35}.meeting-card-picker__footer{position:sticky;bottom:0;display:flex;justify-content:space-between;gap:12px;align-items:center;padding-top:12px;border-top:1px solid var(--line);background:#fff}.settings-grid{display:grid;gap:13px}.settings-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.status-text{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.model-picker{position:relative}.model-picker__input{padding-right:42px}.model-picker__toggle{position:absolute;top:1px;right:1px;width:40px;height:40px;border:0;border-left:1px solid var(--line);border-radius:0 11px 11px 0;background:#fff;color:var(--muted);font-size:18px}.model-picker__toggle:hover{background:var(--soft);color:var(--text)}.model-picker__list{position:absolute;z-index:80;left:0;right:0;top:calc(100% + 6px);max-height:260px;overflow:auto;padding:6px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-panel)}.model-picker__option{width:100%;min-height:34px;border:0;border-radius:9px;background:transparent;color:var(--text);display:block;padding:7px 9px;text-align:left;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.model-picker__option:hover,.model-picker__option.is-active{background:var(--primary-soft);color:var(--primary)}.model-picker__empty{padding:10px;color:var(--muted);font-size:13px}.doc-copy{display:grid;gap:10px;color:var(--text);line-height:1.7;font-size:14px}.doc-copy p{margin:0}.doc-copy h3{margin:8px 0 0;color:var(--text);font-size:15px;line-height:1.45}.doc-section{display:grid;gap:5px}.doc-section__items{display:grid;gap:5px;margin:0;padding-left:28px}.doc-section__items li{margin:0;padding-left:4px;line-height:1.7}.doc-alert{display:grid;gap:8px;padding:12px 14px;border:1px solid #fecaca;border-radius:12px;background:#fef2f2}.doc-alert strong{color:#b91c1c;font-size:14px;line-height:1.7;font-weight:800}.doc-support{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px 14px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#92400e}.doc-support strong,.doc-support span{display:block}.doc-support strong{font-size:14px;line-height:1.55}.doc-support span{font-size:13px;color:#a16207}.doc-support__code{cursor:pointer;border:1px solid #f59e0b;border-radius:10px;background:#fbbf24;color:#78350f;padding:8px 12px;font:800 14px/1 var(--font, inherit);min-height:36px;white-space:nowrap;box-shadow:0 8px 18px #f59e0b2e}.doc-support__code:hover{background:#f59e0b}.doc-support__tip{grid-column:1 / -1;min-height:18px;font-size:13px;color:#15803d}.proposal-preview{display:grid;gap:12px}.proposal-preview-modal{display:flex;max-height:calc(100dvh - 36px);flex-direction:column;overflow:hidden}.proposal-preview-modal>.proposal-preview{min-height:0;flex:1 1 auto;overflow:auto}.proposal-preview__grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.proposal-preview__panel{min-width:0;border:1px solid var(--line);border-radius:12px;background:#fbfdff;padding:12px}.proposal-preview__panel--single{min-height:50vh}.proposal-preview__label{margin-bottom:8px;color:var(--muted);font-size:12px;font-weight:700}.proposal-preview pre{min-height:min(58vh,720px);margin:0;overflow:auto;padding:12px;border-radius:10px;background:#fff;border:1px solid var(--line);color:var(--text);white-space:pre-wrap;line-height:1.7;font-size:14px}.text-edit-modal{display:grid;gap:12px}.text-edit-modal textarea{min-height:min(62vh,760px);resize:vertical}.notice{border:1px solid var(--line);border-radius:13px;background:#fbfdff;padding:14px;color:var(--muted);font-size:14px}.notice p{margin:0}.mobile-tabs{display:none}@media(max-width:1280px)and (min-width:1024px){.workspace{grid-template-columns:300px minmax(0,1fr) 350px;gap:12px;padding:12px}.side-panel,.assistant-panel{padding:12px}}@media(max-width:1023px){body{overflow:auto}.topbar{align-items:flex-start;padding:10px 12px}.brand__logo{width:38px;height:38px}.brand__sub{display:none}.topbar__actions{max-width:62vw;overflow-x:auto;padding-bottom:2px}.status-pill{display:none}.workspace{display:block;padding:12px 12px 74px}.mobile-view{display:none}.mobile-view.is-active{display:flex}.main-column.mobile-view.is-active{display:flex;flex-direction:column;gap:12px}.side-panel.mobile-view.is-active,.assistant-panel.mobile-view.is-active{min-height:calc(100vh - 156px)}.side-panel{margin-bottom:12px}.editor-panel,.book-panel,.history-panel,.meeting-panel,.beauty-panel{min-height:calc(100vh - 210px)}.beauty-workshop{grid-template-columns:1fr;grid-template-rows:repeat(4,minmax(260px,auto));overflow:visible}.editor-wrap{min-height:380px}.avatar-card{grid-template-columns:96px minmax(0,1fr)}.worldbook-entry__grid{grid-template-columns:1fr}.script-workshop{grid-template-columns:1fr;grid-template-rows:none}.script-section--meta,.script-section--checks,.script-section--code{grid-column:1;grid-row:auto}.script-code-area{min-height:420px}.assistant-panel{min-height:calc(100vh - 156px)}.draft-box__grid,.meeting-participant,.meeting-auto-summary,.meeting-card-option,.meeting-card-character,.pending-version,.pending-diff,.proposal-preview__grid{grid-template-columns:1fr}.meeting-card-versions{padding-left:0}.meeting-card-picker__footer{align-items:stretch;flex-direction:column}.mobile-tabs{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(7,1fr);gap:8px;padding:8px;border-top:1px solid var(--line);background:#fffffff0;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-tabs__item{min-height:42px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--muted);font-weight:700}.mobile-tabs__item.is-active{border-color:var(--primary);background:var(--primary);color:#fff}}@media(max-width:640px){.brand__name{font-size:16px}.topbar__actions .studio-button{padding:8px 10px;font-size:12px}.topbar__actions .studio-icon-button{width:36px;height:36px}.panel-header{padding:14px}.side-panel,.assistant-panel{padding:12px}.composer{grid-template-columns:1fr}.composer__actions{flex-direction:row}.composer__actions .studio-button{flex:1}}.script-call-hint{white-space:normal;line-height:1.5}.editor-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.workspace--image .workspace-switch{max-width:100%;overflow-x:auto}.image-workspace{display:grid;min-width:0;min-height:0;flex:1;grid-template-columns:minmax(260px,300px) minmax(0,1fr) minmax(240px,320px);gap:12px;overflow:hidden}.image-controls,.image-preview-panel,.image-history-panel{min-width:0;min-height:0;overflow:hidden}.image-controls{display:flex;flex-direction:column}.image-controls__body{display:grid;min-height:0;flex:1 1 auto;align-content:start;gap:14px;padding:14px;overflow:auto}.segmented-control,.brand-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border-radius:10px;background:var(--soft)}.brand-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.segmented-control button,.brand-tabs button{min-height:34px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:12px;font-weight:700}.segmented-control button{display:inline-flex;align-items:center;justify-content:center;gap:5px}.segmented-control button.is-active,.brand-tabs button.is-active{color:var(--primary);background:#fff;box-shadow:0 1px 3px #0f172a14}.segmented-control button:disabled,.brand-tabs button:disabled{cursor:not-allowed;opacity:.5}.field-with-action{position:relative}.field-with-action .studio-textarea,.field-with-action .studio-input{padding-right:42px}.field-action{position:absolute;top:8px;right:8px;display:inline-grid;width:28px;height:28px;place-items:center;border:0;border-radius:7px;color:var(--muted);background:transparent}.field-action:hover{color:var(--text);background:var(--soft)}.image-hosted-url{display:grid;gap:6px;margin-top:10px}.imgbb-help-trigger{width:fit-content}.imgbb-help-modal .modal__panel{width:min(620px,100%);max-height:min(88vh,760px)}.imgbb-help-modal__content{display:grid;gap:18px}.imgbb-help-modal__section{display:grid;gap:6px}.imgbb-help-modal__section h3{margin:0;color:var(--text);font-size:14px;line-height:1.4}.imgbb-help-modal__section p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}.imgbb-help-modal__section ol{display:grid;gap:5px;margin:0;padding-left:20px;color:var(--muted);font-size:13px;line-height:1.6}.imgbb-help-modal__section a{display:inline-flex;width:fit-content;align-items:center;gap:6px;color:var(--primary);font-size:13px;text-decoration:none}.imgbb-help-modal__section a:hover{text-decoration:underline}.range-input{width:100%;accent-color:var(--primary)}.toggle-stack{display:grid;gap:8px}.toggle-field{display:flex;align-items:center;gap:8px;color:var(--text);font-size:13px}.toggle-field input{accent-color:var(--primary)}.reference-block{display:grid;gap:8px}.text-button{display:inline-flex;align-items:center;gap:4px;border:0;color:var(--primary);background:transparent;font-size:12px;font-weight:700}.text-button:hover{color:var(--accent-strong)}.reference-list{display:grid;gap:6px}.reference-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;padding:5px 7px;border:1px solid var(--line);border-radius:8px;background:#fbfdff}.reference-item img{width:34px;height:34px;border-radius:6px;object-fit:cover}.reference-item span{overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.reference-item button,.image-history-card__head button{display:inline-grid;width:26px;height:26px;place-items:center;border:0;border-radius:6px;color:var(--muted);background:transparent}.reference-item button:hover,.image-history-card__head button:hover{color:var(--danger);background:#fef2f2}.field-hint,.image-message{margin:0;color:var(--muted);font-size:12px;line-height:1.5}.image-message--error{color:#b42318}.image-controls__footer{display:grid;flex:0 0 auto;gap:8px;padding:12px 14px 14px;border-top:1px solid var(--line);background:var(--panel)}.image-submit{width:100%;margin:0}.image-preview-panel,.image-history-panel{display:flex;flex-direction:column}.image-preview-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}.image-preview-scroll,.image-history-list{min-height:0;flex:1;overflow:auto}.image-preview-scroll{padding:14px}.image-preview-content{display:grid;gap:12px;max-width:900px;margin:0 auto}.image-preview-frame{display:flex;min-height:320px;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:repeating-conic-gradient(#f3f5f8 0,#f3f5f8 25%,#fff 0,#fff 50%) 50% / 20px 20px}.image-preview-frame img{display:block;max-width:100%;max-height:min(62vh,720px);object-fit:contain}.image-meta{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.image-meta p{margin:0;color:var(--text);font-size:13px;line-height:1.65;white-space:pre-wrap}.image-meta__tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:9px}.image-meta__tags span{padding:4px 7px;border-radius:6px;color:var(--primary);background:var(--primary-soft);font-size:11px;font-weight:700}.image-meta__revised{margin-top:10px!important;padding-top:10px;border-top:1px solid var(--line);color:var(--muted)!important}.image-empty{display:grid;min-height:100%;place-items:center;align-content:center;padding:24px;color:var(--muted);text-align:center}.image-empty h2{margin:10px 0 0;color:var(--text);font-size:17px}.image-empty p{max-width:300px;margin:8px 0 0;font-size:13px;line-height:1.6}.image-empty__icon{width:42px;height:42px;margin:0 auto;color:var(--primary)}.image-empty--small{min-height:240px}.image-history-list{display:grid;align-content:start;gap:10px;padding:10px}.image-history-card{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.image-history-card.is-active{border-color:var(--primary);box-shadow:0 0 0 2px #2563eb1a}.image-history-card__open{display:block;width:100%;padding:0;border:0;background:#f8fafc}.image-history-card__open img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.image-history-card__body{padding:8px}.image-history-card__head{display:flex;align-items:center;justify-content:space-between;gap:4px;color:var(--muted);font-size:11px}.image-history-card__body p{display:-webkit-box;min-height:32px;margin:4px 0 0;overflow:hidden;color:var(--text);font-size:12px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.icon-small{width:15px;height:15px;flex:0 0 auto}.is-spinning{animation:image-spin .9s linear infinite}@keyframes image-spin{to{transform:rotate(360deg)}}@media(max-width:1280px)and (min-width:1024px){.image-workspace{grid-template-columns:260px minmax(0,1fr) 260px}}.switch-btn,.mobile-tabs__item{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.card-field-tabs{display:flex;flex:0 0 auto;gap:8px;padding:12px 14px 0;overflow-x:auto}.card-field-tabs .tab-btn{width:auto;min-width:108px;white-space:nowrap}.editor-support-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:12px 14px 14px;overflow:auto}.editor-support-grid .field:last-child{grid-column:1 / -1}.assistant-settings{display:grid;gap:10px;margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:12px;background:#fbfdff}.assistant-settings__actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.message__role{margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:700}.pending-box__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.pending-card__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.pending-card__preview{max-height:180px;overflow:auto;margin:8px 0;padding:10px;border-radius:10px;background:#f8fafc;color:var(--muted);white-space:pre-wrap}.chat-empty{padding:24px 8px;color:var(--muted);text-align:center}.history-page{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow-panel)}.history-page .module-toolbar{flex:0 0 auto;padding:16px 18px;border-bottom:1px solid var(--line)}.history-list-new{display:grid;min-height:0;flex:1;align-content:start;gap:12px;padding:14px;overflow:auto}.history-character-new{overflow:hidden;border:1px solid var(--line);border-radius:6px;background:#fff}.history-character-new__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#fbfdff}.history-character-new__toggle{display:flex;min-width:0;align-items:center;gap:10px;border:0;color:var(--text);background:transparent;text-align:left}.history-character-new__toggle img{width:36px;height:36px;flex:0 0 36px;border:1px solid var(--line);border-radius:6px;object-fit:cover}.history-character-new__toggle small,.history-version-row__open small{display:block;color:var(--muted);font-size:11px}.history-version-list{display:grid;gap:8px;padding:10px 12px 12px;background:var(--bg)}.history-version-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px;border:1px solid var(--line);border-radius:4px;background:#fff}.history-version-row__open{min-width:0;border:0;color:var(--text);background:transparent;text-align:left}@media(max-width:760px){.editor-support-grid{grid-template-columns:1fr}.editor-support-grid .field:last-child{grid-column:auto}.editor-actions{justify-content:flex-start}.history-version-row{grid-template-columns:auto minmax(0,1fr)}.history-version-row .icon-text-button{grid-column:2;justify-self:start}}@media(max-width:1023px){.workspace--image .main-column{min-height:calc(100vh - 156px)}.workspace--image .workspace-switch{align-self:stretch}.workspace--image .image-workspace{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(360px,1fr) auto;overflow:visible}.workspace--image .image-controls,.workspace--image .image-preview-panel,.workspace--image .image-history-panel{min-height:0}.workspace--image .image-history-panel{max-height:520px}.mobile-tabs{grid-template-columns:repeat(8,minmax(60px,1fr));overflow-x:auto}}.workspace--image{grid-template-columns:340px minmax(0,1fr) 390px;grid-template-rows:auto minmax(0,1fr);column-gap:16px;row-gap:12px}.workspace--image .image-workspace-nav{display:flex;min-width:0;align-items:center;gap:8px;grid-column:2;grid-row:1}.workspace--image .image-workspace-nav .workspace-switch{flex:0 1 auto;width:max-content;max-width:calc(100% - 44px);min-width:0;overflow-x:auto}.workspace--image .image-workspace-nav>.studio-icon-button{flex:0 0 36px}.workspace--image .image-route,.workspace--image .image-main,.workspace--image .image-main-content{display:contents}.workspace--image .image-sidebar{grid-column:1;grid-row:1 / 3}.workspace--image .image-main-toolbar{display:none}.workspace--image .image-preview-panel{grid-column:2;grid-row:2;min-height:0}.workspace--image .image-history-panel{grid-column:3;grid-row:1 / 3;min-height:0}.workspace--image .image-history-list{grid-template-columns:repeat(2,minmax(0,1fr))}.image-route{display:grid;width:100%;height:100%;flex:1 1 auto;min-height:0;grid-template-columns:340px minmax(0,1fr);gap:16px;overflow:hidden;background:transparent}.image-sidebar{display:flex;min-width:0;min-height:0;flex-direction:column;overflow:hidden;padding:0;gap:0}.image-sidebar__identity{display:grid;grid-template-columns:108px minmax(0,1fr);gap:12px;padding:16px;border-bottom:1px solid var(--line)}.image-source-preview{width:108px;height:108px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.image-source-preview img{display:block;width:100%;height:100%;object-fit:cover}.image-source-meta{min-width:0;align-self:center}.image-source-meta__name{margin:5px 0 9px;overflow:hidden;color:var(--text);font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.image-source-actions{display:flex;gap:5px}.image-source-actions button{min-height:28px;padding:4px 8px;border:1px solid var(--line);border-radius:7px;color:var(--muted);background:#fff;font-size:11px;font-weight:700}.image-source-actions button.is-active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.image-source-actions button:disabled{cursor:not-allowed;opacity:.5}.image-main{display:flex;min-width:0;min-height:0;flex-direction:column;gap:12px;overflow:hidden;background:transparent}.image-main-toolbar{display:flex;min-width:0;align-items:center;gap:8px}.image-main-toolbar .workspace-switch{min-width:0;max-width:100%;overflow-x:auto}.image-main-toolbar .switch-btn{flex:0 0 auto}.image-main-toolbar>.studio-icon-button{flex:0 0 auto}.image-main-content{display:grid;min-width:0;min-height:0;flex:1 1 auto;grid-template-columns:minmax(0,1.55fr) minmax(240px,.45fr);gap:12px;padding:0;overflow:hidden}.image-main-content .image-preview-panel,.image-main-content .image-history-panel{min-height:0}.image-preview-content{width:100%;max-width:none}.image-preview-frame{min-height:clamp(420px,58vh,760px)}.image-preview-frame img{max-height:min(70vh,860px)}.brand-tabs button small{margin-left:2px;font-size:10px;font-weight:600;opacity:.7}.size-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:7px}.size-options:not(.size-options--nai){grid-template-columns:repeat(3,minmax(0,1fr))}.size-options button{min-width:0;padding:8px 6px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:#fff;text-align:left}.size-options button:hover{background:var(--soft)}.size-options button.is-active{border-color:var(--primary);color:var(--primary);background:var(--primary-soft)}.size-options strong,.size-options small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.size-options strong{font-size:12px}.size-options small{margin-top:3px;color:var(--muted);font-size:10px}.size-options button.is-active small{color:var(--primary)}@media(max-width:1280px)and (min-width:1024px){.workspace--image{grid-template-columns:300px minmax(0,1fr) 300px;column-gap:12px;row-gap:12px}.image-route{grid-template-columns:300px minmax(0,1fr);gap:12px}}@media(max-width:1023px){.workspace--image{padding:12px 12px 74px;overflow:auto}.image-route{display:block;height:auto;min-height:calc(100dvh - 156px)}.image-sidebar{max-height:none;overflow:visible}.image-controls__body,.image-main{overflow:visible}.image-main-toolbar{position:sticky;top:0;z-index:10}.image-main-content{grid-template-columns:minmax(0,1fr);padding:0;overflow:visible}.image-history-panel{max-height:520px}}.workspace--mobile-preview{display:flex;min-width:0;min-height:0;flex-direction:column;padding:18px;overflow:auto;background:var(--bg)}.mobile-preview-page{display:flex;min-width:0;min-height:0;flex:1 1 auto;flex-direction:column;align-items:center;gap:12px}.mobile-preview-toolbar{display:flex;width:min(100%,920px);align-items:center;justify-content:space-between;gap:12px}.mobile-preview-toolbar h1{margin:4px 0 0;color:var(--text);font-size:20px}.mobile-preview-tabs{display:flex;width:min(100%,920px);min-width:0;gap:6px;padding:5px;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:var(--shadow-panel)}.mobile-preview-tabs button{flex:0 0 auto;min-height:34px;padding:6px 12px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:12px;font-weight:700;white-space:nowrap}.mobile-preview-tabs button.is-active{color:#fff;background:var(--primary)}.mobile-preview-device{position:relative;display:flex;width:min(390px,100%);height:min(844px,calc(100vh - 150px));min-height:600px;padding:9px;border:1px solid #111827;border-radius:34px;background:#111827;box-shadow:0 18px 42px #0f172a2e}.mobile-preview-device__speaker{position:absolute;z-index:2;top:14px;left:50%;width:72px;height:5px;border-radius:999px;background:#374151;transform:translate(-50%)}.mobile-preview-device__screen{min-width:0;min-height:0;flex:1 1 auto;overflow:hidden;border-radius:25px;background:#fff}.mobile-preview-device__screen iframe{display:block;width:100%;height:100%;border:0;background:var(--bg)}@media(max-width:520px){.workspace--mobile-preview{padding:10px}.mobile-preview-toolbar{align-items:flex-start}.mobile-preview-toolbar h1{font-size:18px}.mobile-preview-device{height:calc(100dvh - 178px);min-height:520px;border-radius:26px}.mobile-preview-device__screen{border-radius:19px}}.mobile-topbar__actions,.mobile-field-picker,.mobile-layer{display:none}@media(max-width:1023px){html,body,#app{min-height:100dvh;height:100dvh}body{overflow:hidden}.app{display:grid;height:100dvh;min-height:0;grid-template-rows:62px minmax(0,1fr) auto}.topbar{position:relative;min-height:62px;padding:0 12px;gap:8px}.brand{gap:8px}.brand__logo{width:36px;height:36px;border-radius:8px}.brand__name{font-size:14px}.brand__sub,.topbar__actions{display:none}.mobile-topbar__actions{display:flex;flex:0 0 auto;gap:2px}.mobile-icon-button{display:inline-grid;width:40px;height:40px;padding:0;place-items:center;border:0;border-radius:8px;color:var(--text);background:transparent}.mobile-icon-button:active{background:var(--soft)}.workspace{display:block;min-height:0;height:auto;padding:0 0 12px;overflow:auto;overscroll-behavior:contain}.workspace-switch{display:none}.main-column.mobile-view.is-active{display:flex;min-height:100%;gap:0;overflow:visible;flex-direction:column}.main-column .workspace-panel{width:100%;min-height:100%;border:0;border-radius:0;box-shadow:none}.side-panel.mobile-view.is-active{min-height:auto;margin:0;padding:12px 16px 10px;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.side-panel.mobile-view.is-active:not(.mobile-card-context){display:none}.side-panel .avatar-card{padding:0;border:0}.side-panel__fields{gap:8px}.side-panel .field-picker{padding:0;border:0;background:transparent}.side-panel .field-picker .panel-title{margin-bottom:7px}.side-panel .field-picker .section-list{display:none}.mobile-field-picker{display:grid;width:100%;min-height:50px;padding:7px 10px;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--panel);text-align:left}.mobile-field-picker span,.mobile-field-picker small,.mobile-field-picker strong{display:block}.mobile-field-picker small{color:var(--muted);font-size:10px}.mobile-field-picker strong{margin-top:3px;font-size:14px}.mobile-field-picker svg{color:var(--muted)}.mobile-tabs{position:relative;left:auto;right:auto;bottom:auto;z-index:40;display:grid;min-height:68px;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:5px 4px env(safe-area-inset-bottom);overflow:hidden;border-top:1px solid var(--line);background:#fffffff7;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-tabs__item{display:flex;min-width:0;min-height:56px;align-items:center;justify-content:center;gap:3px;border:0;border-radius:8px;color:var(--muted);background:transparent;font-size:10px;font-weight:700;flex-direction:column}.mobile-tabs__item span{overflow:hidden;max-width:100%;text-overflow:ellipsis;white-space:nowrap}.mobile-tabs__item.is-active{color:var(--primary);background:var(--primary-soft)}.mobile-layer{position:fixed;z-index:80;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;background:#0f172a75}.mobile-sheet{width:100%;max-height:88%;padding:10px 16px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;border-radius:14px 14px 0 0;background:var(--panel);box-shadow:0 -12px 30px #0f172a24}.mobile-sheet__handle{width:38px;height:4px;margin:0 auto 14px;border-radius:2px;background:#c7d2e0}.mobile-sheet__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-sheet__head h2{margin:0;font-size:17px}.mobile-action-list{border-top:1px solid var(--line)}.mobile-action-list button{display:flex;width:100%;min-height:50px;align-items:center;justify-content:space-between;padding:0 4px;border:0;border-bottom:1px solid var(--line);color:var(--text);background:var(--panel);font-size:14px;text-align:left}.mobile-action-list button svg{flex:0 0 auto;color:var(--primary)}.mobile-action-list button span{flex:1 1 auto}.mobile-action-list button.is-active{color:var(--primary);font-weight:800;background:var(--primary-soft)}.mobile-more-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mobile-more-item{display:flex;min-width:0;min-height:78px;align-items:center;justify-content:center;gap:7px;padding:8px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--bg);font-size:11px;font-weight:750;text-align:center;text-decoration:none;flex-direction:column}.mobile-more-item:active,.mobile-more-item:hover{border-color:#93b4f6;color:var(--primary);background:var(--primary-soft)}.panel-header{padding:14px 16px}.panel-header h1,.panel-header h2{font-size:18px}.panel-hint{font-size:11px}.studio-panel{border-radius:0;box-shadow:none}.editor-panel,.book-panel,.history-panel,.beauty-panel,.script-panel,.assistant-panel{min-height:100%}.workspace,.workspace *{scrollbar-width:none;-ms-overflow-style:none}.workspace::-webkit-scrollbar,.workspace *::-webkit-scrollbar{width:0;height:0}.side-panel .avatar-card{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px}.side-panel .avatar-card__image{width:68px;height:68px}.side-panel .avatar-card__meta{min-width:0}.side-panel__fields{grid-template-columns:repeat(2,minmax(0,1fr))}.side-panel .studio-input{min-height:40px;font-size:14px}.side-panel .field-picker{margin-top:1px}.editor-panel .panel-header,.book-panel .panel-header,.history-panel .panel-header,.fan-page .panel-header,.beauty-panel .panel-header,.script-panel .panel-header{padding:12px 16px}.editor-panel .panel-header h1,.book-panel .panel-header h2,.history-panel .panel-header h2,.fan-page .panel-header h1,.beauty-panel .panel-header h2,.script-panel .panel-header h2{font-size:17px}.editor-wrap,.depth-panel,.creator-meta-panel,.greeting-panel{padding:12px 16px}.editor-wrap .studio-textarea--large,.depth-panel .studio-textarea--large{min-height:52dvh;font-size:14px;line-height:1.65}.creator-meta-panel .studio-textarea,.greeting-textarea{font-size:14px;line-height:1.65}.greeting-block,.alternate-greeting{padding:10px;border-radius:9px}.greeting-block__head strong{font-size:14px}.book-panel .entry-list{padding:10px 12px 18px}.worldbook-entry__head{min-height:44px;padding:8px 10px;gap:6px}.worldbook-entry__title{font-size:14px}.worldbook-entry__tags{display:none}.worldbook-entry__body{padding:10px}.worldbook-field input,.worldbook-field textarea,.worldbook-inline select,.worldbook-inline input{font-size:14px}.worldbook-field textarea{min-height:220px}.worldbook-entry__options{gap:10px}.worldbook-inline,.worldbook-check{font-size:14px}.fan-page{overflow:visible}.fan-page .panel-header{position:sticky;top:0;z-index:5;background:var(--panel)}.fan-source-panel{margin:0 12px 10px;padding:10px}.fan-source-panel__head{display:grid;gap:8px}.fan-source-panel__actions,.fan-workflow__actions,.fan-dossier-panel__actions{justify-content:flex-start}.fan-source-panel__preview{max-height:132px;font-size:12px}.fan-workflow{margin:0 12px 14px;padding:10px}.fan-workflow__grid,.fan-workflow__chunk-grid,.fan-workflow__estimate{grid-template-columns:1fr 1fr}.fan-workflow__estimate{gap:6px}.fan-workflow-stat{padding:8px}.fan-workflow-stat span{font-size:11px}.fan-workflow-stat strong{font-size:14px}.fan-dossier-panel__stats{font-size:13px}.fan-dossier-panel__toolbar{display:grid;align-items:stretch}.fan-dossier-panel .field--inline{width:100%;grid-template-columns:64px minmax(0,1fr)}.fan-dossier-panel__picker{flex:none}.fan-dossier-panel__editor{min-height:300px;font-size:14px;line-height:1.65}.beauty-panel,.script-panel{overflow:visible}.beauty-panel .panel-header,.script-panel .panel-header{display:block}.beauty-actions,.script-actions{display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}.beauty-actions .studio-button,.script-actions .studio-button{min-width:0;padding:8px 6px;font-size:12px}.beauty-workshop,.script-workshop{display:grid;gap:10px;padding:10px 12px 18px;overflow:visible}.beauty-section,.script-section{min-height:auto;padding:10px;border-radius:9px}.beauty-textarea,.beauty-regex-area,.script-code-area,.script-small-area,.script-json-area{min-height:150px;font-size:14px;line-height:1.6}.script-section--code .script-code-area,.beauty-section--preview{min-height:360px}.beauty-preview{min-height:300px;padding:8px}.beauty-preview-actions{flex-wrap:wrap;gap:6px}.beauty-preview-actions .panel-hint{display:none}}@media(max-width:380px){.side-panel__fields,.fan-workflow__grid,.fan-workflow__chunk-grid,.fan-workflow__estimate{grid-template-columns:1fr}}.mobile-shell,.mobile-shell *{box-sizing:border-box}.mobile-shell{--mobile-bg: #f7f9fc;--mobile-panel: #fff;--mobile-soft: #eef3f8;--mobile-line: #dbe4ef;--mobile-text: #172033;--mobile-muted: #667085;--mobile-primary: #2563eb;--mobile-primary-strong: #1d4ed8;--mobile-primary-soft: #dbeafe;--mobile-danger: #dc2626;display:grid;width:100%;height:100dvh;min-height:0;grid-template-rows:62px minmax(0,1fr) calc(66px + env(safe-area-inset-bottom,0px));overflow:hidden;color:var(--mobile-text);background:var(--mobile-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Microsoft YaHei,sans-serif}.mobile-shell button,.mobile-shell input,.mobile-shell textarea,.mobile-shell select{font:inherit}.mobile-shell button{color:inherit;cursor:pointer}.mobile-shell img{max-width:100%}.mobile-shell,.mobile-shell *{scrollbar-width:none;-ms-overflow-style:none}.mobile-shell::-webkit-scrollbar,.mobile-shell *::-webkit-scrollbar{width:0;height:0;display:none}.mobile-shell__topbar{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:8px;padding:0 8px 0 12px;border-bottom:1px solid var(--mobile-line);background:#fffffff5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.mobile-shell__brand{display:flex;min-width:0;align-items:center;gap:9px}.mobile-shell__logo{width:36px;height:36px;flex:0 0 36px;overflow:hidden;border:1px solid var(--mobile-line);border-radius:8px;background:#fff}.mobile-shell__logo img{display:block;width:100%;height:100%;object-fit:cover}.mobile-shell__brand>div:last-child{min-width:0}.mobile-shell__brand h1{margin:0;overflow:hidden;font-size:16px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.mobile-shell__brand p{display:flex;align-items:center;gap:5px;margin:3px 0 0;color:var(--mobile-muted);font-size:10px}.mobile-shell__brand p span{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#059669}.mobile-shell__brand p span.is-warning{background:#d97706}.mobile-shell__top-actions{display:flex;flex:0 0 auto;gap:2px}.mobile-shell__icon{display:inline-grid;width:42px;height:42px;padding:0;place-items:center;border:0;border-radius:8px;color:var(--mobile-text);background:transparent}.mobile-shell__icon:active{background:var(--mobile-soft)}.mobile-shell__content{min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain}.mobile-shell__page{min-height:100%;padding-bottom:18px}.mobile-shell__page-head{display:flex;min-width:0;align-items:flex-start;justify-content:space-between;gap:10px;padding:16px 16px 13px;border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-shell__page-head>div{min-width:0}.mobile-shell__page-head p{margin:0 0 4px;color:var(--mobile-primary);font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase}.mobile-shell__page-head h2{margin:0;font-size:20px;line-height:1.25}.mobile-shell__page-head span{display:block;margin-top:5px;color:var(--mobile-muted);font-size:11px;line-height:1.4}.mobile-shell__page-actions{display:flex;flex:0 0 auto;align-items:center;gap:4px}.mobile-shell__button.mobile-shell__button--compact{min-height:34px;flex:0 0 auto;padding:0 10px;font-size:11px}.mobile-shell__tabs{display:flex;min-width:0;gap:6px;padding:9px 12px;overflow-x:auto;border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-shell__tabs button{min-width:0;min-height:36px;flex:1 1 0;padding:0 5px;border:1px solid transparent;border-radius:7px;color:var(--mobile-muted);background:var(--mobile-soft);font-size:11px;font-weight:750;white-space:nowrap}.mobile-shell__tabs button.is-active{border-color:#93b4f6;color:var(--mobile-primary-strong);background:var(--mobile-primary-soft)}.mobile-shell__route-view{min-width:0}.mobile-shell__section{margin-top:10px;padding:15px 16px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-shell__section:first-child{margin-top:0}.mobile-shell__field{display:grid;min-width:0;gap:6px}.mobile-shell__field>span{color:#3b4557;font-size:11px;font-weight:750}.mobile-shell__field input,.mobile-shell__field select,.mobile-shell__field textarea{width:100%;min-width:0;border:1px solid #cbd6e4;border-radius:8px;color:var(--mobile-text);background:var(--mobile-panel);outline:none}.mobile-shell__field input,.mobile-shell__field select{height:42px;padding:0 11px;font-size:14px}.mobile-shell__field textarea{min-height:108px;padding:11px 12px;resize:vertical;font-size:14px;line-height:1.65}.mobile-shell__field input:focus,.mobile-shell__field select:focus,.mobile-shell__field textarea:focus{border-color:var(--mobile-primary);box-shadow:0 0 0 3px #2563eb1f}.mobile-shell__field-picker{display:grid;width:calc(100% - 32px);min-height:52px;margin:10px 16px 0;padding:7px 11px;grid-template-columns:minmax(0,1fr) 20px;align-items:center;gap:8px;border:1px solid #cbd6e4;border-radius:8px;color:var(--mobile-text);background:var(--mobile-panel);text-align:left}.mobile-shell__field-picker span,.mobile-shell__field-picker small,.mobile-shell__field-picker strong{display:block}.mobile-shell__field-picker small{color:var(--mobile-muted);font-size:10px;font-weight:650}.mobile-shell__field-picker strong{margin-top:3px;overflow:hidden;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.mobile-shell__field-picker svg{color:var(--mobile-muted)}.mobile-card-identity{display:grid;grid-template-columns:74px minmax(0,1fr);gap:12px;padding-top:14px;padding-bottom:14px}.mobile-card-identity__avatar{position:relative;width:74px;height:74px;overflow:hidden;border:1px solid var(--mobile-line);border-radius:10px;background:var(--mobile-soft)}.mobile-card-identity__avatar img{display:block;width:100%;height:100%;object-fit:cover}.mobile-card-identity__avatar button{position:absolute;right:4px;bottom:4px;display:grid;width:28px;height:28px;place-items:center;border:0;border-radius:7px;color:#fff;background:#172033cc}.mobile-card-identity__fields{display:grid;gap:7px}.mobile-card-identity__fields input{height:34px}.mobile-shell__bottom-nav{display:grid;min-width:0;grid-template-columns:repeat(5,minmax(0,1fr));padding:5px 4px env(safe-area-inset-bottom,0px);border-top:1px solid var(--mobile-line);background:#fffffff7}.mobile-shell__nav-button{display:flex;min-width:0;min-height:56px;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:0;border-radius:8px;color:var(--mobile-muted);background:transparent;font-size:10px;font-weight:700;text-decoration:none}.mobile-shell__bottom-nav>button.mobile-shell__nav-button{width:100%;height:100%;margin:0;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;font-size:10px;font-weight:700;line-height:1.2;letter-spacing:0;text-align:center}.mobile-shell__nav-button svg{width:19px;height:19px;flex:0 0 19px}.mobile-shell__nav-button span{max-width:100%;overflow:hidden;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.mobile-shell__nav-button.is-active{color:var(--mobile-primary-strong);background:var(--mobile-primary-soft)}.mobile-shell__layer{position:fixed;z-index:100;top:0;right:0;bottom:0;left:0;display:flex;align-items:flex-end;background:#0f172a75}.mobile-shell__sheet{width:100%;max-height:88%;padding:10px 16px calc(18px + env(safe-area-inset-bottom,0px));overflow-y:auto;border-radius:14px 14px 0 0;background:var(--mobile-panel);box-shadow:0 -12px 30px #0f172a24}.mobile-shell__handle{width:38px;height:4px;margin:0 auto 14px;border-radius:2px;background:#c7d2e0}.mobile-shell__sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.mobile-shell__sheet-head h2{margin:0;font-size:17px}.mobile-shell__action-list{border-top:1px solid var(--mobile-line)}.mobile-shell__action-list button{display:grid;width:100%;min-height:50px;padding:0 4px;grid-template-columns:30px minmax(0,1fr) 18px;align-items:center;gap:8px;border:0;border-bottom:1px solid var(--mobile-line);color:var(--mobile-text);background:var(--mobile-panel);text-align:left;font-size:12px}.mobile-shell__action-list button>svg:first-child{color:var(--mobile-primary)}.mobile-shell__action-list button.is-active{color:var(--mobile-primary-strong);background:var(--mobile-primary-soft);font-weight:800}.mobile-shell__field-options button>svg:last-child{visibility:hidden}.mobile-shell__field-options button.is-active>svg:last-child{visibility:visible}.mobile-shell__tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.mobile-shell__tool-grid button{display:flex;min-width:0;min-height:78px;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:8px;border:1px solid var(--mobile-line);border-radius:8px;color:var(--mobile-text);background:var(--mobile-bg);font-size:11px;font-weight:750;text-align:center}.mobile-shell__tool-grid button:active{border-color:#93b4f6;color:var(--mobile-primary-strong);background:var(--mobile-primary-soft)}.mobile-shell__stack{display:grid;gap:12px}.mobile-shell__button-row{display:flex;flex-wrap:wrap;gap:7px}.mobile-shell__button{display:inline-flex;min-height:40px;flex:1 1 0;align-items:center;justify-content:center;gap:7px;padding:0 13px;border:1px solid var(--mobile-line);border-radius:8px;color:var(--mobile-text);background:var(--mobile-panel);font-size:12px;font-weight:750}.mobile-shell__button--primary{border-color:var(--mobile-primary);color:#fff;background:var(--mobile-primary)}.mobile-shell__note{margin:0;color:var(--mobile-muted);font-size:11px;line-height:1.5}.mobile-shell__route-view>.studio-panel,.mobile-shell__route-view>.assistant-mode-pane,.mobile-shell__route-view>.assistant-panel{width:100%;min-height:0;border:0;border-radius:0;box-shadow:none;background:transparent}.mobile-shell__route-view>.studio-panel>.panel-header,.mobile-shell__route-view>.assistant-mode-pane>.assistant-head{display:none}.mobile-shell__route-view .editor-wrap,.mobile-shell__route-view .creator-meta-panel,.mobile-shell__route-view .depth-panel,.mobile-shell__route-view .greeting-panel{min-height:0;padding:15px 16px;background:var(--mobile-panel)}.mobile-shell__route-view .editor-wrap .studio-textarea,.mobile-shell__route-view .creator-meta-panel .studio-textarea,.mobile-shell__route-view .depth-panel .studio-textarea,.mobile-shell__route-view .greeting-panel .studio-textarea{font-size:14px;line-height:1.65}.mobile-shell__route-view .editor-wrap .studio-textarea{min-height:300px}.mobile-shell__route-view .panel-hint{font-size:10px}.mobile-route--worldbook .book-panel .entry-list{padding:10px 0 18px}.mobile-route--worldbook .worldbook-entry{margin-bottom:8px;border-radius:8px}.mobile-route--worldbook .worldbook-entry__head{min-height:48px;padding:9px 12px}.mobile-route--worldbook .worldbook-entry__title{font-size:13px}.mobile-route--worldbook .worldbook-entry__tags{display:none}.mobile-route--worldbook .worldbook-entry__body{padding:12px}.mobile-route--worldbook .worldbook-field input,.mobile-route--worldbook .worldbook-field textarea,.mobile-route--worldbook .worldbook-inline select,.mobile-route--worldbook .worldbook-inline input{font-size:14px}.mobile-route--image .image-route{display:block;min-height:0}.mobile-route--image .image-main-toolbar{display:none}.mobile-route--image .image-sidebar,.mobile-route--image .image-main{width:100%;min-height:0;max-height:none;padding:0;overflow:visible}.mobile-route--image.mobile-tab--generate .image-main{display:none}.mobile-route--image:not(.mobile-tab--generate) .image-sidebar{display:none}.mobile-route--image .image-main-content{display:block}.mobile-route--image .image-preview-panel,.mobile-route--image .image-history-panel{min-height:0;border:0;border-radius:0;box-shadow:none}.mobile-route--image.mobile-tab--preview .image-history-panel,.mobile-route--image.mobile-tab--gallery .image-preview-panel{display:none}.mobile-route--image .image-preview-scroll{padding:12px 16px}.mobile-route--image .image-preview-frame{min-height:300px}.mobile-route--fan-workflow .fan-page{overflow:visible}.mobile-route--fan-workflow .fan-source-panel,.mobile-route--fan-workflow .fan-workflow{margin-left:0;margin-right:0;border-right:0;border-left:0;border-radius:0}.mobile-route--fan-workflow.mobile-tab--source .fan-workflow,.mobile-route--fan-workflow.mobile-tab--pipeline .fan-dossier-panel{display:none}.mobile-route--fan-workflow.mobile-tab--dossier .fan-source-panel,.mobile-route--fan-workflow.mobile-tab--dossier .fan-workflow>:not(.fan-dossier-panel){display:none}.mobile-route--fan-workflow .fan-workflow__grid,.mobile-route--fan-workflow .fan-workflow__chunk-grid,.mobile-route--fan-workflow .fan-workflow__estimate{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-route--fan-workflow .fan-dossier-panel__stats{font-size:11px}.mobile-route--beauty .beauty-panel,.mobile-route--script .script-panel{overflow:visible}.mobile-route--beauty .beauty-workshop,.mobile-route--script .script-workshop{display:block;padding:10px 0 18px}.mobile-route--beauty .beauty-section,.mobile-route--script .script-section{min-height:0;margin-top:10px;padding:15px 16px;border-right:0;border-left:0;border-radius:0}.mobile-route--beauty .beauty-section:first-child,.mobile-route--script .script-section:first-child{margin-top:0}.mobile-route--beauty.mobile-tab--workshop .beauty-section--regex,.mobile-route--beauty.mobile-tab--workshop .beauty-section--preview,.mobile-route--beauty.mobile-tab--regex .beauty-section--content,.mobile-route--beauty.mobile-tab--regex .beauty-section--code,.mobile-route--beauty.mobile-tab--regex .beauty-section--preview,.mobile-route--beauty.mobile-tab--preview .beauty-section--content,.mobile-route--beauty.mobile-tab--preview .beauty-section--code,.mobile-route--beauty.mobile-tab--preview .beauty-section--regex,.mobile-route--script.mobile-tab--code .script-section--meta,.mobile-route--script.mobile-tab--code .script-section--checks,.mobile-route--script.mobile-tab--info .script-section--code,.mobile-route--script.mobile-tab--info .script-section--checks,.mobile-route--script.mobile-tab--checks .script-section--code,.mobile-route--script.mobile-tab--checks .script-section--meta{display:none}.mobile-route--beauty .beauty-textarea,.mobile-route--beauty .beauty-regex-area,.mobile-route--script .script-code-area,.mobile-route--script .script-small-area,.mobile-route--script .script-json-area{min-height:180px;font-size:14px;line-height:1.65}.mobile-route--script.mobile-tab--code .script-code-area{min-height:360px}.mobile-route--history .history-character{border-radius:8px}.mobile-route--meeting .meeting-panel,.mobile-route--meeting .assistant-mode-pane{min-height:0;padding:0}.mobile-route--meeting .meeting-panel__body,.mobile-route--meeting .assistant-mode-pane>*{padding-left:16px;padding-right:16px}.mobile-shell__route-view .studio-input,.mobile-shell__route-view .studio-textarea,.mobile-shell__route-view select,.mobile-shell__route-view input,.mobile-shell__route-view textarea{max-width:100%;font-size:14px}.mobile-shell__route-view .studio-input,.mobile-shell__route-view select,.mobile-shell__route-view input[type=text],.mobile-shell__route-view input[type=number],.mobile-shell__route-view input[type=password]{min-height:42px;border-radius:8px}.mobile-shell__route-view .studio-textarea,.mobile-shell__route-view textarea{border-radius:8px;line-height:1.65}.mobile-shell__route-view .studio-label,.mobile-shell__route-view .field>span,.mobile-shell__route-view .field-hint,.mobile-shell__route-view .panel-hint{letter-spacing:0}.mobile-shell__route-view .field>span,.mobile-shell__route-view .studio-label{font-size:11px}.mobile-shell__route-view .studio-button{min-height:34px;border-radius:8px;font-size:11px;white-space:nowrap}.mobile-card-page>.studio-panel{display:block;width:100%;min-height:0;margin-top:10px;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.mobile-card-page>.studio-panel>.panel-header{display:flex;min-height:0;align-items:center;padding:12px 16px 8px;border-top:1px solid var(--mobile-line);border-bottom:0;background:var(--mobile-panel)}.mobile-card-page>.studio-panel>.panel-header .studio-label{display:none}.mobile-card-page>.studio-panel>.panel-header h1{margin:0;font-size:14px;line-height:1.35}.mobile-card-page>.studio-panel>.panel-header .text-replace-desktop-action{display:none}.mobile-card-page>.studio-panel>.editor-wrap,.mobile-card-page>.studio-panel>.creator-meta-panel,.mobile-card-page>.studio-panel>.depth-panel,.mobile-card-page>.studio-panel>.greeting-panel{padding-top:4px;border-bottom:1px solid var(--mobile-line)}.mobile-card-page>.studio-panel .greeting-block,.mobile-card-page>.studio-panel .alternate-greeting{border-radius:8px}.mobile-card-page>.studio-panel .greeting-block__head{flex-wrap:wrap}.mobile-route--history .history-panel>.panel-header,.mobile-route--beauty .beauty-panel>.panel-header,.mobile-route--script .script-panel>.panel-header,.mobile-route--meeting .meeting-panel>.panel-header,.mobile-shell__route-view>.assistant-mode-pane>.assistant-head{display:flex;min-height:0;align-items:center;padding:9px 12px;overflow-x:auto;border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--history .history-panel>.panel-header>div:first-child,.mobile-route--beauty .beauty-panel>.panel-header>div:first-child,.mobile-route--script .script-panel>.panel-header>div:first-child,.mobile-route--meeting .meeting-panel>.panel-header>div:first-child,.mobile-shell__route-view>.assistant-mode-pane>.assistant-head>div:first-child{display:none}.mobile-route--history .history-actions,.mobile-route--beauty .beauty-actions,.mobile-route--script .script-actions,.mobile-route--meeting .meeting-actions,.mobile-shell__route-view>.assistant-mode-pane>.assistant-head__actions{display:flex;width:max-content;min-width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:7px}.mobile-route--history .history-actions>*,.mobile-route--beauty .beauty-actions>*,.mobile-route--script .script-actions>*,.mobile-route--meeting .meeting-actions>*,.mobile-shell__route-view>.assistant-mode-pane>.assistant-head__actions>*{flex:0 0 auto}.mobile-route--worldbook .book-panel,.mobile-route--history .history-panel,.mobile-route--beauty .beauty-panel,.mobile-route--script .script-panel,.mobile-route--meeting .meeting-panel,.mobile-route--fan-workflow .fan-page{display:block;width:100%;height:auto;min-height:0;max-height:none;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.mobile-route--worldbook .book-panel>.panel-header,.mobile-route--fan-workflow .fan-page>.panel-header{display:none}.mobile-route--worldbook .book-panel .entry-list{display:block;padding:10px 16px 18px}.mobile-route--worldbook .book-panel .panel-hint{margin:0 0 9px}.mobile-route--worldbook .worldbook-entry{overflow:hidden;border:1px solid var(--mobile-line);border-radius:8px;background:var(--mobile-panel)}.mobile-route--worldbook .worldbook-entry__head{grid-template-columns:auto minmax(0,1fr) auto}.mobile-route--worldbook .worldbook-entry__drag-handle{display:none}.mobile-route--worldbook .worldbook-entry__footer{align-items:center}.mobile-route--worldbook .worldbook-entry__reorder-actions{gap:6px}.mobile-route--worldbook .worldbook-entry__chevron{font-size:10px;white-space:nowrap}.mobile-route--worldbook .worldbook-entry__grid{display:grid;grid-template-columns:1fr;gap:11px}.mobile-route--worldbook .worldbook-entry__options{display:flex;align-items:end;flex-wrap:wrap;gap:9px 12px}.mobile-route--worldbook .worldbook-inline{flex:1 1 120px}.mobile-route--worldbook .worldbook-check{flex:0 0 auto}.mobile-route--worldbook .worldbook-field textarea{min-height:120px}.mobile-route--image .image-route{width:100%;height:auto;min-height:0}.mobile-route--image .image-sidebar{margin-top:10px;padding:15px 16px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);border-radius:0;background:var(--mobile-panel);box-shadow:none}.mobile-route--image .image-sidebar__identity{padding:0 0 12px;border-bottom:1px solid var(--mobile-line)}.mobile-route--image .image-controls__body{display:grid;gap:12px;padding:12px 0;overflow:visible}.mobile-route--image .image-controls__footer{position:static;padding:0;border:0;background:transparent}.mobile-route--image .segmented-control,.mobile-route--image .brand-tabs,.mobile-route--image .size-options{min-width:0}.mobile-route--image .segmented-control button,.mobile-route--image .brand-tabs button,.mobile-route--image .size-options button{min-width:0;border-radius:8px}.mobile-route--image .image-main-content{display:block;padding:0}.mobile-route--image .image-preview-panel,.mobile-route--image .image-history-panel{margin-top:10px;max-height:none;overflow:visible;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--image .image-preview-panel>.panel-header,.mobile-route--image .image-history-panel>.panel-header{min-height:0;padding:12px 16px}.mobile-route--image .image-preview-panel>.panel-header h2,.mobile-route--image .image-history-panel>.panel-header h2{font-size:14px}.mobile-route--image .image-history-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));flex:0 0 auto;min-height:0;height:auto;gap:8px;padding:12px 16px 18px;overflow:visible}.mobile-route--image .image-history-card{min-width:0;border-radius:8px}.mobile-route--image .image-history-card__open img{display:block;width:100%;aspect-ratio:1 / 1;object-fit:cover}.mobile-route--image .image-history-card__head>span{min-width:0;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.mobile-route--image .image-history-card__body>p{display:none}.mobile-route--image .image-history-card__actions{display:flex;gap:7px;margin-top:6px}.mobile-route--image .image-history-card__actions .text-button{display:inline-block;min-height:0;flex:0 0 auto;padding:4px;border-radius:0;color:var(--mobile-primary);font-size:11px;font-weight:750}.mobile-route--image .image-history-card__actions .text-button--danger{color:var(--mobile-danger)}.mobile-route--fan-workflow.mobile-tab--pipeline .fan-source-panel{display:none}.mobile-route--fan-workflow .fan-source-panel,.mobile-route--fan-workflow .fan-workflow{margin-top:10px;padding:15px 16px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--fan-workflow .fan-source-panel__head,.mobile-route--fan-workflow .fan-workflow__head,.mobile-route--fan-workflow .fan-dossier-panel__head{flex-wrap:wrap}.mobile-route--fan-workflow .fan-source-panel__actions,.mobile-route--fan-workflow .fan-workflow__presets,.mobile-route--fan-workflow .fan-dossier-panel__actions{justify-content:flex-start}.mobile-route--fan-workflow .fan-workflow__grid{grid-template-columns:1fr}.mobile-route--fan-workflow .fan-workflow__chunk-grid,.mobile-route--fan-workflow .fan-workflow__estimate{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-route--fan-workflow .fan-workflow-stat span,.mobile-route--fan-workflow .fan-dossier-panel__stats{font-size:11px}.mobile-route--fan-workflow .fan-dossier-panel .field--inline{width:100%;grid-template-columns:1fr}.mobile-route--fan-workflow .fan-dossier-panel__picker{flex-basis:100%}.mobile-route--fan-workflow .fan-dossier-panel__editor{min-height:360px}.mobile-route--beauty .beauty-workshop,.mobile-route--script .script-workshop{display:block;padding:0 0 18px}.mobile-route--beauty .beauty-section,.mobile-route--script .script-section{display:flex;width:100%;min-height:0;margin-top:10px;padding:15px 16px;overflow:visible;border-top:1px solid var(--mobile-line);border-right:0;border-bottom:1px solid var(--mobile-line);border-left:0;border-radius:0;background:var(--mobile-panel)}.mobile-route--beauty .beauty-section:first-child,.mobile-route--script .script-section:first-child{margin-top:10px}.mobile-route--beauty .beauty-regex-settings{border-radius:8px}.mobile-route--beauty .beauty-preview{min-height:360px;border-radius:8px}.mobile-route--beauty .beauty-preview__frame{min-height:340px}.mobile-route--script .script-advanced,.mobile-route--script .script-check-item{border-radius:8px}.mobile-route--history .history-panel .history-list{padding:10px 16px 18px}.mobile-route--history .history-character,.mobile-route--history .history-version{border-radius:8px}.mobile-route--history .history-character__head,.mobile-route--history .history-character__select{min-width:0}.mobile-route--meeting .meeting-controls{margin-top:10px;padding:15px 16px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--meeting .meeting-participant-list{max-height:none;overflow:visible}.mobile-route--meeting .meeting-participant{grid-template-columns:minmax(0,1fr) auto;border-radius:8px}.mobile-route--meeting .meeting-participant>.checkline{grid-column:1 / -1}.mobile-route--meeting .meeting-panel__body{display:block;padding:10px 16px 18px}.mobile-route--meeting .meeting-prompt-box{margin:0}.mobile-route--meeting .meeting-log{min-height:220px;overflow:visible;padding:14px 0}.mobile-route--meeting .meeting-log__item{width:min(92%,720px)}.mobile-shell__route-view>.assistant-mode-pane{display:block;width:100%;min-height:0;padding:0 0 18px;overflow:visible;background:transparent}.mobile-shell__route-view>.assistant-mode-pane>.assistant-head{justify-content:flex-start}.mobile-shell__route-view>.assistant-mode-pane>.assistant-head>.studio-button{flex:0 0 auto}.mobile-shell__route-view>.assistant-mode-pane>.prompt-box{margin:10px 16px 0;padding:12px;border-radius:8px}.mobile-shell__route-view>.assistant-mode-pane>.chat-list{min-height:180px;overflow:visible;padding:12px 16px}.mobile-shell__route-view>.assistant-mode-pane>.composer{margin:0 16px;padding-top:12px;grid-template-columns:1fr}.mobile-shell__route-view>.assistant-mode-pane>.composer .composer__actions{flex-direction:row;justify-content:flex-end}.mobile-shell__route-view .message{max-width:94%;border-radius:8px;font-size:14px}.mobile-shell__route-view .pending-box,.mobile-shell__route-view .pending-card,.mobile-shell__route-view .draft-box{border-radius:8px}.mobile-shell__route-view .pending-diff,.mobile-shell__route-view .pending-version,.mobile-shell__route-view .draft-box__grid{grid-template-columns:1fr}.mobile-shell .modal{z-index:130;align-items:end;padding:0}.mobile-shell .beauty-confirm-layer{z-index:180}.mobile-shell .modal__panel,.mobile-shell .modal__panel--wide{width:100%;max-width:none;max-height:88dvh;overflow-y:auto;border-radius:14px 14px 0 0}.mobile-shell .modal__head{position:sticky;z-index:2;top:0;background:var(--mobile-panel)}.mobile-shell .proposal-preview__grid{grid-template-columns:1fr}.mobile-beauty-only{display:none}.mobile-shell .mobile-beauty-only{display:block}.mobile-shell__beauty-host.is-assistant-tab>.beauty-panel{display:none}.mobile-route--beauty .beauty-panel>.panel-header{display:none}.mobile-route--beauty .beauty-panel,.mobile-route--beauty .beauty-workshop,.mobile-route--beauty .beauty-section{height:auto;min-height:0;flex:0 0 auto}.mobile-route--beauty .mobile-shell__beauty-host{height:auto;min-height:0}.mobile-route--beauty .beauty-workshop{padding-bottom:18px}.mobile-route--beauty .beauty-section__head .studio-label{display:none}.mobile-route--beauty .beauty-section__head h3{margin:0;font-size:14px}.mobile-route--beauty.mobile-tab--workshop .beauty-workshop{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:12px;margin-top:10px;padding:15px 16px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--beauty.mobile-tab--workshop .beauty-section--content,.mobile-route--beauty.mobile-tab--workshop .beauty-section--code{min-height:0;margin:0;padding:0;gap:6px;overflow:visible;border:0;background:transparent}.mobile-route--beauty.mobile-tab--workshop .beauty-section--content .beauty-section__head>div,.mobile-route--beauty.mobile-tab--workshop .beauty-section--code .beauty-section__head>div{display:none}.mobile-route--beauty .mobile-beauty-field-label,.mobile-route--beauty .mobile-beauty-replacement-title{color:#3b4557;font-weight:750;line-height:1.35}.mobile-route--beauty .mobile-beauty-field-label{font-size:11px}.mobile-route--beauty .mobile-beauty-replacement-title,.mobile-route--beauty.mobile-tab--workshop .mobile-beauty-field-label{font-size:14px}.mobile-route--beauty.mobile-tab--workshop .text-button{min-height:0;padding:4px;border:0;border-radius:0;color:var(--mobile-primary);background:transparent;font-size:11px;font-weight:750;line-height:1.2}.mobile-route--beauty.mobile-tab--workshop .beauty-section--content .beauty-textarea{min-height:260px;resize:vertical;font-family:inherit}.mobile-route--beauty.mobile-tab--workshop .beauty-section--code .beauty-textarea{min-height:270px;resize:vertical;font-size:14px;line-height:1.65}.mobile-route--beauty.mobile-tab--regex .beauty-workshop{padding:0 0 18px}.mobile-route--beauty.mobile-tab--regex .beauty-section--regex{display:flex;margin-top:10px;padding:15px 16px;gap:12px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--beauty.mobile-tab--regex .beauty-regex-area{min-height:108px;resize:vertical}.mobile-route--beauty.mobile-tab--regex .beauty-regex-options,.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__group{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings{display:flex;flex-wrap:wrap;gap:4px 12px;padding:0;border:0;border-radius:0;background:transparent}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__group:first-child,.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__row{flex:0 0 100%}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__group:first-child>.studio-label{width:100%;flex:0 0 100%;color:#3b4557}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__group:not(:first-child){display:contents}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__group:not(:first-child)>.studio-label{display:none}.mobile-route--beauty.mobile-tab--regex .beauty-regex-settings__row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mobile-route--beauty.mobile-tab--regex .field--compact{min-width:0}.mobile-route--beauty.mobile-tab--regex .checkline{min-height:34px;font-size:11px}.mobile-route--beauty.mobile-tab--preview .beauty-workshop{padding:0 0 18px}.mobile-route--beauty.mobile-tab--preview .beauty-section--preview{display:flex;margin-top:10px;padding:15px 16px;gap:12px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--beauty.mobile-tab--preview .beauty-section__head{align-items:flex-start}.mobile-route--beauty .mobile-beauty-preview-status{display:inline-flex;align-items:center;gap:5px;margin:5px 0 0;color:#059669;font-size:10px;line-height:1.4}.mobile-route--beauty .mobile-beauty-preview-status:before{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:currentColor;content:""}.mobile-route--beauty .beauty-preview-actions{gap:7px}.mobile-route--beauty .beauty-preview-actions>.panel-hint{display:none}.mobile-route--beauty .preview-mode-toggle{display:flex;gap:7px;padding:0;border:0;border-radius:0;background:transparent}.mobile-route--beauty .preview-mode-toggle__btn,.mobile-route--beauty .beauty-preview-actions>.studio-button{min-width:0;min-height:34px;padding:0 10px;border:1px solid var(--mobile-line);border-radius:8px;color:var(--mobile-text);background:var(--mobile-panel);font-size:11px;font-weight:750}.mobile-route--beauty .preview-mode-toggle__btn.is-active{border-color:var(--mobile-primary);color:#fff;background:var(--mobile-primary)}.mobile-route--beauty.mobile-tab--preview .beauty-preview{min-height:360px;padding:0;border:1px solid var(--mobile-line);border-radius:8px}.mobile-route--beauty.mobile-tab--assistant>.mobile-shell__route-view>.assistant-mode-pane{display:flex;flex-direction:column;margin-top:10px;padding:0 16px 18px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.prompt-box{order:1;margin:0;padding:15px 0 0;border:0;background:transparent}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.assistant-head{display:none}.mobile-route--beauty.mobile-tab--assistant .beauty-reference-upload-field{display:none}.mobile-route--beauty.mobile-tab--assistant .mobile-beauty-assistant-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.mobile-route--beauty.mobile-tab--assistant .mobile-beauty-assistant-actions .studio-button{width:auto;flex:0 0 auto;padding:0 10px}.mobile-route--beauty.mobile-tab--assistant .mobile-beauty-assistant-actions .checkline{min-height:34px;font-size:11px}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.chat-list{order:2;min-height:0;padding:14px 0}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.pending-box,.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.draft-box{order:3}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.composer{order:4;margin:0}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.composer .studio-textarea{min-height:82px}.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.composer .composer__actions,.mobile-route--beauty.mobile-tab--assistant .assistant-mode-pane>.composer .studio-button{width:100%}.mobile-route--beauty.mobile-tab--assistant .pending-diff,.mobile-route--beauty.mobile-tab--assistant .draft-box__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-route--beauty.mobile-tab--assistant .draft-box__grid>.field:last-child{grid-column:1 / -1}.mobile-route--beauty.mobile-tab--assistant .beauty-reference-preview{min-height:84px;border-radius:8px}.mobile-route--beauty.mobile-tab--assistant .beauty-reference-preview:not(.has-image),.mobile-route--beauty.mobile-tab--assistant .beauty-reference-box>.prompt-desc{display:none}.mobile-script-quick-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 16px;border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-script-quick-actions__copy{min-width:0}.mobile-script-quick-actions__copy strong,.mobile-script-quick-actions__copy small{display:block}.mobile-script-quick-actions__copy strong{font-size:12px}.mobile-script-quick-actions__copy small{margin-top:2px;color:var(--mobile-muted);font-size:10px}.mobile-script-quick-actions .mobile-shell__button{min-height:34px;flex:0 0 auto;padding:0 10px;font-size:11px}.mobile-shell__script-host{min-width:0}.mobile-shell__script-host.is-assistant-tab>.script-panel{display:none}.mobile-route--script .script-panel{display:block;width:100%;height:auto;min-height:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}.mobile-route--script .script-panel>.panel-header{display:none}.mobile-route--script .script-workshop{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-auto-rows:auto;gap:12px;margin:10px 0 0;padding:15px 16px 18px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--script .script-section,.mobile-route--script .script-section--code,.mobile-route--script .script-section--meta,.mobile-route--script .script-section--checks{display:flex;width:100%;min-width:0;min-height:0;grid-column:auto;grid-row:auto;margin:0;padding:0;gap:9px;overflow:visible;border:0;border-radius:0;background:transparent}.mobile-route--script .script-section__head{align-items:flex-start}.mobile-route--script .script-section__head .studio-label{display:none}.mobile-route--script .script-section__head h3{margin:0;font-size:14px;line-height:1.35}.mobile-route--script .script-section--code .script-section__head .studio-label{display:block;margin:0;color:#3b4557;font-size:14px;font-weight:750;line-height:1.35}.mobile-route--script .script-section--code .script-section__head h3{display:none}.mobile-route--script .script-section--meta .script-section__head .panel-hint{font-size:10px}.mobile-route--script .script-section--checks .script-section__head{align-items:flex-start}.mobile-script-check-desc,.mobile-script-check-badge,.mobile-script-field-meta,.mobile-script-assistant-actions{display:none}.mobile-shell .mobile-script-check-desc{display:block;margin:4px 0 0;color:var(--mobile-muted);font-size:11px;line-height:1.4}.mobile-shell .mobile-script-check-badge{display:inline-flex;min-height:24px;align-items:center;padding:0 8px;border:1px solid #a7e3c4;border-radius:999px;color:#047857;background:#ecfdf3;font-size:10px;font-weight:800;white-space:nowrap}.mobile-route--script .field{gap:6px}.mobile-route--script .field>.studio-label{color:#3b4557;font-size:11px;font-weight:750}.mobile-route--script .script-code-area,.mobile-route--script .script-small-area,.mobile-route--script .script-json-area{width:100%;min-height:0;border-radius:8px;font-size:14px;line-height:1.65}.mobile-route--script.mobile-tab--code .script-code-area{min-height:390px}.mobile-route--script.mobile-tab--info .script-small-area{min-height:220px}.mobile-route--script .script-json-area{min-height:130px}.mobile-route--script .script-advanced{width:100%;margin-top:2px;border-radius:8px}.mobile-route--script .script-advanced summary{min-height:42px;display:flex;align-items:center;padding:0 11px;font-size:12px}.mobile-route--script .script-advanced__body{padding:0 11px 11px}.mobile-route--script .script-check-list{width:100%;min-height:0;overflow:visible;gap:8px}.mobile-route--script .script-check-item{grid-template-columns:auto minmax(0,1fr);min-height:48px;padding:10px 11px;border-radius:8px}.mobile-shell .mobile-script-field-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--mobile-muted);font-size:10px;line-height:1.4}.mobile-shell .mobile-script-field-meta b{color:#059669;font-size:9px}.mobile-route--script.mobile-tab--assistant>.mobile-shell__route-view>.assistant-mode-pane{display:flex;flex-direction:column;margin-top:10px;padding:15px 16px 18px;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line);background:var(--mobile-panel)}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.assistant-head{display:none}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.prompt-box{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0;padding:0;border:0;background:transparent}.mobile-route--script.mobile-tab--assistant .prompt-box .field{min-width:0}.mobile-route--script.mobile-tab--assistant .prompt-box .studio-label{font-size:11px}.mobile-route--script.mobile-tab--assistant .prompt-box .studio-input{min-width:0;width:100%;font-size:14px}.mobile-shell .mobile-script-assistant-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:10px}.mobile-shell .mobile-script-assistant-actions .checkline{min-height:34px;font-size:11px}.mobile-shell .mobile-script-assistant-actions .studio-button{min-height:34px;padding:0 10px;font-size:11px}.mobile-route--script.mobile-tab--assistant .script-call-hint{margin:9px 0 0;font-size:10px;line-height:1.45}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.chat-list{min-height:0;padding:14px 0}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.pending-box{margin:0}.mobile-route--script.mobile-tab--assistant .pending-diff{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.composer{margin:0;padding-top:12px;grid-template-columns:1fr}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.composer .studio-textarea{min-height:82px}.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.composer .composer__actions,.mobile-route--script.mobile-tab--assistant .assistant-mode-pane>.composer .studio-button{width:100%}@media(max-width:355px){.mobile-shell__tabs button{font-size:10px}.mobile-card-identity{grid-template-columns:64px minmax(0,1fr);gap:9px}.mobile-card-identity__avatar{width:64px;height:64px}.mobile-shell__tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-route--beauty.mobile-tab--assistant .pending-diff,.mobile-route--beauty.mobile-tab--assistant .draft-box__grid,.mobile-route--script.mobile-tab--assistant .pending-diff,.mobile-route--script.mobile-tab--assistant .prompt-box{grid-template-columns:minmax(0,1fr)}}.mobile-help-panel,.mobile-shell .desktop-help-doc{display:none}.mobile-shell .mobile-help-panel{display:flex;width:100%;max-width:none;height:92dvh;max-height:92dvh;flex-direction:column;padding:10px 16px calc(18px + env(safe-area-inset-bottom,0px));overflow:hidden;border-radius:14px 14px 0 0}.mobile-help-panel__head{flex:0 0 auto;margin-bottom:12px}.mobile-help-panel__head h2{font-size:17px}.mobile-help-panel__content{min-height:0;overflow-y:auto}.mobile-help-panel__alert{display:grid;gap:7px;margin-bottom:12px;padding:10px 11px;border:1px solid #fecaca;border-radius:8px;color:#991b1b;background:#fff7f7;font-size:11px;line-height:1.55}.mobile-help-panel__support{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 10px;margin-bottom:12px;padding:10px 0;border-top:1px solid var(--mobile-line);border-bottom:1px solid var(--mobile-line)}.mobile-help-panel__support>div{min-width:0}.mobile-help-panel__support strong,.mobile-help-panel__support span{display:block}.mobile-help-panel__support strong{font-size:11px;line-height:1.45}.mobile-help-panel__support span{margin-top:3px;color:var(--mobile-muted);font-size:10px}.mobile-help-panel__support .doc-support__code{min-height:32px;padding:0 9px;font-size:11px}.mobile-help-panel__support .doc-support__tip{grid-column:1 / -1;min-height:14px;margin:0;color:#059669}.mobile-help-section{border-top:1px solid var(--mobile-line)}.mobile-help-section:last-child{border-bottom:1px solid var(--mobile-line)}.mobile-help-section summary{display:flex;min-height:44px;align-items:center;justify-content:space-between;gap:10px;padding:0;color:var(--mobile-text);font-size:12px;font-weight:800;cursor:pointer;list-style:none}.mobile-help-section summary::-webkit-details-marker{display:none}.mobile-help-section summary svg{flex:0 0 17px;color:var(--mobile-muted);transition:transform .16s ease}.mobile-help-section[open] summary svg{transform:rotate(180deg)}.mobile-help-section p{margin:0 0 10px;color:var(--mobile-muted);font-size:11px;line-height:1.58}.mobile-help-section p:last-child{margin-bottom:12px}@media(max-width:355px){.mobile-shell .mobile-help-panel{padding-left:12px;padding-right:12px}.mobile-help-panel__support{grid-template-columns:minmax(0,1fr)}.mobile-help-panel__support .doc-support__code{justify-self:start}}
