:root {
  --bg: #08111d;
  --panel: rgba(17, 30, 46, 0.88);
  --panel-2: #172840;
  --line: #24384f;
  --text: #eef3f8;
  --muted: #93a6ba;
  --red: #d8433b;
  --red-ink: #fff;
  --green: #2f9a62;
  --gold: #f0c75e;
  --frost: #cfe6ff;
  --good: #4fd194;
  --bad: #ff6b61;
  --radius: 12px;
  --title-font: "Mountains of Christmas", Georgia, serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  display: flex; flex-direction: column;
}
main { flex: 1 0 auto; width: 100%; }
/* fixed sky layer (iOS Safari ignores background-attachment: fixed) */
.sky {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(64, 120, 190, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(47, 154, 98, .14), transparent 60%),
    linear-gradient(180deg, #0b1a2c 0%, var(--bg) 70%);
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
main, .topbar, .lights, .submitbar, .toast { position: relative; z-index: 1; }

/* header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) 12px calc(20px + env(safe-area-inset-left));
  background: linear-gradient(180deg, #7d1c1c, #5c1414);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 6;
  box-shadow: 0 6px 20px rgba(0,0,0,.35);
}
.brand { font-family: var(--title-font); font-size: 26px; font-weight: 700; letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.logo { margin-right: 2px; }
.oalgo { font-size: .62em; color: var(--gold); font-style: italic; margin-left: 2px; white-space: nowrap; }
#nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#nav .who { color: #f5d9d6; margin-right: 4px; }
#nav button { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); }

/* string lights */
.lights {
  height: 26px; display: flex; justify-content: space-around; overflow: hidden;
  background:
    radial-gradient(ellipse 22px 8px at 22px -2px, transparent 7px, #1d2b1d 7.5px, #1d2b1d 8.5px, transparent 9px) repeat-x;
  background-size: 44px 12px;
  margin-top: -1px;
}
.bulb {
  width: 9px; height: 14px; margin-top: 6px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative; animation: twinkle 2.4s ease-in-out infinite;
}
.bulb::before { content: ""; position: absolute; top: -4px; left: 2px; width: 5px; height: 4px; background: #3b4a3b; border-radius: 1px; }
.bulb.red { background: #ff4d4d; --glow: #ff4d4d; }
.bulb.gold { background: #ffd34d; --glow: #ffd34d; }
.bulb.green { background: #3ee68a; --glow: #3ee68a; }
.bulb.blue { background: #59b7ff; --glow: #59b7ff; }
@keyframes twinkle {
  0%, 100% { box-shadow: 0 0 10px 2px var(--glow); opacity: 1; }
  50% { box-shadow: 0 0 2px 0 var(--glow); opacity: .45; }
}

main {
  max-width: 980px; margin: 0 auto;
  padding: 24px calc(16px + env(safe-area-inset-right)) calc(140px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
h1 { font-family: var(--title-font); font-size: 38px; line-height: 1.15; margin: 0 0 6px; color: #fff; text-shadow: 0 2px 12px rgba(207,230,255,.25); }
h2 { font-size: 17px; margin: 0 0 12px; }
.muted { color: var(--muted); }
.center { text-align: center; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; position: relative;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.85), 0 8px 24px rgba(0,0,0,.25); /* snow on the lid */
}
.auth { max-width: 420px; margin: 32px auto; }
.auth .hero { font-size: 44px; text-align: center; margin-bottom: 4px; }
.auth h1 { text-align: center; }
.auth > p { text-align: center; }
.tabs { display: flex; gap: 4px; margin: 18px 0; background: var(--panel-2); padding: 4px; border-radius: 8px; }
.tabs button { flex: 1; background: transparent; color: var(--muted); border: 0; }
.tabs button.active { background: var(--green); color: #fff; }

label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=password] {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(5, 12, 22, .7); color: var(--text); font: inherit;
  font-size: 16px; /* 16px+ stops iOS Safari from zooming in on focus */
  -webkit-appearance: none; appearance: none;
}
input:focus { outline: 2px solid var(--gold); outline-offset: -1px; }

button, .btn {
  font: inherit; cursor: pointer; border-radius: 8px; padding: 9px 16px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
@media (hover: hover) { button:hover { border-color: var(--muted); } }
button.primary {
  color: var(--red-ink); font-weight: 700; border: 0; text-shadow: 0 1px 0 rgba(0,0,0,.3);
  background: repeating-linear-gradient(-45deg, #d8433b 0 12px, #e85a51 12px 24px); /* candy cane */
  box-shadow: 0 3px 0 #8f231d;
}
@media (hover: hover) { button.primary:hover { filter: brightness(1.08); } }
button.primary.danger-fill { background: repeating-linear-gradient(-45deg, #9e2a24 0 12px, #b3332c 12px 24px); box-shadow: 0 3px 0 #5e1612; }
button.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f231d; }
button.danger { color: var(--bad); }
button.small { padding: 4px 10px; font-size: 13px; }
button:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(.4); }
.full { width: 100%; margin-top: 18px; }
.error { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }

/* weapon picker */
.class-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.class-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.class-head h2::before { content: "❄"; color: var(--frost); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.chip {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px;
  padding: 14px 10px 10px; border-radius: 10px; min-height: 96px;
  border: 1px solid var(--line); background: rgba(9, 20, 34, .75); cursor: pointer; user-select: none;
  margin: 0; color: var(--text); font-size: 14px; font-weight: 500; text-align: center;
  transition: border-color .15s, background .15s, transform .15s;
  touch-action: manipulation; -webkit-user-select: none;
}
@media (hover: hover) { .chip:hover { border-color: #3d5a7a; transform: translateY(-1px); } }
.chip:active { transform: scale(.97); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.wicon { height: 48px; width: auto; max-width: 100%; color: #7f93a8; transition: color .15s, filter .15s; flex: none; }
.chip .tick {
  position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; background: var(--green); color: #fff;
  transform: scale(0); transition: transform .15s;
}
.chip:has(input:checked) {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(240,199,94,.16), rgba(216,67,59,.12));
}
.chip:has(input:checked) .wicon { color: var(--gold); filter: drop-shadow(0 0 6px rgba(240,199,94,.45)); }
.chip:has(input:checked) .tick { transform: scale(1); }

.submitbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: linear-gradient(180deg, rgba(23,40,64,.96), rgba(11,22,36,.98));
  border-top: 2px solid var(--gold);
  padding: 12px calc(16px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
}
.submitbar .inner { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px 3px 8px; font-size: 13px;
}
.tag .wicon { height: 16px; color: var(--gold); }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.badge.good { background: rgba(79,209,148,.15); color: var(--good); }
.badge.wait { background: rgba(147,166,186,.15); color: var(--muted); }
.badge.admin { background: rgba(240,199,94,.15); color: var(--gold); }

.giftee {
  border: 2px solid var(--gold);
  background:
    linear-gradient(90deg, transparent calc(50% - 10px), rgba(216,67,59,.55) calc(50% - 10px), rgba(216,67,59,.55) calc(50% + 10px), transparent calc(50% + 10px)),
    var(--panel);
}
.giftee .inner { background: var(--panel-2); border-radius: 10px; padding: 18px; position: relative; }
.giftee .name { font-family: var(--title-font); font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--gold); }

/* admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 3px 0 rgba(255,255,255,.85); }
.stat .n { font-size: 28px; font-weight: 700; color: var(--gold); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table-wrap { overflow-x: auto; }

/* snowbank at the bottom of the page */
.snowbank {
  height: 46px; margin-top: -46px; position: relative; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60px 26px at 10% 100%, #e9f3ff 98%, transparent) ,
    radial-gradient(90px 30px at 30% 100%, #dbeaff 98%, transparent),
    radial-gradient(70px 24px at 52% 100%, #e9f3ff 98%, transparent),
    radial-gradient(100px 32px at 75% 100%, #dbeaff 98%, transparent),
    radial-gradient(60px 22px at 94% 100%, #e9f3ff 98%, transparent);
  opacity: .9;
}

.toast {
  position: fixed; bottom: calc(96px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 30;
  background: var(--green); color: #fff; font-weight: 600; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.35); max-width: calc(100vw - 32px); text-align: center;
}
.toast.error-toast { background: #a8302a; }

/* themed confirm dialog */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center;
  padding: 20px calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left));
  background: rgba(3, 8, 15, .65); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .18s;
}
.modal-backdrop.open { opacity: 1; }
.modal {
  width: 100%; max-width: 380px; text-align: center; position: relative;
  background: linear-gradient(180deg, #18304b, #10203a); border: 2px solid var(--gold); border-radius: 16px;
  padding: 26px 22px 20px; box-shadow: inset 0 4px 0 rgba(255,255,255,.9), 0 20px 50px rgba(0,0,0,.5);
  transform: translateY(12px) scale(.96); transition: transform .18s;
}
.modal-backdrop.open .modal { transform: none; }
.modal::before, .modal::after { /* ribbon */
  content: ""; position: absolute; background: rgba(216,67,59,.55); pointer-events: none;
}
.modal::before { left: calc(50% - 8px); width: 16px; top: -2px; height: 14px; }
.modal::after { left: calc(50% - 8px); width: 16px; bottom: -2px; height: 10px; }
.modal-icon { font-size: 40px; line-height: 1; margin-bottom: 8px; }
.modal h2 { font-family: var(--title-font); font-size: 28px; line-height: 1.15; margin: 0 0 8px; color: #fff; }
.modal p { margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions button { flex: 1; padding: 12px 14px; min-height: 46px; }

/* "make your picks" countdown strip */
.countdown {
  position: sticky; z-index: 4; top: var(--topbar-h, 64px);
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
  margin: 0 auto; padding: 8px calc(16px + env(safe-area-inset-right)) 8px calc(16px + env(safe-area-inset-left));
  background: linear-gradient(90deg, rgba(47,154,98,.0), rgba(47,154,98,.28) 20%, rgba(47,154,98,.28) 80%, rgba(47,154,98,0)), rgba(8,17,29,.92);
  border-bottom: 1px solid rgba(79,209,148,.3);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 14px; text-align: center;
}
.countdown[hidden] { display: none; }
.cd-label b { color: #fff; }
.cd-clock { display: inline-flex; gap: 6px; font-variant-numeric: tabular-nums; }
.cd-clock span {
  background: rgba(5,12,22,.75); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px;
  color: var(--muted); font-size: 12px;
}
.cd-clock b { color: var(--gold); font-size: 16px; margin-right: 1px; }
.countdown.urgent { background: linear-gradient(90deg, rgba(216,67,59,0), rgba(216,67,59,.35) 20%, rgba(216,67,59,.35) 80%, rgba(216,67,59,0)), rgba(8,17,29,.92); border-bottom-color: rgba(255,107,97,.45); }
.countdown.urgent .cd-clock b { color: #ff8a80; }
.countdown.passed { background: rgba(23,40,64,.95); border-bottom-color: var(--line); color: var(--muted); }
.cd-when { color: var(--muted); }

/* budget vote chips */
.budget-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bchip { min-height: 84px; justify-content: center; }
.bchip .b-emoji { font-size: 26px; line-height: 1; filter: grayscale(.6) brightness(.8); transition: filter .15s; }
.bchip:has(input:checked) .b-emoji { filter: none; }
.bchip .b-amt { font-size: 17px; font-weight: 700; }
.budget-tag { padding-left: 10px; }

/* poll */
.poll-row { display: grid; grid-template-columns: 150px 1fr 28px; align-items: center; gap: 10px; padding: 6px 0; }
.poll-label { font-weight: 600; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.poll-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.poll-bar span { display: block; height: 100%; border-radius: inherit; background: #4d6683; transition: width .4s; }
.poll-row.lead .poll-bar span { background: linear-gradient(90deg, var(--gold), #f6dc93); }
.poll-n { text-align: right; font-weight: 700; color: var(--muted); }
.poll-row.lead .poll-n { color: var(--gold); }
.poll-foot { font-size: 13px; margin: 8px 0 0; }

/* budget / deadline banner */
.banner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 14px 0 18px;
}
.b-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(47,154,98,.22), rgba(17,30,46,.9));
  border: 1px solid rgba(79,209,148,.35);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.85);
}
.b-item:first-child { background: linear-gradient(135deg, rgba(240,199,94,.2), rgba(17,30,46,.9)); border-color: rgba(240,199,94,.45); }
.b-ico { font-size: 30px; line-height: 1; }
.b-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.b-val { font-size: 22px; font-weight: 800; line-height: 1.2; }
.b-sub { font-size: 13px; color: var(--good); font-weight: 600; }

/* draw dialog extras */
.draw-summary { text-align: left; background: rgba(5,12,22,.5); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.draw-summary label { margin-top: 12px; }
input[type=date] {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(5, 12, 22, .7); color: var(--text); font: inherit; font-size: 16px; min-height: 44px;
  color-scheme: dark; -webkit-appearance: none; appearance: none;
}

/* case-opening reveal */
.reveal-card { text-align: center; padding: 28px 16px; overflow: hidden; }
.closed-gift { font-size: 84px; line-height: 1; margin: 6px 0 18px; animation: wobble 2.2s ease-in-out infinite; }
@keyframes wobble { 0%, 70%, 100% { transform: rotate(0); } 76% { transform: rotate(-9deg); } 82% { transform: rotate(8deg); } 88% { transform: rotate(-5deg); } 94% { transform: rotate(3deg); } }
.open-btn { font-size: 18px; padding: 14px 28px; min-height: 52px; }
.reel-wrap {
  position: relative; overflow: hidden; border-radius: 10px; margin: 0 -4px;
  background: rgba(3, 8, 15, .7); border: 1px solid var(--line); padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.reel-marker {
  position: absolute; z-index: 2; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px;
  background: rgba(240,199,94,.45); box-shadow: 0 0 10px rgba(240,199,94,.5); width: 2px; margin-left: -1px;
}
.reel-marker::before, .reel-marker::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  border: 8px solid transparent;
}
.reel-marker::before { top: 0; border-top-color: var(--gold); }
.reel-marker::after { bottom: 0; border-bottom-color: var(--gold); }
.reel { display: flex; gap: 8px; width: max-content; will-change: transform; }
.reel-card {
  width: 118px; flex: none; border-radius: 8px; padding: 12px 6px 0; overflow: hidden;
  background: linear-gradient(180deg, #1d2f47, #13233a); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center;
}
.reel-card::after { content: ""; display: block; height: 5px; width: calc(100% + 12px); margin-top: 10px; background: var(--rc); }
.rc-gift { font-size: 34px; line-height: 1.1; }
.rc-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-top: 6px; }
.r-blue { --rc: #4b69ff; } .r-purple { --rc: #8847ff; } .r-pink { --rc: #d32ce6; } .r-red { --rc: #eb4b4b; } .r-gold { --rc: #e4ae39; }
.reel-card.r-gold { background: linear-gradient(180deg, #3a3018, #1c2233); }
.reel-card.landed { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 24px rgba(240,199,94,.6); animation: landed .6s ease-out; }
@keyframes landed { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pop-in { animation: popIn .5s cubic-bezier(.2,1.4,.4,1); margin-top: 18px; }
@keyframes popIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .topbar { padding-left: calc(14px + env(safe-area-inset-left)); padding-right: calc(14px + env(safe-area-inset-right)); padding-bottom: 10px; }
  .brand { font-size: 21px; line-height: 1.1; }
  #nav .who { display: none; }
  #nav { gap: 6px; flex-wrap: nowrap; }
  #nav button { padding: 7px 10px; font-size: 13px; min-height: 36px; white-space: nowrap; }
  main { padding-top: 18px; padding-left: calc(12px + env(safe-area-inset-left)); padding-right: calc(12px + env(safe-area-inset-right)); }
  h1 { font-size: 31px; }
  .card { padding: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(17, 30, 46, .95); }
  .auth { margin: 12px auto; }
  .auth .hero { font-size: 38px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .chip { min-height: 92px; padding: 12px 6px 9px; font-size: 13.5px; }
  .wicon { height: 42px; }
  .class-head button.small { min-height: 34px; }
  .submitbar .inner { gap: 10px; }
  .submitbar .primary { flex: 1; max-width: 220px; min-height: 46px; }
  .giftee .name { font-size: 34px; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 12px; }
  .stat .n { font-size: 22px; }
  .stat .muted { font-size: 12px; }
  button.small { min-height: 34px; }
  .grid.budget-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bchip { min-height: 78px; padding: 10px 4px 8px; }
  .bchip .b-amt { font-size: 15px; }
  .poll-row { grid-template-columns: 112px 1fr 22px; gap: 8px; }
  .poll-label .badge { display: none; }
  .banner { grid-template-columns: 1fr; }
  .b-item { padding: 12px 14px; gap: 12px; }
  .b-ico { font-size: 24px; }
  .b-val { font-size: 18px; }
  .reel-card { width: 104px; }
  .countdown { font-size: 12.5px; padding-top: 7px; padding-bottom: 7px; gap: 4px 10px; }
  .cd-clock b { font-size: 15px; }

  /* admin submissions table -> stacked cards */
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody, .table.stack tr, .table.stack td { display: block; width: 100%; }
  .table.stack tr { position: relative; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table.stack td { border: 0; padding: 4px 0; }
  .table.stack .status-cell { position: absolute; top: 14px; right: 0; width: auto; }
  .table.stack .actions-cell { padding-top: 8px; }
  .table.stack .actions-cell:has(.row-actions:empty) { display: none; }
}
@media (max-width: 370px) {
  .brand { font-size: 18px; }
  .oalgo { display: none; }
}
