/* Minimal, theme-neutral. */
.ohc { max-width: 60rem; }
.ohc h2 { margin-top: 0; }
.ohc label { display: block; margin-top: 0.8rem; font-weight: 600; }
.ohc input[type="text"] { width: 100%; max-width: 30rem; }
.ohc button { margin-top: 1rem; margin-right: 0.6rem; }
.ohc-status { margin-top: 0.8rem; font-style: italic; }
.ohc-error { color: #96331f; font-weight: 600; }
/* a refusal with a card (a shop plugin's "no credit"): calm, with a button, not red */
.ohc-notice { border: 1px solid #d9d4c7; background: #fbf8f0; border-radius: 6px; padding: 0.9rem 1rem; margin: 0.8rem 0; }
.ohc-notice-title { margin: 0 0 0.3rem; font-size: 1rem; }
.ohc-notice-text { margin: 0 0 0.6rem; }
.ohc-notice-btn { display: inline-block; text-decoration: none; }
.ohc-notes { font-family: ui-monospace, monospace; font-size: 0.85em; margin: 0.8rem 0; }
.ohc-open { margin: 1rem 0; }
.ohc-item { padding: 0.5rem 0; border-bottom: 1px solid #ddd; }
.ohc-cands, .ohc-readings, .ohc-how { font-size: 0.85em; color: #4e565a; }
.ohc-json { width: 100%; font-family: ui-monospace, monospace; font-size: 0.8em; }
.ohc-pending li { font-family: ui-monospace, monospace; font-size: 0.85em; }
.ohc-table { border-collapse: collapse; width: 100%; }
.ohc-table th, .ohc-table td { text-align: right; padding: 0.3rem 0.6rem; border-bottom: 1px solid #ddd; white-space: nowrap; }
.ohc-table td:first-child, .ohc-table td:nth-child(2) { white-space: normal; }
.ohc-table th:first-child, .ohc-table td:first-child { text-align: left; }
.ohc-q { margin-bottom: 0.3rem; }
.ohc-control { margin: 0.4rem 0 0.2rem 0.8rem; display: flex; flex-direction: column; gap: 0.3rem; max-width: 40rem; }
/* a label and its control side by side, wrapping onto two lines when the
   COLUMN is narrow -- a theme's content column can be narrow on a wide
   screen, where a media query on the viewport never fires (Q88) */
.ohc .ohc-field { display: flex; flex-wrap: wrap; gap: 0.2rem 0.6rem; align-items: center; font-weight: normal; margin: 0; }
.ohc .ohc-field > span { flex: 1 1 14rem; }
.ohc .ohc-field > select, .ohc .ohc-field > input { flex: 1 1 12rem; min-width: 0; max-width: 100%; }
.ohc .ohc-field > .ohc-num { flex: 0 0 8rem; }
.ohc-field span { font-size: 0.9em; color: #4e565a; }
.ohc .ohc-check { font-weight: normal; margin: 0; display: block; }
.ohc .ohc-done { margin-top: 0.3rem; font-weight: 600; }
.ohc-item .ohc-advanced { margin-top: 0.4rem; font-size: 0.9em; }
.ohc-item .ohc-advanced .ohc-field { margin-top: 0.3rem; }
.ohc .ohc-num { width: 8rem; }      /* over the 100 % of .ohc input[type=text] */
.ohc-basis { width: 100%; }
.ohc-advanced { margin-top: 1.5rem; }
.ohc-advanced summary { cursor: pointer; }
.ohc-sides-row { display: grid; grid-template-columns: minmax(8rem, 1fr) repeat(3, minmax(3.5rem, 6.5rem)); gap: 0.5rem; align-items: center; }
.ohc .ohc-sides-row .ohc-num { width: 100%; }
.ohc-sides-head span { font-size: 0.85em; color: #4e565a; }
.ohc-row { display: grid; grid-template-columns: max-content 8rem max-content 1fr; gap: 0.6rem 0.75rem; align-items: center; margin-top: 0.8rem; max-width: 30rem; }
.ohc-row label { margin-top: 0; }
.ohc .ohc-row input[type="text"] { width: 100%; max-width: none; }
.ohc-settle { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-items: start; }
@media (min-width: 70rem) { .ohc-settle { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ohc-viewer { position: sticky; top: 0.5rem; max-height: 95vh; overflow: auto; border: 1px solid #ddd; padding: 0.5rem; background: #fff; }
.ohc-viewer[hidden] { display: none; }
.ohc-page { display: block; max-width: 100%; height: auto; cursor: zoom-in; }
.ohc-page.ohc-page-zoom { max-width: none; cursor: zoom-out; }
.ohc-stage.ohc-stage-zoom { max-width: none; }
.ohc-page-strip { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ohc .ohc-page-btn { margin: 0.2rem 0 0; font-size: 0.85em; padding: 0.15rem 0.5rem; }
.ohc .ohc-page-btn.ohc-page-on { font-weight: 700; }
.ohc .ohc-crop img { display: block; max-width: 100%; height: auto; margin: 0.4rem 0; border: 1px solid #ccc; }
.ohc-houses { margin-bottom: 1.5rem; }
.ohc-house { padding: 0.3rem 0; border-bottom: 1px solid #ddd; }
.ohc-back { display: inline-block; margin-bottom: 0.5rem; font-size: 0.9em; }
/* the consent box before the upload, and how long a house is kept (phase 1) */
.ohc .ohc-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: normal; max-width: 40rem; margin-top: 1rem; }
.ohc .ohc-consent input { margin-top: 0.25rem; flex: 0 0 auto; }
.ohc-kept { align-self: center; margin-left: auto; }
.ohc-summary { max-width: 46rem; margin: 0.3rem 0; }
.ohc-stage { position: relative; display: inline-block; max-width: 100%; }
.ohc-overlay { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
/* The plugin's own colours when it runs without the Hittescan skin (the
   palette of docs/review/10-huisstijl-landingspagina.md, section 6.7): plum for an
   outline and a suggestion, ink for the conclusion and the best measure, the
   warm status colours. The skin overrides these where it styles the class. */
.ohc-outline { fill: rgba(74, 26, 60, 0.10); stroke: #4a1a3c; stroke-width: 3; }
.ohc-outline-label { fill: #4a1a3c; font: 28px system-ui, sans-serif; text-anchor: middle; }
.ohc-tracing { fill: rgba(176, 122, 18, 0.15); stroke: #b07a12; stroke-width: 3; stroke-dasharray: 8 6; }
.ohc-tracing-dot { fill: #b07a12; }
.ohc-mark { fill: rgba(198, 40, 40, 0.12); stroke: #c62828; stroke-width: 3; stroke-dasharray: 8 5; }
.ohc-mark-text { fill: #c62828; font: 26px system-ui, sans-serif; text-anchor: middle; }
.ohc-mark.ohc-mark-measured { fill: none; stroke-opacity: 0.45; }
.ohc-correct { border: 1px solid #ddd; padding: 0.5rem 0.8rem; margin-top: 0.6rem; background: #fff; }
.ohc-correct h3 { margin: 0.2rem 0 0.4rem; }
.ohc-correct-list { font-size: 0.9em; margin: 0.6rem 0 0; padding-left: 1.2rem; }
.ohc-correct-chooser { margin-top: 0.6rem; }
.ohc-house-controls { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin: 0.5rem 0; }
.ohc-slider { flex: 1 1 14rem; }
.ohc-when { font-variant-numeric: tabular-nums; }
.ohc-legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85em; color: #4e565a; margin: 0.3rem 0 0.8rem; }
.ohc-legend-ramp { width: 14rem; height: 0.8rem; border: 1px solid #ccc; }
.ohc-plan { max-width: 40rem; }
.ohc-plan-svg { width: 100%; height: auto; border: 1px solid #ddd; background: #fff; }
.ohc-room { stroke: #333; stroke-width: 2; fill: #ddd; fill-opacity: 0.85; }
.ohc-room-label { font: 26px system-ui, sans-serif; fill: #222; text-anchor: middle; pointer-events: none; }
.ohc-tip { position: fixed; background: #222; color: #fff; padding: 0.2rem 0.5rem; font-size: 0.85em; border-radius: 3px; pointer-events: none; z-index: 10; }
.ohc-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.ohc-chip { padding: 0.15rem 0.5rem; border-radius: 3px; border: 1px solid #bbb; font-size: 0.85em; background: var(--ohc-heat, #eee); color: var(--ohc-heat-ink, #26101f); }
.ohc-three canvas { border: 1px solid #ddd; max-width: 100%; height: auto; cursor: grab; }
.ohc-suggested { fill: rgba(74, 26, 60, 0.06); stroke: #4a1a3c; stroke-width: 3; stroke-dasharray: 4 6; }
.ohc-window { stroke: #1f3d5c; stroke-width: 7; stroke-linecap: butt; }
.ohc-door { stroke: #8a6b45; stroke-width: 5; stroke-dasharray: 6 4; }
.ohc-dome { fill: rgba(160, 200, 240, 0.7); stroke: #1f3d5c; stroke-width: 2; }
.ohc-window.ohc-screened { stroke: #1d5e3a; }
.ohc-dome.ohc-screened { fill: rgba(29, 94, 58, 0.55); stroke: #1d5e3a; }
.ohc .ohc-delete { color: #96331f; }
.ohc-languages { display: flex; gap: 0.3rem; justify-content: flex-end; margin-bottom: 0.5rem; }

/* phase 4 (4.2-4.6): waiting that ends, the upload's progress, a question
   that needs an answer, drawing with the plan's own bar, the conclusion and
   the rooms table of the report. Plain, for a site without the Hittescan
   skin; the skin styles the same classes in its own look. */
.ohc-trouble, .ohc-failed-actions { margin: 0.8rem 0; }
.ohc-trouble { border: 1px solid #d9d4c7; background: #fbf8f0; border-radius: 6px; padding: 0.8rem 1rem; }
.ohc-trouble-text { margin: 0 0 0.4rem; }
/* 4.14: the waiting card -- a ring, the title, one status line, a bar that follows the steps, the time */
.ohc-wait { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.2rem 1rem; align-items: start; border: 1px solid #ddd; border-radius: 6px; padding: 1rem 1.2rem; margin: 0.8rem 0; max-width: 46rem; }
.ohc-wait[hidden], .ohc-wait [hidden] { display: none; }
.ohc-wait-sign { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #e6e6e6; border-top-color: #555; animation: ohc-spin 1s linear infinite; margin-top: 0.3rem; }
@keyframes ohc-spin { to { transform: rotate(360deg); } }
.ohc-wait-sign[data-hsk] { border: 0; border-radius: 0; animation: none; }
.ohc-wait-title { margin: 0.2rem 0; }
.ohc-wait-line, .ohc-wait-item, .ohc-wait-time, .ohc-wait-over { margin: 0.2rem 0; }
.ohc-wait-bar { height: 6px; border-radius: 3px; background: #eee; overflow: hidden; margin: 0.6rem 0 0.3rem; }
.ohc-wait-fill { display: block; height: 100%; width: 0; background: #555; transition: width 0.6s ease; }
.ohc-wait-bar.is-unknown .ohc-wait-fill { width: 34%; animation: ohc-slide 1.8s ease-in-out infinite; }
@keyframes ohc-slide { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.ohc-wait-time { font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .ohc-wait-sign, .ohc-wait-bar.is-unknown .ohc-wait-fill { animation: none; }
  .ohc-wait-bar.is-unknown .ohc-wait-fill { width: 100%; opacity: 0.35; }
}
.ohc-pdf-note:empty { display: none; }
.ohc-done-note { color: #1D5E3A; background: #E5F2E8; border-radius: 4px; padding: 0.5rem 0.8rem; font-weight: 600; }
.ohc-up-progress { list-style: none; padding: 0; margin: 0.6rem 0; max-width: 40rem; }
.ohc-up-file { display: flex; align-items: center; gap: 0.6rem; margin: 0.2rem 0; }
.ohc-up-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ohc-up-file progress { flex: 0 0 10rem; }
.ohc-up-pct { flex: 0 0 3rem; text-align: right; font-variant-numeric: tabular-nums; }
.ohc-item.ohc-item-invalid { border-left: 3px solid #b42318; padding-left: 0.6rem; }
.ohc-item-error { color: #A8322D; font-weight: 600; margin: 0.3rem 0; }
.ohc-trace-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; padding: 0.4rem 0.5rem; background: #fff6e0; border: 1px solid #e3c27a; margin: 0.3rem 0; }
.ohc-trace-bar[hidden] { display: none; }
.ohc-trace-info { flex: 1 1 12rem; font-size: 0.9em; }
.ohc-part { margin: 1rem 0; }
.ohc-conclusion { border: 1px solid #e4dad4; border-left: 4px solid #26101f; padding: 0.8rem 1rem; }
.ohc-conclusion[data-level="red"] { border-left-color: #b42318; }
.ohc-conclusion[data-level="amber"] { border-left-color: #b07a12; }
.ohc-conclusion[data-level="green"] { border-left-color: #1d5e3a; }
.ohc-verdict { font-size: 1.1em; font-weight: 600; margin: 0.4rem 0; }
.ohc-measures { list-style: none; padding: 0; margin: 0.4rem 0; }
.ohc-measure { border: 1px solid #ddd; padding: 0.4rem 0.6rem; margin: 0.3rem 0; }
.ohc-measure-best { border-color: #26101f; }
.ohc-measure-h { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.ohc-chip-s { display: inline-block; padding: 0.05rem 0.5rem; border-radius: 99px; font-size: 0.8em; font-weight: 600; background: #eee; color: #222; }
.ohc-chip-s.is-red { background: #FCE9E5; color: #A8322D; }
.ohc-chip-s.is-amber { background: #fff1d6; color: #6b4200; }
.ohc-chip-s.is-green { background: #E5F2E8; color: #1D5E3A; }
.ohc-chip-s.is-acc { background: #26101f; color: #fff; }
.ohc-disclaimer, .ohc-calc-version, .ohc-table-notes { font-size: 0.85em; color: #4e565a; }
.ohc-warning { border: 1px solid #e3c27a; background: #fff6e0; padding: 0.8rem 1rem; }
/* fase 6b step 11: a report an administrator still checks; the coupled house's other spaces */
.ohc-held { border: 1px solid #e3c27a; background: #fff6e0; padding: 0.8rem 1rem; }
.ohc-table.ohc-other-rooms td, .ohc-table.ohc-other-rooms th { white-space: normal; vertical-align: top; }
.ohc-table.ohc-other-rooms th[scope="row"] { text-align: left; }
.ohc-cell-note { display: block; font-size: 0.8em; color: #4e565a; white-space: normal; }
.ohc-table.ohc-rooms-plan td, .ohc-table.ohc-rooms-plan th { white-space: normal; vertical-align: top; }
.ohc-table.ohc-rooms-plan th[scope="row"] { text-align: left; }
.ohc-fold > summary { cursor: pointer; }
.ohc-fold > summary h3 { display: inline; }
.ohc .ohc-print-head { display: none; }

/* Q104: the report on paper, or saved as a PDF from the print window.
   Only the report is printed -- not the site around it, not a button,
   a slider or the text copy of the report -- in its own colours, and a
   table, a plan or the 3D house is not cut across two pages. */
.ohc .ohc-print-only { display: none; }
@media print {
  body * { visibility: hidden !important; }
  #overheating-check, #overheating-check * { visibility: visible !important; }
  #overheating-check { position: absolute; left: 0; top: 0; width: 100%; margin: 0; padding: 0; }
  .ohc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ohc .ohc-page-strip, .ohc .ohc-languages, .ohc button, .ohc input, .ohc .ohc-check,
  .ohc details.ohc-advanced, .ohc .ohc-text-copy, .ohc .ohc-print-hide, .ohc .ohc-report-trouble,
  .ohc .ohc-status, .ohc-tip, .ohc .ohc-wait, .ohc .ohc-pdf-note { display: none !important; }
  .ohc .ohc-print-only { display: block !important; }
  .ohc .ohc-print-head { margin: 0 0 0.8rem; padding-bottom: 0.4rem; border-bottom: 1px solid #999; }
  .ohc .ohc-print-title { font-weight: 700; font-size: 1.15em; }
  /* phase 4: the report's folds are open on paper (the page opens them before printing) */
  .ohc details.ohc-fold { display: block !important; }
  .ohc details.ohc-fold > summary { list-style: none; }
  .ohc details.ohc-fold > summary::-webkit-details-marker { display: none; }
  .ohc .ohc-conclusion, .ohc .ohc-warning, .ohc .ohc-measure { break-inside: avoid; }
  .ohc h2, .ohc h3, .ohc h4 { break-after: avoid; }
  .ohc tr, .ohc .ohc-plan, .ohc .ohc-three, .ohc .ohc-print-storey { break-inside: avoid; }
  .ohc .ohc-three canvas { border: none; }
}
