/* Base button styling — defined locally so this page's buttons render
   correctly whether or not another plugin's CSS (which happens to use the
   same .fcc-primary class name) is also loaded on the page. */
.fcc-primary,.fcc-secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border-radius:12px;font-size:15px;font-weight:800;cursor:pointer;text-decoration:none}
.fcc-primary{border:0;background:#E7EE53;color:#1C3358}
.fcc-secondary{border:1px solid #D9DFD9;background:#FBFCFA;color:#33414d}

.flcm-ce-header{margin-bottom:20px}
.flcm-ce-success{margin:0 0 24px;padding:16px 18px;border-radius:12px;background:#eef6f1;color:#2E7D51}
.flcm-ce-success a{color:#2E7D51;font-weight:700}

.flcm-ce-types{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:0 0 24px}
@media(max-width:600px){.flcm-ce-types{grid-template-columns:1fr}}
.flcm-ce-type{display:block;padding:14px 16px;border:1px solid #D9DFD9;border-radius:12px;cursor:pointer;position:relative}
.flcm-ce-type input{position:absolute;top:14px;right:14px}
.flcm-ce-type:has(input:checked){border-color:#1C3358;background:#FBFCFA}
.flcm-ce-type-name{display:block;font-weight:800;color:#1C3358;margin-bottom:4px}
.flcm-ce-type-desc{display:block;font-size:13px;color:#4B5A74}

.flcm-count{display:inline-block;margin-left:8px;padding:2px 10px;border-radius:999px;background:#F1F4F0;color:#1C3358;font-size:.8rem;font-weight:700}
.flcm-reg-list{display:flex;flex-direction:column;gap:10px}
.flcm-reg-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border:1px solid #D9DFD9;border-radius:12px}
.flcm-reg-row p{margin:2px 0 0;font-size:13px;color:#4B5A74}
.flcm-reg-actions{display:flex;gap:8px;align-items:center}
.flcm-reg-actions select{height:40px;border-radius:8px;border:1px solid #B8C2B8;padding:0 8px}

/* ---------------------------------------------------------- Create / My Events: app-style redesign */
:root{--flcm-navy:#1C3358;--flcm-lime:#E7EE53;--flcm-border:#D9DFD9;--flcm-muted:#4B5A74}
.flcm-ce2{max-width:640px;margin:0 auto;padding:20px 20px 60px}

.flcm-ce-subnav{display:flex;gap:8px;margin:0 0 24px}
.flcm-ce-subnav-tab{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;height:42px;border-radius:10px;background:#F1F4F0;color:var(--flcm-muted);text-decoration:none;font-size:13px;font-weight:700}
.flcm-ce-subnav-tab i{width:16px;height:16px;display:flex}
.flcm-ce-subnav-tab i svg{width:100%;height:100%}
.flcm-ce-subnav-tab.active{background:var(--flcm-navy);color:#fff;position:relative}
/* active-tab underline removed by request — the filled pill already marks the active tab */

.flcm-ce2-header{margin-bottom:22px}
.flcm-ce2-header h1{margin:0 0 4px;font-size:26px;color:var(--flcm-navy)}
.flcm-ce2-header p{margin:0;color:var(--flcm-muted);font-size:14px}

.flcm-ce2-steps{display:flex;align-items:flex-start;margin-bottom:28px}
.flcm-ce2-step{display:flex;flex-direction:column;align-items:center;gap:6px;flex:none;width:64px}
.flcm-ce2-step-dot{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#D9DFD9;color:#7A8798;font-weight:800;font-size:14px}
.flcm-ce2-step.active .flcm-ce2-step-dot{background:#7fd996;color:#1C3358}
.flcm-ce2-step-label{font-size:11px;font-weight:700;color:#7A8798;text-align:center}
.flcm-ce2-step.active .flcm-ce2-step-label{color:var(--flcm-navy)}
.flcm-ce2-step-line{flex:1;height:2px;background:#D9DFD9;margin:15px -4px 0}
.flcm-ce2-step{cursor:default}
.flcm-ce2-step.done{cursor:pointer}
.flcm-ce2-step.done .flcm-ce2-step-dot{background:var(--flcm-navy);color:#fff;font-size:0}
.flcm-ce2-step.done .flcm-ce2-step-dot::after{content:"\2713";font-size:14px}
.flcm-ce2-panel{animation:flcm-ce2-fade .18s ease}
@keyframes flcm-ce2-fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.flcm-ce2-back{flex:none;height:48px;padding:0 20px;border-radius:12px;border:1px solid var(--flcm-border);background:#FBFCFA;color:var(--flcm-navy);font-size:14px;font-weight:700;cursor:pointer}
.flcm-ce2-review{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin-bottom:20px}
.flcm-ce2-review div{padding:14px 16px;border-radius:12px;background:var(--flcm-bg,#F1F4F0)}
.flcm-ce2-review span{display:block;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--flcm-muted);margin-bottom:4px}
.flcm-ce2-review strong{display:block;font-size:14px;color:var(--flcm-navy);word-break:break-word}
@media(max-width:560px){.flcm-ce2-review{grid-template-columns:1fr}}

.flcm-ce2-section-title{margin:0 0 14px;font-size:16px;color:var(--flcm-navy)}

.flcm-ce2-type-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:28px}
@media(max-width:480px){.flcm-ce2-type-grid{grid-template-columns:1fr}}
.flcm-ce2-type{position:relative;display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--flcm-border);border-radius:14px;cursor:pointer}
.flcm-ce2-type input{position:absolute;opacity:0}
.flcm-ce2-type:has(input:checked){border-color:#2E7D51;box-shadow:0 0 0 1px #2E7D51}
.flcm-ce2-type-check{position:absolute;top:12px;right:12px;width:20px;height:20px;border-radius:50%;background:#2E7D51;color:#fff;display:none;align-items:center;justify-content:center;font-size:12px}
.flcm-ce2-type:has(input:checked) .flcm-ce2-type-check{display:flex}
.flcm-ce2-type-icon{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center}
.flcm-ce2-type-icon svg{width:20px;height:20px}
.flcm-ce2-type-green .flcm-ce2-type-icon{background:#e8f7ef;color:#2E7D51}
.flcm-ce2-type-orange .flcm-ce2-type-icon{background:#fdf1e3;color:#c9711a}
.flcm-ce2-type-blue .flcm-ce2-type-icon{background:#EAF4EC;color:#1C3358}
.flcm-ce2-type-purple .flcm-ce2-type-icon{background:#EAF4EC;color:#6b3fc9}
.flcm-ce2-type-body strong{display:block;font-size:16px;color:var(--flcm-navy)}
.flcm-ce2-type-body small{display:block;margin-top:2px;font-size:12.5px;color:var(--flcm-muted);line-height:1.4}

.flcm-ce2-details .fcc-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.flcm-ce2-details .fcc-form-grid label.wide{grid-column:1/-1}
@media(max-width:480px){.flcm-ce2-details .fcc-form-grid{grid-template-columns:1fr}}
.flcm-ce2-details label>span{display:block;margin-bottom:6px;font-size:13px;font-weight:700;color:var(--flcm-navy)}
.flcm-ce2-details input,.flcm-ce2-details select,.flcm-ce2-details textarea{width:100%;box-sizing:border-box;height:46px;padding:0 12px;border:1px solid var(--flcm-border);border-radius:10px;font-size:14px;font-family:inherit;background:#FBFCFA}
.flcm-ce2-details textarea{height:auto;padding:10px 12px}
.flcm-ce2-venue-other{display:block}

.flcm-ce2-cover-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:auto!important;padding:24px 16px;border:1px dashed #B8C2B8;border-radius:12px;background:#FBFCFA;cursor:pointer;position:relative;text-align:center}
.flcm-ce2-cover-drop i{width:24px;height:24px;color:#7A8798;margin-bottom:4px}
.flcm-ce2-cover-drop i svg{width:100%;height:100%}
.flcm-ce2-cover-drop strong{font-size:13px;color:var(--flcm-navy);font-weight:700}
.flcm-ce2-cover-drop small{font-size:12px;color:#7A8798}
.flcm-ce2-cover-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}

.flcm-ce2-note{display:flex;align-items:center;gap:8px;margin:20px 0;font-size:12.5px;color:var(--flcm-muted)}

.flcm-ce2-actions{display:flex;gap:12px;align-items:center;padding-top:16px;border-top:1px solid var(--flcm-border)}
.flcm-ce2-draft{flex:none;background:none;border:0;color:var(--flcm-muted);font-size:14px;font-weight:700;cursor:pointer}
.flcm-ce2-actions .fcc-primary{flex:1;height:48px;border-radius:12px;font-size:15px}

/* ---------------------------------------------------------- My Events */
.flcm-my-events-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.flcm-my-events-create{height:40px;padding:0 18px;border-radius:10px;display:inline-flex;align-items:center;font-size:13px;text-decoration:none;white-space:nowrap}

.flcm-my-events-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:20px 0;padding:16px;border:1px solid var(--flcm-border);border-radius:14px}
@media(max-width:480px){.flcm-my-events-stats{grid-template-columns:repeat(2,1fr);row-gap:16px}}
.flcm-my-events-stats div{text-align:center}
.flcm-my-events-stats strong{display:block;font-size:19px;color:var(--flcm-navy)}
.flcm-my-events-stats span{display:block;margin-top:2px;font-size:11px;color:#7A8798;font-weight:700}

.flcm-my-events-tabs{margin-bottom:18px}
.flcm-tab-btn{flex:1;text-align:center;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--flcm-border);border-radius:10px;background:#FBFCFA;color:var(--flcm-muted);font-size:13px;font-weight:700;text-decoration:none}
.flcm-tab-btn.active{background:var(--flcm-navy);border-color:var(--flcm-navy);color:#fff}

.flcm-empty-state{padding:32px 20px;text-align:center;border:1px solid var(--flcm-border);border-radius:14px;color:var(--flcm-muted)}
.flcm-empty-state a{color:var(--flcm-navy);font-weight:700}

.flcm-my-events-list{display:flex;flex-direction:column;gap:16px}
.flcm-event-card{display:flex;gap:14px;padding:16px;border:1px solid var(--flcm-border);border-radius:16px}
.flcm-event-card-thumb{flex:none;width:64px;height:64px;border-radius:12px;background:#D9DFD9 center/cover;display:flex;align-items:flex-start;justify-content:center}
.flcm-event-card-date{margin-top:6px;text-align:center;font-size:9px;font-weight:800;color:#7A8798;text-transform:uppercase;line-height:1.2}
.flcm-event-card-date strong{display:block;font-size:15px;color:var(--flcm-navy)}
.flcm-event-card-date em{display:none}
.flcm-event-card-body{flex:1;min-width:0}
.flcm-event-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.flcm-event-card-top h3{margin:0;font-size:15px;color:var(--flcm-navy)}
.flcm-event-card-badges{display:flex;flex-wrap:wrap;gap:6px;flex:none}
.flcm-badge{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;border-radius:999px;background:#D9DFD9;color:var(--flcm-muted);font-size:10.5px;font-weight:800;white-space:nowrap}
.flcm-badge-draft{background:#D9DFD9;color:#4B5A74}
.flcm-badge-live{background:#e8f7ef;color:#2E7D51}
.flcm-badge-open{background:#EAF4EC;color:#1C3358}
.flcm-badge-completed{background:#D9DFD9;color:#4B5A74}
.flcm-event-card-meta{display:flex;align-items:center;gap:6px;margin:6px 0 0;font-size:12.5px;color:var(--flcm-muted)}
.flcm-event-card-meta svg{width:13px;height:13px;flex:none}
.flcm-event-card-note{margin:8px 0 0;padding:8px 10px;border-radius:8px;background:#fdf6e3;color:#7f6410;font-size:12px}
.flcm-event-card-warning{margin:8px 0 0;font-size:12px;font-weight:700;color:#a3672d}
.flcm-event-card-progress{display:flex;align-items:center;gap:8px;margin-top:8px}
.flcm-event-card-progress-bar{flex:1;height:5px;border-radius:999px;background:#D9DFD9;overflow:hidden}
.flcm-event-card-progress-bar div{height:100%;background:#2E7D51}
.flcm-event-card-progress span{flex:none;font-size:11px;font-weight:700;color:var(--flcm-muted)}
.flcm-event-card-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.flcm-event-card-actions{display:flex;gap:12px}
.flcm-event-card-actions a{color:#7A8798;display:flex}
.flcm-event-card-actions svg{width:17px;height:17px}
.flcm-event-card-manage{flex:none;height:34px;padding:0 16px;border-radius:8px;background:#E7EE53;color:#1C3358;font-size:12.5px;font-weight:800;text-decoration:none;display:flex;align-items:center}

.flcm-my-events-completed-label{margin:28px 0 12px;font-size:13px;color:#7A8798;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.flcm-event-card-compact .flcm-event-card-results{display:inline-block;margin-top:8px;font-size:12.5px;font-weight:700;color:#2E7D51;text-decoration:none}
.flcm-event-card-compact{align-items:center}

/* Step 3 additions: live team-count estimate (Tournament/League only) and the Advanced options collapse for Level restriction — matches existing .flcm-ce2-details/.fcc-form-grid conventions rather than a parallel style. */
.flcm-ce2-estimate{margin:14px 0 0;padding:10px 14px;border-radius:10px;background:#eef6f1;color:#2E7D51;font-size:13px;font-weight:600}
.flcm-ce2-advanced{margin-top:18px;border-top:1px solid var(--flcm-border);padding-top:14px}
.flcm-ce2-advanced-toggle{display:flex;align-items:center;gap:6px;background:none;border:0;padding:0;font-size:13px;font-weight:700;color:var(--flcm-navy);cursor:pointer}
.flcm-ce2-advanced-toggle::after{content:"\25be";font-size:11px;transition:transform .15s ease}
.flcm-ce2-advanced-toggle.is-open::after{transform:rotate(180deg)}
.flcm-ce2-advanced-panel{margin-top:14px}

/* ---- Single-page layout (wizard removed) ---- */
.flcm-ce2-open{display:block!important;margin-bottom:26px}
.flcm-ce2-section-title{margin:0 0 14px}
.flcm-ce2-type-grid .flcm-ce2-type{cursor:pointer}

/* Sticky action bar: always reachable, whole buttons wrap — letters never do */
.flcm-ce2-actions-sticky{position:sticky;bottom:0;z-index:20;display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:8px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));background:linear-gradient(to top,#E6EAE6 68%,rgba(230,234,230,0))}
.flcm-ce2-actions-sticky button{white-space:nowrap;min-width:max-content;flex:1 1 auto}
.flcm-ce2-actions-sticky .flcm-ce2-create{flex:2 1 auto}

/* Quick create (Reclub-style) */
.flcm-q{display:grid;gap:12px;max-width:640px}
.flcm-q-types{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px}
.flcm-q-types::-webkit-scrollbar{display:none}
.flcm-q-type{flex:none;position:relative;cursor:pointer}
.flcm-q-type input{position:absolute;opacity:0;pointer-events:none}
.flcm-q-type span{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #D9DFD9;border-radius:12px;font-weight:700;color:#4B5A74;background:#fff}
.flcm-q-type input:checked+span{background:#1B2F4E;border-color:#1B2F4E;color:#fff}
.flcm-q-type input:focus-visible+span{outline:3px solid #D4F53C;outline-offset:2px}
.flcm-q-card{background:#fff;border:1px solid #D9DFD9;border-radius:16px;padding:14px 16px}
.flcm-q-lbl{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#56721B}
.flcm-q-days{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin-bottom:12px}
.flcm-q-days::-webkit-scrollbar{display:none}
.flcm-q-day{flex:none;min-height:44px;padding:0 14px;border:1px solid #D9DFD9;border-radius:12px;background:#fff;font:inherit;font-weight:700;color:#16241A;cursor:pointer;display:inline-flex;align-items:center}
.flcm-q-day.on{background:#D4F53C;border-color:#1B2F4E}
.flcm-q-day--pick input{border:0;background:transparent;font:inherit;font-weight:700;color:inherit;min-height:40px}
.flcm-q-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.flcm-q-f{display:grid;gap:5px}
.flcm-q-f span{font-size:12.5px;font-weight:700;color:#4B5A74}
.flcm-q-f input,.flcm-q-f select,.flcm-q-select{width:100%;min-height:48px;border:1px solid #B8C2B8;border-radius:12px;padding:0 12px;font:inherit;font-size:16px;color:#16241A;background:#fff;box-sizing:border-box}
.flcm-q-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.flcm-q-step{display:grid;grid-template-columns:46px 1fr 46px;border:1px solid #B8C2B8;border-radius:12px;overflow:hidden}
.flcm-q-step button{border:0;background:#F1F4F0;font-size:22px;font-weight:700;color:#1B2F4E;cursor:pointer;min-height:48px}
.flcm-q-step input{border:0;text-align:center;font:inherit;font-size:18px;font-weight:800;min-width:0;-moz-appearance:textfield}
.flcm-q-step input::-webkit-inner-spin-button{-webkit-appearance:none}
.flcm-q-fee{display:flex;align-items:center;border:1px solid #B8C2B8;border-radius:12px;padding-left:12px;min-height:48px;background:#fff}
.flcm-q-fee span{font-weight:800;color:#4B5A74}
.flcm-q-fee input{border:0;flex:1;min-width:0;font:inherit;font-size:16px;padding:0 10px;background:transparent}
.flcm-q-hint{margin:6px 0 0;font-size:12.5px;color:#6B7768}
.flcm-q-summary{margin:2px 4px;font-weight:700;color:#1B2F4E;font-size:15px}
.flcm-q-more{border:1px solid #D9DFD9;border-radius:16px;background:#fff;padding:0 16px}
.flcm-q-more>summary{min-height:56px;display:flex;align-items:center;gap:8px;cursor:pointer;font-weight:800;color:#1B2F4E;list-style:none}
.flcm-q-more>summary::-webkit-details-marker{display:none}
.flcm-q-more>summary small{font-weight:500;color:#6B7768;font-size:12.5px}
.flcm-q-more[open]{padding-bottom:14px}
/* host: interested handles */
.flcm-int__handles{display:flex;flex-wrap:wrap;gap:6px 12px;margin:8px 0 14px;font-weight:700;color:#1B2F4E}
.flcm-int__form{display:grid;gap:8px}
.flcm-int__form textarea{width:100%;border:1px solid #B8C2B8;border-radius:12px;padding:10px 12px;font:inherit;font-size:15px;box-sizing:border-box}

/* Quick create — proportions fix (phone) */
.flcm-ce2-form{min-width:0;max-width:100%}
.flcm-q,.flcm-q *{box-sizing:border-box}
.flcm-q{width:100%;min-width:0;max-width:640px;gap:10px;padding-bottom:8px}
.flcm-q>*{min-width:0;max-width:100%}
.flcm-q-days{max-width:100%}
.flcm-q [hidden]{display:none!important}
.flcm-q-card{min-width:0;padding:14px}
.flcm-q-row>*,.flcm-q-two>*{min-width:0}
.flcm-q-f input,.flcm-q-f select,.flcm-q-select,.flcm-q-fee,.flcm-q-step{height:46px;min-height:46px;max-width:100%}
.flcm-q-f input,.flcm-q-f select,.flcm-q-select{font-size:16px;padding:0 12px;text-align:left;-webkit-appearance:none;appearance:none;min-width:0}
.flcm-q-f select,.flcm-q-select{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231B2F4E' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;padding-right:36px}
.flcm-q-f input[type=time]{display:block}
.flcm-q-f input[type=time]::-webkit-date-and-time-value{text-align:left}
.flcm-q-types{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;overflow:visible}
.flcm-q-type span{width:100%;justify-content:center;min-height:42px;padding:0 6px;font-size:14px;white-space:nowrap}
.flcm-q-days{gap:6px;margin-bottom:10px}
.flcm-q-day{min-height:40px;padding:0 12px;font-size:14.5px}
.flcm-q-day--pick input{min-height:36px;font-size:14px;max-width:130px}
.flcm-q-lbl{font-size:11.5px;margin-bottom:8px}
.flcm-q-step{grid-template-columns:42px minmax(0,1fr) 42px}
.flcm-q-step button{min-height:44px;font-size:20px}
.flcm-q-step input{width:100%;font-size:17px;padding:0}
.flcm-q-fee input{width:100%;height:44px}
.flcm-q-summary{font-size:14px}
@media(max-width:420px){
	.flcm-q-types{grid-template-columns:repeat(2,minmax(0,1fr))}
	.flcm-q-two{gap:10px}
}
/* sticky action bar sized to the content column */
.flcm-ce2-actions-sticky{box-sizing:border-box;flex-wrap:nowrap;max-width:640px;gap:10px;border-radius:14px 14px 0 0;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #E1E5DF}
.flcm-ce2-actions-sticky .flcm-ce2-draft{flex:0 0 auto;min-height:48px;padding:0 16px;border:1px solid #B8C2B8;border-radius:12px;background:#fff;font-weight:700;color:#1B2F4E}
.flcm-ce2-actions-sticky .flcm-ce2-create{flex:1 1 auto;min-height:48px;border-radius:12px;background:#1B2F4E!important;color:#fff!important;font-weight:800}

.flcm-q-fair{margin:0 4px;padding:10px 12px;border-radius:12px;background:#FBFFE6;border:1px solid #E3F09A;font-size:13.5px;color:#4B5A74}
.flcm-q-fair strong{color:#1B2F4E}
