:root {
    --navy:#112e36;
    --green:#1f654e;
    --green-dark:#164d3c;
    --green-soft:#eaf3ed;
    --ink:#1c3034;
    --muted:#657778;
    --line:#dce5e2;
    --paper:#f4f7f5;
    --white:#fff;
    --gold:#d4b36c;
    --danger:#b73636;
    --radius:12px;
    --shadow:0 8px 30px #153b2710;
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--ink);
    background:var(--paper);
    font-synthesis:none;
}

* {
    box-sizing:border-box;
}

body {
    margin:0;
}

html:has(dialog[open]),body:has(dialog[open]) {
    overflow:hidden;
    overscroll-behavior:none;
}

dialog,.modal-content {
    overscroll-behavior:contain;
}

button,input,select,textarea {
    font:inherit;
}

button,a,input,select,textarea {
    -webkit-tap-highlight-color:transparent;
}

button,a {
    touch-action:manipulation;
}

button {
    cursor:pointer;
}

button:disabled {
    cursor:wait;
    opacity:.55;
}

a {
    color:var(--green);
}

img {
    max-width:100%;
}

h1,h2,h3,p {
    margin-top:0;
}

h1 {
    font-size:clamp(1.7rem,2.5vw,2.25rem);
    line-height:1.15;
    letter-spacing:-.04em;
    margin-bottom:.6rem;
}

h2 {
    font-size:1.2rem;
    letter-spacing:-.025em;
}

h3 {
    font-size:1rem;
}

p {
    line-height:1.6;
}

[hidden] {
    display:none!important;
}

:focus-visible {
    outline:3px solid #c5a15d;
    outline-offset:3px;
}

input,select,textarea {
    width:100%;
    min-width:0;
    border:1px solid var(--line);
    border-radius:8px;
    padding:.7rem .8rem;
    color:var(--ink);
    background:white;
    line-height:1.3;
}

input[type=checkbox],input[type=radio] {
    width:1.05rem;
    height:1.05rem;
    accent-color:var(--green);
    flex-shrink:0;
}

textarea {
    resize:vertical;
    min-height:90px;
}

label {
    display:flex;
    flex-direction:column;
    gap:.45rem;
    font-size:.85rem;
    font-weight:550;
}

fieldset {
    border:1px solid var(--line);
    border-radius:8px;
    padding:1rem;
    margin:0;
}

legend {
    padding:0 .4rem;
    font-size:.85rem;
    font-weight:650;
}

form {
    margin:0;
}

.muted {
    color:var(--muted);
}

.small {
    font-size:.8rem;
}

.eyebrow {
    font-size:.7rem;
    letter-spacing:.16em;
    font-weight:750;
    text-transform:uppercase;
    color:var(--green);
    margin-bottom:1rem;
}

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

.skip-link {
    position:fixed;
    top:-100px;
    left:1rem;
    z-index:100;
    background:white;
    padding:1rem;
}

.skip-link:focus {
    top:1rem;
}

.button {
    border:1px solid var(--line);
    border-radius:8px;
    background:var(--white);
    color:var(--ink);
    padding:.65rem 1rem;
    display:inline-flex;
    gap:.5rem;
    align-items:center;
    justify-content:center;
    font-size:.85rem;
    font-weight:600;
    text-decoration:none;
    white-space:nowrap;
    transition:background .15s,border-color .15s;
}

.button:hover {
    background:var(--paper);
    border-color:#b3c6bc;
}

.button.primary {
    background:var(--green);
    color:white;
    border-color:var(--green);
}

.button.primary:hover {
    background:var(--green-dark);
}

.button.subtle {
    background:transparent;
    border-color:transparent;
    color:var(--muted);
}

.button.danger {
    color:var(--danger);
    border-color:#e7baba;
}

.button.compact {
    padding:.4rem .65rem;
    font-size:.75rem;
}

.full {
    width:100%;
}

.icon-button {
    border:0;
    background:transparent;
    padding:.4rem .6rem;
    font-size:1.5rem;
    color:inherit;
    border-radius:6px;
}

.brand {
    display:flex;
    align-items:center;
    gap:.7rem;
    text-decoration:none;
    font-weight:450;
    font-size:1.12rem;
    letter-spacing:-.04em;
    white-space:nowrap;
}

.brand strong {
    font-weight:750;
}

.brand img {
    width:34px;
    height:38px;
    object-fit:contain;
}

.brand-light {
    color:white;
}

.sidebar {
    position:fixed;
    inset:0 auto 0 0;
    width:240px;
    background:var(--navy);
    color:white;
    padding:28px 18px;
    display:flex;
    flex-direction:column;
    z-index:30;
    overflow-y:auto;
}

.sidebar .brand {
    flex-direction:column;
    flex-shrink:0;
    gap:14px;
    margin:0 0 26px;
    font-size:1.4rem;
    text-align:center;
}

.sidebar .brand img {
    width:144px;
    height:144px;
    padding:10px;
    background:white;
    border-radius:24px;
    box-shadow:0 12px 32px #00000020;
}

.nav-label {
    font-size:.59rem;
    letter-spacing:.19em;
    color:#a2b6b6;
    margin:0 13px 15px;
}

.sidebar nav {
    display:flex;
    flex-direction:column;
    gap:5px;
}

.sidebar nav a {
    color:#b9cccb;
    display:flex;
    align-items:center;
    gap:14px;
    padding:12px 14px;
    border-radius:8px;
    text-decoration:none;
    font-size:.85rem;
    font-weight:500;
}

.sidebar nav a>span:first-child {
    width:20px;
    text-align:center;
    font-size:1.1rem;
}

.sidebar nav a:hover {
    background:#ffffff0a;
    color:white;
}

.sidebar nav a.active {
    background:#ffffff13;
    color:white;
    box-shadow:inset 3px 0 var(--gold);
}

.sidebar-bottom {
    margin-top:auto;
    display:flex;
    gap:12px;
    align-items:center;
    padding:22px 12px 0;
    border-top:1px solid #ffffff14;
}

.sidebar-bottom img {
    width:29px;
    height:auto;
    flex-shrink:0;
    object-fit:contain;
    opacity:.6;
}

.sidebar-bottom p {
    font-size:.75rem;
    margin:0;
    color:#afc4bf;
}

.sidebar-bottom span {
    font-size:.65rem;
    color:#7d9993;
}

.workspace {
    margin-left:240px;
    min-height:100vh;
    display:flex;
    flex-direction:column;
}

body.sidebar-collapsed .sidebar {
    transform:translateX(-100%);
    visibility:hidden;
}

body.sidebar-collapsed .workspace {
    margin-left:0;
}

.menu-backdrop {
    position:fixed;
    inset:0;
    z-index:25;
    border:0;
    padding:0;
    background:#102c3666;
}

.topbar {
    position:sticky;
    top:0;
    z-index:20;
    min-height:86px;
    background:white;
    border-bottom:1px solid var(--line);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 36px;
}

#menu-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex-shrink:0;
    width:44px;
    height:44px;
    border:1px solid var(--line);
    background:var(--paper);
}

.context-controls,.user-controls {
    display:flex;
    align-items:center;
    gap:16px;
}

.context-controls label {
    font-size:.65rem;
    color:var(--muted);
    gap:4px;
}

.context-controls select {
    border:0;
    padding:0 24px 0 0;
    font-size:.8rem;
    font-weight:650;
    max-width:300px;
}

.user-controls>select {
    width:auto;
    border:0;
    font-size:.75rem;
    padding:.5rem;
}

.user-name {
    font-size:.8rem;
    font-weight:600;
}

.mobile-only {
    display:none;
}

main#main {
    padding:36px;
    max-width:1600px;
    width:100%;
    margin:0 auto;
    flex:1;
}

.page-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:28px;
}

.page-header p {
    font-size:.9rem;
    color:var(--muted);
    margin:0;
}

.page-header .eyebrow {
    margin-bottom:.6rem;
    font-size:.65rem;
}

.page-header-actions {
    display:flex;
    gap:8px;
    align-items:center;
}

.page-footer {
    padding:16px 36px;
    font-size:.7rem;
    color:#7e9087;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:15px;
}

.panel {
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:white;
    padding:24px;
    box-shadow:var(--shadow);
    margin-bottom:22px;
}

.panel>h2 {
    margin-bottom:20px;
}

.stats-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
    margin-bottom:26px;
}

.stat-card {
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:white;
    padding:22px;
    box-shadow:var(--shadow);
    position:relative;
    overflow:hidden;
}

.stat-card p {
    font-size:.8rem;
    color:var(--muted);
    margin:0 0 18px;
}

.stat-card strong {
    font-size:2.15rem;
    font-weight:650;
    letter-spacing:-.055em;
}

.stat-card .stat-symbol {
    position:absolute;
    right:20px;
    bottom:22px;
    font-size:1.5rem;
    color:#a8bcaf;
}

.stat-card:first-child {
    background:var(--green);
    color:white;
    border-color:var(--green);
}

.stat-card:first-child p,.stat-card:first-child .stat-symbol {
    color:#b6d5c2;
}

.two-columns {
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
    gap:22px;
}

.group-row {
    display:grid;
    grid-template-columns:40px 1fr 30px;
    align-items:center;
    gap:14px;
    padding:13px 0;
}

.group-row img {
    width:36px;
    height:36px;
    object-fit:contain;
}

.group-row .bar {
    height:6px;
    background:var(--paper);
    border-radius:4px;
    margin-top:9px;
    overflow:hidden;
}

.group-row .bar span {
    display:block;
    height:100%;
    background:var(--group-color,var(--green));
    border-radius:4px;
}

.group-row strong {
    font-size:.85rem;
}

.simple-list {
    padding:0;
    list-style:none;
    margin:0;
}

.simple-list li {
    padding:14px 0;
    border-bottom:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:10px;
    font-size:.85rem;
}

.simple-list li:last-child {
    border:0;
}

.simple-list .recent-enrollment { justify-content:flex-start; align-items:center; gap:12px; }
.recent-enrollment>.avatar { width:42px; height:42px; flex-shrink:0; }
.recent-enrollment>div { min-width:0; display:grid; gap:5px; }
.recent-enrollment>div>strong { font-size:.85rem; }
.recent-enrollment>div>span { display:flex; align-items:center; gap:7px; color:var(--muted); font-size:.75rem; }
.recent-enrollment-group { width:24px; height:24px; object-fit:contain; flex-shrink:0; }
.stats-grid.dashboard-people-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dashboard-outpost { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.dashboard-outpost-identity,.dashboard-outpost-coordinator { display:flex; align-items:center; gap:14px; min-width:0; }
.dashboard-outpost-identity p { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin:0 0 7px; color:var(--muted); font-size:.8rem; }
.dashboard-outpost-identity h2 { margin:0; font-size:clamp(1.6rem,2.8vw,2.3rem); line-height:1.15; overflow-wrap:anywhere; }
.dashboard-outpost-logo { width:clamp(88px,10vw,128px); height:clamp(88px,10vw,128px); object-fit:contain; flex-shrink:0; }
.dashboard-outpost-coordinator>.avatar { width:52px; height:52px; flex-shrink:0; }
.dashboard-outpost-coordinator small,.dashboard-outpost-coordinator strong { display:block; }
.dashboard-outpost-coordinator small { color:var(--muted); margin-bottom:5px; font-size:.74rem; }
.dashboard-outpost-coordinator strong { font-size:.9rem; overflow-wrap:anywhere; }
.dashboard-awards-summary { margin-bottom:24px; }
.dashboard-awards-summary .dashboard-award-card { background:var(--white); color:var(--ink); border-color:var(--line); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.dashboard-awards-summary .dashboard-award-card:hover { transform:translateY(-3px); box-shadow:0 10px 24px #153b2724; border-color:#9bbbab; }
@media(prefers-reduced-motion:reduce) { .dashboard-awards-summary .dashboard-award-card { transition:none; } .dashboard-awards-summary .dashboard-award-card:hover { transform:none; } }
.dashboard-awards-summary .dashboard-award-card p { color:var(--muted); padding-right:42px; }
.dashboard-award-card .dashboard-award-group { position:absolute; top:18px; right:16px; width:38px; height:38px; object-fit:contain; }
.dashboard-award-card small { display:block; margin-top:5px; color:var(--muted); font-size:.72rem; }

.filters {
    display:flex;
    gap:12px;
    align-items:end;
    flex-wrap:wrap;
    margin-bottom:22px;
}

.filters label {
    min-width:140px;
}

.filters .search-field {
    flex:1;
    min-width:200px;
}

.table-wrap {
    overflow:auto;
    border:1px solid var(--line);
    border-radius:10px;
    background:white;
}

table {
    border-collapse:collapse;
    width:100%;
    font-size:.82rem;
    white-space:nowrap;
}

th {
    background:#f8faf8;
    text-align:left;
    font-size:.66rem;
    font-weight:650;
    letter-spacing:.055em;
    text-transform:uppercase;
    padding:15px 16px;
    color:var(--muted);
    border-bottom:1px solid var(--line);
}

td {
    padding:15px 16px;
    border-bottom:1px solid #edf1ee;
    vertical-align:middle;
}

tr:last-child td {
    border-bottom:0;
}

tbody tr:hover {
    background:#f8faf9;
}

.person-cell {
    display:flex;
    align-items:center;
    gap:12px;
}

.avatar {
    width:36px;
    height:36px;
    object-fit:cover;
    border-radius:50%;
    background:var(--green-soft);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:var(--green);
    font-size:.75rem;
    font-weight:650;
    flex-shrink:0;
}

.person-cell small {
    display:block;
    margin-top:4px;
    color:var(--muted);
    font-size:.7rem;
}

.badge {
    display:inline-flex;
    padding:4px 8px;
    border-radius:5px;
    font-size:.65rem;
    font-weight:600;
    color:var(--green);
    background:var(--green-soft);
}

.badge.inactive {
    background:#f0eeee;
    color:#7d6b6b;
}

.badge.transfer {
    background:#faf2dd;
    color:#8b6b2e;
}

.actions {
    display:flex;
    gap:7px;
}

.pagination {
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:18px;
    font-size:.8rem;
    color:var(--muted);
}

.pagination-controls {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
}

.pagination { gap:14px; flex-wrap:wrap; padding:14px 0; }
.pagination-summary strong { color:var(--ink); }
.pagination .button { min-height:38px; border-radius:9px; font-weight:650; }
.pagination-page { min-width:38px; padding:6px 9px; }
.pagination-step { padding:7px 13px; }
.pagination-step>span { font-size:1.4rem; line-height:1; }
.pagination-gap { padding:0 4px; color:var(--muted); }
.pagination .button:disabled { cursor:default; opacity:.45; }
.pagination .button.pagination-page[aria-current="page"] { background:#1d4ed8; border-color:#1d4ed8; color:white; opacity:1; box-shadow:0 3px 8px #1d4ed826; }

.loading-state,.empty-state {
    padding:50px 20px;
    text-align:center;
    color:var(--muted);
    font-size:.9rem;
}

.error-message {
    background:#fff0ef;
    color:var(--danger);
    border:1px solid #f0cdca;
    padding:12px 14px;
    border-radius:8px;
    font-size:.85rem;
    line-height:1.5;
    margin:15px 0;
}

.toast {
    position:fixed;
    bottom:24px;
    right:24px;
    z-index:100;
    background:var(--navy);
    color:white;
    border-radius:10px;
    padding:14px 22px;
    max-width:min(460px,calc(100vw - 48px));
    box-shadow:0 10px 30px #0002;
    font-size:.85rem;
}

.toast.error {
    background:#8a2929;
}

.modal {
    border:0;
    border-radius:16px;
    padding:0;
    width:min(760px,calc(100vw - 32px));
    max-height:90vh;
    color:var(--ink);
    box-shadow:0 20px 100px #0003;
}

.modal::backdrop {
    background:#102c365c;
    backdrop-filter:blur(2px);
}

.modal-header,.modal-footer {
    padding:20px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    background:#fff;
}

.modal-header {
    border-bottom:1px solid var(--line);
}

.modal-header h2 {
    margin:0;
}

.modal-footer {
    border-top:1px solid var(--line);
    justify-content:end;
    position:sticky;
    bottom:0;
}

.modal-content {
    padding:24px;
}

.modal .error-message {
    margin:0 24px 18px;
}

.form-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.form-grid .wide {
    grid-column:1/-1;
}

.checkbox-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    max-height:300px;
    overflow:auto;
}

.check-label {
    flex-direction:row;
    align-items:start;
    font-size:.8rem;
    gap:10px;
    padding:10px;
    border:1px solid var(--line);
    border-radius:7px;
    font-weight:400;
    line-height:1.5;
}

.check-label:has(input:checked) {
    background:var(--green-soft);
    border-color:#8ab7a0;
}

.check-label input {
    margin-top:3px;
}

.cards-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:18px;
}

.catalog-card {
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:start;
    padding:22px;
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    text-align:left;
    text-decoration:none;
    color:var(--ink);
    gap:12px;
}

.catalog-card:hover {
    border-color:#7aa28a;
    background:#fcfefb;
}

.catalog-card img {
    height:72px;
    width:90px;
    object-fit:contain;
    align-self:center;
}

.catalog-card:has(>.award-year-group-image) { padding-top:48px; }
.catalog-card img.award-year-group-image { position:absolute; top:12px; right:12px; width:34px; height:34px; object-fit:contain; }
.award-ribbons-images { display:flex; flex-direction:column; align-items:center; gap:8px; }
.award-ribbons-images .award-ribbon-image { width:100px; height:48px; object-fit:contain; }
.award-ribbons-images .award-medal-image { width:64px; height:76px; object-fit:contain; }
.cards-grid.award-year-cards { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
.awards-page .cards-grid,.awards-page .award-item-gallery { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:900px) { .awards-page .cards-grid,.awards-page .award-item-gallery { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .awards-page .cards-grid,.awards-page .award-item-gallery { grid-template-columns:minmax(0,1fr); } }
.award-year-cards>.catalog-card { align-items:center; text-align:center; }
.leader-award-catalog>.catalog-card { align-items:center; text-align:center; }
.award-ribbons-section .cards-grid>.catalog-card { align-items:center; text-align:center; }
.award-year-cards>.catalog-card>.badge { order:-1; margin-top:0; font-size:1.25rem; font-weight:700; padding:7px 14px; }
.award-year-cards>.catalog-card>.award-challenge-title { text-transform:uppercase; }
.award-category-symbol .inline-icon { width:64px; height:64px; color:var(--green); }
.catalog-card[data-navigator-category="skill"] .award-category-symbol .inline-icon { color:#2563eb; }
.catalog-card[data-navigator-category="elective"] .award-category-symbol .inline-icon { color:#8552a8; }
.catalog-card.is-selected,.award-year-cards>.catalog-card.is-selected { border-color:var(--green); background:var(--green-soft); box-shadow:0 0 0 2px var(--green),0 8px 20px #153b2726; }
.award-ribbons-section { margin-top:24px; }
.award-ribbons-title { display:flex; align-items:center; gap:12px; text-align:left; }
.award-ribbons-title img { object-fit:contain; flex-shrink:0; }
.award-ribbons-title .award-title-ribbon { width:100px; height:48px; }
.award-ribbons-title .award-title-medal { width:64px; height:76px; }
.award-step-title { display:flex; align-items:center; gap:12px; }
.heading-with-icon { display:flex; align-items:center; gap:12px; }
.heading-with-icon>.inline-icon { width:1.05em; height:1.05em; color:var(--green); flex-shrink:0; }
.award-heading-group-image { width:44px; height:44px; object-fit:contain; flex-shrink:0; }
.award-flow-heading { padding:16px 20px; border:1px solid var(--line); border-left:4px solid var(--green); border-radius:12px; background:var(--paper); box-shadow:0 3px 12px #153b270a; }
.award-flow-heading h2 { display:flex; align-items:center; gap:14px; margin:0; color:var(--green-dark); font-size:1.3rem; line-height:1.4; }
.award-flow-heading h2>.inline-icon { width:28px; height:28px; color:var(--green); }
.award-flow-heading-image { width:48px; height:48px; object-fit:contain; flex-shrink:0; }
.award-step-title-image { width:64px; height:76px; object-fit:contain; flex-shrink:0; }
.award-step-title>.award-leadership-badge { width:64px; height:64px; flex-shrink:0; }
.award-trimesters-section { margin-top:24px; }
.award-requirement-categories,.award-requirements-panel { margin-top:24px; }
.award-trimester-theme { display:flex; align-items:center; gap:14px; margin:0 0 20px; padding:16px 20px; border-left:4px solid var(--green); border-radius:10px; background:var(--green-soft); }
.award-trimester-theme>.inline-icon { width:32px; height:32px; flex-shrink:0; color:var(--green); }
.award-trimester-theme small { display:block; margin-bottom:5px; color:var(--muted); }
.award-trimester-theme h3 { margin:0; font-size:1.15rem; color:var(--green-dark); }
.award-requirement-categories .catalog-card { --category-color:var(--green); }
.award-requirement-categories [data-requirement-category="mental"] { --category-color:#9333ea; }
.award-requirement-categories [data-requirement-category="fisico"] { --category-color:#2563eb; }
.award-requirement-categories [data-requirement-category="social"] { --category-color:#b9770e; }
.award-requirement-categories .award-category-symbol .inline-icon { color:var(--category-color); }
.award-requirement-categories .catalog-card.is-selected { border-color:var(--category-color); box-shadow:0 0 0 2px var(--category-color),0 8px 20px #153b2726; }
.award-requirement-categories .catalog-card[data-requirement-category="biblical"][data-award-source-group="2"] { --category-color:#c45b0b; background:#fff0dc; border-color:#eab981; color:#843c0b; }
.award-requirement-categories .catalog-card[data-requirement-category="biblical"][data-award-source-group="3"] { --category-color:#8b4513; background:#f2e5d7; border-color:#c59a73; color:#654321; }
.award-requirement-categories .catalog-card[data-requirement-category="elective_skill"][data-award-source-group="2"] { --category-color:#2563eb; background:#eaf2ff; border-color:#9abcf3; color:#1e4090; }
.award-requirement-categories .catalog-card[data-requirement-category="elective_skill"][data-award-source-group="3"] { --category-color:#15803d; background:#e9f7ed; border-color:#92cfa4; color:#166534; }
.award-requirement-categories .catalog-card[data-requirement-category="elective_skill"][data-award-source-group="4"] { --category-color:#64748b; background:#e9edf2; border-color:#adb8c7; color:#334155; }
.award-requirement-categories .catalog-card[data-requirement-category="required_skill"][data-award-source-group="2"] { --category-color:#044d97; background:#e8f0fc; border-color:#a4bcdf; color:#03336b; }
.award-requirement-categories .catalog-card[data-requirement-category="required_skill"][data-award-source-group="3"] { --category-color:#2e8b57; background:#e9f7ed; border-color:#92cfa4; color:#166534; }
.award-requirement-categories .catalog-card[data-requirement-category="required_skill"][data-award-source-group="4"] { --category-color:#64748b; background:#edf1f6; border-color:#b2bfce; color:#334155; }
.award-requirement-categories .catalog-card[data-requirement-category="additional_requirement"] { --category-color:#6b5b4f; background:#f3ece6; border-color:#c9b6a6; color:#5c4b3a; }
.award-requirement-categories .catalog-card[data-requirement-category="leadership"][data-award-source-group="2"] { --category-color:#b91c1c; background:#fff0f0; border-color:#eca4a4; color:#991b1b; }
.award-requirement-categories .catalog-card[data-requirement-category="leadership"][data-award-source-group="3"] { --category-color:#a16207; background:#fff7d6; border-color:#dfc167; color:#854d0e; }
.award-requirement-categories .catalog-card[data-requirement-category="leadership"][data-award-source-group="4"] { --category-color:#0284c7; background:#e5f6ff; border-color:#8ecfeb; color:#075985; }
.award-requirement-categories .award-category-symbol>img,.award-leadership-badge { width:84px; height:84px; object-fit:contain; }
.award-requirement-categories .catalog-card[data-award-source-group].is-selected { border-color:var(--category-color); }
.catalog-card[data-award-tone="biblical-1"] { --award-tone-bg:#eaf2ff; --award-tone-border:#9abcf3; --award-tone-ink:#1e4090; --award-tone-accent:#2563eb; }
.catalog-card[data-award-tone="biblical-2"] { --award-tone-bg:#fff0f0; --award-tone-border:#eca4a4; --award-tone-ink:#991b1b; --award-tone-accent:#b91c1c; }
.catalog-card[data-award-tone="biblical-3"] { --award-tone-bg:#e9f7ed; --award-tone-border:#92cfa4; --award-tone-ink:#166534; --award-tone-accent:#15803d; }
.catalog-card[data-award-tone="biblical-4"] { --award-tone-bg:#f5e4d4; --award-tone-border:#c58a5a; --award-tone-ink:#7c431e; --award-tone-accent:#a76432; }
.catalog-card[data-award-tone="biblical-5"],.catalog-card[data-award-tone="platinum"] { --award-tone-bg:#e9edf2; --award-tone-border:#adb8c7; --award-tone-ink:#334155; --award-tone-accent:#64748b; }
.catalog-card[data-award-tone="biblical-0"] { --award-tone-bg:#fff7d6; --award-tone-border:#dfc167; --award-tone-ink:#854d0e; --award-tone-accent:#a16207; }
.awards-page .catalog-card[data-award-tone] { background:var(--award-tone-bg); border-color:var(--award-tone-border); color:var(--award-tone-ink); }
.awards-page .catalog-card[data-award-tone].is-selected { border-color:var(--award-tone-accent); box-shadow:0 0 0 2px var(--award-tone-accent),0 8px 20px #153b2726; }
:is(.award-requirements-panel,.award-inline-registration,.award-register-requirements) ol.requirements-list { display:block; list-style:decimal outside; padding:0 0 0 38px; margin:16px 0; counter-reset:award-requirement; }
:is(.award-requirements-panel,.award-inline-registration,.award-register-requirements) ol.requirements-list>li { position:relative; counter-increment:award-requirement; padding:16px 8px 16px 16px; margin:0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; color:var(--ink); line-height:1.7; overflow-wrap:anywhere; }
:is(.award-requirements-panel,.award-inline-registration,.award-register-requirements) ol.requirements-list>li::marker { color:transparent; font-size:0; }
:is(.award-requirements-panel,.award-inline-registration,.award-register-requirements) ol.requirements-list>li::before { content:counter(award-requirement); position:absolute; left:-36px; top:15px; display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--ink); font-size:.85rem; font-weight:700; }
:is(.award-requirements-panel,.award-inline-registration,.award-register-requirements) ol.requirements-list>li:last-child { border-bottom:0; }

.catalog-card h3 {
    margin:0;
    font-size:.95rem;
}

.catalog-card p {
    font-size:.78rem;
    margin:0;
    color:var(--muted);
}

.catalog-card .badge {
    margin-top:auto;
}

.tabs {
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.tabs button[aria-selected=true] {
    background:var(--green);
    color:white;
    border-color:var(--green);
}

.history-row {
    border-bottom:1px solid var(--line);
    padding:18px 0;
}

.history-row:last-child {
    border:0;
}

.history-row h3 {
    margin:0 0 8px;
}

.history-row p {
    margin:0;
    font-size:.8rem;
    color:var(--muted);
}

.history-people {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.history-people .badge {
    gap:8px;
}

.history-people button {
    border:0;
    background:transparent;
    color:var(--danger);
    font-size:1rem;
    padding:0 2px;
}

.tree {
    list-style:none;
    margin:0;
    padding-left:24px;
    border-left:1px solid var(--line);
}

.tree.root {
    border:0;
    padding-left:0;
}

.tree li {
    padding:8px 0;
}

.tree details>summary {
    cursor:pointer;
    font-weight:600;
    font-size:.85rem;
    padding:8px;
}

.tree small {
    margin-left:8px;
    font-size:.65rem;
    color:var(--muted);
    font-weight:400;
}

.requirements-list {
    padding-left:22px;
    margin:0;
}

.requirements-list li {
    font-size:.85rem;
    line-height:1.6;
    margin-bottom:10px;
}

.section-heading {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin:28px 0 18px;
}

.section-heading h2 {
    margin:0;
}

.date-chip {
    border:1px solid var(--line);
    border-radius:8px;
    padding:8px 12px;
    font-size:.75rem;
    color:var(--muted);
    background:white;
}

.photo-preview {
    width:72px;
    height:72px;
    border-radius:50%;
    object-fit:cover;
}

.login-page {
    background:white;
}

.login-layout {
    min-height:100vh;
    display:grid;
    grid-template-columns:1fr 1fr;
}

.login-story {
    background:var(--navy);
    padding:40px 48px;
    color:white;
    display:flex;
    flex-direction:column;
    position:relative;
    overflow:hidden;
}

.login-story-content {
    margin:auto 0;
    max-width:470px;
    padding:36px 0;
}

.login-story .brand {
    align-self:center;
    flex-direction:column;
    gap:18px;
    font-size:1.75rem;
    text-align:center;
}

.login-story .brand img {
    width:232px;
    height:232px;
    padding:14px;
    background:white;
    border-radius:32px;
    box-shadow:0 18px 48px #00000025;
}

.login-story h1 {
    font-size:clamp(2.2rem,4vw,3.8rem);
    font-weight:500;
    line-height:1.13;
    position:relative;
    z-index:1;
}

.login-story .eyebrow {
    color:var(--gold);
}

.story-mark {
    position:absolute;
    right:-130px;
    bottom:70px;
    opacity:.06;
    font-size:600px;
    line-height:1;
    pointer-events:none;
}

.login-footnote {
    font-size:.7rem;
    color:#a6bcb6;
    margin:0;
}

.login-panel {
    position:relative;
    padding:60px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.language-field {
    position:absolute;
    right:40px;
    top:35px;
}

.language-field select {
    border:0;
    font-size:.8rem;
}

.login-form-wrap {
    width:100%;
    max-width:350px;
}

.login-form-wrap.choosing-position {
    max-width:720px;
}

.position-choices {
    border:0;
    padding:0;
    margin:0;
    min-width:0;
}

.position-gallery {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));
    gap:16px;
}

.position-card {
    position:relative;
    cursor:pointer;
    min-width:0;
}

.position-card input[type=radio] {
    position:absolute;
    top:14px;
    right:14px;
    margin:0;
    z-index:1;
}

.position-card-content {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    height:100%;
    padding:28px 16px 20px;
    border:2px solid var(--line);
    border-radius:16px;
    background:var(--white);
    text-align:center;
    transition:border-color .15s,background .15s,box-shadow .15s;
    overflow-wrap:anywhere;
}

.position-card:hover .position-card-content {
    border-color:var(--green);
    box-shadow:var(--shadow);
}

.position-card input:checked + .position-card-content {
    border-color:var(--green);
    background:var(--green-soft);
    box-shadow:0 0 0 1px var(--green);
}

.position-card input:focus-visible + .position-card-content {
    outline:3px solid var(--gold);
    outline-offset:3px;
}

.position-card-badge {
    width:104px;
    height:104px;
    object-fit:contain;
}

.position-card-scope {
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.position-card-details {
    display:flex;
    align-items:center;
    justify-content:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:auto;
    font-size:.75rem;
}

.position-card-outpost,.position-card-group {
    width:42px;
    height:42px;
    object-fit:contain;
}

.position-choices:disabled .position-card {
    cursor:wait;
    opacity:.65;
}

.login-form-wrap h2 {
    font-size:2.15rem;
    letter-spacing:-.055em;
    margin-bottom:10px;
}

.login-form-wrap>.muted {
    font-size:.85rem;
    margin-bottom:32px;
}

.login-form-wrap form {
    display:flex;
    flex-direction:column;
    gap:22px;
}

.login-form-wrap input,.login-form-wrap select {
    padding:.85rem;
}

#position-context {
    display:flex;
    flex-direction:column;
    gap:4px;
    font-size:.8rem;
}

#position-context a {
    font-size:.75rem;
}

.login-form-wrap .button {
    margin-top:8px;
    padding:.9rem;
}

.login-form-wrap .error-message {
    margin:0;
}

.training-type {
    margin-bottom:20px;
}

.no-position {
    max-width:640px;
    margin:50px auto;
}

.form-help {
    font-size:.75rem;
    color:var(--muted);
    font-weight:400;
    margin:0;
}

.image-icon {
    width:30px;
    height:30px;
    object-fit:contain;
}

@media(min-width:1600px) {
    main#main {
        padding:44px 48px;
    }
}

@media(max-width:1200px) {
    .topbar {
        padding:16px 24px;
    }
    .user-name {
        display:none;
    }
    main#main {
        padding:28px 24px;
    }
    .stats-grid {
        gap:12px;
    }
    .stat-card {
        padding:18px;
    }
    .stat-card p {
        font-size:.72rem;
    }
    .two-columns {
        grid-template-columns:1fr;
    }
    .context-controls select {
        max-width:230px;
    }
}

@media(max-width:850px) {
    .sidebar {
        width:215px;
        padding:24px 12px;
    }
    .sidebar .brand {
        font-size:1.3rem;
    }
    .workspace {
        margin-left:215px;
    }
    .stats-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
    .topbar {
        flex-wrap:wrap;
        gap:12px;
    }
    .context-controls {
        flex:1;
    }
    .user-controls {
        margin-left:auto;
    }
    .page-header {
        align-items:start;
    }
    .page-header-actions {
        flex-wrap:wrap;
    }
    .login-story {
        padding:32px;
    }
    .login-panel {
        padding:40px 28px;
    }
    .login-story h1 {
        font-size:2.6rem;
    }
}

@media(max-width:650px) {
    .sidebar {
        transform:translateX(-100%);
        width:240px;
        transition:transform .2s;
    }
    .sidebar.open {
        transform:translateX(0);
        box-shadow:20px 0 100px #102c3640;
    }
    .workspace {
        margin-left:0;
    }
    .mobile-only {
        display:inline-flex;
    }
    .topbar {
        padding:12px 16px;
        min-height:76px;
        gap:8px;
    }
    .context-controls label>span {
        font-size:.6rem;
    }
    .context-controls select {
        max-width:180px;
        font-size:.7rem;
    }
    .user-controls {
        gap:3px;
    }
    .user-controls .button {
        font-size:.7rem;
        padding:.5rem;
    }
    .user-controls select {
        padding:.3rem;
    }
    .context-controls {
        flex-wrap:wrap;
        gap:8px;
    }
    main#main {
        padding:24px 16px;
    }
    .page-header {
        flex-direction:column;
        gap:16px;
        margin-bottom:22px;
    }
    .page-header-actions {
        width:100%;
    }
    .page-header-actions .button {
        flex:1;
    }
    .stats-grid {
        gap:10px;
    }
    .stat-card {
        padding:16px;
    }
    .stat-card strong {
        font-size:1.8rem;
    }
    .stat-symbol {
        display:none;
    }
    .panel {
        padding:18px;
    }
    .form-grid,.checkbox-grid {
        grid-template-columns:1fr;
    }
    .filters label {
        flex:1;
        min-width:130px;
    }
    .filters .search-field {
        flex-basis:100%;
    }
    .pagination {
        gap:10px;
        flex-wrap:wrap;
    }
    .page-footer {
        padding:16px;
        font-size:.65rem;
    }
    .page-footer > span {
        display:none;
    }
    .modal-content {
        padding:18px;
    }
    .modal-header,.modal-footer {
        padding:16px 18px;
    }
    .login-layout {
        grid-template-columns:1fr;
    }
    .login-story {
        padding:24px;
        min-height:200px;
    }
    .login-story-content {
        padding:24px 0 5px;
    }
    .login-story h1 {
        font-size:1.8rem;
        max-width:400px;
    }
    .login-story .brand {
        gap:12px;
        font-size:1.45rem;
    }
    .login-story .brand img {
        width:160px;
        height:160px;
        padding:10px;
        border-radius:24px;
    }
    .login-footnote {
        display:none;
    }
    .login-panel {
        padding:70px 24px 40px;
    }
    .language-field {
        top:20px;
        right:20px;
    }
    .login-form-wrap h2 {
        font-size:1.8rem;
    }
    .cards-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:10px;
    }
    .catalog-card {
        padding:16px;
    }
    .catalog-card h3 {
        font-size:.8rem;
    }
    .catalog-card img {
        height:60px;
    }
    .tree {
        padding-left:14px;
    }
    .user-controls #logout {
        max-width:90px;
        white-space:normal;
    }
}

.topbar {
    display:grid;
    grid-template-columns:44px auto minmax(0,1fr) minmax(0,220px);
    gap:12px;
    padding:12px 20px;
}

.header-language {
    display:flex;
    flex-direction:column;
    gap:3px;
    color:var(--muted);
    font-size:.65rem;
}

.header-language select {
    width:100%;
    padding:.4rem;
    font-size:.8rem;
}

.header-context {
    display:flex;
    flex-wrap:nowrap;
    gap:10px;
    min-width:0;
}

.header-context > .header-context-item {
    flex:1 1 0;
}

.header-context-item,#header-outpost {
    display:flex;
    align-items:center;
    gap:6px;
    min-width:0;
}

.header-context-image,.header-context-symbol {
    width:26px;
    height:26px;
    object-fit:contain;
    flex-shrink:0;
}

.header-context-symbol {
    display:grid;
    place-items:center;
    font-size:1.3rem;
}

.header-context-text {
    display:flex;
    flex-direction:column;
    gap:4px;
    min-width:0;
}

.header-context-text small {
    color:var(--muted);
    font-size:.65rem;
}

.header-context-text strong {
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.4;
    font-size:.78rem;
    font-weight:650;
}

.header-outpost {
    flex-direction:column;
    align-items:stretch;
    gap:4px;
}

#outpost-field select {
    padding:3px;
    font-size:.72rem;
}

.user-dropdown {
    position:relative;
    min-width:0;
}

.user-toggle {
    display:flex;
    align-items:center;
    gap:9px;
    border:1px solid var(--line);
    background:var(--white);
    border-radius:30px;
    padding:5px 10px 5px 5px;
    color:var(--ink);
    width:100%;
    text-align:left;
}

.header-avatar {
    position:relative;
    display:grid;
    place-items:center;
    width:32px;
    height:32px;
    border-radius:50%;
    background:var(--green-soft);
    color:var(--green-dark);
    overflow:hidden;
    font-weight:700;
    flex-shrink:0;
}

.header-avatar-image {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.header-user-name {
    min-width:0;
    flex:1;
    white-space:normal;
    overflow-wrap:anywhere;
    line-height:1.4;
    font-size:.8rem;
    font-weight:650;
}

.user-menu {
    position:absolute;
    right:0;
    top:calc(100% + 10px);
    width:min(280px,calc(100vw - 32px));
    padding:8px;
    border:1px solid var(--line);
    border-radius:14px;
    background:var(--white);
    box-shadow:0 12px 36px #102c3629;
    z-index:5;
}

.user-menu-email {
    font-size:.75rem;
    color:var(--muted);
    padding:8px 10px 12px;
    margin:0 0 4px;
    border-bottom:1px solid var(--line);
    overflow-wrap:anywhere;
}

.user-menu a,.user-menu button {
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    text-align:left;
    padding:11px 10px;
    border:0;
    border-radius:8px;
    color:var(--ink);
    background:transparent;
    text-decoration:none;
    font-size:.85rem;
}

.user-menu-icon {
    width:19px;
    height:19px;
    flex-shrink:0;
}

.user-menu a:hover,.user-menu button:hover {
    background:var(--green-soft);
}

.user-menu #logout {
    color:var(--danger);
}


@media(max-width:1200px) {
    .topbar { grid-template-columns:44px auto minmax(0,1fr) minmax(0,150px); gap:10px; }
}

@media(max-width:650px) {
    .topbar { padding:10px 8px; grid-template-columns:36px minmax(0,.8fr) minmax(0,3fr) minmax(0,1.2fr); gap:6px; }
    #menu-toggle { width:36px; height:36px; }
    .header-context { gap:6px; }
    .header-context-item,#header-outpost { flex-direction:column; align-items:flex-start; }
    .user-toggle { flex-wrap:wrap; justify-content:center; gap:4px; padding:5px; border-radius:12px; }
    .header-user-name { flex-basis:100%; text-align:center; }
    .header-user-name { font-size:.75rem; }
    .header-context-image,.header-context-symbol { width:24px; height:24px; }
    .header-context-text strong { font-size:.72rem; }
    .header-language { flex-direction:column; align-items:stretch; justify-self:stretch; }
}

.inline-icon { width:17px; height:17px; flex-shrink:0; vertical-align:middle; }
.whatsapp-link { display:inline-flex; align-items:center; gap:6px; color:#167c3a; }
.whatsapp-link .inline-icon { width:19px; height:19px; }
.sex-icon { display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; font-size:1.35rem; font-weight:700; }
.sex-icon.male { color:#1d4ed8; background:#eff6ff; }
.sex-icon.female { color:#a21caf; background:#fdf4ff; }
.sex-icon.unspecified { color:var(--muted); background:var(--paper); }
.ranger-heading-image { width:64px; height:64px; object-fit:contain; }
.ranger-shortcuts { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:10px; margin:0 0 24px; }
.rangers-directory [data-shortcut="patrols"] { --action-color:#1d4ed8; }
.rangers-directory [data-shortcut="attendance"] { --action-color:#166534; }
.rangers-directory [data-shortcut="junior_leaders"],.rangers-directory [data-positions] { --action-color:#6d28d9; }
.rangers-directory [data-shortcut="awards"] { --action-color:#92400e; }
.rangers-directory [data-history] { --action-color:#0369a1; }
.rangers-directory .button[data-shortcut],.rangers-directory .button[data-history],.rangers-directory .button[data-positions] {
    color:white;
    background:var(--action-color);
    border-color:var(--action-color);
}
.rangers-directory .button[data-shortcut]:hover,.rangers-directory .button[data-history]:hover,.rangers-directory .button[data-positions]:hover {
    filter:brightness(.88);
}
.rangers-directory .pagination .button {
    color:#1e40af;
    background:#eff6ff;
    border-color:#bfdbfe;
}
.rangers-directory .pagination .button:hover:not(:disabled) {
    background:#dbeafe;
    border-color:#93c5fd;
}
.ranger-table-wrap { max-height:65vh; --name-column-width:280px; --number-column-width:48px; }
.ranger-table { width:max-content; min-width:100%; table-layout:auto; border-collapse:separate; border-spacing:0; white-space:normal; }
.ranger-table th,.ranger-table td { overflow-wrap:anywhere; }
.ranger-table th { position:sticky; top:0; z-index:3; padding:10px; text-transform:none; letter-spacing:normal; white-space:nowrap; overflow-wrap:normal; }
.ranger-table td { padding:12px; }
.ranger-table th:first-child,.ranger-table td:first-child { width:var(--number-column-width); min-width:var(--number-column-width); max-width:var(--number-column-width); position:sticky; left:0; text-align:center; }
.ranger-table th:nth-child(2),.ranger-table td:nth-child(2) { width:var(--name-column-width); min-width:var(--name-column-width); max-width:var(--name-column-width); position:sticky; left:var(--number-column-width); }
.ranger-table th:nth-child(3),.ranger-table td:nth-child(3) { width:70px; position:sticky; left:calc(var(--number-column-width) + var(--name-column-width)); box-shadow:3px 0 5px #102c3610; }
.ranger-table td:nth-child(-n+3) { background:var(--band-fill,var(--white)); z-index:2; }
.ranger-table th:nth-child(-n+3) { z-index:4; background:var(--band-head,#f8faf8); }
.ranger-table tbody tr:hover td { background:var(--band-hover,#f8faf9); }
.rangers-directory [data-band="ranger"] { --band-fill:#f3faf6; --band-head:#dcefe3; --band-hover:#e5f3eb; --band-border:#80ad93; }
.rangers-directory [data-band="father"] { --band-fill:#f2f7ff; --band-head:#deebff; --band-hover:#e5efff; --band-border:#89a9d4; }
.rangers-directory [data-band="mother"] { --band-fill:#faf5ff; --band-head:#eee1fa; --band-hover:#f1e8fa; --band-border:#b49acb; }
.rangers-directory [data-band="guardian"] { --band-fill:#fffaf0; --band-head:#f8edcf; --band-hover:#faf0d9; --band-border:#c6ad71; }
.ranger-table td[data-band] { background:var(--band-fill); }
.ranger-table th[data-band] { background:var(--band-head); }
.ranger-table [data-band-start] { border-left:3px solid var(--band-border); }
.ranger-table-info { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:0 0 12px; }
.ranger-results-badge { margin:0; padding:6px 12px; border:1px solid #bfdbfe; border-radius:20px; background:#eff6ff; color:#1e40af; font-size:.75rem; font-weight:700; white-space:nowrap; }
.ranger-column-legend { display:flex; flex-wrap:wrap; gap:8px; margin:0; }
.ranger-column-legend [data-band] { padding:6px 10px; background:var(--band-head); border-left:3px solid var(--band-border); border-radius:5px; font-size:.75rem; font-weight:650; }
.table-sort { display:flex; align-items:center; gap:6px; width:100%; padding:4px 0; border:0; background:transparent; text-align:left; color:inherit; font:inherit; cursor:pointer; }
.table-sort span { min-width:0; white-space:nowrap; }
.sort-direction { margin-left:auto; }
.person-name-button { border:0; background:transparent; padding:0; color:var(--green-dark); font-weight:700; text-align:left; cursor:pointer; }
.ranger-table .person-cell { align-items:flex-start; }
.ranger-table .person-cell>div { min-width:0; }
.ranger-table .actions { flex-wrap:wrap; margin-top:7px; gap:4px; }
.ranger-table .actions .button { white-space:normal; font-size:.65rem; padding:3px 5px; }
.ranger-position-badges { display:flex; flex-wrap:wrap; gap:4px; margin-top:5px; }
.ranger-position-badges .badge { white-space:nowrap; overflow-wrap:normal; text-align:center; font-size:.65rem; }
.ranger-position-badges .badge { display:inline-flex; align-items:center; gap:5px; }
.ranger-position-image { width:22px; height:22px; object-fit:contain; flex-shrink:0; }
.ranger-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:28px; }
.ranger-summary-grid>.panel { min-width:0; }
.ranger-leaders-block { grid-column:1 / -1; }
.ranger-leader-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; }
.ranger-members-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.ranger-patrol-galleries { display:grid; gap:24px; }
.transfer-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.transfer-choice { display:flex; flex-direction:column; align-items:center; gap:14px; padding:24px 18px; border:1px solid #c6dace; border-radius:16px; background:#f1f8f4; color:#245b43; font:inherit; font-weight:600; cursor:pointer; transition:box-shadow .18s,border-color .18s; }
.transfer-choice:hover { border-color:#699b80; box-shadow:0 8px 20px #153b271a; }
.transfer-choice>.inline-icon { width:30px; height:30px; }
.transfer-person { display:flex; align-items:center; gap:16px; margin-bottom:20px; }
.transfer-person .avatar { width:76px; height:76px; object-fit:cover; flex-shrink:0; }
.transfer-person strong { overflow-wrap:anywhere; }
.transfer-state { display:inline-flex; align-items:center; gap:8px; padding:9px 12px; border-radius:10px; background:#fff2cd; color:#795500; font-weight:600; }
.transfer-state .inline-icon { width:18px; height:18px; }
.transfer-code { cursor:copy; font-family:monospace; }
.transfer-outposts { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin-bottom:16px; }
.transfer-outpost { display:flex; align-items:center; gap:12px; padding:12px; margin-bottom:16px; border:1px solid #d7e3dc; border-radius:12px; background:#f4f8f6; min-width:0; }
.transfer-outposts .transfer-outpost { margin-bottom:0; }
.transfer-outpost-logo { width:64px; height:64px; object-fit:contain; flex-shrink:0; }
.transfer-outpost>div { display:grid; gap:5px; min-width:0; overflow-wrap:anywhere; }
.transfer-outpost small { color:#53675d; }
.transfer-country { display:flex; align-items:center; gap:6px; font-size:.85rem; color:#53675d; }
.transfer-country-flag { width:22px; height:16px; object-fit:contain; }
@media(max-width:600px) { .transfer-choices { grid-template-columns:minmax(0,1fr); } }
.ranger-patrol-gallery { min-width:0; padding:18px; border:1px solid #d9e6df; border-radius:16px; background:#f5f9f7; }
.ranger-patrol-gallery>header { display:flex; align-items:center; gap:10px; padding-bottom:14px; margin-bottom:16px; border-bottom:1px solid #d9e6df; color:#245b43; }
.ranger-patrol-gallery>header h2 { flex:1; min-width:0; margin:0; font-size:1.05rem; overflow-wrap:anywhere; }
.ranger-patrol-gallery>header>.inline-icon { width:22px; height:22px; flex-shrink:0; }
.ranger-member-card { min-width:0; padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; transition:box-shadow .18s,border-color .18s; }
.ranger-member-card:hover { border-color:#a6c4b5; box-shadow:0 8px 24px #153b2720; }
.ranger-member-card>header { display:flex; align-items:center; gap:14px; }
.ranger-member-card>header>div { min-width:0; }
.ranger-member-card .avatar { width:72px; height:72px; flex-shrink:0; object-fit:cover; }
.ranger-member-card h2 { margin:0 0 8px; font-size:1rem; overflow-wrap:anywhere; }
:is(.ranger-member-card,.attendance-patrol) .ranger-patrol-role { display:inline-flex; align-items:center; gap:5px; white-space:normal; }
:is(.ranger-member-card,.attendance-patrol) .ranger-patrol-role .inline-icon { width:15px; height:15px; flex-shrink:0; }
:is(.ranger-member-card,.attendance-patrol) .ranger-patrol-role.leader { background:#fff2cd; color:#795500; }
:is(.ranger-member-card,.attendance-patrol) .ranger-patrol-role.assistant { background:#e4f2ec; color:#246044; }
.ranger-member-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0 0; padding-top:16px; border-top:1px solid var(--line); }
.ranger-member-card dt { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.72rem; }
.ranger-member-card dt .inline-icon { width:15px; height:15px; flex-shrink:0; }
.ranger-member-card dd { margin:5px 0 0; font-size:.84rem; font-weight:600; overflow-wrap:anywhere; }
@media(max-width:650px) { .ranger-members-gallery { grid-template-columns:minmax(0,1fr); } }
.ranger-leader-card { display:flex; align-items:center; gap:12px; padding:14px 12px; border:1px solid var(--line); border-radius:12px; text-align:left; font-size:.8rem; overflow-wrap:anywhere; transition:box-shadow .18s,border-color .18s; }
.ranger-leader-card:hover { border-color:#a6c4b5; box-shadow:0 8px 24px #153b2726; }
.ranger-leader-card .avatar { width:56px; height:56px; object-fit:cover; }
.ranger-leader-details { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ranger-card-groups { display:flex; flex-wrap:wrap; gap:5px 10px; margin-top:3px; }
.ranger-card-groups>span { display:inline-flex; align-items:center; gap:6px; font-size:.68rem; color:var(--muted); }
.ranger-card-group-image { width:25px; height:25px; object-fit:contain; flex-shrink:0; }
.ranger-table-groups { display:flex; flex-direction:column; gap:5px; }
.ranger-table-groups>span { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.ranger-table-group-image { width:24px; height:24px; object-fit:contain; flex-shrink:0; }
.ranger-leader-card .ranger-position-badges { justify-content:flex-start; }
.ranger-leader-card .button { white-space:normal; }
.ranger-table .ranger-actions-column { border-left:2px solid #dce5e1; background:#f8faf9; min-width:210px; }
.ranger-row-actions { display:flex; align-items:center; gap:7px; white-space:nowrap; }
.ranger-row-actions .button { display:inline-flex; align-items:center; gap:5px; font-size:.7rem; border-radius:7px; }
.ranger-edit-action { color:#24539a; background:#edf4ff; border-color:#c2d5ef; }
.ranger-activate-action { color:#166534; background:#eaf8ed; border-color:#b6dfc0; }
.ranger-deactivate-action { color:#a13c32; background:#fff0eb; border-color:#edc5bb; }
.ranger-pin-action { color:#69418f; background:#f7f0ff; border-color:#ddc8ed; }
.ranger-pin-action.is-pinned { color:#fff; background:#73529b; border-color:#73529b; }
.ranger-total { font-size:2.6rem; font-weight:750; margin:0 0 12px; }
.sex-totals { margin:0; }
.sex-totals>div { display:flex; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.sex-totals dd { margin:0; font-weight:700; }
.ranger-total-panel { text-align:center; }
.ranger-total-panel .ranger-total { font-size:3.5rem; margin:10px 0; }
.sex-chart-layout { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:24px; }
.sex-donut { position:relative; width:180px; max-width:100%; aspect-ratio:1; flex-shrink:0; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#2563eb 0 var(--male-end),#a21caf var(--male-end) 100%); }
.sex-donut.is-empty { background:#e2e8f0; }
.sex-donut::before { content:''; position:absolute; width:68%; height:68%; background:var(--white); border-radius:50%; }
.sex-donut>span { position:relative; font-size:2rem; font-weight:750; }
.sex-chart-layout .sex-totals { flex:1; min-width:170px; }
.sex-totals dt { display:flex; align-items:center; gap:8px; }
.sex-totals dd small { margin-left:6px; color:var(--muted); font-weight:400; }
.sex-swatch { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.sex-swatch.male { background:#2563eb; }
.sex-swatch.female { background:#a21caf; }
@media(max-width:650px) { .ranger-summary-grid { grid-template-columns:1fr; } }
@media(max-width:650px) { .ranger-table-wrap { --name-column-width:140px; --number-column-width:36px; } .ranger-table td { padding:10px 8px; } .ranger-table .person-cell { flex-direction:column; gap:6px; } }

.patrol-manager { width:min(1280px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:hidden; }
body.patrol-modal-open { overflow:hidden; }
.patrol-manager[open] { display:flex; flex-direction:column; }
.patrol-manager .modal-header,.patrol-manager .modal-footer { flex-shrink:0; }
.patrol-manager .modal-content { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; max-height:none; padding:16px; }
#patrol-manager-title { display:flex; align-items:center; gap:10px; }
.patrol-title-image { width:36px; height:36px; object-fit:contain; }
#patrol-manager-controls { border:0; padding:0; margin:0; min-width:0; }
.patrol-create { display:flex; align-items:end; gap:10px; margin-bottom:12px; }
.patrol-create label { flex:1; max-width:320px; }
#patrol-board { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr)); gap:12px; align-items:start; }
.patrol-zones { display:contents; }
.patrol-zone { border:2px dashed #c4d4dc; border-radius:10px; padding:10px; background:#f8fafc; transition:background .15s,border-color .15s; }
.patrol-zone>header { display:flex; flex-direction:row; align-items:start; justify-content:space-between; gap:6px; margin-bottom:8px; }
.patrol-zone h3 { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:8px; font-size:.85rem; }
.patrol-zone.is-drop-target { border-color:#2563eb; background:#e8f1ff; box-shadow:inset 0 0 0 1px #2563eb; }
.patrol-unassigned { background:#fffaf0; border-color:#d5c39a; }
.patrol-members { display:flex; flex-direction:column; gap:5px; min-height:75px; padding:2px; }
.patrol-person { display:flex; align-items:center; gap:7px; padding:6px 7px; border:1px solid var(--line); border-radius:7px; background:var(--white); min-width:0; }
.patrol-person[draggable="true"] { cursor:grab; }
.patrol-person.is-dragging { opacity:.45; }
.patrol-person .avatar { flex-shrink:0; width:28px; height:28px; font-size:.65rem; }
.patrol-person-info { flex:1; min-width:0; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:3px 5px; overflow-wrap:anywhere; font-size:.72rem; }
.patrol-person-info>strong { grid-column:1 / -1; line-height:1.25; }
.patrol-drag-handle { color:#7d919b; font-size:1.15rem; }
.patrol-role { justify-self:start; border:0; border-radius:4px; padding:2px 5px; font-size:.6rem; color:#475569; background:#f1f5f9; }
.patrol-role.leader { background:#fef3c7; color:#92400e; }
.patrol-role.assistant { background:#dbeafe; color:#1e40af; }
.patrol-move-label { display:flex; flex-direction:column; gap:3px; width:100%; font-size:.65rem; color:var(--muted); }
.patrol-move-label select { padding:4px 6px; font-size:.72rem; }
.patrol-move-options { grid-column:2; font-size:.6rem; }
.patrol-move-options summary { cursor:pointer; color:#1d4ed8; white-space:nowrap; }
.patrol-move-options .patrol-move-label { grid-column:1 / -1; min-width:100px; margin-top:4px; }
.patrol-move-options[open] { grid-column:1 / -1; }
.patrol-settings { font-size:.75rem; }
.patrol-settings summary { cursor:pointer; color:#1d4ed8; }
.patrol-settings label { margin:10px 0; }
.patrol-drop-hint { color:var(--muted); font-size:.8rem; padding:10px 0; }
.patrol-attendance { margin-top:8px; color:var(--muted); font-size:.65rem; }
.patrol-attendance-track { height:6px; margin-top:6px; background:#e2e8f0; border-radius:6px; overflow:hidden; }
.patrol-attendance-track>span { display:block; height:100%; background:#1f654e; }
.patrol-manager .modal-footer { justify-content:space-between; }
.patrol-manager .modal-footer p { margin:0; }
#patrol-manager-hint { display:flex; align-items:flex-start; gap:8px; }
#patrol-manager-hint .inline-icon { color:#1d4ed8; margin-top:2px; }
@media(max-width:650px) { .patrol-create { flex-direction:column; align-items:stretch; } }

body.attendance-modal-open { overflow:hidden; }
.attendance-manager { width:min(1000px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:hidden; }
.attendance-manager[open] { display:flex; flex-direction:column; }
.attendance-manager .modal-header,.attendance-manager .modal-footer,.attendance-toolbar { flex-shrink:0; }
.attendance-manager .modal-content { flex:1; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; padding:16px; }
#attendance-manager-title { display:flex; align-items:center; gap:10px; }
.attendance-toolbar { display:flex; justify-content:flex-end; padding:10px 20px; border-bottom:1px solid var(--border); }
.attendance-toolbar label { display:flex; flex-direction:row; align-items:center; gap:12px; flex-wrap:nowrap; margin:0; white-space:nowrap; }
.attendance-toolbar input { width:auto; min-width:0; }
.attendance-patrol { margin-bottom:18px; border:1px solid #d9e4de; border-radius:10px; min-width:540px; }
.attendance-patrol header { padding:12px; background:#f0f6f2; border-radius:9px 9px 0 0; display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.attendance-patrol h3,.attendance-summary h3 { margin:0; }
.attendance-patrol table { width:100%; border-collapse:separate; border-spacing:0; }
.attendance-patrol thead th { position:sticky; top:-16px; z-index:2; background:#f8faf8; white-space:nowrap; box-shadow:0 1px 2px #102d2814; }
.attendance-heading { display:inline-flex; align-items:center; gap:7px; white-space:nowrap; }
.attendance-heading .inline-icon { color:#27614c; }
.attendance-patrol tbody th { text-align:left; font-weight:600; }
.attendance-patrol td:first-child { width:50px; }
.attendance-patrol .avatar { width:32px; height:32px; }
.attendance-toggle { min-width:68px; padding:7px 10px; border:1px solid #cbd5e1; border-radius:7px; background:#f1f5f9; color:#475569; font:inherit; font-size:.8rem; cursor:pointer; white-space:nowrap; }
.attendance-toggle.present { background:#fee2e2; color:#991b1b; border-color:#fecaca; }
.attendance-toggle.present.is-selected { background:#dcfce7; color:#166534; border-color:#86efac; }
.attendance-toggle.bible.is-selected { background:#dbeafe; color:#1e40af; border-color:#93c5fd; }
.attendance-toggle.fee.is-selected { background:#fef3c7; color:#92400e; border-color:#fcd34d; }
.attendance-toggle:disabled { opacity:.5; cursor:default; }
.attendance-toggle:focus-visible { outline:3px solid #2563eb; outline-offset:2px; }
.attendance-totals { display:flex; flex-wrap:wrap; gap:8px; }
.attendance-total { font-size:.78rem; border-radius:6px; padding:4px 8px; background:white; color:#475569; border:1px solid #e2e8f0; }
.attendance-total strong { margin-left:5px; }
.attendance-total.present { color:#166534; }.attendance-total.absent { color:#991b1b; }.attendance-total.bible { color:#1e40af; }.attendance-total.fee { color:#92400e; }
.attendance-summary { padding:14px; background:#f0f6f2; border-radius:10px; }
.attendance-summary .attendance-totals { margin-top:10px; }
.attendance-manager .modal-footer { gap:10px; flex-wrap:wrap; }
.attendance-footer-notices { flex:1; min-width:180px; overflow-wrap:anywhere; }
#attendance-manager-status { margin:0; }
#attendance-manager-status[data-kind="success"] { color:#166534; font-weight:600; }
.attendance-manager .attendance-footer-notices .error-message { margin:0; }

body.junior-modal-open { overflow:hidden; }
.junior-leaders-manager { width:min(850px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:hidden; }
.junior-leaders-manager[open] { display:flex; flex-direction:column; }
.junior-leaders-manager .modal-header,.junior-leaders-manager .modal-footer { flex-shrink:0; }
.junior-leaders-manager .modal-content { flex:1; min-height:0; max-height:none; overflow:auto; overscroll-behavior:contain; padding:16px; }
#junior-leaders-title { display:flex; align-items:center; gap:10px; }
#junior-leaders-hint { display:flex; align-items:flex-start; gap:8px; margin:0 0 16px; }
#junior-leaders-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.junior-position-card { padding:16px; border:1px solid #e1dbea; background:#faf8fc; border-radius:12px; transition:box-shadow .18s; }
.junior-position-card:hover { box-shadow:0 5px 16px #5533791a; }
.junior-position-card label { display:flex; flex-direction:column; gap:12px; }
.junior-position-heading { display:flex; align-items:center; gap:12px; }
.junior-position-image { width:48px; height:48px; object-fit:contain; flex-shrink:0; }
.junior-position-heading>span:last-child { display:inline-flex; margin-left:auto; }
.junior-position-group-image { width:28px; height:28px; object-fit:contain; flex-shrink:0; }
.junior-position-card select { width:100%; min-width:0; }
.junior-leaders-manager .modal-footer { gap:10px; flex-wrap:wrap; }
#junior-leaders-status { flex:1; min-width:160px; margin:0; overflow-wrap:anywhere; }
#junior-leaders-status[data-kind="success"] { color:#166534; font-weight:600; }
#junior-leaders-status[data-kind="error"] { color:#b91c1c; font-weight:600; }
@media(max-width:600px) { #junior-leaders-grid { grid-template-columns:minmax(0,1fr); } }

.confirmation-dialog { width:min(460px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); padding:0; overflow:auto; }
.confirmation-dialog .modal-content { overflow-wrap:anywhere; }
#confirmation-message { margin:0; white-space:pre-line; }

.person-photo-field { display:flex; align-items:center; gap:18px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.person-photo-preview .avatar { width:88px; height:88px; object-fit:cover; font-size:1.5rem; }
.person-photo-field .actions { margin-top:8px; flex-wrap:wrap; }
.photo-upload-button { position:relative; display:inline-flex; flex-direction:row; align-items:center; gap:7px; overflow:hidden; cursor:pointer; }
.photo-file-input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.photo-upload-button:focus-within { outline:3px solid #2563eb; outline-offset:2px; }
.photo-editor { width:min(610px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:hidden; }
.photo-editor[data-mode="camera"] { width:min(440px,calc(100vw - 24px)); }
.photo-editor[open] { display:flex; flex-direction:column; }
.photo-editor .modal-header,.photo-editor .modal-footer { flex-shrink:0; }
.photo-editor .modal-content { flex:1; min-height:0; max-height:none; overflow:auto; padding:16px; }
#photo-crop-stage:not([hidden]) { display:grid; grid-template-columns:minmax(0,250px) minmax(0,1fr); gap:18px; align-items:start; }
.photo-crop-preview { width:100%; max-width:250px; margin:auto; }
#photo-canvas { display:block; width:100%; height:auto; aspect-ratio:1; border:1px solid var(--line); border-radius:10px; touch-action:none; cursor:grab; }
#photo-canvas:active { cursor:grabbing; }
.photo-controls { display:flex; flex-direction:column; gap:10px; }
.photo-editor .modal-header,.photo-editor .modal-footer { padding:12px 16px; }
#photo-editor-title { display:flex; align-items:center; gap:8px; font-size:1.05rem; }
.photo-editor .button,.photo-control-label,.photo-camera-actions { display:inline-flex; align-items:center; gap:6px; }
.photo-editor .button { padding:7px 10px; font-size:.76rem; }
.photo-control-label { font-size:.78rem; font-weight:600; }
.photo-controls .actions { flex-wrap:wrap; gap:6px; }
.photo-zoom-controls { display:flex; align-items:center; gap:4px; }
.photo-zoom-controls input { min-width:0; }
.photo-zoom-controls output { min-width:38px; font-size:.75rem; text-align:right; }
.photo-zoom-controls .icon-button,.photo-move-buttons .icon-button { width:30px; height:30px; padding:5px; display:inline-flex; align-items:center; justify-content:center; }
.photo-move-buttons { display:flex; align-items:center; justify-content:center; gap:5px; margin-top:8px; }
.photo-camera-actions { justify-content:center; flex-wrap:wrap; }
#photo-mirror[aria-pressed="true"] { background:#e2efe9; border-color:#27614c; color:#174b37; }
.photo-controls input[type="range"] { width:100%; accent-color:#27614c; padding:0; }
#photo-camera-stage { text-align:center; }
#photo-video { display:block; width:min(100%,320px); height:min(240px,35dvh); object-fit:contain; background:#102d28; border-radius:10px; margin:0 auto 12px; }
.photo-editor .modal-footer { gap:10px; flex-wrap:wrap; }
#photo-status { flex:1; min-width:150px; margin:0; overflow-wrap:anywhere; }
#photo-status[data-kind="error"] { color:#b91c1c; }
@media(max-width:520px) { #photo-crop-stage:not([hidden]) { grid-template-columns:minmax(0,1fr); } .photo-crop-preview { max-width:200px; } .person-photo-field { align-items:flex-start; flex-direction:column; } }

.person-editor { width:min(1000px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:hidden; }
.person-editor[open],.person-editor>form { display:flex; flex-direction:column; }
.person-editor>form { min-height:0; max-height:calc(100dvh - 32px); }
.person-editor .modal-header,.person-editor .modal-footer { flex-shrink:0; }
.person-editor .modal-header { background:linear-gradient(110deg,#edf6f0,#fff); }
.person-editor #editor-title { display:flex; align-items:center; gap:10px; font-size:1.2rem; color:#164d3c; }
.person-editor #editor-title .inline-icon { width:23px; height:23px; }
.person-editor .modal-content { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:20px 24px; background:#f7f9fb; }
.person-editor .modal-footer { box-shadow:0 -4px 16px #102d2809; }
.person-editor #editor-save { display:inline-flex; align-items:center; gap:8px; border-radius:10px; padding:11px 20px; }
.person-registration { display:flex; flex-direction:column; gap:20px; }
.registration-intro { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.registration-intro>div { display:flex; align-items:center; gap:9px; }
.registration-intro p { margin:0; font-size:.8rem; color:var(--muted); }
.registration-intro .inline-icon { color:#27614c; }
.registration-required { flex-shrink:0; font-size:.7rem; color:#9d3737; }
.registration-photo { border-color:#cde1d5; background:linear-gradient(110deg,#eaf4ed,#f5faf8 65%,#edf3fa); border-radius:16px; padding:18px; }
.registration-photo .person-photo-preview .avatar { width:86px; height:86px; border-radius:18px; border:3px solid white; box-shadow:0 4px 14px #174b3714; }
.registration-photo-placeholder .inline-icon { width:36px; height:36px; }
.registration-photo-details { flex:1; min-width:0; }
.registration-photo-details h3 { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0; font-size:.94rem; }
.registration-photo-caption { font-size:.78rem; color:#587264; margin:5px 0 0; }
.registration-optional { color:#386350; background:#dfeee4; padding:3px 8px; border-radius:20px; font-size:.62rem; font-weight:550; }
.registration-photo .button { border-radius:9px; font-size:.76rem; display:inline-flex; align-items:center; gap:6px; }
.registration-photo .photo-upload-button { background:#1f654e; border-color:#1f654e; color:white; }
.registration-photo [data-person-camera] { color:#24498a; border-color:#bacce9; background:#f3f7ff; }
.registration-photo [data-person-photo-clear] { color:#924329; }
.registration-photo [data-photo-size] { margin:9px 0 0; font-size:.7rem; }
.registration-section { --section-color:#24694d; --section-soft:#edf6ef; padding:16px 18px 18px; background:white; border:1px solid #e0e7e4; border-left:4px solid var(--section-color); border-radius:14px; min-width:0; }
.registration-section legend { display:flex; align-items:center; gap:9px; color:var(--section-color); font-size:.88rem; padding:0 8px; }
.registration-section-icon { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:9px; background:var(--section-soft); }
.registration-section-hint { color:var(--muted); font-size:.75rem; margin:0 0 14px; }
.registration-contact { --section-color:#315dab; --section-soft:#edf3ff; }
.registration-health { --section-color:#a94545; --section-soft:#fff0f0; }
.registration-family { --section-color:#73529b; --section-soft:#f4effa; }
.registration-enrollment { --section-color:#91652c; --section-soft:#fff6e7; }
.registration-schooling { --section-color:#276c82; --section-soft:#eaf6fa; }
.schooling-modality-hint { align-self:center; margin:0; line-height:1.5; }
.registration-pin-option { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:12px; border-radius:10px; background:var(--section-soft); }
.registration-pin-option input { margin-top:3px; }
.registration-pin-option strong { display:flex; align-items:center; gap:7px; color:var(--section-color); font-size:.8rem; }
.registration-pin-option small { display:block; margin-top:4px; color:var(--muted); font-size:.72rem; font-weight:400; }
.registration-other-groups { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-top:14px; font-size:.72rem; color:var(--muted); }
.registration-other-groups>span { display:inline-flex; align-items:center; gap:6px; padding:5px 8px; background:#f7f9f8; border-radius:8px; }
.registration-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; }
.registration-wide { grid-column:1/-1; }
.registration-field { min-width:0; gap:7px; }
.registration-field>span { display:flex; align-items:center; gap:7px; font-size:.76rem; font-weight:600; color:#40544b; }
.registration-field>span .inline-icon { width:15px; height:15px; color:var(--section-color); }
.required-mark { color:#ad3434; }
.registration-field input,.registration-field select,.registration-field textarea { font-size:.84rem; padding:11px 12px; border-color:#dce5e1; border-radius:9px; background:#fcfdfd; transition:border-color .15s,box-shadow .15s; }
.registration-field input:focus-visible,.registration-field select:focus-visible,.registration-field textarea:focus-visible { outline:0; border-color:var(--section-color); box-shadow:0 0 0 3px var(--section-soft); background:white; }
.registration-field input:user-invalid { border-color:#ba4949; }
.registration-field textarea { min-height:88px; }
.registration-field input[readonly],.registration-field select:disabled,.registration-field textarea[readonly] { background:#f1f4f3; color:#657778; }
.registration-family-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.registration-family-card { --section-color:#315dab; --section-soft:#edf3ff; padding:14px; border:1px solid #dce5f1; border-radius:12px; background:linear-gradient(var(--section-soft),#fff 85px); min-width:0; }
.registration-family-card[data-contact="mother"] { --section-color:#73529b; --section-soft:#f4effa; border-color:#e6deef; }
.registration-family-card[data-contact="guardian"] { --section-color:#92662a; --section-soft:#fff6e7; border-color:#eddfc7; }
.registration-family-card h3 { display:flex; align-items:center; gap:7px; margin:0 0 16px; color:var(--section-color); font-size:.86rem; }
.registration-family-card .registration-fields { grid-template-columns:minmax(0,1fr); gap:12px; }
.registration-positions fieldset { background:white; border-radius:14px; }
@media(max-width:760px) { .registration-family-grid { grid-template-columns:minmax(0,1fr); } .registration-family-card .registration-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .registration-intro { align-items:flex-start; flex-direction:column; } }
@media(max-width:540px) { .person-editor .modal-header,.person-editor .modal-footer { padding:14px; } .person-editor .modal-content { padding:14px; } .registration-fields,.registration-family-card .registration-fields { grid-template-columns:minmax(0,1fr); } .registration-section { padding:12px; } .registration-photo { padding:14px; } .registration-photo .actions { gap:7px; } }

.leaders-directory .page-header-actions .button { display:inline-flex; align-items:center; gap:8px; }
.leader-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.leader-stat { display:flex; align-items:center; gap:13px; padding:17px; border:1px solid #dce8e1; border-radius:14px; background:linear-gradient(120deg,#eef7f0,#fff); }
.leader-stat:nth-child(2) { background:linear-gradient(120deg,#eef3ff,#fff); border-color:#dce4f3; }
.leader-stat:nth-child(3) { background:linear-gradient(120deg,#f5effb,#fff); border-color:#e8ddf0; }
.leader-stat>span { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; color:#1f654e; background:#dceee2; flex-shrink:0; }
.leader-stat:nth-child(2)>span { color:#315dab; background:#dfe9fc; }.leader-stat:nth-child(3)>span { color:#73529b; background:#eadef5; }
.leader-stat small { display:block; color:var(--muted); font-size:.74rem; }
.leader-stat strong { display:block; font-size:1.65rem; color:var(--ink); line-height:1.2; margin-top:4px; }
#leader-filters { background:white; padding:16px; border:1px solid var(--line); border-radius:13px; margin-bottom:16px; }
#leader-filters label>span { display:inline-flex; align-items:center; gap:6px; }
.leader-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:14px; }
.leader-view-toggle { display:flex; gap:4px; border:1px solid var(--line); background:#edf2ef; border-radius:10px; padding:3px; }
.leader-view-toggle .button { display:inline-flex; align-items:center; gap:6px; font-size:.76rem; border:0; background:transparent; color:var(--muted); border-radius:7px; padding:7px 11px; }
.leader-view-toggle .button[aria-pressed="true"] { background:white; color:#1f654e; box-shadow:0 2px 5px #102d2815; }
.leader-table-wrap { max-height:65vh; --leader-name-width:250px; --leader-number-width:46px; }
.leader-table { width:max-content; min-width:100%; border-collapse:separate; border-spacing:0; }
.leader-table th { position:sticky; top:0; z-index:3; background:#e3f0e8; padding:12px; text-transform:none; letter-spacing:normal; }
.leader-table td { padding:13px 12px; border-bottom:1px solid #e4eae6; background:#fff; }
.leader-table tbody tr:hover td { background:#f2f8f4; }
.leader-table th:first-child,.leader-table td:first-child { position:sticky; left:0; width:var(--leader-number-width); min-width:var(--leader-number-width); text-align:center; }
.leader-table th:nth-child(2),.leader-table td:nth-child(2) { position:sticky; left:var(--leader-number-width); width:var(--leader-name-width); min-width:var(--leader-name-width); max-width:var(--leader-name-width); box-shadow:3px 0 5px #102d2810; }
.leader-table td:nth-child(-n+2) { z-index:2; }.leader-table th:nth-child(-n+2) { z-index:4; }
.leader-table .person-cell { white-space:normal; }.leader-table .avatar { width:40px; height:40px; }
.leader-role-list,.leader-group-list { display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.leader-role-list .badge { display:inline-flex; align-items:center; gap:6px; white-space:nowrap; font-size:.69rem; background:#eef2fa; color:#334b72; }
.leader-role-image { width:23px; height:23px; object-fit:contain; flex-shrink:0; }
.leader-group-image { width:25px; height:25px; object-fit:contain; flex-shrink:0; }
.leader-group-list>span { display:inline-flex; align-items:center; gap:6px; font-size:.7rem; white-space:nowrap; }
.leader-outpost-badge { color:var(--muted); padding:5px 8px; background:#f2f5f3; border-radius:7px; }
.leader-email { display:inline-flex; align-items:center; gap:6px; color:#315dab; font-size:.76rem; }
.leader-actions { display:flex; flex-wrap:wrap; gap:6px; }
.leader-actions .button { display:inline-flex; align-items:center; gap:5px; border-radius:8px; font-size:.72rem; }
.leader-edit-button { color:#24539a; background:#edf4ff; border-color:#c2d5ef; }
.leader-position-button { color:#69418f; background:#f7f0ff; border-color:#ddc8ed; }
.leader-role-sections { display:grid; gap:24px; }
.leader-role-section { min-width:0; padding:18px; border:1px solid var(--line); border-radius:16px; background:#f5f9f7; }
.leader-role-section>header { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid #d9e6df; }
.leader-role-section>header h3,.leader-category-group>header h3 { margin:0; flex:1; min-width:0; font-size:1rem; color:#245b43; overflow-wrap:anywhere; }
.leader-category { margin:0; min-width:0; }
.leader-category>.outpost-section-body,.leader-category-group>.leader-role-sections { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.leader-category-group { min-width:0; grid-column:1/-1; }
.leader-category .leader-gallery { grid-template-columns:minmax(0,1fr); }
.leader-category .whatsapp-link { white-space:normal; overflow-wrap:anywhere; }
@media(max-width:650px) { .leader-category>.outpost-section-body,.leader-category-group>.leader-role-sections { grid-template-columns:minmax(0,1fr); } }
.leader-category-group>header { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.leader-role-heading-image { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.leader-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr)); gap:16px; }
.leader-card { display:flex; flex-direction:column; gap:14px; padding:18px; border:1px solid #dce5e0; border-radius:15px; background:white; transition:box-shadow .18s,border-color .18s; min-width:0; }
.leader-card:hover { border-color:#a6c4b5; box-shadow:0 8px 24px #153b2720; }
.leader-card>header { display:flex; align-items:center; gap:12px; }.leader-card .avatar { width:56px; height:56px; object-fit:cover; }
.leader-card header strong { display:block; font-size:.92rem; margin-bottom:6px; }.leader-card header .badge { font-size:.62rem; }
.leader-card .leader-role-list { overflow-x:auto; max-width:100%; }
.leader-card-contact { display:flex; flex-direction:column; gap:8px; overflow-wrap:anywhere; font-size:.78rem; }
.leader-card-contact .leader-email { white-space:normal; }
.leader-card>footer { margin-top:auto; padding-top:12px; border-top:1px solid var(--line); }
.leaders-directory .pagination .button { color:#1e40af; background:#eff6ff; border-color:#bfdbfe; }
.leaders-directory .pagination [aria-current="page"] { background:#1f654e; border-color:#1f654e; color:white; }
.registration-leader-positions { --section-color:#73529b; --section-soft:#f4effa; }
.award-editor { width:min(1000px,calc(100vw - 24px)); max-height:calc(100dvh - 32px); overflow:hidden; }
.award-editor>form { display:flex; flex-direction:column; max-height:calc(100dvh - 34px); }
.award-editor .modal-header,.award-editor .modal-footer { flex-shrink:0; }
.award-editor .modal-content { flex:1; min-height:0; overflow:auto; background:#f7f9fb; }
.award-editor .modal-content>label { margin:16px 0; }
.award-group-image { width:36px; height:36px; object-fit:contain; flex-shrink:0; }
.award-group-navigation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:8px 0 28px; }
.award-leaders-card { --group-color:#536aa0; background:#f3f5fc; }
.award-group-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:210px; padding:20px 14px; border:2px solid var(--line); border-radius:14px; background:var(--white); color:var(--ink); text-align:center; box-shadow:var(--shadow); transition:box-shadow .18s,border-color .18s,transform .18s; }
.award-group-card:hover,.award-group-card.is-selected { border-color:var(--group-color,var(--gold)); box-shadow:0 8px 24px #153b2724; }
.award-group-card:hover { transform:translateY(-3px); }
.award-group-card strong { font-size:.95rem; }
.award-group-card small { color:var(--muted); font-size:.74rem; }
.award-group-card-image { width:110px; height:110px; object-fit:contain; }
.award-molh-card { --group-color:var(--gold); background:#fffaf0; }
.award-editor:has(.molh-progress-view) { width:min(1240px,calc(100vw - 24px)); }
.award-editor:has(.molh-progress-view)>form { height:min(92dvh,960px); }
.award-editor:has(.molh-progress-view) #editor-title { display:flex; align-items:center; gap:12px; color:#865c13; }
.award-editor:has(.molh-progress-view) .modal-content { display:flex; overflow:hidden; padding:0; }
.molh-progress-view { display:flex; flex-direction:column; flex:1; min-height:0; min-width:0; }
.molh-progress-toolbar { display:flex; align-items:center; justify-content:space-between; flex-shrink:0; padding:12px 18px; gap:16px; border-bottom:1px solid var(--line); }
.molh-progress-toolbar p { margin:0; font-size:.8rem; color:var(--muted); }
.molh-progress-layout { display:grid; grid-template-columns:280px minmax(0,1fr); flex:1; min-height:0; }
.molh-progress-roster { display:flex; flex-direction:column; min-height:0; background:#faf7f0; border-right:1px solid var(--line); padding:16px 10px; }
.molh-progress-roster h3 { margin:0 8px 12px; font-size:.85rem; }
.molh-progress-boys { overflow-y:auto; min-height:0; padding:4px; }
.molh-progress-boy { display:flex; align-items:center; gap:10px; width:100%; padding:12px 10px; margin-bottom:8px; border:1px solid var(--line); border-radius:12px; background:white; text-align:left; color:var(--ink); cursor:pointer; transition:box-shadow .18s,border-color .18s; }
.molh-progress-boy:hover,.molh-progress-boy.is-selected { border-color:#d1a345; background:#fff6df; box-shadow:0 3px 10px #865c131c; }
.molh-progress-boy.is-selected { box-shadow:0 0 0 1px #d1a345; }
.molh-progress-boy .avatar { width:36px; height:36px; flex-shrink:0; }
.molh-progress-boy>span:not(.avatar) { flex:1; min-width:0; }
.molh-progress-boy strong { display:block; font-size:.8rem; overflow-wrap:anywhere; }
.molh-progress-boy small { font-weight:700; color:#865c13; }
.molh-progress-view progress { display:block; width:100%; height:12px; accent-color:#c28c22; }
.molh-progress-boy progress { height:7px; margin-top:7px; }
.molh-progress-detail { overflow-y:auto; min-width:0; min-height:0; padding:22px; scroll-behavior:smooth; }
.molh-progress-placeholder { display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%; padding:32px; text-align:center; color:var(--muted); }
.molh-progress-placeholder img { width:110px; height:140px; object-fit:contain; opacity:.55; }
.molh-detail-person { display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:20px; }
.molh-detail-person .avatar { width:50px; height:50px; }
.molh-detail-person h2 { font-size:1.15rem; margin:0 0 5px; }
.molh-detail-person p { margin:0; font-size:.8rem; color:var(--muted); }
.molh-overall { position:relative; z-index:1; overflow:clip; background:white; border:1px solid #ead5a7; border-radius:14px; padding:18px; margin-bottom:20px; }
.molh-overall .section-heading { gap:10px; margin:0 0 14px; font-size:.85rem; }
.molh-race { --molh-race-duration:8s; position:relative; display:flex; align-items:center; gap:12px; padding:24px 0 32px 20px; }
.molh-race-track { position:relative; flex:1; min-width:0; height:14px; margin-right:18px; border-radius:20px; background:#ece6d9; }
.molh-race-fill { display:block; width:var(--molh-progress); height:100%; border-radius:inherit; background:linear-gradient(90deg,#eab54e,#ce8c17); animation:molh-race-fill var(--molh-race-duration) linear both; }
.molh-race-runner { position:absolute; z-index:2; left:var(--molh-progress); top:50%; transform:translate(-50%,-50%); display:flex; align-items:center; justify-content:center; width:40px; height:40px; border:2px solid #d4a43a; border-radius:50%; background:#fffaf0; color:#a16a0c; box-shadow:0 3px 8px #865c1326; animation:molh-race-run var(--molh-race-duration) linear both; }
.molh-race-runner>svg { width:28px; height:28px; animation:molh-run-bounce .8s ease-in-out 10,molh-runner-hide var(--molh-race-duration) step-end both; }
.molh-race-photo { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; overflow:hidden; border-radius:inherit; animation:molh-photo-show var(--molh-race-duration) step-end both; }
.molh-race-photo .avatar { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.molh-race-name { position:absolute; z-index:3; bottom:calc(100% + 5px); left:50%; transform:translateX(-50%); width:max-content; max-width:min(180px,calc(100vw - 140px)); overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--ink); font-size:.75rem; line-height:1.4; text-align:center; animation:molh-photo-show var(--molh-race-duration) step-end both; }
.molh-race-name--end { left:auto; right:0; transform:none; text-align:right; }
.molh-race-name--start { left:0; transform:none; text-align:left; }
.molh-race-achievements { position:fixed; z-index:3; inset:auto; height:0; margin:0; padding:0; border:0; background:transparent; overflow:visible; pointer-events:none; }
.molh-race-achievements::backdrop { background:transparent; pointer-events:none; }
.molh-race-bubble { position:absolute; opacity:0; visibility:hidden; padding:6px 8px; border:1px solid #9bbfae; border-radius:8px; background:#fff; box-shadow:0 2px 5px #153b271a; color:#164d3c; font-size:.75rem; line-height:1.35; font-weight:600; text-align:center; overflow-wrap:anywhere; }
.molh-race-bubble.is-visible { opacity:1; visibility:visible; }
.molh-race-bubble::before { content:''; position:absolute; z-index:-1; top:100%; left:var(--bubble-tip-x); height:var(--bubble-line); border-left:1px dashed #9bbfae; pointer-events:none; }
.molh-race-bubble::after { content:''; position:absolute; z-index:-1; top:calc(100% + var(--bubble-line)); left:var(--bubble-tip-x); width:6px; height:6px; border-right:1px solid #9bbfae; border-bottom:1px solid #9bbfae; background:#fff; transform:translate(-50%,-3px) rotate(45deg); }
.molh-race-achievements.is-finishing .molh-race-bubble.is-visible { animation:molh-bubble-exit .3s ease-in var(--bubble-exit-delay) both; }
@keyframes molh-bubble-exit { from { opacity:1; } to { opacity:0; visibility:hidden; } }
@media(prefers-reduced-motion:reduce) { .molh-race-achievements.is-finishing .molh-race-bubble { animation:none; visibility:hidden; } }
@keyframes molh-runner-hide { from { visibility:visible; } to { visibility:hidden; } }
@keyframes molh-photo-show { from { visibility:hidden; } to { visibility:visible; } }
@media(prefers-reduced-motion:reduce) { .molh-race-photo,.molh-race-name { animation:none; } .molh-race-runner>svg { visibility:hidden; } }
.molh-race-runner .runner-arm,.molh-race-runner .runner-leg { transform-box:view-box; transform-origin:12px 12px; animation:molh-run-stride 1.6s ease-in-out 5; }
.molh-race-runner .runner-arm-opposite,.molh-race-runner .runner-leg-opposite { animation-direction:reverse; }
.molh-race-medal { width:40px; height:48px; object-fit:contain; flex-shrink:0; }
.molh-race-finish { position:relative; display:flex; flex-shrink:0; }
.molh-race:not(.is-complete) .molh-race-medal { filter:grayscale(1); opacity:.55; }
.molh-race.is-complete .molh-race-fill { background:linear-gradient(90deg,#34d399,#059669); }
.molh-race.is-complete .molh-race-runner { border-color:var(--green); color:var(--green); background:var(--green-soft); }
@keyframes molh-race-fill { from { width:0; } to { width:var(--molh-progress); } }
@keyframes molh-race-run { from { left:0; } to { left:var(--molh-progress); } }
@keyframes molh-run-bounce { 50% { transform:translateY(-2px); } }
@keyframes molh-run-stride { 25% { transform:rotate(-12deg); } 75% { transform:rotate(12deg); } }
.molh-milestones { position:absolute; top:50%; left:0; right:0; z-index:1; display:grid; grid-template-columns:repeat(8,minmax(0,1fr)); list-style:none; margin:0; padding:0; gap:6px; }
.molh-milestones li { position:relative; display:flex; flex-direction:column; align-items:center; transform:translateY(-50%); color:var(--muted); }
.molh-milestones li>small { position:absolute; top:100%; margin-top:5px; }
.molh-milestones li>span { position:relative; width:min(34px,100%); aspect-ratio:1; display:flex; align-items:center; justify-content:center; border:2px solid #d5dbe1; border-radius:50%; background:#f8fafc; }
.molh-milestones li>span>:is(img,svg) { filter:grayscale(1); }
.molh-milestones li>span>svg { color:var(--milestone-color,var(--green)); stroke:var(--milestone-color,var(--green)); }
.molh-milestones li.is-reached>span>:is(img,svg) { animation:molh-achievement-color .01s step-end var(--milestone-delay) both; }
.molh-milestones li.is-reached>span { animation:molh-achievement-frame .01s step-end var(--milestone-delay) both; }
@keyframes molh-achievement-color { from { filter:grayscale(1); } to { filter:grayscale(0); } }
@keyframes molh-achievement-frame { from { border-color:#d5dbe1; background:#f8fafc; } to { border-color:var(--milestone-color,var(--green)); background:color-mix(in srgb,var(--milestone-color,var(--green)) 12%,white); } }
.molh-milestones li.is-reached>span::after,.molh-race.is-complete .molh-race-finish::after { content:''; position:absolute; inset:-10px; pointer-events:none; background:#ffd75c; clip-path:polygon(50% 0,59% 35%,85% 15%,65% 42%,100% 50%,65% 58%,85% 85%,59% 65%,50% 100%,41% 65%,15% 85%,35% 58%,0 50%,35% 42%,15% 15%,41% 35%); opacity:0; animation:molh-achievement-flash .55s ease-out var(--milestone-delay,0s) both; }
.molh-race.is-complete .molh-race-finish::after { inset:-28px; animation-delay:var(--molh-race-duration); animation-duration:.9s; }
@keyframes molh-achievement-flash { 0% { opacity:0; transform:scale(.25) rotate(-15deg); } 30% { opacity:.9; } 100% { opacity:0; transform:scale(1.35) rotate(20deg); } }
@media(prefers-reduced-motion:reduce) { .molh-race-fill,.molh-race-runner,.molh-race-runner>svg,.molh-race-runner .runner-arm,.molh-race-runner .runner-leg,.molh-milestones li.is-reached>span>img,.molh-milestones li.is-reached>span>svg,.molh-milestones li.is-reached>span::after,.molh-race.is-complete .molh-race-finish::after { animation:none; } .molh-milestones li.is-reached>span>:is(img,svg) { filter:none; } }
.molh-milestones li.is-complete { color:var(--green); }
@media(prefers-reduced-motion:reduce) { .molh-milestones li.is-reached>span { animation:none; border-color:var(--milestone-color,var(--green)); background:color-mix(in srgb,var(--milestone-color,var(--green)) 12%,white); } }
.molh-milestones li:nth-child(5) { --milestone-color:#9333ea; }
.molh-milestones li:nth-child(6) { --milestone-color:#2563eb; }
.molh-milestones li:nth-child(7) { --milestone-color:#c27900; }
.molh-milestones li:nth-child(8) { --milestone-color:#dc2626; }
.molh-milestones li.is-passed>span { animation:none; border-color:var(--milestone-color,var(--green)); background:color-mix(in srgb,var(--milestone-color,var(--green)) 12%,white); }
.molh-milestones li.is-passed>span>:is(img,svg) { animation:none; filter:none; }
.molh-milestones li.is-passed>span>svg { color:var(--milestone-color,var(--green)); stroke:var(--milestone-color,var(--green)); }
.molh-milestones :is(img,svg) { width:22px; height:22px; object-fit:contain; }
.molh-detail-section { overflow:hidden; border:1px solid var(--line); border-radius:14px; background:white; margin:0 0 18px; animation:molh-reveal .3s ease-out; }
.molh-detail-section>header { display:flex; align-items:center; gap:10px; padding:12px 16px; background:color-mix(in srgb,var(--molh-section-color) 14%,white); border-left:5px solid var(--molh-section-color); }
.molh-detail-section>header>img { width:38px; height:42px; object-fit:contain; }
.molh-detail-section>header h3 { flex:1; margin:0; font-size:.9rem; }
.molh-detail-section>header .badge { display:flex; align-items:center; gap:5px; font-size:.66rem; }
.molh-detail-section.is-complete>header .badge { background:var(--green-soft); color:var(--green); }
.molh-section-body { padding:16px; }
.molh-section-total { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:.75rem; margin-bottom:18px; }
.molh-section-total progress { flex:1; accent-color:var(--molh-section-color); }
.molh-year-block { border-left:2px solid #e7eaf0; margin:16px 0 20px; padding-left:14px; }
.molh-year-block h4 { display:flex; align-items:center; gap:8px; font-size:.8rem; margin:0 0 14px; }
.molh-year-block h4 img { width:32px; height:32px; object-fit:contain; }
.molh-bar-row { --bar-color:#3d809b; margin:14px 0; }
.molh-bar-row[data-category="mental"] { --bar-color:#9333ea; }
.molh-bar-row[data-category="fisico"] { --bar-color:#2563eb; }
.molh-bar-row[data-category="espiritual"] { --bar-color:var(--green); }
.molh-bar-row[data-category="social"] { --bar-color:#b9770e; }
.molh-bar-row[data-category="additional_requirement"] { --bar-color:#6b5b4f; }
.molh-bar-row[data-category="required_skill"][data-group="2"] { --bar-color:#044d97; }
.molh-bar-row[data-category="required_skill"][data-group="3"] { --bar-color:#2e8b57; }
.molh-bar-row[data-category="required_skill"][data-group="4"] { --bar-color:#64748b; }
.molh-bar-label { display:flex; align-items:center; gap:12px; justify-content:space-between; margin-bottom:6px; font-size:.75rem; }
.molh-bar-label>span { display:flex; align-items:center; gap:6px; min-width:0; }
.molh-bar-label strong { flex-shrink:0; color:var(--muted); }
.molh-bar-label :is(img,svg) { width:24px; height:24px; object-fit:contain; flex-shrink:0; }
.molh-segment-bar { display:flex; position:relative; height:20px; background:#edf0f4; border-radius:20px; overflow:hidden; }
.molh-segment-bar>span { display:block; height:100%; background:var(--bar-color); opacity:.75; }
.molh-segment-bar>small { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#fff; font-size:.65rem; font-weight:700; text-shadow:-1px -1px 0 #17212f,1px -1px 0 #17212f,-1px 1px 0 #17212f,1px 1px 0 #17212f; }
.molh-bar-row[data-category="leadership"] [data-source="2"] { --bar-color:#cf071e; }
.molh-bar-row[data-category="leadership"] [data-source="3"] { --bar-color:#d7ad00; }
.molh-bar-row[data-category="leadership"] [data-source="4"] { --bar-color:#38bdf8; }
.molh-bar-row[data-category="elective_skill"] [data-source="2"] { --bar-color:#2563eb; }
.molh-bar-row[data-category="elective_skill"] [data-source="3"] { --bar-color:#16a34a; }
.molh-bar-row[data-category="elective_skill"] [data-source="4"] { --bar-color:#94a3b8; }
.molh-bar-row[data-category="biblical"][data-group="2"] { --bar-color:#ea850b; }
.molh-bar-row[data-category="biblical"][data-group="3"] { --bar-color:#98632e; }
.molh-bar-row[data-category="biblical"][data-group="4"][data-year="1"] { --bar-color:#3b82f6; }
.molh-bar-row[data-category="biblical"][data-group="4"][data-year="2"] { --bar-color:#ef4444; }
.molh-bar-row[data-category="biblical"][data-group="4"][data-year="3"] { --bar-color:#22c55e; }
.molh-bar-row:is([data-category="application"],[data-category="ribbon_application"]) { --bar-color:#a277d9; }
.molh-source-legend { display:flex; flex-wrap:wrap; gap:6px 12px; list-style:none; padding:0; margin:7px 0 0; font-size:.65rem; color:var(--muted); }
.molh-source-legend li { display:flex; align-items:center; gap:5px; }
.molh-source-legend li>span { width:8px; height:8px; background:var(--bar-color); border-radius:50%; }
.molh-manual-status { margin:0 0 18px; padding-left:24px; font-size:.8rem; }
.molh-manual-status>li { padding:10px 0; border-bottom:1px solid var(--line); line-height:1.6; }
.molh-manual-status svg { width:17px; height:17px; vertical-align:middle; margin-right:6px; color:var(--muted); }
.molh-manual-status .is-complete svg { color:var(--green); }
.molh-manual-status small { display:block; margin-left:24px; color:var(--muted); }
.molh-ribbon-block { margin-bottom:10px; border:1px solid var(--line); border-radius:10px; }
.molh-ribbon-block summary { display:flex; align-items:center; gap:8px; padding:12px; font-size:.8rem; font-weight:700; cursor:pointer; }
.molh-ribbon-block summary .badge { margin-left:auto; }
.molh-ribbon-leaves { list-style:none; padding:0 14px 12px; margin:0; }
.molh-ribbon-leaves>li { display:flex; align-items:flex-start; gap:8px; padding:12px 0; border-top:1px solid var(--line); font-size:.78rem; line-height:1.6; }
.molh-ribbon-leaves>li>svg { flex-shrink:0; width:18px; height:18px; color:var(--green); }
.molh-ribbon-leaves ul { margin:8px 0 0; padding-left:18px; }
@keyframes molh-reveal { from { opacity:.4; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce) { .molh-detail-section { animation:none; } .molh-progress-detail { scroll-behavior:auto; } }
@media(prefers-reduced-motion:reduce) { .molh-race-fill,.molh-race-runner,.molh-race-runner>svg,.molh-race-runner .runner-arm,.molh-race-runner .runner-leg { animation:none; } }
@media(max-width:760px) { .molh-progress-layout { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(100px,180px) minmax(0,1fr); } .molh-progress-roster { border-right:0; border-bottom:1px solid var(--line); padding:10px; } .molh-progress-detail { padding:14px; } .molh-detail-section>header { flex-wrap:wrap; } .molh-overall { padding:12px; } }
@media(max-width:1100px) { .award-group-navigation,.award-group-navigation:has(.award-leaders-card) { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:640px) { .award-group-navigation,.award-group-navigation:has(.award-leaders-card) { grid-template-columns:repeat(2,minmax(0,1fr)); } .award-group-card { min-height:180px; } .award-group-card-image { width:88px; height:88px; } .award-molh-card { grid-column:1/-1; } }
@media(prefers-reduced-motion:reduce) { .award-group-card:hover { transform:none; } }
.award-history-image { width:48px; height:48px; object-fit:contain; flex-shrink:0; }
.award-medal-section { margin:14px 0; padding:14px; border:1px solid var(--line); border-radius:12px; background:white; }
.award-medal-section legend { font-weight:600; font-size:.85rem; }
.award-medal-requirement { margin:8px 0; }
.award-medal-requirement .check-label { display:flex; align-items:start; }
.award-medal-requirement .check-label span { flex:1; }
.award-medal-requirement strong { color:var(--green); font-size:.72rem; white-space:nowrap; }
.award-medal-quantity { display:flex; align-items:center; flex-direction:row; gap:10px; margin:6px 0 12px 24px; font-size:.75rem; }
.award-medal-quantity input { width:85px; padding:6px; }
.award-medal-result { position:sticky; bottom:0; padding:14px; border:1px solid #b5cdbd; border-radius:10px; background:var(--green-soft); color:var(--green-dark); font-weight:600; }
.award-editor:has(.patrol-medal-wizard) { width:min(820px,calc(100vw - 24px)); }
.award-editor:has(.patrol-medal-wizard) #editor-title { display:flex; align-items:center; gap:12px; }
.award-editor:has(.patrol-medal-wizard) #editor-title .patrol-medal-image { flex-shrink:0; }
.award-editor:has(.patrol-medal-wizard) .modal-footer { flex-wrap:nowrap; gap:10px; overflow-x:auto; }
.award-editor:has(.patrol-medal-wizard) .modal-extra-footer { flex-wrap:nowrap; gap:10px; }
.award-editor:has(.patrol-medal-wizard) .modal-footer :is(button,label) { flex-shrink:0; white-space:nowrap; }
.patrol-medal-heading,.patrol-medal-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.patrol-medal-heading h4 { margin:0; flex:1; }
.patrol-medal-image { width:42px; height:52px; object-fit:contain; }
.patrol-medal-progress { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:20px 0; font-size:.85rem; }
.patrol-medal-progress progress { width:100%; height:10px; accent-color:var(--green); }
.patrol-medal-question { padding:18px; border:1px solid var(--line); border-radius:12px; background:var(--green-soft); }
.patrol-medal-question h3 { font-size:1rem; line-height:1.6; }
.patrol-medal-question .check-label { padding:12px; margin-top:8px; border:1px solid var(--line); border-radius:8px; background:var(--paper); }
.patrol-medal-question .check-label span { flex:1; }
.patrol-medal-points-badge { display:inline-flex; align-items:center; justify-content:center; padding:9px 16px; border-radius:999px; background:var(--green); color:white; font-size:1.05rem; font-weight:800; box-shadow:0 3px 8px #153b2726; white-space:nowrap; }
.patrol-medal-quantity { display:flex; align-items:center; gap:14px; margin-top:16px; font-size:.85rem; font-weight:600; }
.patrol-medal-stepper { display:inline-flex; align-items:center; gap:8px; padding:4px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.patrol-medal-stepper .icon-button { width:34px; height:34px; border-radius:8px; background:var(--green-soft); color:var(--green); font-size:1.3rem; font-weight:700; }
.patrol-medal-stepper output { min-width:32px; text-align:center; font-size:1.1rem; font-weight:800; }
.modal-extra-footer { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-right:auto; }
.modal-extra-footer>label { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:8px; margin:0; font-size:.8rem; white-space:nowrap; }
.modal-extra-footer input[type=date] { width:auto; padding:7px 10px; }
.patrol-medal-toolbar { justify-content:space-between; margin:18px 0 12px; }
.patrol-medal-toolbar h4 { margin:0; }
.patrol-medal-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px; }
.patrol-medal-card { display:flex; flex-direction:column; gap:12px; padding:16px; border:2px solid var(--line); border-top:4px solid var(--green); border-radius:12px; background:var(--paper); box-shadow:0 4px 12px #153b2710; }
label.patrol-medal-card { cursor:pointer; }
.patrol-medal-card:has(input:checked) { border-color:var(--green); box-shadow:0 0 0 1px var(--green); }
.patrol-medal-card[data-tier="5014"] { border-color:#d4a72c; background:#fff9e6; }
.patrol-medal-card[data-tier="5015"] { border-color:#94a3b8; background:#f1f5f9; }
.patrol-medal-card[data-tier="5016"] { border-color:#c58a5a; background:#fff4e8; }
.patrol-medal-card>.button { margin-top:auto; }
.patrol-medal-members { display:flex; flex-direction:column; gap:0; padding-top:4px; border-top:1px solid var(--line); }
.patrol-medal-member { display:flex; align-items:center; gap:8px; padding:9px 2px; border-bottom:1px dashed var(--line); font-size:.75rem; }
.patrol-medal-member:last-child { border-bottom:0; }
.patrol-medal-member .avatar { width:24px; height:24px; font-size:.6rem; }
.patrol-medal-settings { margin:20px 0; padding-top:16px; border-top:1px solid var(--line); }
.award-registration-heading { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.award-registration-heading-image { width:64px; height:76px; object-fit:contain; flex-shrink:0; }
.award-registration-heading>div { flex:1; }
.award-registration-heading h3,.award-registration-heading p { margin:0; }
.award-registration-heading p,.award-history-meta { font-size:.76rem; color:var(--muted); }
.award-register-requirements { margin:16px 0; padding:12px; border:1px solid var(--line); border-radius:10px; background:white; }
.award-register-requirements summary { font-weight:600; margin-bottom:10px; }
.form-grid.award-register-settings { grid-template-columns:minmax(130px,.7fr) minmax(0,1fr) minmax(0,1fr); align-items:end; margin:16px 0 28px; padding:4px 4px 12px; overflow:visible; }
.award-register-settings .award-leader-control { display:contents; }
.award-register-settings :is(label,input,select,.award-selected-leader) { min-width:0; }
.award-register-settings .award-selected-leader { margin-top:0; overflow-wrap:anywhere; }
.award-participant-toolbar { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:16px 0; }
.award-participant-toolbar>label { flex:1; min-width:180px; }
.award-participant-toolbar>strong { font-size:.8rem; color:var(--green); padding:10px 0; }
.award-participant-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.award-participant { padding:12px; border:1px solid var(--line); border-radius:12px; background:white; }
.award-participant:has([name=person_ids]:not(:disabled)) { transition:background .18s,border-color .18s,box-shadow .18s; }
.award-participant:has([name=person_ids]:not(:disabled)):hover { border-color:var(--green); background:var(--green-soft); box-shadow:0 4px 12px #153b2720; }
.award-participant label:has([name=person_ids]:not(:disabled)),.award-participant [name=person_ids]:not(:disabled) { cursor:pointer; }
.award-participant:has([name=person_ids]:checked) { border-color:var(--green); background:var(--green-soft); box-shadow:0 0 0 1px var(--green); }
.award-participant:has([name=person_ids]:focus-visible) { outline:2px solid var(--green); outline-offset:2px; }
.award-participant>label:first-child { display:flex; flex-direction:row; align-items:center; gap:9px; }
.award-participant .avatar,.award-history-person .avatar,.award-progress-people .avatar { width:32px; height:32px; flex-shrink:0; }
.award-participant label>span { min-width:0; }
.award-participant strong,.award-participant small { display:block; }
.award-participant strong { font-size:.82rem; }
.award-participant small { color:var(--green); font-size:.7rem; }
.award-participant>label+label { margin-top:10px; font-size:.7rem; }
.award-participant select { font-size:.75rem; padding:6px 9px; }
.award-participant.is-unavailable { background:#f1f3f5; }
.award-participant.is-unavailable small { color:var(--muted); }
.award-inline-registration { margin-top:24px; padding-top:20px; border-top:1px solid var(--line); }
.award-inline-footer { display:flex; align-items:center; justify-content:flex-end; gap:16px; flex-wrap:wrap; margin-top:20px; padding-top:16px; border-top:1px solid var(--line); }
.award-inline-footer p { flex:1; margin:0; }
.award-inline-footer .success-message { color:var(--green); }
.award-registration-hint { margin:18px 0 0; }
[data-modal-after-actions] { padding:0 24px 20px; flex-shrink:0; }
.award-register-action { display:inline-flex; align-items:center; gap:10px; }
.award-register-action [data-registration-prize]:empty { display:none; }
.award-register-prize-image { width:28px; height:32px; object-fit:contain; }
.award-register-action .award-ribbons-images { flex-direction:row; gap:6px; }
.award-register-action .award-ribbon-image { width:36px; height:18px; }
.award-register-action .award-medal-image { width:24px; height:32px; }
.award-register-action .award-leadership-badge { width:36px; height:36px; }
.award-participant-heading { display:flex; align-items:center; gap:12px; }
.award-selected-prize { display:flex; align-items:center; gap:12px; margin-left:auto; padding:8px 14px; border:1px solid var(--line); border-radius:12px; background:var(--paper); }
.award-selected-prize:empty { display:none; }
.award-participant-prize-name { color:var(--green-dark); font-size:.95rem; line-height:1.4; }
.award-participant-heading [data-participant-prize]:empty { display:none; }
.award-selected-prize .award-register-prize-image { width:56px; height:64px; }
.award-selected-prize .award-leadership-badge { width:56px; height:56px; flex-shrink:0; }
.award-selected-prize .award-ribbons-images { flex-direction:row; gap:6px; }
.award-selected-prize .award-ribbon-image { width:48px; height:24px; }
.award-selected-prize .award-medal-image { width:32px; height:42px; }
.award-step-back { display:flex; align-items:center; gap:6px; width:fit-content; max-width:100%; margin:0 0 12px auto; }
.award-step-back svg { width:16px; height:16px; }
.award-registration-heading [data-award-back] { margin-left:auto; }
.award-leader-control { min-width:0; }
.award-selected-leader { display:flex; align-items:center; gap:10px; margin-top:10px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--paper); }
.award-selected-leader .avatar { width:40px; height:40px; object-fit:cover; flex-shrink:0; }
.award-selected-leader strong { font-size:.82rem; }
.award-registration-breadcrumb { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:20px; padding:12px 14px; background:var(--paper); border:1px solid var(--line); border-radius:10px; color:var(--muted); font-size:.75rem; line-height:1.6; }
.award-registration-breadcrumb>span { font-weight:700; }
.award-registration-breadcrumb ol { display:flex; flex-wrap:wrap; gap:6px; list-style:none; margin:0; padding:0; }
.award-registration-breadcrumb li+li::before { content:'›'; margin-right:6px; color:var(--muted); }
.award-registration-breadcrumb [aria-current=page] { color:var(--green); font-weight:700; }
.award-inline-registration .award-participant-list { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); max-height:300px; overflow-y:auto; padding:4px; scrollbar-gutter:stable; }
.award-item-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,150px),1fr)); gap:12px; padding:4px; }
.award-item-gallery .catalog-card { min-height:210px; gap:14px; padding:18px; position:relative; align-items:center; text-align:center; }
.award-item-gallery .catalog-card>img:not(.award-year-group-image) { width:100px; height:100px; object-fit:contain; }
.award-item-gallery .award-leadership-badge { width:100px; height:100px; }
.award-requirement-option { display:block; width:100%; padding:12px 14px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--ink); text-align:left; font:inherit; line-height:1.6; cursor:pointer; }
.award-requirement-option:hover { background:var(--green-soft); border-color:var(--line); }
.award-requirement-option.is-selected { background:var(--green-soft); border-color:var(--green); box-shadow:0 0 0 1px var(--green); }
.award-requirement-option:focus-visible { outline:2px solid var(--green); outline-offset:2px; }
.award-item-gallery .catalog-card:has(>.award-item-groups),.award-item-gallery .catalog-card:has(>.award-year-group-image) { padding-top:56px; }
.award-item-groups { position:absolute; top:12px; right:12px; display:flex; align-items:center; gap:5px; }
.award-item-groups .award-item-group-image { width:28px; height:28px; object-fit:contain; }
.award-item-groups>.inline-icon { width:18px; height:18px; color:var(--green); }
.award-item-gallery strong { width:100%; font-size:.82rem; line-height:1.4; text-align:center; }
.award-item-gallery small { color:var(--muted); font-size:.7rem; }
.award-item-picker { margin:20px 0; }
.award-source-cards { margin-bottom:16px; }
.award-source-cards .catalog-card { position:relative; min-height:140px; }
.award-source-cards .catalog-card>img:not(.award-year-group-image) { width:56px; height:56px; object-fit:contain; }
.award-catalog-number { display:grid; place-items:center; width:64px; height:64px; border:3px solid currentColor; border-radius:50%; background:var(--paper); color:var(--green); font-size:1.4rem; font-weight:800; }
.award-category-symbol img { width:72px; height:72px; object-fit:contain; }
.award-wizard-title-image { width:44px; height:52px; object-fit:contain; flex-shrink:0; }
.award-editor:has(.kids-ribbon-wizard) { width:min(820px,calc(100vw - 24px)); }
.award-editor:has(.kids-ribbon-wizard) #editor-title { display:flex; align-items:center; gap:12px; }
.award-editor:has(.kids-ribbon-wizard) .modal-footer { flex-wrap:nowrap; gap:10px; overflow-x:auto; }
.award-editor:has(.kids-ribbon-wizard) .modal-extra-footer { flex-wrap:nowrap; gap:10px; }
.award-editor:has(.kids-ribbon-wizard) .modal-footer :is(button,label) { flex-shrink:0; white-space:nowrap; }
.kids-ribbon-wizard .patrol-medal-toolbar h3 { margin:0; }
.kids-ribbon-wizard .award-participant-list { padding:4px; }
.award-editor:has(.molh-registration) #editor-title { display:flex; align-items:center; gap:12px; color:#865c13; }
.molh-table-wrap { overflow-x:auto; border:1px solid #e6d5af; border-radius:12px; background:white; }
.molh-registration-table { width:100%; min-width:680px; table-layout:fixed; border-collapse:collapse; font-size:.8rem; }
.molh-registration-table th { padding:12px 10px; background:#fff6df; text-align:center; min-width:100px; }
.molh-registration-table th:first-child { width:44px; min-width:0; }
.molh-registration-table th:nth-child(2) { width:30%; min-width:0; text-align:left; }
.molh-registration-table th:nth-child(n+3) { vertical-align:top; }
.molh-registration-table th:nth-child(n+3)>span { display:flex; align-items:center; justify-content:center; min-height:4.5em; line-height:1.5; }
.molh-registration-table :is(th,td) { white-space:normal; overflow-wrap:anywhere; }
.molh-registration-table td { padding:12px 10px; border-top:1px solid var(--line); }
.molh-registration-table tbody tr:has(input:not(:disabled)):hover { background:#fffaf0; }
.molh-registration-table tbody tr:has(input:checked) { background:var(--green-soft); }
.molh-registration-table input { width:18px; height:18px; accent-color:var(--green); cursor:pointer; }
.molh-registration-table input:disabled { cursor:default; }
.molh-table-emblem { display:block; width:56px; height:56px; object-fit:contain; margin:0 auto 8px; }
.molh-person-label { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:center; gap:10px; margin:0; }
.molh-person-label>span { display:grid; gap:5px; min-width:0; }
.molh-person-label .avatar { flex-shrink:0; }
.molh-person-label>.molh-person-details { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.molh-registration-table tr.is-molh-registered { background:#fff6df; }
.molh-registration-table tr.is-molh-registered td:first-child { box-shadow:inset 4px 0 #c28c22; }
.molh-registered-badge { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; border:1px solid #d7b66a; border-radius:20px; background:#ffedb5; color:#79500c; font-size:.68rem; font-weight:700; }
.molh-registered-badge[hidden] { display:none; }
.molh-registered-badge svg { width:16px; height:16px; flex-shrink:0; }
.molh-condition { text-align:center; color:#94a3b8; }
.molh-condition.is-complete { color:var(--green); }
.molh-condition svg { width:22px; height:22px; }
.molh-selected-count { display:block; margin:12px 0 20px; color:var(--green); }
.molh-manual-requirements { border:1px solid #e6d5af; border-radius:12px; background:white; padding:8px 16px; }
.molh-manual-requirements legend { padding:0 8px; font-weight:700; color:#865c13; }
.molh-manual-requirements label { display:flex; flex-direction:row; flex-wrap:nowrap; align-items:flex-start; gap:12px; padding:14px 0; margin:0; cursor:pointer; line-height:1.6; }
.molh-manual-requirements label+label { border-top:1px solid var(--line); }
.molh-manual-requirements input { flex-shrink:0; width:18px; height:18px; margin-top:4px; accent-color:var(--green); }
.molh-registration .award-register-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
.award-editor:has(.saber-registration) #editor-title { display:flex; align-items:center; gap:12px; color:#865c13; }
.saber-registration-table { table-layout:fixed; min-width:860px; white-space:normal; font-size:.8rem; }
.saber-registration-table :is(th,td) { padding:12px 8px; white-space:normal; overflow-wrap:anywhere; }
.saber-registration-table th { background:#fff6df; vertical-align:top; text-align:center; }
.saber-registration-table th:first-child { width:44px; }
.saber-registration-table th:nth-child(2) { width:24%; text-align:left; }
.saber-registration-table th:nth-child(n+3)>span { display:flex; align-items:center; justify-content:center; min-height:3em; }
.saber-registration-table :is(td:first-child,.saber-leadership-count) { text-align:center; }
.saber-registration-table tbody tr:has(input:checked) { background:var(--green-soft); }
.saber-registration-table tr.is-molh-registered { background:#fff6df; }
.saber-registration-table tr.is-molh-registered td:first-child { box-shadow:inset 4px 0 #c28c22; }
.saber-registration-table input { width:18px; height:18px; accent-color:var(--green); }
.saber-table-emblem { display:block; width:44px; height:48px; object-fit:contain; margin:0 auto 8px; }
.saber-requirement-image { width:40px; height:44px; object-fit:contain; flex-shrink:0; }
.saber-registration .award-register-settings { grid-template-columns:repeat(2,minmax(0,1fr)); }
.award-history-filters { margin-bottom:12px; }
.award-history details>summary { display:flex; align-items:center; gap:8px; list-style:none; cursor:pointer; }
.award-history details>summary::-webkit-details-marker { display:none; }
.award-history details>summary::after { content:""; display:block; width:8px; height:8px; margin-inline-start:auto; margin-inline-end:4px; border-inline-end:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(-45deg); transition:transform .2s; flex-shrink:0; }
.award-history details[open]>summary::after { transform:rotate(45deg); }
.award-workspace { margin:20px 0; padding:20px; border:1px solid var(--line); border-radius:16px; background:#ffffff80; min-width:0; }
.award-workspace-heading { padding-bottom:14px; margin-bottom:18px; border-bottom:1px solid var(--line); }
.award-workspace-heading h2 { display:flex; align-items:center; gap:10px; margin:0; font-size:1.15rem; color:var(--green); }
.award-workspace-heading h2>svg { width:34px; height:34px; padding:7px; box-sizing:border-box; flex-shrink:0; border-radius:10px; background:var(--green-soft); }
@media(max-width:540px) { .award-workspace { padding:12px; } .award-workspace-heading h2 { font-size:1rem; } }
.award-history-tools { display:flex; gap:6px; align-items:center; flex-wrap:wrap; }
.award-history-category.award-history-all>summary { background:var(--green-soft); color:var(--green); font-size:1rem; }
@media(max-width:540px) { .award-history-all>summary { flex-wrap:wrap; } .award-history-all>summary>.award-history-tools { flex-basis:100%; } }
.award-history-group-tools { display:flex; gap:6px; flex-wrap:wrap; }
.award-history-additional-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
.award-history-additional-category { min-width:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface,#fff); }
.award-history-additional-category>header { display:flex; align-items:center; gap:10px; padding:12px; background:#edf3f0; border-bottom:1px solid var(--line); }
.award-history-additional-category>header>img,.award-history-additional-category>header>svg { width:38px; height:38px; flex-shrink:0; object-fit:contain; }
.award-history-additional-category>header h4 { margin:0; font-size:.9rem; overflow-wrap:anywhere; }
.award-history-additional-category>header .award-history-source { margin:0 0 0 auto; flex-shrink:0; }
.award-history-additional-items { display:grid; gap:0; padding:12px; min-width:0; }
.award-history-additional-items>.award-history-entry { margin:0; box-shadow:none; min-width:0; }
.award-history-additional-grid>div { min-width:0; border:1px solid var(--line); border-radius:10px; }
.award-history-additional-grid .award-history-leaders { grid-template-columns:minmax(0,1fr); }
.award-history-additional-year>h3 { font-size:.88rem; margin:12px; }
.award-history-year-heading { display:flex; align-items:center; gap:10px; }
.award-history-year-image { width:40px; height:40px; object-fit:contain; flex-shrink:0; }
.award-history-special { background:linear-gradient(120deg,#fffdf5,#fff); }
.award-history-special .award-history-award-art { justify-content:center; flex:1; }
.award-history-special .award-history-award-art img { width:80px; height:80px; }
.award-history-section-body { padding:12px; min-width:0; }
.award-history-group { --history-group-color:var(--green); }
.award-history-category.award-history-group>summary { background:color-mix(in srgb,var(--history-group-color) 24%,white); color:var(--green-dark,#143c30); border-inline-start:5px solid var(--history-group-color); }
.award-history-group .award-history-category>summary { background:color-mix(in srgb,var(--history-group-color) 12%,white); border-inline-start:3px solid var(--history-group-color); }
.award-history-group>summary>.award-group-image { width:42px; height:42px; }
.award-history-group .award-history-category { margin:0 0 12px; }
.award-history-context { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:10px; margin:12px 0; font-size:.76rem; }
.award-history-context dt { color:var(--muted); font-size:.68rem; margin-bottom:4px; }
.award-history-context dd { margin:0; font-weight:600; }
.award-history-context:empty { display:none; }
.award-history-table-scroll { container-type:inline-size; min-width:0; max-width:100%; border:1px solid var(--line); border-radius:10px; }
.award-history-color-scroll,.award-history-fixed-scroll { height:520px; overflow-y:auto; scrollbar-gutter:stable; min-width:0; }
.award-history-item-number { color:var(--muted); font-weight:700; }
.award-history-table { --history-cell-inset:12px; --history-art-size:34px; --history-art-gap:8px; width:100%; min-width:0; border-collapse:collapse; table-layout:fixed; }
.award-history-table caption.sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.award-history-table th { padding:10px 12px; background:color-mix(in srgb,var(--history-group-color,var(--green)) 10%,white); color:var(--muted); text-align:start; white-space:normal; overflow-wrap:anywhere; font-size:.7rem; }
.award-history-personal-table thead th { position:sticky; top:0; z-index:3; box-shadow:0 1px 0 var(--line); }
.award-history-table td { padding:12px; vertical-align:middle; font-size:.78rem; white-space:normal; overflow-wrap:anywhere; border-top:1px solid var(--line); }
.award-history-table tbody:nth-of-type(even) { background:#f8faf9; }
.award-history-table:is([data-history-table^="biblical"],[data-history-table="additional-biblical"],[data-history-table^="elective_skill:"],[data-history-table="advancement"],[data-history-table="skill"],[data-history-table="elective"]) tbody:nth-of-type(odd)>tr>td { background:#fff; }
.award-history-table:is([data-history-table^="biblical"],[data-history-table="additional-biblical"],[data-history-table^="elective_skill:"],[data-history-table="advancement"],[data-history-table="skill"],[data-history-table="elective"]) tbody:nth-of-type(even)>tr>td { background:#edf3f0; }
.award-history-table:is([data-history-table^="biblical"],[data-history-table="additional-biblical"],[data-history-table^="elective_skill:"],[data-history-table="advancement"],[data-history-table="skill"],[data-history-table="elective"]) tbody+tbody>tr:first-child>td { border-top:3px solid #d4e0d9; }
.award-history-table tbody+tbody>.award-history-repeated-header>th { border-top:3px solid #d4e0d9; }
.award-history-table:is([data-history-table^="biblical"],[data-history-table="additional-biblical"],[data-history-table^="elective_skill:"],[data-history-table="advancement"],[data-history-table="skill"],[data-history-table="elective"]) tbody:hover>tr>td { background:#e5eee8; }
.award-history-table tbody:hover { background:color-mix(in srgb,var(--history-group-color,var(--green)) 5%,white); }
.award-history-table [data-column="trimester"],.award-history-table [data-column="year"],.award-history-table th[data-column="biblical"] { text-align:center; }
.award-history-table:is([data-history-table="biblical"],[data-history-table="additional-biblical"]) th[data-column="biblical"] { text-align:start; padding-inline-start:calc(var(--history-cell-inset) + var(--history-art-size) + var(--history-art-gap)); }
.award-history-table-image { width:28px; height:28px; object-fit:contain; vertical-align:middle; margin-inline-end:6px; }
.award-history-biblical-number { display:inline-flex; align-items:center; justify-content:center; gap:4px; max-width:100%; }
.award-history-biblical-number>.award-history-table-image { width:24px; height:24px; min-width:0; margin:0; flex-shrink:1; }
.award-history-table-award { display:grid; grid-template-columns:var(--history-art-size) minmax(0,1fr); align-items:center; gap:var(--history-art-gap); }
.award-history-table-award>img,.award-history-table-award>svg { width:34px; height:34px; object-fit:contain; flex-shrink:0; }
.award-history-table .requirements-list { margin:8px 0 0; padding-inline-start:20px; font-size:.76rem; }
.award-history-table[data-history-table="advancement"] .requirements-list { margin:0; }
.award-history-table[data-history-table="advancement"] .requirements-list>li { margin-bottom:3px; line-height:1.4; }
.award-history-icon-value { display:flex; align-items:center; gap:6px; }
.award-history-icon-value>svg { width:18px; height:18px; flex-shrink:0; color:var(--green); }
.award-history-icon-value>span { min-width:0; }
.award-history-table td[data-column="category"],.award-history-table td[data-column="category"] .award-history-icon-value>span { white-space:nowrap; overflow-wrap:normal; }
.award-history-table-galleries { display:grid; gap:18px; min-width:0; text-align:start; }
.award-history-table-galleries>section { min-width:0; width:100%; }
.award-history-table-galleries>section+section { padding-top:16px; border-top:1px solid var(--line); }
.award-history-table-gallery-title { margin:0 0 10px; font-size:.78rem; color:var(--muted); }
.award-history-table .award-history-table-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr)); gap:10px; padding:0; margin:0; list-style:none; counter-reset:award-person; }
.award-history-table-gallery>.award-history-person { width:100%; min-width:0; box-sizing:border-box; }
.award-history-table-gallery .award-history-person .award-history-boy-instructor { display:block; margin-top:6px; line-height:1.4; overflow-wrap:anywhere; }
.award-history-boy-instructor>span { color:var(--ink); font-weight:600; }
.award-history-boy-instructor .award-history-boy-instructor-label { display:block; color:var(--muted); font-weight:400; }
.award-history-boy-instructor .award-history-boy-instructor-person { display:flex; align-items:center; gap:6px; margin-top:4px; }
.award-history-table .award-history-boy-instructor-person .avatar { width:24px; height:24px; flex-shrink:0; }
.award-history-leader-card { display:flex; align-items:center; gap:9px; padding:10px; background:#fff; border:1px solid #cbd8d0; border-radius:10px; box-shadow:0 2px 5px #143c300a; min-width:0; }
.award-history-leader-card>div { flex:1; min-width:0; }
.award-history-leader-card strong { display:block; font-size:.76rem; overflow-wrap:anywhere; }
.award-history-leader-card small { display:block; margin-top:4px; font-size:.68rem; color:var(--muted); overflow-wrap:anywhere; }
.award-history-table .award-history-leader-card .avatar { width:32px; height:32px; flex-shrink:0; }
.award-history-table-people>td { padding-top:8px; border-top:1px dashed var(--line); vertical-align:top; text-align:start; }
.award-history-table .award-history-leaders { grid-template-columns:minmax(0,1fr); }
.award-history-table [data-column="assistants"] { white-space:normal; }
.award-history-table-role { margin-top:14px; }
.award-history-table-role h4,.award-history-table-participants-label { display:flex; align-items:center; gap:5px; margin:0 0 9px; font-size:.72rem; color:var(--muted); }
.award-history-table-role[data-history-role="group_leader"] h4 { gap:2px; flex-wrap:nowrap; }
.award-history-table-role[data-history-role="group_leader"] h4>.award-history-table-image { margin-inline-end:0; flex-shrink:0; }
.award-history-table-role>div { display:flex; align-items:center; gap:7px; font-size:.74rem; margin-top:7px; }
.award-history-table-role>div>strong { min-width:0; white-space:normal; overflow-wrap:anywhere; }
.award-history-table-role .avatar { width:28px; height:28px; flex-shrink:0; }
.award-history-responsibles { display:grid; grid-template-columns:minmax(0,min(260px,30cqw)) minmax(0,.9fr) minmax(0,1.6fr) minmax(0,1fr); gap:14px; }
.award-history-table-role[data-history-role="senior_patrol_leader"]>div { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:center; gap:7px; }
.award-history-responsibles>div { min-width:0; text-align:start; }
.award-history-table .award-history-instructor h4 { flex-wrap:wrap; }
.award-history-table .award-history-person { flex-wrap:wrap; padding:7px; gap:6px; }
.award-history-table .award-history-person>div { flex-basis:80px; }
.award-history-table .award-history-person .avatar { width:26px; height:26px; }
.award-history-table .award-history-instructor { padding:9px; }
@container(max-width:760px) {
  .award-history-table { --history-cell-inset:5px; --history-art-gap:5px; }
  .award-history-table th,.award-history-table td { padding:8px 5px; }
  .award-history-responsibles { gap:12px; }
  .award-history-table-award,.award-history-table-role>div { flex-wrap:wrap; gap:5px; }
  .award-history-table .award-history-instructor { padding:5px; }
  .award-history-table .award-history-person { padding:5px; gap:4px; }
  .award-history-table .award-history-person>div { flex-basis:0; min-width:0; }
  .award-history-table .award-history-instructor-label { min-width:0; }
  .award-history-table .award-history-person small { white-space:normal; overflow-wrap:anywhere; }
}
@container(max-width:440px) {
  .award-history-table { --history-cell-inset:3px; }
  .award-history-table th,.award-history-table td { padding:7px 3px; }
  .award-history-responsibles { grid-template-columns:minmax(0,1fr); gap:12px; }
  .award-history-table-image { width:20px; height:20px; margin-inline-end:2px; }
  .award-history-table .avatar,.award-history-table .award-history-person .avatar,.award-history-table .award-history-instructor h4 .avatar { width:20px; height:20px; }
  .award-history-table-role[data-history-role="senior_patrol_leader"]>div { grid-template-columns:20px minmax(0,1fr); }
  .award-history-table-role h4 { flex-wrap:wrap; }
  .award-history-table .icon-button { width:22px; height:22px; padding:4px; flex-shrink:0; }
}
.award-history-instructor-type + .award-history-instructor-type { margin-top:22px; }
.award-history-instructor-type>h4 { margin:0 0 12px; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.award-history-instructor-ribbons { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:stretch; }
.award-history-instructor-ribbon { padding:12px; border:1px solid var(--line); border-radius:12px; min-width:0; background:white; }
.award-history-instructor-ribbon>header { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.award-history-instructor-ribbon-image { width:96px; height:64px; object-fit:contain; flex-shrink:0; }
.award-history-instructor-ribbon h4 { font-size:.82rem; line-height:1.4; margin:0; }
.award-history-instructor-ribbon ol { margin:0; padding:0; list-style:none; }
.award-history-instructor-ribbon li { display:flex; align-items:center; gap:7px; padding:7px 0; border-bottom:1px solid var(--line); font-size:.78rem; }
.award-history-instructor-ribbon li:last-child { border-bottom:0; }
.award-history-instructor-ribbon .avatar { width:28px; height:28px; flex-shrink:0; }
@media(max-width:1050px) { .award-history-instructor-ribbons { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:640px) { .award-history-instructor-ribbons { grid-template-columns:minmax(0,1fr); } }
.award-history-source { display:flex; gap:8px; align-items:center; flex-wrap:wrap; font-size:.75rem; }
.award-history-leaders { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; }
.award-history-instructor { min-width:0; border:1px solid var(--line); border-radius:12px; padding:12px; background:var(--green-soft); }
.award-history-instructor h4 { display:flex; align-items:center; gap:8px; margin:0 0 10px; font-size:.7rem; color:var(--muted); }
.award-history-instructor-label { flex:1; }
.award-history-instructor h4 strong { display:block; font-size:.8rem; color:var(--ink); margin-top:3px; }
.award-history-instructor h4 .avatar { width:34px; height:34px; }
.award-history-instructor .award-history-participants { display:flex; flex-direction:column; padding:0; margin:0; counter-reset:award-person; list-style:none; }
.award-history-instructor .award-history-participants:not(.award-history-leader-gallery) { align-items:flex-start; gap:6px; }
.award-history-participants:not(.award-history-leader-gallery)>.award-history-person { width:240px; max-width:100%; box-sizing:border-box; padding:6px 8px; }
.award-history-table .award-history-instructor { width:260px; max-width:100%; box-sizing:border-box; }
.award-history-instructor .award-history-participants.award-history-leader-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:8px; align-items:start; }
.award-history-leader-gallery .award-history-person { padding:7px 8px; gap:7px; border-radius:8px; }
.award-history-leader-gallery .award-history-person .avatar { width:28px; height:28px; }
.award-history-leader-gallery .award-history-person strong { font-size:.73rem; }
.award-history-leader-gallery .award-history-person small { font-size:.65rem; }
.award-history-leader-gallery .icon-button { width:26px; height:26px; padding:5px; flex-shrink:0; }
.award-history-person { background:white; counter-increment:award-person; }
.award-history-person:before { content:counter(award-person) '.'; font-size:.7rem; color:var(--muted); }
.award-history-person small { display:flex; align-items:center; gap:4px; }
.award-history-person small svg { width:12px; height:12px; }
.award-history-award-art>.award-leadership-badge { width:52px; height:52px; flex-shrink:0; }
.award-history-staff { display:flex; gap:12px; flex-wrap:wrap; padding-top:12px; margin-top:12px; border-top:1px solid var(--line); }
.award-history-staff>div { display:flex; gap:6px; align-items:center; font-size:.7rem; flex-wrap:wrap; }
.award-history-staff .avatar { width:26px; height:26px; }
.award-history-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding:12px; }
.award-history-achievements>.award-history-section-body>.award-history-card-grid { padding:0; }
.award-history-challenge-pair { grid-column:1/-1; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:stretch; }
.award-history-achievement { border:1px solid var(--line); background:white; border-radius:12px; padding:14px; min-width:0; transition:box-shadow .2s,transform .2s; }
.award-history-achievement:hover { box-shadow:0 6px 18px #19412417; transform:translateY(-2px); }
.award-history-achievement[data-history-biblical-color] { background:var(--challenge-background); border-color:var(--challenge-border); }
.award-history-achievement[data-history-biblical-color="1"] { --challenge-background:#e8f1ff; --challenge-border:#8bb5ed; }
.award-history-achievement[data-history-biblical-color="2"] { --challenge-background:#fff0f0; --challenge-border:#e7a0a0; }
.award-history-achievement[data-history-biblical-color="3"] { --challenge-background:#eaf6ed; --challenge-border:#91c49d; }
.award-history-achievement[data-history-biblical-color="4"] { --challenge-background:#f5e8dc; --challenge-border:#c99565; }
.award-history-achievement[data-history-biblical-color="5"] { --challenge-background:#edf0f4; --challenge-border:#acb5c2; }
.award-history-achievement[data-history-biblical-color="0"] { --challenge-background:#fff5d6; --challenge-border:#d9b54f; }
.award-history-achievement>header { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:.76rem; }
.award-history-achievement-art { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:4px; min-height:88px; }
.award-history-achievement-art img { width:78px; height:78px; object-fit:contain; }
.award-history-achievement h4 { text-align:center; font-size:.84rem; margin:8px 0 14px; }
.award-history-achievement ol { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.award-history-achievement li { display:flex; align-items:center; gap:7px; font-size:.76rem; }
.award-history-person-name { flex:1; overflow-wrap:anywhere; }
.award-history-achievement .avatar { width:28px; height:28px; flex-shrink:0; }
@media(max-width:900px) { .award-history-card-grid,.award-history-additional-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:540px) { .award-history-card-grid,.award-history-additional-grid { grid-template-columns:minmax(0,1fr); } .award-history-section-body { padding:8px; } .award-history-entry { padding:12px; } .award-history-group>summary { flex-wrap:wrap; } .award-history-group-tools { flex-basis:100%; } }
.award-history-category { border:1px solid var(--line); border-radius:12px; background:white; margin:12px 0; overflow:hidden; }
.award-history-category>summary { display:flex; align-items:center; gap:10px; padding:12px; background:var(--green-soft); font-size:.84rem; font-weight:600; cursor:pointer; }
.award-history-category>summary>span:first-of-type { flex:1; }
.award-history-group-route { display:inline-flex; align-items:center; gap:5px; flex-wrap:wrap; vertical-align:middle; }
.award-history-group-route .award-group-image { width:26px; height:26px; object-fit:contain; }
.award-history-group-route svg { width:16px; height:16px; }
.award-history-category>summary>span.award-history-section-label { flex:1; min-width:0; }
.award-history-category>summary>span.award-history-heading-symbol { display:flex; align-items:center; justify-content:center; flex:0 0 36px; width:36px; height:36px; }
.award-history-heading-symbol>svg { width:30px; height:30px; }
.award-history-inline-group { display:inline-flex; align-items:center; gap:6px; vertical-align:middle; }
.award-history-inline-group>.award-group-image { width:26px; height:26px; object-fit:contain; }
.award-history-ribbon-label { display:flex; align-items:center; flex-wrap:wrap; gap:5px 7px; line-height:1.4; }
.award-history-ribbon-label .award-history-inline-group { min-width:0; line-height:inherit; }
.award-history-inline-group>.award-group-image { flex-shrink:0; }
.award-history-entry { padding:16px; border-top:1px solid var(--line); }
.award-history-entry>header,.award-history-entry>header>div { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.award-history-entry>header { justify-content:space-between; }
.award-history-entry h3 { margin:0; font-size:.88rem; }
.award-history-meta { margin:8px 0; }
.award-history-requirements { font-size:.78rem; margin:10px 0; }
.award-history-participants { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:8px; }
.award-history-person { display:flex; align-items:center; gap:9px; padding:10px; border:1px solid var(--line); border-radius:10px; }
.award-history-person>div { flex:1; min-width:0; }
.award-history-person strong { display:block; font-size:.78rem; }
.award-history-person small { display:block; margin-top:3px; color:var(--muted); font-size:.7rem; }
.award-history-award-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:16px; }
.award-history-entry.award-history-award-card { min-width:0; padding:16px; border:1px solid color-mix(in srgb,var(--history-group-color,var(--green)) 32%,var(--line)); border-radius:14px; background:linear-gradient(155deg,color-mix(in srgb,var(--history-group-color,var(--green)) 7%,white),white 50%); box-shadow:0 2px 6px #143c3008; transition:box-shadow .2s,transform .2s; }
.award-history-award-card:hover { box-shadow:0 7px 20px #143c3018; transform:translateY(-2px); }
.award-history-award-card:is([data-history-item="5013"],[data-history-item="5014"]) { background:linear-gradient(135deg,#fff0b8,#fff9e7); border-color:#d9b54f; }
.award-history-award-card[data-history-item="5015"] { background:linear-gradient(135deg,#e1e6ed,#f5f7fa); border-color:#aab4c2; }
.award-history-award-card[data-history-item="5016"] { background:linear-gradient(135deg,#ecd2bb,#fcf1e6); border-color:#bd895c; }
.award-history-award-card>header { position:relative; display:block; padding-top:30px; }
.award-history-card-group { position:absolute; top:0; inset-inline-start:0; }
.award-history-card-group .award-group-image { width:28px; height:28px; }
.award-history-card-count { position:absolute; top:0; inset-inline-end:0; }
.award-history-award-card>header>.award-history-award-art { display:flex; flex-wrap:nowrap; justify-content:flex-start; align-items:center; gap:12px; padding:8px 0 14px; text-align:start; }
.award-history-card-art { display:flex; flex-direction:column; align-items:flex-start; gap:4px; flex:0 0 64px; }
.award-history-award-card .award-history-card-art>img,.award-history-award-card .award-history-card-art>.award-leadership-badge { width:64px; height:64px; object-fit:contain; }
.award-history-achievement-ribbon .award-history-card-art { flex-basis:180px; }
.award-history-achievement-ribbon .award-history-card-art>img { width:180px; height:180px; }
.award-history-achievement-ribbon[data-history-ribbon-kind="achievement"] .award-history-card-art { flex-basis:clamp(120px,25vw,300px); }
.award-history-achievement-ribbon[data-history-ribbon-kind="achievement"] .award-history-card-art>img { width:clamp(120px,25vw,300px); height:auto; }
.award-history-achievement-ribbon[data-history-ribbon-kind="application"] .award-history-card-art { flex-basis:64px; }
.award-history-achievement-ribbon[data-history-ribbon-kind="application"] .award-history-card-art>img { width:64px; height:auto; }
.award-history-achievement-ribbon>.award-history-participants { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:12px; align-items:stretch; list-style:none; padding:0; margin:12px 0 0; counter-reset:award-person; }
.award-history-achievement-ribbon>.award-history-participants>.award-history-person { width:100%; min-width:0; box-sizing:border-box; background:white; }
.award-history-stars .award-history-card-art { flex:0 0 180px; flex-direction:row; flex-wrap:wrap; }
.award-history-stars .award-history-card-art>img { width:72px; height:72px; }
.award-history-molh .award-history-card-art { flex-basis:180px; }
.award-history-molh .award-history-card-art>img { width:180px; height:180px; }
.award-history-stars>.award-history-participants,.award-history-molh .award-history-participants.award-history-leader-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:12px; list-style:none; padding:0; margin:12px 0 0; counter-reset:award-person; }
.award-history-stars>.award-history-participants>.award-history-person,.award-history-molh .award-history-participants>.award-history-person { width:100%; min-width:0; box-sizing:border-box; }
.award-history-award-card .award-history-award-art>h3 { flex:1; min-width:0; margin:0; line-height:1.45; overflow-wrap:anywhere; }
.award-history-award-card .award-history-leaders { grid-template-columns:minmax(0,1fr); }
.award-history-award-card .award-history-context { padding-top:12px; border-top:1px solid var(--line); grid-template-columns:repeat(2,minmax(0,1fr)); }
.award-history-additional-grid>div { display:grid; gap:12px; align-content:start; border:0; }
.award-history-additional-items>.award-history-additional-item { margin:0 0 24px; padding:0; border:0; border-radius:0; background:none; }
.award-history-additional-items>.award-history-additional-item+ .award-history-additional-item { border-top:1px solid var(--line); }
.award-history-additional-item>header { flex-wrap:nowrap; justify-content:flex-start; margin:0 0 16px; padding:0; }
.award-history-additional-item>header h3 { flex:1; min-width:0; overflow-wrap:anywhere; }
.award-history-additional-art { display:flex; flex:0 0 36px; }
.award-history-additional-art>img,.award-history-additional-art>svg { width:36px; height:36px; object-fit:contain; }
.award-history-additional-item .award-history-participants { display:flex; flex-direction:column; align-items:flex-start; }
.award-history-requirements-link { display:inline-flex; align-items:center; gap:6px; border:0; background:none; padding:0; color:var(--green); font:inherit; text-align:start; cursor:pointer; }
.award-history-requirements-link:hover { text-decoration:underline; }
.award-history-requirements-modal { width:min(640px,calc(100vw - 32px)); max-height:90dvh; overflow:hidden; }
.award-history-requirements-modal[open] { display:flex; flex-direction:column; }
.award-history-requirements-modal>.modal-header,.award-history-requirements-modal>.modal-footer { flex-shrink:0; }
.award-history-requirements-modal .modal-content { min-height:0; max-height:none; overflow-y:auto; }
.award-history-ribbon-requirement-block+section { margin-top:22px; }
.award-history-ribbon-requirement-block h3 { font-size:.95rem; color:var(--green); }
.award-history-kids-ribbon .award-history-participants.award-history-leader-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,180px),1fr)); gap:12px; padding:0; margin:0; list-style:none; }
.award-history-kids-ribbon [data-history-requirements] { margin-top:20px; }
.award-history-kids-ribbon p:has(>[data-history-requirements]) { display:flex; justify-content:flex-end; }
@media(max-width:1100px) { .award-history-award-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .award-history-award-grid { grid-template-columns:minmax(0,1fr); } }
.award-history-award-grid.award-history-full-width,.award-history-card-grid.award-history-full-width { grid-template-columns:minmax(0,1fr); }
.award-history-award-grid.award-history-medal-grid { grid-template-columns:minmax(0,1fr); }
.award-history-full-width .award-history-leaders { grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); }
.award-history-trimester-year { grid-column:1/-1; min-width:0; padding:14px; border:1px solid var(--line); border-radius:12px; }
.award-history-trimester-year>h4 { margin:0 0 14px; font-size:.85rem; }
.award-history-trimester-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; align-items:start; }
.award-history-trimester-grid .is-empty { opacity:.5; }
.award-history-trimester-grid .award-history-achievement>ol { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:stretch; }
.award-history-trimester-grid .award-history-achievement>ol>li { min-width:0; padding:8px; border:1px solid var(--line); border-radius:9px; background:white; }
.award-history-achievements[data-history-key$=":completed-years"] .award-history-achievement>ol { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; align-items:stretch; }
.award-history-achievements[data-history-key$=":completed-years"]>.award-history-section-body>.award-history-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.award-history-achievements[data-history-key$=":completed-years"] .award-history-achievement>ol>li { min-width:0; padding:8px; border:1px solid var(--line); border-radius:9px; background:white; }
@media(max-width:540px) { .award-history-trimester-grid { grid-template-columns:minmax(0,1fr); } }
.award-progress-year { margin:14px 0; padding:16px; border:1px solid var(--line); border-radius:12px; background:white; }
.award-progress-year h3 { display:flex; align-items:center; gap:8px; }
.award-progress-year .muted { font-size:.78rem; }
.award-progress-people { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; }
.award-progress-people>span { display:inline-flex; align-items:center; gap:8px; padding:6px 10px; background:var(--green-soft); border-radius:9px; font-size:.8rem; }
.award-progress-star { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.award-star-image { width:36px; height:36px; object-fit:contain; }
@media(max-width:640px) { .award-participant-list { grid-template-columns:minmax(0,1fr); } .award-editor .modal-content { padding:14px; } .award-history-filters { flex-wrap:wrap; } }
.leader-position-category + .leader-position-category { margin-top:20px; padding-top:16px; border-top:1px solid #e4dceb; }
.leader-position-category h3 { display:flex; align-items:center; gap:8px; margin:0 0 10px; color:var(--section-color); font-size:.88rem; }
.leader-position-category h3 .icon { width:18px; height:18px; flex-shrink:0; }
.leader-position-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.leader-position-option { display:flex; flex-direction:row; align-items:flex-start; gap:10px; padding:12px; border:1px solid #e4dceb; border-radius:10px; background:#fcfafe; }
.leader-position-option:has(input:checked) { border-color:#a98ac7; background:#f2eafa; }
.leader-position-option input { margin-top:5px; accent-color:#73529b; }
.leader-position-option strong,.leader-position-option small { display:flex; align-items:center; gap:7px; }
.leader-position-option strong { font-size:.77rem; }.leader-position-option small { margin-top:7px; color:var(--muted); font-size:.68rem; }
@media(max-width:760px) { .leader-stats { gap:8px; } .leader-stat { padding:12px; gap:8px; } .leader-stat>span { width:32px; height:32px; } .leader-table-wrap { --leader-name-width:200px; } }
@media(max-width:540px) { .leader-stats { grid-template-columns:minmax(0,1fr); } .leader-stat { padding:12px 14px; } .leader-stat>div { display:flex; flex:1; align-items:center; justify-content:space-between; gap:12px; } .leader-stat strong { margin:0; font-size:1.35rem; } .leader-position-options { grid-template-columns:minmax(0,1fr); } }

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior:auto!important;
        transition:none!important;
    }
}



.attendance-leaders { border-color:#b8ccec; }
.attendance-leaders header { background:#eaf1fc; }
.attendance-summary h4 { margin:12px 0 8px; }


.daily-attendance { margin:24px 0; }
.daily-attendance-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; margin-bottom:20px; }
.daily-attendance-heading h2 { display:flex; align-items:center; gap:8px; margin:0; }
.daily-attendance-heading label { display:flex; align-items:center; gap:10px; margin:0; }
.daily-attendance-heading input { width:auto; }
.daily-attendance-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.daily-attendance-card { display:flex; align-items:center; gap:22px; padding:20px; border:1px solid var(--line); border-radius:14px; background:#f8fbfa; }
.daily-attendance-card h3 { margin:0 0 12px; }
.daily-attendance-card dl { display:flex; gap:22px; margin:0; }
.daily-attendance-card dl>div { display:grid; gap:4px; }
.daily-attendance-card dt { font-size:.8rem; color:var(--muted); }
.daily-attendance-card dd { margin:0; font-size:1.25rem; font-weight:700; }
.daily-attendance-card dl>div:first-child dd { color:#23704d; }
.daily-attendance-card dl>div:last-child dd { color:#ac4039; }
.daily-attendance-donut { width:110px; height:110px; flex:0 0 110px; display:grid; place-items:center; border-radius:50%; background:conic-gradient(#27815b var(--attendance-percent),#e6b7b3 0); position:relative; }
.daily-attendance-donut::before { content:''; position:absolute; inset:13px; border-radius:50%; background:#f8fbfa; }
.daily-attendance-donut strong { position:relative; font-size:1.35rem; }
.daily-attendance-donut.is-empty { background:#dce5e0; }
@media(max-width:760px) { .daily-attendance-grid { grid-template-columns:1fr; } .daily-attendance-card { gap:16px; padding:16px; } }
/* Training keeps navigation ancestors visible and separates registration from history. */
.training-page .training-audiences{grid-template-columns:repeat(2,minmax(0,1fr))}
.training-page .training-course-grid,.training-page .training-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.training-page [data-award-stage^="training_"]{margin-bottom:24px}
.training-step-return{display:flex;justify-content:flex-end;margin:16px 0}
.training-step-title{display:flex;align-items:center;gap:14px;margin:20px 0}
.training-step-title img{width:64px;height:64px;object-fit:contain}
.training-page .catalog-card{cursor:pointer;transition:box-shadow .18s,transform .18s}
.training-page .catalog-card:hover{box-shadow:0 8px 24px #142c4826;transform:translateY(-2px)}
.training-page .catalog-card.is-selected{outline:3px solid var(--green,#167548);outline-offset:2px}
.training-page .catalog-card>img{width:100%;height:112px;object-fit:contain}
.training-history-gallery{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;list-style:none;padding:0;margin:16px 0}
.training-history-gallery>li{display:flex;align-items:flex-start;gap:10px;min-width:0;padding:12px;border:1px solid var(--border,#dbe3ec);border-radius:12px;background:var(--surface,#fff)}
.training-history-gallery>li>div{flex:1;min-width:0}
.training-history-gallery strong{overflow-wrap:anywhere}
.training-history-gallery small{display:flex;align-items:center;gap:6px;margin-top:6px}
.training-history-instructor{flex-wrap:wrap}
.training-history-instructor>span{display:inline-flex;align-items:center;gap:6px}
.training-history-instructor .avatar{width:26px;height:26px;flex-basis:26px}
.training-history-course{width:100%;min-width:0}
.training-history .award-history-section-body{min-width:0}
.training-level-people>li{align-items:center}
@media(max-width:650px){.training-page .training-course-grid,.training-page .training-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.training-history-gallery{grid-template-columns:1fr}.training-page .catalog-card>img{height:85px}}

/* Shared training requirements, including the read-only course view. */
.training-page .training-requirements {
  min-width:0;
  margin:20px 0 28px;
  padding:12px 20px 20px;
  border:1px solid #bcd6ed;
  border-radius:18px;
  background:linear-gradient(135deg,#f0f7ff 0%,#f5fbfa 100%);
}
.training-page .training-requirements legend {
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 14px;
  border:1px solid #bdd5ed;
  border-radius:10px;
  background:#e3effc;
  color:#164e83;
  font-size:1rem;
  font-weight:750;
}
.training-page .training-requirements .requirements-list {
  counter-reset:training-requirement;
  list-style:decimal outside;
  display:grid;
  gap:10px;
  padding:0;
  margin:10px 0 0;
}
.training-page .training-requirements .requirements-list>li {
  position:relative;
  counter-increment:training-requirement;
  min-height:64px;
  margin:0;
  padding:16px 18px 16px 64px;
  border:1px solid #d3e1f0;
  border-inline-start:4px solid #397dbd;
  border-radius:12px;
  background:#fff;
  color:#233c55;
  line-height:1.6;
  box-shadow:0 2px 5px #163d6510;
}
.training-page .training-requirements .requirements-list>li::marker { color:transparent; font-size:0; }
.training-page .training-requirements .requirements-list>li::before {
  content:counter(training-requirement);
  position:absolute;
  display:grid;
  place-items:center;
  inset-inline-start:14px;
  left:14px;
  top:15px;
  width:32px;
  height:32px;
  border:0;
  border-radius:10px;
  background:#dcecff;
  color:#174e87;
  font-size:.9rem;
  font-weight:800;
}
.training-page .training-requirements .requirements-list>li:nth-child(even) {
  border-inline-start-color:#258779;
  background:#f9fdfc;
}
.training-page .training-requirements .requirements-list>li:nth-child(even)::before {
  background:#dcf2eb;
  color:#126457;
}
@media(max-width:650px) {
  .training-page .training-requirements { padding:10px 12px 14px; }
  .training-page .training-requirements .requirements-list>li { padding:13px 12px 13px 57px; }
  .training-page .training-requirements .requirements-list>li::before { left:11px; inset-inline-start:11px; top:12px; }
}

.training-page .training-course-grid[data-training-audience-grid="youth"] {
  grid-template-columns:repeat(2,minmax(0,1fr));
}

.training-page .training-course-grid[data-training-audience-grid="youth"] .catalog-card {
  text-align:center;
  align-items:center;
}

.training-page .training-course-grid[data-training-audience-grid="adult"] .catalog-card {
  text-align:center;
  align-items:center;
}

.training-page .training-course-grid[data-training-gallery-grid="camps"] .catalog-card {
  text-align:center;
  align-items:center;
}

.training-page .training-course-grid[data-training-gallery-grid="workshops"] .catalog-card {
  text-align:center;
  align-items:center;
}

/* Training history: one course heading followed by its participant gallery. */
.training-history [data-training-history-rows]>.award-history-group {
  margin:0 0 24px;
  border:1px solid color-mix(in srgb,var(--history-group-color) 35%,#dbe3ec);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 4px 14px #19334b0d;
}
.training-history .award-history-group>summary { padding:16px 18px; gap:16px; }
.training-history .award-history-group>summary>.award-group-image { width:72px; height:72px; object-fit:contain; }
.training-history .training-history-course-block {
  margin:0 0 18px;
  border:1px solid color-mix(in srgb,var(--history-group-color) 26%,#dbe3ec);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  box-shadow:0 3px 10px #19334b0b;
}
.training-history .training-history-course-block>summary {
  gap:18px;
  padding:16px 18px;
  border-inline-start-width:5px;
  font-size:.96rem;
  line-height:1.45;
}
.training-history .training-history-course-block>summary>.award-history-image {
  width:88px;
  height:88px;
  object-fit:contain;
}
.training-history .training-history-course-block:nth-child(even)>summary {
  background:color-mix(in srgb,var(--history-group-color) 19%,white);
}
.training-history .training-history-course-block>summary:hover {
  background:color-mix(in srgb,var(--history-group-color) 25%,white);
}
.training-history .training-history-course-block>.award-history-section-body { padding:14px; background:#f6f8fb; }
.training-history .training-history-course { padding:0; margin:0; border:0; box-shadow:none; background:transparent; }
.training-history .training-history-course .training-history-gallery { margin:0; }
@media(max-width:540px) {
  .training-history .award-history-group>summary { padding:12px; gap:10px; }
  .training-history .award-history-group>summary>.award-group-image { width:56px; height:56px; }
  .training-history .training-history-course-block>summary { padding:12px; gap:12px; }
  .training-history .training-history-course-block>summary>.award-history-image { width:68px; height:68px; }
  .training-history .training-history-course-block>.award-history-section-body { padding:10px; }
}

/* Collections remain navigation containers; course styling belongs to their children. */
.training-history .training-history-gallery-block {
  margin:22px 0;
  border:1px solid var(--line,#dbe3ec);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.training-history .training-history-gallery-block>summary {
  padding:12px 16px;
  gap:12px;
  border-inline-start:0;
  background:#edf2f8;
  color:#263f5b;
  font-size:.95rem;
}
.training-history .training-history-gallery-block>summary>.award-history-image {
  width:42px;
  height:42px;
  object-fit:contain;
}
.training-history .training-history-gallery-block>.award-history-section-body { padding:16px; }
.training-history .training-history-gallery-block>.award-history-section-body>.training-history-course-block:last-child { margin-bottom:0; }
@media(max-width:540px) {
  .training-history .training-history-gallery-block>.award-history-section-body { padding:10px; }
}

/* Outpost profile: full-page identity, directory and editing. */
.outpost-profile { display:grid; gap:24px; min-width:0; }
.outpost-profile>.page-header { margin-bottom:0; }
.outpost-profile .page-header-actions { display:flex; flex-wrap:wrap; gap:10px; }
.outpost-hero { position:relative; display:flex; align-items:center; gap:28px; padding:34px; border-radius:24px; overflow:hidden; color:#fff; background:radial-gradient(ellipse at top right,#35668080,transparent 60%),linear-gradient(125deg,#112f50,#184f43); box-shadow:0 12px 30px #193a5420; }
.outpost-logo-wrap { display:grid; place-items:center; flex:0 0 150px; width:150px; height:150px; padding:14px; border-radius:22px; background:#fff; box-shadow:0 6px 24px #08273830; }
.outpost-profile-logo { display:block; width:100%; height:100%; max-height:150px; object-fit:contain; }
.outpost-hero-copy { min-width:0; }
.outpost-hero-copy h2 { margin:12px 0 8px; font-size:clamp(1.8rem,3.8vw,2.75rem); line-height:1.15; color:#fff; overflow-wrap:anywhere; }
.outpost-hero-copy>p { margin:0; color:#e1ede9; font-size:1.05rem; line-height:1.65; }
.outpost-hero-meta { display:flex; flex-wrap:wrap; align-items:center; gap:12px; font-size:.9rem; font-weight:650; }
.outpost-status { display:inline-flex; align-items:center; gap:6px; padding:5px 10px; border-radius:999px; background:#dcf7e4; color:#205537; font-size:.76rem; }
.outpost-status.is-inactive { background:#fff0cf; color:#755213; }
.outpost-status .inline-icon { width:15px; height:15px; }
.outpost-facts { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr)); gap:16px; margin:0; }
.outpost-facts:empty { display:none; }
.outpost-facts>div { display:grid; grid-template-columns:32px 1fr; gap:4px 10px; padding:18px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.outpost-facts .inline-icon { grid-row:span 2; color:#2a6b61; align-self:center; }
.outpost-facts dt { color:var(--muted); font-size:.78rem; }
.outpost-facts dd { margin:0; font-weight:700; overflow-wrap:anywhere; }
.outpost-section { --outpost-tone:#315bb5; min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:0 3px 14px #193a5408; }
.outpost-section[data-outpost-tone="green"] { --outpost-tone:#287c60; }
.outpost-section[data-outpost-tone="gold"] { --outpost-tone:#a9781d; }
.outpost-section[data-outpost-tone="purple"] { --outpost-tone:#7c53a6; }
.outpost-section>header { display:flex; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--line); background:color-mix(in srgb,var(--outpost-tone) 6%,white); }
.outpost-section>header h2 { margin:0; font-size:1.1rem; color:#263f54; }
.outpost-section-symbol { display:grid; place-items:center; width:38px; height:38px; flex-shrink:0; border-radius:12px; color:var(--outpost-tone); background:color-mix(in srgb,var(--outpost-tone) 12%,white); }
.outpost-section-body { padding:22px; }
.outpost-role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.outpost-role-card { min-width:0; padding:16px; border:1px solid #e3e9ef; border-radius:14px; background:#f9fbfd; transition:box-shadow .18s,border-color .18s; }
.outpost-role-card:hover { border-color:color-mix(in srgb,var(--outpost-tone) 35%,white); box-shadow:0 5px 16px #193a5410; }
.outpost-role-label { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.outpost-role-label h3 { margin:0; font-size:.82rem; line-height:1.45; }
.outpost-role-image { flex:0 0 38px; width:38px; height:38px; object-fit:contain; }
.outpost-small-group { width:26px; height:26px; object-fit:contain; }
.outpost-person-gallery { display:grid; gap:10px; margin:0; padding:0; list-style:none; }
.outpost-person { display:flex; align-items:center; gap:10px; min-width:0; }
.outpost-person strong { font-size:.88rem; font-weight:650; overflow-wrap:anywhere; line-height:1.45; }
.outpost-person .avatar { width:44px; height:44px; flex:0 0 44px; }
.outpost-unassigned { margin:0; font-size:.8rem; color:var(--muted); }
.outpost-group-grid { display:grid; grid-template-columns:minmax(0,1fr); gap:20px; }
.outpost-group-card { min-width:0; overflow:hidden; border:1px solid color-mix(in srgb,var(--outpost-group-color) 40%,#e2e8ef); border-radius:16px; }
.outpost-group-card>header { display:flex; align-items:center; gap:14px; padding:16px; border-top:4px solid var(--outpost-group-color); background:color-mix(in srgb,var(--outpost-group-color) 12%,white); }
.outpost-group-card>header img { width:58px; height:58px; object-fit:contain; }
.outpost-group-card>header h3 { margin:0; font-size:1rem; }
.outpost-group-card>div { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); align-items:start; gap:14px; padding:16px; }
.outpost-group-card .outpost-role-card { background:#fff; }
.outpost-church-grid { display:grid; grid-template-columns:1fr 1fr; align-items:start; gap:24px; }
.outpost-field-label { margin:0 0 8px; font-size:.75rem; color:var(--muted); }
.outpost-church-grid h3 { margin:0; font-size:1.1rem; }
.outpost-address { display:flex; align-items:flex-start; gap:8px; margin:12px 0 0; color:var(--muted); font-size:.84rem; line-height:1.7; }
.outpost-address .inline-icon { flex-shrink:0; margin-top:3px; }
.outpost-edit-grid { display:grid; grid-template-columns:minmax(0,1fr) 240px; gap:26px; }
.outpost-edit-form { display:grid; gap:18px; }
.outpost-edit-form .form-grid { margin:0; align-content:start; }
.outpost-logo-editor { display:grid; gap:14px; align-content:start; padding:20px; border:1px solid #cedfe3; border-radius:18px; background:linear-gradient(145deg,#f1f9f6,#f3f7fc); transition:border-color .2s,box-shadow .2s; }
.outpost-logo-editor.is-dragging { border-color:#267361; box-shadow:0 0 0 3px #26736124; }
.outpost-logo-editor h3 { display:flex; align-items:center; gap:8px; margin:0; color:#26594e; font-size:1rem; }
.outpost-logo-editor [data-outpost-logo-preview] { padding:10px; border:1px solid #d5e2e6; border-radius:14px; background:repeating-conic-gradient(#edf1f3 0% 25%,#fff 0% 50%) 50%/16px 16px; }
.outpost-logo-upload { position:relative; display:grid; gap:6px; justify-items:center; padding:16px 10px; border:1px dashed #81b4a4; border-radius:12px; background:#ffffffb3; color:#235f51; cursor:pointer; text-align:center; }
.outpost-logo-upload:hover,.outpost-logo-upload:focus-within { background:#e8f5ef; outline:2px solid #267361; outline-offset:2px; }
.outpost-logo-actions { display:flex; flex-wrap:wrap; gap:8px; }
.outpost-logo-actions .button { flex:1; }
.outpost-logo-editor [data-outpost-logo-size] { overflow-wrap:anywhere; }
.outpost-logo-editor [data-outpost-logo-preview] { width:140px; height:140px; margin:auto; }
.outpost-logo-editor small { font-size:.76rem; color:var(--muted); line-height:1.5; }
.outpost-logo-editor label>span { display:flex; gap:8px; align-items:center; }
.outpost-logo-editor input { max-width:100%; }
.outpost-form-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px; padding:18px 22px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.outpost-form-footer>p { flex:1 1 240px; margin:0; }
.outposts-list>.cards-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
@media(max-width:1000px) { .outposts-list>.cards-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .outposts-list>.cards-grid { grid-template-columns:minmax(0,1fr); } }
.outpost-list-card { min-width:0; display:flex; flex-direction:column; gap:20px; padding:24px; border:1px solid var(--line); border-radius:20px; background:#fff; box-shadow:0 5px 20px #193a5409; }
.outpost-list-identity { display:flex; align-items:center; gap:20px; }
.outpost-list-identity>img { width:86px; height:86px; object-fit:contain; }
.outpost-list-identity h2 { margin:8px 0; font-size:1.2rem; }
.outpost-list-identity p,.outpost-list-slogan { margin:0; color:var(--muted); line-height:1.6; }
.outpost-list-card>.actions { margin-top:auto; flex-wrap:wrap; }
@media(max-width:1000px) { .outpost-role-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .outpost-edit-grid { grid-template-columns:1fr; } .outpost-logo-editor { grid-template-columns:150px minmax(0,1fr); align-items:center; } .outpost-logo-editor [data-outpost-logo-preview] { grid-row:span 2; } }
@media(max-width:600px) { .outpost-hero { flex-direction:column; align-items:flex-start; padding:24px; gap:20px; } .outpost-logo-wrap { width:115px; height:115px; flex-basis:115px; } .outpost-hero-copy h2 { font-size:1.8rem; } .outpost-role-grid,.outpost-group-grid,.outpost-church-grid { grid-template-columns:1fr; } .outpost-section-body { padding:14px; } .outpost-section>header { padding:14px; } .outpost-logo-editor { grid-template-columns:1fr; } .outpost-logo-editor [data-outpost-logo-preview] { grid-row:auto; } .outpost-profile .page-header-actions { width:100%; } }
@media(prefers-reduced-motion:reduce) { .outpost-role-card { transition:none; } }
@media(min-width:601px) and (max-width:1000px) {
  .outpost-logo-editor>h3 { grid-column:1/-1; }
  .outpost-logo-editor [data-outpost-logo-preview] { grid-column:1; grid-row:2/span 3; }
  .outpost-logo-upload,.outpost-logo-actions,.outpost-logo-editor [data-outpost-logo-size] { grid-column:2; }
}

/* Personal profile: identity, service timeline and award history. */
.profile-record-outpost { display:flex; align-items:center; gap:10px; max-width:100%; padding:10px 12px; margin:0 0 12px; border:1px solid #e8c577; border-left:4px solid #c58a19; border-radius:10px; background:#fff8e8; color:#725017; box-sizing:border-box; }
.profile-record-outpost-logo { width:42px; height:42px; object-fit:contain; flex:0 0 42px; }
.profile-record-outpost>span { display:grid; gap:3px; min-width:0; overflow-wrap:anywhere; }
.profile-record-outpost small { font-size:.7rem; color:#856332; }
.profile-record-outpost strong { font-size:.83rem; line-height:1.35; }
.profile-award-card:has(>.profile-record-outpost) { border-color:#dfc58c; }
a.person-name-button { text-decoration:none; }
a.person-name-button:hover { text-decoration:underline; }
.person-profile { display:grid; gap:24px; min-width:0; }
.person-profile>.page-header { margin:0; }
.profile-sticky-identity { position:fixed; z-index:15; display:flex; align-items:center; gap:12px; box-sizing:border-box; min-height:62px; padding:10px 16px; border:1px solid #cddde4; border-top:0; border-radius:0 0 12px 12px; background:#fff; box-shadow:0 5px 16px #17384b20; color:#254d58; }
.profile-sticky-identity .avatar { width:40px; height:40px; flex:0 0 40px; object-fit:cover; }
.profile-sticky-identity strong { min-width:0; font-size:.96rem; line-height:1.35; overflow-wrap:anywhere; }
.profile-sticky-copy { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; min-width:0; }
.profile-sticky-kind { display:inline-flex; align-items:center; gap:5px; padding:4px 9px; border-radius:999px; background:#d8f4e8; color:#175242; font-size:.72rem; font-weight:750; white-space:nowrap; }
.profile-sticky-kind .inline-icon { width:14px; height:14px; }
.profile-sticky-identity[data-person-kind="leader"] .profile-sticky-kind { background:#e3e7ff; color:#33488a; }
.person-profile .page-header-actions { display:flex; flex-wrap:wrap; gap:10px; }
.profile-hero { display:flex; align-items:center; gap:28px; padding:32px; border-radius:24px; background:radial-gradient(ellipse at top right,#387c8e70,transparent 65%),linear-gradient(120deg,#133f42,#183b60); color:#fff; box-shadow:0 10px 28px #183e5020; }
.profile-hero[data-person-kind="leader"] { background:radial-gradient(ellipse at top right,#6864af70,transparent 65%),linear-gradient(120deg,#163e5d,#34416c); }
.profile-portrait { padding:6px; border:1px solid #ffffff50; border-radius:50%; background:#ffffff20; flex-shrink:0; }
.profile-portrait .avatar { display:grid; place-items:center; width:132px; height:132px; border-radius:50%; background:#e6f5ee; color:#215d51; font-size:2.5rem; object-fit:cover; }
.profile-identity { flex:1; min-width:0; }
.profile-identity h2 { margin:12px 0 8px; font-size:clamp(1.7rem,3.5vw,2.6rem); line-height:1.2; color:#fff; overflow-wrap:anywhere; }
.profile-identity>p { margin:0; color:#d8e9ec; font-size:.95rem; }
.profile-kind-badge { display:inline-flex; align-items:center; gap:7px; padding:6px 12px; border-radius:999px; background:#d8f4e8; color:#175242; font-size:.8rem; font-weight:750; }
[data-person-kind="leader"] .profile-kind-badge { background:#e3e7ff; color:#33488a; }
.profile-person-status { align-self:flex-start; display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; background:#ffffff18; border:1px solid #ffffff40; font-size:.75rem; }
.profile-group-chips { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.profile-group-chips>span { display:inline-flex; align-items:center; gap:7px; padding:5px 10px; border-radius:10px; background:#ffffffed; color:#243b50; border-bottom:3px solid var(--profile-group-color); font-size:.76rem; font-weight:650; }
.profile-group-chips img { width:28px; height:28px; object-fit:contain; }
.profile-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.profile-summary>article { display:grid; grid-template-columns:36px 1fr auto; align-items:center; gap:12px; padding:20px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.profile-summary>article>.inline-icon { color:#2a7c69; }
.profile-summary span { color:var(--muted); font-size:.8rem; }
.profile-summary strong { font-size:1.6rem; color:#254d58; }
.person-profile-section { min-width:0; border:1px solid var(--line); border-radius:18px; background:#fff; overflow:hidden; box-shadow:0 3px 14px #193a5408; }
.person-profile-section>header { display:flex; align-items:center; gap:12px; padding:18px 22px; border-bottom:1px solid var(--line); background:#f3f8fa; }
.person-profile-section>header>span { display:grid; place-items:center; width:36px; height:36px; border-radius:11px; background:#e0eee9; color:#27775e; }
.person-profile-section>header>h2 { margin:0; font-size:1.08rem; }
.person-profile-section-body { padding:22px; min-width:0; }
.profile-data-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px 24px; margin:0; }
.profile-data-grid>div { display:grid; grid-template-columns:22px 1fr; gap:5px 9px; min-width:0; }
.profile-data-grid>div>.inline-icon { grid-row:span 2; color:#6d8993; width:18px; height:18px; }
.profile-data-grid dt { font-size:.73rem; color:var(--muted); }
.profile-data-grid dd { margin:0; color:#263f54; font-size:.9rem; overflow-wrap:anywhere; line-height:1.55; }
.profile-data-grid dd a { display:inline-flex; align-items:center; gap:5px; color:#256856; }
.profile-position-timeline { display:grid; gap:14px; margin:0; padding:0; list-style:none; }
.profile-position-timeline>li { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:16px; align-items:start; padding:18px; border:1px solid #e0e7ef; border-radius:14px; background:#fafcfe; }
.profile-position-art { display:grid; place-items:center; width:50px; height:50px; padding:5px; border-radius:12px; background:#e9f1fa; color:#315f97; }
.profile-position-art img { width:100%; height:100%; object-fit:contain; }
.profile-position-timeline h3 { margin:0 0 7px; font-size:.94rem; }
.profile-position-timeline p { display:flex; align-items:center; gap:7px; margin:0 0 8px; color:#58747a; font-size:.82rem; }
.profile-position-timeline p img { width:24px; height:24px; object-fit:contain; }
.profile-position-timeline small { color:var(--muted); font-size:.75rem; }
.profile-family-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.profile-family-card { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fbfcfe; }
.profile-family-card h3 { margin:0 0 12px; color:#617883; font-size:.8rem; }
.profile-family-card>strong { display:block; margin-bottom:16px; }
.profile-family-card .profile-data-grid { grid-template-columns:1fr; gap:12px; }
.profile-award-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-bottom:20px; }
.profile-award-toolbar>label { min-width:190px; }
.profile-view-switch { display:flex; flex-wrap:wrap; gap:6px; padding:6px; border:1px solid #dce6ec; border-radius:12px; background:#f2f6f9; }
.profile-view-switch .button { background:transparent; border-color:transparent; }
.profile-view-switch .button[aria-pressed="true"] { background:#256c60; border-color:#256c60; color:#fff; box-shadow:0 2px 6px #1d50421c; }
.profile-date-filters { margin-bottom:12px; }
.profile-award-day { margin-top:26px; }
.profile-award-day>h3 { display:flex; align-items:center; gap:10px; margin:0 0 16px; padding-bottom:12px; border-bottom:1px solid var(--line); font-size:.95rem; color:#315c6b; }
.profile-award-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.profile-award-card { min-width:0; padding:20px; border:1px solid #dbe4ed; border-radius:16px; background:#fbfdff; transition:box-shadow .18s; }
.profile-award-card:hover { box-shadow:0 6px 20px #17354a10; }
.profile-award-card>header { display:flex; align-items:center; gap:16px; }
.profile-award-art,.profile-award-card>header>.inline-icon { width:64px; height:64px; object-fit:contain; flex-shrink:0; }
.profile-award-card>header>.leadership-badge { flex-shrink:0; }
.profile-award-card h4 { margin:0 0 10px; font-size:.94rem; line-height:1.5; }
.profile-award-card>header>div>span { display:inline-flex; align-items:center; gap:7px; font-size:.76rem; color:#607e88; }
.profile-award-card>header>div>span img { width:26px; height:26px; object-fit:contain; }
.profile-award-path { margin:16px 0 0; color:#607884; font-size:.76rem; line-height:1.6; }
.profile-additional-requirements { display:flex; justify-content:flex-end; margin:16px 0 0; }
.profile-award-card>details { margin-top:16px; padding:12px; border:1px solid #e0e8ef; border-radius:10px; background:#fff; }
.profile-award-card>details>summary { cursor:pointer; font-size:.8rem; font-weight:650; }
.profile-award-card>details>summary .inline-icon { width:16px; height:16px; vertical-align:middle; margin:0 5px; }
.profile-award-card .requirements-list { padding-inline-start:22px; font-size:.82rem; line-height:1.7; margin:14px 0 0; }
.profile-award-instructor { display:grid; gap:8px; margin-top:16px; padding-top:14px; border-top:1px solid #e1e9ee; }
.profile-award-instructor>small { color:var(--muted); font-size:.72rem; }
.profile-award-instructor>span { display:flex; align-items:center; gap:8px; font-size:.82rem; }
.profile-award-instructor .avatar { width:30px; height:30px; flex-basis:30px; }
.profile-training-heading { display:flex; align-items:center; gap:10px; margin-top:30px; }
.award-history-personal-records { display:grid; gap:10px; margin:0; padding:0; list-style:none; width:100%; }
.award-history-personal-record { min-width:0; padding:12px 14px; border:1px solid #dfe7ec; border-radius:10px; background:#fff; }
.award-history-personal-date { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.78rem; }
.award-history-personal-date .inline-icon { width:15px; height:15px; }
.award-history-personal-record .profile-award-instructor { margin-top:10px; padding-top:10px; }
.award-history-personal-record .training-history-instructor { display:grid; gap:8px; margin-top:10px; }
.award-history-personal-dates { margin:0; padding:0; list-style:none; }
@media(max-width:900px) { .profile-data-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .profile-summary>article { grid-template-columns:28px 1fr; gap:8px; padding:16px; } .profile-summary strong { grid-column:2; } .profile-family-grid { grid-template-columns:1fr; } }
@media(max-width:600px) { .profile-hero { flex-wrap:wrap; gap:18px; padding:24px; } .profile-portrait .avatar { width:100px; height:100px; } .profile-person-status { margin-inline-start:auto; } .profile-identity { flex:1 1 180px; } .profile-summary { gap:8px; } .profile-summary>article { display:flex; flex-direction:column; text-align:center; padding:12px 7px; } .profile-summary span { font-size:.7rem; } .profile-summary strong { font-size:1.4rem; } .profile-data-grid,.profile-award-gallery { grid-template-columns:1fr; } .person-profile-section-body { padding:14px; } .person-profile-section>header { padding:14px; } .profile-position-timeline>li { grid-template-columns:42px minmax(0,1fr); gap:12px; padding:14px; } .profile-position-art { width:40px; height:40px; } .profile-position-timeline>li>.badge { grid-column:2; justify-self:start; } .profile-award-toolbar>label { flex:1; min-width:0; } .profile-view-switch { width:100%; } .profile-view-switch .button { flex:1; } }
@media(prefers-reduced-motion:reduce) { .profile-award-card { transition:none; } }

.profile-guardian-relationship::first-letter { text-transform:uppercase; }

.profile-derived-badge { display:inline-flex; align-items:center; gap:6px; margin-bottom:16px; padding:5px 10px; border:1px solid #b9dcca; border-radius:999px; background:#e8f7ed; color:#226348; font-size:.71rem; font-weight:700; }
.profile-derived-badge .inline-icon { width:14px; height:14px; }
.profile-award-card[data-profile-derived] { background:linear-gradient(135deg,#f5fbf8,#f9fcff); border-color:#c0d9cd; }
.profile-derived-art { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:3px; width:76px; flex:0 0 76px; }
.profile-derived-art .profile-award-art { width:64px; height:64px; }
.profile-derived-art:has(img:nth-child(2)) .profile-award-art { width:34px; height:44px; }

.profile-derived-date { display:block; margin-top:5px; color:#607d78; font-size:.75rem; font-weight:500; }

.profile-account-actions { display:flex; justify-content:flex-end; margin-top:18px; }
.profile-award-recipients { margin-top:16px; padding-top:14px; border-top:1px solid #e1e9ee; }
.profile-award-recipients>small { display:block; margin-bottom:8px; color:var(--muted); }
.profile-award-recipients .profile-award-gallery { gap:8px; }
.profile-taught-person { display:flex; align-items:center; gap:8px; min-width:0; padding:8px; border:1px solid #dce6ec; border-radius:10px; overflow-wrap:anywhere; font-size:.82rem; }
.profile-taught-person .avatar { flex:0 0 30px; width:30px; height:30px; }
.profile-award-day>h3 img { width:28px; height:28px; object-fit:contain; }


.profile-molh>header .profile-molh-medal { width:48px; height:56px; object-fit:contain; flex-shrink:0; }
.profile-molh .molh-detail-person { display:none; }
.profile-molh .molh-detail-sections { min-width:0; }
.profile-molh .molh-race-waiting * { animation-play-state:paused !important; }
.profile-molh .molh-overall { margin-top:0; }

.profile-molh-requirements { border:1px solid #e5d7b8; border-radius:12px; background:#fffcf5; }
.profile-molh-requirements>summary { display:flex; align-items:center; gap:10px; padding:15px 18px; cursor:pointer; color:#805c1b; font-weight:700; list-style:none; }
.profile-molh-requirements>summary::-webkit-details-marker { display:none; }
.profile-molh-requirements>summary::after { content:''; width:8px; height:8px; margin-left:auto; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); }
.profile-molh-requirements[open]>summary::after { transform:rotate(225deg); }
.profile-molh-requirements>.molh-detail-sections { padding:0 16px 16px; }
.simulation-banner { grid-column:1/-1; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border:1px solid #e3b55e; border-radius:12px; background:#fff6df; color:#694710; font-size:.82rem; }
.simulation-banner>span { display:flex; align-items:center; flex-wrap:wrap; gap:7px; min-width:0; overflow-wrap:anywhere; }
.simulation-banner .inline-icon { width:18px; height:18px; }
.simulation-banner .button { color:#694710; border-color:#d4ac66; background:#fff; }
.simulation-banner>p { flex-basis:100%; margin:0; color:var(--danger); }
.simulation-picker { display:grid; gap:16px; }
.simulation-picker>p { margin:0; line-height:1.6; color:var(--muted); }
.simulation-picker .form-grid { margin:0; }
.simulation-picker [data-simulation-preview] { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--line); border-radius:12px; background:#f3f8f7; }
.simulation-picker [data-simulation-preview]:empty { display:none; }
.simulation-picker [data-simulation-preview]>.avatar { flex:0 0 54px; width:54px; height:54px; }
.simulation-picker [data-simulation-preview] p { display:flex; align-items:center; gap:8px; margin:8px 0 0; }
@media(max-width:600px) { .simulation-picker .form-grid { grid-template-columns:minmax(0,1fr); } .simulation-banner>.button { width:100%; } }
/* Shared interaction states: consistent validation, keyboard focus and touch targets. */
[aria-invalid="true"] { border-color:var(--danger) !important; }
@media(pointer:coarse) {
    .button:not(.compact),.icon-button { min-height:44px; }
    .icon-button { min-width:44px; }
}
@media(prefers-reduced-motion:reduce) {
    .button,.sidebar,.ranger-leader-card,.leader-card,.catalog-card { transition:none; }
    html { scroll-behavior:auto; }
}

.dashboard-people-stats .stat-symbol .inline-icon { width:30px; height:30px; display:block; }
.recovery-link{display:block;text-align:center;color:var(--primary,#196552);font-weight:600;padding:10px 4px;text-underline-offset:4px}
.recovery-link:hover{color:#123e34;text-decoration:underline}
.recovery-link:focus-visible{outline:3px solid #a0d6c2;outline-offset:3px;border-radius:8px}
.recovery-notice{background:#eaf8f1;color:#17543d;border:1px solid #b4dfc8;border-left:4px solid #279267;border-radius:12px;padding:16px;line-height:1.6}
.recovery-policy{background:#f0f5fb;color:#34536d;border-radius:12px;padding:14px;line-height:1.6;font-size:.9rem}
.password-input{position:relative;display:block;width:100%}
.password-input input{width:100%;padding-right:3.25rem}
.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:9px;background:transparent;color:#58746c;cursor:pointer}
.password-toggle:hover{color:#17543d;background:#eaf8f1}
.password-toggle:focus-visible{outline:3px solid #7ecab0;outline-offset:1px}
.password-toggle .visibility-slash{display:none}
.password-toggle[aria-pressed=true] .visibility-slash{display:block}
.password-rules{list-style:none;margin:0;padding:14px 16px;border:1px solid #dfe9e5;background:#f7faf9;border-radius:12px;display:grid;gap:10px;color:#62736e;font-size:.9rem}
.password-rules li{display:flex;align-items:center;gap:9px}
.password-rules .rule-indicator{display:inline-grid;place-items:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#e8eeeb;font-weight:700}
.password-rules .is-met{color:#17653e}
.password-rules .is-met .rule-indicator{background:#d4efdf;color:#146c40}
.password-progress{font-size:.85rem;color:#58746c;margin:0;min-height:1.4em}
.legal-page { background:#f1f5f3; color:var(--ink); }
.legal-site-header { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:18px; padding:20px max(24px,calc((100vw - 1120px)/2)); background:white; border-bottom:1px solid var(--line); }
.legal-brand { color:var(--green); font-size:1.5rem; text-decoration:none; white-space:nowrap; }
.legal-site-header>div { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.legal-site-header label { display:flex; align-items:center; gap:8px; margin:0; }
.legal-site-header select { width:auto; }
.legal-layout { max-width:1120px; margin:32px auto; padding:0 24px; }
.legal-introduction { padding:30px; border:1px solid #cbded4; border-radius:18px; background:linear-gradient(130deg,#fff,#eaf4ef); }
.legal-introduction h1 { font-size:clamp(1.6rem,3vw,2.3rem); line-height:1.2; margin:8px 0 18px; }
.legal-introduction>p { max-width:85ch; line-height:1.75; }
.legal-metadata { display:flex; flex-wrap:wrap; align-items:center; gap:12px 20px; margin-top:20px; color:var(--muted); font-size:.85rem; }
.legal-metadata .badge { background:#d9eee3; color:#225d42; }
.legal-required { margin:22px 0 0; padding:14px 16px; border-left:4px solid #c08b2a; background:#fff8e8; color:#6d501a; }
.legal-tools { display:flex; justify-content:space-between; align-items:end; flex-wrap:wrap; gap:16px; margin:22px 0; }
.legal-tools label { margin:0; }
.legal-index { padding:16px 22px; margin:22px 0; border:1px solid var(--line); border-radius:12px; background:white; }
.legal-index>summary { cursor:pointer; font-weight:700; }
.legal-index nav { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 24px; padding-top:18px; }
.legal-index a { color:#28634c; font-size:.85rem; }
.legal-document { padding:10px 36px 30px; background:white; border:1px solid var(--line); border-radius:18px; }
.legal-document section { padding:24px 0; border-bottom:1px solid #e7eeea; scroll-margin-top:20px; }
.legal-document section:last-child { border:0; padding-bottom:0; }
.legal-document h2 { margin:0 0 16px; color:#215641; font-size:1.2rem; line-height:1.45; }
.legal-document p { line-height:1.85; margin:12px 0; overflow-wrap:anywhere; }
.legal-consent { margin:24px 0; padding:26px; background:#fffdf6; border:2px solid #d8bd7d; border-radius:16px; }
.legal-consent-label { display:flex; align-items:flex-start; gap:14px; line-height:1.7; font-weight:600; }
.legal-consent-label input { width:22px; height:22px; flex:0 0 22px; margin-top:4px; accent-color:var(--green); }
.legal-consent>.muted { font-size:.83rem; line-height:1.6; }
.legal-consent-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:20px; }
.legal-footer { text-align:center; padding:18px; font-size:.8rem; color:var(--muted); line-height:1.7; }
.legal-login-notice { margin:22px 0 0; text-align:center; font-size:.82rem; line-height:1.6; }
.legal-login-notice a,.legal-footer a { color:#28634c; }
@media(max-width:600px){ .legal-layout { padding:0 14px; margin-top:18px; } .legal-site-header { padding:16px; } .legal-introduction,.legal-consent { padding:20px; } .legal-document { padding:0 20px 20px; } .legal-index nav { grid-template-columns:1fr; } .legal-consent-actions { flex-direction:column-reverse; } .legal-consent-actions button { width:100%; } }
@media print{ .legal-page { background:white; } .legal-layout { max-width:none; margin:0; padding:0; } .legal-site-header,.legal-tools,.legal-index,.legal-consent,.legal-required,.legal-footer { display:none !important; } .legal-introduction,.legal-document { background:white; border:0; padding:0; } .legal-document section { break-inside:avoid; } .legal-document p { font-size:10pt; line-height:1.5; } }

.legal-inline { min-width:0; }
@media print {
  body:has(.legal-inline) :is(#sidebar,.topbar,.page-footer,#menu-backdrop,.skip-link) { display:none !important; }
  body:has(.legal-inline) .workspace { margin:0; width:100%; }
  body:has(.legal-inline) #main { padding:0; max-width:none; }
}
#hairo-guides { display:flex; align-items:center; gap:14px; width:100%; padding:12px 14px; border:0; border-radius:8px; background:transparent; color:#b9cccb; text-align:left; font:inherit; font-size:.85rem; font-weight:500; cursor:pointer; }
#hairo-guides:hover { background:rgb(255 255 255 / 10%); }
#hairo-root { --hairo-blue:#1855a0; --hairo-accent:#eebf45; }
#hairo-root button,.hairo-tour button { cursor:pointer; font:inherit; }
#hairo-root button:disabled,.hairo-tour button:disabled { cursor:default; opacity:.5; }
.hairo-float { position:fixed; bottom:26px; right:22px; z-index:70; display:flex; align-items:center; gap:8px; max-width:calc(100vw - 32px); }
.hairo-float>button { border:0; background:transparent; padding:0; }
.hairo-float>.hairo-bubble { max-width:210px; padding:14px 16px; background:#fff; color:#183f6c; border:1px solid #cad9ee; box-shadow:0 6px 24px #173c6026; border-radius:18px 18px 18px 3px; text-align:left; font-weight:650; }
.hairo-float>[data-hairo=hide] { align-self:flex-start; border-radius:50%; background:white; color:#334155; width:26px; height:26px; box-shadow:0 2px 9px #0002; }
.hairo-mascot { --hairo-height:92px; display:inline-block; position:relative; flex-shrink:0; width:78px; height:var(--hairo-height); animation:hairo-bob 3s ease-in-out infinite; }
.hairo-mascot>img { display:block; width:100%; height:100%; object-fit:contain; }
.hairo-mascot>span { display:none; position:absolute; top:0; left:50%; width:calc(var(--hairo-height) * var(--hairo-ratio,.8)); height:100%; transform:translateX(-50%); background-image:url('../images/hairo/hairo-ranger-animation.webp'); background-size:400% 200%; background-repeat:no-repeat; clip-path:inset(3% 4%); }
.hairo-mascot.has-frames.is-speaking>img { visibility:hidden; }
.hairo-mascot.has-frames.is-speaking>span { display:block; animation:hairo-mouth .8s steps(1,end) infinite; }
.hairo-mascot.has-frames.is-greeting>img { visibility:hidden; }
.hairo-mascot.has-frames.is-greeting>span { display:block; animation:hairo-wave 1.2s steps(1,end); }
.hairo-chat { position:fixed; z-index:90; bottom:18px; right:18px; width:420px; height:min(680px,calc(100dvh - 100px)); display:flex; flex-direction:column; overflow:hidden; background:#fff; color:#24354c; border:1px solid #c7d7ea; box-shadow:0 16px 64px #173c6040; border-radius:22px; }
.hairo-chat>header { display:flex; align-items:center; gap:8px; padding:12px; background:linear-gradient(130deg,#143c72,#2467b3); color:#fff; flex-shrink:0; }
.hairo-chat>header .hairo-mascot { --hairo-height:58px; width:45px; }
.hairo-chat>header>div { flex:1; min-width:0; }
.hairo-chat h2 { font-size:20px; margin:0; color:inherit; }
.hairo-chat>header button { border:0; border-radius:8px; color:inherit; background:#ffffff18; display:grid; place-items:center; width:34px; height:36px; flex-shrink:0; }
.hairo-messages { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; padding:14px; display:flex; flex-direction:column; gap:12px; }
.hairo-message { max-width:100%; border-radius:14px; padding:12px; border:1px solid #dfe7f2; background:#f4f8fd; overflow-wrap:anywhere; }
.hairo-message>strong { color:#1855a0; font-size:12px; }
.hairo-message.is-user { align-self:flex-end; background:#e7f1ff; max-width:90%; }
.hairo-message p { margin:6px 0; line-height:1.5; }
.hairo-message h3 { font-size:15px; margin:10px 0; }
.hairo-message ol { margin:8px 0; padding-left:24px; }
.hairo-message li { margin-bottom:10px; line-height:1.55; }
.hairo-message li::marker { color:#1855a0; font-weight:700; }
.hairo-choices { display:grid; gap:7px; margin-top:10px; }
.hairo-choices button { display:flex; align-items:center; gap:10px; background:#fff; border:1px solid #cad9ee; color:#194a83; border-radius:10px; padding:10px; text-align:left; }
.hairo-choices button span:first-of-type { flex:1; }
.hairo-choices button:hover { border-color:#1855a0; background:#edf5ff; box-shadow:0 2px 8px #1855a018; }
.hairo-choices b { border-radius:50%; display:grid; place-items:center; background:#e4eefb; width:24px; height:24px; flex-shrink:0; }
.hairo-answer-actions { display:flex; flex-wrap:wrap; gap:6px; }
.hairo-answer-actions button,.hairo-tour footer button { border:1px solid #bdd0ea; background:white; color:#1855a0; border-radius:8px; padding:8px 10px; display:flex; gap:5px; align-items:center; }
.hairo-answer-actions button:first-child,.hairo-tour [data-hairo=next-tour] { background:#1855a0; color:white; }
.hairo-composer { padding:12px; border-top:1px solid #dce6f2; background:#fff; }
.hairo-composer>label { display:block; font-size:13px; font-weight:650; margin-bottom:5px; }
.hairo-composer>div { display:flex; gap:6px; align-items:stretch; }
.hairo-composer textarea { flex:1; width:0; min-width:0; resize:none; min-height:54px; max-height:100px; border:1px solid #b6c9e2; border-radius:10px; padding:8px; font:inherit; }
.hairo-composer button { width:38px; display:grid; place-items:center; border:0; border-radius:10px; color:#fff; background:#1855a0; }
.hairo-composer [data-hairo=dictate][aria-pressed=true] { background:#b73535; box-shadow:0 0 0 3px #b7353526; }
.hairo-composer>small { display:block; color:#617086; font-size:11px; line-height:1.4; margin-top:8px; }
.hairo-status,.hairo-voice-status { font-size:12px; color:#925000; margin:6px 0 0; }
.hairo-status:empty,.hairo-voice-status:empty { display:none; }
.hairo-catalog { width:min(800px,calc(100vw - 24px)); max-height:min(90dvh,850px); overflow:hidden; border:1px solid #c9d8e7; }
.hairo-catalog[open] { display:flex; flex-direction:column; }
.hairo-catalog-header { flex:0 0 auto; align-items:center; gap:18px; padding:20px 24px 16px; background:linear-gradient(125deg,#edf5fc,#fff 75%); }
.hairo-catalog-header .hairo-mascot { --hairo-height:100px; width:84px; filter:drop-shadow(0 3px 3px #1232); }
.hairo-catalog-header>div { flex:1; min-width:0; }
.hairo-catalog-header>div>small { color:#4f728c; font-size:.72rem; letter-spacing:.05em; }
.hairo-catalog-header h2 { color:#1b4261; font-size:1.3rem; margin:4px 0 8px; }
.hairo-catalog-header p { color:#587183; font-size:.86rem; line-height:1.5; margin:0; }
.hairo-catalog [data-hairo=close-catalog] { align-self:flex-start; flex-shrink:0; width:32px; height:32px; border:0; border-radius:8px; background:#e6edf4; color:#4c6579; font-size:24px; line-height:1; }
.hairo-catalog [data-hairo=close-catalog]:hover { background:#dbe6f1; color:#183e5e; }
.hairo-catalog-tools { flex:0 0 auto; display:grid; grid-template-columns:minmax(0,1fr) 225px; gap:10px 16px; padding:16px 24px 12px; border-bottom:1px solid #e1e9f2; background:white; }
.hairo-catalog-tools label { display:grid; gap:6px; min-width:0; }
.hairo-catalog-tools label>span { display:flex; align-items:center; gap:6px; color:#466176; font-size:.78rem; font-weight:650; }
.hairo-catalog-tools input,.hairo-catalog-tools select { width:100%; min-width:0; font-size:.85rem; height:42px; border:1px solid #cbd9e6; border-radius:9px; padding:9px 11px; background:#f9fbfe; color:#24354c; }
.hairo-catalog-count { grid-column:1/-1; margin:0; color:#6a8194; font-size:.74rem; }
.hairo-catalog .modal-content { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; padding:18px 24px 22px; background:#fbfcfe; }
.hairo-catalog-results { display:grid; gap:22px; }
.hairo-catalog-category { min-width:0; }
.hairo-catalog-category>h3 { display:flex; align-items:center; gap:8px; padding:9px 11px; margin:0 0 10px; color:var(--hairo-category-color); border-left:3px solid var(--hairo-category-color); border-radius:6px; background:color-mix(in srgb,var(--hairo-category-color) 8%,white); font-size:.9rem; }
.hairo-catalog-category>h3 .badge { margin-left:auto; color:inherit; background:#fff9; }
.hairo-catalog-tasks { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.hairo-catalog-tasks button { display:flex; align-items:center; gap:10px; min-width:0; width:100%; padding:12px; border:1px solid #dce5ee; border-left:3px solid var(--hairo-category-color); border-radius:9px; background:white; color:#2e4c63; text-align:left; transition:background .15s,border-color .15s,box-shadow .15s; }
.hairo-catalog-tasks button:hover { border-color:var(--hairo-category-color); background:color-mix(in srgb,var(--hairo-category-color) 5%,white); box-shadow:0 3px 10px #274d7010; }
.hairo-catalog-tasks button>svg { flex:none; color:var(--hairo-category-color); }
.hairo-catalog-tasks button>span:first-of-type { flex:1; min-width:0; }
.hairo-catalog-tasks strong,.hairo-catalog-tasks small { display:block; overflow-wrap:anywhere; }
.hairo-catalog-tasks strong { font-size:.84rem; line-height:1.4; }
.hairo-catalog-tasks small { margin-top:5px; color:#6b7f90; font-size:.74rem; line-height:1.45; }
.hairo-catalog-empty { display:flex; align-items:center; justify-content:center; gap:12px; margin:12px 0; padding:32px 16px; color:#6b7f90; border:1px dashed #ccdbe9; border-radius:10px; line-height:1.6; }
.hairo-catalog-footer { flex:0 0 auto; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding:16px 24px; border-top:1px solid #dde7f0; background:#f2f7fc; }
.hairo-catalog-footer>.button { font-size:.8rem; display:flex; align-items:center; gap:7px; }
.hairo-toggle { position:relative; display:flex; flex-direction:row; align-items:center; gap:14px; cursor:pointer; min-height:44px; padding-right:2px; }
.hairo-toggle>span { display:block; max-width:290px; }
.hairo-toggle strong { display:block; font-size:.83rem; color:#315575; }
.hairo-toggle small { display:block; margin-top:3px; font-size:.71rem; color:#667f95; line-height:1.4; }
.hairo-toggle input { position:absolute; right:2px; top:50%; transform:translateY(-50%); width:44px; height:26px; margin:0; opacity:0; cursor:pointer; }
.hairo-toggle i { position:relative; display:block; flex:none; width:44px; height:26px; border-radius:99px; background:#b9c9d7; pointer-events:none; transition:background .18s; }
.hairo-toggle i::after { content:''; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:white; box-shadow:0 1px 4px #2444; transition:transform .18s; }
.hairo-toggle input:checked+i { background:#25785f; }
.hairo-toggle input:checked+i::after { transform:translateX(18px); }
.hairo-toggle input:focus-visible+i { outline:3px solid #1855a0; outline-offset:3px; }
.hairo-catalog :focus-visible { outline:2px solid #1855a0; outline-offset:3px; }
.hairo-tour { position:fixed; z-index:220; bottom:18px; right:18px; width:min(370px,calc(100vw - 32px)); max-height:calc(100dvh - 36px); overflow:auto; overscroll-behavior:contain; padding:16px; background:#fff; color:#24354c; border:2px solid #ddb33e; border-radius:16px; box-shadow:0 10px 40px #173c6038; text-align:left; font-size:14px; }
.hairo-tour header { display:flex; gap:10px; align-items:center; justify-content:space-between; color:#1855a0; }
.hairo-tour header>.hairo-mascot { --hairo-height:84px; width:68px; filter:drop-shadow(0 2px 2px #1232); }
.hairo-tour header>div { flex:1; min-width:0; }
.hairo-tour header strong { display:block; font-size:.95rem; line-height:1.35; overflow-wrap:anywhere; }
.hairo-tour header>div>small { margin:0 0 4px; color:#537391; font-size:.72rem; }
.hairo-tour header button { align-self:flex-start; flex-shrink:0; min-width:30px; min-height:30px; border:0; background:transparent; font-size:22px; }
.hairo-tour p { margin:12px 0; line-height:1.6; }
.hairo-tour small { display:block; color:#667488; margin-top:6px; }
.hairo-tour footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:6px; margin-top:12px; }
.hairo-tour-voice-controls { display:flex; align-items:center; gap:6px; margin-right:auto; }
.hairo-tour-voice-controls button { width:36px; min-height:36px; justify-content:center; padding:7px; }
.hairo-tour [data-hairo=tour-voice][aria-pressed=false] { color:#657778; background:#f0f3f4; }
.hairo-tour [data-tour-voice-note] { flex-basis:100%; margin:2px 0 0; font-size:.75rem; }
.hairo-highlight { position:fixed; border:3px solid #e3b12e; border-radius:10px; box-shadow:0 0 0 5px #e3b12e24; pointer-events:none; z-index:210; }
.hairo-shade { position:fixed; background:rgb(10 23 35 / 68%); pointer-events:none; z-index:200; }
.hairo-questions h1 { display:flex; align-items:center; gap:10px; }
.hairo-questions textarea { width:100%; min-height:300px; resize:vertical; padding:14px; margin:8px 0 16px; line-height:1.7; }
#hairo-root [hidden],.hairo-tour[hidden],.hairo-highlight[hidden],.hairo-shade[hidden],[data-hairo-admin][hidden] { display:none !important; }
@keyframes hairo-bob { 0%,100% { transform:translateY(0) rotate(-2deg); } 50% { transform:translateY(-4px) rotate(2deg); } }
@keyframes hairo-mouth { 0%,100% { background-position:0 100%; } 25% { background-position:33.333333% 100%; } 50% { background-position:66.666667% 100%; } 75% { background-position:100% 100%; } }
@keyframes hairo-wave { 0%,100% { background-position:0 0; } 25% { background-position:33.333333% 0; } 50% { background-position:66.666667% 0; } 75% { background-position:100% 0; } }
@media(max-width:600px) { .hairo-chat { inset:auto 8px 8px; width:auto; max-height:calc(100dvh - 24px); height:min(680px,calc(100dvh - 24px)); border-radius:16px; } .hairo-float { bottom:14px; right:14px; } .hairo-float>.hairo-bubble { max-width:180px; } .hairo-tour { bottom:10px; right:10px; padding:12px; }
  .hairo-catalog { max-height:calc(100dvh - 24px); }
  .hairo-catalog-header { gap:10px; padding:14px; }
  .hairo-catalog-header .hairo-mascot { --hairo-height:78px; width:62px; }
  .hairo-catalog-header h2 { font-size:1.05rem; margin:3px 0 5px; }
  .hairo-catalog-header p { font-size:.76rem; }
  .hairo-catalog-tools { grid-template-columns:minmax(0,1fr); padding:12px 14px 10px; gap:9px; }
  .hairo-catalog .modal-content { padding:14px; }
  .hairo-catalog-tasks { grid-template-columns:minmax(0,1fr); }
  .hairo-catalog-footer { padding:12px 14px; gap:10px; }
  .hairo-toggle { flex:1 1 100%; width:100%; min-width:0; }
  .hairo-toggle>span { flex:1; min-width:0; max-width:none; }
  .hairo-toggle i { margin-left:auto; }
  .hairo-catalog-footer>.button { margin-left:auto; }
}
@media(prefers-reduced-motion:reduce) { .hairo-mascot,.hairo-mascot.has-frames.is-speaking>span,.hairo-mascot.has-frames.is-greeting>span { animation:none; } .hairo-mascot.has-frames.is-speaking>span,.hairo-mascot.has-frames.is-greeting>span { display:none; } .hairo-mascot.has-frames.is-speaking>img,.hairo-mascot.has-frames.is-greeting>img { visibility:visible; } .hairo-toggle i,.hairo-toggle i::after,.hairo-catalog-tasks button { transition:none; } }
@media print { #hairo-root,.hairo-tour,.hairo-highlight,.hairo-shade { display:none !important; } }
