/* Compact density: target approximately 1 / 1.4 of previous row heights. */
.sidebar{padding-top:24px}.brand{padding-bottom:24px}.nav-label{margin-top:12px;margin-bottom:8px}.nav-item{min-height:36px;padding:8px 12px;margin:4px 0;gap:10px}.shortcuts{margin-top:18px;padding-top:12px}.shortcuts .nav-item{min-height:32px;padding:6px 12px}.sidebar-bottom{padding-top:14px}.sidebar-bottom .profile{padding-top:14px;margin-top:12px}.topbar{height:60px}.main{padding-top:24px}.page-heading{margin-bottom:22px}.page-heading h1{font-size:36px;margin-bottom:8px}.page-heading p{font-size:16px}.panel-head{min-height:58px;padding:14px 20px}.panel-head h2{font-size:20px}
.task{padding:12px 20px;gap:12px}.task h3{font-size:16px;line-height:1.35;margin-bottom:5px}.task-symbol{width:32px;height:32px}.task-meta{gap:6px}.pill{padding:3px 7px}.button.small,.task .button{min-height:32px;padding:6px 11px}.more-tasks{margin:8px 20px 12px}
td,th{padding:9px 16px}table{font-size:14px}td small{margin-top:3px;line-height:1.4}.admin-summary{padding:12px 18px;font-size:14px}.training-cell{padding:3px 0;gap:5px}.training-cell small{line-height:1.35}.tabs{margin-bottom:18px;gap:6px}.tab{padding:8px 14px;font-size:14px}.toolbar{margin-bottom:16px;gap:10px}.toolbar input,.toolbar select{min-height:38px;padding:9px 11px;font-size:14px}
.announcement{padding:17px 20px}.announcement h3{font-size:21px;margin:8px 0}.announcement p{font-size:16px;line-height:1.55;margin-bottom:10px}.announcement-meta{margin-top:12px}.resource-grid{gap:16px}.resource-card{padding:18px 20px}.resource-card h3{font-size:19px;margin:12px 0 8px}.resource-card p{font-size:15px;line-height:1.45;margin-bottom:12px}.resource-card .stat-icon{width:32px;height:32px}.resource-category{margin:22px 0 12px;font-size:20px}.calendar-event{padding:12px 20px;gap:14px}.calendar-event-body small,.calendar-event-time small{margin-top:4px}.calendar-agenda-head{padding:18px 20px}.calendar-day,.calendar-blank{min-height:66px}.calendar-day{padding-top:5px;padding-bottom:5px}.calendar-day>span:first-child{height:29px;width:29px;font-size:15px}.calendar-labels{margin-top:3px}.calendar-heading{margin-bottom:20px}.calendar-heading h1{font-size:36px}.profile-card dl>div{padding:11px 0}.footer{margin-top:26px}.empty{padding:28px 20px}.progress-strip{margin:16px 3px 22px}
.profile-appearance{margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.profile-appearance h3{margin:0 0 14px;font-size:18px}.theme-options{display:flex;gap:14px}.theme-choice{flex:1;max-width:180px;background:transparent;color:inherit;border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;align-items:center;gap:10px;font-weight:700}.theme-choice[aria-pressed=true]{border:2px solid #c8aa27;padding:11px}.theme-preview{width:100%;height:66px;padding:12px 10px 10px 30px;display:flex;flex-direction:column;gap:6px;border-radius:7px;border:1px solid #8885;position:relative}.theme-preview:before{content:'';position:absolute;left:0;top:0;bottom:0;width:22px;border-radius:6px 0 0 6px;background:#ffd313}.theme-preview span{height:7px;border-radius:3px}.theme-preview-light{background:#f4f5f7}.theme-preview-light span{background:#cbd0d9}.theme-preview-dark{background:#1d1c18}.theme-preview-dark span{background:#59564a}
/* Light mode uses the same layout and semantic status colors. */
:root[data-theme=light]{color-scheme:light;color:#20252d;background:#f5f6f8;--green:#654e00;--muted:#606773;--line:#dce0e5;--lime:#ffd313}
[data-theme=light] body{background:#f5f6f8;color:#20252d}
[data-theme=light] .sidebar{background:#fff;color:#20252d;border-color:#dce0e5;box-shadow:1px 0 8px #17263b06}
[data-theme=light] :is(.brand small,.nav-label,.profile small,.topbar-right,.banner,.page-heading p,.task-meta,.announcement-meta,.resource-card p,.field small,.subtle,td small,.footer,.profile-card dt,.calendar-agenda-head p,.calendar-event-body small,.calendar-event-time small,.calendar-empty,.training-cell small){color:#606773}
[data-theme=light] .nav-item{color:#47515e}[data-theme=light] .nav-item:hover{background:#f1f3f6;color:#20252d;border-color:#dce0e5}[data-theme=light] .nav-item .count{background:#e9edf2;color:#384252}[data-theme=light] .nav-item.active .count{background:#e4c54c;color:#25230e}
[data-theme=light] :is(.shortcuts,.sidebar-bottom .profile,.profile-card dl>div,.modal-head,.calendar-agenda-head,.calendar-event,.task,.announcement,.admin-summary,td,th){border-color:#dce0e5}
[data-theme=light] .avatar{background:#fff5c7;color:#665000;border-color:#deca7e}
[data-theme=light] .topbar{background:#f5f6f8;border-color:#dce0e5}
[data-theme=light] :is(.breadcrumb strong,.page-heading h1,.panel-head h2,.task h3,.announcement h3,.resource-category,.empty strong,.admin-summary strong){color:#20252d}
[data-theme=light] :is(.panel,.resource-card){background:#fff;border-color:#dce0e5;box-shadow:0 4px 18px #1b2b4005}
[data-theme=light] .panel-head{background:#fafbfc;border-color:#e3e6eb}
[data-theme=light] :is(.button,.task .button){background:#fff;color:#303b49;border-color:#c7ced8;box-shadow:none}
[data-theme=light] :is(.button:hover,.task .button:hover){background:#f0f3f7;color:#20252d;border-color:#9ba8b9}
[data-theme=light] :is(.text-button,.panel-head .text-button,.announcement-brief .text-button,.banner button){color:#715700}
[data-theme=light] .text-button:hover{color:#493800}
[data-theme=light] :is(.task-symbol,.stat-icon){background:#fff8dc;color:#756016;border-color:#e3d69e;box-shadow:none}
[data-theme=light] .focus-card{background:linear-gradient(120deg,#fff7d6,#fffdf5);color:#20252d;border-color:#dbc777;box-shadow:0 8px 24px #664b0008}
[data-theme=light] .focus-card:before{background:#dbc777}
[data-theme=light] :is(.focus-card h2,.focus-card h3){color:#292719}
[data-theme=light] :is(.focus-card p,.announcement p,.modal-body p){color:#525b68}
[data-theme=light] :is(.pin,.focus-label,.orbit-spark){color:#79611c}
[data-theme=light] .orbit-ring{border-color:#bfa44855;box-shadow:none}
[data-theme=light] .progress-strip{color:#606773}[data-theme=light] .progress-strip strong{color:#665000}[data-theme=light] .progress-strip button:hover{color:#473900}
[data-theme=light] .resource-card:hover{background:#fffdf2;border-color:#c5ad52;box-shadow:none}[data-theme=light] .resource-card .resource-domain{color:#706028}
[data-theme=light] .tab{color:#586272}[data-theme=light] .tab:hover{background:#e9edf2;color:#20252d}
[data-theme=light] :is(.field input,.field select,.field textarea,.toolbar input,.toolbar select){background:#fff;color:#20252d;border-color:#bec7d2}
[data-theme=light] .checkbox input{accent-color:#8c7000}
[data-theme=light] table{color:#303946}[data-theme=light] th{background:#f1f3f6;color:#505b6b}[data-theme=light] .admin-summary{color:#606773}
[data-theme=light] dialog{background:#fff;color:#20252d;border-color:#c6cdd6;box-shadow:0 25px 100px #17263b33}[data-theme=light] dialog::backdrop{background:#17263b66}
[data-theme=light] .empty{color:#606773}[data-theme=light] .empty .icon{color:#8c7426}
[data-theme=light] .error{background:#fff0ee;color:#a82424;border-color:#e8aca6}
[data-theme=light] .pill{background:#f0f2f5;color:#4c5563;border-color:#cbd2dc}
[data-theme=light] .pill.overdue{background:#ffe8eb;color:#bd182d;border-color:#e8a0a9;font-weight:850}
[data-theme=light] .pill.not_started{background:#e8f2ff;color:#125bb3;border-color:#a4c6ed}
[data-theme=light] .pill.completed{background:#e5f6eb;color:#176638;border-color:#a0d4b4}
[data-theme=light] .pill.pending{background:#fff3d6;color:#805900;border-color:#dfc17c}
[data-theme=light] :is(.pill.cancelled,.pill.waived){background:#f0f1f3;color:#646b75;border-color:#cbd0d8}
[data-theme=light] .calendar-day{color:#293240}[data-theme=light] .calendar-day:hover{background:#edf0f5}[data-theme=light] .calendar-day.selected>span:first-child{background:#273444;color:#fff}[data-theme=light] .calendar-day.today>span:first-child{color:#c33637}[data-theme=light] .calendar-day.today.selected>span:first-child{background:#c33637;color:#fff}
[data-theme=light] :is(.calendar-eyebrow,.calendar-arrow,.calendar-heading .text-button){color:#b73535}[data-theme=light] .calendar-weekday{color:#647080}[data-theme=light] .calendar-event-time{color:#354255}[data-theme=light] .calendar-grid>:nth-child(n+15){border-top-color:#dce0e5}
[data-theme=light] .event-color-blue{--event-color:#145faf;--event-bg:#e6f0fd}[data-theme=light] .event-color-green{--event-color:#216c3f;--event-bg:#e6f5eb}[data-theme=light] .event-color-red{--event-color:#b02c37;--event-bg:#ffe9eb}[data-theme=light] .event-color-orange{--event-color:#954c0e;--event-bg:#fff0df}[data-theme=light] .event-color-yellow{--event-color:#786000;--event-bg:#fff5ca}[data-theme=light] .event-color-purple{--event-color:#6b3fac;--event-bg:#f1e9ff}[data-theme=light] .event-color-pink{--event-color:#a53572;--event-bg:#ffeaf5}[data-theme=light] .event-color-teal{--event-color:#166d68;--event-bg:#e0f5f2}
[data-theme=light] .event-color-option{color:#3d4755;border-color:#cbd2dc}
[data-theme=light] :is(button,a,input,select,textarea):focus-visible{outline-color:#967400;box-shadow:0 0 0 6px #c9a72322}
@media(max-width:760px){.main{padding:20px 16px 30px}.nav-item{min-height:40px}.task{padding:12px 16px;gap:9px}.task .button{min-height:36px;margin-left:0}.task-body{min-width:140px}.page-heading h1{font-size:30px}.calendar-heading h1{font-size:30px}.panel-head{padding:12px 16px;min-height:54px}.calendar-event{padding:12px 16px}.resource-card{padding:18px}.sidebar{padding-top:24px}}
@media(pointer:coarse){.theme-choice,.nav-item,.button.small,.task .button{min-height:44px}}
.discord-role-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px;max-width:100%}.discord-role-badge{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border:1px solid #ffffff26;border-radius:7px;background:#ffffff05;color:inherit;font-size:12px;line-height:1.35;max-width:100%}.discord-role-dot{width:12px;height:12px;flex-shrink:0}.discord-role-badge>span{overflow-wrap:anywhere}.profile>div{min-width:0}.profile .discord-role-badge{font-size:10px;padding:2px 4px}.profile-card dd .discord-role-list{justify-content:flex-end}.profile-card dd{min-width:0}[data-theme=light] .discord-role-badge{border-color:#cbd0d9;background:#f7f8fa}
/* Compact dialogs retain readable controls and scroll for long content. */
dialog{width:min(680px,calc(100vw - 24px));max-height:94vh;max-height:94dvh;border-radius:16px}.modal-head{padding:14px 20px;gap:12px}.modal-head h2{font-size:21px;line-height:1.25;letter-spacing:-.5px}.modal-body{padding:16px 20px}.modal-body p{font-size:14px;line-height:1.45;margin:8px 0 12px}.modal-body .field{font-size:13px;line-height:1.35;margin-bottom:10px}.modal-body .field input,.modal-body .field select,.modal-body .field textarea{font-size:14px;padding:8px 10px;min-height:36px;margin-top:4px;border-radius:8px}.modal-body .field textarea{min-height:68px;height:68px;resize:vertical}.modal-body .checkbox{font-size:13px;line-height:1.4;margin:8px 0}.modal-body .form-row{gap:12px}.modal-actions{margin-top:14px;gap:8px}.modal-body .button{padding:8px 14px;min-height:36px;font-size:14px}.modal-body .error{padding:9px 12px;margin-bottom:10px;font-size:13px}.modal-body .event-palette{margin:12px 0;gap:6px;grid-template-columns:repeat(8,minmax(0,1fr))}.modal-body .event-palette legend{font-size:13px;margin-bottom:8px}.modal-body .event-color-option{flex-direction:column;padding:7px 3px;gap:4px;font-size:10px}.modal-body .announcement{padding:0}.modal-body .announcement-meta{margin-top:10px}
@media(min-width:560px){.modal-body form[data-form=event]{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.modal-body form[data-form=event]>.form-error,.modal-body form[data-form=event]>.form-row,.modal-body form[data-form=event]>.event-palette,.modal-body form[data-form=event]>.modal-actions,.modal-body form[data-form=event]>p,.modal-body form[data-form=event]>.field:has(textarea){grid-column:1/-1}}
@media(max-width:559px){.modal-head{padding:12px 16px}.modal-body{padding:14px 16px}.modal-body .event-palette{grid-template-columns:repeat(4,minmax(0,1fr))}.modal-body .event-color-option{flex-direction:row;font-size:11px}.modal-body .field input,.modal-body .field select,.modal-body .field textarea{font-size:16px}}
@media(pointer:coarse){.modal-body .button,.modal-body .field input,.modal-body .field select{min-height:44px}}
/* Member identity stays prominent; mobile roles expand on demand. */
.member-identity strong{display:block}.member-identity small{overflow-wrap:anywhere}.member-roles-mobile{display:none}
@media(max-width:760px){
.member-list td,.member-list th{padding:8px 7px;font-size:12px}
.member-list .member-identity{min-width:125px;max-width:180px}
.member-list .member-identity strong{font-size:13px;overflow-wrap:anywhere}
.member-list .member-identity small{font-size:10px;line-height:1.3}
.member-list .member-roles{width:80px;min-width:72px;max-width:100px}
.member-category{font-size:10px;line-height:1.2}
.member-roles-desktop{display:none}.member-roles-mobile{display:block;font-size:10px}
.member-roles-mobile summary{cursor:pointer;padding:7px 0;white-space:nowrap}
.member-roles-mobile .discord-role-list{gap:3px;margin-top:0}
.member-roles-mobile .discord-role-badge{font-size:10px;padding:1px 3px;gap:3px;line-height:1.2}
.member-roles-mobile .discord-role-dot{width:8px;height:8px}
.member-list .pill{font-size:10px;padding:3px 5px;white-space:normal}
.member-list .button.small{font-size:11px;padding:6px 8px}
}
.approval-stamp{display:block;margin-top:6px;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
