#text-preference-editor{--tp-ink:#183249;--tp-muted:#62758a;--tp-line:#dce5ee;--tp-brand:#087ba4;--tp-soft:#edf7fb;--tp-green:#108567;--tp-danger:#bb3f3f;color:var(--tp-ink);font:14px/1.55 Inter,"Noto Sans SC",sans-serif;position:relative;z-index:15000}
#text-preference-editor *{box-sizing:border-box}#text-preference-editor [hidden]{display:none!important}#text-preference-editor button,#text-preference-editor input,#text-preference-editor textarea{font:inherit;color:inherit}#text-preference-editor button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid var(--tp-line);border-radius:7px;padding:7px 13px;background:#fff;cursor:pointer;white-space:nowrap}#text-preference-editor button:hover{background:#f2f7fb;border-color:#8db8ca}#text-preference-editor button:disabled{opacity:.42;cursor:not-allowed}#text-preference-editor :focus-visible{outline:3px solid #71b7ce;outline-offset:3px}#text-preference-editor svg{width:17px;height:17px;flex-shrink:0}#text-preference-editor .tp-primary{background:var(--tp-brand);border-color:var(--tp-brand);color:#fff}#text-preference-editor .tp-danger{background:var(--tp-danger);border-color:var(--tp-danger);color:#fff}#text-preference-editor .tp-icon{padding:7px;width:36px;flex-shrink:0}
.text-picking [data-text-pick]{outline:1px dashed #939faa!important;outline-offset:3px;cursor:crosshair!important}.text-picking [data-text-pick="recognized"]{outline-color:#15956e!important}.text-picking [data-text-pick]:hover,.text-picking [data-text-pick]:focus-visible{outline:3px solid #108567!important;outline-offset:3px}.text-picking{padding-bottom:98px;scroll-padding-bottom:110px}.tp-saved{outline:3px solid #20a37c!important;outline-offset:4px;transition:outline-color .2s}
.tp-toolbar{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:26px;background:#fff;border:1px solid #b0cddc;border-radius:12px;padding:14px 18px;box-shadow:0 8px 36px #16384c26;max-width:calc(100vw - 32px);width:max-content;z-index:15000}.tp-toolbar-copy{display:flex;gap:12px;align-items:center}.tp-toolbar-copy>svg{width:24px!important;height:24px!important;color:var(--tp-brand)}.tp-toolbar-copy strong{font-size:14px;display:block}.tp-toolbar-meta{display:flex;align-items:center;gap:16px;color:var(--tp-muted);font-size:12px;margin-top:4px;flex-wrap:wrap}.tp-legend{display:inline-flex;align-items:center;gap:6px}.tp-legend b{width:12px;height:10px;border:1px dashed #939faa;margin-left:6px}.tp-legend b.recognized{border-color:var(--tp-green)}.tp-storage{color:#aa6210}.tp-toolbar-actions{display:flex;gap:8px;align-items:center}.tp-toolbar kbd{font-size:12px;color:var(--tp-muted);padding:4px}
.tp-modal-backdrop,.tp-library-backdrop{position:fixed;inset:0;background:#152e4366;display:flex;align-items:center;justify-content:center;z-index:15002;padding:24px}.tp-modal{width:650px;max-width:100%;max-height:calc(100dvh - 48px);background:#fff;border:1px solid #e2e9f0;border-radius:13px;box-shadow:0 24px 72px #18344d40;display:flex;flex-direction:column;overflow:hidden}#text-preference-editor header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-bottom:1px solid var(--tp-line);flex-shrink:0}#text-preference-editor h2{display:flex;align-items:center;gap:9px;font-size:17px;margin:0;font-weight:650}.tp-modal-body{padding:20px 22px;overflow:auto;min-height:0;overscroll-behavior:contain}.tp-modal-body>p{margin:0 0 14px}#text-preference-editor footer{border-top:1px solid var(--tp-line);display:flex;align-items:center;gap:10px;padding:14px 22px;flex-shrink:0}.tp-spacer{flex:1}#text-preference-editor .tp-quiet{border-color:transparent;color:var(--tp-muted)}.tp-location{color:var(--tp-muted);display:flex;gap:7px;align-items:center;font-size:12px;overflow-wrap:anywhere}.tp-purpose{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:600;margin-bottom:14px}.tp-purpose svg{color:var(--tp-brand)}
.tp-comparison{display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--tp-line);border-radius:8px;overflow:hidden;margin:12px 0 18px}.tp-comparison section{min-width:0;padding:13px 15px;background:#f7f9fc;position:relative}.tp-comparison section+section{background:#fff;border-left:1px solid var(--tp-line)}.tp-comparison label{font-size:12px;color:var(--tp-muted)}.tp-comparison p{margin:6px 0 0;overflow-wrap:anywhere;white-space:pre-wrap;font-size:15px}.tp-comparison em{display:inline-block;font-size:11px;font-style:normal;color:var(--tp-green);background:#eaf7f1;padding:1px 6px;border-radius:4px;margin-top:7px}.tp-label{display:block;font-weight:600;margin:16px 0 7px}#text-preference-editor textarea,.tp-rich-input{width:100%;border:1px solid #b9cbd8;border-radius:7px;padding:11px 12px;background:#fff;min-height:74px;white-space:pre-wrap;overflow-wrap:anywhere}#text-preference-editor textarea{resize:vertical;max-height:160px}.tp-rich-input{line-height:2;min-height:90px}.tp-variable{display:inline-flex;align-items:center;gap:4px;color:#086a8d;border:1px solid #9ecbda;background:#edf8fc;border-radius:5px;padding:0 7px;margin:1px 4px;line-height:25px;font-size:12px;vertical-align:middle;user-select:all}.tp-variable svg{width:13px!important;height:13px!important}.tp-variable-actions{display:flex;gap:8px}.tp-hint{font-size:12px;color:var(--tp-muted);margin:8px 0}.tp-error{color:var(--tp-danger);font-size:13px;margin:8px 0}.tp-error:empty{display:none}[aria-invalid="true"]#tp-draft{border-color:var(--tp-danger)}.tp-preview{border:1px solid #b8dbce;background:#f0faf5;padding:13px 14px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:48px;color:#19563f;font-size:15px}.tp-scope{display:flex;align-items:flex-start;gap:9px;background:var(--tp-soft);border-radius:8px;padding:12px 14px;margin-top:18px}.tp-scope>svg{margin-top:3px;color:var(--tp-brand)}.tp-scope strong{font-size:12px}.tp-scope p{font-size:13px;margin:4px 0}.tp-scope small{font-size:12px;color:var(--tp-muted)}#text-preference-editor .tp-inline{color:var(--tp-brand);border:0;padding:3px 0;background:none;font-size:12px}
.tp-choose h3{margin:0;font-size:15px}.tp-choose>p{font-size:12px;color:var(--tp-muted);margin:5px 0 12px}.tp-choice-list{display:grid;gap:8px}.tp-choice{display:flex;gap:10px;align-items:center;border:1px solid var(--tp-line);border-radius:8px;padding:11px 13px;cursor:pointer}.tp-choice:has(input:checked){border-color:var(--tp-brand);background:var(--tp-soft)}.tp-choice input{accent-color:var(--tp-brand)}.tp-choice strong,.tp-choice small{display:block}.tp-choice strong{font-size:13px;font-weight:600}.tp-choice small{font-size:12px;color:var(--tp-muted);margin-top:3px}.tp-select-hint{display:flex;align-items:center;gap:7px;color:var(--tp-muted);font-size:12px;margin:15px 0 0}.tp-unknown{text-align:center;padding:20px 16px 30px}.tp-unknown>svg{width:40px!important;height:40px!important;color:#8194a8;margin-bottom:8px}.tp-unknown h3{font-size:16px;margin:8px 0}.tp-unknown p{font-size:13px;color:var(--tp-muted);line-height:1.8;max-width:430px;margin:8px auto}
.tp-library-backdrop{justify-content:flex-end;padding:0;z-index:15001}.tp-library{height:100dvh;width:960px;max-width:100vw;background:#fff;display:flex;flex-direction:column;box-shadow:-16px 0 48px #16384c26}.tp-library header p{font-size:12px;color:var(--tp-muted);margin:4px 0 0}.tp-library-intro{padding:13px 22px 0;font-size:12px;color:var(--tp-muted)}.tp-library-filters{display:flex;align-items:center;gap:14px;padding:16px 22px;border-bottom:1px solid var(--tp-line)}.tp-search{display:flex;align-items:center;gap:8px;flex:1;min-width:0;border:1px solid #b9cbd8;border-radius:7px;padding:8px 11px}.tp-search input{border:0;outline:0;background:none;width:100%;min-width:0;font-size:13px!important}.tp-search:focus-within{outline:2px solid #71b7ce;outline-offset:2px}.tp-filter-tabs{display:flex;gap:0;background:#f5f8fb;border-radius:7px;padding:3px}.tp-filter-tabs button{min-height:30px!important;border:0!important;background:transparent!important;color:var(--tp-muted)!important;padding:5px 10px!important;font-size:12px!important}.tp-filter-tabs button[aria-pressed="true"]{background:#fff!important;color:var(--tp-brand)!important;box-shadow:0 1px 4px #17384a18}.tp-filter-tabs span{font-size:11px;border-radius:10px;background:#e6eef4;padding:0 5px}
#tp-library-list{flex:1;min-height:0;overflow:auto;padding:0 22px;overscroll-behavior:contain}.tp-library-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:13px}.tp-library-table th{font-size:12px;font-weight:500;color:var(--tp-muted);background:#f7f9fc;text-align:left;padding:11px 10px;position:sticky;top:0;z-index:1}.tp-library-table td{padding:15px 10px;border-bottom:1px solid #e6edf3;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.tp-library-table th:first-child{width:27%}.tp-library-table th:nth-child(2),.tp-library-table th:nth-child(3){width:23%}.tp-library-table th:nth-child(4){width:10%}.tp-library-table th:nth-child(5){width:17%}.tp-library-table td strong{font-size:13px;font-weight:500}.tp-state{display:inline-block;border-radius:4px;padding:2px 6px;font-size:11px;color:var(--tp-muted);background:#f0f4f8;white-space:nowrap}.tp-state.modified{color:#0c775c;background:#e8f6ef}#text-preference-editor .tp-link{color:var(--tp-brand);padding:0;border:0;background:none;min-height:26px;font-size:12px;justify-content:flex-start}.tp-row-actions>button+button{margin-left:10px}.tp-muted{color:#8393a4}.tp-library footer{justify-content:space-between}#tp-library-count{display:flex;align-items:center;gap:5px;color:var(--tp-muted);font-size:12px;white-space:nowrap}#tp-library-count .tp-icon{width:30px;min-height:30px;padding:5px}.tp-empty{text-align:center;color:var(--tp-muted);padding:70px 10px}.tp-empty>svg{width:30px!important;height:30px!important;display:block;margin:0 auto 14px}.tp-empty strong{display:block;font-size:14px}.tp-empty p{font-size:12px}
.tp-reset-icon{display:grid;place-items:center;width:48px;height:48px;background:#fff3e8;color:#b77023;border-radius:12px;margin-bottom:15px}.tp-reset-icon svg{width:24px!important;height:24px!important}.tp-reset-copy{margin:0 0 15px}.tp-reset-scope{display:grid;grid-template-columns:80px 1fr;gap:10px;font-size:13px;background:#f5f8fb;border:1px solid var(--tp-line);border-radius:8px;padding:14px;margin-bottom:13px}.tp-reset-scope span{color:var(--tp-muted)}.tp-reset-scope strong{font-weight:600}
.tp-notice{position:fixed;top:78px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 28px);width:max-content;display:flex;gap:10px;align-items:center;border:1px solid #b6dacb;background:#f5fcf8;color:#235a45;box-shadow:0 7px 25px #17384a20;border-radius:9px;padding:11px 12px 11px 15px;z-index:15010;font-size:13px}.tp-notice span{max-width:510px}.tp-notice.is-warning{background:#fff9ee;border-color:#edc895;color:#8c5715}.tp-notice .tp-icon{border:0!important;background:none!important;width:26px!important;min-height:26px!important;padding:3px!important}
.language-menu [data-action="personalize-text"]{border-top:1px solid #dce5ee;margin-top:5px;padding-top:10px;white-space:nowrap}.language-menu:has([data-action="personalize-text"]){min-width:195px}
@media(max-width:720px){.tp-toolbar{bottom:10px;width:calc(100vw - 20px);padding:12px;gap:10px;flex-wrap:wrap}.tp-toolbar-actions{margin-left:auto}.tp-toolbar-copy strong{font-size:13px}.tp-toolbar-meta{gap:7px 12px}.tp-toolbar-copy>svg{display:none}.tp-toolbar kbd{display:none}.tp-modal-backdrop{padding:12px}.tp-modal{max-height:calc(100dvh - 24px)}#text-preference-editor header,.tp-modal-body,#text-preference-editor footer{padding:14px}.tp-comparison section{padding:11px}.tp-library-filters{padding:12px 14px;flex-wrap:wrap;gap:12px}.tp-search{flex-basis:100%}.tp-library-intro{padding:12px 14px 0}.tp-library-table thead{display:none}.tp-library-table,.tp-library-table tbody{display:block}.tp-library-table tr{display:grid;grid-template-columns:1fr 1fr;gap:8px 14px;padding:15px 0;border-bottom:1px solid var(--tp-line)}.tp-library-table td{padding:0;border:0}.tp-library-table td:first-child{grid-column:1/-1}.tp-library-table td[data-label]:before{content:attr(data-label);display:block;color:var(--tp-muted);font-size:11px;margin-bottom:4px}.tp-library-table td:nth-child(4){align-self:center}.tp-library-table td:last-child{text-align:right}#tp-library-list{padding:0 14px}.tp-library footer{flex-wrap:wrap}.tp-library footer>[data-tp="restore-all"]{width:100%;margin-top:3px}.tp-notice{top:72px;width:calc(100vw - 28px)}.text-picking{padding-bottom:135px;scroll-padding-bottom:150px}}
@media(prefers-reduced-motion:reduce){.tp-saved{transition:none}}
body.text-picking .co-drawer{height:calc(100dvh - var(--tp-toolbar-space,96px));max-height:calc(100dvh - var(--tp-toolbar-space,96px))}
body.text-picking .co-modal-layer{padding-bottom:var(--tp-toolbar-space,96px)}
body.text-picking .co-modal{min-height:0;max-height:calc(100dvh - var(--tp-toolbar-space,96px) - 40px)}
