/* ============================================================
   WebCue — Stylesheet
   Design: dark theatre aesthetic, mobile-first
   ============================================================ */

/* ---- Reset & base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #111113;
  color: #e8e8ec;
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: 1rem;
  background: #1e1e22;
  border: 1px solid #383840;
  border-radius: 5px;
  color: #e8e8ec;
  padding: 8px 10px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #d4a030;
}

input[type=range] {
  background: none;
  border: none;
  padding: 0;
  accent-color: #d4a030;
  cursor: pointer;
}

input[type=checkbox] {
  width: auto;
  accent-color: #d4a030;
  cursor: pointer;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

label {
  display: block;
  font-size: 0.85rem;
  color: #9898a8;
  margin-bottom: 5px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, opacity 0.12s;
  line-height: 1;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: #d4a030;
  border-color: #b88020;
  color: #111;
}

.btn--primary:hover:not(:disabled) {
  background: #e0b040;
}

.btn--outline {
  background: transparent;
  border-color: #d4a030;
  color: #d4a030;
}

.btn--outline:hover {
  background: rgba(212, 160, 48, 0.1);
}

.btn--ghost {
  background: #1e1e22;
  border-color: #383840;
  color: #b0b0be;
}

.btn--ghost:hover {
  background: #2a2a30;
  color: #e8e8ec;
}

.btn--danger {
  background: transparent;
  border-color: #c04040;
  color: #e07070;
}

.btn--danger:hover {
  background: rgba(192, 64, 64, 0.15);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  font-size: 0.8rem;
  padding: 5px 10px;
}

/* ---- Fields ---- */
.field {
  margin-bottom: 16px;
}

.field-hint {
  font-size: 0.78rem;
  color: #6a6a7a;
  margin-top: 4px;
}

.field-hint-inline {
  font-size: 0.78rem;
  color: #6a6a7a;
}

.field-optional {
  font-size: 0.78rem;
  color: #6a6a7a;
}

.field-value {
  font-size: 0.85rem;
  color: #d4a030;
  margin-left: 8px;
}

.fields-row {
  display: flex;
  gap: 12px;
}

.field--half {
  flex: 1;
}

.fields-row--checks {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #c8c8d8;
  cursor: pointer;
}

.check-label input[type=checkbox] {
  width: 16px;
  height: 16px;
}

/* ---- Form errors ---- */
.form-error {
  background: rgba(192, 64, 64, 0.15);
  border: 1px solid #804040;
  color: #e08080;
  border-radius: 5px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.form-errors {
  margin-bottom: 8px;
}

/* ---- Flash messages ---- */
.flash-wrap {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: 90%;
  max-width: 420px;
}

.flash {
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.flash--error {
  background: rgba(192, 64, 64, 0.2);
  border: 1px solid #804040;
  color: #e08080;
}

.flash--success {
  background: rgba(58, 140, 80, 0.2);
  border: 1px solid #3a8c50;
  color: #7ad8a0;
}

/* ---- Code status ---- */
.code-status {
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 1.2em;
}

.code-status--ok {
  color: #5adf8a;
}

.code-status--error {
  color: #e07878;
}

.code-status--checking {
  color: #9898a8;
}

.code-input-row {
  display: flex;
  gap: 6px;
}

.code-input-row input {
  flex: 1;
}

.code-input-row .btn {
  flex-shrink: 0;
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.page-landing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.landing-wrap {
  width: 100%;
  max-width: 720px;
}

.landing-header {
  text-align: center;
  margin-bottom: 40px;
}

.landing-logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: #d4a030;
  letter-spacing: -0.5px;
}

.landing-tagline {
  color: #6a6a7a;
  margin-top: 6px;
}

.landing-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 580px) {
  .landing-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: #1a1a1e;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  padding: 24px;
}

.card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card__desc {
  font-size: 0.88rem;
  color: #7878a8;
  margin-bottom: 20px;
}

.landing-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: #4a4a5a;
}

.text-link {
  color: #6888b8;
}

.text-link:hover {
  color: #88a8d8;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.page-login {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.auth-wrap {
  width: 100%;
  max-width: 380px;
}

.auth-box {
  background: #1a1a1e;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  padding: 32px;
}

.auth-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #d4a030;
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  text-align: center;
  font-size: 0.88rem;
  color: #6a6a7a;
  margin-bottom: 24px;
}

/* ============================================================
   FORM PAGES (new show, etc.)
   ============================================================ */
.page-new-show {
  padding: 24px;
}

.form-page-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px;
}

.form-page-wrap--wide {
  max-width: 900px;
}

.form-page-box {
  background: #1a1a1e;
  border: 1px solid #2a2a32;
  border-radius: 10px;
  padding: 28px;
}

.form-page-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.back-link {
  display: inline-block;
  font-size: 0.85rem;
  color: #6888b8;
  margin-bottom: 16px;
}

.back-link:hover {
  color: #88a8d8;
}

.page-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.page-header-row .form-page-title {
  margin-bottom: 0;
  flex: 1;
}

.page-header-row .back-link {
  margin-bottom: 0;
}

/* ---- Shows list table ---- */
.shows-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.shows-table th {
  text-align: left;
  font-size: 0.78rem;
  color: #6a6a7a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 10px;
  border-bottom: 1px solid #2a2a32;
}

.shows-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #1e1e24;
  vertical-align: middle;
}

.show-code-cell {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #d4a030;
  font-size: 0.88rem;
}

.actions-cell {
  display: flex;
  gap: 6px;
}

.muted {
  color: #6a6a7a;
  font-size: 0.85rem;
}

/* ============================================================
   MAIN APP
   ============================================================ */
.page-show {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---- App header ---- */
.app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #161618;
  border-bottom: 1px solid #2a2a32;
  padding: 0 14px;
  height: 52px;
  overflow-x: auto;
}

.app-header__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-header__center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-header__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.app-home-link {
  font-weight: 700;
  color: #d4a030;
  font-size: 1rem;
  flex-shrink: 0;
}

.show-name-wrap {
  max-width: 200px;
  overflow: hidden;
}

.show-name {
  font-size: 0.9rem;
  color: #c8c8d8;
  white-space: nowrap;
  border-bottom: 1px dashed transparent;
  cursor: text;
  padding-bottom: 1px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.show-name:hover,
.show-name:focus {
  border-bottom-color: #d4a030;
  outline: none;
}

.show-code-block {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1a1a1e;
  border: 1px solid #2a2a32;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.show-code-block:hover {
  border-color: #d4a030;
}

.show-code-label {
  font-size: 0.68rem;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.show-code-value {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.92rem;
  color: #d4a030;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.show-code-copy {
  font-size: 0.85rem;
  color: #5a5a6a;
}

.master-vol-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.master-vol-label {
  font-size: 0.75rem;
  color: #6a6a7a;
  margin-bottom: 0;
  white-space: nowrap;
}

.master-vol-slider {
  width: 70px;
}

.master-vol-pct {
  font-size: 0.78rem;
  color: #9898a8;
  min-width: 32px;
}

/* ---- Transport ---- */
.transport-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #181820;
  border-bottom: 1px solid #2a2a32;
  padding: 10px 14px;
}

.transport-go {
  min-width: 80px;
  min-height: 52px;
  font-size: 1.2rem;
  font-weight: 800;
  background: #3a9c5a;
  border: none;
  border-radius: 8px;
  color: white;
  letter-spacing: 1px;
  transition: background 0.1s, transform 0.06s;
  flex-shrink: 0;
}

.transport-go:hover {
  background: #4aac6a;
}

.transport-go:active {
  transform: scale(0.97);
}

.transport-stop {
  min-width: 80px;
  min-height: 52px;
  font-size: 0.95rem;
  font-weight: 700;
  background: transparent;
  border: 2px solid #c04040;
  border-radius: 8px;
  color: #e07070;
  letter-spacing: 0.5px;
  transition: background 0.1s;
  flex-shrink: 0;
}

.transport-stop:hover {
  background: rgba(192, 64, 64, 0.2);
}

.transport-info {
  flex: 1;
  min-width: 0;
}

.transport-cue-label {
  font-size: 0.7rem;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.transport-cue-name {
  font-size: 1rem;
  font-weight: 500;
  color: #e8e8ec;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transport-status {
  font-size: 0.82rem;
  color: #5a5a6a;
  flex-shrink: 0;
}

.transport-small-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.transport-sm-btn {
  background: #1e1e26;
  border: 1px solid #2a2a38;
  border-radius: 5px;
  color: #9898a8;
  font-size: 0.75rem;
  padding: 4px 10px;
  white-space: nowrap;
  transition: all 0.1s;
}

.transport-sm-btn:hover {
  background: #2a2a38;
  color: #e8e8ec;
  border-color: #3a3a50;
}

@media (max-width: 600px) {
  .transport-small-btns {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---- Cue toolbar ---- */
.cue-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: #161618;
  border-bottom: 1px solid #22222a;
}

.cue-count {
  font-size: 0.82rem;
  color: #5a5a6a;
}

/* ---- Cue list ---- */
.cue-list-wrap {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #111113;
}

.cue-list-wrap::-webkit-scrollbar {
  width: 8px;
}

.cue-list-wrap::-webkit-scrollbar-track {
  background: #111113;
}

.cue-list-wrap::-webkit-scrollbar-thumb {
  background: #2a2a38;
  border-radius: 4px;
}

.cue-list-header {
  display: flex;
  align-items: center;
  padding: 0 14px;
  height: 28px;
  background: #151518;
  border-bottom: 1px solid #2a2a32;
  font-size: 0.72rem;
  color: #5a5a6a;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.cue-list {
  list-style: none;
}

.cue-row {
  display: flex;
  align-items: center;
  padding: 0 14px;
  min-height: 44px;
  border-bottom: 1px solid #1a1a20;
  transition: background 0.08s;
  position: relative;
  cursor: pointer;
}

.cue-row:hover {
  background: #1a1a22;
}

.cue-row.cue-selected {
  background: rgba(212, 160, 48, 0.12);
  border-left: 3px solid #d4a030;
}

.cue-row.cue-playing {
  background: rgba(58, 156, 90, 0.12);
  border-left: 3px solid #3a9c5a;
}

.cue-row.cue-playing .cue-num {
  color: #5adf8a;
}

.cue-row.drag-over {
  border-top: 2px solid #d4a030;
}

.cue-row.drag-ghost {
  opacity: 0.4;
}

.cue-list-empty {
  padding: 48px;
  text-align: center;
  color: #5a5a6a;
  font-size: 0.9rem;
}

/* ---- Column layout ---- */
.col-drag {
  width: 28px;
  flex-shrink: 0;
}

.col-num {
  width: 32px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: #5a5a6a;
  font-variant-numeric: tabular-nums;
}

.col-name {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  padding-right: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-dur {
  width: 56px;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #6a6a7a;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.col-vol {
  width: 40px;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: #8888a0;
  text-align: right;
}

.col-flags {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  gap: 3px;
  justify-content: center;
  flex-wrap: wrap;
}

.col-actions {
  width: 90px;
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.cue-drag-handle {
  font-size: 1rem;
  color: #3a3a48;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cue-drag-handle:active {
  cursor: grabbing;
  color: #d4a030;
}

.flag {
  font-size: 0.75rem;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}

.flag--loop {
  background: rgba(58, 122, 191, 0.2);
  color: #7aafef;
}

.flag--auto {
  background: rgba(140, 80, 191, 0.2);
  color: #c088df;
}

.flag--fade {
  background: rgba(58, 156, 90, 0.2);
  color: #7acf9a;
}

.flag--wait {
  background: rgba(191, 140, 58, 0.2);
  color: #dfb87a;
}

.cue-type-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-right: 5px;
  flex-shrink: 0;
}

.cue-type-tag--silence {
  background: rgba(58, 122, 191, 0.2);
  color: #7aafef;
}

.cue-type-tag--fadeout {
  background: rgba(191, 90, 140, 0.2);
  color: #ef9ac8;
}

.cue-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  border: 1px solid #2a2a38;
  background: #1e1e26;
  color: #7878a0;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.cue-btn:hover {
  background: #2a2a38;
  color: #e8e8ec;
  border-color: #3a3a48;
}

.cue-btn--delete:hover {
  border-color: #804040;
  color: #e07070;
}

.cue-btn--preview:hover {
  border-color: #3a7a3a;
  color: #5adf8a;
}

.cue-btn--edit:hover {
  border-color: #7a6a30;
  color: #d4a030;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 16px;
}

.modal-bg.open {
  display: flex;
}

.modal {
  background: #1a1a1e;
  border: 1px solid #2a2a38;
  border-radius: 10px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.modal--sm {
  max-width: 400px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a32;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: #6a6a7a;
  font-size: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: #2a2a32;
  color: #e8e8ec;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #1a1a1e;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #2a2a38;
  border-radius: 3px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid #2a2a32;
  flex-shrink: 0;
}

/* ---- File drop zone ---- */
.file-drop-zone {
  position: relative;
  border: 2px dashed #2a2a40;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}

.file-drop-zone:hover,
.file-drop-zone.drag-over {
  border-color: #d4a030;
  background: rgba(212, 160, 48, 0.05);
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  gap: 6px;
  pointer-events: none;
}

.file-drop-icon {
  font-size: 2rem;
}

.file-drop-text {
  font-size: 0.9rem;
  text-align: center;
}

.file-drop-hint {
  font-size: 0.75rem;
  color: #5a5a6a;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1e26;
  border: 1px solid #2a2a38;
  border-radius: 6px;
  padding: 8px 12px;
}

.file-preview-name {
  font-size: 0.88rem;
  color: #c8c8d8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Preview player ---- */
.preview-player {
  margin-bottom: 16px;
}

.preview-player audio {
  width: 100%;
}

/* ---- Shortcuts table ---- */
.shortcuts-table {
  width: 100%;
  border-collapse: collapse;
}

.shortcuts-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #1e1e26;
  font-size: 0.9rem;
}

.shortcuts-table td:first-child {
  width: 110px;
}

kbd {
  display: inline-block;
  background: #222230;
  border: 1px solid #383850;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.8rem;
  font-family: inherit;
  color: #c8c8d8;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #2a2a38;
  border: 1px solid #3a3a50;
  border-radius: 6px;
  padding: 10px 18px;
  font-size: 0.88rem;
  color: #e8e8ec;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 900;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
}

.toast.toast--ok {
  border-color: #3a6a3a;
  color: #7ad8a0;
}

.toast.toast--err {
  border-color: #804040;
  color: #e08080;
}

/* ============================================================
   PROGRESS / LOADING
   ============================================================ */
.upload-progress {
  height: 4px;
  background: #1e1e26;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}

.upload-progress-bar {
  height: 100%;
  background: #d4a030;
  transition: width 0.15s;
  width: 0%;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 600px) {
  .app-header {
    height: auto;
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }

  .app-header__left,
  .app-header__right,
  .app-header__center {
    width: 100%;
    justify-content: center;
  }

  .app-header__right {
    flex-wrap: wrap;
  }

  .show-name-wrap {
    max-width: 100%;
  }

  .transport-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .transport-go {
    min-height: 60px;
    flex: 1;
  }

  .transport-stop {
    min-height: 60px;
    flex: 1;
  }

  .transport-info {
    width: 100%;
    order: -1;
  }

  .col-dur,
  .col-vol,
  .col-flags {
    display: none;
  }

  .col-actions {
    width: 76px;
  }

  .cue-row {
    min-height: 52px;
  }

  .cue-drag-handle {
    font-size: 1.3rem;
  }

  .fields-row {
    flex-direction: column;
    gap: 0;
  }

  .field--half {
    width: 100%;
  }

  .landing-cards {
    grid-template-columns: 1fr;
  }

  .modal {
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-bg {
    padding: 0;
    align-items: flex-end;
  }
}

/* ============================================================
   MISC
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.modal--compact .modal-body {
  padding: 14px 20px;
}