body.se-site[data-se-page="threads-scheduler"],body.se-site[data-se-page="threads-privacy"],body.se-site[data-se-page="privacy"]{--ts-ink:#173e31;--ts-muted:#63756b;--ts-paper:#fffef9;--ts-soft:#edf1e8;--ts-line:#c9d3c7;--ts-accent:#db5939;--ts-danger:#ab3627}
html.dark body.se-site[data-se-page="threads-scheduler"],html.dark body.se-site[data-se-page="threads-privacy"],html.dark body.se-site[data-se-page="privacy"]{--ts-ink:#e1eee4;--ts-muted:#acbeb1;--ts-paper:#1a2d25;--ts-soft:#233b30;--ts-line:#456151;--ts-accent:#f18b67;--ts-danger:#ffa18c}
body.se-site .ts-page{width:var(--v3-page,91.6%);max-width:1400px;margin:24px auto 54px;color:var(--ts-ink);font-family:var(--se-font-body,SamEggTC,system-ui,sans-serif)}
body.se-site .ts-page [hidden],body.se-site .ts-dialog [hidden]{display:none!important}
body.se-site .ts-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:26px}
body.se-site .ts-heading h1{font-size:clamp(1.9rem,4vw,2.75rem);line-height:1.2;letter-spacing:-.035em;margin:0 0 12px;font-weight:850}
body.se-site .ts-heading p{margin:0;color:var(--ts-muted);font-size:1rem}
body.se-site .ts-help{font-size:.9rem;white-space:nowrap;text-decoration:underline;text-underline-offset:4px;color:var(--ts-ink)}
body.se-site .ts-connection{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 25px;background:var(--ts-soft);border:1.5px solid var(--ts-ink);border-radius:12px;margin-bottom:20px}
body.se-site .ts-connection h2{font-size:1rem;margin:0 0 6px;display:flex;align-items:center;gap:9px;font-weight:750}
body.se-site .ts-connection h2:before{content:"";width:8px;height:8px;flex:none;border-radius:50%;background:var(--ts-accent)}
body.se-site .ts-connection.is-connected h2:before{background:#52a873}
body.se-site .ts-connection p{font-size:.86rem;margin:0;line-height:1.65;color:var(--ts-muted);max-width:60rem}
body.se-site .ts-account-actions,body.se-site .ts-compose-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
body.se-site .ts-account-actions{flex:none}
body.se-site .ts-page .ts-button,body.se-site .ts-dialog .ts-button{appearance:none;display:inline-flex;justify-content:center;align-items:center;gap:8px;border:1.5px solid var(--ts-ink);border-radius:8px;padding:11px 17px;min-height:44px;font:inherit;font-size:.9rem;font-weight:700;color:var(--ts-ink);background:var(--ts-paper);text-decoration:none;box-shadow:none;white-space:nowrap;cursor:pointer;line-height:1.35;transition:transform .15s,box-shadow .15s}
body.se-site .ts-page .ts-button.ts-primary,body.se-site .ts-dialog .ts-button.ts-primary{background:var(--ts-ink);color:var(--ts-paper);box-shadow:3px 3px 0 var(--ts-accent)}
body.se-site .ts-page .ts-button:hover:not(:disabled):not([aria-disabled="true"]),body.se-site .ts-dialog .ts-button:hover{transform:translateY(-1px)}
body.se-site .ts-page .ts-button:active:not(:disabled),body.se-site .ts-dialog .ts-button:active{transform:translate(2px,2px);box-shadow:none}
body.se-site .ts-page button:disabled,body.se-site .ts-page a[aria-disabled="true"]{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
body.se-site .ts-page .ts-button.ts-danger{border-color:var(--ts-danger);color:var(--ts-danger)}
body.se-site .ts-page button:focus-visible,body.se-site .ts-page a:focus-visible,body.se-site .ts-page summary:focus-visible,body.se-site .ts-dialog button:focus-visible{outline:3px solid var(--ts-accent);outline-offset:3px}
body.se-site .ts-page .ts-text-button{appearance:none;border:0;background:none;padding:8px 2px;box-shadow:none;border-radius:0;color:var(--ts-muted);font:inherit;font-size:.86rem;text-decoration:underline;text-underline-offset:4px;cursor:pointer;min-height:40px}
body.se-site .ts-workspace{border:1.5px solid var(--ts-ink);border-radius:12px;background:var(--ts-paper);box-shadow:5px 5px 0 var(--ts-ink);overflow:hidden}
body.se-site .ts-tabs{display:flex;gap:6px;border-bottom:1px solid var(--ts-line);padding:10px 20px 0;background:var(--ts-soft);overflow:auto}
body.se-site .ts-tabs button{appearance:none;flex:none;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;box-shadow:none;font:inherit;font-size:.92rem;font-weight:650;color:var(--ts-muted);padding:14px 16px;white-space:nowrap;cursor:pointer}
body.se-site .ts-tabs button[aria-current="page"]{border-bottom-color:var(--ts-accent);color:var(--ts-ink)}
body.se-site .ts-tabs span{display:inline-grid;place-items:center;font-size:.72rem;min-width:20px;height:20px;border-radius:5px;background:var(--ts-line);margin-left:4px}
body.se-site .ts-view{padding:30px}
body.se-site .ts-compose-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.8fr);gap:38px}
body.se-site .ts-editor{min-width:0}
body.se-site .ts-section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px}
body.se-site .ts-section-heading h2,body.se-site .ts-view>h2{font-size:1.2rem;font-weight:800;line-height:1.4;margin:0}
body.se-site .ts-section-heading p{font-size:.9rem;margin:6px 0 0;color:var(--ts-muted)}
body.se-site .ts-page textarea,body.se-site .ts-page input{display:block;width:100%;box-sizing:border-box;padding:14px 15px;border:1px solid var(--ts-line);border-radius:8px;background:var(--ts-paper);color:var(--ts-ink);font:inherit;font-size:1rem;line-height:1.7;box-shadow:none;outline:none}
body.se-site .ts-page textarea{resize:vertical;min-height:82px}
body.se-site .ts-page #post-text{font-size:1.08rem;min-height:230px;line-height:1.85;background:var(--ts-paper)}
body.se-site .ts-page textarea:focus,body.se-site .ts-page input:focus{border-color:var(--ts-ink);outline:2px solid var(--ts-line);outline-offset:2px}
body.se-site .ts-page textarea::placeholder{color:var(--ts-muted);opacity:.8}
body.se-site .ts-editor-foot{display:flex;justify-content:space-between;gap:12px;margin:9px 0 20px;font-size:.79rem;color:var(--ts-muted)}
body.se-site .ts-editor-foot .is-over{color:var(--ts-danger);font-weight:800}
body.se-site .ts-ai{border-top:1px solid var(--ts-line);border-bottom:1px solid var(--ts-line);padding:16px 0;margin:16px 0 22px}
body.se-site .ts-ai summary{cursor:pointer;font-size:.9rem;font-weight:700;min-height:24px}
body.se-site .ts-ai label{display:block;margin:18px 0 8px;font-size:.85rem}
body.se-site .ts-ai-action{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}
body.se-site .ts-ai-action p{font-size:.78rem;color:var(--ts-muted);margin:0;line-height:1.6}
body.se-site .ts-schedule label{display:flex;gap:10px;align-items:center;font-size:.88rem;font-weight:700;margin-bottom:8px}
body.se-site .ts-schedule label span{font-size:.74rem;font-weight:500;background:var(--ts-soft);padding:3px 7px;border-radius:4px}
body.se-site .ts-schedule input{width:auto;min-width:260px;max-width:100%;min-height:45px}
body.se-site .ts-schedule p,body.se-site .ts-note{font-size:.78rem;color:var(--ts-muted);line-height:1.7;margin:8px 0 0}
body.se-site .ts-compose-actions{margin-top:23px}
body.se-site .ts-preview{border-left:1px solid var(--ts-line);padding-left:32px;min-width:0}
body.se-site .ts-preview h2{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ts-muted);margin:3px 0 24px;font-weight:650}
body.se-site .ts-preview-post{display:flex;gap:12px;padding-bottom:23px;border-bottom:1px solid var(--ts-line)}
body.se-site .ts-avatar{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--ts-soft);font-size:1.25rem;font-weight:800}
body.se-site .ts-preview-body{min-width:0;flex:1}
body.se-site .ts-preview-identity{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-top:6px;font-size:.85rem;overflow-wrap:anywhere}
body.se-site .ts-preview-identity span{color:var(--ts-muted);font-size:.76rem}
body.se-site #preview-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.85;font-size:.95rem;margin:14px 0 21px;min-height:110px}
body.se-site #preview-text.is-empty{color:var(--ts-muted)}
body.se-site .ts-preview-icons{display:flex;gap:23px;font-family:system-ui,sans-serif;font-size:1.5rem;line-height:1;color:var(--ts-muted)}
body.se-site .ts-preview-note{color:var(--ts-muted);font-size:.72rem;text-align:right;margin:12px 0}
body.se-site .ts-message{padding:0;margin:0 0 14px;font-size:.88rem;line-height:1.7;color:var(--ts-ink)}
body.se-site .ts-message:empty{display:none}
body.se-site .ts-message.is-error{color:var(--ts-danger)}
body.se-site .ts-filters{display:flex;gap:9px;flex-wrap:wrap;margin:23px 0}
body.se-site .ts-filters button{font:inherit;font-size:.8rem;padding:7px 13px;min-height:35px;background:var(--ts-paper);color:var(--ts-muted);border:1px solid var(--ts-line);border-radius:20px;box-shadow:none;cursor:pointer}
body.se-site .ts-filters button[aria-pressed="true"]{background:var(--ts-ink);color:var(--ts-paper);border-color:var(--ts-ink)}
body.se-site .ts-empty{padding:45px 20px;text-align:center;color:var(--ts-muted);font-size:.93rem;line-height:1.8;background:var(--ts-soft);border-radius:8px;margin:0}
body.se-site .ts-post{padding:22px 0;border-top:1px solid var(--ts-line)}
body.se-site .ts-post:first-child{border-top:0}
body.se-site .ts-post-head{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;font-size:.8rem;color:var(--ts-muted)}
body.se-site .ts-badge{background:var(--ts-soft);border-radius:4px;padding:4px 8px;font-weight:700;color:var(--ts-ink)}
body.se-site .ts-badge[data-status="uncertain"],body.se-site .ts-badge[data-status="failed"]{color:var(--ts-danger)}
body.se-site .ts-post-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.97rem;line-height:1.8;margin:15px 0}
body.se-site .ts-post-note{font-size:.8rem;color:var(--ts-muted);line-height:1.65;margin:10px 0}
body.se-site .ts-post-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}
body.se-site .ts-post-actions .ts-button{font-size:.8rem;padding:8px 13px;min-height:38px}
body.se-site .ts-settings-form{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;max-width:1040px;margin-top:28px}
body.se-site .ts-settings-form label{font-size:.9rem;font-weight:700}
body.se-site .ts-settings-form textarea,body.se-site .ts-settings-form input{margin-top:9px;font-weight:400}
body.se-site .ts-settings-form input[type="number"]{max-width:140px}
body.se-site .ts-settings-form>div{grid-column:1/-1}
body.se-site .ts-account-row{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:26px 0;border-top:1px solid var(--ts-line)}
body.se-site .ts-account-row:first-of-type{margin-top:24px}
body.se-site .ts-account-row h3{font-size:.97rem;margin:0 0 7px;font-weight:750}
body.se-site .ts-account-row p,body.se-site #account-summary{font-size:.87rem;color:var(--ts-muted);line-height:1.75;margin:0}
body.se-site #account-summary{margin-top:14px}
body.se-site .ts-dialog{width:min(460px,calc(100vw - 40px));max-height:85vh;box-sizing:border-box;border:1.5px solid var(--ts-ink);border-radius:12px;padding:28px;background:var(--ts-paper);color:var(--ts-ink);box-shadow:6px 6px 0 var(--ts-ink)}
body.se-site .ts-dialog::backdrop{background:rgb(12 29 21 / .55)}
body.se-site .ts-dialog h2{font-size:1.25rem;margin:0 0 14px}
body.se-site .ts-dialog p{font-size:.94rem;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 24px}
body.se-site .ts-dialog form>div{display:flex;justify-content:flex-end;gap:12px}
body.se-site .ts-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.se-site .ts-privacy{max-width:880px;margin:0 auto;background:var(--ts-paper);border:1.5px solid var(--ts-ink);border-radius:12px;padding:36px;box-shadow:5px 5px 0 var(--ts-ink)}
body.se-site .ts-privacy h2{font-size:1.2rem;margin:30px 0 12px}
body.se-site .ts-privacy p,body.se-site .ts-privacy li{font-size:.95rem;line-height:1.9;color:var(--ts-muted)}
body.se-site .ts-privacy a{color:var(--ts-ink);text-decoration:underline;text-underline-offset:4px}
body.se-site .ts-privacy ul,body.se-site .ts-privacy ol{padding-left:24px}
@media(max-width:900px){body.se-site .ts-compose-grid{grid-template-columns:minmax(0,1fr);gap:32px}body.se-site .ts-preview{border-left:0;border-top:1px solid var(--ts-line);padding:28px 0 0}body.se-site #preview-text{min-height:60px}body.se-site .ts-connection{align-items:flex-start;flex-direction:column}body.se-site .ts-settings-form{grid-template-columns:1fr}}
@media(max-width:600px){body.se-site .ts-page{margin-top:18px}body.se-site .ts-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:20px}body.se-site .ts-heading h1{font-size:1.95rem}body.se-site .ts-connection{padding:18px;gap:15px}body.se-site .ts-account-actions{width:100%}body.se-site .ts-account-actions .ts-button{width:100%}body.se-site .ts-tabs{padding:5px 6px 0;gap:0}body.se-site .ts-tabs button{padding:13px 11px;font-size:.82rem}body.se-site .ts-view{padding:23px 18px}body.se-site .ts-ai-action{align-items:flex-start;flex-direction:column}body.se-site .ts-compose-actions{gap:10px}body.se-site .ts-compose-actions .ts-button{flex:1;padding:12px 10px}body.se-site .ts-schedule input{width:100%;min-width:0}body.se-site .ts-account-row{align-items:flex-start;flex-direction:column;gap:14px}body.se-site .ts-privacy{padding:24px 19px}body.se-site .ts-section-heading{align-items:flex-start}.ts-workspace{box-shadow:3px 3px 0 var(--ts-ink)}}
@media(prefers-reduced-motion:reduce){body.se-site .ts-page *,body.se-site .ts-dialog *{transition:none!important}}
body.se-site .ts-page select,body.se-site .ts-dialog select,body.se-site .ts-dialog input{display:block;width:100%;box-sizing:border-box;padding:12px 14px;border:1px solid var(--ts-line);border-radius:8px;background:var(--ts-paper);color:var(--ts-ink);font:inherit;font-size:1rem;line-height:1.7;min-height:48px;margin-top:9px}
body.se-site .ts-page select:focus,body.se-site .ts-dialog select:focus,body.se-site .ts-dialog input:focus{outline:2px solid var(--ts-line);outline-offset:2px;border-color:var(--ts-ink)}
body.se-site .ts-settings-form .ts-form-wide{grid-column:1/-1}
body.se-site .ts-callout{padding:18px 20px;background:var(--ts-soft);border:1px solid var(--ts-line);border-radius:8px;font-size:.88rem;line-height:1.8}
body.se-site .ts-callout p{margin:5px 0 0;color:var(--ts-muted)}
body.se-site .ts-callout strong{font-weight:750}
body.se-site .ts-inline-actions,body.se-site .ts-ai-methods{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:15px}
body.se-site .ts-external-panel{border-left:3px solid var(--ts-accent);padding-left:18px;margin-top:20px}
body.se-site .ts-external-panel textarea[readonly],body.se-site #diagnostic-report{font-size:.85rem;line-height:1.7;background:var(--ts-soft)}
body.se-site #use-external-result{margin-top:13px}
body.se-site .ts-form-actions{grid-column:1/-1}
body.se-site .ts-api-form{margin-bottom:28px}
body.se-site .ts-automation-form{max-width:850px;display:grid;gap:24px;margin:27px 0}
body.se-site .ts-automation-form>label{font-size:.9rem;font-weight:700;line-height:1.7}
body.se-site .ts-automation-form input[type="number"]{max-width:150px;margin-top:9px}
body.se-site .ts-page .ts-check{display:flex;align-items:flex-start;gap:14px;padding:18px 20px;border:1px solid var(--ts-line);border-radius:8px;cursor:pointer}
body.se-site .ts-page .ts-check input[type="checkbox"]{appearance:auto;width:20px;height:20px;min-width:20px;padding:0;margin:3px 0 0;accent-color:var(--ts-ink)}
body.se-site .ts-check span{display:flex;flex-direction:column;gap:6px}
body.se-site .ts-check strong{font-size:.95rem}
body.se-site .ts-check small{font-size:.8rem;font-weight:400;color:var(--ts-muted);line-height:1.7}
body.se-site .ts-detail{border-top:1px solid var(--ts-line);border-bottom:1px solid var(--ts-line);padding:17px 0;margin:22px 0}
body.se-site .ts-detail summary{font-size:.92rem;font-weight:700;cursor:pointer}
body.se-site .ts-detail>p{font-size:.88rem;line-height:1.8;color:var(--ts-muted)}
body.se-site .ts-threads-panel{margin-top:30px;border-bottom:0;padding-bottom:0}
body.se-site .ts-threads-panel .ts-inline-actions{margin-top:14px}
body.se-site .ts-threads-panel #threads-posts-list{display:grid;gap:12px;margin:16px 0}
body.se-site .ts-threads-panel #threads-posts-list:empty{display:none}
body.se-site .ts-threads-panel #threads-posts-status.is-error{color:var(--ts-danger)}
body.se-site .ts-threads-panel .ts-threads-post{background:var(--ts-paper);min-width:0}
body.se-site .ts-threads-panel .ts-post-text{overflow-wrap:anywhere}
body.se-site .ts-threads-panel .ts-empty{padding:24px 16px}
@media(max-width:600px){body.se-site .ts-threads-panel .ts-post-head{align-items:flex-start;gap:8px}body.se-site .ts-threads-panel #read-threads-posts,body.se-site .ts-threads-panel #more-threads-posts{width:100%}}
body.se-site .ts-small-title{font-size:1rem;margin:28px 0 15px}
body.se-site .ts-slot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
body.se-site .ts-slot{padding:14px 16px;border:1px solid var(--ts-line);border-radius:8px;display:flex;flex-direction:column;gap:6px;font-size:.82rem}
body.se-site .ts-slot>span{color:var(--ts-muted)}
body.se-site .ts-diagnostic-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:20px 0}
body.se-site .ts-metric{display:flex;flex-direction:column;gap:8px;border:1px solid var(--ts-line);background:var(--ts-soft);border-radius:8px;padding:15px}
body.se-site .ts-metric span{font-size:.78rem;color:var(--ts-muted)}
body.se-site .ts-metric strong{font-size:1.5rem;font-weight:800}
body.se-site .ts-dialog label{display:block;margin-bottom:20px;font-size:.87rem;line-height:1.65}
body.se-site #generation-detail{padding:12px 14px;background:var(--ts-soft);border-radius:6px;margin-top:15px}
@media(max-width:600px){body.se-site .ts-diagnostic-summary{grid-template-columns:repeat(2,minmax(0,1fr))}body.se-site .ts-callout{padding:15px}body.se-site .ts-inline-actions,body.se-site .ts-ai-methods{gap:10px}body.se-site .ts-ai-methods>.ts-button{flex:1;padding:11px 10px;font-size:.8rem}body.se-site .ts-external-panel{padding-left:13px}body.se-site .ts-page .ts-check{padding:15px;gap:12px}}
/* 試寫模式（未連結 Threads）：只留能用的動作，本機草稿匣與多版本挑選 */
body.se-site .ts-page.is-trial .ts-schedule,body.se-site .ts-page.is-trial #save-button,body.se-site .ts-page.is-trial #publish-button,body.se-site .ts-page.is-trial #post-list,body.se-site .ts-page.is-trial .ts-filters,body.se-site .ts-page.is-trial #refresh-posts{display:none}
body.se-site .ts-page.is-trial .ts-compose-actions{margin-top:6px}
body.se-site .ts-local{margin-top:30px}
body.se-site .ts-page.is-trial .ts-local{margin-top:22px}
body.se-site .ts-local .ts-section-heading{align-items:flex-start;margin-bottom:6px}
body.se-site .ts-local .ts-small-title{margin:0 0 6px}
body.se-site .ts-local .ts-note{margin:0}
body.se-site .ts-ai .ts-variants{display:inline-flex;align-items:center;gap:8px;margin:0;font-size:.85rem;font-weight:650}
body.se-site .ts-page .ts-variants select{display:inline-block;width:auto;padding:9px 12px;min-height:44px}
body.se-site .ts-variant-picker{margin-top:18px}
body.se-site .ts-variant-picker>.ts-note{margin:0 0 12px}
body.se-site .ts-variant-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}
body.se-site .ts-variant{display:flex;flex-direction:column;padding:14px 16px;border:1px solid var(--ts-line);border-radius:8px;background:var(--ts-paper)}
body.se-site .ts-variant .ts-post-text{flex:1;font-size:.9rem;margin:10px 0 14px}
body.se-site .ts-variant .is-over{color:var(--ts-danger);font-weight:700}
body.se-site .ts-variant .ts-button{align-self:flex-start}
@media(max-width:600px){body.se-site .ts-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:4px 4px 0;overflow:visible}body.se-site .ts-tabs button{padding:12px 4px;text-align:center}body.se-site .ts-local .ts-section-heading{flex-direction:column;gap:4px}body.se-site .ts-ai .ts-variants{width:100%}body.se-site .ts-page .ts-variants select{flex:1}}
/* 2026-11-14 版面整理：精簡頁首、左寫右發布、三步驟 AI、浮動訊息、清單與開關 */
body.se-site .ts-heading{align-items:flex-start;margin-bottom:16px}
body.se-site .ts-heading h1{font-size:clamp(1.5rem,3vw,2.1rem);margin:0 0 8px}
body.se-site .ts-heading p{font-size:.92rem;line-height:1.7;max-width:46rem}
body.se-site .ts-connection{padding:11px 18px;gap:14px;margin-bottom:16px;border-width:1px;border-color:var(--ts-line)}
body.se-site .ts-connection>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px;min-width:0}
body.se-site .ts-connection h2{font-size:.92rem;margin:0;flex:none}
body.se-site .ts-connection p{font-size:.82rem}
body.se-site .ts-connection .ts-button{padding:8px 14px;min-height:40px;font-size:.84rem}
body.se-site .ts-message{position:fixed;left:50%;bottom:24px;z-index:70;transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:min(580px,calc(100vw - 32px));margin:0;padding:12px 18px;border-radius:10px;background:var(--ts-ink);color:var(--ts-paper);font-size:.9rem;line-height:1.65;box-shadow:0 8px 24px rgb(12 29 21 / .28);cursor:pointer}
body.se-site .ts-message.is-error{background:var(--ts-danger);color:var(--ts-paper)}
body.se-site .ts-workspace{overflow:clip}
body.se-site .ts-tabs button[data-view="settings"]{margin-left:auto}
body.se-site .ts-view:not(#view-compose)>*{max-width:880px}
body.se-site .ts-settings-form,body.se-site .ts-automation-form{max-width:880px}
body.se-site .ts-page input[type="number"]{width:140px;max-width:100%}
/* 寫一篇 */
body.se-site .ts-compose-grid{grid-template-columns:minmax(0,1.3fr) minmax(300px,.8fr);gap:36px;align-items:start}
body.se-site .ts-side{position:sticky;top:16px;min-width:0;border-left:1px solid var(--ts-line);padding-left:32px}
body.se-site .ts-preview{border-left:0;padding-left:0}
body.se-site .ts-preview h2{margin:3px 0 18px}
body.se-site #preview-text{min-height:84px;margin:12px 0 18px}
body.se-site .ts-preview-icons{gap:20px;font-size:1rem}
body.se-site .ts-preview-icons svg{display:block}
body.se-site .ts-preview-note{margin:10px 0 0}
body.se-site .ts-publish{margin-top:22px;padding-top:22px;border-top:1px solid var(--ts-line)}
body.se-site .ts-schedule input{min-width:0;width:100%}
body.se-site .ts-quick-times{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
body.se-site .ts-page .ts-quick-times button{appearance:none;font:inherit;font-size:.78rem;font-weight:600;padding:6px 12px;min-height:34px;border:1px solid var(--ts-line);border-radius:18px;background:var(--ts-paper);color:var(--ts-ink);box-shadow:none;cursor:pointer}
body.se-site .ts-page .ts-quick-times button:hover:not(:disabled){border-color:var(--ts-ink)}
body.se-site .ts-compose-actions{margin-top:20px}
body.se-site .ts-page.is-trial .ts-publish{margin-top:18px;padding-top:18px}
body.se-site .ts-page.is-trial .ts-compose-actions{margin-top:0}
body.se-site .ts-page.is-trial #generate-button{display:none}
/* AI 三步驟 */
body.se-site .ts-ai{border-bottom:0;margin:6px 0 0;padding:16px 0 0}
body.se-site .ts-ai summary{font-size:.95rem}
body.se-site .ts-page .ts-steps{list-style:none;counter-reset:ts-step;margin:16px 0 0;padding:0;display:grid;gap:0}
body.se-site .ts-page .ts-steps>li{counter-increment:ts-step;position:relative;margin:0;padding:0 0 22px 44px}
body.se-site .ts-page .ts-steps>li::before{content:counter(ts-step);position:absolute;left:0;top:0;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--ts-ink);color:var(--ts-paper);font-size:.82rem;font-weight:800;line-height:1}
body.se-site .ts-page .ts-steps>li::after{content:"";position:absolute;left:13.5px;top:34px;bottom:6px;width:1px;background:var(--ts-line)}
body.se-site .ts-page .ts-steps>li:last-child{padding-bottom:0}
body.se-site .ts-page .ts-steps>li:last-child::after{display:none}
body.se-site .ts-ai .ts-step-body>label:first-child,body.se-site .ts-step-title{display:block;margin:3px 0 10px;font-size:.9rem;font-weight:700;line-height:1.5}
body.se-site .ts-step-body .ts-ai-methods{margin-top:12px}
body.se-site .ts-prompt-details{margin-top:12px}
body.se-site .ts-prompt-details summary{font-size:.82rem;font-weight:600;color:var(--ts-muted);min-height:0}
body.se-site .ts-prompt-details textarea{margin-top:10px;font-size:.85rem;line-height:1.7;background:var(--ts-soft)}
/* 清單：狀態顏色與次要動作 */
body.se-site .ts-badge[data-status="queued"]{background:var(--ts-ink);color:var(--ts-paper)}
body.se-site .ts-badge[data-status="published"]{background:none;box-shadow:inset 0 0 0 1px var(--ts-line);color:var(--ts-muted)}
body.se-site .ts-badge[data-status="uncertain"],body.se-site .ts-badge[data-status="failed"],body.se-site .ts-badge[data-status="expired"]{background:none;box-shadow:inset 0 0 0 1px var(--ts-danger);color:var(--ts-danger)}
body.se-site .ts-post-head .ts-due{font-size:.9rem;font-weight:700;color:var(--ts-ink)}
body.se-site .ts-post-actions{align-items:center;gap:9px 14px}
body.se-site .ts-page .ts-quiet{appearance:none;border:0;background:none;box-shadow:none;padding:8px 2px;min-height:38px;font:inherit;font-size:.8rem;font-weight:600;color:var(--ts-muted);text-decoration:underline;text-underline-offset:4px;cursor:pointer;display:inline-flex;align-items:center}
body.se-site .ts-page .ts-quiet:hover:not(:disabled){color:var(--ts-ink)}
body.se-site .ts-page .ts-quiet.ts-danger{color:var(--ts-danger)}
/* 自動排程：狀態與開關 */
body.se-site .ts-chips{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 16px}
body.se-site .ts-chip{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border:1px solid var(--ts-line);border-radius:20px;font-size:.82rem;color:var(--ts-muted)}
body.se-site .ts-chip::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--ts-line)}
body.se-site .ts-chip.is-on{border-color:var(--ts-ink);color:var(--ts-ink)}
body.se-site .ts-chip.is-on::before{background:#52a873}
body.se-site .ts-chip strong{font-weight:750}
body.se-site .ts-page .ts-check{align-items:center;justify-content:space-between;flex-direction:row-reverse}
body.se-site .ts-page .ts-check input[type="checkbox"]{appearance:none;position:relative;flex:none;width:46px;height:26px;min-width:46px;margin:0;padding:0;border:0;border-radius:13px;background:var(--ts-line);cursor:pointer;transition:background .15s}
body.se-site .ts-page .ts-check input[type="checkbox"]::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--ts-paper);transition:transform .15s}
body.se-site .ts-page .ts-check input[type="checkbox"]:checked{background:var(--ts-ink)}
body.se-site .ts-page .ts-check input[type="checkbox"]:checked::before{transform:translateX(20px)}
body.se-site .ts-page .ts-check input#auto-paused:checked{background:var(--ts-danger)}
body.se-site .ts-page .ts-check input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed}
body.se-site .ts-page .ts-check input[type="checkbox"]:focus-visible{outline:3px solid var(--ts-accent);outline-offset:3px}
@media(max-width:900px){
body.se-site .ts-compose-grid{grid-template-columns:minmax(0,1fr);gap:0}
body.se-site .ts-side,body.se-site .ts-publish{display:contents}
body.se-site .ts-preview{border-top:1px solid var(--ts-line);padding:24px 0 0;margin-top:26px}
body.se-site .ts-schedule{margin-top:22px;padding-top:22px;border-top:1px solid var(--ts-line)}
body.se-site .ts-compose-actions,body.se-site .ts-page.is-trial .ts-compose-actions{position:sticky;bottom:0;z-index:5;margin:20px -30px 0;padding:12px 30px;background:var(--ts-paper);border-top:1px solid var(--ts-line)}
body.se-site .ts-compose-actions .ts-button{flex:1}
body.se-site #scratch-note{margin:10px 0 0}
body.se-site .ts-message{bottom:84px}
body.se-site .ts-tabs button[data-view="settings"]{margin-left:0}
}
@media(max-width:600px){
body.se-site .ts-heading h1{font-size:1.45rem}
body.se-site .ts-heading p{font-size:.86rem}
body.se-site .ts-connection{padding:11px 14px;gap:10px}
body.se-site .ts-compose-actions,body.se-site .ts-page.is-trial .ts-compose-actions{margin:18px -18px 0;padding:10px 18px}
body.se-site .ts-page .ts-steps>li{padding-left:38px}
body.se-site .ts-step-body .ts-ai-methods>.ts-button{flex:1}
}
