:root{font-family:var(--ui-font);color:#253a32;background:#f6f8f7;font-size:var(--ui-text-body);--green:#187552;--muted:#718078;--line:#e6ece8}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible{outline:3px solid #48a880}button{cursor:pointer;border:1px solid var(--line);background:white;color:inherit;border-radius:12px;padding:10px 15px;min-height:42px;transition:background .15s}button:hover{background:#edf4f0}button:disabled{opacity:.5;cursor:wait}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:white;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;color:#284035;text-decoration:none;font-size:var(--ui-text-xs);line-height:1.6;font-weight:var(--ui-weight-strong)}.brand img{width:54px;height:62px;object-fit:contain}.nav-label{font-size:var(--ui-text-xs);color:#8a968e;margin:45px 14px 12px}nav{display:grid;gap:6px}nav button{display:flex;gap:13px;align-items:center;text-align:left;border:0;background:none;color:#718077;font-size:var(--ui-text-card);padding:12px 15px}nav button span{font-size:var(--ui-text-body)}nav button.selected{background:#eaf4ee;color:#187552;font-weight:bold}nav button b{margin-left:auto;font-size:var(--ui-text-xs)}.sidebar-bottom{margin-top:auto}.organization{font-size:var(--ui-text-xs);color:#758178;line-height:1.9;padding:20px 8px}.organization small{display:block;margin-top:5px}.account-button{width:100%;display:flex;text-align:left;align-items:center;gap:9px;border:0;border-top:1px solid var(--line);border-radius:0;padding:18px 4px 0;font-size:var(--ui-text-xs)}.account-button small{display:block;color:var(--muted);font-size:var(--ui-text-xs);margin-top:5px}.avatar{width:34px;height:34px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e9f2ec;color:var(--green);flex-shrink:0;font-weight:bold}main{margin-left:260px;padding:0 44px 25px;max-width:1640px}header{height:80px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;font-size:var(--ui-text-xs);color:#819087}.slash{margin:0 14px;color:#c1cac4}header b{font-weight:normal;color:#52665b}.local-label{font-size:var(--ui-text-xs);border:1px solid var(--line);background:white;border-radius:20px;padding:7px 11px}.local-label i{display:inline-block;width:6px;height:6px;border-radius:50%;background:#d9ae54;margin-right:5px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:34px 0 28px}.eyebrow{font-size:var(--ui-text-xs);color:var(--green);margin:0 0 7px}h1{font-size:29px;margin:0;font-weight:var(--ui-weight-strong);letter-spacing:-.6px}.heading p:last-child{font-size:var(--ui-text-xs);color:var(--muted);margin:10px 0 0}.primary{background:var(--green);color:white;border-color:var(--green);box-shadow:0 3px 7px #18755212}.primary:hover{background:#105e40}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:28px}.stat{padding:19px 21px;border:1px solid var(--line);border-radius:17px;background:white;display:flex;justify-content:space-between;align-items:center}.stat span{font-size:var(--ui-text-xs);color:var(--muted)}.stat strong{font-size:var(--ui-text-page);display:block;font-weight:var(--ui-weight);margin-top:9px}.stat .stat-icon{width:37px;height:37px;background:#f0f5f2;border-radius:12px;display:grid;place-items:center;color:#448060;font-size:var(--ui-text-card)}.workspace{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.work-head{display:flex;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--line);align-items:center}.tabs{display:flex;gap:3px}.tabs button{font-size:var(--ui-text-xs);border:0;padding:8px 11px;min-height:36px;white-space:nowrap;color:var(--muted)}.tabs button.active{background:#edf4ef;color:var(--green);font-weight:bold}.search{display:flex!important;align-items:center;gap:7px;border:1px solid var(--line);border-radius:10px;padding:0 10px;margin:0!important}.search span{font-size:var(--ui-text-page);color:#93a298}.search input{border:0!important;width:210px;min-width:0;padding:9px 0;background:none;font-size:var(--ui-text-xs)}.list-caption{display:flex;justify-content:space-between;align-items:center;padding:12px 23px;color:#87948b;font-size:var(--ui-text-xs);background:#fcfdfc}.list-caption label{display:flex;align-items:center;gap:7px;margin:0;font-size:var(--ui-text-xs)}.list-caption select{border:0;background:none;padding:5px;color:#62766a;font-size:var(--ui-text-xs)}.task{width:100%;border:0;border-top:1px solid #edf1ee;border-radius:0;text-align:left;padding:19px 23px;display:grid;grid-template-columns:32px minmax(150px,1fr) 132px 108px 95px;gap:14px;align-items:center}.task:hover{background:#f7faf8}.task-icon{width:27px;height:27px;border-radius:9px;background:#f0f5f2;display:grid;place-items:center;color:#74a28a;font-size:var(--ui-text-body)}.task.done .task-icon{background:#e8f4ed;color:var(--green)}.task h3{font-size:var(--ui-text-sm);font-weight:var(--ui-weight-strong);margin:0 0 5px;line-height:1.6}.task .meta{font-size:var(--ui-text-xs);color:#8b978f;line-height:1.7}.badge{font-size:var(--ui-text-xs);padding:5px 8px;border-radius:7px;background:#f0f2f1;color:#718078;white-space:nowrap;display:inline-block}.badge.active{background:#e9f3ef;color:#277757}.badge.review{background:#fff5df;color:#92722f}.badge.done{background:#eaf2fb;color:#55759a}.badge.paused{background:#f3edf9;color:#84669b}.badge.cancelled{background:#f1f1f1;color:#777}.owner-cell{display:flex;gap:8px;align-items:center;font-size:var(--ui-text-xs);color:#61756a}.owner-cell .avatar{width:26px;height:26px;font-size:var(--ui-text-xs)}.due-cell{font-size:var(--ui-text-xs);color:#6e7f73}.warn{color:#a87429!important}.progress-line{display:flex;gap:8px;align-items:center;color:#7a8c80;font-size:var(--ui-text-xs)}progress{height:5px;width:64px;border:0;border-radius:8px;overflow:hidden;accent-color:#6daa87}progress::-webkit-progress-bar{background:#edf1ee}progress::-webkit-progress-value{background:#6daa87;border-radius:8px}.empty{text-align:center;padding:70px 24px;color:#8a988e;font-size:var(--ui-text-sm);line-height:2}.empty strong{display:block;font-size:var(--ui-text-card);color:#465f50;margin:10px 0}.empty .empty-icon{font-size:var(--ui-text-page);color:#91b4a0}.people-grid{display:grid;grid-template-columns:repeat(2,1fr);padding:18px;gap:14px}.person-card{border:1px solid var(--line);border-radius:14px;padding:20px;display:flex;gap:14px;align-items:flex-start}.person-card b{font-size:var(--ui-text-sm)}.person-card p{font-size:var(--ui-text-xs);color:#7c8c81;line-height:1.8;margin:6px 0}.alert{background:#fff9ea;border:1px solid #f1e7cc;border-radius:12px;padding:13px 17px;margin-bottom:18px;display:flex;justify-content:space-between;align-items:center;color:#8b7039;font-size:var(--ui-text-xs)}.alert button{background:none;border:0;font-size:var(--ui-text-xs);color:inherit;min-height:30px;padding:3px}footer{display:flex;justify-content:space-between;gap:12px;font-size:var(--ui-text-xs);color:#94a095;padding-top:22px}#message{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:10;background:#243f31;color:white;padding:12px 22px;border-radius:12px;box-shadow:0 8px 30px #18382920;max-width:90vw;font-size:var(--ui-text-sm)}#message:empty{display:none}dialog{border:1px solid var(--line);border-radius:22px;width:610px;max-width:94vw;max-height:90vh;padding:28px;color:#253a32;box-shadow:0 20px 100px #12332522}dialog::backdrop{background:#17352855;backdrop-filter:blur(3px)}dialog.drawer{position:fixed;inset:12px 12px 12px auto;margin:0;width:640px;max-height:calc(100vh - 24px);height:calc(100vh - 24px);border-radius:22px;overflow:auto;padding:28px}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}.modal-head h2{font-size:var(--ui-text-section);line-height:1.6;margin:0}.modal-head>button{border:0;background:#f2f5f3;font-size:var(--ui-text-section);padding:2px 13px;border-radius:50%;flex-shrink:0}label{display:grid;gap:8px;font-size:var(--ui-text-xs);margin-bottom:17px}input,select,textarea{border:1px solid #dfe7e1;border-radius:10px;padding:11px 12px;background:#fff;color:#2b4335;max-width:100%}textarea{min-height:84px;resize:vertical;line-height:1.7}input:focus,select:focus,textarea:focus{outline:2px solid #86b89b;border-color:transparent}.two{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-footer{display:flex;gap:10px;justify-content:flex-end;border-top:1px solid var(--line);padding-top:19px;margin-top:18px}.form-error,#action-error{font-size:var(--ui-text-xs);color:#b04339;white-space:pre-wrap}details{border-top:1px solid var(--line);padding:16px 0;margin-top:10px}summary{cursor:pointer;font-size:var(--ui-text-xs);color:#687f70;margin-bottom:14px}.muted,.hint{color:#829086;font-size:var(--ui-text-xs);line-height:1.8}.detail-desc{white-space:pre-wrap;font-size:var(--ui-text-sm);line-height:1.9;color:#708074}.detail-meta{background:#f7faf8;padding:17px;border-radius:14px;display:grid;grid-template-columns:1fr 1fr;gap:17px;font-size:var(--ui-text-xs)}.detail-meta small{display:block;color:#94a097;margin-bottom:6px;font-size:var(--ui-text-xs)}.actions{display:flex;gap:8px;flex-wrap:wrap;margin:19px 0}.section-title{font-size:var(--ui-text-body);margin:25px 0 14px}.check-row{display:flex;align-items:center;gap:9px;margin:0;padding:10px 0;border-bottom:1px solid #f0f3f1;font-size:var(--ui-text-xs)}.check-row input{width:17px;height:17px;accent-color:var(--green)}.check-row.checked span{text-decoration:line-through;color:#8a988e}.progress-box{padding:19px;background:#f5f9f6;border:1px solid #e3eee6;border-radius:15px;margin:20px 0}.progress-box h3{margin:0 0 16px;font-size:var(--ui-text-body)}.progress-box label{font-size:var(--ui-text-xs)}.history{border-left:2px solid #e8efea;padding:0 0 22px 17px;margin-left:5px;font-size:var(--ui-text-xs);line-height:1.8;white-space:pre-wrap}.history small{display:block;font-size:var(--ui-text-xs);color:#8d9d91}.history b{font-weight:var(--ui-weight-strong)}.history p{margin:6px 0;color:#718376}.history:last-child{padding-bottom:0}.comment-form{display:flex;align-items:flex-end;gap:10px;margin:20px 0}.comment-form textarea{flex:1;min-height:44px}.comment-form button{flex-shrink:0}.mini-form{padding:16px;border:1px solid var(--line);border-radius:14px}.subtasks{display:grid;gap:7px}.subtasks button{text-align:left;font-size:var(--ui-text-xs)}.close-mobile{display:none}@media(min-width:1600px){main{margin-right:auto}}@media(max-width:1150px){.sidebar{width:220px;padding:25px 15px}main{margin-left:220px;padding:0 25px 20px}.brand{font-size:var(--ui-text-xs)}.brand img{width:44px}.work-head{flex-wrap:wrap}.task{grid-template-columns:28px minmax(150px,1fr) 105px 88px}.owner-cell{display:none}.stat{padding:16px}.stat .stat-icon{display:none}}@media(max-width:760px){.sidebar{position:static;width:auto;height:auto;padding:14px 18px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:var(--ui-text-xs)}.brand img{width:38px;height:40px}.brand br{display:none}.nav-label,.organization{display:none}nav{display:flex;gap:3px;margin-top:15px}nav button{padding:9px 11px;gap:6px;flex:1;justify-content:center;font-size:var(--ui-text-body)}nav button span{font-size:var(--ui-text-xs)}.sidebar-bottom{position:absolute;right:17px;top:15px}.account-button{border:0;padding:0;width:34px}.account-button>span:not(.avatar){display:none}main{margin:0;padding:0 17px 20px}header{height:55px;font-size:var(--ui-text-xs)}.local-label{font-size:var(--ui-text-xs)}.heading{margin:25px 0 21px;align-items:flex-start}h1{font-size:25px}.heading .eyebrow{font-size:var(--ui-text-xs)}.heading p:last-child{font-size:var(--ui-text-xs);max-width:220px;line-height:1.8}.heading>.primary{font-size:var(--ui-text-xs);white-space:nowrap;margin-top:18px}.stats{grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:20px}.stat{padding:14px 16px}.stat strong{font-size:var(--ui-text-page);margin-top:5px}.stat span{font-size:var(--ui-text-xs)}.work-head{padding:12px}.tabs{overflow:auto;width:100%}.tabs button{font-size:var(--ui-text-xs);padding:8px 9px}.search{width:100%}.search input{width:100%}.task{padding:16px 13px;grid-template-columns:24px minmax(120px,1fr) 77px;gap:9px}.task h3{font-size:var(--ui-text-xs)}.due-cell{display:none}.badge{font-size:var(--ui-text-xs);padding:4px 6px}.progress-line{font-size:var(--ui-text-xs)}progress{width:40px}.list-caption{padding:9px 14px}.people-grid{grid-template-columns:1fr}.alert{font-size:var(--ui-text-xs);gap:10px}footer{font-size:var(--ui-text-xs);line-height:1.7}footer span:first-child{display:none}dialog.drawer{inset:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0;padding:22px 18px}dialog{padding:22px 18px}.two{gap:0 10px}.modal-head h2{font-size:var(--ui-text-card)}.detail-meta{font-size:var(--ui-text-xs)}.form-footer button{font-size:var(--ui-text-xs)}}
@font-face{font-family:Anuphan;src:url('/fonts/anuphan-thai.woff2') format('woff2');font-weight:100 700;font-display:swap;unicode-range:U+0E01-0E5B,U+200C-200D,U+25CC}@font-face{font-family:Anuphan;src:url('/fonts/anuphan-latin.woff2') format('woff2');font-weight:100 700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{font-family:Anuphan,Tahoma,Arial,sans-serif}[hidden]{display:none!important}

.header-actions{display:flex;align-items:center;gap:10px}.header-actions button{font-size:var(--ui-text-xs);min-height:30px;padding:5px 10px;background:transparent;border:0}

@media(max-width:760px){.task .due-cell{display:block;grid-column:2;grid-row:2;font-size:var(--ui-text-xs);text-align:left}.task .due-cell .meta{display:inline;margin-left:6px}.task>div:last-child{grid-column:3;grid-row:1 / span 2;align-self:center}.task .meta{font-size:var(--ui-text-xs)}button{min-height:40px}.check-row{min-height:44px}.check-row input{width:20px;height:20px}}

@media(max-width:760px){.brand br::after{content:" "}.brand{max-width:calc(100% - 45px)}nav button{padding:9px 6px}nav button span{white-space:nowrap;font-size:var(--ui-text-xs)}.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.stat{padding:11px 8px;border-radius:13px}.stat span{display:block;font-size:var(--ui-text-xs);min-height:32px;line-height:1.5}.stat strong{font-size:var(--ui-text-page)}.heading{margin:20px 0 17px}.brand span{font-size:var(--ui-text-xs)}}

.roster-note{padding:0 22px;color:#6d7c73;font-size:var(--ui-text-xs)}.person-card{display:block!important;padding:20px!important}.member-top{display:flex;gap:12px;align-items:center}.member-top h3{margin:0;font-size:var(--ui-text-body)}.member-top p{margin:4px 0!important;font-size:var(--ui-text-xs)}.edit-member{margin-left:auto;font-size:var(--ui-text-xs);padding:6px 10px}.member-manager{font-size:var(--ui-text-xs);color:#718376;margin:14px 0!important}.member-load{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;border-top:1px solid #e8eee9;padding-top:14px;font-size:var(--ui-text-xs);color:#718376}.member-load b{display:block;font-size:var(--ui-text-section);color:#254534}.member-work{font-size:var(--ui-text-xs);margin-top:16px;width:100%;background:#f6f9f6}.person-card.inactive{opacity:.65}.member-top>div{min-width:0}.member-top h3{overflow-wrap:anywhere}

.detail-alert{margin-top:16px}

.evidence{margin:22px 0;padding-top:4px}.evidence-file{display:flex;align-items:center;gap:12px;border:1px solid #e0e9e3;border-radius:11px;padding:13px;margin:8px 0;text-decoration:none;color:#28543d}.evidence-file b{font-size:var(--ui-text-xs);overflow-wrap:anywhere}.evidence-file small{display:block;color:#728377;font-size:var(--ui-text-xs);margin-top:4px}.evidence-file>span:last-child{min-width:0}.evidence-file:hover{background:#f1f8f3}#evidence-form{margin-top:14px;border:1px dashed #d4e1d7;padding:14px;border-radius:12px}#evidence-form input{font-size:var(--ui-text-xs);width:100%}

.template-picker{background:#f5f9f6;border:1px solid #e0e9e3;border-radius:14px;padding:15px;margin-bottom:20px}.template-picker label{margin-bottom:8px}.template-picker .hint{margin:8px 0}.template-picker button{font-size:var(--ui-text-xs)}#save-template{margin:10px 0 0 8px}

.module-tools{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.module-tools button{font-size:var(--ui-text-xs);background:white}.workflow-box{margin:20px 0;border-top:1px solid #e0e9e3;padding-top:12px}.workflow-box .mini-form{margin:10px 0}.module-card{border:1px solid #e0e9e3;border-radius:14px;padding:16px;margin:12px 0}.module-card h3{margin:0 0 10px}.module-card p{font-size:var(--ui-text-xs)}dialog form{max-width:100%}

.module-menu{border:1px solid #e2eae4;border-radius:14px;padding:14px 18px;margin:0 0 20px;background:#fff}.module-menu summary{margin:0}.module-menu[open] summary{margin-bottom:14px}.module-menu .module-tools{margin:0}.knowledge-body{white-space:pre-wrap}.login-link{display:inline-block;padding:12px 18px;border-radius:12px;background:#187552;color:white;text-decoration:none}

.reader-list{max-height:180px;overflow:auto}.notification-box{padding:14px;background:#fff8e7;border-radius:12px;margin-bottom:18px}.notification-box button{display:block;width:100%;text-align:left;margin-top:8px;background:white}

main.intake-page{margin:30px auto;max-width:760px;padding:20px}.intake-page h1{font-size:var(--ui-text-page)}

.work-head{flex-wrap:wrap}.tabs{max-width:100%;overflow-x:auto;flex-wrap:nowrap}.division-filter{margin:0;display:flex;align-items:center;gap:8px;font-size:var(--ui-text-xs)}.division-filter select{padding:7px}.tabs button{white-space:nowrap}

.export-link{display:inline-block;border:1px solid #dce6df;border-radius:10px;padding:9px 12px;color:#245e40;text-decoration:none;font-size:var(--ui-text-xs);margin:5px 0}

[hidden]{display:none!important}:root{--muted:#61756a}.skip-link{position:fixed;left:12px;top:12px;z-index:100;background:#fff;color:#174d36;padding:10px 14px;border-radius:10px;transform:translateY(-160%)}.skip-link:focus{transform:none}.auth-pending>.sidebar,.auth-pending>main,.auth-signed-out>.sidebar,.auth-signed-out>main{visibility:hidden;pointer-events:none}.auth-gate{position:fixed;inset:0;z-index:50;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 50% 20%,#edf7f1 0,#f6f8f7 44%,#f6f8f7 100%)}.auth-card{width:min(460px,100%);padding:42px;border:1px solid #dfe9e2;border-radius:24px;background:#fff;box-shadow:0 24px 70px #153e2b14;text-align:center}.auth-card img{width:92px;height:92px;object-fit:contain;margin-bottom:16px}.auth-card h1{font-size:25px;line-height:1.45}.auth-card>p:not(.eyebrow){color:#61756a;line-height:1.8}.auth-card .primary{width:100%;margin:18px 0 12px;font-size:var(--ui-text-body)}.auth-card>a{display:block;color:#286a4b;line-height:1.7;margin:12px 0}.auth-card .auth-help{font-size:var(--ui-text-xs)}.auth-dialog{position:relative;width:min(430px,94vw);padding:28px 22px 22px}.auth-dialog-close{position:absolute;z-index:2;right:14px;top:14px;width:38px;height:38px;padding:0;border:0;border-radius:50%;font-size:var(--ui-text-section)}.auth-dialog #clerk-sign-in{display:grid;place-items:center}.auth-clerk-card{box-shadow:none!important}.auth-clerk-footer-action{display:none!important}.nav-label,header,.organization,.account-button small,footer{color:#61756a}.account-button{min-height:48px}@media(max-width:520px){.auth-card{padding:30px 22px;border-radius:20px}.auth-card h1{font-size:var(--ui-text-section)}.auth-dialog{padding:22px 14px 16px}}

.tools-nav b{padding:2px 7px;border-radius:12px;background:#187552;color:#fff}.module-menu{padding:22px;border-color:#d9e8de;background:linear-gradient(135deg,#f8fcf9,#fff);box-shadow:0 8px 24px #174c3420}.module-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.module-head h2{font-size:var(--ui-text-section);margin:0}.module-head p:last-child{font-size:var(--ui-text-xs);color:var(--muted);margin:8px 0 0}.tools-count{font-size:var(--ui-text-xs);color:#176d4c;background:#e9f5ed;border-radius:999px;padding:7px 11px;white-space:nowrap}.module-menu .module-tools{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.module-tools button{text-align:left;padding:14px;min-height:88px;border-color:#e0eae3}.module-tools button:hover{background:#eaf5ee;border-color:#bad6c5;transform:translateY(-1px)}.module-tools button b,.module-tools button span{display:block}.module-tools button b{font-size:var(--ui-text-xs);line-height:1.55;color:#264f39}.module-tools button span{font-size:var(--ui-text-xs);line-height:1.6;color:#75867b;margin-top:5px}.module-menu.tools-focus{outline:3px solid #74ae8c;outline-offset:4px}.field-help{font-size:var(--ui-text-xs);color:#72857a;line-height:1.5}.profile-dialog{width:min(460px,94vw);text-align:left}.profile-dialog form{display:grid}.profile-dialog h2{font-size:var(--ui-text-page);line-height:1.45;margin:0 0 8px}.profile-dialog .muted{margin:0 0 24px}.profile-dialog .primary{width:100%}.profile-mark{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;margin-bottom:18px;background:#e8f5ed;color:#187552;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong);letter-spacing:1px}.member-meta{display:inline-flex;margin-top:7px;padding:3px 8px;border-radius:999px;background:#eef5f0;color:#3d6b51;font-size:var(--ui-text-xs)}.org-overview{padding:0 18px 18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.org-branch{border:1px solid var(--line);border-radius:13px;padding:13px;background:#fafcfb}.org-branch b{font-size:var(--ui-text-xs);line-height:1.6}.org-branch span{display:block;color:#75867b;font-size:var(--ui-text-xs);line-height:1.6;margin-top:4px}

@media(max-width:1150px){.module-menu .module-tools{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.tools-nav b{display:none}nav{overflow-x:auto}nav button{min-width:max-content}.module-menu{padding:17px;margin-bottom:18px}.module-head{align-items:center}.module-head h2{font-size:var(--ui-text-card)}.module-head p:last-child{display:none}.module-menu .module-tools{display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:5px}.module-tools button{min-width:185px;scroll-snap-align:start}.org-overview{grid-template-columns:1fr}.profile-dialog h2{font-size:var(--ui-text-section)}}

/* Unified system, identity, and roster surfaces */
:root{--surface:#fff;--surface-soft:#f4f8f5;--text:#253a32;--focus:#48a880;--radius-sm:10px;--radius-md:14px;--radius-lg:20px}
.system-page{max-width:1180px;margin:0 auto 28px;padding:28px;border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 16px 42px #18382912}
.system-page .module-head{padding-bottom:18px;border-bottom:1px solid var(--line)}
.system-page .module-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.system-page .module-tools button{min-height:92px;padding:17px;border-radius:var(--radius-md);background:var(--surface-soft)}
.system-page .module-tools button:hover{background:#eaf5ee;border-color:#a9cfb8}
.profile-identity{margin:0 0 14px;padding:12px 14px;border-radius:var(--radius-sm);background:var(--surface-soft);color:#315f46;font-size:var(--ui-text-xs);line-height:1.7}
.privacy-note{margin:2px 0 18px;padding:11px 13px;border-left:3px solid #7fb795;background:#f7faf8;color:#64786c;font-size:var(--ui-text-xs);line-height:1.7}
.input-prefix{display:flex;align-items:center;border:1px solid #dfe7e1;border-radius:var(--radius-sm);overflow:hidden;background:#fff}
.input-prefix:focus-within{outline:2px solid #86b89b;border-color:transparent}
.input-prefix>span{padding-left:12px;color:#6f8176}
.input-prefix input{width:100%;border:0;border-radius:0;outline:0!important}
.member-contact{margin:0 0 13px!important;padding:10px 12px;border-radius:var(--radius-sm);background:var(--surface-soft);color:#426650!important}
.pending-branch{border-style:dashed;background:#fffaf0}
@media(max-width:760px){.system-page{padding:17px;margin-bottom:18px}.system-page .module-tools{display:grid;grid-template-columns:1fr;overflow:visible}.system-page .module-tools button{min-width:0}.privacy-note{font-size:var(--ui-text-xs)}}

/* Board and task-first system navigation */
.board-view{max-width:1180px;margin:0 auto 28px}.board-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:18px;align-items:start}.board-side{display:grid;gap:18px}.board-panel{border:1px solid var(--line);border-radius:var(--radius-lg);background:#fff;box-shadow:0 12px 32px #1838290d;overflow:hidden}.board-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;border-bottom:1px solid var(--line)}.board-panel-head .eyebrow{margin:0 0 4px}.board-panel-head h2{margin:0;font-size:var(--ui-text-section)}.board-panel-head button{font-size:var(--ui-text-xs);min-height:36px}.announcement{padding:22px 24px;border-bottom:1px solid #edf1ee}.announcement:last-child{border-bottom:0}.announcement.pinned{background:linear-gradient(135deg,#f4faf6,#fff)}.announcement-mark{display:inline-flex;padding:4px 8px;border-radius:999px;background:#edf4ef;color:#28744f;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.announcement h3{margin:10px 0 7px;font-size:var(--ui-text-input);line-height:1.6}.announcement>p{margin:0;color:#61756a;font-size:var(--ui-text-xs);line-height:1.9;white-space:pre-wrap}.announcement-meta{display:flex;justify-content:space-between;gap:14px;margin-top:14px;color:#8a988e;font-size:var(--ui-text-xs)}.announcement-actions{display:flex;gap:8px;margin-top:13px}.announcement-actions button{min-height:32px;padding:5px 9px;font-size:var(--ui-text-xs);background:#f7faf8}.board-empty{padding:70px 24px;text-align:center;color:#85938a}.board-empty>span{display:block;font-size:var(--ui-text-page);color:#7dac91}.board-empty strong{display:block;margin:10px 0 4px;color:#435e4e}.board-empty p{font-size:var(--ui-text-xs)}.board-empty.compact{padding:25px 18px;text-align:left}.vote-panel{background:linear-gradient(150deg,#173f2f,#256648);color:#fff;border:0}.vote-panel .board-panel-head{border-color:#ffffff20}.vote-panel .eyebrow,.vote-panel .board-panel-head h2{color:#fff}.vote-panel #voting-status{padding:20px 22px}.vote-head{display:flex;align-items:center;gap:10px}.vote-head>div{min-width:0;flex:1}.vote-head b,.vote-head small{display:block}.vote-head b{font-size:var(--ui-text-sm);line-height:1.5}.vote-head small{margin-top:3px;color:#c9ded2;font-size:var(--ui-text-xs)}.vote-head>button{border-color:#ffffff32;background:#ffffff12;color:#fff;padding:4px 9px;min-height:32px}.vote-signal{width:9px;height:9px;border-radius:50%;background:#99aaa1;box-shadow:0 0 0 5px #ffffff0f}.vote-signal.live{background:#6fe19e;box-shadow:0 0 0 5px #6fe19e24}.vote-signal.offline{background:#f1b95f}.current-motion{margin:18px 0 12px;padding:14px;border-radius:13px;background:#ffffff12}.current-motion small,.current-motion strong{display:block}.current-motion small{color:#bcd6c7;font-size:var(--ui-text-xs)}.current-motion strong{margin-top:5px;font-size:var(--ui-text-sm);line-height:1.6}.vote-idle,.vote-panel #voting-status>p{color:#d0dfd6;font-size:var(--ui-text-xs);line-height:1.7}.vote-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.vote-counts span{padding:9px 6px;border-radius:10px;background:#ffffff10;text-align:center;font-size:var(--ui-text-xs);color:#c9ded2}.vote-counts b{display:block;color:#fff;font-size:var(--ui-text-section);margin-bottom:3px}.vote-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:15px}.vote-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 10px;border:1px solid #ffffff38;border-radius:10px;color:#fff;text-decoration:none;font-size:var(--ui-text-xs)}.vote-actions a.primary{border-color:#fff;background:#fff;color:#1b5039}.sync-votes{width:100%;margin-top:10px;border-color:#ffffff38;background:transparent;color:#fff;font-size:var(--ui-text-xs)}.vote-warning{padding:9px;border-radius:9px;background:#a56b291f;color:#ffe0ae!important}.vote-loading{padding:24px 0;color:#d0dfd6;font-size:var(--ui-text-xs)}.attention-panel{overflow:hidden}.attention-panel>#board-attention>button{width:100%;display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:10px;padding:14px 20px;border:0;border-bottom:1px solid #edf1ee;border-radius:0;text-align:left;background:#fff}.attention-panel>#board-attention>button:hover{background:#f6faf7}.attention-panel>#board-attention b,.attention-panel>#board-attention small{display:block}.attention-panel>#board-attention b{font-size:var(--ui-text-xs);line-height:1.6}.attention-panel>#board-attention small{margin-top:3px;color:#819087;font-size:var(--ui-text-xs)}.attention-dot{width:7px;height:7px;border-radius:50%;background:#78a98d}.attention-dot.late{background:#d99c42}.board-all{width:calc(100% - 36px);margin:14px 18px;background:#f4f8f5;font-size:var(--ui-text-xs)}.system-page{background:#fff}.system-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.system-shortcuts button{display:grid;grid-template-columns:42px 1fr;text-align:left;column-gap:12px;align-items:center;min-height:86px;padding:15px;border:1px solid #dfe9e2;border-radius:var(--radius-md);background:#f7faf8}.system-shortcuts button:hover{border-color:#9fc8af;background:#eff7f2}.system-shortcuts .tool-icon{grid-row:1 / span 2;width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e4f2e9;color:#24734e;font-size:var(--ui-text-card)}.system-shortcuts b{font-size:var(--ui-text-xs);color:#264f39}.system-shortcuts small{font-size:var(--ui-text-xs);color:#75867b}.all-tools{margin-top:18px;padding:0;border-top:1px solid var(--line)}.all-tools>summary{padding:18px 0 2px;margin:0;font-weight:var(--ui-weight-strong);color:#456151}.all-tools .module-tools{margin-top:14px;grid-template-columns:repeat(3,minmax(0,1fr))}.all-tools .module-tools button{min-height:75px;background:#fbfcfb}.all-tools .module-tools button:hover{background:#f2f8f4}.tools-nav b{display:none}.local-label{white-space:nowrap}
@media(max-width:980px){.board-grid{grid-template-columns:1fr}.board-side{grid-template-columns:repeat(2,minmax(0,1fr))}.all-tools .module-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.board-grid{display:flex;flex-direction:column}.board-side{display:contents}.attention-panel{order:1;width:100%}.announcements-panel{order:2;width:100%}.vote-panel{order:3;width:100%}.board-panel-head{padding:17px 18px}.announcement{padding:18px}.announcement-meta{display:grid;gap:4px}.board-view{margin-bottom:18px}.system-shortcuts{grid-template-columns:1fr}.all-tools .module-tools{grid-template-columns:1fr}.vote-actions a{flex:1}}

@media(max-width:760px){nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:4px}nav button{min-width:0;padding:8px 5px;justify-content:flex-start}nav button span{overflow:hidden;text-overflow:ellipsis}.sidebar{padding-bottom:12px}}

/* Context actions on the board */
.attention-item{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 12px 7px 6px;border-bottom:1px solid #edf1ee;background:#fff}.attention-item:hover{background:#f6faf7}.attention-open{display:grid;grid-template-columns:10px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-height:68px;padding:9px 8px 9px 13px;border:0;border-radius:10px;background:transparent;text-align:left}.attention-open:hover{background:#edf5f0}.attention-open b,.attention-open small,.attention-summary{display:block}.attention-open b{font-size:var(--ui-text-sm);line-height:1.55}.attention-summary{margin-top:3px;color:#506b5c;font-size:var(--ui-text-xs);line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attention-open small{margin-top:4px;color:#61756a;font-size:var(--ui-text-xs);line-height:1.5}.attention-action{min-width:78px;min-height:44px;padding:8px 11px;font-size:var(--ui-text-xs)}.announcement-actions button,.vote-head>button,.tabs button,.resource-tabs button{min-height:44px}.quick-progress-dialog{width:min(520px,94vw);padding:0;overflow:hidden}.quick-progress-dialog form{display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:90vh}.quick-progress-dialog .modal-head{margin:0;padding:24px 26px 18px;border-bottom:1px solid var(--line)}.quick-progress-fields{overflow:auto;padding:20px 26px 4px}.quick-progress-dialog textarea{min-height:72px}.quick-progress-dialog #quick-progress-help{margin-top:0}.quick-progress-dialog .form-footer{margin:0;padding:14px 26px 20px;background:#fff;box-shadow:0 -8px 20px #1735280a}
@media(max-width:420px){.attention-item{grid-template-columns:1fr;padding:7px 10px 10px}.attention-action{width:100%}}
.review-decision{margin:18px 0;padding:16px;border:1px solid #cfe0d5;border-radius:14px;background:#f5faf7}.review-decision h3{margin:0 0 5px;font-size:var(--ui-text-body)}.review-decision p{margin:0 0 12px;color:#61756a;font-size:var(--ui-text-xs);line-height:1.6}.review-decision .actions{margin:0}.review-decision button{min-height:44px}

/* Resource workspace */
#resources-dialog{width:min(720px,calc(100vw - 24px));padding:0;overflow:hidden}
#resources-dialog .modal-head{margin:0;padding:22px 24px 15px;border-bottom:1px solid var(--line)}
#resources-dialog .resource-summary{margin:7px 0 0;color:#718178;font-size:var(--ui-text-xs)}
.resource-tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;padding:9px 24px;border-bottom:1px solid var(--line);background:#f8faf8}
.resource-tabs button{border-color:transparent;background:transparent;color:#617168}
.resource-tabs button[aria-selected="true"]{border-color:#cfe1d5;background:#fff;color:#195b3e;box-shadow:0 3px 10px #183c2c0c}
.resource-pane{max-height:calc(90vh - 150px);overflow:auto;padding:18px 24px 28px}.resource-pane>h3:first-child{margin-top:0}
@media(max-width:520px){#resources-dialog .modal-head{padding:18px 17px 13px}.resource-tabs{padding:8px 17px}.resource-pane{padding:16px 17px 24px}}

/* System action center */
.system-page{max-width:1180px;margin:0 auto 32px;padding:0;background:transparent;box-shadow:none}
.system-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(440px,.9fr);gap:28px;align-items:center;padding:28px;border-radius:22px;background:linear-gradient(135deg,#173f2f,#286a4b);color:#fff;box-shadow:0 18px 42px #173f2f24}
.system-hero .eyebrow{color:#b9dbc8}.system-hero h2{margin:0;font-size:var(--ui-text-page);line-height:1.45}.system-hero #tools-description{margin:8px 0 0;color:#d5e8dd;font-size:var(--ui-text-xs);line-height:1.7}.system-role{display:inline-flex;margin:16px 0 0;padding:6px 10px;border-radius:999px;background:#ffffff12;color:#e4f1e9;font-size:var(--ui-text-xs)}
.system-now{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.system-now button{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:3px 9px;min-height:68px;padding:11px 13px;border-color:#ffffff24;background:#ffffff10;color:#fff;text-align:left}.system-now button:hover{background:#ffffff1d}.system-now button.primary{border-color:#fff;background:#fff;color:#195039;box-shadow:none}.system-now b,.system-now small{grid-column:1 / -1}.system-now b{font-size:var(--ui-text-xs)}.system-now small{color:inherit;opacity:.76;font-size:var(--ui-text-xs);line-height:1.5}.system-now strong{grid-row:1 / span 2;font-size:var(--ui-text-page);line-height:1}.system-now span{font-size:var(--ui-text-xs);line-height:1.5}
.system-find{display:grid;grid-template-columns:auto minmax(260px,520px);justify-content:space-between;align-items:center;gap:18px;margin:24px 0 14px;padding:17px 19px;border:1px solid var(--line);border-radius:15px;background:#fff}.system-find>label{margin:0;font-weight:var(--ui-weight-strong);color:#355542}.system-find>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:8px;padding:0 12px;border:1px solid #dce7df;border-radius:11px}.system-find input{width:100%;border:0;padding:10px 0;outline:0!important}.system-find small{color:#708178;font-size:var(--ui-text-xs);white-space:nowrap}
.system-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.system-group{padding:19px;border:1px solid var(--line);border-radius:17px;background:#fff}.system-group-head{display:flex;align-items:flex-start;gap:11px;margin-bottom:14px}.system-group-head>span{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e8f3ec;color:#24714e;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.system-group-head h3{margin:0;font-size:var(--ui-text-body)}.system-group-head p{margin:5px 0 0;color:#7b8a81;font-size:var(--ui-text-xs);line-height:1.6}.system-tool-grid{display:grid;gap:7px}.system-tool-grid button{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:68px;padding:10px 12px;border-color:#e5ece7;border-radius:12px;background:#fafcfb;text-align:left}.system-tool-grid button:hover{border-color:#a9cfb8;background:#eff7f2}.system-tool-grid .tool-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e6f2ea;color:#20704b;font-style:normal}.system-tool-grid b,.system-tool-grid small{display:block}.system-tool-grid b{font-size:var(--ui-text-xs);line-height:1.55}.system-tool-grid small{margin-top:3px;color:#74847a;font-size:var(--ui-text-xs);line-height:1.55}.system-tool-grid i{color:#7c9a88;font-style:normal}.system-admin-group{grid-column:1 / -1}.system-admin-group .system-tool-grid{max-width:calc(50% - 7px)}.system-empty{padding:42px 20px;text-align:center;color:#7a8a80}.system-empty b,.system-empty span{display:block}.system-empty span{margin-top:7px;font-size:var(--ui-text-xs)}
@media(max-width:980px){.system-hero{grid-template-columns:1fr}.system-groups{grid-template-columns:1fr}.system-admin-group{grid-column:auto}.system-admin-group .system-tool-grid{max-width:none}}
@media(max-width:760px){.system-page{padding:0;margin-bottom:20px}.system-hero{gap:20px;padding:21px 18px;border-radius:18px}.system-hero h2{font-size:var(--ui-text-section)}.system-find{grid-template-columns:1fr;gap:9px;padding:14px}.system-find>div{grid-template-columns:auto 1fr}.system-find small{grid-column:1 / -1;padding:0 0 9px 24px}.system-groups{gap:10px}.system-group{padding:15px}.system-tool-grid button{min-height:64px}.system-group-head p{font-size:var(--ui-text-xs)}}
@media(max-width:420px){.system-now{grid-template-columns:1fr}.system-now button{min-height:58px}.system-role{border-radius:10px;line-height:1.5}.system-tool-grid button{grid-template-columns:34px minmax(0,1fr) auto;padding:9px}.system-tool-grid .tool-icon{width:34px;height:34px}}

/* Shared icons and administrator workspace */
.icon{display:block;width:18px;height:18px;flex:0 0 auto}.nav-icon{display:grid;place-items:center;width:20px;height:20px;flex:0 0 20px}.nav-icon .icon{width:17px;height:17px}.primary,#refresh-button,#admin-health-refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px}.system-tool-grid .tool-icon .icon{width:19px;height:19px}.system-tool-grid i .icon{width:15px;height:15px}.stat-icon .icon{width:18px;height:18px}
.admin-page{max-width:1180px;margin:0 auto 32px}.admin-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:26px 28px;border-radius:22px;background:linear-gradient(135deg,#173f2f,#286a4b);color:#fff;box-shadow:0 18px 42px #173f2f24}.admin-hero .eyebrow{color:#b9dbc8}.admin-hero h2{margin:0;font-size:var(--ui-text-page)}.admin-hero p:last-child{margin:8px 0 0;color:#d5e8dd;font-size:var(--ui-text-xs);line-height:1.7}.admin-hero .primary{border-color:#fff;background:#fff;color:#195039;box-shadow:none;white-space:nowrap}.admin-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.admin-metrics button{display:grid;grid-template-columns:40px 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.admin-metrics button>span{grid-row:1 / span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e8f3ec;color:#24714e}.admin-metrics strong{font-size:var(--ui-text-section);line-height:1.15}.admin-metrics small{margin-top:4px;color:#75867b;font-size:var(--ui-text-xs);line-height:1.5}.admin-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.75fr);gap:14px;align-items:start}.admin-panel{border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 28px #1735280a}.admin-panel-head{padding:19px 20px 14px;border-bottom:1px solid var(--line)}.admin-panel-head .eyebrow{margin-bottom:4px}.admin-panel h3{margin:0;font-size:var(--ui-text-body)}.admin-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px}.admin-action-grid button{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:76px;padding:11px 12px;border-color:#e4ece6;background:#fafcfb;text-align:left}.admin-action-grid button:hover{border-color:#9fc8af;background:#eff7f2}.admin-action-grid button>span:first-child{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e6f2ea;color:#20704b}.admin-action-grid b,.admin-action-grid small{display:block}.admin-action-grid b{font-size:var(--ui-text-xs);line-height:1.55}.admin-action-grid small{margin-top:3px;color:#74847a;font-size:var(--ui-text-xs);line-height:1.55}.admin-action-grid i{color:#7c9a88;font-style:normal}.admin-action-grid strong{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:999px;background:#dfeee5;color:#1b6545;font-size:var(--ui-text-xs)}.admin-division-summary{padding:6px 18px 12px}.admin-division-summary button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-bottom:1px solid #edf1ee}.admin-division-summary button:last-child{border-bottom:0}.admin-division-summary b,.admin-division-summary small{display:block}.admin-division-summary b{font-size:var(--ui-text-xs);line-height:1.55}.admin-division-summary small{margin-top:3px;color:#7a8980;font-size:var(--ui-text-xs);line-height:1.45}.admin-division-summary strong{display:grid;place-items:center;min-width:30px;height:30px;border-radius:9px;background:#f0f5f2;color:#397153}.admin-health{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:18px 20px}.admin-health .eyebrow{margin-bottom:4px}.admin-health-status{display:grid;grid-template-columns:9px auto;gap:3px 9px;align-items:center;margin-top:10px}.admin-health-status span{grid-row:1 / span 2;width:9px;height:9px;border-radius:50%}.health-ok{background:#45a771;box-shadow:0 0 0 5px #45a77116}.health-bad{background:#c96b57;box-shadow:0 0 0 5px #c96b5716}.admin-health-status b{font-size:var(--ui-text-xs)}.admin-health-status small{grid-column:2;color:#718078;font-size:var(--ui-text-xs)}.admin-health button{white-space:nowrap}
@media(max-width:980px){.admin-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-layout{grid-template-columns:1fr}.admin-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.icon{width:17px;height:17px}.admin-page{margin-bottom:20px}.admin-hero{align-items:flex-start;flex-direction:column;padding:21px 18px;border-radius:18px}.admin-hero h2{font-size:var(--ui-text-section)}.admin-hero .primary{width:100%}.admin-metrics{gap:8px;margin:10px 0}.admin-metrics button{grid-template-columns:34px 1fr;padding:12px;column-gap:9px}.admin-metrics button>span{width:34px;height:34px}.admin-metrics strong{font-size:var(--ui-text-section)}.admin-action-grid{grid-template-columns:1fr;padding:10px}.admin-health{align-items:stretch;flex-direction:column}.admin-health button{width:100%}}
@media(max-width:390px){.admin-metrics{grid-template-columns:1fr}.admin-action-grid button{grid-template-columns:36px minmax(0,1fr) auto}.admin-action-grid button>span:first-child{width:36px;height:36px}}

/* Role-aware shortcuts */
.header-actions .header-primary{border:1px solid #cfe1d5;background:#edf5f0;color:#185b3e;font-weight:var(--ui-weight-strong)}.header-actions .header-primary:hover{background:#dfeee5}.header-actions .header-primary .icon,.header-actions #refresh-button .icon{width:15px;height:15px}.board-quick-actions{display:grid;grid-template-columns:minmax(190px,.55fr) minmax(0,1.45fr);gap:18px;align-items:center;margin:0 0 16px;padding:18px 20px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 10px 28px #1735280a}.board-quick-actions .eyebrow{margin-bottom:4px}.board-quick-actions h2{margin:0;font-size:var(--ui-text-input)}.board-quick-actions>div>p:last-child{margin:6px 0 0;color:#718178;font-size:var(--ui-text-xs);line-height:1.6}.board-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.quick-action-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;min-height:74px;padding:11px 12px;border-color:#e3ebe5;background:#fafcfb;text-align:left}.quick-action-card:hover{border-color:#9fc8af;background:#eff7f2}.quick-action-card>span:first-child{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e6f2ea;color:#20704b}.quick-action-card b,.quick-action-card small{display:block}.quick-action-card b{font-size:var(--ui-text-xs);line-height:1.45}.quick-action-card small{margin-top:3px;color:#74847a;font-size:var(--ui-text-xs);line-height:1.45}.quick-action-card strong{display:grid;place-items:center;min-width:27px;height:27px;padding:0 7px;border-radius:999px;background:#dfeee5;color:#1b6545;font-size:var(--ui-text-xs)}.quick-arrow{width:15px;height:15px;color:#7c9a88}.quick-action-card.compact{grid-template-columns:34px minmax(0,1fr) auto;min-height:62px;padding:9px}.quick-action-card.compact>span:first-child{width:34px;height:34px}.quick-action-card.compact small{display:none}#quick-actions-dialog{width:min(760px,calc(100vw - 24px));padding:0;overflow:hidden}#quick-actions-dialog .modal-head{margin:0;padding:22px 24px 15px;border-bottom:1px solid var(--line)}.quick-dialog-copy{margin:0;padding:15px 24px 0;color:#65786d;font-size:var(--ui-text-xs)}.quick-dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:min(620px,65vh);overflow:auto;padding:15px 24px 24px}
@media(max-width:980px){.board-quick-actions{grid-template-columns:1fr}.board-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.header-actions{gap:3px}.header-actions button{padding:5px 7px}.header-actions .header-primary{min-height:34px}.board-quick-actions{gap:13px;margin-bottom:10px;padding:15px;border-radius:15px}.board-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-action-card.compact{min-height:58px}.quick-dialog-grid{padding:12px 16px 20px}.quick-dialog-copy{padding:13px 17px 0}#quick-actions-dialog .modal-head{padding:19px 17px 14px}}
@media(max-width:520px){.header-actions .header-primary{font-size:0}.header-actions .header-primary .icon{width:18px;height:18px}.board-quick-grid,.quick-dialog-grid{grid-template-columns:1fr}.quick-action-card.compact small{display:block}.quick-action-card.compact{grid-template-columns:36px minmax(0,1fr) auto}.quick-action-card.compact>span:first-child{width:36px;height:36px}}
.admin-metrics button{text-align:left;cursor:pointer}.admin-metrics button:hover{border-color:#9fc8af;background:#f6faf7}.admin-division-summary button{width:100%;border:0;border-bottom:1px solid #edf1ee;border-radius:0;background:#fff;text-align:left}.admin-division-summary button:hover{background:#f6faf7}.admin-division-summary button.needs-attention{color:#7d5319;background:#fffaf1}.board-attention-actions{display:grid;gap:7px;padding:0 18px 14px}.board-attention-actions .board-all{width:100%;margin:0}.profile-correction{display:block;margin:-3px 0 14px;color:#176b49;font-size:var(--ui-text-xs);line-height:1.6}.system-tool-grid small,.admin-action-grid small,.quick-action-card small{font-size:var(--ui-text-xs)}.system-group-head p,.admin-division-summary small,.admin-health-status small{font-size:var(--ui-text-xs)}nav button,.attention-action,.board-all{min-height:44px}
.roster-filters{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px;padding:0 20px}.roster-filters button{min-height:38px;padding:7px 11px;font-size:var(--ui-text-xs)}.roster-filters button[aria-pressed="true"]{border-color:#96c4a8;background:#e8f3ec;color:#176b49;font-weight:var(--ui-weight-strong)}@media(max-width:520px){.roster-filters{padding:0 14px}.roster-filters button{flex:1 1 calc(50% - 7px);min-height:44px}}
.bulk-assign{display:grid;grid-template-columns:minmax(190px,1fr) minmax(170px,.7fr) minmax(190px,.8fr) auto;gap:10px;align-items:end;margin:0 20px 16px;padding:15px;border:1px solid #cfe1d5;border-radius:14px;background:#f4faf6}.bulk-assign>div{align-self:center}.bulk-assign b,.bulk-assign small{display:block}.bulk-assign small{margin-top:4px;color:#66796e;font-size:var(--ui-text-xs);line-height:1.5}.bulk-assign label{margin:0}.bulk-assign .form-error{grid-column:1 / -1;margin:0}.bulk-member-check{display:flex;align-items:center;gap:7px;margin:-4px 0 12px;padding:8px 10px;border-radius:9px;background:#f4f8f5;font-size:var(--ui-text-xs)}.bulk-member-check input{width:auto;margin:0}@media(max-width:980px){.bulk-assign{grid-template-columns:1fr 1fr}.bulk-assign>div,.bulk-assign .form-error{grid-column:1 / -1}}@media(max-width:520px){.bulk-assign{grid-template-columns:1fr;margin:0 14px 14px}.bulk-assign>div,.bulk-assign .form-error{grid-column:auto}.bulk-assign .primary{width:100%}}
.quick-help-check{align-items:flex-start;margin:2px 0 14px;padding:11px 12px;border:1px solid #dce9e1;border-radius:11px;background:#f7faf8}.quick-help-check input{width:auto;margin-top:3px}.quick-help-check b,.quick-help-check small{display:block}.quick-help-check small{margin-top:3px;color:#687a70;font-size:var(--ui-text-xs);line-height:1.5}

/* Single school-account sign-in flow */
.login-page{min-height:100vh;background:#f2f6f3}.login-shell{min-height:100vh;margin:0 auto;padding:42px;max-width:1120px;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,460px);gap:54px;align-items:center}.login-brand{padding:30px}.login-brand img{width:108px;height:108px;object-fit:contain;margin-bottom:20px}.login-brand h1{font-size:42px;line-height:1.25;max-width:620px}.login-brand>p:not(.eyebrow){font-size:var(--ui-text-input);line-height:1.9;color:#61756a;max-width:590px}.login-brand ol{margin:30px 0 0;padding:0;list-style:none;display:grid;gap:12px;counter-reset:login-step}.login-brand li{counter-increment:login-step;display:flex;align-items:center;gap:12px;color:#52665b}.login-brand li::before{content:counter(login-step);width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e4f1e9;color:#187552;font-weight:var(--ui-weight-strong)}.login-panel{background:white;border:1px solid #dfe9e2;border-radius:26px;padding:34px;box-shadow:0 24px 70px #153e2b12}.login-panel h2{font-size:var(--ui-text-page);line-height:1.45;margin:0 0 8px}.login-panel>p:not(.eyebrow):not(.form-error){color:#61756a;line-height:1.8}.login-panel #clerk-sign-in{display:grid;place-items:center;margin:22px -10px 6px}.hosted-login-button{display:flex;width:100%;min-height:50px;align-items:center;justify-content:center;text-align:center;text-decoration:none}.login-actions{display:grid;gap:10px;margin:22px 0}.login-actions a,.login-back{display:block;text-align:center;color:#286a4b;line-height:1.7;padding:8px}.login-panel>small{display:block;margin-top:18px;color:#829086;line-height:1.7;text-align:center}.account-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}.account-actions button:last-child{grid-column:1/-1;color:#a14942}.profile-secondary-actions{display:flex;gap:10px;margin-top:10px}.profile-secondary-actions button{flex:1}.profile-secondary-actions #profile-switch-account{color:#286a4b}
@media(max-width:760px){.login-shell{padding:24px 18px;grid-template-columns:1fr;gap:10px;align-items:start}.login-brand{padding:12px 8px}.login-brand img{width:72px;height:72px;margin-bottom:8px}.login-brand h1{font-size:var(--ui-text-page)}.login-brand>p:not(.eyebrow){font-size:var(--ui-text-sm)}.login-brand ol{display:none}.login-panel{padding:26px 18px;border-radius:22px}.login-panel h2{font-size:var(--ui-text-section)}.account-actions{grid-template-columns:1fr}.account-actions button:last-child{grid-column:auto}}
.login-compact .login-shell{grid-template-columns:minmax(0,1fr) minmax(340px,420px);max-width:960px}.login-compact .login-brand{padding:24px}.login-compact .login-brand h1{max-width:480px}.login-compact .login-brand>p:not(.eyebrow){margin-top:10px}.login-compact .login-panel{min-height:280px;display:flex;flex-direction:column;justify-content:center}.login-compact .login-panel #login-description:empty{display:none}
@media(max-width:760px){.login-compact .login-shell{grid-template-columns:1fr}.login-compact .login-brand{padding:8px;text-align:center}.login-compact .login-brand img{width:54px;height:54px}.login-compact .login-brand h1{font-size:var(--ui-text-section)}.login-compact .login-panel{min-height:0}}

/* Canonical meeting workspace */
.election-status{margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid #ffffff24}.election-status>p{margin:10px 0 0;color:#d0dfd6;font-size:var(--ui-text-xs);line-height:1.7}.election-status .election-time{color:#fff;font-weight:var(--ui-weight-strong)}.election-status.published{padding:14px;border:1px solid #75d99c55;border-radius:14px;background:#ffffff0a}
.vote-panel .voting-status{padding:20px 22px}.vote-panel .voting-status>p{color:#d0dfd6;font-size:var(--ui-text-xs);line-height:1.7}.vote-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;border:1px solid #ffffff38;border-radius:10px;background:#ffffff08;color:#fff;font-size:var(--ui-text-xs)}.vote-actions button.primary{border-color:#fff;background:#fff;color:#1b5039}.meeting-page{max-width:960px;margin:0 auto 28px}.meeting-vote-panel{max-width:none}.meeting-vote-panel .voting-status{padding:28px}.meeting-page .vote-head b{font-size:var(--ui-text-body)}.meeting-page .current-motion strong{font-size:var(--ui-text-body)}.meeting-page .vote-actions button{min-height:48px;padding:10px 16px;font-size:var(--ui-text-xs)}
.vote-upcoming{display:grid;gap:6px;min-width:0}.vote-upcoming-label{color:#bcd6c7;font-size:var(--ui-text-xs);font-weight:650}.vote-upcoming strong{font-size:var(--ui-text-section);line-height:1.4}.vote-upcoming-time{font-size:var(--ui-text-sm);line-height:1.5;color:#fff}.vote-upcoming-title{font-size:var(--ui-text-xs);line-height:1.55;color:#d0dfd6}.meeting-page .vote-upcoming strong{font-size:var(--ui-text-page)}
@media(max-width:760px){.meeting-page{margin-bottom:18px}.meeting-vote-panel .voting-status{padding:20px 18px}.meeting-page .vote-actions{display:grid}.meeting-page .vote-actions button{width:100%}}
.meeting-motions-panel{margin-top:16px}.meeting-motions-panel .board-panel-head{padding:17px 22px}.meeting-motions-panel .board-panel-head h2{font-size:var(--ui-text-card)}.meeting-motions{padding:16px 22px 22px}.meeting-motion-list{display:grid;gap:10px}.meeting-motion{padding:16px;border:1px solid #e0ebe3;border-radius:13px;background:#fbfdfb}.meeting-motion-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.meeting-motion-head small{color:#627b6b;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.meeting-motion-status{padding:5px 9px;border-radius:999px;background:#e8f1eb;color:#28684b;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.meeting-motion-status.open{background:#dff1e6;color:#176c45}.meeting-motion-status.closed{background:#e9eff1;color:#49616b}.meeting-motion-status.cancelled{background:#f3ebeb;color:#895050}.meeting-motion h3{margin:9px 0 0;font-size:var(--ui-text-body);line-height:1.55}.meeting-motion-detail{margin:7px 0 0;color:#5f7568;font-size:var(--ui-text-xs);line-height:1.7;white-space:pre-wrap}.meeting-motion-result{margin:11px 0 0;padding-top:10px;border-top:1px solid #e5eee8;color:#416950;font-size:var(--ui-text-xs);line-height:1.6}.meeting-motion-empty{padding:18px;color:#728579;font-size:var(--ui-text-xs)}.meeting-motion-note{margin:12px 0 0;color:#7b6a49;font-size:var(--ui-text-xs)}
.meeting-motion-options{display:grid;gap:5px;margin:11px 0 0;padding:0;list-style:none}.meeting-motion-options li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:8px;background:#eef5f0;color:#4c6755;font-size:var(--ui-text-xs)}.meeting-motion-options b{color:#216a47;white-space:nowrap}
.meeting-history-panel{margin-top:16px}.meeting-history-panel .board-panel-head{padding:17px 22px}.meeting-history-panel .board-panel-head h2{font-size:var(--ui-text-card)}.meeting-history{padding:12px 22px 20px}.meeting-history-item{border-bottom:1px solid #e7eee9}.meeting-history-item:last-child{border-bottom:0}.meeting-history-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;cursor:pointer;list-style:none}.meeting-history-item summary::-webkit-details-marker{display:none}.meeting-history-item summary span{min-width:0}.meeting-history-item summary b,.meeting-history-item summary small{display:block}.meeting-history-item summary b{font-size:var(--ui-text-sm);line-height:1.55}.meeting-history-item summary small{margin-top:3px;color:#829388;font-size:var(--ui-text-xs)}.meeting-history-item summary strong{flex:none;color:#416b51;font-size:var(--ui-text-xs)}.meeting-history-body{padding:0 0 16px}.meeting-history-body .meeting-motion-empty{padding:11px 0}
@media(max-width:760px){.meeting-history-panel{margin-top:10px}.meeting-history-panel .board-panel-head{padding:15px 17px}.meeting-history{padding:8px 16px 16px}.meeting-history-item summary{min-height:58px}.meeting-history-item summary b{font-size:var(--ui-text-xs)}}
@media(max-width:760px){.meeting-motions-panel{margin-top:10px}.meeting-motions-panel .board-panel-head{padding:15px 17px}.meeting-motions{padding:12px 16px 17px}.meeting-motion{padding:13px}.meeting-motion h3{font-size:var(--ui-text-body)}.meeting-motion-detail{font-size:var(--ui-text-xs)}.meeting-motion-result{font-size:var(--ui-text-xs)}}

/* Authentication recovery and mobile first action */
.login-account{padding:9px 11px;border-radius:10px;background:#f1f6f3;color:#3f6552!important;font-size:var(--ui-text-xs);overflow-wrap:anywhere}dialog:not(.drawer){max-height:min(90vh,860px);overflow:auto}
@media(max-width:760px){.login-panel{order:1}.login-brand{order:2;text-align:center}.login-brand img{width:48px;height:48px}.login-brand h1{font-size:var(--ui-text-section)}.login-brand>p:not(.eyebrow),.login-brand ol{display:none}.login-shell{padding-top:16px}.login-page input,.login-page select,.login-page textarea,.profile-dialog input,.profile-dialog select,.profile-dialog textarea,.intake-page input,.intake-page select,.intake-page textarea{font-size:var(--ui-text-input)}.profile-dialog{max-height:calc(100dvh - 24px);overflow:auto}}

/* Formal command-line matters and clearly separate direct sends */
.matters-dialog{width:min(920px,calc(100vw - 24px));padding:0}.matters-dialog>.modal-head{margin:0;padding:22px 24px 15px;border-bottom:1px solid var(--line)}.matter-intro{margin:0;padding:15px 24px;color:#5e7066;background:#f6faf7;font-size:var(--ui-text-xs);line-height:1.7}.matter-create{margin:18px 24px;padding:18px;border:1px solid #cde2d4;border-radius:15px;background:#f7fbf8}.matter-create h3{margin:0 0 13px}.matter-list{display:grid;gap:12px;padding:0 24px 24px}.matter-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:#fff}.matter-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.matter-head span{color:#5f7869;font-size:var(--ui-text-xs)}.matter-head h3{margin:4px 0 0;font-size:var(--ui-text-body)}.matter-head>b{padding:5px 9px;border-radius:999px;background:#e8f3ec;color:#176b49;font-size:var(--ui-text-xs);white-space:nowrap}.matter-card>p{color:#61756a;font-size:var(--ui-text-xs);line-height:1.65}.matter-chain{padding:9px 11px;border-radius:10px;background:#f4f8f5}.matter-history{display:grid;gap:7px;margin:14px 0;padding:0;list-style:none}.matter-history li{display:grid;grid-template-columns:auto 1fr;gap:3px 9px;padding:9px 10px;border-left:3px solid #78ad8b;background:#f8faf8}.matter-history b{font-size:var(--ui-text-xs)}.matter-history small{grid-column:2;color:#6f7f76;font-size:var(--ui-text-xs)}.matter-channel{padding:3px 7px;border-radius:999px;background:#dfeee5;color:#176b49;font-size:8px;font-weight:var(--ui-weight-strong)}.matter-channel.direct{background:#fff0d8;color:#8b5b16}.matter-route-form,.matter-direct-form{display:grid;grid-template-columns:1fr 1fr auto;gap:9px;align-items:end;margin-top:13px;padding:13px;border-radius:12px;background:#f3f8f5}.matter-route-form label,.matter-direct-form label{margin:0}.matter-route-form .form-error,.matter-direct-form .form-error{grid-column:1/-1}.matter-direct{margin-top:10px}.matter-direct summary{color:#80591f;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong);cursor:pointer}.vice-branch{border-color:#b9d9c5!important;background:#f0f8f3!important}
@media(max-width:760px){.matters-dialog>.modal-head{padding:18px 16px 13px}.matter-intro{padding:13px 16px}.matter-create{margin:14px 16px;padding:14px}.matter-list{padding:0 16px 18px}.matter-route-form,.matter-direct-form{grid-template-columns:1fr}.matter-route-form .form-error,.matter-direct-form .form-error{grid-column:auto}.matter-head{flex-direction:column}}

/* Internal correspondence register */
.correspondence-dialog{width:min(940px,calc(100vw - 24px));padding:0}.correspondence-dialog>.modal-head{margin:0;padding:22px 24px 15px;border-bottom:1px solid var(--line)}.correspondence-intro{margin:0;padding:14px 24px;background:#f5f9f6;color:#5f7167;font-size:var(--ui-text-xs);line-height:1.7}.correspondence-create{margin:18px 24px;padding:18px;border:1px solid #cde2d4;border-radius:15px;background:#f7fbf8}.correspondence-create h3{margin:0 0 14px}.correspondence-sender{margin:0 0 13px;padding:10px 12px;border-radius:10px;background:#edf5f0;color:#3f6552;font-size:var(--ui-text-xs)}.correspondence-list{display:grid;gap:11px;padding:0 24px 24px}.correspondence-list-head{display:flex;align-items:center;justify-content:space-between}.correspondence-list-head h3{margin:0}.correspondence-list-head span{color:#718078;font-size:var(--ui-text-xs)}.correspondence-card{padding:17px;border:1px solid var(--line);border-left:4px solid #8aab97;border-radius:15px;background:#fff}.correspondence-card.urgency-urgent{border-left-color:#d5a14b}.correspondence-card.urgency-very_urgent{border-left-color:#d17747}.correspondence-card.urgency-most_urgent{border-left-color:#b54d45}.correspondence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.correspondence-head span{color:#547060;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.correspondence-head h3{margin:4px 0 0;font-size:var(--ui-text-body)}.correspondence-head>div:last-child{display:flex;align-items:flex-end;gap:5px;flex-direction:column}.correspondence-head b,.correspondence-head em{padding:4px 8px;border-radius:999px;font-size:var(--ui-text-xs);font-style:normal;white-space:nowrap}.correspondence-head b{background:#fff0da;color:#875714}.correspondence-head em{background:#e8f3ec;color:#176b49}.correspondence-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.correspondence-card dl>div{padding:9px 10px;border-radius:10px;background:#f5f8f6}.correspondence-card dt{color:#75867b;font-size:var(--ui-text-xs)}.correspondence-card dd{margin:3px 0 0;color:#355944;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.correspondence-details{white-space:pre-wrap;color:#5c7064;font-size:var(--ui-text-xs);line-height:1.7}.correspondence-files{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:11px;border-top:1px solid #edf1ee;font-size:var(--ui-text-xs)}.correspondence-files a{padding:7px 9px;border-radius:9px;background:#edf5f0;color:#1b6746;text-decoration:none}.correspondence-files small{color:#72847a}.correspondence-files>span{color:#849188}.correspondence-confirm{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end;margin-top:13px;padding:12px;border-radius:11px;background:#f3f8f5}.correspondence-confirm label{margin:0}.correspondence-confirm .form-error{grid-column:1/-1}.correspondence-receipt{display:grid;gap:3px;margin:13px 0 0;padding:11px 12px;border-radius:10px;background:#eaf5ee;color:#245d40;font-size:var(--ui-text-xs)}.correspondence-receipt span{color:#5d7466}
@media(max-width:760px){.correspondence-dialog>.modal-head{padding:18px 16px 13px}.correspondence-intro{padding:13px 16px}.correspondence-create{margin:14px 16px;padding:14px}.correspondence-list{padding:0 16px 18px}.correspondence-card dl{grid-template-columns:1fr}.correspondence-head{flex-direction:column}.correspondence-head>div:last-child{align-items:flex-start;flex-direction:row}.correspondence-confirm{grid-template-columns:1fr}.correspondence-confirm .form-error{grid-column:auto}.correspondence-confirm button{width:100%}}

/* Compact work surfaces: controls and names carry the hierarchy without fake portraits or narration. */
#subtitle,.avatar{display:none!important}.heading{align-items:center}.heading>.primary,.board-panel-head>button,.form-footer button,.actions button{min-height:44px}.heading>.primary{display:inline-flex;align-items:center;justify-content:center;gap:7px}.person-card,.member-top,.owner-cell{min-width:0}.member-top>div,.owner-cell{overflow-wrap:anywhere}.person-card h3,.person-card p,.member-top p{overflow-wrap:anywhere;word-break:normal}.danger{border-color:#ebc7c2;background:var(--ui-danger-soft);color:var(--ui-danger)}.trash-list{display:grid;gap:10px}.trash-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--line);border-radius:14px}.trash-row h3{margin:0;font-size:var(--ui-text-body)}.trash-row p,.trash-row small{display:block;margin:5px 0 0;color:#718078;font-size:var(--ui-text-xs);line-height:1.6}.trash-row button{min-height:44px;flex:0 0 auto}
@media(max-width:760px){.heading{gap:12px}.heading>.primary{margin-top:0}.trash-row{align-items:stretch;flex-direction:column}.trash-row button{width:100%}.form-footer{position:sticky;bottom:-22px;background:#fff;padding-bottom:4px}.form-footer button{flex:1}}

/* Google Drive pilot */
.drive-status,.drive-link{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.drive-status{padding:14px;border:1px solid var(--line);border-radius:14px}.drive-task-panel{margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}.drive-link-list{display:grid;gap:8px;margin:10px 0}.drive-link{padding:10px;border:1px solid var(--line);border-radius:12px}.drive-link a{overflow-wrap:anywhere}.drive-task-panel form{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.drive-task-panel form label{flex:1 1 240px}

/* Division directory and focused division page */
.division-card{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;align-items:center;gap:10px;width:100%;min-height:72px;text-align:left}.division-card span,.division-card b,.division-card small{display:block}.division-card b{font-size:var(--ui-text-xs);line-height:1.6}.division-card small{margin-top:4px;color:#75867b;font-size:var(--ui-text-xs)}.division-card strong{padding:5px 9px;border-radius:999px;background:#e8f3ec;color:#176b49;font-size:var(--ui-text-xs)}.division-card i{color:#7c9a88;font-size:var(--ui-text-section);font-style:normal}.division-dialog{width:min(760px,calc(100vw - 28px));padding:0;overflow:hidden}.division-page-head{display:flex;align-items:flex-start;gap:14px;padding:23px 24px 19px;border-bottom:1px solid var(--line);background:linear-gradient(145deg,#184d38,#287052);color:#fff}.division-page-head>button{flex:0 0 44px;width:44px;padding:0;border-color:#ffffff38;background:#ffffff14;color:#fff}.division-page-head .eyebrow{color:#cde4d7}.division-page-head h2{margin:0;font-size:var(--ui-text-section);line-height:1.45}.division-page-list{max-height:70vh;overflow:auto;padding:14px 18px 20px}.division-page-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:11px;padding:13px 4px;border-bottom:1px solid #edf1ee}.division-page-list article:last-child{border-bottom:0}.division-page-list b,.division-page-list small{display:block}.division-page-list b{font-size:var(--ui-text-xs);line-height:1.55}.division-page-list small{margin-top:4px;color:#75867b;font-size:var(--ui-text-xs);line-height:1.55}.division-page-list article>button{min-height:44px;padding:7px 11px;font-size:var(--ui-text-xs)}
@media(max-width:760px){.division-dialog{inset:0;width:100%;max-width:100%;height:100%;max-height:100%;border-radius:0}.division-page-head{padding:18px 16px 16px}.division-page-head h2{font-size:var(--ui-text-section)}.division-page-list{max-height:calc(100dvh - 102px);padding:8px 14px 20px}.division-card{min-height:64px}}

/* Mobile-first hierarchy: actions stay reachable without letting navigation dominate the screen. */
body:has(#admin-view:not([hidden])) .heading{display:none}
@media(max-width:760px){
 .sidebar{padding:10px 14px 9px}.brand{min-height:36px}.brand img{width:34px;height:36px}.brand span{display:none}.sidebar-bottom{right:14px;top:10px}
 nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;margin-top:8px}nav button{min-height:42px;padding:7px 3px;gap:5px;justify-content:center}nav button span{font-size:var(--ui-text-xs)}.nav-icon{width:17px;height:17px;flex-basis:17px}.nav-icon .icon{width:15px;height:15px}
 header{height:48px}.crumbs{display:none}.heading{margin:17px 0 15px}.heading p:last-child{display:none}h1{font-size:var(--ui-text-page)}
 .board-quick-actions{padding:13px}.quick-action-card.compact{min-height:52px}.quick-action-card.compact small{display:none!important}
 .roster-filters{gap:6px;padding:0 14px 12px;margin:0}.roster-filters button{flex:1 1 calc(50% - 6px);min-height:42px}
 .org-overview{padding:0 14px 16px;gap:8px}.org-overview details.org-branch summary{min-height:54px;padding:12px}.division-member-list>div{padding:12px}.division-member-list button{min-height:44px}
}
@media(max-width:390px){nav button{flex-direction:column;gap:2px}nav button span{font-size:8px}.header-actions .local-label{display:none}}

/* Official directory maintenance */
.admin-health-actions{display:flex;gap:8px}.admin-health-actions button{display:inline-flex;align-items:center;justify-content:center;gap:8px}
@media(max-width:760px){.admin-health-actions{display:grid}.admin-health-actions button{width:100%}}

/* One task workspace: scope first, then status. */
.assigned-count{font-size:var(--ui-text-xs);color:var(--muted);white-space:nowrap}.assigned-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:16px var(--layout-inset,20px);border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;text-align:left}.assigned-item>span:first-child{min-width:0}.assigned-item b,.assigned-item small{display:block;overflow-wrap:anywhere}.assigned-item b{font-size:var(--ui-text-sm);line-height:1.6}.assigned-item small{font-size:var(--ui-text-xs);line-height:1.7;color:var(--muted);margin-top:4px}.assigned-item:hover{background:#f4f8f5}
.voting-entry-error,.meeting-sync-warning{padding:12px 16px;border:1px solid #e8cbb0;border-radius:var(--radius-md);background:#fff8ef;color:#795324;font-size:var(--ui-text-sm);line-height:1.6}.meeting-sync-warning{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
@media(max-width:760px){.work-head .division-filter{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;font-size:var(--ui-text-xs);width:100%;min-width:0}.work-head .division-filter select{width:100%;max-width:100%;min-width:0;min-height:44px;font-size:var(--ui-text-input)}}
.task-scope-tabs{display:flex;gap:6px;padding:14px 20px 0;background:#fff;flex-wrap:wrap}.task-scope-tabs[hidden]{display:none!important}.task-scope-tabs button{min-height:38px;padding:7px 13px;border:0;background:#f4f7f5;color:#65776c;font-size:var(--ui-text-xs)}.task-scope-tabs button.active{background:#dfeee5;color:#176b49;font-weight:var(--ui-weight-strong)}
@media(max-width:760px){nav{grid-template-columns:repeat(3,minmax(0,1fr))}.task-scope-tabs{display:flex;flex-wrap:wrap;gap:5px;padding:10px 12px 0}.task-scope-tabs button{flex:1 1 auto;padding:7px 9px;font-size:var(--ui-text-xs)}}
@media(max-width:760px){.task-scope-tabs:has([data-scope-view="assigned"]:not([hidden])){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.task-scope-tabs button{min-width:0}}

/* Clear, compact journeys: one page title, immediate actions, readable touch controls. */
body:has(#meeting-view:not([hidden])) .heading,
body:has(#committee-tools:not([hidden])) .heading{display:none}
.board-quick-actions{display:block;padding:10px 12px}
.board-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-action-card{min-height:58px}
.quick-action-card b,.system-tool-grid b,.admin-action-grid b{font-size:var(--ui-text-sm)}
.system-hero{grid-template-columns:1fr;gap:14px;padding:20px 22px}
.system-hero h2{font-size:var(--ui-text-section)}
.system-now{grid-template-columns:repeat(3,minmax(0,1fr))}
.system-now button{min-height:52px;padding:8px 10px;gap:4px}
.system-now button.primary{display:flex;justify-content:center}
.system-now b,.system-now span{font-size:var(--ui-text-xs);line-height:1.4}
.system-now strong{font-size:var(--ui-text-section)}
.system-tool-grid small{display:none}
.system-tool-grid button{min-height:56px}
.system-find{margin:14px 0 12px}
.system-find small{font-size:var(--ui-text-xs)}
.task-scope-tabs button,.tabs button,.roster-filters button{font-size:var(--ui-text-xs);min-height:44px}
.mobile-status-filter{display:none}
.task h3,.task .meta,.due-cell,.badge,.progress-line{font-size:var(--ui-text-xs)}
.search input,.list-caption,.list-caption select{font-size:var(--ui-text-xs)}
.division-card b,.division-page-list b{font-size:var(--ui-text-body)}
.division-card small,.division-page-list small{font-size:var(--ui-text-xs)}
@media(max-width:760px){
 .sidebar{padding:10px 14px 12px}
 .account-button .avatar{display:inline-flex!important;width:36px;height:36px;font-size:var(--ui-text-body)}
 nav{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 nav button{min-height:48px;gap:5px;padding:8px 6px;justify-content:center;text-align:center}
 nav button span{font-size:var(--ui-text-xs)}
 .nav-icon{width:17px;height:17px;flex-basis:17px}
 .board-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .board-quick-grid .quick-action-card:nth-child(n+3){display:none}
 .system-hero{padding:16px;gap:12px}
 .system-now{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
 .system-now button{min-height:52px}
 .system-find{padding:12px}
 .system-tool-grid button{min-height:56px}
 .task-scope-tabs button{font-size:var(--ui-text-xs)}
 .tabs{display:none!important}
 .mobile-status-filter{display:grid;flex:1 1 170px;margin:0;font-size:var(--ui-text-xs)}
 .mobile-status-filter select,.work-head .division-filter select{height:48px;min-height:48px;font-size:var(--ui-text-input)}
 .stats{display:none!important}
 .task h3,.task .meta,.badge,.progress-line{font-size:var(--ui-text-xs)}
 .header-actions .header-primary{font-size:var(--ui-text-xs);min-height:44px}
 .header-actions .header-primary .icon{width:16px;height:16px}
}
@media(max-width:390px){nav button{flex-direction:row;gap:4px}nav button span{font-size:var(--ui-text-xs)}}

/* Roster triage stays scan-friendly even when many members await a division. */
.unassigned-list{display:grid;gap:6px;padding:0 20px 20px}
.unassigned-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;border:1px solid var(--line);border-radius:12px;background:#fff}
.unassigned-row>label{display:flex;align-items:center;gap:12px;min-height:56px;margin:0;padding:9px 13px;cursor:pointer}
.unassigned-row input{width:20px;height:20px;margin:0;accent-color:var(--green)}
.unassigned-row b,.unassigned-row small{display:block;line-height:1.45}
.unassigned-row b{font-size:var(--ui-text-sm)}.unassigned-row small{margin-top:3px;color:#61756a;font-size:var(--ui-text-xs)}
.unassigned-row details{margin:0;padding:0 13px;border:0}
.unassigned-row details[open]{grid-column:1/-1;grid-row:2;padding-bottom:10px}
.unassigned-row summary{min-height:56px;margin:0;padding:17px 0;font-size:var(--ui-text-xs)}
.unassigned-row details[open] summary{min-height:44px;padding:10px 0}
.unassigned-row details p{font-size:var(--ui-text-xs);color:#61756a}
.unassigned-row details div{display:flex;gap:8px}
.unassigned-row details button{min-height:44px}
.bulk-assign #bulk-select-all{display:block;min-height:36px;margin-top:7px;padding:5px 9px;font-size:var(--ui-text-xs)}
@media(max-width:760px){.unassigned-list{padding:0 14px 18px}.bulk-assign{position:sticky;top:0;z-index:4;box-shadow:0 5px 15px #17352810}}

.correspondence-tabs{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 20px 14px}
.correspondence-tabs button{min-height:44px;font-size:var(--ui-text-sm)}
.correspondence-tabs button.active{border-color:#96c4a8;background:#e8f3ec;color:#176b49;font-weight:var(--ui-weight-strong)}
.correspondence-tabs span{margin-left:4px;color:#61756a}
@media(max-width:760px){.correspondence-tabs{margin:0 16px 12px}}
.correspondence-reference[readonly]{border-color:#bfdcc9;background:#edf5f0;color:#245d40;font-weight:var(--ui-weight-strong);cursor:default}
.correspondence-create .two{grid-template-columns:repeat(2,minmax(0,1fr))}.correspondence-create .two>label{min-width:0}.correspondence-create .two select{width:100%;min-width:0}
@media(max-width:600px){.correspondence-create .two{grid-template-columns:1fr}}
.board-system{margin:0 0 16px;padding:16px;border:1px solid #cde2d4;border-radius:18px;background:#f7fbf8}
.board-system-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.board-system-head h2{margin:0;font-size:var(--ui-text-card)}
.board-system-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.board-system-grid .quick-action-card{min-height:64px;background:#fff}
@media(max-width:760px){.board-system{margin-bottom:10px;padding:13px;border-radius:15px}.board-system-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.board-system-grid .quick-action-card{min-height:58px;padding:9px;grid-template-columns:34px minmax(0,1fr) auto;gap:7px}.board-system-grid .quick-action-card>span:first-child{width:34px;height:34px}.board-system-grid .quick-action-card b{font-size:var(--ui-text-xs)}.board-system-grid .quick-action-card small{display:none}}

/* Phone workspace shell */
@media(max-width:760px){
 .sidebar{position:relative;z-index:20;height:56px;padding:7px 16px;border-bottom:1px solid #dfe9e2}
 .brand{width:max-content;min-height:42px}.brand img{width:40px;height:42px}
 .sidebar-bottom{top:10px;right:15px}.account-button{width:36px;height:36px;min-height:36px}
 nav{position:fixed;inset:auto 0 0 0;z-index:30;display:flex;gap:2px;margin:0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #dce8df;background:#fff;box-shadow:0 -8px 24px #17352814}
 nav button{position:relative;display:flex;flex:1 1 0;flex-direction:column;gap:3px;min-width:0;min-height:52px;padding:5px 2px;border-radius:10px;color:#526c5d}
 nav button span{font-size:var(--ui-text-xs);line-height:1.2;white-space:nowrap}
 nav button .nav-icon{width:20px;height:20px;flex:0 0 20px}.nav-icon .icon{width:19px;height:19px}
 nav button b{position:absolute;top:1px;right:3px;margin:0}
 main{padding:0 16px calc(84px + env(safe-area-inset-bottom))}
 header{position:absolute;top:0;right:60px;z-index:21;width:auto;height:56px;border:0}
 header>span:first-child{display:none}.header-actions{gap:5px}
 .header-actions .header-primary{min-height:42px;padding:7px 10px;font-size:var(--ui-text-xs)}
 #refresh-button{width:42px;min-height:42px;padding:7px;font-size:0}
 #refresh-button .icon{width:18px;height:18px}
 .heading{margin:16px 0 14px}.heading .eyebrow{display:none}h1{font-size:var(--ui-text-page);line-height:1.3}
 .heading>.primary{min-height:42px;padding:7px 10px;font-size:var(--ui-text-xs)}
 .board-system{padding:14px}.board-system-grid .quick-action-card{min-height:64px}
 .board-system-grid .quick-action-card b{font-size:var(--ui-text-xs);line-height:1.35}
 .board-panel-head{padding:15px 17px}.board-empty{padding:30px 17px}.empty{padding:42px 18px}
 .task-scope-tabs button{font-size:var(--ui-text-sm)}.list-caption,.search input{font-size:var(--ui-text-sm)}
 .division-card small,.division-page-list small{color:#526b5b;font-size:var(--ui-text-xs)}
 .division-page-list article>button{font-size:var(--ui-text-xs)}
 .meeting-page .vote-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .meeting-page .vote-actions button:first-child{grid-column:1/-1}
 .meeting-page .vote-actions button{min-height:48px;font-size:var(--ui-text-sm);line-height:1.4}
 .meeting-page .sync-votes{min-height:44px;font-size:var(--ui-text-xs)}
 .meeting-history-item summary b,.meeting-motion-detail{font-size:var(--ui-text-sm)}
 dialog input,dialog select,dialog textarea{font-size:var(--ui-text-input);min-height:46px}
 dialog label{font-size:var(--ui-text-body)}
 .correspondence-dialog{inset:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;overflow:auto}
 .correspondence-dialog>.modal-head{position:sticky;top:0;z-index:2;background:#fff}
 .correspondence-create{margin:14px 16px 20px;padding:0;border:0;background:#fff}
 .correspondence-create>.two:first-child{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .correspondence-create>.two:first-child input{width:100%;min-width:0}
 .correspondence-create .muted{font-size:var(--ui-text-xs)}.correspondence-sender{font-size:var(--ui-text-sm)}
 .correspondence-create>button[type=submit]{width:100%;min-height:50px;font-size:var(--ui-text-body)}
}
@media(max-width:360px){
 .board-system-grid{grid-template-columns:1fr}
 .board-system-grid .quick-action-card{min-height:54px}
 .correspondence-create>.two:first-child{grid-template-columns:1fr}
 nav button span{font-size:var(--ui-text-xs)}
}

/* Shared workspace layout scale */
:root{--layout-max:1180px;--layout-gap:16px;--layout-inset:20px;--layout-radius:18px;--layout-top:34px}
.heading,.board-view,.meeting-page,.system-page,.admin-page,.workspace{max-width:var(--layout-max);margin-left:auto;margin-right:auto}
.heading,.meeting-page,.system-page,.admin-page{margin-top:var(--layout-top)}
.heading{margin-bottom:var(--layout-gap)}
.board-panel,.admin-panel,.system-group,.workspace,.board-system,.system-hero,.admin-hero,.system-find{border-radius:var(--layout-radius)}
.board-grid,.board-side,.system-groups,.admin-layout{gap:var(--layout-gap)}
.board-system{margin-bottom:var(--layout-gap);padding:var(--layout-inset)}
.meeting-motions-panel,.meeting-history-panel{margin-top:var(--layout-gap)}
.admin-metrics{gap:var(--layout-gap);margin:var(--layout-gap) 0}
.admin-health{margin-top:var(--layout-gap)}
.system-find{margin:var(--layout-gap) 0;padding:var(--layout-inset)}
.system-group,.system-hero,.admin-hero{padding:var(--layout-inset)}
.board-panel-head,.admin-panel-head,.meeting-motions-panel .board-panel-head,.meeting-history-panel .board-panel-head{padding:var(--layout-inset)}
.admin-action-grid{padding:var(--layout-inset)}
@media(max-width:760px){
 :root{--layout-gap:12px;--layout-inset:16px;--layout-top:16px}
 .board-system-grid{gap:8px}
 .task-scope-tabs{padding:var(--layout-inset) var(--layout-inset) 0}
 .work-head,.people-grid{padding:var(--layout-inset)}
 .roster-filters{padding:0 var(--layout-inset) var(--layout-inset)}
 .list-caption{padding:10px var(--layout-inset)}
 #message{bottom:calc(78px + env(safe-area-inset-bottom))}
}

/* Keep the two primary add actions on one line, including at phone widths. */
#quick-actions-button,#board-new-task{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
#quick-actions-button>[data-icon],#board-new-task>[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}

/* Meeting schedule, presenter links, and division summaries share one compact page. */
.meeting-plans-panel{margin-bottom:var(--layout-gap)}
.meeting-plans-panel .board-panel-head{padding:var(--layout-inset);align-items:center}
.meeting-plans-panel .board-panel-head h2{font-size:var(--ui-text-section)}
.meeting-plans-panel .board-panel-head button{display:inline-flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap}
.meeting-plans{display:grid;gap:12px;padding:0 var(--layout-inset) var(--layout-inset)}
.meeting-plan-card{border:1px solid #dfe9e2;border-radius:14px;background:#fbfdfb;overflow:hidden}
.meeting-plan-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px}
.meeting-plan-top>div:first-child{min-width:0}
.meeting-plan-top small{display:block;color:#50725d;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong);line-height:1.5}
.meeting-plan-top h3{margin:5px 0 0;color:#203d2d;font-size:var(--ui-text-input);line-height:1.5;overflow-wrap:anywhere}
.meeting-plan-top p{margin:7px 0 0;color:#617568;font-size:var(--ui-text-xs);line-height:1.6;white-space:pre-wrap}
.meeting-plan-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:7px;flex:none}
.meeting-plan-actions button{min-height:44px;padding:8px 11px;font-size:var(--ui-text-xs)}
.meeting-plan-detail{border-top:1px solid #e5eee8;padding:0;margin:0}
.meeting-plan-detail summary{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:10px 18px;margin:0;cursor:pointer;color:#2f5b41;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong);list-style:none}
.meeting-plan-detail summary::-webkit-details-marker{display:none}
.meeting-plan-detail summary b{display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:#e9f3ec;color:#2e6a49}
.meeting-plan-detail>p{margin:0;padding:0 18px 16px;color:#718279;font-size:var(--ui-text-xs)}
.meeting-plan-list,.meeting-plan-summaries{display:grid;gap:8px;padding:0 18px 16px}
.meeting-plan-list a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;padding:9px 11px;border:1px solid #e2ebe5;border-radius:10px;background:#fff;color:#235c3e;text-decoration:none;overflow-wrap:anywhere}
.meeting-plan-list a b,.meeting-plan-list a small{display:block;line-height:1.5}
.meeting-plan-list a b{font-size:var(--ui-text-sm)}.meeting-plan-list a small{color:#52695a;font-size:var(--ui-text-xs)}
.meeting-agenda-featured{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 18px 16px}
.meeting-agenda-row{min-width:0;border:1px solid #dbe8df;border-radius:12px;background:#fff;overflow:hidden}
.meeting-agenda-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;padding:8px 12px}
.meeting-agenda-bar>div{min-width:0}.meeting-agenda-name{display:block;margin-top:2px;color:#52695a;font-size:var(--ui-text-xs);line-height:1.45}
.meeting-agenda-bar strong,.meeting-agenda-bar small{display:block}.meeting-agenda-bar strong{color:#244d35;font-size:var(--ui-text-body)}.meeting-agenda-bar small{margin-top:2px;color:#617568;font-size:var(--ui-text-xs)}
.meeting-agenda-bar button{flex:none;min-height:44px;padding:7px 11px;border-color:#cce1d2;background:#f2f8f4;color:#246545;white-space:nowrap;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}
.meeting-agenda-row .meeting-plan-list{gap:5px;padding:0 11px 11px}.meeting-agenda-row .meeting-plan-list a{min-height:48px;border:0;background:#f5f9f6}
.meeting-agenda-other-list{display:grid;gap:7px;padding:0 18px 16px}
.meeting-agenda-row.secondary{border-color:#e4ece6}.meeting-agenda-row.secondary .meeting-agenda-bar strong{font-size:var(--ui-text-xs)}
.meeting-plan-summary-action{padding:0 18px 14px}.meeting-plan-summary-action button{min-height:44px;font-size:var(--ui-text-xs)}
.meeting-link-invalid{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid #e9ddd8;border-radius:10px;background:#fff8f6;color:#7a5146}.meeting-link-invalid small{font-size:var(--ui-text-xs)}
.meeting-plan-manage>div{display:flex;gap:8px;padding:0 18px 15px}.meeting-plan-manage button{min-height:44px}
.meeting-plan-summaries section{padding:12px;border:1px solid #e2ebe5;border-radius:10px;background:#fff}
.meeting-plan-summaries h4{margin:0;color:#325e43;font-size:var(--ui-text-xs)}.meeting-plan-summaries p{margin:6px 0 0;color:#40594a;font-size:var(--ui-text-xs);line-height:1.7;white-space:pre-wrap}
.meeting-plan-past-title{margin:8px 0 0;color:#526c5b;font-size:var(--ui-text-sm)}
.meeting-plan-cancelled{border-top:1px solid #e5eee8;margin-top:8px;padding:0}.meeting-plan-cancelled>summary{display:flex;align-items:center;min-height:48px;margin:0;padding:10px 4px;color:#526c5b;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.meeting-plan-cancelled-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;border-top:1px solid #edf1ee}.meeting-plan-cancelled-row span{min-width:0}.meeting-plan-cancelled-row b,.meeting-plan-cancelled-row small{display:block;overflow-wrap:anywhere}.meeting-plan-cancelled-row b{font-size:var(--ui-text-xs)}.meeting-plan-cancelled-row small{margin-top:4px;color:#718279;font-size:var(--ui-text-xs)}.meeting-plan-cancelled-row button{min-height:44px;flex:none}.meeting-cancel-name{padding:12px;border-radius:10px;background:#f7faf8;color:#40594a;line-height:1.6}
.meeting-plan-detail>summary::after,.meeting-history-item>summary::after,.meeting-plan-cancelled>summary::after{content:'⌄';margin-left:8px;color:currentColor;font-size:var(--ui-text-card);line-height:1;transition:transform .15s}.meeting-plan-detail[open]>summary::after,.meeting-history-item[open]>summary::after,.meeting-plan-cancelled[open]>summary::after{transform:rotate(180deg)}
.meeting-plan-dialog{width:min(560px,94vw);max-height:90vh;overflow:auto}.meeting-plan-dialog form{padding:20px}.meeting-plan-dialog .modal-head{margin:0 0 16px}.meeting-plan-dialog label{display:grid;gap:11px;min-width:0;margin:14px 0 18px;line-height:1.65;font-weight:var(--ui-weight-strong);color:#344c3d}.meeting-plan-dialog input,.meeting-plan-dialog textarea,.meeting-plan-dialog select{width:100%;font-weight:var(--ui-weight-body)}.meeting-plan-dialog textarea{min-height:100px}
.meeting-presenter-type{border:0;padding:0;margin:14px 0 18px}.meeting-presenter-type legend{padding:0;color:#344c3d;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong)}.meeting-presenter-type>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}.meeting-plan-dialog .meeting-presenter-type label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;margin:0;padding:10px;border:1px solid #dfe7e1;border-radius:11px;background:#fff;font-size:var(--ui-text-xs);cursor:pointer}.meeting-plan-dialog .meeting-presenter-type label:has(input:checked){border-color:var(--ui-selected);background:var(--ui-selected);color:var(--ui-ink)}.meeting-plan-dialog .meeting-presenter-type input{width:18px;height:18px;margin:0;accent-color:#24734e}[data-presentation-division][hidden]{display:none!important}
.meeting-slide-context{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:5px 0 0;color:#6a7e70;font-size:var(--ui-text-xs);line-height:1.5}.meeting-plan-dialog .modal-head:has(.meeting-slide-context){margin-bottom:10px}
@media(max-width:760px){.meeting-plan-top{display:block;padding:15px}.meeting-plan-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch;margin-top:14px}.meeting-plan-actions button{min-width:0;font-size:var(--ui-text-xs)}.meeting-plan-actions button:last-child:nth-child(3){grid-column:1/-1}.meeting-plan-detail summary{padding:10px 15px}.meeting-plan-list,.meeting-plan-summaries{padding:0 15px 15px}.meeting-plan-dialog{width:100vw;max-width:none;max-height:92vh;margin:auto 0 0;border-radius:18px 18px 0 0}.meeting-plan-dialog form{padding:18px 16px calc(18px + env(safe-area-inset-bottom))}}
@media(max-width:760px){.meeting-agenda-featured{grid-template-columns:1fr;padding:0 15px 15px}.meeting-agenda-other-list{padding:0 15px 15px}.meeting-plan-summary-action{padding:0 15px 15px}.meeting-plan-manage>div{padding:0 15px 15px}}

/* Phone reading order: current work, the next meeting, then announcements. */
.notification-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:10px}
.notification-count{position:absolute;top:-4px;right:-5px;min-width:19px;height:19px;padding:0 4px;border-radius:12px;background:#176b49;color:#fff;border:2px solid #fff;font-size:var(--ui-text-xs);font-weight:var(--ui-weight-strong);line-height:15px}
.notification-count[hidden]{display:none}
.division-member-actions{display:flex;flex-wrap:wrap;gap:6px}.division-member-actions button{min-height:44px;padding:8px 12px;font-size:var(--ui-text-xs)}.member-swap-shortcut{width:100%;margin:0 0 18px;min-height:44px;text-align:left}.member-seat-conflict:not(:empty){padding:12px 14px;margin:12px 0;border:1px solid #d7e5da;border-radius:12px;background:#f4f8f5}.member-seat-conflict p{margin:0 0 8px;font-size:var(--ui-text-sm)}.swap-preview{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}.swap-preview section{min-width:0;display:grid;gap:6px;border:1px solid var(--line);border-radius:12px;padding:14px;overflow-wrap:anywhere}.swap-preview b{font-size:var(--ui-text-body)}.swap-preview span,.swap-preview small{font-size:var(--ui-text-xs);color:#607467}.swap-preview strong{font-size:var(--ui-text-sm);color:#176b49}.swap-access-note{padding:12px;border-radius:10px;background:#fff5df;color:#735719;font-size:var(--ui-text-sm)}
@media(max-width:760px){.division-page-list article{grid-template-columns:minmax(0,1fr)}.division-member-actions{justify-content:flex-end}.swap-preview{grid-template-columns:1fr}#member-swap-dialog .form-footer{position:sticky;bottom:0;background:#fff;padding-bottom:env(safe-area-inset-bottom)}}
.board-news{margin-bottom:18px}.board-news .board-panel-head{padding:16px 20px}.news-unread{display:block;margin-top:3px;color:#176b49;font-size:var(--ui-text-xs)}
.activity-item{display:grid;grid-template-columns:36px minmax(0,1fr) 12px;align-items:start;gap:12px;width:100%;min-width:0;padding:16px 20px;border:0;border-bottom:1px solid var(--line);border-radius:0;text-align:left;background:#fff;color:var(--ink)}
.activity-item:last-child{border-bottom:0}.activity-item:hover{background:#f4f8f5}.activity-item.is-unread{background:#f2f8f4}.activity-item:focus-visible{outline:2px solid #176b49;outline-offset:-3px}
.activity-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#e7f1ea;color:#256648}.activity-icon svg{width:19px;height:19px}
.activity-copy{display:grid;gap:4px;min-width:0}.activity-copy strong{font-size:var(--ui-text-sm);line-height:1.5}.activity-copy>span{font-size:var(--ui-text-xs);line-height:1.6;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.activity-copy small{font-size:var(--ui-text-xs);color:#607467}.activity-arrow{align-self:center;font-size:var(--ui-text-section);color:#50715d}
.notification-dialog{padding:0;width:min(580px,94vw);max-height:88dvh;overflow:hidden}.notification-dialog[open]{display:flex;flex-direction:column}.notification-dialog>.modal-head{margin:0;padding:18px 20px;border-bottom:1px solid var(--line);flex-shrink:0}.notification-dialog h2{margin:0;font-size:var(--ui-text-section)}.notification-dialog .modal-head button{min-width:44px;min-height:44px}
.notification-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;flex-wrap:wrap;flex-shrink:0;border-bottom:1px solid var(--line)}.notification-tabs{display:flex;gap:6px}.notification-toolbar button{min-height:44px;font-size:var(--ui-text-xs);padding:8px 10px}.notification-tabs [aria-pressed="true"]{background:#e7f1ea;border-color:#9bbea8;color:#176b49;font-weight:var(--ui-weight-strong)}.notification-list{overflow:auto;overscroll-behavior:contain;min-height:80px}.notification-empty{margin:0;padding:24px 20px;color:#607467;font-size:var(--ui-text-sm)}.notification-error{color:#a33131;padding:0 20px;font-size:var(--ui-text-xs)}.notification-error:empty{display:none}
@media(max-width:760px){.board-news{margin-bottom:12px}.board-news .board-panel-head{padding:14px 16px}.activity-item{padding:14px 16px;gap:10px}.notification-dialog{width:100vw;max-width:100vw;margin:auto 0 0;border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom)}.header-actions .notification-bell{flex:0 0 40px;min-width:40px;padding:8px}}
/* Long Thai department labels must not widen form grids beyond the dialog. */
dialog .two{grid-template-columns:repeat(2,minmax(0,1fr))}
dialog .two>*,dialog form label{min-width:0}
dialog select{width:100%;min-width:0;max-width:100%}
@media(max-width:600px){dialog .two{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 nav button span{font-size:var(--ui-text-xs)}
 .vote-panel{order:2}
 .announcements-panel{order:3}
 .announcements-panel .board-empty.compact{padding:18px 20px}
}
@media(max-width:360px){nav button span{font-size:var(--ui-text-xs)}}

.resolution-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 18px 18px}
.resolution-counts button{display:flex;flex-direction:column;gap:4px;min-width:0;min-height:64px;background:#f3f8f5;white-space:normal}
.resolution-counts b{font-size:var(--ui-text-page);color:#245a3f}.resolution-counts span{font-size:var(--ui-text-xs)}
.resolution-toolbar{display:grid;gap:12px;margin-bottom:16px}.resolution-filters{display:flex;flex-wrap:wrap;gap:6px}
.resolution-filters button{min-height:44px}.resolution-filters button[aria-pressed=true]{background:#e4f1e9;color:#174a30;border-color:#96bda6}
.resolution-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.resolution-card{min-width:0;border:1px solid #dce7e0;border-radius:14px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.resolution-meta{width:100%;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;font-size:var(--ui-text-xs)}
.resolution-status{display:inline-block;padding:4px 9px;border-radius:8px;background:#eef2ef;color:#43564b;font-size:var(--ui-text-xs);margin:0}
.resolution-status.unassigned{background:#fff4d9;color:#735312}.resolution-status.completed{background:#e4f3e9;color:#20603b}
.resolution-status.implementing,.resolution-status.review{background:#e9f0ff;color:#345587}
.resolution-card .resolution-title{display:block;background:none;border:0;padding:0;min-height:44px;text-align:left;font-size:var(--ui-text-card);font-weight:var(--ui-weight-strong);line-height:1.6;white-space:normal;color:var(--ui-ink);overflow-wrap:anywhere}
.resolution-source{color:#596e60;font-size:var(--ui-text-sm);line-height:1.65;margin:0 0 8px;overflow-wrap:anywhere}
.resolution-owner{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:var(--ui-text-sm)}.resolution-card>button:last-child{margin-top:auto;min-height:44px}
.resolution-detail-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.resolution-detail-actions button{min-height:44px}
.resolution-dialog .modal-head h2{overflow-wrap:anywhere}.resolution-dialog .knowledge-body{white-space:pre-wrap;overflow-wrap:anywhere}
.resolution-dialog form{margin-top:16px}.resolution-mode{display:flex;flex-wrap:wrap;gap:8px 18px}
.resolution-mode{border:1px solid #dce7e0;border-radius:12px;padding:8px 12px}.resolution-mode label{display:flex;align-items:center;gap:8px;min-height:44px;margin:0}.resolution-mode input{width:auto;margin:0}
#meeting-resolution-panel{scroll-margin-top:24px}
#meeting-resolutions{padding:0 18px 18px}
@media(max-width:600px){#meeting-resolutions{padding:0 12px 14px}}
@media(max-width:600px){.resolution-list{grid-template-columns:minmax(0,1fr)}.resolution-counts{gap:6px;padding:0 12px 14px}.resolution-counts span{font-size:var(--ui-text-xs)}.resolution-dialog .form-footer{position:sticky;bottom:0;background:#fff;padding:14px 0 max(14px,env(safe-area-inset-bottom));margin-top:20px}}

@media(max-width:760px){
 .board-panel-head .eyebrow{display:none}
 footer{display:none}
}
/* Meeting workspace: one destination per intent, using the shared shell tokens. */
.meeting-workspace-head{position:static;inset:auto;z-index:auto;height:auto;min-height:44px;border:0;color:inherit;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.meeting-workspace-head h1{font-size:var(--ui-text-page);line-height:1.5;margin:0}
.meeting-workspace-head button{min-height:44px}
.meeting-workspace-nav{position:static;inset:auto;z-index:auto;box-shadow:none;overflow:visible;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--line);border-radius:14px;background:#fff;margin:0 0 var(--layout-gap)}
.meeting-workspace-nav button{flex-direction:row;align-items:center;justify-content:center;text-align:center;min-height:46px;font-size:var(--ui-text-body);white-space:normal;border:0;background:transparent;color:#566d5e;padding:9px 10px}
.meeting-workspace-nav button[aria-pressed=true]{background:#e5f1e9;color:#21563a;font-weight:var(--ui-weight-strong);box-shadow:0 1px 3px #17352812}
.meeting-workspace-nav button:focus-visible{outline:2px solid #397f57;outline-offset:2px}
[data-meeting-panel][hidden]{display:none!important}
#meeting-voting-pane{display:grid;gap:var(--layout-gap)}
.meeting-history-search{padding:0 var(--layout-inset) 16px}.meeting-history-search input{width:100%;min-height:46px}
.meeting-retry{display:grid;justify-items:start;gap:12px}.meeting-retry button{min-height:44px}
.meeting-record-dialog{width:min(720px,94vw)}.meeting-record-dialog .modal-head{margin-bottom:16px}
.meeting-record-note{color:#596e60;font-size:var(--ui-text-sm);margin:8px 0 18px;line-height:1.65}
.meeting-record-entry{padding:18px 0;border-top:1px solid var(--line)}.meeting-record-entry h3{font-size:var(--ui-text-input);line-height:1.6;margin:6px 0 12px}
.meeting-record-entry p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}.meeting-record-actions{display:flex;flex-wrap:wrap;gap:8px}.meeting-record-actions button{min-height:44px}
.project-dialog .person-card{display:block;margin:16px 0}.project-dialog .person-card h3{font-size:var(--ui-text-card);line-height:1.6;margin:0 0 12px}.project-dialog .person-card p{font-size:var(--ui-text-sm);line-height:1.7;overflow-wrap:anywhere}.project-dialog button{min-height:44px}.project-dialog>details[hidden]{display:none!important}
.project-dialog[data-focused=true] .person-card>h3{display:none}
@media(max-width:600px){.meeting-workspace-head h1{font-size:var(--ui-text-section)}.meeting-workspace-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.meeting-record-dialog{max-width:100vw;width:100vw;margin:auto 0 0;border-radius:20px 20px 0 0;max-height:92dvh;padding:20px 16px max(20px,env(safe-area-inset-bottom))}}

/* Optional PWA controls share the existing Thai type and frosted surfaces. */
.notification-dialog{overflow-y:auto}.notification-dialog .notification-list{flex:none;max-height:38dvh;overflow:auto}.notification-dialog>.modal-head{position:sticky;top:0;z-index:2;background:var(--glass-panel,#fff)}
.phone-panel{border-top:1px solid var(--line);padding:12px 18px}.phone-panel>summary,.pwa-settings summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:var(--ui-weight-strong)}.pwa-settings{min-width:0;border-top:1px solid var(--line);padding:16px 0}.phone-panel .pwa-settings{border-top:0;padding-top:4px}.pwa-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.pwa-heading h3{font-size:var(--ui-text-input);margin:0 0 8px}.pwa-settings p{font-size:var(--ui-text-sm);line-height:1.65;overflow-wrap:anywhere}.pwa-actions{display:flex;flex-wrap:wrap;gap:8px}.pwa-settings button{min-height:44px;max-width:100%;font:inherit}.pwa-settings>button{width:100%;margin:6px 0}.pwa-state{color:var(--muted,#52665b)}.pwa-preferences{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.pwa-preferences label{display:flex;align-items:center;gap:10px;min-height:44px;font-size:var(--ui-text-sm)}.pwa-preferences input{width:20px;height:20px;flex-shrink:0;accent-color:#187552}.pwa-device{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:var(--ui-text-xs)}.activity-row{position:relative}.activity-row .activity-item{width:100%}.activity-unread{min-height:44px;font-size:var(--ui-text-xs);margin:0 16px 8px}.login-panel .pwa-settings{margin-top:20px}
@media(max-width:360px){.pwa-preferences{grid-template-columns:1fr}.pwa-actions button{flex:1 1 120px}.phone-panel{padding:10px 14px}}
.phone-panel>summary::after,.pwa-settings details>summary::after{content:'＋';margin-left:auto;font-weight:var(--ui-weight-body)}.phone-panel[open]>summary::after,.pwa-settings details[open]>summary::after{content:'−'}
.notification-dialog>.modal-head{background:#fff}.pwa-preferences label{margin:0}.pwa-preferences input{min-height:20px;min-width:20px;margin:0}.pwa-settings summary{padding:6px 0;margin:0}
/* Frosted glass is chrome, not a loss of contrast in working content. */
:root{--glass-panel:#fff;--glass-chrome:#f9fbfa;--glass-line:#dce7e0;--glass-shadow:0 8px 30px #234c3410,0 1px 0 #ffffffd9 inset}
body{background:radial-gradient(ellipse at 5% 0%,#dfeee5 0,transparent 46%),radial-gradient(ellipse at 95% 10%,#e4ecf5 0,transparent 42%),#f3f7f4;background-attachment:fixed}
.sidebar,.meeting-workspace-nav,.board-panel,.board-system,.workspace,.system-group,.system-find,.admin-panel{background:var(--glass-panel);border-color:var(--glass-line);box-shadow:var(--glass-shadow)}
.meeting-workspace-nav{background:var(--glass-chrome)}
dialog{background:var(--glass-panel);border-color:var(--glass-line)}
.resolution-card,.meeting-plan-card,.project-dialog .person-card{background:#ffffffeb}
.meeting-workspace-nav button[aria-pressed=true]{background:#deeee3;color:#174a30}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 :root{--glass-panel:rgba(255,255,255,.9);--glass-chrome:rgba(249,252,250,.86)}
 .meeting-workspace-nav,.board-panel,.board-system,.workspace,.system-group,.system-find,.admin-panel,dialog{backdrop-filter:blur(12px) saturate(115%);-webkit-backdrop-filter:blur(12px) saturate(115%)}
 dialog{background:rgba(255,255,255,.97)}
}
@media(max-width:760px){
 .sidebar{background:#ffffffed;box-shadow:0 1px 0 #ffffffa6 inset;backdrop-filter:none;-webkit-backdrop-filter:none}
 .sidebar nav{inset:auto 10px max(12px,env(safe-area-inset-bottom)) 10px;gap:2px;padding:6px;border:1px solid #ffffffda;border-radius:32px;background:var(--glass-chrome);isolation:isolate;box-shadow:0 8px 28px #244c3824,0 2px 6px #244c3812,0 1px 0 #fff inset}
 .sidebar nav::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:-1;background:linear-gradient(135deg,#ffffff9e,transparent 42%,#ffffff30 78%,#ffffff7a);box-shadow:inset 0 -1px 0 #ffffffb3}
 .sidebar nav button{border-radius:25px;min-height:52px;color:#425e4e;transition:background .18s ease,box-shadow .18s ease,color .18s ease}
 .sidebar nav button.selected{background:#e0eee7;color:#145538;box-shadow:0 1px 4px #214b3712,inset 0 1px 0 #ffffffeb;font-weight:var(--ui-weight-strong)}
 .sidebar nav button:focus-visible{outline:2px solid #237b53;outline-offset:-2px}
 main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}
 #message{bottom:calc(92px + env(safe-area-inset-bottom))}
 .board-panel,.workspace,.system-group,.admin-panel{backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 @media(max-width:760px){
  .sidebar nav{background:rgba(247,252,249,.72);backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%)}
  .sidebar nav button.selected{background:linear-gradient(145deg,#ffffffb8,#dceee4d9);box-shadow:0 2px 8px #214b3714,inset 0 1px 0 #fff,inset 0 -1px 0 #c4dfd0a6}
 }
}
@media(prefers-reduced-transparency:reduce),(prefers-contrast:more){
 :root{--glass-panel:#fff;--glass-chrome:#fff;--glass-line:#8ea797}
 .sidebar,.sidebar nav,.meeting-workspace-nav,.board-panel,.board-system,.workspace,.system-group,.system-find,.admin-panel,dialog{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
 .resolution-card,.meeting-plan-card,.project-dialog .person-card{background:#fff}
 .sidebar nav{border-color:#8ea797}.sidebar nav::before{display:none}.sidebar nav button.selected{background:#deeee3;box-shadow:none}
}
@media(prefers-reduced-motion:reduce){.meeting-page *{scroll-behavior:auto!important;transition:none!important}.sidebar nav button{transition:none}}

/* Installed phone shell: opaque reading surfaces; glass stays in the bottom dock. */
.pwa-device>span{min-width:0}.pwa-device small{display:block;margin-top:4px;color:var(--muted);font-size:var(--ui-text-xs)}
.pwa-device-actions{display:flex;gap:6px;flex-shrink:0}.pwa-device-actions button{min-height:44px}
@media(max-width:760px){
 body:not(.login-page){--app-safe-top:env(safe-area-inset-top,0px);background:#f3f7f4;background-attachment:scroll}
 /* A single document-scrolling toolbar, not two independently pinned layers.
    Only the bottom navigation remains fixed. */
 .sidebar{position:relative;top:auto;z-index:20;background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate}
 body:not(.login-page) main>header{position:absolute;top:var(--app-safe-top);z-index:21;background:#fff}
 .board-grid{align-items:stretch}
 .board-grid .board-panel{width:100%;min-width:0}
 .board-panel-head,.board-news .board-panel-head{padding:var(--layout-inset)}
 .resolution-counts{gap:8px;padding:var(--layout-inset)}
 #meeting-resolutions{padding:var(--layout-inset)}
 .resolution-counts button{min-height:76px;padding:10px 6px;line-height:1.5}
 .resolution-counts span{font-size:var(--ui-text-xs)}
 .board-panel-head h2{font-size:var(--ui-text-card);line-height:1.5;overflow-wrap:anywhere}
 .board-panel-head>div{min-width:0}
 .board-panel-head>button{flex-shrink:0;min-height:44px}
 :where(.board-view,.meeting-page,.workspace,.system-page,.admin-page) :is(button,a,input,summary):focus-visible{outline:2px solid #237b53;outline-offset:2px}
 html{scroll-padding-top:calc(72px + env(safe-area-inset-top,0px))}
 .sidebar-bottom{top:6px}.account-button{width:44px;height:44px;min-height:44px}
 .header-actions button,.header-actions .header-primary,#refresh-button{min-height:44px}.header-actions .notification-bell{min-height:44px;min-width:44px;flex-basis:44px}
 .board-panel,.board-system,.workspace,.system-group,.system-find,.admin-panel{background:#fff;backdrop-filter:none;-webkit-backdrop-filter:none}
 .pwa-device{align-items:flex-start;flex-wrap:wrap;gap:10px}.pwa-device-actions{margin-left:auto}
}
@media(display-mode:standalone) and (max-width:760px){
 /* Leave an opaque breathing strip below the system edge, not controls under
    iOS's scroll-edge treatment. env() remains the source of notch geometry. */
 body:not(.login-page){--app-safe-top:calc(env(safe-area-inset-top,0px) + 12px)}
 html{scroll-padding-top:calc(84px + env(safe-area-inset-top,0px))}
 body:not(.login-page) .sidebar{height:calc(56px + var(--app-safe-top));padding-top:calc(7px + var(--app-safe-top))}
 body:not(.login-page) .sidebar-bottom{top:calc(6px + var(--app-safe-top))}
 body:not(.login-page) main>header{top:var(--app-safe-top);background:#fff}
 .login-shell{padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
}
