.app-body .auth-grid { max-width: 520px; margin: 0 auto 4rem; }
.auth-card { padding: 1.6rem; display: grid; gap: .7rem; }
.auth-card input, .auth-card select, .auth-card textarea,
.workspace-content input, .workspace-content select, .workspace-content textarea {
  width: 100%; border: 1px solid var(--line, #dfe5d9); border-radius: 10px; padding: .75rem .9rem; background: #fff; color: inherit;
}
.workspace-nav { text-decoration: none; }
.workspace-content h1 { margin-top: .4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.full-width { width: 100%; }
.optional { opacity: .65; font-weight: 400; }
.admin-body .workspace-sidebar { background: #173f35; color: #f7f8f2; }
.address-suggest-wrap { position: relative; }
.address-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 80; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line, #dfe5d9); border-radius: 12px; box-shadow: 0 18px 60px #203a2410; max-height: 280px; overflow: auto; }
.address-suggest[hidden] { display: none !important; }
.address-suggest button { display: block; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 10px 12px; min-height: 44px; color: inherit; font-size: 13px; }
.address-suggest button strong { display: block; }
.address-suggest button small { display: block; font-size: 11px; opacity: .7; }
.address-suggest button[aria-selected="true"], .address-suggest button:hover { background: #f0f3e9; }

.password-field { position: relative; }
.password-field input { padding-right: 4.5rem; }
.password-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: none; color: #426b4a; font-size: 12px; font-weight: 600;
  min-height: 36px; padding: 0 10px; cursor: pointer;
}

.job-live h1 { overflow-wrap: anywhere; }
.processing-grid { display: grid; grid-template-columns: 220px 1fr; gap: 18px; margin: 1.4rem 0 1rem; }
@media (max-width: 820px) { .processing-grid { grid-template-columns: 1fr; } }
.progress-card, .roofer-card, .job-terminal { padding: 1.1rem; }
.progress-ring-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto; }
.progress-ring { width: 150px; height: 150px; transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: #dfe5d9; stroke-width: 10; }
.progress-ring-value { fill: none; stroke: #214d3c; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 364.4; stroke-dashoffset: 364.4; transition: stroke-dashoffset .2s linear; }
.progress-readout { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.progress-readout strong { font-size: 42px; color: #193c32; letter-spacing: -1px; }
.progress-readout span { display: block; margin-top: 4px; font-size: 12px; color: #748078; }
.progress-stage { text-align: center; font-size: 13px; font-weight: 600; color: #193c32; margin: 12px 0 4px; text-transform: lowercase; }
.roofer-stage { overflow: hidden; border-radius: 12px; }
.roofer-svg { width: 100%; height: auto; display: block; }
.roofer-figure { transform: translate(calc(118px + (var(--pct, 0) * 1.7px)), calc(78px - (var(--pct, 0) * 0.38px))); transition: transform .4s ease; }
.roofer-hammer { transform-origin: 4px -8px; animation: hammer 0.7s ease-in-out infinite; }
@keyframes hammer { 0%,100% { transform: rotate(-18deg); } 50% { transform: rotate(42deg); } }
.roofer-caption { margin: 10px 0 0; font-size: 13px; color: #364c43; }
.job-terminal { background: #12251f; color: #d6ee94; padding: 0; overflow: hidden; }
.job-terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #17352c; color: #c1cfc0; font-size: 11px; }
.job-terminal-bar span { width: 8px; height: 8px; border-radius: 50%; background: #5f7d55; }
.job-terminal-bar strong { margin-left: 8px; letter-spacing: .04em; }
.job-terminal-bar em { margin-left: auto; font-style: normal; color: #d6ee94; }
.job-terminal-body { margin: 0; padding: 14px 16px 18px; min-height: 240px; max-height: 320px; overflow: auto; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.term-line.ok { color: #c9e892; }
.term-line.warn { color: #ddbaa4; }
.term-line.error { color: #e7a194; }
.report-document-card { padding: 2rem; margin-top: 1rem; }
.report-document-card h1 { font-size: clamp(28px, 4vw, 42px); }
.job-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .roofer-hammer { animation: none; } .progress-ring-value { transition: none; } }

.roof-diagrams{min-width:0}.diagram-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.diagram-heading h2{margin:.4rem 0}.diagram-heading select{max-width:150px}.diagram-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.diagram-tabs button{border:1px solid var(--line,#dfe5d9);border-radius:10px;padding:12px 16px;cursor:pointer;color:inherit;background:transparent}.diagram-tabs [aria-selected=true]{background:#214d3c;color:white;border-color:#214d3c}.diagram-viewport{overflow:auto;border:1px solid var(--line,#dfe5d9);border-radius:16px;background:#f1f5e9;max-height:660px}.diagram-viewport img{display:block;width:100%;min-width:360px;max-width:none;height:auto}.diagram-unavailable,.diagram-warning{padding:22px;background:#f8f0dd;color:#624925;border:1px solid #e9d9b8;border-radius:12px;margin:18px 0}.diagram-tools{margin-top:18px}.diagram-tools .button{padding:10px 14px}.roof-diagrams button:focus-visible,.diagram-viewport:focus-visible{outline:3px solid #a4c476;outline-offset:3px}@media(max-width:600px){.diagram-heading{align-items:flex-start;flex-direction:column}.diagram-tabs button{flex:1 1 40%}.diagram-viewport{max-height:420px}}
