/* Accident Replay Studio */
.as-page {
  --as-bg: #070b12;
  --as-panel: #0d1420;
  --as-panel-2: #111b2a;
  --as-panel-3: #162235;
  --as-ink: #f4f7fb;
  --as-muted: #91a0b5;
  --as-dim: #8091a8;
  --as-blue: #2e6fca;
  --as-blue-bright: #4b91f2;
  --as-blue-glow: rgba(58, 133, 239, .24);
  --as-gold: #d7ac3f;
  --as-gold-bright: #f2cb64;
  --as-danger: #e56868;
  --as-line: rgba(151, 177, 212, .15);
  --as-line-strong: rgba(151, 177, 212, .28);
  --as-radius: 12px;
  min-width: 0;
  overflow: hidden;
  padding: 112px 20px 88px;
  background:
    radial-gradient(circle at 12% 18%, rgba(46, 111, 202, .11), transparent 28rem),
    radial-gradient(circle at 90% 32%, rgba(215, 172, 63, .055), transparent 30rem),
    linear-gradient(180deg, #090e17 0%, #070b12 52%, #090e17 100%);
  color: var(--as-ink);
  font-family: "Barlow", sans-serif;
}

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

.as-page button,
.as-page input,
.as-page textarea,
.as-page select {
  font: inherit;
}

.as-page button,
.as-page a {
  -webkit-tap-highlight-color: transparent;
}

.as-page button:focus-visible,
.as-page a:focus-visible,
.as-page input:focus-visible,
.as-page textarea:focus-visible,
.as-page select:focus-visible,
.as-page summary:focus-visible,
.as-page [tabindex]:focus-visible {
  outline: 3px solid var(--as-gold-bright);
  outline-offset: 3px;
}

.as-page button:disabled {
  cursor: not-allowed;
  opacity: .38;
  filter: saturate(.35);
}

.as-page section:not(.as-tour-card) {
  padding: 0;
}

.as-hero {
  width: min(1560px, 100%);
  min-height: 228px;
  margin: 0 auto 24px;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75, 145, 242, .18);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(13, 20, 32, .98) 0%, rgba(13, 20, 32, .93) 56%, rgba(20, 41, 70, .88) 100%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(83, 139, 219, .08) 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(83, 139, 219, .08) 32px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.as-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(215, 172, 63, .7), transparent 18%) top left / 48% 2px no-repeat;
}

.as-hero-copy {
  width: min(790px, 100%);
  position: relative;
  z-index: 1;
}

.as-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--as-gold-bright);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.as-eyebrow > span {
  width: 28px;
  height: 2px;
  background: currentColor;
  box-shadow: 6px 0 14px rgba(215, 172, 63, .5);
}

.as-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: .035em;
  text-wrap: balance;
}

.as-hero p {
  max-width: 730px;
  margin: 18px 0 0;
  color: #c1ccdb;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
}

.as-hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.as-hero-proof span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid var(--as-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .025);
  color: #b9c6d7;
  font-size: 12px;
  font-weight: 600;
}

.as-hero-proof span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--as-gold);
  box-shadow: 0 0 0 4px rgba(215, 172, 63, .1);
}

.as-hero-mark {
  width: 310px;
  height: 170px;
  flex: 0 0 310px;
  position: relative;
  opacity: .86;
}

.as-hero-mark::before,
.as-hero-mark::after {
  content: "";
  position: absolute;
  background: #26364c;
  border: 1px solid rgba(255, 255, 255, .08);
}

.as-hero-mark::before {
  width: 100%;
  height: 70px;
  left: 0;
  top: 50px;
  transform: skewX(-24deg);
}

.as-hero-mark::after {
  width: 70px;
  height: 100%;
  left: 120px;
  top: 0;
  transform: skewY(-24deg);
}

.as-hero-route {
  position: absolute;
  z-index: 2;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--as-gold) 0 16px, transparent 16px 27px);
}

.as-hero-route::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--as-gold);
}

.as-hero-route-a {
  width: 118px;
  left: 7px;
  top: 84px;
}

.as-hero-route-b {
  width: 92px;
  right: 19px;
  top: 80px;
  transform: rotate(90deg);
}

.as-hero-impact {
  width: 30px;
  height: 30px;
  position: absolute;
  z-index: 3;
  left: 143px;
  top: 69px;
  border: 1px solid rgba(242, 203, 100, .55);
  border-radius: 50%;
  box-shadow: 0 0 28px rgba(242, 203, 100, .38);
}

.as-hero-impact::before,
.as-hero-impact::after,
.as-hero-impact i::before,
.as-hero-impact i::after {
  content: "";
  width: 2px;
  height: 42px;
  position: absolute;
  left: 13px;
  top: -7px;
  background: var(--as-gold-bright);
  transform-origin: center;
}

.as-hero-impact::after { transform: rotate(90deg); }
.as-hero-impact i::before { transform: rotate(45deg); }
.as-hero-impact i::after { transform: rotate(-45deg); }

.as-hero-mark > span {
  position: absolute;
  z-index: 4;
  color: #dce8f8;
  font: 700 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .12em;
}

.as-hero-mark > span:first-of-type { left: 65px; top: 66px; }
.as-hero-mark > span:last-of-type { right: 66px; bottom: 34px; }

.as-noscript {
  width: min(1560px, 100%);
  margin: 0 auto 16px;
  padding: 16px 20px;
  border: 1px solid rgba(215, 172, 63, .45);
  border-radius: var(--as-radius);
  background: rgba(215, 172, 63, .08);
  color: #dce3ec;
  font-size: 14px;
  line-height: 1.6;
}

.as-noscript strong {
  display: block;
  color: var(--as-gold-bright);
}

.as-app {
  width: min(1560px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(119, 157, 207, .2);
  border-radius: 18px;
  background: var(--as-bg);
  box-shadow:
    0 45px 100px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .02) inset,
    0 0 80px rgba(46, 111, 202, .06);
}

.as-commandbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--as-line);
  background:
    linear-gradient(180deg, rgba(20, 31, 48, .98), rgba(12, 19, 30, .98)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(255,255,255,.015) 35px);
}

.as-commandbar-brand {
  min-width: 178px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.as-brand-beacon {
  width: 32px;
  height: 32px;
  position: relative;
  border: 1px solid rgba(75, 145, 242, .42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(75, 145, 242, .2), rgba(75, 145, 242, .04));
}

.as-brand-beacon::before,
.as-brand-beacon::after {
  content: "";
  position: absolute;
  background: var(--as-blue-bright);
}

.as-brand-beacon::before {
  width: 16px;
  height: 2px;
  left: 7px;
  top: 14px;
}

.as-brand-beacon::after {
  width: 2px;
  height: 16px;
  left: 14px;
  top: 7px;
}

.as-commandbar-brand strong,
.as-commandbar-brand small {
  display: block;
}

.as-commandbar-brand strong {
  color: #f5f8fd;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-commandbar-brand small {
  margin-top: 2px;
  color: var(--as-dim);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-command-actions,
.as-export-actions,
.as-review-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.as-command-actions {
  min-width: 0;
  flex-wrap: wrap;
}

.as-command-divider {
  width: 1px;
  height: 28px;
  margin: 0 3px;
  background: var(--as-line);
}

.as-button,
.as-icon-button,
.as-square-button,
.as-play-button,
.as-scenario,
.as-road,
.as-asset {
  min-height: 44px;
  border: 1px solid transparent;
  color: #c5d0df;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.as-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.as-button--quiet {
  border-color: rgba(148, 171, 202, .13);
  background: rgba(255, 255, 255, .025);
}

.as-button--quiet:hover:not(:disabled) {
  border-color: rgba(75, 145, 242, .38);
  background: rgba(75, 145, 242, .09);
  color: #fff;
}

.as-button--tour {
  border-color: rgba(244, 194, 70, .46);
  background: linear-gradient(135deg, rgba(244, 194, 70, .14), rgba(75, 145, 242, .11));
  color: #f7d875;
  box-shadow: inset 0 0 0 1px rgba(244, 194, 70, .04);
}

.as-button--tour > span {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 194, 70, .42);
  border-radius: 50%;
  background: rgba(244, 194, 70, .09);
  font-size: 11px;
}

.as-button--tour:hover:not(:disabled) {
  border-color: var(--as-gold-bright);
  background: linear-gradient(135deg, rgba(244, 194, 70, .22), rgba(75, 145, 242, .16));
  color: #fff2bd;
}

.as-button--gold {
  border-color: var(--as-gold);
  background: linear-gradient(135deg, var(--as-gold-bright), var(--as-gold));
  color: #111722;
  box-shadow: 0 8px 24px rgba(215, 172, 63, .12);
}

.as-button--gold:hover:not(:disabled) {
  background: #f6d577;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(215, 172, 63, .22);
}

.as-button--outline {
  border-color: rgba(75, 145, 242, .5);
  background: rgba(46, 111, 202, .09);
  color: #d9e9ff;
}

.as-button--outline:hover:not(:disabled) {
  border-color: var(--as-blue-bright);
  background: rgba(46, 111, 202, .18);
}

.as-button--danger {
  border-color: rgba(229, 104, 104, .18);
  background: rgba(229, 104, 104, .05);
  color: #f4a2a2;
}

.as-button--danger:hover:not(:disabled) {
  border-color: rgba(229, 104, 104, .55);
  background: rgba(229, 104, 104, .12);
}

.as-privacy {
  max-width: 270px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
}

.as-privacy-badge {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(90, 203, 147, .26);
  border-radius: 999px;
  background: rgba(90, 203, 147, .07);
  color: #8dd8b1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.as-privacy-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5acb93;
  box-shadow: 0 0 0 3px rgba(90, 203, 147, .1);
}

.as-privacy-copy {
  color: var(--as-dim);
  font-size: 11px;
  line-height: 1.35;
}

#studioDeleteDraft {
  min-height: 44px;
  grid-column: 1 / -1;
  justify-self: end;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #8c9db2;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#studioDeleteDraft:hover {
  color: #d0d9e5;
}

.as-workspace {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr) 280px;
  grid-template-areas: "library stage inspector";
  min-height: 680px;
  background: #080d15;
}

.as-library,
.as-inspector {
  min-width: 0;
  background: #0b111b;
}

.as-library {
  grid-area: library;
  max-height: 760px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--as-line);
  scrollbar-color: #26364b transparent;
  scrollbar-width: thin;
}

.as-library-guide {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 10px;
  padding: 15px 14px 14px;
  border: 1px solid rgba(244, 194, 70, .3);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(244, 194, 70, .105), rgba(46, 111, 202, .075)),
    #0a101a;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

.as-library-guide strong {
  margin-bottom: 0;
  color: #f3d376;
  font: 800 15px/1.2 "Barlow Condensed", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.as-library-guide p {
  margin: -1px 0 3px;
  color: #bcc8d7;
  font-size: 12px;
  line-height: 1.45;
}

.as-library-guide > span {
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d6dfeb;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.25;
}

.as-library-guide > span b {
  width: 25px;
  height: 25px;
  display: inline-flex;
  flex: 0 0 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(75, 145, 242, .2);
  color: #b8d6ff;
  font-size: 11px;
}

.as-library-guide > small {
  margin-top: 3px;
  padding: 9px 0 1px;
  border-top: 1px solid rgba(151, 177, 212, .12);
  color: #aebccc;
  font-size: 11px;
  line-height: 1.45;
}

#studioTutorialGuide {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding: 0 11px;
  border: 1px solid rgba(244, 194, 70, .42);
  border-radius: 7px;
  background: rgba(244, 194, 70, .09);
  color: #f7d875;
  cursor: pointer;
  font: 800 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#studioTutorialGuide:hover {
  border-color: var(--as-gold-bright);
  background: rgba(244, 194, 70, .15);
  color: #fff0b3;
}

#studioTutorialGuide:focus-visible {
  outline: 3px solid rgba(95, 170, 255, .9);
  outline-offset: 2px;
}

.as-inspector {
  grid-area: inspector;
  border-left: 1px solid var(--as-line);
}

.as-panel-heading {
  min-height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--as-line);
  background: linear-gradient(180deg, rgba(20, 30, 46, .8), rgba(12, 18, 29, .8));
}

.as-panel-heading > span {
  color: #edf3fb;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-panel-heading small {
  color: var(--as-dim);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.as-casefile {
  border-bottom: 1px solid var(--as-line);
}

.as-casefile-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  padding: 12px 14px 14px;
}

.as-casefile-fields .as-field {
  min-width: 0;
  margin-bottom: 0;
}

.as-casefile-fields .as-field--full {
  grid-column: 1 / -1;
}

.as-casefile-fields input[type="date"],
.as-casefile-fields textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 8px 10px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  outline: 0;
  background: #080d15;
  color: #edf3fb;
  color-scheme: dark;
  font-size: 11px;
  line-height: 1.35;
  resize: vertical;
  text-transform: none;
}

.as-casefile-fields textarea {
  min-height: 58px;
  max-height: 120px;
}

.as-casefile-fields input:focus,
.as-casefile-fields textarea:focus {
  border-color: var(--as-blue-bright);
  box-shadow: 0 0 0 3px rgba(75,145,242,.1);
}

.as-library-group {
  border-bottom: 1px solid rgba(151, 177, 212, .1);
}

.as-library-group summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #afbed1;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  list-style: none;
  text-transform: uppercase;
  user-select: none;
}

.as-library-group summary::-webkit-details-marker {
  display: none;
}

.as-library-group summary::after {
  content: "⌄";
  margin-left: auto;
  color: var(--as-dim);
  font-size: 14px;
  transition: transform .2s ease;
}

.as-library-group:not([open]) summary::after {
  transform: rotate(-90deg);
}

.as-library-group summary > span {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(75, 145, 242, .1);
  color: #7da7e3;
  font-size: 9px;
  text-align: center;
}

.as-scenario-grid {
  display: grid;
  gap: 7px;
  padding: 0 10px 12px;
}

.as-scenario {
  width: 100%;
  min-height: 74px;
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px;
  border-color: rgba(151, 177, 212, .12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(21, 32, 49, .9), rgba(13, 20, 32, .9));
  text-align: left;
}

.as-scenario:hover {
  border-color: rgba(75, 145, 242, .48);
  background: linear-gradient(135deg, rgba(37, 64, 101, .55), rgba(15, 25, 40, .96));
  transform: translateX(2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.as-scenario strong,
.as-scenario small {
  display: block;
}

.as-scenario strong {
  color: #e4ebf5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.as-scenario small {
  margin-top: 3px;
  color: var(--as-dim);
  font-size: 10px;
}

.as-mini {
  height: 58px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px;
  background-color: #202b39;
}

.as-mini::before,
.as-mini::after {
  content: "";
  position: absolute;
}

.as-mini--straight::before,
.as-mini--lanes::before {
  width: 100%;
  height: 24px;
  left: 0;
  top: 17px;
  background: #334152;
  border-block: 1px solid #526274;
}

.as-mini--straight::after,
.as-mini--lanes::after {
  width: 100%;
  height: 1px;
  left: 0;
  top: 29px;
  background: repeating-linear-gradient(90deg, #d5b95c 0 8px, transparent 8px 13px);
}

.as-mini--cross::before {
  width: 100%;
  height: 24px;
  left: 0;
  top: 17px;
  background: #334152;
}

.as-mini--cross::after {
  width: 24px;
  height: 100%;
  left: 27px;
  top: 0;
  background: #334152;
}

.as-mini--parking {
  background:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,.16) 12px 13px) 3px 4px / 65px 14px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(255,255,255,.16) 12px 13px) 3px 40px / 65px 14px no-repeat,
    #273342;
}

.as-mini--parking::before {
  width: 100%;
  height: 20px;
  left: 0;
  top: 19px;
  background: #354456;
}

.as-mini--crosswalk::before {
  width: 100%;
  height: 30px;
  left: 0;
  top: 14px;
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.22) 8px 12px),
    #344253;
}

.as-mini--crosswalk::after {
  width: 100%;
  height: 1px;
  left: 0;
  top: 29px;
  background: #d5b95c;
}

.as-mini-car {
  width: 7px;
  height: 15px;
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 2px;
  background: #4b91f2;
  box-shadow: 0 2px 5px rgba(0,0,0,.35);
}

.as-mini-car.car-b { background: #d35f64; }
.as-mini-car.car-c { background: #d8a94d; }

.as-mini b {
  width: 8px;
  height: 8px;
  position: absolute;
  z-index: 4;
  border-radius: 50%;
  background: var(--as-gold-bright);
  box-shadow: 0 0 0 3px rgba(242, 203, 100, .15), 0 0 10px rgba(242, 203, 100, .42);
}

.as-mini--straight .car-a { left: 31px; top: 32px; transform: rotate(90deg); }
.as-mini--straight .car-b { left: 46px; top: 32px; transform: rotate(90deg); }
.as-mini--straight b { left: 42px; top: 25px; }
.as-mini--cross .car-a { left: 18px; top: 21px; transform: rotate(90deg); }
.as-mini--cross .car-b { left: 37px; top: 9px; }
.as-mini--cross b { left: 34px; top: 24px; }
.as-mini--lanes .car-a { left: 26px; top: 11px; transform: rotate(90deg); }
.as-mini--lanes .car-b { left: 43px; top: 34px; transform: rotate(68deg); }
.as-mini--lanes b { left: 40px; top: 26px; }
.as-mini--parking .car-a { left: 20px; top: 5px; }
.as-mini--parking .car-b { left: 37px; top: 27px; transform: rotate(55deg); }
.as-mini--parking b { left: 33px; top: 24px; }
.as-mini--multi .car-a { left: 20px; }
.as-mini--multi .car-b { left: 37px; }
.as-mini--multi .car-c { left: 54px; top: 32px; transform: rotate(90deg); }
.as-mini--multi b { left: 33px; }
.as-mini--crosswalk .car-a { left: 16px; top: 25px; transform: rotate(90deg); }
.as-mini--crosswalk b { left: 38px; top: 25px; }

.as-mini-person {
  width: 6px;
  height: 6px;
  position: absolute;
  z-index: 3;
  left: 51px;
  top: 19px;
  border-radius: 50%;
  background: #8fdfa9;
}

.as-mini-person::after {
  content: "";
  width: 2px;
  height: 13px;
  position: absolute;
  left: 2px;
  top: 5px;
  background: #8fdfa9;
}

.as-road-grid,
.as-asset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 0 10px 12px;
}

.as-road,
.as-asset {
  min-width: 0;
  padding: 7px 5px;
  border-color: rgba(151, 177, 212, .1);
  border-radius: 7px;
  background: rgba(255, 255, 255, .018);
  color: #96a5b9;
  font-size: 10px;
}

.as-road {
  min-height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.as-road:hover,
.as-asset:hover {
  border-color: rgba(75, 145, 242, .38);
  background: rgba(75, 145, 242, .07);
  color: #e6eef9;
}

.as-road[aria-pressed="true"],
.as-road.is-active {
  border-color: rgba(75, 145, 242, .72);
  background: linear-gradient(145deg, rgba(46, 111, 202, .2), rgba(46, 111, 202, .06));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(75, 145, 242, .08) inset, 0 6px 18px rgba(0,0,0,.16);
}

.as-road-icon {
  width: 48px;
  height: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 4px;
  background: #202c3a;
}

.as-road-icon::before,
.as-road-icon::after {
  content: "";
  position: absolute;
  background: #3a4859;
}

.as-road-icon--4way::before,
.as-road-icon--t::before {
  width: 100%;
  height: 10px;
  left: 0;
  top: 11px;
}

.as-road-icon--4way::after {
  width: 10px;
  height: 100%;
  left: 19px;
  top: 0;
}

.as-road-icon--t::after {
  width: 10px;
  height: 21px;
  left: 19px;
  top: 0;
}

.as-road-icon--straight::before,
.as-road-icon--highway::before {
  width: 100%;
  height: 16px;
  left: 0;
  top: 8px;
}

.as-road-icon--straight::after,
.as-road-icon--highway::after {
  width: 100%;
  height: 1px;
  left: 0;
  top: 15px;
  background: repeating-linear-gradient(90deg, #d3b65d 0 6px, transparent 6px 10px);
}

.as-road-icon--highway::before { height: 24px; top: 4px; }

.as-road-icon--highway::after {
  height: 8px;
  top: 12px;
  border-block: 1px solid rgba(255,255,255,.45);
  background: #283544;
}

.as-road-icon--curve::before {
  width: 42px;
  height: 42px;
  left: -12px;
  top: 8px;
  border: 9px solid #3a4859;
  border-radius: 50%;
  background: transparent;
}

.as-road-icon--curve::after {
  width: 1px;
  height: 26px;
  right: 10px;
  top: -1px;
  transform: rotate(24deg);
  background: #d3b65d;
}

.as-road-icon--parking {
  background:
    repeating-linear-gradient(90deg, transparent 0 8px, rgba(255,255,255,.22) 8px 9px),
    #202c3a;
}

.as-road-icon--parking::before {
  width: 100%;
  height: 10px;
  left: 0;
  top: 11px;
}

.as-road-icon--roundabout::before {
  width: 23px;
  height: 23px;
  left: 12px;
  top: 4px;
  border: 7px solid #3a4859;
  border-radius: 50%;
  background: transparent;
}

.as-road-icon--roundabout::after {
  width: 100%;
  height: 7px;
  left: 0;
  top: 12px;
}

.as-road-icon--blank {
  background:
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(75,145,242,.08) 7px 8px),
    repeating-linear-gradient(90deg, transparent 0 7px, rgba(75,145,242,.08) 7px 8px),
    #182331;
}

.as-road-icon--blank::before,
.as-road-icon--blank::after { display: none; }

.as-asset {
  min-height: 63px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  isolation: isolate;
}

.as-asset::after {
  content: "+";
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 5px;
  top: 5px;
  border: 1px solid rgba(142, 190, 255, .44);
  border-radius: 50%;
  background: #172b46;
  color: #b9d7ff;
  font: 800 14px/1 "Barlow", sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .22);
}

.as-asset:hover::after,
.as-asset:focus-visible::after {
  border-color: rgba(244, 203, 100, .82);
  background: #3b321b;
  color: #ffdf82;
}

.as-asset-glyph {
  min-width: 28px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #e4ebf5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .04em;
}

.as-glyph--you,
.as-glyph--other,
.as-glyph--suv,
.as-glyph--truck,
.as-glyph--emergency {
  width: 22px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 5px;
  background: #357bd8;
  box-shadow: 0 -4px 0 rgba(255,255,255,.12) inset;
}

.as-glyph--other { background: #b64c55; }
.as-glyph--suv { width: 24px; background: #626f80; }
.as-glyph--truck { width: 26px; background: #8d682e; }
.as-glyph--emergency { width: 26px; background: #eceff3; color: #b52f3a; }
.as-glyph--emergency::before {
  content: "";
  width: 10px;
  height: 3px;
  position: absolute;
  top: -4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #e04d55 50%, #4b91f2 50%);
}

.as-glyph--moto {
  width: 11px;
  border: 2px solid #a680dd;
  border-radius: 8px;
}

.as-glyph--cycle {
  width: 32px;
  color: #7fc9c5;
  font-size: 8px;
}

.as-glyph--person {
  color: #80d8a1;
  font-size: 15px;
}

.as-glyph--person::after {
  content: "";
  width: 3px;
  height: 13px;
  position: absolute;
  left: 50%;
  top: 12px;
  background: #80d8a1;
}

.as-glyph--impact {
  color: var(--as-gold-bright);
  font-size: 26px;
  text-shadow: 0 0 12px rgba(242, 203, 100, .46);
}

.as-glyph--sign {
  width: 29px;
  min-height: 27px;
  clip-path: polygon(30% 0,70% 0,100% 30%,100% 70%,70% 100%,30% 100%,0 70%,0 30%);
  background: #a53e46;
  color: #fff;
  font-size: 6px;
}

.as-glyph--light {
  width: 13px;
  min-width: 13px;
  border-radius: 4px;
  background: linear-gradient(#e75c64 0 29%, #caa33e 30% 64%, #57bd82 65%);
  color: transparent;
}

.as-glyph--cone { color: #ed9f43; font-size: 23px; }
.as-glyph--debris { color: #d5c9b2; font-size: 22px; }
.as-glyph--skid { color: #707f91; font-size: 25px; transform: rotate(-20deg); }
.as-glyph--north { color: var(--as-gold-bright); font-size: 14px; }
.as-glyph--text { color: #cdd9e9; font: 700 17px/1 "Barlow", sans-serif; }

.as-stage {
  grid-area: stage;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(420px, 1fr) auto;
  background: #080d15;
}

.as-stage-toolbar {
  min-height: 58px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--as-line);
  background: linear-gradient(180deg, #101827, #0b121d);
}

.as-add-object-button {
  min-height: 44px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(244, 194, 70, .66);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(244, 194, 70, .2), rgba(46, 111, 202, .14));
  color: #f8d977;
  cursor: pointer;
  font: 800 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.as-add-object-button > span {
  font: 700 18px/1 "Barlow", sans-serif;
}

.as-add-object-button:hover {
  border-color: #f2cb64;
  background: linear-gradient(145deg, rgba(244, 194, 70, .3), rgba(46, 111, 202, .2));
  color: #fff2bd;
  box-shadow: 0 0 0 3px rgba(244, 194, 70, .07);
}

.as-tool-group,
.as-zoom-tools {
  display: flex;
  align-items: center;
  gap: 5px;
}

.as-object-rotate-tools {
  min-height: 44px;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--as-line);
}

.as-object-rotate-tools > span {
  margin-right: 3px;
  color: #7f91a9;
  font: 700 9px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.as-object-rotate-tools .as-square-button {
  width: 44px;
  min-height: 44px;
  flex-basis: 44px;
}

.as-object-rotate-tools #studioRotateSnap {
  font-size: 11px;
  font-weight: 800;
}

.as-icon-button,
.as-square-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(151, 177, 212, .12);
  border-radius: 7px;
  background: rgba(255,255,255,.02);
}

.as-icon-button {
  gap: 6px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
}

.as-icon-button > span[aria-hidden] {
  color: #91b9ef;
  font-size: 17px;
}

.as-icon-button kbd {
  min-width: 17px;
  padding: 2px 4px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  background: rgba(255,255,255,.025);
  color: #65758a;
  font: 600 8px/1.2 "Barlow", sans-serif;
}

.as-icon-button:hover,
.as-square-button:hover:not(:disabled) {
  border-color: rgba(75, 145, 242, .42);
  background: rgba(75,145,242,.08);
  color: #fff;
}

.as-icon-button[aria-pressed="true"],
.as-icon-button.is-active,
.as-square-button[aria-pressed="true"],
.as-square-button.is-active {
  border-color: rgba(75, 145, 242, .7);
  background: linear-gradient(145deg, rgba(46,111,202,.32), rgba(46,111,202,.1));
  color: #fff;
  box-shadow: 0 0 14px rgba(46,111,202,.1) inset;
}

.as-square-button {
  width: 44px;
  flex: 0 0 44px;
  padding: 0;
  font-size: 18px;
}

.as-toolbar-rule {
  width: 1px;
  height: 26px;
  background: var(--as-line);
}

.as-zoom-tools {
  margin-left: auto;
}

.as-zoom-tools output {
  min-width: 44px;
  color: #92a2b6;
  font-size: 10px;
  text-align: center;
}

.as-fit-button {
  min-width: 50px;
  padding-inline: 10px;
}

.as-stage-status {
  min-height: 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(151, 177, 212, .1);
  background: #0a101a;
}

#studioStatus {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a9bad0;
  font-size: 11px;
  font-weight: 600;
}

#studioStatus > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--as-blue-bright);
  box-shadow: 0 0 0 4px rgba(75,145,242,.1);
}

.as-stage-hint {
  color: #8394aa;
  font-size: 11px;
  white-space: nowrap;
}

.as-viewport {
  min-width: 0;
  min-height: 420px;
  max-height: 650px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #31445e #0b111b;
  scrollbar-width: thin;
  background:
    radial-gradient(circle at center, rgba(46,111,202,.09), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(104,140,190,.055) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(104,140,190,.055) 23px 24px),
    #080d15;
}

.as-canvas-mat {
  width: min(100%, 1120px);
  min-width: 680px;
  margin: clamp(18px, 3vw, 34px) auto;
  padding: 13px;
  position: relative;
  border: 1px solid rgba(94, 132, 181, .22);
  background: #111927;
  box-shadow:
    0 24px 58px rgba(0,0,0,.42),
    0 0 0 1px rgba(255,255,255,.02) inset;
}

#studioCanvas {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  display: block;
  position: relative;
  z-index: 1;
  background: #eef1f3;
  cursor: crosshair;
  touch-action: none;
}

#studioCanvas[data-tool="select"] {
  cursor: default;
}

#studioCanvas[data-tool="pan"],
#studioCanvas.is-pan-ready {
  cursor: grab;
}

#studioCanvas.is-panning,
#studioCanvas.is-rotating {
  cursor: grabbing;
}

#studioCanvas.is-rotate-ready {
  cursor: grab;
}

.as-canvas-corners {
  position: absolute;
  inset: 5px;
  z-index: 2;
  pointer-events: none;
}

.as-canvas-corners i {
  width: 18px;
  height: 18px;
  position: absolute;
  border-color: rgba(215, 172, 63, .75);
  border-style: solid;
}

.as-canvas-corners i:nth-child(1) { left: 0; top: 0; border-width: 2px 0 0 2px; }
.as-canvas-corners i:nth-child(2) { right: 0; top: 0; border-width: 2px 2px 0 0; }
.as-canvas-corners i:nth-child(3) { right: 0; bottom: 0; border-width: 0 2px 2px 0; }
.as-canvas-corners i:nth-child(4) { left: 0; bottom: 0; border-width: 0 0 2px 2px; }

.as-stage-footer {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr);
  gap: 15px;
  align-items: center;
  padding: 9px 14px;
  border-top: 1px solid var(--as-line);
  background: #0d1420;
}

.as-mobile-library-trigger {
  display: none;
}

#sceneSummary {
  min-width: 0;
}

#sceneSummary strong,
#sceneSummary span {
  display: block;
}

#sceneSummary strong {
  color: #b6c5d7;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#sceneSummary span {
  margin-top: 3px;
  overflow: hidden;
  color: #8b9db3;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-background-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8293aa;
  font-size: 11px;
  line-height: 1.35;
}

.as-background-note > span:first-child {
  color: #7c9dca;
  font-size: 14px;
}

.as-background-note strong {
  color: #96a9c0;
}

.as-inspector-empty {
  min-height: 238px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  text-align: center;
}

.as-inspector-empty[hidden] {
  display: none;
}

.as-inspector-target {
  width: 62px;
  height: 62px;
  position: relative;
  margin-bottom: 15px;
  border: 1px dashed rgba(75, 145, 242, .32);
  border-radius: 50%;
}

.as-inspector-target::before,
.as-inspector-target::after {
  content: "";
  position: absolute;
  background: rgba(75, 145, 242, .42);
}

.as-inspector-target::before {
  width: 1px;
  height: 82px;
  left: 30px;
  top: -11px;
}

.as-inspector-target::after {
  width: 82px;
  height: 1px;
  left: -11px;
  top: 30px;
}

.as-inspector-target i {
  width: 11px;
  height: 11px;
  position: absolute;
  left: 25px;
  top: 25px;
  border: 2px solid var(--as-gold);
  border-radius: 50%;
  background: #0b111b;
  box-shadow: 0 0 15px rgba(215,172,63,.3);
}

.as-inspector-empty strong {
  color: #c6d1df;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.as-inspector-empty p {
  max-width: 220px;
  margin: 8px 0 0;
  color: #687990;
  font-size: 11px;
  line-height: 1.55;
}

.as-inspector-fields {
  padding: 14px;
  border-bottom: 1px solid var(--as-line);
}

.as-inspector-fields[hidden] {
  display: none;
}

.as-field,
.as-lock-toggle {
  display: block;
  margin-bottom: 14px;
  color: #94a6bd;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-field > span {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.as-field output {
  color: #687b94;
  font-size: 9px;
}

.as-field input[type="text"] {
  width: 100%;
  min-height: 44px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  outline: 0;
  background: #080d15;
  color: #edf3fb;
  font-size: 12px;
  text-transform: none;
}

.as-field input[type="text"]:focus {
  border-color: var(--as-blue-bright);
  box-shadow: 0 0 0 3px rgba(75,145,242,.1);
}

.as-field-row {
  display: grid;
  grid-template-columns: 62px minmax(0,1fr);
  gap: 12px;
}

.as-field--color input[type="color"] {
  width: 100%;
  height: 44px;
  margin-top: 5px;
  padding: 3px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  background: #080d15;
  cursor: pointer;
}

.as-field input[type="range"] {
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  accent-color: var(--as-blue-bright);
  cursor: pointer;
}

.as-rotation-help {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: -5px 0 13px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 194, 70, .17);
  border-radius: 7px;
  background: rgba(244, 194, 70, .055);
  color: #91a4bb;
  font-size: 10px;
  line-height: 1.4;
  text-transform: none;
}

.as-rotation-help[hidden] {
  display: none;
}

.as-rotation-help > span {
  color: #f2cb64;
  font-size: 17px;
  line-height: 1;
}

.as-lock-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0 14px;
  cursor: pointer;
}

.as-lock-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.as-lock-toggle > span {
  width: 34px;
  height: 20px;
  position: relative;
  border: 1px solid var(--as-line-strong);
  border-radius: 999px;
  background: #080d15;
  transition: .18s ease;
}

.as-lock-toggle > span::after {
  content: "";
  width: 14px;
  height: 14px;
  position: absolute;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #718198;
  transition: transform .18s ease, background .18s ease;
}

.as-lock-toggle input:checked + span {
  border-color: var(--as-blue-bright);
  background: rgba(46,111,202,.35);
}

.as-lock-toggle input:checked + span::after {
  transform: translateX(14px);
  background: #fff;
}

.as-lock-toggle input:focus-visible + span {
  outline: 3px solid var(--as-gold-bright);
  outline-offset: 3px;
}

.as-inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.as-inspector-actions .as-button {
  width: 100%;
  padding-inline: 8px;
}

.as-layers {
  border-top: 1px solid rgba(255,255,255,.025);
}

.as-layers-heading {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--as-line);
}

.as-layers-heading h2 {
  margin: 0;
  color: #b5c3d5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 12px;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.as-layers-heading small {
  color: #5e6e82;
  font-size: 9px;
}

#studioLayers {
  min-height: 150px;
  max-height: 285px;
  overflow-y: auto;
  padding: 8px;
}

.as-layers-empty,
.studio-layers-empty {
  margin: 0;
  padding: 22px 12px;
  color: #8192a8;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

#studioLayers [role="listitem"],
#studioLayers button {
  width: 100%;
  min-height: 44px;
}

.studio-layer {
  display: grid;
  grid-template-columns: minmax(62px, 1fr) repeat(4, 44px);
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 177, 212, .12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(20, 31, 47, .88), rgba(12, 19, 30, .9));
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.studio-layer::before {
  content: "";
  width: 2px;
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  border-radius: 0 2px 2px 0;
  background: transparent;
  transition: background .18s ease, box-shadow .18s ease;
}

.studio-layer:hover {
  border-color: rgba(75, 145, 242, .32);
  background: linear-gradient(135deg, rgba(27, 45, 70, .9), rgba(13, 21, 34, .94));
}

.studio-layer.is-selected {
  border-color: rgba(75, 145, 242, .62);
  background:
    linear-gradient(90deg, rgba(46, 111, 202, .15), transparent 48%),
    linear-gradient(135deg, rgba(25, 42, 66, .95), rgba(12, 20, 32, .95));
  box-shadow: 0 0 0 1px rgba(75, 145, 242, .08) inset, 0 7px 22px rgba(0, 0, 0, .18);
}

.studio-layer.is-selected::before {
  background: var(--as-blue-bright);
  box-shadow: 0 0 12px rgba(75, 145, 242, .55);
}

.studio-layer > button {
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(151, 177, 212, .1);
  border-radius: 6px;
  background: rgba(255, 255, 255, .018);
  color: #93a5bc;
  cursor: pointer;
  font-size: 0;
  font-weight: 700;
  transition: color .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease, transform .16s ease;
}

.studio-layer > button:hover:not(:disabled) {
  border-color: rgba(75, 145, 242, .42);
  background: rgba(75, 145, 242, .09);
  color: #e9f2ff;
  transform: translateY(-1px);
}

.studio-layer > button:active:not(:disabled) {
  transform: translateY(0);
}

.studio-layer > button:disabled {
  opacity: .32;
}

.studio-layer-select {
  display: block;
  overflow: hidden;
  padding: 0 9px !important;
  color: #c7d3e2 !important;
  font-size: 11px !important;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-layer-select[aria-current="true"] {
  border-color: rgba(75, 145, 242, .44);
  background: rgba(46, 111, 202, .12);
  color: #fff !important;
}

.studio-layer-select.is-hidden {
  color: #8291a5 !important;
  opacity: .62;
  text-decoration: line-through;
  text-decoration-color: rgba(229, 104, 104, .85);
}

.studio-layer-visibility::before,
.studio-layer-lock::before,
.studio-layer-up::before,
.studio-layer-down::before {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 9px;
  letter-spacing: .05em;
}

.studio-layer-visibility::before { content: "OFF"; }
.studio-layer-visibility[aria-pressed="true"]::before { content: "ON"; }
.studio-layer-lock::before { content: "FREE"; }
.studio-layer-lock[aria-pressed="true"]::before { content: "LOCK"; }
.studio-layer-up::before { content: "↑"; font-size: 17px; }
.studio-layer-down::before { content: "↓"; font-size: 17px; }

.studio-layer-visibility[aria-pressed="true"] {
  border-color: rgba(90, 203, 147, .25);
  background: rgba(90, 203, 147, .07);
  color: #8dd8b1;
}

.studio-layer-visibility[aria-pressed="false"] {
  border-color: rgba(229, 104, 104, .2);
  background: rgba(229, 104, 104, .055);
  color: #e99a9a;
}

.studio-layer-lock[aria-pressed="true"] {
  border-color: rgba(215, 172, 63, .34);
  background: rgba(215, 172, 63, .09);
  color: var(--as-gold-bright);
}

.studio-layer-lock[aria-pressed="false"] {
  color: #94a7bf;
}

.as-timeline {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  border-top: 1px solid var(--as-line);
  background: #0a1019;
}

.as-timeline-heading {
  padding: 15px;
  border-right: 1px solid var(--as-line);
}

.as-timeline-heading > div:first-child strong,
.as-timeline-kicker {
  display: block;
}

.as-timeline-kicker,
.as-export-kicker {
  color: var(--as-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-timeline-heading > div:first-child strong {
  margin-top: 5px;
  color: #c4cfdd;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  line-height: 1.25;
  text-transform: uppercase;
}

.as-step-name-editor {
  display: block;
  margin-top: 12px;
  color: #7f91a8;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.as-step-name-editor input {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  padding: 8px 9px;
  border: 1px solid var(--as-line);
  border-radius: 6px;
  outline: 0;
  background: #070c14;
  color: #e7edf6;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  text-transform: none;
}

.as-step-name-editor input:focus {
  border-color: var(--as-blue-bright);
  box-shadow: 0 0 0 3px rgba(75, 145, 242, .1);
}

.as-timeline-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
}

.as-play-button {
  min-width: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-color: rgba(75,145,242,.4);
  border-radius: 7px;
  background: rgba(46,111,202,.13);
  color: #dceaff;
  font-size: 11px;
  font-weight: 700;
}

.as-play-button:hover {
  border-color: var(--as-blue-bright);
  background: rgba(46,111,202,.23);
}

.as-filmstrip-wrap {
  min-width: 0;
  padding: 12px 14px;
}

.as-filmstrip {
  min-height: 94px;
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px 1px 8px;
  scrollbar-color: #2d4059 transparent;
  scrollbar-width: thin;
}

.as-filmstrip [role="listitem"] {
  flex: 0 0 142px;
}

.studio-step-wrap {
  min-width: 0;
  display: block;
}

.studio-step {
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: 76px 27px;
  align-items: center;
  gap: 0 5px;
  padding: 5px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(151, 177, 212, .16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(75, 145, 242, .08) 10px 11px, transparent 11px 22px),
    linear-gradient(0deg, transparent 0 10px, rgba(75, 145, 242, .06) 10px 11px, transparent 11px 22px),
    linear-gradient(145deg, #162235, #0d1522);
  color: #d4dfed;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18);
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.as-step-preview {
  width: 100%;
  height: 72px;
  grid-column: 1 / -1;
  grid-row: 1;
  display: block;
  border: 1px solid rgba(151, 177, 212, .12);
  border-radius: 5px;
  background: #dce1e5;
  object-fit: cover;
}

.studio-step::after {
  content: "";
  height: 2px;
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  border-radius: 2px;
  background: rgba(75, 145, 242, .22);
  transform: scaleX(.22);
  transform-origin: left;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.as-step-number {
  grid-column: 1;
  grid-row: 2;
  color: #82a9df;
  font-family: "Bebas Neue", sans-serif;
  font-size: 19px;
  letter-spacing: .06em;
  line-height: 1;
  text-align: center;
}

.studio-step:hover:not(:disabled) {
  border-color: rgba(75, 145, 242, .5);
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(75, 145, 242, .1) 10px 11px, transparent 11px 22px),
    linear-gradient(0deg, transparent 0 10px, rgba(75, 145, 242, .08) 10px 11px, transparent 11px 22px),
    linear-gradient(145deg, #1d3150, #101a2a);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

.studio-step:active:not(:disabled) {
  transform: translateY(0);
}

.studio-step.is-active,
.studio-step[aria-current="step"] {
  border-color: rgba(215, 172, 63, .82);
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(215, 172, 63, .08) 10px 11px, transparent 11px 22px),
    linear-gradient(0deg, transparent 0 10px, rgba(215, 172, 63, .06) 10px 11px, transparent 11px 22px),
    linear-gradient(145deg, rgba(75, 58, 22, .82), #131a24 68%);
  color: var(--as-gold-bright);
  box-shadow: 0 0 0 1px rgba(215, 172, 63, .08) inset, 0 8px 26px rgba(215, 172, 63, .12);
}

.studio-step.is-active::after,
.studio-step[aria-current="step"]::after {
  background: var(--as-gold-bright);
  box-shadow: 0 0 9px rgba(242, 203, 100, .42);
  transform: scaleX(1);
}

.studio-step:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.studio-step-name {
  display: block;
  min-width: 0;
  grid-column: 2;
  grid-row: 2;
  overflow: hidden;
  padding: 0 3px 0 0;
  color: #8fa0b6;
  font-family: "Barlow", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-step.is-active .studio-step-name,
.studio-step[aria-current="step"] .studio-step-name {
  color: #d6c184;
}

.studio-step.is-active .as-step-number,
.studio-step[aria-current="step"] .as-step-number {
  color: var(--as-gold-bright);
}

.studio-step-wrap:focus-within .studio-step-name {
  color: #d6e2f1;
}

.as-step-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
}

.as-exportbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px 20px;
  border-top: 1px solid rgba(215,172,63,.2);
  background:
    linear-gradient(100deg, rgba(215,172,63,.055), transparent 42%),
    #0d1420;
}

.as-exportbar > div:first-child strong,
.as-exportbar > div:first-child small {
  display: block;
}

.as-exportbar > div:first-child strong {
  margin-top: 4px;
  color: #edf3fa;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.as-exportbar > div:first-child small {
  margin-top: 4px;
  color: #718198;
  font-size: 10px;
}

.as-export-actions .as-button {
  min-height: 48px;
  padding-inline: 18px;
}

.as-button--send {
  box-shadow:
    0 8px 24px rgba(215, 172, 63, .16),
    0 0 0 1px rgba(255, 255, 255, .12) inset;
}

.as-send-panel[hidden],
.as-send-success[hidden] {
  display: none !important;
}

.as-send-panel {
  position: relative;
  scroll-margin-top: 96px;
  padding: clamp(28px, 4vw, 50px);
  border-top: 1px solid rgba(244, 194, 70, .26);
  background:
    radial-gradient(circle at 4% 5%, rgba(244, 194, 70, .11), transparent 30%),
    radial-gradient(circle at 94% 12%, rgba(75, 145, 242, .12), transparent 34%),
    linear-gradient(145deg, #111a28 0%, #0a111c 52%, #0e1724 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .025) inset,
    0 -18px 50px rgba(0, 0, 0, .24);
}

.as-send-close {
  right: 18px;
  top: 18px;
}

.as-send-intro {
  max-width: 760px;
  padding-right: 58px;
}

.as-send-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f2cf69;
  font: 800 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.as-send-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--as-gold);
  box-shadow: 0 0 12px rgba(244, 194, 70, .44);
}

.as-send-intro h2 {
  margin: 9px 0 0;
  color: #fff;
  font: 400 clamp(32px, 4vw, 46px)/1 "Bebas Neue", sans-serif;
  letter-spacing: .025em;
}

#studioSendPanelTitle:focus-visible {
  outline: 2px solid rgba(95, 170, 255, .72);
  outline-offset: 5px;
  border-radius: 2px;
}

#studioSendPanelTitle:focus:not(:focus-visible) {
  outline: 0;
}

.as-send-intro p {
  max-width: 690px;
  margin: 11px 0 0;
  color: #afbdd0;
  font-size: 14px;
  line-height: 1.6;
}

.as-send-layout {
  display: grid;
  grid-template-columns: minmax(300px, .88fr) minmax(420px, 1.12fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: 28px;
  align-items: start;
}

.as-send-preview-card,
.as-send-form-mount {
  min-width: 0;
  border: 1px solid rgba(132, 163, 204, .15);
  border-radius: 13px;
  background: rgba(6, 11, 18, .55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

.as-send-preview-card {
  overflow: hidden;
}

.as-send-preview-frame {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(132, 163, 204, .15);
  background:
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    linear-gradient(45deg, rgba(255,255,255,.025) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.025) 75%),
    #080e17;
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.as-send-preview-frame img {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 1;
  object-fit: contain;
}

.as-send-preview-frame img:not([src]) {
  display: none;
}

.as-send-preview-frame > span {
  color: #8ea1b9;
  font-size: 12px;
}

.as-send-included {
  padding: 18px;
}

.as-send-included > span,
.as-send-form-heading > span {
  color: #8dbdff;
  font: 800 10px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-send-included dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 13px 0 0;
  overflow: hidden;
  border: 1px solid rgba(132, 163, 204, .12);
  border-radius: 8px;
  background: rgba(132, 163, 204, .12);
}

.as-send-included dl > div {
  min-width: 0;
  padding: 10px 11px;
  background: #0d1623;
}

.as-send-included dt {
  color: #70839c;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.as-send-included dd {
  margin: 4px 0 0;
  overflow: hidden;
  color: #e5edf7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-send-included dl > .as-send-included-notes {
  grid-column: 1 / -1;
}

.as-send-included-notes dd {
  max-height: 88px;
  overflow: auto;
  padding-right: 5px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.as-send-included > p {
  display: flex;
  gap: 8px;
  margin: 13px 0 0;
  color: #8799ae;
  font-size: 10px;
  line-height: 1.5;
}

.as-send-included > p > span {
  flex: 0 0 auto;
  color: #77c99d;
}

.as-send-form-mount {
  padding: clamp(20px, 3vw, 30px);
}

.as-send-form-heading h3,
.as-send-success h3 {
  margin: 6px 0 0;
  color: #fff;
  font: 400 29px/1.05 "Bebas Neue", sans-serif;
  letter-spacing: .03em;
}

.as-send-form-heading p {
  margin: 8px 0 0;
  color: #95a7be;
  font-size: 12px;
  line-height: 1.5;
}

.as-send-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 19px;
}

.as-send-field {
  min-width: 0;
  color: #aebdd0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.as-send-field--wide {
  grid-column: 1 / -1;
}

.as-send-field > span {
  display: block;
  margin-bottom: 6px;
}

.as-send-field b {
  color: #f1c75c;
}

.as-send-field input,
.as-send-field textarea {
  width: 100%;
  border: 1px solid rgba(132, 163, 204, .18);
  border-radius: 7px;
  background: #080e17;
  color: #f1f5fa;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.as-send-field input {
  min-height: 46px;
  padding: 10px 12px;
}

.as-send-field textarea {
  min-height: 98px;
  padding: 11px 12px;
  line-height: 1.45;
  resize: vertical;
}

.as-send-field input:focus,
.as-send-field textarea:focus {
  border-color: var(--as-blue-bright);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(75, 145, 242, .11);
}

.as-send-field textarea::placeholder {
  color: #566a84;
}

.as-send-options {
  display: grid;
  gap: 9px;
  margin-top: 15px;
}

.as-send-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #8799b0;
  cursor: pointer;
  font-size: 10px;
  line-height: 1.45;
}

.as-send-check input {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 1px 0 0;
  accent-color: var(--as-gold-bright);
}

.as-send-check > span {
  min-width: 0;
}

.as-send-check strong,
.as-send-check small {
  display: block;
}

.as-send-check strong {
  color: #e8eef7;
  font-size: 12px;
}

.as-send-check small {
  margin-top: 3px;
  color: #788ba3;
  font-size: 10px;
}

.as-send-check--diagram {
  padding: 11px;
  border: 1px solid rgba(244, 194, 70, .17);
  border-radius: 8px;
  background: rgba(244, 194, 70, .055);
}

.as-send-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 17px;
}

.as-send-form-status {
  min-height: 18px;
  margin: 9px 0 0;
  color: #8ea1b9;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.as-send-form-status[data-kind="error"] {
  color: #f3a5a5;
}

.as-send-form-status[data-kind="success"] {
  color: #8dd6aa;
}

.as-send-legal {
  margin: 8px 0 0;
  color: #62748c;
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.as-send-honeypot {
  display: none !important;
}

.as-send-success {
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 34px 24px;
  text-align: center;
}

.as-send-success > span {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(119, 201, 157, .42);
  border-radius: 50%;
  background: rgba(119, 201, 157, .1);
  color: #8fe0b2;
  font-size: 25px;
}

.as-send-success.is-unconfirmed > span {
  border-color: rgba(242, 207, 105, .55);
  background: rgba(242, 207, 105, .12);
  color: #f2cf69;
  font-weight: 800;
}

.as-send-success p {
  max-width: 380px;
  margin: 11px auto 0;
  color: #a7b5c7;
  font-size: 13px;
  line-height: 1.55;
}

.as-send-success a {
  margin-top: 18px;
  color: #f2cf69;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.as-review,
.as-related,
.as-disclaimer,
.as-content {
  width: min(1120px, 100%);
  margin-inline: auto;
}

.as-review {
  margin-top: 42px;
  padding: clamp(28px, 4.5vw, 54px) clamp(24px, 5vw, 62px) !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(75,145,242,.32);
  border-radius: 14px;
  background:
    radial-gradient(circle at 90% 10%, rgba(75,145,242,.18), transparent 19rem),
    linear-gradient(115deg, #111b2a, #0c131f);
  box-shadow: 0 26px 65px rgba(0,0,0,.25);
}

.as-review::before {
  content: "";
  width: 3px;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(var(--as-gold-bright), var(--as-blue-bright));
}

.as-review h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 400;
  letter-spacing: .035em;
  line-height: 1.02;
  text-wrap: balance;
}

.as-review p {
  max-width: 700px;
  margin: 12px 0 0;
  color: #aebed1;
  font-size: 14px;
  line-height: 1.65;
}

.as-review-actions {
  min-width: 250px;
  flex-direction: column;
}

.as-review-primary,
.as-review-secondary {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 20px;
  border-radius: 7px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .07em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: .2s ease;
}

.as-review-primary {
  background: linear-gradient(135deg, var(--as-gold-bright), var(--as-gold));
  color: #111722;
  box-shadow: 0 12px 30px rgba(215,172,63,.15);
}

.as-review-primary:hover {
  transform: translateY(-2px);
  background: #f5d371;
}

.as-review-secondary {
  border: 1px solid rgba(75,145,242,.4);
  background: rgba(46,111,202,.09);
  color: #d9e9ff;
}

.as-review-secondary:hover {
  border-color: var(--as-blue-bright);
  background: rgba(46,111,202,.18);
}

.as-related {
  display: grid;
  grid-template-columns: .9fr 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.as-related-heading,
.as-related a {
  min-height: 104px;
  padding: 18px 20px;
  border: 1px solid var(--as-line);
  border-radius: 10px;
  background: rgba(13,20,32,.74);
}

.as-related-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.as-related-heading span {
  color: var(--as-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.as-related-heading strong {
  margin-top: 5px;
  color: #d8e1ed;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
}

.as-related a {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
  transition: .2s ease;
}

.as-related a:hover {
  border-color: rgba(75,145,242,.46);
  background: rgba(20,35,56,.84);
  transform: translateY(-2px);
}

.as-related-number {
  color: rgba(75,145,242,.7);
  font: 400 25px/1 "Bebas Neue", sans-serif;
}

.as-related a strong,
.as-related a small {
  display: block;
}

.as-related a strong {
  color: #e3eaf3;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.as-related a small {
  margin-top: 4px;
  color: #718198;
  font-size: 10px;
  line-height: 1.35;
}

.as-related a i {
  color: var(--as-gold);
  font-size: 18px;
  font-style: normal;
}

.as-disclaimer {
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(151,177,212,.1);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: #748397;
  font-size: 11px;
  line-height: 1.55;
}

.as-disclaimer strong {
  color: #9eacbd;
}

.as-content {
  margin-top: 52px;
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid rgba(151,177,212,.12);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(17,27,42,.88), rgba(9,14,23,.88));
  color: #c5cfdb;
  font-size: 16px;
  line-height: 1.78;
}

.as-content > :first-child {
  margin-top: 0;
}

.as-content h2 {
  margin: 52px 0 16px;
  scroll-margin-top: 110px;
  color: #fff;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  letter-spacing: .04em;
  line-height: 1.1;
}

.as-content h3 {
  margin: 34px 0 12px;
  scroll-margin-top: 110px;
  color: #e9eef5;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: .04em;
  line-height: 1.25;
}

.as-content p {
  margin: 0 0 19px;
}

.as-content ul,
.as-content ol {
  margin: 16px 0 22px;
  padding-left: 24px;
}

.as-content li {
  margin-bottom: 9px;
}

.as-content strong {
  color: #eef3f9;
}

.as-content a {
  color: var(--as-gold-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.as-scenario.is-requested {
  border-color: var(--as-gold);
  background: rgba(255, 204, 36, .09);
  box-shadow:
    0 0 0 2px rgba(255, 204, 36, .14),
    0 10px 24px rgba(0, 0, 0, .22);
}

.as-scenario.is-requested::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 50%;
  background: var(--as-gold-bright);
  box-shadow: 0 0 0 4px rgba(255, 204, 36, .12);
}

.as-sources {
  margin-top: 24px;
  border-color: rgba(151,177,212,.16);
  border-radius: 12px;
  background: rgba(10,16,26,.82);
}

html.as-dialog-open,
html.as-dialog-open body {
  overflow: hidden;
}

.as-welcome {
  width: min(620px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(108, 155, 221, .34);
  border-radius: 18px;
  outline: 0;
  background: #0a111c;
  color: #eaf0f8;
  box-shadow:
    0 34px 100px rgba(0, 0, 0, .68),
    0 0 0 1px rgba(255, 255, 255, .025) inset,
    0 0 80px rgba(46, 111, 202, .12);
  font-family: "Barlow", sans-serif;
}

.as-welcome::backdrop {
  background:
    radial-gradient(circle at 50% 38%, rgba(30, 74, 139, .28), transparent 42%),
    rgba(2, 6, 12, .86);
  backdrop-filter: blur(5px);
}

.as-welcome-card {
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at 90% 0, rgba(75, 145, 242, .14), transparent 35%),
    linear-gradient(150deg, rgba(18, 29, 46, .98), rgba(8, 13, 22, .99));
}

.as-welcome-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  color: #f2ce68;
  font: 800 12px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.as-welcome-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--as-gold);
  box-shadow: 0 0 12px rgba(244, 194, 70, .45);
}

.as-welcome h2 {
  max-width: 500px;
  margin: 0;
  color: #fff;
  font: 400 clamp(32px, 6vw, 46px)/.98 "Bebas Neue", sans-serif;
  letter-spacing: .025em;
}

.as-welcome > .as-welcome-card > p {
  margin: 15px 0 0;
  color: #becada;
  font-size: 15px;
  line-height: 1.58;
}

.as-welcome-steps {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.as-welcome-steps li {
  min-height: 67px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 11px 14px;
  border: 1px solid rgba(151, 177, 212, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
}

.as-welcome-steps li > b {
  width: 35px;
  height: 35px;
  display: inline-flex;
  flex: 0 0 35px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(75, 145, 242, .35);
  border-radius: 50%;
  background: rgba(75, 145, 242, .12);
  color: #9bc5ff;
  font-size: 13px;
}

.as-welcome-steps strong,
.as-welcome-steps small {
  display: block;
}

.as-welcome-steps strong {
  color: #edf3fb;
  font-size: 14px;
}

.as-welcome-steps small {
  margin-top: 3px;
  color: #93a4b9;
  font-size: 12px;
  line-height: 1.35;
}

.as-welcome-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 9px;
}

.as-welcome-actions .as-button {
  min-height: 50px;
  font-size: 13px;
}

.as-welcome .as-welcome-privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #8193a9;
  font-size: 11px;
}

.as-welcome-privacy > span {
  color: #77c99d;
}

.as-overlay-close {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  padding: 0;
  border: 1px solid rgba(151, 177, 212, .15);
  border-radius: 50%;
  background: rgba(5, 10, 17, .62);
  color: #aebdce;
  cursor: pointer;
  font: 400 27px/1 Arial, sans-serif;
}

.as-overlay-close:hover {
  border-color: rgba(244, 194, 70, .45);
  color: #fff;
}

.as-overlay-close:focus-visible,
.as-tour-exit:focus-visible {
  outline: 3px solid rgba(95, 170, 255, .95);
  outline-offset: 2px;
}

.as-tour[hidden] {
  display: none !important;
}

.as-tour {
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
  font-family: "Barlow", sans-serif;
}

.as-tour-scrim {
  position: fixed;
  z-index: 10000;
  background: rgba(2, 6, 12, .77);
  pointer-events: auto;
  touch-action: none;
}

.as-tour-spotlight {
  position: fixed;
  z-index: 10001;
  border: 3px solid #f4c246;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .35) inset,
    0 0 0 5px rgba(244, 194, 70, .15),
    0 0 30px rgba(244, 194, 70, .38);
  pointer-events: none;
  animation: as-tour-pulse 1.8s ease-in-out infinite;
}

@keyframes as-tour-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .35) inset,
      0 0 0 5px rgba(244, 194, 70, .13),
      0 0 24px rgba(244, 194, 70, .28);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, .45) inset,
      0 0 0 8px rgba(244, 194, 70, .19),
      0 0 38px rgba(244, 194, 70, .46);
  }
}

.as-tour-card {
  width: min(390px, calc(100vw - 28px));
  max-height: none;
  position: fixed;
  z-index: 10003;
  padding: 21px;
  overflow-y: visible;
  border: 1px solid rgba(104, 156, 229, .43);
  border-radius: 14px;
  outline: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(75, 145, 242, .14), transparent 38%),
    #0c1421;
  color: #e9eff7;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, .62),
    0 0 0 1px rgba(255, 255, 255, .025) inset;
  pointer-events: auto;
}

.as-tour-card.is-scrollable {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 12px 56px;
  scrollbar-color: #60758f #101a28;
  scrollbar-width: thin;
}

.as-tour-card.is-scrollable::-webkit-scrollbar {
  width: 6px;
}

.as-tour-card.is-scrollable::-webkit-scrollbar-track {
  background: #101a28;
  border-radius: 999px;
}

.as-tour-card.is-scrollable::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #60758f;
}

.as-tour-card .as-overlay-close {
  width: 40px;
  height: 40px;
  right: 10px;
  top: 10px;
}

.as-tour-progress {
  min-height: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 44px;
}

.as-tour-progress > span {
  color: #8fbeff;
  font: 800 11px/1 "Barlow Condensed", sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#studioTourDots {
  display: flex;
  gap: 5px;
}

#studioTourDots > i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: #2b3a4d;
}

#studioTourDots > i.is-active {
  width: 18px;
  border-radius: 999px;
  background: var(--as-gold-bright);
  box-shadow: 0 0 12px rgba(244, 194, 70, .32);
}

.as-tour-card h2 {
  margin: 9px 48px 0 0;
  color: #fff;
  font: 400 30px/1.05 "Bebas Neue", sans-serif;
  letter-spacing: .025em;
}

.as-tour-card > p {
  margin: 8px 0 0;
  color: #c2cddd;
  font-size: 14px;
  line-height: 1.55;
}

.as-tour-hint {
  margin-top: 11px;
  padding: 9px 11px;
  border: 1px solid rgba(244, 194, 70, .18);
  border-radius: 8px;
  background: rgba(244, 194, 70, .06);
  color: #efd982;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.as-tour-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.as-tour-actions .as-button {
  min-height: 46px;
}

#studioTourNext:disabled {
  border-color: rgba(151, 177, 212, .12);
  background: rgba(151, 177, 212, .07);
  color: #7f8fa3;
  box-shadow: none;
}

.as-tour-exit {
  min-height: 34px;
  display: block;
  margin: 4px auto 0;
  padding: 4px 12px;
  border: 0;
  background: transparent;
  color: #91a1b5;
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.as-tour-exit:hover {
  color: #d7e0eb;
}

.as-visually-hidden {
  width: 1px !important;
  height: 1px !important;
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

@media (min-width: 1321px) {
  .as-workspace {
    height: clamp(640px, calc(100dvh - 92px), 820px);
    min-height: 0;
  }

  .as-library,
  .as-inspector {
    height: 100%;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #26364b transparent;
    scrollbar-width: thin;
  }

  .as-stage {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .as-viewport {
    height: 100%;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 1320px) {
  .as-commandbar {
    grid-template-columns: auto minmax(0,1fr);
  }

  .as-privacy {
    max-width: none;
    grid-column: 1 / -1;
    grid-template-columns: auto minmax(0,1fr) auto;
    padding-top: 8px;
    border-top: 1px solid rgba(151,177,212,.08);
  }

  #studioDeleteDraft {
    min-height: 44px;
    grid-column: auto;
  }

  .as-workspace {
    grid-template-columns: 238px minmax(0, 1fr);
    grid-template-areas:
      "library stage"
      "inspector inspector";
  }

  .as-inspector {
    display: grid;
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
    border-top: 1px solid var(--as-line);
    border-left: 0;
  }

  .as-casefile {
    grid-column: 1;
    grid-row: 1 / span 2;
    border-right: 1px solid var(--as-line);
    border-bottom: 0;
  }

  .as-inspector > .as-panel-heading {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    border-bottom: 1px solid var(--as-line);
  }

  .as-inspector-empty {
    grid-column: 2;
    grid-row: 2;
    min-height: 210px;
  }

  .as-inspector-fields {
    grid-column: 2;
    grid-row: 2;
    border-bottom: 0;
  }

  .as-layers {
    grid-column: 1 / -1;
    grid-row: 3;
    border-top: 0;
  }

  #studioLayers {
    max-height: 178px;
  }
}

@media (max-width: 980px) {
  .as-page {
    padding-inline: 12px;
  }

  .as-hero-mark {
    width: 230px;
    flex-basis: 230px;
    transform: scale(.8);
    transform-origin: center right;
  }

  .as-command-actions {
    justify-content: flex-end;
  }

  .as-workspace {
    grid-template-columns: 210px minmax(0,1fr);
  }

  .as-library {
    max-height: 700px;
  }

  .as-scenario {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .as-mini {
    width: 64px;
  }

  .as-stage-toolbar {
    flex-wrap: wrap;
  }

  .as-object-rotate-tools {
    order: 4;
  }

  .as-zoom-tools {
    margin-left: 0;
  }

  .as-stage-hint {
    display: none;
  }

  .as-stage-footer {
    grid-template-columns: 1fr;
  }

  .as-timeline {
    grid-template-columns: 185px minmax(0,1fr);
  }

  .as-exportbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .as-send-layout {
    grid-template-columns: 1fr;
  }

  .as-related {
    grid-template-columns: 1fr 1fr;
  }

  .as-related-heading {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .as-review {
    grid-template-columns: 1fr;
  }

  .as-review-actions {
    min-width: 0;
    flex-direction: row;
  }
}

@media (max-width: 760px) {
  .as-page {
    padding: 88px 8px 60px;
  }

  .as-hero {
    min-height: 0;
    margin-bottom: 12px;
    padding: 28px 20px;
    border-radius: 12px;
  }

  .as-hero-mark {
    width: 180px;
    height: 130px;
    position: absolute;
    right: -62px;
    top: 12px;
    opacity: .22;
  }

  .as-hero h1 {
    font-size: clamp(39px, 12vw, 56px);
  }

  .as-hero p {
    font-size: 14px;
  }

  .as-hero-proof {
    gap: 6px;
  }

  .as-hero-proof span {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .as-app {
    border-radius: 12px;
  }

  .as-commandbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .as-command-actions {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .as-command-divider {
    flex: 0 0 1px;
  }

  .as-privacy {
    grid-column: auto;
    grid-template-columns: auto 1fr;
  }

  #studioDeleteDraft {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .as-workspace {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    grid-template-areas:
      "stage"
      "library"
      "inspector";
  }

  .as-stage {
    grid-template-rows: auto auto minmax(340px,1fr) auto auto;
  }

  .as-stage-toolbar {
    align-items: center;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
  }

  .as-tool-group,
  .as-zoom-tools,
  .as-toolbar-rule {
    flex: 0 0 auto;
  }

  .as-icon-button {
    min-width: 72px;
  }

  .as-stage-status {
    min-height: 44px;
    display: grid;
    align-content: center;
    gap: 3px;
  }

  .as-stage-hint {
    display: block;
    white-space: normal;
    font-size: 9px;
  }

  .as-viewport {
    min-height: 340px;
    max-height: 560px;
  }

  .as-mobile-library-trigger {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: stretch;
    gap: 8px;
    margin: 10px 12px 2px;
    border: 1px solid rgba(244, 194, 70, .72);
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(244, 194, 70, .2), rgba(38, 105, 196, .18));
    box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
    color: #f7d875;
    font: 800 12px/1 "Barlow Condensed", sans-serif;
    letter-spacing: .11em;
    text-transform: uppercase;
    cursor: pointer;
  }

  .as-mobile-library-trigger:focus-visible {
    outline: 3px solid rgba(95, 170, 255, .9);
    outline-offset: 2px;
  }

  .as-canvas-mat {
    width: calc(100% - 24px);
    min-width: 0;
    margin: 12px;
  }

  .as-library {
    max-height: none;
    overflow: visible;
    border-top: 1px solid var(--as-line);
    border-right: 0;
  }

  .as-library-group summary {
    min-height: 52px;
  }

  .as-scenario-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(210px, 75vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
  }

  .as-road-grid,
  .as-asset-grid {
    grid-auto-flow: column;
    grid-auto-columns: 104px;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: thin;
  }

  .as-inspector {
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid var(--as-line);
  }

  .as-casefile {
    grid-column: auto;
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--as-line);
  }

  .as-inspector > .as-panel-heading,
  .as-inspector-empty,
  .as-inspector-fields {
    grid-column: auto;
    grid-row: auto;
    border-right: 0;
    border-bottom: 1px solid var(--as-line);
  }

  .as-layers {
    grid-column: auto;
    grid-row: auto;
  }

  .as-inspector-empty {
    min-height: 190px;
  }

  #studioLayers {
    max-height: 240px;
  }

  .as-timeline {
    grid-template-columns: 1fr;
  }

  .as-timeline-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--as-line);
  }

  .as-timeline-controls {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .as-filmstrip [role="listitem"] {
    flex-basis: 128px;
  }

  .as-step-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .as-step-actions .as-button:first-child {
    grid-column: 1 / -1;
  }

  .as-export-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .as-export-actions .as-button--send {
    grid-column: 1 / -1;
  }

  .as-send-panel {
    scroll-margin-top: 82px;
    padding: 30px 20px;
  }

  .as-send-layout {
    grid-template-columns: 1fr;
  }

  .as-send-preview-card {
    display: block;
  }

  .as-send-preview-frame {
    border-right: 0;
    border-bottom: 1px solid rgba(132, 163, 204, .15);
  }

  .as-review {
    margin-top: 20px;
    gap: 24px;
  }

  .as-review-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .as-related {
    grid-template-columns: 1fr;
  }

  .as-related-heading {
    grid-column: auto;
  }

  .as-content {
    margin-top: 28px;
    padding: 25px 20px;
    font-size: 15px;
  }

  .as-content h2 {
    margin-top: 40px;
  }
}

@media (max-width: 460px) {
  .as-page {
    padding-inline: 5px;
  }

  .as-hero {
    padding-inline: 16px;
  }

  .as-hero-proof span:last-child {
    display: none;
  }

  .as-commandbar-brand {
    min-width: 0;
  }

  .as-button {
    min-height: 44px;
  }

  .as-icon-button > span:nth-child(2),
  .as-icon-button kbd {
    display: none;
  }

  .as-icon-button {
    min-width: 44px;
    padding: 0;
  }

  .as-stage-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 5px;
    overflow: visible;
    padding-inline: 8px;
  }

  .as-add-object-button {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .as-canvas-tools {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .as-canvas-tools .as-icon-button {
    min-width: 0;
    flex: 1 1 0;
    gap: 5px;
    padding-inline: 8px;
  }

  .as-canvas-tools .as-icon-button > span:nth-child(2) {
    display: inline;
    font-size: 10px;
  }

  .as-toolbar-rule {
    display: none;
  }

  .as-edit-tools {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    gap: 3px;
  }

  .as-object-rotate-tools {
    min-height: 58px;
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    gap: 2px;
    position: relative;
    order: initial;
    padding: 14px 0 0;
    border-left: 0;
  }

  .as-object-rotate-tools > span {
    display: block;
    position: absolute;
    left: 3px;
    top: 2px;
    margin: 0;
    color: #9dafc6;
    font-size: 8px;
  }

  .as-zoom-tools {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-self: center;
    margin-left: 0;
  }

  .as-stage-footer {
    padding: 10px;
  }

  #sceneSummary span {
    white-space: normal;
  }

  .as-background-note {
    font-size: 11px;
  }

  .studio-layer {
    grid-template-columns: repeat(4, minmax(44px, 1fr));
    gap: 4px;
  }

  .studio-layer-select {
    grid-column: 1 / -1;
  }

  .as-timeline-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .as-exportbar {
    padding-inline: 14px;
  }

  .as-export-actions {
    grid-template-columns: 1fr;
  }

  .as-export-actions .as-button--send {
    grid-column: auto;
  }

  .as-send-panel {
    padding: 25px 13px 18px;
  }

  .as-send-close {
    right: 10px;
    top: 10px;
  }

  .as-send-intro {
    padding-right: 48px;
  }

  .as-send-intro h2 {
    font-size: 31px;
  }

  .as-send-layout {
    gap: 15px;
    margin-top: 20px;
  }

  .as-send-preview-card {
    display: block;
  }

  .as-send-preview-frame {
    border-right: 0;
    border-bottom: 1px solid rgba(132, 163, 204, .15);
  }

  .as-send-included,
  .as-send-form-mount {
    padding: 16px;
  }

  .as-send-form-grid {
    grid-template-columns: 1fr;
  }

  .as-send-field--wide {
    grid-column: auto;
  }

  .as-send-field input,
  .as-send-field textarea {
    font-size: 16px;
  }

  .as-related a {
    padding-inline: 15px;
  }
}

@media (max-width: 760px) {
  .as-welcome {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 14px;
  }

  .as-welcome-card {
    padding:
      max(28px, env(safe-area-inset-top))
      max(18px, env(safe-area-inset-right))
      max(22px, env(safe-area-inset-bottom))
      max(18px, env(safe-area-inset-left));
  }

  .as-welcome h2 {
    max-width: calc(100% - 35px);
    font-size: clamp(31px, 10vw, 40px);
  }

  .as-welcome > .as-welcome-card > p {
    font-size: 14px;
  }

  .as-welcome-steps {
    margin-block: 19px;
  }

  .as-welcome-steps li {
    min-height: 60px;
    padding: 9px 11px;
  }

  .as-welcome-actions {
    grid-template-columns: 1fr;
  }

  .as-welcome-actions .as-button {
    width: 100%;
  }

  .as-tour-card {
    width: auto;
    max-height: none;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    padding: 19px 18px max(13px, env(safe-area-inset-bottom));
    border-radius: 14px;
  }

  .as-tour-card h2 {
    font-size: 27px;
  }

  .as-tour-card > p {
    font-size: 13px;
  }

  .as-tour-hint {
    margin-top: 11px;
    padding: 9px 10px;
  }

  .as-tour-actions {
    margin-top: 13px;
  }

  .as-tour-actions .as-button {
    min-height: 44px;
  }

  .as-tour-exit {
    margin-top: 3px;
  }
}

@media (max-width: 350px) {
  .as-tour-actions {
    grid-template-columns: 1fr;
  }

  .as-tour-actions .as-button {
    width: 100%;
  }
}

@media (max-width: 760px) and (max-height: 480px) {
  .as-stage {
    grid-template-rows: auto auto minmax(170px, 170px) auto auto;
  }

  .as-viewport {
    height: 170px;
    min-height: 170px;
    max-height: 170px;
  }

  .as-tour-card {
    padding: 14px 16px max(10px, env(safe-area-inset-bottom));
  }

  .as-tour-card .as-overlay-close {
    width: 38px;
    height: 38px;
    right: 9px;
    top: 9px;
  }

  .as-tour-progress {
    min-height: 19px;
  }

  .as-tour-card h2 {
    margin: 6px 44px 0 0;
    font-size: 25px;
  }

  .as-tour-card > p {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.4;
  }

  .as-tour-hint {
    margin-top: 8px;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.35;
  }

  .as-tour-actions {
    margin-top: 10px;
  }

  .as-tour-actions .as-button {
    min-height: 42px;
    padding-block: 7px;
  }

  .as-tour-exit {
    min-height: 32px;
    margin: 2px auto 0;
    padding-block: 3px;
  }
}

@media (min-width: 620px) and (max-width: 760px) and (max-height: 480px) {
  .as-tour-card {
    width: 260px;
    left: auto !important;
    right: 12px !important;
    top: 12px !important;
    bottom: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-page *,
  .as-page *::before,
  .as-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Contextual, dismissible case-review invitation. It never blocks exporting
   or editing and remains visually secondary to the Studio controls. */
.as-review-nudge {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1150;
  width: min(380px, calc(100vw - 32px));
  padding: 20px 44px 20px 20px;
  color: var(--as-text);
  background: linear-gradient(145deg, #101d2e, #0b1421);
  border: 1px solid rgba(246,199,82,.52);
  border-radius: 10px;
  box-shadow: 0 18px 54px rgba(0,0,0,.48);
}
.as-review-nudge[hidden] {
  display: none;
}
.as-review-nudge > span {
  display: block;
  margin-bottom: 6px;
  color: var(--as-gold);
  font: 700 10px/1 'Barlow Condensed', sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.as-review-nudge > strong {
  display: block;
  color: #fff;
  font: 400 24px/1.05 'Bebas Neue', sans-serif;
  letter-spacing: .7px;
}
.as-review-nudge > p {
  margin: 8px 0 14px;
  color: var(--as-muted);
  font-size: 13px;
  line-height: 1.45;
}
.as-review-nudge > div {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.as-review-nudge__close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 32px;
  height: 32px;
  color: var(--as-muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.as-review-nudge__later {
  padding: 8px 2px;
  color: var(--as-muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: 600 12px 'Barlow', sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.as-review-nudge__close:focus-visible,
.as-review-nudge__later:focus-visible {
  outline: 2px solid var(--as-gold);
  outline-offset: 2px;
}
.as-send-progress {
  margin: 18px 0;
}
.as-send-review-step fieldset {
  min-width: 0;
}
.as-send-review-step .case-review__field input,
.as-send-review-step .case-review__field select {
  background: var(--as-panel);
}
.as-send-review-step .case-review__next {
  min-width: 150px;
}

@media (max-width: 760px) {
  .as-review-nudge {
    right: 16px;
    bottom: 76px;
    left: 16px;
    width: auto;
    padding: 18px 42px 18px 18px;
  }
}
