@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@500;600;700&display=swap');

:root{
  --brand:#871C1C;
  --brand-hover:#681616;
  --brand-soft:#FDE7E7;
  --brand-quiet:#FFF5F5;
  --ink:#0F0F0F;
  --ink-2:#344054;
  --muted:#475467;
  --faint:#667085;
  --line:#EAECF0;
  --line-2:#D0D5DD;
  --line-strong:#98A2B3;
  --paper:#FFFFFF;
  --soft:#F9FAFB;
  --soft-2:#F2F4F7;
  --success:#027A48;
  --success-soft:#ECFDF3;
  --warning:#B54708;
  --warning-soft:#FFFAEB;
  --danger:#F04438;
  --danger-strong:#B42318;
  --danger-soft:#FEF3F2;
  --shadow:0 18px 48px rgba(16,24,40,.08);
  --shadow-sm:0 1px 2px rgba(16,24,40,.05);
  --radius:8px;
  --radius-sm:6px;
  --radius-xs:4px;
  --font-body:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-head:'Roboto','Inter',system-ui,sans-serif;
  --font-mono:'SFMono-Regular','Cascadia Code','Roboto Mono',ui-monospace,monospace;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; min-height:100%; }
body{
  min-height:100vh;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.5;
  letter-spacing:0;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
button,input,select,textarea{ font:inherit; }

.skip-link{
  position:absolute;
  top:0;
  left:-999px;
  z-index:100;
  padding:10px 14px;
  background:var(--brand);
  color:#fff;
  border-radius:0 0 var(--radius-xs) 0;
  font-weight:700;
}
.skip-link:focus{ left:0; }

.af-app{
  position:relative;
  min-height:100vh;
  background:var(--paper);
}

.af-mast{
  position:absolute;
  z-index:20;
  top:20px;
  left:30px;
  right:30px;
  min-height:54px;
  display:flex;
  align-items:center;
  gap:18px;
  pointer-events:none;
}
.af-mast__brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
  text-decoration:none;
  pointer-events:auto;
}
.af-mast__crest{
  width:56px;
  height:54px;
  object-fit:contain;
}
.af-mast__word{
  font-family:var(--font-head);
  font-size:22px;
  line-height:1;
  font-weight:700;
  letter-spacing:.08em;
  color:var(--ink);
}
.af-mast__sub{ display:none; }
.af-mast__spacer{ flex:1; }
.af-mast__right{
  display:flex;
  align-items:center;
  gap:16px;
  pointer-events:auto;
}
.af-mast__link,
.af-mast__signout{
  color:var(--brand);
  text-decoration:none;
  background:transparent;
  border:0;
  padding:0;
  cursor:pointer;
  font-size:14px;
  line-height:20px;
  font-weight:600;
}
.af-mast__link:hover,
.af-mast__signout:hover{ color:var(--brand-hover); }
.af-mast__chip,
.af-mast__divider,
.af-mast__avatar{ display:none; }

.af-body{
  min-height:100vh;
  outline:none;
}
.af-footer{ display:none; }

/* Layout */
.af-stage{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  padding:119px 24px 64px;
}
.af-stage--center{ align-items:center; }
.af-stage--modal-context{ align-items:flex-start; }
.af-wrap{ width:100%; }
.af-security-backdrop{
  max-width:795px;
  width:100%;
  pointer-events:none;
}

.af-split{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,748px) minmax(440px,748px);
  justify-content:center;
  background:var(--paper);
}
.af-split__main{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:124px 90px 88px;
}
.af-split__content{ width:100%; max-width:568px; }
.af-split__content--mfa{ max-width:496px; }
.af-split__media{
  margin:16px 16px 16px 0;
  min-height:calc(100vh - 32px);
  border-radius:10px;
  overflow:hidden;
  background:
    linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.02)),
    url("afcas-auth-fire-extinguisher.7b835a229c48.png") center / cover no-repeat;
}
.af-split__foot{
  position:absolute;
  left:90px;
  right:90px;
  bottom:58px;
  text-align:center;
}

/* Typography */
.af-eyebrow{
  display:flex;
  align-items:center;
  gap:9px;
  margin:0 0 16px;
  color:var(--brand);
  font-size:12px;
  line-height:18px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
}
.af-eyebrow__dot{
  width:6px;
  height:6px;
  border-radius:2px;
  background:currentColor;
}
.af-eyebrow--muted{ color:var(--faint); }
.af-title{
  margin:0;
  color:var(--ink);
  font-family:var(--font-head);
  font-size:48px;
  line-height:1;
  font-weight:600;
  letter-spacing:0;
}
.af-title--lg{ font-size:48px; line-height:1; }
.af-title--sm{ font-size:28px; line-height:38px; }
.af-lede{
  margin:8px 0 0;
  max-width:58ch;
  color:var(--muted);
  font-size:18px;
  line-height:28px;
  font-weight:400;
}
.af-section-label{
  margin:0;
  color:var(--ink);
  font-size:18px;
  line-height:28px;
  font-weight:600;
}
.af-rule{
  height:1px;
  margin:24px 0;
  border:0;
  background:var(--line);
}
.af-center{ text-align:center; }
.af-foot-note{
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-secure-row{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:16px;
  line-height:24px;
  font-weight:400;
}

/* Panels and cards */
.af-panel{
  width:100%;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.af-panel__pad{ padding:20px; }
.af-panel__pad--lg{ padding:56px 20px 20px; }
.af-card{
  width:100%;
  max-width:480px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
.af-card__body{ padding:56px 20px 32px; }
.af-card__actions{
  display:flex;
  justify-content:center;
  gap:12px;
  padding:20px;
  border-top:1px solid var(--line);
}

/* Forms */
.af-form{
  display:flex;
  flex-direction:column;
  gap:20px;
  margin:0;
}
.af-grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.af-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.af-field__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.af-label{
  color:var(--ink-2);
  font-size:14px;
  line-height:20px;
  font-weight:500;
}
.af-label__opt a{
  color:var(--brand);
  font-size:14px;
  line-height:20px;
  font-weight:600;
  text-decoration:none;
}
.af-label__opt a:hover{ color:var(--brand-hover); }
.af-inputwrap{ position:relative; display:flex; align-items:center; }
.af-input{
  width:100%;
  height:44px;
  padding:10px 14px;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius-xs);
  outline:none;
  font-size:16px;
  line-height:24px;
  box-shadow:var(--shadow-sm);
  transition:border-color .14s,box-shadow .14s;
}
.af-input::placeholder{ color:var(--faint); }
.af-input:hover{ border-color:var(--line-strong); }
.af-input:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(135,28,28,.12);
}
.af-input[aria-invalid="true"]{
  border-color:var(--danger);
  box-shadow:0 0 0 4px rgba(240,68,56,.12);
}
.af-input--mono{ font-family:var(--font-mono); }
.af-input.has-icon{ padding-right:44px; }
.af-input__icon{
  position:absolute;
  right:8px;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:var(--radius-xs);
  background:transparent;
  color:var(--faint);
  cursor:pointer;
}
.af-input__icon:hover{ background:var(--soft); color:var(--ink-2); }
.af-help,
.af-msg{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}
.af-msg--err{ color:var(--danger); }
.af-readonly{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:10px 14px;
  background:var(--soft);
  border:1px solid var(--line-2);
  border-radius:var(--radius-xs);
  color:var(--ink-2);
  word-break:break-word;
}
.af-mono{ font-family:var(--font-mono); }
.af-default-submit{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
  opacity:0;
}

/* OTP */
.af-codeinput{
  width:100%;
  height:64px;
  text-align:center;
  font-family:var(--font-mono);
  font-size:28px;
  font-weight:600;
  letter-spacing:.28em;
  padding-left:.28em;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius-xs);
  outline:none;
}
.af-codeinput:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(135,28,28,.12);
}
.af-codeinput[aria-invalid="true"]{
  border-color:var(--danger);
  color:var(--danger);
  box-shadow:0 0 0 4px rgba(240,68,56,.12);
}
.af-otp{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:15.2px;
}
.af-otp__cell{
  width:70px;
  max-width:100%;
  height:64px;
  padding:0;
  text-align:center;
  color:var(--ink);
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius-xs);
  font-size:28px;
  line-height:44px;
  font-weight:600;
  outline:none;
}
.af-otp__cell:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(135,28,28,.12);
}
.af-otp.is-error .af-otp__cell{
  border-color:var(--danger);
  color:var(--danger);
}
.af-otp__real{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
  opacity:0;
}

/* Buttons and links */
.af-btn{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:8px 16px;
  border:1px solid transparent;
  border-radius:var(--radius-xs);
  cursor:pointer;
  text-decoration:none;
  font-size:14px;
  line-height:20px;
  font-weight:600;
  white-space:nowrap;
  transition:background .14s,border-color .14s,color .14s,box-shadow .14s;
}
.af-btn--block{ width:100%; }
.af-btn--lg{ min-height:44px; font-size:14px; }
.af-btn--primary,
.af-btn--danger{
  color:#fff;
  background:var(--brand);
  border-color:var(--brand);
}
.af-btn--primary:hover,
.af-btn--danger:hover{
  background:var(--brand-hover);
  border-color:var(--brand-hover);
}
.af-btn--secondary{
  color:var(--ink-2);
  background:var(--paper);
  border-color:var(--line-2);
  box-shadow:var(--shadow-sm);
}
.af-btn--secondary:hover{ background:var(--soft); }
.af-btn--ghost{
  color:var(--muted);
  background:transparent;
}
.af-btn--ghost:hover{ color:var(--ink); background:var(--soft); }
.af-btn--danger-out{
  color:var(--danger-strong);
  background:var(--paper);
  border-color:#FDA29B;
}
.af-btn--danger-out:hover{
  color:var(--danger-strong);
  background:var(--danger-soft);
}
.af-btn--danger-link{
  color:var(--danger-strong);
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
.af-btn--danger-link:hover{
  color:var(--danger-strong);
  background:var(--danger-soft);
}
.af-link{
  color:var(--brand);
  text-decoration:none;
  font-weight:600;
}
.af-link:hover{ color:var(--brand-hover); }
.af-link--muted{ color:var(--muted); }
.af-textbtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  color:var(--brand);
  background:transparent;
  border:0;
  cursor:pointer;
  text-decoration:none;
  font-size:14px;
  line-height:20px;
  font-weight:600;
}
.af-textbtn:hover{ color:var(--brand-hover); }
.af-mfa-signout{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  margin:16px 0 0;
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}
.af-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.af-actions--split{ justify-content:space-between; }

/* Alerts and pills */
.af-alert{
  display:flex;
  gap:12px;
  padding:14px 16px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}
.af-alert__icon{
  flex:0 0 auto;
  width:20px;
  height:20px;
  color:var(--faint);
}
.af-alert__title{
  margin:0 0 2px;
  color:var(--ink);
  font-weight:600;
}
.af-alert__body{ margin:0; color:inherit; }
.af-alert--err{
  background:var(--danger-soft);
  border-color:#FECDCA;
  color:#B42318;
}
.af-alert--err .af-alert__icon,
.af-alert--err .af-alert__title{ color:#B42318; }
.af-alert--warn{
  background:var(--warning-soft);
  border-color:#FEDF89;
  color:#93370D;
}
.af-alert--warn .af-alert__icon,
.af-alert--warn .af-alert__title{ color:#B54708; }
.af-alert--ok{
  background:var(--success-soft);
  border-color:#ABEFC6;
  color:#067647;
}
.af-alert--ok .af-alert__icon,
.af-alert--ok .af-alert__title{ color:#027A48; }
.af-alert--info{
  background:var(--brand-quiet);
  border-color:#FACDCD;
  color:var(--brand);
}
.af-alert--info .af-alert__icon,
.af-alert--info .af-alert__title{ color:var(--brand); }

.af-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:24px;
  padding:2px 10px;
  border-radius:999px;
  border:1px solid transparent;
  font-size:12px;
  line-height:18px;
  font-weight:600;
}
.af-pill__dot{
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}
.af-pill--ok,
.af-pill--on,
.af-pill--protected{
  color:var(--success);
  background:var(--success-soft);
  border-color:#ABEFC6;
}
.af-pill--active{
  color:var(--brand);
  background:var(--brand-quiet);
  border-color:#FACDCD;
}
.af-pill--pending{
  color:var(--warning);
  background:var(--warning-soft);
  border-color:#FEDF89;
}
.af-pill--off{
  color:var(--muted);
  background:var(--soft);
  border-color:var(--line);
}

/* Choice and destination rows */
.af-stack{ display:flex; flex-direction:column; }
.af-choice{
  min-height:116px;
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  color:inherit;
  background:var(--paper);
  border:1px solid var(--line-2);
  border-radius:var(--radius-xs);
  text-decoration:none;
  cursor:pointer;
  transition:border-color .14s,box-shadow .14s;
}
.af-choice:hover{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(135,28,28,.08);
}
.af-choice__icon,
.af-dest__badge,
.af-setting__icon{
  flex:0 0 auto;
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--soft-2);
  color:var(--brand);
}
.af-choice__main{ min-width:0; flex:1; display:flex; flex-direction:column; }
.af-choice__title{
  color:var(--ink);
  font-size:18px;
  line-height:28px;
  font-weight:600;
}
.af-choice__desc{
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-choice__arrow{ color:var(--brand); }

.af-dest-form{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin:0;
}
.af-dest{
  min-height:140px;
  width:100%;
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  color:inherit;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
  text-align:left;
  text-decoration:none;
  cursor:pointer;
}
.af-dest:hover{
  border-color:var(--brand);
  box-shadow:0 0 0 4px rgba(135,28,28,.08);
}
.af-dest__badge{
  color:var(--brand);
  background:var(--brand-quiet);
  font-weight:700;
}
.af-dest__badge--cert{ color:#344054; background:var(--soft-2); }
.af-dest__main{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
}
.af-dest__title{
  color:var(--ink);
  font-size:18px;
  line-height:28px;
  font-weight:600;
}
.af-dest__org{
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-dest__desc{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-dest__cta{
  flex:0 0 auto;
  color:var(--brand);
  font-size:14px;
  line-height:20px;
  font-weight:600;
}

/* Identity and settings */
.af-identity{
  min-height:56px;
  display:flex;
  align-items:center;
  gap:12px;
}
.af-identity__avatar{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:var(--brand-quiet);
  color:var(--brand);
  font-weight:700;
}
.af-identity__main{
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
}
.af-identity__name{
  color:var(--ink);
  font-size:16px;
  line-height:24px;
  font-weight:600;
}
.af-identity__email{
  color:var(--muted);
  font-size:16px;
  line-height:24px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.af-identity__right{ flex:0 0 auto; }

.af-stage--settings{
  align-items:flex-start;
  padding-top:120px;
  padding-bottom:56px;
}
.af-title--settings{
  font-size:34px;
  line-height:42px;
}
.af-lede--settings{
  max-width:64ch;
  font-size:15px;
  line-height:24px;
}
.af-stage--settings .af-section-label{
  color:var(--faint);
  font-size:13px;
  line-height:18px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.af-stage--settings .af-identity{
  min-height:48px;
}
.af-stage--settings .af-identity__avatar{
  width:44px;
  height:44px;
  font-size:15px;
}
.af-stage--settings .af-identity__name{
  font-size:14px;
  line-height:20px;
}
.af-stage--settings .af-identity__email{
  font-size:13px;
  line-height:20px;
}
.af-stage--settings .af-setting{
  min-height:78px;
  align-items:flex-start;
  gap:16px;
  padding:16px 18px;
}
.af-stage--settings .af-setting__icon{
  margin-top:2px;
}
.af-stage--settings .af-setting__title{
  font-size:15px;
  line-height:22px;
}
.af-stage--settings .af-setting__desc{
  margin-top:4px;
  font-size:14px;
  line-height:22px;
}

.af-group{
  display:flex;
  flex-direction:column;
  gap:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
}
.af-setting{
  min-height:96px;
  display:flex;
  align-items:center;
  gap:20px;
  padding:20px;
  background:var(--paper);
  border-bottom:1px solid var(--line);
}
.af-setting:last-child{ border-bottom:0; }
.af-setting__main{ min-width:0; flex:1; }
.af-setting__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.af-setting__title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:var(--ink);
  font-size:18px;
  line-height:28px;
  font-weight:600;
}
.af-setting__desc{
  max-width:58ch;
  margin:0;
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-setting__action{ flex:0 0 auto; }
.af-setting__actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}
.af-setting__meta{
  display:flex;
  gap:16px;
  margin-top:8px;
  color:var(--faint);
  font-size:14px;
  line-height:20px;
}
.af-setting__form{ margin-top:16px; }
.af-setting__form--danger{
  max-width:560px;
  margin-top:14px;
  padding:16px;
  background:#FFFBFA;
  border:1px solid #FECDCA;
  border-radius:var(--radius-xs);
}
.af-setting__remove-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

/* TOTP setup */
.af-qr{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.af-qr__frame{
  width:164px;
  height:164px;
  align-self:flex-start;
  padding:8px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
}
.af-qr__frame img{ width:100%; height:100%; }
.af-qr__steps{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.af-step{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.af-step__n{
  color:var(--ink);
  font-size:16px;
  line-height:24px;
  font-weight:600;
}
.af-step__txt{
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}
.af-key{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  padding:8px 10px;
  color:var(--ink);
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
  font-family:var(--font-mono);
  font-size:13px;
  word-break:break-all;
}
.af-key__value{
  min-width:0;
  overflow-wrap:anywhere;
}
.af-key__copy{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:5px;
  color:var(--brand);
  background:transparent;
  border:0;
  cursor:pointer;
  font-weight:700;
}
.af-setup-details{
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}
.af-setup-details code{
  display:block;
  margin-top:8px;
  padding:10px;
  background:var(--soft);
  border:1px solid var(--line);
  border-radius:var(--radius-xs);
  word-break:break-all;
}

/* Token and outcome cards */
.af-token{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.af-token .af-eyebrow{ justify-content:center; }
.af-token__seal{
  width:64px;
  height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:32px;
  border-radius:50%;
}
.af-token__seal--ok{ color:var(--success); background:var(--success-soft); }
.af-token__seal--warn,
.af-token__seal--info{ color:var(--brand); background:var(--brand-quiet); }
.af-token__seal--err{ color:var(--danger); background:var(--danger-soft); }
.af-token .af-lede{ margin-left:auto; margin-right:auto; }
.af-token .af-actions{ justify-content:center; margin-top:24px; }
.af-emailbox{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:20px 0;
  text-align:left;
  border-bottom:1px solid var(--line);
}
.af-emailbox:last-child{ border-bottom:0; }
.af-emailbox__label{
  color:var(--muted);
  font-size:16px;
  line-height:24px;
}
.af-emailbox__val{
  color:var(--ink);
  font-size:18px;
  line-height:28px;
  font-weight:600;
  word-break:break-word;
}
.af-token__arrow{ display:none; }
.af-pwrules{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.af-pwrule{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}

/* Modal-style account workflows */
.af-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:30;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:100px 24px 48px;
  background:rgba(204,211,219,.86);
  overflow:auto;
}
.af-modal{
  width:100%;
  max-width:480px;
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.af-modal--large{ max-width:520px; }
.af-modal--totp{ max-width:480px; }
.af-modal--totp .af-modal__body{ padding-top:18px; }
.af-modal--totp .af-modal__title{ font-size:18px; line-height:28px; }
.af-modal__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:20px;
  border-bottom:1px solid var(--line);
}
.af-modal__title{
  margin:0;
  color:var(--ink);
  font-size:20px;
  line-height:30px;
  font-weight:600;
}
.af-modal__copy{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:20px;
}
.af-modal__close{
  flex:0 0 auto;
  width:32px;
  height:32px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  border:0;
  border-radius:var(--radius-xs);
  background:transparent;
  text-decoration:none;
}
.af-modal__close:hover{ color:var(--ink); background:var(--soft); }
.af-modal__body{ padding:20px; }
.af-modal__actions{
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding:20px;
  border-top:1px solid var(--line);
}
.af-modal__footer-form{
  margin:0;
  padding:18px 20px 20px;
  border-top:1px solid var(--line);
}
.af-modal__footer-actions{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
}
.af-input--code-single{
  max-width:150px;
  letter-spacing:.12em;
}

/* Documentation */
.af-docs-shell{ width:min(1180px,calc(100% - 48px)); margin:0 auto; padding:120px 0 60px; }
.af-docs-hero{ padding:36px 0 30px; border-bottom:1px solid var(--line); }
.af-docs-hero__title{ margin:0; max-width:760px; font-family:var(--font-head); font-weight:700; font-size:40px; line-height:1.12; color:var(--ink); }
.af-docs-hero__copy{ margin:14px 0 0; max-width:720px; color:var(--muted); font-size:16px; line-height:1.65; }
.af-docs-grid{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin-top:24px; }
.af-docs-card{ display:flex; flex-direction:column; gap:8px; min-height:168px; padding:22px; color:inherit; text-decoration:none; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.af-docs-card:hover{ border-color:rgba(135,28,28,.38); box-shadow:var(--shadow); }
.af-docs-card__label{ width:max-content; padding:4px 9px; border-radius:999px; color:var(--brand); background:var(--brand-quiet); font-size:11px; font-weight:700; text-transform:uppercase; }
.af-docs-card__title{ color:var(--ink); font-size:20px; font-weight:700; }
.af-docs-card__copy{ color:var(--muted); font-size:14px; line-height:1.55; }
.af-docs-shell--article{ display:grid; grid-template-columns:250px minmax(0,1fr); gap:34px; align-items:start; }
.af-docs-sidebar{ position:sticky; top:22px; padding:18px; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.af-docs-sidebar__brand{ display:block; margin-bottom:14px; color:var(--ink); text-decoration:none; font-size:15px; font-weight:700; }
.af-docs-nav{ display:flex; flex-direction:column; gap:4px; }
.af-docs-nav a{ padding:9px 10px; color:var(--muted); text-decoration:none; border-radius:var(--radius-xs); font-size:14px; font-weight:600; }
.af-docs-nav a:hover{ color:var(--ink); background:var(--soft); }
.af-docs-nav a[aria-current="page"]{ color:var(--brand); background:var(--brand-quiet); }
.af-docs-article{ min-width:0; background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
.af-docs-article__header{ padding:34px 38px 26px; border-bottom:1px solid var(--line); background:var(--soft); border-radius:var(--radius) var(--radius) 0 0; }
.af-docs-article__header h1{ margin:0; color:var(--ink); font-family:var(--font-head); font-size:34px; line-height:1.12; font-weight:700; }
.af-docs-article__header p:last-child{ margin:10px 0 0; max-width:68ch; color:var(--muted); line-height:1.6; }
.af-docs-content{ padding:34px 38px 44px; color:var(--ink-2); font-size:15px; line-height:1.7; }
.af-docs-content > h1:first-child{ display:none; }
.af-docs-content h1,.af-docs-content h2,.af-docs-content h3,.af-docs-content h4{ margin:34px 0 12px; color:var(--ink); font-family:var(--font-head); line-height:1.2; }
.af-docs-content h2{ padding-top:14px; border-top:1px solid var(--line); font-size:24px; }
.af-docs-content h3{ font-size:19px; }
.af-docs-content p{ margin:0 0 16px; max-width:78ch; }
.af-docs-content ul,.af-docs-content ol{ margin:0 0 20px; padding-left:24px; max-width:82ch; }
.af-docs-content li{ margin:6px 0; }
.af-docs-content a{ color:var(--brand); font-weight:700; text-decoration:none; }
.af-docs-content code{ font-family:var(--font-mono); font-size:.92em; color:var(--ink); background:var(--soft); border:1px solid var(--line); border-radius:5px; padding:.12em .36em; }
.af-docs-content pre{ margin:18px 0 24px; padding:16px 18px; overflow:auto; background:#171717; color:#F8FAFC; border-radius:var(--radius); }
.af-docs-content pre code{ display:block; padding:0; color:inherit; background:transparent; border:0; font-size:13px; line-height:1.65; }
.af-docs-content table{ width:100%; margin:18px 0 26px; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; font-size:14px; }
.af-docs-content th,.af-docs-content td{ padding:12px 14px; vertical-align:top; border-bottom:1px solid var(--line); border-right:1px solid var(--line); text-align:left; }
.af-docs-content th:last-child,.af-docs-content td:last-child{ border-right:0; }
.af-docs-content tr:last-child td{ border-bottom:0; }
.af-docs-content th{ color:var(--ink); background:var(--soft); font-weight:700; }
.af-docs-content td{ color:var(--ink-2); background:var(--paper); }

@media (max-width:980px){
  .af-mast{ left:22px; right:22px; top:18px; }
  .af-mast__crest{ width:44px; height:42px; }
  .af-mast__word{ font-size:18px; }
  .af-split{ display:block; }
  .af-split__main{ min-height:100vh; padding:118px 24px 72px; }
  .af-split__media{ display:none; }
  .af-split__foot{ left:24px; right:24px; bottom:28px; }
}

@media (max-width:640px){
  body{ font-size:15px; }
  .af-mast{ top:16px; left:18px; right:18px; }
  .af-mast__right{ gap:10px; }
  .af-stage{ padding:112px 18px 42px; }
  .af-stage--center{ align-items:flex-start; }
  .af-title,.af-title--lg{ font-size:34px; line-height:1.08; }
  .af-title--settings{ font-size:28px; line-height:34px; }
  .af-title--sm{ font-size:24px; line-height:32px; }
  .af-lede{ font-size:16px; line-height:24px; }
  .af-lede--settings{ font-size:14px; line-height:22px; }
  .af-grid2{ grid-template-columns:1fr; }
  .af-panel__pad,.af-panel__pad--lg{ padding:22px; }
  .af-split__main{ padding:112px 20px 72px; }
  .af-otp{ gap:8px; }
  .af-otp__cell{ width:100%; height:56px; font-size:24px; }
  .af-choice{ min-height:auto; align-items:flex-start; }
  .af-dest{ min-height:auto; align-items:flex-start; }
  .af-dest__cta{ margin-left:auto; }
  .af-stage--settings{ padding-top:104px; }
  .af-identity{ align-items:flex-start; }
  .af-identity__right{ display:none; }
  .af-setting{ align-items:flex-start; }
  .af-stage--settings .af-setting{ gap:14px; padding:16px; }
  .af-setting__main{ display:flex; flex-direction:column; }
  .af-setting__row{ display:contents; }
  .af-setting__title{ order:1; }
  .af-setting__desc{ order:2; }
  .af-setting__meta{ order:3; }
  .af-setting__action{ order:4; margin-top:12px; }
  .af-setting__form{ order:5; }
  .af-setting__action,.af-setting__action .af-btn{ width:100%; }
  .af-setting__actions{ justify-content:stretch; }
  .af-setting__actions form{ width:100%; }
  .af-setting__form--danger .af-otp{
    grid-template-columns:repeat(3,44px);
    justify-content:start;
  }
  .af-setting__form--danger .af-otp__cell{ width:44px; }
  .af-setting__remove-actions{ align-items:stretch; flex-direction:column-reverse; }
  .af-setting__remove-actions .af-btn{ width:100%; }
  .af-actions--split{ align-items:stretch; flex-direction:column; }
  .af-actions--split .af-btn{ width:100%; }
  .af-docs-shell{ width:min(100% - 32px,1180px); padding-top:104px; }
  .af-docs-grid{ grid-template-columns:1fr; }
  .af-docs-shell--article{ display:flex; flex-direction:column; gap:16px; }
  .af-docs-sidebar{ position:static; width:100%; }
  .af-docs-article__header,.af-docs-content{ padding:24px 20px; }
  .af-docs-article__header h1{ font-size:28px; }
  .af-docs-content table{ display:block; overflow-x:auto; }
}
