:root {
  color-scheme: light;
  --petrol: #123f46;
  --muted: #526a6e;
  --purple: #2a59ff;
  --orange: #ff5b3a;
  --citrus: #e8f263;
  --paper: #fff;
  --line: #dcd5e6;
  --dark: #272238;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  padding: env(safe-area-inset-top) 14px env(safe-area-inset-bottom);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 3%, rgba(42, 89, 255, .12), transparent 29%),
    radial-gradient(circle at 3% 92%, rgba(255, 91, 58, .13), transparent 30%),
    #fbfafc;
  color: var(--petrol);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input { font: inherit; }

.operator-shell {
  width: min(520px, 100%);
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 6px 16px;
}

.operator-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  padding: 0 5px;
}

.operator-brand-crop {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 148px;
  height: 46px;
  overflow: hidden;
  border-radius: 8px;
  background: #f1ecdf;
  box-shadow: 3px 4px 0 var(--orange);
}

.operator-brand-crop img {
  position: absolute;
  top: -88px;
  left: -35px;
  width: 246px;
  max-width: none;
  height: auto;
}

.operator-role,
.operator-eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--citrus);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
}

.operator-stage {
  flex: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.operator-stage > div,
.operator-stage > section,
.operator-stage > form {
  width: 100%;
  min-width: 0;
}

.operator-intro {
  padding: 28px 22px 25px;
  border: 2px solid var(--petrol);
  border-bottom: 0;
  border-radius: 27px 27px 0 0;
  background: linear-gradient(135deg, #f4efff, #eefaf5);
}

.operator-intro h1,
.operator-campaigns h1 {
  margin: 17px 0 12px;
  font-size: clamp(42px, 12vw, 62px);
  line-height: .94;
  letter-spacing: -.055em;
}

.operator-intro h1 em {
  color: var(--purple);
  font-style: normal;
}

.operator-intro p,
.operator-campaigns header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.operator-login {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 25px 22px 27px;
  border: 2px solid var(--petrol);
  border-radius: 0 0 27px 27px;
  background: #fff;
  box-shadow: 7px 8px 0 var(--petrol);
}

.operator-login label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 850;
}

.operator-login input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 2px solid #cfc8da;
  border-radius: 15px;
  background: #fff;
  color: var(--petrol);
  font-size: 18px;
  font-weight: 750;
}

.operator-login input:focus {
  border-color: var(--purple);
  outline: 4px solid rgba(42, 89, 255, .15);
}

.operator-secret { position: relative; }
.operator-secret input { padding-right: 96px; }

.operator-secret button {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 78px;
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: #f0ecf6;
  color: var(--petrol);
  font-size: 13px;
  font-weight: 800;
}

.operator-primary {
  width: 100%;
  min-height: 59px;
  border: 2px solid var(--petrol);
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  box-shadow: 4px 5px 0 var(--orange);
  cursor: pointer;
}

.operator-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.operator-message {
  min-height: 22px;
  margin: 0;
  color: #a22b25;
  font-weight: 750;
  text-align: center;
}

.operator-login > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.operator-campaigns {
  padding: 26px 20px;
  border: 2px solid var(--petrol);
  border-radius: 27px;
  background: #fff;
  box-shadow: 7px 8px 0 var(--petrol);
}

.operator-campaigns h1 { font-size: clamp(40px, 11vw, 56px); }

.operator-campaign-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.operator-campaign-list {
  display: grid;
  gap: 13px;
  margin: 27px 0 22px;
}

.operator-campaign-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 94px;
  padding: 18px;
  border: 2px solid var(--petrol);
  border-radius: 18px;
  background: #fff;
  color: var(--petrol);
  text-align: left;
  cursor: pointer;
  transition: transform .14s, background .14s;
}

.operator-campaign-list button:first-child { background: linear-gradient(120deg, #f3efff, #effaf5); }
.operator-campaign-list button:active { transform: scale(.985); }
.operator-campaign-list span { display: grid; gap: 6px; }

.operator-campaign-list small {
  color: #6d4bc3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
}

.operator-campaign-list strong {
  font-size: 18px;
  line-height: 1.25;
}

.operator-campaign-list b {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--citrus);
  font-size: 23px;
}

.operator-signout {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.operator-empty {
  align-self: center;
  padding: 28px 22px;
  border: 2px dashed #bfb5cc;
  border-radius: 22px;
  background: #fff;
  text-align: center;
}

.operator-empty strong { display: block; font-size: 22px; }
.operator-empty p { color: var(--muted); line-height: 1.5; }

.operator-loading {
  align-self: center;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  text-align: center;
}

.operator-loading i {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(42, 89, 255, .16);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: operator-spin .8s linear infinite;
}

.operator-loading p { font-weight: 800; }

.operator-shell > footer {
  padding-top: 28px;
  color: #73868a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-align: center;
}

@keyframes operator-spin { to { transform: rotate(360deg); } }

@media (max-width: 360px) {
  body { padding-inline: 10px; }
  .operator-shell { padding-inline: 4px; }
  .operator-brand-crop { width: 132px; height: 44px; }
  .operator-brand-crop img { top: -81px; left: -32px; width: 229px; }
  .operator-intro,
  .operator-login { padding-inline: 18px; }
}

@media (min-width: 600px) {
  body { padding: 32px; }
  .operator-shell { min-height: calc(100svh - 64px); }
}

@media (prefers-reduced-motion: reduce) {
  .operator-loading i { animation: none; }
  .operator-campaign-list button { transition: none; }
}
