:root {
  color-scheme: dark;
  --bg: #070a12;
  --panel: rgba(15, 20, 33, 0.76);
  --panel-strong: rgba(20, 27, 44, 0.92);
  --glass: rgba(255, 255, 255, 0.07);
  --ink: #f7f9ff;
  --muted: #aeb7cb;
  --line: rgba(255, 255, 255, 0.14);
  --brand: #7c8cff;
  --brand-strong: #5865f2;
  --accent: #26d5b6;
  --warn: #ffc857;
  --bad: #ff6b6b;
  --ok: #45df8a;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --glass: rgba(8, 14, 28, 0.06);
  --ink: #141821;
  --muted: #5e687b;
  --line: rgba(20, 24, 33, 0.14);
  --shadow: 0 30px 100px rgba(29, 41, 57, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.ambient {
  background:
    radial-gradient(circle at 18% 18%, rgba(88, 101, 242, 0.34), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(38, 213, 182, 0.22), transparent 24%),
    radial-gradient(circle at 55% 78%, rgba(255, 120, 79, 0.18), transparent 30%);
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: -2;
}

.ambient::after {
  animation: scan 18s linear infinite;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  opacity: 0.45;
  position: absolute;
}

.appShell {
  margin: 0 auto;
  max-width: none;
  min-height: 100vh;
  padding: 18px;
  width: 100%;
}

.topbar,
.heroBand,
.tabPanel {
  backdrop-filter: blur(24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.topbar {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(230px, 1fr) auto minmax(240px, 1fr);
  min-height: 84px;
  padding: 14px 16px;
  position: sticky;
  top: 14px;
  z-index: 10;
}

.brandMark {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 12px;
  text-decoration: none;
}

.brandIcon {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.logo {
  width: inherit;
  height: inherit;
  object-fit: fill;
  border-radius: inherit;
}

.brandMark strong {
  display: block;
  font-size: 18px;
}

.eyebrow {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.tabs {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-grid;
  gap: 4px;
  grid-auto-flow: column;
  padding: 4px;
}

.tabButton,
.ghost,
.iconButton,
.primaryAction,
.smallButton {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.tabButton {
  background: transparent;
  color: var(--muted);
  min-height: 38px;
  padding: 8px 13px;
  white-space: nowrap;
}

.tabButton.active {
  background: var(--panel-strong);
  color: var(--ink);
}

.accountActions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.accountSummary,
.panelBadge {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  max-width: 210px;
  overflow: hidden;
  padding: 9px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.workspace:has(#appPanel.active) {
  gap: 0;
}

.workspace:has(#appPanel.active) .heroBand {
  display: none;
}

.heroBand {
  align-items: end;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(24px, 5vw, 46px);
  position: relative;
}

.heroBand::before {
  animation: shimmer 8s ease-in-out infinite alternate;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  content: "";
  height: 160%;
  position: absolute;
  right: 8%;
  top: -30%;
  transform: rotate(18deg);
  width: 150px;
}

.heroCopy {
  max-width: 850px;
  position: relative;
}

.heroCopy h1,
.panelHeader h2 {
  font-size: clamp(36px, 6vw, 78px);
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0 0 14px;
}

.heroStatus {
  align-items: center;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  gap: 10px;
  padding: 12px 14px;
  position: relative;
}

.pulseDot {
  animation: pulse 1.6s ease-in-out infinite;
  background: var(--ok);
  border-radius: 999px;
  height: 10px;
  width: 10px;
}

.tabPanel {
  animation: riseIn 0.35s ease both;
  display: none;
  min-height: 520px;
  padding: clamp(20px, 4vw, 38px);
}

.tabPanel.active {
  display: block;
}

.panelHeader {
  margin-bottom: 24px;
  max-width: 820px;
}

.panelHeader p,
.serviceCard p,
.statusCard p,
.processList p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.panelHeader.split {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  max-width: none;
}

.serviceGrid,
.statusGrid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.serviceCard {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  min-height: 340px;
  overflow: hidden;
  position: relative;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.serviceCard:hover,
.serviceCard.selected {
  border-color: color-mix(in srgb, var(--service-accent), #ffffff 12%);
  box-shadow: 0 24px 80px color-mix(in srgb, var(--service-accent), transparent 78%);
  transform: translateY(-5px);
}

.serviceImage {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88)), var(--service-image);
  background-position: center;
  background-size: cover;
  height: 190px;
}

.serviceBody {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.serviceBody h3,
.statusCard h3,
.processList h3 {
  font-size: 22px;
  margin: 0;
}

.serviceMeta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.questionCount,
.statusPill {
  background: color-mix(in srgb, var(--service-accent, var(--brand)), transparent 82%);
  border: 1px solid color-mix(in srgb, var(--service-accent, var(--brand)), transparent 50%);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  padding: 7px 10px;
  text-transform: uppercase;
}

.miniServicePicker {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 22px;
}

.miniServiceButton {
  align-items: end;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.02), rgba(7, 10, 18, 0.88)),
    var(--service-image);
  background-position: center;
  background-size: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-weight: 900;
  isolation: isolate;
  min-height: 104px;
  overflow: hidden;
  padding: 12px;
  position: relative;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.miniServiceButton::before {
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--service-accent, var(--brand)), transparent 46%), transparent 46%),
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
  content: "";
  inset: 0;
  opacity: 0.8;
  position: absolute;
  transition: opacity 180ms ease;
  z-index: -1;
}

.miniServiceButton::after {
  background: color-mix(in srgb, var(--service-accent, var(--brand)), #ffffff 6%);
  border-radius: 999px;
  bottom: 12px;
  content: "";
  height: 8px;
  position: absolute;
  right: 12px;
  width: 8px;
}

.miniServiceImage {
  display: none;
}

.miniServiceName {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 25, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  display: inline-flex;
  justify-self: start;
  min-height: 36px;
  padding: 8px 10px;
  position: relative;
  color: white;
}

.miniServiceButton:hover {
  border-color: color-mix(in srgb, var(--service-accent, var(--brand)), #ffffff 16%);
  transform: translateY(-2px);
}

.miniServiceButton.active {
  border-color: color-mix(in srgb, var(--service-accent, var(--brand)), #ffffff 18%);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--service-accent, var(--brand)), transparent 76%),
    0 22px 70px color-mix(in srgb, var(--service-accent, var(--brand)), transparent 82%);
  transform: translateY(-2px);
}

.miniServiceButton.active::before {
  opacity: 1;
}

.authLayout,
.applicationForm,
.interviewForm,
.glassForm {
  max-width: 760px;
}

#appPanel {
  backdrop-filter: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  padding: 0;
}

#appPanel .panelHeader {
  backdrop-filter: blur(24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 30px);
}

#appPanel .miniServicePicker {
  margin-bottom: 16px;
}

#appPanel .applicationForm {
  max-width: none;
}

#appPanel .questionFields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
}

#appPanel .applicationForm > .floatField,
#appPanel .choiceGroup {
  backdrop-filter: blur(24px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

#appPanel .applicationForm > .floatField,
#appPanel .questionFields > .floatField,
#appPanel .choiceGroup {
  min-width: 0;
}

#appPanel .applicationForm > .floatField {
  gap: 10px;
  max-width: none;
}

#appPanel .applicationForm > .floatField span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  left: auto;
  line-height: 1.35;
  order: -1;
  pointer-events: auto;
  position: static;
  top: auto;
  transform: none !important;
}

#appPanel .applicationForm > .floatField input {
  min-height: 54px;
  padding: 13px 14px;
}

#appPanel .applicationForm > .floatField input:focus + span,
#appPanel .applicationForm > .floatField input:not(:placeholder-shown) + span {
  color: var(--accent);
}

#appPanel .questionFields > .floatField,
#appPanel .choiceGroup {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

#appPanel .questionFields > .floatField span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  left: auto;
  line-height: 1.35;
  order: -1;
  pointer-events: auto;
  position: static;
  top: auto;
  transform: none !important;
}

#appPanel .questionFields > .floatField textarea {
  min-height: 170px;
  padding: 13px 14px;
}

#appPanel .questionFields > .floatField textarea[rows="6"] {
  min-height: 210px;
}

#appPanel .questionFields > .floatField textarea:focus + span,
#appPanel .questionFields > .floatField textarea:not(:placeholder-shown) + span {
  color: var(--accent);
}

#appPanel .choiceLabel {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

#appPanel .choiceOptions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

#appPanel .choiceOption span {
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--glass);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  gap: 10px;
  justify-content: flex-start;
  min-height: 58px;
  padding: 13px 14px;
  position: relative;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

#appPanel .choiceOption span::before {
  border: 2px solid color-mix(in srgb, var(--muted), transparent 20%);
  border-radius: 999px;
  content: "";
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

#appPanel .choiceOption span::after {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 20px;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
  width: 8px;
}

#appPanel .choiceOption input:focus-visible + span,
#appPanel .choiceOption span:hover {
  border-color: color-mix(in srgb, var(--brand), #ffffff 14%);
  transform: translateY(-1px);
}

#appPanel .choiceOption input:checked + span {
  background:
    linear-gradient(145deg, rgba(124, 140, 255, 0.28), rgba(38, 213, 182, 0.16)),
    var(--panel-strong);
  border-color: color-mix(in srgb, var(--brand), #ffffff 10%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 0 0 4px rgba(124, 140, 255, 0.14);
}

#appPanel .choiceOption input:checked + span::before {
  border-color: var(--accent);
}

#appPanel .choiceOption input:checked + span::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

#appPanel .applicationForm > .primaryAction {
  justify-self: start;
  margin-top: 2px;
  min-width: min(280px, 100%);
}

.adminLoginForm {
  margin-top: 18px;
}

.form,
.questionFields {
  display: grid;
  gap: 16px;
}

.formGrid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.floatField {
  display: grid;
  position: relative;
}

.floatField input,
.floatField textarea {
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 62px;
  outline: none;
  padding: 24px 15px 10px;
  width: 100%;
}

.floatField textarea {
  line-height: 1.55;
  min-height: 150px;
  resize: vertical;
}

.floatField span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  left: 15px;
  pointer-events: none;
  position: absolute;
  top: 20px;
  transition: transform 160ms ease, color 160ms ease;
}

.floatField input:focus,
.floatField textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(124, 140, 255, 0.16);
}

.floatField input:focus + span,
.floatField input:not(:placeholder-shown) + span,
.floatField textarea:focus + span,
.floatField textarea:not(:placeholder-shown) + span {
  color: var(--accent);
  transform: translateY(-13px) scale(0.86);
  transform-origin: left;
}

.choiceGroup {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.choiceLabel {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.choiceOptions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choiceOption input {
  position: absolute;
  opacity: 0;
}

.choiceOption span {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  padding: 11px 13px;
}

.choiceOption input:checked + span {
  background: rgba(124, 140, 255, 0.22);
  border-color: var(--brand);
}

.primaryAction,
.ghost,
.iconButton {
  min-height: 46px;
  padding: 11px 15px;
}

.primaryAction {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #ffffff;
}

.ghost,
.iconButton {
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--ink);
}

.smallButton {
  min-height: 36px;
  padding: 7px 11px;
}

.statusGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.statusCard {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.statusCardImage {
  background-image: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.88)), var(--service-image);
  background-position: center;
  background-size: cover;
  height: 150px;
}

.statusCardBody {
  display: grid;
  gap: 13px;
  padding: 16px;
}

.statusActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.statusPill.pending {
  --service-accent: var(--brand);
}

.statusPill.accepted {
  --service-accent: var(--ok);
}

.statusPill.rejected {
  --service-accent: var(--bad);
}

.statusPill.interview,
.statusPill.interviewing {
  --service-accent: var(--warn);
}

.metaList {
  display: grid;
  gap: 8px;
}

.metaList div {
  display: grid;
  gap: 3px;
}

.metaList span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.metaList strong {
  overflow-wrap: anywhere;
}

.sectionHeader {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.sectionHeader h3 {
  margin: 0;
}

.processList {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.processList li {
  align-items: start;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 18px;
}

.processList span {
  align-items: center;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.adminGrid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.adminSection,
.adminRow {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.adminSection {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.adminList {
  display: grid;
  gap: 10px;
}

.adminRow {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.adminRow strong,
.adminRow span {
  display: block;
  overflow-wrap: anywhere;
}

.adminRow span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 4px;
}

.hidden {
  display: none !important;
}

.toast {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: var(--ink);
  left: 50%;
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.loadingOverlay {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  min-height: 100dvh;
  overflow: hidden;
  padding: 22px;
  position: fixed;
  z-index: 100;
}

.loadingOverlay.hidden {
  display: none;
}

.loadingBackdrop {
  background:
    radial-gradient(circle at 22% 20%, rgba(124, 140, 255, 0.45), transparent 30%),
    radial-gradient(circle at 80% 18%, rgba(38, 213, 182, 0.36), transparent 24%),
    radial-gradient(circle at 52% 78%, rgba(255, 200, 87, 0.2), transparent 31%),
    rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(22px);
  inset: 0;
  position: absolute;
}

.loadingBackdrop::before,
.loadingBackdrop::after {
  content: "";
  position: absolute;
}

.loadingBackdrop::before {
  animation: scan 12s linear infinite;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  inset: -46px 0 0;
  opacity: 0.42;
}

.loadingBackdrop::after {
  animation: loadingSweep 2.8s ease-in-out infinite;
  background: linear-gradient(105deg, transparent 12%, rgba(255, 255, 255, 0.14), transparent 42%);
  height: 150%;
  left: -35%;
  top: -25%;
  transform: rotate(10deg);
  width: 42%;
}

.loadingPanel {
  align-items: center;
  animation: riseIn 0.35s ease both;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 36px 130px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: min(440px, calc(100vw - 36px));
  padding: clamp(24px, 6vw, 38px);
  position: relative;
  text-align: center;
  width: 100%;
}

.loadingPanel::before {
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warn));
  border-radius: 8px 8px 0 0;
  content: "";
  height: 4px;
  inset: 0 0 auto;
  position: absolute;
}

.loadingLogoWrap {
  align-items: center;
  display: grid;
  height: 118px;
  justify-items: center;
  margin-bottom: 2px;
  position: relative;
  width: 118px;
}

.loadingRing {
  animation: loadingSpin 1.2s linear infinite;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-left-color: var(--accent);
  border-radius: 999px;
  border-top-color: var(--brand);
  inset: 0;
  position: absolute;
}

.loadingRing::before,
.loadingRing::after {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 24px var(--accent);
  content: "";
  height: 9px;
  position: absolute;
  right: 13px;
  top: 12px;
  width: 9px;
}

.loadingRing::after {
  background: var(--brand);
  bottom: 12px;
  box-shadow: 0 0 24px var(--brand);
  left: 13px;
  right: auto;
  top: auto;
}

.loadingLogo {
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
  height: 72px;
  object-fit: cover;
  width: 72px;
}

.loadingPanel h2 {
  font-size: clamp(30px, 8vw, 46px);
  line-height: 0.98;
  margin: 0;
}

.loadingPanel p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  max-width: 32ch;
}

.loadingMeter {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 11px;
  margin-top: 8px;
  overflow: hidden;
  width: min(310px, 100%);
}

.loadingMeter span {
  animation: loadingMeter 1.35s ease-in-out infinite;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warn));
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 44%;
}

.loadingDots {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.loadingDots span {
  animation: loadingBounce 0.9s ease-in-out infinite;
  background: var(--accent);
  border-radius: 999px;
  height: 8px;
  opacity: 0.45;
  width: 8px;
}

.loadingDots span:nth-child(2) {
  animation-delay: 0.14s;
  background: var(--brand);
}

.loadingDots span:nth-child(3) {
  animation-delay: 0.28s;
  background: var(--warn);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(69, 223, 138, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(69, 223, 138, 0);
  }
}

@keyframes shimmer {
  from {
    opacity: 0.15;
    transform: translateX(-60px) rotate(18deg);
  }
  to {
    opacity: 0.6;
    transform: translateX(40px) rotate(18deg);
  }
}

@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(54px);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loadingMeter {
  0% {
    transform: translateX(-115%);
  }
  52%,
  100% {
    transform: translateX(230%);
  }
}

@keyframes loadingBounce {
  0%,
  100% {
    opacity: 0.38;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-6px);
  }
}

@keyframes loadingSweep {
  0% {
    transform: translateX(0) rotate(10deg);
  }
  55%,
  100% {
    transform: translateX(330%) rotate(10deg);
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
    position: static;
  }

  .tabs {
    grid-auto-flow: row;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .accountActions {
    justify-content: space-between;
  }

  .statusGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .serviceGrid {
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .serviceCard {
    min-height: 270px;
  }

  .serviceImage {
    height: 140px;
  }

  .serviceBody {
    gap: 8px;
    padding: 12px;
  }

  .serviceBody h3 {
    font-size: 18px;
  }

  .serviceCard p {
    font-size: 13px;
    line-height: 1.45;
  }

  .questionCount {
    font-size: 10px;
    padding: 6px 8px;
  }

  .miniServicePicker {
    gap: 8px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .miniServiceButton {
    min-height: 88px;
    padding: 10px;
  }

  .miniServiceName {
    font-size: 13px;
    min-height: 32px;
    padding: 7px 8px;
  }
}

@media (max-width: 720px) {
  .appShell {
    padding: 10px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .heroBand,
  .panelHeader.split {
    display: block;
  }

  .heroStatus,
  .panelBadge {
    margin-top: 14px;
  }

  .statusGrid,
  #appPanel .questionFields,
  .formGrid,
  .adminGrid,
  .adminRow {
    grid-template-columns: 1fr;
  }

  .serviceGrid {
    gap: 7px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .serviceCard {
    min-height: 176px;
  }

  .serviceImage {
    height: 76px;
  }

  .serviceBody {
    gap: 6px;
    padding: 8px;
  }

  .serviceBody h3 {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .serviceCard p {
    display: none;
  }

  .questionCount {
    border-radius: 6px;
    font-size: 8px;
    line-height: 1.15;
    padding: 5px;
  }

  #appPanel .miniServicePicker {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 16px;
  }

  #appPanel .miniServiceButton {
    min-height: 66px;
    padding: 7px;
  }

  #appPanel .panelHeader {
    overflow: hidden;
  }

  #appPanel .panelHeader h2 {
    overflow-wrap: anywhere;
  }

  #appPanel .miniServiceButton::after {
    bottom: 7px;
    height: 7px;
    right: 7px;
    width: 7px;
  }

  #appPanel .miniServiceName {
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.15;
    min-height: 28px;
    overflow-wrap: anywhere;
    padding: 6px;
  }

  #appPanel .choiceOptions {
    grid-template-columns: 1fr;
  }

  #appPanel .choiceOption span {
    min-height: 62px;
    padding: 14px 15px;
  }

  .heroCopy h1,
  .panelHeader h2 {
    font-size: clamp(34px, 13vw, 52px);
  }

  .loadingPanel {
    padding: 24px 18px;
  }

  .loadingLogoWrap {
    height: 98px;
    width: 98px;
  }

  .loadingLogo {
    height: 62px;
    width: 62px;
  }

}
