.sv{min-width:0}.sv-heading,.sv-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.sv h2,.sv h3{margin:0 0 8px}.sv p{line-height:1.5}.sv-report{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line,#ccd5de);padding:16px 0}.sv-report p{margin:4px 0}.sv-editor{max-width:900px}.sv-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sv label{display:flex;flex-direction:column;gap:6px;margin:10px 0;min-width:0}.sv input:not([type=checkbox]),.sv select,.sv textarea{width:100%;box-sizing:border-box;min-width:0}.sv textarea{resize:vertical}.sv .sv-check{flex-direction:row;align-items:flex-start}.sv-check input{flex:0 0 auto;margin-top:4px}.sv fieldset{min-width:0;border:1px solid var(--line,#ccd5de);border-radius:var(--radius-control);padding:12px}.sv-details,.sv-finding{border:1px solid var(--line,#ccd5de);border-radius:var(--radius-control);padding:12px;margin:14px 0}.sv summary{cursor:pointer;font-weight:600;overflow-wrap:anywhere}.sv-finding>summary{padding:4px 0}.sv-error{color:var(--danger,#ad3030);white-space:pre-wrap}.sv-actions a{padding:8px 0}.sv button,.sv a{touch-action:manipulation}.sv-report h3{overflow-wrap:anywhere}
@media(max-width:700px){.sv-grid{grid-template-columns:1fr}.sv-editor{padding-right:16px;box-sizing:border-box}.sv-heading{align-items:flex-start}.sv-heading>button{width:100%}.sv-finding,.sv-details{padding:10px}.sv-actions{justify-content:flex-start}}
.sv .sv-check input[type=checkbox]{width:18px;min-width:18px;height:18px;min-height:18px;flex:0 0 18px;padding:0}.sv .sv-check{overflow-wrap:anywhere}

.sv-icon{width:24px;height:24px;flex:0 0 24px}.sv-sr-only{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}

.sv-photos{margin:16px 0}.sv-photo{border-top:1px solid var(--line,#ccd5de);padding:10px 0}.sv-photo img{display:block;max-width:100%;width:auto;max-height:240px;object-fit:contain;border-radius:var(--radius-control)}.sv-photo [hidden]{display:none}.sv-photo textarea{min-height:85px}

/* Compact guided survey matching the approved reference. */
.sv-editor{--sv-blue:#0969da;--sv-soft:#eaf3ff;box-sizing:border-box;max-width:1000px;margin:0 auto;padding:16px 20px 0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-control);color:var(--ink)}
.sv-editor [hidden]{display:none!important}.sv-editor button{min-height:40px}.sv-editor button:disabled{opacity:.45;cursor:default}.sv-editor .primary{background:var(--sv-blue);color:#fff;border:1px solid var(--sv-blue);border-radius:var(--radius-control)}.sv-editor .secondary{background:var(--sv-soft);color:var(--sv-blue);border:1px solid var(--line);border-radius:var(--radius-control)}
.sv-editor .sv-back{min-height:32px;margin:0 0 7px;padding:0;border:0;background:none;box-shadow:none;color:var(--sv-blue);font-size:13px}
.sv-page-head{position:relative;display:flex;align-items:flex-start;gap:12px;margin:0 0 8px}.sv-page-head>div{min-width:0;flex:1}.sv-page-head h1{font-size:24px;line-height:1.22;margin:0 0 5px;overflow-wrap:anywhere}.sv-page-head p{font-size:13px;color:var(--muted);margin:0;line-height:1.35}
.sv-status{display:inline-block;padding:4px 10px;border-radius:var(--radius-control);font-size:11px;line-height:1.3;white-space:nowrap;background:var(--sv-soft,#eaf3ff);color:var(--ink)}.sv-status[data-status=DRAFT]{background:#fff0c7;color:#795018}.sv-status[data-status=FINAL]{background:#ddf1e1;color:#27623b}.sv-status[data-status=CANCELLED]{background:var(--soft);color:var(--muted)}
.sv-steps{display:flex;align-items:center;gap:0;margin:14px 0 12px;padding-bottom:12px;border-bottom:1px solid var(--line);scroll-margin-top:70px}.sv-steps button{display:flex;align-items:center;gap:7px;border:0;background:none;color:var(--muted);border-radius:0;min-height:32px;padding:0;font-size:13px;flex:1}.sv-steps button:not(:last-child)::after{content:'';height:2px;background:var(--line);flex:1;margin:0 10px}.sv-steps button:last-child{flex:0 0 auto}.sv-steps button span{width:27px;height:27px;flex:0 0 27px;display:grid;place-items:center;border-radius:50%;background:#a9b1bc;color:white}.sv-steps button[aria-current=step]{color:var(--sv-blue);font-weight:700}.sv-steps button[aria-current=step] span{background:var(--sv-blue)}.sv-steps .sv-step-past span{background:#83afd9}.sv-steps .sv-step-past::after{background:var(--sv-blue)!important}
.sv-editor label{font-size:13px;font-weight:400;gap:4px;margin:8px 0}.sv-editor input:not([type=checkbox]),.sv-editor select,.sv-editor textarea{border:1px solid var(--line);border-radius:var(--radius-control);background:var(--panel);color:var(--ink);padding:7px 9px;min-height:38px;font:inherit;font-size:14px;box-sizing:border-box}.sv-editor textarea{line-height:1.4;min-height:58px;resize:vertical}.sv-editor .sv-grid{gap:0 16px}.sv-step-panel{padding:4px 0 10px}.sv-step-panel h2{font-size:18px}.sv-editor .sv-heading{display:flex;align-items:center;gap:8px;flex-wrap:nowrap;scroll-margin-top:70px}.sv-editor .sv-heading>button{width:auto;flex:0 0 auto;font-size:13px;padding:5px 10px;min-height:36px}.sv-editor .sv-picker{margin:0;min-width:0;flex:1}.sv-editor .sv-picker select{border:0;background:transparent;font-size:15px;font-weight:600;padding:4px 22px 4px 0;width:auto;max-width:100%;min-height:36px}
.sv-editor .sv-finding{display:block;margin:6px 0 0;padding:12px;border:1px solid var(--line);border-radius:var(--radius-control);background:var(--panel)}.sv-editor .sv-finding-title{font-size:18px;line-height:1.3;margin:0 0 3px;overflow-wrap:anywhere}.sv-finding-meta{display:flex;gap:8px;align-items:center}.sv-editor .sv-finding-meta label{margin:0;min-width:0}.sv-editor .sv-finding-meta select{font-size:11px;min-height:30px;padding:3px 18px 3px 6px;border:0;width:auto;max-width:100%;color:var(--muted);background:transparent}.sv-editor .sv-priority select{background:#fff0c7;color:#795018}.sv-editor .sv-priority select[data-priority=HIGH],.sv-editor .sv-priority select[data-priority=URGENT]{background:#ffeadc;color:#923413}
.sv-measurements{font-size:13px;margin:10px 0}.sv-measurements>summary{font-weight:400;padding:5px 0;min-height:24px}.sv-measurements[open]{padding-bottom:10px}.sv-measurements [data-remove]{font-size:12px;color:var(--danger)}
.sv-editor .sv-photos{border:0;padding:0;margin:10px 0 0}.sv-photos legend{font-size:13px;padding:0;margin-bottom:6px}.sv-photo-strip{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.sv-editor .sv-photo{position:relative;width:108px;border:0;padding:0;min-width:0}.sv-editor .sv-photo img{width:108px;height:82px;max-height:none;object-fit:cover;border:1px solid var(--line);border-radius:var(--radius-control);box-sizing:border-box}.sv-editor .sv-photo label{margin:3px 0 0}.sv-editor .sv-photo textarea{width:100%;font-size:11px;line-height:1.3;min-height:32px;padding:3px;border:1px solid transparent;background:transparent;border-radius:3px}.sv-editor .sv-photo textarea:focus{border-color:var(--sv-blue)}.sv-editor .sv-photo-remove{position:absolute;right:-5px;top:-5px;z-index:1;display:grid;place-items:center;width:24px;min-height:24px;padding:0;background:#243f57;color:white;border:2px solid var(--panel);border-radius:50%;font-size:17px}
.sv-editor .sv-photo-add{position:relative;box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:3px;width:108px;height:82px;margin:0;border:1px dashed var(--line);border-radius:var(--radius-control);background:var(--soft);font-size:11px;color:var(--muted);cursor:pointer}.sv-photo-add>span{font-size:25px;color:var(--ink)}.sv-photo-add:focus-within{outline:2px solid var(--sv-blue);outline-offset:2px}.sv-existing-photos{font-size:11px;margin:6px 0 0}.sv-existing-photos summary{font-weight:400;color:var(--muted);padding:5px 0}.sv-existing-photos .sv-check{font-size:12px}
.sv-finding-nav{display:flex;justify-content:space-between;gap:10px;padding:8px 12px 12px;border:1px solid var(--line);border-top:0;border-radius:0 0 5px 5px}.sv-editor .sv-finding:has(+*){border-bottom:0}.sv-finding-nav button{font-size:12px;padding:7px 11px;max-width:49%;min-height:36px}
.sv-save-bar{position:sticky;bottom:0;z-index:3;background:var(--panel);padding:7px 0 10px;border-top:1px solid var(--line);margin-top:10px}.sv-save-bar [data-save-state]{display:block;min-height:14px;font-size:10px;color:var(--muted);margin-bottom:4px}.sv-save-bar .sv-actions{display:flex;gap:10px;flex-wrap:nowrap}.sv-save-bar button{flex:1;min-width:0;font-size:14px;padding:8px}.sv-save-bar button[type=submit]{background:var(--soft);color:var(--ink);border:1px solid var(--line)}
.sv-editor .sv-error:empty{display:none}.sv-error{font-size:13px}.sv-empty{padding:20px;color:var(--muted);font-size:14px;border:1px dashed var(--line)}.sv-review-context,.sv-review-finding{padding:14px 0;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.sv-review-finding h3{font-size:16px}.sv-review-finding p,.sv-review-context p{font-size:14px}.sv-review-finding figure{display:inline-block;vertical-align:top;width:160px;margin:8px 10px 8px 0}.sv-review-finding img{max-width:100%;max-height:150px;object-fit:contain}.sv-review-finding figcaption{font-size:12px}.sv-finalize{padding-top:14px;border-top:1px solid var(--line)}
.sak-reference-layout .sv-report{display:block;border:1px solid var(--line);border-radius:var(--radius-control);margin:0 0 6px;padding:0!important}.sv-report-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto 8px;gap:10px;align-items:center;padding:9px 11px}.sv-report-name{min-width:0}.sak-reference-layout .sv-report h3{font-size:14px;margin:0 0 3px}.sv-report-name h3 button,.sv-report-name h3 a{display:block;text-align:left;border:0;padding:0;background:none;color:var(--ink);font-size:14px;font-weight:600;line-height:1.4;min-height:0;box-shadow:none;text-decoration:none}.sak-reference-layout .sv-report small{font-size:12px;line-height:1.3}.sv-report-tools{padding:0 11px 5px;font-size:11px}.sv-report-tools>summary{text-align:right;font-weight:400;color:var(--muted);min-height:22px}.sv-report-tools .sv-actions{padding:8px 0;justify-content:flex-start}
:root[data-theme=dark] .sv-editor{--sv-blue:#89bbff;--sv-soft:#20354f}:root[data-theme=dark] .sv-editor .primary{color:#122235}:root[data-theme=dark] .sv-status[data-status=DRAFT],:root[data-theme=dark] .sv-editor .sv-priority select{background:#4b3f25;color:#ffe0a2}:root[data-theme=dark] .sv-status[data-status=FINAL]{background:#244833;color:#b4ecc5}
@media(min-width:900px){.sv-editor{padding:22px 28px 0}.sv-editor .sv-finding{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.65fr);gap:0 24px}.sv-finding-title,.sv-finding-meta{grid-column:1/-1}.sv-finding>label,.sv-finding>.sv-measurements{grid-column:1}.sv-finding>.sv-photos{grid-column:2;grid-row:3/6;align-self:start}.sv-editor textarea{min-height:76px}.sv-save-bar .sv-actions{max-width:500px;margin-left:auto}}
@media(max-width:700px){.sv-editor{padding:12px 12px 0}.sv-page-head h1{font-size:20px}.sv-page-head{gap:8px}.sv-status{padding:4px 8px}.sv-editor .sv-finding{padding:10px}.sv-editor input:not([type=checkbox]),.sv-editor textarea{font-size:16px}.sv-steps button{font-size:12px;gap:5px}.sv-steps button:not(:last-child)::after{margin:0 7px}.sv-steps button span{width:24px;height:24px;flex-basis:24px}.sv-editor .sv-finding-title{font-size:17px}.sv-editor .sv-photo textarea{font-size:16px;min-height:44px}.sv-editor .sv-photo,.sv-editor .sv-photo img,.sv-editor .sv-photo-add{width:96px}.sv-editor .sv-photo img,.sv-editor .sv-photo-add{height:76px}.sv-save-bar{padding-bottom:max(10px,env(safe-area-inset-bottom))}}


.sak-reference-layout .sv-report{position:relative}
.sak-reference-layout .sv-report-tools{position:absolute;right:6px;top:50%;transform:translateY(-50%);padding:0}
.sak-reference-layout .sv-report-tools>summary{list-style:none;font-size:18px;min-width:24px;min-height:32px;display:grid;place-items:center;background:var(--panel)}
.sak-reference-layout .sv-report-tools[open]{position:relative;right:auto;top:auto;transform:none;padding:0 12px 8px}
.sak-reference-layout .sv-report-tools[open]>summary{display:block;text-align:right}
.sak-reference-layout .sv-report-row{padding-right:34px;grid-template-columns:24px minmax(0,1fr) auto;gap:9px}
.sak-reference-layout .sv-report-row>span:last-child:not(.sv-status){display:none}
:root[data-theme] .sv-editor .primary{background:var(--sv-blue);color:white}
:root[data-theme=dark] .sv-editor .primary{color:#122235}
:root[data-theme] .sv-editor .sv-photo textarea{font-size:11px!important;line-height:1.3;min-height:30px;border-color:transparent;resize:none}
:root[data-theme] .sv-editor .sv-photo textarea:focus{font-size:16px!important;min-height:70px;border-color:var(--sv-blue)}
