/* ============================================================
   LSEG | User Verification Platform (UVP)
   ============================================================ */

:root {
  /* Brand / surfaces */
  --navy-900: #0A1A2F;
  /* deepest brand navy (header)        */
  --navy-800: #13294A;
  /* header gradient partner            */
  --bg: #EEF2F8;
  /* app background (cool off-white)    */
  --card: #FFFFFF;

  /* Text */
  --ink: #11243B;
  /* primary text                       */
  --muted: #5C6E84;
  /* secondary text                     */
  --faint: #8595A8;
  /* tertiary / captions                */

  /* Accent + status */
  --blue-600: #2456E6;
  /* primary action                     */
  --blue-700: #1C44BD;
  --blue-50: #EAF0FE;
  --emerald-600: #0E875A;
  /* success                            */
  --emerald-50: #E6F5EE;
  --red-600: #C5362C;
  /* failure                            */
  --red-50: #FBEBE9;
  --amber-600: #9A6A0B;
  /* pending / waiting                  */
  --amber-50: #FBF1D9;

  /* Lines */
  --line: #E3E9F2;
  --line-strong: #CDD7E5;

  /* Type */
  --ui: 'Inter', 'Segoe UI', 'Liberation Sans', 'Arial', sans-serif;
  --mono: 'SFMono-Regular', 'Consolas', 'DejaVu Sans Mono', monospace;

  --radius: 14px;
  --maxw: 1180px;
  /* outer content width (agent)        */
}

/* ---------- icon utility system ---------- */
/* Icons are Lucide SVGs stored in assets/icons/.
   Use <img class="icon icon-{size} icon-{colour}" src="assets/icons/name.svg" alt="" aria-hidden="true">
   Colour filters convert the black SVG stroke to the desired brand colour.    */
img.icon {
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle
}

.icon-xs  { width: 13px; height: 13px }
.icon-sm  { width: 16px; height: 16px }
.icon-md  { width: 18px; height: 18px }
.icon-lg  { width: 22px; height: 22px }
.icon-xl  { width: 28px; height: 28px }

/* Colour filters */
.icon-white { filter: brightness(0) invert(1) }
.icon-faint { filter: brightness(0) opacity(0.42) }
.icon-muted { filter: brightness(0) opacity(0.58) }
.icon-blue  { filter: brightness(0) saturate(100%) invert(26%) sepia(80%) saturate(1800%) hue-rotate(213deg) brightness(97%) contrast(93%) }
.icon-green { filter: brightness(0) saturate(100%) invert(38%) sepia(60%) saturate(800%) hue-rotate(120deg) brightness(80%) contrast(90%) }
.icon-red   { filter: brightness(0) saturate(100%) invert(27%) sepia(90%) saturate(900%) hue-rotate(345deg) brightness(82%) contrast(95%) }

/* ---------- base ---------- */
* {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block
}

a {
  color: var(--blue-700)
}

h1.title:focus-visible{
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 6px
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0
}

[hidden] {
  display: none !important
}

.highlight {
  color: #C5362C;
  font-weight: 600;
}

/* ---------- brand bar ---------- */
.brand {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: #fff
}

.brand-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 26px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-inner .lseg-brand {
  height: 2rem;
}

.brand .word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .14em
}

.brand .sep {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, .22);
  margin: 0 3px
}

.brand .appname {
  font-size: 13.5px;
  font-weight: 600;
  color: #D7E0EC
}

.brand .right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px
}

.idchip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 12px;
  color: #E7EDF5
}

.idchip .av {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2C5BE0;
  color: #fff;
  font: 600 10.5px/22px var(--ui);
  text-align: center
}

.errorText {
  margin-top: 1rem;
}

.loading {
  width: 100%;
  position: fixed;
  left: 0;
  top: 0;
  height: 100%;
  bottom: 0;
  background: rgba(0, 0, 0, .1);
  display: none;
  align-items: center;
  justify-content: center;
}

.loading .statusbar {
  width: 480px;
}

.loading .statusbar .st {
  font-size: 1rem;
}

.loading .statusbar .sd {
  font-size: .85rem;
}

.loading.show {
  display: grid;
}

#signInError {
  color: var(--red-600);
  font-size: .85rem;
  display: none;
}

#signInError.show {
  display: block;
}

/* Sign-out button (shown in brand bar after auth) */
.signout-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font: 500 12px/1 var(--ui);
  padding: 9px 10px;
  cursor: pointer;
  letter-spacing: .01em;
  transition: background .15s, border-color .15s, color .15s;
}

.signout-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.envchip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: 11.5px;
  color: #DCE4EF
}

.envchip .online.g {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #43D17F;
  box-shadow: 0 0 0 3px rgba(67, 209, 127, .18)
}

.envchip .online.r {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e74c3c;
  box-shadow: 0 0 0 3px rgba(67, 209, 127, .18)
}

/* ---------- stepper ---------- */
.steps {
  background: #fff;
  border-bottom: 1px solid var(--line)
}

.steps-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 17px 26px;
  display: flex;
  align-items: center
}

.step {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto
}

.step .dot {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--mono);
  border: 1.5px solid var(--line-strong);
  color: var(--faint);
  background: #fff
}

.step .dot .tick {
  display: none
}

.step .lab {
  font: 600 12.5px/1 var(--ui);
  color: var(--faint);
  white-space: nowrap
}

.step.done .dot {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: #fff
}

.step.done .dot .num {
  display: none
}

.step.done .dot .tick {
  display: block
}

.step.done .lab {
  color: var(--ink)
}

.step.curr .dot {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: #fff;
  box-shadow: 0 0 0 4px var(--blue-50)
}

.step.curr .lab {
  color: var(--ink)
}

.conn {
  flex: 1 1 auto;
  height: 2px;
  background: var(--line);
  margin: 0 13px;
  border-radius: 2px;
  min-width: 18px
}

.conn.done {
  background: var(--emerald-600)
}

/* ---------- stage + card (agent) ---------- */
.stage {
  flex: 1;
  background: var(--bg)
}

.stage-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 34px 26px 40px
}

.card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  box-shadow: 0 1px 2px rgba(16, 39, 64, .04), 0 10px 30px -18px rgba(16, 39, 64, .20)
}

/* ---------- typography helpers ---------- */
.eyebrow {
  font: 600 11px/1 var(--ui);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin: 0 0 12px
}

.title {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--ink)
}

.subtitle {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 9px 0 0;
  max-width: 62ch
}

.hint {
  font-size: 12.5px;
  color: var(--faint);
  margin: 9px 0 0;
  display: flex;
  align-items: center;
  gap: 7px
}

/* ---------- forms ---------- */
.field {
  margin-top: 22px
}

.field+.field {
  margin-top: 14px
}

.label {
  display: block;
  font: 600 12.5px/1 var(--ui);
  color: var(--ink);
  margin: 0 0 9px
}

.input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14.5px;
  color: var(--ink);
  font-family: var(--ui);
  background: #fff;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s, box-shadow .15s
}

.input::placeholder {
  color: #9AA8B9
}

.input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50)
}

.input.lg {
  height: 50px;
  font-size: 15px
}

.input-icon {
  position: relative
}

.input-icon .ic {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9AA8B9
}

.input-icon .input {
  padding-left: 46px
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  font: 600 13.5px/1 var(--ui);
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
  transition: filter .15s, background .15s, box-shadow .15s
}

.btn:active {
  transform: translateY(.5px)
}

.btn.primary {
  background: var(--blue-600);
  color: #fff;
  box-shadow: 0 1px 2px rgba(28, 68, 189, .35), 0 8px 18px -10px rgba(28, 68, 189, .6)
}

.btn.primary:hover {
  background: var(--blue-700)
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong)
}

.btn.ghost:hover {
  background: #F6F8FC
}

.btn.danger {
  background: #fff;
  color: var(--red-600);
  border-color: #E7B6B1
}

.btn.danger:hover {
  background: var(--red-50)
}

.btn.success {
  background: var(--emerald-600);
  color: #fff
}

.btn.success:hover {
  filter: brightness(1.05)
}

.btn.lg {
  height: 50px;
  padding: 0 26px;
  font-size: 14.5px;
  width: 100%
}

.btn.block {
  width: 100%
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  box-shadow: none
}

/* ---------- caller detail rows (verify step) ---------- */
.callerbox {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FAFBFE
}

.callerbox .pa {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #fff;
  font: 700 16px/44px var(--ui);
  text-align: center;
  background: linear-gradient(160deg, #2C5BE0, #1C44BD)
}

.callerbox .nm {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink)
}

.callerbox .me {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px
}

.callerbox .idtag {
  margin-left: auto;
  font: 600 11.5px/1 var(--mono);
  color: var(--muted);
  background: #EEF2F8;
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 8px
}

.rows {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.row .k {
  font: 600 11px/1 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  width: 130px;
  flex: 0 0 auto
}

.row .v {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink)
}

.row .chk {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--emerald-50);
  border: 1px solid #BDE3CF;
  display: grid;
  place-items: center
}

/* ---------- agent type selection grid ---------- */
.agent-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 24px
}

.agent-type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 20px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--ui);
  transition: border-color .15s, box-shadow .15s, background .15s
}

.agent-type-card:hover {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50);
  background: #FAFBFF
}

.agent-type-card:active {
  transform: translateY(1px)
}

.atc-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  flex: 0 0 auto
}

.atc-icon--security {
  background: linear-gradient(145deg, #1C44BD, #0A1A2F)
}

.atc-icon--aed {
  background: linear-gradient(145deg, #1cbd42, #025809)
}

.atc-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3
}

.atc-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1
}

.atc-arrow {
  color: var(--blue-600);
  margin-top: 4px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .15s, transform .15s
}

.agent-type-card:hover .atc-arrow {
  opacity: 1;
  transform: translateX(0)
}

.agent-type-card.disabled {
  pointer-events: none;
  opacity: .65;
}

@media (max-width: 560px) {
  .agent-type-grid {
    grid-template-columns: 1fr
  }
}

/* ---------- verify step Yes/No radio toggles ---------- */
.radio-toggle {
  margin-left: auto;
  display: flex;
  flex: 0 0 auto;
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden
}

.rt-opt {
  position: relative;
  cursor: pointer
}

.rt-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none
}

.rt-opt span {
  display: block;
  padding: 7px 16px;
  font: 600 12.5px/1 var(--ui);
  color: var(--muted);
  background: #fff;
  transition: background .12s, color .12s;
  white-space: nowrap;
  user-select: none
}

.rt-opt + .rt-opt span {
  border-left: 1.5px solid var(--line-strong)
}

.rt-opt input[value="yes"]:checked + span {
  background: var(--emerald-50);
  color: var(--emerald-600)
}

.rt-opt input[value="no"]:checked + span {
  background: var(--red-50);
  color: var(--red-600)
}

.rt-opt:focus-within span {
  outline: none;
  outline-offset: -2px
}

/* ---------- numbered guide (direct step) ---------- */
.guide {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.gstep {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff
}

.gstep .n {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--navy-900);
  color: #fff;
  font: 700 13px/27px var(--ui);
  text-align: center
}

.gstep .gt {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45
}

.gstep .gd {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45
}

.url {
  font: 600 13px/1 var(--mono);
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 3px 8px;
  border-radius: 6px
}

/* ---------- chips / status ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600
}

.chip.wait {
  background: var(--amber-50);
  color: var(--amber-600);
  border: 1px solid #ECD9A6
}

.chip.info {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #C5D5FB
}

.chip .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 1.4s ease-in-out infinite
}

/* ---------- code module (the signature element) ---------- */
.code {
  display: flex;
  gap: 11px
}

.code.centered {
  justify-content: center
}

.cell {
  width: 55px;
  height: 68px;
  border-radius: 13px;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  display: grid;
  place-items: center;
  font: 600 35px/1 var(--mono);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 39, 64, .06)
}

.code.hero .cell {
  width: 64px;
  height: 82px;
  font-size: 42px;
  border-color: #D4E0F4;
  background: linear-gradient(180deg, #FFFFFF, #F4F8FF);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -8px rgba(36, 86, 230, .30)
}

/* OTP entry (real inputs, styled like .cell) */
.otp {
  display: flex;
  gap: 11px
}

.otp input {
  width: 55px;
  height: 68px;
  text-align: center;
  font: 600 35px/1 var(--mono);
  color: var(--ink);
  border: 1.5px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(16, 39, 64, .06);
  transition: border-color .15s, box-shadow .15s
}

.otp input:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px var(--blue-50)
}

.otp input.filled {
  border-color: #B9C7DC
}

.otp.error input {
  border-color: var(--red-600);
  box-shadow: 0 0 0 4px var(--red-50)
}

/* inline form error (agent code step) */
.formerror {
  margin-top: 16px;
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--red-600)
}

.formerror.show {
  display: flex
}

.shake {
  animation: shake .38s ease
}

@keyframes shake {

  10%,
  90% {
    transform: translateX(-2px)
  }

  20%,
  80% {
    transform: translateX(4px)
  }

  30%,
  50%,
  70% {
    transform: translateX(-7px)
  }

  40%,
  60% {
    transform: translateX(7px)
  }
}

/* failure badge — reuses the .bigcheck shape in red */
.bigcheck.fail {
  background: var(--red-600);
  box-shadow: 0 0 0 8px var(--red-50)
}

/* ---------- validating / spinner ---------- */
.statusbar {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FAFBFE
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #DCE6F5;
  border-top-color: var(--blue-600);
  flex: 0 0 auto;
  animation: spin .8s linear infinite
}

.statusbar .st {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink)
}

.statusbar .sd {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px
}

/* ---------- verified summary + payload ---------- */
.verified-head {
  display: flex;
  align-items: center;
  gap: 16px
}

.bigcheck {
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--emerald-600);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 8px var(--emerald-50)
}

.refpill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font: 600 13px/1 var(--mono);
  color: var(--ink)
}

.refpill .t {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600
}

.summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.sumcell {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  background: #FAFBFE
}

.sumcell .sk {
  font: 600 10.5px/1 var(--ui);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint)
}

.sumcell .sv {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px
}

.payhdr {
  display: flex;
  align-items: center;
  margin: 22px 0 11px
}

.payhdr .pl {
  font: 600 12.5px/1 var(--ui);
  color: var(--ink)
}

.payhdr .copy {
  margin-left: auto
}

.btn.mini {
  height: 36px;
  padding: 0 14px;
  font-size: 12.5px
}

.payload {
  background: #0D1F38;
  border-radius: 12px;
  padding: 18px 20px;
  overflow: auto
}

.payload pre {
  margin: 0;
  font: 400 12.5px/1.65 var(--mono);
  color: #C9D6EA;
  white-space: pre
}

.payload .kk {
  color: #7FA8E6
}

.payload .ss {
  color: #9FE0B7
}

.payload .nn {
  color: #E6C07B
}

/* ---------- footer actions ---------- */
.foot {
  display: flex;
  align-items: center;
  margin-top: 26px
}

.foot .right {
  margin-left: auto;
  display: flex;
  gap: 12px
}

/* ---------- caller layout ---------- */
.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  text-align: center;
  padding: 48px 24px;
  background: var(--bg)
}

.ccard {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 34px 32px;
  box-shadow: 0 10px 34px -18px rgba(16, 39, 64, .28)
}

.ccard.wide {
  max-width: 460px
}

.ccard.tight {
  max-width: 400px
}

.ccard .title {
  text-align: center;
  font-size: 23px
}

.ccard .eyebrow {
  text-align: center
}

.lockwrap {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  margin: 0 auto 18px
}

.csub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 10px 0 0
}

.csub .main {
  font-weight: 600;
  color: var(--blue-600);
}

.trust {
  margin-top: 22px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center
}

.muted-note {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.5;
  margin-top: 18px;
  text-align: center
}

.left {
  text-align: left
}

/* Entra (mock) panel */
.ms {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 22px
}

.msq {
  display: grid;
  grid-template-columns: 9px 9px;
  grid-template-rows: 9px 9px;
  gap: 2px
}

.msq i {
  display: block;
  width: 9px;
  height: 9px
}

.msq i:nth-child(1) {
  background: #F25022
}

.msq i:nth-child(2) {
  background: #7FBA00
}

.msq i:nth-child(3) {
  background: #00A4EF
}

.msq i:nth-child(4) {
  background: #FFB900
}

.ms b {
  font-size: 14px;
  color: #5E5E5E;
  font-weight: 600
}

.linklike {
  color: var(--blue-700);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer
}

/* expiry / countdown */
.expiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted)
}

.expiry .live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-600);
  box-shadow: 0 0 0 3px var(--emerald-50)
}

.expiry b {
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600
}

.expiry.is-urgent b {
  color: var(--red-600)
}

.expiry.is-urgent .live {
  background: var(--red-600);
  box-shadow: 0 0 0 3px var(--red-50)
}

/* dev-only helper (preview without a backend) */
.devbar {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  text-align: center
}

.devbar small {
  display: block;
  color: var(--faint);
  font-size: 11px;
  margin-bottom: 8px
}

/* ---------- feedback page ---------- */
.fb-back-link {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.75);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s
}

.fb-back-link:hover {
  color: #fff
}

.fb-card {
  max-width: 520px;
  text-align: center;
  margin-bottom: 48px
}

.fb-card .csub {
  margin-bottom: 6px
}

.fb-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-900);
  display: grid;
  place-items: center;
  margin: 0 auto 18px
}

.fb-section {
  margin-top: 22px;
  text-align: left
}

.req {
  color: var(--red-600);
  font-weight: 700
}

.req-opt {
  color: var(--faint);
  font-weight: 400;
  font-size: 12px
}

/* feedback type 2×2 grid */
.fb-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}

.fb-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: var(--ui);
  transition: border-color .15s, box-shadow .15s, background .15s
}

.fb-type-btn:hover {
  border-color: var(--blue-600);
  background: #FAFBFF
}

.fb-type-btn.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px var(--blue-50)
}

.fb-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff
}

.fb-type-icon--bug      { background: var(--red-600) }
.fb-type-icon--positive { background: var(--emerald-600) }
.fb-type-icon--feature  { background: #7C3AED }
.fb-type-icon--general  { background: var(--navy-900) }

/* active state — icon keeps its colour, label turns blue */
.fb-type-btn.active .fb-type-icon--bug      { background: var(--red-600) }
.fb-type-btn.active .fb-type-icon--positive { background: var(--emerald-600) }
.fb-type-btn.active .fb-type-icon--feature  { background: #7C3AED }
.fb-type-btn.active .fb-type-icon--general  { background: var(--navy-900) }

.fb-type-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  line-height: 1.3
}

.fb-type-btn.active .fb-type-label {
  color: var(--blue-700)
}

/* severity pill group */
.sev-group {
  display: flex;
  gap: 10px
}

.sev-btn {
  flex: 1;
  height: 40px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  font: 600 13px/1 var(--ui);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s
}

.sev-btn:hover {
  border-color: var(--blue-600);
  color: var(--ink)
}

.sev-btn.active[data-sev="low"] {
  background: var(--amber-50);
  border-color: #D4A84B;
  color: var(--amber-600)
}

.sev-btn.active[data-sev="medium"] {
  background: #FEF0E6;
  border-color: #E8924A;
  color: #B85A12
}

.sev-btn.active[data-sev="high"] {
  background: var(--red-50);
  border-color: var(--red-600);
  color: var(--red-600)
}

/* textarea */
.fb-textarea {
  height: auto;
  resize: vertical;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.55;
  font-size: 14px
}

/* character counter */
.char-count {
  font: 400 12px/1 var(--mono);
  color: var(--faint)
}

.char-count--warn {
  color: var(--red-600);
  font-weight: 600
}

/* feedback reference pill on success screen */
.fb-ref {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font: 600 13px/1 var(--mono)
}

.fb-ref-label {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 600
}

/* ---------- agent menu footer link ---------- */
.menu-foot {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--faint)
}

.menu-foot a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color .15s
}

.menu-foot a:hover {
  color: var(--blue-700)
}


/* ---------- auth-splash ---------- */
.auth-splash { display: none; }
.auth-pending .auth-splash {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* Hide the app itself while auth processes */
.auth-pending[data-panel],
.auth-pending .steps { visibility: hidden; }

.auth-splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  grid-area: 16px;
}

.auth-splash__msg {
  font: 500 13px/1 var(--ui);
  color: var(--muted);
  margin: 0;
}

.auth-returning .auth-splash__msg::after { content: 'Signing you in...'; }
.auth-returning .auth-splash__msg        { font-size: 0;}
.auth-returning .auth-splash__msg::after { font-size: 13px; }

.auth-spinner {
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--line);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
}

/*------- cooldown design ---------*/
.cooldown-body .subtitle {
  min-width: 60%;
  margin: 1rem auto;
}
.cooldown-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  margin: 22px 0;
}

.cooldown-box__label {
  font: 600 11.5px/1 var(--ui);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.cooldown-box__timer {
  font: 700 42px/1 var(--mono);
  color: var(--ink);
  font-variant: tabular-nums;
}

.cooldown-box_sub {
  font: 400 12.5px/1.4 var(--ui);
  color: var(--faint);
}

.cooldown-box.is-urgent .cooldown-box__timer {
  color: #43D17F;
}


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

/* ---------- animation ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: .4
  }

  50% {
    opacity: 1
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}

/* ---------- responsive ---------- */
@media (max-width:760px) {

  .brand-inner,
  .steps-inner,
  .stage-inner {
    padding-left: 16px;
    padding-right: 16px
  }

  .step .lab {
    display: none
  }

  .conn {
    margin: 0 8px
  }

  .envchip,
  .idchip {
    display: none
  }

  .card {
    padding: 22px 18px
  }

  .title {
    font-size: 21px
  }

  .cell,
  .otp input {
    width: 46px;
    height: 58px;
    font-size: 28px
  }

  .code.hero .cell {
    width: 48px;
    height: 64px;
    font-size: 32px
  }

  .code,
  .otp {
    gap: 8px
  }

  .row {
    flex-wrap: wrap
  }

  .row .k {
    width: 100%
  }

  .summary {
    grid-template-columns: 1fr
  }

  .foot {
    flex-direction: column;
    align-items: stretch;
    gap: 12px
  }

  .foot .right {
    margin-left: 0;
    flex-direction: column
  }

  .foot .btn {
    width: 100%
  }
}