.xtd-app .xt-task-presentation-editor .tp-editor{min-width:0}
.xtd-app .xt-task-presentation-editor>.xt-form-grid{min-width:0}
.xtd-app .xt-task-presentation-editor .xt-field input,.xtd-app .xt-task-presentation-editor input[type=file]{min-width:0;max-width:100%}
.xtd-app .xt-task-presentation-editor #xt-task-tags>.xt-field{margin:0 0 8px}
.xtd-app .xt-task-presentation-editor .tp-chip-list,.xtd-app .xt-task-presentation .tp-readonly-tags{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:8px 0 12px}
.xtd-app .xt-task-presentation-editor .tp-chip,.xtd-app .xt-task-presentation .tp-chip{display:inline-flex;align-items:center;gap:9px;border:1px solid #d9ded7;border-radius:999px;padding:6px 12px;background:#fff;color:#365746;font:inherit;font-size:12px;line-height:1.4;max-width:100%;overflow-wrap:anywhere}
.xtd-app .xt-task-presentation-editor .tp-chip{cursor:pointer}
.xtd-app .xt-task-presentation-editor .tp-chip[hidden]{display:none}
.xtd-app .xt-task-presentation-editor .tp-chip.selected,.xtd-app .xt-task-presentation .tp-chip.selected{background:#dcf8e7;border-color:#dcf8e7;color:#18724b}
.xtd-app .xt-task-presentation-editor .tp-chip:hover{border-color:#8fd2ad}
.xtd-app .xt-task-presentation-editor .tp-chip:focus-visible{outline:2px solid #178951;outline-offset:2px}
.xtd-app .xt-task-presentation-editor .tp-tag-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
#xtd-root .xt-task-presentation-editor .tp-tag-fields>.xt-field{margin:0;min-width:0}
.xtd-app .xt-task-presentation-editor .tp-flag-row{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;min-height:44px;margin:0}
.xtd-app .xt-task-presentation-editor .tp-flag{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;font:inherit;color:#303030}
#xtd-root .xt-task-presentation-editor .tp-flag input{appearance:none;-webkit-appearance:none;display:grid;place-content:center;flex:0 0 22px;width:22px;min-width:22px;height:22px;min-height:22px;padding:0;margin:0;border:2px solid #aeb7b0;border-radius:4px;background:#fff;cursor:pointer}
#xtd-root .xt-task-presentation-editor .tp-flag input:checked{border-color:#178951}
#xtd-root .xt-task-presentation-editor .tp-flag input:checked:after{content:'';width:6px;height:12px;border:solid #178951;border-width:0 3px 3px 0;transform:rotate(45deg);margin-top:-3px}
#xtd-root .xt-task-presentation-editor .tp-flag input:focus-visible{outline:2px solid #178951;outline-offset:3px}
.xtd-app .xt-task-presentation-editor :is(#xt-task-description,#xt-task-requirements){min-height:85px;height:85px}
.xtd-app .xt-task-presentation .tp-task-tracking{display:flex;align-items:baseline;gap:18px;padding:12px 14px;border:1px solid #e5e7eb;border-radius:10px;background:#f8faf8;margin:16px 0;overflow-wrap:anywhere;font-size:13px}
.xtd-app .xt-task-presentation .tp-task-tracking>span{flex-shrink:0;color:#65746c}
.xtd-app .xt-task-presentation .tp-task-tracking>strong{font-weight:500;min-width:0}
.xtd-app .xt-task-presentation .tp-chip>span[data-content]{white-space:pre-wrap}
@media(max-width:760px){.xtd-app .xt-task-presentation-editor .tp-tag-fields{grid-template-columns:1fr}.xtd-app .xt-task-presentation .tp-task-tracking{flex-wrap:wrap;gap:8px}}
@media(max-width:1000px){.xtd-app .xt-publish-layout.xt-task-presentation-editor{grid-template-columns:minmax(0,1fr)}}

/* 任務標籤：魚骨式步驟 */
.tp-tag-steps{list-style:none;margin:10px 0 18px;padding:0 0 0 34px;position:relative;counter-reset:tpstep}
.tp-tag-steps::before{content:"";position:absolute;left:12px;top:8px;bottom:8px;width:2px;border-radius:2px;background:linear-gradient(180deg,#13865a,#cfe8d8)}
.tp-tag-steps li{position:relative;margin:0 0 10px;padding:11px 14px;background:#fff;border:1px solid #e2ece4;border-radius:10px;box-shadow:0 2px 8px rgba(19,134,90,.05)}
.tp-tag-steps li:last-child{margin-bottom:0}
.tp-tag-steps li::before{counter-increment:tpstep;content:counter(tpstep);position:absolute;left:-34px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:#13865a;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 4px #f6fbf7}
.tp-tag-steps li::after{content:"";position:absolute;left:-10px;top:50%;width:10px;height:2px;background:#b9dcc9}
.tp-tag-step-body{display:flex;align-items:center;justify-content:space-between;gap:16px}
.tp-tag-step-label{font-weight:400;color:#5b6b61;white-space:nowrap}
.tp-tag-step-value{font-weight:700;color:#1c2b22;text-align:right;word-break:break-word}
.tp-tag-step-flag{color:#13865a;font-weight:700;font-size:13px;white-space:nowrap}
@media(max-width:640px){.tp-tag-step-body{align-items:flex-start;flex-direction:column;gap:4px}.tp-tag-step-value{text-align:left}}

/* 產品主圖放在「關鍵詞」步驟內 */
.tp-tag-step-media{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;max-width:100%}
.tp-tag-step-media a{display:block;flex:0 0 auto;width:clamp(72px,22vw,112px);height:auto;aspect-ratio:1/1;border-radius:8px;overflow:hidden;border:1px solid #dbe8df;background:#f6fbf7}
.tp-tag-step-media img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:640px){.tp-tag-step-media{gap:6px}}

/* 任務標籤複製 */
.tp-tag-step-valwrap{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.tp-copy-tag{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:1px solid #dbe8df;border-radius:8px;background:#f6fbf7;color:#13865a;cursor:pointer;flex:0 0 auto;padding:0}
.tp-copy-tag:hover{background:#e8f6ee}
.tp-copy-tag:active{transform:scale(.96)}
.tp-copy-icon{display:block}
@media(max-width:640px){.tp-tag-step-valwrap{justify-content:flex-start;width:100%}}
