:root {
  --purple: #5b2a86; --purple-dark: #3d1a5c; --purple-soft: #f3ecfa;
  --pink: #d6337f; --pink-dark: #b8236a; --pink-soft: #fdeef5;
  --ink: #1a0b2e; --muted: #6b5a80; --line: #e8e1f0; --bg: #ffffff; --bg2: #faf8fc;
  --good: #1f8a4c; --good-soft: #e6f6ec; --warn: #b26b00; --warn-soft: #fff4e0; --bad: #c0283a; --bad-soft: #fdecee;
  --radius: 14px; --shadow: 0 1px 2px rgba(26,11,46,.06), 0 8px 24px rgba(26,11,46,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--purple); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 20px; text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--purple), var(--pink)); color: #fff; display: grid; place-items: center; font-size: 13px; letter-spacing: .5px; }
.site-head nav a { text-decoration: none; color: var(--muted); font-weight: 600; margin-left: 20px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; color: var(--muted); font-size: 14px; background: var(--bg2); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.test-banner { background: var(--warn-soft); color: #6a4000; text-align: center; font-size: 13px; padding: 6px 12px; border-bottom: 1px solid #f3dcb0; }

/* Buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--pink); color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: var(--pink-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #d9cfe4; cursor: not-allowed; }
.btn.block { width: 100%; padding: 15px 20px; font-size: 17px; }
.btn.secondary { background: var(--purple-soft); color: var(--purple); }
.btn.secondary:hover { background: #e7dbf5; }
.btn.ghost { background: transparent; color: var(--purple); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg2); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.danger:hover { background: #f9d6db; }
.btn.small { padding: 7px 12px; font-size: 14px; border-radius: 8px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1px solid #d6cce2; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-bottom: 12px; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); flex: none; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; font-size: 15px; }
.alert.error { background: var(--bad-soft); color: var(--bad); }
.alert.ok { background: var(--good-soft); color: var(--good); }
.alert.info { background: var(--purple-soft); color: var(--purple-dark); }
.alert ul { margin: 0; padding-left: 18px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 22px; }
.pill { white-space: nowrap; display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--purple-soft); color: var(--purple); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.grey { background: #eee9f3; color: var(--muted); }

/* Home */
.hero { background: linear-gradient(120deg, var(--purple-dark), var(--purple) 45%, var(--pink)); color: #fff; padding: 56px 0 64px; }
.hero p { color: #f1e6fb; font-size: 18px; max-width: 560px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: -32px; }
.ev-card { display: block; text-decoration: none; color: inherit; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.ev-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(26,11,46,.08), 0 14px 32px rgba(26,11,46,.1); }
.ev-img { height: 160px; background: linear-gradient(135deg, var(--purple), var(--pink)); background-size: cover; background-position: center; position: relative; }
.ev-date { position: absolute; left: 16px; bottom: -22px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); width: 58px; text-align: center; padding: 6px 0; }
.ev-date b { display: block; font-size: 22px; line-height: 1.1; }
.ev-date span { font-size: 11px; font-weight: 800; color: var(--pink); letter-spacing: .08em; }
.ev-body { padding: 32px 18px 18px; }
.ev-body h3 { margin-bottom: 4px; }
.ev-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }

/* Event page */
.ev-hero { background: linear-gradient(120deg, var(--purple-dark), var(--purple) 50%, var(--pink)); background-size: cover; background-position: center; color: #fff; padding: 48px 0 40px; position: relative; }
.ev-hero.has-img { min-height: 420px; display: flex; align-items: flex-end; background-position: var(--pos-cover, center); }
@media (max-width: 700px) { .ev-hero.has-img { background-position: var(--pos-mobile, var(--pos-cover, center)); } }
.ev-hero.has-img .wrap { width: 100%; }
.ev-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,11,46,.85), rgba(26,11,46,.35)); }
.ev-hero .wrap { position: relative; }
.ev-hero .sub { font-size: 19px; color: #f1e6fb; margin-bottom: 18px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-weight: 600; }
.facts span { display: inline-flex; align-items: center; gap: 8px; }
.ev-layout { display: grid; grid-template-columns: 1fr 380px; gap: 36px; margin-top: 32px; align-items: start; }
.prose { font-size: 17px; }
.ticket-box { position: sticky; top: 84px; }
.tt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tt:last-of-type { border-bottom: 0; }
.tt .name { font-weight: 700; }
.tt .price { font-weight: 700; color: var(--purple); }
.tt select { width: 76px; padding: 8px; }
.total-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 14px 0; }
.promo-toggle { background: none; border: 0; color: var(--purple); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; margin: 4px 0 12px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }

.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 4px 0 4px; aspect-ratio: 16 / 9; background: var(--bg2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.ev-notice { padding: 14px 0; font-size: 15px; }
.ev-notice.bad { background: var(--bad-soft); color: var(--bad); }
.ev-notice.warn { background: var(--warn-soft); color: #6a4000; }
.ev-notice span { display: block; margin-top: 4px; }
.lineup { display: grid; gap: 14px; }
.act { display: grid; grid-template-columns: 76px 1fr; gap: 16px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.act-img { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--pink)) center / cover; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.act b { font-size: 17px; }
.act-tag { color: var(--pink); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.act p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.agenda { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--purple-soft); }
.agenda li { display: grid; grid-template-columns: 160px 1fr; gap: 12px; padding: 10px 0 10px 18px; position: relative; }
.agenda li::before { content: ""; position: absolute; left: -8px; top: 16px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); }
.agenda time { white-space: nowrap; font-weight: 700; color: var(--purple); font-variant-numeric: tabular-nums; }
.agenda span { display: block; color: var(--muted); font-size: 15px; }
@media (max-width: 560px) { .agenda li { grid-template-columns: 1fr; gap: 2px; } }

/* Checkout */
.co-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; margin-top: 32px; align-items: start; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 18px; }
.timer { display: flex; align-items: center; gap: 8px; background: var(--purple-soft); color: var(--purple-dark); padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; }
.timer b { font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.steps b { color: var(--pink); }

/* Demo pay */
.paybox { max-width: 440px; margin: 40px auto; }
.fake-card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.paybar { background: #635bff; color: #fff; padding: 12px 22px; border-radius: var(--radius) var(--radius) 0 0; font-weight: 700; display: flex; justify-content: space-between; }

/* Tickets */
.success { text-align: center; padding: 40px 0 8px; }
.success .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: 34px; margin: 0 auto 14px; }
.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 28px; }
.ticket { overflow: hidden; }
.ticket .top { background: linear-gradient(120deg, var(--purple), var(--pink)); color: #fff; padding: 16px 20px; }
.ticket .top b { display: block; font-size: 17px; }
.ticket .qr { padding: 18px; text-align: center; border-bottom: 2px dashed var(--line); }
.ticket .qr svg { width: 220px; height: 220px; }
.ticket .info { padding: 14px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 14px; }
.ticket .info span { display: block; color: var(--muted); font-size: 12px; }
.ticket.void { opacity: .55; }
.ticket.void .qr svg { filter: grayscale(1); }

@media (max-width: 860px) {
  .ev-layout, .co-layout { grid-template-columns: 1fr; }
  .ticket-box { position: static; }
  .row2 { grid-template-columns: 1fr; }
}
@media print {
  .site-head, .site-foot, .no-print, .test-banner { display: none !important; }
  .ticket { break-inside: avoid; box-shadow: none; }
}

/* ---------- Admin ---------- */
.admin body, body.admin { background: var(--bg2); }
.adm { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; }
.adm-side { align-self: start; min-height: 100vh; background: var(--purple-dark); color: #e9def5; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .brand { color: #fff; margin: 4px 6px 22px; font-size: 17px; }
.adm-side a.nav { display: block; color: #e1d3f0; text-decoration: none; padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.adm-side a.nav:hover { background: rgba(255,255,255,.08); }
.adm-side a.nav.on { background: rgba(255,255,255,.14); color: #fff; }
.adm-side .sep { height: 1px; background: rgba(255,255,255,.12); margin: 14px 6px; }
.adm-side .mode { font-size: 12px; margin: 18px 8px 0; color: #c7b5dc; }
.adm-main { padding: 28px 32px 60px; min-width: 0; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.adm-top h1 { font-size: 26px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.kpi { padding: 16px 18px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { display: block; font-size: 26px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi.accent { background: linear-gradient(120deg, var(--purple), var(--pink)); color: #fff; border: 0; }
.kpi.accent span, .kpi.accent small { color: #f4e9fb; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg2); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fcfaff; }
.table-wrap { overflow-x: auto; }
.bar { height: 8px; background: #eee6f6; border-radius: 99px; overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--purple), var(--pink)); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; padding: 8px 10px; }
.tt-edit td { padding: 6px 4px; }
.tt-edit input, .tt-edit select { padding: 8px; font-size: 14px; }
.tt-edit td:first-child input { min-width: 170px; }
.tt-edit td:nth-child(6) input { min-width: 170px; }
.tt-edit input[type=datetime-local] { min-width: 200px; }
.section { margin-bottom: 22px; }
.section > h2 { margin-bottom: 12px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 15px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.login { max-width: 380px; margin: 12vh auto; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Image uploader + focus point */
.uploader { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
.up-stage { border: 2px dashed #d6cce2; border-radius: 12px; background: var(--bg2); overflow: hidden; transition: border-color .15s, background-color .15s; }
.up-stage.drag { border-color: var(--pink); background: var(--pink-soft); }
.up-stage.has { border: 1px solid var(--line); background: #1a0b2e; }
.up-empty { aspect-ratio: 16 / 9; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; }
.up-stage.has .up-empty, .up-stage:not(.has) .up-imgwrap { display: none; }
.up-imgwrap { position: relative; cursor: crosshair; touch-action: none; user-select: none; outline: none; }
.up-imgwrap:focus-visible { box-shadow: inset 0 0 0 3px var(--pink); }
.up-imgwrap img { display: block; width: 100%; max-height: 420px; object-fit: contain; pointer-events: none; }
.focus-dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; background: rgba(214, 51, 127, .55); box-shadow: 0 0 0 2px rgba(26, 11, 46, .5), 0 2px 8px rgba(0, 0, 0, .4); pointer-events: none; }
.focus-dot[data-p="card"] { background: rgba(214, 51, 127, .6); }
.focus-dot[data-p="cover"] { background: rgba(91, 42, 134, .7); }
.focus-dot[data-p="mobile"] { background: rgba(31, 138, 76, .7); }
.focus-dot.solo { background: rgba(214, 51, 127, .6); }
.focus-dot.ghost { opacity: .45; transform: scale(.7); }
.focus-dot > span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 6px); background: rgba(26, 11, 46, .85); color: #fff; font: 700 10px/1 system-ui, sans-serif; font-style: normal; padding: 3px 6px; border-radius: 99px; white-space: nowrap; }
.focus-dot.solo > span { display: none; }
.focus-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.focus-tabs button { border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 13px/1 system-ui, sans-serif; padding: 8px 12px; border-radius: 99px; cursor: pointer; }
.focus-tabs button:hover { border-color: var(--purple); }
.focus-tabs button.on { background: var(--purple); border-color: var(--purple); color: #fff; }
.focus-tabs button[data-p="card"]::before, .focus-tabs button[data-p="cover"]::before, .focus-tabs button[data-p="mobile"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.focus-tabs button[data-p="card"]::before { background: #d6337f; }
.focus-tabs button[data-p="cover"]::before { background: #5b2a86; box-shadow: 0 0 0 1px #fff; }
.focus-tabs button[data-p="mobile"]::before { background: #1f8a4c; }
.crop-views figure { cursor: pointer; border-radius: 12px; padding: 4px; margin: -4px; transition: box-shadow .15s; }
.crop-views figure:hover { box-shadow: 0 0 0 2px var(--line); }
.crop-views figure.active { box-shadow: 0 0 0 3px var(--pink); }
.focus-dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.focus-help { background: var(--purple-soft); color: var(--purple-dark); border-radius: 10px; padding: 10px 12px; }
.crop-views { display: grid; grid-template-columns: 1.15fr 2.2fr .75fr; gap: 16px; margin-top: 18px; align-items: end; }
.crop-views figure { margin: 0; }
.crop-views figcaption { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 6px; }
.cv { position: relative; border-radius: 10px; overflow: hidden; background: #ddd center / cover no-repeat; box-shadow: var(--shadow); }
.cv-card { aspect-ratio: 332 / 160; }
.cv-cover { aspect-ratio: 1280 / 420; }
.cv-mobile { aspect-ratio: 390 / 420; }
.cv-cover::before, .cv-mobile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,11,46,.85), rgba(26,11,46,.35)); }
.cv-text { position: absolute; left: 7%; right: 7%; bottom: 12%; color: #fff; }
.cv-title { display: block; font-size: 15px; line-height: 1.2; }
.cv-mobile .cv-title { font-size: 12px; }
.cv-badge { position: absolute; left: 6%; bottom: 8px; background: #fff; border-radius: 8px; width: 40px; text-align: center; padding: 3px 0; box-shadow: var(--shadow); }
.cv-badge b { display: block; font-size: 15px; line-height: 1.1; }
.cv-badge span { font-size: 8px; font-weight: 800; color: var(--pink); letter-spacing: .08em; }
@media (max-width: 1000px) { .uploader, .crop-views { grid-template-columns: 1fr; } }

/* Rich text editor */
.rte { border: 1px solid #d6cce2; border-radius: 10px; background: #fff; }
.rte:focus-within { border-color: var(--purple); outline: 2px solid var(--purple); }
.rte-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg2); border-radius: 10px 10px 0 0; position: sticky; top: 0; z-index: 2; }
.rte-btn { min-width: 34px; height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: 600 15px/1 system-ui, sans-serif; cursor: pointer; display: inline-grid; place-items: center; padding: 0 6px; }
.rte-btn svg { fill: currentColor; }
.rte-btn:hover { background: #ebe3f4; }
.rte-btn.on { background: var(--purple-soft); color: var(--purple); box-shadow: inset 0 0 0 1px #d9c8ee; }
.rte-block { width: auto !important; padding: 6px 8px !important; font-size: 14px !important; height: 34px; margin-right: 2px; }
.rte-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.rte-a { position: relative; font-weight: 800; padding-bottom: 4px; }
.rte-a i { position: absolute; left: -2px; right: -2px; bottom: 0; height: 3px; border-radius: 2px; }
.rte-hl { background: #fff4c2; padding: 1px 4px; border-radius: 3px; font-weight: 800; }
.rte-pop-wrap { position: relative; }
.rte-pop { position: absolute; top: 40px; left: 0; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 10px; display: grid; grid-template-columns: repeat(4, 28px); gap: 8px; width: max-content; }
.rte-pop[hidden] { display: none; }
.rte-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.rte-swatch:hover { box-shadow: 0 0 0 2px var(--purple); }
.rte-custom, .rte-none { grid-column: 1 / -1; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; margin: 0; }
.rte-custom input { width: 40px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: none; }
.rte-none { background: none; border: 1px solid var(--line); border-radius: 7px; padding: 6px; cursor: pointer; justify-content: center; color: var(--ink); }
.rte-area { min-height: 220px; max-height: 560px; overflow-y: auto; padding: 14px 16px; outline: none; font-size: 16px; }

/* Formatted descriptions (event page and editor) */
.rich { white-space: normal; }
.rich > :first-child { margin-top: 0; }
.rich p, .rich div { margin: 0 0 1em; }
.rich h2 { font-size: 22px; margin: 1.2em 0 .5em; }
.rich h3 { font-size: 18px; margin: 1.1em 0 .4em; }
.rich ul, .rich ol { margin: 0 0 1em; padding-left: 1.4em; }
.rich li { margin: .2em 0; }
.rich blockquote { margin: 0 0 1em; padding: 6px 0 6px 16px; border-left: 4px solid var(--pink); color: var(--muted); font-style: italic; }
.rich a { color: var(--pink); font-weight: 600; }

/* Lineup / agenda editors */
.sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sec-head .check { margin: 0; }
.lu-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.lu-row:last-child { border-bottom: 0; }
.lu-fields { display: grid; gap: 8px; }
.lu-fields .row2 { gap: 8px; }
.lu-fields input, .lu-fields textarea { padding: 8px 10px; font-size: 14px; min-height: 0; }
.mini-upload { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 2px dashed #d6cce2; background: var(--bg2) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.mini-upload:hover { border-color: var(--purple); }
.mini-upload.has { border: 0; }
.mini-upload.has > span { display: none; }
.mini-upload.busy { opacity: .5; }
.mini-remove { position: absolute; right: -2px; top: -2px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; cursor: pointer; font-size: 15px; line-height: 1; }
.ag-edit input[type=time] { min-width: 120px; }

/* Scanner */
.scan { max-width: 560px; }
.scan video { width: 100%; border-radius: var(--radius); background: #000; aspect-ratio: 4/3; object-fit: cover; }
.scan-result { border-radius: var(--radius); padding: 22px; text-align: center; margin: 14px 0; font-size: 18px; }
.scan-result b { display: block; font-size: 28px; }
.scan-result.ok { background: var(--good); color: #fff; }
.scan-result.already, .scan-result.wrong_event { background: var(--warn); color: #fff; }
.scan-result.invalid, .scan-result.void { background: var(--bad); color: #fff; }
.scan-result.idle { background: var(--purple-soft); color: var(--purple-dark); }
.counter { font-size: 15px; font-weight: 700; }

@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
  .adm-side .brand { margin: 0 12px 0 4px; }
  .adm-side .sep, .adm-side .mode { display: none; }
  .adm-main { padding: 20px 16px 48px; }
}
