.ws-app { font-size: 16px; min-width: 0; --ws-line: #d8e0e8; --ws-navy: #002368; }
.ws-app h1, .ws-app h2, .ws-app h3, .ws-app p { margin-top: 0; }
.ws-app h1 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 6px; }
.ws-app h2 { font-size: 20px; margin-bottom: 12px; }
.ws-app h3 { font-size: 18px; margin-bottom: 10px; }
.ws-app p { line-height: 1.65; }
.ws-heading, .ws-section-heading, .ws-site-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.ws-heading { margin-bottom: 24px; }
.ws-heading p { margin-bottom: 0; color: #58697c; }
.ws-kicker { font-size: 12px; font-weight: 750; color: #456482; letter-spacing: .09em; margin-bottom: 6px !important; }
.ws-layout { display: grid; grid-template-columns: 215px minmax(0, 1fr); gap: 20px; align-items: start; }
.ws-main { display: grid; gap: 18px; min-width: 0; }
.ws-card { border: 1px solid var(--ws-line); border-radius: 12px; background: white; padding: 22px; min-width: 0; box-shadow: 0 6px 22px #0d234408; }
.ws-sidebar { padding: 16px 12px; }
.ws-sidebar h2 { font-size: 16px; padding-inline: 8px; }
.ws-site-list { display: grid; gap: 8px; max-height: 65vh; overflow: auto; }
.ws-site { text-align: left; padding: 13px; border: 1px solid transparent; border-radius: 8px; background: #f5f8fb; color: #243548; display: grid; gap: 4px; overflow-wrap: anywhere; width: 100%; }
.ws-site span, .ws-site small { color: #617286; font-size: 14px; }
.ws-site.is-selected { border-color: #91afd6; background: #eef4ff; box-shadow: inset 3px 0 var(--ws-navy); }
.ws-site-heading p { margin: 0; color: #617286; overflow-wrap: anywhere; }
.ws-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ws-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 13px; border: 1px solid #bccada; border-radius: 7px; color: var(--ws-navy); background: white; font-size: 14px; font-weight: 650; cursor: pointer; position: relative; text-decoration: none; }
.ws-button:hover { background: #f0f5fd; }
.ws-button.ws-primary { background: var(--ws-navy); border-color: var(--ws-navy); color: white; }
.ws-button.ws-primary:hover { background: #00194d; }
.ws-text-button { background: none; border: 0; color: #002368; font-weight: 750; padding: 8px 4px; font-size: inherit; }
.ws-app button:disabled { opacity: .45; cursor: not-allowed; }
.ws-app :focus-visible { outline: 3px solid #327ac7; outline-offset: 3px; }
.ws-notice { padding: 14px 18px; border: 1px solid #94cdb8; border-radius: 8px; background: #f0faf5; margin-bottom: 16px; color: #166345; }
.ws-notice.ws-error { background: #fff5f5; color: #9b2439; border-color: #e9b6c0; }
.ws-progress { padding: 10px 0; color: #315c89; font-size: 14px; }
.ws-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--ws-line); border-radius: 10px; overflow: hidden; background: white; }
.ws-summary > div { padding: 17px 18px; display: grid; gap: 6px; align-content: start; }
.ws-summary > div + div { border-left: 1px solid var(--ws-line); }
.ws-summary span { font-size: 14px; color: #536478; }
.ws-summary strong { font-size: clamp(22px, 2vw, 30px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-summary small { font-size: 14px; font-weight: 400; margin-left: 4px; }
.ws-summary .ws-total { background: #002368; color: white; }
.ws-summary .ws-total span { color: #dbe8ff; }
.ws-summary .ws-amount { font-size: 22px; }
.ws-quote-scope { margin: -6px 0 0; padding: 12px 15px; background: #f0f4fb; border: 1px solid #d6e0f0; border-radius: 7px; display: grid; gap: 4px; font-size: 14px; color: #355471; }
.ws-quote-scope span { color: #617286; font-size: 13px; }
.ws-disclaimer { padding: 12px 16px; background: #fff8e9; border-left: 3px solid #b28230; color: #75501c; font-size: 14px; margin-bottom: 0; }
.ws-ai-disclosure { padding: 12px 14px; margin: 14px 0; border: 1px solid #d8dfee; border-radius: 7px; background: #f5f7fc; color: #455b75; font-size: 14px; }
.ws-manual-tools { margin-top: 18px; border-top: 1px solid var(--ws-line); padding-top: 15px; }
.ws-manual-tools summary { cursor: pointer; color: #38516a; font-weight: 650; padding: 7px 0; min-height: 40px; }
.ws-manual-tools > p { margin: 8px 0 12px; }
.ws-manual-tools > .ws-actions { margin-top: 10px; }
.ws-ai-status { margin-top: 16px; }
.ws-capture-guide { border-left: 3px solid var(--ws-navy); background: #f3f7fc; border-radius: 6px; padding: 12px 14px; margin: 14px 0; color: #344a60; }
.ws-capture-guide > p { margin-bottom: 0; }
.ws-capture-guide strong, .ws-capture-guide span { display: block; }
.ws-capture-guide strong { color: var(--ws-navy); font-size: 16px; }
.ws-capture-guide span, .ws-capture-guide details { font-size: 14px; line-height: 1.65; }
.ws-capture-guide summary { cursor: pointer; min-height: 36px; padding-top: 8px; }
.ws-capture-guide ul { padding-left: 20px; margin: 6px 0 10px; }
.ws-capture-guide li + li { margin-top: 4px; }
.ws-capture-guide details p { margin-bottom: 0; }
.ws-retake-notice { margin-top: 14px; }
.ws-retake-notice p { margin-bottom: 12px; }
.ws-analysis-results { margin-top: 22px; }
.ws-analysis-results > h3 { margin-bottom: 8px; }
.ws-analysis-results > p { margin-bottom: 14px; }
.ws-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-candidate { border: 1px solid #d9d8e9; background: #fafaff; border-radius: 9px; padding: 14px; min-width: 0; overflow-wrap: anywhere; }
.ws-candidate.is-selected { border-color: #6d4dc4; box-shadow: inset 0 0 0 1px #6d4dc4; }
.ws-candidate.ws-candidate-unknown { background: #fffbf3; border-color: #e7d6b6; }
.ws-candidate-unknown .ws-candidate-title .ws-chip { background: #fff0cf; color: #75541c; }
.ws-candidate-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.ws-candidate-title strong { font-size: 15px; flex: 1 1 120px; }
.ws-candidate-title .ws-chip { font-size: 12px; background: #efeafb; color: #594094; }
.ws-candidate-number { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 5px; color: white; background: #6846af; }
.ws-candidate-size { font-size: 14px; margin-bottom: 10px; color: #3e4e66; }
.ws-candidate-size strong { font-size: 17px; color: #263e5d; }
.ws-candidate > .ws-muted { margin-bottom: 12px; }
.ws-ai-warnings { padding: 0 0 0 20px; color: #795b32; font-size: 13px; line-height: 1.65; margin: 10px 0 14px; overflow-wrap: anywhere; }
.ws-ai-reasons { font-size: 13px; color: #617286; overflow-wrap: anywhere; margin-top: 12px; }
.ws-ai-reasons summary { padding: 6px 0; min-height: 34px; cursor: pointer; }
.ws-ai-reasons > p { margin: 8px 0; }
.ws-analysis-warnings { margin: 0 0 14px; }
.ws-estimate-review { background: #fff8e9; border: 1px solid #e7d6b6; border-radius: 7px; padding: 12px; line-height: 1.6; }
.ws-muted { color: #617286; font-size: 14px; }
.ws-form { display: grid; gap: 14px; }
.ws-form > p, .ws-form > h2, .ws-form > h3 { margin-bottom: 0; }
.ws-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-field { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 650; color: #344a60; }
.ws-field input, .ws-field textarea, .ws-field select, .ws-upload-options select { width: 100%; min-height: 44px; border: 1px solid #c5d2df; border-radius: 6px; background: white; padding: 10px 11px; color: #1a2c3f; font: inherit; font-size: 16px; }
.ws-field textarea { resize: vertical; min-height: 75px; }
.ws-upload-options { display: flex; align-items: center; gap: 14px; margin: 8px 0 14px; }
.ws-upload-options label { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; }
.ws-upload-options select { width: auto; font-size: 14px; padding: 8px; }
.ws-upload-options small { color: #617286; font-size: 13px; }
.ws-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ws-button:focus-within { outline: 3px solid #327ac7; outline-offset: 3px; }
.ws-photo-list { display: flex; gap: 9px; overflow-x: auto; padding-bottom: 14px; max-width: 100%; }
.ws-photo-tab { display: flex; align-items: center; min-width: 180px; max-width: 230px; flex-shrink: 0; gap: 10px; padding: 7px; border: 1px solid var(--ws-line); background: #f7f9fc; border-radius: 8px; text-align: left; }
.ws-photo-tab.is-selected { border-color: var(--ws-navy); background: #eef4ff; }
.ws-photo-tab img { width: 58px; height: 48px; object-fit: cover; border-radius: 4px; }
.ws-photo-tab span { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-photo-tab small { display: block; color: #617286; font-size: 12px; margin-top: 3px; }
.ws-measure-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr); gap: 20px; align-items: start; }
.ws-photo-stage { position: relative; width: 100%; background: #172431; border-radius: 8px; overflow: hidden; scroll-margin-top: 130px; scroll-margin-bottom: 80px; }
.ws-photo-image { display: block; width: 100%; height: auto; }
.ws-overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; touch-action: none; user-select: none; }
.ws-overlay polygon, .ws-overlay polyline { vector-effect: non-scaling-stroke; stroke-width: 2; }
.ws-reference { stroke: #24cc8a; fill: #17ba7120; stroke-dasharray: 5 4; pointer-events: none; }
.ws-window { fill: #248cf738; stroke: #4fa7ff; }
.ws-window.is-selected { stroke: #ffd34f; fill: #ffc83222; stroke-width: 3; }
.ws-ai-window { fill: #a485f32e; stroke: #c3a9ff; stroke-dasharray: 7 3; }
.ws-ai-window.is-selected { fill: #d7beff55; stroke: #f3e6ff; stroke-width: 3; }
.ws-ai-label { stroke: #58398d !important; }
.ws-window-label { fill: white; stroke: #002368; stroke-width: 5; paint-order: stroke; font-size: 28px; font-weight: 750; pointer-events: none; }
.ws-draft-line { stroke: #ffb133; fill: #ffb13322; pointer-events: none; }
.ws-point { cursor: grab; }
.ws-point circle { fill: #fff; stroke: #c77600; stroke-width: 2; }
.ws-point .ws-point-hit { r: 34px; fill: transparent; stroke: none; pointer-events: all; }
.ws-point text { fill: #7d4800; font-size: 16px; font-weight: 800; pointer-events: none; }
.ws-point:focus circle { fill: #ffe5af; stroke: #002368; stroke-width: 4; }
.ws-editor { border-left: 1px solid var(--ws-line); padding-left: 18px; min-width: 0; scroll-margin-top: 150px; }
.ws-editor ol { padding-left: 24px; color: #435970; }
.ws-editor li { margin-bottom: 15px; }
.ws-checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.ws-checkbox input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--ws-navy); }
.ws-photo-links { min-width: 0; border: 1px solid var(--ws-line); border-radius: 6px; padding: 10px; display: grid; gap: 8px; }
.ws-photo-links legend { font-size: 14px; }
.ws-photo-links span { overflow-wrap: anywhere; }
.ws-measured { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px; align-items: baseline; background: #eef5ff; padding: 13px; border-radius: 7px; }
.ws-measured strong { font-size: 24px; color: #002368; }
.ws-measured span { font-size: 14px; }
.ws-chip { display: inline-block; font-size: 13px; background: #edf3ff; color: #274e7b; border-radius: 5px; padding: 5px 9px; }
.ws-table-scroll { overflow-x: auto; }
.ws-register table { width: 100%; min-width: 850px; border-collapse: collapse; font-size: 14px; }
.ws-register td:nth-child(2) { min-width: 120px; }
.ws-register th { background: #f0f5fa; color: #38516a; padding: 12px 9px; white-space: nowrap; text-align: left; }
.ws-register td { border-bottom: 1px solid #e0e7ee; padding: 9px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ws-register td:nth-child(3), .ws-register td:nth-child(4), .ws-register td:nth-child(5), .ws-register td:nth-child(6) { text-align: right; }
.ws-register tr.is-selected { background: #eff5ff; }
.ws-register > p { margin-top: 14px; margin-bottom: 0; }
.ws-empty, .ws-empty-cell { text-align: center; padding: 45px 20px !important; }
.ws-empty p { color: #617286; }
.ws-empty-symbol { display: inline-block; background: #edf3ff; color: #456895; border-radius: 12px; padding: 8px 20px; font-size: 36px; margin-bottom: 16px; }
.ws-empty .ws-button { margin: 10px 0 20px; }
.ws-print-title, .ws-print-photos { display: none; }
.ws-admin-main { max-width: 1550px; margin: 0 auto; padding: 24px; }
.ws-admin-top { padding: 16px 24px; border-bottom: 1px solid #d8e0e8; background: white; }
.reseller-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.reseller-nav button[data-view="surveys"] { white-space: normal; word-break: keep-all; line-height: 1.35; }
@media (min-width: 1300px) { .reseller-content:has(.ws-app) { width: min(1560px, calc(100% - 48px)); max-width: none; } }
@media (max-width: 1100px) { .ws-layout { grid-template-columns: 175px minmax(0,1fr); gap: 14px; } .ws-measure-layout { grid-template-columns: 1fr; } .ws-editor { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--ws-line); } .ws-summary { grid-template-columns: repeat(2,minmax(0,1fr)); } .ws-summary > div:nth-child(3) { border-left: 0; } }
@media (max-width: 760px) { .ws-layout { grid-template-columns: 1fr; } .ws-sidebar { padding: 12px; } .ws-site-list { display: flex; max-height: none; } .ws-site { min-width: 170px; max-width: 220px; flex-shrink: 0; } .ws-heading, .ws-section-heading, .ws-site-heading { flex-direction: column; align-items: stretch; gap: 12px; } .ws-card { padding: 16px; } .ws-heading { margin-bottom: 16px; } .ws-heading p { font-size: 14px; } .ws-upload-options { flex-direction: column; align-items: flex-start; } .ws-admin-main { padding: 14px; } .reseller-nav { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { .ws-window-label { font-size: 52px; } .ws-point .ws-point-hit { r: 75px; } .ws-point text { font-size: 25px; } .ws-point circle:not(.ws-point-hit) { r: 23px; } }
@media (max-width: 600px) { .ws-candidates { grid-template-columns: 1fr; } .ws-candidate .ws-button { width: 100%; } .ws-ai-disclosure { font-size: 13px; } }
@media (max-width: 390px) { .ws-summary > div { padding: 12px; } .ws-summary strong { font-size: 23px; } .ws-summary .ws-amount { font-size: 18px; } .ws-fields { grid-template-columns: 1fr; } .ws-card { padding: 12px; } .ws-button { font-size: 14px; padding-inline: 10px; } }
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  html:has(.ws-app), .reseller-shell:has(.ws-app) { background: white !important; min-height: 0 !important; }
  .ws-print-title { display: block; margin: 0 0 12px; }
  .ws-print-title p { font-size: 10pt; margin-bottom: 4px; }
  .ws-print-title h1 { font-size: 20pt; margin-bottom: 8px; }
  body.reseller-page { background: white !important; color: black; }
  .reseller-topbar, .reseller-skip-link, .reseller-legal-footer, .reseller-legal-documents, .ws-no-print, .reseller-notice, .ws-admin-top { display: none !important; }
  body * { visibility: hidden; }
  .ws-app, .ws-app * { visibility: visible; }
  .reseller-content, .ws-admin-main { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; }
  .ws-layout { display: block; }
  .ws-main { display: block; }
  .ws-card { padding: 8px 0; border: 0; box-shadow: none; border-radius: 0; }
  .ws-summary { break-inside: avoid; margin-block: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ws-summary .ws-total { background: white; color: black; }
  .ws-summary > div + div { border-left: 1px solid var(--ws-line); }
  .ws-summary .ws-total span { color: black; }
  .ws-table-scroll { overflow: visible; }
  .ws-register th, .ws-register td { font-size: 10pt; padding: 6px; }
  .ws-register table { min-width: 0; }
  .ws-register td:nth-child(2) { min-width: 0; }
  .ws-window-label { font-size: 32px; }
  .ws-register tr { break-inside: avoid; }
  .ws-register thead { display: table-header-group; }
  .ws-disclaimer { border: 1px solid #999; background: white; color: black; }
  .ws-print-photos { display: block; break-before: page; }
  .ws-print-photos figure { width: 46%; display: inline-block; vertical-align: top; margin: 10px 1%; break-inside: avoid; }
  .ws-print-image { position: relative; }
  .ws-print-image img { width: 100%; display: block; }
  .ws-print-photos figcaption { font-size: 10pt; margin-top: 5px; }
}
