:root {
    --ink: #212529;
    --parchment: #8B96A2;
    --body-color: #222222;
    --text-light: #e8dfd2;
    --parchment-dark: #647080;
    --sepia: #4a5568;
    --sepia-light: #6b7f90;
    --sepia-pale: #8e9fad;
    --red-wax: #8b2020;
    --leaf: #2d4a1e;
    --leaf-light: #4a7a34;
    --gold: #c49a22;
    --panel-w: 380px;
    --summary-w: 360px;
    --nav-h: 44px;
    --header-h: 62px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Crimson Pro', Georgia, serif;
    background: var(--parchment);
    color: var(--body-color);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}
header {
    position: relative; z-index: 10;
    background: var(--ink);
    padding: 10px 28px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 3px 20px rgba(0,0,0,0.4);
    flex-shrink: 0;
    height: var(--header-h);
}
header h1 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--gold); letter-spacing: 0.04em; }
header h1 span { color: var(--text-light); font-style: italic; }
.header-left { display: flex; flex-direction: column; gap: 2px; }
.header-subtitle { font-size: 0.75rem; color: var(--sepia-pale); letter-spacing: 0.12em; text-transform: uppercase; }
.country-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(196,154,34,0.12); border: 1px solid rgba(196,154,34,0.4);
    padding: 3px 10px; font-size: 0.75rem; color: var(--sepia-pale);
    letter-spacing: 0.06em; text-transform: uppercase; cursor: help;
    position: relative;
}
.country-badge strong { color: var(--gold); font-weight: 600; }
.country-badge .tooltip {
    display: none; position: absolute; top: calc(100% + 8px); left: 50%;
    transform: translateX(-50%);
    background: var(--ink); border: 1px solid var(--gold);
    padding: 8px 12px; font-size: 0.75rem; color: var(--text-light);
    width: 220px; text-align: center; line-height: 1.5;
    pointer-events: none; z-index: 500;
    text-transform: none; letter-spacing: 0;
}
.country-badge:hover .tooltip { display: block; }
.header-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.btn {
    font-family: 'Crimson Pro', serif; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.06em; padding: 7px 14px; border: none; cursor: pointer;
    transition: all 0.2s ease; text-transform: uppercase;
}
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--sepia-pale); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; filter: grayscale(0.6); }
.btn-ghost { background: transparent; color: var(--text-light); border: 1px solid var(--sepia); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { background: var(--red-wax); color: #ffd0d0; }
.btn-danger:hover { background: #a03030; transform: translateY(-1px); }
.btn-green { background: #2d6a1e; color: #d4ffb0; border: 1px solid #4a7a34; }
.btn-green:hover { background: #3a8a28; }
.btn-stripe { background: #635bff; color: #fff; border: none; }
.btn-stripe:hover { background: #4f46e5; transform: translateY(-1px); }
.btn-stripe:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.main { position: relative; z-index: 1; display: flex; flex: 1; overflow: hidden; }
.chart-area {
    flex: 1; overflow: auto; padding: 28px 28px 0;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    transition: margin-right 0.35s cubic-bezier(.4,0,.2,1);
}
.chart-area.panel-open { margin-right: var(--panel-w); }
.chart-area.two-panels-open { margin-right: calc(var(--panel-w) + var(--summary-w)); }
#mermaid-container { width:100%; display:flex; justify-content:center; padding-bottom:14px; }
#mermaid-container svg { max-width: 100%; }
#mermaid-container svg [id*="flowchart-node_"] { pointer-events: all; }

.side-panel {
    position: fixed; right: 0; top: var(--nav-h); bottom: 0;
    width: var(--panel-w);
    background: var(--ink);
    border-left: 3px solid var(--gold);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 100;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: -8px 0 40px rgba(0,0,0,0.5);
}
.side-panel.open { transform: translateX(0); }
.side-panel.open ~ #summaryPanel { right: var(--panel-w); }

#summaryPanel {
    position: fixed; right: 0; top: var(--nav-h); bottom: 0;
    width: var(--summary-w);
    background: var(--ink);
    border-left: 3px solid rgba(196,154,34,0.5);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), right 0.35s cubic-bezier(.4,0,.2,1);
    z-index: 99;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: -6px 0 30px rgba(0,0,0,0.4);
}
#summaryPanel.open { transform: translateX(0); }

.sum-member { border-bottom: 1px solid rgba(196,154,34,0.15); padding: 12px 0 10px; }
.sum-member:last-child { border-bottom: none; }
.sum-member-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; color: var(--gold); font-style: italic; margin-bottom: 2px; display: flex; justify-content: space-between; align-items: baseline; }
.sum-member-rel { font-size: 0.68rem; color: var(--sepia-pale); text-transform: uppercase; letter-spacing: 0.08em; }
.sum-record-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 0.8rem; }
.sum-record-name { color: var(--parchment-dark); }
.sum-record-cost { color: var(--gold); font-weight: 600; white-space: nowrap; margin-left: 6px; }
.sum-record-link { font-size: 0.72rem; color: var(--sepia-pale); text-decoration: none; border-bottom: 1px dotted var(--sepia-pale); cursor: pointer;}
.sum-record-link:hover { color: var(--gold); border-color: var(--gold); }
.sum-apostille-block { margin-top: 6px; padding: 6px 8px; background: rgba(196,154,34,0.07); border-left: 2px solid rgba(196,154,34,0.35); font-size: 0.78rem; }
.sum-apostille-row { display: flex; justify-content: space-between; color: var(--text-light); margin-bottom: 2px; }
.sum-apostille-cost { color: var(--gold); font-weight: 600; }
.sum-grand-total { margin: 0 20px 10px; padding: 12px 14px; background: rgba(196,154,34,0.1); border: 1px solid rgba(196,154,34,0.4); flex-shrink: 0; }
.sum-grand-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; font-size: 0.82rem; color: var(--text-light); }
.sum-grand-total-row.total-line { margin-bottom: 0; padding-top: 6px; border-top: 1px solid rgba(196,154,34,0.3); font-size: 1rem; font-weight: 700; color: var(--gold); }
.sum-grand-total-row.asterisk-note { font-size: 0.7rem; color: var(--sepia-pale); font-style: italic; margin-top: 4px; display: block; }
.sum-empty { text-align: center; color: var(--sepia-pale); font-style: italic; font-size: 0.9rem; padding: 24px 0; }

.apostille-purchase-wrap { padding: 10px 20px 16px; border-top: 1px solid rgba(196,154,34,0.2); flex-shrink: 0; }
.apostille-purchase-ad { font-size: 0.72rem; color: var(--sepia-pale); font-style: italic; line-height: 1.5; margin-top: 6px; text-align: center; }

.panel-header { padding: 16px 20px 12px; background: rgba(255,255,255,0.04); border-bottom: 1px solid rgba(196,154,34,0.3); display: flex; justify-content: space-between; align-items: flex-start; flex-shrink: 0; }
.panel-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--gold); font-style: italic; }
.panel-relation { font-size: 0.72rem; color: var(--sepia-pale); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.panel-close { background: none; border: none; color: var(--sepia-pale); font-size: 1.4rem; cursor: pointer; padding: 0 4px; line-height: 1; transition: color 0.15s; }
.panel-close:hover { color: var(--gold); }
.panel-body { flex: 1; overflow-y: auto; padding: 16px 20px; color: var(--text-light); }
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-thumb { background: var(--sepia); border-radius: 2px; }
.panel-footer { padding: 12px 20px; border-top: 1px solid rgba(196,154,34,0.25); display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }

.info-row { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 8px; }
.info-key { font-size: 0.72rem; color: var(--sepia-pale); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; flex-shrink: 0; }
.info-val { font-size: 0.95rem; color: var(--text-light); font-style: italic; text-align: right; }

.records-section { margin-top: 14px; }
.records-title { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.records-title::after { content: ''; flex: 1; height: 1px; background: rgba(196,154,34,0.3); }
.record-summary { background: rgba(255,255,255,0.05); border: 1px solid rgba(196,154,34,0.2); padding: 4px 0; margin-bottom: 8px; }
.record-row { display: flex; justify-content: space-between; align-items: baseline; padding: 5px 12px; gap: 8px; }
.record-row + .record-row { border-top: 1px solid rgba(255,255,255,0.04); }
.record-row-label { font-size: 0.85rem; color: var(--text-light); flex: 1; }
.record-row-label small { font-size: 0.72rem; color: var(--sepia-pale); display: block; margin-top: 1px; font-style: italic; }
.record-row-cost { font-size: 0.85rem; color: var(--gold); font-weight: 600; white-space: nowrap; }
.record-row-missing { font-size: 0.82rem; color: var(--sepia); font-style: italic; padding: 5px 12px; }
.record-link { font-size: 0.75rem; color: var(--sepia-pale); text-decoration: none; border-bottom: 1px dotted var(--sepia-pale); transition: color 0.15s; cursor: pointer; }
.record-link:hover { color: var(--gold); border-color: var(--gold); }
.apostille-section { margin-top: 14px; background: rgba(196,154,34,0.08); border: 1px solid rgba(196,154,34,0.35); padding: 10px 12px; }
.apostille-title { font-size: 0.68rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.apostille-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.apostille-state { font-size: 0.82rem; color: var(--text-light); }
.apostille-cost { font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.apostille-total { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(196,154,34,0.2); display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-light); font-weight: 600; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(196,154,34,0.3), transparent); margin: 12px 0; }
.empty-notice { text-align: center; color: var(--sepia-pale); font-style: italic; font-size: 0.92rem; padding: 14px 0; }
.gold-rule { color: var(--gold); font-size: 1rem; letter-spacing: 0.2em; display: block; margin-bottom: 6px; }
.you-badge { display: inline-block; background: var(--gold); color: var(--ink); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }

.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(5,5,5,0.8); z-index: 200; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.modal-overlay.active { display: flex; }
.modal {
    background: var(--ink); border: 2px solid var(--gold);
    width: 480px; max-width: 96vw;
    height: 50vh; min-height: 50vh; max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 80px rgba(0,0,0,0.7);
    animation: modalIn 0.25s ease;
    color: var(--text-light);
}
.modal.modal-wide { width: 560px; }
#apostilleModal .modal { height: auto; min-height: unset; max-height: 85vh; display: flex; flex-direction: column; }
#apostilleModal .modal-body { flex: 1; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(-10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-header { padding: 18px 22px 14px; border-bottom: 1px solid rgba(196,154,34,0.3); display: flex; justify-content: space-between; align-items: center; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold); }
.modal-body { padding: 18px 22px; }
.modal-footer { padding: 12px 22px 16px; display: flex; gap: 10px; justify-content: flex-end; }

.field-group { margin-bottom: 14px; position: relative; }
.field-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sepia-pale); margin-bottom: 5px; display: block; }
.field-input { width: 100%; background: rgba(255,255,255,0.1); border: 1px solid rgba(196,154,34,0.3); color: var(--text-light); font-family: 'Crimson Pro', serif; font-size: 1rem; padding: 9px 12px; outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; }
.field-input:focus { border-color: var(--gold); background: rgba(255,255,255,0.15); }
.field-input::placeholder { color: rgba(196,154,34,0.4); }
.field-input[disabled] { opacity: 0.5; cursor: not-allowed; }
.field-input option { background: #2a2220; color: var(--text-light); }

select.field-input {
    color-scheme: dark;
    background: rgba(255,255,255,0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23c49a22' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
    padding-right: 32px;
    cursor: pointer;
    border: 1px solid rgba(196,154,34,0.3);
    color: var(--text-light);
    font-family: 'Crimson Pro', serif;
    font-size: 1rem;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}
select.field-input:focus { border-color: var(--gold); background-color: rgba(255,255,255,0.15); }
select.field-input option { background: #2a2220; color: var(--text-light); }

.place-search-wrap { position: relative; }
.place-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 999; background: var(--ink); border: 1px solid var(--gold); border-top: none; max-height: 270px; overflow-y: auto; display: none; }
.place-dropdown.open { display: block; }
.place-option { padding: 8px 12px; font-size: 0.92rem; color: var(--text-light); cursor: pointer; transition: background 0.1s; }
.place-option:hover, .place-option.active { background: rgba(196,154,34,0.2); color: var(--gold); }
.place-dropdown::-webkit-scrollbar { width: 4px; }
.place-dropdown::-webkit-scrollbar-thumb { background: var(--sepia); }

.gender-select-wrap { position: relative; }
.gender-display {
    width: 100%; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(196,154,34,0.3); color: var(--text-light);
    font-family: 'Crimson Pro', serif; font-size: 1rem; padding: 9px 12px;
    padding-right: 32px; cursor: pointer;
    transition: border-color 0.2s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23c49a22' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    user-select: none;
}
.gender-display.placeholder { color: rgba(196,154,34,0.5); font-style: italic; }
.gender-display:focus, .gender-display.open { border-color: var(--gold); background-color: rgba(255,255,255,0.15); }
.gender-dropdown {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 999;
    background: var(--ink); border: 1px solid var(--gold); border-top: none;
    display: none;
}
.gender-dropdown.open { display: block; }
.gender-option {
    padding: 9px 12px; font-family: 'Crimson Pro', serif; font-size: 1rem;
    color: var(--text-light); cursor: pointer; transition: background 0.1s;
    letter-spacing: 0.02em;
}
.gender-option:hover, .gender-option.active { background: rgba(196,154,34,0.2); color: var(--gold); }

.helper-text { font-size: 0.72rem; color: var(--sepia-pale); margin-top: 4px; font-style: italic; }
.modal-context { color: var(--sepia-pale); font-size: 0.88rem; margin-bottom: 14px; font-style: italic; }
.warning-box { background: rgba(100,10,10,0.4); border: 1px solid #c0392b; padding: 10px 14px; font-size: 0.85rem; color: #ffcdd2; margin-bottom: 14px; line-height: 1.5; }
.info-box { background: rgba(196,154,34,0.1); border: 1px solid rgba(196,154,34,0.4); padding: 10px 14px; font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }

.startup-section-title { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.wip-notice { background: rgba(139,32,32,0.25); border: 1px solid rgba(192,57,43,0.5); padding: 10px 14px; font-size: 0.8rem; color: #ffcdd2; line-height: 1.6; margin-bottom: 14px; }
.wip-notice ul { margin: 6px 0 0 16px; }
.wip-notice li { margin-bottom: 3px; }
.country-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255,255,255,0.05); border: 2px solid rgba(196,154,34,0.2); cursor: pointer; margin-bottom: 8px; transition: all 0.15s; }
.country-option:hover { border-color: var(--gold); background: rgba(196,154,34,0.08); }
.country-option.selected { border-color: var(--gold); background: rgba(196,154,34,0.15); }
.country-flag { font-size: 1.5rem; }
.country-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--text-light); }

.modal-error {
    font-size: 0.82rem; color: #ffcdd2; background: rgba(100,10,10,0.7);
    border: 1px solid #c0392b; padding: 7px 12px; margin-bottom: 8px;
    opacity: 0; transition: opacity 0.25s ease;
    pointer-events: none;
}
.modal-error.visible { opacity: 1; }

.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--leaf); color: #d4ffb0; padding: 10px 24px; font-size: 0.9rem; letter-spacing: 0.05em; opacity: 0; transition: all 0.3s ease; z-index: 300; border: 1px solid var(--leaf-light); pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

#missingNoticeWrap { display: none; justify-content: center; padding: 0 28px 16px; flex-shrink: 0; }
#missingNoticeWrap.visible { display: flex; }
.missing-notice { background: rgba(100,10,10,0.92); border: 1px solid #c0392b; padding: 8px 18px 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 760px; width: 100%; }
.missing-notice-title { font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #ff8a80; font-weight: 700; margin-bottom: 1px; }
.missing-notice-items { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: center; }
.missing-notice-item { font-size: 0.78rem; color: #ffcdd2; font-style: italic; }
.missing-notice-item strong { font-style: normal; color: #ff8a80; font-weight: 600; }

.panel-member-heading { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text-light); padding: 10px 0 6px; border-bottom: 1px solid rgba(196,154,34,0.2); margin-bottom: 10px; letter-spacing: 0.02em; }

.apos-line { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--text-light); padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.apos-line.subtotal { font-size: 0.9rem; color: var(--sepia-pale); padding-top: 8px; border-bottom: none; }
.apos-line.service-fee { color: var(--gold); }
.apos-line.grand { font-size: 1.05rem; font-weight: 700; color: var(--gold); border-top: 2px solid rgba(196,154,34,0.5); border-bottom: none; padding-top: 8px; margin-top: 4px; }

.local-marriage-notice { background: rgba(196,154,34,0.08); border: 1px solid rgba(196,154,34,0.3); padding: 12px 16px; font-size: 0.88rem; color: var(--text-light); line-height: 1.6; max-width: 400px; }
.local-marriage-notice .title { font-family: 'Playfair Display', serif; color: var(--gold); margin-bottom: 8px; }

.shared-marriage-note { font-size: 0.75rem; color: var(--sepia-pale); font-style: italic; margin-top: 3px; padding: 6px 8px; background: rgba(196,154,34,0.06); border-left: 2px solid rgba(196,154,34,0.3); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.delete-warning { background: rgba(100,10,10,0.4); border: 1px solid #c0392b; padding: 10px 14px; font-size: 0.85rem; color: #ffcdd2; margin-bottom: 14px; line-height: 1.5; }
.delete-name { color: var(--gold); font-weight: 600; }

.ny-warning { background: rgba(100,60,0,0.35); border: 1px solid #b8860b; padding: 10px 14px; font-size: 0.85rem; color: #ffe082; margin-bottom: 14px; line-height: 1.5; }
.ny-warning a { color: #ffe082; }

.stripe-status { margin-top: 10px; font-size: 0.78rem; color: var(--sepia-pale); font-style: italic; text-align: center; }
.stripe-status.error { color: #ff8a80; }

.apostille-disclaimer {
    background: rgba(139,32,32,0.2);
    border: 1px solid rgba(192,57,43,0.4);
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #ffcdd2;
    line-height: 1.6;
    margin-bottom: 14px;
    border-left: 3px solid var(--red-wax);
}
.apostille-disclaimer strong { color: #ff8a80; }

.applying-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-top: 8px;
    border-top: 1px solid rgba(196,154,34,0.2);
}
.applying-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
}
.applying-row label {
    font-size: 0.85rem;
    color: var(--text-light);
    cursor: pointer;
    user-select: none;
}
.applying-row.locked {
    opacity: 0.7;
}
.applying-row.locked label {
    cursor: default;
}
.applying-helper {
    font-size: 0.72rem;
    color: var(--sepia-pale);
    font-style: italic;
    margin-top: 2px;
    padding-left: 24px;
}

/* ── Site navigation bar ── */
.site-nav {
    background: #1a1d20;
    border-bottom: 1px solid rgba(196,154,34,0.25);
    padding: 0 28px;
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
    position: relative; z-index: 11;
    font-family: 'Crimson Pro', serif;
    height: var(--nav-h);
}
.site-nav-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.03em;
    padding: 10px 0;
    white-space: nowrap;
    display: flex; align-items: center; gap: 7px;
}
.site-nav-brand .blossom { font-size: 1.1em; line-height: 1; }
.site-nav-links {
    display: flex; align-items: center; gap: 0;
    list-style: none;
}
.site-nav-links a {
    display: block;
    padding: 10px 13px;
    font-size: 0.82rem; letter-spacing: 0.07em; text-transform: uppercase;
    color: var(--sepia-pale);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.site-nav-links a:hover { color: var(--gold); border-bottom-color: rgba(196,154,34,0.4); }
.site-nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
