:root {
    color-scheme: light;
    font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff8ec;
    color: #11132b;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: radial-gradient(circle at 10% 20%, #fff7cc, transparent 55%),
        radial-gradient(circle at 80% 0%, #ffd0b4, transparent 45%),
        radial-gradient(circle at 50% 100%, #d1fadf, transparent 45%),
        #fffdf5;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 193, 7, 0.2) 1px, transparent 0);
    background-size: 50px 50px;
    opacity: 0.3;
    pointer-events: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 253, 245, 0.9);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.3);
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.15);
}

.topbar__brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 19, 43, 0.18);
    background: #ffffff;
    color: #11132b;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid rgba(245, 158, 11, 0.8);
    outline-offset: 2px;
}

.brand {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.brand .logo-img {
    width: 85px;
    height: auto;
}

.topbar__menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.main-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 500;
}

.main-nav a {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 216, 128, 0.55);
    color: #6b370d;
}

.user-pill {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.user-pill form button {
    border: none;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #f0fdf4;
    border-radius: 999px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.content {
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 3rem;
    position: relative;
    z-index: 1;
}

.page-auth .content {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.content--wide {
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    border-radius: 32px;
    background: linear-gradient(120deg, #fff1a8, #ffd19b);
    color: #5f3605;
    margin-bottom: 2rem;
}

.hero.small {
    flex-direction: column;
}

.hero-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    align-self: flex-start;
}

.spacer {
    height: 1rem;
}

.hero.director {
    background: linear-gradient(135deg, #c8f7d7, #8ef5ff);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.7);
    padding: 1.5rem;
    border-radius: 24px;
    min-width: 200px;
    text-align: center;
}

.dashboard-hero {
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.dashboard-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1.2;
}

.dashboard-hero__subtitle {
    margin: 0;
    font-size: 1.1rem;
    max-width: 36rem;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.action-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    border: 1px solid rgba(251, 146, 60, 0.2);
    padding: 0.9rem 1rem;
    color: #6b370d;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.action-card small {
    color: #6b7280;
}

.action-card.primary {
    background: linear-gradient(120deg, #ffe39a, #ffba88);
    border: none;
    color: #5f3605;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.dashboard-hero__panel {
    display: grid;
    gap: 0.75rem;
    min-width: 240px;
}

.hero-metric {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 20px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.hero-metric p {
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.hero-metric strong {
    font-size: 2rem;
    display: block;
}

.hero-metric small {
    color: #6b7280;
}

.hero-metric--alert {
    background: rgba(255, 240, 224, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.3);
}

.hero-metric--soft {
    background: rgba(236, 253, 245, 0.9);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.btn {
    border: none;
    border-radius: 999px;
    padding: 0.9rem 1.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    justify-content: center;
    text-align: center;
}

.btn.big {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem 2rem;
}

.btn.tiny {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    border-radius: 12px;
}

.btn-popup {
    box-shadow: 0 12px 25px rgba(251, 146, 60, 0.25);
}

.btn.primary {
    background: linear-gradient(120deg, #facc15, #fb923c);
    color: #422006;
    box-shadow: 0 20px 40px rgba(251, 146, 60, 0.35);
}

.btn.ghost {
    background: rgba(17, 19, 43, 0.08);
    color: #11132b;
}

.btn.danger {
    background: linear-gradient(120deg, #ef4444, #dc2626);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(220, 38, 38, 0.35);
}

.btn.ghost.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
    box-shadow: none;
}

.btn.is-loading {
    opacity: 0.6;
}

.cta-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-kpis .card.stat {
    position: relative;
    overflow: hidden;
}

.dashboard-kpis .card.stat small {
    display: block;
    margin-top: 0.25rem;
    color: #6b7280;
}

.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.card--spaced {
    margin-top: 1.5rem;
}

.card.panel {
    border: 1px solid rgba(17, 19, 43, 0.05);
}

.card.stat strong {
    font-size: 2.5rem;
}

.card.stat.pending strong {
    color: #d97706;
}

.card.stat.warning strong {
    color: #ff7a18;
}

.card.stat.success strong {
    color: #16a34a;
}

.card.stat.danger strong {
    color: #dc2626;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2rem;
}

.dashboard-main,
.dashboard-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-stock .stock-pills {
    flex-direction: column;
}

.dashboard-stock .stock-pill {
    min-width: 0;
}

.list.queue-list li {
    border-bottom: none;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: #fffdf6;
    border: 1px solid rgba(17, 19, 43, 0.06);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.list.queue-list li + li {
    margin-top: 0.75rem;
}

.list.queue-list .pill {
    align-self: flex-start;
}

.column.stack {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.filter-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #6b370d;
}

.filter-inline select {
    border-radius: 999px;
    border: 1px solid rgba(17, 19, 43, 0.12);
    background: rgba(255, 216, 128, 0.4);
    padding: 0.35rem 0.75rem;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.list li {
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(17, 19, 43, 0.05);
}

.list li:last-child {
    border-bottom: none;
}

.event-panel .hint {
    margin: 0;
}

.event-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 249, 228, 0.8);
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.event-search,
.event-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #6b370d;
    min-width: 180px;
    flex: 1 1 200px;
}

.event-search input,
.event-filter select {
    border-radius: 12px;
    border: 1px solid rgba(17, 19, 43, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.75rem;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
}

.event-card {
    border: 1px solid rgba(17, 19, 43, 0.06);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.event-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.event-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color, #facc15);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
    flex-shrink: 0;
}

.event-card__title {
    flex: 1;
    min-width: 0;
}

.event-card__title p {
    margin: 0.2rem 0 0;
    color: #6b7280;
}

.event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #4b5563;
}

.event-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.event-card__actions form {
    margin: 0;
}

.recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
}

.recent-card {
    background: #fff;
    border: 1px solid rgba(17, 19, 43, 0.06);
    border-radius: 18px;
    padding: 1rem 1.1rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.recent-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recent-card__title {
    flex: 1;
    min-width: 0;
}

.recent-card__title p {
    margin: 0.2rem 0 0;
    color: #6b7280;
}

.recent-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: #4b5563;
}

.team-layout {
    grid-template-columns: minmax(240px, 1fr) minmax(360px, 2.2fr);
}

.team-create {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.06);
}

.team-create h2 {
    margin-top: 0;
    font-size: 1.25rem;
}

.team-create .form-grid {
    gap: 0.7rem 1rem;
}

.team-create .form-grid label {
    gap: 0.3rem;
    font-size: 0.95rem;
}

.team-create .form-grid input,
.team-create .form-grid select {
    padding: 0.7rem 0.85rem;
    font-size: 0.95rem;
}

.team-header {
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.invite-card .hint {
    margin-bottom: 1rem;
}

.invite-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.invite-link {
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.invite-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invite-qr img {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    padding: 0.5rem;
}

.team-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 249, 228, 0.8);
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.team-tools__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    flex: 1 1 320px;
}

.team-search,
.team-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #6b370d;
    flex: 1 1 200px;
    min-width: 180px;
}

.team-search input,
.team-filter select {
    border-radius: 12px;
    border: 1px solid rgba(17, 19, 43, 0.12);
    background: rgba(255, 255, 255, 0.9);
    padding: 0.55rem 0.75rem;
}

.team-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.team-list {
    gap: 0.75rem;
}

.team-list li {
    border-bottom: none;
    padding-bottom: 0;
}

.team-card {
    border: 1px solid rgba(17, 19, 43, 0.08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.team-card summary {
    list-style: none;
    cursor: pointer;
    padding: 0.9rem 1rem;
    display: block;
}

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

.team-card summary::marker {
    content: "";
}

.team-card[open] summary {
    background: rgba(251, 191, 36, 0.12);
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.team-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-identity {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.team-identity strong {
    font-size: 1rem;
}

.team-email {
    color: #6b7280;
    font-size: 0.9rem;
    word-break: break-word;
}

.team-summary__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.team-cta {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b370d;
    background: rgba(251, 191, 36, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.team-toggle {
    width: 10px;
    height: 10px;
    border-right: 2px solid #6b370d;
    border-bottom: 2px solid #6b370d;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.team-card[open] .team-toggle {
    transform: rotate(-135deg);
}

.team-form {
    padding: 0 1rem 1rem;
}

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

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    border-radius: 14px;
    border: 1px solid rgba(17, 19, 43, 0.15);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

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

.flow-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 200, 70, 0.3);
}

.form-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #78350f;
}

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

.block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.block input,
.block select,
.block textarea {
    border-radius: 16px;
    border: 1px solid rgba(17, 19, 43, 0.15);
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.9);
}

input[type="color"] {
    height: 48px;
    padding: 0;
    border-radius: 12px;
    cursor: pointer;
}

.label {
    font-weight: 600;
    color: #78350f;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

.map-field {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.coords {
    display: flex;
    gap: 0.5rem;
}

.coords label {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0.6rem;
    border-radius: 999px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

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

.timeline li {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(17, 19, 43, 0.05);
}

.timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff758c;
    margin-top: 0.5rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pill.orange {
    background: rgba(255, 122, 24, 0.12);
    color: #b54700;
}

.pill.yellow {
    background: rgba(250, 204, 21, 0.2);
    color: #854d0e;
}

.pill.green {
    background: rgba(34, 197, 94, 0.2);
    color: #166534;
}

.pill.neutral {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.pill.red {
    background: rgba(239, 68, 68, 0.16);
    color: #b91c1c;
}

.pillset {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.stock-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.stock-pill {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    min-width: 180px;
    color: #0f172a;
    position: relative;
}

.stock-pill::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid var(--accent, #facc15);
    opacity: 0.4;
    pointer-events: none;
}

.stock-pill strong {
    display: block;
    margin-bottom: 0.2rem;
}

.support-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.05);
}

.scoreboard li,
.activity li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.activity li {
    flex-direction: column;
    align-items: flex-start;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(17, 19, 43, 0.1);
}

.chip input {
    margin-right: 0.25rem;
}

.chip-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.support-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 16px;
    border: 1px solid rgba(17, 19, 43, 0.08);
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.07);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border 0.15s ease;
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.support-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.support-card__icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(17, 19, 43, 0.05);
    font-size: 1.1rem;
}

.support-card__icon svg {
    width: 22px;
    height: 22px;
    color: #0f172a;
}

.support-card__label {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.support-card__label small {
    color: #6b7280;
}

.support-card input:checked + .support-card__body .support-card__icon {
    background: rgba(34, 197, 94, 0.18);
}

.support-card input:checked + .support-card__body .support-card__label strong {
    color: #166534;
}

.support-card__body {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.chip.large {
    width: 100%;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(249, 115, 22, 0.25);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

.chip.large input {
    margin-right: 0.6rem;
}

.chip.large span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.chip.ghost {
    background: transparent;
    border: 1px dashed rgba(17, 19, 43, 0.2);
}

.flash {
    padding: 1rem 1.2rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.flash.success {
    background: #ecfdf5;
    color: #047857;
}

.flash.error {
    background: #fef2f2;
    color: #b91c1c;
}

.flash.warning {
    background: #fff7ed;
    color: #9a3412;
}

.inline-form {
    display: inline-flex;
    margin-left: 0.5rem;
}

.auth-card {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 1rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin: 0 0 1rem 0;
}

.auth-logo .logo-img {
    width: 160px;
    height: auto;
}

.auth-card__inner {
    background: #fff;
    padding: 3.25rem 3.5rem;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.15);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

.map {
    border-radius: 24px;
    overflow: hidden;
    background: #f5f5ff;
    height: 320px;
}

.map.-large {
    height: 520px;
}

.map-error {
    margin-top: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 14px;
    background: rgba(248, 113, 113, 0.12);
    color: #b91c1c;
    font-size: 0.9rem;
}

.legend {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 0.35rem;
}

.dot.installed {
    background: #22c55e;
}

.dot.needs-removal {
    background: #f97316;
}

.dot.removed {
    background: #a3a3a3;
}

.dot.lost {
    background: #ef4444;
}

.dot.broken {
    background: #b91c1c;
}

.dot.pending {
    background: #facc15;
}

.dot.support-pancarte {
    background: #facc15;
}

.dot.support-banderole {
    background: #fb923c;
}

.dot.support-affiche {
    background: #22c55e;
}

.marker {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    position: relative;
}

.marker svg {
    width: 26px;
    height: 26px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

.marker svg .shape-fill {
    stroke: #fff;
    stroke-width: 3px;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.marker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin-top: -17px;
    margin-left: -17px;
    border-radius: 50%;
    border: 2px solid rgba(239, 68, 68, 0.8);
    animation: marker-glow 2.6s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}

@keyframes marker-glow {
    0% {
        transform: scale(0.9);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.7;
    }
}

.legend-rows {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legend-shapes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.shape {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    vertical-align: middle;
    font-weight: 500;
}

.shape svg {
    width: 22px;
    height: 22px;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
}

.shape svg .shape-fill {
    stroke: #fff;
    stroke-width: 2px;
    stroke-linejoin: round;
    stroke-linecap: round;
}

.installer-page {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.installer-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.installer-hero h1 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem);
}

.installer-hero p {
    margin: 0 auto;
    max-width: 40rem;
    font-size: 1.05rem;
    color: #5f3605;
}

.installer-card {
    background: #fff;
    border-radius: 28px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.installer-steps {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.75rem;
}

.installer-steps li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(251, 191, 36, 0.18);
    border: 1px solid rgba(251, 146, 60, 0.2);
    color: #6b370d;
    font-weight: 600;
}

.step-index {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #fb923c;
    color: #fffdf4;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.98rem;
}

.installer-help {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(254, 243, 199, 0.7);
    border: 1px solid rgba(180, 83, 9, 0.2);
    color: #7c2d12;
    margin-bottom: 1.5rem;
}

.installer-help p {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: #92400e;
}

.installer-help__icon {
    font-size: 1.2rem;
    line-height: 1;
}

.installer-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.installer-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

.installer-form input,
.installer-form select,
.installer-form textarea {
    border-radius: 16px;
    border: 1px solid rgba(17, 19, 43, 0.2);
    padding: 0.95rem 1rem;
    background: #fff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    font-size: 1rem;
}

.installer-form textarea {
    resize: vertical;
    min-height: 80px;
}

.stepper {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    border-radius: 16px;
    border: 1px solid rgba(17, 19, 43, 0.2);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.stepper input {
    border: none;
    box-shadow: none;
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.stepper-btn {
    border: none;
    background: rgba(251, 191, 36, 0.2);
    color: #6b370d;
    font-size: 1.2rem;
    height: 100%;
    cursor: pointer;
}

.installer-actions {
    text-align: center;
}

.hint {
    color: #6b7280;
}

.installer-status {
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem;
}

.installer-status[data-variant="success"] {
    color: #0f9d58;
}

.installer-status[data-variant="error"] {
    color: #e11d48;
}

.manual-block {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

.manual-block[hidden] {
    display: none;
}

.manual-hint {
    margin-top: 1rem;
    text-align: center;
}

.manual-hint .btn {
    padding: 0.4rem 1rem;
}

.manual-hint.warning {
    color: #b45309;
}

.manual-hint.warning .btn {
    background: #fef3c7;
    color: #92400e;
}

.spot-list__header {
    gap: 0.75rem;
}

.spot-list {
    gap: 0.85rem;
}

.spot-card {
    display: block;
    width: 100%;
    background: #fffdf8;
    border: 1px solid rgba(17, 19, 43, 0.06);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.spot-card.is-focused {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 12px 40px rgba(34, 197, 94, 0.18);
}

.spot-list__title {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.spot-list__title .pill {
    flex-shrink: 0;
    margin-left: auto;
}

.spot-title {
    flex: 1;
    min-width: 0;
}

.spot-title p {
    margin: 0.15rem 0 0;
    color: #6b7280;
}

.spot-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--dot-color, #facc15);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.18);
    flex-shrink: 0;
}

.spot-list__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    color: #4b5563;
}

.meta-line {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(17, 19, 43, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
}

.meta-line.muted {
    background: transparent;
    color: #6b7280;
    padding: 0;
}

.spot-empty {
    margin: 0 0 0.75rem;
    color: #6b7280;
}

.spot-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
}

.popup-spot {
    min-width: 220px;
    max-width: 260px;
}

.popup-spot__title {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.popup-spot__title p {
    margin: 0.1rem 0 0;
    color: #6b7280;
}

.popup-spot__meta {
    margin: 0.15rem 0;
    color: #4b5563;
    display: block;
}

.popup-spot__meta strong {
    color: #11132b;
}

.popup-spot__meta.muted {
    color: #6b7280;
}

.popup-spot__note {
    margin: 0.35rem 0;
    color: #6b7280;
    font-style: italic;
}

.popup-spot__location {
    margin-top: 0.25rem;
}

.popup-spot__actions {
    margin: 0.4rem 0 0.1rem;
}

.manual-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.manual-actions small {
    color: #6b7280;
}

.manual-actions .btn {
    flex-shrink: 0;
}

.manual-actions__buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.manual-map[hidden] {
    display: none;
}

.removal-target {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.removal-target__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.removal-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.removal-status {
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.05);
}

.distance {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}

.manual-fallback {
    margin-top: 1.5rem;
}
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.inventory-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    position: relative;
}

.inventory-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    border: 2px solid var(--accent, #facc15);
    opacity: 0.3;
    pointer-events: none;
}

.inventory-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.inventory-create-toggle {
    margin-bottom: 1.5rem;
}

.inventory-create-toggle summary {
    list-style: none;
}

.inventory-create-toggle summary::-webkit-details-marker {
    display: none;
}

.inventory-create-toggle summary::marker {
    display: none;
}

.inventory-create-panel {
    margin-top: 1rem;
}

.badge {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
}

.inventory-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.inventory-form label {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
}

.inventory-form input {
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    padding: 0.6rem 0.8rem;
}

.inventory-form button {
    margin-top: 0.3rem;
}

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

.table th,
.table td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.table th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b370d;
}

.event-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.event-actions form {
    margin: 0;
}

@media (max-width: 800px) {
    .topbar {
        flex-direction: column;
        align-items: stretch;
        position: static;
    }

    .topbar__brand {
        width: 100%;
        justify-content: space-between;
    }

    .menu-toggle {
        display: inline-flex;
        box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    }

    .topbar__menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .topbar__menu.is-open {
        display: flex;
    }

    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-pill {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .hero {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .event-header {
        flex-direction: column;
        align-items: stretch;
    }

    .event-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .event-list {
        grid-template-columns: 1fr;
    }

    .dashboard-hero {
        flex-direction: column;
    }

    .dashboard-hero__panel {
        width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

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

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

    .team-header {
        flex-direction: column;
        align-items: stretch;
    }

    .team-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .team-tools__fields {
        flex-direction: column;
    }

    .team-summary {
        flex-wrap: wrap;
    }

    .team-summary__actions {
        margin-left: auto;
    }

    .installer-page {
        padding-bottom: 6.5rem;
    }

    .installer-card {
        padding: 1.5rem 1.25rem 6.5rem;
    }

    .installer-steps {
        grid-template-columns: 1fr;
    }

    .installer-actions {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.95);
        padding: 0.75rem;
        border-radius: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        z-index: 30;
    }

    .installer-actions .btn.big {
        width: 100%;
    }

    .installer-status {
        margin-top: 0.5rem;
    }
}
.legend-shapes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

body.landing {
    background: radial-gradient(circle at 10% 20%, #fff7cc, transparent 55%),
        radial-gradient(circle at 80% 0%, #ffd0b4, transparent 45%),
        radial-gradient(circle at 50% 100%, #d1fadf, transparent 45%),
        #fffdf5;
}

.landing-header {
    position: sticky;
    top: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 253, 245, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(250, 204, 21, 0.25);
    flex-wrap: wrap;
}

.landing-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.landing-header .logo-img {
    width: 160px;
    max-width: 200px;
    height: auto;
}

.landing-tagline {
    font-weight: 600;
    color: #6b370d;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.landing-nav a {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 216, 128, 0.45);
    color: #6b370d;
    font-weight: 500;
}

.landing-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(250, 204, 21, 0.45);
    background: rgba(255, 216, 128, 0.45);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.landing-nav__bar {
    width: 20px;
    height: 2px;
    background: #6b370d;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.landing-header.is-open .landing-nav__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.landing-header.is-open .landing-nav__bar:nth-child(2) {
    opacity: 0;
}

.landing-header.is-open .landing-nav__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.landing-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 3rem;
    position: relative;
    z-index: 1;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.landing-hero__content {
    animation: fadeUp 0.8s ease both;
}

.landing-hero__visual {
    display: grid;
    gap: 1.25rem;
    animation: fadeUp 0.8s ease 0.15s both;
}

.landing-hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin: 0.5rem 0 1rem;
    color: #4b2603;
}

.landing-lead {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #3f3f46;
}

.landing-trust {
    display: grid;
    gap: 0.35rem;
    margin-top: 1.25rem;
    color: #6b370d;
    font-weight: 600;
}

.landing-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.landing-card.wide {
    min-height: 140px;
}

.landing-card__label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    color: #9a3412;
    margin: 0 0 0.5rem;
}

.landing-illustration {
    display: grid;
    gap: 1rem;
    justify-items: center;
}

.landing-illustration__svg {
    width: 100%;
    max-width: 460px;
    height: auto;
    border-radius: 24px;
}

.landing-illustration__caption {
    text-align: center;
    max-width: 420px;
    color: #4b2603;
}

.landing-illustration__caption p {
    margin: 0.4rem 0 0;
    color: #6b7280;
}

.landing-section {
    margin: 3rem 0;
    scroll-margin-top: 7rem;
} 

.landing-section__header {
    max-width: 820px;
    margin-bottom: 1.5rem;
}

.landing-section__header h2 {
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin: 0 0 0.5rem;
    color: #4b2603;
}

.landing-section__header h1 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    margin: 0 0 0.5rem;
    color: #4b2603;
}

.landing-section__header p {
    margin: 0;
    color: #52525b;
    font-size: 1.05rem;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.landing-step {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(250, 204, 21, 0.25);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.landing-step__number {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #facc15;
    color: #422006;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

.landing-feature {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 1.5rem;
    border: 1px solid rgba(17, 19, 43, 0.08);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.06);
}

.landing-cta {
    background: linear-gradient(120deg, rgba(255, 229, 161, 0.8), rgba(255, 208, 180, 0.8));
    border-radius: 28px;
    padding: 2rem;
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.landing-form {
    margin-top: 1.5rem;
}

.landing-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    text-align: center;
}

.landing-form__actions a {
    text-decoration: underline;
    color: #6b370d;
    font-weight: 600;
}

.landing-faq__cta {
    margin-top: 1.25rem;
    text-align: center;
}

.landing-faq__link {
    text-decoration: underline;
    color: #6b370d;
    font-weight: 600;
}

.landing-form__flash {
    margin-top: 1rem;
}

.landing-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2.5rem clamp(1.5rem, 4vw, 4rem);
    border-top: 1px solid rgba(17, 19, 43, 0.08);
    background: rgba(255, 255, 255, 0.8);
}

.landing-footer p {
    margin: 0.4rem 0 0;
    color: #6b7280;
}

.landing-footer__note {
    font-size: 0.95rem;
}

.landing-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-weight: 600;
    color: #6b370d;
}

.legal {
    max-width: 860px;
    margin: 0 auto;
}

.legal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.legal-close {
    white-space: nowrap;
}

.legal h1 {
    margin-top: 0;
}

.legal h2 {
    margin-top: 0;
    color: #4b2603;
}

.legal-card {
    margin-bottom: 1.5rem;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    color: #3f3f46;
}

.legal-list a {
    text-decoration: underline;
    color: #6b370d;
    font-weight: 600;
}

.site-footer {
    padding: 1.5rem clamp(1.5rem, 4vw, 4rem);
    text-align: center;
    color: #6b7280;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.site-footer a {
    color: #6b370d;
    font-weight: 600;
    text-decoration: underline;
}

.site-footer__note {
    margin: 0;
    font-size: 0.95rem;
}

.floating {
    animation: float 3.5s ease-in-out infinite;
}

.floating.delay {
    animation-delay: 0.6s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-section {
        scroll-margin-top: 9rem;
    }

    .landing-header {
        padding: 1rem 1.5rem;
    }

    .landing-nav__toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .landing-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 18px;
        background: rgba(255, 253, 245, 0.95);
        border: 1px solid rgba(250, 204, 21, 0.2);
    }

    .landing-nav a {
        width: 100%;
        text-align: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .js .landing-nav {
        display: none;
    }

    .js .landing-header.is-open .landing-nav {
        display: flex;
    }

    .landing-tagline {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating,
    .landing-hero__content,
    .landing-hero__visual {
        animation: none;
    }
}
