/* Extensions for live controls only. V6 layout remains in v6.css. */
.filters {
  padding: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.filters label {
  display: block;
  margin: 8px 0;
}
.filters input,
.filters select {
  width: 100%;
  min-width: 0;
}
.filters summary {
  cursor: pointer;
}
.flow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
}
.flow-tab {
  min-width: 0;
  min-height: 34px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.flow-tab.active {
  border-color: #8aa8db;
  background: var(--blue-soft);
  color: #274f91;
}
.filter-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.filter-pair label {
  min-width: 0;
}
.cir-nav > button,
.cir-nav > a {
  margin-top: 8px;
}
.empty {
  padding: 30px 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.form-grid label {
  display: grid;
  gap: 5px;
}
.form-grid input,
.form-grid select,
.form-grid textarea,
select,
input {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: white;
  color: var(--ink);
}
.form-grid textarea {
  min-height: 120px;
  width: 100%;
  resize: vertical;
}
.form-grid button {
  min-height: 40px;
}
.error {
  color: #a22e2e;
}
.unknown {
  color: var(--muted);
}
.source-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.code-wrap pre {
  max-width: 100%;
  overflow: auto;
}
.drawer {
  padding: 0;
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
  margin: 0;
  font-size: 18px;
}
.drawer-body {
  padding: 20px;
}
.admin-section {
  margin: 18px 0;
}
.admin-section pre {
  max-height: 500px;
  overflow: auto;
  background: var(--bg);
  padding: 12px;
  font-size: 12px;
}
.pending {
  padding: 10px 12px;
  background: var(--amber-soft);
  border: 1px solid #eed7b4;
  border-radius: 8px;
  margin: 10px 0;
}
.inline-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.provenance {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  font-weight: 700;
  font-size: 14px;
}
.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.metric-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.heading-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.head h1 {
  overflow-wrap: anywhere;
}
.top .badge-proto {
  background: transparent;
}
.drawer-body a {
  overflow-wrap: anywhere;
}
.analysis-point {
  overflow-wrap: anywhere;
}
.card p,
.card li {
  overflow-wrap: anywhere;
}
.card ul {
  padding-left: 20px;
}
.controls select {
  width: 100%;
  min-width: 0;
}
.severity-unknown {
  height: 5px;
  background: #d7dde7;
  border-radius: 4px;
  margin: 10px 0;
}
.form-grid .danger {
  color: #9b2222;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 400px) {
  .top {
    padding: 0 10px;
    gap: 8px;
  }
  .top-topic {
    display: none;
  }
}

.meter.level-low {
  --position: 12%;
}
.meter.level-moderate {
  --position: 40%;
}
.meter.level-high {
  --position: 68%;
}
.meter.level-critical {
  --position: 92%;
}

#subscribe {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: auto;
}
.cir-item-sev.unknown {
  background: #edf0f5;
  color: #63718a;
}
.cir-item-date {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.product-tags {
  align-items: center;
}
.vendor-tag {
  font-weight: 800;
}
.related-records {
  margin-bottom: 15px;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.related-cir {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.related-cir:hover,
.related-cir:focus-visible {
  border-color: #8aa8db;
  background: #f8faff;
}
.related-cir span,
.related-cir small {
  color: var(--muted);
}
.related-cir strong,
.related-cir small {
  overflow-wrap: anywhere;
}

.auth-card { max-width: 560px; margin: 24px auto; padding: 24px; }
.access-form { border-bottom: 1px solid #dce3ef; padding: 18px 0; }

.codex-json { color: #172740; background: #f2f5fa; border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }

#codex-export { grid-template-columns: minmax(0, 1fr); }
#codex-export label, #codex-export select { min-width: 0; max-width: 100%; width: 100%; }
#codex-export button { white-space: normal; }

.gpo-frame {
  width: 100%;
  height: 680px;
  max-height: 72vh;
  border: 1px solid #e0e6f0;
  border-radius: 10px;
  background: #fff;
}
/* Measures use the full card width; only the short category is a badge. */
.mastery-item { min-width: 0; padding: 20px 0; overflow-wrap: anywhere; }
.mastery-item + .mastery-item { border-top: 1px solid var(--line); }
.mastery-item:first-of-type { padding-top: 0; }
.mastery-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.mastery-policy { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.mastery-objective { font-size: 14px; font-weight: 650; line-height: 1.65; margin-bottom: 14px; }
.mastery-item h4 { font-size: 11px; color: var(--muted); margin: 0 0 6px; font-weight: 700; }
.mastery-action, .mastery-setting, .mastery-scope, .mastery-location { margin-top: 14px; min-width: 0; }
.mastery-item p, .mastery-item li { font-size: 13px; line-height: 1.7; }
.mastery-value { display: block; max-width: 100%; padding: 12px; background: var(--blue-soft); border: 1px solid #d8e4f9; border-radius: 7px; color: #234574; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; }
.mastery-item .btn { max-width: 100%; white-space: normal; height: auto; min-height: 38px; }
.mastery-conditions { margin-top: 15px; padding: 12px; background: #f8faff; border-radius: 7px; }
.mastery-conditions summary { cursor: pointer; color: #355b9b; font-size: 12px; font-weight: 650; }
.mastery-conditions[open] summary { margin-bottom: 14px; }
.mastery-conditions ul { margin: 0 0 12px; }
.mastery-conditions li + li { margin-top: 6px; }
.form-grid[hidden] { display: none; }

.gpo-viewport { max-width: 100%; overflow-x: auto; }
.gpo-frame.gpo-configured { min-width: 680px; }
@media (min-width: 760px) { #gpo-scroll-hint { display: none; } }
@media (min-width: 641px) and (max-width: 1080px) {
  .right:has(> .solution:only-child) {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 360px) {
  .flow-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Compact production reading view. */
.logo {
  gap: 10px;
}
.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
}
.brand-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}
.brand-copy strong {
  color: #fff;
  font-size: 20px;
  font-weight: 780;
  letter-spacing: 0.04em;
}
.brand-copy small {
  color: #aebbd0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.top-topic {
  margin-left: auto;
  color: #cbd5e5;
  font-size: 11px;
  font-weight: 650;
}
.record-summary {
  max-width: 960px;
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.compact-pending {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 9px;
  font-size: 10px;
}
.compact-strip {
  grid-template-columns: 0.75fr 1.65fr 0.8fr;
}
.record-core {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 15px;
  margin-bottom: 15px;
  min-width: 0;
}
.record-core > .card {
  height: 100%;
}
.essential-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
.essential-title {
  margin: 18px 0 8px;
  color: #263c5d;
  font-size: 12px;
  font-weight: 750;
}
.essential-list {
  margin: 0;
  padding-left: 18px !important;
}
.essential-list li {
  margin: 0 0 7px;
  font-size: 12px;
  line-height: 1.6;
}
.compact-details {
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.compact-details summary {
  cursor: pointer;
  color: #315994;
  font-size: 11px;
  font-weight: 700;
}
.compact-details[open] summary {
  margin-bottom: 10px;
}
.compact-details p,
.compact-details li {
  font-size: 11px;
  line-height: 1.65;
}
.before-after p:last-child {
  margin-bottom: 0;
}
.before-after-box {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--blue-soft);
  border: 1px solid #d8e4f9;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}
.before-after-box p {
  margin: 4px 0;
}
.exclusions-box, .unknowns-box, .observations-box {
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.sub-heading {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #274f91;
}
.exclusions-box ul, .unknowns-box ul {
  margin: 0;
  padding-left: 18px;
}
.exclusions-box li, .unknowns-box li, .observations-box p {
  margin: 4px 0;
  font-size: 12px;
  line-height: 1.6;
}
.impact-meta {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8faff;
  border-radius: 6px;
  border-left: 3px solid var(--blue);
  font-size: 12px;
}
.impact-verification {
  margin: 0 0 6px;
}
.impact-limits {
  margin: 6px 0 0;
}
.impact-limits ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.impact-item {
  padding: 0 0 15px;
}
.impact-item + .impact-item {
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.impact-heading {
  margin-bottom: 7px;
}
.impact-heading > span {
  color: var(--blue);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.impact-heading h3 {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.45;
}
.impact-item > p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.65;
}
.impact-condition {
  color: #485d7b;
}
.evidence-note {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}
.mastery-section {
  width: 100%;
  margin-bottom: 15px;
}
.section-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.section-intro {
  margin: -4px 0 4px !important;
  color: var(--muted);
  font-size: 11px !important;
}
.mastery-list {
  display: grid;
  min-width: 0;
}
.more-measures {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.more-measures > summary {
  cursor: pointer;
  color: #315994;
  font-size: 12px;
  font-weight: 750;
}
.more-measures[open] > summary {
  margin-bottom: 4px;
}
.mastery-item {
  padding: 16px 0;
}
.mastery-item:first-child {
  padding-top: 12px;
}
.mastery-heading {
  margin-bottom: 7px;
}
.mastery-policy {
  margin-bottom: 6px;
}
.mastery-command {
  max-width: 1040px;
  margin: 0 0 10px !important;
  color: #1c2d47;
  font-size: 13px !important;
  font-weight: 620;
  line-height: 1.6 !important;
}
.mastery-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.mastery-facts > div {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f5f7fb;
}
.mastery-facts span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mastery-facts strong {
  color: #29466f;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.mastery-location {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.gpo-path {
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
.gpo-inline {
  min-width: 0;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
}
.gpo-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f8faff;
  color: #263c5d;
  font-size: 11px;
}
.gpo-inline-message {
  margin: 0 !important;
  padding: 12px;
  color: var(--muted);
  font-size: 11px !important;
}
.gpo-inline .gpo-viewport {
  overflow: auto;
}
.gpo-inline .gpo-frame {
  display: block;
  height: min(560px, 64vh);
  min-height: 380px;
  border: 0;
  border-radius: 0;
}
.gpo-inline .gpo-fallback {
  margin: 0 !important;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 10px;
}
.proof-view blockquote {
  margin: 8px 0 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  color: #1c2d47;
  font-size: 13px;
  line-height: 1.65;
}
.proof-label {
  margin-bottom: 0 !important;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.source-archive {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.source-archive summary {
  cursor: pointer;
  color: #315994;
  font-size: 12px;
  font-weight: 700;
}
.source-archive pre {
  max-height: 330px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.mastery-conditions {
  margin-top: 10px;
  padding: 9px 10px;
}
.mastery-conditions[open] summary {
  margin-bottom: 8px;
}
.mastery-conditions ul {
  margin-bottom: 0;
}
.controls {
  margin-bottom: 15px;
}
.gpo-intro {
  color: var(--muted);
  font-size: 12px;
}
.gpo-frame {
  height: min(620px, 67vh);
  min-height: 440px;
}
.gpo-fallback {
  margin-top: 10px !important;
}
.gpo-fallback a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}
.gpo-fallback .icon {
  width: 13px;
  height: 13px;
}
@media (max-width: 900px) {
  .compact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-strip .metric:nth-child(3) {
    grid-column: 1 / -1;
  }
  .record-core {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .brand-copy small {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-copy strong {
    font-size: 18px;
  }
  .top-topic {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .compact-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .compact-strip .metric {
    border-left: 0 !important;
    border-top: 1px solid var(--line);
  }
  .compact-strip .metric:first-child {
    border-top: 0;
  }
  .mastery-facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .mastery-location {
    align-items: stretch;
    flex-direction: column;
  }
  .gpo-frame {
    min-height: 500px;
    height: 64vh;
  }
  .gpo-inline .gpo-frame {
    min-height: 440px;
  }
}

/* Executive DSI Alert Card */
.executive-alert {
  margin-bottom: 16px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid #e2b4b4;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(162, 46, 46, 0.07);
}
.executive-alert.level-critical,
.executive-alert.level-high {
  border-color: #f1c2c2;
  border-left: 6px solid #a22e2e;
}
.executive-alert.level-moderate {
  border-color: #f6debe;
  border-left: 6px solid var(--amber);
}
.executive-alert.level-low {
  border-color: #c9ebd8;
  border-left: 6px solid var(--green);
}
.exec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f8;
}
.exec-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a22e2e;
}
.executive-alert.level-moderate .exec-badge {
  color: var(--amber);
}
.executive-alert.level-low .exec-badge {
  color: var(--green);
}
.exec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
}
.exec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 960px) {
  .exec-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
.exec-col {
  padding: 13px 15px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fafbfe;
  display: flex;
  flex-direction: column;
}
.exec-col.danger {
  border-color: #f5d4d4;
  background: #fff8f8;
}
.exec-col.warning {
  border-color: #fae7cd;
  background: #fffbf5;
}
.exec-col.solution {
  border-color: #cfe1fa;
  background: #f4f8fe;
}
.exec-col-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.1px;
}
.exec-col.danger .exec-col-head { color: #a22e2e; }
.exec-col.warning .exec-col-head { color: #9c6014; }
.exec-col.solution .exec-col-head { color: #1c4bb7; }
.exec-col p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink);
}
.exec-col ul {
  margin: 0;
  padding-left: 17px;
  font-size: 12px;
  line-height: 1.6;
}
.exec-col li {
  margin-bottom: 4px;
}
.exec-col li:last-child {
  margin-bottom: 0;
}
.exec-col .exec-pill {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #e6effc;
  color: #1a4296;
  font-size: 11px;
  font-weight: 750;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.exec-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 5px;
  background: #1c4bb7;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}
.exec-action-btn:hover {
  background: #153a91;
  text-decoration: none;
}

/* ==========================================================================
   Long Search Bar & Collapsible Technical Filter Hub ("et plus encore")
   ========================================================================== */
.search-filter-hub {
  position: relative;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  z-index: 30;
}
.search-hub-inner {
  max-width: 1880px;
  margin: 0 auto;
  padding: 14px 24px;
}
.search-bar-row {
  display: flex;
  align-items: center;
  height: 44px;
  gap: 8px;
  flex-wrap: nowrap;
}
.search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 240px;
  height: 44px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}
.search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search-box input.cir-search {
  width: 100%;
  height: 44px;
  margin: 0 !important;
  padding: 0 40px 0 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13.5px;
  letter-spacing: -0.1px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.02) inset;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-sizing: border-box;
}

/* Hide native browser search cancel button to prevent duplicate or misaligned clear buttons */
.search-box input.cir-search::-webkit-search-cancel-button,
.search-box input.cir-search::-webkit-search-decoration,
.search-box input.cir-search::-webkit-search-results-button,
.search-box input.cir-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-box input.cir-search:focus {
  border-color: var(--accent);
  background: #ffffff;
  outline: none;
  box-shadow: 0 0 0 2px var(--accent-weak);
}
.search-box input.cir-search::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin: 0;
  transition: all 0.15s ease;
  z-index: 2;
}
.clear-search-btn:hover {
  background: #cbd5e1;
  color: var(--ink);
}
.codir-actions-group {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}
.btn-action-icon,
.btn-codir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  flex-shrink: 0;
  box-sizing: border-box;
}
.btn-action-icon:hover,
.btn-codir:hover {
  border-color: var(--accent);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(47, 77, 196, 0.12);
}
.btn-action-icon:active,
.btn-codir:active {
  transform: scale(0.96);
}
.btn-action-icon .icon,
.btn-codir .icon {
  width: 18px;
  height: 18px;
  margin: 0;
}
.active-filter-badge {
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}
.reset-filters-btn {
  height: 38px;
  padding: 0 13px;
  border: 1px dashed #d17a7a;
  border-radius: 8px;
  background: #fff8f8;
  color: #9f2a2a;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.reset-filters-btn:hover {
  background: #fde8e8;
  border-color: #8c1c1c;
}
.hub-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Quick Filter Chips */
.quick-filter-chips {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.chips-label {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 3px;
}
.quick-chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.quick-chip:hover {
  background: var(--surface);
  border-color: #cbd5e1;
  color: var(--ink);
}
.quick-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

/* Collapsible Filter Panel ("et plus encore") */
.filters-collapsible-panel {
  margin-top: 14px;
  padding: 18px 22px;
  border: 1px solid #d4dfef;
  border-radius: 12px;
  background: #f8fafe;
  box-shadow: 0 6px 20px rgba(18, 34, 63, 0.06);
  animation: filterSlideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes filterSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.filters-panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e1ebf6;
}
.filters-panel-header strong {
  font-size: 14px;
  color: #172a46;
  font-weight: 750;
}
.filters-panel-header .caption {
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
}
.filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1280px) {
  .filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .filters-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: #ffffff;
  padding: 14px 15px;
  border-radius: 9px;
  border: 1px solid #e2eaf5;
}
.filter-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2b456e;
  padding-bottom: 6px;
  margin-bottom: 4px;
  border-bottom: 2px solid #e5edf8;
}
.filter-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #435876;
}
.filter-group select {
  width: 100%;
  height: 36px;
  padding: 6px 9px;
  border: 1px solid #c9d5e6;
  border-radius: 6px;
  background: #fafbfe;
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.15s ease;
}
.filter-group select:focus {
  border-color: var(--blue);
  background: #ffffff;
  outline: none;
}
.filter-actions-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}
.filter-actions-row .btn {
  flex: 1;
  min-height: 36px;
  font-size: 12px;
  font-weight: 650;
}

/* =========================================================
   View Mode Switcher (Option 1: DSI vs Technical)
   ========================================================= */
.view-mode-bar {
  margin-bottom: 14px;
}
.view-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #edf2f9;
  padding: 5px;
  border-radius: 11px;
  border: 1px solid #d5e0f0;
}
.view-mode-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 10px 14px;
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  color: #4b607e;
}
.view-mode-tab:hover {
  background: #f8fafe;
  color: var(--ink);
}
.view-mode-tab.active {
  background: #ffffff;
  border-color: #2b6cb0;
  color: #142744;
  box-shadow: 0 2px 8px rgba(18, 43, 80, 0.08);
}
.view-mode-tab .tab-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 750;
  line-height: 1.3;
}
.view-mode-tab .tab-recommended {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 20px;
  background: #e1f5ea;
  color: #166534;
}
.view-mode-tab .tab-desc {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.35;
}
.view-mode-tab.active .tab-desc {
  color: #3b5175;
}

/* =========================================================
   Cartouches KPIs Réinventés (Option 2)
   ========================================================= */
.kpi-strip {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px;
  margin-bottom: 16px;
  border: none !important;
  background: transparent !important;
}
.kpi-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 16px !important;
  background: #ffffff !important;
  border: 1px solid #dbe4f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(18, 38, 68, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  min-height: 118px;
}
.kpi-card:hover {
  border-color: #bcd0ea !important;
  box-shadow: 0 4px 12px rgba(18, 38, 68, 0.08);
}
.kpi-card + .kpi-card {
  border-left: 1px solid #dbe4f0 !important;
}
.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.kpi-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #556987;
}
.kpi-eyebrow .icon {
  width: 12px;
  height: 12px;
  color: #70829c;
}
.kpi-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.kpi-huge {
  font-size: 20px;
  font-weight: 850;
  color: #182a44;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.kpi-card .meter {
  width: 72px;
  height: 7px;
  margin: 0 !important;
  flex: 0 0 72px;
  align-self: center;
}
.kpi-card .meter i {
  height: 7px;
}
.kpi-huge.level-critical {
  color: #b91c1c;
}
.kpi-huge.level-high {
  color: #c2410c;
}
.kpi-huge.level-moderate {
  color: #b45309;
}
.kpi-huge.level-low {
  color: #15803d;
}
.kpi-countdown {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  background: #eef4ff;
  color: #1e40af;
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
}
.kpi-lead {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: #2c3e55;
  line-height: 1.4;
}
.kpi-subtle {
  margin: 4px 0 0;
  font-size: 11px;
  color: #728399;
  line-height: 1.35;
}
.kpi-pills-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.kpi-pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: #e8f0fe;
  color: #1e429f;
  font-size: 11px;
  font-weight: 750;
  border: 1px solid #c7dcfa;
}
.kpi-pill.sub {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
.kpi-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 750;
}
.kpi-status-badge.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.kpi-status-badge.warn {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1200px) {
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 640px) {
  .view-mode-tabs {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* =========================================================
   DSI Mode Filtering (Hides 80% heavy technical text)
   ========================================================= */
.view-mode-dsi .tech-hidden {
  display: none !important;
}
.view-mode-dsi .summary-compact {
  font-size: 13.5px;
  color: #3b4e6b;
  line-height: 1.5;
  margin-bottom: 12px;
}
.view-mode-dsi .dsi-condensed .essential-lead {
  font-size: 14px;
  line-height: 1.6;
  color: #1e293b;
  padding: 10px 14px;
  background: #f8fafc;
  border-left: 3.5px solid #3b82f6;
  border-radius: 0 7px 7px 0;
  margin: 0;
}
.mode-tag {
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 4px;
  background: #eff6ff;
  color: #1d4ed8;
  margin-left: auto;
}

/* Bottom banner to expand to full technical dossier */
.dsi-expand-banner {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: linear-gradient(135deg, #f0f6ff 0%, #f8fafc 100%);
  border: 1px solid #c9dcf4;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.05);
}
.expand-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.expand-banner-icon {
  font-size: 24px;
  flex: 0 0 auto;
}
.expand-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 300px;
}
.expand-banner-copy strong {
  font-size: 13px;
  color: #1e3a8a;
  font-weight: 750;
}
.expand-banner-copy span {
  font-size: 11.5px;
  color: #475569;
}
#btn-expand-tech {
  flex: 0 0 auto;
  padding: 8px 16px;
  background: #1e40af;
  color: #ffffff;
  border: 1px solid #1e3a8a;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
#btn-expand-tech:hover {
  background: #1d4ed8;
  box-shadow: 0 2px 6px rgba(30, 64, 175, 0.25);
}

/* =========================================================
   Vue Synthèse DSI Unique : Lignes de 6 Cartes (Carte 0 + 5)
   ========================================================= */
body.dsi-unique-view .cir-nav,
body.dsi-unique-view .nav-toggle,
body.dsi-unique-view .nav-backdrop {
  display: none !important;
}

body.dsi-unique-view .app-shell {
  display: block !important;
  max-width: 1880px !important;
  margin: 0 auto !important;
  padding: 12px 24px 60px !important;
}

.dsi-matrix-view {
  padding: 8px 0 40px !important;
  max-width: 100% !important;
  min-width: 0;
}

/* Bandeau KPIs Macro DSI */
.dsi-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.dsi-kpi-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 18px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}
.dsi-kpi-card:hover {
  border-color: #cbd5e1;
  background: var(--surface);
}
.dsi-kpi-card.active {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
}
.dsi-kpi-card .kpi-content {
  display: flex;
  flex-direction: column;
}
.dsi-kpi-card .kpi-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  font-family: var(--mono);
}
.dsi-kpi-card .kpi-total {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dsi-kpi-card.active .kpi-value {
  color: var(--accent);
}
.dsi-kpi-card .kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}
.dsi-kpi-card.active .kpi-label {
  color: var(--accent);
}

@media (max-width: 900px) {
  .dsi-kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Barre de Tri et Filtres Macro DSI */
.dsi-sort-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.04);
}

.dsi-sort-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.dsi-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-family: var(--sans);
}

.dsi-sort-label .icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.dsi-sort-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dsi-sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1.2;
}

.dsi-sort-chip:hover {
  background: var(--surface);
  border-color: #cbd5e1;
  color: var(--ink);
}

.dsi-sort-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(47, 77, 196, 0.2);
}

.dsi-sort-chip .chip-text {
  letter-spacing: 0.01em;
}

.dsi-sort-chip .chip-order-badge {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-family: var(--mono);
}

.dsi-sort-chip.active .chip-order-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-weight: 700;
}

.dsi-sort-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dsi-order-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.dsi-order-toggle-btn:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.dsi-order-toggle-btn .toggle-icon {
  font-size: 12px;
  line-height: 1;
}
.dsi-matrix-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}

.dsi-matrix-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 960px;
}

.dsi-issue-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(22, 24, 29, 0.03);
  transition: all 0.15s ease;
  overflow: hidden;
}

.dsi-issue-row:hover {
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(22, 24, 29, 0.06);
}

.dsi-issue-row.expanded {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 3px 10px rgba(47, 77, 196, 0.08);
}

.dsi-row-cards {
  display: grid;
  grid-template-columns: minmax(220px, 1.35fr) minmax(145px, 0.8fr) minmax(190px, 1.05fr) minmax(230px, 1.35fr) minmax(190px, 1.1fr);
  gap: 0;
  align-items: stretch;
  min-height: 140px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s ease;
}

.dsi-row-cards:hover {
  background-color: var(--surface);
}

.dsi-issue-row.active-row .dsi-row-cards {
  background-color: var(--accent-weak);
}

.dsi-card {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border);
  font-size: 12px;
}

.dsi-card:last-child {
  border-right: none;
}

.card-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.card-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Carte 0 : CIR & Titre */
.card-0-meta {
  background: #ffffff;
  border-left: 3px solid var(--accent);
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.dsi-id-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 750;
  color: var(--accent);
  background: var(--accent-weak);
  border: 1px solid rgba(47, 77, 196, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}

.dsi-kind-badge {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-0-meta .dsi-title {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-0-meta .desc-text {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-expand-indicator {
  margin-top: auto;
  display: flex;
  align-items: center;
}

.expand-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 7px;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.dsi-row-cards:hover .expand-tag {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.card-expand-indicator.active .expand-tag {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

/* 1ère Carte : Criticité & Calendrier */
.card-1-thermo {
  background: #ffffff;
}

.card-1-thermo .card-header-mini {
  flex-wrap: wrap;
  gap: 4px;
}

.severity-vertical-block {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 8px;
}

/* Thermomètre vertical de précision réaliste */
.v-thermo-widget {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 14px;
  flex-shrink: 0;
  user-select: none;
}

.v-thermo-stem {
  position: relative;
  width: 6px;
  height: 28px;
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Graduations fines sur le tube de verre */
.v-thermo-stem::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(
    to bottom,
    rgba(100, 116, 139, 0.4) 1px,
    transparent 1px,
    transparent 7px,
    rgba(100, 116, 139, 0.4) 7px,
    rgba(100, 116, 139, 0.4) 8px,
    transparent 8px,
    transparent 14px,
    rgba(100, 116, 139, 0.4) 14px,
    rgba(100, 116, 139, 0.4) 15px,
    transparent 15px,
    transparent 21px,
    rgba(100, 116, 139, 0.4) 21px,
    rgba(100, 116, 139, 0.4) 22px,
    transparent 22px
  );
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

.v-thermo-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 1px 1px 0 0;
  transition: height 0.3s ease;
  z-index: 1;
}

.v-thermo-fill.level-critical { height: 100%; background: #dc2626; }
.v-thermo-fill.level-high { height: 75%; background: #ea580c; }
.v-thermo-fill.level-moderate { height: 50%; background: #ca8a04; }
.v-thermo-fill.level-low { height: 25%; background: #16a34a; }

.v-thermo-bulb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: -3px;
  border: 1.5px solid rgba(15, 23, 42, 0.2);
  z-index: 3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.v-thermo-bulb.level-critical { background: #dc2626; border-color: #b91c1c; box-shadow: 0 1px 3px rgba(220, 38, 38, 0.3); }
.v-thermo-bulb.level-high { background: #ea580c; border-color: #c2410c; box-shadow: 0 1px 3px rgba(234, 88, 12, 0.3); }
.v-thermo-bulb.level-moderate { background: #ca8a04; border-color: #a16207; box-shadow: 0 1px 3px rgba(202, 138, 4, 0.3); }
.v-thermo-bulb.level-low { background: #16a34a; border-color: #15803d; box-shadow: 0 1px 3px rgba(22, 163, 74, 0.3); }

.severity-meta-col {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.sev-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.sev-badge.level-critical {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.sev-badge.level-high {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.sev-badge.level-moderate {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.sev-badge.level-low {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Compteur compact Nv X/4 */
.sev-counter-badge {
  font-size: 10px;
  font-weight: 800;
  font-family: var(--mono);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.2;
}

.sev-counter-badge.level-critical {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.sev-counter-badge.level-high {
  background: #ffedd5;
  color: #9a3412;
  border: 1px solid #fdba74;
}

.sev-counter-badge.level-moderate {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.sev-counter-badge.level-low {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.dsi-countdown {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}
.dsi-countdown.active {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
  font-weight: 750;
}

.dates-block {
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px dashed #e2e8f0;
}

.date-val {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #1e293b;
}

.date-val .icon {
  width: 12px;
  height: 12px;
  color: #64748b;
}

.date-ctx {
  display: block;
  font-size: 10px;
  color: #94a3b8;
  margin-top: 2px;
}

/* 2ème Carte : Description */
.card-2-desc {
  background: #ffffff;
}

.desc-text {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 3ème Carte : Exposition & Produit */
.card-3-expo {
  background: #ffffff;
}

.update-header {
  margin-bottom: 6px;
}

.update-code {
  display: block;
  font-size: 11.5px;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.4;
  word-break: break-word;
}

.expo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.dsi-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 10.5px;
  font-weight: 650;
  border: 1px solid #cbd5e1;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.3;
}

.dsi-pill.sub {
  background: #f8fafc;
  color: #475569;
  border-color: #e2e8f0;
}

/* 4ème Carte : Impacts Opérationnels */
.card-4-risks {
  background: #ffffff;
  justify-content: flex-start;
}

.card-4-risks .card-header-mini {
  margin-bottom: 6px;
}

.risks-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.risks-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #334155;
  font-weight: 500;
}

.risks-list .risk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64748b;
  margin-top: 5px;
  flex-shrink: 0;
}

.risks-list .risk-text {
  flex: 1;
  overflow-wrap: break-word;
}

/* 5ème Carte : Comment tester + Actions */
.card-5-test {
  background: #ffffff;
}

.test-method {
  font-size: 11px;
  color: #334155;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.test-method strong {
  color: #0f172a;
  font-weight: 700;
}

.test-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.btn-test {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 650;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-test .icon {
  width: 11px;
  height: 11px;
}

.btn-test:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-test.ps {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-test.ps:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.btn-test.splunk {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-test.splunk:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.gpo-status-row {
  margin-top: auto;
}

.gpo-badge {
  display: block;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gpo-badge.success {
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.gpo-badge.warning {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* =========================================================
   Expanded Dossier Compact ("Droit au but")
   ========================================================= */
.expanded-dossier {
  border-top: 2px solid #0f172a;
  background: #f8fafc;
  padding: 12px 14px;
  animation: dossierExpand 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dossierExpand {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.dossier-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.compact-panel {
  background: #ffffff !important;
  border: 1px solid #d8e2ef !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
}

.panel-head h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
}

.panel-tag {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.panel-tag.blue { background: #f1f5f9; color: #0f172a; border: 1px solid #cbd5e1; }
.panel-tag.green { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

.compact-before-after {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 5px;
  border-left: 3px solid #0f172a;
  font-size: 11.5px;
}

.ba-row {
  display: flex;
  gap: 6px;
  line-height: 1.35;
}

.ba-label {
  font-weight: 800;
  font-size: 10.5px;
  text-transform: uppercase;
  color: #475569;
  flex-shrink: 0;
}

.ba-row.after .ba-label {
  color: #0f172a;
}

.compact-section-box {
  margin-bottom: 8px;
  font-size: 11.5px;
  line-height: 1.4;
}

.box-subtitle {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #475569;
  margin-bottom: 3px;
}

.trigger-lead {
  margin: 0 0 4px;
  color: #1e293b;
}

.compact-list {
  margin: 2px 0 0;
  padding-left: 16px;
  color: #475569;
  font-size: 11px;
}

/* Industrial Solution Box */
.industrial-solution-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
}

.sol-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  line-height: 1.35;
}

.sol-label {
  font-size: 10.5px;
  font-weight: 750;
  color: #64748b;
  flex-shrink: 0;
  min-width: 110px;
}

.sol-val {
  color: #0f172a;
  font-size: 12px;
}

.sol-badge.success {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  padding: 1px 6px;
  border-radius: 4px;
}

.sol-reg-block {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #059669;
  border-radius: 5px;
  padding: 6px 8px;
  margin: 3px 0;
}

.sol-reg-block.command-block {
  border-left-color: #2563eb;
}

.sol-reg-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}

.sol-reg-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
  color: #0f172a;
  background: #e2e8f0;
  padding: 2px 5px;
  border-radius: 3px;
  word-break: break-all;
}

.sol-reg-kv {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10.5px;
  color: #334155;
  padding-top: 3px;
  border-top: 1px dashed #cbd5e1;
}

.sol-highlight {
  color: #059669;
  font-weight: 850;
  font-size: 11.5px;
}

.sol-row.action-effect {
  background: #f0fdf4;
  border-radius: 4px;
  padding: 5px 7px;
  color: #166534;
  font-size: 11px;
}

.sol-row.action-effect .sol-label {
  color: #166534;
}

.industrial-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.btn-industrial {
  font-size: 10.5px !important;
  font-weight: 750 !important;
  padding: 4px 8px !important;
  border-radius: 5px !important;
}

.close-dossier-btn {
  font-weight: 700 !important;
  font-size: 10.5px !important;
  padding: 4px 8px !important;
}

/* Styles d'impression & export PDF pour CODIR */
@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 9.5pt;
  }
  .top,
  .search-filter-hub,
  .cir-nav,
  .nav-backdrop,
  .nav-toggle,
  .toast,
  .badge-proto,
  .card-expand-indicator,
  .test-actions,
  .industrial-actions-row,
  .btn-test,
  .btn-industrial,
  .close-dossier-btn,
  .caption {
    display: none !important;
  }
  .app-shell {
    display: block !important;
  }
  .main {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .dsi-matrix-header-bar {
    border-bottom: 2px solid #0f172a !important;
    margin-bottom: 12px !important;
    padding-bottom: 8px !important;
  }
  .dsi-matrix-table-wrap {
    box-shadow: none !important;
    border: 1px solid #94a3b8 !important;
    overflow: visible !important;
  }
  .dsi-table-columns-header {
    border-bottom: 2px solid #475569 !important;
    background: #f1f5f9 !important;
    padding: 6px 0 !important;
  }
  .col-th {
    color: #0f172a !important;
    font-size: 9pt !important;
  }
  .dsi-issue-row {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #cbd5e1 !important;
    margin-bottom: 8px !important;
    box-shadow: none !important;
  }
  .dsi-row-cards {
    min-height: auto !important;
  }
  .dsi-card {
    border-right: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #1e293b !important;
    padding: 8px !important;
  }
  .dsi-title {
    color: #0f172a !important;
    font-size: 10pt !important;
    -webkit-line-clamp: unset !important;
  }
  .desc-text,
  .risks-list li,
  .update-code,
  .test-method {
    color: #1e293b !important;
    font-size: 8.5pt !important;
  }
  .dsi-kpi-strip {
    margin-bottom: 12px !important;
    gap: 8px !important;
  }
  .dsi-kpi-card {
    border: 1px solid #cbd5e1 !important;
    box-shadow: none !important;
    padding: 6px 10px !important;
  }
  .dsi-kpi-card .kpi-value {
    font-size: 14pt !important;
    color: #0f172a !important;
  }
  .dsi-kpi-card .kpi-label {
    font-size: 8pt !important;
    color: #475569 !important;
  }
}

/* =========================================================
   Horizon Nav Tabs (Actuel / À venir / Archives)
   ========================================================= */
.horizon-nav-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 8px 0;
  padding: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.horizon-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: all 0.15s ease-in-out;
}

.horizon-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: #cbd5e1;
}

.horizon-tab.active {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.08);
}

.horizon-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.horizon-dot.current {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.horizon-dot.future {
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.horizon-dot.archive {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.15);
}

.horizon-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.horizon-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.horizon-desc {
  font-size: 10.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.horizon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 10px;
  background: #e2e8f0;
  color: #334155;
}

.horizon-tab.active .horizon-badge {
  background: #0f172a;
  color: #ffffff;
}

.horizon-tab[data-horizon="current"].active .horizon-badge {
  background: #dc2626;
  color: #ffffff;
}

.dsi-community-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .horizon-nav-tabs {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 640px) {
  /* Search Hub & Anti-Overflow */
  .search-hub-inner {
    padding: 10px 12px;
  }
  .search-bar-row {
    display: flex;
    flex-wrap: wrap;
    height: auto;
    gap: 8px;
    align-items: center;
  }
  .search-box {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    height: 40px;
  }
  .search-box input.cir-search {
    height: 40px;
    font-size: 13px;
    padding: 0 34px 0 38px;
  }
  .codir-actions-group {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    flex: 0 0 auto;
  }
  .btn-action-icon,
  .btn-codir {
    width: 38px;
    height: 38px;
  }
  .btn-action-icon .icon,
  .btn-codir .icon {
    width: 16px;
    height: 16px;
  }
  .hub-count-pill {
    height: 38px;
    padding: 0 10px;
    font-size: 11.5px;
    margin-left: auto;
    flex: 0 0 auto;
  }

  /* Quick filter chips: smooth horizontal swipe strip on mobile */
  .quick-filter-chips {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    margin-top: 8px;
    padding-top: 6px;
    padding-bottom: 4px;
  }
  .quick-filter-chips::-webkit-scrollbar {
    display: none;
  }
  .quick-chip {
    flex-shrink: 0;
    padding: 4px 10px;
    font-size: 11px;
  }

  /* App Shell & DSI View Padding */
  body.dsi-unique-view .app-shell {
    padding: 10px 12px 40px !important;
  }
  /* KPI Strip on Mobile: 2 columns, compact padding */
  .dsi-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .dsi-kpi-card {
    padding: 10px 12px;
  }
  .dsi-kpi-card .kpi-value {
    font-size: 18px;
  }
  .dsi-kpi-card .kpi-label {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }

  /* Sort toolbar on Mobile */
  .dsi-sort-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
  }
  .dsi-sort-left {
    flex-wrap: wrap;
    gap: 6px;
  }
  .dsi-sort-chips {
    flex-wrap: wrap;
    gap: 6px;
  }
  .dsi-sort-chip {
    padding: 4px 8px;
    font-size: 11px;
  }
  .dsi-sort-right {
    justify-content: flex-end;
  }
}





/* Search remains in the header; horizon and scope share the next row. */
.top .search-bar-row {
  flex: 1 1 auto;
  min-width: 0;
}
.top .search-box {
  min-width: 0;
}
.top .badge-proto {
  margin-left: 0;
}
.horizon-scope-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 2fr);
  align-items: end;
  gap: 12px;
}
.horizon-scope-row .horizon-nav-tabs {
  margin: 0;
}
.scope-selector-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.scope-selector-row label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.scope-selector-row select {
  min-width: 0;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.scope-selector-row select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
#product option:disabled {
  color: #8490a2;
  background: #f1f3f7;
}
@media (max-width: 1080px) {
  .top {
    height: auto;
    min-height: var(--header-height);
    flex-wrap: wrap;
    padding-block: 8px;
  }
  .top .search-bar-row {
    flex: 1 1 100%;
    order: 2;
  }
}
@media (max-width: 900px) {
  .horizon-scope-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .horizon-scope-row .horizon-nav-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .horizon-scope-row .horizon-desc {
    display: none;
  }
}
@media (max-width: 640px) {
  .top .search-bar-row {
    min-height: 0;
  }
  .horizon-scope-row .horizon-tab {
    gap: 6px;
    padding: 8px 6px;
  }
  .horizon-scope-row .horizon-badge {
    min-width: 20px;
    padding: 0 4px;
  }
}
@media (max-width: 380px) {
  .scope-selector-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The CIR matrix becomes a vertical reading layout instead of a 960px scroller. */
@media screen and (max-width: 900px) {
  .dsi-matrix-table-wrap {
    overflow-x: visible;
    padding-bottom: 0;
  }
  .dsi-matrix-rows {
    min-width: 0;
  }
  .dsi-row-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dsi-card {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .dsi-card:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
  .dossier-compact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .compact-panel,
  .sol-val,
  .sol-text,
  .ba-text {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .panel-head,
  .card-meta-top,
  .sol-row {
    flex-wrap: wrap;
  }
  .sol-label {
    min-width: 0;
  }
}
@media screen and (max-width: 640px) {
  .dsi-row-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .dsi-card:last-child {
    grid-column: auto;
  }
  .expanded-dossier {
    padding: 10px;
  }
  .compact-panel {
    padding: 12px !important;
  }
}
