.terminal{height:100dvh;display:flex;flex-direction:column;min-height:640px}
.terminal .workspace{grid-template-columns:minmax(0,1.2fr) minmax(360px,.85fr);flex:1;min-height:0;gap:16px}
.terminal .chat-panel,.terminal .dossier-panel{min-width:0;min-height:0}
.terminal .metrics{padding-top:14px;padding-bottom:14px}
.terminal .metric-group{gap:26px}
.terminal .equipment-bar{flex-shrink:0;padding:14px 0 0;gap:24px}
.terminal .decisions{display:flex;gap:12px}
.terminal .decisions .btn{min-width:130px}
.record-line,.reason-choice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #a89c8729}
.record-line p,.reason-choice p{margin:0;font-size:13px;line-height:1.8}
.record-line .reason-link{white-space:nowrap;font-size:10px;color:inherit;opacity:.65}
.dossier-body .record-line{color:#3b362e}
.reason-choice{padding:18px 0}
.reason-choice .suspect-actions{flex-shrink:0}
.reason-option{display:flex;align-items:flex-start;gap:.8rem;flex:1;min-width:0;cursor:pointer;font:.82rem/1.8 var(--font);color:var(--ink)}
.reason-option>span{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.reason-checkbox{flex-shrink:0;width:1rem;height:1rem;margin:.25rem 0 0;accent-color:var(--red);cursor:pointer}
.reason-checkbox:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.selected-reason-count{display:inline-grid;place-items:center;min-width:1.2em;padding:0 .25em;border-radius:50%;background:#ffffff24;font-size:.8em}
.reason-summary{margin:.55rem 0 0;padding-left:1.2em;font:.82rem/1.85 var(--serif);color:var(--ink);overflow-wrap:anywhere}
.reason-summary li+li{margin-top:.35rem}
.history-item .reason-summary{font-family:var(--font);font-size:.74rem;color:var(--muted)}
.landing-nav .landing-settings{margin-left:auto;padding:.6rem;min-width:2.4rem;min-height:2.4rem}
#difficulty-setting{font:inherit;min-width:7rem;padding:.45rem .75rem}
.conversation-divider{font-size:.75rem;letter-spacing:.06em;color:var(--muted,#78766f);display:flex;align-items:center;gap:1rem;margin:1.5rem 0}
.conversation-divider:before,.conversation-divider:after{content:"";height:1px;flex:1;background:currentColor;opacity:.2}
.history-date{display:block;color:var(--muted,#78766f);font-size:.75rem;margin:1.25rem 0}
.probe-search{display:flex;gap:.75rem;margin:1rem 0}
.probe-search input{min-width:0;flex:1}
.probe-search input,.probe-search select{font:inherit;border:1px solid #d7d4ca;background:#faf9f5;color:#3c3932;border-radius:8px;padding:.65rem .8rem}
.probe-count{color:#78766f;font-size:.8rem;margin-bottom:.75rem}
.probe-pages{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1.25rem}
.probe-pages span{font-size:.85rem;color:#78766f}
@media(max-width:600px){.probe-search{flex-wrap:wrap}.probe-search input{flex-basis:100%}}
.process-table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}
.process-table th{font-weight:500;color:#c4a47c;font-size:11px;padding:12px 14px;white-space:nowrap;border-bottom:1px solid #5a4e3f}
.process-table td{padding:14px;border-bottom:1px solid #4f493e;vertical-align:top;font-family:var(--mono);line-height:1.6}
.process-table td:last-child{overflow-wrap:anywhere;min-width:150px}
.process-table td:first-child{min-width:120px}
.table-scroll{overflow-x:auto;margin-top:20px}
.device-fields .data-row{grid-template-columns:130px minmax(0,1fr);border-color:#ffffff12}
.device-fields .data-row strong{color:#e0d5c3;overflow-wrap:anywhere;text-align:left}
.device-fields .data-row>span{color:#a99b86}
.reply-preview .message-text{white-space:pre-wrap}
.choice-grid .choice{min-height:86px;display:grid;place-items:center}
.record-line .suspect-actions{flex-shrink:0}
@media(max-width:1000px){
 .terminal .workspace{grid-template-columns:minmax(0,1fr) minmax(320px,.95fr)}
 .terminal .metric-group{gap:14px}
 .terminal .metric>span{font-size:10px}
 .terminal .metric>strong{font-size:20px}
 .terminal .tool-slots{gap:5px}
}
@media(max-width:720px){
 .terminal{height:auto;min-height:100dvh}
 .terminal .workspace{display:flex;flex-direction:column;flex:initial;gap:14px}
 .terminal .chat-panel{height:520px}
 .terminal .dossier-panel{display:flex;height:auto;max-height:none}
 .terminal .dossier-body{max-height:600px;min-height:250px}
 .terminal .metrics{flex-wrap:wrap;gap:14px}
 .terminal .metric-group{width:100%;justify-content:space-between;gap:8px}
 .terminal .metric>strong{font-size:18px}
 .terminal .equipment-bar{position:sticky;bottom:0;z-index:5;background:#242320;padding:12px;display:flex;flex-direction:column;gap:12px;border-top:1px solid #635542}
 .terminal .tool-slots{width:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:6px}
 .terminal .tool-slot{width:100%}
 .terminal .decisions{display:grid;grid-template-columns:1.25fr 1fr;width:100%;gap:10px}
 .terminal .decisions .btn{min-width:0;white-space:normal;padding:12px 8px;font-size:12px}
 .device-fields .data-row{grid-template-columns:96px minmax(0,1fr)}
 .record-line p{font-size:12px}
 .terminal .composer>.row{gap:8px}
 .terminal .composer .btn{font-size:11px;padding:10px}
}
