/* Demo additions only: account buttons, sign-in form, footer marker. Colours come from the sample (styles.css). */
.auth{position:relative;display:flex;align-items:center;gap:8px}
.auth-btn{border:1px solid var(--green);background:#fff;color:var(--green-dark);border-radius:18px;padding:7px 13px;font:600 12px/1.2 inherit;font-family:inherit;white-space:nowrap;cursor:pointer}
.auth-btn.primary{background:var(--green-dark);border-color:var(--green-dark);color:#fff}
.auth .profile span{max-width:130px;overflow:hidden;text-overflow:ellipsis}
.account-menu{position:absolute;right:0;top:calc(100% + 10px);width:220px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 34px rgba(16,43,50,.18);padding:12px;display:flex;flex-direction:column;gap:7px;z-index:40;text-align:left}
.account-menu[hidden]{display:none}
.account-menu b{font-size:13px;overflow-wrap:anywhere}
.account-menu small{color:var(--muted);font-size:11px;line-height:1.4}
.account-menu button{border:1px solid var(--line);background:#f7faf9;border-radius:8px;padding:8px;cursor:pointer;font:inherit;font-size:12px}
.auth-dialog{border:0;border-radius:18px;padding:24px 24px 20px;width:min(380px,calc(100% - 28px));color:var(--ink);box-shadow:0 20px 80px rgba(0,0,0,.25);font:14px/1.45 Inter,"Segoe UI",Arial,sans-serif}
.auth-dialog::backdrop{background:rgba(8,35,37,.48)}
.auth-dialog .auth-close{position:absolute;right:14px;top:12px;border:0;background:#eef4f2;border-radius:50%;width:30px;height:30px;font-size:20px;cursor:pointer}
.auth-dialog .auth-tabs{display:flex;gap:6px;margin:0 38px 8px 0}
.auth-dialog .auth-tabs button{border:0;background:none;padding:6px 10px;font:700 15px inherit;font-family:inherit;color:var(--muted);border-bottom:3px solid transparent;cursor:pointer}
.auth-dialog .auth-tabs button.active{color:var(--green-dark);border-color:var(--green)}
.auth-dialog label{display:block;margin:12px 0 0;font-weight:600;font-size:13px}
.auth-dialog input{display:block;width:100%;margin-top:5px;border:1px solid #ccd9d8;border-radius:10px;padding:10px 12px;font:inherit}
.auth-dialog .auth-note{margin:12px 0;color:var(--muted);font-size:11px}
.auth-dialog .auth-submit{width:100%;border:0;border-radius:12px;background:var(--green-dark);color:#fff;padding:12px;font:700 14px inherit;font-family:inherit;cursor:pointer}
.demo-footer{text-align:center;padding:10px;color:#6d7d80;font-size:10px;background:#f7faf9;border-top:1px solid #e9eeee}
.demo-mark{margin-left:2px}
/* Sample bug: main{margin:auto} centred the middle column vertically (a 300px gap on the design page). */
body[class] main{margin-top:0;margin-bottom:0}
/* Sample bug: display rules overrode the hidden attribute, so filtered-out products stayed on screen. */
[hidden]{display:none!important}
/* Sample bug: at laptop widths the estimate table buttons slid under the right column and could not be clicked. */
.budget-page .section-heading,.budget-page .table-actions{flex-wrap:wrap}
.budget-page .table-actions{justify-content:flex-end}
@media(min-width:1321px){.module-strip{grid-template-columns:repeat(9,minmax(0,1fr))}}
@media(min-width:901px) and (max-width:1320px){.brand-copy small{max-width:150px}}
/* Laptop widths: tighten the menu so the account buttons stay on screen. */
@media(min-width:1151px) and (max-width:1600px){
.topbar.topbar{gap:10px}
.topbar .brand{min-width:200px}
.topbar .main-nav{gap:2px}
.topbar .nav-link{font-size:11px;padding:9px 5px;gap:3px}
.topbar .top-actions{gap:7px}
.auth{gap:5px}
.auth-btn{padding:7px 10px}
.auth .profile span{max-width:80px}
}
@media(min-width:1151px) and (max-width:1320px){.topbar .brand{min-width:0}.topbar .brand-copy strong{font-size:22px}.topbar .brand-copy small{max-width:140px;font-size:9px}.auth .profile span{display:none}}
/* Below 1150px every page uses the menu button: with the account buttons the full menu no longer fits one row
   (and six sample pages had no phone menu at all). */
@media(max-width:1150px){
.topbar.topbar{position:sticky;top:0;z-index:20;flex-wrap:nowrap;overflow:visible}
.topbar .brand{min-width:0}
.topbar .top-actions{margin-left:auto}
.topbar .mobile-menu{display:block;cursor:pointer}
.topbar .main-nav{display:none;position:absolute;left:0;right:0;top:100%;width:auto;margin:0;order:0;flex-basis:auto;overflow:visible;background:#fff;border:0;border-radius:0;padding:12px 18px;gap:3px;box-shadow:0 10px 26px rgba(16,43,50,.14);grid-template-columns:repeat(3,1fr);z-index:30}
.topbar .main-nav.open{display:grid}
.topbar .nav-link{font-size:13px;padding:10px 9px}
}
/* Sample bug: tablet widths scrolled sideways on the estimate and AI pages. */
@media(min-width:761px) and (max-width:1150px){.budget-page .budget-main{width:100%;min-width:0;overflow:hidden}.budget-page .budget-steps{overflow-x:auto}.ai-page .ai-main{width:100%;min-width:0;overflow:hidden}}
@media(min-width:701px) and (max-width:760px){.ai-page .ai-main{width:100%;min-width:0;overflow:hidden}}
@media(min-width:601px) and (max-width:700px){.dashboard-grid{grid-template-columns:minmax(0,1fr)}.cost-panel{grid-column:auto}}
@media(max-width:360px){.progress-content{gap:12px}.donut{width:112px;height:112px;flex-basis:112px}.stage-bars>div{grid-template-columns:66px minmax(30px,1fr) 34px}}
@media(max-width:900px){.auth .profile span,.auth .profile b{display:none}}
@media(max-width:600px){.topbar .main-nav{grid-template-columns:repeat(2,1fr)}.auth{flex-direction:column;gap:3px;align-items:stretch}.auth-btn{padding:4px 8px;font-size:10.5px}body[class] .brand-copy strong,.brand-copy strong{font-size:19px;white-space:nowrap}.brand-copy small{display:none}.brand-mark{width:36px;height:36px}}
