:root {
    --ink: #1f2933;
    --muted: #64748b;
    --line: #d8dee8;
    --panel: #ffffff;
    --bg: #f5f7fb;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --warn: #b45309;
    --ok: #15803d;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

* {
    box-sizing: border-box;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

[hidden] { display: none !important; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.dev-banner {
    background: #ff6b35;
    color: #fff;
    text-align: center;
    font-size: .8rem;
    font-weight: 600;
    padding: 5px 12px;
    letter-spacing: .04em;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.topbar {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar-inner,
.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--ink);
}

.brand-tld {
    color: #9aa8ad;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 6px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--ink);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.wrap {
    padding: 32px 0 56px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 36px;
    align-items: center;
    min-height: calc(100vh - 128px);
    padding-bottom: 44px;
}

.hero h1,
.page-title {
    font-size: clamp(2rem, 5vw, 4.6rem);
    line-height: 1.02;
    margin: 0 0 18px;
    letter-spacing: 0;
}

.lead {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.7;
    max-width: 680px;
}

.hero-visual {
    aspect-ratio: 4 / 5;
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(130deg, rgba(15, 118, 110, 0.86), rgba(30, 64, 175, 0.68)),
        url("https://images.unsplash.com/photo-1512909006721-3d6018887383?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}

.actions,
.row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid var(--brand);
    border-radius: 6px;
    padding: 0 16px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover,
button:hover {
    background: var(--brand-dark);
    text-decoration: none;
}

.btn:active,
button:active {
    transform: scale(0.98);
}

.flash {
    animation: slideIn 0.3s ease-out;
}

.btn.secondary,
button.secondary {
    background: #f5f5f5;
    color: var(--ink);
    border-color: #d0d0d0;
}

.btn.secondary:hover,
button.secondary:hover {
    background: #efefef;
    color: var(--ink);
}

.btn.danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #ffffff;
}

.btn.danger:hover {
    background: #b85863;
}

.btn.compact {
    min-height: 34px;
    padding: 0 12px;
}

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

.grid.gifts {
    grid-template-columns: repeat(2, 1fr);
}

.card,
.form-panel,
.table-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.card h2,
.card h3 {
    margin-top: 0;
}

.inline-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.inline-panel h2 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.inline-form {
    display: inline-flex;
    gap: 10px;
}

.session-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.session-item {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

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

.pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 12px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-size: 0.85rem;
    font-weight: 600;
}

.pill.warn {
    background: #f5ebe0;
    color: #a88066;
}

.pill.ok {
    background: var(--accent-light);
    color: var(--ok);
}

.pill.danger {
    background: #f5e8e8;
    color: #b36666;
}

.pill.info {
    background: #e0f2fe;
    color: #075985;
}

.pill.unavailable,
.btn.unavailable {
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.btn.success {
    background: var(--ok);
    border-color: var(--ok);
    color: #ffffff;
}

.btn.warning {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

.btn.danger,
button.danger {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

form {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 7px;
    font-weight: 700;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
textarea,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    font: inherit;
    color: var(--ink);
    background: #ffffff;
}

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

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.table-tools {
    margin-bottom: 14px;
    max-width: 420px;
}

.table-panel {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 780px;
}

.data-table th,
.data-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
}

.data-table tr:hover td {
    background: #f8fafc;
}

.import-host-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.import-host-card {
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(234, 219, 234, 0.96);
    border-top: 4px solid var(--brand);
    border-radius: 8px;
    background: rgba(255, 250, 255, 0.97);
}

.import-host-card h2 {
    margin: 0 0 18px;
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.import-host-stats,
.import-evidence {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.import-tools {
    max-width: 540px;
}

.import-retry-form {
    grid-template-columns: minmax(240px, 1fr) auto;
    align-items: end;
    margin-bottom: 16px;
}

.inline-retry-form {
    display: inline-flex;
    margin-top: 8px;
}

.import-table-panel {
    padding: 0;
}

.imports-table {
    min-width: 980px;
}

.imports-table th,
.imports-table td {
    vertical-align: top;
}

.imports-table th:nth-child(6),
.imports-table td:nth-child(6) {
    width: 34%;
}

.diagnostic-cell {
    max-width: 420px;
}

.diagnostic-cell > span:first-child {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.45;
}

.import-evidence {
    margin-top: 8px;
}

.compact-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.75rem;
}

.import-detail-row td {
    background: #fffafd;
    padding: 0 14px 16px;
}

.import-diagnostic {
    display: grid;
    gap: 10px;
    margin: 12px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.import-diagnostic h3 {
    margin: 0;
    font-size: 1rem;
}

.import-reason {
    margin: 0;
    line-height: 1.55;
}

.diagnostic-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
}

.diagnostic-meta span {
    display: grid;
    gap: 2px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fbf7fb;
    color: var(--muted);
    font-size: 0.86rem;
}

.diagnostic-meta strong {
    color: var(--ink);
    font-size: 0.76rem;
    text-transform: uppercase;
}

.import-url-line {
    margin: 0;
    overflow-wrap: anywhere;
}

.import-response-block {
    margin-top: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.import-response-block summary {
    cursor: pointer;
    padding: 10px 12px;
    color: var(--brand-dark);
    font-weight: 800;
}

.import-response-block pre {
    max-height: 260px;
    margin: 0;
    padding: 12px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #111827;
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.flash {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    background: #ffffff;
}

.flash.success {
    border-color: #86efac;
    background: #f0fdf4;
}

.flash.error {
    border-color: #fecaca;
    background: #fff1f2;
}

.gift {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 16px;
    padding: 14px !important;
}

.gift h2 {
    margin: 0 0 6px !important;
    font-size: 0.95rem;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.gift p {
    margin: 4px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.gift .muted {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px !important;
}

.gift .price {
    font-size: 0.95rem;
}

.gift .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.reserve-amount {
    min-width: 150px;
    font-size: 0.8rem;
}

.reserve-amount input {
    min-height: 32px;
    padding: 6px 8px;
}

.gift-content {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 8px;
}

.gift-meta {
    flex-grow: 1;
}

.gift-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.owner-workbench,
.history-panel,
.subscription-list {
    margin: 18px 0 24px;
}

.workbench-grid,
.subscription-list {
    display: grid;
    gap: 14px;
}

.workbench-item,
.alternative-card,
.subscription-card {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

/* Votes sur propositions */
.proposal-vote-counts {
    display: flex;
    gap: 10px;
    margin: 8px 0 4px;
}

.vote-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.88rem;
    background: var(--bg);
    border: 1px solid var(--line);
}

.vote-count.is-mine {
    font-weight: 700;
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, white);
}

.proposal-vote-form {
    display: grid;
    gap: 8px;
}

.proposal-vote-buttons {
    display: flex;
    gap: 6px;
}

.proposal-vote-comment {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
}

.subscription-card {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: start;
}

.preferences-form {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.event-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.event-list li {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-left: 3px solid var(--brand);
    background: #f8fafc;
    border-radius: 6px;
}

.event-list li.notif-unread {
    background: #fef9ec;
    border-left-color: #f59e0b;
}

.event-list span {
    color: var(--muted);
    font-size: 0.86rem;
}

.notif-badge-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    margin-left: 4px;
    vertical-align: middle;
}

.notif-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(15, 23, 42, 0.68);
}

.modal.open {
    display: flex;
}

.modal-panel {
    width: min(640px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    border-radius: 8px;
    background: #ffffff;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-section {
    display: grid;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.form-section h3 {
    margin: 0;
    font-size: 1rem;
}

.checkbox-label {
    display: flex;
    gap: 9px;
    align-items: flex-start;
}

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

.list-info {
    padding: 16px 20px !important;
    margin-bottom: 12px;
}

.list-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.list-cover-image {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.list-theme {
    margin: 0 0 8px;
    color: var(--brand-dark);
    font-size: 1.05rem;
    font-weight: 800;
}

.list-objective {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 12px 14px;
    border-left: 3px solid var(--brand);
    background: #f8fafc;
    border-radius: 6px;
}

.list-objective p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.list-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.list-links a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.item-context {
    display: grid;
    gap: 6px;
    margin: 10px 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafc;
}

.item-context p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.item-context strong {
    color: var(--ink);
}

.item-group-title {
    grid-column: 1 / -1;
    margin: 10px 0 0;
    padding: 12px 0 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.25rem;
}

.map-picker {
    display: grid;
    gap: 10px;
}

.map-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.map-canvas,
.item-map {
    width: 100%;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #eef2f7;
}

.item-map {
    min-height: 180px;
    margin-top: 10px;
}

.map-results {
    display: grid;
    gap: 6px;
}

.map-result {
    justify-content: flex-start;
    min-height: 36px;
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    font-weight: 600;
}

.leaflet-container {
    font: inherit;
}

.leaflet-control-attribution {
    font-size: 0.7rem;
}

@media (max-width: 620px) {
    .map-search-row {
        grid-template-columns: 1fr;
    }
}

.inspiration-builder {
    display: grid;
    gap: 8px;
}

.inspiration-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.inspiration-list {
    display: grid;
    gap: 8px;
}

.inspiration-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
}

.inspiration-item a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

@media (max-width: 620px) {
    .inspiration-input-row,
    .inspiration-item {
        grid-template-columns: 1fr;
    }
}

.gift .btn,
.gift button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 0.8rem;
}

.gift img,
.gift .placeholder {
    width: 116px;
    height: 116px;
    object-fit: contain;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid var(--line);
}

.price {
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-note {
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Search and Filtering */
.search-filters {
    margin-bottom: 24px;
}

.search-form {
    display: grid;
    gap: 16px;
}

.search-input-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    font-size: 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.filter-select {
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 0.95rem;
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Statistics Panel */
.stats-panel {
    margin-bottom: 24px;
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(30, 64, 175, 0.05));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand-dark);
    line-height: 1.2;
}

.stat-percent {
    color: var(--ok);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--brand);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: var(--line);
    font-weight: 300;
}

.breadcrumb-current {
    color: var(--ink);
    font-weight: 600;
}

/* Invitation Forms */
.invitation-form {
    display: grid;
    gap: 20px;
    max-width: 600px;
}

.invitation-info {
    margin-top: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--brand);
}

.invitation-info h3 {
    margin-top: 0;
    color: var(--brand-dark);
}

.invitation-info ul {
    margin: 0;
    padding-left: 20px;
}

/* Share Page */
.share-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.share-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.share-section h2 {
    margin: 0 0 16px;
    font-size: 1.2rem;
    color: var(--ink);
}

/* QR Code */
.share-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

#qrcode {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
}

#qrcode img {
    display: block;
    width: 100% !important;
    height: auto !important;
}

/* Share Link */
.share-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.share-url-input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #f8fafc;
}

/* Social Buttons */
.share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--line);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: white;
    color: var(--ink);
}

button.share-btn {
    cursor: pointer;
    font-family: inherit;
}

.share-btn[hidden] {
    display: none;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.share-btn.whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.share-btn.whatsapp:hover {
    background: #f0fdf4;
}

.share-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-btn.facebook:hover {
    background: #f0f9ff;
}

.share-btn.twitter {
    color: #000;
    border-color: #000;
}

.share-btn.twitter:hover {
    background: #f8fafc;
}

.share-btn.email {
    color: var(--brand-dark);
    border-color: var(--brand-dark);
}

.share-btn.email:hover {
    background: #f0fdf4;
}

.share-btn.messages {
    color: #0f8f4f;
    border-color: #0f8f4f;
}

.share-btn.messages:hover {
    background: #f0fdf4;
}

.share-btn.messenger {
    color: #006aff;
    border-color: #006aff;
}

.share-btn.messenger:hover {
    background: #eff6ff;
}

.share-btn.native-share {
    color: #334155;
    border-color: #94a3b8;
}

.share-btn.native-share:hover {
    background: #f8fafc;
}

/* Info Section */
.info-grid {
    display: grid;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.8rem;
}

.info-item span {
    font-weight: 600;
    color: var(--ink);
}

/* Action Footer */
.action-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
    .subscription-card {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .share-container {
        grid-template-columns: 1fr;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .share-input-group {
        flex-direction: column;
    }
}

/* Audit Logs */
.filters-section {
    margin-bottom: 24px;
}

.filter-form {
    display: grid;
    gap: 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.filter-row label {
    gap: 8px;
}

.filter-row select {
    width: 100%;
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

details {
    cursor: pointer;
}

details summary {
    color: var(--brand-dark);
    font-weight: 600;
    user-select: none;
}

details summary:hover {
    text-decoration: underline;
}

details[open] summary {
    color: var(--brand);
}

/* Profile Page */
.profile-page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-page-header .page-title {
    margin-bottom: 0;
}

.profile-stats-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 20px;
}

.profile-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 6px 14px;
    background: #f4f6fa;
    border-radius: 6px;
}

.profile-stat-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1.1;
}

.profile-stat-label {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.profile-stat-email {
    margin-left: auto;
    font-size: 0.85rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.profile-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-section {
    margin: 0;
}

.profile-section h2 {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
}

.profile-section > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.profile-section > summary::-webkit-details-marker { display: none; }

.profile-section > summary h2 {
    margin: 0;
}

.profile-section > summary::after {
    content: '›';
    font-size: 1.4rem;
    color: var(--muted);
    transform: rotate(90deg);
    transition: transform 0.2s;
    line-height: 1;
}

details.profile-section[open] > summary::after {
    transform: rotate(-90deg);
}

.profile-submit {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
}

.profile-sessions {
    margin-top: 16px;
}

.session-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    margin-left: 6px;
    vertical-align: middle;
}

.profile-visibility-prefs {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.social-networks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.social-network-label {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.avatar-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
}

.avatar-preview {
    width: 96px;
    height: 96px;
    border-radius: 10px;
    overflow: hidden;
    background: white;
    border: 3px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 2.5rem;
    line-height: 1;
}

.avatar-upload input[type="file"] {
    width: 100%;
}

.checkbox-label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    background: #f8fafc;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin: 3px 0 0 0;
    flex-shrink: 0;
}

.checkbox-label span {
    font-weight: 600;
    grid-column: 2;
}

.checkbox-label small {
    grid-column: 2;
    margin-top: 0;
}

@media (max-width: 800px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .profile-stat-email {
        margin-left: 0;
        width: 100%;
    }
    .profile-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Public User Profile */
.user-profile-header {
    margin-bottom: 40px;
}

.user-profile-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    padding: 32px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    align-items: start;
}

.user-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    border: 3px solid var(--brand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    font-size: 4rem;
    line-height: 1;
}

.user-info {
    display: grid;
    gap: 12px;
}

.user-name {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
}

.user-pseudo {
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.user-bio {
    margin: 8px 0;
    color: var(--ink);
    line-height: 1.6;
    max-width: 600px;
}

.user-location {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.user-stats .stat {
    display: grid;
    gap: 4px;
    text-align: center;
}

.user-stats .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.user-stats .stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
}

.user-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 760px) {
    .user-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .user-avatar-large {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .user-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .user-actions {
        flex-direction: column;
    }
}

/* Enhanced Dashboard */
.dashboard-lists {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.list-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    background: var(--panel);
    border: 2px solid var(--line);
    border-radius: 10px;
    transition: all 0.2s;
}

.list-card:hover {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.1);
    transform: translateY(-2px);
}

.list-card.urgent {
    border-color: var(--warn);
    background: #fffbf0;
}

.list-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.list-card h3 {
    margin: 0;
    color: var(--ink);
    flex: 1;
}

.tag-urgent {
    background: var(--warn);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.list-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.list-preview-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    position: relative;
}

.list-preview-images img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f8fafc;
}

.preview-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-weight: 600;
    border-radius: 6px;
}

.list-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.list-stats-inline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 6px;
}

.list-stats-inline .stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.list-stats-inline .stat-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    font-weight: 600;
}

.list-stats-inline .stat-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.list-actions .btn,
.list-actions .btn.secondary {
    flex: 1;
    min-height: 36px;
    font-size: 0.9rem;
}

/* Activity Timeline */
.activity-timeline {
    display: grid;
    gap: 16px;
}

.activity-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 16px;
    background: var(--panel);
    border-left: 4px solid var(--brand);
    border-radius: 6px;
}

.activity-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 600;
    color: var(--brand-dark);
}

.activity-time small {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

.activity-content h3 {
    margin: 0 0 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    font-size: 1rem;
}

.activity-content details {
    margin-top: 12px;
}

@media (max-width: 760px) {
    .activity-item {
        grid-template-columns: 1fr;
    }

    .activity-time {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        aspect-ratio: 16 / 10;
    }

    .two,
    .gift {
        grid-template-columns: 1fr;
    }

    .grid.gifts {
        grid-template-columns: 1fr;
    }

    .gift img,
    .gift .placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* Invitation Form Styles */
.invitation-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.invitation-input-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.invitation-input-section label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-group input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--panel);
}

.input-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.input-group .btn {
    padding: 10px 18px;
    white-space: nowrap;
}

#email-error {
    color: #dc2626;
    font-size: 0.85rem;
    display: block;
    min-height: 1.2em;
}

.error-text {
    color: #dc2626;
}

/* Email List Section */
.invitation-list-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invitation-list-section label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.count-badge {
    display: inline-block;
    background: var(--brand);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.email-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.email-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    animation: fadeIn 0.3s ease;
}

.email-item .email-text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--ink);
    word-break: break-all;
}

.btn-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    transition: background-color 0.2s;
}

.btn-remove:hover {
    background: rgba(220, 38, 38, 0.1);
}

/* Message Section */
.invitation-message-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.invitation-message-section label {
    font-weight: 600;
    color: var(--ink);
    font-size: 0.95rem;
}

.invitation-message-section textarea {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--ink);
    background: var(--panel);
    resize: vertical;
    min-height: 100px;
}

.invitation-message-section textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

/* Action Buttons */
#action-buttons {
    display: flex;
    gap: 8px;
}

#send-btn {
    flex: 0 0 auto;
}

#send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }

    .input-group .btn {
        width: 100%;
    }

    #action-buttons {
        flex-direction: column;
    }
}

/* --- Collaboration toolkit --- */
.collab-panel {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.collab-panel--quiet {
    background: #fafafa;
}

.collab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.collab-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.collab-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.profile-info-panel {
    margin: 22px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.profile-info-card {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.profile-info-card h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

.profile-info-card dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.profile-info-card dl div {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.profile-info-card dl div:first-child {
    padding-top: 0;
    border-top: 0;
}

.profile-info-card dt {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.profile-info-card dd {
    margin: 3px 0 0;
    font-weight: 750;
}

.profile-info-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 500;
}

.profile-info-editor {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-info-editor summary {
    cursor: pointer;
    color: var(--brand-dark);
    font-weight: 800;
}

.profile-entry-list {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.profile-entry-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    background: var(--surface-2, #f7f7f7);
    border-radius: 8px;
    padding: 8px;
}

.profile-entry-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-entry-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.profile-entry-top {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(130px, 1fr) minmax(150px, 1.4fr) 60px;
    gap: 6px;
    align-items: center;
}

.profile-entry-note {
    width: 100%;
    resize: vertical;
    min-height: 48px;
    font-size: .875rem;
    box-sizing: border-box;
}

.profile-entry-order {
    width: 60px;
}

.profile-entry-add {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.profile-entry-add summary {
    cursor: pointer;
    color: var(--brand-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.profile-entry-form--new {
    margin-top: 10px;
}

.profile-save-all-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 8px;
}

.profile-save-feedback {
    font-size: .875rem;
    color: var(--ok, #2e7d32);
    font-weight: 600;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.profile-section-type-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.profile-entry-handle {
    cursor: grab;
    color: var(--muted, #999);
    font-size: 1.2rem;
    line-height: 1;
    padding: 2px 4px;
    user-select: none;
    flex-shrink: 0;
    align-self: center;
}

.profile-entry-handle:active {
    cursor: grabbing;
}

.profile-entry-reorder-btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    align-self: center;
}

.btn-reorder {
    background: none;
    border: 1px solid var(--line, #ddd);
    border-radius: 4px;
    padding: 2px 6px;
    cursor: pointer;
    font-size: .8rem;
    line-height: 1.2;
    color: var(--text, #333);
}

.btn-reorder:hover {
    background: var(--surface-2, #f0f0f0);
}

.profile-entry-row.dragging {
    opacity: 0.4;
}

.profile-entry-row.drag-over {
    outline: 2px dashed var(--brand, #5a6fd6);
    outline-offset: 2px;
}

.mini-stack {
    display: grid;
    gap: 8px;
}

.segmented-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.compact-list,
.timeline-list {
    margin: 10px 0 0;
    padding-left: 20px;
}

.compact-list li,
.timeline-list li {
    margin: 6px 0;
}

.timeline-list span,
.notification-menu span {
    display: block;
    color: var(--muted);
    font-size: 0.86rem;
}

.map-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.map-link {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
}

.map-link span {
    color: var(--muted);
    font-size: 0.9rem;
}

.mini-collab-actions,
.item-history {
    margin-top: 10px;
}

.mini-collab-actions summary,
.item-history summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 700;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.notification-menu a {
    min-width: 260px;
    white-space: normal;
}

/* Gift Sources Display */
.sources-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0;
}

.source-card {
    padding: 10px 12px;
    background: var(--surface-2, #f7f7f7);
    border-radius: 8px;
    display: grid;
    gap: 4px;
}

.source-card-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.source-card-name {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: .95rem;
}

.source-card-name .source-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-price {
    flex-shrink: 0;
    font-size: .95rem;
}

.source-card-detail {
    font-size: .8rem;
    color: var(--muted, #888);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-card-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.source-item {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px;
    background: var(--bg);
    border-radius: 6px;
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.source-item .source-name {
    font-weight: 600;
    color: var(--ink);
    flex: 0 0 auto;
}

.source-favicon {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 3px;
    object-fit: contain;
    background: #ffffff;
}

.source-link {
    gap: 7px;
}

.source-link .source-favicon {
    width: 12px;
    height: 12px;
}

.gift img.source-favicon,
.data-table img.source-favicon,
img.source-favicon {
    width: 1em;
    height: 1em;
    max-width: 1em;
    max-height: 1em;
    display: inline-block;
    vertical-align: -0.12em;
    object-fit: contain;
    border: 0;
    border-radius: 3px;
    background: transparent;
}

.source-item .pill {
    flex: 0 0 auto;
}

.source-item .price,
.source-item .source-price {
    font-weight: 600;
    color: var(--brand);
    flex: 0 0 auto;
}

.source-item .meta {
    font-size: 0.85rem;
    color: var(--muted);
    flex: 0 0 auto;
}

.source-address {
    width: 100%;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px solid var(--line);
    white-space: pre-wrap;
}

/* Details tag styling */
.sources-details {
    margin: 8px 0;
}

.sources-details summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 600;
    user-select: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.sources-details summary:hover {
    color: var(--brand-dark);
}

.sources-details[open] summary {
    margin-bottom: 8px;
}

.sources-details .sources-list {
    margin-top: 8px;
}

@media (max-width: 600px) {
    .source-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .source-item .pill,
    .source-item .price,
    .source-item .source-price,
    .source-item .meta {
        display: block;
    }
}

/* Gift Edit - Sources Section */
.sources-section {
    margin-top: 32px;
    border-top: 2px solid var(--line);
    padding-top: 24px;
}

.sources-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.source-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: var(--brand);
    color: white;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.source-form-wrapper {
    margin-bottom: 24px;
    animation: slideIn 0.3s ease-out;
}

.source-form-wrapper .form-panel {
    margin: 0;
}

.source-form {
    display: grid;
    gap: 16px;
}

.source-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.source-form-trigger,
.source-form-submit,
.source-form-cancel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.source-form-cancel {
    background: #e5e7eb;
    color: var(--ink);
    border-color: #d1d5db;
}

.source-form-cancel:hover {
    background: #d1d5db;
}

.source-form-submit:disabled,
.source-form-trigger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.source-form-submit:disabled::after,
.source-form-trigger:disabled::after {
    content: "...";
    animation: pulse 1s infinite;
}

.table-panel {
    animation: fadeIn 0.3s ease-out;
}

.source-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.source-edit-btn,
.source-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.source-card-actions .btn {
    font-size: 0.8rem;
    padding: 6px 10px;
    min-height: 32px;
}

@media (max-width: 760px) {
    .sources-section {
        margin-top: 24px;
        padding-top: 16px;
    }


    .source-actions {
        flex-direction: column;
        gap: 4px;
    }

    .source-actions button {
        width: 100%;
    }

    .two {
        grid-template-columns: 1fr;
    }
}

/* Visual refresh */
:root {
    --ink: #25313f;
    --muted: #6b7788;
    --line: #dde5ed;
    --panel: #ffffff;
    --bg: #f7f3ed;
    --brand: #19756c;
    --brand-dark: #0f5f58;
    --accent: #d97745;
    --accent-soft: #fff1e8;
    --warn: #b45309;
    --ok: #16845f;
    --danger: #b42318;
    --shadow-sm: 0 8px 24px rgba(35, 49, 63, 0.07);
    --shadow-md: 0 18px 48px rgba(35, 49, 63, 0.11);
    --radius: 8px;
}

* {
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(25, 117, 108, 0.08), transparent 34rem),
        linear-gradient(180deg, #fbfaf7 0, var(--bg) 44rem);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: var(--brand-dark);
}

a:hover {
    color: var(--brand);
}

.topbar {
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(221, 229, 237, 0.9);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 26px rgba(35, 49, 63, 0.05);
}

.topbar-inner,
.wrap {
    width: min(1180px, calc(100% - 36px));
}

.topbar-inner {
    min-height: 70px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.16rem;
    letter-spacing: 0;
}

.brand::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.65) 45% 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.65) 45% 55%, transparent 55%),
        linear-gradient(135deg, var(--brand), var(--accent));
    box-shadow: 0 8px 18px rgba(25, 117, 108, 0.22);
}

.nav {
    gap: 8px;
}

.nav a:not(.btn) {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 6px;
    padding: 0 10px;
    color: #435161;
    font-weight: 650;
}

.nav a:not(.btn):hover {
    background: #eef7f5;
    color: var(--brand-dark);
    text-decoration: none;
}

.nav-more {
    position: relative;
}

.nav-more summary {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    padding: 0 10px;
    color: #435161;
    font-weight: 650;
    cursor: pointer;
    list-style: none;
}

.nav-more summary::-webkit-details-marker {
    display: none;
}

.nav-more summary::after {
    content: "▾";
    margin-left: 6px;
    font-size: 0.78rem;
    color: var(--muted);
}

.nav-more[open] summary,
.nav-more summary:hover {
    background: #eef7f5;
    color: var(--brand-dark);
}

.nav-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.nav-more-menu a {
    width: 100%;
    justify-content: flex-start;
    gap: 7px;
}

.wrap {
    padding: 34px 0 64px;
}

.hero {
    min-height: calc(100vh - 140px);
    gap: 42px;
}

.hero h1,
.page-title {
    max-width: 980px;
    font-size: clamp(2rem, 4.3vw, 3.7rem);
    line-height: 1.06;
    color: #1f2a37;
}

.hero .lead,
.lead {
    color: #5e6d7e;
}

.hero-visual {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.row {
    margin-bottom: 18px;
}

.actions {
    gap: 16px;
}

.btn,
button {
    min-height: 42px;
    border-radius: 7px;
    border-color: var(--brand);
    padding: 0 16px;
    background: linear-gradient(180deg, #21847b, var(--brand-dark));
    box-shadow: 0 6px 14px rgba(25, 117, 108, 0.17);
    letter-spacing: 0;
}

.btn:hover,
button:hover {
    background: linear-gradient(180deg, #1a7770, #0d524d);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(25, 117, 108, 0.2);
}

.btn:active,
button:active {
    transform: translateY(0);
}

.btn.secondary,
button.secondary,
.source-form-cancel {
    background: #ffffff;
    border-color: #cbd8e2;
    color: var(--brand-dark);
    box-shadow: none;
}

.btn.secondary:hover,
button.secondary:hover,
.source-form-cancel:hover {
    background: #f3faf8;
    border-color: #a9c9c3;
    box-shadow: 0 6px 16px rgba(35, 49, 63, 0.06);
}

.btn.danger,
button.danger {
    border-color: var(--danger);
    background: linear-gradient(180deg, #c9342a, var(--danger));
}

.btn.compact {
    min-height: 34px;
    padding: 0 12px;
}

.card,
.form-panel,
.table-panel,
.share-section,
.inline-panel {
    border: 1px solid rgba(213, 224, 233, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
}

.card,
.form-panel,
.table-panel {
    padding: 22px;
}

.card:hover {
    border-color: #c7dad6;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card h2,
.card h3,
.share-section h2,
.inline-panel h2 {
    color: #1f2a37;
}

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

.pill {
    min-height: 28px;
    border: 1px solid rgba(25, 117, 108, 0.14);
    border-radius: 999px;
    background: #eaf7f4;
    color: var(--brand-dark);
    font-size: 0.78rem;
    letter-spacing: 0;
}

.pill.warn {
    border-color: rgba(180, 83, 9, 0.18);
    background: #fff5eb;
}

.pill.ok {
    border-color: rgba(22, 132, 95, 0.18);
    background: #eefbf5;
}

label {
    color: #344151;
    font-size: 0.93rem;
}

input,
textarea,
select {
    border-color: #cfdae5;
    border-radius: 7px;
    background: #fffefd;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(25, 117, 108, 0.11);
}

.flash {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.flash.success {
    border-color: #9bd7bf;
    background: #effaf5;
}

.flash.error {
    border-color: #f3b7b2;
    background: #fff4f2;
}

.breadcrumbs {
    margin-bottom: 16px;
    padding: 0;
    font-size: 0.88rem;
}

.breadcrumbs a {
    color: #607083;
}

.breadcrumb-current {
    color: #263241;
}

.grid {
    gap: 20px;
}

.grid.gifts {
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.gift {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 16px !important;
}

.gift h2 {
    font-size: 1.04rem;
}

.gift p {
    color: #526071;
}

.gift img,
.gift .placeholder {
    width: 132px;
    height: 132px;
    border-color: #dbe5ed;
    background: linear-gradient(180deg, #ffffff, #f7fafb);
}

.gift .price,
.price {
    color: var(--brand-dark);
}

.gift .actions {
    align-items: center;
}

.reserve-amount {
    color: #405063;
}

.list-info {
    border-left: 4px solid var(--brand);
}

.search-filters {
    margin-bottom: 22px;
}

.search-controls {
    display: grid;
    gap: 14px;
}

.filter-row {
    gap: 12px;
}

.stats-panel {
    border-color: rgba(25, 117, 108, 0.16);
    background: linear-gradient(135deg, rgba(25, 117, 108, 0.08), rgba(217, 119, 69, 0.08));
}

.stat-item {
    border-color: #e1e8ee;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.stat-label {
    letter-spacing: 0;
}

.stat-value {
    color: var(--brand-dark);
}

.table-panel {
    overflow: auto;
}

.data-table {
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th {
    background: #f2f7f6;
    color: #5b6877;
    letter-spacing: 0;
}

.data-table th:first-child {
    border-top-left-radius: 7px;
}

.data-table th:last-child {
    border-top-right-radius: 7px;
}

.data-table td {
    background: #ffffff;
}

.data-table tr:hover td {
    background: #fbf7f1;
}

.share-container {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.share-section {
    padding: 24px;
}

#qrcode {
    width: fit-content;
    max-width: 100%;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: inset 0 0 0 6px #f8fafc;
}

#qrcode canvas,
#qrcode img {
    display: block;
    max-width: 256px;
    width: 100% !important;
    height: auto !important;
}

.share-input-group {
    align-items: stretch;
}

.share-url-input {
    background: #fbfaf7;
    color: #324153;
}

.share-btn {
    border-radius: 7px;
    background: #fffefd;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

.info-item {
    border: 1px solid #e2e9ef;
    background: #fbfaf7;
}

.source-form-wrapper {
    animation: fadeIn 0.22s ease-out;
}

.source-count {
    background: linear-gradient(180deg, var(--brand), var(--brand-dark));
}

@media (max-width: 900px) {
    .topbar-inner {
        align-items: center;
        flex-direction: row;
        padding: 14px 0;
        justify-content: space-between;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: white;
        border-top: 1px solid var(--line);
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }

    .nav.open {
        max-height: 80dvh;
    }

    /* Uniform row style for all nav items in mobile */
    .nav > a,
    .nav > button,
    .nav > form,
    .nav > details {
        width: 100%;
        border-bottom: 1px solid var(--line);
        margin: 0;
        border-radius: 0;
        box-sizing: border-box;
        flex-shrink: 0;
    }

    .nav > a:not(.btn),
    .nav-more > summary {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 20px;
        min-height: auto;
        font-size: 0.97rem;
        font-weight: 600;
        color: var(--ink);
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .nav > a:not(.btn):hover,
    .nav-more > summary:hover {
        background: #f5faf8;
    }

    .nav > form button {
        width: 100%;
        border-radius: 0;
        padding: 14px 20px;
        text-align: left;
        font-size: 0.97rem;
    }

    /* Remove the ▾ arrow from the inline summary in mobile */
    .nav-more summary::after {
        margin-left: auto;
    }

    /* Submenu: inline (not absolute) in mobile */
    .nav-more {
        position: static;
    }

    .nav-more-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        border-top: 1px solid var(--line);
        background: #f5faf8;
        padding: 0;
        min-width: 0;
        max-width: none;
        width: 100%;
    }

    .nav-more-menu a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px 12px 32px;
        width: 100%;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 0.93rem;
        color: var(--ink);
    }

    .nav-more-menu a:last-child {
        border-bottom: none;
    }

    .nav-more-menu a:hover {
        background: #e8f5f0;
    }

    .nav > a:last-child,
    .nav > button:last-child,
    .nav > form:last-child,
    .nav > details:last-child {
        border-bottom: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-visual {
        max-height: 420px;
    }
}

@media (max-width: 760px) {
    .topbar-inner,
    .wrap {
        width: min(100% - 24px, 1180px);
    }

    .wrap {
        padding-top: 24px;
    }

    .page-title,
    .hero h1 {
        font-size: 2rem;
    }

    .grid.gifts {
        grid-template-columns: 1fr;
    }

    .gift {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
    }

    .gift img,
    .gift .placeholder {
        width: 96px;
        height: 96px;
    }

    .card,
    .form-panel,
    .table-panel,
    .share-section {
        padding: 16px;
    }

    .share-container {
        grid-template-columns: minmax(0, 1fr);
    }

    .share-input-group,
    .actions,
    .row {
        align-items: stretch;
    }

    .actions .btn,
    .actions button {
        flex: 1 1 auto;
    }
}

@media (max-width: 520px) {
    .nav a:not(.btn),
    .nav .btn {
        flex: 1 1 auto;
    }

    .gift {
        grid-template-columns: 1fr;
    }

    .gift img,
    .gift .placeholder {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .share-buttons {
        grid-template-columns: 1fr;
    }

    .search-input {
        min-height: 38px;
    }
}

/* Warmer personality pass */
:root {
    --ink: #302824;
    --muted: #7f7169;
    --line: #eadfd5;
    --panel: #fffdf9;
    --bg: #fbf4ea;
    --brand: #9f4f36;
    --brand-dark: #783523;
    --accent: #d49a42;
    --accent-soft: #fff3df;
    --warn: #b26a1d;
    --ok: #4f8f68;
    --danger: #a9342b;
    --shadow-sm: 0 10px 24px rgba(75, 49, 35, 0.08);
    --shadow-md: 0 18px 44px rgba(75, 49, 35, 0.13);
}

body {
    background:
        radial-gradient(circle at 12% 0%, rgba(212, 154, 66, 0.18), transparent 28rem),
        radial-gradient(circle at 92% 6%, rgba(159, 79, 54, 0.12), transparent 24rem),
        linear-gradient(180deg, #fffaf3 0, var(--bg) 48rem);
}

.topbar {
    background: rgba(255, 252, 246, 0.9);
    border-bottom-color: rgba(234, 223, 213, 0.95);
    box-shadow: 0 8px 28px rgba(75, 49, 35, 0.055);
}

.brand {
    color: #2f241f;
}

.brand::before {
    background:
        linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.68) 45% 55%, transparent 55%),
        linear-gradient(0deg, transparent 45%, rgba(255, 255, 255, 0.68) 45% 55%, transparent 55%),
        linear-gradient(135deg, #b95d3c, #e3af52);
    box-shadow: 0 8px 18px rgba(159, 79, 54, 0.24);
}

.nav a:not(.btn) {
    color: #67584f;
}

.nav a:not(.btn):hover {
    background: #fff0df;
    color: var(--brand-dark);
}

.hero h1,
.page-title {
    color: #342820;
}

.lead,
.hero .lead {
    color: #7c6b61;
}

.hero-visual {
    background:
        linear-gradient(145deg, rgba(97, 54, 36, 0.24), rgba(159, 79, 54, 0.25)),
        url("https://images.unsplash.com/photo-1512909006721-3d6018887383?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
}

.btn,
button {
    border-color: var(--brand);
    background: linear-gradient(180deg, #b65e40, var(--brand-dark));
    box-shadow: 0 8px 18px rgba(159, 79, 54, 0.18);
}

.btn:hover,
button:hover {
    background: linear-gradient(180deg, #a55238, #642b1d);
    box-shadow: 0 11px 22px rgba(159, 79, 54, 0.22);
}

.btn.secondary,
button.secondary,
.source-form-cancel {
    border-color: #e5d5c7;
    background: #fffaf3;
    color: var(--brand-dark);
}

.btn.secondary:hover,
button.secondary:hover,
.source-form-cancel:hover {
    background: #fff0df;
    border-color: #d9b99d;
}

.card,
.form-panel,
.table-panel,
.share-section,
.inline-panel {
    border-color: rgba(232, 218, 204, 0.95);
    background: rgba(255, 253, 249, 0.97);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    border-color: #dfc6b5;
    box-shadow: var(--shadow-md);
}

.card h2,
.card h3,
.share-section h2,
.inline-panel h2 {
    color: #372a23;
}

.pill {
    border-color: rgba(159, 79, 54, 0.16);
    background: #fff0df;
    color: var(--brand-dark);
}

.pill.ok {
    border-color: rgba(79, 143, 104, 0.22);
    background: #edf8ef;
    color: #2f704c;
}

.pill.warn {
    border-color: rgba(178, 106, 29, 0.22);
    background: #fff6e8;
    color: #955312;
}

input,
textarea,
select {
    border-color: #e3d5c7;
    background: #fffdf9;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(159, 79, 54, 0.11);
}

.list-info {
    border-left-color: var(--accent);
}

.gift img,
.gift .placeholder {
    border-color: #e7dacc;
    background: linear-gradient(180deg, #fffdf9, #fbf0e4);
}

.gift .price,
.price,
.stat-value {
    color: var(--brand-dark);
}

.stats-panel {
    border-color: rgba(212, 154, 66, 0.28);
    background: linear-gradient(135deg, rgba(255, 243, 223, 0.95), rgba(255, 250, 243, 0.98));
}

.stat-item,
.info-item {
    border-color: #eadfd5;
    background: #fffaf3;
}

.data-table th {
    background: #fff1e2;
    color: #77675d;
}

.data-table td {
    background: #fffdf9;
}

.data-table tr:hover td {
    background: #fff7ed;
}

#qrcode {
    border-color: #eadfd5;
    box-shadow: inset 0 0 0 6px #fff6ea;
}

.share-url-input {
    background: #fffaf3;
    color: #453730;
}

.share-btn {
    background: #fffdf9;
}

.source-count {
    background: linear-gradient(180deg, #bd6a3e, var(--brand-dark));
}

/* More playful gift-list mood */
:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --ink: #1a1a1a;
    --muted: #808080;
    --line: #e8e8e8;

    --brand: #7eb3d4;
    --brand-dark: #5a8fa8;
    --brand-light: #d4e8f5;

    --accent: #a8d4a8;
    --accent-light: #e8f5e8;
    --ok: #66b366;
    --warn: #d4a366;
    --danger: #d4676b;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
}

body {
    background: #ffffff;
}

.wrap {
    position: relative;
}

.wrap::before {
    content: "";
    position: fixed;
    inset: 92px auto auto 18px;
    width: 96px;
    height: 180px;
    pointer-events: none;
    opacity: 0.35;
    background:
        radial-gradient(circle at 18px 20px, #f5b32f 0 4px, transparent 5px),
        radial-gradient(circle at 72px 48px, #d9467d 0 5px, transparent 6px),
        radial-gradient(circle at 38px 92px, #15a47a 0 4px, transparent 5px),
        radial-gradient(circle at 80px 142px, #7c5cff 0 4px, transparent 5px);
}

.topbar {
    background: rgba(255, 250, 255, 0.9);
    border-bottom-color: rgba(234, 219, 234, 0.95);
}

.brand::before {
    transform: rotate(-6deg);
    background:
        linear-gradient(90deg, transparent 43%, rgba(255, 255, 255, 0.78) 43% 57%, transparent 57%),
        linear-gradient(0deg, transparent 43%, rgba(255, 255, 255, 0.78) 43% 57%, transparent 57%),
        linear-gradient(135deg, #d9467d, #f5b32f 72%, #15a47a);
    box-shadow: 0 8px 18px rgba(217, 70, 125, 0.28);
}

.nav a:not(.btn):hover {
    background: #fff0f7;
    color: var(--brand-dark);
}

.hero h1,
.page-title {
    color: #33243a;
}

.hero h1::after,
.page-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d9467d, #f5b32f, #15a47a);
}

.hero-visual {
    transform: rotate(1deg);
    border: 8px solid rgba(255, 255, 255, 0.78);
    background:
        linear-gradient(145deg, rgba(217, 70, 125, 0.18), rgba(245, 179, 47, 0.18)),
        url("https://images.unsplash.com/photo-1512909006721-3d6018887383?auto=format&fit=crop&w=900&q=80");
    background-size: cover;
    background-position: center;
}

.btn,
button {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: none;
}

.btn:hover,
button:hover {
    background: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn.secondary,
button.secondary,
.source-form-cancel {
    border-color: #d0d0d0;
    background: #f5f5f5;
    color: var(--ink);
}

.btn.secondary:hover,
button.secondary:hover,
.source-form-cancel:hover {
    background: #efefef;
    border-color: #d0d0d0;
}

.card,
.form-panel,
.table-panel,
.share-section,
.inline-panel {
    border-color: var(--line);
    background: var(--panel);
}

.card {
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0px;
    background: transparent;
    opacity: 0.78;
}

.card:hover {
    border-color: #edb8d2;
    transform: translateY(-3px) rotate(-0.25deg);
}

.gift.card::before {
    height: 5px;
}

.pill {
    border-color: rgba(217, 70, 125, 0.18);
    background: #fff0f7;
    color: var(--brand-dark);
}

.pill.ok {
    border-color: rgba(21, 164, 122, 0.22);
    background: #eafbf5;
    color: #087957;
}

.pill.warn {
    border-color: rgba(245, 179, 47, 0.32);
    background: #fff6dc;
    color: #9b5c00;
}

input,
textarea,
select {
    border-color: #ead4e4;
    background: #fffafd;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #d9467d;
    box-shadow: 0 0 0 4px rgba(217, 70, 125, 0.12);
}

.gift img,
.gift .placeholder {
    border-color: #eed8e7;
    background:
        linear-gradient(135deg, rgba(245, 179, 47, 0.12), transparent),
        #fffafd;
}

.gift .price,
.price,
.stat-value {
    color: var(--brand-dark);
}

.stats-panel {
    border-color: rgba(245, 179, 47, 0.38);
    background:
        linear-gradient(135deg, rgba(255, 240, 247, 0.92), rgba(255, 246, 220, 0.92));
}

.stat-item,
.info-item {
    border-color: #efdce8;
    background: #fffafd;
}

.data-table th {
    background: #fff0f7;
    color: #79536b;
}

.data-table td {
    background: #fffafd;
}

.data-table tr:hover td {
    background: #fff8e9;
}

.share-section {
    position: relative;
    overflow: hidden;
}

.share-section::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -18px;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 179, 47, 0.28), rgba(217, 70, 125, 0.2));
    transform: rotate(12deg);
}

#qrcode {
    border-color: #efdce8;
    box-shadow: inset 0 0 0 6px #fff0f7;
}

.share-url-input {
    background: #fffafd;
    color: #3d2e42;
}

.share-btn {
    background: #fffafd;
}

.source-count {
    background: linear-gradient(180deg, #f0528d, #bd2768);
}

/* Two-column layout for share import options */
.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.two-column-layout .form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.two-column-layout .form-panel h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--ink);
    font-weight: 600;
}

.two-column-layout .form-panel p {
    margin-bottom: 1.5rem;
    color: var(--muted);
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-dark);
}

.btn-secondary {
    background: #e5e7eb;
    color: var(--ink);
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #d1d5db;
}

.list-type-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin: 12px 0 22px;
}

.list-type-option {
    display: grid;
    gap: 4px;
    text-align: left;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
}

.list-type-option span {
    color: var(--muted);
    font-size: 0.9rem;
}

.list-type-option.active {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 70, 125, 0.14);
}

.site-footer {
    background: linear-gradient(135deg, var(--primary, #4a90e2) 0%, var(--primary-dark, #357abd) 100%);
    color: white;
    margin-top: 60px;
    padding: 40px 20px;
    font-size: 14px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
}

.footer-section p {
    margin: 0 0 15px;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-desc {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.footer-links a {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: background 0.2s;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    opacity: 0.9;
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-meta {
    font-size: 12px;
    opacity: 0.8;
}

.scope-reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.scope-reference {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.scope-reference.compact {
    margin: 0 0 24px;
    background: #f8fafc;
}

.scope-reference h3,
.scope-reference h4 {
    margin: 0 0 10px;
}

.scope-reference h4 {
    color: var(--muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.scope-reference ul {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.scope-reference li span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.calendar-page-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.calendar-page-header .lead {
    margin: 0;
}

.calendar-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.calendar-view-toggle {
    display: flex;
    gap: 6px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

/* ---- List view ---- */
.cal-list-view {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cal-list-month-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--line);
}

.cal-list-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cal-list-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
}

.cal-list-date {
    font-size: 0.82rem;
    font-weight: 700;
    opacity: 0.85;
    white-space: nowrap;
    min-width: 90px;
}

.cal-list-event .cal-ev-label {
    flex: 1;
    font-weight: 600;
}

.cal-list-event .cal-ev-scope {
    font-size: 0.75rem;
    opacity: 0.85;
}

.cal-list-event .cal-ev-days {
    margin-left: auto;
    flex-shrink: 0;
}

.calendar-filter-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 14px;
    margin: 0 0 20px;
}

.calendar-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.calendar-filter-form label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.calendar-filter-form label span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.calendar-filter-form select {
    min-height: 38px;
}

.calendar-filter-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.calendar-filter-summary {
    margin: 10px 0 0;
}

.calendar-months {
    display: grid;
    gap: 22px;
}

.calendar-month {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(37,99,235,0.05);
}

.calendar-month h2 {
    margin: 0;
    padding: 13px 18px;
    border-bottom: 1px solid #bfdbfe;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #1d4ed8;
    background: #eff6ff;
}

.calendar-weekdays,
.calendar-week-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    background: #f0f6ff;
    border-bottom: 1px solid #bfdbfe;
}

.calendar-weekdays span {
    padding: 9px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    text-align: center;
}

.calendar-month-board {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.calendar-week-row {
    position: relative;
    gap: 1px;
    background: var(--line);
}

.calendar-week-row.lanes-1  { --calendar-bars-height:  64px; }
.calendar-week-row.lanes-2  { --calendar-bars-height: 116px; }
.calendar-week-row.lanes-3  { --calendar-bars-height: 168px; }
.calendar-week-row.lanes-4  { --calendar-bars-height: 220px; }
.calendar-week-row.lanes-5  { --calendar-bars-height: 272px; }
.calendar-week-row.lanes-6  { --calendar-bars-height: 324px; }
.calendar-week-row.lanes-7  { --calendar-bars-height: 376px; }
.calendar-week-row.lanes-8  { --calendar-bars-height: 428px; }
.calendar-week-row.lanes-9  { --calendar-bars-height: 480px; }
.calendar-week-row.lanes-10 { --calendar-bars-height: 532px; }
.calendar-week-row.lanes-11 { --calendar-bars-height: 584px; }
.calendar-week-row.lanes-12 { --calendar-bars-height: 636px; }
.calendar-week-row.lanes-13 { --calendar-bars-height: 688px; }
.calendar-week-row.lanes-14 { --calendar-bars-height: 740px; }
.calendar-week-row.lanes-15 { --calendar-bars-height: 792px; }
.calendar-week-row.lanes-16 { --calendar-bars-height: 844px; }

.calendar-day {
    min-height: 132px;
    background: #fff;
    padding: 7px 7px calc(var(--calendar-bars-height, 31px) + 14px);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px;
}

.calendar-day.outside {
    background: #f8fafc;
}

.calendar-day.today {
    box-shadow: inset 0 0 0 2px #2563eb;
    background: #eff6ff;
}

.calendar-day.today .calendar-day-number {
    color: #2563eb;
}

.calendar-day-number {
    position: relative;
    z-index: 3;
    background: inherit;
    color: var(--ink);
    font-weight: 800;
    font-size: 0.92rem;
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.calendar-event-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 3px 8px 3px 6px;
    border-radius: 6px;
    color: #fff;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-bar .cal-ev-icon {
    flex-shrink: 0;
    font-size: 0.82rem;
    line-height: 1;
    opacity: 0.95;
}

.calendar-event-bar .cal-ev-label {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-bar .cal-ev-days {
    flex-shrink: 0;
    font-size: 0.66rem;
    font-weight: 800;
    opacity: 0.9;
    background: rgba(0,0,0,0.18);
    border-radius: 999px;
    padding: 1px 6px;
    white-space: nowrap;
}

.calendar-event-bar .cal-ev-scope {
    flex-shrink: 1;
    font-size: 0.65rem;
    font-weight: 600;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 40%;
}

.calendar-week-bars {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(34px, auto);
    gap: 4px 1px;
    pointer-events: none;
}

.calendar-week-event {
    margin: 0 4px;
    pointer-events: auto;
    white-space: normal;
    flex-wrap: wrap;
    align-content: flex-start;
    min-height: auto;
    height: auto;
    padding: 4px 8px;
}

.calendar-week-event .cal-ev-scope {
    width: 100%;
    max-width: 100%;
    flex-basis: 100%;
}

.calendar-event-bar small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    opacity: 0.9;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-event-bar.public {
    background: #dc2626;
}

.calendar-event-bar.school {
    background: #2563eb;
}

.calendar-event-bar.observance {
    background: #7c3aed;
}

.calendar-event-bar.gift {
    background: #d97706;
}

.calendar-event-bar.birthday {
    background: #db2777;
}

.calendar-event-bar.middle {
    border-radius: 0;
}

.calendar-event-bar.start {
    border-radius: 4px 0 0 4px;
}

.calendar-event-bar.end {
    border-radius: 0 4px 4px 0;
}

.calendar-week-event.col-1 { grid-column-start: 1; }
.calendar-week-event.col-2 { grid-column-start: 2; }
.calendar-week-event.col-3 { grid-column-start: 3; }
.calendar-week-event.col-4 { grid-column-start: 4; }
.calendar-week-event.col-5 { grid-column-start: 5; }
.calendar-week-event.col-6 { grid-column-start: 6; }
.calendar-week-event.col-7 { grid-column-start: 7; }
.calendar-week-event.span-1 { grid-column-end: span 1; }
.calendar-week-event.span-2 { grid-column-end: span 2; }
.calendar-week-event.span-3 { grid-column-end: span 3; }
.calendar-week-event.span-4 { grid-column-end: span 4; }
.calendar-week-event.span-5 { grid-column-end: span 5; }
.calendar-week-event.span-6 { grid-column-end: span 6; }
.calendar-week-event.span-7 { grid-column-end: span 7; }
.calendar-week-event.lane-1 { grid-row: 1; }
.calendar-week-event.lane-2 { grid-row: 2; }
.calendar-week-event.lane-3 { grid-row: 3; }
.calendar-week-event.lane-4 { grid-row: 4; }
.calendar-week-event.lane-5 { grid-row: 5; }
.calendar-week-event.lane-6 { grid-row: 6; }
.calendar-week-event.lane-7 { grid-row: 7; }
.calendar-week-event.lane-8 { grid-row: 8; }
.calendar-week-event.lane-9 { grid-row: 9; }
.calendar-week-event.lane-10 { grid-row: 10; }
.calendar-week-event.lane-11 { grid-row: 11; }
.calendar-week-event.lane-12 { grid-row: 12; }
.calendar-week-event.lane-13 { grid-row: 13; }
.calendar-week-event.lane-14 { grid-row: 14; }
.calendar-week-event.lane-15 { grid-row: 15; }
.calendar-week-event.lane-16 { grid-row: 16; }

.three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 760px) {
    .calendar-page-header {
        grid-template-columns: 1fr;
    }

    .calendar-legend {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .calendar-filter-form {
        grid-template-columns: 1fr;
    }

    .calendar-filter-actions {
        justify-content: flex-start;
    }

    .calendar-weekdays {
        display: none;
    }

    .calendar-month-board {
        gap: 0;
    }

    .calendar-week-row {
        display: block;
        border-bottom: 1px solid var(--line);
    }

    .calendar-week-row:last-child {
        border-bottom: 0;
    }

    .calendar-week-bars {
        display: none;
    }

    .calendar-day.outside {
        display: none;
    }

    .calendar-day {
        min-height: auto;
        padding: 9px;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto;
        align-items: start;
        border-bottom: 1px solid var(--line);
    }

    .calendar-day:last-child {
        border-bottom: 0;
    }

    .calendar-day-events {
        display: flex;
    }

    .three {
        grid-template-columns: 1fr;
    }

    .two-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .wrap::before {
        display: none;
    }

    .hero-visual {
        transform: none;
    }
}

@media (max-width: 600px) {
    .site-footer {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .footer-content {
        gap: 30px;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Home page */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 46px;
    align-items: center;
    min-height: calc(100vh - 132px);
    padding: 32px 0 52px;
}

.home-hero-copy {
    display: grid;
    gap: 18px;
}

.home-kicker {
    display: inline-flex;
    width: fit-content;
    margin: 0;
    border: 1px solid #ffd8b5;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff8df;
    color: #8a5600;
    font-size: 0.86rem;
    font-weight: 800;
}

.home-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #2b2130;
    font-size: clamp(2.55rem, 6vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: 0;
}

.home-hero h1::after {
    content: "";
    display: block;
    width: 86px;
    height: 7px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #d9467d, #f5b32f, #15a47a);
}

.tagline-hero {
    max-width: 680px;
    margin: 0;
    color: #d9467d;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.home-hero .lead {
    max-width: 680px;
    margin: 0;
    color: #665a66;
    font-size: 1.18rem;
}

.home-actions {
    margin-top: 4px;
}

.home-actions .btn {
    gap: 9px;
}

.home-proof-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.home-proof-strip span {
    display: grid;
    gap: 3px;
    min-height: 72px;
    align-content: center;
    border: 1px solid #dbe7e4;
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #66757f;
    box-shadow: 0 10px 24px rgba(34, 49, 58, 0.06);
}

.home-proof-strip strong {
    color: #178f83;
    font-size: 0.92rem;
    text-transform: uppercase;
}

.home-tags,
.home-idea-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-tags span,
.home-idea-list span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    border: 1px solid #ead4e4;
    border-radius: 999px;
    padding: 0 13px;
    background: #fffafd;
    color: #4e4253;
    font-weight: 750;
}

.home-tags i,
.home-idea-list i {
    color: #d9467d;
}

.home-visual {
    position: relative;
    min-height: 520px;
}

.home-visual::before {
    content: "";
    position: absolute;
    inset: 38px 18px 64px 44px;
    border-radius: 38px;
    background:
        linear-gradient(135deg, rgba(217, 70, 125, 0.13), rgba(245, 179, 47, 0.14)),
        #fff7fb;
    transform: rotate(-4deg);
    box-shadow: 0 28px 70px rgba(61, 38, 65, 0.12);
}

.home-list-preview {
    position: absolute;
    border: 1px solid rgba(234, 212, 228, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(47, 35, 52, 0.14);
}

.preview-main {
    inset: 74px 28px auto 10px;
    padding: 18px;
    transform: rotate(1.5deg);
}

.preview-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.preview-header strong {
    overflow: hidden;
    color: #30243a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-header small {
    color: #806f83;
    font-weight: 800;
}

.preview-dot {
    width: 52px;
    height: 14px;
    background:
        radial-gradient(circle at 7px 7px, #15a47a 0 7px, transparent 8px),
        radial-gradient(circle at 26px 7px, #f5b32f 0 7px, transparent 8px),
        radial-gradient(circle at 45px 7px, #d9467d 0 7px, transparent 8px);
}

.preview-main ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preview-main li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    border: 1px solid #f0e1ec;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fffafd;
}

.preview-main li span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 750;
}

.preview-main em {
    border-radius: 999px;
    padding: 5px 8px;
    background: #fff1c7;
    color: #8a5600;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.preview-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #ffffff;
}

.preview-icon.teal {
    background: #15a47a;
}

.preview-icon.yellow {
    background: #f5b32f;
    color: #3b2b00;
}

.preview-icon.pink {
    background: #d9467d;
}

.preview-side {
    right: 0;
    bottom: 28px;
    display: grid;
    gap: 7px;
    width: min(260px, 62%);
    padding: 18px;
    transform: rotate(-3deg);
}

.preview-side strong {
    color: #30243a;
    font-size: 1.04rem;
}

.preview-side span {
    color: #6f6373;
    font-weight: 700;
}

.home-sticker {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    padding: 0 12px;
    font-weight: 900;
    box-shadow: 0 10px 26px rgba(47, 35, 52, 0.13);
}

.home-signal {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(36, 49, 58, 0.88);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 850;
    box-shadow: 0 14px 34px rgba(34, 49, 58, 0.18);
}

.home-signal i {
    color: #f2b84b;
}

.signal-one {
    top: 122px;
    right: 22px;
}

.signal-two {
    left: 16px;
    bottom: 116px;
}

.sticker-one {
    top: 34px;
    right: 20px;
    background: #dff8ee;
    color: #087957;
    transform: rotate(5deg);
}

.sticker-two {
    left: 68px;
    bottom: 38px;
    background: #ffe6f0;
    color: #a61f5f;
    transform: rotate(-6deg);
}

.home-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 42px;
}

.home-step {
    display: grid;
    gap: 12px;
    align-content: start;
    border: 1px solid #ead4e4;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(47, 35, 52, 0.07);
}

.home-step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #fff0f7;
    color: #d9467d;
    font-size: 1.15rem;
}

.home-step h2,
.home-ideas h2 {
    margin: 0;
    color: #30243a;
}

.home-step p {
    margin: 0;
    color: #706574;
    line-height: 1.58;
}

.home-ideas {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
    gap: 28px;
    align-items: center;
    border: 1px solid #f0d7c5;
    border-radius: 8px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255, 240, 247, 0.75), rgba(255, 248, 223, 0.82)),
        #ffffff;
}

.home-ideas .home-kicker {
    margin-bottom: 12px;
}

.home-ideas h2 {
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.12;
}

.home-idea-list {
    justify-content: flex-end;
}

/* ---- Calendar feature band ---- */
.home-feature-band {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px 32px;
    align-items: center;
    padding: 32px 36px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    margin-top: 28px;
}

.home-feature-band-icon {
    width: 64px;
    height: 64px;
    background: #2563eb;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    flex-shrink: 0;
}

.home-feature-band-copy .home-kicker { margin-bottom: 6px; color: #1d4ed8; }
.home-feature-band-copy h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); line-height: 1.2; margin-bottom: 8px; }
.home-feature-band-copy p { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; max-width: 46ch; }

.cal-preview {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 220px;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.07);
}

.cal-preview-header {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #2563eb;
    margin-bottom: 10px;
}

.cal-preview-event {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--ink);
    padding: 6px 8px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 6px;
}

.cal-preview-event i { color: #2563eb; flex-shrink: 0; }

.cal-preview-event--far {
    background: #f8fafc;
    color: var(--muted);
}

.cal-preview-event--far i { color: var(--muted); }

@media (max-width: 900px) {
    .home-feature-band {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .home-feature-band-visual { grid-column: 1 / -1; }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 18px;
    }

    .home-visual {
        min-height: 450px;
    }

    .home-flow,
    .home-ideas {
        grid-template-columns: 1fr;
    }

    .home-proof-strip {
        grid-template-columns: 1fr;
    }

    .home-idea-list {
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .home-hero h1 {
        font-size: 2.55rem;
    }

    .home-hero .lead {
        font-size: 1.04rem;
    }

    .home-tags span,
    .home-idea-list span {
        width: 100%;
    }

    .home-visual {
        min-height: 390px;
    }

    .home-visual::before {
        inset: 36px 4px 54px 4px;
    }

    .preview-main {
        inset: 58px 0 auto 0;
        padding: 14px;
    }

    .preview-main li {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .preview-main em {
        grid-column: 2;
        width: fit-content;
    }

    .preview-side {
        right: 6px;
        bottom: 34px;
        width: min(230px, 78%);
    }

    .sticker-one {
        top: 14px;
        right: 4px;
    }

    .sticker-two {
        left: 8px;
        bottom: 14px;
    }

    .home-signal {
        position: relative;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        z-index: 1;
        width: fit-content;
    }

    .signal-one {
        justify-self: end;
        margin-right: 8px;
    }

    .signal-two {
        margin-left: 8px;
    }

    .home-step,
    .home-ideas {
        padding: 18px;
    }
}

/* Karnet paper mood */
:root {
    --ink: #2d2433;
    --muted: #6f6373;
    --line: #efd7e6;
    --panel: #fffafd;
    --bg: #fffbfe;
    --brand: #d9467d;
    --brand-dark: #a61f5f;
    --brand-light: #ffe6f0;
    --accent: #15a47a;
    --accent-light: #dff8ee;
    --warn: #f5b32f;
    --ok: #15a47a;
    --danger: #c9344e;
    --shadow-sm: 0 12px 28px rgba(47, 35, 52, 0.07);
    --shadow-md: 0 18px 48px rgba(47, 35, 52, 0.13);
}

body {
    background:
        linear-gradient(180deg, rgba(255, 250, 253, 0.98), rgba(255, 255, 255, 0.98) 520px),
        #ffffff;
    color: var(--ink);
}

a {
    color: var(--brand-dark);
}

.topbar {
    background: rgba(255, 250, 253, 0.94);
    border-bottom-color: #f2ddeb;
    box-shadow: 0 10px 30px rgba(47, 35, 52, 0.055);
    backdrop-filter: blur(14px);
}

.brand {
    color: #211a27;
}

.brand::before {
    background:
        radial-gradient(circle at 25% 25%, #15a47a 0 22%, transparent 23%),
        radial-gradient(circle at 75% 25%, #f5b32f 0 22%, transparent 23%),
        radial-gradient(circle at 25% 75%, #f07aa6 0 22%, transparent 23%),
        radial-gradient(circle at 75% 75%, #d9467d 0 22%, transparent 23%),
        #fff7fb;
    box-shadow: 0 8px 18px rgba(217, 70, 125, 0.26);
}

.nav a:not(.btn) {
    color: #5e5262;
    font-weight: 800;
}

.nav a:not(.btn):hover {
    background: #fff0f7;
    color: var(--brand-dark);
}

.btn,
button {
    border-color: #d9467d;
    background: #d9467d;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(217, 70, 125, 0.18);
}

.btn:hover,
button:hover {
    background: #bd2768;
    border-color: #bd2768;
    box-shadow: 0 13px 26px rgba(217, 70, 125, 0.22);
}

.btn.secondary,
button.secondary,
.source-form-cancel {
    border-color: #e7d8e3;
    background: #ffffff;
    color: #2d2433;
    box-shadow: none;
}

.btn.secondary:hover,
button.secondary:hover,
.source-form-cancel:hover {
    background: #fff6fb;
    border-color: #e6bfd6;
    color: #2d2433;
}

.card,
.form-panel,
.table-panel,
.share-section,
.inline-panel,
.calendar-month,
.calendar-filter-panel,
.scope-reference,
.home-step,
.home-list-preview {
    border-color: #efd7e6;
    background: rgba(255, 250, 253, 0.96);
    box-shadow: var(--shadow-sm);
}

.card:hover,
.home-step:hover {
    border-color: #edb8d2;
    box-shadow: var(--shadow-md);
}

.pill,
.home-tags span,
.home-idea-list span {
    border-color: #efd7e6;
    background: #fffafd;
    color: #4e4253;
}

.pill.ok {
    background: #e7fbf3;
    color: #087957;
}

.pill.warn,
.preview-main em {
    background: #fff1c7;
    color: #8a5600;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
textarea,
select {
    border-color: #ead4e4;
    background: #fffafd;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
    border-color: #d9467d;
    box-shadow: 0 0 0 4px rgba(217, 70, 125, 0.12);
}

.holidays-widget {
    position: relative;
    overflow: hidden;
    border: 1px solid #efd7e6 !important;
    background:
        linear-gradient(135deg, rgba(255, 240, 247, 0.92), rgba(255, 248, 223, 0.95)) !important;
    color: #2d2433 !important;
    box-shadow: var(--shadow-sm);
}

.holidays-widget::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -56px;
    width: 150px;
    height: 150px;
    border-radius: 36px;
    background: rgba(21, 164, 122, 0.1);
    transform: rotate(-10deg);
}

.holidays-widget h2 {
    color: #2d2433;
}

.holidays-widget p {
    color: #6f6373 !important;
}

.holidays-widget .btn {
    border: 1px solid #efd7e6 !important;
    background: #ffffff !important;
    color: #a61f5f !important;
    box-shadow: none !important;
}

.site-footer {
    background:
        linear-gradient(135deg, #2d2433 0%, #513047 58%, #a61f5f 100%) !important;
    color: #ffffff;
}

.footer-links a {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.11);
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.data-table th,
.calendar-weekdays {
    background: #fff0f7;
    color: #76566a;
}

.data-table tr:hover td,
.calendar-day.outside {
    background: #fff8fc;
}

.calendar-event-bar.gift {
    background: #d9467d;
}

.calendar-event-bar.birthday {
    background: #15a47a;
}

.calendar-event-bar.observance {
    background: #8b5cf6;
}

/* Neutral playful palette */
:root {
    --ink: #24313a;
    --muted: #66757f;
    --line: #dbe7e4;
    --panel: #fbfffd;
    --bg: #f8fbf8;
    --brand: #178f83;
    --brand-dark: #0f645f;
    --brand-light: #dff5ef;
    --accent: #f2b84b;
    --accent-light: #fff3d7;
    --warn: #d88a2d;
    --ok: #178f83;
    --danger: #bd4b42;
    --shadow-sm: 0 12px 28px rgba(34, 49, 58, 0.07);
    --shadow-md: 0 18px 48px rgba(34, 49, 58, 0.13);
}

body {
    background:
        linear-gradient(180deg, rgba(250, 253, 250, 0.98), rgba(255, 255, 255, 0.98) 520px),
        #ffffff;
    color: var(--ink);
}

a {
    color: var(--brand-dark);
}

.topbar {
    background: rgba(250, 253, 250, 0.94);
    border-bottom-color: #dce8e4;
    box-shadow: 0 10px 30px rgba(34, 49, 58, 0.055);
}

.brand {
    color: #1d272d;
}

.brand::before {
    background: url('/assets/icon.svg') center / contain no-repeat;
    border-radius: 0;
    box-shadow: none;
}

.nav a:not(.btn) {
    color: #53646d;
}

.nav a:not(.btn):hover {
    background: #eef8f5;
    color: var(--brand-dark);
}

.btn,
button {
    border-color: #178f83;
    background: #178f83;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 143, 131, 0.18);
}

.btn:hover,
button:hover {
    background: #0f766e;
    border-color: #0f766e;
    box-shadow: 0 13px 26px rgba(23, 143, 131, 0.22);
}

.btn.secondary,
button.secondary,
.source-form-cancel {
    border-color: #dbe7e4;
    background: #ffffff;
    color: #24313a;
}

.btn.secondary:hover,
button.secondary:hover,
.source-form-cancel:hover {
    background: #f2faf7;
    border-color: #bfd9d3;
    color: #24313a;
}

.home-kicker {
    border-color: #f5d99b;
    background: #fff7e4;
    color: #805000;
}

.home-hero h1,
.home-step h2,
.home-ideas h2,
.card h2,
.card h3 {
    color: #24313a;
}

.home-hero h1::after,
.hero h1::after,
.page-title::after {
    background: linear-gradient(90deg, #178f83, #f2b84b, #d66b4a);
}

.home-hero .lead,
.lead,
.hero .lead {
    color: #66757f;
}

.home-tags span,
.home-idea-list span,
.pill {
    border-color: #dbe7e4;
    background: #fbfffd;
    color: #40515a;
}

.home-tags i,
.home-idea-list i {
    color: #178f83;
}

.home-visual::before {
    background:
        linear-gradient(135deg, rgba(23, 143, 131, 0.1), rgba(242, 184, 75, 0.14)),
        #f7fbfa;
    box-shadow: 0 28px 70px rgba(34, 49, 58, 0.12);
}

.home-list-preview,
.home-step,
.card,
.form-panel,
.table-panel,
.share-section,
.inline-panel,
.calendar-month,
.calendar-filter-panel,
.scope-reference {
    border-color: #dbe7e4;
    background: rgba(251, 255, 253, 0.96);
    box-shadow: var(--shadow-sm);
}

.card:hover,
.home-step:hover {
    border-color: #b8d9d2;
    box-shadow: var(--shadow-md);
}

.preview-header strong,
.preview-side strong {
    color: #24313a;
}

.preview-header small,
.preview-side span,
.home-step p {
    color: #66757f;
}

.preview-dot {
    background:
        radial-gradient(circle at 7px 7px, #178f83 0 7px, transparent 8px),
        radial-gradient(circle at 26px 7px, #f2b84b 0 7px, transparent 8px),
        radial-gradient(circle at 45px 7px, #d66b4a 0 7px, transparent 8px);
}

.preview-main li {
    border-color: #dfe9e6;
    background: #fbfffd;
}

.preview-icon.teal {
    background: #178f83;
}

.preview-icon.yellow {
    background: #f2b84b;
    color: #3d2a00;
}

.preview-icon.pink {
    background: #d66b4a;
}

.preview-main em,
.pill.warn {
    background: #fff0c9;
    color: #805000;
}

.sticker-one {
    background: #dff5ef;
    color: #0f645f;
}

.sticker-two {
    background: #ffe7dc;
    color: #99442d;
}

.home-step-icon {
    background: #e7f7f3;
    color: #178f83;
}

.home-ideas {
    border-color: #f0d7a4;
    background:
        linear-gradient(135deg, rgba(231, 247, 243, 0.75), rgba(255, 247, 228, 0.86)),
        #ffffff;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
textarea,
select {
    border-color: #dbe7e4;
    background: #fbfffd;
}

input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="button"]):not([type="hidden"]):focus,
textarea:focus,
select:focus {
    border-color: #178f83;
    box-shadow: 0 0 0 4px rgba(23, 143, 131, 0.12);
}

.holidays-widget {
    border-color: #dbe7e4 !important;
    background:
        linear-gradient(135deg, rgba(231, 247, 243, 0.9), rgba(255, 247, 228, 0.95)) !important;
    color: #24313a !important;
}

.holidays-widget::after {
    background: rgba(214, 107, 74, 0.1);
}

.holidays-widget h2 {
    color: #24313a;
}

.holidays-widget p {
    color: #66757f !important;
}

.holidays-widget .btn {
    border-color: #dbe7e4 !important;
    color: #0f645f !important;
}

.site-footer {
    background:
        linear-gradient(135deg, #213039 0%, #174f56 58%, #0f645f 100%) !important;
}

.data-table th,
.calendar-weekdays {
    background: #eaf7f3;
    color: #496069;
}

.data-table tr:hover td,
.calendar-day.outside {
    background: #f3faf7;
}

.calendar-event-bar.gift {
    background: #178f83;
}

.calendar-event-bar.birthday {
    background: #d66b4a;
}

.admin-user-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 12px;
    align-items: end;
    max-width: none;
}

.admin-user-filters label {
    margin: 0;
}

.admin-user-filters .btn {
    min-height: 42px;
}

@media (max-width: 900px) {
    .admin-user-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .admin-user-filters {
        grid-template-columns: 1fr;
    }
}

.admin-users-table {
    min-width: 860px;
}

.admin-users-table .col-date {
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}

.admin-users-table .col-date-empty {
    color: var(--line);
}

/* Admin templates de karnets */
.karnet-template-admin {
    display: grid;
    gap: 20px;
}

.template-admin-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.template-admin-intro p {
    margin: 0;
}

.template-admin-actions,
.template-admin-footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.template-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.template-admin-card {
    display: grid;
    gap: 14px;
    align-content: start;
    min-width: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.template-admin-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.template-admin-card-header h2 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.2;
}

.template-admin-icon {
    display: inline-grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-size: 1.45rem;
}

.template-admin-main-fields,
.template-admin-two {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(76px, 0.42fr);
    gap: 10px;
}

.template-admin-icon-input {
    text-align: center;
    font-size: 1.2rem;
}

.template-admin-card textarea {
    min-height: 82px;
    resize: vertical;
}

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

.template-admin-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
}

.template-admin-toggle input {
    flex: 0 0 auto;
}

.template-admin-linked {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.template-admin-linked[hidden] {
    display: none;
}

.template-admin-linked h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--brand-dark);
}

.template-admin-footer-actions {
    position: sticky;
    bottom: 12px;
    z-index: 5;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(62, 39, 35, 0.12);
}

@media (max-width: 1120px) {
    .template-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .template-admin-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .template-admin-actions,
    .template-admin-footer-actions {
        justify-content: stretch;
    }

    .template-admin-actions .btn,
    .template-admin-footer-actions .btn {
        flex: 1;
    }

    .template-admin-grid,
    .template-admin-main-fields,
    .template-admin-two,
    .template-admin-modules {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .admin-users-table .col-hide-sm {
        display: none;
    }
}

@media (max-width: 600px) {
    .home-visual {
        display: grid;
        gap: 12px;
        min-height: auto;
        padding: 44px 0 58px;
    }

    .home-visual::before {
        inset: 28px 6px 34px 6px;
        border-radius: 24px;
        transform: rotate(-2deg);
    }

    .preview-main {
        position: relative;
        inset: auto;
        z-index: 1;
        width: 100%;
        padding: 12px;
        transform: rotate(0.6deg);
    }

    .preview-header {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px;
    }

    .preview-header small {
        grid-column: 2;
        justify-self: start;
    }

    .preview-main li {
        grid-template-columns: 36px minmax(0, 1fr);
        align-items: start;
        min-height: 72px;
    }

    .preview-main li span:nth-child(2) {
        white-space: normal;
    }

    .preview-main em {
        grid-column: 2;
        width: fit-content;
        margin-top: -2px;
    }

    .preview-side {
        position: relative;
        right: auto;
        bottom: auto;
        z-index: 2;
        justify-self: end;
        width: min(248px, 78%);
        margin-top: -2px;
        padding: 14px;
        transform: rotate(-1.4deg);
    }

    .sticker-one {
        top: 0;
        right: 8px;
        z-index: 3;
        transform: rotate(4deg);
    }

    .sticker-two {
        left: 10px;
        bottom: 10px;
        z-index: 3;
        transform: rotate(-5deg);
    }
}

/* Aide & Guide Styles */
.aide-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: white;
    padding: 3rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
}

.aide-hero.aid-gift { background: linear-gradient(135deg, var(--ok) 0%, #0d6b34 100%); }
.aide-hero.aid-trip { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.aide-hero.aid-places { background: linear-gradient(135deg, var(--warn) 0%, #92400e 100%); }
.aide-hero.aid-shopping { background: linear-gradient(135deg, var(--ok) 0%, #0d6b34 100%); }
.aide-hero.aid-ideas { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }
.aide-hero.aide-hero-feature { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); }

.aide-hero h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.aide-hero h1 i {
    font-size: 2.5rem;
}

.aide-hero .lead {
    margin: 0;
    font-size: 1.1rem;
    color: white;
    opacity: 1;
}

/* Breadcrumb */
.aide-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aide-breadcrumb a {
    color: var(--brand);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s;
}

.aide-breadcrumb a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.aide-breadcrumb .separator {
    color: var(--muted);
    margin: 0 0.25rem;
}

/* Aide Section */
.aide-section {
    margin-bottom: 3rem;
}

.aide-section h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
}

.section-desc {
    color: var(--muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

/* Aide Grid */
.aide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .aide-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .aide-grid {
        grid-template-columns: 1fr;
    }
}

/* Aide Card */
.aide-card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.aide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.aide-card:hover {
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
    transform: translateY(-4px);
}

.aide-card:hover::before {
    transform: scaleX(1);
}

.aide-card.aide-card-gift::before { background: var(--ok); }
.aide-card.aide-card-trip::before { background: var(--brand); }
.aide-card.aide-card-places::before { background: var(--warn); }
.aide-card.aide-card-shopping::before { background: var(--ok); }
.aide-card.aide-card-ideas::before { background: var(--brand); }
.aide-card.aide-card-feature::before { background: var(--brand); }

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.aide-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.aide-card p {
    margin: 0 0 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-arrow {
    color: var(--brand);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.aide-card:hover .card-arrow {
    gap: 0.75rem;
}

/* Contenu Aide */
.aide-content {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.scenarios-title,
.features-title {
    font-size: 1.5rem;
    margin: 2.5rem 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--line);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Scenarios */
.scenarios-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.scenario-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    transition: all 0.3s;
    animation: fadeIn 0.5s ease-out;
}

.scenario-card:hover {
    background: linear-gradient(to right, rgba(15, 118, 110, 0.05), transparent);
    transform: translateX(4px);
}

.scenario-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--brand);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.scenario-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--ink);
}

.scenario-content p {
    margin: 0 0 1rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.scenario-steps {
    margin-top: 1rem;
}

.scenario-steps summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 600;
    padding: 0.75rem;
    margin: -0.75rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    user-select: none;
}

.scenario-steps summary:hover {
    background-color: rgba(15, 118, 110, 0.08);
}

.scenario-steps[open] summary i {
    transform: rotate(180deg);
}

.scenario-steps ol {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
    list-style-position: outside;
}

.scenario-steps li {
    margin-bottom: 0.75rem;
    color: var(--ink);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.3s;
}

.features-list li:hover {
    border-color: var(--brand);
    background-color: var(--bg);
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.1);
}

.features-list i {
    color: var(--ok);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Sections (pour les fonctionnalités) */
.section-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.section-header h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ink);
}

.section-intro {
    margin: 0 0 1.5rem 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.section-steps h4,
.section-items h4 {
    margin: 1.5rem 0 1rem 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
}

.steps-list {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps-list li {
    counter-increment: step;
    margin-bottom: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

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

.items-list li {
    padding: 0.75rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.6;
}

.items-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ok);
    font-weight: 700;
}

/* Footer Nav */
.aide-footer-nav {
    margin-top: 4rem;
    padding: 2rem;
    background: var(--bg);
    border-radius: 12px;
    text-align: center;
}

.aide-footer-nav p {
    margin: 0 0 1.5rem 0;
    font-size: 1.05rem;
    color: var(--ink);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Formulaire de modification de liste - Amélioration mise en page */
form label {
    margin-bottom: 1rem;
}

.form-panel {
    margin-bottom: 2rem;
}

.form-panel h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--line);
    font-size: 1.25rem;
    color: var(--ink);
}

.form-panel h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.form-panel > label {
    margin-bottom: 1.5rem;
    display: block;
}

.form-panel > label > input[type="text"],
.form-panel > label > input[type="url"],
.form-panel > label > input[type="date"],
.form-panel > label > input[type="number"],
.form-panel > label > textarea,
.form-panel > label > select {
    margin-top: 0.5rem;
}

.form-panel label small.meta {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.4;
}

.form-panel .checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.form-panel .checkbox-label input[type="checkbox"] {
    width: auto;
    min-height: auto;
    margin-top: 4px;
    cursor: pointer;
}

.form-panel .checkbox-label span {
    font-weight: 600;
    cursor: pointer;
    flex: 1;
}

.form-panel .checkbox-label small {
    display: block;
    margin-top: 0.25rem;
    font-weight: 400;
}

.list-type-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.list-type-option {
    padding: 1rem;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.list-type-option:hover {
    border-color: var(--brand);
    background: var(--bg);
}

.list-type-option.active {
    border-color: var(--brand);
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.05), rgba(15, 118, 110, 0.02));
}

.list-type-option strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--ink);
}

.list-type-option span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.4;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--line);
}

.form-actions .btn {
    min-width: 150px;
}

.inspiration-builder {
    margin: 1rem 0 1.5rem;
    padding: 1rem;
    background: var(--bg);
    border-radius: 8px;
}

.inspiration-builder label {
    font-weight: 600;
    margin-bottom: 1rem;
}

.inspiration-input-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.inspiration-input-row input {
    flex: 1;
}

.inspiration-list {
    margin-top: 1rem;
}

.inspiration-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.inspiration-item a {
    flex: 1;
    word-break: break-all;
    font-size: 0.9rem;
    color: var(--brand);
}

.inspiration-item .btn {
    flex-shrink: 0;
}

/* ================================================================
   LIST PAGE — MODERN INNER PAGE REDESIGN
   ================================================================ */

/* ---- List Hero ---- */
.list-hero {
    position: relative;
    margin: -32px 0 32px;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
    background: #f0fdfa;
    border-bottom: 1px solid #ccfbf1;
}

.list-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.16;
    filter: saturate(1.05);
}

.list-hero-overlay {
    display: none;
}

.list-hero-body {
    position: relative;
    z-index: 2;
    padding: 36px 32px 30px;
}

.list-hero-owner-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 18px;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(20, 184, 166, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.list-hero-owner-avatar {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #14b8a6, #f59e0b);
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.82);
}

.list-hero-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-hero-owner-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.list-hero-owner-text span,
.list-hero-owner-text em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.2;
}

.list-hero-owner-text strong {
    color: var(--ink);
    font-size: 1rem;
    line-height: 1.2;
}

.list-hero-meta {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.list-hero-meta .pill {
    font-size: 0.8rem;
}

.list-hero-kicker {
    margin: 0 0 5px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand);
}

.list-hero h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--ink);
    margin: 0 0 8px;
    line-height: 1.1;
}

.list-hero-description {
    color: var(--muted);
    font-size: 0.97rem;
    margin: 0 0 18px;
    max-width: 600px;
    line-height: 1.6;
}

.list-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.list-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.list-hero-stat strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}

.list-hero-stat span {
    font-size: 0.72rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.list-hero-progress {
    height: 5px;
    max-width: 280px;
    background: #d1fae5;
    border-radius: 999px;
    margin-bottom: 18px;
    overflow: hidden;
}

.list-hero-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: var(--brand);
    transition: width 0.6s ease;
}

.list-hero-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 16px;
}

.list-hero-actions .btn {
    background: #fff;
    color: var(--brand-dark);
    border-color: #fff;
    font-size: 0.88rem;
    min-height: 38px;
    padding: 0 14px;
    gap: 6px;
}

.list-hero-actions .btn:hover {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.list-hero-actions .btn.secondary {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.list-hero-actions .btn.secondary:hover {
    background: #f1f5f9;
    text-decoration: none;
}

.list-hero-actions .btn.success {
    background: var(--ok);
    color: #fff;
    border-color: var(--ok);
}

.list-hero-actions .btn.success:hover {
    background: #15803d;
}

.list-hero-actions .btn.danger-ghost {
    background: #fff0f0;
    color: #dc2626;
    border-color: #fecaca;
}

.list-hero-actions .btn.danger-ghost:hover {
    background: #fee2e2;
    text-decoration: none;
}

.list-hero-objective {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fff;
    border-left: 3px solid var(--brand);
    border-radius: 0 6px 6px 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 640px;
}

.list-hero-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.list-hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}

.list-hero-links a:hover {
    border-color: var(--brand);
    background: #f0fdfa;
    text-decoration: none;
}

/* ---- Filter bar ---- */
.filter-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}

.filter-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    color: var(--brand-dark);
    cursor: pointer;
    font-weight: 800;
    list-style: none;
}

.filter-panel > summary::-webkit-details-marker {
    display: none;
}

.filter-panel > summary span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-panel > summary::after {
    content: "▾";
    color: var(--muted);
    transition: transform 0.18s ease;
}

.filter-panel[open] > summary::after {
    transform: rotate(180deg);
}

.filter-panel > summary em {
    margin-left: auto;
    border-radius: 999px;
    padding: 3px 8px;
    background: color-mix(in srgb, var(--brand) 10%, white);
    color: var(--brand-dark);
    font-size: 0.74rem;
    font-style: normal;
}

.filter-bar-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    margin: 0;
    box-shadow: none;
}

.filter-bar-search {
    flex: 1 1 180px;
    min-height: 36px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 14px;
    font: inherit;
    font-size: 0.88rem;
    background: #f8fafc;
    color: var(--ink);
}

.filter-bar-search:focus {
    outline: none;
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 10%, white);
}

.filter-bar-select {
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
    font: inherit;
    font-size: 0.83rem;
    color: var(--ink);
    cursor: pointer;
}

.filter-bar-select:focus {
    outline: none;
    border-color: var(--brand);
}

.filter-bar-select.is-active {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, white);
    color: var(--brand-dark);
    font-weight: 700;
}

.filter-bar-reset {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f1f5f9;
    color: var(--muted);
    border: 1px solid var(--line);
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.filter-bar-reset:hover {
    background: #e2e8f0;
    color: var(--ink);
    text-decoration: none;
}

/* ---- Section headers ---- */
.list-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--line);
}

.list-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: color-mix(in srgb, var(--brand) 9%, white);
    color: var(--brand-dark);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.list-section-kicker.ok {
    background: color-mix(in srgb, var(--ok) 10%, white);
    color: var(--ok);
}

.list-section-kicker.muted {
    background: #f1f5f9;
    color: var(--muted);
}

.list-section-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--ink);
}

.list-section-count {
    margin-left: auto;
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 600;
}

/* ---- Gift group title ---- */
.gift-group-divider {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    margin-top: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ---- Gifts grid ---- */
.gifts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 18px;
    margin-bottom: 40px;
}

/* ---- Gift card (vertical) ---- */
.gift-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    animation: fadeIn 0.28s ease-out;
}

.gift-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 42px rgba(15,23,42,0.11);
    border-color: #c7d2e4;
}

.gift-card.is-received {
    opacity: 0.75;
}

.gift-card.is-received:hover {
    opacity: 0.9;
}

.gift-card.is-hidden {
    opacity: 0.58;
    filter: grayscale(0.6);
}

.gift-card.is-hidden:hover {
    opacity: 0.8;
    filter: grayscale(0.2);
}

.gift-card.is-unavailable {
    border-color: #fecaca;
    background: #fff8f8;
}

/* Card image area */
.gift-card-img {
    position: relative;
    height: 175px;
    flex-shrink: 0;
    background: #ffffff;
    border-bottom: 1px solid #f0f4f8;
    overflow: hidden;
}

.gift-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.25s ease;
}

.gift-card:hover .gift-card-img img {
    transform: scale(1.03);
}

.gift-card-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gift-card-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--brand);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(15,118,110,0.35);
    z-index: 2;
}

.gift-card-status-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 2;
}

.gift-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    z-index: 2;
}

.gift-card-overlay.hidden-overlay {
    background: rgba(15,23,42,0.42);
}

.gift-card-overlay.received-overlay {
    background: rgba(21,128,61,0.18);
}

.gift-card-overlay.unavailable-overlay {
    background: rgba(220,38,38,0.14);
}

/* Card body */
.gift-card-body {
    padding: 13px 15px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
}

.gift-card-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gift-card-description {
    display: grid;
    gap: 6px;
}

.gift-card-description summary {
    display: grid;
    gap: 4px;
    cursor: pointer;
    list-style: none;
}

.gift-card-description summary::-webkit-details-marker {
    display: none;
}

.gift-card-desc {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gift-card-desc-more {
    width: fit-content;
    color: var(--brand-dark);
    font-size: 0.76rem;
    font-weight: 800;
}

.gift-card-description[open] .gift-card-desc,
.gift-card-description[open] .gift-card-desc-more {
    display: none;
}

.gift-card-desc-full {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.gift-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.gift-card-tags .pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 0.75rem;
}

.gift-card-sources {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 2px;
}

.gift-source-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px 4px 6px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    background: #f8fafc;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    align-self: flex-start;
}

.gift-source-chip:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 5%, white);
    text-decoration: none;
}

.gift-source-chip .source-favicon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.gift-source-chip-price {
    margin-left: 4px;
    color: var(--brand);
    font-weight: 800;
}

.gift-card-context {
    font-size: 0.8rem;
    color: var(--muted);
    padding: 6px 8px;
    background: #f8fafc;
    border-radius: 6px;
    display: grid;
    gap: 2px;
}

.gift-card-context p {
    margin: 0;
}

.gift-card-thank-you {
    padding: 7px 10px;
    background: #f0fdf4;
    border-left: 3px solid var(--ok);
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: #15803d;
    line-height: 1.5;
}

.gift-card-unavailable-warn {
    padding: 7px 10px;
    background: #fff1f2;
    border-left: 3px solid #f87171;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
    color: #dc2626;
}

.gift-card-reservation-mgmt {
    padding-top: 8px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
}

/* Card footer */
.gift-card-footer {
    border-top: 1px solid #f0f4f8;
    padding: 8px 12px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    background: #fafbfc;
}

.gift-card-footer .btn,
.gift-card-footer button {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.77rem;
    border-radius: 6px;
    font-weight: 700;
}

.gift-detail-layout {
    display: grid;
    grid-template-columns: minmax(180px, 260px) 1fr;
    gap: 20px;
    align-items: start;
}

.gift-detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
    background: #f1f5f9;
}

.gift-detail-image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.gift-detail-main {
    display: grid;
    gap: 12px;
}

.gift-detail-price {
    margin: 0;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 800;
}

.gift-detail-section {
    display: grid;
    gap: 8px;
}

.gift-detail-section h3 {
    margin: 0;
    color: var(--ink);
    font-size: 0.92rem;
}

.gift-detail-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    white-space: pre-wrap;
}

.gift-detail-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin: 0;
}

.gift-detail-fields div {
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.gift-detail-fields dt {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.gift-detail-fields dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-weight: 700;
}

.gift-detail-sources {
    display: grid;
    gap: 10px;
}

.gift-detail-source {
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.gift-detail-source > div {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.gift-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.item-attributes-editor {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.item-attribute-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1fr) auto;
    gap: 10px;
    align-items: end;
}

/* ---- History & workbench subtle panels ---- */
.list-history-panel,
.list-workbench-panel {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.list-history-panel .event-list {
    margin-top: 10px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .gifts-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 14px;
    }
    .profile-entry-form {
        grid-template-columns: 1fr 1fr;
    }
    .list-hero-body {
        padding: 32px 20px 28px;
    }
    .list-hero-owner-card {
        width: 100%;
    }
    .gift-detail-layout,
    .item-attribute-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .gifts-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .gift-card-img {
        height: 130px;
    }
    .list-hero h1 {
        font-size: 1.65rem;
    }
    .list-hero-owner-card {
        align-items: flex-start;
        border-radius: 12px;
    }
    .list-hero-owner-avatar {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }
    .list-hero-stats {
        gap: 18px;
    }
    .filter-bar-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .profile-entry-form {
        grid-template-columns: 1fr;
    }
    .filter-bar-search,
    .filter-bar-select {
        border-radius: 8px;
    }
}

@media (max-width: 380px) {
    .gifts-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Price range filter (list.php + share.php) ---- */
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 16px;
    margin: 8px 0 28px;
    font-size: 0.88rem;
}

.filter-price-label {
    white-space: nowrap;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.85rem;
}

.filter-price-display {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    min-width: 120px;
}

/* The dual slider track */
.price-range-wrap {
    position: relative;
    flex: 1;
    min-width: 140px;
    height: 20px;
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 0 10px;
}

.price-range-track-bg {
    position: absolute;
    left: 10px; right: 10px;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    pointer-events: none;
}

.price-range-track-fill {
    position: absolute;
    height: 5px;
    background: var(--brand);
    border-radius: 3px;
    pointer-events: none;
}

.price-range-handle {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 1px 6px rgba(0,0,0,0.25);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 12;
}

.price-range-handle--min {
    background: color-mix(in srgb, var(--brand) 86%, white);
}

.price-range-handle--max {
    background: var(--brand-dark);
}

.price-range-handle--min::after,
.price-range-handle--max::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.price-range-slider {
    position: absolute;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    height: 5px;
    margin: 0;
    padding: 0;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
    background: none;
    outline: none;
}

#listPriceMin,
#sharePriceMin {
    z-index: 5;
}

#listPriceMax,
#sharePriceMax {
    z-index: 6;
}

.price-range-slider.is-active {
    z-index: 7;
}

/* Invisible track — visual track is our custom divs */
.price-range-slider::-webkit-slider-runnable-track {
    background: transparent;
    border: none;
    height: 5px;
}

.price-range-slider::-moz-range-track {
    background: transparent;
    border: none;
    height: 5px;
}

/* Firefox hides the filled portion */
.price-range-slider::-moz-range-progress {
    background: transparent;
}

.price-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
    transition: transform 0.1s;
    margin-top: -7px; /* vertically centre on the 5px track */
}

.price-range-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: transparent;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    pointer-events: all;
}

.price-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.price-range-slider:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

.filter-price-bundles {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.85rem;
}

/* ---- Share page additions ---- */
.gifts-grid-section { margin-bottom: 28px; }

.gifts-grid-group {
    grid-column: 1 / -1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 18px 0 2px;
}

.gift-card--bundle {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid #bbf7d0;
}

.gift-card-img--bundle {
    display: flex;
    gap: 4px;
    padding: 8px;
    height: 175px;
}

.bundle-img-slot {
    flex: 1;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.bundle-img-slot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gift-card-price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--brand);
}

.gift-card-progress {
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 6px 0 3px;
}

.gift-card-progress-bar {
    height: 100%;
    background: var(--brand);
    border-radius: 3px;
}

.gift-message-box {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.gift-message-box p { margin: 4px 0 0; white-space: pre-wrap; }

.gift-message-box--reserved {
    background: #fffbeb;
    border-left: 3px solid #fbbf24;
    color: #92400e;
}

.gift-message-box--thanks {
    background: #f0fdf4;
    border-left: 3px solid var(--ok);
    color: #15803d;
}

.gift-card-sources-details {
    font-size: 0.8rem;
    margin-top: 6px;
    color: var(--muted);
}

.gift-card-sources-details summary { cursor: pointer; }

.item-comments {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

.item-comments-header,
.item-comment-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.item-comment-list {
    display: grid;
    gap: 8px;
}

.item-comment {
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--card);
}

.item-comment--reply {
    margin-left: 18px;
    background: var(--surface);
}

.item-comment p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}

.item-comment-form,
.item-comment-reply-form {
    display: grid;
    gap: 8px;
}

.item-comment-form textarea,
.item-comment-reply-form input {
    width: 100%;
}

.item-comment-reply-form {
    margin-top: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.item-comment-login {
    margin: 0;
}

.friend-label-editor {
    margin: 8px 0;
    font-size: .875rem;
}

.friend-label-editor summary {
    cursor: pointer;
    color: var(--brand-dark);
    font-size: .8rem;
}

.friend-label-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.friend-label-form input[name="label"] {
    width: 100%;
    box-sizing: border-box;
}

.friend-label-actions {
    display: flex;
    gap: 6px;
}

.friend-invite-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--brand) 6%, white);
    border: 1px solid color-mix(in srgb, var(--brand) 25%, white);
    border-radius: 12px;
    font-size: 0.88rem;
    color: var(--ink);
    flex-wrap: wrap;
}

.friend-invite-bar-text { display: flex; align-items: center; gap: 8px; }

/* ---- Nav badge (notification count) ---- */
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
    margin-left: 2px;
}

/* ================================================================
   Gift-edit page — redesign
   ================================================================ */

.gift-edit-page {
    max-width: 680px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
    padding-bottom: 48px;
}

.gift-edit-header { display: grid; gap: 4px; }
.gift-edit-header .page-title { margin: 0; }

.gift-edit-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--muted);
}
.gift-edit-back:hover { color: var(--brand); }

/* URL import card */
.gift-import-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 18px 22px;
}
.gift-import-form { gap: 10px; }
.gift-import-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--brand-dark);
}
.gift-import-row { display: flex; gap: 8px; }
.gift-import-row input { flex: 1; }

/* Shared product card (used in wizard preview & partial) */
.import-preview-product {
    display: flex;
    gap: 14px;
    padding: 14px 16px;
}
.import-preview-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
}
.import-preview-thumb img { width: 100%; height: 100%; object-fit: contain; }
.import-preview-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.import-preview-title {
    font-weight: 600;
    font-size: 0.95rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.import-preview-price { font-weight: 700; color: var(--brand-dark); font-size: 1rem; }
.import-preview-desc {
    font-size: 0.82rem;
    color: var(--muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.import-field-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
}
.import-field-chip.found  { background: #d1fae5; color: #065f46; }
.import-field-chip.missing { background: #fef3c7; color: #92400e; }

/* ── Gift Wizard ───────────────────────────────────────────────────────── */
.gift-wizard {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.wizard-screen { padding: 22px 22px 24px; }
.wizard-screen-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 14px;
}
.wizard-screen-hint-success { color: #065f46; font-weight: 600; font-size: 0.95rem; }
.wizard-url-row { display: flex; gap: 8px; }
.wizard-url-row input[type="url"] { flex: 1; }
.wizard-context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    padding: 0 0 16px;
}
.wizard-context-card {
    display: grid;
    gap: 5px;
    text-align: left;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    cursor: pointer;
    color: var(--ink);
}
.wizard-context-card:hover {
    border-color: var(--brand);
}
.wizard-context-card i {
    color: var(--brand);
}
.wizard-context-card span {
    color: var(--muted);
    font-size: 0.82rem;
}
#wUrlFeedback {
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--panel);
}
.wizard-feedback-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    font-size: 0.88rem;
    color: var(--muted);
}
.wizard-feedback-error { color: #b45309; }
.wizard-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.82rem;
}
.wizard-sep::before, .wizard-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wizard-manual-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1.5px dashed var(--line);
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.15s, color 0.15s;
}
.wizard-manual-btn:hover { border-color: var(--brand); color: var(--brand); }
.wizard-actions { display: flex; flex-direction: column; gap: 10px; padding: 16px 22px 22px; }
.wizard-btn-success {
    background: #059669;
    color: #fff;
    border-color: #059669;
}
.wizard-btn-success:hover { background: #047857; border-color: #047857; }
.wizard-link-btn {
    background: none;
    border: none;
    color: var(--brand);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    text-align: left;
    text-decoration: underline;
}
.wizard-link-btn:hover { color: var(--brand-dark); }
.wizard-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    background: var(--bg);
    border: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 14px;
}
.wizard-step-q {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
}
.wizard-big-input {
    width: 100%;
    font-size: 1.05rem;
    padding: 11px 14px;
    border-radius: 8px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.15s;
}
.wizard-big-input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.wizard-big-input.input-error { border-color: #dc2626; }
.wizard-field-hint { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.wizard-price-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.wizard-price-row .wizard-big-input { width: 100%; }
.wizard-currency-select { padding: 11px 10px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--bg); font-size: 0.95rem; width: 100%; }
.wizard-advanced-row {
    padding: 14px 22px 18px;
    border-top: 1px solid var(--line);
    text-align: center;
}
.wizard-muted-btn {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wizard-muted-btn:hover { color: var(--fg); }
.wizard-back-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    transition: color 0.15s;
}
.wizard-back-btn:hover { color: var(--fg); }

/* Gift type tabs */
.gift-type-tabs {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg);
}
.gift-type-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--muted);
    text-align: center;
    transition: background 0.15s, color 0.15s;
    user-select: none;
}
.gift-type-tab:has(input[type="radio"]:checked) {
    background: var(--brand);
    color: #fff;
}
.gift-type-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Form sections (cards) */
.gift-edit-form { gap: 0; display: contents; }
.gift-edit-section {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 24px;
    display: grid;
    gap: 16px;
}
.gift-edit-section-title {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.gift-edit-section-title .pill {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.8rem;
}

.field-required { color: #dc2626; }

/* Input with € suffix */
.input-suffix {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--panel);
}
.input-suffix input {
    border: none !important;
    border-radius: 0 !important;
    flex: 1;
    box-shadow: none !important;
}
.input-suffix span {
    padding: 0 12px;
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 1px solid var(--line);
    display: flex;
    align-items: center;
    background: var(--bg);
}

/* Source type toggle */
.source-type-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.source-type-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
    transition: all 0.15s;
    user-select: none;
}
.source-type-tab:has(input[type="radio"]:checked) {
    border-color: var(--brand);
    background: #f0fdf9;
    color: var(--brand-dark);
}
.source-type-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Visibility / recipients */
.recipient-toggle { display: flex; gap: 10px; }
.recipient-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}
.recipient-option:has(input[type="radio"]:checked) {
    border-color: var(--brand);
    background: #f0fdf9;
}
.recipient-option input[type="radio"] {
    width: auto;
    min-height: auto;
    flex-shrink: 0;
}
.recipient-friends {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}
.recipient-friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    user-select: none;
}
.recipient-friend-item:has(input[type="checkbox"]:checked) {
    border-color: var(--brand);
    background: #f0fdf9;
    color: var(--brand-dark);
}
.recipient-friend-item input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

/* Form actions row */
.gift-edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 600px) {
    .gift-edit-page { gap: 12px; }
    .gift-edit-section { padding: 16px; }
    .gift-type-tabs { flex-direction: column; }
    .recipient-toggle { flex-direction: column; }
    .gift-import-row { flex-direction: column; }
    .gift-edit-actions { flex-direction: column-reverse; }
    .gift-edit-actions .btn { width: 100%; justify-content: center; }
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.stat-detail {
    font-size: 0.8em;
    opacity: 0.7;
}

.section-spaced {
    margin-top: 40px;
}

.empty-state-inline {
    text-align: center;
    padding: 20px;
}

.pagination {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}

.pagination-status {
    color: var(--muted);
    font-size: 0.92rem;
}

.discovery-daily-card {
    grid-template-columns: 1fr;
}

.discovery-daily-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: start;
}

.discovery-daily-image,
.discovery-daily-placeholder {
    width: 100%;
    border-radius: 8px;
}

.discovery-daily-placeholder {
    aspect-ratio: 1;
}

.discovery-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.discovery-trend-card {
    grid-template-columns: 100px 1fr;
}

.reservation-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.reservation-stat {
    background: var(--panel);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--brand);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reservation-stat--reserved { border-left-color: #7eb3d4; }
.reservation-stat--purchased { border-left-color: #d4a366; }
.reservation-stat--offered { border-left-color: #66b366; }

.reservation-stat-label {
    color: var(--muted);
    font-size: 0.9em;
    margin-bottom: 5px;
}

.reservation-stat-value {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--brand);
}

.reservation-stat--reserved .reservation-stat-value { color: #7eb3d4; }
.reservation-stat--purchased .reservation-stat-value { color: #d4a366; }
.reservation-stat--offered .reservation-stat-value { color: #66b366; }

.reservation-toolbar {
    background: var(--panel);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.reservation-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.reservation-filter-buttons .btn {
    padding: 8px 12px;
    font-size: 0.9em;
}

.reservation-filter--reserved { background: #7eb3d4; }
.reservation-filter--purchased { background: #d4a366; }
.reservation-filter--offered { background: #66b366; }

.reservation-sort {
    margin-left: auto;
}

.reservation-sort label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9em;
}

.reservation-sort select {
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.reservation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.reservation-card {
    display: flex;
    flex-direction: column;
}

.reservation-card-image {
    width: 100%;
    height: 180px;
    background: #f5f5f5;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
    margin: -20px -20px 15px -20px;
}

.reservation-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reservation-card-title {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.reservation-card-meta {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9em;
}

.reservation-card-meta a {
    color: var(--brand);
    text-decoration: none;
}

.reservation-card-price {
    margin: 0 0 10px 0;
    color: #333;
    font-weight: 500;
}

.reservation-card-price small,
.reservation-card-date {
    color: var(--muted);
}

.reservation-card-date {
    margin: 0 0 15px 0;
    font-size: 0.85em;
}

.reservation-status-row {
    margin-bottom: 15px;
}

.reservation-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.reservation-status--reserved {
    background: #d4e8f5;
    color: #5a8fa8;
}

.reservation-status--purchased {
    background: #f5ebe0;
    color: #a88066;
}

.reservation-status--offered {
    background: #e8f5e8;
    color: #66b366;
}

.reservation-card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reservation-action-btn {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.9em;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--panel);
    border-radius: 8px;
}

.empty-state-icon {
    font-size: 3em;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #666;
    margin: 0 0 10px 0;
}

.empty-state p {
    color: var(--muted);
    margin: 0 0 20px 0;
}

.empty-state a {
    color: var(--brand);
}

.public-list-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(160px, 220px)) auto auto;
    gap: 12px;
    align-items: end;
    margin: 0 0 24px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-list-filters label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.92rem;
}

.public-list-filters input,
.public-list-filters select {
    width: 100%;
    min-height: 42px;
}

.legal-content {
    max-width: 860px;
}

.legal-content h2 {
    margin-top: 24px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.template-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.contents-form {
    display: contents;
}

.text-gap-top {
    margin: 10px 0 0;
}

.form-gap-top {
    margin-top: 15px;
}

.list-section-header--compact {
    margin: 0 0 14px;
}

.list-section-header--bottom-gap {
    margin-bottom: 14px;
}

.list-section-header--top-gap,
.gifts-grid-section--spaced {
    margin-top: 32px;
}

.list-section-kicker--warn-soft {
    background: color-mix(in srgb, var(--warn) 10%, white);
    color: var(--warn);
}

.flash--spaced {
    margin-top: 12px;
}

.gifts-grid-group--full {
    grid-column: 1 / -1;
}

.is-clickable {
    cursor: pointer;
}

.gift-card-price--bundle-total {
    font-size: 1.1rem;
    margin-top: 6px;
}

.gift-card--dimmed {
    opacity: 0.75;
}

.meta--tight-top {
    margin-top: 4px;
}

.gift-message-box--spaced {
    margin-top: 8px;
}

.gift-card-sources--spaced {
    margin-top: 6px;
}

.compact-action-form {
    display: flex;
    gap: 6px;
}

.btn--xs {
    font-size: 0.78rem;
}

.btn--icon-gap {
    gap: 4px;
}

.pill--compact-tall {
    font-size: 0.72rem;
    min-height: 22px;
}

.received-date {
    color: var(--ok);
    font-size: 0.8rem;
    margin: 4px 0 0;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    padding: 20px;
}

.modal-overlay.open {
    display: flex;
}

.modal-panel {
    width: min(90vw, 600px);
    max-height: 90vh;
    overflow-y: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
}

.modal-panel--narrow {
    width: min(90vw, 500px);
}

.modal-panel--wide {
    width: min(90vw, 700px);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions--large {
    margin-top: 25px;
}

.modal-action {
    flex: 1;
}

.modal-note {
    text-align: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.modal-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.modal-title-row h2 {
    margin: 0;
}

.icon-close {
    background: none;
    border: 0;
    color: #999;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.sub-input {
    margin-left: 20px;
    margin-top: 10px;
}

.hidden {
    display: none;
}

.warning-box {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: 8px;
}

.warning-box-title {
    margin: 0 0 10px;
    font-weight: 500;
}

.checkbox-label--spaced {
    margin-bottom: 8px;
}

.sub-panel {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
}

.textarea-medium {
    min-height: 80px;
}

.textarea-tall {
    min-height: 100px;
}

.amount-input-row {
    display: flex;
    gap: 10px;
}

.amount-input-row input {
    flex: 1;
}

.amount-input-row span {
    padding: 8px;
    color: var(--muted);
    white-space: nowrap;
}

.reserve-step--spaced {
    margin-top: 25px;
}

.share-private-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin-bottom: 2rem;
}

.share-private-warning h2,
.share-private-warning p,
.share-private-warning a {
    color: #856404;
}

.share-private-warning h2 {
    margin-top: 0;
}

.share-private-warning p {
    margin-bottom: 1rem;
}

.share-private-warning a {
    font-weight: 600;
}

.share-preview-frame {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.share-preview-frame iframe {
    display: block;
    width: 100%;
    min-height: 520px;
    border: 0;
}

.visibility-form,
.visibility-options {
    display: grid;
    gap: 1rem;
}

.visibility-form {
    gap: 1.5rem;
}

.visibility-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.visibility-option:has(input:checked) {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 8%, white);
}

.visibility-option input {
    margin-top: 4px;
}

.visibility-option p {
    margin: 0.5rem 0 0;
    color: #666;
    font-size: 0.9em;
}

.visibility-submit {
    justify-self: start;
}

.bot-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .public-list-filters {
        grid-template-columns: 1fr;
    }

    .discovery-daily-layout {
        grid-template-columns: 1fr;
    }

    .reservation-toolbar,
    .reservation-sort label {
        align-items: stretch;
    }

    .reservation-sort {
        margin-left: 0;
        width: 100%;
    }
}

/* ========================================================
   WIZARD / ASSISTANT COMPONENTS
   Shared styles for all guided assistants
   ======================================================== */

/* --- Wizard Banner (list-edit.php) --- */
.wizard-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.wizard-banner-content {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.wizard-banner-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.wizard-banner-content strong {
    display: block;
    color: #065f46;
    font-size: 1rem;
}

.wizard-banner-content p {
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: #047857;
}

/* --- Wizard Modal --- */
.wizard-modal .modal-panel {
    max-height: 90dvh;
    overflow-y: auto;
}

.wizard-progress {
    height: 4px;
    background: var(--line);
    border-radius: 99px;
    margin-bottom: 24px;
    overflow: hidden;
}

.wizard-progress-bar {
    height: 100%;
    background: var(--brand);
    border-radius: 99px;
    transition: width 0.3s ease;
    width: 0%;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.2s ease;
}

.wizard-step h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--ink);
}

/* --- Wizard Choice Cards --- */
.wizard-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.wizard-choices--wrap {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
}

.wizard-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    width: 100%;
}

.wizard-choices--wrap .wizard-choice-card {
    align-items: center;
    text-align: center;
}

.wizard-choice-card:hover {
    border-color: var(--brand);
    background: #f0fdf4;
}

.wizard-choice-card.selected {
    border-color: var(--brand);
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}

.wizard-choice-card.selected:after {
    display: none;
}

.wizard-choice-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 4px;
}

.wizard-choice-card strong {
    font-size: 0.95rem;
    color: var(--ink);
    display: block;
}

.wizard-choice-card span:not(.wizard-choice-icon) {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
}

.wizard-sub-field {
    margin-top: 12px;
    padding: 14px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.wizard-sub-field.hidden {
    display: none;
}

/* --- Wizard Summary (step 4) --- */
.wizard-summary {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.wizard-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.92rem;
}

.wizard-summary-row:last-child {
    border-bottom: none;
}

.wizard-summary-row span {
    color: var(--muted);
}

.wizard-summary-row strong {
    color: var(--ink);
}

/* --- Empty State Wizard (list.php) --- */
.empty-state-wizard {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-wizard h2 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: var(--ink);
}

.empty-state-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 28px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.empty-state-choice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    text-align: left;
    width: 100%;
}

.empty-state-choice:hover {
    border-color: var(--brand);
    background: #f0fdf4;
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.empty-state-choice-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-bottom: 4px;
}

.empty-state-choice strong {
    font-size: 0.95rem;
    color: var(--ink);
    display: block;
}

.empty-state-choice span:not(.empty-state-choice-icon) {
    font-size: 0.8rem;
    color: var(--muted);
    display: block;
}

.empty-state-url-panel {
    max-width: 520px;
    margin: 16px auto 0;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: left;
}

.empty-state-url-panel.hidden {
    display: none;
}

/* --- Share Wizard (list-share.php) --- */
.share-wizard {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.share-wizard h2 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    color: var(--ink);
}

.share-wizard > .muted {
    margin-bottom: 20px;
    display: block;
}

.share-wizard-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.share-wizard-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 12px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
}

.share-wizard-card:hover {
    border-color: var(--brand);
    background: #f0fdf4;
}

.share-wizard-card.selected {
    border-color: var(--brand);
    background: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}

.share-wizard-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 4px;
}

.share-wizard-card strong {
    font-size: 0.88rem;
    color: var(--ink);
    display: block;
}

.share-wizard-card span:not(.share-wizard-icon) {
    font-size: 0.72rem;
    color: var(--muted);
    display: block;
}

.share-wizard-link-section {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.share-wizard-link-section .meta {
    margin-bottom: 8px;
    font-weight: 600;
}

.assistant-next-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.assistant-next-action {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
}

.assistant-next-action i {
    color: var(--brand);
}

.assistant-next-action span {
    color: var(--muted);
    font-size: 0.86rem;
}

/* --- Unavailable Step Wizard (share.php) --- */
.unavail-step {
    display: none;
    animation: fadeIn 0.15s ease;
}

.unavail-step.active {
    display: block;
}

.unavail-reason-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.unavail-reason-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 12px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s, background 0.15s;
    width: 100%;
    font-size: 0.88rem;
    color: var(--ink);
    font-weight: 600;
}

.unavail-reason-btn:hover,
.unavail-reason-btn.selected {
    border-color: #dc2626;
    background: #fff5f5;
}

.unavail-reason-icon {
    font-size: 1.5rem;
}

@media (max-width: 600px) {
    .wizard-choices--wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .empty-state-choices {
        grid-template-columns: 1fr;
    }

    .share-wizard-choices {
        grid-template-columns: repeat(2, 1fr);
    }

    .unavail-reason-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
