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

:root {
  --primary-dark: #004d71;
  --primary-bg: #005a84;
  --accent: #00a3c4;
  --accent-bright: #00d2c4;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --border-color: #cbd5e1;
  --bg-light: #f8fafc;
  --purple-bg: #f5f3ff;
  --purple-text: #6d28d9;
  --teal-bg: #f0fdfa;
  --teal-text: #0f766e;
  --yellow-bg: #fefce8;
  --yellow-text: #a16207;
  --red-bg: #fff1f2;
  --red-text: #be123c;
  --critical: #be123c;
  --serious: #a16207;
  --moderate: #6d28d9;
  --minor: #0f766e;
  font-family: "Lexend", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #ffffff;
  color: var(--text-dark);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text-dark);
  padding: 8px 12px;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(0, 163, 196, 0.22);
  border-color: var(--accent);
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-shell[hidden],
.login-page[hidden] {
  display: none;
}

body.auth-pending .login-page,
body.auth-pending .app-shell {
  display: none;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: radial-gradient(120% 120% at 15% 0%, #F5F7FC 0%, #E7EBF3 60%, #DFE4EE 100%);
  font-family: "Mulish", system-ui, sans-serif;
}
@keyframes lgFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lgFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(18px, -22px); } }

.lg-card {
  width: 100%; max-width: 1120px;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(18, 38, 63, 0.35), 0 8px 24px rgba(18, 38, 63, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.6);
  animation: lgFadeUp 0.5s ease both;
}

.lg-brand { position: relative; overflow: hidden; padding: 56px 52px; display: flex; flex-direction: column; min-height: 640px; color: #fff; background: linear-gradient(160deg, #0E2036 0%, #16273F 42%, #1E4363 100%); }
.lg-glow { position: absolute; border-radius: 50%; }
.lg-glow-tr { top: -120px; right: -80px; width: 340px; height: 340px; background: radial-gradient(circle, rgba(232, 64, 42, 0.35) 0%, rgba(232, 64, 42, 0) 70%); animation: lgFloat 14s ease-in-out infinite; }
.lg-glow-bl { bottom: -140px; left: -90px; width: 360px; height: 360px; background: radial-gradient(circle, rgba(47, 111, 224, 0.30) 0%, rgba(47, 111, 224, 0) 70%); animation: lgFloat 18s ease-in-out infinite reverse; }
.lg-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 22px 22px; opacity: 0.5; }
.lg-brand-logo { position: relative; }
.lg-brand-logo img { height: 48px; width: auto; display: block; }
.lg-brand-body { position: relative; margin-top: auto; padding-top: 48px; }
.lg-brand-h1 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 42px; line-height: 1.1; letter-spacing: -0.8px; margin: 0; color: #fff; }
.lg-brand-p { font-size: 16.5px; line-height: 1.65; color: #B9C6D8; max-width: 400px; margin: 20px 0 0; }
.lg-perks { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lg-perk { display: flex; align-items: center; gap: 13px; }
.lg-perk-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); display: flex; align-items: center; justify-content: center; }
.lg-perk-label { font-size: 14.5px; color: #CBD8EA; font-weight: 500; }
.lg-brand-foot { position: relative; margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.lg-brand-foot a { color: #fff; font-family: "Poppins", sans-serif; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; font-size: 13px; border-bottom: 2px solid rgba(232, 64, 42, 0.9); padding-bottom: 2px; }
.lg-brand-foot span { color: #7E8EA4; }

.lg-form-panel { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.lg-form { width: 100%; max-width: 380px; margin: 0 auto; animation: lgFadeUp 0.55s ease both; }
.lg-h2 { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 30px; color: #16273F; margin: 0; letter-spacing: -0.5px; }
.lg-sub { font-size: 15px; color: #6B7686; margin: 8px 0 34px; }
.login-form { display: block; }
.lg-label { display: block; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 13.5px; color: #16273F; margin-bottom: 8px; }
.lg-input-wrap { position: relative; margin-bottom: 20px; }
.lg-input-wrap.pw { margin-bottom: 22px; }
.lg-input-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); display: flex; }
.lg-input { width: 100%; height: 52px; padding: 0 16px 0 44px; font-family: "Mulish", sans-serif; font-size: 15px; color: #16273F; background: #F6F8FC; border: 1.6px solid #E4E9F1; border-radius: 13px; outline: none; transition: border-color .15s, box-shadow .15s; }
.lg-input::placeholder { color: #A2ABBA; }
.lg-input:focus { border-color: #2F6FE0; box-shadow: 0 0 0 4px rgba(47, 111, 224, 0.12); background: #fff; }
.lg-input.pw { padding: 0 50px 0 44px; }
.lg-pw-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.lg-forgot { font-size: 13px; font-weight: 600; color: #2F6FE0; }
.lg-pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: transparent; border: none; border-radius: 9px; cursor: pointer; color: #98A2B0; }
.lg-pw-toggle:hover { background: #EEF1F7; color: #16273F; }
.lg-pw-toggle .lg-eye-off { display: none; }
.lg-pw-toggle.showing .lg-eye { display: none; }
.lg-pw-toggle.showing .lg-eye-off { display: flex; }
.lg-remember { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 26px; user-select: none; position: relative; }
.lg-remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.lg-cb { width: 22px; height: 22px; border-radius: 7px; border: 1.8px solid #C7D0DE; background: #fff; display: flex; align-items: center; justify-content: center; transition: all .15s; flex: 0 0 auto; }
.lg-cb svg { display: none; }
.lg-remember input:checked ~ .lg-cb { border-color: #E8402A; background: #E8402A; }
.lg-remember input:checked ~ .lg-cb svg { display: block; }
.lg-remember input:focus-visible ~ .lg-cb { box-shadow: 0 0 0 4px rgba(47, 111, 224, 0.18); }
.lg-remember-label { font-size: 14.5px; color: #4A5563; font-weight: 500; }
.login-error { margin: -8px 0 14px; color: #D14545; font-size: 13px; font-weight: 700; line-height: 1.4; }
.login-error[hidden] { display: none; }
.login-submit { width: 100%; height: 54px; margin: 0; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(180deg, #E8402A 0%, #D5361F 100%); border: none; border-radius: 13px; cursor: pointer; box-shadow: 0 10px 22px -6px rgba(232, 64, 42, 0.5); transition: transform .12s, box-shadow .12s; display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-submit:hover, .login-submit:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 28px -6px rgba(232, 64, 42, 0.55); background: linear-gradient(180deg, #E8402A 0%, #D5361F 100%); color: #fff; }
.login-submit:active { transform: translateY(0); }
.login-submit:disabled { cursor: wait; opacity: 0.75; transform: none; }
.lg-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.lg-divider span:first-child, .lg-divider span:last-child { flex: 1; height: 1px; background: #E4E9F1; }
.lg-or { font-size: 12.5px; color: #98A2B0; font-weight: 600; }
.lg-google { width: 100%; height: 52px; font-family: "Poppins", sans-serif; font-weight: 600; font-size: 15px; color: #16273F; background: #fff; border: 1.6px solid #E4E9F1; border-radius: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 11px; transition: border-color .15s, background .15s; }
.lg-google:hover { border-color: #C7D0DE; background: #F9FAFC; }
.lg-foot-links { margin-top: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; }
.lg-a11y { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: #2F6FE0; }
.lg-support { font-size: 13px; color: #8791A0; margin: 0; }
.lg-support a { font-weight: 600; }

@media (max-width: 860px) {
  .lg-card { grid-template-columns: 1fr; max-width: 460px; }
  .lg-brand { display: none; }
  .lg-form-panel { padding: 40px 32px; }
}

/* Hide the floating AI assistant on the pre-auth login screen (it belongs to the
   authenticated app shell). `logged-out` is toggled on <body> by renderAuthState. */
body.logged-out .ai-launcher,
body.auth-pending .ai-launcher { display: none !important; }

.login-footer {
  position: relative;
  background: #ffffff;
}

.app-footer {
  margin-top: auto;
}

.footer-stripe {
  background: linear-gradient(100deg, #ff3700, #ffe500 16.66%, #ff3700 50%, #ffe500 66.66%, #ff3700);
  background-size: 200% 100%;
  background-repeat: repeat;
  animation: scrollGradientUltraSmooth 5s linear infinite;
  height: 3px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  border-bottom: none !important;
}

.login-footer-content {
  max-width: 1900px;
  margin: 0 auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 44px;
  color: #073348;
  font-size: 12px;
  font-weight: 650;
}

.login-footer-content img {
  width: 75px;
  height: auto;
}

.login-footer-content a {
  color: #073348;
}

.header {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px max(40px, calc((100vw - 1900px) / 2 + 40px));
  position: relative;
  border-bottom: none !important;
  background: #ffffff;
}

.header::after {
  content: "";
  background: linear-gradient(100deg, #6794ff, #06ffe7 16.66%, #6794ff 50%, #06ffe7 66.66%, #6794ff);
  background-size: 200% 100%;
  background-repeat: repeat;
  animation: scrollGradientUltraSmooth 5s linear infinite;
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-bottom: none !important;
}

@keyframes scrollGradientUltraSmooth {
  0% {
    background-position: 100% 0%;
  }

  100% {
    background-position: 0% 0%;
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.logo img {
  display: block;
  width: 95px;
  margin-bottom: 11px;
  height: auto;
}

.logo strong {
  color: var(--primary-dark);
  font-size: 22px;
  font-weight: 650;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-dark);
}

.org-select {
  width: auto;
  min-width: 170px;
}

.menu-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  font-size: 15px;
}

.menu-dot-grid {
  pointer-events: none;
  width: 22px;
  height: 22px;
  display: grid;
  grid-template-columns: repeat(3, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 3px 3px;
  justify-content: center;
  align-content: center;
}

.menu-dot-grid span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.menu-wrap {
  position: relative;
}

.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(380px, calc(100vw - 32px));
  padding: 17px 20px 21px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(10px);
  z-index: 20;
}

.app-menu[hidden] {
  display: none;
}

.toolkit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.toolkit-header h2 {
  color: #7b858c;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 18px;
}

.toolkit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #d8e2ee;
}

.menu-logout-button {
  min-height: 36px;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
  background: #ffffff;
  color: var(--primary-dark);
  padding: 0 14px;
  font-weight: 700;
}

.menu-logout-button:hover,
.menu-logout-button:focus-visible {
  background: #f0f4f8;
}

.menu-logout-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.tool-item {
  min-height: 98px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #050505;
  text-align: center;
  font-size: 16px;
  line-height: 1.1;
}

.tool-item.active,
.tool-item:hover,
.tool-item:focus {
  outline: none;
  background: #f0f4f8;
}

.tool-icon {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #166f88;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55);
}

.tool-icon.account {
  border-radius: 50%;
  background: #d7eef2;
  border: 4px solid #87b8c4;
  font-size: 23px;
}

.tool-icon.wcag {
  background: #e9f5f6;
  color: #145f7c;
}

.tool-icon.toolbar {
  width: 39px;
  height: 31px;
  border-radius: 5px;
  background: #d9f2f3;
  color: #117985;
  font-size: 23px;
}

.tool-icon.document {
  background: #e7f6ec;
  color: #33865a;
}

.tool-icon.guardian {
  background: #dff5f3;
  color: #198b91;
}

.tool-icon.mobile {
  background: #e9f4ff;
  color: #e67b1f;
}

.tool-icon.evidence {
  background: #e9f7ee;
  color: #2d8a5b;
}

.tool-icon.reports {
  background: #f4effa;
  color: #7656a5;
}

.tool-icon.audits {
  background: #fff7ed;
  color: #b45309;
}

.tool-icon.integrations {
  background: #e7f5fb;
  color: #126799;
}

.tool-icon.extensions {
  background: #e8f6fb;
  color: #116fa3;
}

.tool-icon.developer {
  background: #eef2ff;
  color: #1f4f86;
  font-size: 14px;
}

.tool-icon.landscape {
  background: #eef8ec;
  color: #4d8a32;
}

.tool-icon.media {
  background: #f0f9ff;
  color: #0369a1;
}

.tool-icon.support {
  background: #eef8ff;
  color: #075985;
}

.hero-banner {
  background: var(--primary-bg);
  color: #ffffff;
  padding: 40px max(40px, calc((100vw - 1900px) / 2 + 40px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.breadcrumbs {
  font-size: 14px;
  opacity: 0.82;
  margin-bottom: 15px;
}

.hero-title {
  font-size: 32px;
  line-height: 1.1;
  margin-bottom: 10px;
  font-weight: 650;
}

.scanned-pages {
  font-size: 18px;
  margin-bottom: 15px;
  opacity: 0.92;
}

.manage-link {
  display: inline-block;
  border: 0;
  background: transparent;
  color: var(--accent-bright);
  text-decoration: underline;
  margin-bottom: 20px;
  padding: 0;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

.hero-preview {
  width: 280px;
  flex: 0 0 280px;
  background: #ffffff;
  padding: 5px;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

.preview-top {
  background: #002244;
  color: #ffffff;
  padding: 10px 20px;
  font-size: 11px;
  border-radius: 4px 4px 0 0;
}

.preview-body {
  height: 118px;
  background: var(--bg-light);
  padding: 18px;
}

.preview-line {
  height: 9px;
  width: 58%;
  border-radius: 5px;
  background: #cbd5e1;
  margin-bottom: 10px;
}

.preview-line.long {
  width: 86%;
}

.preview-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.preview-card-row div {
  height: 36px;
  border-radius: 6px;
  background: #e2e8f0;
}

.tabs-container {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  padding: 0 max(40px, calc((100vw - 1900px) / 2 + 40px));
  background: #ffffff;
}

.tab {
  padding: 20px 40px;
  font-weight: 650;
  color: var(--primary-dark);
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
}

.tab.active {
  border-bottom-color: var(--accent);
}

.main-content {
  width: 100%;
  padding: 40px;
  max-width: 1900px;
  margin: 0 auto;
}

.notification-box {
  background: #ecfeff;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.status-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: Georgia, serif;
}

.notification-text h2 {
  color: var(--primary-dark);
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 8px;
}

.notification-text p {
  color: var(--text-dark);
  line-height: 1.5;
}

.status-ok {
  color: var(--teal-text) !important;
}

.status-error {
  color: var(--red-text) !important;
}

.account-overview {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.profile-card,
.sso-card,
.settings-panel {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #ffffff;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
}

.profile-card h2 {
  color: var(--primary-dark);
  font-size: 22px;
  margin-bottom: 4px;
}

.profile-card p {
  color: var(--text-light);
  margin-bottom: 12px;
}

.sso-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px;
}

.sso-card span {
  color: var(--text-light);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sso-card strong {
  color: var(--primary-dark);
  font-size: 15px;
}

.sso-card small {
  color: var(--text-light);
  font-weight: 650;
}

.settings-panel {
  padding: 24px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.settings-header h2 {
  color: var(--primary-dark);
  font-size: 22px;
  margin-bottom: 5px;
}

.settings-header p {
  color: var(--text-light);
  line-height: 1.5;
}

.profile-picture {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.profile-picture-preview {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-bg);
  color: #ffffff;
  font-size: 30px;
  font-weight: 800;
  overflow: hidden;
}

.profile-picture-preview.has-photo,
.avatar.has-photo {
  background: none;
}

.profile-picture-preview img,
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.profile-picture-copy h3 {
  color: var(--primary-dark, #16273f);
  font-size: 17px;
  margin-bottom: 4px;
}

.profile-picture-hint {
  color: var(--text-light, #64748b);
  font-size: 13.5px;
  max-width: 360px;
}

.profile-picture-hint.error {
  color: var(--red-text, #be123c);
  font-weight: 600;
}

.profile-picture-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.avatar-remove {
  border: 0;
  background: none;
  color: var(--text-light, #64748b);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.avatar-remove:hover,
.avatar-remove:focus-visible {
  color: var(--red-text, #be123c);
}

.avatar-remove[hidden] {
  display: none;
}

.settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.password-policy {
  grid-column: 1 / -1;
  border: 1px solid #a5f3fc;
  border-radius: 8px;
  background: #ecfeff;
  padding: 18px;
}

.password-policy h3 {
  color: var(--primary-dark);
  font-size: 16px;
  margin-bottom: 8px;
}

.password-policy p {
  color: var(--text-dark);
  line-height: 1.5;
}

.settings-actions,
.data-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.privacy-list {
  display: grid;
  gap: 12px;
}

.preference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 18px;
}

.preference-row span {
  display: grid;
  gap: 4px;
}

.preference-row strong {
  color: var(--primary-dark);
}

.preference-row small {
  color: var(--text-light);
  line-height: 1.4;
}

.preference-row input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}

.danger-text {
  color: var(--red-text);
}

/* ------------------------------ Notifications ------------------------------ */

.settings-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.save-status {
  color: var(--teal-text);
  font-size: 13px;
  font-weight: 700;
}

.save-status[hidden] {
  display: none;
}

.notif-groups {
  display: grid;
  gap: 26px;
}

.notif-group-title {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.notif-table {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.notif-head,
.notif-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.notif-head {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notif-row + .notif-row {
  border-top: 1px solid var(--border-color);
}

.notif-col {
  text-align: center;
}

.notif-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notif-copy strong {
  color: var(--primary-dark);
}

.notif-copy small {
  color: var(--text-light);
  line-height: 1.4;
}

.notif-toggle {
  display: flex;
  justify-content: center;
}

.notif-toggle input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  cursor: pointer;
}

@media (max-width: 680px) {
  .notif-head,
  .notif-row {
    grid-template-columns: minmax(0, 1fr) 56px 56px;
    gap: 10px;
    padding: 12px 14px;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  width: fit-content;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.live {
  background: var(--teal-bg);
  color: var(--teal-text);
}

.status-pill.pending {
  background: var(--yellow-bg);
  color: var(--yellow-text);
}

.team-table th:nth-child(1) { width: 24%; }
.team-table th:nth-child(2) { width: 34%; }
.team-table th:nth-child(3) { width: 22%; }
.team-table th:nth-child(4) { width: 20%; }

.scan-panel {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 24px;
  background: #ffffff;
  margin-bottom: 30px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.span-2 {
  grid-column: span 2;
}

.field span,
.toggle span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 700;
}

.form-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle input {
  width: 18px;
  min-height: 18px;
}

.form-actions,
.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  border-radius: 6px;
  padding: 0 16px;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--primary-bg);
  background: var(--primary-bg);
  color: #ffffff;
}

.secondary-button {
  border: 1px solid var(--border-color);
  background: #ffffff;
  color: var(--primary-dark);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  margin-bottom: 30px;
}

.journey-card,
.results-panel,
.json-panel {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #ffffff;
}

.journey-card {
  padding: 30px;
}

.card-title {
  font-size: 15px;
  color: var(--primary-dark);
  margin-bottom: 5px;
}

.card-subtitle {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 30px;
}

.progress-section {
  display: flex;
  align-items: center;
  gap: 30px;
}

.circle-progress {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0%, #e2e8f0 0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.circle-progress::before {
  content: attr(data-value);
  position: absolute;
  width: 56px;
  height: 96px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-dark);
}

.bar-progress-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.bar-label-row h3 {
  color: var(--primary-dark);
  font-size: 14px;
}

.bar-percentage {
  color: var(--primary-bg);
  font-size: 12px;
  font-weight: 800;
}

.bar-bg {
  background: #e2e8f0;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 6px;
}

.bar-fill.secondary {
  background: #d9383a;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-content: start;
}

.metric-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.metric-card.unique {
  background: var(--red-bg);
  border-color: #ffe4e6;
  color: var(--red-text);
}

.metric-card.todo {
  background: var(--yellow-bg);
  border-color: #fef08a;
  color: var(--yellow-text);
}

.metric-card.progress {
  background: var(--purple-bg);
  border-color: #ddd6fe;
  color: var(--purple-text);
}

.metric-card.cant-fix {
  background: var(--teal-bg);
  border-color: #ccfbf1;
  color: var(--teal-text);
}

.metric-title {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 15px;
}

.metric-value {
  font-size: 32px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 30px;
  align-items: start;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header.compact {
  min-height: 64px;
}

.panel-header h2 {
  color: var(--primary-dark);
  font-size: 20px;
}

.panel-header p,
.panel-header span {
  color: var(--text-light);
  font-size: 14px;
  margin-top: 4px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  background: var(--bg-light);
}

th:nth-child(1) { width: 120px; }
th:nth-child(2) { width: 210px; }
th:nth-child(3) { width: 250px; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.critical { background: var(--critical); }
.badge.serious { background: var(--serious); }
.badge.moderate { background: var(--moderate); }
.badge.minor { background: var(--minor); }

.target,
.rule {
  overflow-wrap: anywhere;
  color: var(--text-dark);
}

.empty-cell {
  color: var(--text-light);
  text-align: center;
  height: 120px;
  vertical-align: middle;
}

#jsonOutput {
  margin: 0;
  padding: 18px;
  height: 520px;
  overflow: auto;
  color: #0f172a;
  background: var(--bg-light);
  border-radius: 0 0 12px 12px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  .login-card {
    grid-template-columns: 1fr;
    max-width: 760px;
  }

  .login-brand {
    min-height: 420px;
  }

  .dashboard-grid,
  .content-grid,
  .account-overview,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-preview {
    display: none;
  }
}

@media (max-width: 680px) {
  .login-card {
    width: calc(100vw - 28px);
    margin: 24px 0;
  }

  .login-brand {
    min-height: auto;
    padding: 42px 24px;
  }

  .login-wordmark {
    margin-bottom: 14px;
  }

  .login-brand h1 {
    font-size: 23px;
  }

  .login-brand p {
    margin-bottom: 30px;
  }

  .login-panel {
    padding: 34px 24px;
  }

  .login-options,
  .login-footer-content {
  max-width: 1900px;
  margin: 0 auto;
    align-items: flex-start;
    flex-direction: column;
  }

  .login-footer-content {
  max-width: 1900px;
  margin: 0 auto;
    gap: 10px;
    padding: 14px 20px 18px;
  }

  .header,
  .hero-banner,
  .main-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .header,
  .form-row,
  .panel-header,
  .settings-header,
  .settings-actions,
  .data-actions,
  .progress-section {
    align-items: stretch;
    flex-direction: column;
  }

  .header-right,
  .form-actions {
    width: 100%;
  }

  .app-menu {
    right: -20px;
    width: calc(100vw - 24px);
    padding: 24px 18px 30px;
    border-radius: 24px;
  }

  .toolkit-header h2 {
  font-size: 17px;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tool-item {
    min-height: 140px;
    font-size: 22px;
  }

  .tool-icon {
    width: 62px;
    height: 62px;
    font-size: 34px;
  }

  .tool-icon.toolbar {
    width: 92px;
    height: 48px;
    font-size: 32px;
  }

  .tabs-container {
    padding: 0 20px;
    overflow-x: auto;
  }

  .tab {
    padding: 18px 22px;
    white-space: nowrap;
  }

  .field-grid,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
}

/* Accessibility toolkit menu redesign */
.app-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(370px, calc(100vw - 24px));
  max-height: calc(100vh - 78px);
  overflow-y: auto;
  padding: 19px 24px 22px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(245, 253, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 42%, rgba(252, 248, 255, 0.98) 100%);
  box-shadow: 0 18px 38px rgba(7, 51, 72, 0.24);
  backdrop-filter: blur(12px);
  z-index: 60;
}

.app-menu[hidden] {
  display: none;
}

.toolkit-header {
  display: block;
  margin-bottom: 14px;
}

.toolkit-header h2 {
  color: #073348;
  font-size: 17px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.toolkit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 17px;
}

.tool-item {
  min-height: 95px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  background: var(--tool-bg, #edf8fb);
  color: #050505;
  text-align: center;
  font-size: 15px;
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 12px rgba(7, 51, 72, 0.04);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tool-item.active,
.tool-item:hover,
.tool-item:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 9px 18px rgba(7, 51, 72, 0.13);
}

.tool-account,
.tool-toolbar,
.tool-landscape,
.tool-dashboard {
  --tool-bg: linear-gradient(135deg, #eff8fd 0%, #edf7f6 100%);
}

.tool-wcag,
.tool-reports,
.tool-developer {
  --tool-bg: linear-gradient(135deg, #f2f0ff 0%, #eeeefd 100%);
}

.tool-document,
.tool-evidence {
  --tool-bg: linear-gradient(135deg, #dcf6ec 0%, #ecfbf7 100%);
}

.tool-guardian,
.tool-extensions {
  --tool-bg: linear-gradient(135deg, #d6f4f2 0%, #e8f8ff 100%);
}

.tool-mobile,
.tool-media {
  --tool-bg: linear-gradient(135deg, #e5f4ff 0%, #dff2ff 100%);
}

.tool-audits {
  --tool-bg: linear-gradient(135deg, #fff1df 0%, #ffe8d2 100%);
}

.tool-integrations {
  --tool-bg: linear-gradient(135deg, #dff2ff 0%, #edf9ff 100%);
}

.tool-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #073348;
  font-size: 0;
  font-weight: 800;
  line-height: 1;
  text-shadow: none;
}

.tool-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.tool-icon.toolbar {
  width: 56px;
  height: 36px;
}

.tool-icon.developer {
  width: 41px;
  height: 41px;
  font-size: 0;
}

.toolkit-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #cfeaf2;
}

.menu-logout-button {
  min-height: 36px;
  min-width: 88px;
  border: 0;
  border-radius: 6px;
  background: #073b63;
  color: #ffffff;
  padding: 0 15px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: inset -5px -5px 0 rgba(255, 255, 255, 0.1), 0 6px 10px rgba(7, 51, 72, 0.14);
}

.menu-logout-button:hover,
.menu-logout-button:focus-visible {
  background: #0a4d7f;
}

.menu-logout-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media (max-width: 760px) {
  .app-menu {
    right: -20px;
    width: calc(100vw - 24px);
    padding: 18px 16px 20px;
    border-radius: 18px;
  }

  .toolkit-header h2 {
  font-size: 17px;
    white-space: normal;
  }

  .toolkit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .tool-item {
    min-height: 95px;
    font-size: 15px;
  }

  .tool-icon {
    width: 39px;
    height: 39px;
  }

  .tool-icon.toolbar {
    width: 56px;
    height: 36px;
  }

  .toolkit-actions {
    margin-top: 16px;
    padding-top: 14px;
  }

  .menu-logout-button {
    min-height: 36px;
    min-width: 88px;
    font-size: 15px;
  }
}
/* Shared menu category headings */
.toolkit-category {
  margin-bottom: 16px;
}

.toolkit-category:last-of-type {
  margin-bottom: 0;
}

.toolkit-category-title {
  color: #4a6472;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 14px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #cfeaf2;
}
