/* Holopod design system applied to Workshop. Latest approved product rules, 2026-10-22. */
:root{--font-body:16px;--line-body:20px;--font-sm:12px;--line-sm:16px;--font-title:16px;--line-title:20px;--font-display:32px;--line-display:40px;--interaction-pad:16px;--interaction-pad-y:16px;--control-pad-x:16px;--control-pad-y:16px;--control:52px;--header-row-height:52px;--field-gap:12px;--group-gap:24px;--section-gap:48px;--gutter:48px;--card-column-gap:24px;--card-row-gap:24px;--secondary:rgb(80% 80% 80%);--muted:var(--secondary);--note-text:rgb(40% 40% 40%);--placeholder-text:rgb(40% 40% 40%);--disabled-text:rgb(40% 40% 40%);--line:rgb(20% 20% 20%);--overlay-duration:200ms;--menu-hover-duration:200ms;--content-enter-duration:1000ms;--content-enter-ease:cubic-bezier(.25,.1,.25,1)}
body{font:400 16px/20px var(--font-ui);color:var(--secondary)}
:is(#root,#screenNotice,dialog,.floating-menu){--interaction-pad:16px;--interaction-pad-y:16px;--control-pad-y:16px;--control-pad-x:16px}
:is(dialog,.review-dialog,.login-panel,.review-surface-light,.review-menu,.user-menu,.model-options,.state-preview-menu,.floating-menu){--secondary:rgb(20% 20% 20%);--muted:var(--secondary);--note-text:rgb(40% 40% 40%);--placeholder-text:rgb(60% 60% 60%);--disabled-text:rgb(60% 60% 60%);--line:rgb(80% 80% 80%)}
:is(#root,#screenNotice,dialog,.floating-menu) :is(button,input,textarea,select,summary){font-family:var(--font-ui);font-size:16px;line-height:20px}
:is(#root,#screenNotice,dialog,.floating-menu) :is(p,input,textarea,select,.menu-row-content,.category,.card-meta,.animation-meta){color:var(--secondary)}
:is(#root,#screenNotice,dialog,.floating-menu) :is(h1,h2,h3,h4,strong,b){color:var(--text);font-weight:700}
:is(#root,#screenNotice,dialog,.floating-menu) :is(label,.field-label,.field-note,.field-error,.generator-context,.animation-file-detail,.note,small){font-size:12px;line-height:16px;color:var(--note-text)}
:is(#root,#screenNotice,dialog,.floating-menu) :is(button:not(.cover),input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea,.user-account summary,.visibility-options label){box-sizing:border-box;height:auto;min-height:48px;max-height:none;padding:16px;border-radius:0}
:is(#root,#screenNotice,dialog,.floating-menu) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),textarea,select){background:var(--bg);box-shadow:inset 0 0 0 1px var(--line);border:0}
:is(#root,#screenNotice,dialog,.floating-menu) :is(input,textarea,select):focus{background:var(--bg)}
:is(input,textarea)::placeholder{color:var(--placeholder-text);opacity:1}
:is(#root,#screenNotice,dialog,.floating-menu) input[type=checkbox]{appearance:none;-webkit-appearance:none;width:16px;height:16px;min-height:0;padding:0;border:0;box-shadow:inset 0 0 0 1px var(--secondary);background:transparent;border-radius:0;position:relative;flex:none}
input[type=checkbox]:checked::after{content:'✓';position:absolute;inset:0;font:700 12px/16px var(--font-ui);text-align:center;color:var(--text)}
:is(#root,#screenNotice,.floating-menu) button.menu-row{padding:0;min-height:0;height:auto}
:is(#root,#screenNotice,.floating-menu) .menu-row-content{padding:16px;min-height:52px;font-size:16px;line-height:20px}
.floating-menu :is(.menu-row,.menu-row-content):not(:last-child){box-shadow:inset 0 -1px var(--line)}
.state-preview-menu{min-width:0;width:max-content;max-width:calc(100vw - 32px)}
:is(#root,#screenNotice)>.site-header{grid-template-rows:minmax(52px,auto)}
:is(#root,#screenNotice) .site-header .site-debug-controls{gap:0;margin-left:-16px}
:is(#root,#screenNotice) .site-header :is(#layoutAnnotations,.state-preview-trigger){min-width:56px;min-height:52px;padding:16px;line-height:20px}
:is(#root,#screenNotice) .site-header :is(#layoutAnnotations,.state-preview-trigger)>span{width:24px;line-height:20px}
:is(#root,#screenNotice) .site-header .logo{height:auto;margin:0}
:is(#root,#screenNotice) .site-header .site-links>a{padding:0;min-height:48px;color:var(--secondary);font:400 16px/20px var(--font-ui)}
.navigation-row{min-height:52px}.user-account summary{padding:16px}
.review-list > :not(:last-child){border-top:0;box-shadow:inset 0 -1px var(--line)}
/* Same content entrance as product sections; existing observers retain visibility/lifecycle. */
.card-entering{animation-duration:1000ms!important;animation-timing-function:var(--content-enter-ease)!important}
.card-entering :is(.card-meta,.animation-meta){animation-duration:1000ms!important;animation-timing-function:var(--content-enter-ease)!important}
.name-reveal-character{white-space:pre}
@media(max-width:767px){:root{--gutter:24px;--group-gap:12px;--section-gap:24px;--card-column-gap:12px;--card-row-gap:12px}:is(#root,#screenNotice)>.site-header{padding-inline:16px}:is(#root,#screenNotice) .site-header :is(#layoutAnnotations,.state-preview-trigger){min-width:40px;padding-inline:8px}:is(#root,#screenNotice) .site-header .logo img{width:clamp(80px,calc(100vw - 240px),170px)}}
@media(prefers-reduced-motion:reduce){.card-entering,.card-entering *{animation-duration:0ms!important;transition:none!important}}

#layout-measure-layer{position:fixed;inset:0;z-index:99990;pointer-events:none;overflow:hidden}
#layout-measure-layer>div{position:absolute;box-sizing:border-box;outline:1px solid var(--measure-color);outline-offset:-1px}
#layout-measure-layer span{position:absolute;display:block;width:max-content;max-width:380px;font:10px/12px monospace;padding:0 2px;color:var(--measure-color);background:#080b10;white-space:nowrap}
#layout-measure-layer .measure-space{background:color-mix(in srgb,var(--measure-color) 10%,transparent);outline-style:dotted}
#layout-measure-layer .measure-margin{background:color-mix(in srgb,var(--measure-color) 5%,transparent);outline-style:dashed}
#layout-measure-layer .measure-gap{background:color-mix(in srgb,var(--measure-color) 18%,transparent);outline-style:dashed}
#layout-measure-layer .measure-container{outline:2px solid var(--measure-color);outline-offset:-2px}
#layout-measure-layer .measure-box{outline:1px dashed var(--measure-color)}
#layout-measure-layer .measure-space,#layout-measure-layer .measure-margin,#layout-measure-layer .measure-gap{background:none;outline:none}
#layout-measure-layer .measure-vertical::before{content:"";position:absolute;left:50%;top:0;height:100%;border-left:1px solid var(--measure-color)}
#layout-measure-layer .measure-vertical::after{content:"";position:absolute;left:calc(50% - 4px);top:0;width:9px;height:100%;box-sizing:border-box;border-top:1px solid var(--measure-color);border-bottom:1px solid var(--measure-color)}
#layout-measure-layer .measure-horizontal::before{content:"";position:absolute;left:0;top:50%;width:100%;border-top:1px solid var(--measure-color)}
#layout-measure-layer .measure-horizontal::after{content:"";position:absolute;left:0;top:calc(50% - 4px);height:9px;width:100%;box-sizing:border-box;border-left:1px solid var(--measure-color);border-right:1px solid var(--measure-color)}
#layout-measure-layer span{z-index:2}
#layout-measure-layer .measure-font-size{color:#fff;font:inherit}
#layout-measure-layer .measure-box{outline:none;background:color-mix(in srgb,var(--measure-color) 12%,transparent)}
#layout-measure-layer .measure-horizontal,#layout-measure-layer .measure-vertical{outline:none;background:none}

.card-entering>.cover,.card-entering>.animation-preview,.card-entering>.animation-preview>.cover,.card-entering>:is(.card-meta,.animation-meta){animation-duration:1000ms!important;animation-timing-function:var(--content-enter-ease)!important}
.loading-text-character{color:inherit;white-space:pre}

/* Review fixes: a menu row has ONE padded layer and ONE bottom separator. */
.floating-menu button.menu-row,.floating-menu button.menu-row:is(:hover,:focus-visible,:active){padding:0!important;min-height:0!important;height:auto!important;border:0!important;box-shadow:none!important;background:transparent!important}
.floating-menu .menu-row-content{padding:16px!important;min-height:52px!important;color:rgb(20% 20% 20%)!important;border:0!important;box-shadow:none!important}
.floating-menu button.menu-row:not(:last-child)>.menu-row-content{box-shadow:inset 0 -1px rgb(80% 80% 80%)!important}
.floating-menu .menu-row-content :is(span,b){color:inherit}
.textarea-shell::before,.textarea-shell::after{display:none!important}
/* Selected white surfaces invert REGULAR text to B20, never B80/B100. */
:is(#root,#screenNotice) .category.active,:is(#root,#screenNotice) .category.active :is(span,.unread-text){color:rgb(20% 20% 20%)!important}
:is(#root,#screenNotice,dialog) button.primary{color:rgb(20% 20% 20%)}
:is(dialog,.review-surface-light,.login-panel) button.primary{color:rgb(80% 80% 80%)}
:is(#root,#screenNotice) :is(.tabs button,.category,.category-group-toggle,.site-links a,.navigation-action,.user-account summary){color:rgb(80% 80% 80%)}
:is(#root,#screenNotice) .category.active{color:rgb(20% 20% 20%)}

/* Computed typography audit: normal16px text follows the actual painted surface. */
[data-regular-body-tone="dark"]{color:rgb(80% 80% 80%)!important}
[data-regular-body-tone="light"]{color:rgb(20% 20% 20%)!important}

/* Fixed application shell; the workspace owns three independent scroll panels. */
html,body{height:100%;overflow:hidden;overscroll-behavior:auto}
#root,#screenNotice{height:100dvh;min-height:0;overflow:hidden}
#root>.site-header,#screenNotice>.site-header{flex-shrink:0}
#root>.site-scroll,#screenNotice>.site-scroll{flex:1 1 0;min-height:0;overflow:hidden;background:#000}
#root>.site-scroll>.studio-page{flex:1 1 0;height:100%;min-height:0;overflow:hidden}
#root>.site-scroll>.page{flex:1 1 0;height:100%;min-height:0;overflow-y:auto;overscroll-behavior-y:auto}
.site-scroll .site-footer{display:none}
.character-header{padding-block:16px}
.studio-viewport{flex:1 1 0;min-height:0;overflow:hidden}
.studio-columns{height:100%;min-height:0;overflow:hidden}
.workspace-main-scroll{height:100%;min-height:0;overflow:hidden;margin-right:0;padding:0;scrollbar-gutter:auto}
.workspace-main{height:100%;min-height:0;overflow:hidden;align-items:stretch}
.category-column,.workspace-main .animation-area,.workspace-main .generator-column{position:static;height:100%;max-height:none;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:auto;scrollbar-gutter:stable;scrollbar-width:thin;padding-top:24px;padding-bottom:48px}
/* 人设文本框随内容增高后，将滚轮交给右侧设置区域。 */
#editPersona{overscroll-behavior-y:auto}
.workspace-main .animation-area{display:block}
.workspace-main .animation-area>.animation-heading{margin-bottom:var(--form-gap)}
@media(max-width:767px){.category-column,.workspace-main .animation-area,.workspace-main .generator-column{padding-top:12px;padding-bottom:24px}}

/* Secondary navigation aligns its outer text edges with the48px content gutter. */
:is(#root,#screenNotice) .navigation-row :is(.back,.navigation-action){padding-inline:0!important;padding-block:16px!important}
:is(#root,#screenNotice) .navigation-row .user-account summary{padding-inline:0!important}
.navigation-tools{max-width:none;min-width:max-content;gap:24px}
.credit-balance{max-width:none}.credit-region{padding-right:0}
:is(#root,#screenNotice) .unread-marker{color:var(--notification)!important}
:is(#root,#screenNotice) .category-group-toggle{padding-inline:0!important}
:is(#root,#screenNotice,dialog) textarea{min-height:152px!important;field-sizing:fixed}
/* Match product menu's hover fill and separator color. */
.floating-menu button.menu-row:not(:last-child)>.menu-row-content{box-shadow:inset 0 -1px rgb(90% 90% 90%)!important}
/* Remove legacy full-bleed navigation and its compensating Back offset. */
:is(#root,#screenNotice) .navigation-row{margin-inline:0}
:is(#root,#screenNotice) .navigation-row>.back{margin-left:0}
:is(#root,#screenNotice) .navigation-row::after{left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter))}

/* Visibility uses a full inset frame; generic list separators must not erase its top. */
.voice-options{display:flex;flex-direction:column}
.voice-option{display:flex;box-shadow:inset 0 -1px var(--line)}
.voice-option>[data-choose-voice]{flex:1;text-align:left;background:transparent;color:var(--secondary)}
.voice-option>[data-preview-voice]{flex:none;background:transparent;color:var(--secondary)}
.voice-option button:hover{background:var(--panel)}
#editVoice{width:100%;text-align:left;background:transparent;box-shadow:inset 0 0 0 1px var(--line-strong)}

.studio-columns{--category-min-width:176px}
@media(max-width:1200px){.studio-columns{--category-min-width:144px}}
/* Keep dismissal hit area for small menus without dimming/blur. */
.menu-backdrop{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
dialog::backdrop{background:rgb(0 0 0 / 50%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
/* Restore approved shared-edge visibility control (original decision2026-10-07). */
:is(#root,dialog) .visibility-options>label{flex:0 0 calc(100% / 3);margin:0;min-height:52px;padding:15px!important;border:1px solid transparent!important;box-shadow:none!important;background:transparent!important;color:var(--secondary);transition:border-color 200ms ease-out;z-index:0}
:is(#root,dialog) .visibility-options>label+label{margin-left:-1px}
:is(#root,dialog) .visibility-options>label:has(input:not(:checked)):hover{border-color:#ccc!important;z-index:1}
:is(#root,dialog) .visibility-options>label:has(input:checked){border-color:var(--line-strong)!important;z-index:2}
:is(#root,dialog) .visibility-options>label{min-height:52px!important;font-size:16px;line-height:20px}

/* Panels still scroll natively, with no painted scrollbar or reserved rail. */
.category-column,.workspace-main .animation-area,.workspace-main .generator-column{scrollbar-width:none;scrollbar-gutter:auto;-ms-overflow-style:none}
.category-column::-webkit-scrollbar,.workspace-main .animation-area::-webkit-scrollbar,.workspace-main .generator-column::-webkit-scrollbar{display:none;width:0;height:0}
/* Action buttons use filled surfaces, including file pickers and voice chooser. */
:is(#root,dialog) :is(.animation-file-picker,#editVoice,.drop){border:0!important;box-shadow:none!important;background:var(--panel);color:var(--secondary)}
@media(hover:hover) and (pointer:fine){:is(#root,dialog) :is(.animation-file-picker,#editVoice,.drop):hover{background:var(--hover);box-shadow:none!important}}
:is(#root,dialog) :is(.animation-file-picker,.drop).drag{background:var(--hover);box-shadow:none!important}

/* Outer layout rhythm uses24/48; control insets remain16. */
/* Text fields share the same surface-aware outline, regardless of single/multiline. */
/* A field is one composite: label, control and helper stay close. */
:is(.field,.animation-file-field){gap:12px}
:is(.field-heading,.character-context,.character-buttons,.animation-heading,.modal-actions,.navigation-row){gap:24px}
.animation-meta{padding-top:24px}
/* Composite controls retain their own compact icon/text spacing. */
@media(max-width:767px){:is(.field,.animation-file-field){gap:12px}:is(.field-heading,.character-context,.character-buttons,.animation-heading,.modal-actions,.navigation-row){gap:12px}.animation-meta{padding-top:12px}}

/* Functional strip is a layout container, not a button:24px outside its children. */
.character-header{padding-block:24px}
.character-header :is(.character-actions,.character-context,.character-buttons){gap:24px}
.animation-status-symbol{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;font-family:"Arial Unicode MS","Arial",sans-serif;font-size:16px;line-height:16px;font-weight:400}

/* Image requirements share the field heading; errors only occupy space when present. */
.image-requirements{margin-left:auto;text-align:right}
#uploadError:empty{display:none}

/* Editing actions already communicate status; omit the duplicate status row. */
.animation-card.is-editing .animation-status{display:none}
.animation-card.is-editing .animation-actions{top:0}
:is(#root,#screenNotice,dialog) button.animation-action{font-size:12px;line-height:16px}

/* One menu column and one shared right inset for every action label. */
.animation-actions{right:0;align-items:flex-end;width:max-content}
:is(#root,#screenNotice,dialog) .animation-actions>button.animation-action{width:max-content;padding:16px;text-align:right;box-sizing:border-box}

.build-progress{display:flex;flex-direction:column;gap:24px}.build-progress>.workshop-loading{font-size:16px;line-height:20px;color:var(--secondary)}

#root #buildCharacter{background:#fff;color:#333}

/* 登录页复刻参考站的白色卡片；仅覆盖登录组件，保留其他页面控件尺寸。 */
.login-page{background:#000;padding:24px 48px}
#root:has(.login-page)>.site-header:not(:has(button)){grid-template-rows:48px;min-height:48px}
:is(#root,dialog) .login-panel{--bg:#fff;--text:#333;--secondary:#333;--placeholder-text:#999;--line:#333;box-sizing:border-box;width:480px;max-width:100%;min-height:0;padding:48px;background:#fff;color:#333;position:relative}
:is(#root,dialog) .login-panel #loginForm{display:flex;flex-direction:column;gap:24px;margin:0}
:is(#root,dialog) .login-panel #loginTitle{font:700 32px/48px var(--font-ui);margin:0;padding:0;color:#333}
:is(#root,dialog) .login-panel :is(.login-email-field,.login-code-row){position:relative;margin:0;width:100%}
:is(#root,dialog) .login-panel :is(#loginEmail,#loginCode,#sendLoginCode,#submitLogin){box-sizing:border-box;height:64px;min-height:64px;padding:24px;font:400 16px/16px var(--font-ui);border:0;border-radius:0;margin:0}
:is(#root,dialog) .login-panel :is(#loginEmail,#loginCode){display:block;width:100%;background:#fff;color:#333;box-shadow:inset 0 0 0 1px #333}
:is(#root,dialog) .login-panel :is(#loginEmail,#loginCode)::placeholder{color:#999;opacity:1}
:is(#root,dialog) .login-panel #loginCode{padding-right:128px}
:is(#root,dialog) .login-panel #sendLoginCode{position:absolute;right:0;top:0;white-space:nowrap;background:transparent;color:#333;box-shadow:none}
:is(#root,dialog) .login-panel #submitLogin{width:100%;background:#000;color:#fff;box-shadow:none}
:is(#root,dialog) .login-panel #sendLoginCode:disabled{color:#999;opacity:1}
:is(#root,dialog) .login-panel #submitLogin:disabled{color:#666;opacity:1}
:is(#root,dialog) .login-panel :is(input,button):focus-visible{outline:1px solid #333;outline-offset:-1px}
:is(#root,dialog) .login-panel #loginError{position:absolute;left:48px;right:48px;top:calc(100% - 42px);margin:0;color:#333;font:400 12px/18px var(--font-ui);overflow-wrap:anywhere}
:is(#root,dialog) .login-panel #loginError[hidden]{display:none}

/* The Workshop uses the whole viewport; retain the48px content gutters. */
.studio,.character-header{width:100%;max-width:none}
.studio{--scroll-edge-inset:var(--gutter)}
.gallery,.page-empty>.empty-state{max-width:none}
