/* Briary window U-value calculator, web edition. */

.wuv-page { padding-top: 18px; }

/* ---------------------------------------------------------------- landing */

.wuv-intro { max-width: 78ch; }
.wuv-intro__eyebrow {
  margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #274b6d;
}
.wuv-intro h1 { margin: 0 0 10px; line-height: 1.12; }
.wuv-intro__lead { margin: 0; font-size: 17px; line-height: 1.55; color: #33414f; }

.wuv-intro__cta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 20px 0 4px;
}
.wuv-intro__cta .btn.wuv-launch {
  margin: 0; font-size: 17px; padding: 13px 30px; border-radius: 8px; font-weight: 600;
}
.wuv-intro__note { font-size: 13px; color: #5b6875; max-width: 42ch; }

.wuv-intro__grid {
  display: grid; gap: 14px; margin-top: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.wuv-card {
  background: #fff; border: 1px solid #d3dae1; border-radius: 8px; padding: 15px 17px;
}
.wuv-card h2 { margin: 0 0 6px; font-size: 15.5px; line-height: 1.25; }
.wuv-card p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #4a5661; }

/* ---------------------------------------------------------------- app layer */

/* Launching the tool covers the whole viewport, site header included, so the
   application owns the screen and no dialog can be clipped by the page. */
.wuv-app {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #eef1f5;
  overflow: hidden;
}
.wuv-app[hidden] { display: none; }
html.wuv-app-open, body.wuv-app-open { overflow: hidden; }

.wuv {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 10px clamp(10px, 1.4vw, 20px) 12px;
  --wuv-line: #d3dae1;
  --wuv-ink: #1e2833;
  --wuv-muted: #5b6875;
  --wuv-accent: #274b6d;
  --wuv-ok: #1c6b3f;
  --wuv-okbg: #e6f4ec;
  --wuv-bad: #8c2320;
  --wuv-badbg: #fbeceb;
  --wuv-warn: #fdf5e2;
  --wuv-panel: #fff;
  color: var(--wuv-ink);
}

/* ---------------------------------------------------------------- head */

.wuv__head {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--wuv-line);
}
.wuv__brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.wuv__mark {
  font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; background: var(--wuv-accent); padding: 3px 8px; border-radius: 4px;
}
.wuv__apptitle {
  margin: 0; font-size: 16px; font-weight: 600; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wuv__headactions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wuv__headactions .btn { margin: 0; }

.wuv__status { font-size: 13px; color: var(--wuv-muted); }
.wuv__status.is-error { color: var(--wuv-bad); font-weight: 600; }
.wuv__status.is-busy::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--wuv-accent);
  animation: wuv-pulse 1s ease-in-out infinite;
}
@keyframes wuv-pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------------------------------------------------------------- toolbar */

.wuv__bar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 8px 9px;
  background: var(--wuv-panel);
  border: 1px solid var(--wuv-line);
  border-radius: 8px;
  margin-bottom: 9px;
}
.wuv__bar .btn { margin: 0; padding: 6px 12px; font-size: 13px; }
.wuv__bar-sep { width: 1px; height: 22px; background: var(--wuv-line); margin: 0 4px; }

/* ---------------------------------------------------------------- layout */

/* The three columns fill whatever height is left below the bars. */
.wuv__layout {
  display: grid;
  grid-template-columns: 250px minmax(360px, 1fr) 310px;
  gap: 9px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.wuv__col,
.wuv__stage {
  background: var(--wuv-panel);
  border: 1px solid var(--wuv-line);
  border-radius: 8px;
  min-height: 0;
}

.wuv__col {
  padding: 12px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.wuv__coltitle {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--wuv-accent);
  margin: 16px 0 8px;
  font-weight: 700;
}
.wuv__coltitle:first-child { margin-top: 0; }

/* The side columns are narrow, so their labels sit above the field rather than
   being squeezed into a column too small to read. */
.wuv__col .wuv-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  margin-bottom: 8px;
}
.wuv__col .wuv-row > span { font-size: 11.5px; }

@media (max-width: 1400px) {
  .wuv__layout { grid-template-columns: 216px minmax(320px, 1fr) 272px; }
}

/* Too narrow for three columns: stack them, drawing first, and let the whole
   application layer scroll instead of each panel scrolling separately. */
@media (max-width: 1080px) {
  .wuv { overflow-y: auto; height: 100%; }
  .wuv__layout { grid-template-columns: 1fr; flex: 0 0 auto; }
  .wuv__col { max-height: none; overflow: visible; }

  /* A definite height, not a minimum, so the drawing is scaled to fit it. */
  .wuv__stage { order: 1; height: min(62vh, 540px); }
  .wuv__col--right { order: 2; }
  .wuv__col--left { order: 3; }

  /* The project fields have the full width here, so they flow in columns. */
  .wuv__col--left {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0 16px;
    align-content: start;
  }
  .wuv__col--left .wuv__coltitle,
  .wuv__col--left .wuv-units { grid-column: 1 / -1; }
  .wuv-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px; }
  .wuv-units li { margin: 0; }
}

/* ---------------------------------------------------------------- units */

.wuv-units { list-style: none; margin: 0; padding: 0; }
.wuv-units li { margin: 0 0 5px; }

.wuv-unit {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1px 8px;
  width: 100%;
  text-align: left;
  background: #fbfcfd;
  border: 1px solid var(--wuv-line);
  border-radius: 6px;
  padding: 7px 9px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.wuv-unit:hover { border-color: #9fb2c4; }
.wuv-unit.is-active { border-color: var(--wuv-accent); box-shadow: inset 0 0 0 1px var(--wuv-accent); }
.wuv-unit__ref { font-weight: 600; font-size: 13px; }
.wuv-unit__size { grid-column: 1; font-size: 11.5px; color: var(--wuv-muted); }
.wuv-unit__uw {
  grid-row: 1 / span 2; grid-column: 2; align-self: center;
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px;
}
.wuv-unit__uw.is-pass { color: var(--wuv-ok); }
.wuv-unit__uw.is-fail { color: var(--wuv-bad); }

/* ---------------------------------------------------------------- stage */

.wuv__stage { display: flex; flex-direction: column; padding: 8px 10px 10px; }

.wuv__stagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wuv-line);
  margin-bottom: 6px;
}
.wuv__tip { margin: 0; font-size: 12px; color: var(--wuv-muted); }
.wuv__stagebtns { display: flex; flex-wrap: wrap; gap: 5px; }

.wuv__canvas {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.wuv-svg { max-width: 100%; max-height: 100%; }
.wuv-hit { cursor: pointer; }
.wuv-hit:hover { fill: rgba(39, 75, 109, .08); }
.wuv-divider[data-divider^="mullion"] { cursor: col-resize; }
.wuv-divider[data-divider^="transom"] { cursor: row-resize; }
.wuv-divider:hover rect, .wuv-divider:focus rect { fill: rgba(242, 169, 0, .35); }
.wuv-dim { cursor: text; }
.wuv-dim:hover text, .wuv-dim:focus text { fill: #b26a00; }
.wuv-dim rect { fill: transparent; }
.wuv-dim:hover rect { fill: rgba(242, 169, 0, .14); }

.wuv__underlay-controls {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  border-top: 1px solid var(--wuv-line); padding-top: 8px; margin-top: 6px;
  font-size: 12px; color: var(--wuv-muted);
}
.wuv__underlay-controls label { display: flex; align-items: center; gap: 6px; }
.wuv__underlay-controls input[type="range"] { width: 90px; }

/* ---------------------------------------------------------------- result */

.wuv-result { background: var(--wuv-accent); color: #fff; border-radius: 8px; padding: 13px 15px; }
.wuv-result__label { font-size: 11.5px; color: #b9cbdd; }
.wuv-result__value { font-size: 38px; font-weight: 700; line-height: 1.05; }
.wuv-result__units { font-size: 11.5px; color: #b9cbdd; }
.wuv-result__detail { font-size: 11.5px; color: #dce7f1; margin-top: 5px; }

.wuv-verdict {
  display: inline-block; margin-top: 8px; padding: 4px 12px;
  border-radius: 20px; font-weight: 600; font-size: 12.5px;
}
.wuv-verdict.is-pass { background: var(--wuv-okbg); color: var(--wuv-ok); }
.wuv-verdict.is-fail { background: var(--wuv-badbg); color: var(--wuv-bad); }

/* A value outside the range the standard tabulates. A flag, not a rejection:
   the box still takes the number, and the result panel explains the effect. */
input.is-out-of-range {
  border-color: #c8a13a; background: var(--wuv-warn); color: #4a3d1a;
  box-shadow: inset 2px 0 0 #c8a13a;
}

.wuv-warnings { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12px; }
.wuv-warnings li {
  background: var(--wuv-warn); border-left: 3px solid #c8a13a;
  padding: 7px 9px; margin-bottom: 6px; border-radius: 0 4px 4px 0; color: #4a3d1a;
}

.wuv-areas, .wuv-breakdown { font-size: 12px; }
.wuv-areas div, .wuv-breakdown div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 4px 0; border-bottom: 1px dotted #e4e9ee;
}
.wuv-areas span, .wuv-breakdown span { color: var(--wuv-muted); line-height: 1.4; }
.wuv-areas b, .wuv-breakdown b {
  font-variant-numeric: tabular-nums; font-family: Consolas, monospace;
  flex: none; white-space: nowrap;
}

/* The symbol the standard uses, kept beside its plain-English name so a reader
   who knows the formula and a reader who does not are both served by one row. */
.wuv-sym { font-style: normal; color: #8c98a4; white-space: nowrap; }

/* The three figures an assessor retypes into SAP 10.3 or the Home Energy Model.
   Kept visually apart from the areas and heat-flow take-off so it is obvious
   which numbers leave this tool and go into the dwelling assessment. */
.wuv-sap {
  border: 1px solid var(--wuv-line); border-left: 3px solid var(--wuv-accent);
  border-radius: 0 6px 6px 0; background: #f7f9fb; padding: 4px 12px 10px;
}
.wuv-sap__row { padding: 8px 0; border-bottom: 1px dotted #dfe5eb; }
.wuv-sap__row:last-of-type { border-bottom: 0; }
.wuv-sap__head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: baseline; gap: 2px 10px;
}
/* The column is only about 250px wide, so the name takes the slack and the
   number keeps its natural width rather than the two fighting over the row. */
.wuv-sap__name {
  flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--wuv-ink);
}
.wuv-sap__sym { font-weight: 400; color: var(--wuv-muted); white-space: nowrap; }
.wuv-sap__value {
  flex: 0 0 auto; text-align: right;
  font-size: 19px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums; font-family: Consolas, monospace;
}
.wuv-sap__value.is-missing { color: var(--wuv-bad); font-size: 14px; }
.wuv-sap__units {
  display: block; margin-top: 1px;
  font-size: 11px; font-weight: 400; color: var(--wuv-muted);
  white-space: nowrap; font-family: inherit;
}
.wuv-sap__note { margin: 3px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--wuv-muted); }
.wuv-sap__foot {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--wuv-muted);
  border-top: 1px solid #e4e9ee; padding-top: 7px;
}

/* ---------------------------------------------------------------- forms */

.wuv-row {
  display: grid;
  grid-template-columns: 1fr minmax(96px, 130px);
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12.5px;
}
.wuv-row > span { color: var(--wuv-muted); }
.wuv-row input, .wuv-row select, .wuv-row textarea {
  width: 100%; padding: 5px 7px; border: 1px solid var(--wuv-line);
  border-radius: 4px; font: inherit; font-size: 12.5px; background: #fff; color: inherit;
}
.wuv-row input[type="checkbox"] { width: auto; justify-self: start; }

/* Inside a dialog the label sits above the control. A select then gets the full
   column width, so long option text such as "Opaque panel in sash" is readable
   instead of being cut off by a narrow control column. */
.wuv-row--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  margin-bottom: 10px;
}
.wuv-row--wide > span { font-size: 12px; color: var(--wuv-muted); }
.wuv-row--wide select,
.wuv-row--wide input,
.wuv-row--wide textarea {
  min-width: 0; width: 100%; max-width: 460px; padding: 7px 9px; font-size: 13px;
}
.wuv-row--wide input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--wuv-accent); }

.wuv-hint { font-size: 12px; color: var(--wuv-muted); margin: 0 0 10px; }
.wuv-mini { padding: 5px 10px !important; font-size: 12px !important; margin: 0 !important; }
.wuv-link { background: none; border: 0; color: var(--wuv-accent); text-decoration: underline; cursor: pointer; font: inherit; }

/* ---------------------------------------------------------------- modal */

/* The application layer already covers the site header, so a dialog only has to
   clear the top of the viewport. --wuv-headroom stays as a safety margin for the
   case where the tool is shown inside the page rather than full screen. */
.wuv-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--wuv-headroom, 0px) + 3vh) 12px 16px;
}
.wuv-modal[hidden] { display: none; }
.wuv-modal__backdrop { position: fixed; inset: 0; background: rgba(20, 30, 40, .55); }
.wuv-modal__panel {
  position: relative;
  margin: 0;
  width: min(940px, 94vw);
  max-height: calc(100vh - var(--wuv-headroom, 0px) - 6vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.wuv-modal__panel--wide { width: min(1180px, 96vw); }
.wuv-modal__panel header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 18px; border-bottom: 1px solid var(--wuv-line); flex: 0 0 auto;
}
.wuv-modal__panel h2 { margin: 0; font-size: 17px; }
.wuv-modal__close { background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: var(--wuv-muted); }
.wuv-modal__body { padding: 16px 18px; overflow-y: auto; flex: 1 1 auto; }
.wuv-modal__actions {
  display: flex; gap: 8px; padding: 12px 18px;
  border-top: 1px solid var(--wuv-line); flex: 0 0 auto; background: #fbfcfd;
  border-radius: 0 0 10px 10px;
}
.wuv-modal__actions .btn { margin: 0; }
.wuv-modal__actions .wuv-spacer { flex: 1 1 auto; }

/* two and three column forms inside modals, so nothing is cramped */
.wuv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 28px; }
.wuv-cols > * { min-width: 0; }
.wuv-cols h3, .wuv-modal__body h3 {
  grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--wuv-accent); margin: 14px 0 7px;
}
.wuv-cols h3:first-child, .wuv-modal__body h3:first-child { margin-top: 0; }

.wuv-lookup-result {
  background: #f4f8fb; border: 1px solid var(--wuv-line); border-radius: 6px;
  padding: 10px 12px; margin-top: 12px; min-height: 46px;
}
.wuv-lookup-result strong { font-size: 22px; display: block; color: var(--wuv-accent); }
.wuv-lookup-result span { font-size: 12px; color: var(--wuv-muted); }
.wuv-lookup-result .is-error { color: var(--wuv-bad); }

.wuv-working {
  background: #f7f9fb; border: 1px solid var(--wuv-line); border-radius: 6px;
  padding: 10px 12px; margin-top: 10px; font-size: 11.5px;
  max-height: 180px; overflow: auto; white-space: pre-wrap;
}

.wuv-examples { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wuv-examples button {
  display: block; width: 100%; text-align: left; background: #fbfcfd;
  border: 1px solid var(--wuv-line); border-radius: 6px; padding: 10px 12px; cursor: pointer; font: inherit;
}
.wuv-examples button:hover { border-color: var(--wuv-accent); }
.wuv-examples strong { display: block; font-size: 14px; }
.wuv-examples span { font-size: 12px; color: var(--wuv-muted); }

/* spec tables inside the glazing and frame modals */
.wuv-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wuv-table th, .wuv-table td {
  border: 1px solid var(--wuv-line); padding: 5px 7px; text-align: left; vertical-align: middle;
}
.wuv-table th { background: #eef2f6; font-weight: 600; font-size: 11.5px; }
.wuv-table input, .wuv-table select {
  width: 100%; border: 1px solid transparent; background: transparent;
  padding: 3px 4px; font: inherit; font-size: 12.5px; border-radius: 3px;
}
.wuv-table input:focus, .wuv-table select:focus { border-color: var(--wuv-accent); background: #fff; outline: none; }
.wuv-table td.num input { text-align: right; font-variant-numeric: tabular-nums; }

.wuv-guide h3 { margin-top: 20px; }
.wuv-guide p, .wuv-guide li { font-size: 13.5px; line-height: 1.6; }
.wuv-guide ol, .wuv-guide ul { padding-left: 20px; }
.wuv-guide code { background: #f2f5f8; padding: 1px 5px; border-radius: 3px; font-size: 12.5px; }
.wuv-guide .wuv-callout {
  background: var(--wuv-warn); border-left: 4px solid #c8a13a;
  padding: 10px 13px; margin: 12px 0; font-size: 13px; border-radius: 0 5px 5px 0;
}

/* ---------------------------------------------------------------- underlay */

.wuv-ul-stage {
  position: relative; margin-top: 12px; border: 1px solid var(--wuv-line);
  border-radius: 6px; overflow: auto; max-height: 48vh; background: #eef1f4; touch-action: none;
}
.wuv-ul-stage canvas { display: block; max-width: 100%; cursor: crosshair; }
.wuv-ul-marquee { position: absolute; border: 2px dashed #f2a900; background: rgba(242, 169, 0, .14); pointer-events: none; }
.wuv-ul-pages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---------------------------------------------------------------- context menu */

.wuv-menu {
  position: fixed;
  z-index: 4500;
  min-width: 244px;
  max-width: 320px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid #c3ccd6;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(15, 25, 35, .28);
  font-size: 13px;
}
.wuv-menu[hidden] { display: none; }

.wuv-menu__title {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--wuv-accent, #274b6d);
}
.wuv-menu__sep { height: 1px; margin: 4px 6px; background: #e3e8ee; }

.wuv-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 5px;
  padding: 5px 10px;
  font: inherit;
  font-size: 13px;
  line-height: 1.35;
  color: #1e2833;
  cursor: pointer;
}
.wuv-menu button:hover:not(:disabled),
.wuv-menu button:focus-visible { background: #eaf1f8; outline: none; }
.wuv-menu button:disabled { color: #a3adb8; cursor: default; }
.wuv-menu button .wuv-menu__tick { width: 14px; flex: 0 0 14px; color: var(--wuv-accent, #274b6d); }
.wuv-menu button .wuv-menu__key { margin-left: auto; font-size: 11px; color: #8b96a2; }
.wuv-menu button.is-current { font-weight: 600; }

/* ---------------------------------------------------------------- drawing hit targets */

.wuv-frame-hit { cursor: pointer; }
.wuv-frame-hit:hover, .wuv-frame-hit:focus { fill: rgba(242, 169, 0, .28); outline: none; }

/* ---------------------------------------------------------------- light dialog */

/* Five choices shown at once beat a dropdown that has to be opened to be read. */
.wuv-seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px;
  margin: 0 0 4px;
}
.wuv-seg button {
  display: block;
  text-align: left;
  background: #fbfcfd;
  border: 1px solid var(--wuv-line, #d3dae1);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  color: inherit;
  cursor: pointer;
  line-height: 1.3;
}
.wuv-seg button small { display: block; font-size: 11px; color: var(--wuv-muted, #5b6875); margin-top: 2px; }
.wuv-seg button:hover { border-color: #9fb2c4; }
.wuv-seg button.is-on {
  border-color: var(--wuv-accent, #274b6d);
  background: #eef4fa;
  box-shadow: inset 0 0 0 1px var(--wuv-accent, #274b6d);
  font-weight: 600;
}

.wuv-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid var(--wuv-line, #d3dae1);
  border-radius: 6px;
  background: #fbfcfd;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 10px;
}
/* The site sets form controls to full width, which would blow a tick box up. */
.wuv-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  min-width: 0;
  margin: 1px 0 0;
  padding: 0;
  accent-color: var(--wuv-accent, #274b6d);
}
.wuv-check:hover { border-color: #9fb2c4; }
.wuv-check span { min-width: 0; }
.wuv-check small { display: block; font-size: 11.5px; color: var(--wuv-muted, #5b6875); margin-top: 2px; }

.wuv-section { margin-top: 4px; }
.wuv-subactions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.wuv-subactions .btn { margin: 0; }

.wuv-modal__actions .btn--danger { color: var(--wuv-bad, #8c2320); }

/* ------------------------------------------------------------- duplicate */

/* A schedule usually repeats one construction at several sizes, so the
   duplicate dialog takes a row per new window rather than one copy at a time. */
.wuv-duptable-wrap { overflow-x: auto; border: 1px solid var(--wuv-line); border-radius: 6px; }
.wuv-duptable { border-collapse: collapse; width: 100%; min-width: 460px; font-size: 13px; }
.wuv-duptable th {
  text-align: left; font-size: 11px; font-weight: 600; color: var(--wuv-muted);
  padding: 8px 8px 6px; border-bottom: 1px solid var(--wuv-line);
  background: #f7f9fb; white-space: nowrap;
}
.wuv-duptable td { padding: 5px 6px; border-bottom: 1px solid #eef2f5; }
.wuv-duptable tr:last-child td { border-bottom: 0; }
.wuv-duptable input {
  width: 100%; padding: 5px 7px; border: 1px solid var(--wuv-line);
  border-radius: 4px; font: inherit; font-size: 13px;
}
.wuv-duptable th:last-child, .wuv-duptable td:last-child { width: 34px; text-align: center; }
.wuv-duprow-remove {
  background: none; border: 0; cursor: pointer; font-size: 19px; line-height: 1;
  color: var(--wuv-muted); padding: 2px 6px; border-radius: 4px;
}
.wuv-duprow-remove:hover:not(:disabled) { color: var(--wuv-bad); background: var(--wuv-badbg); }
.wuv-duprow-remove:disabled { opacity: 0.3; cursor: default; }
.wuv-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.wuv-sections {
  margin: 0 0 14px; padding: 9px 12px; font-size: 12.5px; line-height: 1.5;
  background: #f4f8fc; border-left: 3px solid var(--wuv-accent);
  border-radius: 0 4px 4px 0; color: var(--wuv-ink);
}
