/* One · 持续任务与广告托管（见画板「持续任务与广告托管：任务也是一个会话」）。卡片沿用连接卡（cn-*）的形状。 */
.tk-page { display: flex; flex-direction: column; gap: 22px; }
.tk-page > .cn-card { margin: 0; }
.tk-card { scroll-margin: 80px 0 calc(var(--dock-h) + 24px); }
.tk-card.is-enter, .tk-round.is-enter, .tk-supp.is-enter, .tk-reply.is-enter { animation: one-rise var(--t-slow, .36s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
.tk-muted { color: var(--muted); font-size: 13px; }
.tk-wrap { white-space: normal !important; }
.tk-banner { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FDF6EE; color: var(--body); font-size: 13px; }

/* 状态胶囊：形状 + 颜色 + 文字 */
.tk-pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 220px; }
.tk-pill > span { overflow: hidden; text-overflow: ellipsis; }
.tk-pill svg { flex: none; }
.tk-pill.is-run { background: #E9F6F9; color: #0F5E73; }
.tk-pill.is-you { background: #FDF1E4; color: var(--amber-ink); }
.tk-pill.is-pause, .tk-pill.is-done { background: #EEF3F5; color: var(--sec); }
.tk-pill.is-warn { background: #F3F0FA; color: #4B3F7A; }
.tk-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #2A9BB8; }
.tk-dot.is-live { animation: tk-pulse 1.8s var(--ease-out, cubic-bezier(.2,.8,.2,1)) infinite; }
@keyframes tk-pulse { 0% { box-shadow: 0 0 0 0 rgba(42,155,184,.45); } 70% { box-shadow: 0 0 0 6px rgba(42,155,184,0); } 100% { box-shadow: 0 0 0 0 rgba(42,155,184,0); } }

/* 标题栏 */
.tk-title { flex: 0 1 auto; display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--ink); }
.tk-title .tk-pill { flex: none; }
.tk-title > svg { flex: none; color: var(--muted); }
.tk-title b { flex: 0 1 auto; min-width: 2em; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.tk-ctl[disabled] { opacity: .55; cursor: default; }
.tk-more-btn { padding: 0 7px; }
.tk-menu button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.tk-menu button small { font-size: 11.5px; color: var(--muted); }
/* PD 11-17 统一「再点一次」：删除、结束、放弃这类用红色，其余深色描边（不再用橙色）。 */
.tk-menu button.is-armed { color: var(--red); font-weight: 600; }

/* 交付卡 */
.tk-drow { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 14px; border-top: 1px solid var(--line-3); font-size: 14px; }
.cn-head + .tk-drow { border-top: 0; }
.tk-dsub { display: block; margin-top: 4px; }
.tk-platform { margin: 0 14px 10px; }
.tk-opmore { margin-top: 4px; font-size: 13px; }
.tk-opmore > summary { cursor: pointer; color: var(--sec); }
.tk-dlabel { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--sec); padding-top: 2px; }
.tk-d { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.tk-d.is-done { background: #2A9BB8; } .tk-d.is-run { background: var(--cyan); animation: tk-pulse 1.8s var(--ease-out, cubic-bezier(.2,.8,.2,1)) infinite; }
.tk-d.is-next { box-sizing: border-box; border: 1.6px solid #8A9AA6; } .tk-d.is-you { background: #E08A2E; }
.tk-dlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tk-dlist li { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.tk-dlist li > span:first-child { flex: 1 1 auto; min-width: 0; }
/* UI 1029：状态（「前置已就绪」「等前置成果」）不跟长标题抢宽度，不再被挤成一个字一行。 */
.tk-dlist li small { flex: none; margin-left: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* 经营总览 */
.tk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.tk-kpi { display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.tk-kpi span { font-size: 12px; color: var(--sec); }
.tk-kpi b { font-size: 20px; font-weight: 600; color: var(--ink); }
.tk-kpi small { font-size: 12px; color: var(--muted); }
.tk-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding: 0 14px 10px; }
.tk-chart { margin: 0; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-chart figcaption { font-size: 12.5px; font-weight: 500; color: var(--body); }
.tk-chart svg { display: block; width: 100%; height: auto; }
.tk-axis { stroke: var(--ch-line); stroke-width: 1; }
.tk-tick { font-size: 10px; fill: var(--ch-sec); font-family: var(--mono); }
.tk-bar { fill: var(--ch-s1); } .tk-bar.is-partial { fill: var(--ch-s2); }
.tk-bar:hover, .tk-pt:hover { opacity: .8; }
.tk-line { fill: none; stroke: var(--ch-s1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tk-pt { fill: var(--ch-s1); stroke: var(--ch-card); stroke-width: 2; } .tk-pt.is-partial { fill: var(--ch-card); stroke: var(--ch-s1); }
.tk-ref { stroke: var(--ch-neutral); stroke-width: 1.2; stroke-dasharray: 4 3; } .tk-ref.is-floor { stroke: var(--ch-warn); stroke-dasharray: 1.5 3; }
.tk-ref-t { font-size: 10px; fill: var(--ch-body); } .tk-ref-t.is-floor { fill: var(--ch-warn); }
/* 平衡点：ROI × 日消耗一张图，图旁（窄屏在图下）一句人话。 */
.tk-balance { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px 18px; align-items: center; padding: 12px 14px 6px; }
.tk-balance .tk-chart { max-width: 420px; }
.tk-balance figcaption small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tk-bp-target { fill: none; stroke: var(--ch-neutral); stroke-width: 1.6; stroke-dasharray: 3 2; }
.tk-bp-day { fill: var(--ch-s2); }
.tk-bp-move { stroke: var(--ch-s1); stroke-width: 1.4; stroke-dasharray: 2 3; }
.tk-ref-t.is-now { font-weight: 600; fill: var(--ch-ink); }
.tk-bp-say { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tk-bp-say p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--body); }
.tk-bp-say b { font-weight: 600; color: var(--ink); }
.tk-bp-warn { font-style: normal; color: var(--amber-ink); }
.tk-verdict b { font-size: 22px; font-weight: 600; }
.tk-chart-note { margin: 0; padding: 0 14px 12px; font-size: 12px; color: var(--muted); }
.tk-chart-empty { margin: 0; padding: 24px 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* 时间线 */
.tk-older { align-self: center; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: #FFFFFF; color: var(--sec); font-size: 12.5px; cursor: pointer; }
.tk-older:hover { background: var(--soft); }
.tk-older .one-chev { transform: rotate(-90deg); }
.tk-round, .tk-reply { display: flex; flex-direction: column; gap: 10px; }
.tk-round .one-fold { --fold-gap: 10px; }
.tk-round.is-live .ar-run, .tk-reply .ar-run { margin: 0; }
.tk-rstate { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); }
.tk-rstate.is-run { color: var(--ink); font-weight: 500; }
.tk-rbody { display: flex; flex-direction: column; gap: 10px; }
.tk-steps li.is-live { color: var(--ink); }
.tk-facts { display: flex; gap: 6px; flex-wrap: wrap; }
.tk-fact { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--soft); font-size: 12px; color: var(--sec); }
.tk-fact.is-ok { color: #0F5E73; }
.tk-ops { margin: 0; padding-left: 18px; font-size: 13px; color: var(--body); }
.tk-ops small { margin-left: 8px; color: var(--muted); } .tk-ops small.is-ok { color: #0F5E73; }
.tk-supp { align-self: flex-end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 560px; }
.tk-origin { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.tk-origin svg { width: 12px; height: 12px; }
.tk-receipt { font-size: 12px; color: var(--muted); }
.tk-receipt.is-ok { color: #0F5E73; } .tk-receipt.is-you { color: var(--amber-ink); } .tk-receipt.is-warn { color: var(--amber-ink); }
.tk-handoff { border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; font-size: 13px; color: var(--sec); }
.tk-handoff summary { display: flex; align-items: center; gap: 6px; height: 36px; cursor: pointer; list-style: none; }
.tk-handoff summary::-webkit-details-marker { display: none; }
.tk-handoff summary span { margin-left: auto; color: var(--teal); }
.tk-handoff[open] summary span { display: none; }
.tk-handoff .one-md { padding-bottom: 10px; }
.tk-stateline { margin: 0; align-self: center; font-size: 12.5px; color: var(--muted); }

/* 需要你处理 */
.tk-needs { display: flex; flex-direction: column; gap: 14px; }
.tk-need.is-flash, .tk-need:target { animation: tk-flash 1.6s var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
@keyframes tk-flash { 0% { box-shadow: 0 0 0 0 rgba(83,191,213,0); } 20% { box-shadow: 0 0 0 4px rgba(83,191,213,.35); } 100% { box-shadow: 0 0 0 0 rgba(83,191,213,0); } }
.tk-num { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #FDF1E4; color: var(--amber-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.tk-qbody { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 12px 14px 14px; font-size: 14px; }
.tk-options, .tk-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-options .cn-btn { height: 34px; padding: 0 14px; font-size: 13.5px; }
.tk-rec { font-style: normal; font-size: 11.5px; color: var(--teal); background: #E9F6F9; border-radius: 999px; padding: 0 6px; }
.cn-btn.is-primary .tk-rec { background: rgba(255,255,255,.18); color: #FFFFFF; }
.tk-checks { display: flex; flex-direction: column; gap: 6px; }
.tk-checks label { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.tk-checks small { color: var(--muted); font-size: 12.5px; }
.tk-plan { margin: 0; padding: 10px 14px 10px 32px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tk-plan details { font-size: 12.5px; color: var(--sec); }
.tk-plan details > summary { cursor: pointer; color: var(--teal); }
/* 结构化内容的可读显示（readable-value.js）：名称：值 / 小表，不显示 JSON */
.rv { margin-top: 6px; font-size: 13px; color: var(--ink); }
.tk-plan .rv { max-height: 240px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--soft-2); }
.rv-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.rv-kv dt { color: var(--muted); }
.rv-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rv-kv .rv-kv { padding-left: 0; }
.rv-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-more { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.tk-optable { min-width: 0 !important; }
.tk-opcheck { display: inline-flex; align-items: center; gap: 8px; }
.tk-opcheck input, .tk-checks input { width: 16px; height: 16px; accent-color: var(--navy); }
.cn-btn.is-armed { border-color: var(--ink); background: #FFFFFF; color: var(--ink); font-weight: 600; }
.cn-btn.is-armed.is-danger { border-color: var(--red); background: #FBF1F0; color: var(--red); }

/* 旁白里的任务块 */
.one-rail-tag.is-you { color: var(--amber-ink); }
.tk-kv { grid-template-columns: 64px minmax(0, 1fr) !important; }
.tk-goal { color: var(--body) !important; }
.tk-idx { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); background: #FFFFFF; text-align: left; cursor: pointer; font-size: 13px; line-height: 1.5; color: var(--body); transition: background var(--t-fast, .15s), box-shadow var(--t-fast, .15s); }
.tk-idx:hover { background: #F7FAFB; }
.tk-idx.is-on { box-shadow: inset 0 0 0 1.5px var(--cyan); background: #F2FAFC; }
.tk-idx b { display: block; font-weight: 500; }
.tk-idx small { display: block; font-size: 11.5px; color: var(--muted); }
.tk-operation-switch { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 8px; border-top: 1px solid var(--line-3); }
.tk-operation-switch:first-of-type { border-top: 0; padding-top: 0; }
.tk-operation-heading { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.tk-operation-heading b { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 500; }
.tk-operation-heading small { flex: none; white-space: nowrap; font-size: 11.5px; color: var(--muted); }
.tk-op-seg { align-self: flex-start; }
.tk-op-seg button { height: 26px; }
.tk-op-seg button.is-armed { color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--ink); }
.tk-op-warn { font-size: 12px; color: var(--amber-ink); }
.tk-more summary { font-size: 12.5px; color: var(--teal); cursor: pointer; }

/* 窄屏：旁白放不下时，收在交付卡上面 */
.tk-inline { display: none; border: 1px solid var(--line-2); border-radius: 12px; padding: 0 12px; }
body.is-narrow .tk-inline { display: block; }
.tk-inline > summary { height: 40px; display: flex; align-items: center; font-size: 13px; color: var(--sec); cursor: pointer; }
.tk-inline .one-note { border: 0; box-shadow: none; padding: 6px 0 12px; animation: none; }

/* 成果浮窗 */
.tk-product-meta { margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.tk-product-table { overflow: auto; }
.tk-product-table table { border-collapse: collapse; font-size: 12.5px; }
.tk-product-table th, .tk-product-table td { padding: 5px 8px; border-bottom: 1px solid var(--line-3); text-align: left; white-space: nowrap; }
.tk-product-table th { background: var(--soft-2); color: var(--sec); font-weight: 600; }

/* 全部任务（整页） */
.tk-list-head h1 { margin: 0; font-size: 22px; font-weight: 600; }
.tk-list-head p { margin: 4px 0 0; font-size: 14px; color: var(--sec); }
.tk-ltable { min-width: 680px; }
.tk-lgroup td { padding: 9px 12px 6px !important; background: var(--soft-2); font-size: 12px; font-weight: 600; color: var(--sec); }
.tk-lgroup .cn-link { margin-left: 8px; font-size: 12px; font-weight: 400; }
.tk-lrow { cursor: pointer; }
.tk-lrow.is-you { background: #FFFBF6; }
.tk-lname { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; color: var(--ink); font-size: 14px; }
.tk-lname b { font-weight: 500; }
.tk-lname small { font-size: 12px; color: var(--muted); }

@media (max-width: 720px) {
  .tk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tk-charts { grid-template-columns: minmax(0, 1fr); }
  /* 窄屏顶栏：任务名留着（截短），状态只留圆点或图标（文字在「任务状态」里）；按钮只留图标。
     UI 1029：原来连任务名一起藏、`.tk-pill > span` 又把状态圆点（也是 span）藏了，顶栏只剩一个空胶囊。 */
  .tk-title b { max-width: none; }
  .tk-pill > span:not(.tk-dot), .tk-ctl span { display: none; }
  .tk-pill { padding: 0 6px; }
  .tk-ctl { padding: 0 8px; }
  .tk-drow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .tk-dot.is-live, .tk-d.is-run, .tk-need.is-flash, .tk-card.is-enter, .tk-round.is-enter, .tk-supp.is-enter, .tk-reply.is-enter { animation: none; }
}

/* 在对话里发起托管：目标卡（见画板「任务 ⑥」） */
.dg-card .cn-input { min-width: 0; width: 100%; font-family: var(--font); font-size: 14px; }
.dg-card .one-mono.cn-input { font-family: var(--mono); }
.dg-card .cn-head + p, .dg-card .cn-step-done + p { margin: 0; padding: 4px 16px 12px; font-size: 13px; color: var(--sec); }
.dg-search { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line-3); }
.dg-search .cn-input { flex: 1; }
.dg-plans td b { display: block; font-weight: 500; }
.dg-id { display: block; font-size: 11.5px; color: var(--muted); }
.dg-body { display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.dg-group { display: flex; flex-direction: column; gap: 8px; }
.dg-label { display: flex; align-items: baseline; gap: 8px; font-size: 13px; font-weight: 500; color: var(--body); }
.dg-label small { font-weight: 400; font-size: 12px; color: var(--muted); }
.dg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dg-chip { height: 32px; padding: 0 12px; border: 1px solid #C3CDD2; border-radius: 999px; background: #FFFFFF; color: var(--body); font-size: 13px; cursor: pointer; transition: background var(--t-fast, .15s), color var(--t-fast, .15s), border-color var(--t-fast, .15s); }
.dg-chip:hover { background: var(--soft); }
.dg-chip.is-on { border-color: var(--navy); background: var(--navy); color: #FFFFFF; font-weight: 500; }
.dg-explain { margin: 0; font-size: 13px; line-height: 1.6; color: var(--sec); }
.dg-text { height: auto; min-height: 56px; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.dg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dg-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.dg-field > span:first-child { font-size: 13px; font-weight: 500; color: var(--body); }
.dg-field small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.dg-field.is-bad .cn-input { border-color: var(--amber); }
.dg-field.is-bad small, .dg-bad { color: var(--amber-ink); font-size: 12px; }
.dg-wide { grid-column: 1 / -1; }
.dg-input { position: relative; display: block; }
.dg-input i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--muted); }
.dg-auto { height: 36px; display: flex; align-items: center; padding: 0 10px; border-radius: 8px; background: var(--soft-2); font-size: 14px; }
.dg-products { min-width: 0 !important; }
.dg-products select.cn-input { width: 110px; height: 32px; }
.dg-pct { position: relative; display: inline-block; width: 96px; }
.dg-pct .cn-input { height: 32px; padding-right: 24px; }
.dg-pct i { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; color: var(--muted); }
.dg-bulk td { background: var(--soft-2); color: var(--sec); font-size: 12.5px; }
.dg-boost { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; padding: 10px 12px; border-radius: 10px; background: var(--soft-2); font-size: 13px; color: var(--sec); }
.dg-boost > span:first-child { color: var(--body); }
.dg-boost.is-suggest > .dg-field { flex: 1; }
.dg-boost.is-suggest .dg-input { max-width: 240px; }
.dg-check { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--body); }
.dg-check input { width: 16px; height: 16px; accent-color: var(--navy); }
.dg-check small { flex-basis: 100%; padding-left: 24px; font-size: 12px; color: var(--muted); }
.dg-card .cn-btn[disabled] { opacity: .5; cursor: default; }

/* 托管 / 交办确认卡：要点在上，完整原文收起，按钮在卡片底部 */
.lt-confirm { margin: 6px 0 4px; }
.lt-confirm .one-md, .one-answer .lt-confirm > .bubble.one-md { padding: 4px 16px 0; }
.lt-confirm details { margin: 0 16px 12px; border-top: 1px solid var(--line-3); }
.lt-views { margin: 4px 16px 12px; padding: 8px 10px; border-radius: 8px; background: #F2FAFC; color: var(--body); font-size: 13px; line-height: 1.6; }
.lt-confirm details summary { padding: 10px 0 4px; font-size: 13px; color: var(--teal); cursor: pointer; }
.lt-confirm details .one-md { padding: 0; }
.lt-confirm .cn-foot button { height: 34px; padding: 0 14px; }
.tk-conv-btn { gap: 6px; }
@media (max-width: 720px) { .dg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dg-card .cn-btn[aria-disabled="true"] { opacity: .55; }

/* 改设置：设置卡（见画板「任务 ⑤」） */
.tk-set-group { padding: 8px 14px 4px; background: #F7FAFB; border-top: 1px solid var(--line-3); font-size: 12px; font-weight: 600; color: var(--muted); }
.cn-head + .tk-set-group { border-top: 0; }
.tk-set-row { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 42px; padding: 4px 14px; border-top: 1px solid var(--line-3); font-size: 14px; }
.tk-set-group + .tk-set-row { border-top: 0; }
.tk-set-k { font-size: 13px; color: var(--sec); }
.tk-set-v { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.tk-set-old { color: var(--faint); text-decoration: line-through; }
.tk-set-arrow { color: #9AAAB6; }
.tk-set-row .cn-input { width: 120px; min-width: 0; height: 32px; flex: none; font-family: var(--mono); font-size: 14px; }
.tk-set-row.is-edit { background: #F2FAFC; }
.tk-set-note { display: flex; flex-direction: column; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--line-3); font-size: 13px; color: var(--sec); }
.tk-set-note .cn-input { width: 100%; min-width: 0; height: auto; min-height: 52px; padding: 8px 10px; font-family: var(--font); font-size: 14px; resize: vertical; }
.tk-settings .cn-btn[aria-disabled="true"] { opacity: .55; }

/* 正在跑的一轮：和对话里进行中的回答同一个样子 */
.tk-saved { display: flex; align-items: flex-start; gap: 6px; margin: 4px 0 6px 26px; font-size: 13px; color: var(--sec); }
.tk-saved svg { flex: none; margin-top: 3px; color: var(--teal); }

/* ---------------------------------------------------------------- 广告托管：经营看板（结果 / 判断 / 素材全表） */
.tk-board .cn-head { row-gap: 8px; }
.tk-tabs button small { margin-left: 2px; font-size: 11px; font-weight: 400; color: var(--muted); }
.tk-board-b.is-enter { animation: one-rise var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)) both; }
.tk-asof { margin: 10px 14px 0; font-size: 12px; color: var(--muted); }
.tk-mat-dock { display: inline-flex; align-items: center; gap: 5px; }
/* 结果：托管刚开始 */
.tk-early { padding: 12px 14px 4px; }
.tk-early-h { margin: 0 0 10px; font-size: 13.5px; color: var(--body); }
.tk-early-h b { font-weight: 600; color: var(--ink); }
.tk-early-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tk-early-c { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #FFFFFF; }
.tk-early-c > span { font-size: 12px; color: var(--muted); }
.tk-early-c > b { font-size: 20px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.tk-early-c > b.tk-muted { font-size: 14px; font-weight: 400; }
.tk-early-c > small { font-size: 12.5px; color: var(--sec); }
.tk-early-c > em { margin-top: 2px; font-style: normal; font-size: 12px; color: var(--muted); }
.tk-charts-base { padding-top: 6px; }
/* 判断 */
.tk-decision { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-bottom: 1px solid var(--line-3); }
.tk-decision-k { font-size: 12px; color: var(--muted); }
.tk-decision-h { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.tk-reasons { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-reasons span { padding: 2px 9px; border-radius: 999px; background: var(--soft); font-size: 12.5px; color: var(--body); }
.tk-decision-next { display: flex; align-items: flex-start; gap: 6px; margin: 2px 0 0; font-size: 13px; color: var(--sec); }
.tk-decision-next svg { flex: none; margin-top: 4px; color: var(--teal); }
.tk-decision-next b { font-weight: 600; color: var(--ink); }
.tk-fold-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 3px; padding: 2px 0; border: 0; background: transparent; color: var(--teal); font-size: 13px; cursor: pointer; }
.tk-fold-btn .one-chev, .tk-watch-row .one-chev { transition: transform var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.tk-fold-btn[aria-expanded="true"] .one-chev, .tk-watch-row[aria-expanded="true"] .one-chev { transform: rotate(90deg); }
.tk-decision .one-fold { --fold-gap: 6px; }
.tk-decision-detail { margin: 0; font-size: 13.5px; line-height: 1.75; color: var(--body); }
.tk-sub { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px 6px; }
.tk-sub b { font-size: 13px; font-weight: 600; color: var(--ink); } .tk-sub small { font-size: 12px; color: var(--muted); }
.tk-watch { margin: 0; padding: 0 8px 6px; list-style: none; }
.tk-watch-i { border-radius: 8px; }
.tk-watch-i.is-open { background: var(--soft-2); }
.tk-watch-row { width: 100%; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.tk-watch-row:hover { background: var(--soft); }
.tk-watch-row b { font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tk-watch-f { font-size: 13px; color: var(--sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-watch-row .one-chev { color: var(--muted); }
.tk-wst { padding: 1px 8px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.tk-wst.is-run { background: #E9F6F9; color: #0F5E73; } .tk-wst.is-wait { background: #EEF3F5; color: var(--sec); } .tk-wst.is-ok { background: #EAF5EF; color: #1F6B45; }
.tk-watch-i.is-you .tk-wst { background: #FDF1E4; color: var(--amber-ink); }
.tk-watch-d { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 4px 10px; margin: 0 6px 6px 6px; font-size: 13px; line-height: 1.6; }
.tk-watch-d dt { color: var(--muted); } .tk-watch-d dd { margin: 0; color: var(--body); }
.tk-watch-i .one-fold > div > .cn-link { display: inline-flex; align-items: center; gap: 4px; margin: 0 6px 8px; }
.tk-low { margin: 0; padding: 0 14px 4px; list-style: none; }
.tk-low-i { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: start; gap: 10px; padding: 6px 0; }
.tk-low-i .tk-wst { justify-self: start; margin-top: 1px; } .tk-wst.is-warn { background: #FDF1E4; color: var(--amber-ink); }
.tk-low-i b { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.tk-low-i p { margin: 2px 0 0; font-size: 13px; line-height: 1.6; color: var(--body); } .tk-low-i .tk-low-check { color: var(--sec); }
.tk-low-fold { margin: 0 14px 4px; } .tk-low-note { margin: 2px 14px 8px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.tk-strategy { margin: 0 14px 8px; }
.tk-evidence { display: flex; align-items: flex-start; gap: 6px; margin: 4px 14px 12px; font-size: 12px; color: var(--muted); }
.tk-evidence svg { flex: none; margin-top: 3px; }

/* ---------------------------------------------------------------- 右侧素材框 */
.tk-mat { gap: 9px; }
/* 素材框装进浮窗外壳：默认停在右侧栏，可拖出来浮着、收到上沿 */
.tk-mat-float { display: flex; flex-direction: column; padding: 10px 12px 12px; }
.tk-mat-top { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.tk-mat-top .cn-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; }
.tk-mat-n { font-weight: 400; color: var(--muted); }
.tk-mat .one-note-h .cn-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 400; }
.tk-mat-sum { margin: 0; font-size: 13px; color: var(--sec); } .tk-mat-sum b { color: var(--ink); } .tk-mat-sum small { color: var(--muted); }
.tk-budget { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 8px; font-size: 12px; color: var(--sec); }
.tk-budget small { grid-column: 1 / -1; color: var(--muted); }
.tk-budget-bar { height: 6px; border-radius: 3px; background: #EEF3F5; overflow: hidden; }
.tk-budget-bar i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--teal); transition: width var(--t-slow, .36s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.tk-mat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-chip { height: 26px; padding: 0 9px; border: 0; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); background: #FFFFFF; color: var(--sec); font: inherit; font-size: 12.5px; cursor: pointer; transition: background var(--t-fast, .15s), color var(--t-fast, .15s), box-shadow var(--t-fast, .15s); }
.tk-chip small { font-size: 11.5px; color: var(--muted); }
.tk-chip:hover { background: var(--soft); }
.tk-chip.is-on { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--ink); font-weight: 600; }
.tk-mat-list { margin: 0 -6px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tk-mat-i { border-radius: 8px; transition: background var(--t-fast, .15s); }
.tk-mat-i.is-open { background: var(--soft-2); }
/* 一行：缩略图（悬停看素材卡）在按钮外面，标题和评价在按钮里（点开就地展开）。 */
.tk-mat-line { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; padding-left: 6px; border-radius: 8px; }
.tk-mat-line:hover { background: var(--soft); }
.tk-mat-line > .tk-mat-row { grid-template-columns: minmax(0, 1fr) auto; }
.tk-mat-line > .tk-mat-row:hover { background: transparent; }
.tk-ref { display: inline-flex; flex: none; min-width: 0; }
.tk-ref > .entity-reference { gap: 0; padding: 0; border: 0; border-radius: 6px; color: inherit; text-decoration: none; cursor: zoom-in; min-width: 0; }
.tk-ref > .entity-reference > i { display: none; }
.tk-ref > .entity-reference:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.tk-mcell b .tk-ref > .entity-reference { display: inline; }
.tk-mat-row { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.tk-mat-row:hover { background: var(--soft); }
.tk-thumb { width: 30px; height: 40px; flex: none; border-radius: 6px; object-fit: cover; background: #EEF3F5; }
.tk-thumb.is-empty { display: inline-flex; align-items: center; justify-content: center; color: #9AAAB6; }
.tk-mat-t { min-width: 0; display: flex; flex-direction: column; }
.tk-mat-t b { font-size: 13px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-mat-t small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-mat em, .tk-mtable em { font-style: normal; }
em.is-good { color: #1F6B45; font-weight: 600; } em.is-warn { color: var(--amber); font-weight: 600; }
.tk-cat { flex: none; padding: 1px 7px; border-radius: 6px; font-size: 12px; white-space: nowrap; background: #EEF3F5; color: var(--sec); }
.tk-cat.is-quality { background: #EAF5EF; color: #1F6B45; } .tk-cat.is-potential { background: #E9F6F9; color: #0F5E73; }
.tk-cat.is-optimize { background: #FDF1E4; color: var(--amber-ink); } .tk-cat.is-ordinary { background: #F1F1F6; color: #4B3F7A; }
.tk-mat-d { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 8px; margin: 2px 8px 6px; font-size: 12.5px; line-height: 1.6; }
.tk-mat-d dt { color: var(--muted); } .tk-mat-d dd { margin: 0; color: var(--body); overflow-wrap: anywhere; }
.tk-mat-d dd small { display: block; color: var(--muted); font-size: 12px; }
.tk-shopfacts { display: flex; flex-wrap: wrap; gap: 2px 10px; } .tk-shopfacts b { font-weight: 600; color: var(--ink); }
.tk-mat-acts { display: flex; gap: 14px; margin: 0 8px 8px; }
.tk-mat-acts .cn-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; text-decoration: none; }
.tk-mat-more { align-self: flex-start; font-size: 12.5px; }
.tk-mat-shop { display: flex; align-items: flex-start; gap: 7px; margin: 0; padding-top: 8px; border-top: 1px solid var(--line-3); font-size: 12px; color: var(--sec); }
.tk-mat-shop i { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: #B7C3CA; }
.tk-mat-shop.is-ok i { background: #2E9C66; } .tk-mat-shop.is-run i { background: var(--cyan); animation: ar-breath 2.4s var(--ease-move, cubic-bezier(.4,0,.2,1)) infinite; }
.tk-mat-shop b { font-weight: 600; color: var(--ink); } .tk-mat-shop small { display: block; color: var(--muted); }
.tk-mat.is-docked-away { gap: 6px; }
/* 放大到中间：完整表格 */
.tk-wide-top { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 10px; }
.tk-wide-top .tk-mat-shop { border-top: 0; padding-top: 0; }
.tk-mtable { min-width: 680px; }
.tk-mrow { cursor: pointer; transition: background var(--t-fast, .15s); }
.tk-mrow:hover, .tk-mrow.is-open { background: var(--soft-2); }
.tk-mrow td small { display: block; font-size: 11.5px; color: var(--muted); }
.tk-mcell { display: flex; align-items: center; gap: 9px; }
.tk-mcell > span { min-width: 0; display: flex; flex-direction: column; }
.tk-mcell b { max-width: 190px; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.tk-mreason { max-width: 220px; white-space: normal !important; font-size: 12.5px; color: var(--sec); line-height: 1.5; }
.tk-mdetail td { padding: 0 6px !important; border-bottom: 1px solid var(--line-3); white-space: normal !important; background: var(--soft-2); }
.tk-mdetail .one-fold { --fold-gap: 0px; }
.tk-mdetail .tk-mat-d { grid-template-columns: 96px minmax(0, 1fr); margin: 8px 8px 6px; font-size: 13px; }
.tk-pager .cn-btn { height: 28px; }
/* 右侧素材框的翻页 */
.tk-mat-pager { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.tk-mat-pager .cn-btn { height: 26px; padding: 0 9px; font-size: 12px; }
/* 放大后的素材表：表头点一下按这一列排序（全目录排好再分页） */
.tk-mtable th[aria-sort] { padding: 0; }
.tk-sort { display: inline-flex; align-items: center; gap: 4px; width: 100%; height: 100%; padding: 8px 10px; border: 0; background: transparent; font: inherit; font-weight: inherit; color: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.tk-sort i { font-style: normal; font-size: 11px; color: #9AAAB6; }
.tk-sort:hover { background: var(--soft); } .tk-sort:hover i { color: var(--sec); }
.tk-sort.is-on { color: var(--ink); } .tk-sort.is-on i { color: var(--teal); }

/* 广告操作记录：时间线（新的在上）。圆点：已核验实心、平台处理中细圈在转、没生效灰红、待核对琥珀。 */
.tk-ops { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; }
.tk-ops-list { position: relative; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tk-op { position: relative; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 10px; padding-bottom: 12px; }
.tk-op::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -2px; width: 1px; background: var(--line); }
.tk-op:last-child::before { display: none; }
.tk-op-dot { position: relative; z-index: 1; width: 9px; height: 9px; margin: 5px 0 0 2px; box-sizing: border-box; border-radius: 50%; background: #2A9BB8; }
.tk-op.is-live .tk-op-dot { background: #fff; border: 2px solid #BDE7F0; border-top-color: #2A9BB8; animation: one-spin var(--spin, .8s) linear infinite; }
.tk-op.is-fail .tk-op-dot { background: #fff; border: 2px solid #C9A49D; }
.tk-op.is-warn .tk-op-dot { background: var(--amber); }
.tk-op-b { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-op-h { display: flex; align-items: baseline; gap: 8px; }
.tk-op-h b { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.tk-op-h time { flex: none; font-size: 11.5px; color: var(--muted); }
.tk-op-change { margin: 0; font-size: 12.5px; color: var(--body); font-variant-numeric: tabular-nums; }
.tk-op-change b { font-weight: 600; color: var(--ink); }
.tk-op-m { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.tk-op.is-fail .tk-op-st { color: var(--red); } .tk-op.is-warn .tk-op-st { color: var(--amber-ink); }
.tk-op-review.is-improved { color: #1F7A57; } .tk-op-review.is-worsened { color: var(--red); } .tk-op-review.is-mixed { color: var(--amber-ink); }
.tk-op-why { margin: 0; font-size: 12px; line-height: 1.5; color: var(--sec); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tk-op-why.is-issue { color: var(--amber-ink); }
.tk-ops-foot { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tk-op.is-live .tk-op-dot { animation: none; } }
@media (max-width: 720px) { .tk-early-grid { grid-template-columns: 1fr; } .tk-watch-row { grid-template-columns: auto minmax(0, 1fr) auto; } .tk-watch-f { display: none; } }
@media (prefers-reduced-motion: reduce) { .tk-board-b.is-enter, .tk-mat-shop.is-run i { animation: none; } }

/* 任务看板：创造模式里设计的视图，宿主每轮写入；每块可拿出来浮在旁边 */
.tk-views .tk-view { padding: 12px 16px 14px; border-top: 1px solid var(--line-3); }
.tk-views .tk-view:first-of-type { border-top: 0; }
.tk-view-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 6px; }
.tk-view-h b { font-size: 14px; font-weight: 600; }
.tk-view-h small { color: var(--muted); font-size: 12.5px; }
.tk-view .one-float-meta { padding: 0 0 8px; border: 0; }
.tk-view .one-float-note { padding: 4px 0 8px; }
.tk-view-b { padding-top: 2px; }

/* 看板的条件提醒 */
.tk-view-alert { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.tk-view-alert i { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: #9AAAB6; }
.tk-view-alert.is-on { color: var(--amber-ink); animation: one-bar-in var(--t-mid, .24s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.tk-view-alert.is-on i { background: #B4570A; }

/* ---- U4 素材表放大到中间后，右侧素材框只剩一条（2026-10-23，UI） ---- */
.tk-mat-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--muted); font-size: 12.5px; }
.tk-mat-bar .cn-link { flex: none; font-size: 12.5px; }
.tk-mat-float.is-docked-away:has(> .tk-mat-bar) { padding: 0; }

/* 040 · 10-26《极光提示统一》：任务页的提示不上彩色底、不用彩色字。 */
.tk-banner { padding: 9px 12px; border-radius: 8px; background: #FDF1E3; color: #8A4B00; font-weight: 500; box-shadow: inset 3px 0 0 #E0904A; }
.tk-op-warn, .tk-view-alert.is-on { color: var(--body); }

/* UI 1029：素材框里的缩略图、标题、操作记录里的「素材 …」是悬停卡的入口；ID 已在卡上（可复制），这里不再跟一串「ID：…」挤掉标题。 */
.tk-ref .entity-reference-id { display: none; }
/* 素材展开后的「视频拆解」：和「问极光」「在 TikTok 打开」排在一起，图标跟字一样大。 */
.tk-mat-acts .tk-study svg { width: 13px; height: 13px; }
/* 照这条再拍（方案 3-7）：只在卖得好的素材展开后出现，排在「视频拆解」那一行上面。 */
.tk-reshoot { display: grid; gap: 6px; justify-items: start; margin: 2px 8px 10px; padding: 8px 10px; border: 1px solid #CFE6D9; border-radius: 8px; background: #F4FAF6; }
.tk-reshoot p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--body); overflow-wrap: anywhere; }
.tk-reshoot p b { margin-right: 6px; color: #1F6B45; font-weight: 600; }
.tk-reshoot small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.tk-reshoot .cn-btn svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- 071（UI · 接 T 067）广告任务页 */
/* 结果第一屏：价值账。一句结论 + 服务端写好的 summary；动作账「帮了忙 / 拖了后腿」；贡献塌了一半的日子标红、能点。 */
.tk-value { display: flex; flex-direction: column; gap: 10px; margin: 14px 14px 4px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; }
.tk-value-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tk-value-h small { font-size: 12px; color: var(--muted); }
.tk-verdict { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; color: var(--ink); }
.tk-verdict::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.tk-verdict.is-good::before { background: #2F9E6B; } .tk-verdict.is-bad::before { background: #D5604F; }
.tk-verdict.is-even::before { background: #3BA9C1; } .tk-verdict.is-wait::before { background: #E0904A; }
.tk-value-sum { margin: 0; font-size: 14px; line-height: 1.7; color: var(--body); }
.tk-value-wait { display: flex; gap: 7px; align-items: flex-start; margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--soft-2); font-size: 13px; line-height: 1.65; color: var(--sec); }
.tk-value-wait svg { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--muted); }
.tk-value-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--sec); }
.tk-value-k { font-size: 12px; color: var(--muted); }
.tk-out { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; color: var(--body); }
.tk-out > i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.tk-out b { font-weight: 600; color: var(--ink); }
.tk-out.is-good > i { background: #2F9E6B; } .tk-out.is-bad > i { background: #D5604F; } .tk-out.is-mixed > i { background: #E0904A; } .tk-out.is-wait > i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--faint); }
.tk-out.is-good { color: #1F6B45; } .tk-out.is-bad { color: var(--red); }
.tk-collapse { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-collapse-d { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 8px 3px 10px; border: 1px solid #F0CFC9; border-radius: 8px; background: #FDF3F1; color: var(--red); font: inherit; font-size: 12.5px; cursor: pointer;
  transition: background-color var(--t-fast, .15s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), border-color var(--t-fast, .15s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.tk-collapse-d > i { width: 6px; height: 6px; border-radius: 50%; background: #D5604F; }
.tk-collapse-d:hover { background: #FBE7E3; border-color: #E8B4AB; }
.tk-collapse-d:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.tk-collapse-d svg { width: 12px; height: 12px; }
.tk-value .tk-fold-btn { margin-top: -2px; }
.tk-value-more { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; }
.tk-value-more .tk-sub { padding: 10px 0 4px; }
.tk-value-t th, .tk-value-t td { white-space: nowrap; }
.tk-value-t tbody th { font-weight: 500; color: var(--body); text-align: left; }
.tk-value-t em.is-bad { color: var(--red); font-weight: 600; font-style: normal; } .tk-value-t em.is-good { font-style: normal; }
.tk-value-t tr.is-collapse th, .tk-value-t tr.is-collapse td { color: var(--red); background: #FDF3F1; }
.tk-collapse-dot { display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: #D5604F; vertical-align: middle; }
.tk-value-note { margin: 4px 0 0; font-size: 12px; }
.tk-value-t td.tk-value-na { color: var(--muted); white-space: normal; }
.tk-value-p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--body); }
.tk-value-ops { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tk-value-ops li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 7px 10px; border-radius: 8px; font-size: 13px;
  transition: background-color var(--t-slow, .36s) var(--ease-out, cubic-bezier(.2,.8,.2,1)), box-shadow var(--t-slow, .36s) var(--ease-out, cubic-bezier(.2,.8,.2,1)); }
.tk-value-ops li > b { font-weight: 500; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-value-ops li > time { grid-column: 3; grid-row: 1; font-size: 12px; color: var(--muted); }
.tk-value-ops li > .tk-value-ch, .tk-value-ops li > small { grid-column: 2 / -1; font-size: 12px; color: var(--sec); }
.tk-value-ops li > small { color: var(--muted); }
.tk-value-ops li.is-hi { background: #FDF3F1; box-shadow: inset 2px 0 0 #D5604F; }
.tk-caveats { margin-top: 8px; font-size: 12.5px; color: var(--sec); }
.tk-caveats summary { cursor: pointer; color: var(--muted); width: max-content; }
.tk-caveats summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.tk-caveats ul { margin: 6px 0 0; }
.tk-goal-h { padding-top: 16px; }

/* 素材评估四个数并排：已评 / 样本不够 / 无消耗不用评 / 待评。 */
.tk-cover { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.tk-cover-c { display: flex; flex-direction: column; gap: 1px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 10px; min-width: 0; }
.tk-cover-c b { font-size: 18px; font-weight: 600; color: var(--ink); }
.tk-cover-c small { font-size: 12px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-cover-c[title] { cursor: help; }
.tk-cover-c.is-rated b { color: var(--ch-good); } .tk-cover-c.is-pending b { color: var(--ch-warn); }
.tk-cover-c.is-noSpendUnratable b, .tk-cover-c.is-sampleHold b { color: var(--ch-sec); }
/* 右侧素材框只有 300 宽：两列两行，字不截断。 */
.tk-cover.is-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.tk-cover.is-compact .tk-cover-c { padding: 5px 10px; }
.tk-cover.is-compact .tk-cover-c b { font-size: 15px; }
.tk-cover.is-compact .tk-cover-c small { white-space: normal; overflow: visible; line-height: 1.35; }

/* 复盘三种状态：等复盘（空心圈）/ 错过复盘时限（琥珀）/ 效果待定（青）；reviewLabel 在 tooltip。 */
.tk-rv { display: inline-flex; align-items: center; gap: 5px; }
.tk-rv > i { width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--faint); }
.tk-rv.is-warn { color: var(--amber-ink); } .tk-rv.is-warn > i { background: #E0904A; box-shadow: none; }
.tk-rv.is-open { color: var(--teal); } .tk-rv.is-open > i { background: #3BA9C1; box-shadow: none; }
.tk-rv[title] { cursor: help; }
.tk-rv:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

/* 任务记录：规则已更新（青）/ 剔除被拒（琥珀），和「已按你改的值接着办」同一个样子。 */
.tk-notice { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; box-shadow: inset 2px 0 0 #3BA9C1; font-size: 13.5px; line-height: 1.65; color: var(--body); }
.tk-notice > svg { flex: none; margin-top: 3px; color: var(--teal); }
.tk-notice > div > b { display: block; font-weight: 600; color: var(--ink); }
.tk-notice time { color: var(--muted); font-size: 12px; }
.tk-notice .cn-link { display: block; margin-top: 2px; padding: 0; }
.tk-notice.is-exclusion { box-shadow: inset 2px 0 0 #E0904A; } .tk-notice.is-exclusion > svg { color: var(--amber); }

/* 托管目标卡：「现在在这里」一行小卡片；floorWarning 琥珀色；spendMayDrop 淡一点。 */
.dg-pos { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 13px; line-height: 1.6; min-width: 0; }
.dg-pos-k { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.dg-pos-k svg { width: 10px; height: 10px; color: #3BA9C1; fill: currentColor; }
.dg-pos-t { min-width: 0; color: var(--body); }
.dg-warn { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; padding: 7px 12px; border-radius: 10px; background: #FDF1E4; color: var(--amber-ink); font-size: 13px; line-height: 1.6; }
.dg-warn svg { flex: none; margin-top: 3px; color: var(--amber); }
.dg-warn.is-soft { background: transparent; padding: 0 2px; color: var(--sec); } .dg-warn.is-soft svg { color: var(--muted); }
.dg-field.is-warn .cn-input { border-color: #E0904A; }
.dg-field.is-warn small { color: var(--amber-ink); }

@media (max-width: 720px) {
  .tk-value { margin: 12px 10px 4px; padding: 12px; }
  .tk-cover { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-pos { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .tk-value-ops li, .tk-collapse-d { transition: none; } }

/* 073 C4 / C8（S3）：“需要你处理”卡上的恢复按钮；菜单里“暂时不能结束”的说明。 */
.tk-recover { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tk-recover .cn-btn { transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), opacity var(--t-fast) var(--ease-out); }
.tk-recover .cn-btn[disabled] { opacity: .55; cursor: not-allowed; }
.tk-recover > span { flex: 1 1 180px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tk-menu-note { display: flex; flex-direction: column; gap: 2px; margin: 2px 0; padding: 6px 10px; border-radius: 8px; background: var(--soft); color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 280px; }
.tk-menu-note b { color: var(--body); font-size: 13px; font-weight: 500; }
/* 连续中断合成的一条：点开后里面是原来的每一轮。 */
.tk-interrupted[open] { padding-bottom: 12px; display: flex; flex-direction: column; gap: 14px; }
.tk-interrupted summary { height: auto; min-height: 36px; padding: 6px 0; flex-wrap: wrap; }
/* #1547 3C：重新授权后的任务横幅带一个按钮（按原方案重新交办）。 */
.tk-banner.tk-redelegate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tk-banner.tk-redelegate p { margin: 0; flex: 1 1 320px; }
