/* Scoped additions reuse the existing base shell and reading surfaces. */
.fde .fde-ent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:20px 0}.fde .fde-ent-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;color:#425a6a}.fde .fde-ent-field input,.fde .fde-ent-field select,.fde .fde-ent-field textarea{width:100%;min-height:44px;padding:10px 12px;border:1px solid #cbd6df;border-radius:7px;background:#fff;color:#253c4e;font:inherit;box-sizing:border-box}.fde .fde-ent-field textarea{min-height:98px;resize:vertical;line-height:1.65}.fde .fde-ent-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:22px 0}.fde .fde-ent-toolbar button,.fde .fde-ent-toolbar .fde-btn{min-height:44px}.fde .fde-ent-toolbar [data-ent-save-state]{font-size:13px;color:#556b7b}.fde .fde-ent-filter{display:flex;align-items:end;flex-wrap:wrap;gap:15px;padding:20px 0;border-bottom:1px solid #dde5eb}.fde .fde-ent-filter label{display:flex;flex-direction:column;gap:8px;min-width:180px;flex:1}.fde .fde-ent-filter input,.fde .fde-ent-filter select{min-height:44px;width:100%;padding:10px;border:1px solid #cbd6df;border-radius:7px}.fde .fde-ent-map{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:25px 0}.fde .fde-ent-map section{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 9px #18344d08}.fde .fde-ent-map ol{list-style:none;margin:0;padding:0}.fde .fde-ent-map li{display:grid;grid-template-columns:30px minmax(0,1fr);gap:4px 10px;padding:15px 0;border-bottom:1px solid #edf1f4}.fde .fde-ent-map li:last-child{border:0}.fde .fde-ent-map li>span{grid-row:1/3;color:#8b9dac;font-variant-numeric:tabular-nums}.fde .fde-ent-map small{grid-column:2;line-height:1.7;color:#657c8b}.fde .fde-ent-table{margin:22px 0;max-width:100%;overflow:auto}.fde .fde-ent-table td,.fde .fde-ent-table th{min-width:110px;vertical-align:top;white-space:normal;overflow-wrap:anywhere;line-height:1.7}.fde .fde-ent-table .fde-ent-field{min-width:145px}.fde .fde-ent-table textarea{min-width:210px;min-height:100px}.fde .fde-ent-table input[type=number]{min-width:100px}.fde .fde-ent-saved{padding:24px;background:#fff;border-radius:12px;margin:18px 0;box-shadow:0 2px 9px #18344d08}.fde .fde-ent-saved[hidden]{display:none}.fde .fde-ent-related{padding:22px;background:#f5f8fa;border-radius:12px;margin:25px 0}.fde .fde-ent-related small{display:block;color:#6a7e8b;font-size:13px;margin-top:6px}.fde .fde-ent-article section{margin:32px 0}.fde .fde-ent-article h2,.fde .fde-ent-article h3{text-wrap:balance;scroll-margin-top:30px}.fde .fde-ent-article p{line-height:1.95;text-wrap:pretty}.fde [data-ent-results]{margin:24px 0;font-variant-numeric:tabular-nums}.fde [data-ent-results][data-stale=true]::before{content:'输入已修改，请重新计算；下方为上次计算结果。';display:block;color:#875b22;background:#fff6e6;padding:12px}.fde .fde-ent-dialog{width:min(520px,calc(100vw - 40px));border:0;border-radius:14px;padding:28px;box-shadow:0 16px 65px #172f4e33;color:#273e50}.fde .fde-ent-dialog::backdrop{background:#10283d66}.fde .fde-ent-dialog label{display:flex;flex-direction:column;gap:8px;margin:18px 0}.fde .fde-ent-dialog input,.fde .fde-ent-dialog select{min-height:44px;padding:10px;border:1px solid #cbd6df;border-radius:7px}.fde .fde-ent-dialog [role=status]{color:#a33a40}.fde :is([data-ent-path],[data-ent-target],[data-ent-new-title]):focus-visible,.fde .fde-ent-table:focus-visible{outline:2px solid #366788!important;outline-offset:3px}.fde .fde-ent-toolbar button{transition:background-color .16s,box-shadow .16s}.fde .fde-ent-toolbar button:disabled{opacity:.55;cursor:wait}
@media(max-width:1179px){.fde .fde-ent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fde .fde-ent-map{grid-template-columns:1fr}}
@media(max-width:600px){.fde .fde-ent-grid{grid-template-columns:1fr}.fde .fde-ent-map section,.fde .fde-ent-saved{padding:18px}.fde .fde-ent-filter label{min-width:100%}.fde .fde-ent-table{border:1px solid #e0e7ed;border-radius:8px}.fde .fde-ent-table::before{content:'表格可左右滑动查看完整内容';display:block;padding:9px;font-size:12px;color:#667c8b;position:sticky;left:0}.fde .fde-ent-dialog{padding:20px}.fde .fde-ent-toolbar{gap:8px}}
@media print{.fde .fde-ent-toolbar,.fde .fde-ent-filter,.fde .fde-ent-related{display:none!important}.fde .fde-ent-table{overflow:visible}.fde .fde-ent-table td,.fde .fde-ent-table th{min-width:0}}

/* Keep native choice controls out of the base text-input treatment. */
.fde .fde-ent-map li>label{grid-column:2;display:inline-flex;align-items:center;justify-self:start;gap:9px;min-height:44px;max-width:100%;margin:0;padding:2px 8px 2px 0;white-space:nowrap;font-size:13px;font-weight:500;cursor:pointer}
.fde .fde-ent-map li>label:hover{color:#234b67}
.fde .fde-ent-map li>label:has(input:checked){font-weight:650;color:#234b67}
.fde input[data-ent-pick],.fde :is(.fde-ent-saved,.fde-ent-table) input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;display:inline-block;flex:0 0 18px;width:18px;min-width:18px;max-width:18px;height:18px;min-height:18px;max-height:18px;padding:0;margin:0;vertical-align:middle;accent-color:#315b78;box-shadow:none;cursor:pointer}
.fde .fde-ent-saved>label:has(input[type=checkbox]),.fde .fde-ent-table label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:9px;min-height:44px;cursor:pointer}
/* The common site shell fills SVGs; sidebar pictograms are outline drawings. */
.fde-base-page .fde-base-sidebar nav>a svg,.fde-base-page .fde-base-sidebar nav>a svg :is(path,rect,circle,line,polyline,polygon){fill:none!important;stroke:currentColor;stroke-linecap:round;stroke-linejoin:round}
