@charset "UTF-8";
:root {
  --trancher-midnight: #303a53;
  --trancher-denim: #0568a0;
  --trancher-lime: #bcd631;
  --trancher-sky: #85d3f6;
  --trancher-coral: #e84445;
  --trancher-white: #ffffff;
  --trancher-sky-mid: #b6e5f9;
  --trancher-lime-light: #f2f7d9;
  --trancher-sky-light: #e8f7fc;
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Stack Sans Notch", "Helvetica Neue", Helvetica, Arial,
    sans-serif;
  --page-bg: var(--trancher-sky-light);
  --surface: var(--trancher-sky-light);
  --nav-bg: var(--trancher-white);
  --nav-border: var(--trancher-sky-mid);
  --nav-text: var(--trancher-midnight);
  --nav-accent: var(--trancher-denim);
  --trancher-black: #000000;
  --brand-700: var(--trancher-midnight);
  --brand-600: var(--trancher-denim);
  --brand-500: var(--trancher-denim);
  --brand-accent: var(--trancher-denim);
  --text-900: var(--trancher-midnight);
  --text-600: #4f6275;
  --text-500: #6f8091;
  --border: var(--trancher-sky-mid);
  --card-bg: var(--trancher-white);
  --card-border: var(--trancher-sky-mid);
  --card-shadow: 0 8px 18px rgba(48, 58, 83, 0.12);
  --shadow: 0 16px 32px rgba(48, 58, 83, 0.16);
  --button-primary: var(--trancher-denim);
  --button-primary-hover: #045b8a;
  --type-display: clamp(30px, 3.1vw, 36px);
  --type-page-title: clamp(26px, 2.4vw, 30px);
  --type-section-title: clamp(20px, 1.7vw, 24px);
  --type-subtitle: 17px;
  --type-body-lg: 15px;
  --type-body-md: 14px;
  --type-body-sm: 13px;
  --type-caption: 12px;
  --type-line-tight: 1.2;
  --type-line-normal: 1.45;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-900);
  background: var(--page-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.dashboard-greeting,
.login-title,
.settings-title,
.settings-modal-title {
  font-family: var(--font-heading);
}

a {
  color: inherit;
}

.login-page {
  --login-text: #2b3b52;
  --login-muted: #6c7a90;
  --login-border: #dfe5ec;
  --login-button: #2a3e5c;
  --login-button-hover: #22344f;
  --login-link: #2f5f90;
  --login-wave-height: clamp(140px, 16.5vw, 320px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  color: var(--login-text);
  overflow: hidden;
}

.login-page::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -80px;
  width: 100%;
  height: var(--login-wave-height);
  background: url("/imagery-collection/Trancher-LargeShieldPoint.png") center bottom/cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

.login-header {
  padding: 56px 24px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo {
  width: min(240px, 70vw);
  height: auto;
  object-fit: contain;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px calc(var(--login-wave-height) + 40px);
  position: relative;
  z-index: 1;
}

.login-card {
  width: min(420px, 100%);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}

.login-title {
  margin: 0;
  max-width: 320px;
  font-size: clamp(22px, 3.4vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

.login-form {
  width: 100%;
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

.login-form input {
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--login-border);
  background: #ffffff;
  padding: 0 16px;
  font-size: 15px;
  color: var(--login-text);
  box-shadow: 0 2px 6px rgba(27, 39, 55, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
  color: var(--login-muted);
}

.login-form input:focus {
  outline: none;
  border-color: var(--login-button);
  box-shadow: 0 0 0 3px rgba(42, 62, 92, 0.16);
}

.login-form button {
  height: 48px;
  margin-top: 8px;
  border-radius: 4px;
  border: none;
  background: var(--login-button);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 20px rgba(42, 62, 92, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.login-form button:hover {
  background: var(--login-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(42, 62, 92, 0.3);
}

.login-form button:active {
  transform: translateY(0);
  box-shadow: 0 8px 16px rgba(42, 62, 92, 0.22);
}

.forgot-link {
  margin-top: 14px;
  text-decoration: none;
  color: var(--login-link);
  font-weight: 600;
  transition: color 0.2s ease;
  align-self: center;
  text-align: center;
}

.forgot-link:hover {
  color: #24496f;
}

.login-signup-link {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-600);
}
.login-signup-link a {
  color: var(--trancher-denim);
  font-weight: 600;
  text-decoration: none;
}
.login-signup-link a:hover {
  text-decoration: underline;
}

.reset-message {
  margin: 14px 0 0;
  color: #4a7a2a;
  font-weight: 600;
}

.reset-error {
  margin: 12px 0 0;
  color: #c53b3b;
  font-weight: 600;
  line-height: 1.5;
}

.reset-secondary-button {
  height: 48px;
  margin-top: 8px;
  border-radius: 4px;
  border: none;
  background: var(--login-button);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 20px rgba(42, 62, 92, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.reset-secondary-button:hover {
  background: var(--login-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(42, 62, 92, 0.3);
}

.reset-back {
  margin-top: 22px;
  text-decoration: none;
  color: var(--login-link);
  font-weight: 600;
}

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

.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: reveal 0.6s ease forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .login-header {
    padding: 40px 18px 8px;
  }
  .brand-logo {
    width: min(200px, 72vw);
  }
  .login-main {
    padding: 8px 18px calc(var(--login-wave-height) + 32px);
  }
  .login-title {
    max-width: 100%;
  }
}
.register-card {
  width: min(680px, 100%);
}

.register-subtitle {
  margin: -8px 0 0;
  font-size: 15px;
  color: var(--login-muted);
}

.register-section-label {
  margin: 4px 0 -4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--login-muted);
}

.register-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.login-form select {
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--login-border);
  background: #ffffff;
  padding: 0 12px;
  font-size: 15px;
  color: var(--login-text);
  box-shadow: 0 2px 6px rgba(27, 39, 55, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.login-form select:focus {
  outline: none;
  border-color: var(--login-button);
  box-shadow: 0 0 0 3px rgba(42, 62, 92, 0.16);
}

.register-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.register-plans--3 {
  grid-template-columns: repeat(3, 1fr);
}

.register-form .register-plan-card,
.register-form .register-plan-card:hover,
.register-form .register-plan-card:active {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid var(--login-border);
  background: #ffffff;
  color: var(--login-text);
  box-shadow: 0 2px 6px rgba(27, 39, 55, 0.06);
  cursor: pointer;
  text-align: left;
  height: auto;
  margin-top: 0;
  letter-spacing: 0;
  font-size: inherit;
  font-weight: inherit;
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.register-form .register-plan-card:hover {
  background: #f5f8fc;
  border-color: #8aafd4;
  box-shadow: 0 4px 10px rgba(27, 39, 55, 0.1);
}

.register-form .register-plan-card.is-selected,
.register-form .register-plan-card.is-selected:hover {
  border-color: var(--login-button);
  background: #eef3f9;
  box-shadow: 0 0 0 3px rgba(42, 62, 92, 0.12);
}

.register-plan-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--login-button);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.register-plan-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--login-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.register-plan-price {
  font-size: 22px;
  font-weight: 700;
  color: var(--login-text);
  line-height: 1.1;
  margin: 4px 0 2px;
}
.register-plan-price--contact {
  font-size: 16px;
  color: var(--login-link);
}

.register-plan-period {
  font-size: 12px;
  font-weight: 400;
  color: var(--login-muted);
}

.register-plan-features {
  list-style: none;
  margin: 6px 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.register-plan-features li {
  font-size: 11px;
  color: var(--login-text);
  font-weight: 500;
}
.register-plan-features li::before {
  content: "✓ ";
  color: var(--login-link);
  font-weight: 700;
}

.register-plan-desc {
  font-size: 10px;
  color: var(--login-muted);
  margin-top: 4px;
  line-height: 1.4;
}

.register-kyc-note {
  margin: -4px 0 0;
  font-size: 11px;
  color: var(--login-muted);
}

.register-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin-top: 8px;
  border-radius: 4px;
  background: var(--login-button);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 20px rgba(42, 62, 92, 0.25);
  transition: background 0.2s ease;
}
.register-contact-btn:hover {
  background: var(--login-button-hover);
}

.register-form .register-plan-card.is-contact {
  border-style: dashed;
}

@media (max-width: 700px) {
  .register-plans--3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .register-row,
  .register-plans {
    grid-template-columns: 1fr;
  }
}
.clear-navbar {
  background: var(--nav-bg);
  color: var(--nav-text);
  --nav-pad-top: 7px;
  --nav-pad-bottom: 4px;
  padding: var(--nav-pad-top) 32px var(--nav-pad-bottom);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--nav-border);
  box-shadow: 0 2px 8px rgba(20, 34, 48, 0.08);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.nav-logo {
  width: min(190px, 44vw);
  height: auto;
  cursor: pointer;
  object-fit: contain;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  align-items: stretch;
  align-self: stretch;
  height: 100%;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--nav-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 0 4px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 100%;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(-1 * var(--nav-pad-bottom));
  transform: translateX(-50%);
  width: 30px;
  height: 8px;
  background: url("/imagery-collection/Trancher-Black.svg") center/contain no-repeat;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-links a.is-active,
.nav-links a.active {
  color: var(--nav-accent);
  font-weight: 700;
}

.nav-links a.is-active::after,
.nav-links a.active::after {
  opacity: 1;
}

.nav-links a:hover {
  color: var(--nav-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--nav-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}

.icon-button img,
.icon-button .settings-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.settings-icon {
  background-color: var(--button-primary);
  mask: url("/assets/settings-blue.png") center/contain no-repeat;
  -webkit-mask: url("/assets/settings-blue.png") center/contain no-repeat;
}

.icon-button:hover img,
.icon-button:hover .settings-icon {
  transform: rotate(18deg);
}

.logout-button {
  background: var(--button-primary);
  border: 1px solid var(--button-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 7px 26px;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.25);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.logout-button:hover {
  background: var(--button-primary-hover);
  box-shadow: 0 10px 20px rgba(11, 106, 169, 0.3);
}

.dashboard-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.dashboard-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 36px 48px 80px;
}

.dashboard-header {
  margin-bottom: 22px;
  color: var(--text-900);
}

.dashboard-greeting {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--brand-700);
}

.dashboard-role {
  margin: 6px 0 0;
  font-size: 17px;
  color: var(--text-600);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  margin-top: 24px;
}

.dashboard-column {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.status-block h2 {
  margin: 0;
  font-size: 20px;
  color: var(--brand-700);
}

.status-pill {
  min-width: 140px;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.status-pill.attention {
  background: #e24b4b;
  color: #ffffff;
}

.status-pill.ok {
  background: #b8d432;
  color: #273513;
}

.card {
  background: var(--card-bg);
  border: 1px solid rgba(48, 58, 83, 0.08);
  border-radius: 5px;
  box-shadow: 0 6px 14px rgba(30, 40, 50, 0.08);
  overflow: hidden;
  min-height: 120px;
}

.card-scrollable {
  display: flex;
  flex-direction: column;
  max-height: 260px;
}

.card .block-title {
  margin: 0 0 6px;
  padding: 10px 20px 0;
}

.card-header {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #8a97a8;
  padding: 0 20px 8px;
  border-bottom: none;
  background: transparent;
}

.card-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-600);
}

.card-row-link {
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.card-row + .card-row {
  border-top: 1px solid #eff3f8;
}

.card-row.attention {
  background: #fdecec;
  color: #b03b3b;
}

.card-row-link.attention:hover {
  background: #f8dfdf;
  transform: translateX(2px);
}

.card-row span:last-child {
  font-weight: 600;
}

.card-scroll-area {
  min-height: 0;
  overflow-y: auto;
}

.card.empty {
  padding: 0 0 20px;
  text-align: left;
}

.card-empty-message {
  margin: 6px 20px 0;
  text-align: center;
  color: var(--text-500);
  font-size: 13px;
}

.dashboard-panel {
  background: var(--card-bg);
  border-radius: 5px;
  border: 1px solid rgba(48, 58, 83, 0.08);
  box-shadow: 0 6px 14px rgba(30, 40, 50, 0.08);
  height: 560px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  padding: 24px 26px;
  overflow: hidden;
  text-align: left;
  color: var(--text-900);
  font-size: 16px;
  font-weight: 500;
}

.panel-header p {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-700);
}

.panel-header span {
  display: block;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-600);
  margin-top: 6px;
}

.rss-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.rss-item {
  border: 1px solid #e3ebf4;
  border-radius: 10px;
  padding: 16px;
  background: #f5f9fe;
  box-shadow: 0 6px 16px rgba(30, 40, 50, 0.06);
}

.rss-title {
  display: inline-block;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-600);
  text-decoration: none;
}

.rss-title:hover,
.rss-title:focus {
  text-decoration: underline;
}

.rss-description {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-600);
}

.rss-empty {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-500);
}

.panel-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--nav-accent);
  box-shadow: 0 0 0 4px rgba(11, 106, 169, 0.2);
}

@media (max-width: 1024px) {
  .clear-navbar {
    grid-template-columns: 1fr auto;
    justify-items: start;
    row-gap: 10px;
  }
  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }
  .nav-links,
  .nav-actions {
    display: none;
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 6px;
    height: auto;
  }
  .nav-actions {
    justify-content: flex-start;
    padding-bottom: 6px;
  }
  .nav-links a::after {
    display: none;
  }
  .nav-links a {
    height: auto;
    padding: 6px 4px;
  }
  .clear-navbar.is-open .nav-links,
  .clear-navbar.is-open .nav-actions {
    display: flex;
  }
}
.clear-navbar.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.clear-navbar.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.clear-navbar.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-panel {
    height: 360px;
  }
}
@media (max-width: 640px) {
  .clear-navbar {
    --nav-pad-top: 6px;
    --nav-pad-bottom: 4px;
    padding: var(--nav-pad-top) 18px var(--nav-pad-bottom);
  }
  .dashboard-content {
    padding: 18px;
  }
  .block-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
.global-notice {
  position: fixed;
  top: 86px;
  left: 0;
  z-index: 1200;
  display: inline-flex;
  align-items: stretch;
  max-width: min(320px, 100vw - 20px);
  box-shadow: 0 14px 28px rgba(5, 104, 160, 0.22);
  animation: global-notice-slide-in 220ms ease-out;
}

.global-notice-body {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 13px 16px 13px 18px;
  background: var(--button-primary);
  color: #ffffff;
}

.global-notice-body strong {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.global-notice-close {
  width: 34px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

@keyframes global-notice-slide-in {
  from {
    opacity: 0;
    transform: translateX(-18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@media (max-width: 1024px) {
  .global-notice {
    top: 76px;
  }
}
@media (max-width: 640px) {
  .global-notice {
    top: 72px;
    max-width: calc(100vw - 12px);
  }
}
.settings-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.settings-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.settings-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 0 14px;
  border-bottom: 1px solid #c5c9d2;
  color: #3a4656;
}

.settings-greeting,
.settings-role {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}

.settings-title {
  margin: 0;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
}

.settings-role {
  text-align: right;
  font-style: italic;
  color: #707b8d;
}

.settings-greeting {
  text-transform: capitalize;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 28px;
  margin-top: 28px;
}

.settings-grid.full-width {
  display: block !important;
}

.settings-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.settings-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(30, 40, 50, 0.08);
  padding: 24px;
}

.settings-card h2 {
  margin: 0 0 16px;
  font-size: 20px;
  color: #3a4656;
}

.settings-form {
  display: grid;
  gap: 18px;
}

.input-stack {
  display: grid;
  gap: 0;
  border: 1px solid #d6d9e0;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.input-stack input,
.input-stack select,
.select-row,
.select-input {
  height: 46px;
  border: none;
  border-bottom: 1px solid #e5e8ee;
  padding: 0 14px;
  font-size: 15px;
  color: #4f5a68;
  background: transparent;
}

.input-stack input:focus,
.input-stack select:focus,
.select-row:focus,
.select-input:focus {
  outline: none;
  box-shadow: none;
  border-color: #e5e8ee;
}

.input-stack input:last-child,
.input-stack select:last-child,
.input-stack .select-row:last-child,
.input-stack .select-input:last-child {
  border-bottom: none;
}

.input-stack input::placeholder {
  color: #7b8797;
}

.settings-field-row {
  display: grid;
  grid-template-columns: minmax(120px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid #e5e8ee;
}

.input-stack .settings-field-row:last-child {
  border-bottom: none;
}

.settings-field-label {
  font-size: 14px;
  font-weight: 600;
  color: #8b95a5;
  white-space: nowrap;
}

.settings-field-control {
  width: 100%;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent;
  font-size: 15px;
  color: #2f3b4a;
  text-align: right;
}

.settings-field-control::placeholder {
  color: #9aa4b2;
}

.settings-field-control:focus {
  outline: none;
  box-shadow: none;
}

.settings-field-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/assets/arrow-down.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 12px 12px;
  padding-right: 22px;
  text-align: right;
  text-align-last: right;
  cursor: pointer;
}

.select-input {
  cursor: pointer;
}

.input-stack select,
.select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/assets/arrow-down.png");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 36px;
}

.select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #7a8797;
  cursor: pointer;
}

.select-row.is-active {
  color: #2f62c4;
  font-weight: 600;
}

.select-caret {
  width: 12px;
  height: 12px;
  display: inline-block;
  background-color: currentColor;
  mask: url("/assets/arrow-down.png") center/contain no-repeat;
  -webkit-mask: url("/assets/arrow-down.png") center/contain no-repeat;
  font-size: 0;
}

.primary-button {
  height: 44px;
  width: 100%;
  border-radius: 6px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(11, 106, 169, 0.25);
}

.link-button {
  border: none;
  background: none;
  color: var(--button-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0 0;
}

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

.small-button {
  height: 30px;
  min-width: 70px;
  padding: 0 16px;
  border-radius: 6px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.users-table {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  align-items: center;
  padding: 10px 14px;
  font-size: 14px;
}

.table-head {
  background: #bfe9f6;
  color: #3b4a58;
  font-weight: 600;
}

.table-row {
  color: #5c6879;
  border-top: 1px solid #eef1f5;
}

.table-row:nth-child(even) {
  background: #f9fbff;
}

.trash-button {
  width: 24px;
  height: 30px;
  background: none;
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.trash-button img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}

.roles-card {
  border: 1px solid #e1e5ed;
  border-radius: 6px;
  padding: 16px 18px;
  background: #ffffff;
  color: #6a7484;
  font-size: 13px;
}

.roles-title {
  margin: 0 0 10px;
  font-weight: 600;
  color: #4f5a68;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bell-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.roles-card ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.connect-card {
  padding: 18px 24px;
}

.connect-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.connect-row h2 {
  margin: 0;
}

.xero-button,
.myob-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: #0e7aa8;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.myob-button {
  background: #f15a22;
}

.xero-button.is-icon-only {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.myob-button.is-icon-only {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.xero-button.is-connected {
  padding: 8px 14px;
}

.myob-button.is-connected {
  padding: 8px 14px;
}

.xero-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.myob-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.xero-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  border-radius: 50%;
  padding: 0;
}

.myob-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.xero-button.is-icon-only img {
  width: 92px;
  height: 32px;
  border-radius: 0;
}

.myob-button.is-icon-only img {
  width: 88px;
  height: 32px;
  border-radius: 0;
}

.connect-error {
  margin: 8px 0 0;
  color: #b33131;
  font-size: 13px;
}

.settings-footer {
  text-align: center;
  color: #6c7687;
  font-size: 13px;
  margin-top: 36px;
  display: grid;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  text-decoration: none;
  color: #5e6a7b;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-header {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .settings-title {
    text-align: left;
  }
  .settings-role {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .settings-content {
    padding: 18px;
  }
  .settings-card {
    padding: 20px;
  }
  .settings-field-row {
    grid-template-columns: 1fr;
    gap: 4px;
    align-items: start;
    padding: 10px 14px;
  }
  .settings-field-control,
  .settings-field-select {
    height: auto;
    text-align: left;
    text-align-last: left;
  }
  .settings-field-select {
    background-position: right center;
  }
  .table-head,
  .table-row {
    grid-template-columns: 1fr 1fr 30px;
    padding: 10px;
  }
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
}
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.settings-modal {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dce4f2;
  box-shadow: 0 18px 32px rgba(17, 34, 58, 0.2);
  padding: 22px 24px;
}

.settings-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-modal-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7687;
}

.settings-modal-title {
  margin: 4px 0 0;
  font-size: 22px;
  color: #2f3b4a;
}

.settings-modal-close {
  border: none;
  background: #f1f4f8;
  color: #526077;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.settings-modal-form {
  display: grid;
  gap: 14px;
}

.settings-modal-field {
  display: grid;
  gap: 6px;
}

.settings-modal-field input,
.settings-modal-field select {
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  padding: 0 12px;
  font-size: 15px;
  background: #ffffff;
  color: #2f3b4a;
}

.settings-modal-field input::placeholder {
  color: #9aa4b2;
}

.settings-modal-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("/assets/arrow-down.png");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  padding-right: 32px;
}

.settings-modal-field-select {
  text-align: left;
  text-align-last: left;
}

.settings-modal-field input:focus,
.settings-modal-field select:focus {
  outline: none;
  box-shadow: none;
  border-color: var(--card-border);
}

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

.settings-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.settings-modal-button {
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #3b4a58;
  font-weight: 600;
  cursor: pointer;
}

.settings-modal-button.primary {
  background: var(--button-primary);
  color: #ffffff;
  border-color: var(--button-primary);
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.25);
}

.settings-modal-button.secondary {
  background: #f4f6fb;
}

.settings-modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.settings-modal-error {
  margin: 0;
  color: #b04141;
  font-size: 13px;
}

@media (max-width: 640px) {
  .settings-modal {
    padding: 20px;
  }
  .settings-modal-row {
    grid-template-columns: 1fr;
  }
  .settings-modal-actions {
    flex-direction: column-reverse;
  }
  .settings-modal-button {
    width: 100%;
  }
}
.billing-card h2 {
  margin-bottom: 10px;
}

.billing-plan-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.billing-plan-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.billing-plan-label {
  color: var(--text-500);
}

.billing-plan-value {
  font-weight: 600;
  color: var(--text-800);
}

.billing-plan-name {
  color: var(--trancher-denim);
}

.billing-status--active {
  color: #3a8a3a;
}

.billing-status--alert {
  color: #b04141;
}

.billing-status--pending {
  color: #6b7687;
}

.upgrade-button {
  width: 100%;
  height: 36px;
  border-radius: 6px;
  border: 1px solid var(--trancher-denim);
  background: transparent;
  color: var(--trancher-denim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  transition: background 0.15s, color 0.15s;
}
.upgrade-button:hover:not(:disabled) {
  background: var(--trancher-denim);
  color: #fff;
}
.upgrade-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.billing-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cancel-link {
  color: #b04141;
}
.cancel-link:hover {
  text-decoration: underline;
}

.settings-error {
  margin: 8px 0 0;
  color: #b04141;
  font-size: 13px;
}

.clients-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.clients-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.clients-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.clients-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #3a4656;
}

.clients-add-button {
  min-width: 180px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.3);
}

.clients-table {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(30, 40, 50, 0.08);
}

.clients-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr 0.7fr 0.6fr 0.8fr 0.9fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #5b6878;
}

.clients-row + .clients-row {
  border-top: 1px solid #eef2f6;
}

.clients-row.header {
  background: #bfe9f6;
  font-weight: 600;
  color: #3b4a58;
  border-top: none;
}

.clients-row.attention {
  background: #f7eaea;
  color: #b04141;
}

.clients-row.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  color: #6b7687;
  font-style: italic;
}

.empty-state-text {
  text-align: center;
}

.sortable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-icon {
  font-size: 10px;
  opacity: 0.7;
}

.clients-table .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: max-content;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f4f6f9;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.clients-table .status.verified {
  border-color: #a9dfc0;
  background: #eaf8f0;
  color: #18794e;
}

.clients-table .status.pending {
  border-color: #f2cf8f;
  background: #fff7e6;
  color: #9a5b13;
}

.clients-table .status.incomplete,
.clients-table .status.attention {
  border-color: #f3b8bb;
  background: #fff0f1;
  color: #b4232f;
}

.review-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: max-content;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid #b8d7ff;
  border-radius: 8px;
  background: #eaf3ff;
  color: #2463a6;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.clients-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
  color: #6b7687;
}

.page-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-button,
.page-number {
  min-width: 26px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #5b6878;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
}

.page-number.is-active {
  background: #e6f1ff;
  border-color: #a7c7f2;
  color: #2f62c4;
  font-weight: 600;
}

.page-size select {
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-size: 12px;
  color: #5b6878;
  padding: 0 6px;
}

.page-summary {
  color: #6b7687;
}

@media (max-width: 900px) {
  .clients-table {
    overflow-x: auto;
  }
  .clients-row {
    min-width: 780px;
  }
  .clients-pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .clients-content {
    padding: 18px;
  }
  .clients-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .clients-add-button {
    width: 100%;
  }
}
.clients-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.clients-modal {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dce4f2;
  box-shadow: 0 18px 32px rgba(17, 34, 58, 0.2);
  padding: 22px 24px;
}

.clients-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.clients-modal-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7687;
}

.clients-modal-title {
  margin: 4px 0 0;
  font-size: 22px;
  color: #2f3b4a;
}

.clients-modal-close {
  border: none;
  background: #f1f4f8;
  color: #526077;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.clients-modal-form {
  display: grid;
  gap: 14px;
}

.clients-modal-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4a5566;
}

.clients-modal-field input,
.clients-modal-field select {
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  padding: 0 12px;
  font-size: 14px;
  background: #ffffff;
  color: #2f3b4a;
}

.clients-modal-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.clients-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.clients-modal-button {
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #3b4a58;
  font-weight: 600;
  cursor: pointer;
}

.clients-modal-button.primary {
  background: var(--button-primary);
  color: #ffffff;
  border-color: var(--button-primary);
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.25);
}

.clients-modal-button.secondary {
  background: #f4f6fb;
}

.clients-modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.clients-modal-error {
  margin: 0;
  color: #b04141;
  font-size: 12px;
}

@media (max-width: 640px) {
  .clients-modal {
    padding: 20px;
  }
  .clients-modal-row {
    grid-template-columns: 1fr;
  }
  .clients-modal-actions {
    flex-direction: column-reverse;
  }
  .clients-modal-button {
    width: 100%;
  }
}
.client-name-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--trancher-denim);
  font-size: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.client-name-btn:hover {
  text-decoration: underline;
}

.entity-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.entity-modal {
  display: flex;
  flex-direction: column;
  width: min(1140px, 96vw);
  height: min(800px, 92vh);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dce4f2;
  box-shadow: 0 24px 48px rgba(17, 34, 58, 0.22);
  overflow: hidden;
}

.entity-modal-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
}

.entity-modal-hd-main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.entity-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--trancher-denim);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.entity-modal-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entity-modal-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #2f3b4a;
  line-height: 1.2;
}

.entity-modal-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.entity-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #5b6878;
}
.entity-badge svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.entity-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.entity-badge-chip--nomatch {
  background: #e6f7f0;
  color: #1a8a5c;
  border: 1px solid #a3dfca;
}

.entity-badge-chip--match {
  background: #fdf0f0;
  color: #b04141;
  border: 1px solid #e8b8b8;
}

.entity-badge-chip--pending {
  background: #f1f4f8;
  color: #6b7687;
  border: 1px solid #dce4f2;
}

.entity-badge-chip--ok {
  background: #edf8ec;
  color: #3a8a3a;
  border: 1px solid #b2ddb2;
}

.entity-badge-chip--alert {
  background: #fdf0f0;
  color: #b04141;
  border: 1px solid #e8b8b8;
}

.entity-modal-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid #eef2f6;
  flex-shrink: 0;
  overflow-x: auto;
}

.entity-tab {
  padding: 12px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #6b7687;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}
.entity-tab:hover {
  color: #3b4a58;
}
.entity-tab.is-active {
  color: var(--trancher-denim);
  border-bottom-color: var(--trancher-denim);
  font-weight: 600;
}

.entity-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 24px;
}

.entity-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 48px 0;
}

.entity-loading-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--trancher-denim);
  animation: entity-pulse 1.2s ease-in-out infinite;
}
.entity-loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}
.entity-loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes entity-pulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: scale(0.85);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
}
.entity-error {
  margin: 24px 0;
  color: #b04141;
  font-size: 13px;
}

.entity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: #9aa5b4;
}
.entity-empty p {
  margin: 0;
  font-size: 14px;
}

.entity-details-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

.entity-section {
  background: #fafbfd;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 14px;
}
.entity-section:last-child {
  margin-bottom: 0;
}

.entity-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #3b4a58;
}
.entity-section-title svg {
  flex-shrink: 0;
  color: #6b7687;
}

.entity-section-meta {
  margin: 8px 0 0;
  font-size: 11px;
  color: #9aa5b4;
}

.entity-fields-grid {
  display: grid;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.entity-fields-grid:last-child {
  margin-bottom: 0;
}
.entity-fields-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.entity-fields-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.entity-fields-grid--mt {
  margin-top: 12px;
}

.entity-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.entity-field--full {
  grid-column: 1/-1;
}

.entity-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #3b4a58;
  text-transform: none;
  letter-spacing: 0;
}

.entity-field-value {
  font-size: 13px;
  color: #2f3b4a;
  word-break: break-word;
}
.entity-field-value.is-empty {
  color: #9aa5b4;
  font-style: italic;
}
.entity-field-value--mono {
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #526077;
  word-break: break-all;
}

.entity-risk-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: #f1f4f8;
  color: #526077;
  border: 1px solid #dce4f2;
}
.entity-risk-badge--LOW {
  background: #edf8ec;
  color: #3a8a3a;
  border-color: #b2ddb2;
}
.entity-risk-badge--MEDIUM {
  background: #fff8e6;
  color: #8a6a00;
  border-color: #f0d080;
}
.entity-risk-badge--HIGH {
  background: #fdf0f0;
  color: #b04141;
  border-color: #e8b8b8;
}
.entity-risk-badge--UNRATED {
  background: #f1f4f8;
  color: #526077;
  border-color: #dce4f2;
}

.entity-id-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

.entity-id-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-id-label {
  font-size: 11px;
  font-weight: 600;
  color: #3b4a58;
}

.entity-id-value {
  font-size: 11px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: #526077;
  word-break: break-all;
}

.entity-tab-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.entity-tab-item {
  background: #fafbfd;
  border: 1px solid #eef2f6;
  border-radius: 6px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 20px;
}

.entity-tab-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entity-tab-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #3b4a58;
}

.entity-tab-field-value {
  font-size: 13px;
  color: #2f3b4a;
  word-break: break-word;
}

.entity-tab-field-link {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--trancher-denim);
  cursor: pointer;
  text-decoration: none;
}
.entity-tab-field-link:hover {
  text-decoration: underline;
}

.entity-tab-item.is-clickable {
  cursor: pointer;
  transition: background 0.15s ease;
}
.entity-tab-item.is-clickable:hover {
  background: var(--trancher-mist, #f1f5f9);
}

.activity-detail-back {
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--trancher-denim);
  cursor: pointer;
}
.activity-detail-back:hover {
  text-decoration: underline;
}

.activity-detail-header {
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--trancher-border, #e2e8f0);
}

.activity-detail-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--trancher-ink, #0f172a);
}

.activity-detail-via {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--trancher-slate, #64748b);
}

.activity-detail-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--trancher-slate, #64748b);
}

.activity-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.activity-card {
  padding: 16px 18px;
  margin-bottom: 14px;
  border: 1px solid var(--trancher-border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}

.activity-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--trancher-border, #e2e8f0);
}

.activity-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--trancher-ink, #0f172a);
}

.activity-card-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: var(--trancher-denim);
}

.activity-block + .activity-block {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--trancher-border, #e2e8f0);
}

.activity-block-title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--trancher-slate, #64748b);
}

.activity-field {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  padding: 4px 0;
}

.activity-field-label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--trancher-slate, #64748b);
}

.activity-field-value {
  font-size: 13px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--trancher-ink, #0f172a);
}

.activity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.activity-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--trancher-mist, #e2e8f0);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--trancher-slate, #475569);
}
.activity-badge.is-ok {
  background: #dcfce7;
  color: #15803d;
}
.activity-badge.is-danger {
  background: #fee2e2;
  color: #b91c1c;
}
.activity-badge.is-warn {
  background: #ffedd5;
  color: #c2410c;
}
.activity-badge.is-pep {
  background: #fef9c3;
  color: #a16207;
}
.activity-badge.is-info {
  background: #e0f2fe;
  color: #0369a1;
}

.activity-fields.is-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}
.activity-fields.is-two-col .activity-field {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.activity-fields.is-two-col .activity-field-value {
  text-align: left;
}

.activity-field-hint {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--trancher-slate, #94a3b8);
}

.activity-block-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.activity-block-head-right {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.activity-block-toggle {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--trancher-slate, #64748b);
  cursor: pointer;
}

.activity-block-caret {
  margin-right: 6px;
  font-size: 10px;
}

.activity-pii-toggle {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--trancher-denim);
  cursor: pointer;
}
.activity-pii-toggle:hover {
  text-decoration: underline;
}

.activity-check {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  margin-top: 6px;
  border-radius: 6px;
  background: var(--trancher-fog, #f8fafc);
}

.activity-check-name {
  font-size: 13px;
  color: var(--trancher-ink, #0f172a);
}

.activity-note {
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--trancher-ink, #0f172a);
}

.activity-address-type {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--trancher-slate, #94a3b8);
}

.activity-address-line {
  margin: 0;
  font-size: 13px;
  color: var(--trancher-ink, #0f172a);
}

.activity-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.activity-image-tile {
  display: block;
  width: 92px;
  height: 68px;
  overflow: hidden;
  border: 1px solid var(--trancher-border, #e2e8f0);
  border-radius: 8px;
  background: var(--trancher-fog, #f1f5f9);
}
.activity-image-tile.is-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--trancher-slate, #94a3b8);
}
.activity-image-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-image-caption {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--trancher-slate, #64748b);
}

.activity-image-note {
  margin: 4px 0 0;
  font-size: 11px;
  font-style: italic;
  color: var(--trancher-slate, #94a3b8);
}

.activity-card-head.is-toggle {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--trancher-border, #e2e8f0);
  background: none;
  text-align: left;
  cursor: pointer;
}

.activity-card-identity {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.activity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--trancher-fog, #f1f5f9);
}

.activity-card-subtitle {
  display: block;
}

.activity-subcard {
  padding: 12px 14px;
  margin-top: 10px;
  border: 1px solid var(--trancher-border, #e2e8f0);
  border-radius: 8px;
  background: var(--trancher-fog, #f8fafc);
}

.activity-subcard-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--trancher-ink, #0f172a);
}

.activity-link-row {
  margin: 6px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.activity-link-row a {
  color: var(--trancher-denim);
}

.activity-link-caption {
  display: block;
  font-size: 12px;
  color: var(--trancher-slate, #64748b);
}

.activity-related {
  margin: 4px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--trancher-denim);
}

.activity-raw-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.activity-raw-toggle {
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--trancher-ink, #0f172a);
  cursor: pointer;
}

.activity-raw-caret {
  margin-left: 6px;
  font-size: 10px;
  color: var(--trancher-slate, #64748b);
}

.activity-raw {
  max-height: 340px;
  margin: 12px 0 0;
  padding: 12px;
  overflow: auto;
  border-radius: 8px;
  background: var(--trancher-fog, #f8fafc);
  font-size: 12px;
  line-height: 1.5;
  white-space: pre;
}

@media (max-width: 900px) {
  .activity-detail-layout {
    grid-template-columns: 1fr;
  }
}
.entity-file-actions {
  display: inline-flex;
  gap: 16px;
  align-items: center;
}

.file-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.72);
}

.file-preview-panel {
  display: flex;
  flex-direction: column;
  width: min(900px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
}

.file-preview-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--trancher-border, #e2e8f0);
}

.file-preview-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--trancher-ink, #0f172a);
}

.file-preview-close {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--trancher-slate, #64748b);
  cursor: pointer;
}

.file-preview-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  padding: 18px;
  overflow: auto;
}

.file-preview-image {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.file-preview-frame {
  width: 100%;
  height: 76vh;
  border: 0;
}

.file-preview-message {
  font-size: 14px;
  color: var(--trancher-slate, #64748b);
}
.file-preview-message.is-error {
  color: #b91c1c;
}

@media (max-width: 860px) {
  .entity-modal {
    width: min(700px, 96vw);
    height: min(700px, 92vh);
  }
  .entity-details-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .entity-modal-hd {
    padding: 16px;
  }
  .entity-modal-body {
    padding: 14px 16px 20px;
  }
  .entity-fields-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.aml-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.aml-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.aml-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
}

.aml-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
}

.aml-title {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  color: #3a4656;
  line-height: 1.1;
}

.aml-pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.aml-pill.attention {
  background: #e6a4a4;
  color: #9b2f2f;
}

.aml-select {
  position: relative;
  height: 38px;
  min-width: 160px;
  border-radius: 999px;
  border: 1px solid #cfd6e1;
  background: #ffffff;
  color: #2f62c4;
  display: inline-flex;
  align-items: center;
}

.aml-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  width: 100%;
  height: 100%;
  padding: 0 32px 0 16px;
  border-radius: 999px;
  cursor: pointer;
}

.aml-select-input:focus {
  outline: none;
}

.aml-select .select-caret {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.aml-cta {
  height: 42px;
  min-width: 200px;
  margin-left: 6px;
  border-radius: 6px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.3);
}

.aml-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f6978;
  font-size: 13px;
  font-style: italic;
  white-space: nowrap;
}

.aml-note .bell-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.aml-table {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(30, 40, 50, 0.08);
}

.aml-table .aml-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 0.9fr 0.7fr 0.9fr 0.65fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #64676d;
  background: #f3f5f7;
}

.aml-title-link {
  color: inherit;
  text-decoration: underline;
  font-weight: inherit;
}

.aml-table .aml-row + .aml-row {
  border-top: 1px solid #dce3eb;
}

.aml-table .aml-row.header {
  background: #bfe9f6;
  color: #3b4a58;
  font-weight: 600;
}

.aml-table .aml-row.attention {
  background: #efe5e6;
  color: #d1665f;
}

.aml-table .aml-row.review {
  background: #f1ebeb;
}

.aml-table .aml-row.placeholder {
  background: #f3f5f7;
}

.aml-table .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: max-content;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f4f6f9;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.aml-table .status.in-progress {
  border-color: #b8d7ff;
  background: #eaf3ff;
  color: #2463a6;
}

.aml-table .status.attention {
  border-color: #f3b8bb;
  background: #fff0f1;
  color: #b4232f;
}

.aml-table .status.review {
  border-color: #f2cf8f;
  background: #fff7e6;
  color: #9a5b13;
}

.aml-table .status.pending {
  border-color: #f2cf8f;
  background: #fff7e6;
  color: #9a5b13;
}

.aml-table .status.approved {
  border-color: #a9dfc0;
  background: #eaf8f0;
  color: #18794e;
}

.aml-doc {
  text-decoration: none;
  font-weight: 600;
}

.aml-doc.open {
  color: #2f62c4;
}

.aml-doc.approve {
  color: #6aa84f;
}

.aml-doc-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.aml-doc.buy-template {
  border: none;
  background: none;
  padding: 0;
  color: #2f62c4;
  font-weight: 600;
  cursor: pointer;
}

.aml-doc.buy-template:disabled {
  color: #9aa4b2;
  cursor: default;
}

.aml-doc.muted {
  color: #9aa4b2;
}

.aml-table .aml-doc:not(.muted),
.aml-table .aml-delete-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 62px;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.aml-table .aml-doc.open {
  border-color: #b8d7ff;
  background: #eaf3ff;
  color: #2463a6;
}

.aml-table .aml-doc.approve {
  border-color: #a9dfc0;
  background: #eaf8f0;
  color: #18794e;
}

.aml-cell-blank {
  min-height: 1em;
}

.aml-table .aml-delete-document {
  border-color: #f3b8bb;
  background: #fff0f1;
  color: #b4232f;
  cursor: pointer;
}

.aml-table .aml-delete-document:disabled {
  border-color: #d8dee8;
  background: #f4f6f9;
  color: #9aa4b2;
  cursor: default;
}

.due-alert {
  color: #cc4b4b;
  font-weight: 600;
}

.aml-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 13px;
}

.aml-link-button {
  border: none;
  background: none;
  color: #2f62c4;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.aml-link {
  border: none;
  background: none;
  padding: 0;
  color: #2f62c4;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.aml-link:disabled {
  color: #9aa4b2;
  cursor: default;
}

.aml-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: #6c7687;
}

.aml-footnote a {
  color: #2f62c4;
  text-decoration: none;
  font-weight: 600;
}

.aml-templates-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 23, 35, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 30;
  padding: 24px;
}

.aml-templates-modal {
  width: min(720px, 95vw);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(23, 36, 50, 0.25);
  padding: 24px;
}

.aml-templates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.aml-templates-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #2f62c4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.aml-templates-title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #2f3a4a;
}

.aml-templates-close {
  border: none;
  background: #f2f4f8;
  color: #3b4a58;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aml-templates-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 6px;
}

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

.aml-templates-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.aml-template-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #2f3a4a;
}

.aml-template-select-all input {
  width: 16px;
  height: 16px;
  accent-color: #2f62c4;
}

.aml-template-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e1e7ef;
  border-radius: 10px;
  background: #f9fbfe;
}

.aml-template-row.is-purchased {
  opacity: 0.8;
}

.aml-template-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.aml-template-checkbox {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
}

.aml-template-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: #2f62c4;
}

.aml-template-name {
  margin: 0;
  font-weight: 600;
  color: #2f3a4a;
}

.aml-template-summary {
  margin: 6px 0 0;
  font-size: 12px;
  color: #5b6878;
}

.aml-template-buy {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: #2f62c4;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.aml-template-buy:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.aml-template-state {
  font-size: 12px;
  font-weight: 600;
  color: #2f62c4;
  white-space: nowrap;
}

.aml-template-state.pending {
  color: #2f62c4;
}

.aml-template-state.muted {
  color: #6c7687;
}

.aml-templates-message {
  margin-top: 16px;
  font-size: 12px;
  color: #2f62c4;
  font-weight: 600;
}

.aml-templates-error {
  margin-top: 10px;
  font-size: 12px;
  color: #b04141;
  font-weight: 600;
}

.aml-templates-empty {
  margin: 0;
  color: #6c7687;
  font-size: 13px;
}

@media (max-width: 900px) {
  .aml-table {
    overflow-x: auto;
  }
  .aml-row {
    min-width: 820px;
  }
  .aml-header {
    flex-wrap: wrap;
  }
  .aml-header-left {
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .aml-content {
    padding: 18px;
  }
  .aml-header-left {
    align-items: flex-start;
  }
  .aml-cta {
    width: 100%;
  }
  .aml-templates-modal {
    padding: 20px;
  }
  .aml-templates-controls {
    flex-direction: column;
    align-items: flex-start;
  }
  .aml-template-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .aml-template-state {
    margin-top: 2px;
  }
}
.aml-policy-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.aml-policy-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.aml-policy-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(30, 40, 50, 0.08);
  padding: 24px;
}

.aml-policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.aml-policy-header-copy {
  display: grid;
  gap: 4px;
}

.aml-policy-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #3a4656;
}

.aml-policy-subtitle {
  margin: 0;
  font-size: 13px;
  color: #6c7687;
}

.aml-policy-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aml-policy-due {
  color: #cc3f3f;
  font-weight: 600;
  font-size: 13px;
}

.aml-policy-import {
  height: 38px;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  background: var(--button-primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.25);
}

.aml-policy-import:hover {
  background: var(--button-primary-hover);
}

.aml-policy-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.aml-policy-label {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: #2f62c4;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
}

.aml-frequency-pill {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #cfd2d8;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.aml-frequency-segment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 18px;
  color: #273141;
  border-right: 1px solid #d9dde4;
}

.aml-frequency-segment:last-child {
  border-right: none;
}

.aml-frequency-segment:focus-within {
  background: #ffffff;
}

.aml-frequency-select {
  min-width: 32px;
  flex: 0 0 32px;
}

.aml-frequency-select-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  border: none;
  background: transparent;
  background-image: none;
  padding: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}

.aml-frequency-select-input:focus {
  outline: none;
}

.aml-frequency-select-input::-ms-expand {
  display: none;
}

.aml-frequency-unit {
  color: #101828;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.aml-policy-table {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  overflow: hidden;
}

.aml-policy-table .aml-policy-row {
  display: grid;
  grid-template-columns: 2.3fr 1fr 1fr 0.7fr 0.8fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #64676d;
  background: #f3f5f7;
}

.aml-policy-table .aml-policy-row + .aml-policy-row {
  border-top: 1px solid #dce3eb;
}

.aml-policy-table .aml-policy-row.header {
  background: #bfe9f6;
  font-weight: 600;
  color: #3b4a58;
}

.aml-policy-table .aml-policy-row.attention {
  background: #efe5e6;
  color: #d1665f;
}

.aml-policy-table .aml-policy-row.selected {
  border-left: 3px solid #6aa84f;
}

.aml-policy-document-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aml-policy-selected-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #6aa84f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.aml-policy-row.footer {
  background: #ffffff;
}

.aml-doc {
  text-decoration: none;
  font-weight: 600;
}

.aml-doc.open {
  color: #2f62c4;
}

.aml-doc.download {
  color: #2f62c4;
}

.status.approve {
  color: #6aa84f;
  font-weight: 600;
}

.status.expired {
  color: #8b8f97;
  font-weight: 600;
}

.due-alert {
  color: #cc4b4b;
  font-weight: 600;
}

.aml-policy-retention {
  margin: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6c7687;
  font-size: 12px;
  font-style: italic;
}

.aml-policy-note-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.aml-policy-footnote {
  margin: 18px 0 0;
  text-align: center;
  font-size: 12px;
  color: #6c7687;
}

.aml-policy-footnote span {
  color: #2f62c4;
}

@media (max-width: 900px) {
  .aml-policy-table {
    overflow-x: auto;
  }
  .aml-policy-row {
    min-width: 760px;
  }
}
@media (max-width: 640px) {
  .aml-policy-content {
    padding: 18px;
  }
  .aml-policy-card {
    padding: 20px;
  }
  .aml-policy-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .aml-frequency-pill {
    width: 100%;
    flex-direction: column;
  }
  .aml-frequency-segment {
    min-width: 0;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid #e2e6ee;
  }
  .aml-frequency-segment:last-child {
    border-bottom: none;
  }
}
.aml-editor-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.aml-editor-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
  display: grid;
  gap: 24px;
}

.aml-editor-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(30, 40, 50, 0.08);
  padding: 24px;
}

.aml-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.aml-editor-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #3a4656;
}

.aml-editor-heading-input-wrap {
  flex: 1 1 340px;
  min-width: 240px;
}

.aml-editor-heading-input {
  width: 100%;
  height: 42px;
  border: none;
  border-bottom: 1px solid #d8e0eb;
  background: transparent;
  padding: 0 0 6px;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #3a4656;
  outline: none;
}

.aml-editor-heading-input::placeholder {
  color: #8ea0b6;
}

.aml-editor-heading-input:disabled {
  color: #3a4656;
  opacity: 1;
}

.aml-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.change-highlight {
  background: #fff1b8;
  border-bottom: 1px dashed #d59a2b;
  padding: 0 1px;
  position: relative;
  cursor: help;
}

.change-highlight[data-change-type=delete] {
  background: #f7dede;
  border-bottom-color: #c95f5f;
  color: #9b2f2f;
  text-decoration: line-through;
}

.change-floating-tooltip {
  position: fixed;
  background: #1f2937;
  color: #f8fafc;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.4;
  max-width: 340px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  opacity: 0;
  z-index: 9999;
}

.selection-format-tooltip {
  position: fixed;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(8px);
  pointer-events: auto;
  opacity: 0;
  z-index: 10000;
}

.selection-format-button {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.selection-format-button:hover {
  background: #e2e8f0;
}

.selection-format-button:focus-visible {
  outline: 2px solid #0b6aa9;
  outline-offset: 2px;
}

.selection-format-button.is-active {
  background: #0b6aa9;
  color: #ffffff;
}

.selection-format-button[data-format=italic] {
  font-style: italic;
}

.selection-format-button[data-format=underline] {
  text-decoration: underline;
}

.change-tooltip-text {
  font-size: 12px;
}

.change-tooltip-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.change-tooltip-button {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.change-tooltip-button.approve {
  background: #7aa64d;
  color: #ffffff;
}

.change-tooltip-button.decline {
  background: #c94f4f;
  color: #ffffff;
}

.editor-button {
  height: 38px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 14px;
  padding: 0 18px;
  cursor: pointer;
}

.editor-button.ghost {
  background: var(--button-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.3);
}

.editor-button.primary {
  background: var(--button-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.3);
}

.editor-button.approve {
  background: #7aa64d;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(122, 166, 77, 0.35);
}

.editor-shell {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  overflow: hidden;
  min-height: 520px;
  background: #ffffff;
}

.document-editor {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.document-editor.is-readonly .native-editor-toolbar {
  display: none;
}

.native-editor-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e7ef;
  background: #f4f6fa;
}

.native-editor-table-picker {
  position: absolute;
  top: calc(100% - 4px);
  left: 495px;
  z-index: 20;
  width: 190px;
  padding: 10px;
  border: 1px solid #cad5e2;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
}

.native-editor-table-picker[hidden] {
  display: none;
}

.native-editor-table-picker-label {
  margin-bottom: 8px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.native-editor-table-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.native-editor-table-picker-cell {
  width: 23px;
  height: 23px;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  background: #f8fafc;
  cursor: pointer;
}

.native-editor-table-picker-cell:hover,
.native-editor-table-picker-cell:focus-visible {
  border-color: #0b6aa9;
  background: #dceefa;
  outline: none;
}

.native-editor-select,
.native-editor-button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #ffffff;
  color: #243044;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
}

.native-editor-select {
  min-width: 158px;
  padding: 0 36px 0 12px;
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #7b8798 50%), linear-gradient(135deg, #7b8798 50%, transparent 50%);
  background-position: calc(100% - 18px) 13px, calc(100% - 12px) 13px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.native-editor-button {
  min-width: 36px;
  padding: 0 8px;
  cursor: pointer;
}

.native-editor-icon-button {
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.native-editor-icon-button.has-menu {
  width: 46px;
  gap: 4px;
}

.native-editor-icon-button.has-menu::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
}

.native-editor-icon-button svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.native-editor-letter {
  font-size: 21px;
  line-height: 1;
  color: currentColor;
}

.native-editor-letter-bold {
  font-weight: 800;
}

.native-editor-letter-italic {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
}

.native-editor-letter-underline {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.native-editor-clear-icon {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  gap: 1px;
  font-size: 22px;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
}

.native-editor-clear-icon sub {
  position: relative;
  bottom: -1px;
  font-size: 12px;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 700;
}

.native-editor-toolbar-separator {
  width: 1px;
  height: 24px;
  margin: 0 3px;
  background: #d8e0eb;
}

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

.native-editor-button:hover,
.native-editor-button.is-active {
  border-color: #0b6aa9;
  background: #e8f3fb;
  color: #0b5688;
}

.native-editor-select:hover,
.native-editor-select:focus {
  border-color: #b7c7d8;
  outline: none;
}

.native-editor-button:disabled,
.native-editor-select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.native-editor-body {
  flex: 1;
  min-height: 480px;
  padding: 20px 24px;
  color: #4b5563;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  overflow: auto;
  overflow-wrap: anywhere;
}

.native-editor-body:focus {
  box-shadow: inset 0 0 0 2px rgba(11, 106, 169, 0.16);
}

.native-editor-body ul,
.native-editor-body ol {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.native-editor-body li {
  margin-bottom: 0.35rem;
}

.native-editor-body table {
  width: 100%;
  min-width: 520px;
  margin: 1rem 0;
  border-collapse: collapse;
  table-layout: fixed;
}

.native-editor-body td,
.native-editor-body th {
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.native-editor-body th {
  background: #f1f5f9;
  font-weight: 700;
}

@media (max-width: 900px) {
  .native-editor-table-picker {
    right: 12px;
    left: auto;
  }
  .editor-shell {
    min-height: 420px;
  }
  .document-editor,
  .native-editor-body {
    min-height: 420px;
  }
}
@media (max-width: 640px) {
  .aml-editor-content {
    padding: 18px;
  }
  .aml-editor-card {
    padding: 18px;
  }
}
.training-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.training-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.training-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.training-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #3a4656;
}

.training-add-button {
  min-width: 180px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: var(--button-primary);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.3);
}

.training-table {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(30, 40, 50, 0.08);
}

.training-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #5b6878;
}

.training-row + .training-row {
  border-top: 1px solid #eef2f6;
}

.training-row.header {
  background: #bfe9f6;
  font-weight: 600;
  color: #3b4a58;
  border-top: none;
}

.training-row.attention {
  background: #f7eaea;
  color: #b04141;
}

.training-row.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  color: #6b7687;
  font-style: italic;
}

.empty-state-text {
  text-align: center;
}

.sortable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sort-icon {
  font-size: 10px;
  opacity: 0.7;
}

.training-table .status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: max-content;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #f4f6f9;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.training-table .status.up-to-date {
  border-color: #a9dfc0;
  background: #eaf8f0;
  color: #18794e;
}

.training-table .status.pending {
  border-color: #f2cf8f;
  background: #fff7e6;
  color: #9a5b13;
}

.training-table .status.attention {
  border-color: #f2cf8f;
  background: #fff7e6;
  color: #9a5b13;
}

.training-table .status.overdue {
  border-color: #f3b8bb;
  background: #fff0f1;
  color: #b4232f;
}

.training-link {
  color: #2f62c4;
  font-weight: 600;
  text-decoration: none;
}

.training-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
  color: #6b7687;
}

.page-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-button,
.page-number {
  min-width: 26px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #5b6878;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
}

.page-number.is-active {
  background: #e6f1ff;
  border-color: #a7c7f2;
  color: #2f62c4;
  font-weight: 600;
}

.page-size select {
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-size: 12px;
  color: #5b6878;
  padding: 0 6px;
}

.page-summary {
  color: #6b7687;
}

@media (max-width: 900px) {
  .training-table {
    overflow-x: auto;
  }
  .training-row {
    min-width: 760px;
  }
  .training-pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .training-content {
    padding: 18px;
  }
  .training-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .training-add-button {
    width: 100%;
  }
}
.training-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 45, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 40;
}

.training-modal {
  width: min(560px, 100%);
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dce4f2;
  box-shadow: 0 18px 32px rgba(17, 34, 58, 0.2);
  padding: 22px 24px;
}

.training-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.training-modal-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7687;
}

.training-modal-title {
  margin: 4px 0 0;
  font-size: 22px;
  color: #2f3b4a;
}

.training-modal-close {
  border: none;
  background: #f1f4f8;
  color: #526077;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.training-checklist-question {
  margin: 0 0 16px;
  font-size: 14px;
  color: #4a5566;
}

.training-checklist-question strong {
  color: #2f3b4a;
}

.training-modal-form {
  display: grid;
  gap: 14px;
}

.training-modal-field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #4a5566;
}

.training-modal-field input,
.training-modal-field select {
  height: 42px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  padding: 0 12px;
  font-size: 14px;
  background: #ffffff;
  color: #2f3b4a;
}

.training-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 6px;
}

.training-modal-button {
  height: 40px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #3b4a58;
  font-weight: 600;
  cursor: pointer;
}

.training-modal-button.primary {
  background: var(--button-primary);
  color: #ffffff;
  border-color: var(--button-primary);
  box-shadow: 0 8px 18px rgba(11, 106, 169, 0.25);
}

.training-modal-button.secondary {
  background: #f4f6fb;
}

.training-modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.training-modal-error {
  margin: 0;
  color: #b04141;
  font-size: 12px;
}

@media (max-width: 640px) {
  .training-modal {
    padding: 20px;
  }
  .training-modal-actions {
    flex-direction: column-reverse;
  }
  .training-modal-button {
    width: 100%;
  }
}
.audit-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.audit-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.audit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.audit-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audit-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: #3a4656;
}

.audit-filter {
  position: relative;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #cfd6e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #2f62c4;
  display: inline-flex;
  align-items: center;
  min-width: 140px;
}

.audit-filter-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  width: 100%;
  height: 100%;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  cursor: pointer;
}

.audit-filter-input:focus {
  outline: none;
}

.audit-filter .select-caret {
  position: absolute;
  right: 14px;
  pointer-events: none;
}

.audit-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6a7384;
  font-size: 12px;
  font-style: italic;
}

.audit-note .bell-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.audit-table {
  background: #ffffff;
  border: 1px solid #cfe0f2;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(30, 40, 50, 0.08);
}

.audit-row {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.9fr 0.8fr 0.9fr;
  align-items: center;
  padding: 12px 16px;
  font-size: 13px;
  color: #5b6878;
}

.audit-row + .audit-row {
  border-top: 1px solid #eef2f6;
}

.audit-row.header {
  background: #bfe9f6;
  font-weight: 600;
  color: #3b4a58;
  border-top: none;
}

.audit-row.empty-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  color: #6b7687;
  font-style: italic;
  grid-column: 1/-1;
}

.empty-state-text {
  text-align: center;
}

.audit-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
  color: #6b7687;
}

.page-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-button,
.page-number {
  min-width: 26px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  color: #5b6878;
  font-size: 12px;
  cursor: pointer;
  padding: 0 6px;
}

.page-number.is-active {
  background: #e6f1ff;
  border-color: #a7c7f2;
  color: #2f62c4;
  font-weight: 600;
}

.page-size select {
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-size: 12px;
  color: #5b6878;
  padding: 0 6px;
}

.page-summary {
  color: #6b7687;
}

@media (max-width: 900px) {
  .audit-table {
    overflow-x: auto;
  }
  .audit-row {
    min-width: 820px;
  }
  .audit-pagination {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .audit-content {
    padding: 18px;
  }
}
.reporting-page {
  min-height: 100vh;
  background: var(--page-bg);
}

.reporting-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px 64px;
}

.reporting-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  color: #3a4656;
}

.reporting-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(30, 40, 50, 0.08);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: #3b4858;
  padding: 24px;
}

.reporting-card h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}

.reporting-subtitle {
  margin: 0;
  font-size: 20px;
  color: #5a6576;
}

.reporting-note {
  margin: 0;
  font-size: 20px;
  color: #4f5a68;
}

.reporting-note.italic {
  font-style: italic;
  font-size: 18px;
  color: #6c7687;
}

@media (max-width: 640px) {
  .reporting-content {
    padding: 18px;
  }
  .reporting-card {
    min-height: 360px;
  }
  .reporting-card h2 {
    font-size: 22px;
  }
  .reporting-note,
  .reporting-subtitle {
    font-size: 16px;
  }
}
/* App-wide typography alignment */
.dashboard-greeting {
  font-size: var(--type-display);
  line-height: var(--type-line-tight);
  font-weight: 700;
}

.settings-title,
.clients-title,
.training-title,
.audit-title,
.reporting-title,
.aml-title,
.aml-policy-title,
.aml-editor-title {
  font-size: var(--type-page-title);
  line-height: var(--type-line-tight);
  font-weight: 700;
}

.settings-card h2,
.status-block h2,
.panel-header p,
.reporting-card h2,
.clients-modal-title,
.training-modal-title,
.settings-modal-title,
.aml-templates-title {
  font-size: var(--type-section-title);
  line-height: var(--type-line-tight);
}

.dashboard-role,
.reporting-subtitle,
.reporting-note,
.aml-policy-subtitle,
.panel-header span {
  font-size: var(--type-subtitle);
  line-height: var(--type-line-normal);
}

.login-form input,
.settings-field-control,
.settings-modal-field input,
.settings-modal-field select,
.clients-modal-field input,
.clients-modal-field select,
.training-modal-field input,
.training-modal-field select,
.input-stack input,
.input-stack select,
.select-input {
  font-size: var(--type-body-lg);
  line-height: var(--type-line-normal);
}

.clients-row,
.training-row,
.audit-row,
.aml-row,
.aml-policy-row,
.card-row {
  font-size: var(--type-body-md);
  line-height: var(--type-line-normal);
}

.clients-pagination,
.training-pagination,
.audit-pagination,
.aml-footer,
.settings-field-label,
.clients-modal-field,
.training-modal-field,
.audit-filter,
.aml-note,
.audit-note,
.card-empty-message,
.settings-footer,
.aml-templates-empty,
.reporting-note.italic {
  font-size: var(--type-body-sm);
  line-height: var(--type-line-normal);
}

.status-pill,
.sort-icon,
.clients-modal-eyebrow,
.training-modal-eyebrow,
.settings-modal-eyebrow,
.connect-error,
.clients-modal-error,
.training-modal-error,
.settings-modal-error,
.aml-template-summary,
.aml-template-state,
.aml-templates-message,
.aml-templates-error,
.aml-footnote,
.aml-policy-footnote,
.aml-policy-retention {
  font-size: var(--type-caption);
  line-height: var(--type-line-normal);
}