/*
  62-new-campaign.css — v46.0.1 the four-step create flow and the first
  open (design/settings NewName, NewPassword, NewModules, NewCalendar,
  FirstRun). The flow is a full-screen dark page above the bar and the
  gates' backdrop, like a gate.
*/

.nc-flow { position: fixed; inset: 0; z-index: 285; overflow-y: auto; background: #1f1712; color: #f1e4c4; font-family: inherit; }
.nc-flow[hidden] { display: none; }
.nc-page { display: flex; flex-direction: column; min-height: 100%; max-width: 560px; margin: 0 auto; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom, 0); }
.nc-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 8px; flex-shrink: 0; }
.nc-flow button.nc-link { justify-self: start; min-height: 44px !important; padding: 0 10px; border: 0; background: none; color: #e8c069; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.nc-head-title { font-size: 15px; font-weight: 700; }
.nc-count { justify-self: end; padding-right: 10px; font-size: 13px; color: #bfae8c; }
.nc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; padding: 4px 20px 0; }
.nc-step { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: #8f8574; }
.nc-bar { height: 4px; border-radius: 999px; background: #3a2a1d; }
.nc-step.is-done { color: #f1e4c4; }
.nc-step.is-done .nc-bar { background: #845c0f; }
.nc-step.is-now .nc-bar { background: #c18a2a; }
.nc-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 12px; padding: 26px 20px 12px; }
.nc-flow .nc-title { margin: 0; font-size: 28px !important; font-weight: 700; line-height: 1.2; color: #f1e4c4; text-shadow: none; letter-spacing: 0; font-family: inherit; }
.nc-help { margin: 0; font-size: 15px; line-height: 1.5; color: #bfae8c; }
.nc-label { margin-top: 6px; font-size: 13px; font-weight: 700; color: #bfae8c; }
#newCampaignFlow .nc-input { width: 100%; box-sizing: border-box; min-height: 56px; margin: 0; padding: 0 14px; border-radius: 14px; border: 1.5px solid #6e5b40; background: #2a1e15; color: #f1e4c4; font: inherit; font-size: 19px; font-weight: 600; box-shadow: none; }
#newCampaignFlow .nc-input:focus { border-color: #c18a2a; outline: none; }
#newCampaignFlow .nc-select { appearance: auto; }
.nc-preview { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: #2a1e15; border: 1px solid #4a3a28; }
.nc-preview .gate-badge { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
.nc-preview .gate-camp-name { font-size: 16px; font-weight: 700; color: #f1e4c4; }
.nc-preview .gate-camp-sub { font-size: 13px; color: #bfae8c; }
.nc-warn { margin: 0; font-size: 13px; color: #f0a48f; }

/* Module cards and the DM-password switch */
.nc-mod { padding: 12px; border-radius: 16px; border: 1px solid #4a3a28; background: #2a1e15; }
.nc-mod.is-on { border-color: #c18a2a; }
.nc-mod-row { display: flex; align-items: center; gap: 12px; }
.nc-mod-row > .cx-icon { flex-shrink: 0; box-sizing: border-box; width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: #33261b; color: #e8c069; }
.nc-mod-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.nc-mod-name { font-size: 16px; font-weight: 700; color: inherit; }
.nc-mod-sub { font-size: 13px; font-weight: 400; color: #bfae8c; }
.nc-mod-row button.st-switch { width: 46px; height: 28px; min-height: 0 !important; min-width: 0; flex: 0 0 46px; background: #4a3a28; }
.nc-mod-row button.st-switch span { width: 22px; height: 22px; background: #bfae8c; box-shadow: none; }
.nc-mod-row button.st-switch[aria-checked="true"] { background: #c18a2a; }
.nc-mod-row button.st-switch[aria-checked="true"] span { left: 21px; background: #1f1712; }
.nc-parts { margin: 0; padding: 10px 0 0 52px; }
.nc-parts button.st-part { min-height: 34px !important; border-color: #6e5b40; color: #bfae8c; }
.nc-parts button.st-part.is-on { border-color: #c18a2a; background: #c18a2a; color: #1f1712; }

/* Calendar choices */
.nc-opts { display: flex; flex-direction: column; gap: 8px; }
.nc-flow .nc-opt { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 60px !important; padding: 8px 14px; border-radius: 16px; border: 1px solid #4a3a28; background: #2a1e15; color: #f1e4c4; font: inherit; cursor: pointer; }
.nc-flow .nc-opt.is-on { border-color: #c18a2a; }
.nc-radio { flex-shrink: 0; box-sizing: border-box; width: 20px; height: 20px; border-radius: 999px; border: 2px solid #6e5b40; }
.nc-opt.is-on .nc-radio { border: 6px solid #c18a2a; }
.nc-more { cursor: default; }
#newCampaignFlow .nc-more .nc-select { min-height: 0 !important; margin-top: 2px; padding: 4px 0; border: 0; background: transparent; color: #bfae8c; font: inherit; font-size: 13px; }
#newCampaignFlow .nc-more .nc-select option { color: #231a10; }
.nc-date { display: grid; grid-template-columns: 70px minmax(0, 1fr) 90px; gap: 8px; }
#newCampaignFlow .nc-date .nc-input { min-height: 48px; border-width: 1px; border-radius: 12px; font-size: 16px; font-weight: 400; padding: 0 12px; }

/* The foot */
.nc-foot { padding: 0 20px 24px; }
.nc-flow button.nc-next, .nc-empty button.nc-next { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px !important; border: 0; border-radius: 16px; background: #c18a2a; color: #1f1712; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; }
.nc-flow button.nc-next[disabled] { opacity: .45; cursor: default; }
.nc-flow button:focus-visible { outline: 2px solid #e8c069; outline-offset: 2px; }

/* First open: the setup card (FirstRun) */
.nc-card { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 14px; border-radius: 18px; background: #f4ecd8; border: 1.5px solid #c18a2a; color: #231a10; }
.nc-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nc-card-head h2 { margin: 0; font-size: 19px !important; font-weight: 700; color: #231a10; font-family: inherit; letter-spacing: 0; text-shadow: none; }
.nc-card-head span { font-size: 13px; font-weight: 700; color: #5c4a30; }
.nc-card-bar { height: 6px; border-radius: 999px; background: #ddd0ab; overflow: hidden; }
.nc-card-bar span { display: block; height: 100%; background: #845c0f; }
.nc-card .nc-item { display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; min-height: 56px; padding: 6px 10px; border: 0; border-radius: 14px; background: #efe4c3; color: #231a10; font: inherit; text-align: left; }
.nc-card button.nc-item { cursor: pointer; }
.nc-card .nc-item.is-done { background: transparent; }
.nc-card .nc-mod-sub { color: #5c4a30; }
.nc-item.is-done .nc-mod-name { text-decoration: line-through; color: #7a6646; }
.nc-tick { display: grid; place-items: center; flex-shrink: 0; box-sizing: border-box; width: 26px; height: 26px; border-radius: 999px; border: 2px solid #845c0f; color: #f4ecd8; }
.nc-item.is-done .nc-tick { background: #845c0f; }
.nc-go { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #845c0f; }
.nc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: #5c4a30; }
.nc-card-foot button.cb-link { min-height: 32px !important; padding: 0 4px; border: 0; background: none; color: #5c4a30; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* An empty Codex */
.nc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 0 0 12px; padding: 18px 14px; border-radius: 16px; border: 1px dashed #6e5b40; color: #e6d7b5; text-align: center; }
.nc-empty > .cx-icon { color: #e8c069; }
.nc-empty h2 { margin: 0; font-size: 16px !important; font-weight: 700; color: #f1e4c4; font-family: inherit; letter-spacing: 0; text-shadow: none; }
.nc-empty p { margin: 0; font-size: 14px; line-height: 1.45; }
.nc-empty-actions { display: flex; gap: 8px; margin-top: 4px; }
.nc-empty button.nc-next.nc-small { width: auto; min-height: 44px !important; padding: 0 16px; border-radius: 12px; font-size: 15px; }
.nc-empty button.st-btn { min-height: 44px !important; padding: 0 16px; border-radius: 12px; background: transparent; border: 1px solid #6e5b40; color: #f1e4c4; }

/* Choose a campaign: start a new one */
.gate-new-campaign { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; margin-top: 4px; border-radius: 16px; border: 1px dashed #6e5b40; background: transparent; color: #e8c069; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* v46.10: why Create failed, shown in the flow; and a toast over the flow is seen. */
.nc-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid #c98a7b; background: #f6e1db; color: #8a2f20; font-size: 14px; line-height: 1.4; }
body.nc-open #toast { z-index: 290; }
