@font-face {
  font-family: "Dastkhat Bar";
  src: url("../fonts/DastkhatBar.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --font-ui: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  --font-display: "Dastkhat Bar", var(--font-ui);
  --font-data: "Vazirmatn", "Segoe UI", Tahoma, Arial, sans-serif;
}
/* Shared form controls across the dashboard and the story players. */
html body select {
  font:400 .95rem/1.5 var(--font-ui);
  min-block-size:44px;
  max-inline-size:100%;
  padding:.5rem .75rem;
  border:1px solid var(--edge);
  border-radius:.65rem;
  background-color:var(--input);
  color:var(--text);
  cursor:pointer;
}
html body select:hover { border-color:var(--action) }
html body select:focus-visible { outline:2px solid var(--focus); outline-offset:2px }
html body select:disabled { opacity:.6; cursor:default }
html body select :is(option,optgroup) {
  font-family:var(--font-ui);
  background-color:var(--surface);
  color:var(--text);
}
@supports (appearance:base-select) and selector(select::picker(select)) {
  html body select:not([multiple]):not([size]),
  html body select:not([multiple]):not([size])::picker(select) { appearance:base-select }
  html body select::picker(select) {
    font:400 .95rem/1.5 var(--font-ui);
    color:var(--text);
    background:var(--surface);
    border:1px solid var(--edge);
    border-radius:.65rem;
    margin-block:.3rem;
    padding:.25rem;
    max-block-size:min(22rem, 50dvh);
    max-inline-size:calc(100vw - 1rem);
    overflow:auto;
  }
  html body select::picker-icon { color:var(--action) }
  html body select option { padding:.45rem .6rem; border-radius:.4rem; white-space:normal; overflow-wrap:anywhere }
  html body select option:is(:hover,:focus-visible,:checked) { background:var(--active); color:var(--text) }
}
html body select.atlas-select-native { position:absolute; width:1px; height:1px; min-height:0; padding:0; opacity:0; pointer-events:none }
.atlas-select-trigger,.atlas-select-menu button {
  font:400 .95rem/1.5 var(--font-ui);
  color:var(--text);
  text-align:start;
  cursor:pointer;
}
.atlas-select-trigger {
  display:flex; align-items:center; justify-content:space-between; gap:.6rem;
  min-block-size:44px; max-inline-size:100%; min-inline-size:0;
  padding:.5rem .75rem; border:1px solid var(--edge);
  border-radius:.65rem; background:var(--input); overflow-wrap:anywhere;
}
.atlas-select-trigger::after { content:"⌄"; color:var(--action); flex:none }
.atlas-select-trigger:hover,.atlas-select-trigger:focus-visible { border-color:var(--action) }
.atlas-select-trigger:disabled { opacity:.6; cursor:default }
.atlas-select-menu {
  position:fixed; inset:auto; margin:0; padding:.25rem; overflow:auto;
  box-sizing:border-box; background:var(--surface); color:var(--text);
  border:1px solid var(--edge); border-radius:.65rem; box-shadow:0 .4rem 1rem #0004;
}
.atlas-select-menu button {
  display:block; width:100%; border:0; border-radius:.4rem;
  padding:.45rem .6rem; background:transparent; overflow-wrap:anywhere;
}
.atlas-select-menu button:is(:hover,:focus-visible,[aria-selected="true"]) { background:var(--active) }
