.depth-page{min-width:0}.depth-toolbar{display:flex;align-items:end;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #e8ecf1}.depth-toolbar label,.depth-row form label{display:grid;gap:6px;color:#536278;font-size:12px}.depth-toolbar select,.depth-row select,.depth-row textarea{font:inherit;padding:8px 12px;border:1px solid #dce1e7;border-radius:6px;background:var(--surface,#fff);color:inherit;max-width:100%}.depth-toolbar span{color:#68778b;font-size:12px;align-self:center}.depth-rows{max-width:1100px}.depth-row{padding:24px 0;border-bottom:1px solid #e8ecf1;overflow-wrap:anywhere}.depth-row h3{font-size:18px;line-height:1.6;margin:6px 0}.depth-meta{color:#68778b;font-size:12px}.depth-row blockquote{margin:12px 0;padding:12px 16px;border-left:3px solid #e3e8ef;background:#f8fafc;white-space:pre-wrap}.depth-row blockquote small{display:block;color:#68778b;margin-top:6px}.depth-row form{display:grid;gap:12px;max-width:600px}.depth-row form button{justify-self:start}.depth-row li{margin:8px 0}.depth-profile,.depth-history{padding:18px 0}.depth-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:16px 0}.depth-summary article{padding:12px 0;border-bottom:1px solid #e8ecf1}.depth-summary h3{margin:0 0 8px}.depth-summary p{font-size:14px;line-height:1.7}.depth-summary small{color:#68778b}.depth-profile>.btn{margin:4px}.depth-page[aria-busy=true] form button{pointer-events:none;opacity:.6}@media(max-width:700px){.depth-toolbar{gap:12px}.depth-toolbar label{width:100%}.depth-toolbar select{width:100%}.depth-summary{grid-template-columns:1fr}.depth-row{padding:18px 0}}
.depth-page>[data-depth-body]{padding:0 24px 24px}.depth-row input{font:inherit;padding:8px 12px;border:1px solid #dce1e7;border-radius:6px;max-width:100%}@media(max-width:700px){.depth-page>[data-depth-body]{padding:0 16px 20px}}

/* Distillation stays inside the existing scene-word workspace. */
.training-browser-actions[hidden]{display:none}.depth-embedded{padding:0 24px 24px}.depth-embedded-actions{justify-content:flex-end;margin-bottom:8px}.depth-embedded>[data-depth-body]{padding:0}.depth-embedded .depth-rows{max-width:none}

@media(max-width:700px){.depth-embedded{padding:0 16px 20px}}

/* Make room for the sixth tab while retaining horizontal scrolling on phones. */
.plane-shell.plane-refresh .scene-page .scene-terms .training-tabs.engine-tabs,html[data-edition=detection] #app .detection-workspace .scene-page .scene-terms .training-tabs.engine-tabs{width:560px!important;max-width:100%!important}

.depth-advice{margin:12px 0;padding:10px 14px;border-left:3px solid #c5d7df;background:rgba(99,140,161,.045);max-width:760px}.depth-advice strong{font-size:13px}.depth-advice p{margin:5px 0;line-height:1.7}.depth-advice small{display:block;color:var(--text-secondary,#687787);line-height:1.7}.depth-embedded .depth-row h3{overflow-wrap:anywhere}

/* Independent term workspace: reuse the GEO plan's pearl cards and shared feedback. */
.depth-workspace .depth-term-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start;margin:24px 0}
.depth-workspace .depth-term-card{min-width:0;overflow:hidden;padding:0}
.depth-workspace .depth-card-trigger{width:100%;border:0;background:transparent;text-align:left;font:inherit}
.depth-workspace .depth-term-card>.depth-card-trigger{display:flex;flex-direction:column;gap:12px;padding:24px;min-height:240px;box-sizing:border-box;cursor:pointer;list-style:none;color:var(--cs-ink)}
.depth-workspace .depth-term-card>.depth-card-trigger::-webkit-details-marker{display:none}
.depth-workspace .depth-term-card>.depth-card-trigger:focus-visible{outline:2px solid var(--cs-accent);outline-offset:-4px;border-radius:22px}
.depth-workspace .depth-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.depth-workspace .depth-card-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:color-mix(in srgb,var(--cs-wash) 70%,var(--cs-paper));color:var(--cs-accent)}
.depth-workspace .depth-card-icon .icon{width:22px;height:22px}
.depth-workspace .depth-card-title{font-size:18px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;margin-top:4px}
.depth-workspace .depth-card-product{font-size:13px;line-height:1.7;color:var(--cs-muted)}
.depth-workspace .depth-card-types{font-size:12px;line-height:1.7;color:var(--cs-accent)}
.depth-workspace .depth-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:auto;padding-top:16px;border-top:1px solid var(--cs-line);font-size:12px;color:var(--cs-muted)}
.depth-workspace .depth-card-open{display:inline-flex;align-items:center;gap:4px;color:var(--cs-accent)}
.depth-workspace .depth-card-open .icon{width:16px;height:16px;transition:transform 140ms ease}
.depth-workspace .depth-term-card[open] .depth-card-open .icon{transform:rotate(90deg)}
.depth-workspace .depth-term-detail{padding:0 24px 24px;border-top:1px solid var(--cs-line);font-size:13px;line-height:1.8}
.depth-workspace .depth-term-detail h3{font-size:14px;margin:20px 0 12px}
.depth-workspace .depth-term-detail blockquote{margin:12px 0;padding:12px;border-left:1px solid var(--cs-edge);background:color-mix(in srgb,var(--cs-wash) 30%,transparent);overflow-wrap:anywhere;white-space:pre-wrap}
.depth-workspace .depth-term-detail blockquote small{display:block;color:var(--cs-muted);margin-top:8px}
.depth-workspace .depth-term-detail form,.depth-workspace .depth-term-detail label{display:grid;gap:8px;min-width:0}
.depth-workspace .depth-term-detail form{gap:16px;margin-top:20px}
.depth-workspace .depth-term-detail :is(input,textarea,select){font:inherit;box-sizing:border-box;width:100%;padding:8px 12px;background:var(--cs-paper);color:var(--cs-ink);border:1px solid var(--cs-line);border-radius:6px}
.depth-workspace .depth-term-detail form button{justify-self:start}
.depth-workspace .depth-advice{border-left:0;padding:0;background:transparent}
.depth-workspace .depth-term-grid{margin-top:24px}
.depth-workspace .depth-term-card>.depth-card-trigger{min-height:280px}
.depth-workspace .depth-card-reason{font-size:13px;line-height:1.8;color:var(--cs-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.depth-workspace .depth-term-state{display:inline-flex;align-items:center;gap:6px}
.depth-workspace .depth-term-state i{width:6px;height:6px;border-radius:50%;background:#b07b49;flex:none}
.depth-workspace .depth-term-state.is-ready i{background:#53896b}
.depth-workspace .depth-record-detail+.depth-record-detail{border-top:1px solid var(--cs-line);margin-top:24px;padding-top:8px}
.depth-workspace .depth-supporting{margin:32px 0 16px;padding-top:20px;border-top:1px solid var(--cs-line);font-size:13px;color:var(--cs-muted)}
.depth-workspace .depth-supporting>summary{cursor:pointer;font-weight:500;color:var(--cs-ink);padding:8px 0}
.depth-workspace .depth-supporting>summary>span{margin-left:8px;font-size:12px;color:var(--cs-muted)}
.depth-workspace .depth-supporting>p{font-size:13px;line-height:1.8;margin:12px 0}
.depth-workspace .depth-support-record{border-bottom:1px solid var(--cs-line);margin-top:8px}
.depth-workspace .depth-support-record>summary{cursor:pointer;padding:16px 0;color:var(--cs-ink)}
.depth-workspace .depth-support-record>summary small{margin-left:16px;color:var(--cs-muted)}
.depth-workspace button.depth-support-record{display:flex;align-items:center;gap:16px;width:100%;padding:16px 0;background:transparent;border:0;border-bottom:1px solid var(--cs-line);text-align:left;font:inherit;color:var(--cs-ink);cursor:pointer}
.depth-workspace button.depth-support-record>span{flex:1;min-width:0;overflow-wrap:anywhere}
.depth-workspace button.depth-support-record small{color:var(--cs-muted)}
.depth-workspace button.depth-support-record>.icon{width:16px;height:16px;flex:none}
.depth-term-drawer{--cs-ink:var(--text,#202632);--cs-muted:var(--muted,#626d7d);--cs-line:var(--line,#e6e8ed);--cs-edge:#bfd7c5;--cs-paper:var(--surface,#fff);font-family:var(--font-ui)}
.depth-term-drawer .depth-term-detail{padding:0;border:0;font-size:14px;line-height:1.8;overflow-wrap:anywhere}
.depth-term-drawer .depth-record-detail+.depth-record-detail{border-top:1px solid var(--cs-line);margin-top:28px;padding-top:24px}
.depth-term-drawer .depth-record-detail h3{font-size:14px;margin:0 0 16px}
.depth-term-drawer .depth-advice{padding:0;margin:16px 0;border:0;background:transparent}
.depth-term-drawer .depth-advice p{margin:8px 0;color:var(--cs-muted)}
.depth-term-drawer blockquote{margin:16px 0;padding:12px 16px;border-left:1px solid var(--cs-edge);background:var(--soft,#f6f8f8);white-space:pre-wrap}
.depth-term-drawer blockquote small{display:block;margin-top:8px;color:var(--cs-muted);font-size:12px}
.depth-term-drawer form,.depth-term-drawer form label{display:grid;gap:8px;min-width:0}
.depth-term-drawer form{gap:16px;margin-top:24px}
.depth-term-drawer form label{font-size:13px;color:var(--cs-ink)}
.depth-term-drawer :is(input,textarea,select){box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid var(--cs-line);border-radius:6px;background:var(--cs-paper);color:var(--cs-ink);font:inherit}
.depth-term-drawer textarea{min-height:88px;resize:vertical}
.depth-term-drawer form .btn{justify-self:start}
.depth-term-drawer .depth-drawer-status{font-size:13px;color:var(--green,#437557);margin:16px 0 0}
.depth-term-drawer .depth-drawer-status[role=alert]{color:var(--red,#b6523e)}
.depth-term-drawer[aria-busy=true] [type=submit]{opacity:.6;cursor:wait}
.depth-generation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px;padding:12px 16px;border-radius:10px;background:var(--soft,#f4f7f8);color:var(--cs-muted);font-size:13px;line-height:1.8}
.depth-generation>.btn{flex:none}.depth-generation-state{flex:none;font-size:12px;color:var(--cs-accent)}
.depth-card-origin{font-size:12px;color:var(--cs-muted);line-height:1.7}
.depth-term-drawer .depth-word-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;margin:0 0 24px;font-size:13px}
.depth-term-drawer .depth-word-meta>div{min-width:0}.depth-term-drawer .depth-word-meta dt{color:var(--cs-muted);font-size:12px;margin-bottom:4px}
.depth-term-drawer .depth-word-meta dd{margin:0;color:var(--cs-ink);overflow-wrap:anywhere}
.depth-term-drawer .depth-hypothesis{padding:12px 16px;border-radius:8px;background:var(--soft,#f4f7f8);font-size:13px;line-height:1.8;color:var(--cs-muted)}
.depth-term-drawer .depth-word-links{border-top:1px solid var(--cs-line);margin-top:28px;padding-top:24px}
.depth-term-drawer .depth-word-links h3{margin:24px 0 12px}.depth-term-drawer .depth-word-links>h3:first-child{margin-top:0}
.depth-term-drawer .depth-word-links p,.depth-term-drawer .depth-word-links li{font-size:13px;line-height:1.8}
.depth-term-drawer .depth-word-links ul{margin:12px 0;padding-left:20px}.depth-term-drawer .depth-word-links li{margin:8px 0}
.depth-term-drawer .depth-word-links li small{margin-left:8px;color:var(--cs-muted)}
.depth-term-drawer .depth-link-empty{color:var(--cs-muted)}.depth-term-drawer .depth-word-links details{margin:16px 0}
.depth-term-drawer .depth-word-task{margin:24px 0 0;padding-top:16px;border-top:1px solid var(--cs-line)}
.depth-term-drawer .depth-word-task>summary{cursor:pointer;font-size:14px;font-weight:500;padding:8px 0}
@media(max-width:700px){.depth-generation{align-items:flex-start;flex-wrap:wrap}.depth-term-drawer .depth-word-meta{grid-template-columns:1fr}}
@media(max-width:1200px){.depth-workspace .depth-term-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}}
@media(max-width:700px){.depth-workspace .depth-term-grid{grid-template-columns:minmax(0,1fr);gap:16px}.depth-workspace .depth-term-card>.depth-card-trigger{min-height:220px;padding:20px}.depth-workspace .depth-term-detail{padding:0 20px 20px}}

/* Distilled terms reuse the approved scene list; evidence stays within each row. */
.plane-shell .depth-term-catalog.cw-workspace.scene-catalog{padding:0;min-height:0}
.depth-term-catalog .depth-term-record{padding:0;border:0;margin:0;overflow:visible}
.plane-shell .depth-term-catalog [data-catalog=distillation] :is(.sc-list-heading,.sc-list-row){grid-template-columns:minmax(180px,1.5fr) minmax(100px,.9fr) minmax(100px,.8fr) minmax(112px,.8fr) 24px;gap:18px}
.plane-shell .depth-term-catalog [data-catalog=distillation] .sc-list-row{min-height:88px;list-style:none}
.depth-term-catalog summary::-webkit-details-marker{display:none}
.depth-term-catalog summary:focus-visible{outline:2px solid var(--cw-blue,#006399);outline-offset:-3px;border-radius:10px}
.depth-term-catalog .depth-term-record[open]>summary{background:color-mix(in srgb,var(--cs-wash) 30%,var(--cs-paper))}
.depth-term-catalog .depth-term-record[open]>summary .cw-row-open{transform:rotate(90deg)}
.depth-term-catalog .depth-term-detail{padding:4px 24px 24px 78px;border-bottom:1px solid var(--cs-edge,rgba(58,93,106,.1))}
.depth-term-catalog .depth-term-detail h3{font-size:14px;line-height:1.6;margin:12px 0}
.depth-term-catalog .depth-term-detail .depth-advice{margin:12px 0}
.depth-term-catalog .depth-empty{padding:24px;color:var(--cw-muted)}
@container(max-width:760px){
 .plane-shell .depth-term-catalog [data-catalog=distillation] .sc-list-heading{display:none}
 .plane-shell .depth-term-catalog [data-catalog=distillation] .sc-list-row{grid-template-columns:minmax(0,1fr) 24px;gap:10px;padding:16px}
 .depth-term-catalog .sc-list-row>:first-child{grid-column:1/-1}
 .depth-term-catalog .sc-row-stat{grid-column:1/-1;display:flex;gap:8px}
 .depth-term-catalog .sc-row-stat::before{content:attr(data-label);flex:none;color:var(--cw-muted)}
 .depth-term-catalog .sc-row-stage{grid-column:1;flex-direction:row;align-items:center;flex-wrap:wrap}
 .depth-term-catalog .sc-list-row .sc-row-stage small{display:block}
 .depth-term-catalog .sc-list-row>:last-child{grid-column:2;grid-row:4}
 .depth-term-catalog .depth-term-detail{padding:0 16px 20px}
 .depth-term-catalog .cw-row-copy strong{white-space:normal;overflow-wrap:anywhere}
}
