/* P1.10 cockpit — scoped to #p110-cockpit. Tokens from tokens.css. */
#p110-cockpit {
  --p110-accent: #45deec;
  --p110-amber: #ffb838;
  --p110-success: #61db8e;
  --p110-text: #ecf5ff;
  --p110-muted: #9eb5c9;
  --p110-surface: #0c1d2d;
  --p110-panel: rgba(12, 29, 45, 0.72);
  --p110-stroke: rgba(69, 222, 236, 0.28);
  color: var(--p110-text);
  font-family: var(--font-family-base);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1460px;
}

#p110-cockpit[data-mode="hover"] {
  --p110-state: var(--p110-amber);
}
#p110-cockpit[data-mode="selected"] {
  --p110-state: var(--p110-accent);
}
#p110-cockpit[data-mode="success"] {
  --p110-state: var(--p110-success);
}

.p110-banner {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--p110-success);
  color: #02140c;
  font-size: 13px;
  font-weight: 600;
}
#p110-cockpit[data-mode="success"] .p110-banner {
  display: flex;
}

.p110-search {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid #334757;
  background: #101e2c;
}
.p110-search__step {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--p110-surface);
  border: 1px solid transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}
.p110-search__step.is-active {
  border-color: var(--p110-accent);
  box-shadow: inset 0 0 0 1px rgba(69, 222, 236, 0.35);
}
.p110-search__k {
  font-size: 12px;
  font-weight: 600;
}
.p110-search__v {
  font-size: 11px;
  color: var(--p110-muted);
}

.p110-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #2c3c4e;
  border-radius: 12px;
  background: #0d1723;
  padding: 0;
}
.p110-kpi {
  position: relative;
  padding: 8px 14px;
  min-height: 88px;
  border-radius: var(--radius-md);
  background: transparent;
}
.p110-kpi__label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--p110-muted);
}
.p110-kpi__value {
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  margin-top: 4px;
}
.p110-kpi__hint {
  font-size: 12px;
  color: var(--p110-muted);
  margin-top: 4px;
}
.p110-kpi__icon {
  position: absolute;
  top: 24px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(69, 222, 236, 0.12);
  color: var(--p110-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.p110-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(260px, 0.95fr) minmax(280px, 1.05fr);
  gap: 16px;
}
.p110-card {
  position: relative;
  border-radius: 16px;
  padding: 16px 20px 20px;
  background: linear-gradient(160deg, rgba(17, 40, 58, 0.9), rgba(8, 18, 30, 0.92));
  border: 1px solid var(--p110-stroke);
  min-height: 432px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#p110-cockpit[data-mode="hover"] .p110-card--piece {
  border-color: var(--p110-amber);
  box-shadow: 0 0 0 1px rgba(255, 184, 56, 0.35);
}
#p110-cockpit[data-mode="selected"] .p110-card--piece {
  border-color: var(--p110-accent);
  box-shadow: 0 0 0 1.5px rgba(69, 222, 236, 0.55);
}
#p110-cockpit[data-mode="success"] .p110-card--piece {
  border-color: var(--p110-success);
  box-shadow: 0 0 0 1.5px rgba(97, 219, 142, 0.55);
}

.p110-badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #021014;
}
.p110-badge--amber { background: var(--p110-amber); }
.p110-badge--cyan { background: var(--p110-accent); }
.p110-badge--green { background: var(--p110-success); }

.p110-kicker {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.p110-kicker h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
}
.p110-ex {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--p110-muted);
}

.p110-vehicle-id {
  font-size: 17px;
  font-weight: 600;
}
.p110-vehicle-meta {
  font-size: 13px;
  color: var(--p110-muted);
}

.p110-stage {
  position: relative;
  height: 172px;
  overflow: hidden;
  border-radius: 12px;
}
.p110-stage__img {
  position: absolute;
  left: 16%;
  top: -2%;
  width: 69%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.p110-halo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.p110-halo--engine {
  left: 12.3%;
  top: -2%;
  width: 130px;
  height: 110px;
  background: radial-gradient(circle, rgba(255, 184, 56, 0.45), rgba(255, 184, 56, 0.08) 70%);
  box-shadow: 0 0 28px rgba(255, 184, 56, 0.75);
  border: 3px dashed var(--p110-amber);
}
.p110-halo--brake {
  left: 27.1%;
  top: 38.4%;
  width: 140px;
  height: 120px;
  background: radial-gradient(circle, rgba(69, 222, 236, 0.42), rgba(69, 222, 236, 0.08) 70%);
  box-shadow: 0 0 30px rgba(69, 222, 236, 0.85);
  border: 3px solid var(--p110-accent);
}
.p110-halo--success {
  left: 31.4%;
  top: 45.3%;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgba(97, 219, 142, 0.4), rgba(97, 219, 142, 0.08) 70%);
  box-shadow: 0 0 22px rgba(97, 219, 142, 0.7);
  border: 3px solid var(--p110-success);
}
.p110-halo--spot {
  width: 72px;
  height: 72px;
  margin-left: -20px;
  margin-top: -20px;
  background: radial-gradient(circle, rgba(69, 222, 236, 0.4), rgba(69, 222, 236, 0.08) 70%);
  box-shadow: 0 0 22px rgba(69, 222, 236, 0.7);
  border: 3px solid var(--p110-accent);
}
#p110-cockpit[data-mode="hover"] .p110-halo--engine { opacity: 1; }
#p110-cockpit[data-mode="selected"][data-zone="freinage"] .p110-halo--brake { opacity: 1; }
#p110-cockpit[data-mode="success"] .p110-halo--success { opacity: 1; }
#p110-cockpit[data-mode="selected"]:not([data-zone="freinage"]) .p110-halo--spot { opacity: 1; }

.p110-callout {
  position: absolute;
  left: 14px;
  top: 8px;
  z-index: 2;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #021014;
}
#p110-cockpit[data-mode="hover"] .p110-callout { background: var(--p110-amber); }
#p110-cockpit[data-mode="selected"] .p110-callout { background: var(--p110-accent); }
#p110-cockpit[data-mode="success"] .p110-callout { background: var(--p110-success); }

.p110-hotspot {
  position: absolute;
  z-index: 3;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1.5px solid rgba(69, 222, 236, 0.7);
  border-radius: 50%;
  background: rgba(2, 8, 16, 0.72);
  color: var(--p110-text);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.p110-hotspot[data-state="hover"] {
  border: 2px solid var(--p110-amber);
  background: rgba(255, 184, 56, 0.22);
  box-shadow: 0 0 12px rgba(255, 184, 56, 0.65);
}
.p110-hotspot[data-state="selected"] {
  border: 2px solid #fff;
  background: var(--p110-accent);
  color: #021014;
  box-shadow: 0 0 14px rgba(69, 222, 236, 0.75);
}
.p110-hotspot[data-state="success"] {
  border: 2px solid #fff;
  background: var(--p110-success);
  color: #021014;
  box-shadow: 0 0 14px rgba(97, 219, 142, 0.7);
}
.p110-hotspot:focus-visible {
  outline: 2px solid var(--p110-accent);
  outline-offset: 2px;
}

.p110-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.p110-chip {
  width: 112px;
  min-width: 104px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--p110-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.p110-chip__t {
  display: block;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p110-chip__s {
  display: block;
  font-size: 9px;
  color: var(--p110-muted);
}
.p110-chip[data-state="hover"] {
  border: 1.5px dashed var(--p110-amber);
  background: rgba(255, 184, 56, 0.12);
}
.p110-chip[data-state="hover"] .p110-chip__t { color: var(--p110-amber); }
.p110-chip[data-state="selected"] {
  border: 2px solid var(--p110-accent);
  background: rgba(69, 222, 236, 0.2);
}
.p110-chip[data-state="selected"] .p110-chip__t { color: var(--p110-accent); }
.p110-chip[data-state="success"] {
  border: 2px solid var(--p110-success);
  background: rgba(97, 219, 142, 0.18);
}
.p110-chip[data-state="success"] .p110-chip__t { color: var(--p110-success); }

.p110-caption {
  font-size: 12px;
  color: var(--p110-muted);
}

.p110-part-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.p110-part-ref {
  margin: 0;
  font-size: 13px;
  color: var(--p110-muted);
}
.p110-part-family {
  font-size: 12px;
  font-weight: 600;
  color: #f0c887;
}
.p110-suppliers p {
  margin: 2px 0 0;
  font-size: 11px;
}
.p110-suppliers p.is-warn {
  color: #ff9e51;
}
.p110-card--neo {
  border-color: #655d8c;
}
.p110-btn:disabled {
  cursor: default;
  opacity: 0.95;
}
.p110-searchbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(660px, 100%);
  height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid #346071;
  background: #07111f;
  color: #aec1d1;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.p110-searchbar span:last-child {
  margin-left: auto;
  font-size: 11px;
  color: #8fa9bc;
}
.p110-reset {
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #03202d;
  background: linear-gradient(130deg, #67ebf4 0%, #27c5e0 91%);
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(57, 221, 237, 0.16);
}
.p110-kpi__hint.is-ok { color: #88e7c9; }
.p110-kpi__hint.is-accent { color: var(--p110-accent); }
.p110-kpi__hint.is-warn { color: #f0c887; }
.p110-chart {
  position: relative;
  height: 84px;
  width: 100%;
}
.p110-chart canvas {
  width: 100% !important;
  height: 100% !important;
}
.p110-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.p110-banner__txt { margin: 0; }
#dashboard-activity-feed.p110-feed {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 126px;
}
.p110-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.p110-metrics--2 { grid-template-columns: 1fr 1fr; }
.p110-metric {
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--p110-surface);
}
.p110-metric__k {
  display: block;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--p110-muted);
}
.p110-metric__v {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.p110-metric__v.is-ok { color: #6be69e; }
.p110-metric__v.is-warn { color: #ff9e51; }

.p110-suppliers {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--p110-surface);
  font-size: 11px;
}
.p110-suppliers strong {
  display: block;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--p110-muted);
  margin-bottom: 4px;
}
.p110-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p110-btn {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: var(--p110-surface);
  color: var(--p110-text);
}
.p110-btn--accent {
  background: var(--p110-accent);
  color: #021014;
}
.p110-btn--purple {
  background: #bca8ff;
  color: #050d17;
}
#p110-cockpit[data-mode="success"] .p110-btn--accent {
  background: var(--p110-success);
  color: #02140c;
}

.p110-neo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.p110-neo-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.p110-neo-avatar {
  width: 148px;
  height: 174px;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
  background: #061018;
}
.p110-neo-copy h4 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 26px;
  font-weight: 600;
}
.p110-neo-copy p {
  margin: 0;
  font-size: 14px;
  color: var(--p110-muted);
  line-height: 1.4;
}
.p110-alert {
  font-size: 11px;
  color: #ff9e51;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--p110-surface);
}
#p110-cockpit[data-mode="hover"] .p110-alert { color: var(--p110-amber); }
#p110-cockpit[data-mode="success"] .p110-alert { color: var(--p110-success); }
.p110-sugg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p110-sugg button {
  border: 1px solid rgba(168, 130, 255, 0.45);
  background: var(--p110-surface);
  color: var(--p110-text);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
}
.p110-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 10px;
  border-radius: 12px;
  background: var(--p110-surface);
}
.p110-input input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--p110-text);
  font-size: 11px;
  min-width: 0;
}
.p110-input input:focus { outline: none; }
.p110-mic {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #8b6cff;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.p110-mic.is-muted {
  opacity: 0.45;
}
.p110-reco {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--p110-surface);
  font-size: 11px;
}
.p110-reco span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--p110-muted);
}

.p110-bottom {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.25fr) minmax(260px, 1fr);
  gap: 16px;
}
.p110-card--short {
  min-height: 216px;
}
.p110-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.p110-shortcut {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: var(--p110-surface);
  color: inherit;
  text-align: left;
  cursor: pointer;
  min-height: 44px;
}
.p110-shortcut strong { font-size: 13px; }
.p110-shortcut span { font-size: 11px; color: var(--p110-muted); }

.p110-perf-value {
  font-size: 28px;
  font-weight: 600;
}
.p110-agenda-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 42px;
  font-size: 12px;
}
.p110-agenda-row time {
  width: 48px;
  color: var(--p110-accent);
  font-weight: 600;
}
.p110-status {
  font-size: 12px;
  color: var(--p110-muted);
}

.p110-demo {
  font-size: 10px;
  color: var(--p110-muted);
}

@media (max-width: 1280px) {
  .p110-kpis,
  .p110-search {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .p110-main,
  .p110-bottom {
    grid-template-columns: 1fr;
  }
  .p110-card,
  .p110-card--short { min-height: 0; }
}
@media (max-width: 768px) {
  .p110-kpis,
  .p110-search {
    grid-template-columns: 1fr 1fr;
  }
  .p110-chip { width: calc(50% - 4px); }
  .p110-neo-avatar { width: 96px; height: 112px; }
}
