/* Tech Hub: shared interface theme. */
:root{font-family:'Segoe UI',Arial,sans-serif;color:#232320;background:#f2f0e9;--orange:#f97908;--orange-dark:#b74700;--line:#d9d7ce;--muted:#68675e;--nav:#171715;--radius:4px}body{color:#232320;background:#f2f0e9}h1{font-weight:800;letter-spacing:-.045em}h2,h3{color:#232320}p,small,.show-muted,.show-details dt,.form-hint,.group-heading,.empty,.db-id,.breadcrumb{color:#68675e}a{color:#a84200}label{color:#393931}body>header,.db-header,.hub-module-nav,.sidebar{background:#171715;color:#f2f0e9;border-color:#f97908}body>header,.db-header{border-bottom:4px solid #f97908}.hub-module-nav{border-bottom:3px solid #f97908}.hub-module-nav a{color:#ff963e}.hub-module-nav span{color:#eee9de}.db-brand{color:#fffefb}.db-brand span{color:#ff963e}header span,header .workspace-switcher span{color:#d3cdbf}header button.secondary{background:#292821;color:#fffefb;border-color:#676354}header .workspace-switcher select{background:#292821;color:#fffefb;border-color:#c06c22}.workspace-switcher select{border-radius:3px}input,select,textarea,.field input,.field select,.search,.cell-input,.stay-input,.hours-block input[type=time]{background:#fffefb;color:#232320;border-color:#bcbab0;border-radius:3px}input[readonly]{color:#874000}input:focus,select:focus,textarea:focus{outline:2px solid #b74700;outline-offset:2px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #b74700;outline-offset:3px}button,.button,.button.primary{background:#f97908;color:#171715;border-radius:3px;font-weight:650}button:hover,.button.primary:hover{background:#ff8b24;color:#171715}button.secondary,.button.secondary{background:#fffefb;border:1px solid #aaa597;color:#343229}button.secondary:hover,.button.secondary:hover{background:#eeeae0;color:#171715}button.text,.button.text{background:transparent;color:#6c5745}.button.danger,.delete-space button{background:#a33128;color:white}.delete-space summary,#profile-error,.form-error{color:#a33128}.card,.panel,.event-card,.stat,.show-stats>div{background:#fffefb;border:1px solid #d9d7ce;border-radius:4px;box-shadow:0 4px 0 #e8e5dc}.dashboard-group .card{border-top:4px solid #171715;padding:26px}.dashboard-group .card h3{font-size:23px;letter-spacing:-.03em}.group-heading{font-size:11px;letter-spacing:.15em}.dashboard-modules .card:hover{border-top-color:#f97908}.dashboard-group .card .button{background:#f97908;color:#171715}.stat.accent{background:#fff0dc;color:#7d3a00;border-color:#e8c6a0}.eyebrow{color:#a84200}.stat>span,.stat>small{color:#68675e}.stat>strong{color:#232320}.stat.accent>strong{color:#7d3a00}.topbar,.section-heading,.hours-person{background:#fffefb;border-color:#d9d7ce}.panel .section-heading h2{color:#232320}.tab{color:#68675e}.tab.active{color:#a84200;border-color:#f97908}.nav-item,.project-link{color:#ddd6c8;background:transparent}.nav-item:hover,.project-link:hover{background:#302d26;color:#fffefb}.nav-item.active{background:#302d26;color:#ff963e;box-shadow:inset 3px 0 #f97908}.nav-item.active svg{color:#ff963e}.sidebar-bottom{border-color:#514b3e}.sidebar-bottom p,.sidebar-bottom .version,.workspace-label,.brand small{color:#bdb4a2}.brand-mark{border-color:#7c5c33;border-radius:3px}.brand-mark span{color:#f97908}.show-nav button.active{background:#171715;color:#ff963e;border-color:#171715}.show-line{background:#f4f3ec;color:#232320;border-color:#4a7651}.show-line.warn,.show-warning,.notice,.notice.warning{background:#fff1dc;color:#744414;border-color:#d67824}.show-good{color:#2c6a43}.dirty-indicator{color:#a84200}table th,.show-table th{background:#eeece4;color:#555146}table td,table th,.show-table td,.show-table th,.member,.db-fields>div{border-color:#d9d7ce}tbody tr:hover{background:#f8f3e9}.cost-table tfoot td,.assigned-person{background:#f7ecdc;color:#654021}.badge{border-radius:3px;background:#eeeae0;color:#625845}.badge.green{background:#e5efe3;color:#315e38}.document-row{border-color:#d9d7ce}.document-preview{background:white}.db-fields dt{color:#746c5c}.db-fields dd{color:#232320}dialog,#show-dialog{background:#fffefb;color:#232320;border:1px solid #bcb8aa;border-radius:5px;box-shadow:0 24px 80px #17171544}dialog::backdrop{background:#171715a6;backdrop-filter:blur(3px)}dialog h2,dialog h3{color:#232320}.close{background:#eeeae0;color:#514c40}#message{background:#171715;color:#f2f0e9;z-index:150}#message:empty{display:none}#toast{background:#171715;color:#fffefb;border-radius:3px}footer{color:#746c5c}.show-details dd{color:#232320}.count{border-color:#c9c3b6;color:#6d604e;border-radius:3px}.login{border-top:4px solid #f97908}.login h1{font-size:30px}.login input{min-height:46px}header img{object-fit:contain}button:disabled{cursor:not-allowed}button:not(:disabled),a,input,select,textarea{transition:background-color .15s,border-color .15s}input[type=checkbox]{accent-color:#b74700}.db-search{color:#68675e}
@media(max-width:700px){.dashboard-group .card{padding:22px}.hub-module-nav{gap:12px}.show-tools{align-items:stretch}.show-tools input,.show-tools select{max-width:100%;min-width:0}.show-fields{grid-template-columns:1fr}dialog{max-width:94vw}}
@media print{body{background:white;color:black}.hub-module-nav{display:none}.card,.panel,.event-card,.stat,.show-stats>div{box-shadow:none;background:white;color:black}p,small,table th,.show-table th{color:#333}button{display:none}a{color:black}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.sidebar-logo{display:block;width:100%;height:auto;max-width:220px}.sidebar .brand{display:block}.section-heading:not(.panel .section-heading){background:transparent}

/* Unified type scale and centered brand. */
:root{font-family:'Segoe UI',Arial,sans-serif;font-size:16px}body{font-family:'Segoe UI',Arial,sans-serif;font-size:15px;line-height:1.5}button,input,select,textarea{font-family:inherit}h1,.registration-intro h1,.success-card h1,.login h1{font-family:inherit;font-size:36px;font-weight:750;line-height:1.15;letter-spacing:-.035em}h2,.dialog-heading h2{font-family:inherit;font-size:22px;font-weight:700;letter-spacing:-.02em}h3,.dashboard-group .card h3{font-family:inherit;font-size:20px;font-weight:700;letter-spacing:-.02em}p,.intro-copy{font-size:15px;line-height:1.65}label,.field,.form-field{font-size:14px;font-weight:500}button,.button{font-size:14px;font-weight:650}.eyebrow,.group-heading{font-size:11px;font-weight:700;letter-spacing:.13em}table,.show-table{font-size:14px}small,.form-hint,.section-description{font-size:12px}input,select,textarea{font-size:16px}.privacy-note p{font-size:12px}.form-section legend{font-family:inherit;font-size:20px;font-weight:700}.section-number{font-family:inherit}
@media(max-width:600px){h1,.registration-intro h1,.success-card h1,.login h1{font-size:30px}h2,.dialog-heading h2{font-size:20px}h3,.dashboard-group .card h3,.form-section legend{font-size:18px}}

body>header:not(.db-header){display:flex;flex-direction:column;align-items:center;gap:22px;padding:24px 5vw}body>header>img{width:300px;max-width:80vw;height:auto}#account-menu{width:100%;justify-content:center}.workspace-switcher{margin-right:10px}.hub-module-nav{height:116px;display:grid;grid-template-columns:minmax(0,1fr) 240px minmax(0,1fr);padding:14px 24px;gap:16px}.hub-module-nav .module-logo{display:block;width:240px;height:auto;max-height:none;justify-self:center}.hub-module-nav a{font-size:13px}.hub-module-nav span{font-size:13px}body:has(.hub-module-nav){padding-top:116px}.sidebar{top:116px;height:calc(100vh - 116px)}
@media(max-width:700px){.hub-module-nav{height:136px;grid-template-columns:1fr 1fr;grid-template-rows:78px auto;padding:8px 14px;gap:4px 12px}.hub-module-nav .module-logo{grid-column:1/-1;grid-row:1;width:210px}.hub-module-nav a{grid-column:1;grid-row:2;font-size:11px}.hub-module-nav span{grid-column:2;grid-row:2;font-size:11px}body:has(.hub-module-nav){padding-top:136px}.sidebar{top:auto;height:auto}#account-menu{justify-content:center}.workspace-switcher{flex:0 1 240px}body>header>img{width:260px}}
@media print{body:has(.hub-module-nav){padding-top:0}.hub-module-nav{display:none}h1{font-size:25px}h2{font-size:20px}}
@media(max-width:750px){.sidebar{top:auto;height:auto}}

/* Align the brand with each page's content edge. */
body>header:not(.db-header){align-items:flex-start;padding-left:max(25px,calc((100% - 1150px)/2));padding-right:max(25px,calc((100% - 1150px)/2))}#account-menu{justify-content:flex-start}.hub-module-nav{grid-template-columns:240px minmax(0,1fr) auto;padding-left:38px}.hub-module-nav .module-logo{grid-column:1;grid-row:1;justify-self:start}.hub-module-nav a{grid-column:2;grid-row:1;justify-self:start}.hub-module-nav span{grid-column:3;grid-row:1}body:has(#show-app) .hub-module-nav{padding-left:max(25px,calc((100% - 1400px)/2))}body:has(#app) .hub-module-nav{padding-left:22px}
@media(max-width:700px){body>header:not(.db-header){padding-left:25px;padding-right:25px}.hub-module-nav{grid-template-columns:1fr 1fr;padding-left:16px;padding-right:16px}.hub-module-nav .module-logo{grid-column:1/-1;grid-row:1;justify-self:start}.hub-module-nav a{grid-column:1;grid-row:2}.hub-module-nav span{grid-column:2;grid-row:2}body:has(#show-app) .hub-module-nav{padding-left:25px}body:has(#app) .hub-module-nav{padding-left:18px}#account-menu{justify-content:flex-start}}
@media(min-width:751px){body:has(#app) .hub-module-nav{padding-left:max(294px,calc(252px + (100% - 1852px)/2 + 42px))}} body:has(.db-main) .hub-module-nav{padding-left:max(38px,calc((100% - 1424px)/2))}@media(max-width:750px){body:has(.db-main) .hub-module-nav{padding-left:16px}}

/* Account controls: same baseline, right edge aligned to main content. */
body>header:not(.db-header){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:32px;row-gap:20px}#account-menu{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;min-width:0}#account-menu .workspace-switcher{margin:0;flex:0 1 210px;min-width:170px;max-width:240px}#account-menu .workspace-switcher span{margin:0 0 7px;font-size:11px;line-height:14px}#account-menu .workspace-switcher select{height:46px;min-height:46px;margin:0;padding-top:10px;padding-bottom:10px}#account-menu button{height:46px;min-height:46px;margin:0;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;padding:10px 16px;line-height:20px}
@media(max-width:950px){body>header:not(.db-header){grid-template-columns:1fr}#account-menu{justify-self:end;width:auto;max-width:100%}}
@media(max-width:600px){#account-menu{width:100%;flex-wrap:wrap;gap:10px}#account-menu .workspace-switcher{flex-basis:100%;max-width:none;min-width:0}#account-menu button{font-size:13px}#account-menu #open-profile{flex:1;white-space:normal;height:auto;min-height:46px}}

/* Anagrafica: header contains only the clickable logo. */
body:has(.db-main) .hub-module-nav>a:not(.brand-home),body:has(.db-main) .hub-module-nav>span{display:none}
