.project-photos{flex:none;background:#fff;border-bottom:1px solid var(--line);padding:5px 12px;min-width:0}
.photo-navigation{display:flex;align-items:center;gap:10px;min-width:0}.photo-navigation>.button{min-height:44px;flex:none}.photo-navigation>label{display:flex;align-items:center;gap:8px;min-width:0;font-size:12px}.photo-navigation select{min-height:44px;max-width:480px;min-width:0;font:inherit}.photo-overview{display:flex;gap:10px;overflow-x:auto;padding:10px 0;max-height:230px}.project-photo-card{flex:0 0 180px;border:1px solid var(--line);border-radius:5px;padding:4px}.project-photo-card.selected{border:2px solid var(--accent);background:var(--accent-soft)}.photo-card-select{background:none;border:0;width:100%;display:flex;flex-direction:column;gap:4px;text-align:left;color:var(--text);font:inherit;cursor:pointer}.photo-card-select img{width:100%;height:80px;object-fit:cover}.photo-card-select strong{overflow-wrap:anywhere}.project-photo-card>.button{min-height:44px;padding:6px;font-size:12px}.project-photos+.workspace{flex:1;min-height:0}.project-photos~.workspace{min-height:0}
@media(max-width:850px){.project-photos{padding:4px 6px}.photo-navigation{display:grid;grid-template-columns:1fr auto;gap:4px}.photo-navigation>label{grid-row:2;grid-column:1/-1}.photo-navigation select{flex:1;max-width:100%;width:0}.photo-navigation>.button{font-size:12px}.photo-overview{max-height:200px}.project-photo-card{flex-basis:160px}.photo-card-select img{height:60px}}

@media(max-width:850px){.photo-navigation{grid-template-columns:minmax(120px,.9fr) minmax(0,1fr) 60px;gap:4px}.photo-navigation>label{grid-row:1;grid-column:2;font-size:0;gap:0}.photo-navigation select{font-size:12px}.photo-navigation>.button{padding:6px;font-size:11px}.photo-navigation>[data-action="photo-add"]{grid-column:1}.photo-navigation>[data-action="photos-overview"]{grid-column:3}}

.photo-overview{align-items:flex-start}.project-photo-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4px;align-content:start}.photo-card-select{grid-column:1/-1}.project-photo-card>.button{padding:4px;font-size:12px;min-width:0;justify-content:center}
.eaves-dialog{width:min(960px,calc(100% - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:var(--radius);color:var(--text);background:var(--panel)}
.eaves-dialog::backdrop{background:rgba(29,36,41,.5)}
.eaves-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 26px)}
.eaves-dialog header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line)}
.eaves-dialog h2{font-size:20px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.eaves-dialog header p{margin:6px 0 0;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.eaves-body{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr);gap:20px;padding:20px;overflow:auto;min-height:0}
.eaves-photo{min-width:0;align-self:start;background:var(--canvas)}
.eaves-photo svg{display:block;width:100%;height:360px;max-height:48dvh;touch-action:manipulation}
.eaves-photo [role=button]{cursor:pointer}.eaves-photo [role=button]:focus-visible{outline:2px solid var(--focus)}
.eaves-settings>p:first-child{margin-top:0}.eaves-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.eaves-dialog .button{min-height:44px}.eaves-dialog header .button{min-width:44px;flex:none}
.eaves-options [aria-pressed=true]{background:var(--accent-soft);border-color:var(--accent);color:var(--accent)}
.eaves-dialog footer{display:flex;flex:none;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--line)}
.eave-marker{color:var(--accent);fill:var(--accent)}
@media(max-width:650px){.eaves-body{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px}.eaves-photo svg{height:220px;max-height:34dvh}.eaves-dialog header{padding:12px}.eaves-dialog h2{font-size:18px}.eaves-dialog footer{padding:12px}.eaves-dialog footer .primary{flex:1}.eaves-settings .hint{font-size:13px}}


.roof-progress{min-width:0;display:grid;gap:2px}.roof-step{font-size:12px;color:var(--text);line-height:1.25;overflow-wrap:anywhere}.roof-step strong{font-weight:650}
@media(min-width:1200px){#app.has-project .photo-navigation{grid-template-columns:150px minmax(70px,1fr) auto auto}}
@media(max-width:850px){.photo-navigation{grid-template-columns:auto minmax(40px,1fr) auto auto}.photo-navigation>[data-action="photo-png"]{grid-column:4}.photo-navigation>[data-action="photo-png"] svg{display:none}.canvas-footer .roof-progress{flex:1 0 100%;min-width:0}.roof-progress .totals{min-height:0}}

/* A short landscape screen has room beside the roof status for the actions. */
@media(min-width:620px) and (max-width:850px) and (max-height:450px) and (orientation:landscape){
 .photo-expanded .canvas-footer{flex-wrap:nowrap}
 .photo-expanded .canvas-footer .roof-progress{flex:0 1 auto;max-width:30%}
 .photo-expanded .canvas-footer .planning-actions{flex:1 1 0;min-width:0}
}
