#ibrBuddy .navigation-section .buddy-nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}#ibrBuddy .navigation-section .buddy-nav button{font-size:16px;min-height:48px;padding:8px 12px;line-height:1.2}#ibrBuddy #buddyDashboard{min-height:40px;padding:7px 13px}#ibrBuddy .dashboard-jumps{display:flex;gap:14px;flex-wrap:wrap;padding:0 0 10px}#ibrBuddy .dashboard-jumps a{color:#d7ca78;font-size:14px}#ibrBuddy .dashboard-table-scroll{overflow-x:auto;width:100%}#ibrBuddy .dashboard-table{border-collapse:collapse;width:100%;font-size:14px;table-layout:auto}#ibrBuddy .dashboard-table th{font-size:12px;font-weight:650;color:#d5d0b9;text-align:left;padding:6px 8px;border-bottom:1px solid #75654f;white-space:nowrap}#ibrBuddy .dashboard-table td{padding:5px 8px;vertical-align:middle;border-bottom:1px solid #655e45;line-height:1.3}#ibrBuddy .dashboard-table td button{min-height:32px;padding:5px 9px;font-size:13px;white-space:nowrap}#ibrBuddy .dashboard-table .dashboard-project-name{border:0;background:transparent;color:#f4f1e9;padding:4px 0;font-weight:700;text-align:left;white-space:normal;justify-content:flex-start}#ibrBuddy .dashboard-row-actions{display:flex;gap:5px}#ibrBuddy .dashboard-photo{width:55px}#ibrBuddy .project-cover-small img{display:block;width:46px;height:34px;object-fit:cover;border-radius:4px}#ibrBuddy .project-photo-placeholder{display:flex;align-items:center;justify-content:center;background:#3e3c2e;color:#d5d0b9;border:1px solid #75654f;border-radius:5px;min-width:46px;min-height:34px;font-size:12px}#ibrBuddy .dashboard-project-tools{display:flex;justify-content:flex-end;margin:-35px 0 8px}#ibrBuddy .dashboard-project-tools button{min-height:34px;padding:5px 10px;font-size:13px}#ibrBuddy .dashboard-empty{font-size:14px;margin:8px 0;color:#d5d0b9}#ibrBuddy .dashboard-table .muted{font-size:12px}#ibrBuddy #dashboardPending,#ibrBuddy #dashboardApproved,#ibrBuddy #dashboardProjects{scroll-margin-top:170px}#ibrBuddy .plans-project-selection label{max-width:540px}#ibrBuddy .project-identity{display:flex;gap:14px;align-items:center;padding:10px 14px;margin:0 0 16px;border:1px solid #75654f;border-radius:8px;background:#302c26}#ibrBuddy .project-identity:empty{display:none}#ibrBuddy .project-identity-picture{flex:none;width:110px;height:74px}#ibrBuddy .project-identity-picture img{display:block;width:110px;height:74px;object-fit:cover;border-radius:5px}#ibrBuddy .project-identity-picture button{padding:0;border:0;min-height:0}#ibrBuddy .project-identity-picture .project-photo-placeholder{width:100%;height:100%}#ibrBuddy .project-identity strong{font-size:19px;display:block}#ibrBuddy .project-cover-upload{display:inline-flex;flex-direction:row;margin:5px 0;font-size:13px;color:#d7ca78;cursor:pointer;gap:8px;align-items:center}#ibrBuddy .project-cover-upload input{font-size:12px;max-width:260px;padding:4px;min-height:30px}#ibrBuddy [data-cover-remove]{font-size:12px;min-height:30px;padding:4px 8px}#ibrBuddy [data-cover-status]{font-size:12px;line-height:1.4;margin:4px 0}.project-cover-dialog{max-width:92vw;max-height:92dvh;background:#302c26;color:#f4f1e9;border:1px solid #baae57;border-radius:10px;padding:15px}.project-cover-dialog::backdrop{background:#000b}.project-cover-dialog img{display:block;max-width:85vw;max-height:78dvh;object-fit:contain}.project-cover-dialog button{background:#384918;color:white;border:1px solid #baae57;border-radius:5px;padding:8px 14px;margin-bottom:8px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){#ibrBuddy .navigation-section .buddy-nav{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){#ibrBuddy .navigation-section .buddy-nav{grid-template-columns:repeat(2,minmax(0,1fr))}#ibrBuddy .dashboard-table{font-size:13px;min-width:560px}#ibrBuddy .dashboard-project-tools{margin:0 0 8px;justify-content:flex-start}#ibrBuddy .project-identity-picture,#ibrBuddy .project-identity-picture img{width:80px;height:64px}#ibrBuddy .project-identity{padding:8px;gap:10px}#ibrBuddy .project-cover-upload{display:flex;flex-direction:column;align-items:flex-start}#ibrBuddy .project-cover-upload input{max-width:180px}}
/* Keep the work controls and navigation compact, leaving room for the actual work. */
#ibrBuddy .buddy-top{align-items:center;gap:10px;margin:4px 0 8px}#ibrBuddy .buddy-top h2{font-size:30px;line-height:1.2;margin:5px 0}#ibrBuddy .buddy-top .badge{font-size:10px;padding:4px 8px}#ibrBuddy .buddy-top .buddy-actions{margin:0}#ibrBuddy .project-title-zone{font-size:13px;margin:3px 0}#ibrBuddy #buddyConnection{font-size:12px;line-height:1.4;margin:4px 0 10px}#ibrBuddy .navigation-section{padding:10px 14px;margin:10px 0 14px}#ibrBuddy .navigation-section h3{font-size:11px;line-height:1.2;margin:0 0 8px;padding:0;border:0}#ibrBuddy .navigation-section .buddy-nav{margin:0}#ibrBuddy .work-timer details{padding:0;margin:3px 0 0;border:0;background:transparent}#ibrBuddy .work-timer details[open]{margin-top:7px;padding-top:7px;border-top:1px solid #655e45}#ibrBuddy .work-timer summary{padding:3px 0;min-height:0}#ibrBuddy .work-timer{margin-bottom:12px}#ibrBuddy #dashboardProjects,#ibrBuddy #dashboardPending,#ibrBuddy #dashboardApproved{padding:12px 16px;margin:12px 0}#ibrBuddy #dashboardProjects h3,#ibrBuddy #dashboardPending h3,#ibrBuddy #dashboardApproved h3{font-size:18px;line-height:1.3;margin:0 0 10px;padding-bottom:6px}#ibrBuddy .dashboard-jumps{padding:0 0 2px}#ibrBuddy .dashboard-table{margin:0}#ibrBuddy .dashboard-project-tools{margin:-37px 0 10px}#ibrBuddy .dashboard-project-tools button{min-height:30px}#ibrBuddy #dashboardProjects details{padding:0;margin:8px 0 0}#ibrBuddy #dashboardProjects details summary{font-size:13px}#ibrBuddy .project-identity{margin:8px 0 12px}@media(max-width:600px){#ibrBuddy .dashboard-project-tools{margin:0 0 8px}#ibrBuddy .buddy-top h2{font-size:26px}#ibrBuddy .buddy-top .buddy-actions{gap:5px}#ibrBuddy .buddy-top .buddy-actions button{font-size:12px;padding:6px 8px;min-height:34px}}

/* A project starts with one large, recognizable site banner. */
#ibrBuddy .project-identity{display:block;padding:0;overflow:hidden;margin:0 0 16px;border-radius:10px}#ibrBuddy .project-identity-picture{width:100%;height:clamp(190px,28vw,320px)}#ibrBuddy .project-identity-picture button{display:block;width:100%;height:100%;padding:0!important;min-height:0;border-radius:0}#ibrBuddy .project-identity-picture img{width:100%;height:100%;object-fit:cover;border-radius:0;object-position:center}#ibrBuddy .project-identity-picture .project-photo-placeholder{width:100%;height:100%;border:0;border-radius:0;background:linear-gradient(115deg,#384918,#302c26);color:#d7ca78;font-size:18px;letter-spacing:.04em}#ibrBuddy .project-banner-info{padding:12px 16px}#ibrBuddy .project-banner-info>strong{font-size:24px;line-height:1.25}#ibrBuddy .project-banner-info .section-eyebrow{display:none}#ibrBuddy .project-banner-info .project-cover-upload{margin-bottom:0}@media(max-width:600px){#ibrBuddy .project-identity-picture{width:100%;height:190px}#ibrBuddy .project-identity-picture img{width:100%;height:100%}#ibrBuddy .project-banner-info>strong{font-size:21px}}
/* Phase one: clear sections and one project action menu. */
#ibrBuddy #dashboardProjects>h3,#ibrBuddy #dashboardPending>h3,#ibrBuddy #dashboardApproved>h3,#ibrBuddy .points-head>h3,#ibrBuddy .point-overview>h3,#ibrBuddy .documents-section>h3{background:#baae57;color:#29271f;padding:11px 14px;margin:-12px -16px 12px;border:0;border-radius:7px 7px 0 0;font-weight:700}#ibrBuddy .all-projects{float:right;color:#29271f;font:13px system-ui;margin-top:3px}#ibrBuddy .billing-section>h3{background:#4e7133;color:#fff;padding:12px 14px;margin:-12px -16px 12px;border-radius:7px 7px 0 0}#ibrBuddy .billing-section>.review-banner{background:#baae57;color:#29271f;border-radius:0;margin:18px -16px 12px}#ibrBuddy .project-toolbar{display:flex;align-items:center;gap:9px;margin:10px 0 16px;flex-wrap:wrap}#ibrBuddy .project-toolbar nav{display:flex;gap:6px;flex:1}#ibrBuddy .project-toolbar button{min-height:38px;padding:7px 12px;font-size:14px}#ibrBuddy .project-toolbar details{position:relative;margin:0;padding:0;border:0}#ibrBuddy .project-toolbar summary{list-style:none;cursor:pointer;border:1px solid #baae57;border-radius:5px;padding:10px 15px;white-space:nowrap}#ibrBuddy .project-add summary{background:#384918;color:white}#ibrBuddy .project-toolbar details>div{position:absolute;right:0;top:100%;min-width:230px;z-index:30;background:#302c26;border:1px solid #baae57;padding:7px;box-shadow:0 8px 24px #0009;border-radius:6px}#ibrBuddy .project-toolbar details>div button{display:block;width:100%;text-align:left;margin:3px 0}#ibrBuddy .dashboard-project-tools{margin:0 0 8px}#ibrBuddy .point-tools{font-size:13px;margin:0;padding:0}#ibrBuddy .points-head{padding:12px 16px;margin-bottom:12px}#ibrBuddy .points-head .badge{display:none}#ibrBuddy .points-project-choice{max-width:460px}#ibrBuddy .points-workspace .buddy-section{padding:12px 16px}#ibrBuddy .point-entry-column{min-width:0}#ibrBuddy .point-entry-column .point-overview{margin-top:0}#ibrBuddy .point-workbench{align-items:start}#ibrBuddy .point-workbench-nav{margin:0 0 10px}#ibrBuddy .point-workbench.point-documents-open{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}#ibrBuddy .point-document-panel{position:sticky;top:12px;margin-top:0}#ibrBuddy .point-table{font-size:12px}#ibrBuddy .point-table td,#ibrBuddy .point-table th{padding:5px 6px}#ibrBuddy .point-table .point-row-detail{display:none}#ibrBuddy .point-table .point-row-flags{font-size:10px}#ibrBuddy .point-counts{font-size:12px}#ibrBuddy #doorChecklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;margin:12px 0}#ibrBuddy #doorChecklist h4,#ibrBuddy #doorChecklist>p{grid-column:1/-1;margin:5px 0}#ibrBuddy #doorChecklist .check{font-size:14px;margin:0}#ibrBuddy #doorProgressCards{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px}#ibrBuddy .door-progress-card{padding:12px;margin:0}#ibrBuddy .door-progress-card h3{font-size:18px}#ibrBuddy .door-photo-controls{padding:5px}#ibrBuddy .door-photo-controls h4{font-size:13px}@media(max-width:899px){#ibrBuddy .point-workbench.point-documents-open{display:block}.point-workbench.point-document-mode>.point-entry-column{display:none}#ibrBuddy .point-document-panel{position:static}#ibrBuddy .project-toolbar nav{flex-basis:100%}}@media(max-width:600px){#ibrBuddy #doorChecklist{grid-template-columns:1fr}#ibrBuddy .all-projects{float:none;display:block}}

#ibrBuddy.in-project .navigation-section{display:none}#ibrBuddy.in-project>.buddy-top h2,#ibrBuddy.in-project>.buddy-top .badge,#ibrBuddy.in-project>.buddy-top .project-title-zone{display:none}#ibrBuddy.in-project>.buddy-top{justify-content:flex-end}#ibrBuddy .points-head>h3{display:none}#ibrBuddy .project-identity:not(.has-project-photo) .project-identity-picture{height:clamp(190px,28vw,320px)}#ibrBuddy .project-identity:not(.has-project-photo) .project-photo-placeholder{font-size:14px}#ibrBuddy .project-identity:not(.has-project-photo) .project-banner-info{display:flex;justify-content:space-between;align-items:center;gap:12px}#ibrBuddy .project-identity:not(.has-project-photo) .project-banner-info>strong{font-size:22px}#ibrBuddy .project-toolbar details[open]>div{max-height:60vh;overflow:auto}#ibrBuddy .compact-project-context{padding:9px 12px;margin:0 0 12px;border:1px solid #75654f;border-radius:6px}#ibrBuddy .compact-project-context>summary{cursor:pointer;color:#d7ca78;font-size:14px}#ibrBuddy .point-document-panel>header h3{font-size:16px;margin:0}#ibrBuddy .point-document-panel>header button{font-size:11px;padding:5px;min-height:30px}#ibrBuddy .point-document-panel>p{font-size:11px}@media(max-width:600px){#ibrBuddy .project-identity:not(.has-project-photo) .project-banner-info{display:block}}

#ibrBuddy #doorChecklist .checklist-group-title{grid-column:1/-1;margin:8px 0 0;padding:6px 8px;border-left:3px solid #baae57;background:#baae5715;font-size:13px;color:#e0d27d}#ibrBuddy [hidden]{display:none!important}
/* Use the tablet as a work surface, with a small safe outer margin. */
body.buddy-active main.shell{max-width:none;width:100%;padding:0 10px}#ibrBuddy{max-width:none;width:100%;padding:16px;margin:14px auto 24px}#ibrBuddy .point-workbench{gap:10px}#ibrBuddy .point-width-control{display:flex;flex-direction:row;align-items:center;gap:8px;margin-left:auto;font-size:12px;max-width:300px}#ibrBuddy .point-width-control input{width:150px;min-height:30px;padding:0}#ibrBuddy .point-workbench-nav{display:flex;flex-wrap:wrap;align-items:center;gap:7px}#ibrBuddy .point-table{table-layout:auto;min-width:0;width:100%}#ibrBuddy .point-table th,#ibrBuddy .point-table td{white-space:normal;overflow-wrap:anywhere}#ibrBuddy .point-table .point-subject{min-width:140px}#ibrBuddy .point-table button.point-open{white-space:nowrap;word-break:normal;min-width:48px;padding:5px}#ibrBuddy .project-banner-info [data-cover-editor]{margin-top:8px}#ibrBuddy .project-banner-info [data-cover-editor] summary{font-size:14px}#ibrBuddy .all-projects-section>h3{background:#baae57;color:#29271f;margin:-12px -16px 14px;padding:12px 16px;border-radius:7px 7px 0 0}#ibrBuddy #projectSearch{max-width:500px}.point-document-dialog{width:calc(100vw - 16px);max-width:none;height:calc(100dvh - 16px);max-height:none;inset:8px;margin:0;padding:8px;background:#302c26;border:1px solid #baae57;border-radius:8px;color:#f4f1e9}.point-document-dialog::backdrop{background:#000b}#ibrBuddy .point-document-dialog #pointDocumentPanel{position:static;margin:0;width:100%;min-height:100%;padding:10px}#ibrBuddy .point-document-dialog .plan-viewport{height:calc(100dvh - 270px);min-height:300px}#ibrBuddy .plan-secondary-options{padding:0;margin:0 0 8px}#ibrBuddy .plan-secondary-options>summary{min-height:30px;padding:5px 0;font-size:12px}#ibrBuddy .plan-secondary-options p{font-size:12px}#ibrBuddy .plan-tabs{position:static;padding:4px 0;gap:5px}#ibrBuddy .plan-tabs button{min-height:34px;max-width:220px;font-size:12px;padding:5px 8px}#ibrBuddy .plan-panes{margin-top:8px}#ibrBuddy .compact-project-context{background:#302c26;color:#e0d27d;border-left:1px solid #75654f}#ibrBuddy .compact-project-context>summary{min-height:28px;padding:4px 0}#ibrBuddy [data-timer-choice][hidden],#ibrBuddy .work-timer label[hidden]{display:none!important}@media(max-width:899px){#ibrBuddy .point-width-control{display:none}}@media(max-width:600px){body.buddy-active main.shell{padding:0 5px}#ibrBuddy{padding:10px}#ibrBuddy .point-document-dialog .plan-viewport{height:calc(100dvh - 260px)}}

/* Reserve space before network data and images arrive. */
#ibrBuddy #buddyConnection{min-height:1.4em}
#ibrBuddy #buddyMessage{min-height:2.8em;margin:8px 0;overflow-wrap:anywhere}
#ibrBuddy .work-timer{min-height:142px}
#ibrBuddy .work-timer [data-timer-message]{min-height:1.4em}
#ibrBuddy .work-timer [data-timer-total]{display:inline-block;min-width:5.5ch;font-variant-numeric:tabular-nums}
#ibrBuddy .project-cover-small{display:block;width:46px;height:34px}
#ibrBuddy .project-banner-info{min-height:70px}
#ibrBuddy .project-banner-info [data-cover-status]:empty{margin:0}
#ibrBuddy .points-loading{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);gap:16px;min-height:420px}
#ibrBuddy .points-loading h3{background:#baae57;color:#29271f;padding:11px 14px;margin:0 0 12px}
#ibrBuddy .points-loading .buddy-section{margin:0;min-height:320px}
#ibrBuddy .context-edit[hidden]{display:none!important}
@media(max-width:899px){#ibrBuddy .points-loading{grid-template-columns:1fr}.points-loading>.buddy-section+section{display:none}}

/* A compact row still needs a reliable touch target on site. */
@media (pointer:coarse){
 #ibrBuddy button:not([data-cover-enlarge]),#ibrBuddy summary,#ibrBuddy .point-door-chip{min-height:44px!important}
 #ibrBuddy button:not([data-cover-enlarge]){min-width:44px}
 #ibrBuddy input:not([type=checkbox]):not([type=radio]),#ibrBuddy select,#ibrBuddy textarea{font-size:16px}
 #ibrBuddy .point-door-options label,#ibrBuddy .check{min-height:44px}
 #ibrBuddy .breadcrumb-home,#ibrBuddy .all-projects{display:inline-flex;align-items:center;min-height:44px}
}
/* Shared plan marks keep their relative position through zoom, rotation and resize. */

#ibrBuddy .point-plan-link{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:14px}
#ibrBuddy .point-plan-link>span{width:100%;color:#ded6a8;overflow-wrap:anywhere}
#ibrBuddy .plan-tools [data-mark-point][aria-pressed=true]{background:#baae57;color:#29271f;outline:2px solid #e4d57c}
#ibrBuddy .sync-item{padding:12px 0;border-bottom:1px solid #75654f;overflow-wrap:anywhere}
#ibrBuddy .sync-item>strong,#ibrBuddy .sync-item>small{display:block}
#ibrBuddy .sync-status-link{min-height:24px;padding:2px 7px;background:none;color:#e2d47c;border:0;text-decoration:underline;font-size:inherit}
@media(max-width:650px){
 #ibrBuddy .work-timer{position:relative;min-height:0}
 #ibrBuddy #projectTools{position:sticky;top:0;z-index:65;background:#302c26;padding:4px 0}
 #ibrBuddy .project-toolbar{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:5px}
 #ibrBuddy .project-toolbar nav{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:4px}
 #ibrBuddy .project-toolbar nav button{padding:6px 4px;font-size:13px;line-height:1.2}
 #ibrBuddy .project-toolbar details>summary{padding:8px 10px;text-align:center}
 #ibrBuddy .project-toolbar details>div{max-width:calc(100vw - 32px);min-width:230px}
 #ibrBuddy .project-add>div{right:auto;left:0}
 #ibrBuddy .plan-tools{gap:3px}
 #ibrBuddy .plan-tools button{padding:5px 8px}
 #ibrBuddy .plan-viewport{height:60dvh;min-height:260px}
 #ibrBuddy .sync-item .buddy-actions>*{flex:1;min-width:130px;text-align:center}
 #ibrBuddy .point-description-row.has-quantity{grid-template-columns:minmax(0,1fr) 86px}
}
@media(prefers-reduced-motion:reduce){#ibrBuddy *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* iPad review A, 5–10: one fixed project context, without empty navigation rows. */
#ibrBuddy.in-project>.buddy-top{display:none}
#ibrBuddy{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#ibrBuddy .portal-context-nav{border:0;padding:0;margin:4px 0 8px;min-height:44px}
#ibrBuddy .project-toolbar{margin:4px 0 12px}
#ibrBuddy .project-banner-info,
#ibrBuddy .project-identity:not(.has-project-photo) .project-banner-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,auto);align-items:center;gap:4px 16px;min-height:62px;padding:10px 14px}
#ibrBuddy .project-banner-info>strong{grid-column:1;grid-row:1}
#ibrBuddy .project-banner-info>#buddyConnection{grid-column:2;grid-row:1;text-align:right;max-width:440px;margin:0;font-size:12px;line-height:1.4}
#ibrBuddy .project-banner-info>[data-cover-status]:empty{display:none}
#ibrBuddy .project-banner-info>[data-cover-editor],#ibrBuddy .project-banner-info>[data-cover-status]{grid-column:1/-1}
#ibrBuddy .project-info.buddy-context{padding:0;margin:0 0 12px;border:1px solid #75654f;border-radius:8px;background:#28251f;color:#f4f1e9;box-shadow:none;overflow:visible}
#ibrBuddy .project-info>.project-info-title{margin:0;padding:10px 14px;border:0;border-radius:7px 7px 0 0;background:#384918;color:#fff;font-size:22px;line-height:1.3}
#ibrBuddy .project-info .project-contact-context{padding:12px 14px}
#ibrBuddy .project-info-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px;align-items:start}
#ibrBuddy .project-info .contact-summary-grid{grid-column:1;grid-row:1;display:grid;grid-template-columns:minmax(0,1fr);gap:0;margin:0}
#ibrBuddy .project-info .contact-summary-grid article{display:grid;grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr);align-items:start;column-gap:12px;margin:0;padding:10px 0;background:none;color:#f4f1e9;border:0;border-bottom:1px solid #75654f55;border-radius:0}
#ibrBuddy .project-info .contact-summary-grid article:last-child{border:0}
#ibrBuddy .project-info .contact-summary-grid article>span{grid-column:1;grid-row:1/3;margin:2px 0;color:#d7ca78;font-size:11px;letter-spacing:.05em}
#ibrBuddy .project-info .contact-summary-grid article>strong{grid-column:2;font-size:16px;line-height:1.3;color:#f4f1e9}
#ibrBuddy .project-info .contact-summary-grid article>p{grid-column:2;margin:4px 0 0;font-size:13px;line-height:1.45;color:#d1c7b7}
#ibrBuddy .project-info .context-address{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:5px;border:0;border-left:1px solid #75654f55;padding:0 0 0 24px;margin:0;min-width:0;min-height:268px}
#ibrBuddy .project-info .context-address>span{margin:0;color:#d7ca78;font-size:11px}
#ibrBuddy .project-info .context-address>strong{font-size:16px;line-height:1.35;color:#f4f1e9}
#ibrBuddy .project-info .route-km-panel{order:2;width:100%;border:0;background:none;padding:0;margin:0;min-height:175px}
#ibrBuddy .project-info .route-km-panel>.route-origin{font-size:11px!important;margin:2px 0}
#ibrBuddy .project-info .route-km-values{display:grid;grid-template-columns:minmax(0,1fr);gap:3px;margin:6px 0}
#ibrBuddy .project-info .route-km-tile{display:flex;align-items:baseline;justify-content:space-between;gap:12px;border:0;padding:0}
#ibrBuddy .project-info .route-km-tile>span{font-size:13px;margin:0}
#ibrBuddy .project-info .route-km-tile>strong{font-size:16px;line-height:1.35}
#ibrBuddy .project-info .route-km-footer{padding:4px 0 0;border:0;gap:8px;min-height:44px}
#ibrBuddy .project-info .route-km-footer button{min-height:36px;font-size:12px;padding:5px 8px}
#ibrBuddy .project-info .route-km-note{font-size:11px;color:#d1c7b7;line-height:1.3}
#ibrBuddy .project-info .route-km-details{margin:0}
#ibrBuddy .project-info .route-km-details summary{padding:3px 0;min-height:28px;font-size:11px}
#ibrBuddy .project-info .context-address>.waze-route{order:3;align-self:flex-end;justify-self:auto;margin:0;min-height:44px}
#ibrBuddy .project-info .context-edit{margin-top:10px;padding-top:10px;border-color:#75654f}
#ibrBuddy .project-info .context-edit label{color:#f4f1e9}
#ibrBuddy .project-info>.project-breadcrumb{display:none}
#ibrBuddy .project-info>.section-eyebrow{display:none}
#ibrBuddy .project-info>label{margin:8px 14px;color:#f4f1e9;max-width:420px}
@media(max-width:650px){
 #ibrBuddy .project-info-grid{grid-template-columns:minmax(0,1fr);gap:10px}
 #ibrBuddy .project-info .context-address{grid-column:1;grid-row:2;border-left:0;border-top:1px solid #75654f55;padding:12px 0 0;min-height:280px}
 #ibrBuddy .project-info .contact-summary-grid article{grid-template-columns:100px minmax(0,1fr)}
 #ibrBuddy .project-banner-info,#ibrBuddy .project-identity:not(.has-project-photo) .project-banner-info{grid-template-columns:minmax(0,1fr);gap:4px}
 #ibrBuddy .project-banner-info>#buddyConnection{grid-column:1;grid-row:2;text-align:left;max-width:none}
 #ibrBuddy .project-info>.project-info-title{font-size:20px}
}

/* Dashboard review D1–D11: one header, actions in banners, explicit columns. */
#ibrBuddy .dashboard-header{display:grid;grid-template-columns:minmax(180px,1fr) auto;align-items:center;gap:10px 16px;margin:0 0 10px}
#ibrBuddy .dashboard-header .buddy-page-heading>.badge,#ibrBuddy .dashboard-header [hidden]{display:none!important}
#ibrBuddy .dashboard-header h2{font:800 clamp(30px,3vw,40px)/1.15 system-ui,-apple-system,sans-serif;margin:0}
#ibrBuddy .dashboard-header #buddyConnection{margin:4px 0 0}
#ibrBuddy .dashboard-header-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:wrap}
#ibrBuddy .dashboard-header-actions button,#ibrBuddy .dashboard-header-actions summary{font-size:13px;line-height:1.3;padding:8px 12px;min-height:44px;white-space:nowrap}
#ibrBuddy .dashboard-header .portal-help{margin:0;padding:0;border:0}
#ibrBuddy .dashboard-header .portal-help summary{max-width:none}
#ibrBuddy.is-dashboard>#buddyMessage:empty,#ibrBuddy #dashboardWarning:empty{display:none}
#ibrBuddy #dashboardMaterials{padding:12px 16px;margin:12px 0}
#ibrBuddy #dashboardProjects>h3.dashboard-banner,#ibrBuddy .all-projects-section>h3.dashboard-banner,#ibrBuddy #dashboardMaterials>h3.dashboard-banner{background:#baae57;color:#29271f;padding:8px 14px;margin:-12px -16px 10px;border:0;border-radius:7px 7px 0 0;font-size:18px;line-height:1.3;font-weight:700;display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:60px}
#ibrBuddy .dashboard-banner-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto;flex-wrap:wrap}
#ibrBuddy .dashboard-banner-actions button{background:#384918;color:#f4f1e9;border:1px solid #75654f;min-height:40px;font-size:13px;line-height:1.3;padding:7px 12px;margin:0;white-space:nowrap}
#ibrBuddy #newProjectForm:empty{display:none}
#ibrBuddy .material-overview-actions{margin:0 0 10px;display:flex;align-items:center;gap:8px}
#ibrBuddy .material-overview-actions label{display:flex;flex-direction:row;align-items:center;gap:10px;margin:0;font-size:13px}
#ibrBuddy .material-overview-actions select{width:auto;min-width:180px}
#ibrBuddy .material-group h4{margin:10px 0 8px;font-size:14px}
#ibrBuddy .material-table{min-width:940px}
#ibrBuddy .material-table th,#ibrBuddy .material-table td{padding:7px 9px}
#ibrBuddy .material-table td:nth-child(1){min-width:135px;max-width:190px}
#ibrBuddy .material-table td:nth-child(3){min-width:95px;max-width:150px}
#ibrBuddy .material-table td:nth-child(4){min-width:170px;max-width:290px}
#ibrBuddy .material-table td:nth-child(5){text-align:right;font-variant-numeric:tabular-nums}
#ibrBuddy .material-table td:last-child{white-space:nowrap}
#ibrBuddy .material-context{display:block;color:#d1c7b7;font-size:12px;margin-top:3px}
@media(max-width:850px){
 #ibrBuddy .dashboard-header{grid-template-columns:minmax(0,1fr)}
 #ibrBuddy .dashboard-header-actions{justify-content:flex-start;gap:5px}
 #ibrBuddy .dashboard-header-actions button,#ibrBuddy .dashboard-header-actions summary{padding:7px 9px;font-size:12px}
}
@media(max-width:520px){
 #ibrBuddy #dashboardMaterials{padding:12px}
 #ibrBuddy #dashboardMaterials>h3.dashboard-banner{margin:-12px -12px 10px}
 #ibrBuddy #dashboardProjects>h3.dashboard-banner>span:first-child{width:100%}
 #ibrBuddy .dashboard-banner-actions{gap:5px}
 #ibrBuddy .dashboard-banner-actions button{padding:7px 9px;font-size:12px}
}

#ibrBuddy #dashboardFamily:empty{display:none}
#ibrBuddy #dashboardFamily .buddy-box{margin:0 0 12px}

/* Shared menu/editor lifecycle, refinement IMG_0048. */
#ibrBuddy .project-toolbar{margin-bottom:20px;row-gap:10px}
#ibrBuddy .project-toolbar nav{margin-right:auto}
#ibrBuddy .project-draft-actions:empty{display:none}
#ibrBuddy .project-draft-actions{display:flex;align-items:center;gap:8px}
#ibrBuddy .project-toolbar .project-add{margin-left:0}
#ibrBuddy .panel-close{margin:10px 0;min-height:44px}
#ibrBuddy .editor-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#ibrBuddy .editor-heading h3{margin:0}
#ibrBuddy .editor-heading button{margin:0;flex-shrink:0}
#ibrBuddy .editor-return{margin:0 0 12px}
#ibrBuddy #projectSettingsHost:empty{display:none}
@media(max-width:650px){#ibrBuddy .project-draft-actions{order:2;flex-basis:100%;justify-content:flex-end}#ibrBuddy .project-draft-actions button{font-size:12px}}

@media(max-width:650px){
 #ibrBuddy .project-draft-actions{grid-column:1/-1}
 #ibrBuddy #projectTools:has(#projectSettingsHost:not([hidden]) #workflowSettings){position:relative}
}

/* Waze stays beside the worksite address, right aligned, on every screen size. */
#ibrBuddy .project-info .context-address{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:5px 16px}
#ibrBuddy .project-info .context-address>span{grid-column:1/-1;grid-row:1}
#ibrBuddy .project-info .context-address>strong{grid-column:1;grid-row:2;align-self:center}
#ibrBuddy .project-info .context-address>.waze-route{grid-column:2;grid-row:2;order:initial;align-self:center;justify-self:end;width:max-content;max-width:none;white-space:nowrap;line-height:1.25;margin:0}
#ibrBuddy .project-info .context-address>.route-km-panel{grid-column:1/-1;grid-row:3;order:initial}
@media(max-width:650px){
 #ibrBuddy .project-info .context-address{column-gap:10px}
 #ibrBuddy .project-info .context-address>.waze-route{gap:5px;padding:6px 8px;font-size:12px}
 #ibrBuddy .project-info .context-address>.waze-route span{font-size:12px;line-height:1.25}
 #ibrBuddy .project-info .context-address>.waze-route svg{width:20px;height:20px;flex-shrink:0}
}
/* Door execution uses the same compact table and section language as the dashboard. */
#ibrBuddy .door-section-title{display:flex;align-items:center;background:#baae57;color:#29271f;font-size:20px;font-weight:700;padding:11px 14px;margin:-12px -16px 12px;border:0;border-radius:7px 7px 0 0}
#ibrBuddy #doorProgressCards{display:block;margin:8px 0 12px;overflow-x:auto;overscroll-behavior-x:contain}
#ibrBuddy .door-progress-table{min-width:720px}#ibrBuddy .door-progress-table th,#ibrBuddy .door-progress-table td{padding:6px 8px}#ibrBuddy .door-progress-table td:nth-child(4){min-width:180px;max-width:390px;font-size:12px}#ibrBuddy .door-progress-table td:nth-child(3){white-space:nowrap}#ibrBuddy .door-progress-table td:last-child{width:1%}
#ibrBuddy .door-progress-table td button{min-height:36px}#ibrBuddy .door-photos-cell{min-width:110px}#ibrBuddy .door-photos-cell button,#ibrBuddy .door-photos-cell span{display:block;font-size:12px;margin:2px 0;white-space:nowrap}#ibrBuddy .door-pending{display:block;font-size:11px;color:#dfce75}
#ibrBuddy .door-overview-filters{display:flex;gap:12px;flex-wrap:wrap}#ibrBuddy .door-overview-filters label{margin:0;min-width:140px;max-width:260px;flex:1;font-size:13px}
#ibrBuddy #doorEntry,#ibrBuddy #doorBulkPanel{border-top:1px solid #75654f;padding:8px 0;margin:0}#ibrBuddy #doorEntry>summary,#ibrBuddy #doorBulkPanel>summary{padding:8px 0;font-size:14px;cursor:pointer}#ibrBuddy .door-entry-form{padding:8px 0;margin:0;border:0}
#ibrBuddy .door-entry-fields{display:grid;grid-template-columns:minmax(120px,1fr) minmax(150px,1.5fr) auto;align-items:start;gap:10px}#ibrBuddy .door-entry-fields>label{margin:0;font-size:13px}#ibrBuddy .door-entry-fields>details{padding:0;margin:0;font-size:13px}#ibrBuddy .door-entry-fields>details>summary{padding:8px 0}
#ibrBuddy .door-extra-options{margin:10px 0;padding:8px 0;border-top:1px solid #655e45;border-bottom:1px solid #655e45;font-size:14px}#ibrBuddy #doorExtraChoices{display:flex;flex-wrap:wrap;gap:8px 18px}#ibrBuddy #doorExtraChoices small{font-size:10px;color:#d5d0b9}#ibrBuddy #doorExtraChoices .check{display:flex;gap:7px;align-items:center;margin:0;min-height:36px;font-size:13px}
#ibrBuddy #doorChecklist{display:block;margin:8px 0}#ibrBuddy .door-checklist-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}#ibrBuddy .door-checklist-heading button{padding:5px 9px;min-height:36px;font-size:13px}#ibrBuddy .door-checklist-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}#ibrBuddy .door-checklist-groups h4{font-size:13px;color:#dfce75;padding:5px 0;border-bottom:1px solid #655e45;margin:6px 0}#ibrBuddy #doorChecklist .check{display:flex;align-items:center;gap:8px;min-height:36px;font-size:13px;margin:0;line-height:1.3}#ibrBuddy #doorChecklist input[type=checkbox],#ibrBuddy #doorExtraChoices input{flex:0 0 auto;width:20px;height:20px;min-height:20px;margin:0}#ibrBuddy #doorChecklist .muted,#ibrBuddy .door-extra-options .muted{font-size:12px;margin:7px 0}
#ibrBuddy .door-issue-fields{grid-template-columns:minmax(180px,1fr) minmax(250px,2fr)}#ibrBuddy .door-entry-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}#ibrBuddy .door-photo-entry{display:flex;gap:8px;flex-wrap:wrap;padding:0;margin:0;border:0}#ibrBuddy .door-photo-entry label{position:relative;overflow:hidden;margin:0;min-height:36px;padding:7px 10px;font-size:13px;cursor:pointer}#ibrBuddy .door-photo-entry input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}#ibrBuddy #doorEntry{scroll-margin-top:180px}
@media(max-width:650px){#ibrBuddy .door-entry-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#ibrBuddy .door-entry-fields>details{grid-column:1/-1}#ibrBuddy .door-issue-fields{grid-template-columns:1fr}#ibrBuddy .door-checklist-groups{grid-template-columns:1fr;gap:4px}#ibrBuddy .door-checklist-groups section{display:grid;grid-template-columns:1fr 1fr;gap:0 8px}#ibrBuddy .door-checklist-groups h4{grid-column:1/-1}#ibrBuddy .door-section-title{font-size:18px}}
/* Private site journal: one short note, optional photos, the same compact table. */
#ibrBuddy .site-notes-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#baae57;color:#29271f;margin:-12px -16px 12px;padding:11px 14px;border:0;border-radius:7px 7px 0 0;font-size:20px}#ibrBuddy .site-notes-heading button{min-height:36px;padding:6px 10px;font-size:13px;background:#494230;color:#fff}
#ibrBuddy .site-notes-table{min-width:600px}#ibrBuddy .site-notes-table td:first-child{white-space:nowrap;font-size:12px;width:1%}#ibrBuddy .site-notes-table td:nth-child(2){min-width:180px}#ibrBuddy .site-notes-table td:nth-child(4){max-width:170px;font-size:12px}#ibrBuddy .site-note-text{white-space:pre-wrap;overflow-wrap:anywhere}#ibrBuddy .site-notes-table button{margin:2px;min-height:36px}#ibrBuddy #siteNoteEntry{scroll-margin-top:180px;margin-top:12px;border-top:1px solid #655e45;padding:8px 0}#ibrBuddy #siteNoteEntry>summary{padding:8px 0;cursor:pointer}#ibrBuddy #siteNoteForm{margin-top:12px}#ibrBuddy #siteNoteForm textarea{min-height:90px}#ibrBuddy .site-note-photos{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#ibrBuddy .site-note-photos label{position:relative;overflow:hidden;cursor:pointer;font-size:13px;min-height:38px;padding:7px 10px;margin:0}#ibrBuddy .site-note-photos input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}#ibrBuddy .site-note-photos .muted{font-size:12px}#ibrBuddy #siteNoteFiles>div{display:flex;align-items:center;gap:10px;margin:5px 0;font-size:13px}#ibrBuddy #siteNoteFiles button{padding:5px 9px;min-height:36px;font-size:12px}#ibrBuddy .site-note-reference{margin:10px 0;font-size:13px}#ibrBuddy .site-note-reference label{max-width:400px}
/* Keep project headings and navigation aligned as controls are added. */
#ibrBuddy .project-identity{width:100%;box-sizing:border-box;align-items:center;gap:16px}
#ibrBuddy .project-banner-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
#ibrBuddy .project-banner-info>strong{margin:0;line-height:1.3;overflow-wrap:anywhere}
#ibrBuddy .project-banner-info>p{margin:0;line-height:1.4}
#ibrBuddy .project-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center}
#ibrBuddy .project-toolbar>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;min-width:0;margin:0}
#ibrBuddy .project-toolbar>nav button{width:100%;min-height:44px;line-height:1.3}
#ibrBuddy .project-toolbar>.project-draft-actions:empty{display:none}
#ibrBuddy .project-toolbar>.project-draft-actions:not(:empty){grid-column:1/-1;grid-row:2;display:flex;gap:8px}
#ibrBuddy .project-toolbar>details{margin:0;min-width:0}
#ibrBuddy .project-toolbar>details>summary{min-height:44px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
@media(max-width:650px){#ibrBuddy .project-toolbar{grid-template-columns:1fr 1fr}#ibrBuddy .project-toolbar>nav{grid-column:1/-1}#ibrBuddy .project-identity{gap:10px;padding:10px}#ibrBuddy .project-identity strong{font-size:17px}}
/* Four primary project actions share one row on tablet and desktop. */
#ibrBuddy .project-toolbar>nav{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:700px){#ibrBuddy .project-toolbar>nav{grid-template-columns:repeat(2,minmax(0,1fr))}}
#ibrBuddy .project-toolbar>nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.project-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.project-metrics article{display:flex;flex-direction:column;gap:6px;border:1px solid #8c8c62;border-radius:8px;padding:16px}.project-metrics strong{font-size:30px}
.document-management-table select,.document-management-table input{width:100%;min-width:150px}.document-management-table small{display:block;max-width:220px}
#ibrBuddy .project-toolbar{align-items:center}.document-management-table td{vertical-align:top}

/* Customer tips and permanent access to the versioned guide. */
#ibrBuddy .customer-help{overflow:hidden}
#ibrBuddy .customer-help-date{font-size:13px;font-weight:500}
#ibrBuddy .customer-tips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:22px}
#ibrBuddy .customer-tips article{background:#f5f3e8;color:#263a2d;border:1px solid #d6dacb;border-radius:12px;padding:20px}
#ibrBuddy .customer-tips h4{font-size:18px;line-height:1.35;margin:0 0 12px;color:#263a2d}
#ibrBuddy .customer-tips p{font-size:15px;line-height:1.6;margin:0 0 16px}
#ibrBuddy .customer-tips a{color:#384918;font-weight:650}
#ibrBuddy .customer-help-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px;background:#e7ecd9;color:#263a2d}
#ibrBuddy .customer-help-footer p{margin:5px 0 0;font-size:14px}
#ibrBuddy .customer-help-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:760px){#ibrBuddy .customer-tips{grid-template-columns:1fr;padding:14px;gap:12px}#ibrBuddy .customer-help-footer{flex-direction:column;align-items:stretch;padding:16px}#ibrBuddy .customer-help-actions a{flex:1;text-align:center}}

/* Keep the active project unmistakable in every project view. */
#ibrBuddy .portal-context-nav>nav{flex:1;min-width:0}
#ibrBuddy .portal-context-nav .project-context-name{font-size:clamp(28px,3.2vw,42px);font-weight:750;line-height:1.15;color:#f7f3df!important;white-space:normal;overflow-wrap:anywhere;text-align:left;max-width:100%;min-width:0}
#ibrBuddy .project-identity .project-banner-info>strong{font-size:clamp(28px,3.2vw,42px);font-weight:750;line-height:1.15;overflow-wrap:anywhere;min-width:0}
@media(max-width:650px){#ibrBuddy .portal-context-nav{flex-wrap:wrap}#ibrBuddy .portal-context-nav>nav{flex-basis:100%}#ibrBuddy .portal-context-nav>.portal-help{margin-left:auto}}
