:root {
  --bg: #f6f5f3;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #6b645e;
  --border: #e4e0db;
  --accent: #b91c1c;
  --accent-text: #ffffff;
  --good-bg: #dcfce7;
  --good-text: #166534;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --error: #b91c1c;
  --radius: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161412;
    --surface: #211e1b;
    --text: #f3f0ec;
    --muted: #a8a09a;
    --border: #36312c;
    --accent: #ef4444;
    --accent-text: #1c1917;
    --good-bg: #14532d;
    --good-text: #bbf7d0;
    --warn-bg: #4a3410;
    --warn-text: #fde68a;
    --error: #f87171;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans SC", sans-serif;
}

[hidden] { display: none !important; }

.muted { color: var(--muted); }
.small { font-size: 14px; }
.error { color: var(--error); margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.demo-banner {
  background: var(--warn-bg);
  color: var(--warn-text);
  text-align: center;
  padding: 6px 16px;
  font-size: 14px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Sign-in */
.login { min-height: 90vh; display: grid; place-items: center; padding: 16px; }
.login-card { width: 100%; max-width: 380px; display: grid; gap: 10px; }
.login-card h1 { margin: 0; font-size: 24px; }
.login-card p { margin: 0 0 8px; }
label { font-weight: 600; font-size: 14px; }

input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button.primary {
  margin-top: 6px;
  padding: 12px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  cursor: pointer;
}
button.primary:disabled { opacity: 0.6; cursor: wait; }
button.link {
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

/* Portal */
.topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; }
.who { font-size: 14px; display: flex; gap: 6px; align-items: center; }

.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px 16px 0;
  max-width: 720px;
  margin: 0 auto;
}
.tab {
  flex: 0 0 auto;
  border: 0;
  background: none;
  padding: 8px 12px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-weight: 600;
}
.tab.active { color: var(--text); border-bottom-color: var(--accent); }

.content { max-width: 720px; margin: 0 auto; padding: 16px; }

.search { font-size: 18px; padding: 14px 16px; }

.results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}
.result:hover, .result:focus-visible { border-color: var(--accent); }
.result .name { font-weight: 600; }
.result .sub { font-size: 14px; color: var(--muted); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill.good { background: var(--good-bg); color: var(--good-text); }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); }

.member-card { margin: 8px 0 12px; }
.member-card h2 { margin: 0; font-size: 22px; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.fields dt { color: var(--muted); font-size: 14px; }
.fields dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; gap: 2px; }
  .fields dd { margin-bottom: 8px; }
}

/* Door tab */
.door-top { display: grid; gap: 8px; margin-bottom: 10px; }
.entry-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.scan-result { border-radius: 16px; padding: 18px; margin: 8px 0; min-height: 96px; display: grid; gap: 4px; align-content: center; text-align: center; font-size: 18px; }
.scan-result.idle { background: var(--surface); border: 1px dashed var(--border); color: var(--muted); font-size: 16px; }
.scan-result.green { background: #15803d; color: #fff; }
.scan-result.green-flag { background: #15803d; color: #fff; box-shadow: inset 0 0 0 6px #facc15; }
.scan-result.orange { background: #ea580c; color: #fff; }
.scan-result.red { background: #b91c1c; color: #fff; }
.scan-result .big-name { font-size: 26px; font-weight: 800; }
.scan-result .detail { font-size: 15px; opacity: 0.95; }
.camera { width: 100%; max-width: 480px; margin: 0 auto 10px; border-radius: 16px; overflow: hidden; }
.door-buttons { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-bottom: 12px; }
.door-buttons button { margin-top: 0; }
.manual { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 8px 0; }
.helpdesk { margin-top: 14px; }
.helpdesk summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.door-person { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 14px; }
.door-person .sub { font-size: 13px; color: var(--muted); }

/* Payments tab */
.payments-top { display: grid; gap: 10px; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-weight: 600; cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.notice-box { background: var(--warn-bg); color: var(--warn-text); border-radius: 10px; padding: 10px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.order { padding: 16px; display: grid; gap: 8px; }
.order-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.order-code { font: 700 20px ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.5px; }
.order-total { font-size: 20px; font-weight: 700; }
.order-meta { font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.order-tickets { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.order-tickets li { padding: 6px 0; border-top: 1px dashed var(--border); }
.flag { color: var(--warn-text); background: var(--warn-bg); border-radius: 6px; padding: 1px 6px; font-size: 13px; display: inline-block; margin-top: 2px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.order-actions .primary { margin-top: 0; padding: 10px 16px; }
.order-result { font-size: 14px; font-weight: 600; color: var(--good-text); }

/* Events tab */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-title { margin: 4px 0; font-size: 20px; }
button.small-button { margin-top: 0; padding: 8px 14px; }
button.secondary {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
button.link.danger { color: var(--muted); font-weight: 500; font-size: 14px; }
a.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.pill.neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--border); }

.event-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px; }
.event-row .name { font-weight: 600; }
.event-row .sub { font-size: 14px; color: var(--muted); }
.event-row .badges { margin: 8px 0 0; }
.event-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }

.editor { display: grid; gap: 8px; margin-top: 8px; }
.editor h2 { margin: 0 0 4px; }
.editor label { margin-top: 6px; display: block; }
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  resize: vertical;
}
input.short { max-width: 120px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.grid-ticket { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 8px 0 0; }
legend { font-weight: 700; padding: 0 6px; }
.repeat-row { border-bottom: 1px dashed var(--border); padding: 4px 0 10px; margin-bottom: 8px; }
.repeat-row:last-child { border-bottom: 0; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; }
label.check input { width: auto; }
.align-end { align-self: end; padding-bottom: 12px; }
.image-picker img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
.button-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.button-row button { margin-top: 0; }

@media (max-width: 480px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 > div:first-child { grid-column: 1 / -1; }
}

/* Phone mode (small touch screens): scanner first, less chrome */
body.phone .topbar { padding: 8px 12px; }
body.phone .who .muted { display: none; }
body.phone .content { padding: 10px 12px 24px; }
body.phone .tabs { padding: 4px 12px 0; }
body.phone .scan-result { position: sticky; top: 0; z-index: 5; min-height: 110px; font-size: 19px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
body.phone .scan-result .big-name { font-size: 30px; }
body.phone .camera { max-width: none; }
body.phone .door-buttons button { padding: 16px; font-size: 17px; }
.scan-result { cursor: pointer; }
.scan-result.idle { cursor: default; }
.tap-hint { margin-top: 6px; font-size: 13px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.5px; }
.link.small { font-size: 14px; margin-top: 8px; }

/* Connection notice and toast */
.connection-notice { background: var(--warn-bg); color: var(--warn-text); text-align: center; padding: 6px 16px; font-size: 14px; position: sticky; top: 0; z-index: 30; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 40; max-width: min(92vw, 520px); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }

/* Live door counter */
.door-live { display: flex; align-items: baseline; justify-content: center; gap: 10px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px 16px; }
.door-live-num { font-size: 44px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.door-live-label { font-size: 20px; font-weight: 700; color: var(--muted); }
.door-live-sub { flex-basis: 100%; text-align: center; font-size: 14px; color: var(--muted); }
.door-live-sub:empty { display: none; }
body.phone .door-live { padding: 6px 12px; }
body.phone .door-live-num { font-size: 36px; }

/* Edit person */
.edit-dialog { width: min(94vw, 520px); max-height: 92vh; overflow-y: auto; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); }
.edit-dialog::backdrop { background: rgba(0, 0, 0, 0.5); }
.edit-dialog .editor { margin: 0; }

/* Finance extras */
.order-code .pick { width: 20px; height: 20px; vertical-align: -3px; margin-right: 6px; padding: 0; }
.bulk-bar { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.bulk-buttons { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.bulk-info { font-size: 14px; font-weight: 600; }

/* Activity and Settings */
.act-day { font-weight: 700; margin-top: 10px; color: var(--muted); font-size: 14px; }
.act { display: flex; gap: 12px; padding: 10px 14px; align-items: baseline; }
.act-time { color: var(--muted); font-size: 13px; white-space: nowrap; min-width: 62px; }
.sub-title { margin: 0 0 4px; font-size: 18px; }
.good-text { color: var(--good-text); font-weight: 600; }
#tab-settings .card { margin-top: 12px; }
#tab-settings .editor input + input { margin-top: 6px; }

/* Attendees */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 8px 0 14px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.tile-num { font-size: 28px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.tile-label { font-size: 13px; color: var(--muted); }
.detail-block { margin-bottom: 10px; }
.plain-list { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 4px; }
.answer-block { margin-bottom: 10px; }
.answer-q { font-weight: 600; font-size: 14px; color: var(--muted); }
.att-tools { align-items: flex-start; margin-top: 8px; flex-wrap: wrap; }
.att-sort { width: auto; padding: 8px 10px; }
.att { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; }
.att .sub { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* ---- Orders: a stacked card on small screens, a table row on wide ones ---- */
:root { --order-cols: 150px minmax(0, 1.1fr) minmax(0, 1.6fr) 120px minmax(150px, auto); }
.order { grid-template-columns: 1fr auto; grid-template-areas: "code total" "who who" "tickets tickets" "money money" "actions actions"; align-items: start; }
.o-money { grid-area: money; display: flex; flex-direction: column; gap: 6px; }
.o-money:empty { display: none; }
.o-code { grid-area: code; }
.o-who { grid-area: who; }
.o-tickets { grid-area: tickets; }
.o-total { grid-area: total; display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.o-actions { grid-area: actions; }
.o-when { display: block; font-size: 12px; color: var(--muted); }
.order-cols { display: none; }
.tile.attention { border-left: 3px solid var(--accent); }
.pay-tiles { margin: 4px 0 6px; }

/* ---- Door scanner mode (phones, and exec.../scanner): only what the person at the door needs ---- */
body.scanner-mode .tabs,
body.scanner-mode #walkin-button,
body.scanner-mode #unpaid-box,
body.scanner-mode #flagged-box,
body.scanner-mode .global-event { display: none !important; }
body.scanner-mode .door-buttons { grid-template-columns: 1fr; }
body.scanner-mode .entry-toggle { pointer-events: none; }
body.scanner-mode .content { max-width: 520px; }
.global-event { display: none; }

/* ---- Wide screens: sidebar + dashboard ---- */
@media (min-width: 960px) {
  body:not(.scanner-mode) #app-view {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
  }
  body:not(.scanner-mode) #app-view > .topbar { grid-column: 1 / -1; flex-wrap: nowrap; gap: 16px; padding: 10px 24px; }
  body:not(.scanner-mode) #app-view > .tabs {
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding: 16px 12px;
    gap: 2px;
    overflow: visible;
    background: var(--surface);
    border-right: 1px solid var(--border);
  }
  body:not(.scanner-mode) .tab {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 8px;
  }
  body:not(.scanner-mode) .tab:hover { background: var(--bg); }
  body:not(.scanner-mode) .tab.active { background: var(--bg); border-left-color: var(--accent); color: var(--text); }
  body:not(.scanner-mode) #app-view > .content { max-width: 1160px; margin: 0; width: 100%; padding: 24px 32px 56px; }

  .global-event:not([hidden]) { display: block; width: auto; min-width: 280px; max-width: 460px; margin-right: auto; padding: 8px 12px; font-weight: 600; }
  .tab-event-select { display: none; }
  #pay-summary { display: none; }
  #add-order-button { margin-left: auto; }
  #tab-door { max-width: 760px; }

  .tiles { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

  .order-cols {
    display: grid;
    grid-template-columns: var(--order-cols);
    gap: 16px;
    padding: 8px 16px 6px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  #orders { gap: 0; margin-top: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
  #orders:empty { display: none; }
  #orders .order {
    grid-template-columns: var(--order-cols);
    grid-template-areas: "code who tickets total actions" "money money money money money";
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
  }
  #orders .order:last-child { border-bottom: 0; }
  #orders .order:hover { background: var(--bg); }
  #orders .o-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  #orders .o-actions { flex-direction: column; align-items: flex-start; gap: 4px; }
  #orders .o-tickets li:first-child { border-top: 0; padding-top: 0; }
  #orders .o-tickets li:last-child { padding-bottom: 0; }
}

.site-footer { margin: 32px 16px 24px; text-align: center; font-size: 13px; color: var(--muted, #6b6b6b); }
.site-footer p { margin: 4px 0; }
.site-footer a { color: inherit; font-weight: 600; }

/* Event report, feedback and member history */
.report-body { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; max-height: 60vh; overflow: auto; background: var(--surface-2, #f4efe3); padding: 12px; border-radius: 10px; margin: 10px 0; }
.history-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.history-list li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.rating-stars { color: #d9a21b; letter-spacing: 1px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 8px 0; max-height: 280px; overflow: auto; }
.image-tile { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.image-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-tile.picked { border-color: var(--accent, #b4322b); }
.partner-list li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line, #e4dcc8); }
.partner-list .p-main { flex: 1 1 260px; }
.partner-list .p-off { opacity: .55; }

/* Panda loader (loading, slow, success, error) */
.pl { text-align: center; padding: 12px 0 8px; color: inherit; }
.pl-stage { position: relative; width: 64px; height: 62px; margin: 0 auto; animation: plBob 2s ease-in-out infinite; }
.pl-img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pl-frames-2 .pl-f0 { animation: plFrameA .9s steps(1, end) infinite; }
.pl-frames-2 .pl-f1 { animation: plFrameB .9s steps(1, end) infinite; }
@keyframes plFrameA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes plFrameB { 0% { opacity: 0; } 50% { opacity: 1; } }
@keyframes plBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.pl-dots { display: flex; justify-content: center; gap: 6px; height: 12px; margin: 4px 0 3px; }
.pl-dots i { width: 11px; height: 11px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21C3 9 11 3 21 3c0 10-6 18-18 18z' fill='%236aa84f'/%3E%3Cpath d='M3 21L15 9' stroke='%23467a35' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); animation: plLeaf 1.5s ease-in-out infinite; }
.pl-dots i:nth-child(2) { animation-delay: .25s; }
.pl-dots i:nth-child(3) { animation-delay: .5s; }
@keyframes plLeaf { 0%, 10% { transform: scale(0) rotate(-35deg); opacity: 0; } 35%, 75% { transform: scale(1) rotate(0); opacity: 1; } 100% { transform: scale(1) rotate(0); opacity: 0; } }
.pl-title { margin: 3px 0 1px; font-weight: 700; font-size: 14px; }
.pl-sub { margin: 0; opacity: .7; font-size: 12px; }
.pl-retry { margin-top: 12px; padding: 8px 18px; border-radius: 10px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.pl[data-state="success"] .pl-stage { animation: plHop .7s ease-out 1; }
@keyframes plHop { 0% { transform: translateY(0); } 35% { transform: translateY(-14px); } 60% { transform: translateY(0); } 78% { transform: translateY(-5px); } 100% { transform: translateY(0); } }
.pl-compact .pl-stage { width: 40px; height: 39px; }
.pl-compact .pl-dots { height: 9px; gap: 4px; margin: 3px 0 1px; }
.pl-compact .pl-dots i { width: 8px; height: 8px; }
.pl-compact .pl-title { font-size: 11px; margin: 1px 0 0; }
.pl-compact .pl-sub { display: none; }
.pl-solo { display: block; height: 48px; width: auto; margin: 0 auto 10px; }
.pl-solo.pl-toast { height: 30px; margin: 0 10px 0 0; display: inline-block; vertical-align: middle; }
.pl-leaves { padding: 26px 0 18px; }
.pl-leaves .pl-dots { gap: 16px; height: 34px; margin: 0 0 12px; }
.pl-leaves .pl-dots i { width: 26px; height: 26px; }
.pl-solo.pl-inline { display: inline-block; height: 30px; margin: 0 8px 2px 0; vertical-align: middle; }
.pl-busy .pl-img, .pl-solo { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .35)); }
.pl-busy .pl-title, .pl-busy .pl-sub { text-shadow: 0 0 6px var(--bg, #fff), 0 0 10px var(--bg, #fff); }
.pl-busy { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 9999; }
@media (prefers-reduced-motion: reduce) {
  .pl-stage, .pl[data-state="success"] .pl-stage { animation: none; }
  .pl-frames-2 .pl-f0, .pl-frames-2 .pl-f1 { animation: none; }
  .pl-frames-2 .pl-f1 { opacity: 0; }
  .pl-dots i { animation: none; transform: scale(1); opacity: 1; }
}
