
:root{color-scheme:light;font-family:Inter,system-ui,sans-serif;color:#292d36;background:#f6f7f9;--red:#ab2222;--red-dark:#8b1919;--graphite:#464d5c;--border:#dfe2e8}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{position:sticky;top:0;z-index:20;padding:12px max(24px,5vw);display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"brand tabs actions";align-items:center;gap:18px;border-bottom:3px solid var(--red);background:#fff}.brand{grid-area:brand;display:flex;align-items:center;gap:24px}.brand img{display:block;width:120px;height:auto}.brand span{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:var(--graphite);border-left:1px solid var(--border);padding-left:24px;font-weight:700}.header-actions{grid-area:actions;display:flex;align-items:center;gap:10px}header .panel-tabs{grid-area:tabs;order:initial;flex:none;margin:0;padding:0;border:0;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}header .panel-tabs button{width:auto;flex:0 0 auto;white-space:nowrap}#refresh{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap}main{max-width:1060px;margin:auto;padding:44px 24px}.eyebrow{color:var(--red);font-weight:700;letter-spacing:2px;font-size:12px}h1{font-size:clamp(36px,6vw,62px);line-height:1.07;letter-spacing:-2px;margin:20px 0;color:var(--graphite)}.intro{font-size:18px;color:#606775;max-width:640px;line-height:1.6}.notice{background:#fff;padding:24px;border:1px solid var(--border);border-left:4px solid var(--red);border-radius:12px;margin:32px 0}.notice strong{color:var(--red)}.notice p{line-height:1.6;max-width:750px}button,select,input,textarea{font:inherit;border:1px solid #c2c7d1;border-radius:8px;padding:10px 12px;background:#fff;color:#292d36;min-width:0}button{cursor:pointer;font-weight:600;min-height:44px}button:disabled{opacity:.5;cursor:not-allowed}button:hover:not(:disabled){background:#fbeeee;border-color:var(--red)}button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid var(--red);outline-offset:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}.toolbar h2{margin-right:auto;color:var(--graphite)}#summary,footer,.meta{color:#606775;font-size:13px}.task{background:#fff;border:1px solid var(--border);border-top:3px solid var(--graphite);border-radius:12px;padding:24px;margin:16px 0}.task h3{margin:8px 0 12px;font-size:19px;color:var(--graphite)}.task p{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600}.note{grid-column:1/-1}textarea{resize:vertical;min-height:90px}form button,#demo{background:var(--red);color:#fff;border-color:var(--red)}form button{margin-top:18px}form button:hover:not(:disabled),#demo:hover:not(:disabled){background:var(--red-dark);color:#fff}.result{margin-left:15px;font-size:13px}#message{min-height:24px;white-space:pre-wrap;line-height:1.5}footer{margin-top:48px;border-top:1px solid var(--border);padding-top:20px}@media(max-width:600px){.fields{grid-template-columns:1fr}.notice button{margin-bottom:8px}.task{padding:18px}header{padding:10px 16px;gap:12px;grid-template-columns:1fr auto;grid-template-areas:"brand actions" "tabs tabs"}.brand span{display:none}header .panel-tabs{width:100%;min-width:0}.brand img{width:100px}.header-actions{gap:6px}.header-actions button{font-size:13px;padding:9px}main{padding:30px 18px}.toolbar label{width:100%}.result{display:block;margin:12px 0 0}}@media(max-width:360px){header{flex-wrap:wrap}.header-actions{margin-left:auto}}

#login-gate{max-width:560px;min-height:72vh;margin:0 auto;display:flex;flex-direction:column;justify-content:center;align-items:flex-start}#login-gate .login-logo{width:min(220px,65vw);height:auto;margin-bottom:34px}#login-gate h1{font-size:clamp(30px,5vw,46px);letter-spacing:-1.2px}#login-status{min-height:24px;color:#606775;line-height:1.5}#login-gate #connect{background:var(--red);color:#fff;border-color:var(--red);min-width:210px}#login-gate #connect:hover:not(:disabled){background:var(--red-dark);color:#fff}.app-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.app-heading h1{font-size:clamp(30px,4vw,48px);margin:8px 0}header .panel-tabs{order:2;flex:1 0 100%;margin:0;padding:0;border:0;overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}header .panel-tabs button{width:auto;flex:0 0 auto}.header-actions{order:3}.summary-topic{background:#fff;border:1px solid var(--border);border-radius:12px;padding:18px;margin:12px 0}.score-distribution{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:6px;align-items:end;margin-top:12px;min-height:92px}.score-column{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0}.score-count,.score-label{font-size:11px;color:#606775}.score-bar{display:block;width:100%;max-width:28px;height:2px;border-radius:4px 4px 0 0;background:var(--red)}.score-bar--1{height:8px}.score-bar--2{height:16px}.score-bar--3{height:24px}.score-bar--4{height:32px}.score-bar--5{height:40px}.score-bar--6{height:48px}.score-bar--7{height:56px}.score-bar--8{height:64px}.score-bar--9{height:72px}.score-bar--10{height:80px}.summary-topic strong{line-height:1.45}.slot-card{overflow-wrap:anywhere}
#people{display:flex;flex-wrap:wrap;gap:8px;margin:24px 0}#people button[aria-pressed="true"]{background:var(--red);color:#fff;border-color:var(--red)}.task-field dt{font-size:12px;color:#606775;font-weight:600}.task-field dd{margin:6px 0 0;font-weight:600;overflow-wrap:anywhere}.header-actions{flex-wrap:wrap}

.task-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.editor,.history{margin-top:20px;padding-top:18px;border-top:1px solid var(--border)}.editor>label{margin-top:16px}.editor textarea{width:100%}.history-entry{border-left:3px solid var(--red);padding:1px 16px;margin:16px 0}.sheet-tools{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px;margin:20px 0}.sheet-tools summary{cursor:pointer;font-weight:600}.sheet-tools form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.sheet-tools label{flex:1;min-width:220px}.sheet-tools form button{margin:0}.history p,.result{overflow-wrap:anywhere}#account{overflow-wrap:anywhere}

.task--overdue{border-top-color:var(--red);border-left:4px solid var(--red)}
.task--soon{border-top-color:#b45309;border-left:4px solid #b45309}
.deadline-badge{display:inline-block;border-radius:6px;padding:6px 10px;font-size:14px;font-weight:700;margin:0 0 12px}
.deadline-badge--overdue{color:var(--red-dark);background:#fce8e8}
.deadline-badge--soon{color:#92400e;background:#fff0d6}
a{color:var(--red-dark)}

.status-filter{border:1px solid var(--border);border-radius:10px;padding:12px 14px;min-width:0;max-width:100%;margin:0;background:#fff}.status-filter legend{font-size:13px;font-weight:700;padding:0 6px}.status-presets{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}.status-presets button{font-size:13px;padding:6px 12px}.status-options{display:flex;flex-wrap:wrap;gap:6px 16px}.status-options label{flex-direction:row;align-items:center;min-height:44px;cursor:pointer;overflow-wrap:anywhere}.status-options input{width:18px;height:18px;flex-shrink:0;accent-color:var(--red);margin:0}.toolbar .status-filter{flex:1 1 430px}.toolbar h2{flex:1 1 200px}

.panel-tabs{display:flex;gap:8px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding-bottom:16px;margin:28px 0}.panel-tabs [aria-selected="true"]{background:var(--red);color:#fff;border-color:var(--red)}[role="tabpanel"]{min-width:0}.agenda-opening,.agenda-topic{background:#fff;border:1px solid var(--border);border-radius:12px;padding:24px;margin:18px 0}.agenda-opening{border-left:4px solid var(--graphite);background:#eff1f4}.agenda-topic h3,.agenda-opening h3{color:var(--graphite);line-height:1.4}.agenda-topic p,#agenda-panel>p{line-height:1.6}.agenda-scores{display:flex;gap:6px;flex-wrap:wrap}.agenda-scores button{min-width:44px;padding:10px}.agenda-scores [aria-pressed="true"]{background:var(--red);color:#fff;border-color:var(--red)}.agenda-result{display:flex;flex-wrap:wrap;gap:12px 24px;border-top:1px solid var(--border);padding-top:16px}.agenda-tools{display:flex;gap:20px;flex-wrap:wrap}.agenda-tools label{flex:1;min-width:180px}#agenda-status{min-height:24px;overflow-wrap:anywhere}@media(max-width:600px){.panel-tabs button{width:100%;text-align:left}.agenda-opening,.agenda-topic{padding:18px}.agenda-scores{gap:5px}.agenda-scores button{min-width:42px;padding:9px}.agenda-tools label{min-width:0;width:100%;flex-basis:100%}}
.panel-tabs button[aria-selected="true"]:hover:not(:disabled),.agenda-scores button[aria-pressed="true"]:hover:not(:disabled){background:var(--red-dark);color:#fff}
.slot-editor{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}.slot-editor h4{grid-column:1/-1;margin:8px 0 0;color:var(--graphite)}.slot-editor textarea{width:100%}.slot-editor button,.slot-editor [role="status"]{grid-column:1/-1}.slot-badges{font-weight:700;color:var(--graphite)}@media(max-width:600px){.slot-editor{grid-template-columns:1fr}.slot-editor h4,.slot-editor button,.slot-editor [role="status"]{grid-column:1}}


.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.agenda-topic-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px 24px;flex-wrap:wrap}.agenda-topic-heading h3{flex:1 1 340px;margin:0;min-width:0;overflow-wrap:anywhere}.agenda-topic-heading .agenda-result{border:0;padding:0;gap:8px;flex:0 1 auto;font-size:13px}.agenda-result span{border:1px solid var(--border);border-radius:8px;background:#f6f7f9;padding:7px 10px;line-height:1.5}.agenda-result span:first-child{font-weight:700;color:var(--red-dark)}

#clerk-sign-in{min-height:120px;margin:16px 0;max-width:100%}#clerk-sign-in[hidden]{display:none}.login-lead{margin:8px 0 0;max-width:46ch;line-height:1.5}#login-denied{margin-top:16px;max-width:46ch;line-height:1.5}#login-denied button,#login-retry{margin-top:12px}
