:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --border: #dbe4f0;
  --primary: #1d4ed8;
  --primary-strong: #1e3a8a;
  --primary-soft: #dbeafe;
  --warn: #b45309;
  --success: #166534;
  --danger: #b91c1c;
  --landing-header-height: 3.4rem;
  --app-header-height: var(--landing-header-height);
  --standard-header-height: 4.6rem;
  --app-header-control-height: 2.15rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 10% 0%, #eff6ff 0%, #ffffff 45%);
  overflow-y: auto;
}

.landing-body {
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  background: #f8fbff;
}

.landing-bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.landing-bg-glow-a {
  width: 36rem;
  height: 36rem;
  top: -16rem;
  right: -10rem;
  background: radial-gradient(circle at 30% 30%, #bfdbfe 0%, #93c5fd 45%, rgba(147, 197, 253, 0) 75%);
  animation: landingFloatA 11s ease-in-out infinite;
}

.landing-bg-glow-b {
  width: 30rem;
  height: 30rem;
  left: -8rem;
  bottom: -14rem;
  background: radial-gradient(circle at 35% 35%, #dbeafe 0%, #60a5fa 42%, rgba(96, 165, 250, 0) 78%);
  animation: landingFloatB 14s ease-in-out infinite;
}

.landing-bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.landing-shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2.2rem;
  align-items: center;
  padding: 2.2rem 0 2.6rem;
}

.landing-card.landing-hero {
  width: 100%;
  max-width: none;
  position: relative;
  z-index: 1;
  overflow: visible;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.landing-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0) 0%,
    rgba(28, 48, 86, 0.56) 58%,
    rgba(14, 30, 60, 0.78) 100%
  );
}

.landing-brand {
  display: inline-block;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  color: #0f172a;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  text-decoration: none;
}

.landing-hero h1 {
  margin: 0.95rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  line-height: 1.08;
  color: #0f172a;
}

.landing-hero p {
  margin: 0.95rem 0 0;
  color: #334155;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  max-width: 56ch;
}

#landing-subheadline {
  max-width: 38ch;
}

.landing-links {
  margin-top: 1.3rem;
  display: flex;
  gap: 0.62rem;
  flex-wrap: wrap;
}

.landing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.15rem;
  border-radius: 999px;
  border: 1px solid #bfd4ff;
  background: #ffffff;
  color: #1e3a8a;
  text-decoration: none;
  font-weight: 700;
  padding: 0 0.88rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.landing-link:hover {
  transform: translateY(-1px);
  background: #eff6ff;
  box-shadow: 0 8px 16px rgba(30, 58, 138, 0.12);
}

.landing-login-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d7e4fb;
  border-radius: 1rem;
  box-shadow: 0 18px 42px rgba(30, 58, 138, 0.16);
  padding: 1.25rem 1.1rem 1.05rem;
}

.landing-login-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.landing-login-card p {
  margin: 0.45rem 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.landing-login-form {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.landing-login-form label {
  font-size: 0.8rem;
  color: #475569;
}

.landing-login-form input {
  height: 2.35rem;
  border-radius: 0.62rem;
  border: 1px solid #bfd4ff;
  padding: 0.48rem 0.6rem;
  font-size: 0.95rem;
}

.landing-login-btn {
  margin-top: 0.2rem;
  height: 2.35rem;
  border-radius: 0.62rem;
}

.landing-demo-btn {
  margin-top: 0.55rem;
  width: 100%;
  background: #ffffff;
  color: #1e3a8a;
  border: 1px solid #bfd4ff;
}

.landing-demo-btn:hover {
  background: #eff6ff;
}

.landing-status {
  margin: 0.66rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.landing-status-success {
  color: var(--success);
  font-weight: 700;
}

.landing-status-error {
  color: var(--danger);
  font-weight: 700;
}

@keyframes landingFloatA {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(18px) translateX(-10px);
  }
}

@keyframes landingFloatB {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-14px) translateX(12px);
  }
}

.top-shell {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  height: var(--standard-header-height);
  min-height: var(--standard-header-height);
  padding: 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-top-nav {
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0;
  align-items: center;
}

.dashboard-brand-link {
  display: inline-block;
}

.dashboard-toolbar {
  margin-left: 0;
  margin-top: 0;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.dashboard-account-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dashboard-toolbar .field {
  pointer-events: none;
}

.app-header-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--app-header-control-height);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.08rem 0.42rem;
}

.toolbar.app-header-link {
  align-items: center;
}

.app-header-link:hover,
.app-header-link:active {
  background: transparent;
}

.app-header-link .field {
  color: var(--muted);
}

.app-header-link .field span {
  text-decoration: none;
}

.app-header-link-active {
  background: transparent;
  border: none;
}

.app-header-link-active .field,
.app-header-link-active .field span {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.app-header-logout-link {
  align-self: center;
  font-weight: 400;
}

.app-header-logout-link .field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.app-header-logout-link .field,
.app-header-logout-link .field span {
  color: var(--muted);
}

.app-header-logout-link:hover .field,
.app-header-logout-link:hover .field span {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.dashboard-logout-btn {
  margin-left: 0;
  align-self: center;
  margin-top: 0;
}

.landing-nav {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 1.2rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-nav .landing-links {
  margin-top: 0;
}

.landing-shell-stacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: auto;
  padding-top: 1.25rem;
  padding-bottom: 0.9rem;
}

.landing-lower-zone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding-top: 1.35rem;
  z-index: 0;
}

.landing-lower-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background: rgba(24, 26, 31, 0.94);
}

.landing-lower-zone .landing-card {
  border: none;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.landing-lower-zone .landing-card h2,
.landing-lower-zone .landing-card h3 {
  color: #f8fafc;
}

.landing-lower-zone .landing-card p,
.landing-lower-zone .landing-video-empty {
  color: #e2e8f0;
}

.landing-lower-zone .landing-step-card,
.landing-lower-zone .landing-video-card {
  border: none;
  box-shadow: none;
  background: transparent;
}

.landing-lower-zone .landing-video-card a {
  color: #ffffff;
}

.landing-lower-zone #landing-how-title,
.landing-lower-zone #landing-videos-title,
.landing-lower-zone #landing-final-cta-title,
.landing-lower-zone #landing-final-cta-text {
  color: #f8fafc;
}

.landing-card {
  background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d7e4fb;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(30, 58, 138, 0.12);
  padding: 1.2rem 1.25rem;
}

.landing-card h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  color: #0f172a;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.landing-hero-grid > div:first-child {
  display: flex;
  flex-direction: column;
}

.landing-preview-wrap {
  border: 1px solid #dbeafe;
  border-radius: 0.9rem;
  background: #f8fbff;
  min-height: 180px;
  overflow: hidden;
}

.landing-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-hero-cta {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

#landing-primary-cta {
  margin-left: 1in;
}

.landing-hero-benefits {
  margin-top: 1.35rem;
  padding-top: 1.05rem;
}

.landing-benefits-grid,
.landing-how-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.landing-benefit-card,
.landing-step-card {
  border: 1px solid #dbeafe;
  border-radius: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 0.9rem;
  min-height: 120px;
}

.landing-benefit-card h3,
.landing-step-card h3 {
  margin: 0;
  font-size: 1rem;
}

.landing-benefit-card p,
.landing-step-card p {
  margin: 0.45rem 0 0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-line;
}

.landing-link-primary {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.landing-link-primary:hover {
  background: #1e40af;
}

.landing-social-row {
  margin: 0.1rem 0 0.7rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.landing-social-link {
  min-height: 1.35rem;
  width: 1.9rem;
  padding: 0;
  border-radius: 0.55rem;
}

.landing-social-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.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;
}

#youtube-link {
  background: #dc2626;
  border-color: #dc2626;
  color: #ffffff;
}

#youtube-link:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

#patreon-link {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

#patreon-link:hover {
  background: #020617;
  border-color: #020617;
}

.landing-video-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.landing-video-card {
  border: 1px solid #dbeafe;
  border-radius: 0.8rem;
  padding: 0.7rem;
  background: #ffffff;
}

.landing-video-card h3 {
  margin: 0;
  font-size: 0.98rem;
}

.landing-video-card p {
  margin: 0.42rem 0;
  font-size: 0.88rem;
  color: #475569;
  white-space: pre-line;
}

.landing-video-card a {
  color: #1e40af;
  font-weight: 700;
  text-decoration: none;
}

.landing-video-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.landing-final-cta {
  text-align: center;
}

.landing-final-cta p {
  margin: 0.55rem auto 0.9rem;
  max-width: 52ch;
  color: #475569;
}

.landing-footer {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 1.3rem;
}

.landing-footer p {
  margin: 0 0 0.65rem;
  color: #475569;
  font-size: 0.9rem;
}

.landing-footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.landing-footer-legal-link {
  color: #1e3a8a;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.landing-footer-legal-link:hover,
.landing-footer-legal-link:focus-visible {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
}

.landing-footer-links {
  margin-top: 0.55rem;
}

#landing-footer-extra-text {
  margin-top: 0.65rem;
}

.legal-page-body {
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(circle at 15% 0%, #eff6ff 0%, #ffffff 40%);
}

.legal-page-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 1rem auto 2rem;
}

.legal-page-card {
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 1rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  padding: 1.15rem 1.2rem 1.25rem;
}

.legal-page-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: #0f172a;
}

.legal-page-content {
  margin-top: 0.95rem;
  color: #334155;
  line-height: 1.62;
  white-space: pre-wrap;
  font-size: 0.96rem;
}

.legal-page-content a {
  color: #1d4ed8;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
}

.auth-body,
.admin-body {
  min-height: 100dvh;
  margin: 0;
  background: radial-gradient(circle at 15% 0%, #eff6ff 0%, #ffffff 40%);
}

.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.auth-card {
  width: min(460px, 100%);
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 1rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  padding: 1.2rem;
}

.auth-card h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.auth-card p {
  margin: 0.45rem 0 0;
  color: #64748b;
}

.auth-form {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.45rem;
}

.auth-form label {
  color: #475569;
  font-size: 0.85rem;
}

.auth-form input {
  border: 1px solid #cbd5e1;
  border-radius: 0.6rem;
  padding: 0.5rem 0.62rem;
}

.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-wrap > input {
  width: 100%;
  padding-right: 2.2rem;
}

.password-toggle-btn {
  position: absolute;
  top: 50%;
  right: 0.42rem;
  transform: translateY(-50%);
  width: 1.55rem;
  height: 1.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.42rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 0;
}

.password-toggle-btn:hover,
.password-toggle-btn:focus-visible {
  color: #1e3a8a;
  background: #eff6ff;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 1px;
}

.password-toggle-icon {
  width: 1rem;
  height: 1rem;
}

.auth-form input[readonly] {
  background: #f8fafc;
  color: #334155;
}

.auth-form button {
  margin-top: 0.2rem;
}

.auth-status {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.auth-status-success {
  color: #166534;
  font-weight: 700;
}

.auth-status-error {
  color: #b91c1c;
  font-weight: 700;
}

.auth-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.profile-strip .global-head-controls .panel-submeta {
  white-space: normal;
}

.profile-content-main {
  padding-top: 0.25rem;
}

.profile-panel-shell {
  overflow: hidden;
}

.profile-layout {
  display: grid;
  grid-template-columns: 12.75rem minmax(0, 1fr);
  gap: 0;
  min-height: 22rem;
}

.profile-submenu {
  border-right: 1px solid var(--border);
  background: #f8fbff;
  padding: 0.65rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.profile-submenu-btn {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 0.62rem;
  background: transparent;
  color: #1e3a8a;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.42rem 0.5rem;
}

.profile-submenu-btn:hover {
  background: #eef4ff;
}

.profile-submenu-btn.active {
  background: #dbeafe;
  border-color: #bfdbfe;
  color: #1e3a8a;
}

.profile-content {
  padding: 0.9rem 1rem 1rem;
  background: #ffffff;
}

.profile-content .auth-form {
  margin-top: 0;
  max-width: 31rem;
}

.profile-content .auth-form button {
  width: fit-content;
}

.profile-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #dbeafe;
  border-radius: 0.65rem;
  padding: 0.55rem 0.62rem;
  background: #f8fbff;
}

.profile-toggle-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.profile-toggle-row.is-disabled {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #64748b;
}

.profile-toggle-row.is-disabled input[type="checkbox"] {
  cursor: not-allowed;
  opacity: 0.6;
}

#profile-status {
  white-space: normal;
}

.community-content {
  padding-top: 0.25rem;
}

.community-panel + .community-panel {
  margin-top: 0.8rem;
}

#community-directory-panel.hidden + #community-view-panel {
  margin-top: 0;
}

#community-view-panel .panel-head {
  background: #fef08a;
}

#community-view-panel .panel-title-wrap {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 0.7rem;
  row-gap: 0.2rem;
}

#community-view-panel #community-viewing-label {
  grid-column: 1;
  grid-row: 1;
}

#community-view-panel .panel-title-wrap .panel-submeta {
  grid-column: 1 / -1;
  grid-row: 2;
}

#community-view-panel .community-target-global-chips {
  grid-column: 2;
  grid-row: 1;
  margin-top: 0;
}

.community-directory-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.community-search-field {
  min-width: 14rem;
}

.community-search-field input {
  min-width: 14rem;
}

.community-directory-actions #community-search-btn {
  font-size: 0.82rem;
  padding: 0.36rem 0.62rem;
}

.ermo-export-btn {
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
  padding: 0.36rem 0.62rem;
}

.ermo-export-btn:hover {
  background: var(--primary-strong);
}

.community-status {
  margin: 0.15rem 0 0.7rem;
  color: #64748b;
  font-size: 0.86rem;
}

.community-target-global-chips {
  margin-top: 0.35rem;
}

.community-status-inline {
  margin: 0;
  white-space: nowrap;
}

.community-status-success {
  color: #166534;
  font-weight: 700;
}

.community-status-error {
  color: #b91c1c;
  font-weight: 700;
}

.ermo-page-shell {
  min-height: 100dvh;
}

.ermo-page-strip {
  padding-bottom: 0.1rem;
}

.ermo-page-content {
  padding-top: 0.25rem;
}

.ermo-page-panel {
  margin-top: 0;
}

.ermo-page-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.ermo-page-header-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex: 1 1 auto;
  min-width: 0;
}

.ermo-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: flex-end;
  margin-right: 15ch;
}

.ermo-page-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
}

.ermo-page-error {
  margin: 0.55rem 0 0;
  color: #b91c1c;
  font-size: 0.88rem;
  font-weight: 700;
}

.ermo-filter-field {
  min-width: 7.5rem;
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
}

.ermo-filter-field span {
  display: none;
}

.ermo-filter-field select {
  min-width: 5rem;
}

.ermo-lag-filter-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.ermo-lag-filter-control-wrap {
  position: relative;
  display: inline-flex;
}

.ermo-lag-filter-lock-trigger {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: transparent;
  font-size: 0;
  line-height: 0;
  box-shadow: none;
  cursor: pointer;
  z-index: 2;
}

.ermo-lag-filter-lock-trigger:focus,
.ermo-lag-filter-lock-trigger:focus-visible {
  outline: none;
  border: none;
  background: transparent;
  box-shadow: none;
}

.ermo-lag-filter-lock-trigger:hover,
.ermo-lag-filter-lock-trigger:active {
  border: none;
  background: transparent;
  box-shadow: none;
}

.ermo-lag-filter-popover {
  z-index: 5201;
}

.ermo-subheader-lock-wrap {
  position: relative;
  display: inline-flex;
}

.ermo-subheader-lock-control-wrap {
  display: inline-flex;
}

.ermo-subheader-lock-btn[aria-haspopup="dialog"] {
  cursor: pointer;
}

.ermo-subheader-lock-popover {
  z-index: 5201;
}

.ermo-lag-filter-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  margin-left: -2ch;
}

.ermo-panel-title-inline {
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.ermo-panel-title-inline .panel-submeta-inline {
  margin: 0;
  white-space: nowrap;
}

.ermo-option-candidates-editor {
  margin-top: 0.9rem;
}

.ermo-option-candidates-table-wrap {
  overflow-x: auto;
}

.ermo-option-candidates-table {
  min-width: 34rem;
}

.ermo-month-strip {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

.ermo-month-pill {
  min-height: 2rem;
  min-width: 2.65rem;
  padding: 0.28rem 0.56rem;
  border: 1px solid #bfd4ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 700;
}

.ermo-month-pill:hover:not(:disabled) {
  background: #eff6ff;
}

.ermo-month-pill-active:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.ermo-month-pill:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ermo-month-pill-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ermo-page-table-wrap {
  max-height: none;
}

.ermo-page-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(8rem, 12fr) minmax(15rem, 38fr);
  gap: 0.75rem;
  align-items: start;
}

.ermo-option-candidates-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 50fr) minmax(8rem, 12fr) minmax(15rem, 38fr);
  gap: 0.75rem;
  align-items: start;
}

.ermo-page-table-wrap-main,
.ermo-page-table-wrap-changes,
.ermo-page-changes-column {
  min-width: 0;
}

.ermo-page-table-wrap-changes {
  width: 100%;
  justify-self: start;
}

.ermo-page-changes-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.12rem;
  text-align: center;
}

.ermo-changes-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.25rem;
  padding-top: 0.15rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ermo-changes-callout-icon {
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.68rem solid #38bdf8;
  flex: 0 0 auto;
  transform: translateY(0.08rem);
}

.ermo-rebalanced-callout {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.15rem;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ermo-rebalanced-callout-text {
  color: #0f172a;
}

.ermo-rebalanced-callout-icon {
  color: #dc2626;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 800;
}

.ermo-page-table {
  width: 100%;
}

.ermo-page-table-main {
  width: 100%;
  min-width: 34rem;
}

.ermo-page-changes-table {
  table-layout: fixed;
}

.ermo-page-changes-table th,
.ermo-page-changes-table td {
  width: 50%;
}

.ermo-page-changes-table td {
  vertical-align: top;
  word-break: break-word;
}

.ermo-holding-change-cell {
  border-radius: 0.38rem;
}

.ermo-holding-change-text {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ermo-holding-change-cell-added {
  background: #ecfdf5;
}

.ermo-holding-change-cell-retained {
  background: #eff6ff;
}

.ermo-holding-change-cell-removed {
  background: #fef2f2;
}

.ermo-option-candidate-changes-table {
  table-layout: fixed;
}

.ermo-option-candidate-changes-table th,
.ermo-option-candidate-changes-table td {
  width: 33.33%;
}

.ermo-option-candidate-changes-table td {
  vertical-align: top;
  word-break: normal;
}

.ermo-excluded-reasons {
  margin-top: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.ermo-sector-trend-editor {
  margin-top: 0.55rem;
}

.ermo-index-performance-editor {
  margin-top: 0.55rem;
}

.metrics-head-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ermo-index-performance-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ermo-index-performance-header-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.ermo-index-performance-compare {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #334155;
  font-size: 0.82rem;
  font-weight: 700;
}

.ermo-index-performance-compare select {
  min-height: 2rem;
  padding: 0.24rem 0.55rem;
  border: 1px solid #bfd4ff;
  border-radius: 0.6rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
}

.ermo-index-performance-footnote {
  margin: 0.85rem 0 0;
  color: #64748b;
  font-size: 0.83rem;
  line-height: 1.5;
  font-weight: 700;
}

.ermo-index-performance-toggle-btn {
  min-height: 2rem;
  padding: 0.28rem 0.68rem;
  border: 1px solid #bfd4ff;
  border-radius: 999px;
  background: #ffffff;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 700;
}

.ermo-index-performance-toggle-btn:hover:not(:disabled) {
  background: #eff6ff;
}

.ermo-index-performance-toggle-btn-active,
.ermo-index-performance-toggle-btn-active:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.ermo-sector-trend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  min-height: 26rem;
}

.ermo-sector-trend-column {
  min-width: 0;
}

.ermo-sector-trend-column-chart {
  display: flex;
}

.ermo-sector-chart-card {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 0.82rem;
  background: #ffffff;
  padding: 0.72rem 0.78rem 0.62rem;
}

.ermo-sector-chart-meta {
  margin-bottom: 0.42rem;
  text-align: center;
}

.ermo-sector-chart-meta h4 {
  margin: 0;
  font-size: 0.86rem;
  font-family: "Space Grotesk", sans-serif;
  color: #1e3a8a;
}

.chart-state {
  min-height: 22rem;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd5e1;
  border-radius: 0.72rem;
  background: #f8fbff;
  padding: 0.8rem;
  text-align: center;
  color: #475569;
  font-size: 0.84rem;
}

.chart-state-error {
  color: #b91c1c;
  background: #fff7f7;
  border-color: #fecaca;
}

.comparison-chart-shell {
  width: 100%;
  min-height: 27.25rem;
  box-sizing: border-box;
}

.comparison-chart-scroll {
  width: 100%;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  overflow-y: hidden;
}

.comparison-chart-scroll-active {
  overflow-x: auto;
}

.comparison-chart-canvas {
  width: 100%;
  margin: 0 auto;
}

.comparison-chart-canvas :focus,
.comparison-chart-canvas :focus-visible,
.comparison-chart-canvas svg:focus,
.comparison-chart-canvas svg:focus-visible,
.comparison-chart-canvas .recharts-wrapper:focus,
.comparison-chart-canvas .recharts-wrapper:focus-visible,
.comparison-chart-canvas .recharts-surface:focus,
.comparison-chart-canvas .recharts-surface:focus-visible {
  outline: none;
}

.comparison-chart-canvas .recharts-cartesian-axis-tick-value {
  user-select: none;
  -webkit-user-select: none;
}

.comparison-chart-legend {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 1.05rem;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.comparison-chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}

.comparison-chart-legend-swatch {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 0.1rem;
  flex: 0 0 auto;
}

.comparison-chart-legend-label {
  line-height: 1;
}

.trend-chart-legend-swatch {
  width: 1.2rem;
  height: 0;
  border-top-width: 0.18rem;
  border-top-color: currentColor;
  border-top-style: solid;
  flex: 0 0 1.2rem;
}

.chart-tooltip {
  min-width: 10.5rem;
  max-width: 14rem;
  border: 1px solid #dbe4f0;
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16);
  padding: 0.56rem 0.6rem;
}

.chart-tooltip-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e3a8a;
}

.chart-tooltip-rows {
  margin-top: 0.36rem;
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.chart-tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.chart-tooltip-key {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: #475569;
  font-size: 0.76rem;
}

.chart-tooltip-swatch {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  flex: 0 0 0.62rem;
}

.chart-tooltip-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.ermo-excluded-reason-row {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #b91c1c;
}

.ermo-page-table-main th:last-child,
.ermo-page-table-main td:last-child {
  border-right: 1px solid #edf1f7;
}

.ermo-page-changes-table th:first-child,
.ermo-page-changes-table td:first-child {
  border-left: 1px solid #edf1f7;
}

.ermo-sort-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.ermo-header-text {
  color: inherit;
  font: inherit;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.ermo-sort-btn:hover {
  color: var(--primary);
}

.ermo-num-col {
  text-align: right;
  white-space: nowrap;
}

.community-table {
  width: 100%;
}

#community-shared-table {
  table-layout: fixed;
  min-width: 1160px;
  width: 100%;
}

#community-shared-table thead th {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

#community-shared-table > thead > tr > th,
#community-shared-table > tbody > tr.community-shared-row > td {
  padding-left: 0.52rem;
  padding-right: 0.52rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#community-shared-table > thead > tr > th:nth-child(1),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(1) {
  width: 14rem;
}

#community-shared-table > thead > tr > th:nth-child(2),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(2) {
  width: 12rem;
}

#community-shared-table > thead > tr > th:nth-child(3),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(3) {
  width: 9rem;
}

#community-shared-table > thead > tr > th:nth-child(4),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(4) {
  width: 9rem;
}

#community-shared-table > thead > tr > th:nth-child(5),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(5) {
  width: 9rem;
}

#community-shared-table > thead > tr > th:nth-child(6),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(6) {
  width: 8rem;
}

#community-shared-table > thead > tr > th:nth-child(7),
#community-shared-table > tbody > tr.community-shared-row > td:nth-child(7) {
  width: 12rem;
}

.community-action-btn {
  min-width: 6.5rem;
}

#community-users-table > tbody > tr > td {
  font-size: 0.84rem;
}

#community-users-table .community-action-btn {
  min-width: 6.5rem;
  height: 1.75rem;
  padding: 0.22rem 0.46rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.84rem;
  line-height: 1;
}

.community-view-btn:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
}

.community-view-btn:disabled:hover {
  background: #e2e8f0;
}

.community-row-selected {
  background: #eff6ff;
}

.community-shared-row {
  cursor: pointer;
}

.community-shared-row:hover {
  background: #f8fbff;
}

.community-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.38rem;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 0.7rem;
  font-weight: 700;
}

.community-detail-row > td {
  background: #f8fbff;
  padding: 0;
}

.community-detail-shell {
  border: 1px solid #dbeafe;
  border-radius: 0.7rem;
  background: #ffffff;
  padding: 0.72rem;
}

.community-readonly-detail-shell {
  border-top: none;
  max-height: none;
  overflow: visible;
  /* Community-only EPS row spacing controls (bypass shared defaults). */
  --community-eps-row-pad-y: 0.41rem;
  --community-eps-row-min-height: 2.02rem;
}

.community-readonly-detail-shell .detail-top {
  position: static;
}

.community-readonly-detail-grid {
  grid-template-columns: minmax(300px, 25vw) minmax(0, 1fr);
}

.community-readonly-detail-grid .assumption-grid input[readonly] {
  background: #f8fafc;
  color: #0f172a;
  cursor: default;
}

.community-readonly-detail-grid .assumption-grid select:disabled,
.community-readonly-detail-grid .assumption-grid input:disabled {
  background: #f8fafc;
  color: #0f172a;
  cursor: default;
  opacity: 1;
}

.community-readonly-detail-shell .eps-table tbody td {
  padding-top: var(--community-eps-row-pad-y);
  padding-bottom: var(--community-eps-row-pad-y);
}

.community-readonly-detail-shell .eps-table tbody tr {
  min-height: var(--community-eps-row-min-height);
}

.community-assumption-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.community-assumption-note {
  color: #64748b;
  font-size: 0.84rem;
}

.community-assumption-grid {
  display: grid;
  grid-template-columns: minmax(0, 16rem) minmax(0, 1fr);
  gap: 0.3rem 0.55rem;
}

.community-assumption-label {
  color: #475569;
  font-size: 0.82rem;
}

.community-assumption-value {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.84rem;
}

.admin-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0.95rem auto 2rem;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-head h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.admin-head-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  border: 1px solid #bfd4ff;
  border-radius: 0.7rem;
  padding: 0 0.75rem;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-link-btn:hover,
.admin-link-btn:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.admin-link-btn:active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
}

.admin-subtitle {
  margin: 0.45rem 0 1rem;
  color: #64748b;
}

.admin-menu {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.admin-menu-btn {
  border: 1px solid #bfd4ff;
  border-radius: 0.7rem;
  background: #ffffff;
  color: #1e3a8a;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-menu-btn:hover,
.admin-menu-btn:focus-visible {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.admin-menu-btn:active {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1e3a8a;
}

.admin-menu-btn-active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.admin-menu-btn-active:hover,
.admin-menu-btn-active:focus-visible,
.admin-menu-btn-active:active {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.admin-view-hidden {
  display: none;
}

.admin-card {
  margin-bottom: 1rem;
  background: #ffffff;
  border: 1px solid #dbe4f0;
  border-radius: 0.9rem;
  padding: 1rem;
}

.admin-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  font-family: "Space Grotesk", sans-serif;
  color: #1e3a8a;
}

.admin-json {
  width: 100%;
  min-height: 160px;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.6rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.86rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.admin-form-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.admin-field span {
  font-size: 0.8rem;
  color: #475569;
}

.admin-field input[type="text"],
.admin-field input[type="url"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field textarea {
  border: 1px solid #cbd5e1;
  border-radius: 0.62rem;
  padding: 0.52rem 0.6rem;
  font-size: 0.9rem;
  background: #ffffff;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.admin-field textarea {
  min-height: 86px;
  resize: vertical;
}

.admin-legal-body-field {
  min-height: min(72vh, 900px);
}

.admin-legal-body-textarea {
  min-height: min(68vh, 860px);
  line-height: 1.5;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-field-check {
  align-self: end;
}

.admin-field-check input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
}

.admin-field-check-round {
  align-self: center;
}

.admin-field-check-round input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  accent-color: #0f766e;
}

.admin-ermo-warning {
  max-width: 52rem;
  margin: 0;
  text-align: right;
  line-height: 1.35;
}

.admin-fixed-items {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.admin-item-card {
  border: 1px solid #dbeafe;
  border-radius: 0.8rem;
  padding: 0.7rem;
  background: #f8fbff;
}

.admin-item-card h3 {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: #1e3a8a;
}

.admin-item-card .admin-form-grid {
  grid-template-columns: minmax(0, 1fr);
}

.admin-repeater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}

.admin-api-actions {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-note {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
}

.admin-repeater-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.admin-repeater-row {
  border: 1px solid #dbe4f0;
  border-radius: 0.78rem;
  background: #f8fbff;
  padding: 0.65rem;
}

.admin-repeater-row-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 0.55rem;
}

.admin-ermo-step3-exclusion-row {
  padding: 0.55rem 0.65rem;
}

.admin-ermo-step3-exclusion-row-grid {
  grid-template-columns: minmax(180px, 0.95fr) minmax(240px, 1.45fr) auto;
  align-items: end;
}

.admin-ermo-step3-row-actions {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.4rem;
  justify-content: flex-start;
}

.admin-ermo-step3-row-actions button {
  min-width: 2rem;
  padding: 0.45rem 0.6rem;
}

.admin-row-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
}

.admin-row-remove {
  background: #ffffff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.admin-row-remove:hover {
  background: #fee2e2;
}

.admin-link-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-actions {
  display: flex;
  gap: 0.55rem;
}

.admin-status {
  margin: 0.7rem 0 0;
  color: #64748b;
}

.admin-status-success {
  color: #166534;
  font-weight: 700;
}

.admin-status-error {
  color: #b91c1c;
  font-weight: 700;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table-wrap-scroll-10rows {
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 0.45rem 0.55rem;
  font-size: 0.84rem;
  vertical-align: top;
}

.admin-table th {
  background: #f8fbff;
  color: #1e3a8a;
  font-weight: 700;
}

.brand h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.brand p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.field.compact input {
  width: 10rem;
}

.inline {
  display: flex;
  gap: 0.4rem;
}

input, select, button {
  font: inherit;
}

input, select {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  color: var(--text);
  background: #fff;
}

input:focus, select:focus, button:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

button {
  border: 1px solid transparent;
  border-radius: 0.55rem;
  padding: 0.45rem 0.78rem;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--primary-strong);
}

button.secondary {
  background: #fff;
  color: var(--primary-strong);
  border-color: var(--border);
}

.ctrl-save {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  font-size: 0.72rem;
  padding: 0.22rem 0.46rem;
  border-radius: 0.5rem;
  height: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-save:hover {
  background: var(--primary-strong);
}

.ctrl-cancel {
  background: #fff;
  color: var(--primary-strong);
  border-color: var(--border);
  font-size: 0.72rem;
  padding: 0.22rem 0.46rem;
  border-radius: 0.5rem;
  height: 1.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ctrl-cancel:hover {
  background: #f1f5f9;
}

.switch {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 0.28rem;
}

.circle-switch {
  margin-bottom: 0;
}

.circle-switch input[type="checkbox"] {
  appearance: none;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid #9db4da;
  background: #fff;
  position: relative;
  cursor: pointer;
}

.circle-switch input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.circle-switch input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.global-strip {
  padding: 0.8rem 1.4rem 0.2rem;
}

.global-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.45rem;
}

.global-strip:not(.profile-strip) .global-head {
  margin-bottom: 0.22rem;
}

.global-strip:not(.profile-strip) .chips {
  margin-top: -0.8rem;
}

.global-head-controls {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-left: auto;
  min-width: 0;
}

.global-strip h2 {
  font-size: 0.86rem;
  margin: 0;
  padding-top: 0.22rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.global-add-ticker-field {
  min-width: 0;
}

.global-add-ticker-field input {
  width: 7.4rem;
}

.global-metrics-btn {
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  padding: 0.28rem 0.56rem;
  margin-top: 0.18rem;
}

.global-metrics-btn:hover {
  background: #eff6ff;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.chips-label {
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  font-weight: 700;
}

.chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  display: inline-flex;
  gap: 0.42rem;
  font-size: 0.8rem;
  align-items: center;
}

.chip strong {
  color: var(--primary-strong);
}

.global-editor {
  margin-top: 0.65rem;
  border: 1px solid #c9daf8;
  border-radius: 0.8rem;
  background: #f7faff;
  padding: 0.6rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.global-assumptions-btn {
  margin-top: 0.18rem;
}

.global-assumption-chip-hidden {
  display: none !important;
}

.global-strip .chips.global-summary-chips-compact {
  margin-top: 0;
}

.global-assumptions-editor {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.global-assumptions-editor .field.compact {
  display: inline-flex;
  margin-bottom: 0;
}

.global-assumptions-editor .global-editor-actions {
  margin-top: 0;
  display: inline-flex;
  gap: 0.38rem;
  align-self: flex-end;
}

.global-editor-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.metrics-editor {
  margin-top: 0.65rem;
  border: 1px solid #c9daf8;
  border-radius: 0.8rem;
  background: #f7faff;
  padding: 0.6rem;
}

.metrics-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.metrics-head h3 {
  margin: 0;
  font-size: 0.88rem;
  font-family: "Space Grotesk", sans-serif;
  color: #1e3a8a;
}

.metrics-table-wrap {
  overflow: auto;
}

.metrics-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dde7f6;
  border-radius: 0.55rem;
}

.metrics-table th,
.metrics-table td {
  border-bottom: 1px solid #e8eef8;
  padding: 0.35rem;
  font-size: 0.76rem;
  vertical-align: middle;
}

.metrics-table th {
  background: #f8fbff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.metrics-table input,
.metrics-table select {
  width: 100%;
  min-width: 5.7rem;
  padding: 0.28rem 0.4rem;
  font-size: 0.75rem;
}

.metrics-table .metrics-enabled-cell {
  text-align: center;
}

.metrics-table .metrics-enabled {
  width: 1rem;
  height: 1rem;
}

.metrics-table .metrics-row-remove {
  background: #fff;
  color: var(--danger);
  border: 1px solid #fecaca;
  padding: 0.14rem 0.42rem;
  border-radius: 0.42rem;
  font-size: 0.72rem;
}

.metrics-table .metrics-row-remove:hover {
  background: #fee2e2;
}

.metrics-editor-actions {
  margin-top: 0.5rem;
  display: inline-flex;
  gap: 0.38rem;
}

.content {
  padding: 0.8rem 1.4rem 1.3rem;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.panel-head {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.panel-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.panel-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.panel-head-with-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.panel-title-inline {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
  min-width: 0;
}

.panel-submeta-inline {
  flex: 0 1 auto;
}

.panel-submeta {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

#status-msg {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

#status-msg.danger {
  color: var(--danger);
}

#status-msg.success {
  color: var(--success);
}

#status-msg.status-not-saved {
  color: var(--danger);
  font-weight: 800;
}

.panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.panel-actions-with-add {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.panel-add-ticker-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.panel-add-ticker-controls input {
  width: 7.4rem;
  font-size: 0.84rem;
  padding: 0.38rem 0.5rem;
}

.panel-add-ticker-controls button {
  font-size: 0.82rem;
  padding: 0.36rem 0.62rem;
}

.icon-round {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

.reload-icon {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  font-size: 1.2rem;
}

.reload-icon:hover {
  background: var(--primary-strong);
}

.table-wrap {
  overflow-y: visible;
  overflow-x: auto;
  max-height: none;
  width: 100%;
}

.shared-main-table-wrap-scroll {
  overflow-y: auto;
  overflow-x: auto;
  max-height: min(68vh, 42rem);
  overscroll-behavior: contain;
}

.table-wrap.has-x-overflow {
  overflow-x: auto;
}

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

#dashboard-table {
  table-layout: fixed;
  min-width: 100%;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f9fbff;
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.58rem 0.52rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

#dashboard-table thead th.th-title-case,
#community-users-table thead th.th-title-case {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
}

#dashboard-table > thead th {
  z-index: 12;
}

.th-sort-btn {
  appearance: none;
  border: none;
  background: transparent !important;
  color: inherit;
  padding: 0;
  margin: 0;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.26rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.th-sort-btn:hover {
  color: #1e3a8a;
  background: transparent !important;
}

.th-sort-btn.active {
  color: #1e3a8a;
  background: transparent !important;
}

.th-sort-ind {
  min-width: 0.72rem;
  text-align: left;
  font-size: 0.62rem;
  opacity: 0.45;
}

.th-sort-btn.active .th-sort-ind {
  opacity: 1;
}

.th-label-group {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

.th-inline-metric {
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1d4ed8;
  border: none;
  border-radius: 0.35rem;
  padding: 0.04rem 0.34rem;
  background: #eff6ff;
  margin-left: -0.5ch;
  white-space: nowrap;
}

.th-current-price-head {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.42rem;
  width: 100%;
}

.th-save-all-btn {
  appearance: none;
  border: 1px solid #d2dbe9;
  background: #ffffff;
  color: #5a677a;
  border-radius: 0.44rem;
  padding: 0.14rem 0.38rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
}

.th-save-all-btn:hover {
  background: #f4f7fc;
  color: #2e3b4f;
}

#dashboard-table > thead > tr > th,
#dashboard-table > tbody > tr.data-row > td {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#dashboard-table > thead > tr > th:nth-child(1),
#dashboard-table > tbody > tr.data-row > td:nth-child(1) {
  width: 11%;
}

#dashboard-table > thead > tr > th:nth-child(2),
#dashboard-table > tbody > tr.data-row > td:nth-child(2) {
  width: 10%;
}

#dashboard-table > thead > tr > th:nth-child(3),
#dashboard-table > tbody > tr.data-row > td:nth-child(3) {
  width: 12%;
}

#dashboard-table > thead > tr > th:last-child,
#dashboard-table > tbody > tr.data-row > td:last-child {
  width: 180px;
}

/* Dashboard local exception:
   keep Ticker/Target Weight sizing unchanged, normalize spacing from Rating onward. */
#dashboard-table > thead > tr > th:nth-child(n + 3),
#dashboard-table > tbody > tr.data-row > td:nth-child(n + 3) {
  width: auto;
}

tbody td {
  border-bottom: 1px solid #edf1f7;
  padding: 0.56rem 0.52rem;
  font-size: 0.88rem;
  vertical-align: middle;
}

tbody tr.data-row {
  cursor: default;
}

tbody tr.data-row.expandable {
  cursor: pointer;
}

tbody tr.data-row.expandable:hover {
  background: #f8fbff;
}

tbody tr.data-row.active {
  background: #eef4ff;
}

.mono {
  font-variant-numeric: tabular-nums;
}

.ticker-cell {
  font-weight: 800;
  font-family: "Space Grotesk", sans-serif;
  white-space: normal !important;
  line-height: 1.2;
}

.ticker-main-line {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ticker-symbol {
  display: inline-block;
}

.ticker-company-name {
  margin-top: 0.12rem;
  font-family: "Manrope", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-value-cell {
  font-weight: 800;
}

.metric-action {
  font-weight: 800;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.8rem;
  padding: 0.18rem 0.5rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  color: var(--text);
  background: #f8fafc;
}

.metric-tone-green {
  background: #86efac;
  border-color: #16a34a;
}

.metric-tone-blue {
  background: #93c5fd;
  border-color: #3b82f6;
}

.metric-tone-yellow {
  background: #fef08a;
  border-color: #facc15;
}

.metric-tone-red {
  background: #f87171;
  border-color: #b91c1c;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.46rem;
  margin-left: 0.3rem;
  border: 1px solid transparent;
}

.badge.base {
  background: var(--primary-soft);
  color: var(--primary-strong);
  border-color: #bfdbfe;
}

.badge.act, .badge.ng {
  background: #eff6ff;
  color: #1d4ed8;
}

.badge.est, .badge.gp {
  background: #fef3c7;
  color: #92400e;
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.16rem 0.46rem;
  margin-left: 0.3rem;
  border: 1px solid transparent;
  line-height: 1.1;
}

.ui-badge--info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.ui-badge--warning {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

button.ui-badge {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.ui-badge--interactive.ui-badge--info:hover {
  background: #eff6ff;
}

.ui-badge--interactive.ui-badge--warning:hover {
  background: #fef3c7;
}

.ui-badge--interactive:hover {
  filter: brightness(0.98);
}

.ui-badge--interactive:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

.badge-popover {
  position: fixed;
  z-index: 5200;
  width: min(320px, calc(100vw - 1rem));
  border: 1px solid #bfd4ff;
  border-radius: 0.75rem;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.22);
  padding: 0.58rem 0.62rem;
}

.badge-popover-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e3a8a;
}

.badge-popover-grid {
  margin-top: 0.42rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.24rem 0.46rem;
  align-items: start;
}

.badge-popover-label {
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}

.badge-popover-value {
  font-size: 0.8rem;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.badge-popover-value--solo {
  grid-column: 1 / -1;
}

.badge-popover-value--wrap {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.24;
}

.small {
  font-size: 0.78rem;
}

.muted {
  color: var(--muted);
}

.warn {
  color: var(--warn);
}

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

.success {
  color: var(--success);
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4500;
}

.page-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: #0f172a;
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.22);
  font-size: 0.86rem;
  font-weight: 600;
}

.page-loading-spinner {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 2px solid #bfdbfe;
  border-top-color: var(--primary);
  animation: page-loading-spin 0.8s linear infinite;
}

.page-loading-text {
  line-height: 1;
}

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

.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.confirm-modal {
  width: min(420px, calc(100vw - 2rem));
  border: 1px solid #bfd4ff;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(30, 58, 138, 0.28);
  padding: 0.95rem 1rem;
}

.confirm-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a8a;
}

.confirm-message {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  color: #0f172a;
  white-space: pre-line;
}

.confirm-message-accent {
  color: #1d4ed8;
  font-weight: 700;
}

.confirm-actions {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.hidden {
  display: none !important;
}

.row-actions {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: nowrap;
}

.row-actions button {
  background: #fff;
  color: #334155;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  padding: 0.22rem 0.42rem;
}

.row-actions button.ctrl-save {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.row-actions button.ctrl-save:hover {
  background: var(--primary-strong);
}

.row-actions button.ctrl-cancel {
  background: #fff;
  color: var(--primary-strong);
  border-color: var(--border);
}

.row-actions button.ctrl-cancel:hover {
  background: #f1f5f9;
}

.row-actions button:hover {
  background: #f1f5f9;
}

.row-actions button.remove {
  color: var(--danger);
}

.weight-input, .analysis-input {
  width: 6rem;
}

.current-price-input {
  width: 5.2rem;
  min-width: 5.2rem;
}

.weight-cell {
  overflow: visible !important;
}

.weight-cell .row-actions {
  flex-wrap: nowrap;
  gap: 0.26rem;
}

.weight-cell .weight-input {
  width: 4.2rem;
  min-width: 4.2rem;
}

.current-price-cell .row-actions {
  justify-content: flex-start;
}

.current-price-cell {
  overflow: visible !important;
  position: relative;
}

.current-price-cell.editing {
  z-index: 8;
}

.current-price-cell.editing .row-actions {
  position: relative;
  z-index: 9;
}

.current-price-session-note {
  margin-top: 0.18rem;
  line-height: 1.1;
}

.updated-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.updated-meta {
  white-space: nowrap;
}

.row-menu-wrap {
  position: relative;
  overflow: visible;
  margin-right: 0.32rem;
}

.row-menu-btn {
  border-color: #cbd5e1;
  color: #1e3a8a;
  background: #fff;
}

.row-menu-btn:hover {
  background: #eff6ff;
}

.row-menu-icon {
  width: 0.84rem;
  height: 0.84rem;
  display: block;
}

.row-menu-icon path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.row-submenu {
  position: fixed;
  z-index: 40;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 0.65rem;
  padding: 0.45rem;
  min-width: 8.8rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.14);
}

.row-submenu-title {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.36rem;
}

.row-submenu-actions {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  min-height: 2rem;
}

.row-submenu button {
  background: #fff;
  color: #111827;
  border: 1px solid #cbd5e1;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.5rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.row-submenu button:hover {
  background: #f1f5f9;
}

.trash-icon {
  color: #111827;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trash-icon-svg {
  width: 1.3rem;
  height: 1.3rem;
  display: block;
  stroke: #111827;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.remove-icon {
  border-color: #fecaca;
  color: var(--danger);
  background: #fff;
  font-size: 1.05rem;
}

.remove-icon:hover {
  background: #fee2e2;
}

.parent-row-actions {
  margin-top: 0.3rem;
  display: inline-flex;
  gap: 0.3rem;
}

.action-cell {
  text-align: right;
}

.action-cell .parent-row-actions {
  margin-top: 0;
}

.small-action {
  border: 1px solid #c7d2fe;
  background: #fff;
  color: #1e3a8a;
  padding: 0.14rem 0.45rem;
  font-size: 0.72rem;
  border-radius: 999px;
}

.small-action:hover {
  background: #e0e7ff;
}

.small-action.save {
  border-color: #99f6e4;
  color: #0f766e;
}

.small-action.save:hover {
  background: #ccfbf1;
}

.detail-row td {
  background: #f8fbff;
  padding: 0;
}

.detail-shell {
  border-top: 1px solid #cfe0ff;
  max-height: none;
  overflow: visible;
}

.detail-top {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #eef4ff;
  border-bottom: 1px solid #d2e3ff;
  padding: 0.65rem 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.detail-context {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 auto;
  min-width: 0;
}

.detail-main-line {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
}

.detail-summary-readonly {
  --detail-summary-cell-width: calc(8.8rem + 6ch);
  --detail-summary-cell-gap-x: 0.2rem;
  --detail-summary-cell-gap-y: 0.42rem;
  --detail-summary-group-shift: var(--detail-summary-cell-width);
  --detail-summary-group-shift-y: -1.72rem;
  --detail-summary-wrapper-offset-y: 0.38rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0.5rem;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  align-items: flex-start;
}

.detail-summary-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  transform: translateY(var(--detail-summary-wrapper-offset-y));
  transform-origin: top left;
  overflow: hidden;
}

.detail-summary-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, var(--detail-summary-cell-width)));
  column-gap: var(--detail-summary-cell-gap-x);
  row-gap: var(--detail-summary-cell-gap-y);
  margin-left: var(--detail-summary-group-shift);
  margin-top: var(--detail-summary-group-shift-y);
  width: calc(100% - var(--detail-summary-group-shift));
  overflow: hidden;
  padding-bottom: 0;
  align-items: stretch;
  justify-content: flex-start;
  width: calc(100% - var(--detail-summary-group-shift));
  align-content: start;
}

.detail-summary-row-expanded {
  padding-top: 0;
}

.detail-summary-row[hidden] {
  display: none !important;
}

.detail-summary-toggle {
  border: 1px solid #bfd2f5;
  background: #ffffff;
  color: #1e3a8a;
  border-radius: 999px;
  min-height: 1.56rem;
  padding: 0.12rem 0.56rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.detail-summary-toggle:hover {
  background: #e8f1ff;
}

.detail-kv {
  display: inline-flex;
  align-items: center;
  align-content: center;
  gap: 0.28rem;
  border: 1px solid #cadbf8;
  border-radius: 0.45rem;
  background: #f7faff;
  padding: 0.24rem 0.46rem;
  font-size: 0.78rem;
  color: #1e3a8a;
  min-height: 1.72rem;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}

.detail-kv[hidden] {
  display: none !important;
}

.detail-summary-lead {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: flex-start;
  font-weight: 700;
  color: #1e3a8a;
  background: transparent;
  border: none;
  border-radius: 0;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: auto;
  padding: 0 0.1rem 0.1rem 0;
  white-space: nowrap;
  text-align: left;
  transform: translateY(0.08rem);
}

.detail-kv b {
  font-weight: 700;
  color: #1e3a8a;
  white-space: nowrap;
  flex: 0 0 auto;
}

.detail-kv em {
  font-style: normal;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
}

.detail-summary-readonly > .detail-actions.detail-actions-results-docked {
  justify-self: end;
  align-self: flex-start;
  white-space: nowrap;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.detail-summary-readonly > .detail-actions.community-results-actions-docked .community-action-btn {
  min-height: 1.95rem;
  min-width: 0;
  padding: 0.36rem 0.68rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-summary-readonly > .detail-actions.community-results-actions-docked .close-btn {
  min-height: 1.95rem;
  padding: 0.36rem 0.68rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-actions.detail-actions-docked-empty {
  display: none;
}

.detail-actions .run-btn {
  background: #22c55e;
}

.detail-actions .run-btn:hover {
  background: #16a34a;
}

.detail-actions .save-btn {
  background: var(--primary);
}

.detail-actions .save-btn:hover {
  background: var(--primary-strong);
}

.detail-actions .close-btn {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(300px, 25vw) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 0.82rem;
  align-items: start;
}

.detail-grid > .assumptions,
.detail-grid > .eps-panel {
  align-self: start;
}

.detail-grid > .eps-panel {
  position: relative;
  overflow: visible;
}

.assumptions h4, .eps-panel h4 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
}

.assumptions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.assumptions-head h4 {
  margin: 0;
  font-size: 1rem;
}

.assumptions-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
}

.assumptions-source-line {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--muted);
}

.assumptions-actions {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.assumption-action-btn {
  white-space: nowrap;
}

.assumption-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.52rem;
}

.assumption-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.assumption-popup-inline-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.assumption-popup-inline-title {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.2;
  align-self: flex-start;
}

.assumption-popup-inline-control {
  display: block;
}

.assumption-help-label-btn {
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  margin: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  cursor: pointer;
}

.assumption-help-label-btn:hover {
  color: inherit;
  background: transparent;
  border: none;
  box-shadow: none;
}

.assumption-help-label-btn:focus,
.assumption-help-label-btn:focus-visible,
.assumption-help-label-btn:active {
  outline: none;
  box-shadow: none;
  border: none;
  background: transparent;
}

.assumption-grid .assumption-inline-pair {
  gap: 0.2rem;
}

.assumption-inline-pair-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.assumption-inline-pair-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.36rem;
  align-items: end;
}

.assumption-inline-pair-labels > span {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.2;
}

.assumption-inline-pair-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.36rem;
  align-items: start;
}

.assumption-inline-control {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.assumption-inline-sub-label {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.15;
}

.assumption-inline-input {
  width: 100%;
  min-width: 0;
}

.current-price-note {
  margin: 0.45rem 0 0;
}

.eps-table th, .eps-table td {
  font-size: 0.78rem;
  padding: 0.4rem 0.45rem;
}

.eps-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.eps-table-scroll-wrap {
  --eps-source-row-sticky-height: 26px;
  max-height: 20rem;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

.eps-table thead {
  background: #f9fbff;
}

.eps-table thead th {
  position: sticky;
  z-index: 4;
  background: #f9fbff;
  background-clip: padding-box;
  box-sizing: border-box;
}

.eps-table thead tr.eps-source-row th {
  top: 0;
  z-index: 6;
  background: #f9fbff;
  border-bottom: none;
  height: var(--eps-source-row-sticky-height);
  line-height: var(--eps-source-row-sticky-height);
  padding-top: 0;
  padding-bottom: 0;
}

.eps-table thead tr:not(.eps-source-row) th {
  top: var(--eps-source-row-sticky-height);
  z-index: 5;
  background: #f9fbff;
  border-bottom: 1px solid var(--border);
}

/* Hide horizontal row separators inside EPS table rows. */
.eps-table tbody td {
  border-bottom: none;
  vertical-align: middle;
  line-height: 1.2;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Keep EPS row spacing deterministic across Dashboard and Community. */
.eps-table tbody tr {
  min-height: 2.18rem;
}

/* Keep Quarterly EPS column spacing stable across Dashboard and Community. */
.eps-table th.eps-col-period,
.eps-table td.eps-col-period {
  width: 11rem;
  min-width: 11rem;
  white-space: nowrap;
}

.eps-table th.eps-col-final,
.eps-table td.eps-col-final,
.eps-table th.eps-col-yoy,
.eps-table td.eps-col-yoy,
.eps-table th.eps-col-revenue,
.eps-table td.eps-col-revenue,
.eps-table th.eps-col-revenue-yoy,
.eps-table td.eps-col-revenue-yoy,
.eps-table th.eps-col-opinc,
.eps-table td.eps-col-opinc,
.eps-table th.eps-col-opinc-yoy,
.eps-table td.eps-col-opinc-yoy {
  text-align: right;
  white-space: nowrap;
}

.eps-table th.eps-col-final,
.eps-table td.eps-col-final {
  width: 7rem;
  min-width: 7rem;
}

.eps-table td.eps-col-final {
  position: relative;
  padding-right: calc(0.45rem + 2.3rem);
}

.eps-table td.eps-col-final .eps-final-value {
  display: block;
  text-align: right;
}

.eps-table td.eps-col-final .eps-final-suffix {
  position: absolute;
  right: calc(0.45rem - 1ch);
  top: 50%;
  transform: translateY(-50%);
  min-width: 2.3rem;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
}

.eps-table td.eps-col-final .eps-final-suffix .ui-badge {
  white-space: nowrap;
}

.eps-table th.eps-col-yoy,
.eps-table td.eps-col-yoy {
  width: 6.5rem;
  min-width: 6.5rem;
}

.eps-table th.eps-col-revenue,
.eps-table td.eps-col-revenue {
  width: 7.8rem;
  min-width: 7.8rem;
}

.eps-table th.eps-col-revenue-yoy,
.eps-table td.eps-col-revenue-yoy {
  width: 7.4rem;
  min-width: 7.4rem;
}

.eps-table th.eps-col-opinc,
.eps-table td.eps-col-opinc {
  width: 8.4rem;
  min-width: 8.4rem;
}

.eps-table th.eps-col-opinc-yoy,
.eps-table td.eps-col-opinc-yoy {
  width: 8.2rem;
  min-width: 8.2rem;
}

.eps-table th.eps-col-action,
.eps-table td.eps-col-action {
  width: 3.2rem;
  min-width: 3.2rem;
  text-align: right;
}

.eps-table .eps-col-action .control-edit-e,
.eps-table .eps-col-action .eps-view-btn {
  width: 1.76rem;
  min-width: 1.76rem;
  height: 1.76rem;
  min-height: 1.76rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.eps-table .eps-col-action .eps-view-btn {
  line-height: 0;
}

.eps-table .eps-col-action .eps-view-btn .eps-view-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  pointer-events: none;
}

.eps-table .eps-col-action .eps-action-placeholder {
  width: 1.76rem;
  min-width: 1.76rem;
  height: 1.76rem;
  min-height: 1.76rem;
  display: inline-flex;
}

.eps-table thead th {
  text-transform: none;
  letter-spacing: 0.02em;
}

.eps-table thead tr.eps-source-row th {
  background: #f9fbff;
  border-bottom: none;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.eps-table thead th.eps-source-cell {
  text-align: left;
  white-space: nowrap;
}

.eps-table thead th.eps-source-cell.eps-source-cell-with-actions {
  padding-right: 14.4rem;
}

.eps-panel-head-actions {
  position: absolute;
  right: calc(0.6rem + 2ch) !important;
  top: calc(0.95rem - 1.5ch);
  transform: none;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  flex: 0 0 auto;
  white-space: nowrap;
}

.eps-panel-head-actions .run-btn,
.eps-panel-head-actions .save-btn,
.eps-panel-head-actions .close-btn {
  min-height: 1.7rem;
  padding: 0.2rem 0.62rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.eps-panel-head-actions .run-btn {
  background: #22c55e;
  color: #fff;
}

.eps-panel-head-actions .run-btn:hover {
  background: #16a34a;
}

.eps-panel-head-actions .save-btn {
  background: var(--primary);
  color: #fff;
}

.eps-panel-head-actions .save-btn:hover {
  background: var(--primary-strong);
}

.eps-panel-head-actions .close-btn {
  padding: 0.2rem 0.54rem;
  font-size: 0.92rem;
  font-weight: 800;
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}

.eps-panel-head-actions .close-btn:hover {
  background: #f8fafc;
}

.community-eps-panel-head-actions {
  top: calc(0.95rem - 1.5ch);
}

.community-eps-panel-head-actions .community-action-btn {
  min-height: 1.7rem;
  min-width: 0;
  padding: 0.2rem 0.62rem;
  border-radius: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.eps-table thead th.eps-title-cell {
  text-align: left;
}

.eps-title-inline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.eps-table tbody tr:hover {
  background: #edf4ff;
}

.eps-table tbody tr.eps-row-editing,
.eps-table tbody tr.eps-row-editing:hover {
  background: #e8f1ff;
}

.eps-table tbody tr.eps-row-editing > td {
  background: #e8f1ff;
  box-shadow: inset 0 1px 0 #c6d8fb, inset 0 -1px 0 #c6d8fb;
}

.eps-table tbody tr.eps-row-editing > td:first-child {
  box-shadow: inset 3px 0 0 #3b82f6, inset 0 1px 0 #c6d8fb, inset 0 -1px 0 #c6d8fb;
}

.eps-table tbody tr.eps-editor-row,
.eps-table tbody tr.eps-editor-row:hover {
  background: transparent;
}

.eps-table tbody tr.eps-editor-row > td {
  padding-top: 0.22rem;
  padding-bottom: 0.56rem;
}

.eps-ttm-input-label > span:first-child,
.eps-ttm-local-toggle > span:first-child {
  font-size: 0.76rem;
  color: var(--muted);
}

.eps-ttm-manual-inline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 2.05rem;
}

.eps-ttm-inline-layout {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.eps-ttm-inline-title {
  font-size: 0.76rem;
  color: var(--muted);
}

.eps-ttm-control-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.05rem;
  flex-wrap: nowrap;
  width: 100%;
}

.eps-ttm-inline-layout .eps-ttm-manual-inline {
  min-height: auto;
}

.eps-ttm-manual-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 1.08rem;
  height: 1.08rem;
  min-width: 1.08rem;
  min-height: 1.08rem;
  border-radius: 50%;
  border: 1px solid #9db4da;
  background: #fff;
  position: relative;
  cursor: pointer;
  flex: 0 0 1.08rem;
  padding: 0;
  margin: 0;
  line-height: 0;
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
}

.eps-ttm-manual-value-inline {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex: 1 1 auto;
  width: auto;
  min-width: 8.5rem;
}

.eps-ttm-manual-value-label {
  display: none;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.eps-ttm-manual-value-inline input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.38rem 0.5rem;
  min-height: 2.05rem;
  width: 100%;
  max-width: 100%;
}

.eps-ttm-manual-inline input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.eps-ttm-manual-inline input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  width: 0.34rem;
  height: 0.34rem;
  border-radius: 50%;
  background: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.eps-ttm-input-label {
  display: flex;
  flex-direction: column;
  gap: 0.24rem;
}

.eps-ttm-input-label input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.38rem 0.5rem;
  min-height: 2.05rem;
  width: 100%;
}

.eps-ttm-source-line {
  font-size: 0.79rem;
  color: var(--muted);
}

.eps-ttm-source-label {
  font-weight: 700;
  color: var(--text);
  margin-right: 0.2rem;
}

.eps-ttm-source-line strong {
  color: var(--primary);
  text-transform: lowercase;
}

.eps-table thead th.eps-source-cell strong[data-readonly="eps_ttm_source"] {
  color: var(--primary);
}

.eps-source-used-inline {
  margin-left: calc(0.72rem + 3ch);
}

.eps-table thead th.eps-source-cell strong[data-readonly="eps_source_used_display"] {
  color: var(--primary);
  text-transform: lowercase;
}

.ctrl-edit,
.eps-edit-btn,
.eps-view-btn {
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid #bfd4ff;
  border-radius: 0.5rem;
  padding: 0.22rem 0.5rem;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 700;
}

.control-edit-e {
  width: 1.76rem;
  min-width: 1.76rem;
  height: 1.76rem;
  min-height: 1.76rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.control-edit-e .control-edit-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  transform: rotate(-22deg) scale(1);
  transform-origin: center;
  pointer-events: none;
}

.row-actions button.control-edit-e {
  width: 1.76rem;
  min-width: 1.76rem;
  height: 1.76rem;
  min-height: 1.76rem;
  padding: 0;
  background: #fff;
  color: var(--primary-strong);
  border: 1px solid #bfd4ff;
}

.row-actions button.control-edit-e:hover {
  background: #eaf1ff;
}

.ctrl-edit:hover,
.eps-edit-btn:hover,
.eps-view-btn:hover {
  background: #eaf1ff;
}

.eps-view-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.eps-view-btn:disabled:hover {
  background: #fff;
}

.eps-editor {
  margin-top: 0.55rem;
  border: 1px solid #c9daf8;
  border-radius: 0.75rem;
  background: #f7faff;
  padding: 0.55rem;
}

.eps-editor .edit-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.9fr) minmax(110px, 0.9fr) minmax(95px, 0.9fr) minmax(220px, 1.6fr);
  gap: 0.45rem;
}

.eps-editor .edit-short {
  min-width: 0;
}

.eps-editor .edit-reason {
  min-width: 0;
}

.eps-editor label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.eps-editor .edit-help-text {
  font-size: 0.76rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.25;
  align-self: flex-end;
  text-align: right;
}

.eps-editor .edit-actions {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.4rem;
}

.advanced {
  margin: 0.2rem 0.82rem 0.92rem;
  border: 1px solid #d8e6fb;
  border-radius: 0.75rem;
  background: #fff;
}

.advanced summary {
  cursor: pointer;
  padding: 0.55rem 0.7rem;
  font-weight: 700;
  color: var(--primary-strong);
}

.advanced-note {
  padding: 0.05rem 0.72rem 0.3rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.advanced-matrix-wrap {
  overflow: auto;
  padding: 0 0.7rem 0.65rem;
}

.advanced-matrix th,
.advanced-matrix td {
  border: 1px solid #e3edf9;
  padding: 0.33rem 0.45rem;
  font-size: 0.75rem;
  text-align: right;
  min-width: 74px;
}

.advanced-matrix th:first-child,
.advanced-matrix td:first-child {
  text-align: left;
  position: sticky;
  left: 0;
  background: #f9fbff;
}

@media (max-width: 1180px) {
  .landing-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1.25rem;
  }

  .landing-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .landing-hero-grid > div:first-child {
    display: block;
  }

  .landing-hero-cta {
    margin-top: 1rem;
    padding-top: 0;
  }

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

  #dashboard-table {
    min-width: 1260px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .eps-ttm-source-line {
    padding-bottom: 0;
  }

  .ermo-sector-trend-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .landing-shell {
    width: calc(100% - 1rem);
    padding-bottom: 1.4rem;
  }

  .landing-card {
    padding: 0.95rem;
  }

  .landing-hero-benefits {
    margin-top: 1rem;
    padding-top: 0.9rem;
  }

  .landing-benefits-grid,
  .landing-how-grid {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .landing-login-card {
    padding: 0.95rem 0.85rem 0.9rem;
  }

  .top-shell {
    flex-direction: row;
    align-items: center;
  }

  .dashboard-top-nav {
    width: calc(100% - 1rem);
    padding-bottom: 0;
  }

  .toolbar {
    width: auto;
  }

  .admin-api-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .global-head {
    align-items: flex-start;
  }

  .global-head-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .dashboard-logout-btn {
    margin-left: 0;
    width: fit-content;
    align-self: center;
  }

  .dashboard-account-actions {
    width: auto;
    max-width: 100%;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
  }

  .dashboard-toolbar {
    margin-top: 0;
  }

  .table-wrap:not(.shared-main-table-wrap-scroll) {
    max-height: none;
  }

  .panel-head-with-summary {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .panel-head-with-summary .panel-actions {
    justify-content: flex-start;
  }

  .assumption-grid {
    grid-template-columns: 1fr;
  }

  .eps-editor .edit-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid,
  .admin-fixed-items,
  .admin-repeater-row-grid {
    grid-template-columns: 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-submenu {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.48rem 0.55rem;
    flex-direction: row;
    overflow-x: auto;
  }

  .profile-submenu-btn {
    white-space: nowrap;
    flex: 1 1 auto;
  }

  .community-directory-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .community-search-field,
  .community-search-field input {
    width: 100%;
    min-width: 0;
  }

  .community-assumption-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .community-assumption-grid {
    grid-template-columns: 1fr;
  }

  .ermo-page-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ermo-page-header-controls {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .ermo-page-filters {
    width: 100%;
    justify-content: flex-start;
  }

  .ermo-page-header-action {
    width: 100%;
    justify-content: flex-start;
  }

  .ermo-page-content-grid {
    grid-template-columns: 1fr;
  }

  .ermo-option-candidates-content-grid {
    grid-template-columns: 1fr;
  }

  .ermo-page-table-main {
    width: 100%;
    min-width: 0;
  }

  .ermo-page-table-wrap-changes {
    width: 100%;
  }

  .ermo-page-changes-column {
    margin-bottom: 0.35rem;
  }
}


