/* Hyperspace Map page. Same Holo Red look as SW5E Tables and the SW5E Shop: the map fills the page and a rail on the right
   holds the route and the rolls. Under 900px the rail becomes a bottom sheet. */

:root {
  --bg: #0a0808;
  --bg-panel: #150f10;
  --bg-panel-2: #1e1517;
  --border: #3d2226;
  --text: #f0e4e5;
  --text-dim: #a3898c;
  --text-mid: #d3c0c2;
  --accent: #c40f0f;
  --accent-dim: #7a0c0c;
  --accent2: #ff3b4e;
  --good: #3ddc84;
  --warn: #e0b34f;
  --route: #ffd54a;
  --hop: #ff7a45;
  --lane: #6fe3ff;
  --radius: 8px;
  --font-display: "Russo One", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --hdr: 68px;
  --rail: clamp(400px, 30vw, 480px);
  --gutter: 16px;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; color-scheme: dark; scrollbar-color: var(--border) var(--bg); }
body { margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header ---------- */

.hs-header {
  position: sticky; top: 0; z-index: 1000;
  height: var(--hdr);
  display: flex; align-items: center; gap: 26px;
  padding: 0 28px;
  background: linear-gradient(180deg, var(--bg-panel) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.hs-brand { flex: none; display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.hs-brand-name { white-space: nowrap; font: 1.35rem/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.hs-page-name { margin: 0; padding-left: 26px; border-left: 1px solid var(--border); font-size: 1.25rem; font-weight: 700; white-space: nowrap; }
.hs-credit { margin: 0; font-size: 0.95rem; color: var(--text-dim); }
.hs-credit b { color: var(--text); font-weight: 500; }
.hs-topnav { margin-left: auto; display: flex; gap: 6px; }
.hs-topnav a { padding: 8px 14px; border-radius: 6px; color: var(--text-dim); font-weight: 500; text-decoration: none; }
.hs-topnav a:hover { color: var(--text); background: var(--bg-panel-2); }

/* ---------- layout ---------- */

.hs-app {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  grid-template-rows: minmax(0, 1fr);
  flex: 1 1 0;
  min-height: 540px;
}
.hs-mapwrap { position: relative; min-width: 0; min-height: 0; background: #05070d; }
#hs-map { position: absolute; inset: 0; background: #05070d; outline: none; }

/* ---------- map furniture ---------- */

.hs-search { position: absolute; z-index: 500; top: 12px; left: 12px; width: min(420px, calc(100% - 24px - 150px)); }
.hs-search label {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px; height: 42px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(21, 15, 16, 0.94); color: var(--text-dim);
  backdrop-filter: blur(4px);
}
.hs-search svg { flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hs-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font-size: 0.95rem; outline: none; }
.hs-search input::placeholder { color: var(--text-dim); }
.hs-search kbd { padding: 1px 7px; border: 1px solid var(--border); border-radius: 4px; font: 0.8rem/1.4 inherit; color: var(--text-dim); }
.hs-search:focus-within label { border-color: var(--accent2); }

.hs-suggest {
  list-style: none; margin: 4px 0 0; padding: 4px;
  max-height: min(52vh, 360px); overflow-y: auto;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(21, 15, 16, 0.98);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
}
.hs-suggest li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  min-height: 40px; padding: 8px 10px; border-radius: 6px; cursor: pointer;
}
.hs-suggest li[aria-selected="true"], .hs-suggest li:hover { background: var(--accent-dim); }
.hs-suggest .hs-sg-name { font-weight: 500; }
.hs-suggest .hs-sg-meta { color: var(--text-dim); font-size: 0.82rem; white-space: nowrap; }
.hs-suggest li[aria-selected="true"] .hs-sg-meta, .hs-suggest li:hover .hs-sg-meta { color: var(--text-mid); }
.hs-suggest-floating { position: absolute; z-index: 600; left: 0; right: 0; }

.hs-maptools { position: absolute; z-index: 500; top: 12px; right: 12px; display: flex; gap: 6px; }
.hs-tool {
  min-width: 42px; height: 42px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(21, 15, 16, 0.94); color: var(--text); font-weight: 500; cursor: pointer;
}
.hs-tool:hover { border-color: var(--accent2); }
.hs-tool[aria-pressed="true"] { background: var(--accent); border-color: var(--accent2); color: #fff; }
.hs-zoom { font-size: 1.3rem; line-height: 1; padding: 0; }

.hs-banner {
  position: absolute; z-index: 500; left: 50%; bottom: 18px; transform: translateX(-50%);
  max-width: calc(100% - 32px); margin: 0; padding: 10px 16px;
  border: 1px solid var(--accent2); border-radius: 999px;
  background: rgba(21, 15, 16, 0.96); color: var(--text); font-weight: 500; text-align: center;
}
.hs-picking #hs-map { cursor: crosshair; }

/* The route badge, bottom left of the map: distance first, then the time once a class is chosen. It ignores clicks so pins can still be dropped under it. */
.hs-time {
  position: absolute; z-index: 500; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 1px; max-width: min(300px, calc(100% - 24px));
  padding: 8px 14px 9px; border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(21, 15, 16, 0.94); pointer-events: none;
  opacity: 0; transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.hs-time.is-on { opacity: 1; transform: none; }
.hs-time-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
.hs-time-value { font: 1.25rem/1.15 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.hs-time-sub { font-size: 0.8rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.hs-time.is-bump { animation: hs-bump 0.22s ease-out; }
/* Until a class is chosen the badge shares the class field's pulsing red glow and says what to do. */
.hs-time-note { margin-top: 4px; font-size: 0.8rem; color: var(--accent2); }
.hs-time.needs-class { border-color: var(--accent2); animation: hs-nudge 1.5s ease-in-out infinite; }
.hs-picking .hs-time { opacity: 0; }

/* Leaflet parts in this page's colours. */
.leaflet-container { font-family: inherit; background: #05070d; }
.leaflet-tooltip.hs-tip {
  padding: 4px 9px; border: 1px solid var(--border); border-radius: 6px;
  background: rgba(21, 15, 16, 0.96); color: var(--text); box-shadow: none; font-weight: 500;
}
.leaflet-tooltip.hs-tip::before { display: none; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg-panel); color: var(--text); border: 1px solid var(--border); }
.leaflet-popup-content-wrapper { border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6); }
.leaflet-popup-content { margin: 14px 16px; min-width: 220px; max-width: 300px; line-height: 1.4; }
.leaflet-container a.leaflet-popup-close-button { color: var(--text-dim); }
.hs-pop h3 { margin: 0 24px 4px 0; font: 1.15rem/1.25 var(--font-display); }
.hs-pop p { margin: 4px 0; font-size: 0.9rem; color: var(--text-mid); }
.hs-pop .hs-dim { color: var(--text-dim); }
.hs-pop a { color: var(--accent2); }
.hs-pop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hs-tag {
  display: inline-block; padding: 1px 8px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-panel-2); color: var(--text-dim); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase;
}

.hs-pin { display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; color: #0a0808; font: 0.95rem/1 var(--font-display); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 16px currentColor; }
.hs-pin-a { background: var(--good); }
.hs-pin-end { background: var(--accent2); color: #fff; }
.hs-pin-mid { background: var(--lane); }
.hs-drop { width: 22px; height: 22px; border: 2px solid #fff; border-radius: 4px; transform: rotate(45deg); background: var(--accent2); box-shadow: 0 0 14px var(--accent2); }

/* ---------- rail ---------- */

.hs-rail { min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--bg-panel); }
.hs-handle { display: none; }
.hs-rail-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.hs-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 44px; gap: 2px; padding: 12px 14px 0; border-bottom: 1px solid var(--border); }
.hs-tab {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 4px; text-align: center;
  border: 1px solid transparent; border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0;
  background: none; color: var(--text-dim); font: 700 clamp(0.7rem, 0.62rem + 0.25vw, 0.82rem)/1.15 "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: 0.02em; cursor: pointer;
}
.hs-tab-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-tab:hover { color: var(--text); }
.hs-tab[aria-selected="true"] { background: var(--bg-panel-2); border-color: var(--border); color: var(--text); }
.hs-panel { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 28px; }

.hs-panel > .hs-h:first-child { margin-top: 0; }
.hs-h { margin: 22px 0 10px; font: 0.95rem/1.2 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-dim); }
.hs-h:first-child { margin-top: 0; }
.hs-note { margin: 8px 0; font-size: 0.85rem; color: var(--text-dim); }
.hs-note b { color: var(--text-mid); font-weight: 500; }

.hs-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-field > span { font-size: 0.78rem; color: var(--text-dim); letter-spacing: 0.03em; text-transform: uppercase; }
.hs-input, .hs-select {
  width: 100%; min-height: 42px; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-panel-2); color: var(--text); font-size: 0.95rem;
}
.hs-input::placeholder { color: var(--text-dim); }
.hs-input:focus, .hs-select:focus { border-color: var(--accent2); outline: none; }
/* An empty hyperdrive class on a plotted route: a pulsing glow that asks to be chosen. */
.hs-field.needs-pick > span { color: var(--accent2); }
.hs-field.needs-pick .hs-select { border-color: var(--accent2); animation: hs-nudge 1.5s ease-in-out infinite; }
.hs-pick-hint { color: var(--accent2); font-size: 0.8rem; }
@keyframes hs-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 78, 0), 0 0 6px rgba(255, 59, 78, 0.25); }
  50% { box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.28), 0 0 18px rgba(255, 59, 78, 0.6); }
}
@keyframes hs-bump { 0% { transform: scale(1.06); border-color: var(--accent2); } 100% { transform: scale(1); } }
.hs-row { display: flex; gap: 10px; align-items: flex-end; }
.hs-row > .hs-field { flex: 1; }

.hs-btn {
  min-height: 42px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-panel-2); color: var(--text); font-weight: 500; cursor: pointer;
}
.hs-btn:hover { border-color: var(--accent2); }
.hs-btn-primary { background: var(--accent); border-color: var(--accent2); color: #fff; font-weight: 700; }
.hs-btn-primary:hover { background: #d81414; }
.hs-btn-small { min-height: 34px; padding: 0 10px; font-size: 0.85rem; }
.hs-btn[disabled] { opacity: 0.45; cursor: default; }
.hs-btn[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent2); }
.hs-icon { min-width: 38px; padding: 0; }

/* stops */
.hs-stop { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; position: relative; }
.hs-badge { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #0a0808; font: 1rem/1 var(--font-display); }
.hs-badge-a { background: var(--good); }
.hs-badge-end { background: var(--accent2); color: #fff; }
.hs-badge-mid { background: var(--lane); }
.hs-stop-ctl { display: flex; gap: 4px; }
.hs-stop .hs-suggest { position: absolute; z-index: 20; left: 42px; right: 0; top: 100%; margin-top: 2px; }
.hs-stop-sub { grid-column: 2 / 4; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -2px 0 0; font-size: 0.8rem; color: var(--text-dim); }
.hs-move { display: flex; gap: 4px; flex: none; }
.hs-move .hs-btn { min-height: 28px; min-width: 32px; }
.hs-stops-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* legs and jumps */
.hs-leg { margin: 16px 0 0; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2); }
.hs-leg-title { margin: 0 0 10px; font-weight: 700; font-size: 1.02rem; }
.hs-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.hs-mode {
  display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-align: left;
  border: 1px solid var(--border); border-radius: 6px; background: var(--bg-panel); cursor: pointer;
}
.hs-mode:hover { border-color: var(--accent2); }
.hs-mode[aria-pressed="true"] { border-color: var(--accent2); background: var(--accent-dim); }
.hs-mode-wide { grid-column: 1 / -1; }
.hs-mode[disabled] { opacity: 0.5; cursor: default; }
.hs-mode b { font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; }
.hs-mode span { font-size: 0.85rem; color: var(--text-mid); font-variant-numeric: tabular-nums; }
.hs-mix { margin: 6px 0 4px; }
.hs-jump { padding: 10px 0; border-top: 1px solid var(--border); }
.hs-jump:first-of-type { border-top: 0; }
.hs-jump-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hs-jump-head b { font-weight: 700; }
.hs-jump-time { font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.hs-jump p { margin: 3px 0 0; font-size: 0.85rem; color: var(--text-dim); }
.hs-jump .hs-row { margin-top: 8px; }
.hs-check { margin-top: 8px; padding: 10px; border: 1px dashed var(--accent-dim); border-radius: 6px; }
.hs-check .hs-row { margin-top: 0; }
.hs-bad { color: var(--accent2); font-weight: 700; }
.hs-good { color: var(--good); font-weight: 500; }
.hs-warn { color: var(--warn); }

.hs-totals { margin-top: 16px; padding: 14px; border: 1px solid var(--accent-dim); border-radius: var(--radius); background: var(--bg-panel-2); }
.hs-totals dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.hs-totals dt { color: var(--text-dim); }
.hs-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.hs-totals .hs-big { font: 1.4rem/1.2 var(--font-display); }
.hs-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hs-empty { padding: 18px 4px; color: var(--text-dim); }

/* rolls */
.hs-card { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-panel-2); }
.hs-card h3 { margin: 0 0 6px; font-size: 0.95rem; }
.hs-dice { display: flex; gap: 6px; margin: 4px 0; }
.hs-die { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-panel); font: 1.05rem/1 var(--font-display); }
.hs-die.is-used { border-color: var(--accent2); color: #fff; background: var(--accent-dim); }
.hs-die.is-dropped { opacity: 0.4; text-decoration: line-through; }

/* Mishap rolls. While a roll tumbles its face flickers and the answer stays hidden. The roll lands at about 0.8 s,
   and a natural 1's extra rolls land half a second apart. */
.hs-step + .hs-step { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.hs-step-top { display: flex; align-items: center; gap: 12px; }
.hs-face {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--accent2); border-radius: 8px; background: var(--accent-dim); color: #fff;
  font: 1.3rem/1 var(--font-display); font-variant-numeric: tabular-nums;
}
.hs-face.is-clear { border-color: var(--good); }
.hs-view .hs-result-line { margin: 0; }
.hs-reveal > p { margin: 8px 0 0; }
.hs-view, .hs-reveal { transition: opacity 0.16s ease, transform 0.16s ease; }
.hs-step.is-rolling .hs-view, .hs-step.is-rolling .hs-reveal, .hs-mishap.is-pending .hs-tail { opacity: 0; transform: translateY(4px); pointer-events: none; }
.hs-step.is-rolling .hs-face { box-shadow: 0 0 14px rgba(255, 59, 78, 0.35); animation: hs-jolt 0.1s steps(2) infinite alternate; }
.hs-step.is-settled .hs-face { animation: hs-pop 0.22s ease-out; }
.hs-roll-icon { width: 18px; height: 18px; margin: -3px 8px -3px 0; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs-btn.is-rolling .hs-roll-icon { animation: hs-spin 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
.hs-panel.is-entering { animation: hs-fade 0.16s ease-out; }
.hs-hist li.is-new { animation: hs-slide 0.16s ease-out; }
.hs-tab-icon.is-bump svg { animation: hs-bump-icon 0.22s ease-out; }
@keyframes hs-spin { from { transform: rotate(0); } to { transform: rotate(540deg); } }
@keyframes hs-jolt { from { transform: rotate(-5deg); } to { transform: rotate(5deg) translateY(-1px); } }
@keyframes hs-pop { 0% { transform: scale(1.3); background: var(--accent); } 100% { transform: scale(1); } }
@keyframes hs-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hs-slide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes hs-bump-icon { 0% { transform: scale(1.35); color: var(--accent2); } 100% { transform: scale(1); } }
.hs-result-line { margin: 6px 0 0; font-size: 0.95rem; }
/* The equation bar. The track is a fixed red to orange to green gradient and the cover slides back to reveal it. */
.hs-prog {
  position: relative; height: 10px; margin: 8px 0; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, #ff3b4e 0%, #ff8a1f 50%, #3ecf6e 100%);
  transition: box-shadow 0.3s ease 0.4s, border-color 0.3s ease 0.4s;
}
.hs-prog > i { position: absolute; top: 0; right: 0; bottom: 0; background: var(--bg-panel); transition: width 0.55s cubic-bezier(0.2, 0.7, 0.3, 1); }
.hs-prog.is-full { border-color: #3ecf6e; box-shadow: 0 0 12px rgba(62, 207, 110, 0.5); }
.hs-hist { list-style: none; margin: 0; padding: 0; }
.hs-hist li { padding: 8px 0; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-mid); }
.hs-hist li:first-child { border-top: 0; }
.hs-hist time { display: block; font-size: 0.75rem; color: var(--text-dim); }
details.hs-table { margin-top: 10px; }
details.hs-table summary { cursor: pointer; color: var(--text-mid); font-size: 0.9rem; }
.hs-table ul { margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.85rem; }
.hs-table li { padding: 4px 0; }
.hs-table li b { display: inline-block; min-width: 46px; color: var(--text); }

.hs-footer { flex: none; display: flex; flex-wrap: wrap; gap: 2px 24px; padding: 8px 28px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.78rem; }
.hs-footer p { margin: 0; }

/* ---------- phone ---------- */

@media (max-width: 1240px) { .hs-credit { display: none; } }

@media (max-width: 900px) {
  :root { --hdr: 58px; }
  .hs-header { gap: 12px; padding: 0 var(--gutter); }
  .hs-brand-name, .hs-credit, .hs-topnav { display: none; }
  .hs-page-name { padding-left: 0; border-left: 0; font-size: 1.1rem; }
  .hs-app { display: block; position: relative; min-height: 0; }
  .hs-mapwrap { position: absolute; inset: 0; }
  .hs-search { left: var(--gutter); top: 10px; width: calc(100% - 2 * var(--gutter) - 96px); }
  .hs-search kbd { display: none; }
  .hs-maptools { right: var(--gutter); top: 10px; }
  .hs-maptools .hs-zoom, .hs-maptools #hs-fit { display: none; }
  .hs-banner { bottom: 84px; }
  .hs-time { left: var(--gutter); bottom: 76px; max-width: min(300px, calc(100% - 2 * var(--gutter))); }
  .hs-rail {
    position: absolute; z-index: 900; left: 0; right: 0; bottom: 0;
    max-height: 70%; border-left: 0; border-top: 1px solid var(--border); border-radius: 14px 14px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  }
  .hs-handle {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    width: 100%; min-height: 64px; padding: 10px var(--gutter) 10px; border: 0; background: none; cursor: pointer; text-align: center;
  }
  .hs-handle-bar { width: 44px; height: 5px; border-radius: 3px; background: var(--border); }
  .hs-handle-text { font-weight: 700; font-variant-numeric: tabular-nums; }
  .hs-rail:not(.is-open) .hs-rail-body { display: none; }
  .hs-rail.is-open { height: 70%; }
  .hs-panel { padding: 14px var(--gutter) 28px; }
  .hs-tabs { padding: 0 var(--gutter); }
  .hs-footer { display: none; }
  .hs-modes { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .hs-field.needs-pick .hs-select { animation: none; box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.35); }
  .hs-time, .hs-time.is-bump, .hs-time.needs-class { animation: none; transition: none; }
  .hs-time.needs-class { box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.35); }
  .hs-step.is-rolling .hs-face, .hs-step.is-settled .hs-face, .hs-btn.is-rolling .hs-roll-icon,
  .hs-panel.is-entering, .hs-hist li.is-new, .hs-tab-icon.is-bump svg { animation: none; }
  .hs-view, .hs-reveal, .hs-prog, .hs-prog > i { transition: none; }
}
@media (forced-colors: active) {
  .hs-btn, .hs-tool, .hs-input, .hs-select { border-color: CanvasText; }
  .hs-btn[aria-pressed="true"], .hs-mode[aria-pressed="true"] { outline: 2px solid Highlight; }
}
