/* Dual-panel translation; bounded to this route. */
.translation-page{background:#FFFDF8;color:#22472C}
.translation-page .x-body{padding:12px 12px 30px}
.translation-page .translation-mode{font:11px/1.4 var(--x-font-sans,"Microsoft YaHei",sans-serif);color:#2E5E3A;white-space:nowrap}
.translation-page .translation-language-bar{display:grid;grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr);align-items:center;margin:0 0 13px;padding:5px 12px;background:#f0e8e0;border-radius:12px;gap:10px}
.translation-page .translation-language-bar label{display:block;min-width:0;text-align:center}
.translation-page .translation-language-bar label>span{display:block;font-size:10px;line-height:1.5;color:#a18b7c;margin:3px 0 1px}
.translation-page .translation-language-bar select{display:block;width:100%;height:31px;padding:0 12px 2px 0;border:0;background:transparent;color:#22472C;font:600 14px/1.3 var(--x-font-sans,"Microsoft YaHei",sans-serif);text-align:center;text-align-last:center;cursor:pointer;outline-offset:3px}
.translation-page .translation-swap{width:36px;height:36px;border:1px solid #e0c8b9;background:#FFFDF8;border-radius:50%;padding:7px;display:grid;place-items:center;color:#2E5E3A;justify-self:center;cursor:pointer}
.translation-page svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}
.translation-page .translation-panel{margin:0;background:#FFFDF8;border:1px solid #e8dcd3;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(74,52,43,.035)}
.translation-page .translation-panel>header{display:flex;justify-content:space-between;align-items:center;height:47px;padding:0 15px;border-bottom:1px solid #f1e9e1}
.translation-page .translation-panel h2{display:flex;align-items:baseline;gap:8px;margin:0;color:#22472C;font:600 15px/1.4 var(--x-font-sans,"Microsoft YaHei",sans-serif)}
.translation-page .translation-panel h2 small{color:#a58b79;font-size:11px;line-height:1.4;font-weight:400}
.translation-page .translation-clear{border:0;background:none;color:#2E5E3A;font:11px/1.4 var(--x-font-sans,"Microsoft YaHei",sans-serif);padding:8px 0 8px 8px;cursor:pointer}
.translation-page .translation-clear[hidden]{display:none}
.translation-page .translation-panel>textarea{box-sizing:border-box;display:block;width:100%;min-height:126px;margin:0;padding:14px 15px 10px;border:0;border-radius:0;box-shadow:none;outline:0;resize:vertical;background:transparent;color:#22472C;font:15px/1.8 var(--x-font-sans,"Microsoft YaHei",sans-serif);overflow-wrap:anywhere}
.translation-page .translation-panel>textarea::placeholder{font-size:13px;color:#b6a89e;opacity:1}
.translation-page .translation-panel>textarea:focus{background:#FFFDF8}
.translation-page .translation-panel>textarea[readonly]{color:#22472C;cursor:text}
.translation-page .translation-panel>footer{min-height:38px;padding:5px 15px 10px;display:flex;justify-content:space-between;align-items:center;gap:12px;color:#ad9787;font-size:10px;line-height:1.4}
.translation-page .translation-panel>footer>span{flex-shrink:0}
.translation-page .translation-submit{width:100%;min-height:42px;margin:10px 0;border-radius:12px;font-size:13px;font-weight:600;box-shadow:0 4px 12px rgba(164,49,43,.1)}
.translation-page .translation-submit:disabled{background:#d8b9ae;border-color:#d8b9ae;opacity:1;color:#FFFDF8;box-shadow:none;cursor:default}
.translation-page .translation-state{font-size:10px;color:#b29c8d}
.translation-page .translation-output-actions>div{display:flex;gap:12px;align-items:center}
.translation-page .translation-output-actions button{display:flex;align-items:center;gap:4px;border:0;background:none;color:#2E5E3A;font:11px/1.4 var(--x-font-sans,"Microsoft YaHei",sans-serif);padding:3px 0;cursor:pointer}
.translation-page .translation-output-actions button>svg{width:15px;height:15px;stroke-width:1.4}
.translation-page .translation-output-actions button:disabled{color:#c4b6aa;cursor:default}
.translation-page .translation-status{margin:9px 3px 14px;min-height:18px;font:11px/1.7 var(--x-font-sans,"Microsoft YaHei",sans-serif);color:#a18c7f}
.translation-page .translation-status.is-unavailable{color:#2E5E3A}
.translation-page .translation-phrases{margin-top:3px;padding:0 2px}
.translation-page .translation-phrases>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.translation-page .translation-phrases h2{margin:0;color:#22472C;font:600 14px/1.4 var(--x-font-sans,"Microsoft YaHei",sans-serif)}
.translation-page .translation-phrases>div>span{color:#b09a88;font-size:10px;line-height:1.4}
.translation-page .translation-phrase-list{display:flex;flex-wrap:wrap;gap:7px}
.translation-page .translation-phrase-list button{padding:7px 12px;min-height:31px;border:1px solid #e5d5c7;border-radius:99px;background:#FFFDF8;color:#2E5E3A;font:11px/1.3 var(--x-font-sans,"Microsoft YaHei",sans-serif);cursor:pointer}
.translation-page .translation-note{padding:0 2px;margin:14px 0 0;color:#b09a89;font:10px/1.7 var(--x-font-sans,"Microsoft YaHei",sans-serif)}
.translation-page button:focus-visible,.translation-page select:focus-visible,.translation-page textarea:focus-visible{outline:2px solid #2E5E3A;outline-offset:3px}
@media(max-width:360px){
  .translation-page .x-body{padding:10px 10px 24px}
  .translation-page .translation-language-bar{padding:4px 8px;gap:4px}
  .translation-page .translation-language-bar select{font-size:13px}
  .translation-page .translation-panel>header{padding:0 12px;height:43px}
  .translation-page .translation-panel>textarea{padding:12px;min-height:116px;font-size:14px}
  .translation-page .translation-panel>footer{padding:5px 12px 9px}
  .translation-page .translation-phrases>div:first-child{align-items:flex-start}
  .translation-page .translation-phrases>div>span{font-size:9px;max-width:130px;text-align:right}
  .translation-page .translation-phrase-list button{padding:7px 10px}
}
