/*
============================================================
WasNow UI Standard v1.1

Core display contract for user-facing WasNow workspaces.

Rules:
- no ordinary user-facing text below 12px
- consistent typography across desktop/mobile
- consistent cards, labels, provenance links and AI surfaces
============================================================
*/

:root {

  /* The WasNow palette (owner, 2026-11-05; TASK-stage2-polish §5). Named once: the same values
     are exported from vendor/WasNowPalette.mjs for canvas code. Roles: Umber ground, Ivory text,
     Walnut identity (never text), Walnut Deep calls to action, Cyan intelligence (never a
     warning), Amber action signal only (never structure, never on walnut), Coral "new since
     move-in" (Stage 3). No green. */
  --wn-umber: #302B27;
  --wn-ivory: #F2E8DA;
  --wn-walnut: #A87549;
  --wn-walnut-deep: #8A5C36;
  --wn-cyan: #85C8C5;
  --wn-amber: #E7AD52;
  --wn-umber-raised: #3A342F;
  --wn-ivory-muted: #CFC3B2;
  --wn-cyan-light: #E9FBFA;
  --wn-coral: #EC7B63;
  /* The camera overlay's recognition colours (owner's correction, 2026-11-06; as before 3ace0a4):
     what the scanner recognised is green, apart from the palette. Values in WasNowPalette.mjs
     (RECOGNITION). Off the camera, and the overlay's defect states, keep the palette. */
  --wn-recognised: #22c55e;
  --wn-recognised-light: #4ade80;
  --wn-recognised-text: #86efac;
  --wn-recognised-deep: #14532d;

  /* Typography */
  --wn-font-page-title: 32px;
  --wn-font-object-title: 26px;
  --wn-font-section-title: 20px;
  --wn-font-card-title: 18px;
  --wn-font-body: 16px;
  --wn-font-meta: 14px;
  --wn-font-caption: 13px;
  --wn-font-status: 11px;
  --wn-font-button: 15px;

  /* Line heights */
  --wn-line-title: 1.22;
  --wn-line-body: 1.5;
  --wn-line-meta: 1.45;

  /* Layout */
  --wn-page-max: 900px;
  --wn-page-padding: 18px;
  --wn-section-gap: 16px;
  --wn-card-padding: 18px;
  --wn-card-radius: 16px;

  /* Controls */
  --wn-control-height: 40px;
  --wn-mobile-control-height: 44px;
}


@media (max-width: 640px) {

  :root {
    --wn-font-page-title: 28px;
    --wn-font-object-title: 23px;
    --wn-font-section-title: 19px;
    --wn-font-card-title: 17px;
    --wn-font-body: 16px;
    --wn-font-meta: 14px;
    --wn-font-caption: 13px;
    --wn-font-status: 11px;
    --wn-font-button: 15px;

    --wn-page-padding: 16px;
    --wn-card-padding: 16px;
  }
}


/* ==========================================================
   Canonical reusable WasNow elements
   ========================================================== */

.wn-page-title {
  font-size: var(--wn-font-page-title);
  font-weight: 800;
  line-height: var(--wn-line-title);
}

.wn-object-title {
  font-size: var(--wn-font-object-title);
  font-weight: 800;
  line-height: var(--wn-line-title);
}

.wn-section-title {
  font-size: var(--wn-font-section-title);
  font-weight: 800;
  line-height: 1.3;
}

.wn-card-title {
  font-size: var(--wn-font-card-title);
  font-weight: 800;
  line-height: 1.35;
}

.wn-body {
  font-size: var(--wn-font-body);
  line-height: var(--wn-line-body);
}

.wn-meta {
  font-size: var(--wn-font-meta);
  line-height: var(--wn-line-meta);
}

.wn-caption {
  font-size: var(--wn-font-caption);
  line-height: var(--wn-line-meta);
}

.wn-status {
  font-size: var(--wn-font-status);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.wn-reference-link {
  color: #34393f;
  font-size: var(--wn-font-meta);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wn-reference-link:hover {
  text-decoration-thickness: 2px;
}

.wn-button {
  min-height: var(--wn-control-height);
  font-size: var(--wn-font-button);
  font-weight: 700;
}

@media (max-width: 640px) {

  .wn-button {
    min-height: var(--wn-mobile-control-height);
  }
}


/* ==========================================================
   WasNow Display Standard v1
   Legacy workspace compatibility layer

   New UI should prefer the canonical .wn-* classes above.
   These mappings bring existing landlord-facing workspaces
   onto the same display contract while they are migrated.

   RULE:
   No ordinary user-facing text below 12px.
   11px is reserved for compact status capsules only.
   ========================================================== */


/* ==========================================================
   CONTRACTS
   ========================================================== */

.wn-page-contracts .eyebrow {
  font-size:
    var(--wn-font-caption);
}

.wn-page-contracts h1 {
  font-size:
    var(--wn-font-page-title);
  line-height:
    var(--wn-line-title);
}

.wn-page-contracts .subtitle {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}

.wn-page-contracts .property-select {
  min-height:
    var(--wn-control-height);
  font-size:
    var(--wn-font-body);
}

.wn-page-contracts .portfolio-count,
.wn-page-contracts .property-meta,
.wn-page-contracts .contract-property-subtitle,
.wn-page-contracts .section-copy,
.wn-page-contracts .category-status,
.wn-page-contracts .contract-copy,
.wn-page-contracts .contract-document-meta,
.wn-page-contracts .contract-package-summary {
  font-size:
    var(--wn-font-meta);
  line-height:
    var(--wn-line-meta);
}

.wn-page-contracts .summary-label {
  font-size:
    var(--wn-font-caption);
}

.wn-page-contracts .section-title,
.wn-page-contracts .contract-review-title {
  font-size:
    var(--wn-font-section-title);
  line-height:
    1.3;
}

.wn-page-contracts .category-upload-title,
.wn-page-contracts .contract-review-section-title {
  font-size:
    var(--wn-font-section-title);
  line-height:
    1.3;
}

.wn-page-contracts .contract-document-title,
.wn-page-contracts .contract-property-title {
  font-size:
    var(--wn-font-card-title);
  line-height:
    1.35;
}

.wn-page-contracts .category-upload-copy,
.wn-page-contracts .contract-upload-source-option small,
.wn-page-contracts .contract-upload-ai-note,
.wn-page-contracts .contract-review-copy {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}

.wn-page-contracts .contract-upload-source-option strong,
.wn-page-contracts .contract-upload-drop-title,
.wn-page-contracts .contract-upload-file-row strong {
  font-size:
    var(--wn-font-card-title);
  line-height:
    1.35;
}

.wn-page-contracts .contract-upload-drop-copy,
.wn-page-contracts .contract-upload-file-row small,
.wn-page-contracts .category-back-button,
.wn-page-contracts .contract-review-source-row small {
  font-size:
    var(--wn-font-meta);
  line-height:
    var(--wn-line-meta);
}

.wn-page-contracts .contract-review-source-row strong {
  font-size:
    var(--wn-font-body);
}

.wn-page-contracts .contract-review-panel .field-label {
  font-size:
    var(--wn-font-caption);
}

.wn-page-contracts .contract-review-panel input,
.wn-page-contracts .contract-review-panel select,
.wn-page-contracts .contract-review-panel textarea {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}

.wn-page-contracts .address-verification,
.wn-page-contracts .contract-review-package-note {
  font-size:
    var(--wn-font-meta);
  line-height:
    var(--wn-line-meta);
}

.wn-page-contracts .view-button,
.wn-page-contracts .secondary-button,
.wn-page-contracts .document-review-button {
  min-height:
    var(--wn-control-height);
  font-size:
    var(--wn-font-button);
}

.wn-page-contracts .contract-state {
  font-size:
    var(--wn-font-status);
}


/* ==========================================================
   Shared card geometry
   ========================================================== */

.wn-page-contracts .section,
.wn-page-contracts .category-upload-card,
.wn-page-contracts .contract-review-panel {
  border-radius:
    var(--wn-card-radius);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

  .wn-page-contracts .view-button,
  .wn-page-contracts .secondary-button,
  .wn-page-contracts .document-review-button,
  .wn-page-contracts .property-select {
    min-height:
      var(--wn-mobile-control-height);
  }

  .wn-page-contracts .contract-upload-source-option strong {
    font-size:
      var(--wn-font-card-title);
  }

  .wn-page-contracts .contract-upload-source-option small,
  .wn-page-contracts .category-upload-copy,
  .wn-page-contracts .contract-upload-ai-note {
    font-size:
      var(--wn-font-body);
  }
}



/* ==========================================================
   SETTLEMENT
   WasNow Display Standard v1 compatibility layer
   ========================================================== */


/* ----------------------------------------------------------
   Page header
   ---------------------------------------------------------- */

.wn-page-settlement .hero-kicker {
  font-size:
    var(--wn-font-caption);
}

.wn-page-settlement .hero-title {
  font-size:
    var(--wn-font-page-title);
  line-height:
    var(--wn-line-title);
}

.wn-page-settlement .hero-address {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}

.wn-page-settlement .back-link,
.wn-page-settlement .save-status {
  font-size:
    var(--wn-font-meta);
  line-height:
    var(--wn-line-meta);
}


/* ----------------------------------------------------------
   Summary
   ---------------------------------------------------------- */

.wn-page-settlement .summary-card {
  padding:
    var(--wn-card-padding);
  border-radius:
    var(--wn-card-radius);
}

.wn-page-settlement .summary-label {
  font-size:
    var(--wn-font-caption);
}

.wn-page-settlement .summary-value {
  font-size:
    var(--wn-font-object-title);
  line-height:
    var(--wn-line-title);
}


/* ----------------------------------------------------------
   Sections
   ---------------------------------------------------------- */

.wn-page-settlement .section {
  padding:
    var(--wn-card-padding);
  border-radius:
    var(--wn-card-radius);
}

.wn-page-settlement .section-title {
  font-size:
    var(--wn-font-section-title);
  line-height:
    1.3;
}

.wn-page-settlement .section-copy {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}


/* ----------------------------------------------------------
   Form fields
   ---------------------------------------------------------- */

.wn-page-settlement .field-label {
  font-size:
    var(--wn-font-caption);
  line-height:
    var(--wn-line-meta);
}

.wn-page-settlement .field input,
.wn-page-settlement .field select,
.wn-page-settlement .field textarea,
.wn-page-settlement .settlement-notes {
  min-height:
    var(--wn-control-height);
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}


/* ----------------------------------------------------------
   Work charges
   ---------------------------------------------------------- */

.wn-page-settlement .work-title {
  font-size:
    var(--wn-font-card-title);
  line-height:
    1.35;
}

.wn-page-settlement .work-number {
  font-size:
    var(--wn-font-status);
}

.wn-page-settlement .actual-cost-label {
  font-size:
    var(--wn-font-caption);
}

.wn-page-settlement .actual-cost-value {
  font-size:
    var(--wn-font-card-title);
  line-height:
    1.35;
}

.wn-page-settlement .include-label {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}


/* ----------------------------------------------------------
   Evidence / provenance
   ---------------------------------------------------------- */

.wn-page-settlement .source-pill,
.wn-page-settlement .source-evidence-summary {
  font-size:
    var(--wn-font-meta);
  line-height:
    var(--wn-line-meta);
}

.wn-page-settlement .source-evidence-label {
  font-size:
    var(--wn-font-caption);
  line-height:
    var(--wn-line-meta);
}


/* ----------------------------------------------------------
   Calculation
   ---------------------------------------------------------- */

.wn-page-settlement .final-row {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}

.wn-page-settlement .final-row.result {
  font-size:
    var(--wn-font-section-title);
  line-height:
    1.3;
}


/* ----------------------------------------------------------
   General user-facing controls / messages
   ---------------------------------------------------------- */

.wn-page-settlement .finalize-button {
  min-height:
    var(--wn-control-height);
  font-size:
    var(--wn-font-button);
}

.wn-page-settlement .empty {
  font-size:
    var(--wn-font-body);
  line-height:
    var(--wn-line-body);
}


/* ----------------------------------------------------------
   Mobile
   ---------------------------------------------------------- */

@media (max-width: 640px) {

  .wn-page-settlement .field input,
  .wn-page-settlement .field select,
  .wn-page-settlement .field textarea,
  .wn-page-settlement .settlement-notes,
  .wn-page-settlement .finalize-button {
    min-height:
      var(--wn-mobile-control-height);
  }

}


/* ==========================================================
   Settlement Work Card
   Inspection Finding Card = WasNow card-display gold standard

   Inspection Finding reference:
   - finding number: prominent identifier
   - finding title: 17px
   - finding description/body: 14px

   Work cards should carry comparable visual weight.
   ========================================================== */

.wn-page-settlement .work-number {
  min-height: 34px;
  padding: 6px 10px;

  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}


.wn-page-settlement .work-title {
  font-size:
    var(--wn-font-card-title);
  font-weight: 850;
  line-height: 1.3;
}


/*
 * Source Findings are useful evidence/navigation,
 * not tiny metadata. Give them normal readable weight.
 */
.wn-page-settlement .source-evidence-summary {
  min-height: 44px;

  display: flex;
  align-items: center;

  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}


/*
 * Evidence links inside an expanded Source Findings area.
 */
.wn-page-settlement .source-pill {
  font-size: 13px;
  line-height: 1.4;
}


/*
 * Cost should remain clearly subordinate to the Work title,
 * but prominent enough for financial review.
 */
.wn-page-settlement .actual-cost-label {
  font-size: 12px;
  font-weight: 800;
}

.wn-page-settlement .actual-cost-value {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}


/*
 * Decision controls.
 */
.wn-page-settlement .work-decision .field-label,
.wn-page-settlement .work-fields .field-label {
  font-size: 12px;
  line-height: 1.35;
}


/* ==========================================================
   Mobile Work Card
   ========================================================== */

@media (max-width: 640px) {

  .wn-page-settlement .work-number {
    min-height: 36px;
    font-size: 16px;
  }

  .wn-page-settlement .work-title {
    font-size:
      var(--wn-font-card-title);
  }

  .wn-page-settlement .source-evidence-summary {
    min-height: 44px;
    font-size: 14px;
  }

  .wn-page-settlement .actual-cost-value {
    font-size: 18px;
  }
}



/* ==========================================================
   CONTRACT REVIEW — canonical display hierarchy

   Review AI Analysis = object/workspace title
   Review subsections = section headings
   Form content = standard body scale

   This intentionally comes after the legacy compatibility
   mappings so the semantic hierarchy is authoritative.
   ========================================================== */


/* Major review object title */
.wn-page-contracts .contract-review-title {
  font-size:
    var(--wn-font-object-title);

  font-weight:
    800;

  line-height:
    var(--wn-line-title);
}


/* Introductory explanation */
.wn-page-contracts .contract-review-copy {
  font-size:
    var(--wn-font-body);

  line-height:
    var(--wn-line-body);
}


/* Contract Status, Source Documents,
   Document & Agreement, Property Address,
   Parties, Rent & Deposit, etc. */
.wn-page-contracts .contract-review-section-title {
  font-size:
    var(--wn-font-section-title);

  font-weight:
    800;

  line-height:
    1.3;
}


/* Form field labels */
.wn-page-contracts
.contract-review-panel
.field-label {
  font-size:
    var(--wn-font-caption);

  font-weight:
    700;

  line-height:
    1.35;
}


/* Actual editable/readable contract information */
.wn-page-contracts
.contract-review-panel input,

.wn-page-contracts
.contract-review-panel select,

.wn-page-contracts
.contract-review-panel textarea {
  font-size:
    var(--wn-font-body);

  line-height:
    var(--wn-line-body);
}


/* Package/lifecycle explanatory surfaces */
.wn-page-contracts
.contract-review-package-note,

.wn-page-contracts
.address-verification {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* Source agreement/file card */
.wn-page-contracts
.contract-review-source-row strong {
  font-size:
    var(--wn-font-card-title);

  font-weight:
    800;

  line-height:
    1.35;
}

.wn-page-contracts
.contract-review-source-row small {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* Review controls */
.wn-page-contracts
.contract-review-panel .view-button,

.wn-page-contracts
.contract-review-panel .secondary-button {
  min-height:
    var(--wn-control-height);

  font-size:
    var(--wn-font-button);
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 640px) {

  .wn-page-contracts
  .contract-review-panel .view-button,

  .wn-page-contracts
  .contract-review-panel .secondary-button {

    min-height:
      var(--wn-mobile-control-height);
  }
}



/* ==========================================================
   WasNow Operational Card Standard v1

   Reference implementation:
   Inspection Report Finding Card

   Used for operational objects such as:
   - Inspection Findings
   - Property Work
   - Settlement Work
   - Contract/document cards
   - future WasNow object cards

   Typography is semantic. Page-specific CSS remains
   responsible for geometry, colors and layout.
   ========================================================== */

:root {

  /* Desktop operational-card typography */

  --wn-op-card-id:
    16px;

  --wn-op-card-label:
    12px;

  --wn-op-card-title:
    18px;

  --wn-op-card-body:
    15px;

  --wn-op-card-evidence:
    14px;

  --wn-op-card-status:
    11px;
}


/* ----------------------------------------------------------
   Shared semantic roles
   ---------------------------------------------------------- */

.wn-object-id {
  font-size:
    var(--wn-op-card-id);

  font-weight:
    800;

  line-height:
    1;
}


.wn-card-label {
  font-size:
    var(--wn-op-card-label);

  font-weight:
    700;

  line-height:
    1.3;
}


.wn-operational-card-title {
  font-size:
    var(--wn-op-card-title);

  font-weight:
    700;

  line-height:
    1.3;
}


.wn-card-body {
  font-size:
    var(--wn-op-card-body);

  line-height:
    1.5;
}


.wn-card-evidence {
  font-size:
    var(--wn-op-card-evidence);

  line-height:
    1.45;
}


.wn-operational-status {
  font-size:
    var(--wn-op-card-status);

  font-weight:
    700;

  line-height:
    1.3;
}


/* ----------------------------------------------------------
   Mobile operational-card typography

   Mobile body/evidence text is intentionally larger for
   readability. Object IDs and status capsules remain compact.
   ---------------------------------------------------------- */

@media (max-width: 640px) {

  :root {

    --wn-op-card-id:
      16px;

    --wn-op-card-label:
      12px;

    --wn-op-card-title:
      18px;

    --wn-op-card-body:
      16px;

    --wn-op-card-evidence:
      14px;

    --wn-op-card-status:
      11px;
  }
}



/* ==========================================================
   WasNow Operational Card Standard
   SEMANTIC TYPOGRAPHY AUTHORITY

   Once an element carries a wn-* operational-card role,
   that role owns typography.

   Page-specific selectors may continue to control:
   - layout
   - spacing
   - borders
   - colors
   - backgrounds

   They must NOT override the semantic typography role.

   !important is intentionally limited to the typography
   contract so legacy page CSS cannot defeat the design system.
   ========================================================== */

.wn-object-id {
  font-size:
    var(--wn-op-card-id) !important;

  font-weight:
    800 !important;

  line-height:
    1 !important;
}


.wn-card-label {
  font-size:
    var(--wn-op-card-label) !important;

  font-weight:
    700 !important;

  line-height:
    1.3 !important;
}


.wn-operational-card-title {
  font-size:
    var(--wn-op-card-title) !important;

  font-weight:
    700 !important;

  line-height:
    1.3 !important;
}


.wn-card-body {
  font-size:
    var(--wn-op-card-body) !important;

  line-height:
    1.5 !important;
}


.wn-card-evidence {
  font-size:
    var(--wn-op-card-evidence) !important;

  line-height:
    1.45 !important;
}


.wn-operational-status {
  font-size:
    var(--wn-op-card-status) !important;

  font-weight:
    700 !important;

  line-height:
    1.3 !important;
}


/* ==========================================================
   WasNow landlord-facing workspace width

   Inspection Report is the reference reading width.
   Shared detail/review workspaces should use the same
   900px maximum unless there is a specific dense-data reason
   to opt out.
   ========================================================== */

.wn-page-settlement .app,
.wn-page-contracts main,
.wn-page-property-work main,
.wn-page-property .app {
  width:
    min(
      100%,
      var(--wn-page-max)
    );

  max-width:
    var(--wn-page-max);

  margin-left:
    auto;

  margin-right:
    auto;
}


/* ==========================================================
   Settlement workspace width
   Inspection Report = reference width
   ========================================================== */

.wn-page-settlement .app {
  width:
    min(
      100%,
      var(--wn-page-max)
    );

  max-width:
    var(--wn-page-max);

  margin-left:
    auto;

  margin-right:
    auto;
}


/* ==========================================================
   Contracts operational typography
   Align document + AI review surfaces with WasNow detail pages.
   Portfolio/category navigation remains intentionally compact.
   ========================================================== */

/* ---------- Document rows ---------- */

.wn-page-contracts .contract-document-title {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 800;
}

.wn-page-contracts .contract-document-meta {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4;
}

.wn-page-contracts .document-status {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
}

.wn-page-contracts .document-review-button {
  min-height: var(--wn-control-height);
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.2;
}


/* ---------- AI review hierarchy ---------- */

.wn-page-contracts .contract-review-title {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 800;
}

.wn-page-contracts .contract-review-copy {
  margin-top: 5px;
  font-size: 14px;
  line-height: var(--wn-line-body);
}

.wn-page-contracts .contract-review-section-title {
  margin-bottom: 11px;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 800;
}


/* ---------- Review form labels + values ---------- */

.wn-page-contracts .contract-review-panel .field-label {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: var(--wn-line-meta);
  font-weight: 800;
}

.wn-page-contracts .contract-review-panel input,
.wn-page-contracts .contract-review-panel select,
.wn-page-contracts .contract-review-panel textarea {
  min-height: var(--wn-control-height);
  font-size: 14px;
  line-height: 1.4;
}

.wn-page-contracts .contract-review-panel textarea {
  padding-top: 9px;
  padding-bottom: 9px;
}


/* ---------- Review supporting information ---------- */

.wn-page-contracts .address-verification {
  font-size: 13px;
  line-height: 1.4;
}

.wn-page-contracts .contract-review-package-note {
  font-size: 12px;
  line-height: var(--wn-line-meta);
}

.wn-page-contracts .contract-review-source-row {
  font-size: 13px;
  line-height: 1.4;
}

.wn-page-contracts .contract-review-source-row small {
  font-size: 12px;
  line-height: var(--wn-line-meta);
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {

  .wn-page-contracts .document-review-button {
    min-height: var(--wn-mobile-control-height);
    font-size: 13px;
  }

  .wn-page-contracts .contract-review-panel input,
  .wn-page-contracts .contract-review-panel select,
  .wn-page-contracts .contract-review-panel textarea {
    min-height: var(--wn-mobile-control-height);
    font-size: 16px;
  }

}


/* ==========================================================
   PROPERTY WORKSPACE DISPLAY STANDARD

   Align the Property detail workspace with the shared
   WasNow landlord-facing typography system.

   Existing property.html selectors continue to own layout,
   colors and component geometry.
   ========================================================== */


/* ---------- Property identity ---------- */

.wn-page-property .address {
  font-size:
    var(--wn-font-page-title);

  line-height:
    var(--wn-line-title);

  font-weight:
    800;
}

.wn-page-property .location {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Major sections ---------- */

.wn-page-property .section-title,
.wn-page-property .media-title {
  font-size:
    var(--wn-font-section-title);

  line-height:
    1.3;

  font-weight:
    800;
}

.wn-page-property .section-copy,
.wn-page-property .media-copy {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Summary / quick facts ---------- */

.wn-page-property .quick-value {
  font-size:
    var(--wn-font-card-title);

  line-height:
    1.3;
}

.wn-page-property .quick-label,
.wn-page-property .purchase-summary-label {
  font-size:
    var(--wn-font-caption);

  line-height:
    var(--wn-line-meta);
}

.wn-page-property .purchase-summary-value {
  font-size:
    var(--wn-font-card-title);

  line-height:
    1.35;

  font-weight:
    800;
}


/* ---------- Property fields ---------- */

.wn-page-property .field-label {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}

.wn-page-property .field-value {
  font-size:
    var(--wn-font-body);

  line-height:
    var(--wn-line-body);
}

.wn-page-property .field-meta {
  font-size:
    var(--wn-font-caption);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Modules ---------- */

.wn-page-property .module-title {
  font-size:
    var(--wn-font-card-title);

  line-height:
    1.35;

  font-weight:
    800;
}

.wn-page-property .module-copy {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Embedded Work cards ---------- */

.wn-page-property .work-title {
  font-size:
    var(--wn-op-card-title);

  line-height:
    1.3;

  font-weight:
    700;
}

.wn-page-property .work-number {
  font-size:
    var(--wn-op-card-id);

  line-height:
    1;

  font-weight:
    800;
}

.wn-page-property .work-status {
  font-size:
    var(--wn-op-card-status);

  line-height:
    1.3;

  font-weight:
    700;
}

.wn-page-property .work-description {
  font-size:
    var(--wn-op-card-body);

  line-height:
    1.5;
}

.wn-page-property .work-meta,
.wn-page-property .work-spaces {
  font-size:
    var(--wn-op-card-evidence);

  line-height:
    1.45;
}


/* ---------- Cost evidence ---------- */

.wn-page-property .work-cost-title {
  font-size:
    var(--wn-font-body);

  line-height:
    1.4;

  font-weight:
    700;
}

.wn-page-property .work-cost-meta,
.wn-page-property .work-cost-document-link {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Buttons ---------- */

.wn-page-property .edit-button,
.wn-page-property .research-button,
.wn-page-property .work-review-button,
.wn-page-property .work-add-evidence-button,
.wn-page-property .purchase-secondary-button,
.wn-page-property .media-add {
  min-height:
    var(--wn-control-height);

  font-size:
    var(--wn-font-button);

  line-height:
    1.25;
}


/* ---------- Media ---------- */

.wn-page-property .media-group-title {
  font-size:
    var(--wn-font-card-title);

  line-height:
    1.35;
}

.wn-page-property .media-group-count,
.wn-page-property .media-message,
.wn-page-property .media-empty {
  font-size:
    var(--wn-font-meta);

  line-height:
    var(--wn-line-meta);
}

.wn-page-property .media-item-name {
  font-size:
    var(--wn-font-caption);

  line-height:
    var(--wn-line-meta);
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {

  .wn-page-property .edit-button,
  .wn-page-property .research-button,
  .wn-page-property .work-review-button,
  .wn-page-property .work-add-evidence-button,
  .wn-page-property .purchase-secondary-button,
  .wn-page-property .media-add {
    min-height:
      var(--wn-mobile-control-height);
  }

}


/* Property workspace uses the complete app shell as its
   canonical 900px landlord-facing workspace. */

.wn-page-property .app {
  width: 100%;
  max-width: var(--wn-page-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}


/* ==========================================================
   Property bottom navigation alignment
   Match the canonical landlord-facing 900px workspace.
   ========================================================== */

.wn-page-property .bottom-nav {
  width:
    min(
      100%,
      var(--wn-page-max)
    );

  max-width:
    var(--wn-page-max);
}


/* ==========================================================
   Property Data responsive grid

   Desktop: 2 columns
   Mobile:  1 column

   The existing .field component remains unchanged internally.
   ========================================================== */

.wn-page-property #profileFields {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  border-top:
    1px solid var(--line);
}


/* Each Property Data field becomes a grid cell. */

.wn-page-property #profileFields .field {
  min-width: 0;

  border-bottom:
    1px solid var(--line);
}


/* Draw the center divider between columns. */

.wn-page-property #profileFields .field:nth-child(odd) {
  border-right:
    1px solid var(--line);
}


/* Remove the old special-case final-row assumptions. */

.wn-page-property #profileFields .field:last-child {
  border-bottom:
    1px solid var(--line);
}


/* ---------- Mobile ---------- */

@media (max-width: 640px) {

  .wn-page-property #profileFields {
    grid-template-columns:
      1fr;
  }

  .wn-page-property #profileFields .field:nth-child(odd) {
    border-right:
      0;
  }

}


/* ==========================================================
   PROPERTY PORTFOLIO / HOME WORKSPACE

   Canonical WasNow desktop workspace:
   900px maximum width.

   Applies consistently to:
   - top navigation
   - portfolio content
   - persistent bottom navigation

   Mobile naturally remains full-width.
   ========================================================== */

.wn-page-property-store > nav:not(.bottom-nav),
.wn-page-property-store main,
.wn-page-property-store .bottom-nav {
  width: 100%;
  max-width: var(--wn-page-max);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}


/* Persistent nav retains its fixed positioning and centering. */

.wn-page-property-store .bottom-nav {
  left: 50%;
  margin-left: 0;
  margin-right: 0;
  transform: translateX(-50%);
}


/* ==========================================================
   HOME / PROPERTY PORTFOLIO WIDTH CORRECTION

   --wn-page-max represents the visible content width.
   Home main has 28px horizontal page padding, so its outer
   shell must accommodate that padding in addition to the
   canonical 900px content width.
   ========================================================== */

.wn-page-property-store main {
  width: 100%;
  max-width:
    calc(
      var(--wn-page-max)
      + 56px
    );

  box-sizing:
    border-box;

  margin-left:
    auto;

  margin-right:
    auto;
}


/* Header and persistent navigation align to the
   canonical 900px visible workspace. */

.wn-page-property-store > nav:not(.bottom-nav),
.wn-page-property-store .bottom-nav {
  width: 100%;

  max-width:
    var(--wn-page-max);
}


.wn-page-property-store .bottom-nav {
  left: 50%;
  margin-left: 0;
  margin-right: 0;
  transform:
    translateX(-50%);
}


/* ==========================================================
   WasNow shared bottom navigation
   Desktop navigation aligns with 900px workspace.
   ========================================================== */

.bottom-nav {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 0 !important;
  z-index: 1000 !important;

  transform: translateX(-50%) !important;

  width: min(100%, var(--wn-page-max)) !important;
  max-width: var(--wn-page-max) !important;

  height: 76px !important;
  box-sizing: border-box !important;

  border-top: 1px solid var(--wn-line, #d8d8d8) !important;
  background: rgba(255,255,255,.97) !important;

  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
}

.bottom-nav .nav-item {
  min-width: 0 !important;
  height: 100% !important;
  padding: 7px 4px 8px !important;

  border: 0 !important;
  background: transparent !important;

  color: #80858d !important;

  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;

  gap: 3px !important;

  font-size: 11px !important;
  line-height: 1.15 !important;

  cursor: pointer;
}

.bottom-nav .nav-item strong {
  display: block !important;

  margin: 0 !important;

  font-size: 18px !important;
  line-height: 1 !important;

  font-weight: 600 !important;
}

.bottom-nav .nav-item.active {
  color: #17191c !important;
  font-weight: 800 !important;
}


/* Mobile */

@media (max-width: 640px) {

  .bottom-nav {
    width: 100% !important;
    height: 68px !important;
  }

  .bottom-nav .nav-item {
    padding: 5px 2px 6px !important;
    gap: 2px !important;
    font-size: 10px !important;
  }

  .bottom-nav .nav-item strong {
    font-size: 17px !important;
  }

}


/* ==========================================================
   WasNow bottom navigation alignment correction

   900px remains the canonical outer desktop workspace.
   Detail workspaces align navigation to the visible content
   area inside the standard horizontal page padding.
   ========================================================== */


/* Home portfolio: nav aligns with the full 900px content area. */

.wn-page-property-store .bottom-nav {
  width: min(100%, var(--wn-page-max)) !important;
  max-width: var(--wn-page-max) !important;
}


/* Detail workspaces:
   900px shell minus standard 18px left/right content padding. */

.wn-page-contracts .bottom-nav,
.wn-page-property-work .bottom-nav,
.wn-page-property .bottom-nav {
  width:
    min(
      100%,
      calc(
        var(--wn-page-max)
        - (2 * var(--wn-page-padding))
      )
    ) !important;

  max-width:
    calc(
      var(--wn-page-max)
      - (2 * var(--wn-page-padding))
    ) !important;
}


/* ==========================================================
   Shared navigation vertical rhythm
   ========================================================== */

.bottom-nav {
  height: 72px !important;
}

.bottom-nav .nav-item {
  padding: 5px 4px 6px !important;
  gap: 2px !important;

  justify-content: center !important;
}

.bottom-nav .nav-item strong {
  margin: 0 0 2px !important;
  line-height: 1 !important;
}


/* Home had slightly lower visual placement because of its
   surrounding page geometry. Keep the same component but
   raise the icon/label group subtly. */

.wn-page-property-store .bottom-nav .nav-item {
  transform: translateY(-2px);
}


/* Mobile remains full-width and compact. */

@media (max-width: 640px) {

  .wn-page-property-store .bottom-nav,
  .wn-page-contracts .bottom-nav,
  .wn-page-property-work .bottom-nav,
  .wn-page-property .bottom-nav {
    width: 100% !important;
    max-width: none !important;
  }

  .bottom-nav {
    height: 68px !important;
  }

  .wn-page-property-store .bottom-nav .nav-item {
    transform: none;
  }

}


/* ==========================================================
   WasNow Sign-Off Standard v1
   ========================================================== */

.wn-signoff-status {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.wn-signoff-status.draft {
  color: #8a651b;
  background: #faf6e8;
}

.wn-signoff-status.ready-to-sign {
  color: #2f6e40;
  background: #eaf7ed;
}

.wn-signoff-status.primary-signed,
.wn-signoff-status.secondary-signed,
.wn-signoff-status.partially-signed {
  color: #315d86;
  background: #edf4fa;
}

.wn-signoff-status.fully-signed {
  color: #2f6e40;
  background: #daf3df;
}

.wn-signoff-status.superseded {
  color: #666;
  background: #f1f2f3;
}



/* ==========================================================
   WasNow Sign-Off Standard v1 — status capsule refinement
   ========================================================== */

.wn-signoff-status {
  border: 1px solid transparent;
}

/* Ready to Sign = neutral / factual readiness state */

.wn-signoff-status.ready-to-sign {
  color: #555f69;
  background: rgba(107, 114, 128, .10);
  border-color: rgba(107, 114, 128, .18);
}

/* One party signed = factual progress, blue */

.wn-signoff-status.primary-signed,
.wn-signoff-status.secondary-signed,
.wn-signoff-status.partially-signed {
  color: #245b8f;
  background: rgba(49, 93, 134, .10);
  border-color: rgba(49, 93, 134, .18);
}

/* Both parties signed = completed, green */

.wn-signoff-status.fully-signed {
  color: #236437;
  background: rgba(54, 122, 73, .11);
  border-color: rgba(54, 122, 73, .20);
}

/* Draft stays distinguishable but understated */

.wn-signoff-status.draft {
  color: #82631f;
  background: rgba(154, 106, 19, .08);
  border-color: rgba(154, 106, 19, .14);
}

/* Superseded = historical */

.wn-signoff-status.superseded {
  color: #666;
  background: rgba(107, 114, 128, .08);
  border-color: rgba(107, 114, 128, .14);
}



/* ==========================================================
   COMPACT CHECKBOX DROPDOWN
   Reusable bounded-height multi-select for mobile forms.
   ========================================================== */

.wn-check-dropdown {
  position: relative;
}

.wn-check-dropdown-toggle {
  width: 100%;
  min-height: var(--wn-control-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 10px;
  color: #111827;
  background: #ffffff;
  font: inherit;
  font-size: var(--wn-font-body);
  text-align: left;
}

.wn-check-dropdown-toggle::after {
  content: "▾";
  flex: 0 0 auto;
  font-size: 12px;
  opacity: .7;
}

.wn-check-dropdown-toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.wn-check-dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: min(42vh, 320px);
  margin-top: 6px;
  padding: 6px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid rgba(17, 24, 39, .16);
  border-radius: 12px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.wn-check-dropdown-menu[hidden] {
  display: none !important;
}

/*
 * Optional wider menu while keeping the compact
 * trigger width. Useful for mobile multi-select lists.
 */
.wn-check-dropdown--wide .wn-check-dropdown-menu {
  right: auto;
  width: min(88vw, 420px);
  max-width: calc(100vw - 32px);
}

.wn-check-dropdown--wide .wn-check-dropdown-option > span {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}


.wn-check-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.wn-check-dropdown-option:hover {
  background: rgba(17, 24, 39, .05);
}

.wn-check-dropdown-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.wn-check-dropdown-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn-check-dropdown-other {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(17, 24, 39, .10);
}

.wn-check-dropdown-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 4px 9px 8px;
}

.wn-check-dropdown-custom[hidden] {
  display: none !important;
}

.wn-check-dropdown-custom input,
.wn-check-dropdown-custom select {
  min-width: 0;
  min-height: var(--wn-control-height);
  padding: 8px 10px;
  border: 1px solid rgba(17, 24, 39, .18);
  border-radius: 8px;
  color: inherit;
  background: #ffffff;
  font: inherit;
  font-size: var(--wn-font-body);
}

.wn-check-dropdown-custom-options {
  grid-column: 1 / -1;
}

.wn-check-dropdown-custom .wn-button {
  white-space: nowrap;
}

.wn-check-dropdown-toggle:disabled,
.wn-check-dropdown-option input:disabled,
.wn-check-dropdown-custom input:disabled,
.wn-check-dropdown-custom select:disabled {
  cursor: not-allowed;
  opacity: .58;
}

@media (max-width: 640px) {
  .wn-check-dropdown-toggle {
    min-height: var(--wn-mobile-control-height);
  }

  .wn-check-dropdown-menu {
    max-height: min(38vh, 280px);
  }
}


/* ==========================================================
   CAMERA CAPTURE
   Shared camera surface for guided capture and evidence flows.
   Workflow-specific guidance belongs outside these primitives.
   ========================================================== */

body.wn-page-vlm-capture.is-scanning {
  overflow: hidden;
}

.wn-page-vlm-capture .vlm-capture-main {
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.wn-page-vlm-capture .wn-camera-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.wn-page-vlm-capture .wn-camera-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wn-page-vlm-capture .wn-camera-preview {
  min-height: 0;
  height: 100%;
}

.wn-page-vlm-capture .wn-camera-controls {
  flex: 0 0 auto;
}

.wn-camera-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0b0c0e;
  border-radius: var(--wn-card-radius);
}

.wn-camera-stage {
  position: relative;
  width: 100%;
  min-height: 520px;
  background: #0b0c0e;
}

.wn-camera-preview {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  background: #0b0c0e;
}

.wn-tap-reticle {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65), inset 0 0 0 1px rgba(0, 0, 0, .5);
  pointer-events: none;
  z-index: 3;
  transition: border-color .15s, box-shadow .15s;
}
.wn-reticle-mode .wn-tap-reticle { display: block; }
/* The merged scan (the owner's arrows): no fade, so the reticle's green comes in the same frame as the arrow going and
   the guide's on-mark line. */
.wn-merged-scan .wn-tap-reticle { transition: none; }
.wn-reticle-mode.wn-tap-active .wn-tap-reticle { display: none; }
/* The processing animation fills the guide box, which keeps its size; the line sits over it. */
.wn-camera-guide.wn-guide-thinking { background: var(--wn-umber); overflow: hidden; justify-content: center; }
.wn-guide-thinking #vlmCameraGuideTitle { display: none; }
.wn-guide-thinking > :not(.wn-thinking-canvas) { position: relative; z-index: 1; }
.wn-thinking-canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; pointer-events: none; z-index: 0; }
.wn-tap-reticle-cyan,
.wn-tap-reticle-landmark,
.wn-tap-reticle-square {
  border-color: var(--wn-recognised);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .65), 0 0 14px #22c55e99;
}
.wn-sketch-review .wn-tap-status,
.wn-reticle-mode .wn-tap-status {
  box-sizing: border-box;
  position: absolute;
  left: 50%;
  right: auto;
  width: max-content;
  max-width: min(80%, 420px);
  padding: 8px 11px;
  transform: translateX(-50%);
  border-radius: 12px;
  background: rgba(0,0,0,.55);
  color: white;
  font: 14px/1.3 system-ui, sans-serif;
  z-index: 7;
}
.wn-check-reference { width: 96px; height: 64px; object-fit: cover;
  align-self: center; border: 1px solid var(--wn-ivory-muted); border-radius: 5px; touch-action: none; }
.wn-reticle-mode .wn-camera-guide .wn-check-reference { pointer-events: auto; }
.wn-tap-skip-choices { display: flex; justify-content: center; gap: 8px; }
.wn-reticle-mode .wn-tap-status-text {
  overflow: hidden;
  white-space: normal;
  line-height: 1.3;
}
.wn-tap-status { display: none; }
.wn-reticle-mode .wn-tap-status:not([hidden]),
.wn-sketch-review .wn-tap-status:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 6px;
  top: calc(50% - var(--wn-reticle-radius, 34px) - 16px);
  transform: translate(-50%, -100%);
  transition: opacity .2s ease;
}
.wn-tap-status-fade { opacity: 0; }
.wn-tap-status[data-processing="true"] .wn-tap-status-text::after {
  content: "...";
  display: inline-block;
  width: 0;
  overflow: hidden;
  vertical-align: bottom;
  animation: wn-tap-status-dots 1.2s steps(3,end) infinite;
}
@keyframes wn-tap-status-dots { to { width: 1.1em; } }
@media (prefers-reduced-motion: reduce) {
  .wn-tap-status[data-processing="true"] .wn-tap-status-text::after { animation: none; width: auto; }
}
.wn-tap-status-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wn-amber); }
.wn-tap-status[data-tone="cyan"] .wn-tap-status-dot { background: var(--wn-recognised); }
.wn-tap-status[data-tone="grey"] .wn-tap-status-dot { background: #9ca3af; }
.wn-tap-status[data-tone="amber-outline"] .wn-tap-status-dot { background: transparent; border: 1px solid var(--wn-amber); }
.wn-tap-status-cancel,
.wn-tap-skip-wall,
.wn-tap-skip-choice { border: 0; background: none; color: white; font: inherit; text-decoration: underline; cursor: pointer; }
.wn-tap-status-cancel { flex: none; margin-left: 4px; }
.wn-wall-undo-confirm { display: flex; gap: 6px; }
.wn-wall-undo-confirm button { border: 0; border-radius: 5px; padding: 3px 7px; color: var(--wn-ivory); background: var(--wn-umber-raised); }
.wn-tap-skip-wall[hidden], .wn-tap-not-here[hidden], .wn-tap-status-cancel[hidden] { display: none !important; }
.wn-tap-not-here { border: 1px solid var(--wn-ivory-muted); border-radius: 6px; background: var(--wn-umber-raised); color: var(--wn-ivory); font: inherit; padding: 5px 9px; cursor: pointer; }
.wn-reticle-mode .wn-tap-still .wn-tap-processing { display: none; }
.wn-reticle-mode .wn-camera-feedback,
.wn-reticle-mode .wn-camera-lab-strip-status { display: none !important; }
/* The guide's text lets taps through to the preview; Skip stays tappable. */
.wn-reticle-mode .wn-camera-guide button { pointer-events: auto; }
.wn-wall-carousel { display: none; }
.wn-wall-carousel:not([hidden]) { display: block; box-sizing: border-box; width: 100%; height: 100%; overflow: hidden; background: rgba(5,10,18,.85); }
.wn-wall-carousel-strip { height: 100%; display: flex; align-items: center; gap: 5px; padding: 3px 8px; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
.wn-wall-carousel-strip::-webkit-scrollbar { display: none; }
.wn-wall-tile,.wn-wall-end { position: relative; flex: none; height: 100%; aspect-ratio: 16/9; box-sizing: border-box; border: 1px solid #d1d5db77; border-radius: 5px; overflow: visible; background: #3f4753; color: white; font: 10px/1.2 system-ui,sans-serif; text-align: center; }
.wn-wall-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.wn-wall-tile-reference img { filter: grayscale(1); opacity: .55; }
.wn-wall-tile > span { position: absolute; bottom: 0; left: 0; right: 0; padding: 1px; background: #000a; }
.wn-wall-tile:not(:has(img)) { display: grid; place-items: center; overflow: hidden; }
.wn-wall-tile:not(:has(img)) > span { position: static; background: transparent; overflow-wrap: anywhere; }
.wn-wall-tile-skipped { display: flex; flex-direction: column; justify-content: center; }
.wn-wall-tile-skipped > span { position: static; }
.wn-wall-tile small,.wn-wall-end small { display: block; font-size: 9px; }
.wn-wall-end { cursor: pointer; }
.wn-wall-end:disabled { opacity: .5; cursor: default; }
@keyframes wn-wall-end-glow { 50% { box-shadow: 0 0 0 4px var(--wn-recognised), 0 0 15px var(--wn-recognised-light); } }
.wn-wall-end-pulse { outline: 3px solid var(--wn-recognised-light); outline-offset: 1px; animation: wn-wall-end-glow 1.2s ease-in-out infinite; }
/* The way to turn, before the line (◀ or ▶). */
.wn-guide-arrow { display: inline-block; margin-right: 6px; font-weight: 700; color: var(--wn-cyan); }
/* Part II's items (TASK-item-check): "Check the room's items" over the camera view. */
.wn-items { position: absolute; left: 12px; right: 12px; top: calc(60px + env(safe-area-inset-top)); bottom: 12px;
  z-index: 7; overflow-y: auto; overscroll-behavior: contain; padding: 12px 12px 0; border-radius: 12px;
  background: rgba(48,43,39,.96); color: var(--wn-ivory); font-size: 15px; line-height: 1.3; }
.wn-items[hidden] { display: none; }
.wn-items-title { margin: 0 0 10px; font-size: 18px; }
.wn-items h3 { margin: 0 0 4px; font-size: 13px; color: var(--wn-ivory-muted); text-transform: uppercase; letter-spacing: .04em; }
.wn-items-nothing { margin: 4px 0 10px; color: var(--wn-ivory-muted); }
.wn-items-row { display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 4px 10px; align-items: start;
  padding: 8px 0 8px 8px; border-top: 1px solid var(--wn-umber-raised); border-left: 4px solid transparent; }
.wn-items-row:not(:has(.wn-items-thumb)) { grid-template-columns: minmax(0,1fr); }
.wn-items-row.wn-items-missing { border-left-color: var(--wn-amber); }
.wn-items-row.wn-items-closeup { border-left-color: var(--wn-amber); }
.wn-items-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--wn-umber-raised); }
.wn-items-detail { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wn-items-detail strong { overflow-wrap: anywhere; }
.wn-items-state { color: var(--wn-amber); font-weight: 600; }
.wn-items-closeup .wn-items-state { color: var(--wn-amber); }
.wn-items .wn-items-state-found { color: var(--wn-cyan); }
/* The guide box stays behind the list; it comes back with each prompt. */
.wn-camera-guide.wn-guide-under-items { visibility: hidden; }
.wn-items-note, .wn-items-where { color: var(--wn-ivory-muted); font-size: 14px; }
.wn-items-rating { font-size: 14px; color: var(--wn-ivory); }
.wn-items-rating-flagged { color: var(--wn-amber); }
.wn-items-rating-ok { color: var(--wn-cyan); }
.wn-items-same { color: var(--wn-ivory-muted); font-size: 14px; }
.wn-items-working { color: var(--wn-ivory-muted); font-size: 14px; }
.wn-items-working-works { color: var(--wn-cyan); }
.wn-items-working-didnt, .wn-items .wn-items-working-noise { color: var(--wn-amber); }
.wn-items-working-onsite { color: var(--wn-amber); }
.wn-items-same-looks_different { color: var(--wn-amber); }
.wn-items-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.wn-items-actions button, .wn-items-done { min-height: 44px; padding: 6px 12px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 8px; background: var(--wn-umber-raised); color: var(--wn-ivory); font: inherit; cursor: pointer; }
.wn-items-actions .wn-items-point, .wn-items-actions .wn-items-closeup-button,
.wn-items-actions .wn-items-check-button { border-color: var(--wn-walnut-deep); background: var(--wn-walnut-deep); color: var(--wn-ivory); }
.wn-items details { margin-top: 8px; border-top: 1px solid var(--wn-umber-raised); }
.wn-items summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.wn-items-also .wn-items-row { opacity: .55; }
.wn-items-footer { position: sticky; bottom: 0; margin-top: 10px; padding: 10px 0 12px;
  background: linear-gradient(to bottom, rgba(48,43,39,0), rgba(48,43,39,.95) 30%); }
.wn-items-done { width: 100%; border-color: var(--wn-walnut-deep); background: var(--wn-walnut-deep); color: var(--wn-ivory); font-weight: 700; }
.wn-items-prompt-button { margin: 8px 4px 0; }
/* A functional check's buttons: one wrapped row (Start and "Can't do it"; the four reasons and Back). */
.wn-fn-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 2px; }
.wn-fn-buttons .wn-fn-button { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .wn-wall-end-pulse { animation: none; outline: 4px solid var(--wn-recognised-light); box-shadow: 0 0 0 2px var(--wn-recognised-deep); } }
.wn-wall-corner { flex: none; position: relative; width: 10px; height: 10px; border-radius: 50%; }
.wn-wall-corner-y { background: var(--wn-recognised); }
.wn-wall-corner-point { border: 2px solid var(--wn-amber); }
.wn-wall-corner:has(.wn-wall-undo) { margin-right: 8px; }
.wn-wall-undo { position: absolute; top: -6px; right: -6px; z-index: 2; width: 17px; height: 17px; border-radius: 50%; border: 0; background: #111; color: #fff; font-size: 14px; line-height: 14px; }
.wn-wall-preview { position: fixed; z-index: 60; left: 50%; bottom: 100px; transform: translateX(-50%); width: 60vw; max-width: 360px; background: #101820; border-radius: 8px; padding: 5px; color: white; text-align: center; box-shadow: 0 8px 25px #0009; animation: wn-wall-preview-in .18s ease-out both; }
@keyframes wn-wall-preview-in { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
.wn-wall-preview img { display: block; width: 100%; height: auto; }
.wn-wall-tile,.wn-wall-preview,.wn-wall-tile img,.wn-wall-preview img { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.wn-wall-preview span { display: block; padding: 4px; }
@keyframes wn-wall-pulse { 50% { box-shadow: inset 0 0 0 2px var(--wn-amber); } }
.wn-wall-behind-door { animation: wn-wall-pulse 1.2s ease-in-out infinite; }
.wn-room-sketch { position: absolute; z-index: 55; inset: 4%; padding: 12px; border-radius: 10px; color: var(--wn-ivory); background-color: rgba(48,43,39,.93); background-position: center; background-size: cover; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.wn-mode-report { top: max(58px, env(safe-area-inset-top)); bottom: 54px; overflow: hidden; }
.wn-mode-report .wn-mode-report-content { flex: 1 1 auto; min-height: 0; overflow-y: auto;
  text-align: left; }
.wn-mode-report .wn-mode-report-content img { display: block; width: min(100%,180px);
  max-height: 100px; object-fit: cover; margin: 4px 0; }
.wn-mode-view-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 6px; padding-left: 0; list-style: none; }
.wn-mode-view-grid li { min-width: 0; padding: 5px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 5px; font-size: 12px; }
.wn-room-sketch[hidden],.wn-landmark-review-content[hidden],.wn-camera-guide[hidden] { display: none !important; }
.wn-room-review-close { position: absolute; top: 6px; right: 6px; z-index: 1;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(48,43,39,.85); color: var(--wn-ivory); font: 24px/1 system-ui; cursor: pointer;
  pointer-events: auto; }
.wn-landmark-review-guide .wn-camera-guide-title { padding-right: 32px; }
.wn-room-sketch::before { content: ""; position: absolute; inset: 0; background: rgba(48,43,39,.73); border-radius: inherit; }
.wn-room-sketch > * { position: relative; }
.wn-room-sketch h2 { margin: 0 0 8px; font-size: 16px; }
.wn-room-sketch-drawing { flex: 1 1 auto; min-height: 0; overflow: auto; display: flex; flex-direction: column; justify-content: center; }
.wn-room-sketch svg { display: block; width: 100%; max-height: 100%; }
.wn-room-sketch polygon { fill: rgba(133,200,197,.13); stroke: var(--wn-cyan); stroke-width: 2; }
.wn-room-sketch .wn-sketch-entrance { stroke: var(--wn-amber); stroke-width: 4; }
.wn-room-sketch .wn-sketch-chip { fill: var(--wn-umber-raised); stroke: rgba(207,195,178,.45); stroke-width: 1; }
.wn-room-sketch text { fill: white; font: 13px system-ui,sans-serif; }
.wn-room-sketch-note,.wn-room-sketch-legend { color: var(--wn-ivory-muted); font-size: 12px; }
/* "Dimensions are estimated." under every room sketch. */
.wn-sketch-fineprint { margin: 4px 0 0; color: var(--wn-ivory-muted); font-size: 11px; line-height: 1.3; text-align: center; }
.wn-room-sketch-list { text-align: left; font-size: 12px; }
.wn-room-sketch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.wn-room-sketch-actions button { min-height: 44px; max-height: 48px; width: 100%; padding: 6px; border-radius: 5px; }
.wn-room-sketch-actions > button:only-child { grid-column: 1 / -1; }
.wn-room-sketch-actions .wn-room-sketch-primary { background: var(--wn-walnut-deep); color: var(--wn-ivory); border: 1px solid var(--wn-walnut-deep); font-weight: 700; }
.wn-room-sketch-actions .wn-room-sketch-secondary { background: var(--wn-umber-raised); color: var(--wn-ivory); border: 1px solid rgba(207,195,178,.45); }
.wn-landmark-review { margin-top: 8px; }
.wn-landmark-review-content { display: flex; flex: 1 1 auto; flex-direction: column;
  min-height: 0; width: 100%; overflow: hidden; pointer-events: auto; }
.wn-landmark-review-content .wn-landmark-review { flex: none; }
.wn-landmark-review-list { flex: 1 1 auto; min-height: 0; margin: 4px 0;
  padding-left: 24px; overflow-y: auto; text-align: left; }
.wn-landmark-detected-name { color: var(--wn-recognised); font-weight: 700; }
.wn-camera-guide.wn-guide-different { border-left: 4px solid var(--wn-amber); }
.wn-camera-guide.wn-guide-different .wn-camera-guide-title { color: var(--wn-amber); }
.wn-different-here-chip { display: block; width: fit-content; margin: 0 auto 4px;
  padding: 1px 5px; border-radius: 4px; background: var(--wn-amber); color: var(--wn-umber);
  font: 700 10px/1.4 system-ui; }
.wn-different-here-chip[hidden] { display: none; }
.wn-landmark-picker { position: relative; z-index: 1; display: flex; width: 100%;
  flex-wrap: wrap; justify-content: center; gap: 3px; padding: 5px; border-radius: 8px;
  max-height: min(28vh,180px); overflow-y: auto;
  background: rgba(58,52,47,.92); pointer-events: auto; box-sizing: border-box; }
.wn-landmark-picker button { min-height: 30px; padding: 2px 5px; border: 1px solid var(--wn-ivory-muted);
  border-radius: 5px; color: var(--wn-ivory); background: var(--wn-umber-raised); font-size: 11px; }
.wn-landmark-picker input { min-width: 0; max-width: 160px; }
/* Going down a stairway the picker is its own layer on the camera stage, just under the reticle: above the
   tap's still (5), the guide while a tap runs (6) and the status card (7), whatever the guide box is doing
   (TASK-stairway-fixes-1110 part 2, 41f7a43a). */
.wn-landmark-picker.wn-landmark-picker-layer { position: absolute; z-index: 9; left: 50%; transform: translateX(-50%);
  top: calc(50% + var(--wn-reticle-radius, 34px) + 14px); width: min(88%, 420px); }
.wn-room-sketch-retry { grid-column: 1 / -1; justify-self: center; color: var(--wn-amber);
  font: 13px/1.4 system-ui,sans-serif; text-decoration: underline; padding: 2px 4px; }
.wn-room-sketch-editing { inset: 2% 4%; width: 92%; max-height: 75%; box-sizing: border-box; background-color: rgba(48,43,39,.96); }
.wn-room-sketch-editing .wn-room-sketch-drawing { overflow: hidden; }
.wn-room-sketch-editing svg { touch-action: none; }
.wn-room-sketch-editing .wn-sketch-handle { cursor: grab; transform: scale(var(--wn-sketch-inverse-scale,1)); transform-box: fill-box; transform-origin: center; }
.wn-room-sketch-editing .wn-sketch-hit { fill: transparent; pointer-events: all; }
.wn-room-sketch-editing .wn-sketch-visible { fill: var(--wn-cyan); stroke: var(--wn-umber); stroke-width: 1; pointer-events: none; }
.wn-room-sketch-editing .wn-sketch-wall-handle .wn-sketch-visible { fill: #67e8f9; }
.wn-room-sketch-editing .wn-sketch-angle-badge { fill: var(--wn-cyan); font-weight: 700; paint-order: stroke; stroke: var(--wn-umber); stroke-width: 3; }
.wn-room-sketch-editing .wn-room-sketch-actions { display: grid; grid-template-columns: 1fr 1fr; }
.wn-room-sketch:has(.wn-baseline-tabs) { inset: 2% 4%; width: 92%; max-height: 94%;
  box-sizing: border-box; background-color: rgba(48,43,39,.96); text-align: left; }
/* §22.3 (both modes): the review starts under the 40 px logo bar, which sat over its tabs. */
.wn-camera-shell .wn-room-sketch:has(.wn-baseline-tabs), .wn-camera-shell .wn-stage-report {
  top: calc(var(--wn-logobar-h, 40px) + env(safe-area-inset-top) + 6px);
  max-height: calc(100% - var(--wn-logobar-h, 40px) - env(safe-area-inset-top) - 12px); }
.wn-baseline-tabs { flex: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
/* The merged scan's five-page report (SPEC §20.4): five tabs in two rows (five in one didn't fit "Inventory" at 360 px);
   the coverage pages: the map, the share well
   seen, a one-line legend (well Cyan, poorly Cyan faint, not seen Umber Raised: the map's own colours). */
.wn-baseline-tabs.wn-baseline-tabs-5 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.wn-baseline-tabs.wn-baseline-tabs-5 button { min-height: 40px; }
.wn-coverage-page { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.wn-coverage-map { display: block; width: 100%; max-height: 28vh; object-fit: contain; border-radius: 8px; background: var(--wn-umber); }
.wn-coverage-pct { margin: 0; font-size: 18px; font-weight: 700; }
.wn-coverage-legend { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;
  font-size: 13px; color: var(--wn-ivory-muted); }
.wn-coverage-key { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(242,232,218,.35); }
.wn-coverage-well { background: var(--wn-cyan); }
.wn-coverage-poor { background: rgba(133,200,197,.4); }
.wn-coverage-none { background: var(--wn-umber-raised); }
.wn-coverage-pending, .wn-coverage-corners, .wn-coverage-note { margin: 0; color: var(--wn-ivory-muted); font-size: 14px; }
.wn-coverage-note { font-size: 13px; text-align: center; }
.wn-baseline-tabs button { min-height: 48px; padding: 4px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 8px; color: var(--wn-ivory); background: var(--wn-umber-raised); font: 600 12px/1.2 system-ui,sans-serif; }
.wn-baseline-tabs button[aria-selected="true"] { color: var(--wn-cyan); border-color: var(--wn-cyan); }
.wn-baseline-page { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 12px; padding: 3px 2px; }
/* §22.3 (both modes): a row never shrinks under its content in the scrolling page (the Inventory's "In Baseline" row
   spilled over the next item). */
.wn-baseline-page > *, .wn-baseline-section > *, .wn-baseline-row { flex-shrink: 0; }
/* §22.3: the merged scan's Inventory rows as its Fixtures rows: photo, name and where, the tick on the right. */
.wn-baseline-row-item .wn-baseline-include-right { grid-column: auto; flex: none; margin-left: auto; min-height: 44px;
  flex-direction: column; justify-content: center; gap: 2px; font-size: 11px; color: var(--wn-ivory-muted); }
.wn-baseline-row-photo-empty { display: block; background: var(--wn-umber-raised); }
.wn-baseline-page[hidden] { display: none; }
.wn-baseline-page[data-page="0"] .wn-room-sketch-drawing { min-height: 52vh; max-height: none; flex: 1 1 auto; }
.wn-room-sketch-editing .wn-baseline-page .wn-room-sketch-drawing { max-height: 75vh; min-height: 50vh; }
.wn-baseline-footer { flex: none; display: flex; flex-direction: column; gap: 5px;
  padding: 6px 2px max(6px,env(safe-area-inset-bottom)); background: var(--wn-umber); }
.wn-baseline-footer > button { min-height: 48px; width: 100%; border: 1px solid rgba(207,195,178,.45);
  border-radius: 7px; color: var(--wn-ivory); background: var(--wn-umber-raised); }
.wn-check-saved-footer { flex-direction: row; align-items: center; justify-content: space-between; }
.wn-check-saved-footer .wn-baseline-saved { padding: 0; background: none; color: var(--wn-cyan); font-weight: 600; text-align: left; }
.wn-check-saved-footer > button { width: auto; min-width: 88px; min-height: 44px; }
.wn-baseline-wall-strip { flex: none; display: flex; gap: 6px; overflow-x: auto; min-height: 80px; }
.wn-baseline-wall-tile { flex: 0 0 96px; height: 80px; padding: 3px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 7px; color: var(--wn-ivory); background: var(--wn-umber-raised); font: 12px system-ui,sans-serif; }
.wn-baseline-wall-tile img { width: 100%; height: 56px; object-fit: cover; display: block; }
.wn-baseline-wall-tile span { display: block; }
.wn-baseline-section { border: 1px solid var(--wn-umber-raised); border-radius: 9px; padding: 10px; background: #0c1623; }
.wn-baseline-section h3,.wn-baseline-page h3 { margin: 0 0 8px; font-size: 17px; }
.wn-baseline-surface h4 { margin: 10px 0 4px; color: var(--wn-ivory-muted); font-size: 13px; }
.wn-baseline-row { display: flex; align-items: center; gap: 7px; min-height: 58px;
  padding: 6px 0; border-top: 1px solid var(--wn-umber-raised); }
.wn-baseline-row:has(.wn-baseline-thumb) { display: grid; grid-template-columns: 56px minmax(0,1fr);
  align-items: start; }
.wn-baseline-row:has(.wn-baseline-thumb) .wn-baseline-thumb { grid-column: 1; grid-row: 1; }
.wn-baseline-row:has(.wn-baseline-thumb) .wn-baseline-row-detail { grid-column: 2; grid-row: 1; }
.wn-baseline-row-detail strong { overflow-wrap: anywhere; white-space: normal; }
.wn-baseline-include { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: 15px; }
.wn-baseline-include input { width: 30px; height: 30px; }
.wn-baseline-quantity { flex: none; color: var(--wn-ivory-muted); font-size: 14px; }
.wn-baseline-mark { flex: none; display: flex; gap: 4px; margin-left: auto; }
.wn-baseline-mark button { min-width: 44px; min-height: 44px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 7px; color: var(--wn-ivory); background: var(--wn-umber-raised); font-size: 21px; }
.wn-baseline-mark-correct.wn-baseline-mark-selected { background: var(--wn-walnut-deep); border-color: var(--wn-walnut-deep); color: var(--wn-ivory); }
.wn-baseline-mark-wrong.wn-baseline-mark-selected { background: var(--wn-amber); color: var(--wn-umber); border-color: var(--wn-amber); }
.wn-baseline-seen-once { opacity: .68; }
.wn-baseline-seen-once > h4 { margin: 12px 0 2px; }
.wn-baseline-tick-all { align-self: flex-start; border: 0; background: none;
  color: var(--wn-cyan); text-decoration: underline; min-height: 44px; padding: 4px 0; }
.wn-baseline-saved { margin: 0; padding: 7px 9px; border-radius: 7px;
  color: var(--wn-cyan); background: var(--wn-umber-raised); text-align: center; }
.wn-baseline-landmark-marker { color: var(--wn-cyan); font-size: 14px; }
.wn-baseline-row-detail { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
/* §20.2: a landmark's or fixture's crop in the merged scan's Room review, small, at the row's start. */
.wn-baseline-row-photo { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--wn-umber); }
.wn-baseline-row-detail strong { font-size: 14px; }
.wn-baseline-row-detail small { color: var(--wn-ivory-muted); }
.wn-check-row,.wn-check-row:has(.wn-baseline-thumb) { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 0; }
.wn-check-row:has(.wn-baseline-thumb) { grid-template-columns: 48px minmax(0,1fr) auto; }
.wn-check-row .wn-baseline-thumb { grid-column: 1; grid-row: 1; width: 48px; height: 48px; }
.wn-check-row .wn-baseline-row-detail { grid-column: 1; grid-row: 1; min-width: 0; }
.wn-check-row:has(.wn-baseline-thumb) .wn-baseline-row-detail { grid-column: 2; }
.wn-check-row .wn-check-chip { grid-column: -2 / -1; grid-row: 1; justify-self: end; max-width: 95px; text-align: center; }
.wn-check-found-group { min-width: 0; }
.wn-check-found-group > summary { padding: 7px 0; color: var(--wn-ivory-muted); font: 600 12px system-ui,sans-serif; cursor: pointer; }
.wn-check-next-step { margin: 2px 0; color: var(--wn-ivory-muted); font-size: 11px; }
/* Was | Now on the check's review pages (TASK-check-review-photos): two photos side by side, about
   45 % of the width each at 360 px, then the name, status and the three answers. */
.wn-check-card { padding: 10px 0; border-top: 1px solid var(--wn-umber-raised); }
.wn-check-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wn-check-side { margin: 0; min-width: 0; }
.wn-check-side figcaption { margin-bottom: 3px; color: var(--wn-ivory-muted); font: 600 11px system-ui,sans-serif;
  letter-spacing: .04em; text-transform: uppercase; }
.wn-check-photo-frame { display: block; width: 100%; padding: 0; border: 0; border-radius: 7px;
  background: var(--wn-umber-raised); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.wn-check-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.wn-check-photo-box { display: flex; flex-direction: column; justify-content: center; gap: 6px;
  aspect-ratio: 3 / 4; padding: 8px; border: 1px dashed #475569; border-radius: 7px;
  background: var(--wn-umber); text-align: center; overflow-wrap: anywhere; }
.wn-check-photo-place { color: var(--wn-ivory); font-size: 13px; }
.wn-check-photo-empty { color: var(--wn-ivory-muted); font-size: 12px; }
.wn-check-card-detail { display: flex; flex-direction: column; gap: 4px; margin-top: 7px; }
.wn-check-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wn-check-card-head strong { font-size: 15px; overflow-wrap: anywhere; }
.wn-check-card-head .wn-check-chip { flex: none; }
.wn-check-card-place { color: var(--wn-ivory-muted); font-size: 12px; }
.wn-check-answers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin: 2px 0 0; }
.wn-check-answer { padding: 5px 6px; border-radius: 6px; background: var(--wn-umber-raised); min-width: 0; }
.wn-check-answer dt { color: var(--wn-ivory-muted); font-size: 11px; }
.wn-check-answer dd { margin: 1px 0 0; font: 600 13px system-ui,sans-serif; overflow-wrap: anywhere; }
.wn-check-answer-yes dd { color: var(--wn-cyan); }
.wn-check-answer-no dd { color: var(--wn-amber); }
.wn-check-answer-unsure dd { color: var(--wn-amber); }
.wn-check-answer-none dd { color: var(--wn-ivory-muted); font-weight: 400; }
.wn-check-same { color: var(--wn-ivory-muted); font-size: 12px; }
.wn-check-same-different { color: var(--wn-amber); }
.wn-check-ai-note { margin: 0; color: var(--wn-ivory-muted); font-size: 12px; line-height: 1.35; }
.wn-check-ai-label { display: inline-block; margin-right: 5px; padding: 0 5px; border-radius: 4px;
  background: var(--wn-cyan); color: var(--wn-cyan); font: 600 10px/16px system-ui,sans-serif; }
.wn-check-compact-answers { color: var(--wn-ivory-muted) !important; font-size: 11px; }
/* One retake per line on the review pages (TASK-check-review-photos "Retakes"). */
.wn-check-retakes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wn-check-retakes .wn-check-retake { min-height: 44px; padding: 6px 12px; border: 1px solid rgba(207,195,178,.45);
  border-radius: 8px; background: var(--wn-umber-raised); color: var(--wn-ivory); font: 600 14px system-ui,sans-serif; }
.wn-check-retaken { color: var(--wn-cyan) !important; font-size: 12px; font-weight: 600; }
.wn-check-viewer { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px; background: rgba(48,43,39,.96); }
.wn-check-viewer-title { margin: 0; color: var(--wn-ivory); font: 600 14px system-ui,sans-serif; }
.wn-check-viewer-photo { max-width: 100%; max-height: calc(100% - 110px); object-fit: contain; border-radius: 6px; }
.wn-check-viewer-close { min-height: 44px; padding: 6px 20px; border: 1px solid rgba(207,195,178,.45); border-radius: 8px;
  background: var(--wn-umber-raised); color: var(--wn-ivory); font: 600 15px system-ui,sans-serif; }
.wn-baseline-added { color: var(--wn-cyan) !important; }
.wn-baseline-thumb { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover;
  border-radius: 5px; }
.wn-baseline-thumb-empty { display: grid; place-items: center; background: var(--wn-umber-raised);
  color: var(--wn-ivory-muted); font-size: 10px; text-align: center; }
.wn-baseline-empty { color: var(--wn-ivory-muted); }
.wn-check-banner { flex: none; padding: 8px 10px; border-radius: 8px; font: 14px/1.3 system-ui,sans-serif; }
.wn-check-banner ul { margin: 4px 0 0; padding-left: 20px; }
.wn-check-recognised { background: var(--wn-umber-raised); color: var(--wn-cyan-light); box-shadow: inset 3px 0 0 var(--wn-cyan); }
.wn-check-unrecognised { background: var(--wn-umber-raised); color: var(--wn-amber); }
.wn-check-quantities { flex: none; display: grid; gap: 2px; color: var(--wn-ivory-muted); font-size: 11px; }
.wn-check-chip { flex: none; padding: 4px 6px; border-radius: 6px; background: var(--wn-umber-raised);
  color: var(--wn-ivory); font-size: 11px; }
.wn-check-found { background: var(--wn-umber-raised); box-shadow: inset 0 0 0 1px var(--wn-cyan); }.wn-check-nearby { background: var(--wn-umber-raised); box-shadow: inset 0 0 0 1px var(--wn-cyan); }.wn-check-missing,.wn-check-elsewhere,
.wn-check-fewer { background: var(--wn-amber); color: var(--wn-umber); }.wn-check-new { background: var(--wn-umber-raised); box-shadow: inset 0 0 0 1px var(--wn-ivory-muted); }
.wn-reticle-mode .wn-camera-guide:not(.wn-tap-status-card) {
  top: auto; bottom: 52px; width: min(88%,620px); max-width: none;
  max-height: calc(50% - var(--wn-reticle-radius,34px) - 12px - 52px);
  overflow-y: auto;
  padding: 10px 14px; border-radius: 12px; background: rgba(48,43,39,.48);
  /* Translucent again (owner, 2026-11-15: the .8 box hid the view while scanning; .48 as approved on 29 Oct, in
     Umber); the shadow keeps the Ivory words readable over white walls. */
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center; pointer-events: none; z-index: 7;
}
/* Guidance never scrolls (SPEC-guidance-v2 Part F; TASK-merged-stations-front-5 A): the box's buttons sit at its
   bottom, outside the words; when the words don't fit, the words are cut, never the buttons. */
.wn-reticle-mode .wn-camera-guide:not(.wn-tap-status-card) { overflow: hidden; }
.wn-reticle-mode .wn-camera-guide:not(.wn-tap-status-card) > :not(.wn-fn-buttons) { flex-shrink: 1; min-height: 0; overflow: hidden; }
.wn-camera-guide > .wn-fn-buttons { flex: none; order: 99; }
/* The words never cut (owner's run dc6e687a, 360 x 603: the title, the line and the note were): fitGuideBox
   (WasNowGuidanceController) adds these, each only while something still overflows. Compact: tighter type and
   spacing, a little wider. Grow: the box may rise over the reticle's lower part, nothing shrinks or is hidden. */
.wn-reticle-mode .wn-camera-guide.wn-guide-compact:not(.wn-tap-status-card) { padding: 8px 12px; gap: 2px; width: min(94%, 620px); }
.wn-reticle-mode .wn-camera-guide.wn-guide-compact:not(.wn-tap-status-card) .wn-camera-guide-part { font-size: 12px; line-height: 1.25; }
.wn-reticle-mode .wn-camera-guide.wn-guide-compact:not(.wn-tap-status-card) .wn-camera-guide-title { font-size: 15px; line-height: 1.25; margin-bottom: 0; }
.wn-reticle-mode .wn-camera-guide.wn-guide-compact:not(.wn-tap-status-card) #vlmCameraGuideInstruction { font-size: 15px; line-height: 1.28; }
.wn-reticle-mode .wn-camera-guide.wn-guide-compact:not(.wn-tap-status-card) .wn-guide-note { margin-top: 1px; }
.wn-reticle-mode .wn-camera-guide.wn-guide-grow:not(.wn-tap-status-card) { max-height: calc(100% - 52px - 76px); }
.wn-reticle-mode .wn-camera-guide.wn-guide-grow:not(.wn-tap-status-card) > :not(.wn-fn-buttons) { flex-shrink: 0; }
/* The processing animation keeps its own box (unchanged). */
.wn-reticle-mode .wn-camera-guide.wn-guide-thinking:not(.wn-tap-status-card) { background: rgba(48,43,39,.8); text-shadow: none; }
.wn-reticle-mode .wn-camera-guide:not(.wn-tap-status-card) .wn-camera-guide-title {
  display: block; font-size: 16px; font-weight: 700;
}
.wn-reticle-mode .wn-camera-guide:not(.wn-tap-status-card) #vlmCameraGuideInstruction {
  max-width: none; font-size: 17px; line-height: 1.35;
  overflow: visible; display: block; white-space: normal;
  -webkit-line-clamp: unset; line-clamp: unset;
}
.wn-camera-guide.wn-landmark-review-guide,
.wn-reticle-mode .wn-camera-guide.wn-landmark-review-guide:not(.wn-tap-status-card) {
  display: flex; flex-direction: column; align-items: stretch;
  max-height: min(60vh, calc(100% - 160px)); overflow: hidden;
}
.wn-landmark-review-guide .wn-camera-guide-title,
.wn-landmark-review-guide #vlmCameraGuideInstruction { flex: none; }
.wn-reticle-mode .wn-camera-guide.wn-guide-changing { animation: wn-guide-crossfade .15s ease; }
@keyframes wn-guide-crossfade { from { opacity: .35; } to { opacity: 1; } }
.wn-reticle-mode .wn-tap-skip-wall,.wn-reticle-mode .wn-tap-skip-choice {
  min-height: 44px; padding: 4px 8px;
}
.wn-reticle-mode .wn-tap-skip-choices { flex-wrap: wrap; justify-content: center; }
.wn-page-vlm-capture .wn-wall-tab:not([hidden]) { top: -44px; width: 64px; height: 44px; padding: 2px;
  border: 0; background: transparent; gap: 1px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.wn-wall-tab-chevron { width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: rotate .15s;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.8)); }
.wn-wall-tab-expanded .wn-wall-tab-chevron { rotate: 180deg; }
.wn-page-vlm-capture .wn-wall-tab-label { font: 11px/1.1 system-ui,sans-serif; }
.wn-wall-tab-bounce .wn-wall-tab-chevron { animation: wn-tab-nudge 1s ease-out; }
@keyframes wn-tab-nudge { 25%,70% { transform: translateY(-6px); } 45%,100% { transform: translateY(0); } }
.wn-reticle-mode .wn-tap-status:not([hidden]),.wn-sketch-review .wn-tap-status:not([hidden]) {
  padding: 10px 14px; font-size: 16px;
}
.wn-tap-status[data-tone="success"] { border: 1px solid var(--wn-recognised); color: var(--wn-recognised-text); }
.wn-tap-status[data-tone="success"] .wn-tap-status-dot { width: 20px; height: 20px;
  background: none; border: 0; }
.wn-tap-status-dot svg { width: 20px; height: 20px; fill: none; stroke: var(--wn-recognised);
  stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wn-tap-status[data-tone="working"] .wn-tap-status-dot { width: 14px; height: 14px;
  background: none; border: 2px solid rgba(231,173,82,.44); border-top-color: var(--wn-amber); }
.wn-tap-status-working .wn-tap-status-dot { animation: wn-status-spin .7s linear infinite; }
.wn-tap-status[data-tone="warning"] .wn-tap-status-dot { width: 18px; height: 18px;
  background: var(--wn-amber); color: #111827; font: 700 14px/18px system-ui; text-align: center; }
.wn-tap-status-pop { animation: wn-status-pop .25s ease-out,wn-status-glow .6s ease-out; }
.wn-tap-status-working { animation: wn-tap-card-in .15s ease; }
@keyframes wn-status-spin { to { rotate: 360deg; } }
@keyframes wn-status-pop { 0% { scale: .85; } 70% { scale: 1.06; } 100% { scale: 1; } }
@keyframes wn-status-glow { from { box-shadow: 0 0 18px #22c55eaa; } to { box-shadow: none; } }
@media (prefers-reduced-motion: reduce) {
  .wn-wall-tab-bounce .wn-wall-tab-chevron,.wn-tap-status-working .wn-tap-status-dot,
  .wn-tap-status-pop,.wn-reticle-mode .wn-camera-guide.wn-guide-changing { animation: none; }
  .wn-wall-tab-chevron { transition: none; }
}
.wn-page-vlm-capture .wn-camera-controls.wn-tap-sweep-bar { min-height: 46px; height: 46px; padding: 0; align-items: stretch; }
.wn-page-vlm-capture .wn-camera-controls.wn-tap-sweep-bar.wn-wall-tab-open:not(.wn-tap-sweep-done),
.wn-page-vlm-capture .wn-camera-controls.wn-tap-sweep-bar.wn-tap-sweep-done:not(.wn-wall-tab-open) { min-height: var(--wn-controls-height,82px); height: var(--wn-controls-height,82px); }
.wn-tap-sweep-bar .wn-wall-carousel { position: absolute; inset: 0; z-index: 1; }
.wn-tap-sweep-bar:not(.wn-wall-tab-open):not(.wn-tap-sweep-done) > .wn-camera-control-group { visibility: hidden; pointer-events: none; }
.wn-tap-sweep-bar.wn-tap-sweep-done:not(.wn-wall-tab-open) .wn-wall-carousel { visibility: hidden; pointer-events: none; }
.wn-tap-sweep-bar.wn-wall-tab-open:not(.wn-tap-sweep-done) > .wn-camera-control-group { z-index: 2; }
.wn-tap-sweep-bar.wn-wall-tab-open:not(.wn-tap-sweep-done) .wn-wall-carousel { visibility: hidden; pointer-events: none; }
.wn-tap-sweep-bar.wn-wall-tab-open.wn-tap-sweep-done .wn-wall-carousel { z-index: 2; }
.wn-tap-sweep-bar.wn-wall-tab-open.wn-tap-sweep-done > .wn-camera-control-group { visibility: hidden; pointer-events: none; }
.wn-wall-tab:not([hidden]) { position: absolute; z-index: 4; top: -44px; left: 50%; transform: translateX(-50%); width: 64px; height: 44px; border: 0; background: transparent; color: white; display: flex; align-items: center; flex-direction: column; padding: 2px; touch-action: none; }
.wn-wall-tab-bar { display: block; width: 36px; height: 4px; border-radius: 4px; background: white; }
.wn-wall-tab-label { font: 10px system-ui,sans-serif; }
.wn-reticle-mode .wn-camera-guide.wn-tap-status-card {
  top: auto;
  bottom: 46px;
  width: min(88%, 620px);
}

.wn-tap-still {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  color: #fff;
  pointer-events: auto;
  animation: wn-tap-card-in .2s ease both;
}
.wn-tap-still-image,
.wn-tap-still-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wn-tap-still-image { object-fit: cover; }
.wn-tap-still-shape { fill: none; stroke: #fb923c; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 1px 3px #0009); }
.wn-tap-still-shape rect { rx: 8px; ry: 8px; }
.wn-tap-cyan .wn-tap-still-shape { stroke: var(--wn-recognised); }
/* §22.1: the corner aim's Y on the merged scan's frozen photo, as Room mode's confirmed corner. */
.wn-merged-freeze-shapes .wn-merged-freeze-corner { fill: none; stroke: var(--wn-recognised); stroke-width: 3; stroke-linejoin: round;
  stroke-linecap: round; filter: drop-shadow(0 1px 3px #0009); }
.wn-tap-amber .wn-tap-still-shape { stroke: var(--wn-amber); }
.wn-tap-grey .wn-tap-still-shape { stroke: #9ca3af; }
.wn-tap-active .wn-camera-topbar,
.wn-tap-active .wn-camera-guide { z-index: 6; }
.wn-camera-topbar,.wn-tap-active .wn-camera-topbar { z-index: 70; }
.wn-tap-still .wn-tap-processing {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  padding: 4px 10px;
  text-align: center;
  background: rgba(0,0,0,.7);
}
.wn-tap-still .wn-tap-processing { bottom: 220px; animation: wn-tap-pulse 1.5s ease-in-out infinite; }
.wn-tap-status-card { display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left; column-gap: 12px; border-radius: 12px; background: rgba(48,43,39,.86); animation: wn-tap-card-in .2s ease both; }
.wn-tap-leaving { animation: none; opacity: 0; transition: opacity .2s ease; }
.wn-tap-status-card .wn-camera-guide-title { grid-column: 1; font-size: 16px; font-weight: 600; }
.wn-tap-status-card #vlmCameraGuideInstruction { grid-column: 1; font-size: 14px; }
.wn-tap-status-card .wn-tap-cancel { grid-column: 2; grid-row: 1 / 3; margin: 0; }
.wn-tap-shimmer { width: fit-content; background: linear-gradient(100deg,#aab5c5 15%,#fff 48%,#aab5c5 82%); background-size: 220% 100%; color: transparent; background-clip: text; -webkit-background-clip: text; animation: wn-tap-shimmer 1.4s linear infinite; }
@keyframes wn-tap-shimmer { to { background-position: -220% 0; } }
@keyframes wn-tap-card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes wn-tap-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) {
  .wn-tap-still .wn-tap-processing { animation: none; }
  .wn-tap-shimmer { animation: none; background: none; color: #fff; }
  .wn-tap-shimmer::after { content: "…"; }
}

.wn-camera-topbar,
.wn-camera-guide {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
}

.wn-camera-topbar {
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  color: #ffffff;
  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .66),
      rgba(0, 0, 0, 0)
    );
}

.wn-camera-guide {
  bottom: 52px;
  left: 50%;
  right: auto;
  width: min(88%, 620px);
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  border-radius: 12px;
  color: var(--wn-ivory);
  font-size: var(--wn-font-body);
  line-height: 1.35;
  text-align: center;
  background: rgba(48,43,39,.48);
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
/* The tap status card and the processing animation keep their own boxes (unchanged). */
.wn-camera-guide.wn-tap-status-card { background: rgba(48,43,39,.8); text-shadow: none; }
.wn-camera-guide.wn-guide-thinking { text-shadow: none; }

.wn-camera-guide-title {
  margin-bottom: 4px;
  font-weight: 700;
}
/* A stage's intro (TASK-part-intros): the processing animation over the camera view with
   "Stage N of 3", the part's name and its line, centred, for 3 s; fades out. */
.wn-stage-intro { position: fixed; inset: 0; z-index: 65; display: flex; align-items: center;
  justify-content: center; padding: 24px; overflow: hidden; background: rgba(48,43,39,.55); cursor: pointer;
  /* d6d0c014: at full opacity at once (no fade-in), held 3 s, then a .3 s fade out. */
  opacity: 1; transition: opacity .3s ease; }
.wn-stage-intro .wn-thinking-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wn-stage-intro-out { opacity: 0; }
.wn-stage-intro-text { position: relative; max-width: 320px; padding: 16px 20px; border-radius: 16px;
  background: rgba(48,43,39,.8); color: var(--wn-ivory); text-align: center;
  font-family: system-ui, sans-serif; }
.wn-stage-intro-stage { font-size: 14px; font-weight: 600; letter-spacing: .06em; }
.wn-stage-intro-name { margin-top: 8px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.wn-stage-intro-line { margin-top: 10px; font-size: 17px; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
  .wn-stage-intro { animation: none; transition: none; }
}
/* The part's name above the title (Review 1 §5), in the guide's secondary text style. */
.wn-camera-guide .wn-camera-guide-part { font-size: 13px; font-weight: 400; line-height: 1.3; }
/* §20.1 (owner): no stage line in the merged scan's guide box (the stage's intro card names it). */
.wn-merged-scan .wn-camera-guide .wn-camera-guide-part { display: none !important; }
.wn-camera-guide-part[hidden], .wn-tap-status-card .wn-camera-guide-part,
.wn-pre-scan-guide .wn-camera-guide-part { display: none !important; }
.wn-camera-guide #vlmCameraGuideInstruction { font-size: 17px; line-height: 1.35;
  white-space: normal; overflow: visible; text-overflow: clip; }

.wn-camera-feedback {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  z-index: 10;
  min-height: 22px;
  max-width: min(88vw, 320px);
  max-height: calc(2 * 1.35em + 4px);
  overflow: hidden;
  overflow-wrap: anywhere;
  padding: 2px 10px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.wn-camera-feedback.is-visible {
  opacity: 1;
}

.wn-camera-controls {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  gap: 16px;
  width: 100%;
  padding:
    8px
    18px
    calc(10px + env(safe-area-inset-bottom));
  background: #111214;
}

.wn-camera-control {
  min-height: var(--wn-mobile-control-height);
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  color: #ffffff;
  font-size: var(--wn-font-button);
  font-weight: 700;
  background: rgba(0, 0, 0, .48);
}

.wn-camera-control:disabled {
  opacity: .5;
}

.wn-camera-control[hidden] {
  display: none;
}

.wn-camera-control-group[hidden] {
  display: none !important;
}

.wn-camera-control-group {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  min-width: 0;
}

.wn-camera-control-group > .wn-camera-icon-button {
  margin-top: 14px;
}

.wn-camera-control-group-primary > .wn-camera-record-button,
.wn-camera-control-group-primary > .wn-camera-stop-button,
.wn-camera-control-group-primary > .wn-camera-photo-shutter-button {
  margin-top: 0;
}

.wn-camera-control-label {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.wn-camera-icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  min-width: 50px;
  height: 50px;
  min-height: 50px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 50%;
  color: #202124;
  background: rgba(245, 245, 245, .94);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .28);
}

.wn-camera-icon-button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wn-camera-mic-button.is-muted::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: #202124;
  transform: rotate(-45deg);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.wn-camera-record-button,
.wn-camera-stop-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .24);
}

.wn-camera-record-button::after {
  content: "";
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #ef3328;
}

.wn-camera-stop-button::after {
  content: "";
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #ef3328;
}


/*
 * Guided Photo mode
 *
 * Same 64px primary-control geometry as Video so changing
 * capture mode does not move the bottom control dock.
 * Deliberately neutral rather than recording-red.
 */
.wn-camera-photo-shutter-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  min-width: 64px;
  height: 64px;
  min-height: 64px;
  padding: 0;
  border: 5px solid #ffffff;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .24);
}

.wn-camera-photo-shutter-button::after {
  content: "";
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: rgba(245, 245, 245, .96);
}

.wn-camera-utility-button {
  min-height: 38px;
  padding: 6px 11px;
  font-size: var(--wn-font-meta);
}

.wn-camera-status-recording {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wn-camera-status-recording::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  opacity: .8;
}

.wn-camera-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(28, 28, 30, .78);
}

.wn-camera-status-pill-recording {
  background: rgba(220, 38, 38, .94);
}
.wn-page-vlm-capture button.wn-camera-status-pill { min-height: 44px; border: 0; font: inherit; }
.wn-page-vlm-capture button.wn-camera-status-pill:not(:disabled) { cursor: pointer; }

.wn-camera-switch[hidden] {
  display: none !important;
}

.wn-camera-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 6px 8px 6px 12px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  font: inherit;
  font-size: var(--wn-font-meta);
  font-weight: 700;
  background: rgba(28, 28, 30, .78);
}

.wn-camera-switch-track {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
}

.wn-camera-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform .16s ease;
}

.wn-camera-switch.is-on .wn-camera-switch-track {
  background: var(--wn-cyan);
}

.wn-camera-switch.is-on .wn-camera-switch-thumb {
  transform: translateX(18px);
}

.wn-camera-shutter {
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.wn-camera-shutter::before,
.wn-camera-shutter::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.5%;
  background: #000000;
}

.wn-camera-shutter::before {
  top: -51%;
}

.wn-camera-shutter::after {
  bottom: -51%;
}

.wn-camera-shutter.is-active {
  visibility: visible;
}

.wn-camera-shutter.is-active::before {
  animation: wn-camera-shutter-top .32s ease-in-out;
}

.wn-camera-shutter.is-active::after {
  animation: wn-camera-shutter-bottom .32s ease-in-out;
}

@keyframes wn-camera-shutter-top {
  0%   { transform: translateY(0); }
  42%  { transform: translateY(100%); }
  58%  { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

@keyframes wn-camera-shutter-bottom {
  0%   { transform: translateY(0); }
  42%  { transform: translateY(-100%); }
  58%  { transform: translateY(-100%); }
  100% { transform: translateY(0); }
}

.wn-camera-status[hidden] {
  display: none !important;
}

.wn-camera-status {
  font-size: var(--wn-font-meta);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .wn-camera-shell {
    border-radius: 0;
  }

  .wn-camera-topbar {
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .wn-camera-status-pill {
    flex: 0 0 auto;
    max-width: calc(100vw - 190px);
    padding-left: 10px;
    padding-right: 10px;
    font-size: 13px;
  }


  .wn-camera-stage,
  .wn-camera-preview {
    min-height: 360px;
    height: clamp(
      360px,
      calc(100vh - 90px),
      760px
    );
    height: clamp(
      360px,
      calc(
        100dvh
        - 90px
        - env(safe-area-inset-bottom)
      ),
      760px
    );
  }

  .wn-page-vlm-capture .wn-camera-stage,
  .wn-page-vlm-capture .wn-camera-preview {
    min-height: 0;
    height: auto;
  }

  .wn-page-vlm-capture .wn-camera-preview {
    height: 100%;
  }
}


/* ==========================================================
   CAMERA DETECTION OVERLAY
   Shared transient spatial annotations over camera/media.
   ========================================================== */

.wn-camera-detection-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  pointer-events: none;
}

/*
 * Interactive annotations sit above the camera chrome.
 * The overlay itself remains transparent to touches;
 * only explicit annotation controls receive them.
 */
.wn-camera-detection-overlay
.wn-camera-detection-label,
.wn-camera-detection-overlay
.wn-camera-detection-marker {
  pointer-events: auto;
  touch-action: manipulation;
}

.wn-camera-detection-box {
  position: absolute;
  box-sizing: border-box;
  border: 3px dashed var(--wn-amber);
  border-radius: 10px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .48),
    0 2px 10px rgba(0, 0, 0, .18);
  pointer-events: none;
}

.wn-camera-detection-box.is-confirmed {
  border-style: solid;
  border-color: #dc2626;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .52),
    0 2px 10px rgba(220, 38, 38, .22);
}

.wn-camera-detection-label {
  position: absolute;
  left: -1px;
  bottom: 100%;
  max-width: 220px;
  margin-bottom: 6px;
  padding: 7px 11px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(180, 83, 9, .86);
  box-shadow:
    0 2px 10px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.wn-camera-detection-box.is-confirmed
.wn-camera-detection-label {
  background: rgba(185, 28, 28, .90);
}

.wn-camera-detection-marker {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: 190px;
  min-height: 30px;
  padding: 7px 11px;
  transform: translate(-50%, -50%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  box-shadow:
    0 2px 10px rgba(0, 0, 0, .24);
  color: #ffffff;
  background: rgba(37, 99, 235, .86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: .01em;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
}

.wn-camera-detection-marker::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .9;
}

.wn-camera-detection-marker.is-confirmed {
  background: rgba(58, 52, 47, .90);
  border-color: var(--wn-cyan);
}


/* Compact single-line dropdown summary for constrained top bars. */
.wn-check-dropdown-toggle {
  min-width: 0;
  overflow: hidden;
}

.wn-check-dropdown-summary {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reusable stepped context selector used inside dropdown menus. */
.wn-check-dropdown-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--wn-border, #d9dde3);
}

.wn-check-dropdown-level-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  font-size: 0.95rem;
}

.wn-check-dropdown-level-value strong {
  min-width: 2.4em;
  text-align: center;
}

.wn-check-dropdown-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--wn-border, #d9dde3);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.wn-check-dropdown-step:disabled {
  cursor: default;
  opacity: 0.5;
}

/*
 * Camera top-bar allocation:
 * Space selector owns only the remaining width.
 * Camera switch always remains fully visible.
 */
.wn-camera-topbar .wn-camera-space-dropdown {
  /* Basis 0: a long Space name never pushes the Camera control to a row of its own. */
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
}
.wn-camera-topbar .wn-camera-space-dropdown .wn-check-dropdown-toggle {
  -webkit-touch-callout: none;
  user-select: none;
}
/* Long press on the selector: the full Space name (TASK-capture-header §1). */
.wn-space-name-bubble {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 8;
  max-width: calc(100vw - 24px); padding: 6px 10px;
  border-radius: 8px; background: rgba(15, 20, 27, .96); color: #fff;
  font-size: 14px; line-height: 1.3; overflow-wrap: anywhere;
  box-shadow: 0 4px 14px #0008; pointer-events: none;
}
.wn-space-name-bubble[hidden] { display: none; }

.wn-camera-topbar .wn-camera-space-dropdown
.wn-check-dropdown-toggle {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.wn-camera-topbar .wn-camera-space-dropdown
.wn-check-dropdown-summary {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wn-camera-topbar .wn-camera-switch {
  flex: 0 0 auto;
}

.wn-camera-topbar--lab { padding-top: calc(4px + env(safe-area-inset-top)); }
.wn-camera-lab-strip {
  position: relative;
  order: -1;
  flex: 0 0 100%;
  min-width: 0;
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(10, 14, 20, .75);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
}
.wn-camera-lab-strip-line { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 22px; overflow: hidden; }
.wn-camera-lab-strip-status { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-camera-lab-strip-status { height: 16px; }
.wn-camera-lab-strip-status[hidden] { display: none; }
/* The lab line (TASK-capture-header §2): commit, scan mode, map status, "⋯". */
.wn-camera-lab-commit { flex: 0 0 auto; font-family: ui-monospace, Menlo, Consolas, monospace; color: #cbd5e1; }
.wn-camera-lab-mode { position: relative; flex: 0 0 auto; padding: 1px 8px; border: 1px solid #ffffff44; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.wn-camera-lab-mode select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
/* A manual mode that differs from the Space's own (TASK-l2-stairway-front-1108 E): amber. */
.wn-camera-lab-mode.wn-camera-lab-mode-override { border-color: var(--wn-amber); color: var(--wn-amber); }
.wn-camera-lab-strip .wn-map-chip { position: static; flex: 0 1 auto; min-width: 0; padding: 0 8px; font-size: 11px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: auto; cursor: pointer; }
.wn-camera-lab-report { display: flex; flex-direction: column; gap: 6px; }
.wn-camera-guide .wn-guide-note { display: block; margin-top: 2px; font-size: .85em; opacity: .85; }
/* The open menu (with the lab report) sits above the camera guide and scrolls when long. */
.wn-camera-topbar--lab:has(.wn-camera-lab-menu:not([hidden])) { z-index: 8; }
.wn-camera-lab-menu { max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; }
.wn-camera-lab-report[hidden] { display: none; }
.wn-camera-lab-report .wn-lab-report-status { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.wn-camera-lab-report .wn-map-drawing svg { width: 100%; height: auto; max-height: 220px; }
.wn-camera-lab-report .wn-sweep-result { margin: 0; }
.wn-camera-lab-menu-button {
  margin-left: auto;
  width: 24px; height: 22px; flex: 0 0 24px; padding: 0;
  border: 0; border-radius: 5px; background: transparent;
  color: #fff; font: 700 18px/18px system-ui; cursor: pointer;
}
.wn-camera-lab-menu-button:focus-visible { outline: 2px solid #fff; }
.wn-camera-lab-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 7;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  width: min(260px, calc(100vw - 24px)); padding: 12px;
  border: 1px solid #ffffff55; border-radius: 10px;
  background: rgba(15, 20, 27, .96); box-shadow: 0 6px 20px #0008;
  font-size: 12px;
}
.wn-camera-lab-menu[hidden] { display: none; }
.wn-camera-lab-menu .wn-camera-lab-details { color: #9aa4b1; font-size: 11px; overflow-wrap: anywhere; }
.wn-camera-lab-menu .wn-camera-lab-upload,.wn-camera-lab-menu .wn-camera-lab-result { align-self: flex-start; font-size: 12px; }
.wn-camera-lab-menu .wn-camera-lab-result[hidden] { display: none; }
.wn-camera-lab-menu .wn-camera-lab-fingerprint[hidden] { display: none; }

/* Live room map (&map=1): the top-bar chip, Part II's Skip, the sketch screen and timing table. */
.wn-map-chip { position: absolute; top: calc(100% + 4px); left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(12,16,22,.78); border: 1px solid #64748b; pointer-events: none; }
.wn-map-chip[hidden] { display: none; }
.wn-map-chip[data-state="warm"], .wn-map-chip[data-state="done"] { border-color: var(--wn-cyan); }
.wn-map-chip[data-state="refused"], .wn-map-chip[data-state="failed"], .wn-map-chip[data-state="timeout"] { border-color: var(--wn-amber); }
.wn-map-skip { margin-top: 6px; min-height: 36px; padding: 4px 18px; border-radius: 6px; border: 1px solid #94a3b8; background: #1e293b; color: #fff; pointer-events: auto; }
.wn-live-map { overflow-y: auto; }
.wn-map-drawing { flex: 0 0 auto; border-radius: 8px; overflow: hidden; background: #fff; }
.wn-map-drawing svg { display: block; width: 100%; height: auto; max-height: 52vh; }
/* The merged scan's report page 1: the room sketcher's drawing, sizes shown (Room mode's Stage 2 sketch). */
.wn-baseline-page[data-page="0"] .wn-room-sketch-drawing.wn-merged-room-plan { flex: 1 1 0; min-height: 160px; display: block; overflow: hidden; }
.wn-room-sketch .wn-merged-room-plan svg { width: 100%; height: 100%; max-height: none; }
.wn-map-timing { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; background: rgba(12,16,22,.78); border-radius: 8px; }
.wn-map-timing caption { text-align: left; font-weight: 700; padding: 4px 6px; }
.wn-map-timing th, .wn-map-timing td { padding: 2px 6px; font-weight: 400; }
.wn-map-timing td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wn-map-timing .wn-map-timing-headline th, .wn-map-timing .wn-map-timing-headline td { font-weight: 700; }
.wn-mode-report .wn-map-timing { color: inherit; }

/* The scan's costs in the lab box (TASK-lab-costs): each line on two rows (the menu is narrow):
   what and model, then calls, tokens or seconds, and USD on the right. */
.wn-lab-costs { margin: 6px 0; padding: 8px; border: 1px solid #334155; border-radius: 8px; background: #0b1220;
  color: #e2e8f0; font: 12px/1.35 system-ui, sans-serif; }
.wn-lab-costs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wn-lab-costs-head strong { font-size: 14px; }
.wn-lab-costs .wn-lab-costs-refresh { min-height: 36px; padding: 4px 12px; border: 1px solid #64748b; border-radius: 7px;
  background: #1e293b; color: #fff; font: 600 13px system-ui, sans-serif; }
.wn-lab-costs-stage h4 { margin: 8px 0 2px; font-size: 12px; color: #cbd5e1; }
.wn-lab-costs-table, .wn-lab-costs-table tbody { display: block; width: 100%; font-variant-numeric: tabular-nums; }
.wn-lab-costs-table tr { display: grid; grid-template-columns: auto minmax(0,1fr) auto; column-gap: 8px;
  padding: 3px 0; border-top: 1px solid #1e293b; }
.wn-lab-costs-table tr:first-child { display: none; }
.wn-lab-costs-table td { display: block; padding: 0; min-width: 0; }
.wn-lab-costs-table td:first-child { grid-column: 1 / -1; overflow-wrap: anywhere; }
.wn-lab-costs-table td:nth-child(2), .wn-lab-costs-table td:nth-child(3) { color: #94a3b8; }
.wn-lab-costs-table td:last-child { text-align: right; white-space: nowrap; }
.wn-lab-costs-estimated td:last-child { color: var(--wn-amber); }
.wn-lab-costs-unpriced td:last-child { color: #94a3b8; }
.wn-lab-costs-stage-total { font-weight: 700; border-top: 1px solid #475569 !important; }
.wn-lab-costs-stage-total td:first-child { grid-column: 1 / 3; }
.wn-lab-costs-stage-total td:empty { display: none; }
.wn-lab-costs-total { margin: 8px 0 2px; font-size: 13px; }
.wn-lab-costs-modal { margin: 2px 0; color: #cbd5e1; }
.wn-lab-costs-note { margin: 3px 0 0; color: #94a3b8; font-size: 11px; }

/* The Mic button lit while a listening check's segment records the mic (TASK-stage2-polish). */
.wn-camera-mic-button.wn-mic-check { background: var(--wn-umber-raised); box-shadow: 0 0 0 2px var(--wn-cyan); }
.wn-camera-mic-button.wn-mic-check::after { content: none !important; }

/* ---- Stage 3, the photos (TASK-stage3-photos; SPEC-defect-inspection-v1 §3, §7a) ---- */
/* The small sketch in the guidance box: the wall to photograph pulses Spatial Cyan, walls done
   get a tick; the phone's facing as a small arrow from the room's centre. */
.wn-s3-sketch { position: relative; width: min(100%, 132px); margin: 0 auto 4px; opacity: .92; }
.wn-s3-sketch svg { display: block; width: 100%; height: auto; max-height: 76px; }
.wn-s3-sketch .wn-plan-dimension, .wn-s3-sketch text { display: none; }
.wn-s3-sketch .wn-plan-paper { fill: transparent; }
.wn-guide-stage3 #vlmCameraGuideTitle { display: none; }
/* A walked section's words are two lines (TASK-stage3-l2 §1). */
.wn-reticle-mode .wn-camera-guide.wn-guide-stage3 #vlmCameraGuideInstruction,
.wn-camera-guide.wn-guide-stage3 #vlmCameraGuideInstruction { white-space: pre-line; font-size: 15px; line-height: 1.3; }
/* Room for the sketch, two lines of words and a button: up to just under the reticle (the guide
   scrolls without pointer events, so a cut button could not be reached). */
.wn-reticle-mode .wn-camera-guide.wn-guide-stage3:not(.wn-tap-status-card) { max-height: calc(50% - 60px); }
/* A walked wall's spots: the section's own a Cyan dot, its later ones faint. */
.wn-s3-sketch .wn-s3-spot-current { fill: var(--wn-cyan); stroke: var(--wn-umber); stroke-width: 2; }
.wn-s3-sketch .wn-s3-spot-later { fill: var(--wn-cyan); fill-opacity: .35; }
/* The next wall's first dot, on the choice after a wall: Cyan ring, pulsing. */
.wn-s3-sketch .wn-s3-spot-next { fill: none; stroke: var(--wn-cyan); stroke-width: 4; animation: wn-s3-pulse 1s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .wn-s3-sketch .wn-s3-spot-next { animation: none; } }
/* A walked wall (L2's open floor): the sketch larger, so its dots read. */
.wn-s3-sketch.wn-s3-sketch-large { width: min(100%, 240px); }
.wn-s3-sketch.wn-s3-sketch-large svg { max-height: 96px; }
.wn-s3-sketch .wn-plan-wall { stroke: var(--wn-ivory-muted); stroke-width: 3; }
/* A tall wall stays Amber in Stage 3's small sketch (TASK-tall-walls); the wall to photograph keeps its own
   colour; the key is left out at this size. */
.wn-s3-sketch .wn-plan-wall.wn-plan-tall:not(.wn-s3-current) { stroke: var(--wn-amber); }
.wn-s3-sketch .wn-plan-key { display: none; }
.wn-s3-sketch .wn-plan-label, .wn-s3-sketch .wn-plan-builtin, .wn-s3-sketch .wn-plan-landmark { display: none; }
.wn-s3-sketch .wn-s3-current { stroke: var(--wn-recognised); stroke-width: 6; animation: wn-s3-pulse 1s ease-in-out infinite; }
/* The wall to photograph is green (owner, TASK-floorplan-reader-v2 part B §4); in sections, the wall
   steady and dim, the photographed parts filled, the current section brighter and pulsing. */
.wn-s3-sketch-parts .wn-s3-current { animation: none; stroke-opacity: .45; }
.wn-s3-sketch .wn-s3-part { stroke-width: 9; stroke-linecap: butt; }
.wn-s3-sketch .wn-s3-part-done { stroke: var(--wn-recognised); }
.wn-s3-sketch .wn-s3-part-current { stroke: var(--wn-recognised-light); animation: wn-s3-pulse 1s ease-in-out infinite; }
.wn-s3-sketch .wn-s3-done { stroke: var(--wn-cyan); }
/* The merged Stage 1's map in 1B (SPEC-scan-merged-v1 §10.0, TASK-merged-stations-front-4 C): on Umber, walls grey
   (Ivory muted, faint), the stretches photographed Cyan, the wall to scan flashing green (wn-s3-current), the
   footprint Ivory dots, the stations marked and labelled. */
.wn-merged-map { background: var(--wn-umber); }
.wn-merged-map .wn-plan-wall:not(.wn-s3-current) { stroke: var(--wn-ivory-muted); stroke-opacity: .9; }
.wn-merged-map .wn-merged-painted { stroke: var(--wn-cyan); stroke-width: 4; stroke-linecap: butt; }
.wn-merged-map .wn-merged-foot { fill: var(--wn-ivory); }
/* TASK-merged-wall-guide-front: the wall guide's stand (a Cyan ring with a dot) and walk line (dashed Cyan, an arrowhead
   for the way of travel). */
.wn-merged-map .wn-merged-stand circle { fill: none; stroke: var(--wn-cyan); stroke-width: 2; }
.wn-merged-map .wn-merged-stand .wn-merged-stand-dot { fill: var(--wn-cyan); stroke: none; }
.wn-merged-map .wn-merged-walkline { stroke: var(--wn-cyan); stroke-width: 2; stroke-dasharray: 4 3; stroke-linecap: round; }
.wn-merged-map .wn-merged-walkhead { fill: var(--wn-cyan); }
/* §18.7: the wall segment to capture blinks (the flashing wall's colour), drawn over the sketch's wall. */
/* §21.2 (owner): the blinking object is the reticle's green (#22c55e), so it stands out. */
.wn-merged-map .wn-merged-segment { stroke: var(--wn-recognised); stroke-width: 5; stroke-linecap: round;
  animation: wn-merged-blink 1s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .wn-merged-map .wn-merged-segment { animation: none; } }
/* Stage 2 on the Plan View (§18.4): the thing to capture blinks Cyan (a thick stroke along its wall, or its box
   outlined); the station the person last stood at ringed Ivory. The island in the map's colours (it drew as a white
   box with an Ivory name on it). */
.wn-merged-map .wn-merged-item line { stroke: var(--wn-recognised); stroke-width: 6; stroke-linecap: round; }
.wn-merged-map .wn-merged-item rect, .wn-merged-map .wn-merged-item circle { fill: none; stroke: var(--wn-recognised); stroke-width: 3; }
.wn-merged-map .wn-merged-item { animation: wn-merged-blink 1s steps(1, end) infinite; }
@media (prefers-reduced-motion: reduce) { .wn-merged-map .wn-merged-item { animation: none; } }
.wn-merged-map .wn-merged-here { fill: none; stroke: var(--wn-ivory); stroke-width: 2; }
/* §22.4(b): the person live (Cyan dot and heading line, over everything); near a segment's end the next one blinks
   too, a step behind the current one. */
.wn-merged-map .wn-merged-pose circle { fill: var(--wn-cyan); stroke: var(--wn-umber); stroke-width: 1.2; }
.wn-merged-map .wn-merged-pose-heading { stroke: var(--wn-cyan); stroke-width: 2.4; stroke-linecap: round; }
/* Live ray: where the camera's centre meets the plan. */
.wn-merged-map .wn-merged-ray { fill: var(--wn-ivory); stroke: var(--wn-umber); stroke-width: 1; }
.wn-merged-map .wn-merged-segment-next { stroke-width: 4; animation-delay: .5s; }
/* §19: the route's segments in walking order: passed ones steady (the flashing wall's colour), the ones to come grey
   dashed; the current one is the blinking .wn-merged-segment. */
.wn-merged-map .wn-merged-seg-passed { stroke: var(--wn-recognised-light); stroke-width: 4; stroke-linecap: round; }
/* §23: the wall stretches to tap: to come grey dashed; the next blinks green (.wn-merged-segment); captured Cyan,
   light while poorly covered, full once well covered. */
.wn-merged-map .wn-merged-stretch { stroke-width: 4; stroke-linecap: round; }
.wn-merged-map .wn-merged-stretch-todo { stroke: var(--wn-ivory-muted); stroke-width: 3; stroke-dasharray: 3 3; }
.wn-merged-map .wn-merged-stretch-poor { stroke: var(--wn-cyan-light); }
.wn-merged-map .wn-merged-stretch-good { stroke: var(--wn-cyan); stroke-width: 5; }
.wn-merged-map .wn-merged-seg-todo { stroke: var(--wn-ivory-muted); stroke-width: 3; stroke-dasharray: 3 3; stroke-linecap: round; }
.wn-merged-map .wn-plan-island { fill: none; stroke: var(--wn-ivory); stroke-width: 1.4; }
.wn-merged-map .wn-plan-cabinets { stroke-dasharray: 1.5 2.5; stroke-linecap: round; }
/* TASK-merged-stations-front-11: 1A's rough sketch, solid grey where walled, dashed Cyan where open. */
.wn-merged-map .wn-merged-rough-wall { stroke: var(--wn-ivory-muted); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.wn-merged-map .wn-merged-rough-open { stroke: var(--wn-cyan); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.wn-merged-map .wn-merged-station-mark { fill: var(--wn-umber); stroke: var(--wn-cyan); stroke-width: 2; }
.wn-merged-map .wn-merged-start-mark { fill: var(--wn-cyan); stroke: var(--wn-umber); stroke-width: 1.5; }
.wn-merged-map .wn-merged-start-dot { fill: var(--wn-umber); }
.wn-merged-map .wn-merged-target { fill: none; stroke: var(--wn-cyan); stroke-width: 3; animation: wn-merged-ring 1.2s ease-in-out infinite; }
@keyframes wn-merged-ring { 0%, 100% { stroke-opacity: 1; stroke-width: 3; } 50% { stroke-opacity: .35; stroke-width: 4.5; } }
@media (prefers-reduced-motion: reduce) { .wn-merged-map .wn-merged-target { animation: none; } }
/* front-15 C: the next station is a station's mark, blinking 1 s on / 1 s off; steady with a dashed outline when
   motion is reduced. */
.wn-merged-map .wn-merged-next { animation: wn-merged-blink 2s steps(1, end) infinite; }
.wn-merged-map .wn-merged-next .wn-merged-station-mark { stroke: var(--wn-recognised); }
/* §21.6: the Stage 2 report's wall stretches and the Stage 3 report's rows, in the review panel's look. */
.wn-coverage-segments, .wn-stage-report-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px;
  color: var(--wn-ivory); font-size: 14px; }
.wn-stage-report-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px;
  background: var(--wn-umber-raised); }
.wn-stage-report-row span { color: var(--wn-ivory-muted); text-align: right; }
@keyframes wn-merged-blink { 0% { opacity: 1; } 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wn-merged-map .wn-merged-next { animation: none; }
  .wn-merged-map .wn-merged-next .wn-merged-station-mark { stroke-dasharray: 2.5 2; } }
/* front-15 D: the room's openings and stairs as Room mode's sketch draws them, in the map's colours on Umber: the gap
   (the wall broken), a window's glass Cyan, jambs and treads Ivory, a sliding door's panels Cyan, the stairs' box
   outlined; their short names only enlarged. */
.wn-merged-plan .wn-s3-sketch .wn-plan-opening > :not(.wn-plan-gap) { display: inline; }
.wn-merged-map .wn-plan-gap { stroke: var(--wn-umber); }
.wn-merged-map .wn-plan-glass { stroke: var(--wn-cyan); stroke-width: 1.4; }
.wn-merged-map .wn-plan-jamb { stroke: var(--wn-ivory); stroke-width: 2; }
.wn-merged-map .wn-plan-panel { stroke: var(--wn-cyan); stroke-width: 2.4; }
.wn-merged-map .wn-plan-stair-box, .wn-merged-map .wn-plan-stair-link-box { fill: none; stroke: var(--wn-ivory); stroke-width: 1.4; }
.wn-merged-map .wn-plan-tread { stroke: var(--wn-ivory-muted); }
.wn-merged-map .wn-plan-column-box { fill: var(--wn-ivory-muted); stroke: var(--wn-ivory-muted); }
.wn-merged-map .wn-plan-arrow { stroke: var(--wn-ivory); }
.wn-merged-map .wn-plan-arrowhead { fill: var(--wn-ivory); }
.wn-merged-plan .wn-s3-sketch text.wn-plan-label { display: none; }
/* front-17 A: plain Ivory like the station labels, no dark outline (it read as blur round 11 px text). */
.wn-merged-plan.wn-merged-plan-large .wn-s3-sketch text.wn-plan-label { display: inline; fill: var(--wn-ivory);
  font: 600 11px system-ui, sans-serif; stroke: none; }
/* front-16 A: the labels plain Ivory on Umber, no dark outline (a 3 px outline round 10 px text read as blur). */
.wn-merged-map .wn-merged-label { fill: var(--wn-ivory); font: 700 9px system-ui, sans-serif; stroke: none; }
/* A room from its floor plan (f310f02): the wall kinds as on Rooms & Baseline, at the sketch's size;
   the cabinets' Walnut band comes with the drawing. */
.wn-s3-sketch .wn-plan-kind-half_wall:not(.wn-s3-current) { stroke-width: 1.6; }
.wn-s3-sketch .wn-plan-kind-rail:not(.wn-s3-current) { stroke-width: 2; }
.wn-s3-sketch .wn-plan-cabinet-band { stroke-width: 4; }
/* Openings on Stage 3's small sketch: a gap in the wall (the guide's Umber, no white paper here),
   without the door and window details. */
.wn-s3-sketch .wn-plan-gap { stroke: var(--wn-umber); }
.wn-s3-sketch .wn-plan-opening > :not(.wn-plan-gap) { display: none; }
.wn-s3-tick { position: absolute; transform: translate(-50%,-50%); color: var(--wn-cyan); font: 700 12px/1 system-ui,sans-serif; }
.wn-s3-arrow { position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; margin-top: -1px;
  background: var(--wn-cyan); transform-origin: 0 50%; }
.wn-s3-arrow::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent;
  border-left: 7px solid var(--wn-cyan); border-right: 0; }
@keyframes wn-s3-pulse { 50% { stroke-opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wn-s3-sketch .wn-s3-current, .wn-s3-sketch .wn-s3-part-current { animation: none; } }
.wn-s3-turn { margin-right: 6px; font-weight: 700; color: var(--wn-cyan); }
/* The previous photo's left third on the screen's right edge, faint, over the live camera. */
.wn-s3-edge { position: absolute; top: 0; right: 0; bottom: 0; width: 33.4%; z-index: 3; pointer-events: none;
  background-size: 300% 100%; background-position: 0 50%; background-repeat: no-repeat; opacity: .35; }
.wn-s3-edge[hidden] { display: none; }
/* What the edge is (TASK-stage3-l2 §2): a thin Cyan line on its inner edge, "Last photo" at the
   line's top. Its own element, so it stays clear while the photo is faint. */
.wn-s3-edge-mark { position: absolute; top: 0; bottom: 0; right: 33.4%; width: 2px; margin-right: -1px; z-index: 3;
  background: var(--wn-cyan); pointer-events: none; }
.wn-s3-edge-mark[hidden] { display: none; }
.wn-s3-edge-label { position: absolute; top: calc(118px + env(safe-area-inset-top)); right: 6px;
  padding: 2px 6px; border-radius: 4px; background: rgba(48,43,39,.8); color: var(--wn-cyan);
  font: 700 11px/1.2 system-ui,sans-serif; white-space: nowrap; }
/* The strip: Stage 3's photos grouped by wall, bottom left just above the guide box (the page sets
   its bottom from the guide's top), clear of the Space selector, the Walls tab and the guide. */
.wn-s3-strip { position: absolute; left: 8px; right: 8px; bottom: 220px; z-index: 6;
  display: flex; align-items: flex-end; gap: 5px; padding-top: 15px; overflow-x: auto; pointer-events: auto; }
.wn-s3-strip[hidden] { display: none; }
.wn-s3-tile { position: relative; flex: 0 0 56px; height: 74px; border-radius: 6px; background: var(--wn-umber-raised) center/cover;
  border: 1px solid var(--wn-umber); }
.wn-s3-tile.wn-s3-first { margin-left: 8px; }
.wn-s3-tile.wn-s3-first:first-child { margin-left: 0; }
.wn-s3-tile[data-state="uploaded"] { box-shadow: inset 0 0 0 2px var(--wn-cyan); }
.wn-s3-wall-name { position: absolute; left: 0; bottom: 100%; max-width: 160px; padding: 0 3px; border-radius: 3px;
  background: rgba(48,43,39,.85); color: var(--wn-ivory); font: 9px/1.3 system-ui,sans-serif; white-space: nowrap; }
/* The possible defects, wall by wall (§3 of the task); the box in §7a's look. */
.wn-s3-defects { position: absolute; left: 12px; right: 12px; top: calc(60px + env(safe-area-inset-top)); bottom: 12px;
  z-index: 7; overflow-y: auto; overscroll-behavior: contain; padding: 12px; border-radius: 12px;
  background: var(--wn-umber); color: var(--wn-ivory); font: 15px/1.35 system-ui,sans-serif; }
.wn-s3-defects[hidden] { display: none; }
.wn-s3-defects h2 { margin: 0 0 8px; font-size: 18px; }
.wn-s3-defects h3 { margin: 12px 0 4px; color: var(--wn-ivory-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.wn-s3-defect { padding: 8px 0; border-top: 1px solid var(--wn-umber-raised); }
.wn-s3-defect strong { color: var(--wn-amber); }
.wn-s3-defect-where, .wn-s3-defect-size { color: var(--wn-ivory-muted); font-size: 14px; }
.wn-s3-defect-photo { position: relative; margin-top: 6px; border-radius: 6px; overflow: hidden; background: var(--wn-umber-raised); }
.wn-s3-defect-photo img { display: block; width: 100%; height: auto; }
.wn-s3-defect-photo .wn-defect-box { position: absolute; inset: 0; width: 100%; height: 100%; }
.wn-s3-defects-none { color: var(--wn-ivory-muted); }
.wn-s3-defects-done { width: 100%; min-height: 48px; margin-top: 12px; border: 0; border-radius: 8px;
  background: var(--wn-walnut-deep); color: var(--wn-ivory); font: 700 16px system-ui,sans-serif; }
/* The review's × as a standard close button, top right (TASK-scan-fixes-1105 §4): it outranks
   `.wn-room-sketch > *`, which put it in the flow at the bottom left. */
.wn-room-sketch > .wn-room-review-close { position: absolute; top: 6px; right: 6px; z-index: 2; }
/* The heading and the review's first banner make room for it (owner, 2026-11-05). */
.wn-room-sketch:has(> .wn-room-review-close) > h2:first-child,
.wn-room-sketch:has(> .wn-room-review-close) .wn-check-banner:first-child,
.wn-room-sketch:has(> .wn-room-review-close) > .wn-check-banner,
.wn-room-sketch:has(> .wn-room-review-close) .wn-baseline-page > :first-child { padding-right: 44px; }
/* The move-in photo while pointing at a missing line (§2): small in a bottom corner, tap to enlarge. */
.wn-was-thumb { position: absolute; left: 10px; bottom: 10px; z-index: 6; width: 64px; height: 86px; padding: 0;
  border: 2px solid var(--wn-ivory); border-radius: 6px; overflow: hidden; background: var(--wn-umber); cursor: zoom-in; pointer-events: auto; }
.wn-was-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wn-was-thumb span { position: absolute; left: 0; right: 0; bottom: 0; padding: 1px 2px; background: rgba(48,43,39,.85);
  color: var(--wn-ivory); font: 9px/1.2 system-ui,sans-serif; text-align: center; }
.wn-was-thumb.wn-was-open { left: 10%; right: 10%; bottom: 20%; width: auto; height: auto; max-height: 60%; cursor: zoom-out; }
.wn-was-thumb.wn-was-open img { height: auto; max-height: 100%; object-fit: contain; }
/* "See your report" after Stage 3 and Stop: the call to action, Walnut Deep with Ivory. */
.wn-report-link { display: block; width: fit-content; margin: 10px auto; padding: 12px 20px; border-radius: 8px;
  background: var(--wn-walnut-deep); color: var(--wn-ivory); font: 700 16px/1.2 system-ui,sans-serif; text-decoration: none; }
/* The review's Done is its call to action (owner, 2026-11-06): Walnut Deep, as the list's Done. */
.wn-baseline-footer > button.wn-baseline-done, .wn-baseline-footer > .wn-baseline-done { background: var(--wn-walnut-deep);
  border-color: var(--wn-walnut-deep); color: var(--wn-ivory); font-weight: 700; }
/* The floating map (TASK-l2-phone-fixes §3; SPEC-stage3-coverage-v1 §4): Stage 2's and Stage 3's
   sketch top-left under the Space selector, never over the reticle or the guidance box (the page
   sets its top and max-height); a minimise button at its top right; minimised, a draggable icon. */
.wn-floating-map { position: absolute; z-index: 7; box-sizing: border-box; padding: 6px; border-radius: 10px;
  background: rgba(48,43,39,.82); overflow: hidden; pointer-events: auto; touch-action: manipulation; }
.wn-floating-map[hidden], .wn-map-icon[hidden] { display: none; }
.wn-floating-map .wn-s3-sketch, .wn-floating-map .wn-s3-sketch.wn-s3-sketch-large { width: 100%; margin: 0; opacity: 1; }
.wn-floating-map .wn-s3-sketch svg, .wn-floating-map .wn-s3-sketch.wn-s3-sketch-large svg {
  max-height: calc(var(--wn-map-max-height, 160px) - 12px); }
.wn-map-min { position: absolute; top: 2px; right: 2px; z-index: 1; width: 32px; height: 32px; padding: 0; border: 0;
  border-radius: 50%; background: rgba(48,43,39,.92); color: var(--wn-ivory); font: 700 20px/1 system-ui,sans-serif; }
.wn-map-min::after { content: ""; position: absolute; inset: -6px; }
.wn-map-icon { position: absolute; z-index: 8; width: 48px; height: 48px; padding: 0; transform: translate(-50%,-50%);
  border: 2px solid var(--wn-cyan); border-radius: 50%; background: rgba(48,43,39,.88); touch-action: none; }
.wn-map-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--wn-cyan); stroke-width: 1.8; stroke-linejoin: round; }
/* The phone's view: two rays at the field of view from "about here" (a hollow dot: approximate). */
.wn-s3-sketch .wn-s3-ray { stroke: var(--wn-cyan); stroke-width: 1.6; stroke-dasharray: 5 3; }
.wn-s3-sketch .wn-s3-here { fill: none; stroke: var(--wn-cyan); stroke-width: 2.5; }
/* Stage 2's map (§1): the landmark's wall green (as Stage 3's), a Cyan dot where its bearing meets it. */
.wn-s3-sketch .wn-s2-dot { fill: var(--wn-cyan); stroke: var(--wn-umber); stroke-width: 2; }

/* ---- The scanner's top line (TASK-scanner-topbar-logo; owner's mockup 2026-11-12) ----
   A 40 px Umber bar across the top with the logo; the Space selector's row and the panels placed under the old top
   row move down by its height. In lab, the map status and ⋯ on its right; Scan mode and Build at the menu's top. */
.wn-camera-shell { --wn-logobar-h: 40px; }
.wn-camera-logobar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 71;
  display: flex; align-items: center; gap: 8px;
  box-sizing: border-box; height: calc(var(--wn-logobar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  background: var(--wn-umber); color: var(--wn-ivory);
}
.wn-camera-logo-mark { display: flex; align-items: center; flex: 0 0 auto; height: 26px; pointer-events: none; }
.wn-camera-logo { display: block; height: 26px; width: auto; }
.wn-camera-topbar,.wn-camera-topbar--lab { top: calc(var(--wn-logobar-h) + env(safe-area-inset-top)); padding-top: 10px; }
.wn-items,.wn-s3-defects { top: calc(60px + var(--wn-logobar-h) + env(safe-area-inset-top)); }
.wn-mode-report { top: calc(58px + var(--wn-logobar-h) + env(safe-area-inset-top)); }
.wn-s3-edge-label { top: calc(118px + var(--wn-logobar-h) + env(safe-area-inset-top)); }
/* Lab: the strip is the bar's right side; the chip ellipsizes before it pushes ⋯ off. */
.wn-camera-logobar .wn-camera-lab-strip {
  order: 0; flex: 1 1 auto; min-width: 0; padding: 0; border-radius: 0; background: transparent; font-size: 12px;
}
.wn-camera-logobar .wn-camera-lab-strip-line { justify-content: flex-end; min-height: 40px; }
.wn-camera-logobar .wn-camera-lab-strip .wn-map-chip {
  margin-left: auto; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 18px;
  background: transparent; border: 1px solid #ffffff55; color: var(--wn-ivory);
}
.wn-camera-logobar .wn-camera-lab-menu-button {
  margin-left: 0; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 999px; font: 700 18px/32px system-ui;
}
.wn-camera-logobar .wn-camera-lab-menu-button[aria-expanded="true"] { background: #ffffff1f; }
.wn-camera-logobar .wn-camera-lab-menu { top: calc(100% + 2px); background: var(--wn-umber-raised); }
.wn-camera-lab-section { display: flex; flex-direction: column; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid #ffffff22; }
.wn-camera-lab-section-title { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--wn-ivory-muted); }
.wn-camera-lab-section .wn-camera-lab-mode { align-self: stretch; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.wn-camera-lab-section .wn-camera-lab-commit { font-size: 12px; color: var(--wn-ivory); }
/* The lab status line, under the bar (as the strip's own line was). */
.wn-camera-lab-status-row {
  order: -1; flex: 0 0 100%; min-width: 0; padding: 0 6px; border-radius: 8px;
  background: rgba(10, 14, 20, .75); color: #fff; font-size: 11px; line-height: 16px;
}

/* ---- TASK-merged-stations-front-5 ---- */
/* C. Dialogs on top: every confirmation card (Stop recording?, Finish?, Finish this space?) above everything on the
   camera screen (the Plan View, pills, the merged flow's cards) except the top bar (70). One rule for all dialogs. */
.wn-dialog { z-index: 65 !important; pointer-events: auto; }
/* D. The Plan View's minimize button (top right of the picture) and its floating map icon, with a Cyan dot for a
   new station while minimized. */
/* front-13: its centre on the box's top-left corner (half outside), never over the drawing. */
.wn-merged-plan-min { position: absolute; top: 0; left: 0; transform: translate(-50%, -50%); z-index: 2; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(48,43,39,.88); color: var(--wn-ivory); font: 700 18px/1 system-ui,sans-serif; }
.wn-merged-plan-min::after { content: ""; position: absolute; inset: -9px; }
.wn-merged-plan-icon { width: 44px; height: 44px; padding: 0; border: 2px solid var(--wn-cyan); border-radius: 50%;
  background: rgba(48,43,39,.88); box-shadow: 0 2px 10px rgba(0,0,0,.35); pointer-events: auto; touch-action: manipulation; }
.wn-merged-plan-icon[hidden], .wn-merged-plan-dot[hidden] { display: none; }
.wn-merged-plan-icon svg { display: block; width: 24px; height: 24px; margin: auto; fill: none; stroke: var(--wn-cyan);
  stroke-width: 1.8; stroke-linejoin: round; }
.wn-merged-plan-dot { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--wn-cyan); box-shadow: 0 0 0 2px var(--wn-umber); }
/* front-13: the Plan View's drawing at the box's width (large: the camera area less 32 px), up to --wn-plan-max-h,
   scaled to fit; every label shown (the Stage 3 sketch hides text). */
.wn-merged-plan .wn-s3-sketch { width: 100%; margin: 0; opacity: 1; }
.wn-merged-plan .wn-s3-sketch svg { width: 100%; height: auto; max-height: var(--wn-plan-max-h, 180px); }
.wn-merged-plan .wn-s3-sketch text.wn-merged-label { display: inline; }
/* front-16 D: the defect alert covers most of the screen (under the top bar and dialogs): its one line, the still
   large with its box, one button (the owner's layout). */
.wn-merged-alert { position: absolute; z-index: 40; inset: 76px 12px 96px; box-sizing: border-box; display: flex;
  flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(48, 43, 39, .95);
  border: 2px solid var(--wn-amber); color: var(--wn-ivory); pointer-events: auto; }
.wn-merged-alert-photo { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 10px; overflow: hidden; background: var(--wn-umber); }
.wn-merged-alert-photo img, .wn-merged-alert-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.wn-merged-alert-title { margin: 0; font: 700 20px/1.2 system-ui, sans-serif; }
.wn-merged-alert-go { flex: none; min-height: 48px; border: 0; border-radius: 12px; background: var(--wn-cyan); color: var(--wn-umber);
  font: 700 17px system-ui, sans-serif; }
/* E. Nothing from other flows in the merged scan (stage1=merged): no "Different here" chip, no wall tabs. */
.wn-merged-scan .wn-different-here-chip, .wn-merged-scan #vlmWallTab, .wn-merged-scan #vlmWallCarousel { display: none !important; }
/* TASK-merged-stations-front-8 C: the bar and its record button always on screen in the merged scan (the hidden tab
   was the only way to reopen it, 11f23ce3): never collapsed, its controls always shown and tappable. */
.wn-page-vlm-capture.wn-merged-scan .wn-camera-controls.wn-tap-sweep-bar { min-height: var(--wn-controls-height,82px) !important; height: var(--wn-controls-height,82px) !important; }
.wn-merged-scan .wn-tap-sweep-bar > .wn-camera-control-group { visibility: visible !important; pointer-events: auto !important; z-index: 2; }
/* TASK-merged-stations-front-9 A: a station photo frozen with its new doors and windows, under the guide box, the REC
   pill and the top bar. */
.wn-merged-freeze { position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: auto; }
.wn-merged-freeze-image, .wn-merged-freeze-shapes { position: absolute; inset: 0; width: 100%; height: 100%; }
.wn-merged-freeze-image { object-fit: cover; }
.wn-merged-freeze-pills { position: absolute; inset: 0; pointer-events: none; }
.wn-merged-freezing .wn-camera-guide { z-index: 6; }
/* TASK-merged-stations-front-9 D (owner): every dialog in the merged scan centred on the screen, still on top. */
.wn-merged-scan .wn-dialog { position: fixed !important; left: 50% !important; top: 50% !important; right: auto !important; bottom: auto !important; margin: 0 !important; transform: translate(-50%, -50%) !important; }

/* §22.10: the Stage 1 report's shape check: an amber note above the plan; the Baseline's outline faint over it. */
.wn-merged-shape-note { margin: 0 0 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--wn-amber);
  background: color-mix(in srgb, var(--wn-amber) 14%, transparent); color: var(--wn-ivory); font-size: 13px; }
.wn-merged-shape-note p { margin: 0; font-weight: 600; color: var(--wn-amber); }
.wn-merged-shape-note ul { margin: 4px 0 0; padding-left: 18px; }
.wn-merged-shape-line { margin: 6px 0 0; font-size: 13px; color: var(--wn-ivory); }
.wn-merged-room-plan .wn-merged-baseline-outline { fill: none; stroke: var(--wn-ivory); stroke-width: 2; stroke-dasharray: 6 4;
  opacity: .45; pointer-events: none; }

/* ---- The scanner's new look, lab only (TASK-scanner-skin; the owner's mock-up
   docs/design/scanner-skin-mockup-20261110.png). Behind `&skin=walnut` or the lab menu's "New look (lab)":
   without .wn-skin-walnut on the page nothing here applies. Wood by CSS gradients only (no image files), from the
   palette's Walnut, Walnut Deep and Umber. Only the look changes: no height, padding or margin on the bar's
   vertical axis, so the camera view keeps its height. Brand-rule notes (Walnut carrying text, the red REC and
   Stop) are parked until the owner has seen it. */
.wn-skin-walnut {
  --wn-skin-grain: repeating-linear-gradient(92deg, rgba(48,43,39,.13) 0 1px, transparent 1px 7px,
    rgba(242,232,218,.06) 7px 9px, transparent 9px 15px, rgba(48,43,39,.08) 15px 16px, transparent 16px 23px);
  --wn-skin-wood: var(--wn-skin-grain),
    linear-gradient(180deg, rgba(242,232,218,.16) 0%, transparent 38%),
    linear-gradient(180deg, var(--wn-walnut) 0%, var(--wn-walnut-deep) 62%, var(--wn-walnut-deep) 100%);
  --wn-skin-bevel: inset 0 1px 0 rgba(242,232,218,.38), inset 0 -2px 5px rgba(48,43,39,.45);
}
/* The top: the room picker as a wood pill (house, name, caret); REC as a red pill with its white dot. */
.wn-skin-walnut .wn-camera-topbar .wn-camera-space-dropdown .wn-check-dropdown-toggle {
  display: flex; align-items: center; gap: 8px; border: 1px solid rgba(242,232,218,.35); border-radius: 999px;
  color: var(--wn-ivory); background: var(--wn-skin-wood); box-shadow: var(--wn-skin-bevel), 0 2px 8px rgba(0,0,0,.35);
  text-shadow: 0 1px 2px rgba(48,43,39,.7);
}
.wn-skin-walnut .wn-skin-house { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wn-skin-walnut .wn-camera-topbar .wn-camera-space-dropdown .wn-check-dropdown-toggle::after { display: none; }
.wn-skin-walnut .wn-skin-caret { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wn-skin-walnut .wn-camera-status-pill { gap: 8px; font-weight: 700; border: 1px solid rgba(255,255,255,.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 8px rgba(0,0,0,.35); }
.wn-skin-walnut .wn-camera-status-pill-recording { background: linear-gradient(180deg, #e5392f, #c4241b); }
.wn-skin-walnut .wn-camera-status-pill-recording::before { content: ""; flex: none; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; }
/* One wood panel across the bottom; the three controls with thin dividers between them. */
.wn-skin-walnut .wn-camera-controls { width: auto; margin-left: 6px; margin-right: 6px; border-radius: 18px;
  background: var(--wn-skin-wood); box-shadow: var(--wn-skin-bevel), 0 -2px 10px rgba(0,0,0,.35); }
.wn-skin-walnut .wn-camera-control-group + .wn-camera-control-group { border-left: 1px solid rgba(242,232,218,.24);
  box-shadow: -1px 0 0 rgba(48,43,39,.3); }
.wn-skin-walnut .wn-camera-control-label { color: var(--wn-ivory); text-shadow: 0 1px 2px rgba(48,43,39,.8); }
.wn-skin-walnut .wn-camera-icon-button { color: var(--wn-ivory); border: 1px solid rgba(242,232,218,.4);
  background: radial-gradient(circle at 40% 30%, rgba(242,232,218,.16), transparent 62%),
    linear-gradient(180deg, rgba(48,43,39,.62), rgba(48,43,39,.9));
  box-shadow: inset 0 1px 0 rgba(242,232,218,.25), 0 2px 6px rgba(0,0,0,.4); }
.wn-skin-walnut .wn-camera-mic-button.is-muted::after { background: var(--wn-ivory); }
.wn-skin-walnut .wn-camera-record-button,
.wn-skin-walnut .wn-camera-stop-button { border-color: rgba(242,232,218,.85);
  background: radial-gradient(circle, rgba(48,43,39,.35), rgba(48,43,39,.7));
  box-shadow: 0 0 0 2px rgba(48,43,39,.45), 0 2px 8px rgba(0,0,0,.4); }
/* The one tab, centred on the bar's top edge (Walls or Images), as the mock-up; no second handle. */
.wn-skin-walnut .wn-camera-controls .wn-wall-tab:not([hidden]) { top: 0; left: 50%; transform: translate(-50%, -72%);
  flex-direction: row; gap: 5px; width: auto; height: 26px; padding: 0 14px; border: 1px solid rgba(242,232,218,.35);
  border-bottom: 0; border-radius: 12px 12px 0 0; color: var(--wn-ivory); background: var(--wn-skin-wood);
  box-shadow: var(--wn-skin-bevel); text-shadow: 0 1px 2px rgba(48,43,39,.8); }
.wn-skin-walnut .wn-camera-controls .wn-wall-tab .wn-wall-tab-chevron { width: 15px; height: 15px; filter: none; }
.wn-skin-walnut .wn-camera-controls .wn-wall-tab .wn-wall-tab-label { font: 600 13px/1 system-ui,sans-serif; }
