:root{
  font-family:"Microsoft YaHei","PingFang SC","Noto Sans SC",system-ui,sans-serif;
  color:#18324f;
  background:#f5f1ec;
  font-size:14px;
  --navy:#1d385b;
  --navy-deep:#142c49;
  --navy-soft:#29496e;
  --ink:#17314d;
  --text:#30445a;
  --muted:#7d8b99;
  --warm:#f5f1ec;
  --paper:#fffdfb;
  --line:#e6ddd4;
  --line-cool:#dbe3eb;
  --orange:#e99b58;
  --orange-soft:#fff4ea;
  --blue-soft:#edf4fb;
  --blue-active:#e3effa;
  --danger:#a84e46;
  --shadow:0 10px 26px rgba(37,48,61,.055);
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--warm)}
body{color:var(--text)}
button,input,textarea,select{font:inherit}
a{color:inherit}
.svg-sprite{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ui-icon{width:16px;height:16px;display:inline-block;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

/* 顶部品牌栏 */
.site-brandbar{height:72px;background:linear-gradient(135deg,var(--navy-deep),var(--navy));display:flex;align-items:center;justify-content:space-between;padding:0 34px;color:#fff;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.site-brand{text-decoration:none;display:flex;align-items:center;gap:13px;color:#fff}
.site-logo{width:42px;height:42px;border:1px solid rgba(255,255,255,.35);border-radius:11px;display:grid;place-items:center;background:rgba(255,255,255,.06)}
.site-logo .ui-icon{width:27px;height:27px;stroke:#fff}.site-logo .ui-icon path:last-child{stroke:var(--orange)}
.site-brand-text{display:flex;flex-direction:column;line-height:1.05}.site-brand-text strong{font-size:20px;letter-spacing:.04em;font-weight:700}.site-brand-text small{margin-top:6px;color:#bcc9d8;font-size:11px;letter-spacing:.08em}
.site-brand-side{display:flex;align-items:center;gap:10px}.site-brand-pill{height:34px;padding:0 12px;border:1px solid rgba(255,255,255,.18);border-radius:18px;display:flex;align-items:center;gap:7px;color:#d8e2ed;background:rgba(255,255,255,.05);font-size:12px}

/* 通用页面 */
.page{max-width:1180px;margin:0 auto;padding:34px 28px 46px}.narrow{max-width:1120px}
.simple-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.page-heading{display:flex;align-items:center;gap:14px}.page-heading-icon{width:42px;height:42px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;color:var(--navy);box-shadow:var(--shadow)}.page-heading-icon .ui-icon{width:21px;height:21px}
.simple-header h1{font-size:25px;line-height:1.2;color:#102d4a;margin:0 0 6px;font-weight:750}.simple-header p{margin:0;color:#748394}
.section-rule{display:flex;align-items:center;gap:14px;color:#213d5b;font-weight:650;margin:18px 0 14px}.section-rule:after{content:"";height:1px;background:#e3d9cf;flex:1}.section-rule span{position:relative;padding-bottom:7px}.section-rule span:after{content:"";position:absolute;left:0;bottom:0;width:30px;height:2px;background:var(--orange);border-radius:2px}

.button{min-height:38px;border:1px solid #d9dfe6;border-radius:9px;padding:8px 14px;background:#fff;color:#203a57;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:.16s ease;white-space:nowrap}
.button:hover:not(:disabled){border-color:#bcc9d6;background:#fafcfe;transform:translateY(-1px)}
.button.primary{background:#315f91;border-color:#315f91;color:#fff;box-shadow:0 4px 10px rgba(49,95,145,.13)}.button.primary:hover:not(:disabled){background:#284f7a;border-color:#284f7a}.button.secondary{background:#fff}.button.danger{color:var(--danger);border-color:#ead7d4}.button.danger:hover:not(:disabled){background:#fff6f4}.button.small{min-height:34px;padding:6px 11px;border-radius:8px}.button:disabled{opacity:.46;cursor:default;transform:none}
.icon-button{width:36px;height:36px;border:1px solid #dce2e8;border-radius:9px;background:#fff;color:#5d7084;display:grid;place-items:center;cursor:pointer}.icon-button:hover{background:#f7f9fb;color:#1e405f}
.card,.list-card{background:var(--paper);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.project-card{position:relative;display:block;padding:20px 20px 18px 68px;min-height:108px;background:var(--paper);border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;box-shadow:var(--shadow);transition:.18s ease}.project-card:hover{border-color:#d9c0a8;box-shadow:0 12px 28px rgba(37,48,61,.085);transform:translateY(-2px)}.project-card-icon{position:absolute;left:18px;top:20px;width:36px;height:36px;border-radius:10px;background:var(--blue-soft);color:#315f91;display:grid;place-items:center}.project-card-icon .ui-icon{width:19px;height:19px}.project-name{font-size:17px;font-weight:700;color:#183552}.project-open{margin-top:17px;color:#b56b2e;display:flex;align-items:center;gap:5px;font-size:13px}.project-open .ui-icon{width:14px;height:14px}
.compact-form{padding:20px;margin-bottom:18px}.form-row{display:grid;grid-template-columns:108px 1fr;align-items:center;gap:14px;margin:12px 0}.form-row>label:first-child{color:#536577;font-weight:600}.form-row input[type=text],.form-row input:not([type]){width:100%;border:1px solid #d8dfe6;border-radius:8px;padding:9px 11px;background:#fff;color:var(--text);outline:none}.form-row input:focus{border-color:#86a7c8;box-shadow:0 0 0 3px rgba(84,130,176,.09)}.check{display:flex;gap:8px;align-items:center}.actions{display:flex;gap:8px;margin-top:16px}.actions.right{justify-content:flex-end}.message{padding:11px 13px;border-radius:9px;margin:12px 0;border:1px solid transparent}.message.success{background:#f0f7f2;color:#376644;border-color:#d7e8dc}.message.error{background:#fff2f1;color:#8b3f39;border-color:#f0d5d2}.hidden{display:none!important}
.admin-project-row{display:grid;grid-template-columns:180px 1fr 82px auto;gap:14px;align-items:center;padding:14px 16px;border-bottom:1px solid #eee7e0}.admin-project-row:last-child{border-bottom:0}.admin-project-row strong{color:#223d59}.path-text{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;color:#758291;overflow:hidden;text-overflow:ellipsis}.row-actions{display:flex;gap:6px;justify-content:flex-end}.muted{color:var(--muted);font-weight:400;margin-left:8px}.empty-state{color:#8b97a4;padding:24px;text-align:center}

/* 编辑器框架 */
.editor-shell{height:calc(100vh - 72px);display:grid;grid-template-rows:52px auto 1fr 30px;background:var(--warm);min-height:0}
.editor-topbar{background:#fffaf7;border-bottom:1px solid #e8ded5;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 18px;box-shadow:0 2px 8px rgba(34,49,65,.025);z-index:5}
.topbar-left,.topbar-actions{display:flex;align-items:center;gap:10px;min-width:0}.topbar-nav{height:52px;display:flex;align-items:center;gap:7px;text-decoration:none;color:#53697f;position:relative;padding:0 4px}.topbar-nav:after{content:"";position:absolute;left:3px;right:3px;bottom:0;height:2px;background:var(--orange);border-radius:2px}.topbar-nav:hover{color:#1e3e5f}.topbar-divider{width:1px;height:22px;background:#e5ddd5;margin:0 3px}.project-heading{display:flex;align-items:center;gap:7px;min-width:0;color:#183552}.project-heading strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:280px}.project-heading-icon{color:#647c94}.save-state{font-size:12px;color:#60806a;display:flex;align-items:center;gap:4px;padding:4px 8px;border-radius:12px;background:#f1f7f2}.save-state .ui-icon{width:13px;height:13px}.version-chip{display:flex;align-items:center;gap:6px;color:#738395;font-size:12px;max-width:390px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.version-chip .ui-icon{width:14px;height:14px}.version-chip>span{overflow:hidden;text-overflow:ellipsis}
.conflict-banner{display:flex;justify-content:space-between;align-items:center;background:#fff7ee;border-bottom:1px solid #edcfad;color:#81502a;padding:9px 18px}.conflict-content{display:flex;align-items:flex-start;gap:10px}.conflict-content>.ui-icon{width:19px;height:19px;margin-top:2px;color:#c27431}.conflict-content strong{display:block;margin-bottom:2px}.conflict-content div div{font-size:12px;color:#9a6a42}
.editor-grid{min-height:0;display:grid;grid-template-columns:270px minmax(540px,1fr) 330px;gap:12px;padding:12px;background:var(--warm)}
.pane{min-height:0;background:var(--paper);overflow:auto;border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow)}
.pane-title{font-weight:700;padding:14px 15px 12px;border-bottom:1px solid #eee6de;color:#173652;position:sticky;top:0;background:rgba(255,253,251,.97);backdrop-filter:blur(8px);z-index:2}.pane-title>span{display:flex;align-items:center;gap:8px}.pane-title .ui-icon{color:#6e8194}
.story-list{padding:8px 7px 14px}.content-pane{display:flex;flex-direction:column;overflow:hidden}.property-pane{overflow:auto}
.story-header{min-height:62px;padding:13px 17px;border-bottom:1px solid #eee6de;display:flex;justify-content:space-between;align-items:center;background:#fffdfa}.story-header>div:first-child{display:flex;align-items:center;gap:7px;min-width:0}.story-header .view-icon{width:31px;height:31px;border-radius:9px;background:var(--blue-soft);display:grid;place-items:center;color:#42688e;margin-right:4px}.story-header .view-icon .ui-icon{width:17px;height:17px}.story-header strong{font-size:16px;color:#14324e}.story-header .muted{font-size:12px}.link-button{border:0;background:transparent;color:#b96d2f;cursor:pointer;display:inline-flex;align-items:center;gap:5px;padding:5px 3px}.link-button:hover{color:#92501e}.link-button .ui-icon{width:14px;height:14px}.context-parent{color:#83909e;font-size:12px}
.block-tabs{display:flex;gap:7px;padding:10px 13px;border-bottom:1px solid #eee6de;overflow:auto;background:#fffaf7}.block-tab{white-space:nowrap;border:1px solid #dfe4e9;background:#fff;border-radius:8px;padding:7px 11px;cursor:pointer;color:#4d6072;transition:.14s}.block-tab:hover{border-color:#b9c9d7;background:#f8fbfd}.block-tab.active{background:#eaf3fb;border-color:#9ab6cf;color:#214d75;box-shadow:inset 0 -2px 0 #6e9cc3}
.command-list{padding:13px 14px 42px;overflow:auto;min-height:0}.section-caption{font-weight:700;padding:5px 4px 11px;color:#1c3a57}.command-row{display:grid;grid-template-columns:36px 1fr auto;align-items:center;border:1px solid #e6e1db;border-radius:10px;margin-bottom:8px;padding:10px 11px;cursor:pointer;background:#fff;transition:.14s}.command-row:hover{border-color:#c7d4df;background:#fcfdfe}.command-row.active{border-color:#a8bfd3;background:#f0f6fb;box-shadow:inset 3px 0 0 #6d98be}.command-index{color:#9aa5b0;font-variant-numeric:tabular-nums}.command-main strong{font-weight:700;color:#28425c}.command-main div{color:#748291;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:650px}.command-move{display:flex;gap:2px}.command-move button{width:28px;height:28px;border:0;border-radius:7px;background:transparent;color:#8190a0;cursor:pointer;display:grid;place-items:center}.command-move button:hover:not(:disabled){background:#e8f0f7;color:#315f91}.command-move button:disabled{opacity:.35}.command-move .ui-icon{width:15px;height:15px}

/* 属性 */
.property-panel{padding:14px 15px 24px}.property-panel h3{margin:0 0 14px;font-size:15px;color:#183552;display:flex;align-items:center;gap:7px;padding-bottom:10px;border-bottom:1px solid #eee7e0}.property-panel h3 .ui-icon{color:#6d8194}.prop-field{display:block;margin-bottom:13px}.prop-field>span,.prop-readonly>span{display:block;color:#6f7f8e;font-size:12px;margin-bottom:5px}.prop-field input,.prop-field textarea,.prop-field select{width:100%;border:1px solid #d8dfe6;border-radius:8px;padding:8px 9px;background:#fff;color:#263e55;outline:none}.prop-field input:focus,.prop-field textarea:focus,.prop-field select:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}.prop-field textarea{resize:vertical;line-height:1.55}.prop-readonly{padding:8px 0;border-bottom:1px solid #f0eae4;margin-bottom:8px}.prop-readonly strong{font-weight:600;color:#344b61;word-break:break-word}.resource-field{padding-bottom:13px;border-bottom:1px solid #f0eae4}.resource-value{border:1px solid #dedfe1;border-radius:8px;background:#faf9f7;padding:9px 10px;min-height:38px;line-height:18px;color:#30485f}.resource-value.empty{color:#8b949e}.resource-buttons{display:flex;gap:7px;margin-top:7px}.prop-field select:disabled,.prop-field input:disabled,.prop-field textarea:disabled{background:#f3f2f0;color:#929aa2}

/* 工程树 */
.project-tree{font-size:13px;user-select:none}.tree-node{display:block}.tree-row{height:30px;display:flex;align-items:center;gap:5px;padding:0 7px 0 calc(3px + var(--tree-depth,0)*16px);border-radius:7px;cursor:default;white-space:nowrap;color:#30465c}.tree-row:hover{background:#f8f5f1}.tree-row.active{background:#e7f1fa;color:#1f4e78}.tree-row.active:before{content:"";width:2px;height:18px;background:var(--orange);border-radius:2px;margin-right:-1px}.tree-row.invalid{color:var(--danger)}.tree-row.drag-target{outline:1px dashed #7e9dbb;background:#eef5fb}.tree-toggle{width:18px;height:18px;border:0;background:transparent;color:#778797;padding:0;display:grid;place-items:center;cursor:pointer}.tree-toggle .ui-icon{width:13px;height:13px}.tree-toggle.spacer{display:inline-block}.tree-icon{width:19px;height:19px;display:grid;place-items:center;flex:0 0 19px;color:#687f96}.tree-icon .ui-icon{width:16px;height:16px}.tree-icon.folder{color:#b48745}.tree-icon.package{color:#75659a}.tree-icon.story{color:#4c7d67}.tree-icon.actor_group{color:#657f99}.tree-icon.actor{color:#b36f60}.tree-icon.block{color:#647891}.tree-icon.block.entry{color:#4f8a5f}.tree-label{overflow:hidden;text-overflow:ellipsis}.context-menu{position:fixed;z-index:60;min-width:200px;background:#fffdfb;border:1px solid #ddd6cf;border-radius:10px;box-shadow:0 14px 35px rgba(26,43,60,.18);padding:6px}.context-menu button{display:flex;width:100%;border:0;background:transparent;text-align:left;padding:8px 10px;border-radius:7px;color:#2f455a;cursor:pointer;align-items:center;gap:8px}.context-menu button:hover{background:#f5f1ec}.context-menu button.danger{color:#a14a43}.context-menu .ui-icon{width:15px;height:15px}.context-separator{height:1px;background:#ece5de;margin:4px 3px}

/* 内容概览 */
.context-overview{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:13px}.context-summary{min-width:118px;border:1px solid #e7ded5;border-radius:10px;padding:12px 14px;background:#fffaf7}.context-summary strong{display:block;font-size:18px;font-weight:750;color:#173652;white-space:normal}.context-summary span{display:block;color:#8793a0;font-size:12px;margin-top:4px}.empty-state.compact{padding:14px 8px;text-align:left}.context-list{display:flex;flex-direction:column;gap:7px}.context-item{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #e6e1db;border-radius:9px;padding:10px 12px;background:#fff;text-align:left;color:#263e55}.context-item:not(.static){cursor:pointer}.context-item:not(.static):hover{background:#f6fafc;border-color:#afc2d3}.context-item.static{cursor:default}.context-item>span:last-child{min-width:0}.context-item strong{display:block;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.context-item small{display:block;color:#84919e;margin-top:3px}.context-item-icon{width:24px;height:24px;flex:0 0 24px;border-radius:7px;background:#f2f5f7;display:grid;place-items:center;color:#687f96}.context-item-icon .ui-icon{width:15px;height:15px}.context-item-icon.folder{color:#b48745;background:#fbf4e7}.context-item-icon.package{color:#75659a;background:#f2eef9}.context-item-icon.story{color:#4c7d67;background:#eef6f1}.context-item-icon.actor_group{color:#657f99;background:#eef3f7}.context-item-icon.actor{color:#b36f60;background:#faf0ed}.context-item-icon.block{color:#647891;background:#eff3f7}.node-detail-card{border:1px solid #e5ddd5;border-radius:10px;background:#fffaf7;padding:4px 14px}.node-detail-card>div{padding:11px 0;border-bottom:1px solid #eee7e0}.node-detail-card>div:last-child{border-bottom:0}.node-detail-card span{display:block;color:#7f8d9a;font-size:12px;margin-bottom:4px}.node-detail-card strong{font-weight:600;color:#354b61;word-break:break-word}

/* 页脚、弹窗、资源选择 */
.editor-footer{background:#fffaf7;border-top:1px solid #e7ddd4;padding:6px 16px;color:#788796;font-size:12px;display:flex;align-items:center;gap:6px}.editor-footer .ui-icon{width:13px;height:13px;color:#8b98a5}
.modal{position:fixed;inset:0;background:rgba(18,35,54,.48);display:flex;align-items:center;justify-content:center;z-index:80;backdrop-filter:blur(2px)}.modal-card{width:min(540px,90vw);background:#fffdfb;border:1px solid #e7ddd4;border-radius:15px;padding:22px;box-shadow:0 26px 70px rgba(14,31,47,.25)}.modal-heading{display:flex;align-items:flex-start;gap:12px}.modal-heading-icon{width:38px;height:38px;border-radius:10px;background:var(--orange-soft);color:#b96a2a;display:grid;place-items:center;flex:0 0 38px}.modal-heading-icon .ui-icon{width:19px;height:19px}.modal-card h2{margin:0 0 5px;font-size:19px;color:#173652}.modal-card p{color:#748392;line-height:1.6;margin:0}.modal-card textarea{width:100%;border:1px solid #d7dfe6;border-radius:8px;padding:9px;margin-top:16px;outline:none}.modal-card textarea:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}.revert-modal-card{width:min(680px,92vw)}.revert-preview-note{margin-top:12px;font-size:12px}.revert-file-list{margin:12px 0 0;padding:12px;min-height:60px;max-height:35vh;overflow:auto;border:1px solid #e4ddd6;border-radius:9px;background:#faf8f5;color:#35516c;font:12px/1.65 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}
.resource-modal-card{width:min(780px,92vw);max-height:82vh;display:flex;flex-direction:column}.resource-modal-title{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.resource-search-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin:16px 0 10px}.search-input-wrap{position:relative}.search-input-wrap>.ui-icon{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:#8a98a6}.resource-search-row input{width:100%;border:1px solid #d8dfe6;border-radius:9px;padding:9px 10px 9px 35px;outline:none}.resource-search-row input:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}.resource-results{min-height:240px;max-height:430px;overflow:auto;border:1px solid #e4ddd6;border-radius:10px;background:#faf8f5}.resource-result{display:block;width:100%;border:0;border-bottom:1px solid #eee7e0;background:#fff;padding:10px 12px;text-align:left;cursor:pointer}.resource-result:last-child{border-bottom:0}.resource-result:hover,.resource-result.active{background:#edf5fb}.resource-result strong{display:block;font-weight:650;color:#2d445b}.resource-result span{display:block;color:#7e8b98;font-size:12px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.resource-error{padding:18px;color:#943f39;background:#fff4f3}.resource-actions{justify-content:space-between;align-items:center}.no-margin{margin-top:0}

@media(max-width:999px){.editor-grid{grid-template-columns:235px minmax(460px,1fr)}.property-pane{display:none}.topbar-actions .version-chip{display:none}}
@media(max-width:760px){.site-brandbar{height:58px;padding:0 16px}.site-logo{width:36px;height:36px}.site-brand-text strong{font-size:17px}.site-brand-text small,.site-brand-side{display:none}.editor-shell{height:calc(100vh - 58px)}.editor-topbar{padding:0 10px}.project-heading strong{max-width:180px}.topbar-nav{font-size:0}.topbar-nav .ui-icon{width:18px;height:18px}.topbar-divider{display:none}.page{padding:24px 16px}.simple-header{align-items:flex-start}.project-grid{grid-template-columns:1fr}.admin-project-row{grid-template-columns:1fr}.row-actions{justify-content:flex-start}}
.resource-result strong{display:flex;align-items:center;gap:7px}.resource-result strong .ui-icon{width:15px;height:15px;color:#6c8196}

/* 工程语言设置 */
.language-settings-card{width:min(760px,92vw)}
.language-settings-header,.language-setting-row{display:grid;grid-template-columns:56px minmax(150px,1fr) minmax(170px,1.2fr) 116px;gap:9px;align-items:center}
.language-settings-header{margin-top:18px;padding:0 8px 7px;color:#7a8794;font-size:12px;border-bottom:1px solid #eee7e0}
.language-settings-list{max-height:360px;overflow:auto;border-bottom:1px solid #eee7e0}
.language-setting-row{padding:9px 8px;border-bottom:1px solid #f1ebe5;background:#fff}
.language-setting-row:last-child{border-bottom:0}
.language-setting-row input[type=text],.language-setting-row input:not([type]){width:100%;border:1px solid #d8dfe6;border-radius:8px;padding:8px 9px;background:#fff;color:#263e55;outline:none}
.language-setting-row input:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}
.language-default-radio{display:grid;place-items:center;cursor:pointer}.language-default-radio input{width:17px;height:17px;accent-color:#315f91}
.language-row-actions{display:flex;justify-content:flex-end;gap:5px}.icon-button.mini{width:30px;height:30px;border-radius:7px}.icon-button.mini .ui-icon{width:14px;height:14px}.icon-button.mini.danger{color:#a14a43}.icon-button.mini:disabled{opacity:.35;cursor:default}
.language-settings-toolbar{display:flex;align-items:center;gap:12px;margin-top:12px}.language-settings-toolbar .muted{font-size:12px}

/* 对白多语言文本 */
.localized-editor{margin:0 0 16px;padding:12px;border:1px solid #e2ddd7;border-radius:10px;background:#fffaf7}
.localized-editor-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.localized-editor-title strong{display:inline-flex;align-items:center;gap:6px;color:#24415d}.localized-editor-title .ui-icon{width:15px;height:15px;color:#b86f33}
.localized-tabs{display:flex;gap:6px;overflow:auto;padding-bottom:8px}.localized-tab{border:1px solid #dce2e8;background:#fff;border-radius:8px;padding:6px 9px;color:#53687c;cursor:pointer;white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.localized-tab:hover{background:#f8fbfd;border-color:#bdcbd7}.localized-tab.active{background:#eaf3fb;border-color:#9ab6cf;color:#214d75;box-shadow:inset 0 -2px 0 #6e9cc3}.localized-tab .default-mark{font-size:10px;padding:1px 5px;border-radius:999px;background:#fff1e5;color:#a8642d}
.localized-pane{display:none}.localized-pane.active{display:block}.localized-pane textarea{width:100%;min-height:110px;border:1px solid #d8dfe6;border-radius:8px;padding:9px 10px;background:#fff;color:#263e55;resize:vertical;line-height:1.6;outline:none}.localized-pane textarea:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}.localized-pane textarea:disabled{background:#f3f2f0;color:#929aa2}
.localized-meta{display:flex;justify-content:space-between;gap:12px;margin-top:6px;color:#8a949e;font-size:11px}.localized-editor.empty{background:#faf9f7}

@media(max-width:760px){.language-settings-header{display:none}.language-setting-row{grid-template-columns:42px 1fr}.language-setting-row input[data-language-name]{grid-column:2}.language-row-actions{grid-column:1/-1;justify-content:flex-end}.language-settings-toolbar{align-items:flex-start;flex-direction:column}.localized-editor-title{align-items:flex-start;flex-direction:column}}




/* 手机版单栏工作区 */
.mobile-only,.mobile-bottom-nav,.mobile-action-scrim{display:none}
@media(max-width:599px){
  body{overscroll-behavior:none}
  .site-brandbar{display:none}
  .editor-shell{height:100dvh;grid-template-columns:minmax(0,1fr);grid-template-rows:54px auto minmax(0,1fr);padding-bottom:48px;background:#f5f1ec}
  .editor-topbar{height:54px;min-width:0;padding:0 10px;position:relative;z-index:45}
  .topbar-left{gap:7px;flex:1;min-width:0}.desktop-project-link{display:none}.mobile-back-button{width:34px;height:34px;border:0;background:transparent;color:#53697f;place-items:center;padding:0;cursor:pointer}.mobile-back-button .ui-icon{width:19px;height:19px}.project-heading{flex:1;min-width:0}.project-heading strong{max-width:none;font-size:15px}.project-heading-icon{display:none}.save-state{font-size:11px;padding:4px 7px;white-space:nowrap}
  .mobile-only{display:grid}.mobile-more-button{display:grid;border:0;background:transparent;font-size:20px;letter-spacing:1px;color:#5d7084}
  .editor-grid{display:block;min-height:0;padding:8px;height:100%;overflow:hidden}
  .pane{display:none!important;height:100%;border-radius:12px;box-shadow:none;overflow:auto}
  .editor-shell[data-mobile-view="project"] .tree-pane{display:block!important}
  .editor-shell[data-mobile-view="edit"] .content-pane{display:flex!important}
  .editor-shell[data-mobile-view="property"] .property-pane{display:block!important}
  .tree-pane .pane-title,.property-pane .pane-title{position:sticky;top:0;z-index:4;padding:13px 14px;background:rgba(255,253,251,.98)}
  .story-list{padding:7px 6px 24px}.project-tree{font-size:14px}.tree-row{height:44px;gap:7px;padding-right:10px;border-radius:9px;touch-action:pan-y}.tree-toggle{width:26px;height:26px}.tree-icon{width:22px;height:22px;flex-basis:22px}.tree-label{font-weight:500}
  .story-header{min-height:58px;padding:11px 13px;align-items:flex-start;gap:8px}.story-header>div:first-child{align-items:center}.story-header .view-icon{width:30px;height:30px;flex:0 0 30px}.story-header .muted{display:block;margin-left:0}.story-header .link-button,.context-parent{font-size:12px}
  .block-tabs{padding:9px 10px;gap:6px;scrollbar-width:none}.block-tabs::-webkit-scrollbar,.localized-tabs::-webkit-scrollbar{display:none}.block-tab{padding:8px 11px}
  .command-list{padding:11px 10px 26px}.section-caption{padding:3px 3px 9px}.command-row{grid-template-columns:30px minmax(0,1fr) auto;padding:11px 9px;margin-bottom:7px;min-height:62px}.command-index{font-size:12px}.command-main div{max-width:none}.command-move button{width:32px;height:32px}
  .property-panel{padding:13px 13px 28px}.property-panel h3{font-size:16px;position:sticky;top:45px;background:#fffdfb;z-index:2;padding-top:4px}.prop-field{margin-bottom:16px}.prop-field>span,.prop-readonly>span{font-size:12px}.prop-field input,.prop-field textarea,.prop-field select,.resource-value{font-size:16px;padding:11px 10px;min-height:44px}.resource-buttons .button{min-height:42px}
  .localized-editor{margin:0 0 18px;padding:11px}.localized-editor-title{flex-direction:column;align-items:flex-start}.localized-tabs{margin:0 -2px;padding-bottom:9px}.localized-tab{padding:8px 10px}.localized-pane textarea{min-height:160px;font-size:16px;padding:11px}
  .editor-footer{display:none}
  .mobile-bottom-nav{position:fixed;left:0;right:0;bottom:0;height:48px;padding:0 12px env(safe-area-inset-bottom);display:flex;align-items:center;gap:3px;overflow-x:auto;background:rgba(255,253,251,.98);border-top:1px solid #e5ded7;z-index:50;box-shadow:0 -3px 12px rgba(28,42,56,.035);scrollbar-width:none}.mobile-bottom-nav::-webkit-scrollbar{display:none}
  .mobile-trail-item{height:40px;max-width:42vw;border:0;background:transparent;color:#748291;padding:0 7px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;position:relative}.mobile-trail-item.current{color:#214d75;font-weight:700}.mobile-trail-item.current:after{content:"";position:absolute;left:7px;right:7px;bottom:1px;height:2px;border-radius:2px;background:#6e9cc3}.mobile-trail-item:disabled{cursor:default;opacity:1}.mobile-trail-separator{display:grid;place-items:center;color:#b0b8c0;flex:0 0 auto}.mobile-trail-separator .ui-icon{width:12px;height:12px}
  .topbar-actions{display:none;position:fixed;left:10px;right:10px;bottom:58px;z-index:75;background:#fffdfb;border:1px solid #ddd6cf;border-radius:16px;padding:8px;box-shadow:0 20px 55px rgba(20,39,58,.24);flex-direction:column;align-items:stretch;gap:4px}.topbar-actions.mobile-open{display:flex}.topbar-actions .button{width:100%;justify-content:flex-start;min-height:46px;border:0;background:transparent;box-shadow:none}.topbar-actions .button:hover{transform:none;background:#f5f1ec}.topbar-actions .version-chip{display:flex!important;padding:8px 10px;max-width:none;border-bottom:1px solid #eee7e0}.mobile-actions-handle{width:38px;height:4px;background:#d8d3ce;border-radius:99px;margin:2px auto 4px}.mobile-actions-title{font-weight:700;color:#173652;padding:5px 10px 7px}
  .mobile-action-scrim{display:block;position:fixed;inset:0;background:rgba(18,35,54,.30);z-index:70}.mobile-action-scrim.hidden{display:none}
  .context-menu{left:10px!important;right:10px!important;top:auto!important;bottom:76px!important;min-width:0;border-radius:16px;padding:8px;z-index:78;box-shadow:0 20px 55px rgba(20,39,58,.24)}.context-menu button{min-height:46px;padding:10px 12px;font-size:15px}.context-separator{margin:5px 4px}
  .modal{align-items:flex-end;padding:0}.modal-card,.resource-modal-card,.language-settings-card{width:100%;max-width:none;max-height:88dvh;border-radius:18px 18px 0 0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));overflow:auto}.resource-results{min-height:180px;max-height:42dvh}.resource-search-row{grid-template-columns:1fr}.resource-search-row .button{display:none}.resource-actions{align-items:stretch;flex-direction:column}.resource-actions>.actions{width:100%}.resource-actions>.actions .button{flex:1}
  .language-settings-header{display:none}.language-setting-row{grid-template-columns:42px 1fr}.language-setting-row input[data-language-name]{grid-column:2}.language-row-actions{grid-column:1/-1;justify-content:flex-end}.language-settings-toolbar{align-items:flex-start;flex-direction:column}
  .context-overview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.context-summary{min-width:0}.context-item{padding:12px 11px}
}

.mobile-move-targets{margin:14px 0;max-height:50vh;overflow:auto;border:1px solid #e4ddd6;border-radius:10px}.mobile-move-target{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:9px;border:0;border-bottom:1px solid #eee7e0;background:#fff;padding:11px 12px 11px calc(12px + var(--move-depth,0)*12px);text-align:left;color:#2d445b;cursor:pointer}.mobile-move-target:last-child{border-bottom:0}.mobile-move-target:hover{background:#f5f8fb}.mobile-move-target strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mobile-move-target small{display:block;color:#84919e;margin-top:2px}.mobile-move-target>.ui-icon{color:#8b98a5}

/* 登录 */
.site-logout-form{margin:0}.site-logout{height:34px;padding:0 10px;border:0;background:transparent;color:#d6e1ec;cursor:pointer;border-radius:8px}.site-logout:hover{background:rgba(255,255,255,.08);color:#fff}
.login-page{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:36px 18px;background:radial-gradient(circle at 50% 0,rgba(255,255,255,.9),rgba(245,241,236,.1) 48%),var(--warm)}
.login-card{width:min(420px,100%);background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:32px;box-shadow:0 22px 60px rgba(27,46,66,.10)}
.login-mark{display:flex;justify-content:center;margin-bottom:16px}.login-logo{width:54px;height:54px;border-radius:15px;background:linear-gradient(145deg,var(--navy-deep),var(--navy));display:grid;place-items:center;box-shadow:0 8px 20px rgba(29,56,91,.18)}.login-logo .ui-icon{width:31px;height:31px;color:#fff;stroke:#fff}.login-logo .ui-icon path:last-child{stroke:var(--orange)}
.login-heading{text-align:center;margin-bottom:25px}.login-heading h1{margin:0;color:#173652;font-size:23px;letter-spacing:.01em}.login-heading p{margin:8px 0 0;color:#82909e;font-size:13px;line-height:1.55}
.login-error{display:flex;gap:8px;align-items:flex-start;margin:0 0 16px;padding:10px 12px;border:1px solid #efd4d1;border-radius:9px;background:#fff4f3;color:#8d423c;font-size:13px}.login-error .ui-icon{width:16px;height:16px;margin-top:1px;flex:0 0 auto}
.login-form{display:flex;flex-direction:column;gap:16px}.login-field{display:block}.login-field>span{display:block;margin-bottom:7px;color:#52677b;font-size:13px;font-weight:600}.login-input-wrap{position:relative}.login-input-wrap>.ui-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#8191a0;pointer-events:none}.login-input-wrap input{width:100%;height:44px;border:1px solid #d9dfe5;border-radius:10px;background:#fff;padding:0 42px 0 39px;color:#243c53;outline:none;transition:.15s}.login-input-wrap input:focus{border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}.login-input-wrap input::placeholder{color:#a2abb4}.login-password-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0;border-radius:8px;background:transparent;color:#8191a0;cursor:pointer;display:grid;place-items:center}.login-password-toggle:hover{background:#f3f6f8;color:#415d76}.login-password-toggle .ui-icon{width:17px;height:17px}
.login-submit{width:100%;height:44px;margin-top:3px;font-weight:650}.login-footnote{text-align:center;color:#a0a8b0;font-size:11px;margin-top:24px;letter-spacing:.03em}

@media(max-width:600px){
  .login-page{min-height:calc(100dvh - 58px);padding:24px 16px;align-items:start;padding-top:12vh}
  .login-card{border-radius:15px;padding:26px 22px;box-shadow:0 14px 38px rgba(27,46,66,.08)}
  .login-heading h1{font-size:21px}
  .site-brand-side .site-brand-pill{display:none}
  .site-logout{font-size:12px;padding:0 6px}
}



/* 登录后的账户入口：沿用 MarketPilot 的菜单交互，配色保持剧情编辑器风格。 */
.site-brandbar{position:relative;z-index:60}
.site-brand-side{gap:12px}
.account-menu{position:relative;flex:0 0 auto}
.account-button{width:42px;height:42px;padding:3px;border:1px solid rgba(255,255,255,.38);border-radius:50%;background:rgba(255,255,255,.08);cursor:pointer;display:grid;place-items:center}
.account-button:hover,.account-button[aria-expanded="true"]{border-color:rgba(233,155,88,.8);background:rgba(255,255,255,.15)}
.account-button:focus-visible,.account-status-alert:focus-visible,.account-status-button:focus-visible,.account-dropdown a:focus-visible,.account-logout:focus-visible{outline:2px solid var(--orange);outline-offset:2px}
.account-avatar{display:block;width:34px;height:34px;border-radius:50%;object-fit:cover;background:#52769a}
.account-dropdown[hidden],.account-status-panel[hidden],.account-status-alert[hidden]{display:none!important}
.account-dropdown{position:absolute;top:calc(100% + 12px);right:0;width:310px;max-width:calc(100vw - 24px);background:#fff;border:1px solid var(--line-cool);border-radius:13px;color:var(--ink);box-shadow:0 18px 48px rgba(17,42,65,.18);overflow:hidden}
.account-dropdown-name{font-weight:750;color:#22394f;padding:18px 17px;border-bottom:1px solid #eaf0f4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-dropdown-link{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:50px;padding:0 17px;color:#2c445b;text-decoration:none;font-weight:650;border-bottom:1px solid #eaf0f4}
.account-dropdown-link:hover{background:#f5f9fc}.account-dropdown-link .ui-icon{color:#8c9aa8;width:15px;height:15px}
.account-status-section{border-bottom:1px solid #eaf0f4}
.account-status-button{display:flex;align-items:center;gap:11px;min-height:51px;padding:0 17px;width:100%;text-align:left;border:0;background:#fff;color:#3c5369;font-weight:650;cursor:pointer}
.account-status-button:hover{background:#f8fafc}.account-status-button .account-status-chevron{margin-left:auto;width:14px;height:14px;color:#9ba6b0;transition:transform .15s}
.account-status-button[aria-expanded="true"] .account-status-chevron{transform:rotate(180deg)}
.account-state-dot{display:inline-block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;background:#9daab8;box-shadow:0 0 0 4px rgba(157,170,184,.12)}
.state-green>.account-state-dot,.account-state-dot.state-green{background:#55a07c;box-shadow:0 0 0 4px rgba(85,160,124,.11)}
.state-yellow>.account-state-dot,.account-state-dot.state-yellow{background:#c99a42;box-shadow:0 0 0 4px rgba(201,154,66,.13)}
.state-red>.account-state-dot,.account-state-dot.state-red{background:#bc605b;box-shadow:0 0 0 4px rgba(188,96,91,.13)}
.account-status-alert{height:34px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid rgba(233,155,88,.45);border-radius:19px;background:rgba(233,155,88,.12);color:#fff6eb;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}
.account-status-alert.state-red{border-color:rgba(237,128,121,.55);background:rgba(207,83,80,.16)}
.account-status-alert:hover{background:rgba(255,255,255,.15)}
.account-status-panel{border-top:1px solid #edf0f4;background:#fafbfd}
.account-status-summary{padding:13px 16px;line-height:1.6;font-size:12px;color:#53677b}
.account-status-events{max-height:min(290px,40vh);overflow-y:auto}
.account-status-event{display:flex;align-items:flex-start;gap:12px;padding:11px 17px;border-top:1px solid #eef1f4}
.account-status-event>.account-state-dot{margin-top:5px}
.account-status-event-content{min-width:0;flex:1}.account-status-event-content strong{display:block;font-size:12px;color:#334b62;overflow-wrap:anywhere}.account-status-event-content div{font-size:11px;line-height:1.5;color:#778797;margin-top:4px;overflow-wrap:anywhere}
.account-status-note{padding:10px 17px 12px;font-size:10px;line-height:1.6;color:#8795a3;border-top:1px solid #eef1f4}
.account-logout-form{margin:0}.account-logout{width:100%;min-height:50px;text-align:left;border:0;background:#fff;color:#b84942;padding:0 17px;cursor:pointer;font-weight:600}.account-logout:hover{background:#fff5f3}
@media(max-width:760px){
  .site-brand-side{display:flex}
  .account-button{height:38px;width:38px;padding:2px}
  .account-avatar{height:32px;width:32px}
  .account-dropdown{width:290px}
}
@media(max-width:599px){
  /* 编辑页采用全屏工作区，账户入口悬浮在右侧，与“更多”按钮并排。 */
  body.editor-page .site-brandbar{display:flex;position:fixed;top:0;right:53px;height:54px;width:auto;padding:0;background:transparent;box-shadow:none;pointer-events:none}
  body.editor-page .site-brand{display:none}
  body.editor-page .site-brand-side{display:flex;pointer-events:auto}
  body.editor-page .account-status-alert{display:none}
  body.editor-page .account-button{border-color:#b8c8d6;background:#edf3f8}
  body.editor-page .account-avatar{background:#52769a}
  /* 头像是固定定位在顶部栏上的独立入口，给它预留真实的水平空间，避免保存状态被盖住。 */
  body.editor-page .topbar-left{padding-right:54px}
  body.editor-page .mobile-more-button{flex:0 0 36px}
  body.editor-page .project-heading{overflow:hidden}
  body.editor-page .save-state{flex:0 0 auto}
  .account-status-alert{max-width:120px;overflow:hidden}
}

/* 工程管理：网站资源数据库配置 */
.resource-config-help{margin:0 0 12px 122px;font-size:12px;line-height:1.5}
#resource-config-fields .form-row input:disabled{background:#f2f3f4;color:#929ba4;cursor:default}
@media(max-width:640px){
  .compact-form .form-row{grid-template-columns:minmax(0,1fr);gap:6px}
  .compact-form .form-row .check{flex-wrap:wrap}
  .resource-config-help{margin:0 0 12px 0}
}

/* 工程管理：服务器数据库文件与数据库内资源目录浏览 */
.resource-picker-field{display:flex;align-items:center;gap:8px;min-width:0}
.resource-picker-field>input{flex:1;min-width:0}
.resource-picker-field>.resource-picker-button{flex:0 0 auto;white-space:nowrap}
.resource-picker-button:disabled{opacity:.5;cursor:not-allowed}
.admin-browser-location{display:flex;align-items:center;gap:9px;margin:14px 0 0;min-width:0}
.admin-browser-location>span{color:#536577;font-size:12px;overflow-wrap:anywhere;min-width:0}
.admin-browser-card{max-height:85dvh}
.admin-browser-results{flex:1;min-height:160px;max-height:48dvh}
.admin-browser-item{cursor:pointer}
.admin-browser-empty{padding:20px;color:#7d8c98;text-align:center}
.admin-browser-hint{font-size:12px;margin-top:10px!important;line-height:1.6}
@media(max-width:650px){.resource-picker-field{gap:6px}.resource-picker-field>.resource-picker-button{padding-inline:10px}.admin-browser-results{max-height:43dvh}}

#admin-browser-search{padding-left:12px}

/* 工程管理：资源数据库逻辑目录树（与服务器文件浏览器分离） */
.admin-tree-root,.admin-tree-children{list-style:none;margin:0;padding:0}
.admin-tree-children{margin-left:21px;border-left:1px solid #e0e8ef}
.admin-tree-item{min-width:0}
.admin-tree-row{display:flex;align-items:center;gap:8px;min-height:42px;padding:4px 10px;border-bottom:1px solid #f1ece6;background:#fff}
.admin-tree-row:hover{background:#f4f8fc}
.admin-tree-expand,.admin-tree-expand-placeholder{width:26px;height:30px;flex:0 0 26px;display:grid;place-items:center}
.admin-tree-expand{border:0;background:transparent;color:#516c84;font-size:18px;border-radius:5px;cursor:pointer}
.admin-tree-expand:hover,.admin-tree-expand:focus-visible{background:#e4edf5;outline:none}
.admin-tree-folder-name{font-weight:600;color:#2d445b;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-tree-folder-toggle{border:0;background:transparent;text-align:left;padding:5px 0;cursor:pointer}
.admin-tree-folder-toggle:focus-visible{outline:2px solid #87a8c8;outline-offset:2px;border-radius:3px}
.admin-tree-pick{flex:0 0 auto;min-height:30px;padding:5px 10px}
@media(max-width:650px){.admin-tree-children{margin-left:13px}.admin-tree-row{gap:4px;padding:4px 6px}.admin-tree-pick{padding:5px 8px}}

@media(max-width:599px){.conflict-banner{flex-direction:column;align-items:stretch;gap:8px}.conflict-banner>.actions{justify-content:flex-end;flex-wrap:wrap}.revert-modal-card{width:100%}}

/* SVN恢复：独立展示未纳管文件，删除需要主动勾选。 */
.revert-unversioned-list{min-height:36px;max-height:22vh;margin-top:8px}
.revert-delete-option{display:flex;align-items:flex-start;gap:8px;margin-top:12px;font-size:13px;line-height:1.5;color:#9b412f;cursor:pointer}
.revert-delete-option input{margin-top:3px;flex-shrink:0}
.revert-delete-option:has(input:disabled){color:#83919f;cursor:default}

/* SVN更新预览：桌面并排、移动端纵向列表 */
.update-preview-card{width:min(790px,94vw);max-height:88vh;overflow:auto}
.update-preview-caption{margin-top:13px!important;font-size:12px}
.update-preview-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;margin-top:14px}
.update-preview-columns>section{min-width:0}.update-preview-columns strong{color:#28425c;font-size:13px}
.update-preview-columns .revert-file-list{max-height:26vh;min-height:78px;margin-top:7px}
.update-preview-warning{margin:12px 0 0;padding:11px;border:1px solid #edcfad;border-radius:9px;background:#fff6e9;color:#895125;font:12px/1.6 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:20vh;overflow:auto}
@media(max-width:600px){.update-preview-columns{grid-template-columns:1fr}.update-preview-columns .revert-file-list{max-height:16vh}}

/* 与客户端一致的工程文本编号段配置 */
.text-id-settings{margin-top:20px;border-top:1px solid #e7e1d9;padding-top:14px}
.text-id-settings h3{font-size:15px;color:#24415d;margin:0 0 8px}
.text-id-settings>.muted{font-size:12px;line-height:1.6}
.text-id-range-head,.text-id-range-row{display:grid;grid-template-columns:minmax(100px,1fr) minmax(100px,1fr) minmax(115px,1fr) 116px;gap:9px;align-items:center}
.text-id-range-head{padding:9px 8px;color:#7a8794;font-size:12px;border-bottom:1px solid #eee7e0}
.text-id-range-row{padding:8px;background:#fff;border-bottom:1px solid #f1ebe5}
.text-id-range-row input{width:100%;min-width:0;border:1px solid #d8dfe6;border-radius:8px;padding:8px;color:#263e55}
.text-id-range-row input:disabled{background:#f3f2f0;color:#7e8891}
.text-id-range-list{max-height:240px;overflow:auto}
.text-id-empty{padding:12px 8px}
.text-id-actions{margin-top:14px}
@media(max-width:599px){.text-id-range-head,.text-id-range-row{grid-template-columns:repeat(3,minmax(65px,1fr)) 82px;gap:4px}.text-id-range-head{font-size:10px}.text-id-range-row input{font-size:12px;padding:6px 2px}.text-id-range-row .language-row-actions{flex-wrap:wrap;gap:2px}}

/* 剧情指令新增入口：在桌面和手机端均保留可见的指令类型选择与添加按钮。 */
.command-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 12px}
.command-toolbar .section-caption{padding:0;margin:0}
.command-add-controls{display:flex;align-items:center;gap:8px;min-width:0}
.command-add-controls select{min-width:150px;max-width:240px;height:34px;border:1px solid #d8dfe6;border-radius:8px;background:#fff;color:#263e55;padding:5px 8px}
.command-add-controls select:disabled{opacity:.5;background:#f3f2f0}
@media(max-width:599px){.command-toolbar{align-items:stretch}.command-add-controls{width:100%}.command-add-controls select{flex:1;min-width:0;max-width:none}.command-add-controls .button{flex:0 0 auto}}


/* 工程角色表情与动作配置 */
.language-settings-card{max-height:88vh;overflow-y:auto}
.display-options-settings{margin-top:22px;padding-top:18px;border-top:1px solid #e9e1d9}
.display-options-settings h3{margin:0 0 5px;font-size:15px;color:#24415d}
.display-options-settings>p{font-size:12px}
.display-options-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:12px}
.display-options-column{min-width:0}
.display-options-column h4{margin:0 0 9px;color:#4a6177;font-size:13px}
.display-options-list{max-height:210px;overflow-y:auto;border:1px solid #e8e1da;border-radius:9px;background:#fff}
.display-option-row{display:flex;align-items:center;gap:8px;padding:7px 9px;border-bottom:1px solid #f0eae3}
.display-option-row:last-child{border-bottom:0}
.display-option-row input{min-width:0;flex:1;border:1px solid #d8dfe6;border-radius:7px;padding:8px 9px;color:#263e55;background:#fff}
.display-option-row input:focus{outline:none;border-color:#87a8c8;box-shadow:0 0 0 3px rgba(72,119,164,.08)}
.display-option-row input:disabled{background:#f3f2f0;color:#7e8891}
.display-options-empty{padding:13px 10px;font-size:12px}
.display-options-column>.button{margin-top:9px}
.display-options-actions{margin-top:10px}
@media(max-width:599px){.display-options-columns{grid-template-columns:1fr;gap:18px}.display-options-list{max-height:180px}}


/* 工程配置：分为语言配置、文本编号与角色表现，保留各区域独立保存入口。 */
.project-config-tabs{display:flex;gap:6px;margin-top:18px;padding-bottom:10px;border-bottom:1px solid #e8e1da;overflow-x:auto}
.project-config-tab{flex:1;min-width:105px;border:1px solid transparent;background:transparent;color:#657789;border-radius:8px;padding:10px 12px;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}
.project-config-tab:hover{background:#f4f7fa;color:#2c4a66}
.project-config-tab.active{background:#eaf3fb;border-color:#aac5dc;color:#21527a}
.project-config-tab:focus-visible{outline:2px solid #6c99c3;outline-offset:2px}
.project-config-panel{padding:4px 0 0;min-height:180px}
.project-config-panel[hidden]{display:none!important}
.project-config-panel.text-id-settings,.project-config-panel.display-options-settings{margin-top:0;border-top:0;padding-top:16px}
.project-config-save-actions{margin-top:18px}
.project-config-close-actions{border-top:1px solid #eee7e0;margin-top:16px;padding-top:14px}
@media(max-width:599px){.project-config-tabs{gap:3px}.project-config-tab{min-width:0;padding:10px 7px;font-size:12px}.project-config-panel{min-height:140px}}

/* 工程管理：默认列表，按需展开工程配置 */
.admin-view-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0 16px}
.admin-view-bar h2{font-size:20px;color:#213d5b;margin:0 0 5px}
.admin-view-bar p{font-size:13px;color:#758291;margin:0}
.admin-config-section{border:1px solid #e8e0d8;border-radius:10px;margin:12px 0;background:#fff}
.admin-config-section summary{cursor:pointer;color:#213d5b;font-weight:650;padding:14px 16px;list-style-position:inside;user-select:none}
.admin-config-section[open] summary{border-bottom:1px solid #eee7e0}
.admin-config-content{padding:12px 16px}
#admin-list-view .list-card{background:#fff;border:1px solid #e8e0d8;border-radius:12px;overflow:hidden}
@media(max-width:760px){.admin-view-bar{align-items:flex-start;flex-direction:column}.admin-view-bar .button{align-self:flex-start}}

.exit-config{margin-top:15px;padding:12px;border:1px solid #e1e6ea;border-radius:9px;background:#f9fbfc}.exit-config select{width:100%;border:1px solid #d8dfe6;border-radius:8px;padding:8px 9px;background:#fff;color:#263e55}.exit-config>.button{margin-top:10px}.exit-row{padding:10px 0;border-top:1px solid #e3e9ee}.exit-row:first-child{border-top:0}.exit-row .button{margin-bottom:9px}.exit-config .muted{display:block;margin-top:5px;line-height:1.5}

/*与WinForms对应的剧情块出口可编辑网格*/
.exit-table{overflow-x:auto;margin-bottom:12px}.exit-table-head,.exit-table-row{display:grid;align-items:center;gap:5px;min-width:600px;padding:5px 0}.exit-conditions .exit-table-head,.exit-conditions .exit-table-row{grid-template-columns:1fr 125px 1fr 1.4fr 55px}.exit-choices .exit-table-head,.exit-choices .exit-table-row{grid-template-columns:80px 1.8fr 1.4fr 55px}.exit-table-head{font-size:12px;font-weight:600;color:#526476;border-bottom:1px solid #dbe2e9}.exit-table-row{border-bottom:1px solid #e8ecf0}.exit-table-row input,.exit-table-row select{min-width:0;width:100%;box-sizing:border-box;padding:7px;border:1px solid #d8dfe6;border-radius:5px;background:#fff}.exit-text-id{padding:7px;color:#526476}.exit-table-row button{padding:5px!important}.exit-config>.prop-field{margin-top:12px}
