/* Focused intake and results; module navigation inside the brand workspace. */
html[data-edition="detection"] body{background:var(--surface,#fff)}
html[data-edition="detection"] #app .detection-shell,
html[data-edition="detection"] #app .detection-main,
html[data-edition="detection"] #app .detection-page{background:#fff!important}
html[data-edition="detection"] #app .detection-shell{--plane-canvas:#fff}
html[data-edition="detection"] #app .detection-page :is(.phase1-root,.p1-results-heading,.mn-report){background:#fff!important}
.plane-shell.detection-shell{display:block!important;grid-template-columns:none!important;grid-template-rows:none!important;height:100dvh;padding:0!important;background:var(--surface,#fff)}
html[data-edition="detection"] #app .plane-main.detection-main{position:fixed!important;inset:0!important;margin:0!important;width:100%!important;height:100dvh;min-width:0;padding:0!important;border:0;border-radius:0;display:block}
.detection-shell .plane-page.detection-page{height:100%;width:100%;margin:0;max-width:none;box-sizing:border-box;overflow:auto!important;padding:24px 40px 40px!important;border:0;border-radius:0;background:var(--surface,#fff)}
.detection-utilities{display:flex;align-items:center;justify-content:space-between;min-height:36px;margin-bottom:8px;position:relative;z-index:25}
.detection-account{margin-left:auto;position:relative;color:var(--text,#243244);font-size:13px}
.detection-account summary{cursor:pointer;padding:8px 12px;border-radius:6px;max-width:240px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.detection-account summary:hover{background:var(--surface-hover,#f4f6f8)}
.detection-account-panel{position:absolute;right:0;top:calc(100% + 8px);width:256px;max-width:calc(100vw - 32px);display:grid;gap:12px;padding:16px;border:1px solid var(--border,#dfe3e8);border-radius:10px;background:var(--surface,#fff);box-shadow:0 8px 24px #172b4d1a}
.detection-account-panel label{display:grid;gap:6px;font-size:12px}
.detection-account-panel select{width:100%;min-width:0;padding:8px;border:1px solid var(--border,#dfe3e8);border-radius:6px;background:var(--surface,#fff);color:inherit}
.detection-account-panel .btn{width:100%;justify-content:flex-start}
.detection-shell .p1-result-card[role="button"]{cursor:pointer;transition:transform .18s ease-out,box-shadow .18s ease-out}
.detection-shell .p1-result-card[role="button"]:hover{transform:translateY(-3px);box-shadow:0 8px 22px #172b4d12}
.detection-shell :is([data-detection-open],summary,button,select):focus-visible{outline:2px solid #006399;outline-offset:3px}
.detection-shell .p1-result-experience .bf-step-content{max-width:1120px}
.detection-shell .p1-engine-ready .p1-result-grid{margin-bottom:36px}
.detection-shell .p1-brand-switch{display:none}
.detection-shell .p1-result-card{opacity:1!important;transform:none;animation:none!important}
.detection-shell .phase1-root>.p1-workspace-heading:has(+.p1-knowledge-library){display:none}
html[data-edition="detection"] #app .detection-workspace .detection-main{display:grid!important;grid-template-columns:208px minmax(0,1fr)}
.detection-workspace .detection-page{min-width:0;min-height:0}
.detection-sidebar{display:flex;flex-direction:column;gap:24px;min-height:0;overflow:auto;padding:32px 16px;border-right:1px solid var(--border,#dfe3e8);background:var(--surface,#fff);color:var(--text,#243244)}
.detection-sidebar h2{margin:0;padding:0 12px;font-size:16px;font-weight:600;line-height:24px}
.detection-sidebar nav{display:grid;gap:8px}
.detection-nav-item{display:flex;align-items:center;min-height:44px;width:100%;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-size:14px;text-align:left;cursor:pointer}
.detection-nav-item:hover{background:var(--surface-hover,#f4f6f8)}
.detection-nav-item[aria-current="page"]{background:#e8f3fa;color:#006399;font-weight:600}
.detection-sidebar .detection-back{margin-top:auto;min-height:44px;justify-content:center}
@media(max-width:700px){html[data-edition="detection"] #app .detection-workspace .detection-main{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}.detection-sidebar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:12px 16px;border-right:0;border-bottom:1px solid var(--border,#dfe3e8)}.detection-sidebar h2{align-self:center;padding:0}.detection-sidebar nav{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.detection-nav-item{justify-content:center;padding:10px 4px;font-size:13px;white-space:nowrap}.detection-sidebar .detection-back{grid-column:2;grid-row:1;margin:0}}
@media(max-width:700px){.detection-shell .plane-page.detection-page{padding:16px 16px 28px!important}.detection-account summary{max-width:180px}.detection-shell .p1-result-grid{grid-template-columns:1fr!important}.detection-utilities{margin-bottom:16px}.detection-back{font-size:12px}}
@media(prefers-reduced-motion:reduce){.detection-shell .p1-result-card[role="button"]{transition:none}.detection-shell .p1-result-card[role="button"]:hover{transform:none}}

/* Match the primary GEO workspace's icons, heading rhythm and content gutters. */
.detection-shell .navigation-icon{fill:currentColor;stroke:none}
.detection-sidebar :is(h2,.detection-nav-item,.detection-back){display:flex;align-items:center;gap:10px}
.detection-sidebar .icon{width:20px;height:20px;flex:0 0 20px}
.detection-sidebar h2 .icon{color:#64748b}
.detection-sidebar .detection-nav-item:not([aria-current]){color:#465566}
.detection-sidebar .detection-back{justify-content:flex-start;padding-inline:12px}
.detection-account summary{display:flex;align-items:center;gap:8px;list-style:none}
.detection-account summary::-webkit-details-marker{display:none}
.detection-account summary>.icon{width:18px;height:18px;flex:none;color:#64748b}
.detection-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.detection-account-chevron{display:flex;flex:none;transform:rotate(90deg)}
.detection-account-chevron .icon{width:14px;height:14px}
.detection-account[open] .detection-account-chevron{transform:rotate(-90deg)}
.detection-account-panel .btn{display:flex;align-items:center;gap:10px;min-height:40px}
.detection-account-panel .btn .icon{width:17px;height:17px;flex:none}
.detection-shell :is(.detection-back,.detection-account-panel .btn)>.icon{display:block!important}
html[data-edition="detection"] #app .detection-workspace .detection-page{--workspace-gutter:36px;padding:0!important}
.detection-workspace .detection-utilities{min-height:48px;margin:0;padding:6px var(--workspace-gutter);box-sizing:border-box}
html[data-edition="detection"] #app .detection-workspace .phase1-root{max-width:none;margin:0;padding:0}
html[data-edition="detection"] #app .detection-workspace .p1-workspace-heading{min-height:116px;height:auto;padding:24px var(--workspace-gutter) 28px!important;margin:0}
.detection-workspace .kl-library{padding:24px var(--workspace-gutter) 40px}
.detection-workspace .kl-page-heading{min-height:64px;margin:0 0 28px;align-items:flex-start}
html[data-edition="detection"] #app .detection-workspace :is(.kl-page-heading,.p1-workspace-heading) h1{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:600;line-height:34px;margin:0;padding:0;letter-spacing:normal}
html[data-edition="detection"] #app .detection-workspace .detection-title-symbol{display:flex;align-items:center;justify-content:center;width:28px;height:34px;flex:0 0 28px;margin:0;color:#006399}
.detection-title-symbol .icon{width:26px;height:26px}
html[data-edition="detection"] #app .detection-workspace .detection-title-copy{font:inherit;color:inherit;margin:0;min-width:0}
.detection-title-copy>.engine-title-name{display:inline-block;vertical-align:middle;margin-left:14px;padding-left:14px;border-left:1px solid var(--line);font-size:12px;line-height:20px;font-weight:400;color:var(--muted)}
html[data-edition="detection"] #app .detection-workspace :is(.kl-page-heading,.p1-workspace-heading) p{font-size:13px;line-height:22px;margin:8px 0 0;color:var(--muted)}
.detection-workspace .scene-page>.scene-terms{padding:0 var(--workspace-gutter) 40px}
.detection-workspace .kl-tabs{gap:24px;row-gap:12px}
.detection-workspace .kl-tabs .icon{width:17px;height:17px;flex:none;color:currentColor}
.detection-workspace .kl-text-button .icon{width:15px;height:15px;flex:none}
.detection-workspace .detection-page{position:relative}
html[data-edition="detection"] #app .detection-workspace .kl-tabs{display:flex;flex-wrap:wrap;width:fit-content;max-width:100%;gap:4px;padding:4px;margin:0 0 24px;border:0;border-radius:8px;background:#f1f2f4}
html[data-edition="detection"] #app .detection-workspace .kl-tabs button{display:flex;align-items:center;gap:7px;padding:7px 12px;min-height:34px;border:0;border-radius:6px;background:transparent;font-size:13px;font-weight:400;line-height:20px;color:#64748b;white-space:nowrap}
html[data-edition="detection"] #app .detection-workspace .kl-tabs button[aria-selected="true"]{background:#fff;color:#172b3d;font-weight:500;box-shadow:0 1px 3px #172b3d14}
html[data-edition="detection"] #app .detection-workspace .kl-tabs button::after{display:none}
html[data-edition="detection"] #app .detection-workspace .training-browser-bar{border-bottom:0;box-shadow:none}
@media(min-width:701px){
 .detection-workspace .detection-utilities{position:absolute;top:8px;right:var(--workspace-gutter);padding:0;min-height:36px}
 html[data-edition="detection"] #app .detection-workspace .p1-workspace-heading{padding-top:27px!important}
 .detection-workspace .kl-library{padding-top:27px}
 .detection-workspace :is(.kl-page-heading,.p1-workspace-heading)>div:first-child{max-width:calc(100% - 240px)}
}
@media(max-width:700px){
 html[data-edition="detection"] #app .detection-workspace .detection-page{--workspace-gutter:16px}
 .detection-sidebar .detection-nav-item{gap:6px}
 .detection-sidebar .detection-nav-item .icon{width:17px;height:17px;flex-basis:17px}
 .detection-workspace .detection-utilities{min-height:44px}
 html[data-edition="detection"] #app .detection-workspace .p1-workspace-heading{padding-block:16px 24px!important;min-height:112px}
 .detection-workspace .kl-library{padding-top:16px}
 html[data-edition="detection"] #app .detection-workspace :is(.kl-page-heading,.p1-workspace-heading) h1{font-size:22px;line-height:30px;gap:8px}
 .detection-title-copy>.engine-title-name{display:block;border:0;margin:2px 0 0;padding:0;line-height:18px}
 .detection-workspace .kl-tabs{gap:16px;row-gap:12px}
}
