/* COMPASS+ · Capa industrial. Tokens, instrumentación y controles. */

/* Diseño técnico · tokens canónicos para nuevos componentes */
:root {
  --canvas:#F8FAFC;
  --surface:#FFFFFF;
  --surface-2:#F8FAFC;
  --border:#E2E8F0;
  --divider:#E2E8F0;
  --accent:#0F627A;
  --accent-subtle:#ECF4F6;
  --ink:#162D3B;
  --ink-soft:#475569;
  --muted:#64748B;
  --radius:6px;
  --state-favorable:#10B981;
  --state-intermediate:#D97706;
  --state-restrictive:#E11D48;
  --map-panel-shadow:0 4px 20px -2px rgba(15,23,42,.08),0 0 0 1px rgba(15,23,42,.06);
}
.technical-value,
.vessel-meta,.vessel-dimensions,
.vessel-tag.speed,
.band-speed,.band-distance,
.evaluation-ship-dimensions,
.time-readout,#passTimeLabel,
#timeOffsetLabel,
#meteoWindSummary,
.meteo-lane-values strong,
.meteo-slot strong,
.threshold-axis-tick,
.mini-coordinate,
#helpDialog :is(.source-kv .technical-value,.technical-value),
.port-call-record dd:is([data-field="eta"],[data-field="etd"]),
.ship-ais-details dd {
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-variant-numeric:tabular-nums;
  letter-spacing:-.015em;
}
.vessel-dimensions {white-space:nowrap;font-size:10.5px;}
.vessel-meta {font-size:10px!important;line-height:1.4;}
.sidebar,.planning-pane {background:rgba(255,255,255,.95);backdrop-filter:blur(12px);}
.workspace .map-overlay,
.workspace .floating-time-dock {background:rgba(255,255,255,.95);backdrop-filter:blur(12px);box-shadow:var(--map-panel-shadow);border-radius:10px;border-color:#E2E8F0;}
/* Eslora: histograma y rango tienen exactamente la misma anchura útil. */
.length-histogram {margin-inline:8px;padding:4px 0 0;gap:2px;height:36px;}
.length-histogram-bar {border-radius:1px 1px 0 0;background:#3D8B9C;}
.length-dual-range {margin:3px 8px 1px;height:26px;}
.length-dual-track {height:4px;top:12px;background:#D8E4EA;}
.length-dual-fill {background:#0F627A;}
.length-dual-range input[type=range] {height:26px;}
.length-dual-range input[type=range]::-webkit-slider-thumb {width:14px;height:14px;border:1px solid #0F627A;box-shadow:0 1px 2px rgba(15,23,42,.2);}
.length-dual-range input[type=range]::-moz-range-thumb {width:14px;height:14px;border:1px solid #0F627A;box-shadow:0 1px 2px rgba(15,23,42,.2);}
.workspace .vessel-assign {width:28px;height:28px;min-width:28px;border:1px solid transparent;border-radius:6px;background:transparent;color:#0F627A;transition:background 120ms,border-color 120ms;}
.workspace .vessel-assign:hover,.workspace .vessel-assign[aria-expanded="true"] {background:#E8F3F6;border-color:#BDD4DC;}
.sr-only {position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}

/* Instrumentación / escenario · geometría y affordances uniformes */
.workspace .scenario-choice {display:block;min-width:0;border:0;background:transparent;border-radius:0;padding:0;margin:0;}
.workspace .scenario-choice legend {float:none;display:block;width:100%;margin:0 0 7px;padding:0;background:transparent;color:#475569;font-weight:700;font-size:11px;}
.workspace .scenario-choice-options {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:4px;border-radius:9px;background:#F1F5F9;padding:4px;}
.workspace .scenario-choice label {position:relative;display:flex;align-items:center;justify-content:center;min-height:32px;background:transparent;border:1px solid transparent;border-radius:6px;color:#64748B;font-size:11px;font-weight:650;cursor:pointer;transition:background 120ms,color 120ms;}
.workspace .scenario-choice label:has(input:checked) {background:#fff;color:#0F627A;border-color:#E2E8F0;box-shadow:0 1px 3px rgba(15,23,42,.08);}
.workspace .scenario-choice label:has(input:focus-visible) {outline:2px solid #0F627A;outline-offset:2px;}
.workspace .scenario-choice input[type=radio] {position:absolute;width:1px;height:1px;margin:0;opacity:0;pointer-events:none;}
.workspace #scenarioEditor {gap:0;}
.workspace #scenarioEditor > .selection-heading {padding:11px 0 6px;border-bottom:1px solid #E2E8F0;}
.workspace .role-card,.workspace .role-card.has-assignment {position:relative;border:0;border-bottom:1px solid #E2E8F0;border-radius:0;box-shadow:none;background:transparent;padding:12px 3px 13px;gap:7px;outline:none;transition:background 120ms;}
.workspace .role-card .role-title {display:flex;gap:7px;align-items:center;flex-wrap:nowrap;}
.workspace .role-card .role-dot {width:7px;height:7px;}
.workspace .role-card .role-actions {flex:1;display:flex;justify-content:flex-end;gap:3px;flex-wrap:nowrap;min-width:0;}
.workspace .role-card [data-edit-role],.workspace .role-card [data-clear-role] {display:grid;place-items:center;flex:0 0 26px;min-width:26px;width:26px;height:26px;padding:0;margin:0;border:1px solid transparent;background:transparent;color:#64748B;border-radius:6px;}
.workspace .role-card [data-edit-role]:not(:disabled):hover,.workspace .role-card [data-clear-role]:not(:disabled):hover {background:#F1F5F9;border-color:#E2E8F0;color:#0F627A;}
.workspace .role-card .create-ship-button {flex:none;min-height:26px;margin:0 4px 0 0;padding:4px 6px;border:0;border-radius:6px;background:transparent;color:#0F627A;font-size:10px;font-weight:700;}
.workspace .role-card .create-ship-button:hover {background:#EEF6F8;}
.workspace .role-card select {height:32px;border:1px solid #E2E8F0;border-radius:6px;background:#fff;color:#1E3947;font-size:11px;padding:5px 8px;}
.workspace .role-card .role-details {font-size:10px;line-height:1.4;color:#64748B;}
.workspace .scenario-footer-hint:empty {display:none;}
.workspace .map-overlay {border-radius:10px;}
.workspace .map-overlay > .map-layers,.workspace .map-overlay > .quiet-btn {border-radius:6px;}
.workspace .map-layers > summary {border-radius:6px;}
.workspace .map-layers-body {border-radius:10px;border:1px solid #E2E8F0;box-shadow:var(--map-panel-shadow);padding:10px 12px;}
.workspace .map-layers-body .basemap-choice {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #E2E8F0;padding-top:9px;margin-top:5px;}
.workspace .map-layers-body .basemap-choice select {max-width:115px;margin-left:auto;}
.workspace .speed-criteria {display:flex;align-items:center;gap:9px 13px;flex-wrap:wrap;border-bottom:1px solid #E2E8F0;padding:6px 0 10px;}
.workspace .speed-limit,.workspace .speed-limit.within,.workspace .speed-limit.partial,.workspace .speed-limit.attention {display:inline-flex;align-items:center;gap:5px;padding:0;border:0;border-radius:0;background:transparent;font-size:10px;white-space:nowrap;}
.workspace .speed-limit::before {content:'';display:inline-block;width:6px;height:6px;min-width:6px;border-radius:50%;background:#94A3B8;}
.workspace .speed-limit.within {color:#065F46;}.workspace .speed-limit.within::before {background:#10B981;}
.workspace .speed-limit.partial {color:#92400E;}.workspace .speed-limit.partial::before {background:#D97706;}
.workspace .speed-limit.attention {color:#9F1239;}.workspace .speed-limit.attention::before {background:#E11D48;}
.workspace .band-chart-v12 .band-bar {display:grid;grid-template-rows:20px 65px 19px 18px 17px;align-items:center;justify-items:center;gap:2px;justify-content:stretch;padding:3px 2px 5px;border-radius:4px;}
.workspace .band-chart-v12 .band-bar-track {height:65px;width:100%;align-self:stretch;}
.workspace .band-chart-v12 .band-bar-fill {background:#10B981;}
.workspace .band-bar.partial .band-bar-fill {background:#D97706;}
.workspace .band-bar.attention .band-bar-fill {background:#E11D48;}
.workspace .band-bar .band-speed {font-size:12px;line-height:20px;}
.workspace .band-bar .band-direction {font-size:16px;line-height:19px;}
.workspace .band-bar .band-label {font-size:11px;line-height:18px;}
.workspace .band-bar .band-distance {font-size:10px;line-height:17px;}
.workspace .floating-time-dock .meteo-lane {grid-template-columns:94px minmax(0,1fr);gap:8px;}
.workspace .floating-time-dock .meteo-lane-heading {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px;}
.workspace .floating-time-dock .meteo-lane-heading strong {font-size:10px;}
.workspace .floating-time-dock .meteo-lane-heading small {font-size:9px;}
.workspace .floating-time-dock .meteo-slot-glyph {display:grid;place-items:center;width:18px;height:18px;color:#64748B;opacity:.75;}
.workspace .floating-time-dock .meteo-slot strong,.workspace .floating-time-dock .meteo-lane-heading small {font-family:ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums;}
.workspace .floating-time-dock .time-step-control {border-radius:6px;border-color:#E2E8F0;background:#fff;box-shadow:none;color:#0F627A;}
.workspace .floating-time-dock .time-step-control:hover {background:#F1F5F9;border-color:#C9D8DF;box-shadow:none;}
@media(max-width:620px) {
 .workspace .role-card .create-ship-button {font-size:9px;padding-inline:3px;}
 .workspace .role-card .role-actions {gap:1px;}
 .workspace .floating-time-dock .meteo-lane {grid-template-columns:75px minmax(0,1fr);gap:4px;}
}
@media(prefers-reduced-motion:reduce){.workspace .scenario-choice label,.workspace .role-card,.workspace .vessel-assign {transition:none!important;}}

/* Margen de lectura en el inspector. Mantener simetría cabecera/cuerpo/pie. */
.workspace:not(.inspector-collapsed) .pane-heading {padding-inline:16px;}
.workspace:not(.inspector-collapsed) .planning-pane .pane-scroll {padding:11px 16px 18px;}
.workspace:not(.inspector-collapsed) .scenario-footer {padding:12px 16px 14px;}
