html, body, #root { margin: 0; min-height: 100%; }
body {
    background: #0b0607; color: #f3ece7;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.mj {
    background:
        radial-gradient(70% 34% at 50% 0%, rgba(164, 22, 35, 0.38), rgba(164, 22, 35, 0) 72%),
        #0b0607;
    color: #f3ece7;
    margin: 0;
    padding: 28px 20px 36px;
    min-height: 100vh;
    font-family: inherit;
}
@media (min-width: 768px) { .mj { padding: 44px 36px 48px; } }

.mj-hero { text-align: center; max-width: 720px; margin: 0 auto 8px; }
.mj-calligraphy {
    width: 100%; height: auto; display: block;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(164, 22, 35, 0.35);
}
.mj-title {
    margin: 22px 0 6px;
    font-size: 30px; line-height: 1.12; font-weight: 700;
    letter-spacing: 0.04em; text-transform: uppercase; color: #ffffff;
}
@media (min-width: 768px) { .mj-title { font-size: 40px; } }
.mj-tagline { margin: 0; color: #e3b7b7; font-size: 15px; letter-spacing: 0.02em; }
.mj-sub { margin: 12px auto 0; max-width: 520px; color: #c9bab4; font-size: 15px; line-height: 1.5; }

.mj-tabs { display: flex; gap: 10px; justify-content: center; margin: 26px 0 8px; }
.mj-tab {
    appearance: none; border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.04); color: #e9ded8;
    font: inherit; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 12px 30px; border-radius: 6px; cursor: pointer; min-height: 48px;
}
.mj-tab.is-active {
    background: #8e161b; border-color: #c02731; color: #ffffff;
    box-shadow: 0 6px 24px rgba(164, 22, 35, 0.45);
}
.mj-tabnote { text-align: center; color: #a89790; font-size: 13px; margin: 0 0 18px; }
.mj-warning { text-align: center; color: #e9a13b; font-size: 13px; margin: 0 0 12px; }

.mj-grid {
    display: grid; gap: 10px; max-width: 880px; margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .mj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .mj-grid { grid-template-columns: repeat(4, 1fr); } }

.mj-tile {
    appearance: none; font: inherit; color: inherit; text-align: center;
    border-radius: 8px; padding: 16px 10px 14px; min-height: 44px;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.30);
}
button.mj-tile { cursor: pointer; }
button.mj-tile:hover, button.mj-tile:focus-visible {
    border-color: #c02731; background: rgba(164, 22, 35, 0.12); outline: none;
}
.mj-tile.is-claimed {
    border: 1px solid rgba(192, 39, 49, 0.65);
    background: rgba(142, 22, 27, 0.28);
}
.mj-tile.is-pending { border-style: dashed; opacity: 0.85; }
.mj-tile.is-form {
    border: 1px solid #c02731; background: rgba(20, 10, 11, 0.92);
    grid-column: 1 / -1; padding: 20px 16px; text-align: left; align-items: stretch; gap: 10px;
}
.mj-weekday { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: #c9a9a9; }
.mj-day { font-size: 19px; font-weight: 700; color: #ffffff; letter-spacing: 0.02em; }
.mj-avail { margin-top: 8px; font-size: 12px; letter-spacing: 0.10em; text-transform: uppercase; color: #e0705f; }
.mj-cta { font-size: 12px; color: #a89790; }
.mj-host { margin-top: 8px; font-size: 15px; font-weight: 600; color: #ffffff; overflow-wrap: anywhere; }
.mj-state { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #d98f8f; }

.mj-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #c9bab4; }
.mj-input {
    font: inherit; color: #ffffff; background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 6px;
    padding: 12px 12px; min-height: 44px;
}
.mj-input:focus { outline: none; border-color: #c02731; }
.mj-privacy { font-size: 12px; color: #a89790; }
.mj-error { font-size: 13px; color: #ff8a80; }
.mj-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.mj-claim {
    appearance: none; font: inherit; font-weight: 600; cursor: pointer;
    background: #8e161b; color: #ffffff; border: 1px solid #c02731;
    padding: 12px 22px; border-radius: 6px; min-height: 48px;
}
.mj-claim:disabled { opacity: 0.6; cursor: default; }
.mj-cancel {
    appearance: none; font: inherit; cursor: pointer; color: #c9bab4;
    background: transparent; border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px 18px; border-radius: 6px; min-height: 48px;
}

.mj-info { max-width: 720px; margin: 34px auto 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px; }
.mj-info-title {
    margin: 0 0 12px; font-size: 15px; letter-spacing: 0.10em;
    text-transform: uppercase; color: #e3b7b7; text-align: center; font-weight: 600;
}
.mj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.mj-list li { position: relative; padding-left: 18px; color: #d9ccc5; font-size: 14px; line-height: 1.5; }
.mj-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #c02731; }
.mj-contact { text-align: center; color: #d9ccc5; font-size: 14px; margin: 18px 0 0; }
.mj-contact a { color: #ffffff; font-weight: 600; }
.mj-foot { text-align: center; color: #8f7f79; font-size: 12px; margin: 26px auto 0; max-width: 520px; }

.mj-venue { display: flex; gap: 10px; flex-wrap: wrap; }
.mj-venueopt {
    appearance: none; font: inherit; cursor: pointer; flex: 1; min-width: 120px;
    color: #e9ded8; background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 6px;
    padding: 12px 10px; min-height: 48px; text-align: center;
}
.mj-venueopt.is-active { background: #8e161b; border-color: #c02731; color: #ffffff; }

.mj-address-wrap[hidden], .mj-venue-note[hidden] { display: none; }
.mj-venue-note { display: block; color: #a89790; font-size: 12.5px; margin-top: 6px; }
.mj-error[hidden] { display: none; }
.mj-tile.is-event {
    background: linear-gradient(160deg, #3a2a0e 0%, #1c1408 100%);
    border: 1px solid #b8913f;
    box-shadow: inset 0 0 0 1px rgba(184, 145, 63, 0.25);
}
.mj-tile.is-event .mj-weekday, .mj-tile.is-event .mj-state { color: #d9b86a; }
.mj-tile.is-event .mj-event { display: block; margin-top: 6px; font-weight: 700; color: #f3e2b5; line-height: 1.25; }
