/* Entity views (site / project / machine), overview tiles, timelines, visits, issues, docs, photos, charts, technicians, health. */

/* ── Entity shell ── */
.entity { min-height: 100%; }
.entity-head { padding: var(--s-3) var(--s-4) var(--s-3); display: grid; gap: 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; font-size: var(--fs-12); }
.crumbs li + li::before { content: "/"; color: var(--c-faint); margin-right: 4px; }
.crumb { border: 0; background: none; padding: 2px 0; color: var(--c-brand-600); font-size: var(--fs-12); font-weight: 600; }
.crumb:hover { text-decoration: underline; }
.entity-titlebar { display: flex; align-items: flex-start; gap: 10px; }
.entity-kind { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-2); background: var(--c-brand-50); color: var(--c-brand); flex: none; margin-top: 1px; }
.entity-titles { flex: 1; min-width: 0; }
.entity-title { font-size: var(--fs-20); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.entity-sub { color: var(--c-muted); font-size: var(--fs-13); margin-top: 2px; }
.entity-close { margin: -4px -8px 0 0; }
.entity-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--fs-12); color: var(--c-ink-2); }
.meta-item { display: inline-flex; align-items: center; gap: 4px; }
.entity-pane { padding: var(--s-4); }

/* ── Tiles (alert strip / stats) ── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; margin-bottom: var(--s-4); }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-2);
  background: var(--c-surface); text-align: left; min-width: 0; font: inherit; color: inherit;
}
button.tile:hover { border-color: var(--c-brand-100); background: var(--c-brand-50); }
.tile-label { font-size: var(--fs-12); color: var(--c-muted); display: flex; align-items: center; gap: 5px; font-weight: 600; }
.tile-value { font-size: var(--fs-20); font-weight: 650; line-height: 1.2; color: var(--c-ink); }
.tile-sub { font-size: var(--fs-12); color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-warn { border-color: #F0D3A6; background: var(--c-warn-bg); }
.tile-warn .tile-label, .tile-warn .tile-sub { color: var(--c-warn); }
.tile-good .tile-label { color: var(--c-good); }
.tile-info .tile-label { color: var(--c-info); }
.tile-muted .tile-value { color: var(--c-ink-2); }

/* ── Contacts ── */
.contact-list { display: grid; gap: 6px; margin-bottom: 6px; }
.contact { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); }
.contact-text { flex: 1; min-width: 0; }
.contact-name { font-weight: 650; font-size: var(--fs-13); }
.contact-role, .contact-lines { font-size: var(--fs-12); color: var(--c-muted); }
.contact-lines { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.contact-actions { display: flex; gap: 2px; }
.contact-actions .icon-btn { color: var(--c-brand-600); }

/* ── Charts ── */
.chart-grid { display: grid; gap: var(--s-3); }
.chart { margin: 0; border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); padding: 10px 12px 12px; position: relative; }
.chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.chart-title { font-size: var(--fs-13); font-weight: 650; }
.chart-actions { display: flex; gap: 2px; }
.chart-svg { display: block; overflow: visible; }
.chart-axis, .chart-gridline { stroke: var(--c-line); stroke-width: 1; }
.chart-label { font-size: 11px; fill: var(--c-ink-2); }
.chart-value { font-size: 11px; font-weight: 650; fill: var(--c-ink); font-variant-numeric: tabular-nums; }
.chart-tick { font-size: 10px; fill: var(--c-muted); font-variant-numeric: tabular-nums; }
.chart-hit { fill: transparent; }
.chart-row:hover .chart-hit { fill: var(--c-surface-2); }
.chart-row:hover .chart-bar { fill: var(--c-brand); }
.chart-tip { position: absolute; pointer-events: none; opacity: 0; background: var(--c-ink); color: #fff; font-size: var(--fs-12); padding: 4px 8px; border-radius: var(--r-1); white-space: nowrap; transition: opacity .1s; z-index: 5; }
.chart-tip.show { opacity: 1; }
.chart-note { margin-top: 6px; font-size: var(--fs-12); color: var(--c-muted); }
.chart-large { border: 0; padding: 0; }
.chart-details { margin-top: 12px; }
.chart-details summary { cursor: pointer; color: var(--c-brand-600); font-size: var(--fs-13); margin-bottom: 8px; }

/* ── Toolbars in tabs ── */
.toolbar-row { display: flex; gap: 8px; margin-bottom: var(--s-3); flex-wrap: wrap; }
.toolbar-row .input[type="search"] { flex: 1 1 200px; }
.entity-pane > .input[type="search"], .docs > .input[type="search"] { margin-bottom: var(--s-3); }
.list-meta { font-size: var(--fs-12); color: var(--c-muted); margin-bottom: 6px; }

/* ── Timelines (tickets, milestones, activity) ── */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; display: flex; gap: 10px; padding: 0 0 12px; }
.tl-item::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--c-line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; margin-top: 3px; border-radius: 50%; flex: none; background: var(--c-faint); border: 2px solid var(--c-surface); box-shadow: 0 0 0 1px var(--c-line-2); position: relative; z-index: 1; }
.tl-good { background: var(--c-good); }
.tl-info { background: var(--c-brand-600); }
.tl-warn { background: #C77700; }
.tl-muted { background: var(--c-faint); }
.tl-body { flex: 1; min-width: 0; }
.tl-title { font-weight: 600; font-size: var(--fs-13); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-sub { font-size: var(--fs-12); color: var(--c-muted); margin-top: 1px; }
.tl-text { font-size: var(--fs-13); color: var(--c-ink-2); margin-top: 4px; overflow-wrap: anywhere; }
.tl-resolution { color: var(--c-good); }
.timeline-compact .tl-item { padding-bottom: 8px; }

/* ── Visits ── */
.visits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.visit { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--c-line); border-left: 3px solid var(--c-brand-600); border-radius: var(--r-2); background: var(--c-surface); }
.visit-tentative { border-left-style: dashed; border-left-color: #C77700; }
.visit-out { border-left-color: var(--c-danger); }
.visit-date { display: flex; flex-direction: column; min-width: 64px; }
.visit-day { font-weight: 700; font-size: var(--fs-13); }
.visit-to { font-size: var(--fs-11); color: var(--c-muted); }
.visit-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.visit-title { font-weight: 600; font-size: var(--fs-13); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.visit-sub, .visit-links { font-size: var(--fs-12); color: var(--c-muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.visit-comment { font-size: var(--fs-12); color: var(--c-ink-2); background: var(--c-surface-2); border-radius: var(--r-1); padding: 4px 8px; margin-top: 4px; }

/* ── Issues ── */
.issue { border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); margin-bottom: 8px; }
.issue-open { border-left: 3px solid #C77700; }
.issue > summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 10px 12px; cursor: pointer; }
.issue > summary::-webkit-details-marker { display: none; }
.issue-title { flex: 1 1 200px; font-weight: 600; font-size: var(--fs-13); }
.issue-meta { padding: 0 12px; font-size: var(--fs-12); color: var(--c-muted); }
.issue-text, .issue-next { padding: 6px 12px 10px; font-size: var(--fs-13); color: var(--c-ink-2); overflow-wrap: anywhere; }
.issue-next { padding-top: 0; }
details.more > summary { cursor: pointer; color: var(--c-brand-600); font-size: var(--fs-13); margin: 6px 0; }
.rich { font-size: var(--fs-13); color: var(--c-ink-2); overflow-wrap: anywhere; }
.rich p { margin: 0 0 6px; }
.rich table { border-collapse: collapse; font-size: var(--fs-12); }
.rich td, .rich th { border: 1px solid var(--c-line); padding: 3px 6px; }

.visible-nosite { font-size: var(--fs-12); margin-left: 6px; white-space: nowrap; }

/* ── Documents ── */
.doc-row {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 12px; border: 0; border-bottom: 1px solid var(--c-line);
  background: var(--c-surface); text-align: left; font-size: var(--fs-13);
}
.doc-row:last-of-type { border-bottom: 0; }
.doc-row:hover { background: var(--c-surface-2); }
.docs > .doc-row, .doc-rows > .doc-row { border: 1px solid var(--c-line); border-radius: var(--r-1); margin-bottom: 4px; }
.doc-rows > .doc-row:last-of-type { border-bottom: 1px solid var(--c-line); }
.doc-thumb { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-1); overflow: hidden; background: var(--c-surface-2); }
.doc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; opacity: 0; transition: opacity .2s; }
.doc-thumb img.loaded { opacity: 1; }
.doc-thumb.thumb-broken img { display: none; }
/* A ticket's photos and attachments, under the ticket */
.file-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.strip-tile { width: 64px; height: 64px; padding: 0; border: 1px solid var(--c-line); cursor: pointer; }
.strip-tile:hover, .strip-tile:focus-visible { border-color: var(--c-brand); }
.strip-more { display: grid; place-items: center; border-radius: var(--r-1); background: var(--c-surface-2); color: var(--c-ink-2); font-size: var(--fs-12); font-weight: 600; }
.docs .photo-grid { margin: 4px 0 8px; }
.photo-grid > [data-all] { grid-column: 1 / -1; }
.doc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.doc-meta { font-size: var(--fs-12); color: var(--c-muted); white-space: nowrap; }
.doc-action { font-size: var(--fs-12); color: var(--c-brand-600); font-weight: 650; }
.file-ic { display: inline-grid; place-items: center; width: 34px; height: 22px; border-radius: 4px; font-size: 9px; font-weight: 800; letter-spacing: .04em; flex: none; background: var(--c-surface-3); color: var(--c-ink-2); }
.file-ic-pdf { background: #FCE9E7; color: #A8261B; }
.file-ic-dwg, .file-ic-dxf { background: #E8F1FA; color: #1B5A96; }
.file-ic-img { background: #E6F3EA; color: #1B6E33; }
.file-ic-vid { background: #EFE8FA; color: #5B2E9E; }
.file-ic-doc { background: #E7EEFB; color: #1F4E9E; }
.file-ic-xls { background: #E6F3EA; color: #17613A; }
/* Viewer: fills the window (drawings are dense), header holds the caption and actions. */
.dialog-backdrop-viewer { padding: 10px; }
.dialog.dialog-viewer { width: 100%; height: 100%; max-height: none; }
.dialog-viewer .dialog-head { padding: 6px 8px 6px 16px; }
.dialog-viewer .dialog-title { font-size: var(--fs-14); }
.dialog-viewer .dialog-body { padding: 0; display: flex; overflow: hidden; }
.dialog-viewer:fullscreen { border-radius: 0; }
.dv-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.dv-cap { font-size: var(--fs-12); color: var(--c-muted); margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.dv { flex: 1; display: flex; min-height: 0; min-width: 0; }
.dv-stage { position: relative; flex: 1; display: flex; min-height: 0; min-width: 0; }
.dv-body { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: auto; background: var(--c-surface-2); display: grid; place-items: center; }
.dv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.dv-img { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; cursor: zoom-in; }
.dv-body.dv-zoom { display: block; }
.dv-body.dv-zoom .dv-img { position: static; max-width: none; max-height: none; margin: 0; cursor: zoom-out; }
.dv-video { position: absolute; inset: 0; margin: auto; max-width: 100%; max-height: 100%; background: #000; }
.dv-text { align-self: stretch; justify-self: stretch; white-space: pre-wrap; padding: 12px 16px; margin: 0; font-size: var(--fs-12); background: var(--c-surface); overflow-wrap: anywhere; }
.dv-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; background: rgba(255, 255, 255, .92); box-shadow: var(--sh-1); }
.dv-prev { left: 8px; }
.dv-next { right: 8px; }
.dv-side { flex: none; width: 340px; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid var(--c-line); background: var(--c-surface); }
.dv-side-head { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px 12px; }
.dv-side-head strong { flex: 1; font-size: var(--fs-13); }
.dv-side-note { margin: 0; padding: 0 12px 8px; font-size: var(--fs-12); color: var(--c-muted); }
.dv-side > .input { margin: 0 12px 8px; width: auto; }
.dv-parts { flex: 1; overflow: auto; border-top: 1px solid var(--c-line); }
.dv-part { display: flex; gap: 10px; width: 100%; padding: 7px 12px; border: 0; border-bottom: 1px solid var(--c-line); background: none; text-align: left; font-size: var(--fs-13); }
.dv-part[data-pn]:hover { background: var(--c-surface-2); }
.dv-part[disabled] { color: var(--c-muted); }
.dv-pos { flex: none; min-width: 26px; height: 26px; padding: 0 4px; display: inline-grid; place-items: center; border: 1.5px solid #2f55d4; border-radius: 13px; color: #2f55d4; font-weight: 700; font-size: var(--fs-12); font-variant-numeric: tabular-nums; }
.dv-part-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dv-part-l1 { display: flex; align-items: baseline; gap: 8px; }
.dv-parts-btn[aria-pressed="true"] { background: var(--c-surface-3); }
@media (max-width: 700px) {
  .dv-side { position: absolute; inset: 0 0 0 auto; width: 100%; z-index: 2; }
  .dialog-backdrop-viewer { padding: 0; }
  .dialog.dialog-viewer { border-radius: 0; }
  .dv-cap, .dv-dl-label { display: none; }
}

/* ── Photos ── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-top: 8px; }
.thumb { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--r-1); overflow: hidden; background: var(--c-surface-3); }
.thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; }
.thumb img.loaded { opacity: 1; }
.thumb-broken::after { content: "Unavailable"; position: absolute; inset: 0; display: grid; place-items: center; font-size: var(--fs-11); color: var(--c-muted); }
.lb { display: grid; gap: 8px; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 60vh; background: #0f1720; border-radius: var(--r-2); }
.lb-img { max-width: 100%; max-height: 72vh; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .9); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-cap { font-size: var(--fs-13); color: var(--c-ink-2); }
.report { border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 0 12px; margin-bottom: 8px; background: var(--c-surface); }
.report > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; list-style: none; }
.report > summary::-webkit-details-marker { display: none; }
.report-title { font-weight: 650; flex: 1 1 200px; }
.report .rich, .report .photo-grid { margin-bottom: 10px; }

/* ── Machine ── */
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; margin: 0; }
.spec { border: 1px solid var(--c-line); border-radius: var(--r-1); padding: 6px 8px; background: var(--c-surface); }
.spec dt { font-size: var(--fs-11); color: var(--c-muted); }
.spec dd { margin: 0; font-size: var(--fs-13); font-weight: 600; overflow-wrap: anywhere; }
.warranty, .step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-13); }
.warranty .muted, .step .muted { margin-left: auto; font-size: var(--fs-12); }
.checks { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: var(--fs-13); }
.check-item { display: inline-flex; align-items: center; gap: 4px; }

/* ── Parts (BOM) ── */
.pt-summary { font-size: var(--fs-13); color: var(--c-ink-2); margin: 0 0 var(--s-2); }
/* Spare parts list: the machine's header row (article number · description · tag) */
.sp-head { display: flex; flex-direction: column; gap: 2px; margin: 0 0 var(--s-2); font-size: var(--fs-12); color: var(--c-ink-2); }
.sp-head-row { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.group > .sp-head { margin: var(--s-2) var(--s-3); }
.tbl .pt-pn { white-space: nowrap; } /* a part number never breaks at its dash */
.pt-list { border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); }
.pt-list > .btn-block { border-top: 1px solid var(--c-line); }
.pt { border-bottom: 1px solid var(--c-line); }
.pt:last-child { border-bottom: 0; }
.pt > summary, .pt-leaf { display: flex; align-items: flex-start; gap: 6px; padding: 8px 12px; }
.pt > summary { cursor: pointer; list-style: none; }
.pt > summary::-webkit-details-marker { display: none; }
.pt > summary::before { content: ""; flex: none; width: 7px; height: 7px; margin: 7px 2px 0 -2px; border-right: 2px solid var(--c-faint); border-bottom: 2px solid var(--c-faint); transform: rotate(-45deg); transition: transform .15s; }
.pt[open] > summary::before { transform: rotate(45deg); }
.pt-leaf { padding-left: 25px; }
.pt > summary:hover, .pt-leaf:hover { background: var(--c-surface-2); }
.pt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-line1 { display: flex; align-items: baseline; gap: 8px; }
.pt-pn { font-weight: 650; overflow-wrap: anywhere; text-align: left; }
.pt-qty { margin-left: auto; flex: none; font-size: var(--fs-12); color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.pt-desc { font-size: var(--fs-12); color: var(--c-ink-2); overflow-wrap: anywhere; }
.pt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: var(--fs-12); color: var(--c-muted); }
.pt-tags:empty { display: none; }
.pt-kidcount { color: var(--c-muted); }
.pt-dwg { min-height: 22px; padding: 0 6px; }
.pt-dwg-missing { display: inline-flex; align-items: center; gap: 3px; color: var(--c-muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-unread .pt-desc, .pt-unread .pt-qty { color: var(--c-muted); }
.pt-kids { border-top: 1px solid var(--c-line); background: var(--c-surface-2); }
.pt-sub { border: 0; border-radius: 0; margin-left: 18px; border-left: 2px solid var(--c-line-2); background: transparent; }
.pt-sub .pt { border-bottom-color: var(--c-line); }
.pt-via { color: var(--c-muted); font-size: var(--fs-12); }
.pt-used-head { align-items: center; justify-content: space-between; }
.pt-used-head .pt-summary { margin: 0; flex: 1 1 200px; }

/* ── Home (no selection) ── */
.home { padding: var(--s-5) var(--s-4); }
.home-title { font-size: var(--fs-20); font-weight: 700; margin-bottom: 4px; }
.home-sub { color: var(--c-muted); margin-bottom: var(--s-4); font-size: var(--fs-13); }
.home-stats { margin-bottom: var(--s-4); }
.home-tips { display: grid; gap: 8px; }
.tip { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-13); color: var(--c-ink-2); padding: 8px 10px; border-radius: var(--r-2); background: var(--c-surface-2); }
.tip .i { color: var(--c-brand-600); margin-top: 1px; }

/* ── Technicians ── */
.tech { padding: var(--s-3) var(--s-3) var(--s-4); }
.tech-top { display: grid; gap: 8px; margin-bottom: var(--s-3); }
.tech-top .seg { margin: 0; }
.tech-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tech-item { border: 1px solid var(--c-line); border-radius: var(--r-2); background: var(--c-surface); }
.tech-item.open { border-color: var(--c-brand-100); box-shadow: var(--sh-1); }
.tech-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; text-align: left; border-radius: var(--r-2); }
.tech-row:hover { background: var(--c-surface-2); }
.tech-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tech-name { font-weight: 650; font-size: var(--fs-13); }
.tech-now { font-size: var(--fs-12); color: var(--c-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tech-detail { padding: 4px 10px 10px; border-top: 1px solid var(--c-line); }
.tech-detail .seg { margin: 8px 0; }

/* ── Data Health ── */
.health-intro { font-size: var(--fs-13); color: var(--c-ink-2); margin-bottom: var(--s-4); max-width: 80ch; }
.health-intro .muted { display: block; margin-top: 4px; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s-3); }
.health-card { border: 1px solid var(--c-line); border-radius: var(--r-2); padding: var(--s-3); display: grid; gap: 6px; align-content: start; background: var(--c-surface); }
.health-card header { display: flex; align-items: flex-start; gap: 8px; }
.health-card h3 { flex: 1; font-size: var(--fs-14); font-weight: 650; }
.health-count { font-size: var(--fs-20); font-weight: 700; color: var(--c-warn); font-variant-numeric: tabular-nums; }
.health-count.ok { color: var(--c-good); }
.health-ok { background: var(--c-surface-2); }
.health-impact { font-size: var(--fs-13); color: var(--c-ink-2); }
.health-fix { font-size: var(--fs-12); color: var(--c-muted); display: flex; gap: 6px; align-items: flex-start; }
.health-fix code { color: var(--c-ink); background: var(--c-surface-3); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.health-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.health-sample { margin-top: 4px; }
.health-error { color: var(--c-danger); font-size: var(--fs-12); }
.health-good { font-size: var(--fs-12); color: var(--c-good); display: flex; align-items: center; gap: 4px; }

/* ── Dialog content ── */
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; align-items: center; font-size: var(--fs-13); }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--c-ink-2); }
.whatsnew { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 12px; }
.whatsnew li { display: flex; gap: 12px; font-size: var(--fs-13); color: var(--c-ink-2); }
.whatsnew .i { color: var(--c-brand-600); width: 22px; height: 22px; margin-top: 1px; }
.whatsnew strong { color: var(--c-ink); }

/* Single-column grids must not grow past the dock when a child has nowrap text. */
.tech-list, .visits, .card-list, .contact-list, .chart-grid, .home-tips, .plain-list { grid-template-columns: minmax(0, 1fr); }
.pt-list, .pt-main { min-width: 0; }
.dock-pane { overflow-x: hidden; }
