/* Tech — Control Tower V2. Mêmes tokens que SYD Dev et Finance. Densité
   maîtrisée : des cartes à la hauteur de leur contenu, des lignes clé / valeur,
   des valeurs longues contenues (monospace, ellipse, valeur entière au survol).
   Trois espacements seulement : 6 px (dans une ligne), 12 px (entre lignes et
   blocs d'une carte), 16 px (entre cartes et sections). */

/* -- Primitives ------------------------------------------------------------- */

.tech-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.tech-val { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
span.tech-val, a.tech-val, strong.tech-val { display: inline-block; vertical-align: bottom; }
.tech-none { color: var(--muted); font-style: italic; font-size: 12px; }
.tech-muted { color: var(--muted); font-size: 11px; }
.tech-sha { padding: 1px 6px; border-radius: 6px; background: var(--surface-soft); color: var(--text);
  font: 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.tech-path { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.tech-fresh { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tech-fresh.is-stale { color: var(--yellow); font-weight: 600; }
.tech-fresh.is-unknown { font-style: italic; }
.tech-pill { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tech-pill svg { width: 12px; height: 12px; flex: none; }
.tech-error, .tech-error-inline { color: var(--red); }
.tech-error { display: flex; gap: 6px; align-items: flex-start; margin: 12px 0 0; font-size: 12px; overflow-wrap: anywhere; }
.tech-error svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.tech-error-inline { display: block; font-size: 11px; overflow-wrap: anywhere; }
.tech-note { display: flex; align-items: flex-start; gap: 6px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.tech-note svg { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.tech-kind { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 9px; background: var(--surface-soft); color: var(--brand-blue-dark); }
.tech-kind svg { width: 16px; height: 16px; }
.tech-state { display: grid; justify-items: end; align-content: start; gap: 2px; min-width: 0; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.tech-chips .dev-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-count { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red); font-size: 11px; font-weight: 700; text-align: center; }
.tech-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tech-badge.is-warning { border-color: rgba(154, 107, 9, .3); background: var(--yellow-soft); color: var(--yellow); }
.tech-badge.is-ok { border-color: rgba(31, 122, 80, .25); background: var(--green-soft); color: var(--green); }
.tech-badge.is-danger { border-color: rgba(179, 61, 54, .25); background: var(--red-soft); color: var(--red); }
.tech-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; }

/* Clé / valeur compactes : jamais une cellule vide de 300 px. */
.tech-kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 0 16px; margin: 12px 0 0; }
.tech-kv > div { display: grid; grid-template-columns: minmax(84px, 38%) minmax(0, 1fr); gap: 8px; align-items: baseline; min-width: 0; padding: 6px 0; border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-kv dt { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.tech-kv dd { margin: 0; min-width: 0; color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }
.tech-kv dd small { display: block; margin-top: 2px; }
.tech-kv.is-wide { grid-template-columns: 1fr; }
.tech-kv.is-wide > div { grid-template-columns: minmax(120px, 22%) minmax(0, 1fr); }

/* Carte de section : en-tête compact, contenu qui dicte la hauteur. */
.tech-card { min-width: 0; padding: 14px 16px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); }
.tech-card + .tech-card, .tech-card + .tech-pair, .tech-pair + .tech-card, .tech-pair + .tech-pair, .tech-summary + .tech-card,
.tech-levels + .tech-card, .perf-panel + .tech-card, .tech-pair + .perf-panel { margin-top: 16px; }
.tech-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tech-card-head > div { min-width: 0; }
.tech-card-head small { display: block; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tech-card-head h3 { margin: 2px 0 0; color: var(--text); font-size: 14.5px; }
.tech-card-head .text-button { flex: none; }
.tech-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tech-pair > .tech-card { margin-top: 0; }
.tech-card-head .text-button { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.tech-card-head .text-button svg { width: 13px; height: 13px; }

/* Synthèse : cinq métriques compactes, cliquables. */
.tech-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 16px; }
.tech-summary-item { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); text-align: left; font: inherit; color: inherit; }
button.tech-summary-item { cursor: pointer; }
button.tech-summary-item:hover { border-color: var(--line-strong); }
.tech-summary-item > span { display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px; background: var(--surface-soft); color: var(--brand-blue-dark); }
.tech-summary-item > span svg { width: 15px; height: 15px; }
.tech-summary-item > div { display: grid; gap: 1px; min-width: 0; }
.tech-summary-item small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tech-summary-item strong { color: var(--text); font-size: 15px; }
.tech-summary-item em { color: var(--muted); font-size: 11.5px; font-style: normal; line-height: 1.35; }
.tech-summary-item.is-warning { box-shadow: inset 3px 0 0 var(--yellow); }
.tech-summary-item.is-danger { box-shadow: inset 3px 0 0 var(--red); }

/* Lignes de liste denses : icône ou libellé, corps, état. */
.tech-rows { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.tech-rows > li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; padding: 8px 0; border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-rows > li:last-child { border-bottom: 0; }
.tech-rows.is-sub { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--mk-line); }
.tech-row-label { min-width: 92px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.tech-rows.is-sub .tech-row-label { color: var(--text); font-weight: 500; }
.tech-row-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-soft); color: var(--brand-blue-dark); }
.tech-row-icon svg { width: 14px; height: 14px; }
.tech-row-main { display: grid; gap: 1px; min-width: 0; }
.tech-row-main > strong { overflow: hidden; color: var(--text); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tech-row-main > small { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.tech-rows .tech-row-main:has(.dev-chip) { display: flex; flex-wrap: wrap; gap: 5px; }

/* Observation */
.tech-observation { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.tech-observation svg { width: 14px; height: 14px; flex: none; }
details.tech-observation { display: block; }
details.tech-observation > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
details.tech-observation > summary::-webkit-details-marker { display: none; }
details.tech-observation.has-failures > summary { color: var(--yellow); }
.tech-observation ul { display: grid; gap: 4px; margin: 8px 0 0; padding: 0; list-style: none; }
.tech-observation li { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 10px; padding: 6px 10px; border-radius: 8px; background: var(--surface-soft); }
.tech-observation li.is-failed strong { color: var(--red); }
.tech-observation li span { min-width: 0; overflow-wrap: anywhere; }

/* -- Sites ----------------------------------------------------------------- */

.tech-web-list { display: grid; gap: 16px; }
.tech-web { min-width: 0; padding: 14px 16px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); }
.tech-web.is-public { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--brand-blue-dark); }
.tech-web > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tech-web > header strong { display: block; font-size: 14.5px; }
.tech-web > header small { color: var(--muted); font-size: 12px; }
.tech-role { font-weight: 600; }
.tech-role.is-public { color: var(--brand-blue-dark); }
.tech-env-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tech-env { display: grid; gap: 4px; align-content: start; min-width: 0; padding: 8px 10px; border: 1px solid var(--mk-line); border-radius: 10px; }
.tech-env small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tech-env > span:not(.status-pill), .tech-env > a { min-width: 0; font-size: 12.5px; }
.tech-env .tech-pill { justify-self: start; }
.tech-env.is-empty { border-style: dashed; background: var(--surface-soft); }
.tech-env.is-empty > span { color: var(--muted); font-size: 12px; }
.tech-web footer.tech-actions { padding-top: 12px; border-top: 1px solid var(--hair, #edf1f5); }

/* -- Infrastructure / Databases ------------------------------------------------ */

.tech-resource-list { display: grid; gap: 16px; align-items: start; }
.tech-resource-list.is-two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.tech-resource { min-width: 0; padding: 14px 16px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); }
.tech-resource.is-retired { opacity: .6; }
.tech-resource > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.tech-resource > header > div { min-width: 0; }
.tech-resource > header strong { display: block; font-size: 14.5px; }
.tech-resource > header small { display: block; color: var(--muted); font-size: 12px; }
.tech-resource > header small.tech-mono { margin-top: 1px; font-size: 11px; }
.tech-subhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 0; }
.tech-subhead small { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .06em; }
.tech-services { display: grid; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.tech-service { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: start; min-width: 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); }
.tech-service .tech-row-main > small { white-space: nowrap; }
.tech-service .tech-chips { margin-top: 4px; }
.tech-resource > p.tech-chips { margin: 6px 0 0; }
.tech-resource > footer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.tech-resource > footer:empty { display: none; }
.tech-resource > footer small { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.tech-resource > footer small svg { width: 12px; height: 12px; }
.tech-resource > footer .dev-actions { margin-left: auto; }
.tech-worker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface-soft); font-size: 12px; color: var(--text); }
.tech-worker svg { width: 13px; height: 13px; color: var(--brand-blue-dark); }
.tech-worker.is-missing { color: var(--muted); }
.tech-worker.is-missing svg { color: var(--muted); }
.tech-worker small { color: var(--muted); }

/* -- Repositories --------------------------------------------------------- */

.tech-repo-index { display: grid; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tech-repo-row { display: grid; grid-template-columns: auto minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 14px; align-items: center; min-width: 0;
  padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hair, #edf1f5); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tech-repo-row:last-child { border-bottom: 0; }
.tech-repo-row:hover, .tech-repo-row:focus-visible { background: var(--surface-soft); }
.tech-repo-id { display: grid; gap: 1px; min-width: 0; }
.tech-repo-id strong { font-size: 13.5px; }
.tech-repo-id small { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.tech-repo-git { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.tech-repo-git > .tech-mono { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-repo-sync { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }

.tech-repo-split { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.tech-repo-split li { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 12px; }
.tech-repo-split li strong { color: var(--text); }
.tech-repo-split li.is-pending strong { color: var(--yellow); }
.repo-layers + .repo-chain, .repo-verdict + .repo-layers { margin-top: 12px; }
.repo-chain + .tech-pair { margin-top: 16px; }
.repo-layer .repo-layer-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.repo-layer dd.tech-mono { direction: ltr; text-align: right; }
.repo-chain-node.is-unknown { border-style: dashed; }
.repo-chain-node.is-unknown code { color: var(--muted); font-style: italic; }
.tech-change-counts { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.tech-change-counts b { color: inherit; }
.tech-files { display: grid; gap: 0; max-height: 420px; margin: 8px 0 0; padding: 0; overflow: auto; list-style: none; border: 1px solid var(--mk-line); border-radius: 10px; }
.tech-files > li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-files > li:last-child { border-bottom: 0; }
.tech-file-status { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: var(--yellow-soft); color: var(--yellow); font: 700 11px ui-monospace, Menlo, monospace; }
.tech-file-status.is-u, .tech-file-status.is-A { background: var(--green-soft); color: var(--green); }
.tech-file-status.is-D { background: var(--red-soft); color: var(--red); }
.tech-diff { grid-column: 1 / -1; max-height: 320px; margin: 6px 0 0; padding: 10px 12px; overflow: auto; border-radius: 8px; background: #0f1724; color: #d7e0ec;
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.repo-glossary { margin-top: 16px; }
.repo-glossary > summary { cursor: pointer; color: var(--text); font-size: 13px; font-weight: 600; }

/* -- Deployments ------------------------------------------------------------- */

.tech-deploy-list { display: grid; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tech-deploy { border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-deploy:last-child { border-bottom: 0; }
.tech-deploy.is-open { background: var(--surface-soft); }
.tech-deploy-row { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) minmax(0, 1fr) auto auto 16px; gap: 14px; align-items: center; width: 100%; min-width: 0;
  padding: 12px 16px; border: 0; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tech-deploy-row > svg { width: 15px; height: 15px; color: var(--muted); }
.tech-env-tag { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--brand-blue-dark); font-size: 11px; font-weight: 700; }
.tech-env-tag.is-production { background: var(--green-soft); color: var(--green); }
.tech-deploy-url { color: var(--muted); }
.tech-detail { padding: 0 16px; }
.tech-deploy footer.tech-actions { margin: 0; padding: 10px 16px 14px; }
.tech-missing { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.tech-missing span { padding: 3px 10px; border: 1px dashed var(--mk-line); border-radius: 999px; color: var(--muted); font-size: 11px; }

/* -- Monitoring -------------------------------------------------------------- */

.tech-levels { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-levels button, .tech-chipbar button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--mk-line); border-radius: 999px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.tech-levels button svg { width: 13px; height: 13px; }
.tech-levels button b, .tech-chipbar button b { color: var(--muted); font-weight: 700; }
.tech-levels button.active, .tech-chipbar button.active { border-color: var(--brand-blue-dark); background: var(--blue-soft); color: var(--brand-blue-dark); }
.tech-levels button.is-unavailable b { color: var(--red); }
.tech-levels button.is-degraded b, .tech-levels button.is-stale b { color: var(--yellow); }
.tech-health { display: grid; margin: 10px 0 0; padding: 0; list-style: none; }
.tech-health > li { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-health > li:last-child { border-bottom: 0; }
.tech-health .tech-row-main { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tech-health .dev-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-history { margin-top: 16px; }
.tech-history .tech-card-head .stack-search { max-width: 260px; }
.tech-history-filters { display: grid; gap: 8px; margin: 12px 0 0; }
.tech-chipbar { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chipbar button { padding: 4px 10px; font-size: 11.5px; }
.tech-events { display: grid; margin: 12px 0 0; padding: 0; list-style: none; }
.tech-events > li { display: grid; grid-template-columns: 128px 104px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--hair, #edf1f5); }
.tech-events > li.is-error { box-shadow: inset 3px 0 0 var(--red); padding-left: 10px; }
.tech-events time { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.tech-event-cat { justify-self: start; padding: 2px 8px; border-radius: 6px; background: var(--surface-soft); color: var(--brand-blue-dark); font-size: 11px; font-weight: 600; }
.tech-history-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }

/* -- Logs -------------------------------------------------------------------- */

.tech-log-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 8px; margin: 0 0 16px; }
.tech-log-source { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; min-width: 0; padding: 10px 12px;
  border: 1px solid var(--mk-line); border-radius: 10px; background: var(--surface); text-align: left; font: inherit; color: inherit; cursor: pointer; }
.tech-log-source > svg { grid-row: span 2; width: 16px; height: 16px; color: var(--brand-blue-dark); }
.tech-log-source span { display: grid; min-width: 0; }
.tech-log-source strong { overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.tech-log-source small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tech-log-source em { grid-column: 2; color: var(--muted); font-size: 11px; font-style: normal; }
.tech-log-source.active { border-color: var(--brand-blue-dark); background: var(--blue-soft); }
.tech-log-source.is-absent { cursor: default; opacity: .55; }
.tech-log-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tech-log-toolbar > strong { margin-right: 4px; font-size: 14px; }
.tech-log-toolbar .stack-search { flex: 1 1 200px; min-width: 0; max-width: 340px; }
.tech-log-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.tech-log-actions .is-active { border-color: var(--brand-blue-dark); color: var(--brand-blue-dark); }
.tech-log-meta { margin: 8px 0 0; color: var(--muted); font-size: 11.5px; }
.tech-log { height: min(62vh, 620px); margin: 10px 0 0; overflow: auto; border-radius: 10px; background: #0f1724; color: #d7e0ec;
  font: 11px/18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tech-log[hidden] { display: none; }
.tech-log-spacer { position: relative; min-width: max-content; }
.tech-log-window { position: absolute; top: 0; left: 0; min-width: 100%; will-change: transform; }
.tech-log-line { display: grid; grid-template-columns: 22px auto; align-items: center; height: 18px; padding: 0 14px 0 4px; }
.tech-log-line:hover { background: rgba(255, 255, 255, .06); }
.tech-log-line > span { white-space: pre; }
.tech-log-line.is-error > span { color: #ffb4a9; }
.tech-log-copy { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #8ea0b8; cursor: pointer; opacity: 0; }
.tech-log-line:hover .tech-log-copy, .tech-log-copy:focus-visible { opacity: 1; }
.tech-log-copy svg { width: 12px; height: 12px; }
.tech-log-empty { margin: 0; padding: 12px 14px; color: #8ea0b8; }
.tech-log-empty.is-standalone { margin-top: 10px; border-radius: 10px; background: #0f1724; }

/* Tableaux V1 encore utilisés par les formulaires de déclaration. */
.tech-table .tech-mono { font-size: 11px; }
.tech-table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.tech-table td small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

/* -- Petites largeurs -------------------------------------------------------- */

@media (max-width: 1100px) {
  .tech-env-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-repo-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tech-repo-git, .tech-repo-sync { grid-column: 2 / -1; }
  .tech-deploy-row { grid-template-columns: 90px minmax(0, 1fr) auto 16px; }
  .tech-deploy-url, .tech-deploy-row > .tech-repo-git { display: none; }
}

@media (max-width: 860px) {
  .tech-pair { grid-template-columns: minmax(0, 1fr); }
  .tech-events > li { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .tech-events time { grid-column: 1; }
  .tech-events .tech-event-cat { grid-column: 2; grid-row: 1; justify-self: end; }
  .tech-events .tech-row-main { grid-column: 1 / -1; }
  .tech-events > li > .status-pill { grid-column: 1 / -1; justify-self: start; }
  .tech-health > li { grid-template-columns: auto minmax(0, 1fr); }
  .tech-health > li > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .tech-resource > header, .tech-web > header { grid-template-columns: auto minmax(0, 1fr); }
  .tech-resource > header .tech-state, .tech-web > header .tech-state { grid-column: 1 / -1; justify-items: start; }
  .tech-service { grid-template-columns: auto minmax(0, 1fr); }
  .tech-service .tech-state { grid-column: 2; justify-items: start; }
  .tech-observation li { grid-template-columns: 1fr; gap: 2px; }
  .tech-path { max-width: 180px; }
  .tech-env-grid { grid-template-columns: minmax(0, 1fr); }
  .tech-repo-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
  .tech-repo-row > .tech-state { grid-column: 2; justify-items: start; }
  .tech-deploy-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 6px; }
  .tech-deploy-row > .tech-env-tag, .tech-deploy-row > .tech-row-main, .tech-deploy-row > .tech-state { grid-column: 1; }
  .tech-deploy-row > svg { grid-column: 2; grid-row: 1; }
  .tech-deploy-row > .tech-state { justify-items: start; }
  .tech-kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tech-kv.is-wide > div { grid-template-columns: minmax(0, 1fr); }
  .tech-history .tech-card-head { flex-wrap: wrap; }
  .tech-history .tech-card-head .stack-search { max-width: none; width: 100%; }
  .tech-log-actions { margin-left: 0; }
  .tech-log-toolbar .stack-search { max-width: none; flex-basis: 100%; }
  .tech-log { height: 58vh; }
  .tech-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .repo-layers { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .tech-summary { grid-template-columns: minmax(0, 1fr); }
}

/* Liens et pastilles dans les cellules d'environnement : la pastille garde sa taille, un lien n'est pas souligné. */
.tech-env > a, .tech-actions a, .tech-kv a, .tech-deploy a { color: var(--brand-blue-dark); text-decoration: none; }
.tech-env > a:hover, .tech-kv a:hover { text-decoration: underline; }
.tech-actions a.secondary-button { color: var(--text); }
/* Deux cartes par rangée : une paire clé / valeur par ligne, sinon les valeurs se tronquent. */
.tech-resource-list.is-two .tech-kv { grid-template-columns: minmax(0, 1fr); }
.tech-resource-list.is-two .tech-kv > div { grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); }

/* Retouches de recette 1280 */
.tech-calm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 14px; border: 1px solid rgba(31, 122, 80, .2); border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 12.5px; }
.tech-calm svg { width: 15px; height: 15px; flex: none; }
.tech-calm span { color: var(--text); opacity: .75; }
.tech-summary + .tech-calm { margin-bottom: 16px; }
.tech-calm + .tech-pair { margin-top: 0; }
.tech-health > li > .tech-pill, .tech-health > li > .status-pill { justify-self: start; }
.tech-health .tech-row-main { flex-wrap: nowrap; min-width: 0; }
.tech-health .tech-row-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-detail .tech-kv { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.tech-card .text-button { display: inline-flex; align-items: center; gap: 4px; }
.tech-card .text-button svg { width: 13px; height: 13px; }
.tech-health > li { grid-template-columns: 76px minmax(0, 2fr) minmax(0, 1fr); }
/* En-tête du Control Center : icônes de puce à la taille du texte, pas de puce dans la puce. */
.dev-product-head .syd-chips span svg { width: 13px; height: 13px; }
.dev-product-head .syd-chips span span { padding: 0; border: 0; background: none; }
@media (max-width: 720px) {
  /* Six sources en trois rangées compactes : le lecteur reste visible sans défiler. */
  .tech-log-sources { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tech-log-source { grid-template-columns: minmax(0, 1fr); padding: 8px 10px; }
  .tech-log-source > svg { display: none; }
  .tech-log-source em { grid-column: 1; }
}
@media (max-width: 860px) {
  .tech-health > li { grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; }
  .tech-health > li > :last-child { grid-column: 1 / -1; }
  .tech-health .tech-row-main { flex-wrap: wrap; }
  .tech-health .tech-row-main small { white-space: normal; }
}
