/* All rules are scoped to the existing ANF portal wrapper. */
.anf-profile-workflow {
  --apt-accent: #DD422A;
  --apt-action: #9F261D;
  --apt-hover: #8B120F;
  --apt-bg: #F5EFEC;
  --apt-ink: #2B2522;
  --apt-navy: #0B3156;
  --apt-line: #D6CCC7;
  --apt-white: #FFFFFF;
  color: var(--apt-ink) !important;
  background: var(--apt-bg) !important;
  max-width: 1240px;
  width: 100%;
  margin: 24px auto !important;
  padding: clamp(16px, 3vw, 36px) !important;
  border: 1px solid var(--apt-line);
  border-radius: 24px;
  font-family: inherit;
  line-height: 1.6;
  isolation: isolate;
}
.anf-profile-workflow,
.anf-profile-workflow * { box-sizing: border-box; }
.anf-profile-workflow .anf-hero {
  color: var(--apt-white) !important;
  background: var(--apt-navy) !important;
  border: 0 !important;
  border-top: 6px solid var(--apt-accent) !important;
  border-radius: 18px !important;
  padding: clamp(22px, 4vw, 40px) !important;
  margin: 0 0 24px !important;
}
.anf-profile-workflow .anf-hero h1 {
  color: var(--apt-white) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.18 !important;
  margin: 0 0 12px !important;
  letter-spacing: -.025em;
}
.anf-profile-workflow .anf-hero p { color: var(--apt-white) !important; margin: 10px 0 0 !important; }
.anf-profile-workflow .anf-hero .anf-logout {
  display: inline-flex;
  color: var(--apt-white) !important;
  border: 1px solid #FFFFFF;
  border-radius: 8px;
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 600;
}
.anf-profile-workflow .anf-card {
  background: var(--apt-white) !important;
  color: var(--apt-ink) !important;
  border: 1px solid var(--apt-line) !important;
  border-radius: 18px !important;
  padding: clamp(20px, 3vw, 30px) !important;
  margin: 0 0 20px !important;
  box-shadow: 0 5px 20px rgba(43, 37, 34, .05) !important;
  min-width: 0;
}
.anf-profile-workflow h2,
.anf-profile-workflow h3,
.anf-profile-workflow legend { color: var(--apt-navy) !important; }
.anf-profile-workflow .anf-card h2 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.3; margin: 0 0 14px; }
.anf-profile-workflow a { color: var(--apt-action); text-underline-offset: 3px; overflow-wrap: anywhere; }
.anf-profile-workflow a:hover { color: var(--apt-hover); }
.anf-profile-workflow .anf-button,
.anf-profile-workflow input[type="submit"],
.anf-profile-workflow button[type="submit"] {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: var(--apt-action) !important;
  color: var(--apt-white) !important;
  border: 2px solid var(--apt-action) !important;
  border-radius: 10px !important;
  min-height: 46px;
  padding: 11px 20px !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer;
  max-width: 100%;
}
.anf-profile-workflow .anf-button:hover,
.anf-profile-workflow input[type="submit"]:hover,
.anf-profile-workflow button[type="submit"]:hover { background: var(--apt-hover) !important; border-color: var(--apt-hover) !important; }
.anf-profile-workflow .anf-button-secondary {
  background: var(--apt-white) !important;
  color: var(--apt-navy) !important;
  border-color: var(--apt-navy) !important;
}
.anf-profile-workflow .anf-button-secondary:hover { background: var(--apt-bg) !important; color: var(--apt-navy) !important; border-color: var(--apt-navy) !important; }
.anf-profile-workflow .anf-portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.anf-profile-workflow .anf-resource-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0 !important; margin: 20px 0 0 !important; }
.anf-profile-workflow .anf-resource-list li { margin: 0 !important; padding: 0 !important; min-width: 0; }
.anf-profile-workflow .anf-resource-list a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 64px;
  height: 100%;
  padding: 16px 18px;
  background: var(--apt-bg) !important;
  color: var(--apt-navy) !important;
  border: 1px solid var(--apt-line);
  border-left: 4px solid var(--apt-accent);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.anf-profile-workflow .anf-resource-list a:hover { background: #E7DEDA !important; border-color: var(--apt-navy); }
.anf-profile-workflow .anf-portal-announcement { border-left: 5px solid var(--apt-accent) !important; }
.anf-profile-workflow .anf-targeted-project-items { border-left: 5px solid var(--apt-navy) !important; }
.anf-profile-workflow .anf-targeted-item { background: var(--apt-bg) !important; border-color: var(--apt-line) !important; border-radius: 12px !important; padding: 18px !important; overflow-wrap: anywhere; }
.anf-profile-workflow .anf-status { color: var(--apt-navy) !important; background: var(--apt-white) !important; border: 1px solid var(--apt-line) !important; border-left: 5px solid var(--apt-navy) !important; border-radius: 12px; padding: 18px; margin: 0 0 20px; }
.anf-profile-workflow .anf-help,
.anf-profile-workflow .description,
.anf-profile-workflow .anf-edit-kicker { color: #584C45 !important; }
.anf-profile-workflow label { color: var(--apt-ink); font-weight: 600; }
.anf-profile-workflow input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]),
.anf-profile-workflow textarea,
.anf-profile-workflow select { max-width: 100%; background: var(--apt-white) !important; color: var(--apt-ink) !important; border: 1px solid #8C7C73 !important; border-radius: 8px !important; padding: 11px 12px; font: inherit; }
.anf-profile-workflow input[type="checkbox"],
.anf-profile-workflow input[type="radio"] { accent-color: var(--apt-action); }
.anf-profile-workflow a:focus-visible,
.anf-profile-workflow button:focus-visible,
.anf-profile-workflow input:focus-visible,
.anf-profile-workflow textarea:focus-visible,
.anf-profile-workflow select:focus-visible { outline: 3px solid var(--apt-navy) !important; outline-offset: 4px; }
.anf-profile-workflow .anf-hero a:focus-visible { outline-color: var(--apt-white) !important; }
.anf-profile-workflow.anf-login-box { max-width: 680px; }
.anf-profile-workflow.anf-login-box input[type="text"],
.anf-profile-workflow.anf-login-box input[type="password"] { width: 100%; min-height: 46px; }
.anf-profile-workflow.anf-login-box label { display: block; margin-bottom: 8px; }
.anf-profile-workflow.anf-visual-editor .anf-preview-toolbar { background: var(--apt-white) !important; border-color: var(--apt-line) !important; color: var(--apt-ink); top: 16px; }
body.admin-bar .anf-profile-workflow.anf-visual-editor .anf-preview-toolbar { top: 48px; }
.anf-profile-workflow.anf-visual-editor .anf-preview-toolbar button,
.anf-profile-workflow.anf-visual-editor .anf-edit-close { color: var(--apt-navy) !important; background: var(--apt-bg) !important; border-color: var(--apt-line) !important; border-radius: 8px !important; min-height: 44px; }
.anf-profile-workflow.anf-visual-editor .anf-preview-toolbar button:hover,
.anf-profile-workflow.anf-visual-editor .anf-edit-close:hover { background: #E7DEDA !important; border-color: var(--apt-navy) !important; }
.anf-profile-workflow.anf-visual-editor .anf-preview-label { background: var(--apt-navy) !important; color: var(--apt-white) !important; }
.anf-profile-workflow.anf-visual-editor .anf-preview-label a { color: var(--apt-white) !important; text-decoration: underline; }
.anf-profile-workflow.anf-visual-editor .anf-preview-shell { background: var(--apt-bg) !important; border-color: var(--apt-line) !important; }
.anf-profile-workflow.anf-visual-editor .anf-edit-panel { border-top: 6px solid var(--apt-accent) !important; }
.anf-profile-workflow.anf-visual-editor .anf-submit-bar { border-color: var(--apt-navy) !important; }
@media (max-width: 760px) {
  .anf-profile-workflow { padding: 14px !important; margin: 16px auto !important; border-radius: 16px; }
  .anf-profile-workflow .anf-resource-list { grid-template-columns: minmax(0, 1fr); }
  .anf-profile-workflow .anf-portal-actions { flex-direction: column; }
  .anf-profile-workflow .anf-portal-actions .anf-button { width: 100%; }
  .anf-profile-workflow .anf-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .anf-profile-workflow .anf-edit-heading { align-items: flex-start; flex-wrap: wrap; }
  .anf-profile-workflow.anf-visual-editor .anf-preview-toolbar,
  .anf-profile-workflow.anf-visual-editor .anf-submit-bar { position: static !important; }
}
@media (forced-colors: active) {
  .anf-profile-workflow .anf-card,
  .anf-profile-workflow .anf-resource-list a,
  .anf-profile-workflow .anf-button { border: 1px solid ButtonText !important; }
}
@media print {
  .anf-profile-workflow { width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; border: 0; }
  .anf-profile-workflow .anf-card { box-shadow: none !important; }
}
