.yw-choice{position:relative;min-width:0;width:100%;margin:6px 0;color:inherit;font:inherit}
#app .yw-choice .yw-choice-toggle{display:block;width:100%;min-height:42px;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:9px 34px 9px 12px;border:1px solid #bdccbf;border-radius:7px;background:#fff;color:#23352d;font:inherit;position:relative}
.yw-choice-toggle:after{content:'⌄';position:absolute;right:12px;top:10px}
.yw-choice-panel{position:relative;padding:10px;border:1px solid #bdccbf;border-radius:7px;background:#fff;color:#23352d;margin-top:5px}
#app .yw-choice input.yw-choice-search{box-sizing:border-box;display:block;width:100%;min-height:40px;padding:8px;border:1px solid #bdccbf;border-radius:5px;font:inherit;margin:0 0 8px}
.yw-choice-options{max-height:280px;overflow-y:auto;overflow-x:hidden;display:block}
#app .yw-choice .yw-choice-label{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0;padding:9px 5px;min-height:38px;box-sizing:border-box;max-width:100%;overflow-wrap:anywhere;font:inherit}
#app .yw-choice .yw-choice-label input:is([type=checkbox],[type=radio]){width:18px;height:18px;min-width:18px;max-width:18px;min-height:18px;flex:0 0 18px;padding:0;margin:0;accent-color:#2e6048}
#app .yw-choice .yw-choice-option{display:block;text-align:left;width:100%;white-space:normal;overflow-wrap:anywhere;min-height:40px;margin:0;padding:9px;border:0;background:#fff;color:#23352d;font:inherit}
#app .yw-choice .yw-choice-option[aria-selected=true]{background:#eaf1e8}
#app .yw-choice .yw-choice-option:disabled{opacity:.45}
#app .yw-choice [hidden]{display:none!important}
/* Preserve the real form control, including browser validity and programmatic reads. */
#app select.yw-choice-source{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;opacity:0}
.yw-choice-empty{margin:8px;color:#66756c}
.yw-return-tools{display:flex;gap:12px;flex-wrap:wrap;max-width:1300px;margin:0 auto 12px}
.yw-return-tools button{border:1px solid #dce3d9;border-radius:7px;background:#fff;color:#2e6048;padding:9px 14px;min-height:42px;font:inherit}
.yw-preview-shell{padding:20px;border:1px solid #dce3d9;border-radius:12px;background:#f5f6f3}
.yw-preview-banner{padding:12px;background:#eaf1e8;color:#2e6048;margin-bottom:16px}

#app .yw-choice .yw-choice-filtered{display:none!important}
#app .yw-choice .yw-choice-row{display:block;width:100%;min-width:0}
.yw-choice{grid-column:1 / -1}

/* Scan-page return: preserve existing navigation and place personal home at the right. */
.yw-scan-return [data-personal-home]{margin-left:auto}
.yw-preview-return{display:flex;justify-content:flex-end;max-width:390px;margin:0 auto 12px}
.yw-preview-return button{font:inherit;font-size:14px;line-height:22px;min-height:40px;padding:8px 12px;border:1px solid #dce3d9;border-radius:7px;background:#fff;color:#2e6048;white-space:nowrap}
@media(max-width:480px){.yw-scan-return{gap:8px}.yw-scan-return button{font-size:14px;padding:8px;min-height:40px;white-space:nowrap}}

/* Scan content only: the editor and management pages keep their existing layout. */
#app[data-yw-scan-page]{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.6;color:#23352d}
#app[data-yw-scan-page] [hidden]{display:none!important}
#app[data-yw-scan-page] .wm-module{padding:16px;margin:0 0 16px;border-radius:12px}
#app[data-yw-scan-page] .wm-module h1,#app[data-yw-scan-page] .wm-module h2,#app[data-yw-scan-page] .wm-module h3{line-height:1.4;margin:0 0 12px}
#app[data-yw-scan-page] .wm-module h1,#app[data-yw-scan-page] .wm-module h2{font-size:22px}
#app[data-yw-scan-page] .wm-module h3{font-size:16px}
#app[data-yw-scan-page] .wm-module p{margin:8px 0;overflow-wrap:anywhere}
#app[data-yw-scan-page] .wm-module p:empty,#app[data-yw-scan-page] [data-wm-error]:empty{display:none}
#app[data-yw-scan-page] .wm-label{margin:0 0 8px}
#app[data-yw-scan-page] .wm-module :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),textarea,select){box-sizing:border-box;max-width:100%;width:100%;min-height:44px;border:1px solid #bdccbf;border-radius:8px;background:#fff;padding:10px 12px;font:inherit;color:inherit}
#app[data-yw-scan-page] .wm-module textarea{min-height:96px;resize:vertical}
#app[data-yw-scan-page] .wm-module button{box-sizing:border-box;min-height:40px;padding:8px 12px;border:1px solid #dce3d9;border-radius:8px;background:#fff;color:#2e6048;font:inherit;line-height:1.5;vertical-align:middle;margin:4px 4px 4px 0}
#app[data-yw-scan-page] .wm-module button:disabled{opacity:.55;cursor:default}
#app[data-yw-scan-page] .wm-module small{font-size:12px;font-weight:400;margin-left:6px}
#app[data-yw-scan-page] .wm-member{padding:16px;margin:0 0 16px;border-radius:12px}
#app[data-yw-scan-page] .wm-module fieldset{margin:0}
#app[data-yw-scan-page] .wm-module legend{margin-bottom:8px}
