:root{font-family:Arial,Helvetica,sans-serif;color:#213e35;background:#f2f5ec;--ink:#213e35;--muted:#64785d;--line:#d5dfcb;--green:#246447;--soft:#eaf1df;--amber:#8b642c}*{box-sizing:border-box}body{margin:0;min-width:280px}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.55}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #589a6f;outline-offset:3px}a{color:#246447}h1,h2,h3,p{margin-top:0}p{line-height:1.55}.skip{position:fixed;left:12px;top:-70px;z-index:20;background:#fff;padding:14px}.skip:focus{top:10px}.startup{max-width:500px;margin:18vh auto;padding:30px;text-align:center}.app-header{display:flex;align-items:center;gap:20px;min-height:78px;padding:13px 32px;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font-size:20px;font-weight:600}.brand-symbol{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#173d36;color:#bad7b6;font-size:35px;font-weight:400;line-height:1}.brand>small{font-size:10px;font-weight:400;letter-spacing:1.2px}.header-label{font-size:11px;color:var(--muted);margin-right:auto}.header-tools{display:flex;align-items:center;gap:12px}.language-label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.language-label select{min-height:48px;max-width:160px;padding:8px 9px;border:1px solid var(--line);border-radius:7px;background:#f7faf3;color:var(--ink);font-size:12px}.user-label{text-align:right;font-size:12px;line-height:1.5}.user-label small{display:block;color:var(--muted);font-size:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--green);border-radius:8px;background:var(--green);color:white;min-height:48px;padding:11px 18px;font-size:13px;font-weight:600;line-height:1.35;text-decoration:none;text-align:center}.button.secondary{color:var(--green);background:#fff;border-color:#bdcfb2}.button.quiet{background:transparent;border-color:transparent;color:#526b47}.button.danger{color:#944c32;border-color:#d4b49e;background:#fff6ec}.button.compact{font-size:12px;padding:9px 13px}.wide-button{width:100%}.test-banner{padding:10px 32px;background:#f7eedb;color:#886835;font-size:11px;border-bottom:1px solid #e6d8bb;line-height:1.5}.container{max-width:1150px;margin:auto;padding:32px}.page-title{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:25px}.page-title h1{font-weight:500;font-size:30px;margin:7px 0 9px;letter-spacing:-.6px}.page-title p{color:var(--muted);font-size:14px;max-width:640px;margin:0}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:10px;font-weight:600;color:#7b8e67}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin:0 0 25px;padding-bottom:10px}.tabs button{min-height:48px;border:0;border-radius:7px;padding:11px 18px;background:none;color:#607952;font-size:13px}.tabs button[aria-selected=true]{background:#dfebd2;color:#315c3c;font-weight:600}.auth-layout{max-width:960px;margin:45px auto;display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:60px}.auth-intro{padding:30px 5px}.auth-intro h1{font-size:37px;font-weight:500;letter-spacing:-1px;line-height:1.15;margin:14px 0 20px}.auth-intro p{font-size:15px;color:var(--muted)}.steps{list-style:none;padding:0;margin:30px 0;display:grid;gap:20px}.steps li{display:flex;gap:13px;align-items:start;font-size:13px;line-height:1.55}.steps li>b{border:1px solid #b7cba7;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex:none;font-size:11px;color:#4c7347}.steps strong{display:block;margin-bottom:3px}.steps span{color:#708360;font-size:12px}.card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:0 3px 10px #24432a03}.card h2{font-size:20px;font-weight:500;margin-bottom:12px}.card>p{font-size:13px;color:var(--muted)}.inputs{border:0;padding:0;margin:0;display:grid;gap:18px;min-width:0}.field{display:grid;gap:8px;font-size:12px;color:#49653f}.field input,.field select{width:100%;min-width:0;min-height:49px;padding:12px;border:1px solid #c9d7be;border-radius:7px;background:#fcfdf9;font-size:14px;color:var(--ink)}.field small{font-size:11px;line-height:1.5;color:#7b8a6b}.field.readonly{background:#f4f7ee;padding:13px;border-radius:7px;line-height:1.5}.field.readonly strong{font-size:14px;color:var(--ink);overflow-wrap:anywhere}.password-wrap{display:flex;border:1px solid #c9d7be;border-radius:7px;background:#fcfdf9}.password-wrap input{border:0;background:none;border-radius:7px 0 0 7px}.password-wrap button{min-width:53px;min-height:48px;border:0;background:none;color:#4b7149;font-size:11px;padding:8px;border-left:1px solid #e2e8db}.form-actions{display:flex;gap:10px;align-items:center;margin-top:22px}.form-actions .button{flex:1}.auth-footer{margin-top:22px;padding-top:17px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:#7a8c6b}.auth-footer .button{margin-top:9px}.inline-invite{display:flex;gap:12px;align-items:end}.inline-invite .field{flex:1}.inline-invite .button{flex:none}.invite-card{margin-bottom:22px;background:#f9fcf4}.invite-card h2{font-size:16px;margin-bottom:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0 12px}.section-heading h2{font-size:17px;font-weight:500;margin:0}.count{font-size:11px;color:#7c8d6b}.person-list{display:grid;gap:9px}.person-row{display:flex;align-items:center;gap:15px;background:white;border:1px solid var(--line);padding:15px 18px;border-radius:9px}.avatar{width:39px;height:39px;display:grid;place-items:center;flex:none;background:#eaf0df;border-radius:11px;font-size:13px;color:#557344}.person-main{flex:1;min-width:0}.person-main strong{display:block;font-size:14px;margin-bottom:4px;overflow-wrap:anywhere}.person-main>small{display:block;font-size:11px;color:#7b8d69;overflow-wrap:anywhere}.person-access{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.tag{font-size:10px;color:#5f7b4c;background:#f0f5e7;border:1px solid #dfe8d3;padding:4px 7px;border-radius:4px;line-height:1.5}.tag.pending{color:#947238;background:#fbf2de;border-color:#eadbb8}.person-actions{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.empty{padding:28px;background:#f8faf4;border:1px dashed #cbd8be;border-radius:9px;color:#6c805e;font-size:13px;line-height:1.6}.notice{border:1px solid #d4dfc9;border-radius:8px;background:#edf5e6;color:#4f7349;padding:15px;font-size:12px;line-height:1.6;margin-bottom:20px}.notice.warning{background:#fff6e7;border-color:#e7d3ad;color:#88652f}.notice.error{background:#fff0e9;border-color:#e5bfa9;color:#9b5234}.error[hidden],.notice[hidden]{display:none}.form-error{background:#fff2e9;border:1px solid #e9cab5;color:#975436;border-radius:7px;padding:13px;font-size:12px;line-height:1.5;margin:15px 0}.preview{margin:20px 0;padding:21px;border:1px solid #decda9;border-radius:10px;background:#fffaf0}.preview h3{font-size:15px;margin-bottom:8px}.preview p{font-size:12px;color:#7c6c4f;margin-bottom:12px}.preview dl{display:grid;grid-template-columns:65px 1fr;gap:8px;font-size:12px;line-height:1.5;margin:15px 0}.preview dt{color:#8c7b5b}.preview dd{margin:0;overflow-wrap:anywhere}.preview-message{padding:16px;background:#fff;border:1px solid #e9dfc9;border-radius:7px;font-size:12px;line-height:1.7;color:#5e614f;white-space:pre-line}.secret-placeholder{display:block;margin:12px 0;color:#3c6d47;font-weight:600}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.project-card{padding:23px;display:flex;flex-direction:column;gap:15px;text-align:left}.project-card h2{font-size:21px;font-weight:500;line-height:1.3;margin:7px 0}.project-card p{font-size:12px;color:#748565;line-height:1.6;margin:0}.project-card .button{margin-top:auto;align-self:start}.project-symbol{height:90px;background:#e7eee1;border-radius:7px;display:flex;align-items:center;justify-content:center;font-size:32px;color:#7c9c75}.rooms-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.room-card{display:flex;gap:15px;align-items:center;cursor:pointer;text-align:left;border:1px solid var(--line);padding:20px;border-radius:9px;background:white;color:var(--ink);min-height:104px}.room-number{font-size:11px;font-weight:600;letter-spacing:.5px;background:#e8f0dd;padding:11px;border-radius:7px;flex:none}.room-info{flex:1;min-width:0}.room-info strong{font-size:14px;line-height:1.5;display:block}.room-info small{font-size:11px;color:#718363;display:block;margin-top:6px}.room-arrow{font-size:20px;color:#8ba17a}.room-heading{margin-bottom:20px}.room-heading h1{margin:10px 0}.task-list{list-style:none;padding:0;margin:0;display:grid;gap:8px}.task-row{display:flex;align-items:center;gap:12px;background:white;padding:15px 17px;border:1px solid var(--line);border-radius:8px;min-height:65px}.task-row>span:first-child{width:25px;height:25px;display:grid;place-items:center;flex:none;border-radius:50%;background:#edf3e4;font-size:11px}.task-row strong{font-size:13px;line-height:1.5;font-weight:500;flex:1}.status{font-size:10px;white-space:nowrap;color:#7c8c6b;border:1px solid #dce5d1;border-radius:5px;padding:5px 8px}.status.done{color:#42703b;background:#e6f0dc}.back-button{padding-left:0;justify-content:start}.dialog{border:1px solid #cddbc3;border-radius:12px;padding:0;width:min(620px,calc(100% - 30px));max-height:calc(100dvh - 30px);color:var(--ink);background:#fff;box-shadow:0 20px 80px #17331d30}.dialog::backdrop{background:#133c3270;backdrop-filter:blur(2px)}.dialog-head{padding:22px 25px;display:flex;align-items:start;gap:15px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:22px;font-weight:500;margin:7px 0 0}.dialog-head>div{flex:1;min-width:0}.icon-button{width:48px;height:48px;display:grid;place-items:center;background:#f1f6e9;color:#496d42;border:0;border-radius:8px;font-size:23px;flex:none}.dialog-body{padding:24px}.scope-options{display:grid;gap:10px}.check-option{display:flex;align-items:center;gap:12px;min-height:49px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f9fbf5;font-size:12px;line-height:1.5}.check-option input{width:21px;height:21px;accent-color:#3b7850;flex:none}.room-options{display:grid;gap:7px;margin-top:12px}.dialog-footer{padding:18px 24px;display:flex;gap:10px;justify-content:end;border-top:1px solid var(--line);background:#fbfcf8}.dialog-footer .button{min-width:130px}.membership-list{display:grid;gap:8px;margin-top:10px}.membership-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:12px;margin-top:5px}.membership-row>div{flex:1;font-size:12px;line-height:1.6}.membership-row small{display:block;font-size:11px;color:var(--muted)}.page-note{font-size:11px;line-height:1.7;color:#7b8c6a;margin-top:22px}.success-card{max-width:550px;margin:55px auto;text-align:center;padding:38px}.success-icon{width:65px;height:65px;background:#e2efd5;border-radius:50%;display:grid;place-items:center;margin:0 auto 20px;color:#3e7b45;font-size:30px}.success-card h1{font-size:28px;font-weight:500;line-height:1.3}.success-card p{color:var(--muted);font-size:14px}.success-card .button{margin-top:15px}#access-toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);max-width:calc(100% - 32px);padding:13px 19px;border-radius:8px;background:#173f34;color:white;font-size:12px;line-height:1.5;opacity:0;pointer-events:none;transition:.15s;z-index:20;box-shadow:0 4px 20px #173f3430}#access-toast.show{opacity:1;transform:translate(-50%,0)}[hidden]{display:none!important}
@media(max-width:900px){.app-header{padding:12px 20px;gap:12px}.header-label{display:none}.brand{margin-right:auto}.header-tools{gap:9px}.user-label{display:none}.container{padding:26px 20px}.auth-layout{gap:35px;margin:25px auto}.auth-intro h1{font-size:30px}.test-banner{padding-inline:20px}}
@media(max-width:650px){.app-header{padding:11px 16px;min-height:74px;flex-wrap:wrap}.brand{font-size:19px}.brand-symbol{width:34px;height:34px;font-size:30px}.language-label>span{display:none}.language-label select{max-width:123px;min-height:48px;font-size:11px}.header-tools>.button{padding:9px 11px;min-height:48px;font-size:11px}.test-banner{font-size:10px;padding:9px 16px}.container{padding:25px 16px}.page-title{display:block;margin-bottom:20px}.page-title h1{font-size:28px}.page-title p{font-size:13px}.auth-layout{display:flex;flex-direction:column;gap:16px;margin:0}.auth-intro{padding:6px 0}.auth-intro h1{font-size:29px;max-width:350px;margin:10px 0 13px}.auth-intro p{font-size:13px;margin-bottom:0}.auth-intro .steps{display:none}.auth-layout>.card{width:100%}.card{padding:22px}.inline-invite{display:block}.inline-invite .button{width:100%;margin-top:14px}.person-row{padding:14px 12px;gap:11px;flex-wrap:wrap}.avatar{width:34px;height:34px;font-size:11px}.person-actions{flex-basis:100%;justify-content:flex-end;margin-top:3px}.person-actions .button{min-height:48px}.person-main strong{font-size:13px}.project-grid,.rooms-grid{grid-template-columns:1fr}.project-symbol{height:66px}.project-card{padding:20px}.tabs{margin-bottom:20px}.tabs button{flex:1}.dialog{width:calc(100% - 18px);max-height:calc(100dvh - 18px)}.dialog-head{padding:18px}.dialog-head h2{font-size:21px}.dialog-body{padding:20px 18px}.dialog-footer{padding:15px 18px}.dialog-footer .button{min-width:0;flex:1}.preview{padding:17px}.task-row{padding:14px 12px;gap:9px;flex-wrap:wrap}.task-row strong{font-size:12px;flex-basis:calc(100% - 40px)}.task-row .status{margin-left:34px}.success-card{margin:25px auto;padding:28px 22px}.success-card h1{font-size:25px}.page-note{font-size:10px}.room-card{min-height:100px;padding:17px}.scope-options .check-option{font-size:12px}}

.page-title h1,.project-card h2,.room-info strong,.membership-row strong{overflow-wrap:anywhere}
.login-remember{display:flex;align-items:center;gap:12px;min-height:48px;padding:8px 0;color:var(--ink);font-size:14px;line-height:1.5;cursor:pointer}
.login-remember input{width:22px;height:22px;margin:0;accent-color:var(--green);flex:none}
.login-remember span{min-width:0;overflow-wrap:anywhere}
.login-remember:has(input:focus-visible){outline:2px solid var(--green);outline-offset:4px;border-radius:3px}
@media(max-width:650px){.field input,.field select,.language-label select{font-size:16px}}
.dialog[open]{display:flex;flex-direction:column;overflow:hidden}.dialog>form{display:flex;flex-direction:column;min-height:0;overflow:hidden}.dialog-body{overflow-y:auto;min-height:0}.dialog-head,.dialog-footer{flex:none}body:has(dialog[open]){overflow:hidden}
.room-work-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0 24px}.room-work-tabs [aria-pressed=true]{background:var(--green);color:#fff}.work-admin-tools{display:flex;gap:10px;flex-wrap:wrap}.room-work-tabs button{flex:1;min-width:160px}@media(max-width:650px){.room-work-tabs{gap:6px}.room-work-tabs button{min-width:0;flex:1;font-size:12px;padding:10px}.work-admin-tools .button{font-size:12px}}
.room-number{max-width:45%;overflow-wrap:anywhere}
.room-assignment{margin-bottom:20px;background:#fff;border:1px solid var(--line);border-radius:9px}
.room-assignment summary{min-height:48px;padding:15px 18px;cursor:pointer;font-weight:600;font-size:14px}
.room-assignment p{margin:0;padding:0 18px 16px;color:var(--ink);font-size:13px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.room-navigation{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:8px 0;background:#f2f5ec}
.room-navigation .room-nav-back{min-height:44px;font-size:14px}
.room-navigation .room-nav-back::before{content:'‹';font-size:22px;line-height:1;margin-inline-end:6px}
.room-navigation>span{min-width:0;overflow-wrap:anywhere;color:var(--muted);font-size:12px;text-align:end}
.room-navigation[data-panel=work] [data-action=back-work],.room-navigation:not([data-panel=work]) [data-action=back-rooms],#room-workspace [data-work-action=back]{display:none}
.room-floor-summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 13px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:600;cursor:pointer;list-style:none}
.room-floor-summary::-webkit-details-marker{display:none}
.room-floor-summary::before{content:'';width:7px;height:7px;border:solid var(--green);border-width:0 2px 2px 0;transform:rotate(-45deg)}
.room-floor[open]>.room-floor-summary::before{transform:rotate(45deg)}
.room-floor-summary .count{margin-inline-start:auto}
.room-floor[open]>.rooms-grid{margin-top:10px}

.disabled-accounts{margin-top:12px}
.disabled-accounts>summary,.account-deactivation>summary{min-height:48px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px;font-weight:600;cursor:pointer}
.disabled-accounts[open]>.person-list{margin-top:9px}
.disabled-accounts .count{margin-inline-start:8px}
.account-profile-dialog{max-height:calc(100vh - 18px);max-height:calc(100dvh - 18px)}
.account-profile-dialog .dialog-head{align-items:center}
.account-profile-dialog .dialog-head h2{margin:0}
.account-profile-dialog .dialog-head>.button{flex:none}
.account-profile-dialog .dialog-body>.form-error{margin-top:14px}
.account-deactivation{margin-top:18px}
.account-deactivation>summary{color:#8c442e;border-color:#d4b49e;background:#fff6ec}
.account-deactivation-body{padding:12px 0 0}
.account-deactivation-body p{font-size:13px;margin-bottom:8px}
.account-deactivation-actions{display:flex;gap:8px;flex-wrap:wrap}
body.account-profile-open{overflow:hidden}
body.personal-preferences-open{overflow:hidden}
.personal-preferences-dialog .dialog-head{align-items:center}
.personal-preferences-dialog .dialog-head h2{margin:0}
.personal-preferences-dialog .dialog-head>.button{flex:none}
.personal-preferences-dialog .dialog-body .notice{margin-top:16px;margin-bottom:0}
.personal-preferences-dialog .field select{font-size:16px}
.personal-preferences-dialog.is-fallback{position:fixed;inset:0;z-index:1001;width:100%;height:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}
@media(max-width:650px){.header-tools{flex-wrap:wrap;justify-content:flex-end}.personal-profile-button{max-width:160px}.personal-preferences-dialog .dialog-head{padding:14px}.personal-preferences-dialog .dialog-head h2{font-size:20px}}
.account-profile-dialog.is-fallback{position:fixed;inset:0;z-index:1001;width:100%;height:100%;height:100dvh;max-height:none;margin:0;border:0;border-radius:0}

.project-chat-launcher{position:fixed;z-index:12;right:16px;bottom:16px;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));box-shadow:0 4px 16px #153d363d}
.project-chat-unread{display:grid;place-items:center;min-width:22px;min-height:22px;padding:2px 4px;border-radius:12px;background:#fff;color:#214c35;font-size:11px}
.project-chat-dialog[open]{position:fixed;z-index:13;inset:auto 16px 74px auto;right:max(16px,env(safe-area-inset-right));bottom:calc(max(16px,env(safe-area-inset-bottom)) + 58px);display:flex;flex-direction:column;width:min(420px,calc(100% - 32px));height:min(560px,calc(100vh - 90px));height:min(560px,calc(100dvh - 90px));max-height:none;margin:0;padding:0;border:1px solid #c9d8c8;border-radius:12px;background:#fff;color:var(--ink);overflow:hidden;box-shadow:0 9px 30px #183d3438}
body.project-chat-open{overflow:hidden;overscroll-behavior:none}
.project-chat-dialog::backdrop{background:#0b0d0e70}
.project-chat-backdrop{position:fixed;inset:0;z-index:1000;background:#0b0d0e70}
.project-chat-dialog.is-fallback[open]{z-index:1001}
.project-chat-head,.project-chat-controls,.project-chat-compose{display:flex;align-items:center;gap:10px;padding:10px 12px;flex:none}
.project-chat-head,.project-chat-controls{border-bottom:1px solid var(--line)}
.project-chat-head>div,.project-chat-controls>label,.project-chat-compose>label{flex:1;min-width:0}
.project-chat-head h2{margin:0;font-size:18px}
.project-chat-head p{margin:3px 0 0;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.project-chat-controls{align-items:end}
.project-chat-controls>label{gap:4px}
.project-chat-controls select,.project-chat-compose textarea,.project-chat-compose select{font-size:16px}
.project-chat-status{padding:6px 12px;margin:0;color:#744c24;background:#fff6e8;font-size:12px;flex:none}
.project-chat-status:empty{display:none}
.project-chat-messages{min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;padding:10px 12px;background:#f5f8f1}
.chat-message{max-width:92%;margin:0 auto 8px 0;padding:8px 10px;border-radius:8px;background:#fff;border:1px solid #dce7dc}
.chat-message.is-own{margin-inline:auto 0;background:#e9f3e7}
.chat-message-meta{display:flex;justify-content:space-between;gap:7px;flex-wrap:wrap;font-size:11px;color:#4b6559}
.chat-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 0;font-size:14px}
.chat-message-hint,.chat-message summary{font-size:12px;color:#465d53}
.chat-message details{margin-top:5px}
.chat-message summary{display:list-item;min-height:40px;padding:10px 0 6px;cursor:pointer}
.chat-empty{font-size:13px;color:var(--muted);padding:8px 0;margin:0}
.chat-older{display:flex;margin:0 auto 8px}
.project-chat-compose{display:grid;gap:7px;border-top:1px solid var(--line);align-items:stretch}
.project-chat-compose-actions{display:flex;gap:8px;align-items:end;justify-content:space-between}
.project-chat-compose-actions .chat-automatic-language{min-width:0;flex:1;margin:0;color:var(--muted);font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.project-chat-compose-actions select{padding:8px;min-height:44px}
.project-chat-compose-actions .button{min-height:44px}
.project-chat-compose textarea{display:block;width:100%;min-height:48px;max-height:120px;padding:7px 9px;resize:vertical;border:1px solid #b6cbb6;border-radius:7px;font-family:inherit;color:var(--ink)}
.chat-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:500px){.project-chat-dialog[open]{left:8px;right:8px;left:max(8px,env(safe-area-inset-left));right:max(8px,env(safe-area-inset-right));width:auto}.project-chat-head,.project-chat-controls,.project-chat-compose{padding:8px 10px;gap:7px}}

/* Netzwerk-Klempner's graphite, paper and red brand palette. */
:root {
  --ink: #0b0d0e;
  --muted: #5e6264;
  --line: #bfc1bd;
  --surface: #111416;
  --surface-2: #171a1d;
  --paper: #f1f0ec;
  --soft: #eef0ef;
  --accent: #a6232d;
  --accent-light: #cf444b;
  --accent-deep: #68151c;
  --green: var(--accent);
  --brand-tint: #f7ebec;
  --field-surface: #fcfcfa;
  color: var(--ink);
  background: var(--paper);
}
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline-color: var(--accent);
}
.app-header {
  min-height: 64px;
  gap: 16px;
  padding: 8px 24px;
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  color: var(--paper);
}
.brand { color: var(--paper); font-size: 19px; }
.app-identity {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  flex: none;
  min-height: 42px;
  margin-inline-end: auto;
  padding-inline-start: 44px;
}
.app-identity .brand { display: block; width: fit-content; margin: 0; line-height: 1.05; }
.app-identity .brand-symbol { position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%); }
.company-credit {
  width: fit-content;
  color: #dedad5;
  font-size: 12px;
  line-height: 1.5;
  text-underline-offset: 3px;
}
.company-credit:hover { color: #fff; }
.app-header .company-credit:focus-visible { outline-color: #ffadad; }
.startup .company-credit { display: inline-block; color: var(--muted); }
.brand-symbol {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-size: 31px;
}
.header-label, .language-label, .user-label small { color: #bfc1bd; }
.language-label select {
  min-height: 44px;
  background: var(--surface-2);
  border-color: #5e6264;
  color: var(--paper);
}
.header-tools > .button.quiet { color: var(--paper); }
.button { min-height: 44px; padding: 9px 14px; border-radius: 6px; }
.button.secondary { color: var(--ink); border-color: var(--line); }
.button.quiet { color: var(--muted); }
.button.danger { color: var(--accent-deep); border-color: #cf8e93; background: var(--brand-tint); }
.container { max-width: 1280px; padding: 22px 24px; }
.page-title { gap: 16px; margin-bottom: 16px; }
.page-title h1 { font-size: 27px; margin: 4px 0 6px; }
.page-title p { font-size: 13px; }
.eyebrow, .count, .page-note { color: var(--muted); }
.tabs { margin-bottom: 16px; padding-bottom: 5px; }
.tabs button { min-height: 44px; padding: 8px 16px; color: var(--muted); }
.tabs button[aria-selected=true] { background: var(--brand-tint); color: var(--accent-deep); }
.auth-layout { margin: 28px auto; gap: 40px; }
.auth-intro { padding: 18px 0; }
.auth-intro h1 { font-size: 33px; margin: 10px 0 14px; }
.steps { margin: 22px 0; gap: 14px; }
.steps li > b { border-color: var(--line); color: var(--accent); }
.steps span, .field, .field small, .auth-footer { color: var(--muted); }
.card { border-radius: 9px; padding: 20px; box-shadow: none; }
.inputs { gap: 14px; }
.field { gap: 6px; }
.field input, .field select, .password-wrap {
  min-height: 44px;
  border-color: var(--line);
  background: var(--field-surface);
}
.field.readonly, .preview, .project-symbol { background: var(--soft); }
.password-wrap button {
  min-height: 44px;
  color: var(--accent);
  border-left-color: var(--line);
}
.form-actions { margin-top: 16px; }
.invite-card { margin-bottom: 16px; background: #fff; }
.invite-card h2 { margin-bottom: 12px; }
.section-heading { margin-top: 20px; }
.person-list, .project-grid { gap: 12px; }
.person-row { padding: 12px 14px; }
.person-main small, .project-card p, .room-info small, .room-arrow { color: var(--muted); }
.avatar, .role-tag, .room-number, .task-row > span:first-child {
  background: var(--soft);
  color: var(--ink);
}
.role-tag { border-color: var(--line); }
.project-card { padding: 16px; gap: 10px; }
.project-card h2 { font-size: 21px; margin: 4px 0; }
.project-symbol { height: 64px; color: var(--accent); }
.rooms-grid { gap: 9px; }
.room-card { min-height: 78px; padding: 12px 14px; gap: 12px; }
.room-number { padding: 9px; }
.room-info small { margin-top: 3px; }
.task-row { min-height: 56px; padding: 11px 13px; }
.status { color: var(--muted); border-color: var(--line); }
.dialog { border-color: var(--line); box-shadow: 0 18px 64px #0b0d0e30; }
.dialog::backdrop { background: #0b0d0e80; }
.dialog-head { padding: 16px 18px; }
.dialog-body { padding: 18px; }
.dialog-footer { padding: 12px 18px; background: var(--soft); }
.icon-button { min-width: 44px; width: 44px; height: 44px; background: var(--soft); color: var(--ink); }
.check-option { min-height: 44px; background: var(--field-surface); }
.check-option input { accent-color: var(--accent); }
.success-icon { background: var(--brand-tint); color: var(--accent); }
#access-toast { background: var(--surface); box-shadow: 0 4px 20px #0b0d0e30; }
.room-work-tabs { margin: 12px 0 16px; gap: 6px; }
.room-work-tabs button { min-height: 44px; }
.room-assignment { margin-bottom: 14px; }
.room-assignment summary { min-height: 44px; padding: 12px 14px; }
.room-assignment p { padding: 0 14px 12px; }
.room-navigation { padding: 5px 0; background: var(--paper); }
.room-floor-summary { min-height: 44px; padding: 8px 12px; }
.disabled-accounts > summary, .account-deactivation > summary { min-height: 44px; padding: 12px; }
.project-chat-launcher { box-shadow: 0 4px 16px #0b0d0e38; }
.project-chat-unread { color: var(--accent); }
.project-chat-dialog[open] { border-color: var(--line); box-shadow: 0 9px 30px #0b0d0e38; }
.project-chat-head { background: var(--surface); color: var(--paper); }
.project-chat-head p { color: #bfc1bd; }
.project-chat-head .button { color: var(--ink); }
.project-chat-messages { background: var(--paper); }
.chat-message { border-color: #d6d8d5; }
.chat-message.is-own { background: var(--brand-tint); border-color: #e4bfc3; }
.chat-message-meta, .chat-message-hint, .chat-message summary { color: var(--muted); }
.project-chat-compose textarea { border-color: var(--line); }
@media (max-width: 900px) {
  .app-header { padding-inline: 18px; }
  .container { padding: 18px; }
  .auth-layout { gap: 26px; }
}
@media (max-width: 650px) {
  .app-header { display: grid; grid-template-columns: minmax(0,1fr) auto; min-height: 60px; padding: 7px 12px; gap: 5px 8px; }
  .brand { gap: 7px; font-size: 18px; margin: 0; min-width: 0; }
  .brand-symbol { width: 30px; height: 30px; font-size: 28px; flex: none; }
  .header-tools { gap: 4px; }
  .language-label select { max-width: 106px; min-height: 44px; font-size: 16px; padding: 7px; }
  .header-tools > .button { min-height: 44px; padding: 7px 8px; font-size: 11px; }
  .container { padding: 14px 12px; }
  .page-title { margin-bottom: 14px; }
  .page-title h1 { font-size: 25px; }
  .auth-layout { margin: 0; gap: 14px; }
  .auth-intro { padding: 3px 0; }
  .auth-intro h1 { font-size: 27px; }
  .card { padding: 17px; }
  .tabs { margin-bottom: 14px; }
  .tabs button { padding: 7px 12px; }
  .project-card { padding: 15px; }
  .project-symbol { height: 52px; }
  .person-row { padding: 11px 12px; }
  .person-actions .button { min-height: 44px; }
  .dialog-head, .dialog-body { padding: 15px; }
  .dialog-footer { padding: 12px 15px; }
  .room-work-tabs { margin: 10px 0 14px; }
  .room-work-tabs button { padding: 8px 5px; font-size: 11px; }
  .room-card { min-height: 74px; }
  .task-row { min-height: 54px; }
}
@media (max-width: 360px) {
  .brand { font-size: 16px; gap: 5px; }
  .brand-symbol { width: 27px; height: 27px; font-size: 25px; }
  .language-label select { max-width: 94px; }
  .header-tools > .button { padding-inline: 5px; }
}

/* Priority is an explicit choice; wiring warnings are derived from the plan. */
.room-card-tile{--priority:#a0a5a3;min-width:0;border:1px solid var(--line);border-inline-start:5px solid var(--priority);border-radius:9px;background:#fff;overflow:hidden}
.room-card-tile.priority-red{--priority:#b32431}.room-card-tile.priority-amber{--priority:#b77712}.room-card-tile.priority-green{--priority:#35734b}
.room-card-tile .room-card{width:100%;border:0;border-radius:0;background:transparent;min-height:78px;padding:11px 12px;gap:10px}
.room-card-tile .room-info small{color:var(--muted);margin-top:3px}
.room-card-priority{display:flex;align-items:center;gap:8px;min-height:44px;border-top:1px solid #0b0d0e12;padding:0 12px;font-size:11px}
.room-card-priority label{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.room-card-priority select{min-height:44px;flex:1;width:0;min-width:0;border:0;background:transparent;color:var(--ink);font-size:13px;font-weight:600;padding:6px 3px}
.priority-dot{width:10px;height:10px;border-radius:50%;background:var(--priority);flex:none}
.room-card-tile.needs-wiring-review{background:#fff5e5;border-color:#e6c796;border-inline-start-color:var(--priority)}
.wiring-review-badge{display:inline-block;border:1px solid #e2c28f;border-radius:5px;padding:3px 6px;color:#794713;background:#fff1d8;font-size:11px;font-weight:600;line-height:1.3}
.room-info .wiring-review-badge{margin-top:6px}
.room-card-tile.is-complete{background:#e8e9e8;border-color:#c5c9c6;border-inline-start-color:#939b96}.room-card-tile.is-complete .room-card{color:#535a56}.room-card-tile.is-complete .room-number{background:#d7dbd8;color:#535a56}
.floor-statuses{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:5px 8px;margin-inline-start:auto;font-size:11px;max-width:75%}.floor-urgent{color:#a51d2b;font-weight:700}.room-floor-summary .floor-statuses .count{margin:0;color:var(--muted);font-weight:400}
.room-filters{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px 14px;margin-bottom:12px}
.room-filters .field{flex:1 1 210px;min-width:0;max-width:340px;gap:5px}
.room-filters select{font-size:16px}
.room-filter-count{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.4}
.project-room-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.project-closeout-dialog{max-width:520px}
.project-closeout-dialog .dialog-head p{margin:0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.project-closeout-dialog .dialog-body>p{margin:0 0 12px;color:var(--muted);line-height:1.5}
.project-closeout-dialog .dialog-body>.project-closeout-status{margin:12px 0 0}
.project-closeout-dialog fieldset{padding:0;border:0;margin:0;min-width:0}
.project-closeout-dialog legend{padding:0 0 8px;font-weight:600;font-size:13px}
.project-closeout-dialog .check-option{cursor:pointer}
.project-closeout-dialog.is-fallback{position:fixed;inset:0;z-index:1001;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0}
.project-inventory-toolbar,.project-inventory-actions,.project-inventory-switch,.project-inventory-pagination{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.project-inventory-toolbar{justify-content:space-between;margin-bottom:14px}
.project-inventory-switch .button[aria-pressed=true]{border-color:var(--accent);color:var(--accent-deep);background:var(--brand-tint)}
.project-inventory-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
.project-inventory-filters .field{min-width:0;gap:5px;margin:0}
.project-inventory-filters input,.project-inventory-filters select{min-width:0;width:100%;font-size:16px}
.project-inventory-count,.project-inventory-feedback{color:var(--muted);font-size:13px;margin:12px 0}
.project-inventory-feedback:empty{display:none}
.project-inventory-list{display:grid;gap:6px;padding:0;margin:0;list-style:none}
.project-inventory-row{display:grid;grid-template-columns:minmax(115px,1fr) minmax(110px,0.85fr) minmax(180px,2fr) auto;align-items:center;gap:10px 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);overflow-wrap:anywhere}
.project-inventory-item,.project-inventory-location,.project-inventory-detail,.project-inventory-detail>span{display:grid;gap:4px;min-width:0}
.project-inventory-item>small,.project-inventory-location>small,.project-inventory-detail small{color:var(--muted);font-size:12px}
.project-inventory-location .button{text-align:start;justify-self:start;padding-inline:0}
.project-inventory-badge{justify-self:start;color:var(--muted);background:var(--soft);border-radius:4px;padding:3px 6px;font-size:12px}
.project-inventory-badge:is([data-status=pending],[data-status=unresolved],[data-status=portReview]){color:#75460c;background:#fff0d9}
.project-inventory-badge:is([data-status=present],[data-status=recorded],[data-status=mounted]){color:#205a38;background:#e4f2e9}
.project-inventory-detail{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px;font-size:13px}
.project-inventory-detail .project-inventory-length{gap:2px}
.project-inventory-pagination{justify-content:center;margin-top:12px}
@media(max-width:760px){.project-inventory-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.project-inventory-row{grid-template-columns:repeat(2,minmax(0,1fr))}.project-inventory-detail{grid-column:1/-1}.project-inventory-row>[data-project-inventory-item]{grid-column:1/-1;justify-self:start}}
@media(max-width:650px){.room-card-priority select{font-size:16px}.room-card-tile .room-card{min-height:72px}.floor-statuses{max-width:73%}.room-floor-summary{gap:8px}}
.invitation-channel{max-width:340px}.invitation-share-actions{flex-wrap:wrap}.invitation-share-actions>.button{min-height:44px}.invitation-copy-fallback{margin-top:14px}.invitation-copy-fallback input{width:100%;min-width:0}.preview dl{grid-template-columns:max-content minmax(0,1fr);column-gap:12px}.preview dd{overflow-wrap:anywhere}
@media(max-width:650px){.invitation-channel{max-width:none}.invitation-share-actions>.button{flex:1 1 140px}.inline-invite input,.invitation-channel select,.invitation-copy-fallback input,#login-form input{font-size:16px}}

.account-features{min-width:0;margin:18px 0 0;padding:14px;border:1px solid var(--line);border-radius:9px;display:grid;gap:8px}.account-features legend{padding:0 6px;font-weight:600}.account-features>p{margin:0 0 5px;color:var(--muted);font-size:13px;line-height:1.5}.account-feature-option{display:flex;align-items:flex-start;gap:11px;min-height:48px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--field-surface,#fff);cursor:pointer}.account-feature-option input{flex:none;width:22px;height:22px;margin:0;accent-color:var(--accent)}.account-feature-option span{min-width:0;line-height:1.4}.account-feature-option strong{display:block;font-size:14px;font-weight:500}.account-feature-option small{display:block;margin-top:3px;color:var(--muted);font-size:12px;line-height:1.45}.account-feature-option.is-fixed{cursor:default;background:var(--soft)}

/* Separate server administration shortcut, visible only in admin navigation. */
.tabs{flex-wrap:wrap;align-items:center}.tabs .admin-cockpit-link{margin-inline-start:auto;min-height:48px;max-width:100%;white-space:nowrap}.admin-cockpit-link>[aria-hidden]{font-size:16px;line-height:1}
@media(max-width:360px){.tabs .admin-cockpit-link{flex:1 1 100%;margin-inline-start:0}}

.my-tasks-list{display:grid;gap:8px;list-style:none;padding:0;margin:0}
.my-task-link{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;width:100%;min-height:56px;padding:12px;text-align:start;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer}
.my-task-link:hover{border-color:var(--accent)}
.my-task-copy{display:grid;gap:4px;overflow-wrap:anywhere}
.my-task-copy small,.my-task-number{color:var(--muted)}
.my-task-link .status{align-self:center}
@media(max-width:420px){.my-task-link{grid-template-columns:auto minmax(0,1fr);gap:6px 10px}.my-task-link .status{grid-column:2;justify-self:start}}

/* Shared app mark and browser icon use the same Projektwerk identity. */
img.brand-symbol{display:block;object-fit:contain;background:transparent;flex:none}

.background-sync-status{margin:12px auto;padding:12px 16px;max-width:1180px;background:#fff7e8;border:1px solid #dfbf83;border-left:5px solid #a6232d;border-radius:8px;color:#352c22}
.background-sync-status[hidden]{display:none}.background-sync-status details{margin-top:6px}.background-sync-status summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.background-sync-status ul{list-style:none;padding:0;margin:0}.background-sync-status li{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:8px 0;border-top:1px solid #dfbf83}.background-sync-status li span{flex:1;min-width:160px;overflow-wrap:anywhere}.background-sync-status small{display:block}.background-sync-status[data-sync-state="storage"],.background-sync-status[data-sync-state="auth"],.background-sync-status[data-sync-state="conflict"]{background:#fff0ef;border-color:#a6232d}
