/* ── CSS variables ── */
:root { --page-left: 220px; scrollbar-gutter: stable; }

/* ── Reset & base ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: sans-serif; background: #f4f6f4; color: #1a2e1a; }

/* ── Nav ── */
.nav { background: #2c5f2e; display: flex; align-items: center; padding: 0 32px; height: 56px; gap: 8px; position: sticky; top: 0; z-index: 50; }
.nav-brand { background: white; color: #2c5f2e; font-weight: 700; font-size: 17px; padding: 0 16px; height: 56px; display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; text-decoration: none; flex-shrink: 0; }
.nav-brand img { height: 30px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-links a { color: rgba(255,255,255,0.88); font-size: 14px; text-decoration: none; padding: 6px 10px; border-radius: 4px; white-space: nowrap; }
.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.22); color: white; }
.nav-spacer { flex: 1; }
.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-link { color: rgba(255,255,255,0.88); font-size: 14px; text-decoration: none; padding: 6px 14px; border: 1px solid rgba(255,255,255,0.35); border-radius: 6px; white-space: nowrap; }
.nav-link:hover { background: rgba(255,255,255,0.12); color: white; }
.nav-divider { color: rgba(255,255,255,0.35); font-weight: 300; }
.nav-signout { color: rgba(255,255,255,0.75); font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav-signout:hover { color: white; text-decoration: underline; }
.nav-contact { color: rgba(255,255,255,0.75); font-size: 14px; text-decoration: none; white-space: nowrap; }
.nav-contact:hover { color: white; text-decoration: underline; }
.nav-dropdown { position: relative; }
.nav-user { color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-user-btn { background: none; border: none; color: rgba(255,255,255,0.9); font-size: 15px; font-weight: 600; cursor: pointer; font-family: sans-serif; display: flex; align-items: center; gap: 5px; padding: 0; white-space: nowrap; }
.nav-user-btn:hover { color: white; }
.nav-mode-badge { font-family: sans-serif; font-size: 11px; font-weight: 600; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.4); border-radius: 3px; padding: 2px 7px; margin: 0 3px 0 5px; letter-spacing: 0.03em; }
.nav-caret { font-size: 10px; }
.nav-dropdown-menu { display: none; position: absolute; right: 0; top: calc(100% + 10px); background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.18); min-width: 160px; z-index: 100; border: 1px solid #e4ece4; overflow: hidden; }
.nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a { display: block; padding: 12px 16px; font-size: 14px; color: #1a2e1a; text-decoration: none; }
.nav-dropdown-menu a:hover { background: #f4f6f4; color: #2c5f2e; }

/* ── Admin content areas ── */
.page { min-height: 100vh; }
.content        { max-width: 1000px; padding: 48px 24px 60px var(--page-left); }
.content-narrow { max-width: 680px;  padding: 48px 24px 60px var(--page-left); }
.content-mid    { max-width: 860px;  padding: 48px 24px 60px var(--page-left); }
.content-full   {                    padding: 48px 24px 60px var(--page-left); }
/* Format #2: full-width, left edge aligned to brand label (nav 32px + brand 16px = 48px) */
.content-f2     {                    padding: 48px 32px 60px 48px; }
.section-heading { font-size: 20px; font-weight: bold; color: #2c5f2e; border-bottom: 2px solid #2c5f2e; padding-bottom: 6px; margin: 32px 0 16px; }
.section-heading:first-of-type { margin-top: 0; }
.back-link { font-size: 14px; color: #2c5f2e; text-decoration: none; font-family: sans-serif; }
.back-link:hover { text-decoration: underline; }
.add-link { font-size: 14px; font-weight: 700; color: #2c5f2e; text-decoration: none; font-family: sans-serif; border: 1.5px solid #2c5f2e; border-radius: 4px; padding: 3px 10px; align-self: flex-end; }
.add-link:hover { background: #f0f7f0; }
.page-title { font-size: 24px; font-weight: 600; color: #1a2e1a; font-family: sans-serif; margin: 0; }
.page-title-row { display: flex; align-items: baseline; gap: 32px; margin-bottom: 20px; }
.page-title-row .back-link { margin-left: auto; }

/* ── Cards ── */
.card { background: white; border-radius: 12px; box-shadow: 0 1px 6px rgba(0,0,0,0.07); padding: 28px 32px; border: 1px solid #e4ece4; }

/* ── Feature cards (clickable tiles) ── */
.feature-card { background: white; border-radius: 12px; padding: 32px 28px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); border: 1px solid #e4ece4; text-decoration: none; color: inherit; display: block; transition: box-shadow 0.15s, transform 0.1s; }
.feature-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); transform: translateY(-2px); }
.feature-card.disabled { opacity: 0.45; cursor: default; pointer-events: none; }
.feature-icon { font-size: 30px; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 18px; font-weight: 700; color: #1a2e1a; margin-bottom: 10px; }
.feature-card p  { font-size: 15px; color: #5a6e5a; line-height: 1.6; }

/* ── Sticky page-title block (use on pages with scrolling tables) ── */
.sticky-title { position: sticky; top: 56px; background: #f4f6f4; z-index: 2;
                width: 100%; box-sizing: border-box;
                margin-top: -48px; padding-top: 38px; padding-bottom: 27px; }
.sticky-title .page-title-row { margin-bottom: 0; }

/* ── List management tables (used with .sticky-title + --th-top pattern) ── */
.list-table { border-collapse: collapse; width: 100%; }
.list-table th { position: sticky; top: var(--th-top, 120px); background: #f4f6f4; z-index: 1;
                 padding: 8px 16px 8px 0; font-size: 13px; font-weight: 600; color: #555;
                 text-transform: uppercase; letter-spacing: 0.05em; box-shadow: inset 0 -2px 0 #ccc;
                 text-align: left; white-space: nowrap; }
.list-table td { padding: 5px 16px 5px 0; font-size: 15px; border-top: 1px solid #eee; vertical-align: middle; }
.list-table td:last-child { white-space: nowrap; }

/* ── Small card (icon + title only; used as module heading or standalone tile) ── */
.small-card { background: white; border-radius: 12px; padding: 3px 28px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); border: 2px solid #9bbf9b; text-decoration: none; color: inherit; display: block; cursor: default; pointer-events: none; margin-bottom: 12px; }
.small-card h3 { font-size: 18px; font-weight: 700; color: #1a2e1a; margin-bottom: 10px; }

/* ── Module columns (admin/portal col-heading + links pattern) ── */
.module-cols { display: grid; grid-template-columns: repeat(auto-fill, 290px); gap: 24px; align-items: start; width: fit-content; }
.col-heading { font-family: sans-serif; font-size: 17px; font-weight: 700; color: #1a2e1a; border-bottom: 2px solid #1a2e1a; padding-bottom: 8px; margin-bottom: 12px; }
.module-links { list-style: none; margin: 0; padding: 0 4px; }
.module-links li { border-bottom: 1px solid #eee; }
.module-links li a { display: block; padding: 10px 12px; color: #2c5f2e; text-decoration: none; font-family: sans-serif; font-size: 15px; }
.module-links li a:hover { background: #f5f5f5; }

/* ── Portal home (team workspace) ── */
.welcome { margin-bottom: 40px; }
.welcome p { font-size: 16px; color: #4a6b4a; margin-top: 6px; }
.team-modules { display: flex; flex-wrap: wrap; align-items: start; gap: 24px; }

/* ── Stat cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); padding: 24px; text-align: center; border: 1px solid #e4ece4; }
.stat-card .num { font-size: 42px; font-weight: 800; color: #2c5f2e; }
.stat-card .lbl { font-size: 14px; color: #888; margin-top: 4px; }

/* ── Link cards (admin tool tiles) ── */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.link-card { background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); padding: 20px 24px; text-decoration: none; color: inherit; display: flex; align-items: center; gap: 14px; border: 1px solid #e4ece4; transition: box-shadow 0.15s; }
.link-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.12); }
.link-icon { font-size: 28px; width: 44px; text-align: center; flex-shrink: 0; }
.link-card h3 { font-size: 16px; margin-bottom: 3px; color: #1a2e1a; }
.link-card p  { font-size: 13px; color: #888; }
.link-card.warn h3 { color: #c62828; }

/* ── Badges ── */
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: white; color: #2c5f2e; border: 1px solid #2c5f2e; border-radius: 4px; padding: 4px 12px; margin-bottom: 16px; }
.badge-free { background: #e6f4ea; color: #2c5f2e; border: none; border-radius: 10px; }
.badge-full { background: #fdecea; color: #c62828; border: none; border-radius: 10px; }

/* ── Form fields (.field standard) ── */
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.05em; }
.field input, .field select, .field textarea { font-family: sans-serif; font-size: 15px; padding: 7px 10px; border: 2px solid #ccc; border-radius: 8px; outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #2c5f2e; }
.field textarea { resize: vertical; min-height: 80px; }

/* ── Admin form rows (legacy) ── */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 16px; font-weight: bold; margin-bottom: 4px; }
.form-row input, .form-row select { width: 100%; padding: 10px 12px; font-size: 17px; border: 1px solid #ccc; border-radius: 6px; font-family: sans-serif; }
.form-row input:focus, .form-row select:focus { border-color: #2c5f2e; outline: none; }
.form-row input:read-only { background: #f5f5f5; color: #555; cursor: default; }
.name-row { display: flex; gap: 12px; }
.name-row .form-row { flex: 1; }

/* ── Buttons ── */
.btn { display: inline-block; background: #2c5f2e; color: white; border: none; padding: 12px 24px; font-size: 16px; font-weight: 600; font-family: sans-serif; border-radius: 8px; cursor: pointer; text-decoration: none; text-align: center; }
.btn:hover { background: #1e4220; }
.btn.full-width { width: 100%; display: block; }
.btn.gray { background: #e8ede8; color: #3a503a; }
.btn.gray:hover { background: #d8e4d8; }
.btn.secondary { background: white; color: #2c5f2e; border: 2px solid #2c5f2e; }
.btn.secondary:hover { background: #f0f7f0; }
.btn.danger { background: #c62828; }
.btn.danger:hover { background: #a31f1f; }
.btn.cancel { background: #888; }
.btn.cancel:hover { background: #666; }
.form-buttons { display: flex; gap: 12px; margin-top: 4px; }

/* ── Messages ── */
.msg { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.msg.success, .success { background: #e6f4ea; color: #1e4620; border-left: 4px solid #2c5f2e; }
.msg.error,   .error   { background: #fdecea; color: #7f1d1d; border-left: 4px solid #c62828; }
.msg.warning           { background: #fff8e1; color: #5a3e00; border-left: 4px solid #f9a825; }
.msg.info              { background: #f1f3f4; color: #444;    border-left: 4px solid #aaa; }
.err { background: #fdecea; color: #7f1d1d; border-left: 4px solid #c62828; padding: 12px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }

/* ── Data tables ── */
.data-table { width: auto; border-collapse: collapse; font-size: 16px; background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); overflow: hidden; border: 1px solid #e4ece4; }
.data-table th { background: #2c5f2e; color: white; padding: 10px 14px; text-align: left; font-size: 15px; white-space: nowrap; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #f0f5f0; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8faf8; }

/* ── Progress bars ── */
.progress-bar-wrap { background: #eee; border-radius: 4px; height: 8px; min-width: 80px; }
.progress-bar      { background: #2c5f2e; border-radius: 4px; height: 8px; }
.progress-bar.warn { background: #e65100; }
.progress-bar.full { background: #c62828; }

/* ── Permission toggles ── */
.perm-toggle { border: none; padding: 3px 10px; border-radius: 10px; font-size: 13px; font-weight: bold; cursor: pointer; }
.perm-yes { background: #e6f4ea; color: #2c5f2e; }
.perm-yes:hover { background: #c8e6c9; }
.perm-no  { background: #f0ede6; color: #999; }
.perm-no:hover  { background: #e4e0d8; }
.perm-section-label { font-size: 13px; font-weight: bold; color: #888; text-transform: uppercase; letter-spacing: .5px; margin: 24px 0 8px; }
.perm-admin { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: #e6f4ea; border: 2px solid #2c5f2e; border-radius: 8px; cursor: pointer; }
.perm-admin input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: #2c5f2e; flex-shrink: 0; margin-top: 3px; }
.perm-name { font-size: 15px; font-weight: bold; color: #2c5f2e; }
.perm-note { font-size: 13px; color: #555; margin-top: 2px; }
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.perm-opt { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #faf8f3; border-radius: 6px; border: 1px solid #e8e5df; cursor: pointer; font-size: 15px; }
.perm-opt:hover { background: #f0ede6; border-color: #bbb; }
.perm-opt input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; accent-color: #2c5f2e; flex-shrink: 0; }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal-box { background: white; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); padding: 28px 32px; min-width: 320px; }
.modal-box h3 { font-size: 18px; color: #2c5f2e; margin-bottom: 16px; }

/* ── Utility ── */
.btn-trash { background: none; border: none; cursor: pointer; padding: 0; line-height: 1; vertical-align: middle; }
.btn-trash:hover { opacity: 0.6; }
.btn-edit { background: none; border: none; cursor: pointer; font-size: 18px; padding: 0 6px 0 0; line-height: 1; text-decoration: none; color: inherit; }
.btn-edit:hover { opacity: 0.6; }
#addForm .card, .edit-card { width: 100%; box-sizing: border-box; }
.form-row-inline { display: flex; gap: 16px; flex-wrap: wrap; }
.form-row-inline .field { flex: 1; min-width: 140px; }
.token-switch { background: none; border: none; color: #2c5f2e; text-decoration: underline; cursor: pointer; font-family: monospace; font-size: 12px; padding: 0; }
.token-switch:hover { color: #1e4220; }

/* ── Upload ── */
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.upload-card { background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); padding: 24px; border: 1px solid #e4ece4; }
.upload-card h3 { font-size: 16px; margin-bottom: 10px; color: #2c5f2e; }
.col-list { font-size: 13px; color: #555; padding-left: 18px; margin-bottom: 16px; }
.col-list li { margin-bottom: 2px; }
.upload-card label { display: block; font-size: 13px; font-weight: bold; margin-bottom: 6px; }
.upload-card input[type=file] { width: 100%; font-size: 13px; padding: 6px; border: 1px solid #ccc; border-radius: 4px; }
.submit-row { margin-top: 24px; text-align: center; }
.btn-upload { background: #2c5f2e; color: white; border: none; padding: 12px 36px; font-size: 16px; border-radius: 6px; cursor: pointer; }
.btn-upload:hover { background: #1e4220; }
.result { margin-top: 28px; }

/* ── Tickets / Session cards ── */
.day-section { margin-bottom: 40px; }
.day-heading { font-size: 26px; font-weight: bold; color: #2c5f2e; border-bottom: 2px solid #2c5f2e; padding-bottom: 8px; margin-bottom: 16px; }
.session-card { background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.07); padding: 16px 20px; margin-bottom: 12px; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; column-gap: 20px; row-gap: 4px; border: 1px solid #e4ece4; }
.code-badge { grid-column: 1; grid-row: 1; align-self: start; background: #2c5f2e; color: white; font-size: 16px; font-weight: bold; padding: 4px 10px; border-radius: 4px; min-width: 44px; text-align: center; }
.session-time  { grid-column: 1; grid-row: 2; align-self: start; font-size: 15px; color: #666; white-space: nowrap; }
.session-name  { grid-column: 2; grid-row: 1; font-size: 20px; font-weight: bold; }
.session-venue { grid-column: 2; grid-row: 2; font-size: 15px; color: #888; }
.session-desc  { grid-column: 2; grid-row: 3; font-size: 15px; color: #555; margin-top: 4px; line-height: 1.5; }
.session-desc a { color: #2c5f2e; }
.session-desc a:hover { text-decoration: underline; }
.price-badge { font-size: 17px; font-weight: bold; padding: 4px 12px; border-radius: 12px; white-space: nowrap; }
.price-free  { background: #e6f4ea; color: #2c5f2e; }
.price-paid  { background: #fff3e0; color: #e65100; }
.spots      { font-size: 16px; color: #888; white-space: nowrap; }
.spots.low  { color: #e65100; font-weight: bold; }
.spots.full { color: #c62828; font-weight: bold; }
.add-btn { background: #2c5f2e; color: white; border: none; padding: 9px 18px; font-size: 17px; border-radius: 6px; cursor: pointer; font-weight: bold; }
.add-btn:hover { background: #1e4220; }
.add-btn:disabled { background: #aaa; cursor: not-allowed; }
.stepper-wrap { position: relative; }
.stepper-popup { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #c62828; color: white; font-size: 13px; padding: 6px 10px; border-radius: 4px; white-space: nowrap; display: none; z-index: 10; }
.stepper-popup.visible { display: block; }
.stepper-controls { display: flex; align-items: center; border: 2px solid #2c5f2e; border-radius: 6px; overflow: hidden; }
.step-btn { background: #2c5f2e; color: white; border: none; padding: 7px 14px; font-size: 22px; line-height: 1; cursor: pointer; font-weight: bold; }
.step-btn:hover { background: #1e4220; }
.step-count { min-width: 36px; text-align: center; background: white; font-size: 17px; font-weight: bold; color: #2c5f2e; padding: 6px 4px; }
.session-right { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 130px; }
.continue-bar { position: fixed; bottom: 0; left: 0; right: 0; background: white; border-top: 2px solid #ddd; padding: 12px 24px; display: flex; justify-content: center; z-index: 50; }
.continue-btn { background: #2c5f2e; color: white; border: none; padding: 13px 0; font-size: 19px; font-weight: bold; border-radius: 8px; cursor: pointer; width: 100%; max-width: 500px; }
.continue-btn:hover { background: #1e4220; }
.continue-btn:disabled { background: #aaa; cursor: not-allowed; }
.go-back { display: inline-block; margin-bottom: 24px; color: #2c5f2e; font-size: 17px; cursor: pointer; }
.go-back:hover { text-decoration: underline; }
.summary-table { width: 100%; border-collapse: collapse; margin-bottom: 36px; }
.summary-table th { text-align: left; font-size: 15px; color: #888; padding: 6px 10px 6px 0; border-bottom: 1px solid #ddd; }
.summary-table th.col-tickets, .summary-table td.col-tickets { text-align: center; }
.summary-table th.col-price,   .summary-table td.col-price   { text-align: right; white-space: nowrap; }
.summary-table td { padding: 10px 10px 10px 0; font-size: 17px; border-bottom: 1px solid #f0ede6; vertical-align: top; }
.summary-total td { font-weight: bold; font-size: 18px; border-bottom: none; padding-top: 14px; }
.reg-form { max-width: 560px; }
.reg-error { background: #fdecea; color: #b71c1c; border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; font-size: 17px; display: none; }
.confirm-content { max-width: 900px; margin: 0 auto; padding: 40px 20px 60px; }
.confirm-banner { background: #e6f4ea; border: 2px solid #2c5f2e; border-radius: 10px; padding: 28px 32px; margin-bottom: 36px; text-align: center; }
.confirm-banner .check { font-size: 56px; color: #2c5f2e; line-height: 1; }
.confirm-banner h2 { color: #2c5f2e; font-size: 30px; margin: 10px 0 8px; }
.confirm-banner p  { font-size: 17px; color: #444; }
.manage-link-btn { display: inline-block; background: #2c5f2e; color: white; padding: 13px 40px; font-size: 19px; border-radius: 8px; text-decoration: none; margin-top: 28px; font-weight: bold; }
.manage-link-btn:hover { background: #1e4220; }
.manage-card { background: white; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.10); padding: 16px 20px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.manage-session-info { flex: 1; }
.manage-session-name { font-size: 18px; font-weight: bold; margin-bottom: 4px; }
.manage-session-meta { font-size: 14px; color: #888; }
.manage-stepper-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; }
.manage-delete-note  { font-size: 13px; color: #c62828; font-weight: bold; }
.manage-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.add-sessions-btn { background: white; color: #2c5f2e; border: 2px solid #2c5f2e; padding: 13px 28px; font-size: 17px; font-weight: bold; border-radius: 8px; cursor: pointer; }
.add-sessions-btn:hover { background: #f0f7f0; }

/* ── Error log ── */
body.dark-page { background: #1e1e1e; color: #d4d4d4; }
.log-meta { color: #888; font-size: 13px; margin-bottom: 16px; }
.log-title { color: #fff; font-size: 20px; margin-bottom: 16px; }
.entry { background: #2d2d2d; border-left: 4px solid #666; padding: 10px 14px; margin-bottom: 8px; font-size: 13px; font-family: monospace; white-space: pre-wrap; word-break: break-word; border-radius: 0 4px 4px 0; }
.entry.fatal   { border-color: #f44; }
.entry.warning { border-color: #fa0; }
.entry.notice  { border-color: #4af; }
.entry.mailer  { border-color: #c8f; }
.log-empty { color: #888; font-style: italic; }
.clear-btn { background: #c62828; color: white; border: none; padding: 8px 18px; font-size: 14px; border-radius: 4px; cursor: pointer; margin-bottom: 20px; }
.clear-btn:hover { background: #a31f1f; }

/* ── Nametags ── */
.choice-grid { display: grid; gap: 16px; }
.choice-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choice-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice-card { display: block; background: white; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.10); padding: 28px 16px; text-align: center; text-decoration: none; color: inherit; transition: box-shadow .15s; border: 1px solid #e4ece4; }
.choice-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.choice-num   { font-size: 13px; color: #aaa; margin-bottom: 10px; }
.choice-title { font-size: 20px; font-weight: bold; color: #2c5f2e; margin-bottom: 6px; }
.choice-sub   { font-size: 13px; color: #888; line-height: 1.5; }
.medium-badge { display: inline-block; font-size: 12px; background: #e6f4ea; color: #2c5f2e; border-radius: 12px; padding: 3px 10px; margin-bottom: 20px; }
.check-list { background: white; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.10); padding: 8px 0; max-height: 420px; overflow-y: auto; border: 1px solid #e4ece4; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 9px 18px; cursor: pointer; }
.check-row:hover { background: #f8faf8; }
.check-row input[type=checkbox] { width: 17px; height: 17px; cursor: pointer; accent-color: #2c5f2e; flex-shrink: 0; }
.check-row span { font-size: 15px; }
.select-toggle { font-size: 13px; color: #2c5f2e; cursor: pointer; text-decoration: underline; margin-bottom: 10px; display: inline-block; }
.empty-note { font-size: 14px; color: #888; padding: 24px 18px; }
.tag-name-row { display: flex; gap: 8px; margin-bottom: 8px; }
.tag-name-row input { flex: 1; font-size: 15px; padding: 8px 12px; border: 1px solid #ccc; border-radius: 4px; background: white; }
.tag-name-row input:focus { outline: none; border-color: #2c5f2e; box-shadow: 0 0 0 2px rgba(44,95,46,.15); }
.btn-remove { background: white; border: 1px solid #ddd; color: #bbb; border-radius: 4px; width: 34px; cursor: pointer; font-size: 20px; line-height: 1; padding: 0; flex-shrink: 0; }
.btn-remove:hover { color: #c62828; border-color: #c62828; }
.btn-add { margin-top: 4px; background: white; border: 1px dashed #2c5f2e; color: #2c5f2e; padding: 7px 18px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.btn-add:hover { background: #e8f5e9; }
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.role-opt input[type=radio] { display: none; }
.role-opt label { display: block; padding: 11px 6px; border: 3px solid transparent; border-radius: 7px; cursor: pointer; text-align: center; font-size: 12px; font-weight: bold; color: white; letter-spacing: .5px; transition: border-color .12s; }
.role-opt input:checked + label { border-color: rgba(0,0,0,.35); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
#customFields { margin-top: 14px; display: none; background: white; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.10); padding: 18px 20px; border: 1px solid #e4ece4; }
#customFields label { font-size: 13px; font-weight: bold; display: block; margin-bottom: 5px; }
#customFields input[type=text] { width: 100%; font-size: 14px; padding: 8px 10px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 14px; }
.color-row { display: flex; align-items: center; gap: 12px; }
#customColor { width: 54px; height: 38px; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; padding: 2px; }
.btn-generate { background: #2c5f2e; color: white; border: none; padding: 13px 40px; font-size: 17px; border-radius: 6px; cursor: pointer; }
.btn-generate:hover { background: #1e4220; }
.hint { font-size: 12px; color: #aaa; margin-top: 10px; }

/* ── Responsive ── */
@media (max-width: 860px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .link-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nav { padding: 0 16px; }
    .stat-grid { grid-template-columns: 1fr; }
    .link-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: 1fr; }
}
