html, body, #root { margin: 0; min-height: 100%; }
body { background: #efe9dc; }

/* FORTI Events software shell: cream ground, charcoal ink, navy sidebar, gold frames, rounded corners */
.fxs-shell, .fxs-plain {
    --gold: #b08a3c;
    --gold-soft: #d9c08a;
    --navy: #2e4453;
    --ink: #2b2620;
    --muted: #7a7264;
    --cream: #fbf7ee;
    --green: #2f6b4f;
    --wine: #7a3b3b;
    color: var(--ink);
    font-family: inherit;
}

/* ---------- Layout ---------- */
.fxs-shell { display: flex; min-height: 100vh; }
.fxs-side {
    width: 228px; flex: 0 0 228px;
    background: var(--navy);
    color: #fff;
    display: flex; flex-direction: column;
    padding: 18px 14px;
    position: sticky; top: 0; height: 100vh;
    box-sizing: border-box;
}
.fxs-side-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid rgba(217,192,138,.35); }
.fxs-side-brand img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 12px; padding: 3px; }
.fxs-side-names { display: flex; flex-direction: column; }
.fxs-side-app { font-size: 15px; font-weight: 700; color: var(--gold-soft); }
.fxs-side-venue { font-size: 11.5px; color: rgba(255,255,255,.75); }
.fxs-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; flex: 1; }
.fxs-nav-item {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.85); text-decoration: none;
    font-size: 14.5px; font-weight: 600;
    padding: 10px 12px; border-radius: 12px;
    border: 1px solid transparent;
}
.fxs-nav-item.is-active {
    background: rgba(217,192,138,.16);
    border-color: var(--gold);
    color: #fff;
}
.fxs-nav-icon { font-size: 15px; }
.fxs-side-user {
    border-top: 1px solid rgba(217,192,138,.35);
    padding-top: 12px;
    display: flex; align-items: center; justify-content: space-between;
}
.fxs-user-name { font-size: 13.5px; font-weight: 700; }
.fxs-logout {
    background: none; border: 1px solid rgba(255,255,255,.4); color: rgba(255,255,255,.85);
    border-radius: 999px; font-size: 12px; padding: 4px 12px; cursor: pointer;
}
.fxs-main { flex: 1; min-width: 0; padding: 22px 26px 90px; box-sizing: border-box; }
.fxs-tabs { display: none; }

.fxs-topbar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fxs-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--navy); }
.fxs-title-sub { font-size: 13px; color: var(--muted); }
.fxs-muted { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.fxs-error {
    background: #fbeaea; border: 1px solid #c96a6a; color: #7a2f2f;
    border-radius: 12px; padding: 9px 13px; font-size: 13.5px;
}
.fxs-body-text { font-size: 14px; line-height: 1.6; margin: 0; }
.fxs-actions-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Cards / KPIs ---------- */
.fxs-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.fxs-kpi {
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 16px;
    padding: 14px 10px;
    text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.fxs-kpi-num { font-size: 26px; font-weight: 700; color: var(--ink); }
.fxs-kpi-label { font-size: 12.5px; color: var(--muted); }
.fxs-kpi.is-alert .fxs-kpi-num { color: var(--wine); }
.fxs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fxs-card {
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 18px;
    padding: 16px 18px;
}
.fxs-card-title { font-size: 15px; font-weight: 700; color: var(--gold); margin: 0 0 10px; }
.fxs-card-actions { margin-top: 12px; }

.fxs-task {
    display: flex; flex-direction: column; gap: 2px; text-align: right;
    width: 100%; background: #fff; border: 1px solid var(--gold-soft);
    border-radius: 12px; padding: 9px 12px; margin-bottom: 6px; cursor: pointer;
    font-family: inherit;
}
.fxs-task-name { font-weight: 700; font-size: 14px; }
.fxs-task-step { font-size: 13px; color: var(--ink); }
.fxs-task-when { font-size: 12px; color: var(--muted); }

.fxs-feed { display: flex; flex-direction: column; gap: 8px; }
.fxs-feed-row { display: flex; flex-direction: column; border-bottom: 1px solid var(--gold-soft); padding-bottom: 7px; }
.fxs-feed-kind { font-size: 11.5px; font-weight: 700; color: var(--gold); }
.fxs-feed-text { font-size: 13.5px; }
.fxs-feed-when { font-size: 11.5px; color: var(--muted); }

/* ---------- Kanban ---------- */
.fxs-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.fxs-col {
    flex: 1 0 200px; min-width: 200px;
    background: rgba(251,247,238,.55);
    border: 1.5px solid var(--gold-soft);
    border-radius: 16px;
    padding: 10px;
    display: flex; flex-direction: column; gap: 8px;
}
.fxs-col-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 13.5px; font-weight: 700; color: var(--navy);
    border-bottom: 2px solid var(--gold); padding-bottom: 6px;
}
.fxs-col-count {
    background: var(--gold); color: #fff; border-radius: 999px;
    font-size: 11.5px; padding: 1px 9px; font-weight: 700;
}
.fxs-col-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 8px 0; }

.fxs-lead {
    display: flex; flex-direction: column; gap: 3px; text-align: right;
    background: #fff; border: 1.5px solid var(--gold-soft);
    border-radius: 14px; padding: 10px 12px; cursor: pointer;
    font-family: inherit;
}
.fxs-lead:hover { border-color: var(--gold); box-shadow: 0 1px 6px rgba(176,138,60,.25); }
.fxs-lead.is-closed { opacity: .75; }
.fxs-lead-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fxs-lead-name { font-weight: 700; font-size: 14.5px; }
.fxs-lead-meta { font-size: 12.5px; color: var(--ink); }
.fxs-lead-date { font-size: 12px; color: var(--muted); }
.fxs-lead-handler { font-size: 11.5px; color: var(--green); font-weight: 600; }
.fxs-lead-next { font-size: 12px; color: var(--navy); border-top: 1px dashed var(--gold-soft); padding-top: 4px; margin-top: 2px; }

.fxs-chan {
    border-radius: 999px; font-size: 10.5px; font-weight: 700; padding: 2px 9px; white-space: nowrap;
    border: 1px solid var(--gold-soft); color: var(--muted); background: #fff;
}
.fxs-chan-facebook { color: var(--navy); border-color: var(--navy); }
.fxs-chan-instagram { color: var(--wine); border-color: var(--wine); }
.fxs-chan-website { color: var(--gold); border-color: var(--gold); }
.fxs-chan-walkin { color: var(--green); border-color: var(--green); }

.fxs-pill { border-radius: 999px; font-size: 11px; font-weight: 700; padding: 2px 10px; color: #fff; }
.fxs-pill-done { background: var(--muted); }
.fxs-pill-lost { background: var(--wine); }

.fxs-closed { margin-top: 14px; }
.fxs-closed-toggle {
    background: none; border: 1px solid var(--gold-soft); color: var(--muted);
    border-radius: 999px; padding: 6px 16px; font-size: 13px; cursor: pointer; font-family: inherit;
}
.fxs-closed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 10px; }

/* ---------- Calendar ---------- */
.fxs-cal-nav { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.fxs-cal-month { font-size: 17px; font-weight: 700; color: var(--navy); }
.fxs-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.fxs-cal-dow { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--gold); padding: 4px 0; }
.fxs-cal-cell {
    background: var(--cream); border: 1px solid var(--gold-soft);
    border-radius: 12px; min-height: 86px; padding: 6px;
    display: flex; flex-direction: column; gap: 4px;
}
.fxs-cal-cell.is-blank { background: transparent; border: none; }
.fxs-cal-cell.is-today { border: 2px solid var(--gold); }
.fxs-cal-day { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.fxs-cal-event {
    background: #fff; border: 1px solid var(--gold); border-radius: 8px;
    font-size: 11px; line-height: 1.35; padding: 3px 6px; cursor: pointer;
    text-align: right; font-family: inherit; color: var(--ink);
}
.fxs-cal-event.fxs-ev-confirmed, .fxs-cal-event.fxs-ev-scheduled { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Panel ---------- */
.fxs-overlay {
    position: fixed; inset: 0; background: rgba(43,38,32,.45);
    display: flex; justify-content: flex-start; z-index: 50;
}
.fxs-panel {
    width: min(460px, 100%); height: 100%; overflow-y: auto;
    background: var(--cream);
    border-inline-end: 2px solid var(--gold);
    padding: 18px 20px 60px;
    box-sizing: border-box;
}
.fxs-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fxs-panel-name { margin: 0; font-size: 20px; color: var(--navy); }
.fxs-close {
    width: 34px; height: 34px; border-radius: 10px;
    border: 1px solid var(--gold-soft); background: #fff; color: var(--muted);
    font-size: 15px; cursor: pointer;
}
.fxs-panel-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.fxs-panel-block { border-top: 1px solid var(--gold-soft); padding-top: 12px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.fxs-block-title { font-size: 13px; font-weight: 700; color: var(--gold); margin: 0; }

.fxs-log { display: flex; flex-direction: column; gap: 8px; }
.fxs-log-row {
    background: #fff; border: 1px solid var(--gold-soft); border-radius: 12px; padding: 8px 11px;
}
.fxs-log-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fxs-log-kind { font-size: 12px; font-weight: 700; color: var(--gold); }
.fxs-log-change { font-size: 12.5px; color: var(--navy); font-weight: 600; }
.fxs-log-when { font-size: 11.5px; color: var(--muted); }
.fxs-log-body { font-size: 13.5px; margin-top: 3px; }

/* ---------- Plain screens (login / intake) ---------- */
.fxs-plain {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 20px; box-sizing: border-box;
}
.fxs-plain-card {
    width: min(430px, 100%);
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 20px;
    padding: 24px;
    display: flex; flex-direction: column; gap: 10px;
}
.fxs-plain-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--gold-soft); }
.fxs-plain-brand img { width: 46px; height: 46px; object-fit: contain; }
.fxs-plain .fxs-side-app { color: var(--navy); }
.fxs-plain .fxs-side-venue { color: var(--muted); }
.fxs-done-mark {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--green); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; font-weight: 700;
}

/* ---------- Event menu (verbatim quote) ---------- */
.fx-menu {
    background: var(--cream);
    border: 1.5px solid var(--gold);
    border-radius: 18px;
    padding: 20px;
    display: flex; flex-direction: column; gap: 12px;
    max-width: 640px;
}
.fx-menu-title { font-size: 17px; font-weight: 700; color: var(--navy); text-align: center; }
.fx-menu-subtitle { font-size: 15px; font-weight: 700; color: var(--gold); text-align: center; margin-top: -8px; }
.fx-menu-hand { text-align: center; font-size: 14px; color: var(--muted); font-style: italic; }
.fx-menu-head { font-size: 13px; font-weight: 700; color: var(--gold); border-top: 1px solid var(--gold-soft); padding-top: 10px; }
.fx-menu-items { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.55; }
.fx-menu-sides { font-size: 13.5px; color: var(--muted); }
.fx-menu-price-band {
    display: flex; justify-content: center; gap: 18px; flex-wrap: wrap;
    background: var(--navy); color: #fff;
    border-radius: 12px; padding: 10px 14px;
    font-size: 15px; font-weight: 700;
}
.fx-menu-upgrades { display: flex; flex-direction: column; gap: 3px; }
.fx-menu-upgrades > div { display: flex; justify-content: space-between; font-size: 14px; max-width: 320px; }
.fx-menu-dessert { font-size: 14px; line-height: 1.55; border-top: 1px solid var(--gold-soft); padding-top: 10px; }
.fx-menu-notes { border-top: 1px solid var(--gold-soft); padding-top: 10px; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }
.fx-menu-kosher { font-weight: 700; color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .fxs-kpis { grid-template-columns: repeat(2, 1fr); }
    .fxs-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .fxs-side { display: none; }
    .fxs-main { padding: 16px 14px 96px; }
    .fxs-tabs {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--navy); z-index: 40;
        border-top: 1px solid rgba(217,192,138,.35);
    }
    .fxs-tab {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
        color: rgba(255,255,255,.75); text-decoration: none;
        font-size: 10.5px; font-weight: 600; padding: 8px 2px 10px;
    }
    .fxs-tab.is-active { color: var(--gold-soft); }
    .fxs-panel { width: 100%; }
    .fxs-cal-cell { min-height: 64px; }
}

/* ---------- Standalone component styles ---------- */
body { font-family: 'Heebo', system-ui, sans-serif; }
.fb {
    font-family: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer;
    border-radius: 12px; padding: 11px 22px; border: 1.5px solid transparent;
}
.fb:disabled { opacity: .55; cursor: default; }
.fb-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.fb-secondary { background: #fff; color: var(--navy); border-color: var(--gold); }
.fb-ghost { background: none; color: var(--muted); border-color: var(--gold-soft); }
.fb-compact { padding: 7px 15px; font-size: 13px; }
.cr { display: flex; flex-direction: column; gap: 7px; }
.cr-label { font-size: 13px; font-weight: 700; color: var(--gold); }
.cr-options { display: flex; flex-wrap: wrap; gap: 7px; }
.cr-chip {
    font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
    background: #fff; color: var(--ink);
    border: 1.5px solid var(--gold-soft); border-radius: 999px; padding: 7px 15px;
}
.cr-chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tf { display: flex; flex-direction: column; gap: 5px; }
.tf-label { font-size: 13px; font-weight: 600; color: var(--ink); }
.tf-input {
    font-family: inherit; font-size: 15px; color: var(--ink);
    background: #fff; border: 1.5px solid var(--gold-soft); border-radius: 12px;
    padding: 10px 13px; outline: none;
}
.tf-input:focus { border-color: var(--gold); }
.cap { font-size: 12px; color: var(--muted); margin: 2px 0; }
a { color: var(--navy); }
