/* Navigation uses a glass surface; editors use quiet, readable standard surfaces. */
:root{color-scheme:light;--bg:#F3F4F6;--card:#FFF;--text:#20232A;--sub:#737984;--line:rgba(45,56,75,.10);--primary:#176DE8;--primary-hover:#105AC4;--primary-soft:#EAF2FF;--danger:#CB443B;--radius-lg:22px;--shadow-sm:0 1px 3px rgba(30,44,65,.035);--shadow-md:0 5px 24px rgba(34,50,74,.055);--glass:rgba(247,249,252,.78)}
body{font-family:system-ui,-apple-system,BlinkMacSystemFont,sans-serif;background:radial-gradient(ellipse at 0 0,rgba(198,218,241,.48),transparent 45%),radial-gradient(ellipse at 100% 20%,rgba(220,228,219,.34),transparent 38%),#F3F4F6;letter-spacing:.005em;color:var(--text)}
button,input,select,textarea{font:inherit}button{font-size:12px;font-weight:550;letter-spacing:0;min-height:36px;border-radius:11px;padding:8px 13px;box-shadow:none;transition:background .16s,color .16s,box-shadow .16s;white-space:normal}button:hover{transform:none;box-shadow:none}button:active{transform:none;filter:brightness(.96)}button.ghost{background:#F0F2F5;border:1px solid transparent;color:#4D596A}button.ghost:hover{background:#E6EBF2;color:#202D40}button.danger{color:#BC3931;background:#FFF0EE;border:1px solid #F7DAD6}button.danger:hover{background:#FDE5E1}button:disabled{opacity:.42;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid rgba(23,109,232,.38);outline-offset:3px}
input,select,textarea{min-height:40px;border:1px solid #DCE1E8;border-radius:11px;background:#FBFCFD;padding:9px 12px;color:var(--text);font-size:13px;box-shadow:inset 0 1px 2px rgba(30,44,65,.015)}input:hover,select:hover,textarea:hover{border-color:#BAC8DB}input:focus,select:focus,textarea:focus{background:#FFF;border-color:#83ABE1;box-shadow:0 0 0 3px rgba(23,109,232,.10)}input[type=checkbox]{width:16px;min-height:16px;height:16px;accent-color:var(--primary);flex-shrink:0}input[type=file]{font-size:12px;max-width:100%}textarea{line-height:1.8;min-height:126px;resize:vertical}h1,h2,h3{color:var(--text);letter-spacing:-.025em}h2{font-size:18px;line-height:1.45}h3{font-size:14px;line-height:1.6}.sub,.muted{font-size:12px;color:var(--sub);line-height:1.8}.sub{margin-bottom:16px}.row{gap:8px;align-items:center}.grid{gap:18px!important}.form-label{font-weight:550;color:#414A59;font-size:12px;line-height:1.65}.form-group{gap:7px;min-width:0}.topbar{gap:16px;margin:0 0 14px!important;padding:0!important;border:0!important;align-items:center}.topbar h2,.topbar h3{margin:0}.topbar .row,.cell-actions{gap:7px;flex-wrap:wrap}.card{border:1px solid rgba(213,220,231,.66);border-radius:22px;padding:24px;background:rgba(255,255,255,.94);backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:var(--shadow-sm);margin:0 0 18px;transition:none}.card:hover{transform:none;border-color:rgba(213,220,231,.85);box-shadow:var(--shadow-sm)}[hidden],.hidden{display:none!important}
.wrap{max-width:1800px;margin:0 auto;padding:18px 22px 36px}.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:28px;align-items:start}.admin-sidebar{position:sticky;top:18px;height:calc(100dvh - 36px);min-height:0;display:flex;flex-direction:column;gap:16px;padding:22px 14px 14px;border-radius:26px;border:1px solid rgba(255,255,255,.95);background:var(--glass);box-shadow:inset 0 1px 0 #FFF,0 8px 36px rgba(35,53,82,.055);backdrop-filter:blur(28px) saturate(140%);-webkit-backdrop-filter:blur(28px) saturate(140%);overflow:auto;color:var(--text)}
.workspace-brand{padding:0 8px 12px;display:flex;align-items:center;gap:11px;font-weight:650;font-size:15px}.workspace-brand small{display:block;margin-top:4px;color:var(--sub);font-size:10px;font-weight:400;letter-spacing:.035em}.workspace-brand-icon{display:flex;align-items:center;justify-content:center;width:37px;height:37px;border-radius:13px;background:linear-gradient(135deg,#FFF,#DEEAF9);color:#336DAC;border:1px solid #FFF;box-shadow:0 2px 7px #DCE4EE}.workspace-brand-icon svg{width:22px;height:22px}.section-tabs{display:flex;flex-direction:column;gap:18px;padding:0;overflow:visible;flex:1}.nav-group{display:flex;flex-direction:column;gap:4px;min-width:0}.nav-group-title{padding:0 11px 5px;font-size:10px;font-weight:550;letter-spacing:.06em;color:#8A919D}.section-tabs .tab-btn{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-height:42px;width:100%;border:1px solid transparent;border-radius:13px;background:transparent;color:#5A6372;font-size:12px;font-weight:500;padding:9px 11px;box-shadow:none;text-align:left;white-space:nowrap}.section-tabs .tab-btn:hover{background:rgba(255,255,255,.78);color:#293A51}.section-tabs .tab-btn.active{background:rgba(255,255,255,.97);border-color:#E7ECF3;box-shadow:0 2px 8px rgba(35,53,82,.06);color:#1765D2;font-weight:600}.nav-symbol{width:20px;height:20px;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}.nav-symbol svg{width:19px;height:19px}.workspace-account{margin-top:auto;display:flex;gap:7px;padding:14px 7px 0;border-top:1px solid var(--line);font-size:11px;color:var(--sub);align-items:center;flex-wrap:wrap}.workspace-account b{color:#566174;font-weight:550}.workspace-account button{margin-left:auto;font-size:10px;min-height:28px;padding:4px 8px;background:transparent}.account-dot{width:6px;height:6px;border-radius:50%;background:#74A889;box-shadow:0 0 0 3px #E4EEE8}
.admin-main{min-width:0;padding-top:4px}.workspace-header{position:relative;top:auto;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:6px 0 20px;margin:0;border:0;box-shadow:none;border-radius:0;background:transparent;backdrop-filter:none;min-height:108px}.workspace-eyebrow{font-size:10px;letter-spacing:.07em;color:#8B929D;margin:0 0 6px}.workspace-header h1{font-size:28px;font-weight:680;line-height:1.4;margin:0}#workspaceDescription{font-size:12px;color:var(--sub);margin-top:7px;line-height:1.7}.workspace-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:48%;padding-top:10px}.workspace-actions>button{display:inline-flex;align-items:center;gap:8px;min-height:36px;background:rgba(255,255,255,.66);border:1px solid rgba(255,255,255,.92);border-radius:20px;padding:7px 13px;color:#626F82;backdrop-filter:blur(12px)}.workspace-actions svg{width:15px;height:15px}kbd{font:10px system-ui;color:#9198A2;border:1px solid #E0E5EC;border-radius:5px;padding:1px 4px}.workspace-state{width:100%;text-align:right;font-size:10px;color:#8B929D;padding-right:3px}#workspaceSaveStatus{background:transparent;border:0;box-shadow:none;padding:0}.workspace-actions button span:empty{display:none}.module-overview{display:flex;align-items:center;gap:12px;margin-bottom:18px;padding:13px 17px;border:1px solid rgba(207,220,237,.6);background:rgba(234,241,251,.6);border-radius:16px;font-size:12px;color:#657994;line-height:1.7}.module-overview .overview-icon{color:#6E8CB2;display:flex;flex-shrink:0}.overview-icon svg{width:17px;height:17px}.module-overview strong{color:#49637F;font-weight:550}.module-overview button{margin-left:auto;flex-shrink:0;min-height:28px;font-size:11px;padding:3px 9px;background:transparent;color:#55779E}
.photo-tabs,.library-admin-tabs,.design-segments{display:flex;align-items:center;flex-wrap:wrap;gap:4px;width:fit-content;max-width:100%;padding:4px;border:1px solid rgba(224,230,239,.8);background:rgba(232,237,244,.78);border-radius:16px;margin:0 0 18px;box-shadow:inset 0 1px 2px rgba(40,55,76,.03)}.photo-tabs button,.library-admin-tabs button,.design-segments button{min-height:32px;padding:6px 15px;border:1px solid transparent;border-radius:12px;background:transparent;color:#7A8494;font-size:12px;white-space:nowrap;box-shadow:none}.photo-tabs button.active,.library-admin-tabs button.active,.design-segments button.active{color:#324F75;background:#FFF;border-color:#F8FAFD;box-shadow:0 1px 5px rgba(40,55,76,.07)}
.photo-workspace{display:grid;grid-template-columns:172px minmax(0,1fr);gap:24px}.gallery-sidebar{background:#F6F8FB;padding:15px 10px;border:1px solid #E9EDF3;border-radius:16px;min-width:0}.gallery-sidebar h3{font-size:11px;font-weight:550;color:#8B94A1;padding:0 9px;margin-bottom:12px}.gallery-nav-item{font-size:11px;min-height:35px;padding:7px 9px;border-radius:9px;color:#647083}.gallery-nav-item.active{background:#E6EFFB;color:#2C66B6;border-color:transparent}.gallery-sidebar>button{font-size:10px;min-height:30px;width:100%;margin-top:12px}.photo-content{min-width:0}.photo-content .topbar .sub{margin:5px 0 0;font-size:11px}.photo-content .topbar h2{font-size:18px}.toolbar{gap:9px;margin:16px 0;grid-template-columns:minmax(160px,1fr) 140px 110px}.selection-toolbar{position:relative;top:auto;border:1px solid #E6EBF2;border-radius:12px;padding:8px 10px;background:#F7F9FC;backdrop-filter:none;box-shadow:none;gap:6px}.selection-toolbar button{min-height:28px;font-size:10px;padding:4px 8px}.selection-count{font-size:10px}.image-grid-view tbody{grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:12px}.image-grid-view tr{border-radius:15px;border:1px solid #E4E9F0;box-shadow:none;background:#FFF}.image-grid-view tr:hover{border-color:#B9CFEA;box-shadow:0 4px 14px rgba(35,53,82,.05);transform:none}.image-grid-view td:nth-child(2){height:192px;background:#F7F9FC}.image-grid-view td:nth-child(3){font-size:11px;line-height:1.6}.image-grid-view td:nth-child(4),.image-grid-view td:nth-child(5){font-size:10px}.image-grid-view .cell-actions button{font-size:10px;min-height:27px;padding:4px 8px}.table-wrap{border:1px solid #E5EAF1;border-radius:14px}.table-wrap.image-grid-view{border:0;border-radius:0}.file-table th{background:#F6F8FB;font-size:11px;font-weight:550;color:#8490A1}.file-table td{font-size:12px;padding:12px}.pager{font-size:11px;gap:10px;margin-top:16px}.pager .btns{gap:6px}.pager button{font-size:11px;min-height:32px}
.settings-section{padding:20px 0;border-top:1px solid var(--line);min-width:0}.settings-section:first-child{padding-top:0;border-top:0}.settings-section h3{margin:0 0 5px;font-size:14px}.settings-section>.sub{font-size:11px;margin:0 0 15px}.settings-section .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.settings-section .form-group{min-width:0}.settings-section .form-group:has(textarea){grid-column:1/-1}.site-config-layout{grid-template-columns:minmax(0,1fr) 240px;gap:26px}.content-preview{border:1px solid #E5EAF2;background:#F7F9FC;border-radius:18px;padding:15px;position:sticky;top:20px;align-self:start}.content-preview summary{font-size:11px;color:#8592A4;margin:0 0 14px;list-style:none}.phone-preview{border:5px solid #E4EAF2;border-radius:27px;box-shadow:none;background:#FFF;min-height:350px;padding:20px 12px}.phone-preview h3{font-size:16px}.preview-photo{background:#F1F5FA;border:1px dashed #CCD7E7;color:#9AA8BA;border-radius:12px;font-size:11px}.alert{border:1px solid #E3EAF4;border-radius:13px;padding:12px 14px;font-size:12px;box-shadow:none;background:#F3F7FC;color:#6C809B}.alert>span{display:none}details{border-color:#E6EBF3;border-radius:14px}summary{font-size:12px;font-weight:550;cursor:pointer}.workflow-steps{display:flex;gap:6px;flex-wrap:wrap;margin:14px 0;color:#8B97A8;font-size:11px}.workflow-steps span{background:#F3F6FA;padding:5px 9px;border-radius:8px}.workflow-steps span.current{color:#326CB9;background:#EAF2FF}
.module-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}.module-layout>.module-card{margin:0}.feedback-settings{display:flex;flex-direction:column;gap:16px}.feedback-settings .card{padding:18px;margin:0}.feedback-settings .topbar{align-items:flex-start;gap:9px}.feedback-settings h2{font-size:14px}.feedback-settings .topbar>button{font-size:10px;padding:5px 8px;min-height:30px;flex-shrink:0}.feedback-settings .grid{grid-template-columns:minmax(0,1fr)!important;gap:13px!important}.feedback-settings .form-group[style]{padding:0!important;margin:0 0 12px!important;background:transparent!important;border:0!important}.feedback-admin-item,.feedback-admin-card{border-radius:15px;border:1px solid #E4EAF2;box-shadow:none;background:#FBFCFE}.feedback-admin-list{gap:12px}.feedback-toolbar{gap:8px}.feedback-admin-textarea{min-height:86px}.feedback-admin-grid{gap:12px}.feedback-admin-meta{color:#8A96A7;font-size:10px}
.taxonomy-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;align-items:start}.taxonomy-content{min-width:0}.taxonomy-inspector{padding:16px;background:#F7F9FC;border:1px solid #E5EBF3;border-radius:17px;position:sticky;top:20px;min-width:0}.taxonomy-inspector details{border:0;background:transparent;padding:0;margin:0 0 18px}.taxonomy-inspector summary{font-size:12px;margin-bottom:12px}.taxonomy-inspector .library-admin-toolbar{display:flex;gap:7px;flex-wrap:wrap}.taxonomy-inspector input,.taxonomy-inspector select{min-width:0!important;width:100%;flex:1 1 100%}.taxonomy-inspector button{min-height:31px;font-size:10px;flex:1;min-width:0}.taxonomy-inspector .library-admin-tags{max-height:240px;overflow:auto;display:flex;gap:6px;padding:10px 0}.library-admin-tags label{font-size:11px;border:1px solid #E1E8F2;background:#FFF;border-radius:9px;padding:5px 8px}.library-admin-toolbar{gap:8px}.library-admin-toolbar input{min-width:120px}.library-admin-grid{gap:12px;grid-template-columns:repeat(auto-fill,minmax(155px,1fr))}.library-admin-photo{border-radius:15px;border-color:#E3E9F2;padding:10px;box-shadow:none}.library-admin-photo img{height:185px;background:#FAFBFD;border-radius:9px}.library-admin-photo strong{font-size:11px}.library-admin-photo small,.library-admin-photo p{font-size:10px}.library-admin-select{font-size:10px}.library-admin-settings{gap:18px}.library-admin-settings label{font-size:12px;line-height:1.7}.library-admin-review{background:#FCFDFE;border:1px solid #E5EBF2;border-radius:16px;padding:18px;margin:12px 0;grid-template-columns:170px minmax(0,1fr)}.library-admin-review>img{border-radius:12px;background:#F4F7FB}.library-admin-review strong{font-size:14px}.library-admin-review p{font-size:12px;margin:7px 0}.library-admin-rule{font-size:12px;gap:14px}.library-admin-rule button{flex-shrink:0}.rules-editor{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}.rules-editor select[multiple]{min-height:190px}.user-config-save{position:sticky;top:12px;z-index:20;background:var(--glass);backdrop-filter:blur(20px);padding:12px 16px!important;border:1px solid #FFF!important;border-radius:16px;margin-bottom:18px!important}.user-config-save .sub{margin:3px 0 0;font-size:10px}.user-config-save h2{font-size:17px}.settings-panel{max-width:100%}.settings-panel>.library-admin-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.field-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.field-heading>label{margin:0;flex:1}.help-field{position:relative;min-width:0;width:100%}.help-field>label{display:flex;flex-direction:column;gap:7px;min-width:0;width:100%}.help-field>label>input,.help-field>label>select{width:100%}.help-field>.help-trigger{position:absolute;top:0;right:0}.help-field>label{padding-top:0}.help-field>label:not(:has(input[type=checkbox])){padding-right:0}.help-field>label::first-line{padding-right:22px}.control-with-help{display:flex;align-items:center;gap:5px;min-width:0;flex:1}.control-with-help>input,.control-with-help>select{min-width:0;flex:1}.help-trigger{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:18px;min-width:18px;height:18px;min-height:18px;padding:0!important;margin:0!important;line-height:1;border:1px solid #CDD7E4!important;border-radius:50%!important;background:transparent!important;color:#879AB3!important;font-size:10px!important;font-weight:600;box-shadow:none!important;vertical-align:middle}.help-trigger:hover,.help-trigger[aria-expanded=true]{color:#2770CC!important;border-color:#91B3E1!important;background:#EAF2FF!important}
.admin-help-popover{position:fixed;z-index:100100;width:330px;max-width:calc(100vw - 24px);padding:18px;border:1px solid rgba(255,255,255,.95);border-radius:20px;background:rgba(248,250,254,.97);box-shadow:0 12px 48px rgba(28,44,68,.20),inset 0 1px 0 #FFF;backdrop-filter:blur(24px);color:#4F5E72;font-size:12px;line-height:1.85;max-height:calc(100dvh - 24px);overflow:auto}.admin-help-popover h3{font-size:14px;margin:0 20px 8px 0;color:#263B58}.admin-help-popover p{margin:7px 0}.help-example{background:#EDF2F9;border-radius:10px;padding:9px 11px;font-size:11px;color:#6D829E;white-space:pre-wrap}.help-scope{font-size:10px;color:#8B9AAD;border-top:1px solid #DFE7F1;padding-top:10px!important;margin-top:10px!important}.help-popover-close{position:absolute;right:10px;top:9px;font-size:18px;background:transparent;color:#91A1B6;padding:0;width:26px;height:26px;min-height:26px}.admin-dialog{width:min(620px,calc(100% - 28px));max-height:80dvh;max-width:calc(100vw - 28px);margin:auto;padding:0;border:1px solid #FFF;border-radius:24px;background:#F8FAFD;box-shadow:0 25px 100px rgba(25,40,65,.25);color:#30435E;overflow:auto}.admin-dialog::backdrop{background:rgba(33,48,70,.28);backdrop-filter:blur(5px)}.admin-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:22px 24px 12px}.admin-dialog-header h2{margin:0;font-size:18px}.admin-dialog-header button{font-size:18px;background:transparent;color:#8190A4;min-height:28px;padding:0 7px}.admin-dialog-search{padding:0 24px 16px}.admin-dialog-search input{background:#FFF;min-height:46px}.settings-search-results{padding:0 12px 16px}.setting-result{display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;gap:4px;background:transparent;color:#30435E;padding:12px;border-radius:13px}.setting-result:hover,.setting-result:focus{background:#EAF1FB}.setting-result strong{font-size:13px;font-weight:550}.setting-result small{font-size:10px;color:#8B9DB3}.settings-search-empty{padding:30px;text-align:center;font-size:12px;color:#8D9CAF}.setting-highlight{outline:3px solid #A2C2EC!important;outline-offset:4px;transition:outline-color .8s}.guide-chapters{padding:0 24px 24px}.guide-chapters details{padding:13px 0;border:0;border-bottom:1px solid #E1E7F0;background:transparent;border-radius:0}.guide-chapters p{font-size:12px;line-height:1.9;color:#70839C;margin:10px 0}.guide-intro{padding:0 24px 12px;font-size:12px;line-height:1.8;color:#8190A4}.admin-dialog-footer{padding:12px 24px;border-top:1px solid #E4EAF3;font-size:10px;color:#92A0B3}.upload-dropzone{background:#F7FAFD;border:1px dashed #BDCCE0;border-radius:18px;padding:22px}.upload-pick-card{background:#FFF!important;border:1px solid #E1E8F2!important;border-radius:13px;padding:16px}.upload-pick-title{font-size:13px;font-weight:550}.upload-pick-desc,.upload-drop-hint{font-size:11px;color:#8A97A9}.storage-filter-card{border-radius:15px;border-color:#E4EAF3;background:#F7F9FC}.storage-tree{background:#FAFBFD;border-color:#E5EAF2;border-radius:15px}.image-preview-dialog,.removal-dialog{border:1px solid #FFF;border-radius:22px;box-shadow:0 20px 90px rgba(25,40,65,.24);padding:22px}.status{border-radius:15px;box-shadow:0 8px 26px #233B5C24;font-size:12px}.gacha-audio-choice{min-width:0}.gacha-audio-choice audio{height:32px}.gacha-settings-view .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.audio-channel-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.gacha-audio-card{border:1px solid #E1E7F0;border-radius:14px;background:#FCFDFE;box-shadow:none}
#loginCard{max-width:1020px;margin:6vh auto;background:rgba(255,255,255,.92);border:1px solid #FFF;box-shadow:0 15px 70px rgba(43,61,86,.12);border-radius:30px;backdrop-filter:none}.login-shell{min-height:610px;grid-template-columns:1fr 1fr}.login-showcase{padding:52px 42px;background:radial-gradient(ellipse at 0 0,#DCEBF9,transparent 70%),radial-gradient(ellipse at 100% 100%,#E1EBDC,transparent 70%),#EDF2F7;color:#3F5975}.login-showcase::before,.login-showcase::after{display:none}.login-title{background:none;-webkit-text-fill-color:unset;color:#344E6B;font-size:36px;font-weight:650;line-height:1.4}.login-badge{background:rgba(255,255,255,.55);color:#7E94AB;border-color:#FFF;font-size:11px;text-transform:none;letter-spacing:.02em;padding:7px 12px}.login-showcase-inner{gap:28px}.login-accent-grid{gap:12px}.login-accent{padding:18px;background:rgba(255,255,255,.48);border-color:rgba(255,255,255,.8);box-shadow:none;backdrop-filter:none;border-radius:17px}.login-accent:hover{transform:none;background:rgba(255,255,255,.75)}.login-accent-kicker{font-size:9px;color:#9AAAC0}.login-accent-value{font-size:14px;color:#69829E}.login-panel{padding:52px 40px;background:transparent}.login-brand-mark{display:none}.login-eyebrow{font-size:11px;color:#9AABBF;letter-spacing:.03em;text-transform:none}.login-panel h2{font-size:24px;color:#3A4E69}.login-panel-sub{font-size:12px;color:#8A98AA;line-height:1.9}.login-field label{font-size:12px;color:#64768D}.login-input-icon{display:none}.login-input-wrap input{padding-left:12px;background:#F9FBFD}.login-actions button{background:#286FD6;box-shadow:none;font-size:13px;min-height:44px;border-radius:13px}.login-help-grid{gap:12px}.login-help-card{background:#F7F9FC;border-color:#E9EDF4;border-radius:13px;padding:12px}.login-help-card strong{color:#8999AE;font-size:10px}.login-help-card span{font-size:10px;color:#9EABBA}
.card{animation:none}
.action-with-help{display:inline-flex;align-items:center;gap:5px;flex-shrink:0}.action-with-help>.help-trigger{margin-right:3px!important}
.help-field>label:not(:has(input[type=checkbox])){padding-right:26px}
.help-field>label>input:not([type=checkbox]),.help-field>label>select{width:calc(100% + 26px)}
.help-field>label:has(input[type=checkbox]){flex-direction:row;align-items:center;padding-right:26px}
.help-field>label>input[type=checkbox]{width:16px;min-width:16px;height:16px;padding:0}
.settings-panel .library-upload-toggle{min-height:42px;gap:10px}
#userActionStatus:empty{display:none}.rule-tag-options{min-width:0;margin:0;padding:12px;border:1px solid #DDE5F0;border-radius:13px;background:#FAFCFE}.rule-tag-options legend{font-size:12px;padding:0 5px;color:#52647D}.rule-tag-options legend .help-trigger{margin-left:8px!important}.rule-tag-list{display:flex;flex-wrap:wrap;align-content:flex-start;gap:7px;max-height:240px;overflow:auto;min-height:100px}.rule-tag-list label{display:inline-flex;align-items:center;gap:6px;min-width:0;padding:5px 8px;border:1px solid #E3E9F2;border-radius:9px;background:#FFF;font-size:11px;color:#657B98;cursor:pointer}.rule-tag-list label:has(input:checked){background:#EAF2FD;border-color:#AAC9ED;color:#2F6DBD}.rule-tag-list input{margin:0}.section-tabs .tab-btn{transition:none}
@media(min-width:1600px){.admin-shell{grid-template-columns:232px minmax(0,1fr);gap:36px}.admin-main{padding-right:16px}.image-grid-view tbody{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}}
@media(max-width:1200px){.wrap{padding:14px}.admin-shell{grid-template-columns:190px minmax(0,1fr);gap:18px}.admin-sidebar{top:14px;height:calc(100dvh - 28px);padding:20px 11px 12px}.workspace-brand{font-size:14px;gap:8px}.workspace-brand-icon{width:31px;height:31px;border-radius:11px}.workspace-header h1{font-size:25px}.workspace-actions{max-width:47%}.workspace-actions kbd{display:none}.card{padding:20px}.photo-workspace{grid-template-columns:135px minmax(0,1fr);gap:16px}.taxonomy-workspace{grid-template-columns:minmax(0,1fr) 240px;gap:16px}.site-config-layout{grid-template-columns:minmax(0,1fr) 200px;gap:18px}.module-layout{grid-template-columns:minmax(0,1fr) 280px}.feedback-settings .topbar{flex-wrap:wrap}}
@media(max-width:1024px){.photo-workspace{grid-template-columns:1fr}.gallery-sidebar{padding:0 0 12px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0}.gallery-sidebar h3,.gallery-sidebar>button{display:none}#galleryNav{display:flex;overflow:auto;max-height:none;margin:0;gap:4px}.gallery-nav-item{width:auto;flex:0 0 auto;max-width:180px}.taxonomy-workspace{grid-template-columns:1fr}.taxonomy-inspector{position:static;order:-1}.taxonomy-inspector>details{margin:0}.taxonomy-inspector>details+details{margin-top:12px}.taxonomy-inspector .library-admin-toolbar input,.taxonomy-inspector .library-admin-toolbar select{flex:1;min-width:100px!important;width:auto}.taxonomy-inspector .library-admin-tags{max-height:120px}.site-config-layout{grid-template-columns:1fr}.content-preview{position:static;max-width:340px}.module-layout{grid-template-columns:1fr}.feedback-settings{display:grid;grid-template-columns:1fr 1fr}.workspace-header{gap:12px}.workspace-actions>button{padding:7px 10px}.workspace-actions button span:last-child{font-size:11px}}
@media(max-width:800px){.wrap{padding:10px}.admin-shell{grid-template-columns:minmax(0,1fr);gap:18px}.admin-sidebar{position:static;top:auto;height:auto;display:grid;grid-template-columns:1fr auto;gap:12px;padding:15px;border-radius:22px;overflow:visible}.workspace-brand{padding:0}.workspace-brand small{font-size:9px}.workspace-account{margin:0;padding:0;border:0;grid-column:2;grid-row:1;justify-self:end}.account-dot,.workspace-account>span:not(.account-dot){display:none}.section-tabs{grid-column:1/-1;display:flex;flex-direction:row;gap:4px;overflow-x:auto;padding:0 0 2px;scrollbar-width:thin}.nav-group{display:contents}.nav-group-title{display:none}.section-tabs .tab-btn{width:auto;flex:0 0 auto;min-height:36px;padding:7px 11px;gap:7px;font-size:11px}.nav-symbol,.nav-symbol svg{width:16px;height:16px}.workspace-header{padding:0 4px 15px;min-height:0;align-items:flex-start}.workspace-header h1{font-size:25px}.workspace-actions{max-width:42%;gap:5px;padding-top:4px}.workspace-actions>button{padding:7px 10px;min-height:32px}.setting-search-trigger span:nth-child(2),#btnAdminGuide span:last-child{display:none}.workspace-state{font-size:9px}.module-overview{padding:11px 13px;margin-bottom:14px;font-size:11px}.module-overview strong{display:block}.card{padding:18px;border-radius:18px}.photo-tabs,.library-admin-tabs,.design-segments{width:100%;flex-wrap:nowrap;overflow:auto;border-radius:13px;padding:3px;gap:2px}.photo-tabs button,.library-admin-tabs button,.design-segments button{flex:1 0 auto;font-size:11px;padding:6px 11px;min-height:31px;border-radius:10px}.module-card .grid,.settings-section .grid,.gacha-settings-view .grid,.audio-channel-grid,.settings-panel>.library-admin-settings{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}.settings-section .form-group:has(textarea){grid-column:auto}.topbar{flex-wrap:wrap;gap:10px}.topbar h2{font-size:17px}.topbar>button{margin-left:auto}.topbar .row{gap:5px}.rules-editor{grid-template-columns:1fr}.library-admin-review{grid-template-columns:100px minmax(0,1fr);padding:12px;gap:12px}.library-admin-review>img{height:150px}.library-admin-review small{font-size:10px}.library-admin-photo img{height:170px}.library-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.feedback-settings{grid-template-columns:1fr}.toolbar{grid-template-columns:minmax(0,1fr) 120px}.toolbar>input,.toolbar>.control-with-help:first-child{grid-column:1/-1}.toolbar .control-with-help{width:100%}.selection-toolbar{padding:8px;gap:5px}.selection-toolbar button{font-size:10px}.user-config-save{top:8px;padding:10px 12px!important;gap:8px}.user-config-save h2{font-size:15px}.user-config-save>button{margin:0}.admin-dialog-header{padding:18px 18px 10px}.admin-dialog-search{padding:0 18px 12px}.guide-chapters{padding:0 18px 18px}.login-showcase{display:none}.login-shell{display:block;min-height:0}.login-panel{padding:34px 26px}#loginCard{max-width:460px;margin:5vh auto}.login-help-grid{grid-template-columns:1fr}.control-with-help{flex-basis:auto}.settings-section{padding:17px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){.admin-sidebar,.workspace-actions>button,.user-config-save,.admin-help-popover{background:#F6F8FB;backdrop-filter:none;-webkit-backdrop-filter:none;border-color:#C6D1DF}.sub,.muted,.my-note{color:#56657A}.help-trigger{color:#4D6A8D!important}.admin-dialog::backdrop{backdrop-filter:none}}

/* Moderation is an operational list; settings no longer consume its reading width. */
.feedback-workspace.module-layout{display:block}.feedback-workspace>.design-segments{margin-bottom:16px}.feedback-workspace .feedback-settings{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-main[data-current-module=feedback] #moduleOverview{display:none}.admin-main[data-current-module=feedback] .workspace-header{min-height:80px;padding-bottom:14px}.feedback-inbox{padding:18px 20px}.feedback-inbox>.topbar{margin-bottom:7px!important}.feedback-inbox>.sub{font-size:11px;margin-bottom:10px}.feedback-counters{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:10px}.feedback-counters button{min-height:29px;font-size:11px;padding:4px 10px;border-radius:9px}.feedback-counters button.active{background:#E6EFFD;color:#2668C3;border-color:#C6D9F4}.feedback-draft-count{margin-left:auto;color:#9A7C4D;font-size:10px}.feedback-toolbar{display:grid;grid-template-columns:minmax(180px,1fr) 120px 135px 115px 110px auto;gap:7px;margin-bottom:10px}.feedback-toolbar select,.feedback-toolbar input{font-size:11px;min-height:35px;padding:7px 9px}.feedback-toolbar button{font-size:11px;min-height:35px}.feedback-bulkbar{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px 9px;background:#F6F8FB;border:1px solid #E3EAF3;border-radius:10px;margin:0 0 8px;font-size:10px;color:#7B899D}.feedback-bulkbar label{display:flex;align-items:center;gap:6px;cursor:pointer}.feedback-bulkbar button{min-height:27px;font-size:10px;padding:3px 8px}.feedback-selection{margin-right:auto}.feedback-action-status{font-size:11px;color:#3D7F60;line-height:1.7;margin:8px 0}.feedback-action-status:empty{display:none}.feedback-action-status.is-error{color:#B54D45}.feedback-column-headings{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;padding:3px 11px 7px;font-size:10px;color:#98A3B3}.feedback-inbox .feedback-admin-list{display:flex;flex-direction:column;gap:8px}.feedback-inbox .feedback-review-row{padding:10px 12px;border-radius:12px;background:#FFF;border:1px solid #E1E8F1;box-shadow:none;min-width:0}.feedback-review-row.has-draft{border-left:3px solid #D2B17A;padding-left:10px}.feedback-row-meta{display:flex;align-items:center;gap:6px;min-height:22px;margin-bottom:7px;min-width:0}.feedback-row-select{display:inline-flex;align-items:center;gap:7px;flex-shrink:0;cursor:pointer}.feedback-row-time{font-size:10px;color:#8B98AA}.feedback-state{display:inline-flex;align-items:center;padding:1px 6px;background:#F0F3F7;border-radius:5px;color:#8290A3;font-size:9px;white-space:nowrap}.feedback-state.pending{background:#FFF3E0;color:#9A793D}.feedback-state.replied{background:#EAF3ED;color:#63886F}.feedback-unsaved{font-size:9px;color:#B38A4E}.feedback-contact{margin-left:auto;font-size:10px;color:#8E9CB0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:35%}.feedback-review-columns{display:grid;grid-template-columns:1.1fr 1fr;gap:22px;align-items:start}.feedback-message-wrap{min-width:0}.feedback-message{font-size:13px;color:#34465E;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;max-height:4.95em;overflow:hidden}.feedback-message.expanded{max-height:none}.feedback-expand.ghost{min-height:22px;background:transparent;color:#5680B4;font-size:10px;padding:2px 0;line-height:18px}.feedback-reply-wrap{min-width:0}.feedback-review-row .feedback-admin-textarea{height:52px;min-height:52px;max-height:200px;resize:vertical;padding:7px 9px;border-radius:9px;border-color:#DCE5F2;background:#FBFCFE;font-size:12px;line-height:1.5;margin:0}.feedback-row-actions{display:flex;align-items:center;gap:6px;margin-top:5px}.feedback-row-actions button{min-height:26px;line-height:18px;padding:3px 10px;font-size:10px;border-radius:8px}.feedback-row-actions .btn-del-feedback{background:transparent;color:#9D8F8B;padding:3px 5px}.feedback-row-actions .feedback-publish-label{margin-right:auto;display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#6B809B;cursor:pointer}.feedback-row-error{font-size:10px;color:#B9564E;line-height:1.6;margin-top:4px}.feedback-row-error:empty{display:none}.feedback-bottom-pager{position:static!important;display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:12px 0 0;padding:10px 0 0;border-top:1px solid #E4EAF2;font-size:11px}.feedback-bottom-pager .feedback-range{margin-right:auto;color:#8996A9}.feedback-bottom-pager .btns{display:flex;gap:6px}.feedback-bottom-pager button{min-height:32px;padding:6px 12px;font-size:11px}.feedback-bottom-pager>label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:10px;color:#98A3B3}.feedback-bottom-pager input{width:48px;min-height:31px;height:31px;padding:4px 5px;font-size:11px}.feedback-empty{text-align:center;color:#94A2B5;font-size:12px;padding:32px 16px}.feedback-bottom-pager #btnSaveAllFeedback{margin-left:auto;background:#286FD6;color:#FFF}
@media(max-width:1200px){.feedback-toolbar{grid-template-columns:minmax(180px,1fr) 110px 120px}.feedback-toolbar>input{grid-column:auto}.feedback-workspace .feedback-settings{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.feedback-workspace .feedback-settings{grid-template-columns:1fr}.feedback-toolbar{grid-template-columns:1fr 1fr 1fr}.feedback-toolbar>input{grid-column:1/-1}.feedback-inbox{padding:14px}.feedback-contact{max-width:28%;font-size:9px}.feedback-review-columns{gap:12px}.feedback-column-headings{gap:12px}.feedback-row-time{font-size:9px}.feedback-state{font-size:8px}.feedback-row-meta{flex-wrap:wrap;gap:4px}.feedback-inbox .feedback-review-row{padding:9px}.feedback-message{font-size:12px}.feedback-draft-count{font-size:9px}.feedback-bottom-pager{gap:6px}}
@media(max-width:520px){.feedback-review-columns{grid-template-columns:1fr;gap:8px}.feedback-column-headings{display:none}.feedback-contact{max-width:none;flex:1 1 100%;margin-left:23px}.feedback-message{max-height:4.95em}.feedback-inbox .feedback-review-row{padding:10px}.feedback-review-row .feedback-admin-textarea{min-height:48px;height:48px}.feedback-bottom-pager .feedback-range{flex-basis:100%}.feedback-bottom-pager #btnSaveAllFeedback{margin-left:auto}.feedback-toolbar{grid-template-columns:1fr 1fr}.feedback-counters{gap:4px}.feedback-counters button{padding:4px 8px}}

.feedback-inbox>.topbar,.feedback-inbox>.sub{display:none}.feedback-inbox .feedback-review-row{padding:8px 10px}.feedback-row-meta{min-height:19px;margin-bottom:5px}.feedback-review-row .feedback-admin-textarea{display:block;height:44px;min-height:44px;padding:5px 8px;line-height:16px}.feedback-row-actions{margin-top:4px}.feedback-row-actions button{min-height:24px;padding:2px 9px}.feedback-bulkbar:not(.has-selection)>button{display:none}.feedback-bottom-pager .feedback-action-status{order:10;flex:1 1 100%;margin:2px 0 0}.practical-pager{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;padding:12px 0 0;margin-top:12px;border-top:1px solid #E2E9F2;font-size:11px;color:#8797AC}.practical-pager>span:first-child{margin-right:auto}.practical-pager button{min-height:32px;font-size:11px}.practical-pager select{width:auto;min-height:32px;padding:5px 8px;font-size:11px}.review-image-preview{display:block;margin:0;padding:0;width:100%;background:#F3F6FA;border:1px solid #E2E9F2;border-radius:12px;overflow:hidden}.review-image-preview img{display:block;width:100%;height:180px;object-fit:contain}.review-tag-fields{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px}.review-tag-editor{margin:8px 0;padding:8px 10px;background:#F5F8FC;border:1px solid #E1E8F2;border-radius:10px}.review-tag-editor summary{font-size:11px;color:#7288A4}.review-tag-choices{display:flex;flex-wrap:wrap;gap:6px;max-height:180px;overflow:auto;margin-top:9px}.review-tag-choices label{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;background:#FFF;border-radius:7px;border:1px solid #E2E8F1;font-size:10px}.review-tag-choices input{width:14px;min-height:14px;height:14px;margin:0}.review-action-error{color:#B45044;font-size:11px;margin:7px 0}.review-action-error:empty{display:none}
@media(max-width:600px){.feedback-column-headings{display:none}.feedback-inbox .feedback-review-row{padding:9px}.review-tag-fields{grid-template-columns:minmax(0,1fr)}.review-image-preview img{height:130px}.practical-pager{gap:6px}}

/* The navigation frame belongs to the viewport; only its menu can scroll. */
html{scrollbar-gutter:stable;scroll-padding-top:20px}
.module-card{overflow:clip;min-width:0}
.wrap{--admin-edge:18px;--admin-side-inset:22px;--admin-side-width:220px}
.admin-sidebar{position:fixed;top:var(--admin-edge);bottom:var(--admin-edge);left:max(var(--admin-side-inset),calc((100% - 1800px)/2 + var(--admin-side-inset)));width:var(--admin-side-width);height:calc(100dvh - var(--admin-edge)*2);align-self:normal;overflow:hidden;z-index:60;overscroll-behavior:contain}
.admin-main{grid-column:2}
.workspace-brand,.workspace-account{flex-shrink:0}
.admin-sidebar>.section-tabs{flex-wrap:nowrap;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:2px}
.section-tabs>.nav-group{flex-shrink:0}
.upload-progress-wrap{top:20px;max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain}
@media(min-width:1600px){.wrap{--admin-side-width:232px}}
@media(max-width:1200px){.wrap{--admin-edge:14px;--admin-side-inset:14px;--admin-side-width:190px}}
@media(min-width:1025px){.taxonomy-inspector{max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain}}
@media(min-width:1251px){.site-config-layout .content-preview{top:20px;max-height:calc(100dvh - 40px);overflow:auto;overscroll-behavior:contain}}
@media(max-width:800px){
  html{scroll-padding-top:calc(var(--admin-mobile-nav-height,120px) + 28px)}
  .wrap{--admin-edge:10px;--admin-side-inset:10px}
  .admin-shell{padding-top:calc(var(--admin-mobile-nav-height,120px) + 18px)}
  .admin-sidebar{left:10px;right:10px;bottom:auto;width:auto;height:auto;max-height:calc(100dvh - 20px);overflow:hidden}
  .admin-sidebar>.section-tabs{overflow-x:auto;overflow-y:hidden;padding:2px;min-width:0}
  .admin-main{grid-column:1}
  .user-config-save,.upload-progress-wrap{top:calc(var(--admin-mobile-nav-height,120px) + 20px)}
  .upload-progress-wrap{max-height:calc(100dvh - var(--admin-mobile-nav-height,120px) - 40px)}
}

.legal-config{display:grid;gap:12px;}.legal-config .form-label{display:flex;flex-direction:column;gap:7px;}.legal-config>button{justify-self:start;}
.legal-document-editor{min-width:0;margin-top:22px;padding:16px;border:1px solid #DFE7F0;border-radius:14px;background:#FFF;text-align:left;}
.legal-document-editor summary{cursor:pointer;font-size:15px;font-weight:600;}
.editing-legal-document .user-config-save{position:static;}
.legal-document-editor .form-label{display:flex;flex-direction:column;align-items:stretch;gap:7px;margin-top:14px;text-align:left;font-size:12px;font-weight:500;}
.legal-document-editor input,.legal-document-editor select,.legal-document-editor textarea{width:100%;min-width:0;text-align:left;font-weight:400;}
.legal-document-editor textarea{min-height:260px;font:inherit;font-size:13px;line-height:1.8;resize:vertical;}
.legal-document-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
.legal-document-actions button{min-height:36px;}
.legal-document-preview{max-height:380px;overflow:auto;overflow-wrap:anywhere;margin-top:14px;padding:16px;background:#F8FAFD;border:1px solid #DFE7F0;border-radius:12px;white-space:pre-wrap;}
.legal-document-preview h4{margin:0 0 16px;font-size:17px;}
.legal-document-preview h5{margin:16px 0 8px;font-size:14px;}
.legal-document-preview p{margin:0;font-size:13px;line-height:1.9;}
.log-health-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0;}
.log-summary{margin:0;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;background:#F5F8FC;color:var(--text);border:1px solid var(--line);border-radius:14px;gap:8px;}
.log-summary strong{font-size:24px;}.log-badge{display:inline-block;padding:3px 8px;border-radius:7px;font-size:11px;font-weight:600;white-space:nowrap;margin-bottom:5px;}
.log-badge.log-info{background:#E9F4EF;color:#246448;}.log-badge.log-notice{background:#EDF1F7;color:#53647D;}.log-badge.log-warning{background:#FFF3DB;color:#835811;}.log-badge.log-error{background:#FCEBEC;color:#A53442;}
.log-policy{margin:16px 0 20px;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:#F9FBFE;}.log-policy summary,.log-diagnostic summary{cursor:pointer;line-height:1.7;font-weight:600;}
.log-policy-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;margin:16px 0;}.log-policy-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:var(--sub);}
.log-row td{font-size:12px;vertical-align:top;line-height:1.7;max-width:280px;overflow-wrap:anywhere;}.log-row td:nth-child(3){min-width:180px;}.log-row td:last-child{min-width:200px;}.log-row code{display:block;font-size:11px;color:var(--sub);white-space:normal;overflow-wrap:anywhere;}
.log-diagnostic p{margin:8px 0;}.log-diagnostic pre{max-width:100%;max-height:200px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:#F2F5FA;border-radius:8px;padding:8px;}
@media(max-width:640px){.log-health-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.log-summary{padding:10px 12px;}.log-summary strong{font-size:20px;}[data-module="logs"] .table-wrap{overflow:visible;}[data-module="logs"] .file-table,[data-module="logs"] tbody{display:block;min-width:0;width:100%;}[data-module="logs"] thead{display:none;}.log-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border-bottom:1px solid var(--line);}.log-row td{display:block;min-width:0!important;max-width:none;border:0;padding:0;}.log-row td:nth-child(3),.log-row td:last-child{grid-column:1/-1;}.log-row td:before{content:attr(data-label);display:block;color:var(--sub);font-size:10px;margin-bottom:3px;}.log-policy{padding:12px;}.log-policy .cell-actions{align-items:flex-start;flex-direction:column;}}
