:root {
    --navy: #183a48;
    --navy-deep: #102f3b;
    --sage: #77a88f;
    --sage-soft: #e4f0e9;
    --coral: #ee755f;
    --coral-dark: #d75d49;
    --paper: #f7f8f5;
    --surface: #fff;
    --ink: #1e3037;
    --muted: #6b7b80;
    --line: #dce5e1;
    --shadow: 0 18px 48px rgb(26 58 68 / 8%);
}
html, body { min-height: 100%; font-family: Inter, "Segoe UI", Arial, sans-serif; background: var(--paper); color: var(--ink); }
body { margin: 0; }
.btn-outline-danger { padding: 1rem; }
a, .btn-link { color: var(--navy); }
h1, h2, h3 { color: var(--navy-deep); font-family: Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 3.2vw, 3.5rem); line-height: 1.05; font-weight: 750; }
h1:focus { outline: none; }
.content { padding-top: 2rem; padding-bottom: 3rem; }
.btn { border-radius: 10px; font-weight: 650; padding: .62rem 1rem; }
.btn-primary { color: #fff; background: var(--coral); border-color: var(--coral); box-shadow: 0 7px 18px rgb(238 117 95 / 22%); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--coral-dark); border-color: var(--coral-dark); }
.btn-outline-primary { color: var(--navy); border-color: #9eb6b1; }
.btn-outline-primary:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.btn-success { background: var(--sage); border-color: var(--sage); }
.form-control, .form-select { min-height: 46px; border-color: #cfdcd7; border-radius: 10px; background-color: #fff; }
label:not(.form-check):not(.compact-check) > .form-control,label:not(.form-check):not(.compact-check) > .form-select { margin-top: .4rem; }
.validation-message { display: block; margin-top: .35rem; }
.form-check { margin-block: .35rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus, .btn:focus-visible {
    border-color: var(--sage);
    box-shadow: 0 0 0 .22rem rgb(119 168 143 / 20%);
}
.form-check-input:checked { background-color: var(--sage); border-color: var(--sage); }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.page-heading h1 { margin: 0 0 .45rem; }
.page-heading p, .text-secondary { color: var(--muted) !important; }
.panel, .auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.panel { padding: 1.5rem; margin-bottom: 1.5rem; }
.panel.warning { border-color: #ead498; background: #fffaf0; }
.panel h2 { font-size: 1.35rem; }
.auth-card { max-width: 600px; margin: 2rem auto; padding: clamp(1.4rem, 4vw, 2.5rem); }
.auth-card h1 { font-size: clamp(2rem, 4vw, 3rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid label { color: var(--navy-deep); font-weight: 650; }
.form-grid .form-control, .form-grid .form-select { margin-top: .4rem; font-weight: 400; }
.span-2 { grid-column: span 2; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto; gap: .7rem; align-items: center; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(285px, 1fr)); gap: 1rem; }
.gift-card, .event-card {
    position: relative;
    min-height: 190px;
    padding: 1.3rem;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 6%);
    transition: transform .18s ease, box-shadow .18s ease;
}
.gift-card:hover, .event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gift-cover { width: calc(100% + 2.6rem); height: 190px; object-fit: cover; margin: -1.3rem -1.3rem 1rem; }
.event-avatar { width: 76px; height: 76px; object-fit: cover; border: 3px solid #fff; border-radius: 20px; box-shadow: 0 8px 22px rgb(26 58 68 / 15%); }
.event-card > .event-avatar { float: right; width: 64px; height: 64px; margin: 0 0 .7rem 1rem; }
.event-heading { display: flex; align-items: center; gap: 1rem; }
.gift-picker { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(135deg, #f7faf7, #fffaf6); }
.gift-picker summary {
    color: var(--navy-deep);
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.picker-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: .85rem 0; }
.gift-picker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: .65rem;
    max-height: 340px;
    padding: .15rem;
    overflow-y: auto;
}
.gift-picker-list label {
    display: grid;
    grid-template-columns: auto 52px 1fr;
    align-items: center;
    gap: .7rem;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgb(26 58 68 / 5%);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.gift-picker-list label:hover { transform: translateY(-1px); border-color: #b7cabd; }
.gift-picker-list label.selected { border-color: var(--sage); background: var(--sage-soft); }
.gift-picker-list input { width: 19px; height: 19px; accent-color: var(--coral); }
.gift-picker-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.gift-picker-thumb.placeholder {
    display: grid;
    place-items: center;
    color: var(--sage);
    background: linear-gradient(135deg, var(--sage-soft), #faf0e8);
    font-size: 1.35rem;
}
.gift-picker-name { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.gift-picker-name small { display: block; margin-top: .15rem; color: var(--muted); font-weight: 500; }
.legal-document {
    max-width: 900px;
    padding: clamp(1.5rem, 4vw, 3rem);
    margin: 1rem auto 3rem;
    white-space: pre-line;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.legal-notice { margin-bottom: 1rem; }
.legal-editor { min-height: 260px; }
.legal-current { display: grid; gap: .4rem; margin-top: 1rem; color: var(--muted); }
.gift-images { display: flex; gap: .5rem; overflow-x: auto; margin-bottom: 1rem; }
.gift-images div { position: relative; flex: 0 0 88px; }
.gift-images img { width: 88px; height: 88px; object-fit: cover; border-radius: 10px; }
.gift-images button {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(0 0 0 / 65%);
    color: #fff;
}
.upload-button input { display: none; }
.gift-card.archived { opacity: .72; border-style: dashed; }
.card-top { display: flex; justify-content: space-between; gap: 1rem; }
.card-top h2, .event-card h2 { font-size: 1.25rem; }
.price { color: #427861; font-weight: 750; white-space: nowrap; }
.eyebrow { color: var(--coral-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.privacy-note { display: block; padding: .7rem .85rem; margin-top: 1rem; color: #47665a; background: var(--sage-soft); border-radius: 10px; font-size: .88rem; }
.member-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.member-list span { padding: .48rem .8rem; background: var(--sage-soft); border-radius: 999px; }
.member-list small { color: var(--muted); margin-left: .3rem; }
.share-link {
    margin-top: 1rem;
    padding: .8rem;
    background: var(--sage-soft);
    border-radius: 10px;
    overflow-wrap: anywhere;
    font-family: ui-monospace, monospace;
}
.suggestion { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.suggestion > span { margin-left: 1rem; color: #427861; font-weight: 700; }
.santa-result { display: grid; padding: 2rem; margin: 1.5rem 0; color: #fff; background: var(--navy); border-radius: 18px; box-shadow: var(--shadow); }
.santa-result span { opacity: .75; text-transform: uppercase; letter-spacing: .1em; }
.santa-result strong { font-size: 2.4rem; }
.compact { padding: .55rem .75rem; font-size: .9rem; }
.section-title { margin: 2rem 0 1rem; }
.notification-list article { display: grid; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.notification-list article:last-child { border: 0; }
.notification-list span { color: var(--muted); font-size: .82rem; }
.notification-list p { margin: .3rem 0 0; }
.preference-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.preference-grid label { display: grid; align-content: start; gap: .35rem; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 68vh; gap: 4rem; }
.hero p { max-width: 650px; margin: 1.5rem 0 2rem; color: var(--muted); font-size: 1.2rem; }
.hero-art { display: grid; place-items: center; min-height: 350px; background: var(--sage-soft); border-radius: 44% 56% 48% 52%; }
.present { position: relative; width: 190px; height: 150px; background: var(--coral); border-radius: 8px; box-shadow: 0 24px 45px rgb(61 37 29 / 18%); }
.present::before { content: ""; position: absolute; left: 78px; width: 34px; height: 100%; background: #f2cf72; }
.present::after { content: ""; position: absolute; left: -10px; top: -22px; width: 210px; height: 35px; background: var(--coral-dark); border-radius: 6px; }
.present span::before, .present span::after {
    content: "";
    position: absolute;
    left: 45px;
    top: -77px;
    width: 68px;
    height: 54px;
    border: 16px solid #f2cf72;
    border-radius: 60% 60% 15% 60%;
    transform: rotate(15deg);
}
.present span::after { left: 92px; transform: scaleX(-1) rotate(15deg); }
.feature-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: 2rem;
    overflow: hidden;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.feature-row article { padding: 1.5rem; background: var(--surface); }
.feature-row strong { color: var(--coral-dark); }
.nav-spacer { flex: 1; min-height: 2rem; }
.share-receiver { max-width: 720px; margin: 2rem auto; padding: clamp(1rem, 4vw, 2rem); }
.toolbar.import-toolbar {
    display: flex;
    flex-wrap: wrap;
}
.import-toolbar > * {
    min-width: 0;
    max-width: 100%;
}
.import-product-preview { display: grid; gap: .7rem; min-width: 0; }
.import-product-preview img,.import-preview-placeholder { width: 100%; height: 200px; object-fit: contain; background: #f5f7f5; border-radius: 12px; }
.import-preview-placeholder { display: grid; place-items: center; color: #677d71; }
.import-product-preview h3 { font-size: 1.1rem; overflow-wrap: anywhere; }
.import-product-price { font-weight: 700; }
.mutual-gifts .card-grid {
    margin-top: 1rem;
}
.mutual-gift h3, .mutual-gift p {
    overflow-wrap: anywhere;
}
.mutual-gift .actions .btn {
    max-width: 100%;
    white-space: normal;
}
.gift-receipt label {
    display: block;
    margin-top: .7rem;
}
.gift-receipt input {
    max-width: 100%;
}
.import-queue-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1rem; }
.import-queue-item { display: flex; flex-direction: column; gap: .8rem; min-width: 0; margin: 0; }
.import-queue-item > .actions { margin-top: auto; }
.import-product-preview h2 { font-size: 1rem; overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .import-page-heading { flex-direction: column; align-items: stretch; }
    .import-page-heading > * { min-width: 0; }
    .import-page-heading .btn { width: 100%; }
}
.external-login { margin-top: 1.5rem; text-align: center; }
.external-login > span { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; color: var(--muted); font-size: .85rem; }
.external-login > span::before, .external-login > span::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.provider-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.btn-provider { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.btn-provider:hover { background: var(--sage-soft); border-color: var(--sage); }
.badge.text-bg-primary { background: var(--navy) !important; }
.badge.text-bg-secondary { background: #7a898c !important; }
.alert { border: 0; border-radius: 12px; }
.alert-info { color: #31594a; background: var(--sage-soft); }
.valid.modified:not([type=checkbox]) { outline: 1px solid var(--sage); }
.invalid { outline: 1px solid #d84f4f; }
.validation-message { color: #b4232f; }
.blazor-error-boundary { padding: 1rem; color: #fff; background: #b32121; }
.blazor-error-boundary::after { content: "Wystąpił błąd."; }
@media (max-width: 767px) {
    .content { padding-top: 1.25rem; }
    .page-heading, .hero { display: block; }
    .page-heading .btn { margin-top: 1rem; }
    .hero { min-height: auto; padding: 2rem 0; }
    .hero-art { display: none; }
    .feature-row, .form-grid, .provider-buttons { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .toolbar { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
}
/* Soft minimal — makieta 1 */
:root {
    --navy: #173b46;
    --navy-deep: #102f3b;
    --sage: #789a83;
    --sage-soft: #e9f0ea;
    --coral: #ef735e;
    --coral-dark: #d85d49;
    --paper: #f8f9f6;
    --surface: #fff;
    --ink: #21363d;
    --muted: #718084;
    --line: #e0e7e2;
    --shadow: 0 20px 55px rgb(25 53 61 / 9%);
}
html, body {
    font-family: Aptos, "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    background: radial-gradient(circle at 85% 8%, #f0f4ef 0, transparent 28rem), var(--paper);
}
h1, h2, h3 { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-weight: 700; }
h1 { font-size: clamp(2.35rem, 3.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2vw, 2rem); }
.content { padding-top: 1.2rem; }
.page-heading, .dashboard-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 0 0 2.25rem; }
.page-heading h1, .dashboard-heading h1 { margin: .3rem 0 .45rem; }
.page-heading p, .dashboard-heading p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.eyebrow { color: var(--coral-dark); font-size: .73rem; font-weight: 800; letter-spacing: .16em; }
.btn { min-height: 43px; padding: .58rem .95rem; border-radius: 9px; }
.btn-sm { min-height: 36px; padding: .38rem .7rem; }
.btn-soft { color: var(--navy-deep); background: #f3f6f3; border: 1px solid #e5ebe7; }
.btn-soft:hover { color: var(--navy-deep); background: var(--sage-soft); border-color: #d6e1d9; }
.nav-glyph { display: inline-grid; flex: 0 0 1.35rem; width: 1.35rem; margin-right: .75rem; place-items: center; color: #5f7c6b; }
.nav-icon { display: block; width: 1.28rem; height: 1.28rem; }
.topbar-icon .nav-glyph { display: grid; margin: 0; place-items: center; }
.manage-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.manage-heading h1 { margin: .15rem 0 .25rem; }
.manage-heading p { margin: 0; color: var(--muted); }
.manage-heading-icon {
    display: grid;
    flex: 0 0 64px;
    place-items: center;
    width: 64px;
    height: 64px;
    color: #fff;
    background: var(--navy);
    border-radius: 18px;
}
.manage-heading-icon .nav-glyph { margin: 0; color: inherit; }
.manage-heading-icon .nav-icon { width: 30px; height: 30px; }
.manage-shell { display: grid; grid-template-columns: minmax(220px, 270px) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.manage-nav {
    position: sticky;
    top: 1rem;
    padding: .65rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
}
.manage-nav-list { display: grid; gap: .25rem; padding: 0; margin: 0; list-style: none; }
.manage-nav-list a { display: block; padding: .72rem .85rem; color: var(--ink); border-radius: 9px; font-weight: 650; text-decoration: none; }
.manage-nav-list a:hover { background: #f1f5f2; }
.manage-nav-list a.active { color: #fff; background: var(--navy); }
.manage-content {
    min-width: 0;
    padding: clamp(1.2rem, 3vw, 2rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 35px rgb(26 58 68 / 6%);
}
.manage-content > h2:first-of-type { margin-top: 0; }
.manage-content .panel { box-shadow: none; }
.manage-lead { max-width: 820px; color: var(--muted); line-height: 1.65; }
.manage-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.manage-actions form { margin: 0; }
.manage-info {
    padding: 1rem 1.1rem;
    margin: 1rem 0;
    color: #31594a;
    background: var(--sage-soft);
    border-left: 4px solid var(--sage);
    border-radius: 0 12px 12px 0;
}
.manage-info p { margin: .3rem 0 0; line-height: 1.55; }
.manage-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.manage-facts div { min-width: 0; padding: 1rem; background: #f7f9f7; border: 1px solid var(--line); border-radius: 12px; }
.manage-facts dt { color: var(--muted); font-size: .82rem; }
.manage-facts dd { margin: .3rem 0 0; overflow-wrap: anywhere; color: var(--navy-deep); font-weight: 750; }
.manage-field { display: grid; gap: .4rem; max-width: 680px; }
.manage-table td { vertical-align: middle; }
.compact-empty { padding: 1.5rem; }
@media (max-width: 850px) {
    .manage-shell { grid-template-columns: 1fr; }
    .manage-nav { position: static; }
    .manage-nav-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .manage-facts { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .manage-heading { align-items: flex-start; }
    .manage-heading-icon { flex-basis: 52px; width: 52px; height: 52px; }
    .manage-nav-list { grid-template-columns: 1fr; }
    .manage-content { padding: 1rem; }
    .manage-actions > *,.manage-actions form,.manage-actions form .btn { width: 100%; }
}
.panel, .auth-card { border-radius: 16px; box-shadow: 0 12px 38px rgb(24 54 63 / 7%); }
.panel { padding: clamp(1.25rem, 2.3vw, 2rem); }
.card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 1.35rem; }
.event-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.event-card, .gift-card { min-height: 0; padding: 0; overflow: hidden; border-radius: 17px; box-shadow: 0 10px 34px rgb(26 58 68 / 7%); }
.event-card:hover, .gift-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgb(26 58 68 / 12%); }
.event-card-clickable { cursor: pointer; }
.card-clickable { cursor: pointer; }
.card-clickable:focus-visible { outline: 3px solid rgb(239 111 92 / 35%); outline-offset: 3px; }
.event-card-clickable:focus-visible { outline: 3px solid rgb(119 168 143 / 35%); outline-offset: 3px; }
.event-cover { display: block; width: 100%; height: 215px; object-fit: cover; }
.event-cover-placeholder, .gift-cover-placeholder {
    display: grid;
    place-items: center;
    color: #789a83;
    background: linear-gradient(145deg, #e8f0e9, #f4e9df);
    font-size: 3rem;
}
.event-card-body, .gift-card-body { padding: 1.25rem 1.3rem 1.35rem; }
.event-card-kicker { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.event-card h2, .event-card h3 { margin: .45rem 0 .75rem; color: var(--navy-deep); font-size: 1.55rem; }
.event-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; color: var(--muted); font-size: .88rem; }
.event-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.event-meta .nav-glyph { width: 18px; height: 18px; color: var(--sage); }
.status-dot { color: #52715f; font-size: .78rem; font-weight: 700; }
.event-card-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1.15rem; }
.event-card-actions .btn { width: 100%; min-width: 0; padding-inline: .45rem; white-space: nowrap; font-size: .86rem; }
.dashboard-event { color: inherit; text-decoration: none; }
.pwa-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.25rem;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--ink);
    background: linear-gradient(135deg, #eef4ef, #fff5f1);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgb(26 58 68 / 6%);
}
.pwa-card-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: #7048f7;
    border-radius: 20px;
    box-shadow: 0 10px 22px rgb(78 53 183 / 24%);
}
.pwa-card-icon img { width: 100%; height: 100%; object-fit: cover; }
.pwa-card h2 { margin: .25rem 0 .4rem; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.pwa-card p { max-width: 850px; margin: 0; color: var(--muted); line-height: 1.6; }
.pwa-card-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1rem; }
.pwa-message {
    margin-top: .8rem;
    padding: .7rem .85rem;
    color: #315b4b;
    background: rgb(255 255 255 / 72%);
    border-left: 3px solid var(--sage);
    border-radius: 8px;
}
.pwa-installed { color: #315b4b; font-weight: 700; }
.pwa-mobile-action { display: none; }
.gift-media { position: relative; }
.gift-cover { width: 100%; height: 220px; margin: 0; object-fit: cover; }
.image-remove, .favorite-button {
    position: absolute;
    top: .75rem;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: var(--navy-deep);
    box-shadow: 0 5px 18px rgb(19 44 52 / 15%);
}
.image-remove { left: .75rem; font-size: 1.2rem; }
.favorite-button { right: .75rem; font-size: 1.35rem; }
.favorite-button.selected { color: var(--coral-dark); }
.gift-card .card-top h2 { margin: 0; font-size: 1.45rem; }
.gift-card-body > p { min-height: 2.9rem; margin: .75rem 0; color: var(--muted); }
.gift-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); width: 100%; }
.gift-actions .btn { width: 100%; min-width: 0; white-space: normal; line-height: 1.2; }
.realized-badge {
    display: block;
    padding: .65rem .8rem;
    margin-top: .8rem;
    color: #315c48;
    background: var(--sage-soft);
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 750;
}
.gift-card.realized { border-color: #bed2c3; }
.gift-detail { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.gift-detail-media { overflow: hidden; min-height: 360px; border-radius: 14px; background: var(--sage-soft); }
.gift-detail-media img, .gift-detail-media .gift-cover-placeholder {
    display: grid;
    width: 100%;
    min-height: 360px;
    max-height: 600px;
    object-fit: cover;
    place-items: center;
}
.authenticator-qr {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: #fff;
    image-rendering: pixelated;
}
.gift-detail-body .card-top { align-items: baseline; }
.gift-detail-body > p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.anchor-section { scroll-margin-top: 1rem; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin: 2.5rem 0 1.15rem; }
.section-heading h2 { margin: .25rem 0 0; }
.section-heading > a, .section-summary { color: var(--navy); font-weight: 700; text-decoration: none; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.stat-grid a {
    display: grid;
    padding: 1.25rem 1.35rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
    text-decoration: none;
}
.stat-grid a:hover { border-color: #bfd1c4; transform: translateY(-2px); }
.stat-grid span { color: var(--muted); font-size: .85rem; }
.stat-grid strong {
    margin: .2rem 0;
    color: var(--navy-deep);
    font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    font-size: 2.25rem;
    line-height: 1;
}
.stat-grid strong.stat-date { font-size: 1.85rem; }
.stat-grid small { color: #8a9699; }
.empty-state { padding: 3.5rem 2rem; text-align: center; background: #fff; border: 1px dashed #cfdad3; border-radius: 18px; }
.empty-state > span { display: block; margin-bottom: .75rem; color: var(--sage); font-size: 3rem; }
.empty-state h2 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); }
.guest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.guest-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
}
.guest-card h2 { margin: .05rem 0 .15rem; font-size: 1.3rem; }
.guest-card p { margin: 0 0 .65rem; color: var(--muted); }
.guest-pending { color: #9a654f; font-weight: 700; }
.guest-avatar {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    color: #fff;
    background: var(--sage);
    border-radius: 50%;
    font-weight: 800;
}
.guest-avatar-image { object-fit: cover; }
.guest-card-content { min-width: 0; flex: 1; }
.guest-card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.guest-card-heading .btn { flex: 0 0 auto; }
.friend-add {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    align-items: center;
    gap: 1.25rem;
}
.friend-add h2,.friend-add p { margin-top: 0; }
.friend-add p { margin-bottom: 0; }
.friend-without-event { padding: .55rem .7rem; background: #f6f8f6; border-radius: 9px; }
.tag-list a { display: grid; gap: .05rem; }
.tag-list a small { display: block; }
.profile-photo-editor { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; }
.profile-photo-editor form { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; }
.profile-photo-preview { width: 84px; height: 84px; flex-basis: 84px; object-fit: cover; font-size: 1.25rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-list a { padding: .3rem .55rem; color: #3f6251; background: var(--sage-soft); border-radius: 999px; text-decoration: none; font-size: .78rem; }
.tag-list a small { color: #8a6656; }
.calendar-list { display: grid; gap: 1.5rem; }
.calendar-list section { padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 8px 28px rgb(26 58 68 / 5%); }
.calendar-list h2 { margin: 0 0 .75rem; text-transform: capitalize; font-size: 1.35rem; }
.calendar-row {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .8rem .4rem;
    color: var(--ink);
    border-top: 1px solid #edf1ee;
    text-decoration: none;
}
.calendar-day {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--coral-dark);
    background: #fdf0ed;
    border-radius: 12px;
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
}
.calendar-row strong, .calendar-row small { display: block; }
.calendar-row small { margin-top: .15rem; color: var(--muted); }
.landing-page { display: grid; gap: clamp(3.5rem, 7vw, 6.5rem); padding-bottom: 2rem; }
.landing-page .hero { min-height: 70vh; margin-top: -1.2rem; }
.landing-page .hero h1 { max-width: 820px; font-size: clamp(2.7rem, 5vw, 5rem); }
.landing-page .hero p { max-width: 760px; line-height: 1.7; }
.landing-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-points { display: grid; gap: .45rem; padding: 0; margin: 1.6rem 0 0; color: #47665a; list-style: none; }
.hero-points li::before { content: "✓"; margin-right: .55rem; color: var(--coral-dark); font-weight: 800; }
.landing-page .hero-art {
    position: relative;
    min-height: 450px;
    background: radial-gradient(circle at 45% 38%, #fff 0 7rem, transparent 7.1rem), linear-gradient(145deg, #e3eee6, #f5e8de);
}
.hero-note {
    position: absolute;
    display: grid;
    min-width: 190px;
    padding: .9rem 1rem;
    background: rgb(255 255 255 / 94%);
    border: 1px solid #e5ebe7;
    border-radius: 13px;
    box-shadow: 0 12px 32px rgb(26 58 68 / 12%);
}
.hero-note strong { color: var(--navy-deep); }
.hero-note small { margin-top: .12rem; color: var(--muted); }
.hero-note-top { top: 3rem; right: -1rem; }
.hero-note-bottom { bottom: 2.5rem; left: -1.5rem; }
.landing-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    padding: 1.15rem 1.35rem;
    color: #47665a;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
    font-size: .9rem;
    font-weight: 700;
    text-align: center;
}
.landing-section { display: grid; gap: 1.5rem; }
.landing-heading { max-width: 720px; }
.landing-heading h2 { margin: .35rem 0 .55rem; font-size: clamp(2rem, 3.2vw, 3.2rem); }
.landing-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.landing-page .feature-row { margin: 0; }
.landing-page .feature-row article { padding: clamp(1.5rem, 3vw, 2.4rem); }
.landing-page .feature-row h3 { margin: .65rem 0 .5rem; font-size: 1.4rem; }
.landing-page .feature-row p { color: var(--muted); line-height: 1.65; }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.mode-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.6rem, 3.4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.mode-list { background: linear-gradient(145deg, #fff, #edf4ee); }
.mode-draw { background: linear-gradient(145deg, #fff, #f8e8e3); }
.mode-card h2 { max-width: 570px; margin: .65rem 0 .8rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.mode-card p { max-width: 620px; color: var(--muted); line-height: 1.7; }
.mode-card ul { display: grid; gap: .5rem; padding-left: 1.2rem; margin: 1.4rem 0 0; }
.mode-icon { position: absolute; top: 1.25rem; right: 1.5rem; color: rgb(23 59 70 / 12%); font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; }
.privacy-section {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.8rem, 4vw, 3.5rem);
    color: #fff;
    background: var(--navy);
    border-radius: 24px;
    box-shadow: 0 24px 65px rgb(16 47 59 / 18%);
}
.privacy-section h2 { max-width: 850px; margin: .5rem 0 .7rem; color: #fff; font-size: clamp(1.8rem, 3vw, 3rem); }
.privacy-section p { max-width: 820px; margin: 0; color: #d8e5df; line-height: 1.7; }
.privacy-section .eyebrow { color: #f4a99c; }
.privacy-section .btn { min-width: 210px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.faq-grid details { padding: 1.15rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.faq-grid summary { color: var(--navy-deep); font-weight: 750; cursor: pointer; }
.faq-grid p { margin: .8rem 0 0; color: var(--muted); line-height: 1.65; }
.landing-cta {
    padding: clamp(2rem, 5vw, 4rem);
    text-align: center;
    background: linear-gradient(145deg, #eef4ef, #fff5f1);
    border: 1px solid var(--line);
    border-radius: 24px;
}
.landing-cta h2 { max-width: 800px; margin: .55rem auto .7rem; font-size: clamp(2rem, 3.5vw, 3.3rem); }
.landing-cta p { margin: 0 0 1.4rem; color: var(--muted); font-size: 1.08rem; }
@media (max-width: 1000px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
    .landing-trust { grid-template-columns: repeat(2, 1fr); }
    .hero-note-top { right: .5rem; }
    .hero-note-bottom { left: .5rem; }
}
@media (max-width: 767px) {
    .dashboard-heading, .section-heading { display: block; }
    .dashboard-heading .btn { margin-top: 1rem; }
    .event-grid, .gift-detail, .mode-grid, .faq-grid, .privacy-section { grid-template-columns: 1fr; }
    .event-cover { height: 190px; }
    .gift-actions { flex-wrap: wrap; }
    .gift-detail-media, .gift-detail-media img, .gift-detail-media .gift-cover-placeholder { min-height: 260px; }
    .landing-page { gap: 3.5rem; }
    .landing-page .hero { margin-top: 0; }
    .landing-page .hero-art { display: none; }
    .privacy-section .btn { width: 100%; }
    .pwa-card { grid-template-columns: 1fr; }
    .pwa-card-icon { width: 58px; height: 58px; border-radius: 16px; font-size: 1.6rem; }
    .pwa-card-actions .btn { width: 100%; }
    .pwa-mobile-action { display: inline-flex; }
}
@media (max-width: 767px) {
    .friend-add { grid-template-columns: 1fr; }
    .friend-add .inline-form { align-items: stretch; flex-direction: column; }
    .friend-add .btn { width: 100%; }
    .guest-card-heading { flex-direction: column; }
    .event-detail-heading { align-items: stretch; flex-direction: column; }
    .event-heading-actions { justify-content: stretch; }
    .event-heading-actions > * { flex: 1; }
    .profile-photo-editor,.profile-photo-editor form { align-items: stretch; flex-direction: column; }
    .profile-photo-editor .btn { width: 100%; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .event-card-actions { gap: .3rem; }
    .event-card-actions .btn { font-size: .8rem; }
}
@media (max-width: 520px) {
    .landing-trust { grid-template-columns: 1fr; text-align: left; }
    .landing-actions .btn { width: 100%; }
    .landing-page .hero h1 { font-size: 2.55rem; }
}
.photo-editor { border:1px solid #cbd5e1; border-radius:12px; padding:16px; margin:12px 0; min-width:0; }
.photo-editor label { display:block; margin:8px 0; }
.photo-editor input[type=file] { max-width:100%; }
.crop-panel[hidden] { display:none; }
.crop-panel canvas { display:block; max-width:100%; max-height:480px; width:auto; height:auto; touch-action:none; cursor:crosshair; background:#f1f5f9; }
.crop-sliders { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.crop-sliders input { width:100%; }
.staged-photos { display:flex; flex-wrap:wrap; gap:12px; }
.staged-photos img { width:120px; height:120px; object-fit:contain; }
.photo-editor button { margin:4px; padding:8px; }
.gift-cover,.gift-picker-thumb,.gift-images img,.gift-detail-media img { object-fit:contain; background:#f4f5f7; }
.group-purchase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; }
.group-purchase-heading { align-items: center; width: 100%; }
.group-purchase-heading > div { flex: 1 1 auto; min-width: 0; }
.group-purchase-heading > .btn { flex: 0 0 auto; white-space: nowrap; }
.group-purchase-heading h1,.group-purchase-heading h2 { overflow-wrap: normal; word-break: normal; }
.group-purchase-card { min-width: 0; overflow: hidden; }
.group-purchase-title { align-items: flex-start; }
.group-purchase-title > div { min-width: 0; }
.group-purchase-title h2,.group-purchase-description { overflow-wrap: anywhere; }
.group-purchase-card progress { width: 100%; height: .75rem; accent-color: var(--coral); }
.progress-summary { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; margin-top: 1rem; }
.progress-summary span { color: var(--muted); font-size: .85rem; text-align: right; }
.group-members { display: grid; gap: .5rem; margin-top: 1.25rem; }
.group-members > .group-member-row {
    display: grid;
    grid-template-columns: minmax(150px, .75fr) minmax(260px, 1.25fr);
    align-items: center;
    gap: 1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
}
.group-member-person { min-width: 0; }
.group-member-person strong,.group-member-person small { display: block; overflow-wrap: anywhere; }
.group-member-person small { color: var(--muted); }
.group-member-controls { display: grid; justify-items: end; gap: .55rem; min-width: 0; }
.group-member-controls label { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .82rem; }
.share-amount { display: flex; align-items: center; gap: .4rem; }
.group-member-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.group-members span { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.group-members small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.member-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .65rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--sage-soft);
}
.member-choice > strong { grid-column: 1 / -1; }
.compact-check { display: flex; align-items: center; gap: .4rem; margin: 0; }
.share-input { width: 7rem; }
@media (max-width: 575px) {
    .group-purchase-heading > .btn { width: 100%; }
    .progress-summary { align-items: flex-start; flex-direction: column; }
    .progress-summary span { text-align: left; }
    .group-purchase-card { padding: 1rem; }
    .group-purchase-card .gift-cover { width: calc(100% + 2rem); margin: -1rem -1rem 1rem; }
    .group-purchase-title { align-items: flex-start; flex-direction: column; gap: .45rem; }
    .group-purchase-card .actions { display: grid; grid-template-columns: 1fr; }
    .group-purchase-card .actions > * { width: 100%; }
    .group-purchase-card .compact-check { min-height: 46px; padding: .6rem; border: 1px solid var(--line); border-radius: 10px; }
    .group-members > .group-member-row { grid-template-columns: 1fr; gap: .65rem; }
    .group-member-controls { justify-items: stretch; }
    .group-member-controls label { align-items: stretch; flex-direction: column; }
    .share-amount,.share-input { width: 100%; }
    .group-member-actions { display: grid; grid-template-columns: 1fr; }
    .group-member-actions .btn { width: 100%; }
    .member-choice { padding: .75rem; }
}
.link-import {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
    align-items: center;
    gap: 1.5rem;
    padding: 1.15rem 1.3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(120deg, var(--sage-soft), #fff);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.link-import strong,.link-import small { display: block; }
.link-import > * { min-width: 0; }
.link-import small { margin-top: .25rem; color: var(--muted); }
@media (min-width: 768px) {
    .link-import .inline-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
}
.inline-form { display: flex; align-items: center; gap: .75rem; }
.inline-form .form-control,.inline-form .form-select { min-width: 0; }
.guide-page { display: grid; gap: 1.5rem; max-width: 1180px; margin: 0 auto; padding-bottom: 2rem; }
.guide-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(1.8rem, 4vw, 3.6rem);
    overflow: hidden;
    background: linear-gradient(135deg, #fff 0 58%, #edf4ee 100%);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.guide-hero h1 { max-width: 760px; margin: .45rem 0 .8rem; }
.guide-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 1.12rem; line-height: 1.7; }
.guide-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.guide-hero-actions a { text-decoration: none; }
.guide-hero-mark {
    display: grid;
    place-items: center;
    align-content: center;
    width: 220px;
    height: 220px;
    color: var(--navy-deep);
    background: radial-gradient(circle at 35% 30%, #fff, #dceadf);
    border-radius: 42% 58% 48% 52%;
    box-shadow: inset 0 0 0 1px rgb(23 59 70 / 6%);
}
.guide-hero-mark span { font-family: Georgia, serif; font-size: 6rem; line-height: .85; }
.guide-hero-mark small { margin-top: 1rem; color: #52715f; font-weight: 750; }
.guide-toc { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; scroll-margin-top: 1rem; }
.guide-toc a {
    display: grid;
    min-height: 126px;
    padding: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 7px 24px rgb(26 58 68 / 5%);
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.guide-toc a:hover, .guide-toc a:focus-visible { border-color: #b9cfc0; box-shadow: 0 13px 32px rgb(26 58 68 / 9%); transform: translateY(-2px); }
.guide-toc span { color: var(--coral-dark); font-size: .75rem; font-weight: 800; }
.guide-toc strong { align-self: end; color: var(--navy-deep); font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 1.05rem; }
.guide-toc small { margin-top: .2rem; color: var(--muted); line-height: 1.35; }
.guide-section {
    padding: clamp(1.4rem, 3vw, 2.5rem);
    scroll-margin-top: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgb(26 58 68 / 6%);
}
.guide-first { background: linear-gradient(150deg, #fff 0 72%, #f7ece7 100%); }
.guide-section-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.guide-section-heading h2 { margin: .2rem 0 0; }
.guide-number {
    display: grid;
    flex: 0 0 52px;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: var(--navy);
    border-radius: 15px;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
}
.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.guide-columns article { padding: 1.25rem; background: #f9faf8; border: 1px solid var(--line); border-radius: 14px; }
.guide-columns h3 { margin: 0 0 .8rem; font-size: 1.3rem; }
.guide-columns ol, .guide-columns ul, .guide-checklist { display: grid; gap: .65rem; margin: 0; padding-left: 1.25rem; }
.guide-columns li, .guide-checklist li { padding-left: .25rem; line-height: 1.6; }
.guide-section a:not(.btn) { color: #315f4b; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.guide-note { padding: 1rem 1.15rem; margin-top: 1rem; color: #6a443a; background: #fff1ed; border-left: 4px solid var(--coral); border-radius: 0 12px 12px 0; }
.guide-note p { margin: .25rem 0 0; line-height: 1.55; }
.guide-note-sage { color: #31594a; background: var(--sage-soft); border-left-color: var(--sage); }
.guide-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.guide-steps article { display: flex; gap: .85rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 14px; }
.guide-steps article > span {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #fff;
    background: var(--coral);
    border-radius: 50%;
    font-weight: 800;
}
.guide-steps h3, .guide-feature-grid h3 { margin: .1rem 0 .4rem; font-size: 1.2rem; }
.guide-steps p, .guide-feature-grid p { margin: 0; color: var(--muted); line-height: 1.6; }
.guide-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.guide-feature-grid article { padding: 1.15rem; background: linear-gradient(145deg, #f9fbf9, #fff); border: 1px solid var(--line); border-radius: 14px; }
.guide-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: .75rem;
    place-items: center;
    color: var(--coral-dark);
    background: #fcedea;
    border-radius: 12px;
    font-family: Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
}
.guide-lead { max-width: 900px; margin: 0 0 1.25rem; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.guide-path { display: flex; align-items: stretch; gap: .55rem; }
.guide-path span {
    display: grid;
    flex: 1;
    min-height: 76px;
    padding: .8rem;
    place-items: center;
    color: var(--navy-deep);
    background: var(--sage-soft);
    border-radius: 12px;
    font-weight: 750;
    text-align: center;
}
.guide-path b { align-self: center; color: var(--coral-dark); }
.guide-report { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.guide-report div { display: grid; gap: .4rem; padding: 1rem; background: #f8faf8; border: 1px solid var(--line); border-radius: 13px; }
.guide-report strong { color: var(--navy-deep); }
.guide-report span { color: var(--muted); line-height: 1.5; }
.guide-warning { padding: 1rem 1.15rem; margin-top: 1rem; color: #7a372c; background: #fff0ec; border: 1px solid #f3cec6; border-radius: 12px; }
.guide-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: clamp(1.6rem, 4vw, 3rem);
    background: linear-gradient(135deg, #eaf2eb, #fff5f1);
    border: 1px solid var(--line);
    border-radius: 20px;
}
.guide-cta h2 { margin: .35rem 0 .5rem; }
.guide-cta p { margin: 0; color: var(--muted); }
.guide-cta .btn { min-width: 210px; }
@media (max-width: 1050px) {
    .guide-toc { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .guide-feature-grid, .guide-report { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .guide-hero { grid-template-columns: 1fr; }
    .guide-hero-mark { display: none; }
    .guide-steps { grid-template-columns: 1fr; }
    .guide-path { display: grid; grid-template-columns: 1fr; }
    .guide-path b { justify-self: center; transform: rotate(90deg); }
}
@media (max-width: 600px) {
    .guide-page { gap: 1rem; }
    .guide-toc, .guide-columns, .guide-feature-grid, .guide-report { grid-template-columns: 1fr; }
    .guide-toc a { min-height: 96px; }
    .guide-section-heading { align-items: flex-start; }
    .guide-number { flex-basis: 44px; width: 44px; height: 44px; }
    .guide-cta { align-items: stretch; flex-direction: column; }
    .guide-cta .btn { width: 100%; min-width: 0; }
}
.preference-options { display: grid; gap: .65rem; padding: 1rem; margin: 1rem 0; background: var(--sage-soft); border-radius: 12px; }
.preference-options label,.sharing-box label { display: flex; align-items: flex-start; gap: .55rem; }
.privacy-hint { padding: .8rem 1rem; color: #446557; border-left: 4px solid var(--sage); background: #f5f8f5; }
.group-hero {
    display: grid;
    grid-template-columns: 1fr minmax(300px, .55fr);
    gap: 1.5rem;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    margin-bottom: 1.5rem;
    color: #fff;
    background: var(--navy);
    border-radius: 20px;
}
.group-hero h2 { margin: .3rem 0; color: #fff; }
.group-hero p { color: #dce8e3; }
.group-hero .eyebrow { color: #f4a99c; }
.sharing-box { display: grid; gap: .6rem; padding: 1rem; color: var(--ink); background: #fff; border-radius: 13px; }
.group-invite { margin-bottom: 1.5rem; }
.group-invite h2 { margin-top: 0; }
.pending-invitations { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pending-invitations strong { width: 100%; }
.pending-invitations span { padding: .4rem .7rem; background: var(--sage-soft); border-radius: 999px; }
.pending-invitations small { color: var(--muted); }
.family-member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1rem; }
.family-member-card { padding: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 8px 28px rgb(26 58 68 / 5%); }
.family-member-heading { display: flex; gap: .85rem; align-items: center; }
.family-member-heading h2 { margin: 0; font-size: 1.35rem; }
.family-member-heading small,.muted-info { color: var(--muted); }
.shared-profile,.shared-gifts { display: grid; gap: .45rem; padding: .85rem; margin: 1rem 0; background: #f6f8f6; border-radius: 10px; }
.shared-profile p { margin: 0; }
.shared-gifts a { display: flex; justify-content: space-between; gap: 1rem; color: var(--navy); text-decoration: none; }
.shared-gifts span { color: var(--muted); white-space: nowrap; }
.danger-zone { margin-top: 1.5rem; text-align: right; }
@media (max-width: 767px) {
    .link-import,.group-hero { grid-template-columns: 1fr; }
    .inline-form { align-items: stretch; flex-direction: column; }
    .inline-form .btn { width: 100%; }
    .danger-zone .btn { width: 100%; }
}
.feedback-form { margin-bottom: 1.5rem; }
.feedback-textarea { min-height: 150px; }
.feedback-diagnostic-note {
    display: grid;
    align-content: center;
    gap: .2rem;
    padding: .75rem .85rem;
    color: #31594a;
    background: var(--sage-soft);
    border-radius: 10px;
}
.feedback-diagnostic-note small { line-height: 1.4; }
.feedback-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr)); gap: 1rem; }
.feedback-card {
    display: grid;
    gap: .6rem;
    padding: 1.25rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
    text-decoration: none;
}
.feedback-card:hover { color: var(--ink); border-color: #b9cfc0; transform: translateY(-2px); }
.feedback-card > div:first-child,.feedback-admin-meta { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.feedback-card h2 { margin: 0; color: var(--navy-deep); font-size: 1.28rem; }
.feedback-card p { margin: 0; color: var(--muted); }
.feedback-card > strong { color: #315f4b; }
.feedback-id {
    display: inline-block;
    color: var(--coral-dark);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.feedback-detail { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.feedback-facts { display: grid; grid-template-columns: minmax(150px, .3fr) 1fr; gap: .6rem 1rem; margin: 1rem 0 0; }
.feedback-facts dt { color: var(--navy-deep); }
.feedback-facts dd { margin: 0; white-space: pre-wrap; }
.feedback-links { display: grid; gap: .55rem; }
.feedback-links a {
    display: grid;
    grid-template-columns: 160px 1fr auto;
    gap: 1rem;
    padding: .8rem 1rem;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    text-decoration: none;
}
.feedback-links a:hover { background: var(--sage-soft); }
.feedback-links span { color: var(--coral-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 750; }
.feedback-links small { color: var(--muted); }
.feedback-timeline { display: grid; gap: .7rem; margin-bottom: 1.25rem; }
.feedback-timeline article { padding: .9rem 1rem; background: #f8faf8; border-left: 4px solid var(--sage); border-radius: 0 10px 10px 0; }
.feedback-timeline article.admin-message { border-left-color: var(--coral); background: #fff5f1; }
.feedback-timeline article.internal-message { border-left-color: #9b7b28; background: #fff9e8; }
.feedback-timeline span,.feedback-timeline strong { display: block; }
.feedback-timeline span { color: var(--muted); font-size: .8rem; }
.feedback-timeline p { margin: .35rem 0 0; }
.feedback-filters { margin-bottom: 1.5rem; }
.filter-action { display: flex; align-items: end; }
.diagnostic-value { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .82rem; overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .feedback-links a { grid-template-columns: 1fr; gap: .2rem; }
    .feedback-facts { grid-template-columns: 1fr; }
    .feedback-facts dd { margin-bottom: .6rem; }
}
.feedback-files { display: flex; flex-wrap: wrap; gap: .45rem; }
.feedback-files span { padding: .35rem .6rem; background: var(--sage-soft); border-radius: 999px; font-size: .82rem; }
.feedback-attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; }
.feedback-attachments a { display: grid; gap: .45rem; color: var(--ink); text-decoration: none; }
.feedback-attachments img { width: 100%; height: 180px; object-fit: contain; background: #f4f5f7; border: 1px solid var(--line); border-radius: 10px; }
.admin-account-summary { display: grid; grid-template-columns: repeat(5, minmax(120px, 1fr)); gap: .65rem; margin-bottom: 1rem; }
.admin-account-summary button {
    display: grid;
    gap: .1rem;
    padding: .8rem 1rem;
    color: var(--muted);
    background: #f8faf8;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-align: left;
}
.admin-account-summary button:hover,.admin-account-summary button.active { color: var(--navy-deep); background: var(--sage-soft); border-color: #a9c5b3; }
.admin-account-summary strong { font-size: 1.35rem; }
.admin-account-summary span { font-size: .82rem; }
.admin-account-search { margin-bottom: 1rem; }
.admin-account-table td { vertical-align: middle; }
.admin-account-table td > small { display: block; margin-top: .18rem; color: var(--muted); font-size: .76rem; }
@media (max-width: 1100px) {
    .account-directory-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .account-directory-table tbody { display: block; }
    .account-directory-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: .25rem;
        margin: .7rem 0;
        padding: .6rem;
        border: 1px solid var(--line);
        border-radius: 10px;
    }
    .account-directory-table td { display: block; min-width: 0; padding: .3rem .1rem; border: 0; overflow-wrap: anywhere; }
    .account-directory-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .75rem; font-weight: 700; }
    .account-directory-table .btn { max-width: 100%; white-space: normal; text-align: left; }
}
.account-status { display: inline-flex; padding: .28rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.account-status.active { color: #24563c; background: #e4f3e8; }
.account-status.pending { color: #805b0e; background: #fff2c9; }
.account-status.locked { color: #8a382c; background: #fde4df; }
.account-status.deletion { color: #5c496f; background: #eee6f6; }
.account-actions { flex-wrap: nowrap; }
.empty-inline { padding: 1rem; color: var(--muted); background: #f8faf8; border-radius: 10px; text-align: center; }
@media (max-width: 900px) {
    .admin-account-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .account-actions { flex-wrap: wrap; }
}
.dashboard-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0 0 2rem; }
.dashboard-actions a {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 86px;
    padding: 1rem 1.2rem;
    color: var(--navy-deep);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 28px rgb(26 58 68 / 5%);
    text-decoration: none;
}
.dashboard-actions a:hover { border-color: #b8ccbe; transform: translateY(-2px); }
.dashboard-actions .nav-glyph { width: 2rem; margin: 0; }
.dashboard-actions .nav-icon { width: 1.8rem; height: 1.8rem; }
.dashboard-favorites { grid-column: 3; grid-row: 1; }
.dashboard-actions .admin-action { background: linear-gradient(145deg, #f0f5f1, #fff); }
.filter-tabs { display: flex; gap: .45rem; margin: 0 0 1.25rem; overflow-x: auto; }
.filter-tabs button {
    display: inline-flex;
    gap: .45rem;
    align-items: center;
    padding: .65rem .9rem;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
}
.filter-tabs button.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.filter-tabs span {
    display: grid;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0 .3rem;
    place-items: center;
    background: rgb(255 255 255 / 18%);
    border-radius: 999px;
    font-size: .76rem;
}
.event-card-labels { display: flex; justify-content: space-between; gap: .45rem; align-items: center; }
.role-label,.choice-label { padding: .3rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 750; }
.role-label { color: #31594a; background: var(--sage-soft); }
.choice-label { color: #805b0e; background: #fff2c9; }
.choice-label.selected { color: #31594a; background: #e4f3e8; }
.choice-label.purchased { color: #fff; background: var(--sage); }
.event-recipient { margin: -.2rem 0 .4rem; color: var(--muted); font-size: .9rem; }
.event-detail-flow { display: flex; flex-direction: column; }
.event-detail-flow > * { order: 40; }
.event-detail-flow > .event-decision { order: 5; }
.event-detail-flow > .event-gifts-heading,.event-detail-flow > .event-gifts-grid { order: 10; }
.event-detail-flow > .event-gift-additions { order: 11; }
.event-detail-flow > #guests { order: 20; }
.event-detail-flow > #invitations { order: 30; }
.event-detail-flow > .event-recipient-section { order: 40; }
.event-detail-flow > .event-configuration { order: 50; }
.event-detail-flow > .event-management { order: 60; }
.event-section-nav {
    position: sticky;
    top: .5rem;
    z-index: 20;
    display: flex;
    gap: .45rem;
    padding: .55rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    background: rgb(248 249 246 / 92%);
    border: 1px solid var(--line);
    border-radius: 12px;
    backdrop-filter: blur(8px);
}
.event-section-nav a {
    display: inline-flex;
    align-items: center;
    padding: .65rem .9rem;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.event-section-nav a:hover,.event-section-nav a:focus-visible { color: #fff; background: var(--navy); border-color: var(--navy); }
.event-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; }
.contact-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .45rem; max-height: 260px; overflow-y: auto; }
.contact-picker label { display: flex; gap: .55rem; align-items: center; padding: .6rem; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.contact-picker span,.contact-picker small,.inviter-line small { display: block; }
.contact-picker small,.inviter-line small { color: var(--muted); font-size: .78rem; }
.suggestion-panel summary { color: var(--navy-deep); font-family: Georgia, serif; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.admin-submenu { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .65rem; margin-bottom: 1.5rem; }
.admin-submenu a {
    display: grid;
    gap: .45rem;
    min-width: 0;
    padding: .9rem;
    color: var(--navy-deep);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    text-decoration: none;
}
.admin-submenu a:hover,.admin-submenu a.active { background: var(--sage-soft); border-color: #a9c5b3; }
.admin-submenu .nav-glyph { margin: 0; }
.diagnostic-list dd { overflow-wrap: anywhere; }
.error-panel { max-width: 780px; margin: 3rem auto; }
.error-reference { padding: .75rem; background: #f6f8f6; border-radius: 9px; overflow-wrap: anywhere; }
.notification-nav,.notification-topbar,.dashboard-notifications { position: relative; }
.notification-count {
    display: inline-grid;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: auto;
    padding: 0 .3rem;
    place-items: center;
    color: #fff;
    background: var(--coral);
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
}
.notification-topbar .notification-count { position: absolute; top: -6px; right: -7px; }
.dashboard-notifications .notification-count { position: static; margin-left: 0; flex-shrink: 0; }
.notification-read { width: max-content; margin-top: .7rem; }
.notification-list article.actionable { padding: 1rem; margin-bottom: .65rem; background: #fff8f5; border: 1px solid #f2d6cf; border-radius: 12px; }
.notification-actions { margin-top: .75rem; }
.integration-grid { align-items: stretch; }
.integration-grid > .panel { display: flex; min-width: 0; flex-direction: column; gap: .65rem; }
.integration-grid > .panel > * { margin-block: 0; }
.shortcut-card .btn { align-self: flex-start; }
.shortcut-card ol { padding-left: 1.3rem; }
.configuration-warning { color: #8a5a13; font-size: .88rem; }
.connection-value {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-top: 1px solid var(--line);
}
.connection-value code { padding: .55rem; overflow-wrap: anywhere; background: #f6f8f6; border-radius: 8px; }
.invitation-methods { display: grid; gap: 1rem; }
.invitation-methods article { min-width: 0; padding: 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.invitation-methods article.invitation-method-muted { background: #f3f5f4; }
.invitation-methods article > :first-child { margin-top: 0; }
.invitation-methods article > :last-child { margin-bottom: 0; }
.panel form > .form-grid + .actions,.panel form > .form-grid + .btn { margin-top: 1rem; }
@media (max-width: 900px) {
    .admin-submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .dashboard-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-actions a { min-width: 0; min-height: 76px; padding: .7rem .6rem; flex-wrap: nowrap; overflow-wrap: anywhere; text-align: left; }
    .dashboard-favorites { grid-column: auto; grid-row: auto; }
    .event-detail-flow > * { order: 40; }
    .event-detail-flow > .event-gifts-heading,.event-detail-flow > .event-gifts-grid { order: 10; }
    .event-detail-flow > #guests { order: 20; }
    .event-detail-flow > #invitations { order: 30; }
    .connection-value { grid-template-columns: 1fr; }
    .connection-value .btn,.shortcut-card .btn { width: 100%; }
    .invitation-methods article { padding: 1rem; }
}
@media (max-width: 375px) {
    .dashboard-actions a { gap: .4rem; padding: .7rem .5rem; }
    .dashboard-actions strong { font-size: .85rem; }
}
.gift-card-body > .gift-card-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.5;
    max-height: 3em;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.feedback-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.shortcut-card { scroll-margin-top: 6rem; }
.notifications-heading > div { min-width: 0; }
.notifications-heading > .btn { flex-shrink: 0; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 767px) {
    .notifications-heading { flex-direction: column; align-items: stretch; gap: 1rem; }
    .notifications-heading > .btn { width: 100%; margin-top: 0; }
}
.dashboard-actions > a { min-width: 0; }
.dashboard-actions .nav-glyph { flex: 0 0 1.8rem; }
.dashboard-actions strong { min-width: 0; overflow-wrap: anywhere; }
.dashboard-action-label { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-width: 0; }
.dashboard-sharing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(120deg, var(--sage-soft), #fff);
}
.dashboard-sharing h2 { margin: 0 0 .4rem; }
.dashboard-sharing p { margin: 0; max-width: 46rem; }
.dashboard-sharing-actions { display: grid; gap: .6rem; flex-shrink: 0; }
@media (max-width: 767px) {
    .dashboard-sharing { flex-direction: column; align-items: stretch; }
    .dashboard-actions strong { font-size: clamp(.85rem, 3.7vw, .9rem); }
    .dashboard-actions .nav-icon { width: 1.5rem; height: 1.5rem; }
    .dashboard-actions .nav-glyph { flex-basis: 1.5rem; width: 1.5rem; }
}
.pwa-recovery {
    position: fixed;
    z-index: 2000;
    inset: auto 1rem 1rem;
    max-width: 40rem;
    padding: 1rem;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}
.pwa-recovery[hidden] { display: none; }
.pwa-recovery .actions { flex-wrap: wrap; }

.read-status { font-size: .85rem; }
.feedback-heading { flex-wrap: wrap; gap: 1rem; }
.feedback-heading > div { min-width: 0; flex: 1 1 16rem; }
.feedback-heading > .btn { max-width: 100%; white-space: normal; }
.notification-filter-options { margin-bottom: 1.5rem; }
.notification-filter-options label { min-width: 0; }
.notification-filters button { white-space: normal; }
.notification-list .btn { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }

.operation-activity {
    position: fixed;
    z-index: 1100;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .7rem;
    width: max-content;
    max-width: calc(100vw - 2rem);
    padding: .8rem 1rem;
    color: white;
    background: #163f49;
    border-radius: .8rem;
    box-shadow: 0 3px 18px #0003;
    pointer-events: none;
}
.operation-spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    flex: 0 0 1.2rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: operation-spin .8s linear infinite;
}
@keyframes operation-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .operation-spinner { animation: none; border-style: dotted; }
}
.invitation-friend-option, .family-contact-picker label {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin: .8rem 0;
    overflow-wrap: anywhere;
}
.invitation-friend-option input, .family-contact-picker input {
    flex: 0 0 auto;
    margin-top: .25rem;
}
.family-contact-picker {
    margin-top: 1rem;
    min-width: 0;
}
.family-contact-picker small {
    display: block;
}
.friend-shared-link, .invitation-person {
    overflow-wrap: anywhere;
}
