.discussion{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:28px;padding:28px;max-width:1600px;margin:auto}.discussion h1{font-size:28px}.conversation{position:sticky;top:90px;height:calc(100dvh - 115px);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;padding:18px;background:#1b2430;min-height:500px}.conversation-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.conversation-head h2{font-size:18px}.conversation-head span{font-size:11px;color:#81dfca}.conversation>p{font-size:12px;color:#aab9c9}.conversation #comments{flex:1;overflow:auto;min-height:100px;padding:8px 0}.conversation form{display:grid;gap:9px;border-top:1px solid var(--line);padding-top:12px}.conversation label{font-size:12px;margin:0}.conversation input:not([type=checkbox]),.conversation textarea,.discussion input[type=number]{width:100%;box-sizing:border-box;background:#111923;color:#edf5ff;padding:10px;border:1px solid #526275;border-radius:7px}.conversation input[type=checkbox]{width:auto}.comment-bubble{padding:12px;background:#273547;border-radius:10px;margin-bottom:12px;overflow-wrap:anywhere}.comment-bubble p{white-space:pre-wrap;margin:8px 0}.comment-bubble small{color:#b6c6d7}.comment-bubble button{font-size:11px;padding:5px 9px}.shared-graph{background:#19232e;padding:16px;border:1px solid var(--line);border-radius:10px;margin:20px 0;overflow:hidden}.shared-graph h3{overflow-wrap:anywhere;font-size:15px}.shared-graph svg{width:100%;touch-action:pan-y}.share-form{display:grid;gap:14px}.share-form input:not([type=checkbox]),.share-form textarea{width:100%;box-sizing:border-box;padding:12px;background:#17202a;color:#fff;border:1px solid #526275}.share-form label{display:block}.share-form .share-choice{padding:8px;border-bottom:1px solid #394857}.shared-questions{margin:20px 0;padding:20px;border:1px solid var(--line);border-radius:10px}.shared-questions a{display:block;padding:10px;color:#81dfca}@media(max-width:850px){.discussion{display:block;padding:18px}.conversation{position:static;height:650px;margin:25px 0 80px}.discussion h1{font-size:23px}}

dialog:has(.share-form){background:#1b2430;color:#edf5ff;border:1px solid #526275;border-radius:12px;padding:24px;max-width:750px;width:calc(100% - 40px);max-height:85dvh;overflow:auto;box-sizing:border-box}dialog:has(.share-form)::backdrop{background:#000a}.share-form .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.share-form button{padding:12px;background:#294e51;color:#fff;border:1px solid #567e80;border-radius:6px}.share-form p{font-size:13px;line-height:1.8}.share-form input[type=checkbox]{width:18px;height:18px;margin-right:8px}.share-form label{line-height:1.8}.share-form button:disabled{opacity:.5}

.share-group{border:1px solid #526275;border-radius:8px;padding:10px}.share-group summary{cursor:pointer;font-weight:600}.share-group[data-privacy="true"]{border-color:#c49b61}.share-group .share-choice{overflow-wrap:anywhere}

.share-privacy-slot .share-group{color:#ffd766;border-color:#d4ad48}.share-privacy-slot summary,.share-privacy-slot p,.share-privacy-slot label{color:#ffd766}

.discussion>section{min-width:0}.shared-viewer{background:#1e1f26;border:1px solid #3c4250;border-radius:8px;overflow:hidden}.sv-toolbar,.sv-tabs,.sv-timeline{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:10px;background:#22242c}.sv-toolbar input{min-width:130px;flex:1;padding:10px}.sv-tabs button.active,.sv-menu button.active{border-color:#4fc3f7;color:#9fd3ff;background:#233747}.sv-note{padding:0 12px;color:#9da8b8;font-size:12px}.sv-layout{display:grid;grid-template-columns:200px minmax(0,1fr);height:65vh;min-height:400px}.sv-menu,.sv-area{overflow:auto;padding:10px}.sv-menu{border-right:1px solid #3c4250}.sv-menu button{width:100%;text-align:left;justify-content:flex-start;margin-bottom:5px;font-size:12px}.sv-area .shared-graph{margin:0 0 12px;padding:10px}.sv-legend{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px}.sv-legend button{font-size:11px;padding:5px;min-height:30px}.sv-timeline input{flex:1;min-width:100px}.sv-area table{width:100%;font-size:12px;border-collapse:collapse}.sv-area td,.sv-area th{padding:6px;border-bottom:1px solid #3c4250;overflow-wrap:anywhere}@media(max-width:850px){.sv-layout{grid-template-columns:1fr;height:auto}.sv-menu{max-height:170px}.sv-area{max-height:65vh}.sv-toolbar button{padding:7px}.sv-legend{flex-wrap:wrap}}

.discussion-side{min-width:0}.discussion-side .conversation{position:static;height:550px;margin-top:16px}.shared-attitude{background:#1b2430;border:1px solid #3c4250;border-radius:10px;padding:12px}.shared-attitude h2{font-size:16px;margin:0 0 10px}.shared-attitude canvas{width:100%;height:260px;display:block;touch-action:none;border-radius:6px}.shared-attitude p,.shared-attitude small{font-size:11px;color:#aab9c9}.shared-attitude>div{display:flex;gap:6px;flex-wrap:wrap}.shared-attitude select{min-width:0;max-width:100%}.shared-attitude small{display:block;margin-top:8px}
@media(min-width:851px){.discussion-side{position:sticky;top:86px;align-self:start;max-height:calc(100dvh - 98px);overflow:auto;scrollbar-gutter:stable}}

.sv-readout{min-height:18px;font-size:11px;color:#ffd766}.drawing .sv-area svg{cursor:crosshair;touch-action:none}.graph-ink{pointer-events:none}.sv-toolbar label{font-size:12px}.sv-toolbar button[aria-pressed=true]{background:#735b20}.shared-attitude summary{font-weight:bold;cursor:pointer}.shared-attitude canvas{height:140px}.shared-attitude h2{font-size:14px}.shared-attitude p{margin:4px 0}.shared-attitude small{display:none}.shared-attitude>div button,.shared-attitude select{padding:4px;min-height:28px;font-size:11px}@media(min-width:851px){.discussion-side{display:flex;flex-direction:column;height:calc(100dvh - 98px);max-height:none;overflow:hidden;gap:8px}.shared-attitude{flex:none;padding:8px}.discussion-side .conversation{flex:1;min-height:0;height:auto;margin:0;padding:10px;overflow:hidden}.conversation>p{display:none}.conversation-head h2{font-size:14px;margin:4px 0}.conversation #comments{min-height:50px}.conversation form{flex:none;gap:4px}.conversation textarea{height:56px}.conversation input:not([type=checkbox]){padding:5px}.conversation form label{font-size:11px}.conversation #submit{min-height:30px;padding:5px}.conversation #comment-error{margin:0}}

@media(min-width:851px){.shared-attitude canvas{height:110px}.conversation textarea{height:44px}.conversation #comments{min-height:100px}.conversation form{padding-top:6px}.conversation form label{line-height:1.3}}

/* Keep the complete comment form reachable at short heights and browser zoom. */
.discussion-side,.conversation,.conversation form{min-width:0}
@media(min-width:851px){
 .discussion-side{height:auto;max-height:calc(100dvh - 98px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-bottom:4px}
 .discussion-side .conversation{flex:none;height:auto;min-height:430px;overflow:visible}
 .conversation #comments{flex:1 0 100px;min-height:100px;max-height:240px;overflow-y:auto}
 .conversation form{flex:none}
}
@media(max-width:850px),(max-height:600px){
 .discussion-side{position:static;height:auto;max-height:none;overflow:visible}
 .discussion-side .conversation{height:auto;min-height:430px;overflow:visible;margin-bottom:24px}
 .conversation #comments{flex:none;min-height:100px;max-height:260px;overflow-y:auto}
}

@media(max-width:850px){.topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:12px;gap:8px}.discussion{padding:14px}.discussion h1,.body-text,.comment-bubble{overflow-wrap:anywhere}.sv-toolbar input{width:100%;min-width:0}.sv-area{min-width:0}.conversation-head{flex-wrap:wrap}}

.discussion-raw{grid-column:1/-1;min-width:0}.discussion-raw h2{font-size:16px}.discussion-raw iframe{width:100%;height:80vh;min-height:600px;border:1px solid #3c4250;border-radius:8px;background:#1e1f26}.post-viewer>header{display:none}.post-viewer .workspace{height:calc(100vh - 110px)}@media(max-width:850px){.discussion-raw iframe{height:900px;min-height:0}}

.integrated-discussion{grid-template-columns:minmax(0,1fr) 320px;max-width:none;gap:16px}.integrated-discussion .post-info{grid-column:1/-1}.integrated-discussion .post-info h1{margin:8px 0}.integrated-discussion .post-info .local-note{display:none}.integrated-discussion .discussion-raw{grid-column:1;grid-row:2}.integrated-discussion .discussion-raw h2{display:none}.integrated-discussion .discussion-raw iframe{height:calc(100dvh - 110px);min-height:650px}.integrated-discussion>.conversation{grid-column:2;grid-row:2;top:86px;height:calc(100dvh - 110px);min-height:450px;overflow:auto}.comment-snapshot,.raw-annotation-preview img{display:block;max-width:100%;height:auto}.raw-annotation-preview{max-height:100px;overflow:auto;font-size:11px}.snapshot-dialog,.annotation-dialog{width:min(1200px,95vw);max-height:90vh;overflow:auto}.snapshot-dialog img{width:100%;display:block}.raw-ink-wrap{position:relative}.plot .raw-ink{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.raw-drawing .plot canvas{cursor:crosshair}.post-viewer .workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(240px,1fr);height:calc(100vh - 155px)}.post-viewer .analysis{min-height:0}.post-viewer #map-panel{height:auto}.post-viewer .graph-layout{grid-template-columns:140px minmax(0,1fr)}@media(max-width:1100px){.integrated-discussion{display:block}.integrated-discussion>.conversation{position:static;height:550px;margin-top:16px}.integrated-discussion .discussion-raw iframe{height:800px}}@media(max-width:600px){.post-viewer .workspace{display:block;height:auto}.post-viewer #map-panel{height:500px}.post-viewer .graph-layout{grid-template-columns:1fr}}
.post-viewer .workspace.no-map{grid-template-columns:minmax(0,1fr)}
.comment-graph-selected{border-color:#81dfca!important;box-shadow:inset 0 0 0 2px #81dfca55}.plot .graph-selection-badge,.graph-selection-badge{color:#81dfca;font-size:12px;margin:4px 0 8px}.comment-graph-link{text-align:left;max-width:100%;white-space:normal;border:1px solid #81dfca;color:#b0f4e5}#graph-selection{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;border:1px solid #81dfca;border-radius:6px;background:#203b3c;font-size:12px;overflow-wrap:anywhere}#graph-selection button{flex:none;font-size:11px;padding:5px}#graph-selection[hidden]{display:none}.loading-state{display:grid;gap:7px;padding:14px;border:1px solid #3b6767;border-radius:8px;background:#183137;color:#b0f4e5;font-size:13px}.loading-state[hidden]{display:none}.loading-state progress{width:100%;height:7px;accent-color:#81dfca}.loading-state small{font-size:11px;color:#b6c6d7;min-height:0}.loading-state.failed{border-color:#e7ac63;color:#ffe0b6}.loading-state progress:not([value]){appearance:none;border:0;background:linear-gradient(90deg,#294950 20%,#81dfca 50%,#294950 80%);background-size:200% 100%;animation:loading-slide 1.5s linear infinite;border-radius:6px}.loading-state progress:not([value])::-webkit-progress-bar{background:transparent}.loading-state progress:not([value])::-moz-progress-bar{background:transparent}#viewer-loading{margin-bottom:10px}#comment-loading{padding:8px;font-size:12px}.conversation form[aria-busy=true]{opacity:.85}@keyframes loading-slide{to{background-position:-200% 0}}@media(prefers-reduced-motion:reduce){.loading-state progress{animation:none!important}}

.shared-map{margin:24px 0;border:1px solid #42556c;border-radius:10px;padding:16px;background:#18222e;min-width:0}.shared-map h2{font-size:19px}.shared-map p{font-size:12px;line-height:1.8;color:#b9c9da}.shared-map iframe{width:100%;height:440px;border:0;border-radius:8px;display:block}.shared-map-controls{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.shared-map-controls button{font-size:12px;min-height:40px}.share-map-choice{padding:12px;border:1px solid #667c96;border-radius:8px}.share-map-choice p{line-height:1.7;font-size:12px}@media(max-width:720px){.shared-map{padding:10px}.shared-map iframe{height:340px}}

.analyzer-3d .map-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0}.analyzer-3d select{max-width:100%;padding:9px;background:#202c3a;color:#edf5ff;border:1px solid #526275;border-radius:6px}.analyzer-3d .map-tools label{display:flex;align-items:center;gap:7px;margin:0;font-size:12px}.analyzer-3d .vehicle-tools span{font-size:11px;color:#aabed3}.analyzer-3d .playback{display:flex;align-items:center;gap:9px;margin-top:12px}.analyzer-3d .playback input[type=range]{flex:1;min-width:40px;width:auto}.analyzer-3d .playback output{font-size:12px;white-space:nowrap}.analyzer-3d iframe{height:520px}.analyzer-3d .playback button{min-height:42px}@media(max-width:720px){.analyzer-3d iframe{height:360px}.analyzer-3d .playback{gap:5px}.analyzer-3d .playback select{padding:8px 4px}.analyzer-3d .map-tools button{min-height:42px}}
