@import url("https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700;800&family=Sora:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root {
    --bg: #f6f7fb;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;
    --primary: #2563eb;
    --primary-contrast: #ffffff;
    --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: var(--bg);
    line-height: 1.4;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 10;
}

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

.brand {
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.hero {
    padding: 22px 0 14px;
}

.hero-title {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.panel-title {
    margin: 0;
    font-size: 1rem;
}

.search-form .field label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.search-form input,
.search-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.search-form input:focus,
.search-form select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.field--full {
    grid-column: 1 / -1;
}

.search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.org-filter-form {
    margin: 12px 0 14px;
}

.org-filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.org-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: end;
    justify-content: flex-end;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--primary);
    color: var(--primary-contrast);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.btn[disabled],
.btn.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #eef2ff;
    border-color: #dbe3ff;
    color: #1e40af;
}

.link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.link:hover {
    text-decoration: underline;
}

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

.alpha-item {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    text-decoration: none;
    font-weight: 700;
    color: #334155;
}

.alpha-item.is-active {
    background: var(--primary);
    border-color: rgba(37, 99, 235, 0.9);
    color: var(--primary-contrast);
}

.results {
    padding-bottom: 28px;
}

.results-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
}

.results-title {
    margin: 0;
    font-size: 1.05rem;
}

.results-actions {
    display: flex;
    align-items: center;
}

.results-export {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

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

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.pagination-meta {
    font-size: 0.9rem;
}

.pagination-disabled {
    opacity: 0.55;
    pointer-events: none;
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.card-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-actions form {
    margin: 0;
}

.favorite-toggle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #ffffff;
    color: #94a3b8;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.favorite-toggle:hover {
    background: #f8fafc;
    color: #f59e0b;
}

.favorite-toggle.is-active {
    color: #f59e0b;
    border-color: #f59e0b;
    background: #fff7ed;
}

.card-title {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.card-title a {
    text-decoration: none;
}

.card-title a:hover {
    text-decoration: underline;
}

.account-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-left: 8px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 600;
    vertical-align: middle;
}

.friend-action-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-locations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.card-location-name {
    font-weight: 600;
}

.card-location-sub {
    font-size: 0.9rem;
}

.card-location-phone {
    font-size: 0.92rem;
    color: var(--muted);
}

.friend-action-wrap form,
.friend-actions form {
    margin: 0;
}

.friend-action {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.friend-action:hover {
    background: #eff6ff;
}

.friend-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
}

.friend-pill--ok {
    background: #dcfce7;
    color: #166534;
}

.friend-link {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.friend-link:hover {
    text-decoration: underline;
}

.card-meta {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
}

.card-meta--stack {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 6px;
}

.card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.card-meta-item + .card-meta-item::before {
    content: "·";
    opacity: 0.7;
    margin: 0 8px;
}

.card-meta--stack .card-meta-item + .card-meta-item::before {
    content: "";
    margin: 0;
}

.profession-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profession-icon {
    width: 18px;
    height: 18px;
    border-radius: 7px;
    display: inline-block;
    flex: 0 0 auto;
    background-color: #94a3b8;
    -webkit-mask: url("../icons/professions/other.svg") no-repeat center /
        contain;
    mask: url("../icons/professions/other.svg") no-repeat center / contain;
}

.profession-icon--doctor {
    background-color: var(--primary);
    -webkit-mask-image: url("../icons/professions/doctor.svg");
    mask-image: url("../icons/professions/doctor.svg");
}

.profession-icon--pharmacist {
    background-color: #16a34a;
    -webkit-mask-image: url("../icons/professions/pharmacist.svg");
    mask-image: url("../icons/professions/pharmacist.svg");
}

.profession-icon--physio {
    background-color: #f97316;
    -webkit-mask-image: url("../icons/professions/physio.svg");
    mask-image: url("../icons/professions/physio.svg");
}

.profession-icon--midwife {
    background-color: #db2777;
    -webkit-mask-image: url("../icons/professions/midwife.svg");
    mask-image: url("../icons/professions/midwife.svg");
}

.profession-icon--nurse {
    background-color: #0ea5e9;
    -webkit-mask-image: url("../icons/professions/nurse.svg");
    mask-image: url("../icons/professions/nurse.svg");
}

.profession-icon--other {
    background-color: #64748b;
    -webkit-mask-image: url("../icons/professions/other.svg");
    mask-image: url("../icons/professions/other.svg");
}

.card-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
}

.tag-muted {
    background: #ffffff;
    color: var(--muted);
}

.card-contacts {
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}

.card-contacts dt {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-contacts dd {
    margin: 2px 0 0;
    font-size: 0.92rem;
}

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

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

.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    padding: 18px 0 28px;
}

.layout--no-sidebar {
    grid-template-columns: 1fr;
}

.layout--no-sidebar .sidebar {
    display: none;
}

.sidebar {
    position: sticky;
    top: 86px;
    align-self: start;
}

.content {
    min-width: 0;
}

.sidebar-panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    padding: 14px;
    margin-bottom: 12px;
}

.sidebar-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.sidebar-title {
    font-weight: 800;
    letter-spacing: -0.01em;
}

.sidebar-item {
    margin-top: 6px;
}

.sidebar-meta {
    font-size: 0.9rem;
    margin-top: 6px;
}

.sidebar-level {
    margin-top: 12px;
}

.sidebar-level-title {
    display: inline-flex;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}

.sidebar-level-title:hover {
    text-decoration: underline;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    display: grid;
    gap: 6px;
}

.sidebar-list-item {
    font-size: 0.92rem;
}

.alert {
    border-radius: 12px;
    padding: 10px 12px;
    margin: 0 0 12px;
    border: 1px solid var(--border);
}

.alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
}

.btn-sm {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.inline-form {
    display: inline;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.table th {
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    white-space: nowrap;
}

.friend-list {
    display: grid;
    gap: 12px;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    flex-wrap: wrap;
}

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

.results-list {
    display: grid;
    gap: 12px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    flex-wrap: wrap;
}

.result-title {
    font-weight: 700;
}

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

.network-empty {
    padding: 10px 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.network-subtitle {
    margin: 0 0 10px;
    font-size: 0.95rem;
}

.network-hint {
    margin: -6px 0 12px;
    font-size: 0.85rem;
}

.network-form {
    margin-bottom: 12px;
}

.network-add-sections {
    display: grid;
    gap: 12px;
}

.network-add-org-grid {
    display: grid;
    gap: 12px;
}

.network-add-section {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
}

.network-add-section .network-form {
    margin-bottom: 0;
}

.network-add-title {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

.network-add-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.network-add-row .btn {
    white-space: nowrap;
}

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

.network-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.network-item-main {
    min-width: 0;
}

.breadcrumb {
    margin: 16px 0 12px;
}

.detail-title {
    margin: 0;
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

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

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

.detail-actions form {
    margin: 0;
}

.vcard-details summary {
    list-style: none;
}

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

.vcard-details[open] summary {
    margin-bottom: 10px;
}

.vcard-panel {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
}

.vcard-qr {
    display: flex;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
}

.vcard-qr-img {
    width: 240px;
    height: 240px;
}

.detail-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
}

.detail-subtitle--inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 4px;
    column-gap: 0;
}

.detail-subtitle-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.detail-subtitle-item + .detail-subtitle-item::before {
    content: "·";
    opacity: 0.7;
    margin: 0 8px;
}

.detail-subtitle-sep {
    opacity: 0.7;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}

.detail-section-title {
    margin: 0 0 10px;
    font-size: 1rem;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
}

.detail-location-phone {
    margin-top: 4px;
    font-size: 0.92rem;
    color: var(--muted);
}

.detail-text {
    margin: 0;
}

.city-picker-selected {
    margin-top: 8px;
    font-size: 0.92rem;
}

.city-radius-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding: 2px 0;
}

.city-radius-panel[hidden] {
    display: none;
}

.city-radius-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.city-radius-value {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.city-radius-range {
    flex: 1;
    min-width: 140px;
    accent-color: var(--primary);
}

.city-radius-range:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.city-picker-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.city-picker-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 600;
}

.city-picker-tag-remove {
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
}

.city-picker-selected:empty,
.city-picker-results:empty {
    display: none;
}

.city-picker-results {
    margin-top: 10px;
}

.city-picker-results-list {
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    max-height: 220px;
    overflow: auto;
}

.city-picker-result {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f8fafc;
    color: var(--text);
    cursor: pointer;
}

.city-picker-result--all {
    border-style: dashed;
    background: #ecfeff;
    font-weight: 600;
}

.city-picker-result--department {
    border-color: #f59e0b;
    background: #fef3c7;
    font-weight: 600;
}

.city-picker-result:hover {
    background: #f1f5f9;
}

.city-picker-result--all:hover {
    background: #cffafe;
}

.city-picker-result--department:hover {
    background: #fde68a;
}

@media (max-width: 860px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

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

    .org-filter-row {
        grid-template-columns: 1fr;
    }

    .org-filter-actions .btn {
        width: 100%;
    }

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

    .network-add-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .network-add-row .btn {
        width: 100%;
    }

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

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

body[data-theme="atelier"] {
    --bg: #f6f1e7;
    --panel: #ffffff;
    --text: #1c1b20;
    --muted: #5b6472;
    --border: #eadfce;
    --primary: #0f766e;
    --primary-contrast: #ffffff;
    --shadow: 0 24px 50px rgba(15, 23, 42, 0.12);
    --radius: 18px;
    font-family: "Space Grotesk", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 12% 12%, rgba(20, 184, 166, 0.16), transparent 55%),
        radial-gradient(circle at 88% 18%, rgba(251, 191, 36, 0.18), transparent 52%),
        radial-gradient(circle at 78% 88%, rgba(14, 165, 233, 0.12), transparent 58%);
    background-attachment: fixed;
    line-height: 1.5;
}

body[data-theme="atelier"] .site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

body[data-theme="atelier"] .header-inner {
    height: 68px;
}

body[data-theme="atelier"] .brand {
    font-family: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;
    font-weight: 700;
    font-size: 1.1rem;
}

body[data-theme="atelier"] .hero {
    padding: 28px 0 18px;
    animation: rise-in 0.5s ease both;
}

body[data-theme="atelier"] .hero-title {
    font-family: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}

body[data-theme="atelier"] .hero-subtitle {
    max-width: 780px;
}

body[data-theme="atelier"] .panel {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(17, 24, 39, 0.08);
    padding: 18px;
    margin-bottom: 18px;
    animation: rise-in 0.55s ease both;
}

body[data-theme="atelier"] .panel-title {
    font-family: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;
    font-size: 1.05rem;
}

body[data-theme="atelier"] .search-form .field label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

body[data-theme="atelier"] .search-form input,
body[data-theme="atelier"] .search-form select {
    padding: 12px 14px;
    border: 1px solid #eadfce;
    border-radius: 14px;
    background: #fffdf8;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-theme="atelier"] .search-form input:focus,
body[data-theme="atelier"] .search-form select:focus {
    border-color: rgba(15, 118, 110, 0.55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.2);
}

body[data-theme="atelier"] .search-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

body[data-theme="atelier"] .search-actions {
    gap: 12px;
    margin-top: 16px;
}

body[data-theme="atelier"] .btn {
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e, #0ea5e9);
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="atelier"] .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(15, 118, 110, 0.3);
}

body[data-theme="atelier"] .btn-secondary {
    background: #fff6e4;
    border-color: #f2e0bf;
    color: #8a5a18;
    box-shadow: none;
}

body[data-theme="atelier"] .btn-secondary:hover {
    transform: translateY(-1px);
}

body[data-theme="atelier"] .alpha {
    gap: 8px;
}

body[data-theme="atelier"] .alpha-item {
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body[data-theme="atelier"] .alpha-item:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 12px 18px rgba(15, 23, 42, 0.1);
}

body[data-theme="atelier"] .alpha-item.is-active {
    border-color: rgba(15, 118, 110, 0.9);
    box-shadow: 0 14px 24px rgba(15, 118, 110, 0.35);
}

body[data-theme="atelier"] .cards {
    gap: 16px;
}

body[data-theme="atelier"] .card {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: rise-in 0.6s ease both;
}

body[data-theme="atelier"] .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 38px rgba(15, 23, 42, 0.14);
}

body[data-theme="atelier"] .card-title {
    font-family: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;
    font-size: 1.15rem;
    letter-spacing: -0.005em;
}

body[data-theme="atelier"] .card-meta {
    font-size: 0.92rem;
}

body[data-theme="atelier"] .tag {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(15, 118, 110, 0.08);
    color: #0f4f4a;
}

body[data-theme="atelier"] .sidebar-panel {
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.08);
    padding: 16px;
}

body[data-theme="atelier"] .sidebar-title {
    font-family: "Fraunces", "Palatino Linotype", "Book Antiqua", serif;
    font-weight: 700;
}

body[data-theme="atelier"] .city-picker-selected {
    font-weight: 500;
}

body[data-theme="atelier"] .city-picker-tag {
    border: 1px solid rgba(15, 118, 110, 0.2);
    background: rgba(15, 118, 110, 0.08);
    color: #0f4f4a;
}

body[data-theme="atelier"] .city-picker-results {
    margin-top: 12px;
}

body[data-theme="atelier"] .city-picker-results-list {
    padding: 10px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 14px;
    background: #fffaf1;
    box-shadow: 0 16px 24px rgba(15, 23, 42, 0.08);
}

body[data-theme="atelier"] .city-picker-result {
    padding: 9px 12px;
    border: 1px solid rgba(15, 118, 110, 0.18);
    border-radius: 12px;
    background: #ffffff;
}

body[data-theme="atelier"] .city-picker-result:hover {
    background: rgba(15, 118, 110, 0.08);
}

body[data-theme="moderne"] {
    --bg: #f3f5fb;
    --panel: rgba(255, 255, 255, 0.9);
    --text: #0b1021;
    --muted: #52607a;
    --border: rgba(15, 23, 42, 0.1);
    --primary: #0b7cff;
    --primary-contrast: #ffffff;
    --shadow: 0 32px 80px rgba(11, 18, 32, 0.16);
    --radius: 20px;
    --accent: #00d084;
    --accent-warm: #ff9f45;
    font-family: "Sora", "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(1100px circle at 12% 6%, rgba(11, 124, 255, 0.2), transparent 55%),
        radial-gradient(900px circle at 88% 12%, rgba(255, 159, 69, 0.2), transparent 55%),
        radial-gradient(900px circle at 86% 86%, rgba(0, 208, 132, 0.18), transparent 58%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 45%, rgba(11, 124, 255, 0.08) 70%);
    background-attachment: fixed;
    line-height: 1.6;
}

body[data-theme="moderne"] .site-header {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 26px rgba(11, 18, 32, 0.1);
}

body[data-theme="moderne"] .header-inner {
    height: 72px;
}

body[data-theme="moderne"] .brand {
    font-family: "Syne", "Sora", "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: -0.01em;
    color: #0b1021;
    background-image: linear-gradient(95deg, #0b1021 0%, #0b7cff 55%, #ff9f45 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-theme="moderne"] .hero {
    padding: 36px 0 24px;
    animation: modern-in 0.6s ease both;
}

body[data-theme="moderne"] .hero-title {
    font-family: "Syne", "Sora", "Space Grotesk", sans-serif;
    font-size: 2.55rem;
    letter-spacing: -0.02em;
    color: #0b1021;
    background-image: linear-gradient(105deg, #0b1021 0%, #0f172a 38%, #0b7cff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body[data-theme="moderne"] .hero-subtitle {
    max-width: 860px;
    font-size: 1.04rem;
}

body[data-theme="moderne"] .panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.86));
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow);
    padding: 18px;
    margin-bottom: 18px;
    backdrop-filter: blur(16px) saturate(160%);
    animation: modern-in 0.65s ease both;
}

body[data-theme="moderne"] .panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, rgba(11, 124, 255, 0.18), rgba(255, 255, 255, 0) 50%, rgba(255, 159, 69, 0.12) 80%);
    opacity: 0.45;
    pointer-events: none;
}

body[data-theme="moderne"] .panel > * {
    position: relative;
    z-index: 1;
}

body[data-theme="moderne"] .panel-title {
    font-family: "Syne", "Sora", "Space Grotesk", sans-serif;
    font-size: 1.08rem;
}

body[data-theme="moderne"] .search-form .field label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

body[data-theme="moderne"] .search-form input,
body[data-theme="moderne"] .search-form select {
    padding: 12px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    box-shadow: 0 10px 18px rgba(11, 18, 32, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body[data-theme="moderne"] .search-form input:focus,
body[data-theme="moderne"] .search-form select:focus {
    border-color: rgba(11, 124, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(11, 124, 255, 0.18), 0 12px 22px rgba(11, 124, 255, 0.16);
    transform: translateY(-1px);
}

body[data-theme="moderne"] .search-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    align-items: start;
}

body[data-theme="moderne"] .search-actions {
    gap: 12px;
    margin-top: 16px;
}

body[data-theme="moderne"] .btn,
body[data-theme="moderne"] .btn-secondary {
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
}

body[data-theme="moderne"] .btn {
    padding: 12px 20px;
    border-radius: 16px;
    background: linear-gradient(120deg, #0b7cff 0%, #00d084 55%, #0ea5e9 100%);
    color: #ffffff;
    border: 1px solid rgba(11, 124, 255, 0.2);
    box-shadow: 0 16px 32px rgba(11, 124, 255, 0.32), 0 6px 14px rgba(0, 208, 132, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="moderne"] .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 38px rgba(11, 124, 255, 0.36), 0 10px 18px rgba(0, 208, 132, 0.24);
}

body[data-theme="moderne"] .btn-secondary {
    color: #0b1021;
    border: 1.5px solid transparent;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)) padding-box,
        linear-gradient(120deg, rgba(11, 124, 255, 0.9), rgba(0, 208, 132, 0.9), rgba(255, 159, 69, 0.85)) border-box;
    box-shadow: 0 14px 24px rgba(11, 18, 32, 0.12);
}

body[data-theme="moderne"] .btn-secondary:hover {
    transform: translateY(-1px);
}

body[data-theme="moderne"] .alpha {
    gap: 8px;
}

body[data-theme="moderne"] .alpha-item {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 22px rgba(11, 18, 32, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body[data-theme="moderne"] .alpha-item:hover {
    transform: translateY(-1px);
    border-color: rgba(11, 124, 255, 0.45);
    box-shadow: 0 18px 28px rgba(11, 18, 32, 0.14);
}

body[data-theme="moderne"] .alpha-item.is-active {
    border-color: rgba(11, 124, 255, 0.9);
    box-shadow: 0 20px 32px rgba(11, 124, 255, 0.3);
}

body[data-theme="moderne"] .cards {
    gap: 18px;
}

body[data-theme="moderne"] .card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
    box-shadow: 0 22px 36px rgba(11, 18, 32, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: modern-in 0.75s ease both;
    backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme="moderne"] .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 124, 255, 0.12), rgba(255, 255, 255, 0) 55%, rgba(0, 208, 132, 0.12) 85%);
    opacity: 0.55;
    pointer-events: none;
}

body[data-theme="moderne"] .card > * {
    position: relative;
    z-index: 1;
}

body[data-theme="moderne"] .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 44px rgba(11, 18, 32, 0.18);
}

body[data-theme="moderne"] .card-title {
    font-family: "Syne", "Sora", "Space Grotesk", sans-serif;
    font-size: 1.18rem;
    letter-spacing: -0.01em;
}

body[data-theme="moderne"] .card-meta {
    font-size: 0.95rem;
}

body[data-theme="moderne"] .cards .card:nth-child(1) {
    animation-delay: 0.05s;
}

body[data-theme="moderne"] .cards .card:nth-child(2) {
    animation-delay: 0.1s;
}

body[data-theme="moderne"] .cards .card:nth-child(3) {
    animation-delay: 0.15s;
}

body[data-theme="moderne"] .cards .card:nth-child(4) {
    animation-delay: 0.2s;
}

body[data-theme="moderne"] .cards .card:nth-child(5) {
    animation-delay: 0.25s;
}

body[data-theme="moderne"] .tag {
    border: 1px solid rgba(11, 124, 255, 0.25);
    background: linear-gradient(90deg, rgba(11, 124, 255, 0.18), rgba(0, 208, 132, 0.16));
    color: #0b1021;
}

body[data-theme="moderne"] .sidebar-panel {
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 34px rgba(11, 18, 32, 0.14);
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(150%);
}

body[data-theme="moderne"] .sidebar-title {
    font-family: "Syne", "Sora", "Space Grotesk", sans-serif;
    font-weight: 700;
}

body[data-theme="moderne"] .city-picker-selected {
    font-weight: 500;
}

body[data-theme="moderne"] .city-picker-tag {
    border: 1px solid rgba(11, 124, 255, 0.25);
    background: rgba(11, 124, 255, 0.14);
    color: #0b1021;
}

body[data-theme="moderne"] .city-picker-results {
    margin-top: 12px;
}

body[data-theme="moderne"] .city-picker-results-list {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 32px rgba(11, 18, 32, 0.14);
    backdrop-filter: blur(12px) saturate(150%);
}

body[data-theme="moderne"] .city-picker-result {
    padding: 9px 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
}

body[data-theme="moderne"] .city-picker-result:hover {
    background: rgba(11, 124, 255, 0.14);
}

body[data-theme="moderne"] .city-picker-result--all {
    border-color: rgba(11, 124, 255, 0.45);
    background: rgba(11, 124, 255, 0.2);
}

body[data-theme="moderne"] .city-picker-result--department {
    border-color: rgba(255, 159, 69, 0.6);
    background: rgba(255, 159, 69, 0.2);
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modern-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 860px) {
    .city-radius-range {
        min-width: 110px;
    }
}
