.app-layout button { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.app-layout h1 { font: 650 clamp(32px,3.3vw,49px)/1.18 var(--heading); letter-spacing: -.04em; margin-bottom: 15px; }
.app-layout h2 { font: 650 22px/1.18 var(--heading); letter-spacing: -.025em; }
.app-layout h3 { font: 650 19px/1.18 var(--heading); }
.app-layout h1,.app-layout h2,.app-layout h3 { overflow-wrap:anywhere; }
.app-layout .button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 19px; font-size: 14px; font-weight: 650; border: 1px solid transparent; border-radius: var(--small-radius); }
.app-layout .primary { background: var(--primary); color: white; }
.app-layout .secondary { background: white; border-color: var(--line); }
.app-layout .button:hover { border-color: #809d94; }
.app-layout .text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--primary); padding: 10px 0; min-height: 44px; font-weight: 650; font-size: 14px; }
.app-layout .icon-button { display: inline-grid; place-items: center; min-width: 44px; height: 44px; border-radius: 8px; }
.app-layout .icon-button:hover { background: var(--soft); }
.icon { width: 21px; height: 21px; flex: 0 0 auto; vertical-align: middle; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.small { font-size: 13px; }
.full-width { width: 100%; }
.section-context { color: var(--muted); font-size: 12px; margin-bottom: 13px; }
.large-icon .icon { width: 32px; height: 32px; color: var(--gold); }
.app-layout { display: grid; grid-template-columns: 245px minmax(0,1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y:auto; padding: 27px 22px 18px; background: white; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.workspace { display: flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 650; margin: 30px 0 24px; }
.workspace-logo { display:block; width:48px; height:48px; object-fit:contain; flex:0 0 48px; }
.workspace>span { min-width:0; }
.workspace small,.support-note small,.account small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; }
.workspace-dot { width: 31px; height: 31px; border: 1px solid var(--line); background: var(--gold-light); color: var(--amber); border-radius: 8px; display: grid; place-items: center; }
.area-switch { border: 1px solid var(--line); padding: 4px; background: #f4f6f5; border-radius: 10px; display: flex; margin-bottom: 24px; font-size: 13px; font-weight: 650; }
.area-switch button { min-height: 37px; border-radius: 7px; flex: 1; }
.area-switch button.selected { color: var(--primary); background: white; box-shadow: 0 1px 5px #25352f16; }
.area-switch>span { margin: 6px 10px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button,.nav-settings { min-height: 46px; display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: 8px; text-align: left; color: var(--muted); font-size: 14px; }
.sidebar nav [aria-current=page] { color: var(--primary); background: var(--soft); font-weight: 650; }
.sidebar nav button:hover,.nav-settings:hover { color: var(--primary); background: #f5f7f6; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.support-note { display: flex; align-items: center; gap: 10px; padding: 14px 2px; }
.support-note p { font-size: 11px; margin: 0; }
.tiny-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #eee9dc; color: #68531e; font-size: 11px; flex: 0 0 auto; font-weight: 650; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: #e5ede9; color: #375a4c; display: grid; place-items: center; font-size: 12px; font-weight: 650; flex: 0 0 auto; }
.account { display: flex; align-items: center; gap: 10px; padding-top: 18px; margin-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.account .avatar { width: 34px; height: 34px; }
.main-column { min-width: 0; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); background: #ffffffa6; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.breadcrumb { display: flex; align-items: center; gap: 15px; font-size: 13px; color: var(--muted); }
.breadcrumb>span { color: #b3c1bb; }
.topbar-right { display: flex; gap: 18px; align-items: center; }
.demo-label { font-size: 11px; color: var(--muted); }
.mobile-brand { display: none; }
.app-main { width:100%; min-width:0; padding:clamp(24px,2.2vw,40px); max-width:none; margin:0; }
.page-heading { margin-bottom: 34px; }
.page-heading.row>div:first-child { min-width:0;flex:1 1 360px; }
.page-heading.compact h1 { font-size: 34px; }
.page-heading .lead { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; font-size: 19px; }
.section-heading .text-button { padding: 0; }
.challenge-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.challenge-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.challenge-illustration { height: 124px; display: flex; align-items: center; justify-content: space-between; padding: 26px 30px; background: #e5efea; color: #365d50; }
.challenge-illustration>.icon { width: 55px; height: 55px; stroke-width: 1.1; }
.challenge-illustration>span { font: 500 47px/1 var(--heading); letter-spacing: -.06em; }
.challenge-illustration small { display: block; font: 13px var(--body); letter-spacing: 0; text-align: right; padding-top: 6px; }
.team-card .challenge-illustration { background: #eee8d9; color: #7a622d; }
.challenge-card-body { padding: 24px; }
.challenge-card h3 { margin: 17px 0 12px; font-size: 24px; min-height: 56px; }
.challenge-card p { font-size: 14px; color: var(--muted); }
.challenge-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; padding: 4px 0 23px; }
.challenge-meta span { display: flex; align-items: center; gap: 6px; }
.challenge-meta .icon { width: 16px; height: 16px; }
.pill { display: inline-block; font-size: 11px; line-height: 1.5; font-weight: 600; background: var(--soft); color: #45675b; border-radius: 30px; padding: 4px 10px; }
.pill.dark { background: #dcece3; color: var(--primary); }
.pill.amber { background: var(--gold-light); color: var(--amber); }
.status-dot { font-size: 11px; color: #32634e; }
.status-dot:before { content: ''; display: inline-block; width: 6px; height: 6px; background: #447b5f; margin-right: 6px; border-radius: 50%; }
.editorial-note,.info-strip { display: flex; align-items: flex-start; gap: 16px; margin-top: 28px; padding: 25px 0; color: var(--muted); border-top: 1px solid var(--line); }
.editorial-note>.icon { width: 32px; height: 32px; color: var(--gold); }
.editorial-note h2 { font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.editorial-note p { font-size: 14px; margin: 0; }
.info-strip { font-size: 13px; }
.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; margin-bottom: 24px; }
.panel h2 { font-size: 20px; }
.content-columns { display: grid; grid-template-columns: minmax(0,1fr) minmax(250px,31%); gap: 25px; }
.content-columns>div,.content-columns>aside { min-width: 0; }
.metric-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin: 22px 0 30px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-row>div { padding-left: 20px; border-left: 1px solid var(--line); }
.metric-row>div:first-child { padding: 0; border: 0; }
.metric-row span { color: var(--muted); font-size: 12px; display: block; }
.metric-row strong { display: block; font: 600 32px/1.5 var(--heading); }
.metric-row small,.big-number small { color: #8a9b94; font-size: 15px; font-weight: 400; }
.task-focus { background: #eaf2ee; padding: 29px; border-radius: var(--radius); margin-bottom: 24px; }
.task-focus>.row:first-child { font-size: 12px; color: var(--muted); margin-bottom: 20px; }
.task-focus h2 { font-size: 27px; }
.task-focus>p { color: #49665b; font-size: 15px; }
.task-tip { display: flex; gap: 11px; align-items: flex-start; color: #526b60; margin: 20px 0; }
.task-tip p { font-size: 13px; margin: 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 9px; }
.day { padding: 11px 3px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fafbf9; min-height: 65px; }
.day>span { display: block; font: 500 20px var(--heading); }
.day small { font-size: 10px; }
.day.current { background: var(--primary); border-color: var(--primary); color: white; }
.day.completed { color: #2e6d4c; background: #e8f3e9; }
.day.missed { color: var(--amber); background: var(--gold-light); }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 15px; font-size: 10px; color: var(--muted); margin-top: 16px; }
.daily-progress>.row h2 { font-size: 18px; margin: 0; }
.big-number { font: 600 46px var(--heading); display: block; margin-top: 20px; }
.daily-progress>p { font-size: 13px; color: var(--muted); }
progress { width: 100%; height: 7px; appearance: none; border: 0; border-radius: 10px; overflow: hidden; display: block; margin: 13px 0 20px; background: var(--soft); }
progress::-webkit-progress-bar { background: var(--soft); }
progress::-webkit-progress-value { background: var(--primary); border-radius: 10px; }
.badge-list>div { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.badge-list .icon { color: var(--gold); }
.badge-list strong { display: block; font-size: 13px; }
.badge-list small { display: block; font-size: 11px; color: var(--muted); }
.activity-row { display: flex; gap: 12px; align-items: flex-start; border-top: 1px solid var(--line); padding: 15px 0; }
.activity-row strong { display: block; font-size: 14px; }
.activity-row span { display: block; font-size: 12px; color: var(--muted); }
.achievement-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 22px; }
.achievement { padding: 24px 0; border-bottom: 1px solid var(--line); }
.achievement>.icon { width: 27px; height: 27px; color: var(--gold); margin-bottom: 12px; }
.achievement h3 { font-size: 16px; margin: 0 0 10px; }
.achievement p { font-size: 13px; color: var(--muted); }
.association { border: 1px solid var(--line); border-radius: 9px; padding: 15px; margin: 4px 0 21px; font-size: 13px; }
.association legend { padding: 0 5px; font-weight: 650; }
.association label { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.association small { display: block; margin-top: 8px; }
.people-list { display: grid; gap: 14px; }
.person-card { display: flex; align-items: center; gap: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.person-main { flex: 1; min-width: 0; }
.person-card h2 { font-size: 18px; margin: 0; }
.person-card p { color: var(--muted); font-size: 14px; margin: 8px 0 4px; }
.person-card small { font-size: 12px; color: var(--muted); }
.today-person { display: flex; align-items: center; gap: 14px; padding: 21px 0; border-top: 1px solid var(--line); }
.today-person>div { flex: 1; }
.today-person strong { font-size: 14px;overflow-wrap:anywhere; }
.today-person p { font-size: 13px; color: var(--muted); margin: 3px 0; }
.today-person small { font-size: 11px; color: var(--muted); }
.gentle-panel { background: #eee9dc; border: 0; }
.gentle-panel h2 { font-size: 26px; line-height: 1.2; margin: 19px 0; }
.gentle-panel p { font-size: 14px; color: #746647; }
.large-icon>.icon { width: 35px; height: 35px; color: #8c7336; }
.section-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 25px; }
.section-tabs button { padding: 13px 3px; white-space: nowrap; min-height: 48px; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.section-tabs [aria-current=page] { color: var(--primary); border-color: var(--primary); font-weight: 650; }
.section-tabs button span { background: var(--soft); padding: 2px 6px; border-radius: 5px; margin-left: 5px; font-size: 11px; }
.search-bar { display: flex; gap: 12px; margin: 0 0 18px; width:100%; }
.filter-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 25px; }
.chip { border: 1px solid var(--line); background: white; font-size: 12px; padding: 9px 15px; min-height: 38px; border-radius: 30px; }
.chip.selected { background: var(--primary); color: white; border-color: var(--primary); }
.response-list { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,480px),1fr));gap:14px;align-items:start;width:100%; }
.response-card { background: white; border: 1px solid var(--line); border-radius: 12px; }
.response-card summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 15px; padding: 20px; }
.response-card summary::-webkit-details-marker { display: none; }
.response-icon { color: var(--primary); background: var(--soft); padding: 10px; border-radius: 9px; }
.response-card summary>span:nth-child(2) { flex: 1; }
.response-card summary small { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.response-card summary strong { font-size: 15px; }
.details-plus { font-size: 24px; color: var(--muted); }
.response-card[open] .details-plus { transform: rotate(45deg); }
.response-content { padding: 0 24px 24px 80px; }
.response-content p { color: var(--muted); white-space: pre-wrap; }
.empty-state { padding: 42px; text-align: center; width: 100%; max-width: none; }
.challenge-grid>.empty-state { grid-column: 1 / -1; }
.empty-state>.icon { width: 37px; height: 37px; color: var(--gold); margin-bottom: 20px; }
.empty-state p { max-width: 52ch; margin-left: auto; margin-right: auto; }
.team-table-head,.team-table-row { display: grid; grid-template-columns: 1.4fr .8fr 1fr 1fr; gap: 20px; align-items: center; }
.team-table-head { font-size: 11px; color: var(--muted); padding: 5px 0 13px; }
.team-table-row { border-top: 1px solid var(--line); padding: 18px 0; font-size: 13px; }
.team-table-row small { display: block; color: var(--muted); font-size: 11px; }
.team-table-row .text-button { justify-content: start; }
.support-profile h2 { margin-top: 12px; }
.profile-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 30px; }
.profile-answers h3 { font-size: 14px; margin-bottom: 7px; }
.profile-answers p { font-size: 14px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.settings-form { width:100%; }
.settings-form h2 { margin-top: 20px; }
.toast { position: fixed; right: 25px; bottom: 24px; max-width: min(440px,calc(100vw - 40px)); background: #243e36; color: white; padding: 14px 22px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; transform: translateY(160px); z-index: 100; transition: transform .2s; }
.toast.visible { transform: translateY(0); }
dialog { border: 0; border-radius: 18px; padding: 0; width: min(620px,calc(100vw - 30px)); max-height: calc(100dvh - 50px); color: var(--ink); box-shadow: 0 25px 80px #152b2b40; }
dialog::backdrop { background: #142c3266; }
.dialog-header { display: flex; gap: 15px; align-items: center; justify-content: space-between; padding: 20px 25px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: white; z-index: 2; }
.dialog-header h2 { font-size: 22px; margin: 0; }
.dialog-content { padding: 25px; }
.dialog-content p { overflow-wrap: anywhere; }
.summary-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 20px 0; }
.summary-numbers>div { background: var(--soft); padding: 17px; border-radius: 10px; }
.summary-numbers strong { display: block; font-size: 27px; }
.summary-numbers span { font-size: 12px; color: var(--muted); }
.sidebar { overflow-y: auto; }
.management-nav { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.mobile-header { display: none; }
.app-layout .section-heading h2 { font-size: 19px; margin: 0; }
.app-layout .panel h2 { font-size: 20px; }
.app-layout .challenge-card h3 { font-size: 24px; min-height: 56px; }
.app-layout .gentle-panel h2 { font-size: 26px; }
.app-layout .task-focus h2 { font-size: 27px; margin-top: 18px; }
.app-layout .chip { border: 1px solid var(--line); background: white; font-size: 12px; padding: 9px 15px; min-height: 38px; border-radius: 30px; }
.app-layout .chip.selected { background: var(--primary); color: white; border-color: var(--primary); }
.app-layout .section-tabs button { border-bottom: 2px solid transparent; font-size: 14px; padding: 15px 0; }
.app-layout .section-tabs [aria-current=page] { border-color: var(--primary); color: var(--primary); }
.app-layout .day { border: 1px solid var(--line); background: #fafbf9; }
.app-layout .day.current { background: var(--primary); color: white; }
.app-layout .lead { max-width: 62ch; font-size: 17px; }
.app-layout .search-bar input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }
.quiet-empty { padding: 28px 0 10px; color: var(--muted); }
.quiet-empty h3 { color: var(--ink); }
.quiet-empty p { max-width: 55ch; font-size: 14px; }
.mail-shortcut { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mail-shortcut p { margin: 0; font-size: 14px; color: var(--muted); }
.message-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.workspace-mail,.person-form,.app-layout .mail-compose,.app-layout .mail-review { width:100%; max-width:none; }
.person-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.app-layout .field input,.app-layout .field select,.app-layout .field textarea { width:100%;min-width:0;font:inherit;color:var(--ink);border:1px solid var(--line);border-radius:8px;padding:11px 12px;background:white; }
.person-form .field small { font-size:12px;font-weight:400;color:var(--muted); }
.check-field { display:flex;gap:12px;align-items:flex-start;margin:12px 0 24px;font-size:14px; }
.check-field input { width:20px;height:20px;min-height:20px;accent-color:var(--primary);flex:0 0 auto; }
.check-field small { display:block;color:var(--muted);margin-top:4px; }
.access-fields { border:0;padding:0;margin:0;min-width:0; }
.access-roles { padding:0 0 0 25px;border-left:1px solid var(--line); }
.access-columns { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:28px;margin-bottom:20px; }
.app-layout [hidden] { display:none !important; }
.app-layout .field,.network-card,.person-main { min-width:0; }
.followup-fields { border:0;border-top:1px solid var(--line);padding:22px 0 0;margin:20px 0;min-width:0; }
.followup-fields legend { font-weight:650;padding-right:15px; }
.classification-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.selection-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px; }
.network-workspace { display:grid;gap:24px;min-width:0; }
.network-workspace:has(>aside) { grid-template-columns:minmax(0,2fr) minmax(300px,1fr); }
.network-workspace>section,.network-workspace>aside { min-width:0; }
.network-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:20px; }
.network-grid>.empty-state { grid-column:1/-1; }
.network-card { background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;overflow-wrap:anywhere; }
.network-card h2 { font-size:20px;margin:0; }
.network-card .row>div { min-width:0; }
.classification-tags { display:flex;flex-wrap:wrap;gap:8px;margin:20px 0; }
.profile-facts { display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 16px;font-size:14px;margin:20px 0 26px; }
.profile-facts dt { color:var(--muted); }.profile-facts dd { margin:0;overflow-wrap:anywhere; }
.activity-tag { display:inline-flex;align-items:center;width:fit-content;padding:5px 11px;border-radius:6px;font-size:12px;font-weight:650;white-space:nowrap; }
.activity-tag.cold { color:#734c11;background:#fff0d4; }.activity-tag.followup { color:#245943;background:#e4f2ed; }.activity-tag.network { color:#514277;background:#ece8f8; }
.activity-counts { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px; }
.activity-count { display:flex;align-items:center;gap:14px;flex-wrap:wrap;border-left-width:4px; }
.activity-count.cold { border-left-color:#c18b24; }.activity-count.followup { border-left-color:#398063; }.activity-count.network { border-left-color:#7966a7; }
.activity-count>strong { font-size:30px;margin-left:auto; }.activity-count>span:last-child { font-size:12px;color:var(--muted); }
.activity-filters { display:flex;align-items:end;gap:18px;flex-wrap:wrap; }
.activity-filters>.field { flex:1;min-width:180px;margin:0; }.activity-filters>.form-error { flex-basis:100%; }
.activity-entry { display:grid;grid-template-columns:max-content minmax(0,1fr);gap:20px;align-items:start;padding:20px 0;border-top:1px solid var(--line); }
.activity-entry:first-child { border-top:0; }.activity-entry p { margin:6px 0; }.activity-entry .text-button { padding:0;min-height:28px; }
.table-scroll { overflow-x:auto; }.activity-table { border-collapse:collapse;width:100%;font-size:14px; }.activity-table th,.activity-table td { text-align:left;padding:14px;border-bottom:1px solid var(--line); }
.app-main { outline: none; }
@media (min-width:1600px) { .app-main { padding-top: 55px; } }
@media (max-width:1100px) {
  .app-layout { grid-template-columns: 215px minmax(0,1fr); }
  .sidebar { padding: 24px 14px; }
  .app-main { padding: 30px 26px; }
  .topbar { padding: 0 26px; }
  .content-columns { grid-template-columns: minmax(0,1fr); }
  .access-columns,.network-workspace:has(>aside) { grid-template-columns:minmax(0,1fr); }
  .access-roles { padding:20px 0 0;border-left:0;border-top:1px solid var(--line); }
  .challenge-card-body { padding: 21px; }
}
@media (max-width:760px) {
  .app-layout { display: block; }
  .sidebar { display: none; position: fixed; z-index: 20; top: 76px; bottom: 0; width: min(300px,90vw); height: calc(100svh - 76px); box-shadow: var(--shadow); padding: 20px; }
  .menu-open .sidebar { display: flex; }
  .sidebar>.brand { display: none; }
  .sidebar .workspace { margin-top: 0; }
  .mobile-header { display: flex; gap: 8px; align-items: center; }
  .mobile-header .brand { font-size: 25px; gap: 4px; }
  .mobile-header .brand-mark { width: 36px; height: 36px; }
  .mobile-header .brand-mark img { width: 78px; height: 78px; }
  .breadcrumb,.desktop-settings { display: none!important; }
  .topbar { padding: 0 16px; }
  .topbar-right { gap: 0; }
  .app-main { padding: 28px 20px 40px; }
  .app-layout h1 { font-size: 36px; }
  .app-layout .lead { font-size: 15px; }
  .page-heading { margin-bottom: 26px; }
  .app-layout .section-heading { align-items: flex-start; gap: 12px; }
  .challenge-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .challenge-card-body { padding: 21px; }
  .app-layout .challenge-card h3 { min-height: 0; font-size: 23px; }
  .challenge-illustration { height: 110px; padding: 24px; }
  .panel { padding: 20px; margin-bottom: 20px; }
  .calendar-grid { gap: 5px; }
  .app-layout .day { padding: 8px 1px; min-height: 54px; }
  .section-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .app-layout .section-tabs button { white-space: nowrap; font-size: 12px; flex: 0 0 auto; }
  .response-card summary { padding: 15px; gap: 12px; }
  .response-content { padding: 0 19px 20px; }
  .person-card { padding: 18px; gap: 12px; }
  .person-form .form-grid { grid-template-columns:1fr;gap:0; }
  .classification-grid,.selection-grid,.activity-counts { grid-template-columns:minmax(0,1fr);gap:14px; }
  .activity-entry { grid-template-columns:minmax(0,1fr);gap:10px; }
  .activity-count { margin-bottom:0; }.activity-counts { margin-bottom:24px; }
  .today-person { flex-wrap:wrap; }.today-person>div { min-width:0; }
  .person-card { flex-wrap:wrap; }
  .app-layout .search-bar { display: flex; gap: 8px; }
  .app-layout .search-bar .button { padding: 10px; }
  .editorial-note { padding-top: 22px; }
}

/* Native page links share the existing navigation control scale. */
a[data-route],a[data-material-kind],a[data-challenge]{text-decoration:none;}
.sidebar nav a{min-height:36px;display:flex;align-items:center;gap:12px;padding:7px 10px;border-radius:8px;text-align:left;color:var(--muted);font-size:13px;}
.sidebar nav a:hover{color:var(--primary);background:var(--soft);}
.section-tabs a{display:inline-flex;align-items:center;white-space:nowrap;min-height:38px;padding:12px 0;color:var(--muted);font-size:13px;border-bottom:2px solid transparent;}
@media(max-width:800px){.app-layout .section-tabs a{font-size:12px;flex:0 0 auto;}}
