/* Tin Whistle Tutor — deliberately its own visual language, not the portfolio's. */

:root {
  --bg: #fff7e8;
  --surface: #ffffff;
  --ink: #1c2b3a;
  --muted: #5e6c7c;
  --line: #e6d8bf;
  --accent: #ff6b35;
  --secondary: #17a398;
  --yellow: #ffd166;
  --danger: #b3261e;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 26px rgba(28, 43, 58, 0.1);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 10% 0%, #ffe3b8 0, transparent 46%),
    radial-gradient(circle at 92% 4%, #cff3ee 0, transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 300;
  padding: 10px 14px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
}

:focus-visible {
  outline: 4px solid var(--secondary);
  outline-offset: 2px;
}

button,
select,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:active {
  transform: translateY(1px);
}

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

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 10px clamp(12px, 3vw, 28px);
  background: rgba(255, 247, 232, 0.94);
  border-bottom: 3px solid var(--ink);
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-sub {
  margin: 1px 0 0;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.song-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.song-picker label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

select {
  min-height: 48px;
  max-width: min(60vw, 360px);
  padding: 0 40px 0 14px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
}

.icon-button {
  min-width: 48px;
  min-height: 48px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

/* ------------------------------------------------------------------- stage */

.stage-card {
  width: min(1100px, calc(100% - 24px));
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px auto;
  padding: clamp(14px, 3vw, 28px);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stage-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 10px;
  min-width: 0;
}

.phrase-control {
  display: flex;
  align-items: center;
  gap: 4px;
}

.phrase-control select {
  min-height: 38px;
  max-width: 190px;
  padding: 0 30px 0 10px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.mini-button {
  min-width: 34px;
  min-height: 38px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.toggle.compact {
  gap: 5px;
  font-size: 11px;
}

.toggle.compact input {
  width: 16px;
  height: 16px;
}

.text-button {
  min-height: 38px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.text-button.danger {
  border-color: var(--danger);
  color: var(--danger);
}

.icon-button.small {
  min-width: 38px;
  min-height: 38px;
  padding: 0 9px;
  border-width: 2px;
  font-size: 17px;
}

.tune-meta {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.octave-chip {
  margin: 0;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.octave-chip[data-octave="high"] {
  background: var(--secondary);
  color: #fff;
}

.octave-chip[data-octave="top"] {
  background: var(--accent);
  color: #fff;
}

.stage-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(10px, 3vw, 32px);
  min-height: 0;
}

.whistle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}

.whistle-svg {
  display: block;
  height: min(38vh, 340px);
  width: auto;
  max-width: 100%;
}

.stage-card.is-landscape .stage-main {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.stage-card.is-landscape .whistle-svg {
  height: auto;
  width: min(70vw, 640px);
  max-width: 100%;
  max-height: 42vh;
}

.readout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}

.note-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54vw, 300px);
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.note-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.ring-bg {
  fill: none;
  stroke: #f0e5d1;
  stroke-width: 7;
}

.ring-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 282.743;
  stroke-dashoffset: 282.743;
  transition: stroke-dashoffset 90ms linear;
}

.note-letter {
  position: relative;
  font-size: clamp(4.5rem, 25vmin, 10rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.note-cue {
  margin: 0;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  font-weight: 700;
  color: var(--ink);
}

.next-cue {
  margin: 0;
  min-height: 1.2em;
  font-size: clamp(0.85rem, 1.8vw, 1.05rem);
  font-weight: 700;
  color: var(--secondary);
}

.beat-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  min-height: 12px;
  margin-top: 2px;
}

.beat-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  transition: background 80ms ease, transform 80ms ease, border-color 80ms ease;
}

.beat-dot.active {
  border-color: var(--ink);
  background: var(--accent);
  transform: scale(1.25);
}

.stage-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  padding-top: 8px;
  border-top: 2px dashed var(--line);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.legend strong {
  color: var(--ink);
}

.warnings {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--danger);
}

/* -------------------------------------------------------------- whistle svg */

.whistle-body {
  fill: #fffdf7;
  stroke: var(--ink);
  stroke-width: 6;
}

.whistle-mouthpiece {
  fill: #f1e6d2;
  stroke: var(--ink);
  stroke-width: 6;
}

.hole {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 7;
  transition: fill 90ms ease, stroke 90ms ease;
}

.hole.open {
  fill: #fff;
}

.hole.closed {
  fill: var(--ink);
}

.hole.half {
  fill: var(--accent);
  fill-opacity: 0.5;
  stroke-dasharray: 5 4;
}

.hole.changing {
  stroke: var(--secondary);
  stroke-width: 9;
  stroke-dasharray: 7 7;
  animation: hole-pulse 900ms ease-in-out infinite;
}

@keyframes hole-pulse {
  0%,
  100% {
    stroke-opacity: 1;
  }
  50% {
    stroke-opacity: 0.35;
  }
}

.hole-number {
  fill: var(--muted);
  font-size: 16px;
  font-weight: 800;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
}

/* ---------------------------------------------------------------- transport */

.transport {
  position: sticky;
  bottom: 0;
  z-index: 30;
  margin-top: auto;
  padding: 8px clamp(12px, 3vw, 28px) calc(8px + env(safe-area-inset-bottom));
  border-top: 3px solid var(--ink);
  background: rgba(255, 247, 232, 0.97);
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}

.progress-wrap {
  width: min(1100px, 100%);
  margin: 0 auto 8px;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #f0e5d1;
}

.progress-fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--yellow), var(--accent));
}

.transport-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.transport-row-sub {
  justify-content: space-between;
  margin-top: 6px;
}

.play-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 23px;
  font-weight: 900;
}

.play-button.is-playing {
  background: var(--secondary);
}

.play-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.speed {
  flex: 1;
  min-width: 0;
}

.speed-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#speed-output {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink);
}

.bpm-output {
  margin-left: auto;
  letter-spacing: 0.04em;
}

input[type="range"] {
  width: 100%;
  height: 34px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.transport-row-sub {
  flex-wrap: wrap;
  gap: 8px 14px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
}

.toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--secondary);
}

.presets {
  display: flex;
  gap: 6px;
}

.presets button {
  min-height: 36px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

/* ------------------------------------------------------------------- focus */

.focus-exit {
  min-height: 38px;
  padding: 0 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-size: 11px;
  font-weight: 900;
}

body.chrome-hidden .app-header {
  opacity: 0;
  pointer-events: none;
}

html:fullscreen {
  background: var(--bg);
}

html:fullscreen body,
body.is-immersive {
  height: 100dvh;
  overflow: hidden;
}

html:fullscreen .app-header,
body.is-immersive .app-header {
  display: none;
}

html:fullscreen .stage-card,
body.is-immersive .stage-card {
  flex: 1;
  min-height: 0;
  width: auto;
  max-width: none;
  height: auto;
  margin: 8px;
  border-radius: 20px;
  background: var(--surface);
}

html:fullscreen .note-letter,
body.is-immersive .note-letter {
  font-size: clamp(6rem, 26vmin, 16rem);
}

html:fullscreen .note-wrap,
body.is-immersive .note-wrap {
  width: min(62vmin, 480px);
}

html:fullscreen .whistle-svg,
body.is-immersive .whistle-svg {
  height: min(54vh, 560px);
}

html:fullscreen .stage-card.is-landscape .whistle-svg,
body.is-immersive .stage-card.is-landscape .whistle-svg {
  height: auto;
  width: min(66vw, 760px);
  max-height: 36vh;
}

html:fullscreen .tune-meta,
body.is-immersive .tune-meta {
  font-size: 12px;
}

/* ------------------------------------------------------------------ mobile */

@media (max-width: 720px) {
  .stage-main {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .whistle-svg {
    height: min(34vh, 280px);
  }

  .note-wrap {
    width: min(58vw, 250px);
  }

  .stage-card.is-landscape .stage-main {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .app-header {
    padding: 6px 10px;
  }

  .brand-sub {
    display: none;
  }

  .song-picker {
    order: 3;
    width: 100%;
  }

  .song-picker select {
    flex: 1;
    max-width: none;
  }

  .stage-head {
    gap: 4px;
  }

  .tune-meta {
    display: none;
  }

  .stage-tools {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .stage-tools > * {
    flex: 0 0 auto;
  }

  .phrase-control select {
    max-width: 150px;
  }

  .stage-card {
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 12px;
    border-radius: 20px;
  }

  .stage-main {
    gap: 4px;
  }

  .whistle-svg {
    height: min(31vh, 260px);
  }

  .note-wrap {
    width: min(54vw, 220px);
  }

  .transport {
    padding-top: 6px;
  }

  .transport-row {
    gap: 10px;
  }

  .transport-row-sub {
    margin-top: 2px;
  }

  .play-button {
    width: 58px;
    height: 58px;
  }
}

@media (max-height: 700px) and (max-width: 640px) {
  .whistle-svg {
    height: min(24vh, 180px);
  }

  .note-wrap {
    width: min(46vw, 180px);
  }

  .legend {
    display: none;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  body:not(.is-focus) .tune-meta,
  body:not(.is-focus) .octave-chip,
  body:not(.is-focus) .stage-foot {
    display: none;
  }

  body:not(.is-focus) .stage-head {
    gap: 0;
  }

  body:not(.is-focus) .stage-tools {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    gap: 4px 6px;
  }

  body:not(.is-focus) .phrase-control select {
    min-height: 30px;
    max-width: 150px;
    padding: 0 24px 0 8px;
    font-size: 11px;
  }

  body:not(.is-focus) .mini-button {
    min-width: 28px;
    min-height: 30px;
    font-size: 15px;
  }

  body:not(.is-focus) .toggle.compact {
    gap: 4px;
    font-size: 10px;
  }

  body:not(.is-focus) .toggle.compact input {
    width: 14px;
    height: 14px;
  }

  body:not(.is-focus) .text-button {
    min-height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  body:not(.is-focus) .beat-dots {
    display: none;
  }

  body:not(.is-focus) .stage-card {
    margin: 6px auto;
    padding: 8px 12px;
    gap: 2px;
  }

  body:not(.is-focus) .stage-main {
    gap: 10px;
  }

  body:not(.is-focus) .whistle-svg {
    height: auto;
    width: min(38vw, 320px);
    max-height: 30vh;
  }

  body:not(.is-focus) .note-wrap {
    width: min(26vh, 110px);
  }

  body:not(.is-focus) .note-letter {
    font-size: clamp(2.25rem, 9vmin, 3.5rem);
  }

  body:not(.is-focus) .note-cue {
    font-size: 0.8rem;
  }

  body:not(.is-focus) .next-cue {
    font-size: 0.7rem;
    min-height: 1em;
  }

  body:not(.is-focus) .readout {
    gap: 2px;
  }

  body:not(.is-focus) .transport-row-sub {
    display: none;
  }

  body:not(.is-focus) .transport {
    padding-top: 4px;
  }

  body:not(.is-focus) .app-header {
    padding: 4px 10px;
  }
}

@media (max-width: 720px) {
  html:fullscreen .whistle-svg,
  body.is-immersive .whistle-svg {
    height: min(32vh, 300px);
  }

  html:fullscreen .note-wrap,
  body.is-immersive .note-wrap {
    width: min(42vmin, 240px);
  }

  html:fullscreen .note-letter,
  body.is-immersive .note-letter {
    font-size: clamp(4.5rem, 18vmin, 8rem);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  html:fullscreen .stage-card,
  body.is-immersive .stage-card {
    margin: 6px;
    padding: 8px 12px;
  }

  html:fullscreen .stage-head,
  body.is-immersive .stage-head {
    gap: 2px;
  }

  html:fullscreen .stage-card.is-landscape .whistle-svg,
  body.is-immersive .stage-card.is-landscape .whistle-svg {
    height: min(26vh, 180px);
    width: auto;
    max-width: 100%;
    max-height: none;
  }

  html:fullscreen .note-wrap,
  body.is-immersive .note-wrap {
    width: min(28vh, 130px);
  }

  html:fullscreen .note-letter,
  body.is-immersive .note-letter {
    font-size: clamp(2.75rem, 11vmin, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* -------------------------------------------------------------- dialogs */

.dialog {
  width: min(720px, calc(100vw - 24px));
  max-height: min(88dvh, 820px);
  margin: auto;
  padding: 18px;
  overflow: auto;
  border: 3px solid var(--ink);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(28, 43, 58, 0.55);
  backdrop-filter: blur(3px);
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 900;
}

.dialog-note {
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.field-label {
  display: block;
  margin: 12px 0 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.file-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.file-label input {
  flex: 1;
  min-width: 180px;
  font-size: 12px;
}

.dialog textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--ink);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
}

.dialog-status {
  min-height: 1.4em;
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.dialog-status[data-state="error"] {
  color: var(--danger);
}

.dialog-status[data-state="ok"] {
  color: var(--secondary);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.dialog-actions button {
  min-height: 44px;
  padding: 0 18px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.local-tunes {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 2px dashed var(--line);
}

.local-tunes h3 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.local-tunes ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.local-tunes li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.local-tunes li.empty {
  border-style: dashed;
  color: var(--muted);
  font-weight: 600;
}

.local-tunes .text-button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 10px;
}

/* --------------------------------------------------------- fingering panel */

.fingering-group {
  margin-top: 14px;
}

.fingering-group h3 {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.fingering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.fingering-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 0;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--ink);
  text-align: left;
}

.fingering-card:hover {
  border-color: var(--ink);
}

.fingering-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fingering-label strong {
  font-size: 17px;
  font-weight: 900;
}

.fingering-label small {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
}

.mini-holes {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
}

.mini-hole {
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #fff;
}

.mini-hole.closed {
  background: var(--ink);
}

.mini-hole.half {
  border-style: dashed;
  background: var(--accent);
  opacity: 0.65;
}

/* ------------------------------------------------------------- error banner */

.error-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 200;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--danger);
  color: #fff;
  font-weight: 700;
  box-shadow: var(--shadow);
}
