/* Shared, readable controls and visual hierarchy. Keep module layouts and data intact. */
:root{font-size:16px;--bg:#f5f6f2;--surface:#fff;--surface-2:#f1f3ed;--surface-3:#e7ebe0;--text:#24322b;--muted:#59665e;--line:#dce2d8;--brand:#426248;--brand-dark:#294831;--brand-soft:#eaf1e4;--plum:#243b2b;--lime:#e4edc6;--shadow:0 3px 14px #23382705;--shadow-raised:0 16px 48px #23382718;--radius:16px;--sidebar-width:254px}
body{font-size:1rem;line-height:1.6}h1{font-size:2rem;letter-spacing:-.035em}h2{font-size:1.5rem;line-height:1.3;letter-spacing:-.025em}h3{font-size:1.2rem;line-height:1.4}h4{font-size:1.05rem}small,.muted,.meta,.stat-label,.form-card small{font-size:.9rem}.eyebrow,.page-kicker{font-size:.75rem;letter-spacing:.075em}.page-kicker{display:none}.topbar{background:#f5f6f2f2;padding:20px 30px;gap:20px}.topbar h1{font-size:1.85rem}#page-description{font-size:.95rem;max-width:760px}.view{width:min(100%,1260px);padding:30px 30px 60px}.view[data-audience=creator]{max-width:1100px}.page-heading{flex:1}.header-date{font-size:.9rem}.chip,.badge{font-size:.8rem;line-height:1.45}.card,.overview-panel,.form-card{border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}.card-list{gap:20px}.card h3,.card-top h3,.team-card-clickable h3{font-size:1.2rem}.card-top{gap:16px}.section-head{gap:18px;margin:30px 0 18px}.section-head h2{font-size:1.5rem}.actions{gap:10px;align-items:center}.button{min-height:44px;padding:10px 16px;border-radius:10px;font-size:.95rem;font-weight:650;line-height:1.4;gap:8px;box-shadow:none}.button.small{font-size:.9rem;padding:9px 13px;min-height:42px}.button.primary{background:var(--brand);border-color:var(--brand);color:white}.button.primary:hover{background:var(--brand-dark);border-color:var(--brand-dark)}.button.ghost{border-color:transparent;background:transparent}.button.success{background:#edf4e9;border-color:#bed0b8;color:#244f2d}.button.danger{background:#fff3f0;color:#963b30;border-color:#e9bfb6}.button:disabled{cursor:not-allowed}.form-card label,label{font-size:.95rem;font-weight:650;color:var(--text)}label>input,label>select,label>textarea{margin-top:7px}input,select,textarea{font-size:1rem!important;min-height:46px;border-radius:10px;padding:11px 13px;color:var(--text)}textarea{line-height:1.65}input::placeholder,textarea::placeholder{color:#68766c;opacity:1}.form-grid{gap:18px}.form-card{gap:20px}.form-card>p,.notice{font-size:.95rem}.notice{background:#f0f4e8;color:#364934;border-left-color:#7c995d;padding:16px 20px;border-radius:10px}.notice.danger,.error,.danger-text{color:#a23a30}.toast.error{color:#fff}.empty{padding:32px 20px}.empty h3{font-size:1.25rem}.empty p{font-size:1rem}.tabs{gap:6px}.tabs button{font-size:.95rem;min-height:44px}.team-field small,.team-field label,.team-field .muted,.team-detail-grid .muted,.team-field-key,.team-fields dt{font-size:.9rem}.team-field-value,.team-fields dd{font-size:1rem}.team-person-head h2{font-size:1.55rem}.meta span{overflow-wrap:anywhere}.card-table th,table th{font-size:.85rem;font-weight:700;color:var(--muted)}table td{font-size:.95rem}summary{font-size:.95rem;cursor:pointer;min-height:40px;padding-block:7px}
/* A calm sidebar: the work is in the content, not in a wall of navigation. */
@media(min-width:1100px){.sidebar{background:#fff;border-right:1px solid var(--line);color:var(--text)}.sidebar-brand{color:var(--text)}.brand-wordmark{color:var(--text)}.brand-caption{color:var(--muted);font-size:.8rem}.brand-symbol{border-color:#d1dbc5;color:var(--brand);background:#f0f4e7}.sidebar-search{background:#f5f7f2;border-color:var(--line);color:var(--muted);font-size:.9rem;min-height:44px}.sidebar-search kbd{color:var(--muted);border-color:var(--line)}.sidebar .nav-button{color:var(--muted);font-size:.95rem;min-height:46px;padding:11px 13px;border-radius:10px}.sidebar .nav-button.active{background:var(--brand-soft);color:var(--brand-dark);font-weight:750}.sidebar .nav-button:hover{background:#f1f4ed;color:var(--brand-dark)}.sidebar .nav-group-title{color:#68776b;font-size:.75rem;letter-spacing:.04em}.sidebar-footer{border-color:var(--line);background:#fff;color:var(--text)}.user-details strong{font-size:.95rem;color:var(--text)}.user-details span{font-size:.8rem;color:var(--muted)}.sidebar .nav-more-group{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}.sidebar .nav-more-group summary{color:var(--muted);font-size:.9rem}}
.nav-button{font-size:.75rem;overflow:visible}.menu-link{font-size:.95rem;padding:14px}.nav-group-title{font-size:.8rem}.bottom-nav{gap:4px}.nav-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;border-radius:20px;background:#b94037;color:#fff!important;font-size:12px!important;font-weight:750;line-height:1;flex-shrink:0}.sidebar .nav-count,.menu-link .nav-count{margin-left:auto}.bottom-nav .nav-count{position:absolute;top:2px;right:calc(50% - 28px);border:2px solid white}.nav-button:has(.nav-count) .menu-arrow{display:none}.nav-person-link{padding:0;border:0;background:none;color:var(--brand-dark);font:inherit;font-weight:700;text-align:left;text-decoration:underline;text-decoration-color:#bac9b4;text-underline-offset:4px;cursor:pointer}.nav-person-link:hover{color:var(--brand)}
.page-back{display:inline-flex;align-items:center;gap:7px;border:0;padding:0 0 9px;background:transparent;color:var(--muted);font-size:.9rem;font-weight:650;min-height:32px}.page-back:hover{color:var(--brand)}.action-symbol{width:18px;height:18px;flex-shrink:0}.button[data-action-kind=navigate]::after{content:'→';font-size:1.1em;line-height:1;margin-left:5px}.button[data-action-kind=refresh]::before{content:'↻';font-size:1.2em;line-height:1;margin-right:5px}.type-settings{min-height:42px;min-width:42px;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;font-weight:750;font-size:1rem}.type-settings[aria-pressed=true]{background:var(--brand-soft);border-color:var(--brand)}:root[data-text-size=large]{font-size:18px}.receipt-attention{max-width:1200px;margin:16px 30px 0;padding:16px 20px;border:1px solid #dc9a8a;border-left:5px solid #b54231;background:#fff2ed;border-radius:12px;display:flex;align-items:center;gap:18px;justify-content:space-between}.receipt-attention p{margin:3px 0 0;font-size:.95rem}.receipt-attention strong{font-size:1rem}.receipt-attention .button{flex-shrink:0}
/* One searchable, keyboard accessible selection sheet, within the viewport on every screen. */
.choice-control{display:flex;gap:8px;min-width:0;width:100%;margin-top:7px}.choice-button{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#fff;border:1px solid #bfcbbd;min-height:48px;padding:11px 13px;border-radius:10px;color:var(--text);font-size:1rem;font-weight:500}.choice-button .choice-value{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.choice-button .choice-search-mark{font-size:.8rem;color:var(--brand);font-weight:700;white-space:nowrap}.choice-button:hover{border-color:var(--brand);background:#fafcf7}.choice-button:disabled{background:#f4f5f2;cursor:not-allowed}.choice-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;opacity:0!important;pointer-events:none!important;margin:0!important;padding:0!important;border:0!important;clip-path:inset(50%)}
.choice-dialog{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:min(680px,calc(100dvh - 32px));padding:0;border:1px solid var(--line);border-radius:18px;color:var(--text);background:white;box-shadow:var(--shadow-raised);overflow:hidden}.choice-dialog[open]{display:flex;flex-direction:column}.choice-dialog::backdrop{background:#172a2466;backdrop-filter:blur(3px)}.choice-head{padding:20px 20px 12px;display:flex;gap:14px;align-items:center;justify-content:space-between}.choice-head h2{font-size:1.25rem;margin:0;overflow-wrap:anywhere}.choice-dialog .choice-search{margin:0 20px 12px;width:calc(100% - 40px);flex-shrink:0}.choice-list{overflow:auto;overscroll-behavior:contain;min-height:100px;padding:0 10px 12px;flex:1}.choice-option{display:flex;align-items:center;gap:10px;min-height:48px;width:100%;border:0;border-radius:8px;background:transparent;color:var(--text);text-align:left;padding:12px 13px;font-size:1rem;line-height:1.4;overflow-wrap:anywhere}.choice-option[aria-selected=true]{background:var(--brand-soft);color:var(--brand-dark);font-weight:750}.choice-option[aria-selected=true]::after{content:'✓';margin-left:auto;font-weight:800}.choice-option:focus-visible,.choice-option:hover{background:#f0f4e9;outline:2px solid var(--brand);outline-offset:-2px}.choice-option:disabled{color:var(--muted);background:#f6f6f3}.choice-empty{padding:20px;color:var(--muted);font-weight:400}.choice-footer{padding:12px 20px 20px;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center;justify-content:space-between}.choice-footer .muted{font-size:.85rem}.choice-group{padding:12px 13px 5px;font-size:.85rem;color:var(--muted);font-weight:700}
/* Role homes: tasks first, then a small number of familiar destinations. */
.home-welcome{display:flex;gap:20px;justify-content:space-between;align-items:center;margin-bottom:26px}.home-welcome h2{font-size:1.85rem;margin-bottom:6px}.home-welcome p{margin:0;color:var(--muted)}.home-welcome .button{flex-shrink:0}.home-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px}.home-count{display:flex;align-items:center;gap:16px;padding:19px 22px;background:#fff;border:1px solid var(--line);border-radius:14px;text-align:left;color:var(--text)}.home-count strong{font-size:2rem;line-height:1.15;font-weight:750}.home-count span{font-size:.95rem;font-weight:650;line-height:1.4}.home-count:nth-child(2){background:#f0f4e5}.home-count:nth-child(3){background:#edf3ee}.home-columns{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;align-items:start}.home-tasks-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.home-tasks-title h2{font-size:1.35rem;margin:0}.home-tasks-title span{font-size:.9rem;color:var(--muted)}.inbox{display:grid;grid-template-columns:1fr;gap:14px;margin:0}.inbox-card{padding:22px;border:1px solid var(--line);border-radius:14px;background:white;box-shadow:none;min-width:0}.inbox-card h3{font-size:1.1rem;margin:0 0 6px}.inbox-card p{font-size:.95rem;color:var(--muted);margin:0 0 15px}.inbox-card.late{border-color:#e4b29e;border-left:4px solid #b65a37;background:#fffaf6}.inbox-card .actions{margin-top:14px}.inbox-card.done{padding:30px;border:1px dashed #bccdb2;background:#f7faf3}.inbox-card.done h3{font-size:1.2rem}.inbox-card.done p{margin-bottom:0}.inbox-list{list-style:none;margin:0;padding:0}.inbox-list li{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:14px 0;border-top:1px solid var(--line);flex-wrap:wrap}.inbox-list li>span:last-child{display:flex;gap:8px;flex-wrap:wrap}.inbox-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}.inbox-form .button,.inbox-form .draft-note{grid-column:1/-1}.inbox-form .draft-note{margin:0;font-size:.85rem}.home-links{display:grid;gap:4px;padding:10px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.home-link{display:flex;align-items:center;gap:13px;border:0;background:transparent;color:var(--text);padding:14px 4px;text-align:left;font-size:.95rem;line-height:1.4;font-weight:650;border-radius:8px}.home-link:hover{background:var(--brand-soft)}.home-link>span{flex:1}.home-link svg{color:#5b7355}.home-side h3{font-size:1.05rem;margin:3px 0 14px}.home-side-note{margin-top:24px;padding:18px;border-radius:12px;background:#edf1e3}.home-side-note p{font-size:.9rem;margin:7px 0 12px}.home-promos{margin-top:24px}.home-promos .inbox-card{background:#eff3e4}.home-upcoming{margin-top:24px;border-top:1px solid var(--line);padding-top:22px}.home-upcoming p{margin:4px 0 12px;font-size:.95rem}.home-upcoming .home-link{width:100%}.home-section-error{padding:20px;background:#fff5ec;border-radius:12px}.home-section-error button{margin-top:8px}.home-shortcuts-mobile{display:none}
dialog:not(.choice-dialog){max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}#team-dialog{width:min(760px,calc(100vw - 24px));padding:24px;border-radius:18px}.team-detail-grid{gap:20px}.team-issue-list{font-size:.95rem}.team-credential-grid{gap:18px}.card-quick-actions{padding:10px 0 18px}.card-quick-actions .button{background:transparent}.team-more{font-size:.95rem}.team-tabs{flex-wrap:wrap}.nav-sheet{padding:22px;border-radius:22px 22px 0 0}.sheet-group{gap:10px}.sheet-user{font-size:.9rem}.toast{font-size:1rem;max-width:calc(100vw - 30px)}.large-text-hint{font-weight:400;font-size:.9rem}
@media(max-width:1099px){.topbar{padding:16px 20px}.topbar h1{font-size:1.5rem}.topbar-actions{gap:8px}.topbar-actions .chip{display:none}.view{padding:24px 20px 40px}.home-columns{grid-template-columns:minmax(0,1fr) 240px}.receipt-attention{margin:14px 20px 0}.home-welcome h2{font-size:1.65rem}}
@media(max-width:700px){.view{padding:20px 16px 34px}.topbar{padding:12px 16px;gap:10px}#page-description{font-size:.85rem;line-height:1.4}.topbar h1{font-size:1.4rem}.profile-avatar{width:36px;height:36px}.card,.overview-panel,.form-card{padding:18px}.home-welcome{align-items:flex-start;margin-bottom:20px;flex-wrap:wrap;gap:14px}.home-welcome h2{font-size:1.6rem}.home-welcome p{font-size:.95rem}.home-welcome .button{width:100%}.home-columns{display:flex;flex-direction:column;gap:26px}.home-main,.home-side{width:100%}.home-side .home-links{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px}.home-link{font-size:.9rem;gap:9px}.home-counts{gap:8px;margin-bottom:22px}.home-count{padding:13px 10px;display:block;border-radius:12px}.home-count strong{display:block;font-size:1.65rem;margin-bottom:5px}.home-count span{font-size:.8rem}.home-tasks-title h2{font-size:1.25rem}.inbox-card{padding:18px}.inbox-card .button{max-width:100%;white-space:normal}.inbox-form{gap:12px}.home-side-note{margin-top:16px}.receipt-attention{margin:12px 16px 0;padding:15px;display:block}.receipt-attention .button{margin-top:12px;width:100%}.inbox-list li{display:block}.inbox-list li>span:last-child{margin-top:10px}.bottom-nav .nav-button{font-size:.7rem;min-height:58px}.choice-dialog{max-height:calc(100dvh - 24px);width:calc(100vw - 20px);max-width:calc(100vw - 20px)}.choice-head{padding:18px 16px 12px}.choice-dialog .choice-search{margin-inline:16px;width:calc(100% - 32px)}#team-dialog{padding:18px}.type-settings{min-width:36px;min-height:36px;font-size:.9rem}.team-person-head h2{font-size:1.3rem}.section-head{flex-wrap:wrap}.section-head>.actions{width:100%}.form-grid{grid-template-columns:1fr}.page-back{font-size:.85rem;min-height:30px}.home-promos{margin-top:18px}}
.sidebar .nav-button>span{color:inherit}.sidebar .nav-button .icon{color:inherit}.sidebar .nav-button .nav-count{color:#fff}.inbox-more>summary{padding:15px 18px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--brand-dark);font-weight:700;list-style:none}.inbox-more>summary::after{content:' +';float:right}.inbox-more[open]>summary::after{content:' −'}.inbox-more[open]>summary{margin-bottom:14px}.people-search input{min-width:0}.people-search{max-width:300px}.sidebar .nav-group{margin-bottom:12px}
@media(max-width:700px){.people-search{max-width:100%;flex:1}.topbar:has(.people-search){flex-wrap:wrap}.topbar:has(.people-search) .topbar-actions{flex-wrap:wrap;width:100%}.topbar:has(.people-search) .people-search{flex:1;min-width:180px}.topbar-actions .header-date{display:none}.people-search-results{width:min(340px,calc(100vw - 32px))}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:1100px){#desktop-nav .nav-button{color:var(--muted);font-size:.95rem;font-weight:600;min-height:46px}#desktop-nav .nav-button .icon{color:inherit}#desktop-nav .nav-button:hover{color:var(--brand-dark);background:var(--surface-2)}#desktop-nav .nav-button.active{background:var(--brand-soft);color:var(--brand-dark);box-shadow:none}#desktop-nav{scrollbar-color:#bdc8b7 transparent}}
#view p,#view .muted{font-size:.95rem}#view small,#view .meta,#view .badge,#view .team-stage{font-size:.85rem}#view label,dialog label{font-size:.95rem}#view .segmented button,#view .tabs button,#view .team-tabs button,#view [aria-pressed]{font-size:.9rem}#view .eyebrow{font-size:.8rem}#view .card h3{font-size:1.2rem}#view .team-facts dt,#view .document-label{font-size:.95rem}#view .team-facts dd{font-size:1rem}#view #team-back{display:none}#desktop-nav .nav-group-title{font-size:.75rem;color:#64715f}dialog p.muted{font-size:.95rem}.view .inbox-form .draft-note{font-size:.85rem}.linked-person-inline{display:inline;padding:0;min-height:0;border:0;background:none;font:inherit;font-weight:650;color:var(--brand-dark);text-align:inherit;text-decoration:underline;text-decoration-color:#b9c8b4;text-underline-offset:4px}
