:root {
  --bg: #05080e;
  --bg-2: #0a1018;
  --panel: #0d1520;
  --panel-2: #111b28;
  --line: rgba(56, 189, 248, 0.18);
  --line-strong: rgba(56, 189, 248, 0.4);
  --text: #e8eef6;
  --muted: #8b9bb0;
  --cyan: #38bdf8;
  --cyan-2: #7dd3fc;
  --red: #ef4444;
  --red-2: #f87171;
  --green: #22c55e;
  --amber: #f59e0b;
  --silver: #cfd7e3;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Rajdhani", Inter, sans-serif;
}

html.osb-access-blocked { background: #03060c; }
html.osb-access-blocked body { overflow: hidden; background: #03060c; }
html.osb-access-blocked .app-bg,
html.osb-access-blocked #app { display: none !important; }
html.osb-access-granted #access-splash,
#access-splash[hidden] { display: none !important; }
html.osb-access-blocked:not(.osb-access-ready) #btn-enter { display: none !important; }

.access-splash {
  position: fixed; inset: 0; z-index: 2000;
  min-height: 100vh; display: grid; place-items: center; padding: 28px 18px;
  background: #03060c; color: #e8f4ff;
}
.access-card {
  width: min(640px, 100%); text-align: center; padding: 36px 28px;
  background: #070b14; border: 1px solid var(--line-strong); border-radius: 16px;
  box-shadow: 0 0 80px rgba(56, 189, 248, 0.08);
}
.access-logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 50%;
}
.access-card h1 {
  margin: 0 0 12px;
  font-family: var(--cond);
  font-size: 1.45rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.access-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.45; }
.access-card .btn { width: 100%; }
html.osb-access-ready .access-logo { margin-bottom: 22px; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  min-height: 100dvh;
}
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
a { color: var(--cyan); }

.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0);
}

.app-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(56,189,248,0.14), transparent 55%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(37,99,235,0.12), transparent 50%),
    linear-gradient(180deg, #05080e, #070c14 40%, #05080e);
}
.app-bg::after {
  content: "";
  position: absolute; inset: 0; opacity: 0.07;
  background-image: linear-gradient(rgba(56,189,248,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,189,248,0.35) 1px, transparent 1px);
  background-size: 42px 42px;
}

#app { position: relative; z-index: 1; min-height: 100%; }

.local-banner {
  width: 100%;
  background: #12324d;
  color: #dbeafe;
  text-align: center;
  font-size: 0.8rem;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-strong);
  letter-spacing: 0.02em;
}
.home .local-banner {
  position: absolute;
  top: 0;
  left: 0;
}

.screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home {
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  text-align: center;
}
.home-logo {
  width: min(420px, 86vw);
  height: auto;
  margin: 0 auto 8px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
  border-radius: 50%;
}
.home-kicker {
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  margin: 4px 0 8px;
}
.home-tag {
  font-family: var(--cond);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan-2);
  font-size: 0.95rem;
  margin: 0 0 22px;
}
.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 240px));
  gap: 14px;
  justify-content: center;
}
.home-cards.access-only { grid-template-columns: repeat(2, minmax(0, 240px)); }
.kit-note {
  width: min(640px, 100%);
  margin: 0 auto 22px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(56,189,248,0.35);
  background: rgba(8,14,22,0.72);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.45;
}
.kit-note a { color: var(--cyan-2); font-weight: 700; }
.launch-card {
  background: linear-gradient(180deg, #121c2b, #0c141f);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 16px 18px;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.launch-card:hover, .launch-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px rgba(56,189,248,0.12);
  outline: none;
}
.launch-card .ic {
  width: 48px; height: 48px; margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(56,189,248,0.08);
  color: var(--cyan);
  font-size: 1.4rem;
}
.launch-card.admin .ic { color: var(--red-2); background: rgba(239,68,68,0.1); }
.launch-card.user .ic { color: var(--green); background: rgba(34,197,94,0.1); }
.launch-card h2 {
  font-family: var(--cond);
  font-size: 1.45rem;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
  text-transform: uppercase;
}
.launch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.home-foot {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}
.home-pills {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 18px 0 0;
  color: var(--silver);
  font-family: var(--cond);
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.home-pills span { opacity: 0.75; }

.gate {
  align-items: center;
  justify-content: center;
  padding: 28px 16px 40px;
}
.panel {
  width: min(760px, 100%);
  background: linear-gradient(180deg, #121c2b, #0c141f);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,14,22,0.55);
}
.panel-head img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}
.panel-head h1 {
  font-family: var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 4px;
  font-size: 1.45rem;
}
.panel-head p { margin: 0; color: var(--muted); font-size: 0.88rem; }
.panel-body { padding: 18px; }
.gate-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.back-link {
  background: none;
  border: 0;
  color: var(--cyan-2);
  padding: 0;
  font-weight: 600;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
}
input, select, textarea {
  width: 100%;
  background: #070c12;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.15);
}
.hint { color: var(--muted); font-size: 0.78rem; margin: 4px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: inherit;
}
.btn-primary { background: linear-gradient(135deg, #38bdf8, #2563eb); color: #061018; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-green { background: linear-gradient(135deg, #22c55e, #15803d); color: #04120a; }
.btn-amber { background: linear-gradient(135deg, #f59e0b, #b45309); color: #1a0d00; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fecaca;
  font-size: 0.88rem;
  margin: 10px 0;
}
.ok {
  background: rgba(34,197,94,0.1);
  border-color: rgba(34,197,94,0.35);
  color: #bbf7d0;
}
.warn {
  background: rgba(245,158,11,0.12);
  border-color: rgba(245,158,11,0.4);
  color: #fde68a;
}

.pin-wrap { max-width: 420px; margin: 0 auto; }
.pin-display {
  letter-spacing: 0.4em;
  font-size: 1.6rem;
  text-align: center;
  padding: 12px;
  margin-bottom: 12px;
  background: #070c12;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: ui-monospace, Consolas, monospace;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pin-pad button {
  height: 56px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #101826;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
}
.pin-pad button:hover { border-color: var(--cyan); }
.created-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
.code-box {
  background: #070c12;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.code-box strong {
  display: block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--cyan-2);
  margin-top: 4px;
  word-break: break-all;
}
#share-qr { background: #fff; padding: 10px; border-radius: 10px; width: fit-content; margin: 0 auto; }

.workspace {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: #080e16;
  border-bottom: 1px solid var(--line);
  min-height: 64px;
  z-index: 20;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.topbar-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.op-title {
  font-family: var(--cond);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0;
}
.op-sub { color: var(--muted); font-size: 0.75rem; margin: 0; }
.live-pill, .role-pill, .timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.live-pill { color: #86efac; border-color: rgba(34,197,94,0.4); }
.live-pill i {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 8px #22c55e; display: inline-block;
}
.live-pill.frozen { color: #fde68a; border-color: rgba(245,158,11,0.5); }
.live-pill.frozen i { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.role-pill.admin { color: #fecaca; border-color: rgba(239,68,68,0.45); }
.timer-pill {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
  color: var(--cyan-2);
  border-color: var(--line-strong);
  font-size: 0.85rem;
}
.timer-pill.warn { color: #fde68a; border-color: rgba(245,158,11,0.55); }
.timer-pill.expired { color: #fecaca; border-color: rgba(239,68,68,0.55); }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
}
#map {
  flex: 1;
  min-height: 0;
  background: #0b1220;
}
.map-search {
  position: absolute;
  z-index: 500;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
}
.geo-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.map-search input {
  background: rgba(8,14,22,0.92) !important;
  backdrop-filter: blur(8px);
  flex: 1;
  min-width: 0;
  font-size: 0.8rem !important;
  min-height: 36px;
  padding: 6px 10px !important;
}
#btn-myloc {
  width: 100%;
  min-height: 40px;
  letter-spacing: 0.06em;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}
.btn-cyan {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  color: #061018;
}
.geo-hint { margin: 0 2px; text-shadow: 0 1px 2px #05080e; }
.geo-hits {
  position: absolute;
  top: 92px;
  left: 0;
  right: 0;
  background: #0d1520;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  z-index: 600;
}
.geo-hits button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 8px 10px;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}
.geo-hits button:hover { background: rgba(56,189,248,0.08); }

.side {
  display: none;
  width: min(380px, 94vw);
  background: #0b1220;
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 12px;
  flex-direction: column;
  gap: 12px;
  -webkit-overflow-scrolling: touch;
}
.side.open {
  display: flex;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 9000;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.55);
  max-height: 100%;
}
body.osb-side-open .leaflet-container {
  pointer-events: none;
}
.side-backdrop {
  display: none;
}
.side-backdrop.open {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 8500;
  background: rgba(2, 6, 12, 0.55);
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.side-head h2 {
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-size: 1.05rem;
}
.side h3 {
  font-family: var(--cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
  font-size: 1rem;
}
.side-card {
  background: #101826;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.kv { font-size: 0.82rem; color: var(--muted); margin: 0 0 6px; }
.kv strong { color: var(--text); font-weight: 600; display: block; }
.pin-row, .roster-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}
.pin-row:last-child, .roster-row:last-child { border-bottom: 0; }
.pin-row code {
  color: var(--cyan-2);
  font-size: 0.9rem;
}
.tiny {
  font-size: 0.72rem;
  color: var(--muted);
}
.btn-sm {
  padding: 6px 10px;
  font-size: 0.7rem;
  border-radius: 8px;
}

.field-bar {
  position: relative;
  z-index: 40;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #080e16;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}
.field-bar .btn {
  min-width: 168px;
  min-height: 44px;
}
.field-bar:not(:has(button)) { display: none; }
.launch-card.resume {
  border-color: rgba(56, 189, 248, 0.55);
}
.launch-card.resume h2 { color: #7dd3fc; }
#btn-alert.is-on {
  animation: alert-btn-pulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.45);
}
@keyframes alert-btn-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

.banner {
  position: absolute;
  z-index: 700;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  pointer-events: none;
  box-shadow: var(--shadow);
}
.banner.warn {
  background: #b45309;
  color: #fff7ed;
  border: 1px solid #fbbf24;
}
.banner.hub-access {
  padding: 5px 10px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  font-weight: 800;
  max-width: min(92vw, 220px);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.banner.expired {
  background: #7f1d1d;
  color: #fecaca;
  border: 1px solid #ef4444;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  background: rgba(2,6,12,0.78);
  padding: 16px;
  overflow: auto;
  pointer-events: auto;
}
.modal {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #101826;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  pointer-events: auto;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.modal-close {
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #0b1220;
  color: var(--text);
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
}
.modal h2 {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}
.modal p { color: var(--muted); font-size: 0.88rem; }
.home-tools {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.roster-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-wide {
  width: min(640px, 100%);
  max-height: min(92vh, 820px);
}
.help-body {
  max-height: min(70vh, 620px);
  overflow: auto;
  padding-right: 4px;
}
.help-body h3 {
  font-family: var(--cond);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin: 14px 0 4px;
  color: var(--cyan-2);
}
.help-body h3:first-child { margin-top: 0; }
.help-body p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.toast {
  position: fixed;
  z-index: 90;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #101826;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}

.osb-beacon-icon {
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}
.osb-beacon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1d4ed8;
  border: 2px solid #fff;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px rgba(8,14,22,0.7), 0 8px 18px rgba(0,0,0,0.45);
  position: relative;
}
.osb-beacon.is-me { background: #0f766e; }
.osb-beacon.is-alert {
  background: #dc2626;
  animation: beacon-flash 0.7s ease-in-out infinite;
  box-shadow: 0 0 0 3px #fff, 0 0 18px 6px rgba(220,38,38,0.7);
}
.osb-beacon.is-alert::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 3px solid #ef4444;
  border-radius: 50%;
  animation: beacon-ring 0.9s ease-out infinite;
}
@keyframes beacon-flash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.45); }
}
@keyframes beacon-ring {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}
.leaflet-popup.osb-tip .leaflet-popup-content-wrapper,
.leaflet-tooltip.osb-tip {
  background: #0d1520;
  color: #e8eef6;
  border: 1px solid rgba(56,189,248,0.35);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
}
.leaflet-tooltip.osb-tip-admin,
.leaflet-popup.osb-tip-admin { pointer-events: auto !important; }
.osb-tip strong { display: block; margin-bottom: 2px; }
.osb-tip .meta { color: #8b9bb0; font-size: 0.78rem; line-height: 1.35; }
.osb-tip .osb-alert-flag {
  color: #fecaca;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.osb-tip button {
  margin-top: 8px;
  width: 100%;
  border: 1px solid rgba(248,113,113,0.45);
  background: rgba(127,29,29,0.35);
  color: #fecaca;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.osb-tip button[data-osb-edit] {
  border-color: rgba(56,189,248,0.45);
  background: rgba(8,47,73,0.55);
  color: #bae6fd;
}
.osb-tip button + button { margin-top: 6px; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.check-row input { width: auto; }
.side-card form.actions {
  flex-direction: column;
}
.side-card form.actions input { min-width: 0; }

@media (max-width: 860px) {
  .home-cards, .home-cards.access-only { grid-template-columns: minmax(0, 280px); }
  .form-grid, .created-grid { grid-template-columns: 1fr; }
  .topbar { grid-template-columns: auto 1fr; }
  .topbar-actions { grid-column: 1 / -1; }
  .banner {
    top: 6px;
    padding: 4px 8px;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }
  .banner.hub-access {
    padding: 3px 8px;
    font-size: 0.58rem;
    max-width: min(46vw, 132px);
    border-radius: 999px;
  }
}
