/* Override standalone app */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0f0f1a;
  color: #e2e8f0;
}
body {
  overflow: auto;
  font-family: system-ui, sans-serif;
}
.override-wrapper {
  background: #0f0f1a;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  color: #e2e8f0;
  font-family: system-ui, sans-serif;
  box-sizing: border-box;
}

/* Main landing wallpaper — dark interview room with brand amber/red wash */
body.override-home {
  background-color: #0b0b14;
}
body.override-home .override-wrapper {
  position: relative;
  z-index: 1;
  background: transparent;
}
body.override-home::before,
body.override-home::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.override-home::before {
  background:
    radial-gradient(ellipse 90% 55% at 50% -8%, rgba(245, 158, 11, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 42% at -5% 105%, rgba(239, 68, 68, 0.16), transparent 52%),
    radial-gradient(ellipse 48% 38% at 105% 78%, rgba(99, 102, 241, 0.14), transparent 52%),
    radial-gradient(ellipse 40% 28% at 72% 18%, rgba(252, 211, 77, 0.07), transparent 60%),
    linear-gradient(180deg, #141422 0%, #0b0b14 42%, #0a0a12 100%);
}
body.override-home::after {
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(252, 211, 77, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(252, 211, 77, 0.045) 1px, transparent 1px),
    repeating-linear-gradient(
      -18deg,
      transparent 0,
      transparent 46px,
      rgba(239, 68, 68, 0.035) 46px,
      rgba(239, 68, 68, 0.035) 47px
    );
  background-size: 64px 64px, 64px 64px, auto;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 28%, #000 18%, transparent 78%);
}
html.override-embed body.override-home::before,
html.override-embed body.override-home::after {
  display: none;
}
html.override-embed body.override-home .override-wrapper {
  background: #0f0f1a;
}
@media (prefers-reduced-transparency: reduce) {
  body.override-home::after { opacity: 0.25; }
}
html.override-embed .override-wrapper {
  min-height: 100%;
}
html.override-embed .override-shell-chrome {
  display: none !important;
}
.apply-page .override-wrapper { max-width: 760px; margin: 0 auto; }
.apply-entry {
  background: rgba(15,23,42,0.75);
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 0.5rem;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.55rem;
}
.apply-entry input, .apply-entry textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.55rem;
  border-radius: 0.4rem;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(148,163,184,0.3);
  color: #e2e8f0;
  font-size: 0.85rem;
}
.apply-entry label { display: block; font-size: 0.72rem; color: #94a3b8; margin: 0.35rem 0 0.15rem; }
.apply-row { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.apply-row > * { flex: 1 1 140px; }
.apply-actions { display: flex; gap: 0.35rem; margin-top: 0.5rem; }
.apply-actions button {
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(148,163,184,0.12);
  border: 1px solid rgba(148,163,184,0.3);
  color: #cbd5e1;
}
html.override-live-candidate #override-audience-row,
html.override-live-candidate #override-hiring-panel,
html.override-live-candidate #override-practice-track-carousel,
html.override-live-candidate #override-practice-track-row,
html.override-live-candidate #override-practice-track-intro,
html.override-live-candidate #override-history-panel,
html.override-live-candidate #override-custom-jd-row,
html.override-live-candidate #override-question-type-row,
html.override-live-candidate #override-mode-row,
html.override-live-candidate #override-seniority,
html.override-live-candidate #override-seniority-label,
html.override-live-candidate #override-more-options,
html.override-live-candidate #override-retail-flow,
html.override-live-candidate .discuss-aissocial-btn,
html.override-live-candidate .override-algovision-upsell,
html.override-live-candidate .override-shell-chrome,
html.override-live-candidate #override-landing > div:first-child {
  display: none !important;
}
html.override-live-candidate #override-live-head {
  display: block !important;
}
html.override-live-candidate #override-candidate-banner {
  max-width: 720px;
  margin: 0 auto 1rem;
}
.apply-file-name { font-size: 0.78rem; color: #93c5fd; margin-top: 0.35rem; min-height: 1.1rem; }
.apply-file-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.apply-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.apply-file-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.18));
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, filter 0.15s;
}
.apply-file-btn:hover {
  filter: brightness(1.12);
  border-color: rgba(252, 211, 77, 0.75);
}
.apply-file-picker.is-chosen .apply-file-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(245, 158, 11, 0.14));
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.apply-file-input:focus-visible + .apply-file-btn {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
}
input[type="file"]::file-selector-button,
input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(245, 158, 11, 0.18));
  color: #fcd34d;
  font-weight: 700;
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
}
input[type="file"] {
  color: #94a3b8;
  font-size: 0.82rem;
  font-family: inherit;
}
.apply-draft-hint { font-size: 0.72rem; color: #64748b; margin: 0 0 0.75rem; min-height: 1rem; }
.careers-job {
  display: block;
  text-decoration: none;
  margin: 0 0 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
}
.careers-job:hover { border-color: rgba(251, 191, 36, 0.5); }
.apply-jd {
  white-space: pre-wrap;
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
  background: rgba(15,23,42,0.55);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.25rem;
}
.override-hero {
  text-align: center;
  margin-bottom: 1.5rem;
}
.override-hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0 0 0.2rem;
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.override-hero-kicker {
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fcd34d;
}
.override-hero-line {
  margin: 0.55rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  line-height: 1.5;
  color: #cbd5e1;
}
.override-start-hint {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
  text-align: left;
}
.override-more-options,
.override-settings-fold {
  text-align: left;
  margin-top: 0.35rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.45);
}
.override-more-options summary,
.override-settings-fold summary {
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
}
.override-more-options[open] summary,
.override-settings-fold[open] summary {
  margin-bottom: 0.75rem;
  color: #fcd34d;
}
.override-setup {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(6, 78, 59, 0.16);
}
.override-setup h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #a7f3d0;
}
.override-setup p {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}
.override-setup-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.override-setup-pills span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #64748b;
}
.override-setup-pills span.is-active {
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.12);
}
.override-setup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}
.override-setup-row > div { flex: 1 1 160px; }
.override-setup label {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 0.2rem;
}
.override-setup input,
.override-setup select,
.override-setup textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #e2e8f0;
  font-size: 0.85rem;
}
.override-setup textarea { resize: vertical; margin-bottom: 0.55rem; }
.override-setup button:not(.override-setup-skip) {
  padding: 0.5rem 1rem;
  border-radius: 0.45rem;
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.85rem;
}
.override-setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin: 0.45rem 0 0.75rem;
}
.override-setup-actions a {
  padding: 0.45rem 0.8rem;
  border-radius: 0.4rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}
.override-setup-done { display: block; margin-top: 0.25rem; }
.override-setup-skip {
  display: block;
  margin-top: 0.75rem;
  padding: 0;
  border: 0;
  background: none;
  color: #64748b;
  font-size: 0.75rem;
  cursor: pointer;
}
.override-setup-err {
  display: block;
  color: #f87171;
  font-size: 0.78rem;
  margin-top: 0.4rem;
  min-height: 1rem;
}
.override-share-card {
  padding: 0.75rem 0.85rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(120, 53, 15, 0.16);
}
#override-programs-wrap.override-setup-mode #override-billing-sessions-block,
#override-programs-wrap.override-setup-mode #override-candidate-links-section,
#override-programs-wrap.override-setup-mode #override-programs-list,
#override-programs-wrap.override-setup-mode #override-program-create-form,
#override-programs-wrap.override-setup-mode #override-program-editor,
#override-programs-wrap.override-setup-mode #override-jobs-section,
#override-programs-wrap.override-setup-mode #override-programs-heading-block,
#override-programs-wrap.override-setup-mode #override-programs-err {
  display: none !important;
}
.override-hire-steps {
  margin: 0 0 1.1rem;
  padding: 0 0 0 1.15rem;
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.55;
}
.override-hire-steps li { margin-bottom: 0.35rem; }
.override-hire-steps strong { color: #e2e8f0; }
.override-track-carousel {
  position: relative;
  max-width: 960px;
  margin: 0 auto 1.35rem;
  padding: 0 2.4rem;
}
.override-track-scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0.15rem 0.85rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.45) transparent;
}
.override-track-scroller::-webkit-scrollbar { height: 6px; }
.override-track-scroller::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.4);
  border-radius: 999px;
}
.override-practice-track-btn {
  flex: 0 0 270px;
  scroll-snap-align: start;
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
  border: 2px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  cursor: pointer;
  min-height: 9.4rem;
}
.override-practice-track-btn.override-practice-track-btn--active {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
}
.override-track-nav {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(15, 23, 42, 0.88);
  color: #fcd34d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.override-track-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.override-track-nav--prev { left: 0; }
.override-track-nav--next { right: 0; }
@media (max-width: 720px) {
  .override-track-carousel { padding: 0 2.1rem; }
  .override-track-scroller {
    gap: 0.65rem;
    scroll-padding-inline: calc(50% - min(39vw, 148px));
    padding-inline: calc(50% - min(39vw, 148px));
  }
  .override-practice-track-btn {
    flex-basis: min(78vw, 296px);
    scroll-snap-align: center;
  }
}
.override-audience-card:hover {
  filter: brightness(1.05);
}
.override-msg{margin-bottom:0.75rem;}.override-msg-user{color:#94a3b8;}.override-msg-assistant{color:#fcd34d;}.override-msg-hint{margin:-0.35rem 0 0.75rem 0;padding-left:0.25rem;font-size:0.78rem;font-style:italic;color:#64748b;line-height:1.4;}.override-status-error{color:#f87171 !important;}
        #override-record-btn.override-record-btn--recording{background:rgba(239,68,68,0.18)!important;border-color:rgba(248,113,113,0.65)!important;color:#fca5a5!important;box-shadow:0 0 0 2px rgba(239,68,68,0.25);}
        .override-code-panel{scrollbar-width:thin;scrollbar-color:var(--av-scrollbar-thumb) var(--av-scrollbar-track);}
        .override-code-panel::-webkit-scrollbar{width:var(--av-scrollbar-width);}
        .override-code-panel::-webkit-scrollbar-track{background:var(--av-scrollbar-track);border-radius:5px;}
        .override-code-panel::-webkit-scrollbar-thumb{background:linear-gradient(180deg, rgba(34,211,238,0.55) 0%, rgba(167,139,250,0.5) 100%);border-radius:5px;border:1px solid rgba(34,211,238,0.2);}
        .override-code-panel::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg, rgba(34,211,238,0.75) 0%, rgba(236,72,153,0.45) 100%);}
