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

:root {
  --green-100: #d4f5e4;
  --green-200: #a8e6cf;
  --green-400: #5ec49a;
  --green-500: #3db88a;
  --blue-100: #d4eef8;
  --blue-200: #a8d8f0;
  --blue-400: #5eb8d9;
  --blue-500: #3aa8cc;
  --text-primary: #1a2332;
  --text-secondary: #6b7a90;
  --text-muted: #9aa8b8;
  --border: #e2e8f0;
  --white: #ffffff;
  --radius: 10px;
  --radius-lg: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--green-100) 0%, var(--blue-100) 100%);
  min-height: 100vh;
  color: var(--text-primary);
}

html {
  scrollbar-gutter: stable;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-icon {
  height: 72px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.logo-text {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.btn-primary {
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--green-500) 0%, var(--blue-500) 100%);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-secondary {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--green-400);
  background: var(--green-100);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

body.page-layout .page-shell {
  width: 100%;
}

.page-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(61, 184, 138, 0.12), 0 8px 24px rgba(58, 168, 204, 0.08);
  overflow: hidden;
}

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

.app-header h1 {
  font-size: 1.375rem;
  font-weight: 700;
}

.app-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-content {
  padding: 28px;
}

.profile-menu {
  position: relative;
}

.profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-trigger:hover,
.profile-menu.open .profile-trigger {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(94, 196, 154, 0.12);
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-500), var(--blue-500));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
}

.profile-summary {
  text-align: left;
}

.profile-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.profile-role {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-chevron {
  color: var(--text-muted);
  transition: transform 0.2s;
}

.profile-menu.open .profile-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(26, 35, 50, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.profile-dropdown-header {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(212, 245, 228, 0.5), rgba(212, 238, 248, 0.5));
}

.profile-dropdown-header strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.profile-dropdown-header span {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.profile-dropdown-header .profile-organization {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.profile-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.profile-recent-apps .profile-about-link + .profile-about-link {
  margin-top: 4px;
}

html:not(.las-page-ready) .page-main,
html:not(.las-page-ready) .portal-content,
html:not(.las-page-ready) .login-main {
  visibility: hidden;
}

html.las-navigating .page-main,
html.las-navigating .portal-content {
  opacity: 0;
  transition: opacity 0.12s ease;
}

.profile-section:last-child {
  border-bottom: none;
}

.profile-section-title {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.profile-about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.profile-about-link:hover {
  border-color: var(--green-400);
  background: var(--green-100);
}

.profile-about-link svg {
  color: var(--text-muted);
}

.access-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.access-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.access-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
}

.profile-actions {
  padding: 12px 16px;
}

.btn-signout {
  width: 100%;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-signout:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
}

.stat-value.green { color: var(--green-500); }
.stat-value.blue { color: var(--blue-500); }

.data-panel {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.data-panel h2 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.btn-table-action {
  padding: 6px 12px;
  font-size: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--blue-500);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.profile-detail-item {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.profile-detail-item.full-width {
  grid-column: 1 / -1;
}

.profile-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile-detail-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.profile-detail-value.notes {
  white-space: pre-wrap;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(94, 196, 154, 0.12);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

.status-badge.active {
  background: var(--green-100);
  color: var(--green-500);
}

.status-badge.scheduled {
  background: var(--blue-100);
  color: var(--blue-500);
}

.status-badge.expired {
  background: #f1f5f9;
  color: var(--text-muted);
}

.btn-link {
  background: none;
  border: none;
  color: var(--blue-500);
  font-size: 0.8125rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
}

.btn-link:hover {
  text-decoration: underline;
}

.btn-link.danger {
  color: #b91c1c;
}

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

.panel-header h2 {
  margin-bottom: 0;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(61, 184, 138, 0.08);
}

#siteHeader {
  min-height: 73px;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.public-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 760px) {
  .public-page-grid { grid-template-columns: 1fr; }
}

.public-info-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(212, 245, 228, 0.22), rgba(255, 255, 255, 0.95));
}

.public-info-card h2 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.public-info-card p,
.public-info-card li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.public-info-card ul {
  margin-top: 10px;
  padding-left: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

@media (min-width: 960px) {
  .site-nav {
    flex-wrap: nowrap;
  }
}

.site-nav a,
.site-nav button.nav-button {
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-secondary);
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav button.nav-button:hover,
.site-nav a.active {
  background: var(--green-100);
  color: var(--green-500);
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  flex-shrink: 0;
}

.site-header .profile-menu {
  min-width: 168px;
}

body.page-layout .app-header .profile-menu,
body.page-layout .portal-header .profile-menu {
  display: none;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 24px;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 28px;
}

.site-footer h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue-500);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.page-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 50, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(26, 35, 50, 0.2);
  overflow: hidden;
}

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

.modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--green-100);
  color: var(--green-500);
}

.modal-body {
  padding: 22px;
}

.modal-steps {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.modal-step {
  flex: 1;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius);
  background: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-step.active {
  background: linear-gradient(135deg, var(--green-100), var(--blue-100));
  color: var(--text-primary);
}

.upload-dropzone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--green-400);
  background: var(--green-100);
}

.upload-dropzone input {
  display: none;
}

.upload-file-name {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.upload-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  display: none;
}

.upload-status.show {
  display: block;
}

.upload-status.info {
  background: var(--blue-100);
  color: var(--blue-500);
}

.upload-status.success {
  background: var(--green-100);
  color: var(--green-500);
}

.upload-status.error {
  background: #fef2f2;
  color: #b91c1c;
}

#uploadImportForm > .form-group {
  margin-top: 12px;
}

#importVisibilitySelect {
  width: 100%;
  min-height: 6.5rem;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  font-family: inherit;
}

#importVisibilitySelect option {
  padding: 4px 2px;
}

#uploadImportForm .form-actions #uploadDoneBtn {
  margin-left: auto;
}

.template-description {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.45;
}

.upload-financial-note {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.contact-card h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.principals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.principal-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
}

.principal-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--green-200), var(--blue-200));
}

.principal-body {
  padding: 20px;
}

.principal-body h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.principal-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-500);
  margin-bottom: 12px;
}

.principal-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  text-align: left;
}

@media (max-width: 768px) {
  .site-footer-grid,
  .contact-grid,
  .principals-grid {
    grid-template-columns: 1fr;
  }

  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .profile-summary,
  .profile-chevron {
    display: none;
  }

  .profile-dropdown {
    width: 280px;
  }
}

.relay-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1200;
}

.relay-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.relay-modal-wide {
  width: min(960px, 100%);
}

.relay-modal-dashboard-wide {
  width: min(1480px, calc(100vw - 48px));
}

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

.relay-modal-header h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
}

.relay-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
}

.relay-modal-body {
  padding: 20px;
}

#relaySendForm .relay-send-field-spaced {
  margin-top: 20px;
}

.relay-modal-note,
.relay-modal-preview {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.relay-modal-body textarea {
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  resize: vertical;
}

.relay-optional-label {
  color: var(--text-muted);
  font-weight: 400;
}

.relay-modal-preview {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  border: 1px solid var(--border);
}

.relay-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.relay-modal-actions .btn-primary,
.relay-modal-actions .btn-secondary {
  text-align: center;
}

.relay-view-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.relay-modal-status {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--green-500);
}

.relay-modal-status.is-error {
  color: #b42318;
}

.relay-view-results-icon {
  display: inline-flex;
  color: var(--blue-500);
}

.relay-icon {
  display: block;
  object-fit: contain;
}

.relay-regulatory-heading h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.relay-regulatory-heading p {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.relay-regulatory-filters {
  font-size: 0.8125rem;
  line-height: 1.45;
  margin-bottom: 10px;
}

.relay-regulatory-filters div + div {
  margin-top: 4px;
}

.relay-regulatory-chart-wrap {
  max-width: 100%;
  max-height: 220px;
  margin: 8px 0 14px;
  padding: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.relay-regulatory-chart-wrap img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 200px;
  height: auto;
  object-fit: contain;
}

.relay-dashboard-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  max-width: none;
  margin-top: 12px;
}

.relay-dashboard-chart-cell {
  min-width: 0;
}

.relay-dashboard-chart-cell h4 {
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--text-primary);
}

.relay-dashboard-chart-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  height: 260px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.relay-dashboard-chart-frame .dashboard-relay-chart-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}

.relay-dashboard-chart-block {
  margin-bottom: 20px;
}

.relay-dashboard-chart-block h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.relay-dashboard-chart-block .dashboard-relay-chart-image {
  display: block;
  max-height: 320px;
  width: auto;
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

#relaySnapshotContainer .comparison-table-wrap {
  max-height: 260px;
}

html.las-tile-preview,
html.las-tile-preview body {
  overflow: hidden !important;
  height: 100%;
  min-height: 0;
}

html.las-tile-preview .page-shell,
html.las-tile-preview .page-card,
html.las-tile-preview .app-content {
  overflow: hidden;
}

.relay-modal-mortality #relaySnapshotContainer {
  transform: scale(0.82);
  transform-origin: top center;
  width: 122%;
  margin-left: -11%;
  margin-bottom: -12%;
}

.relay-modal-mortality #relaySnapshotContainer .dashboard-relay-chart-image {
  max-height: 260px;
  width: 100%;
  object-fit: contain;
}

.relay-modal-mortality #relaySnapshotContainer .relay-snapshot-table-wrap {
  max-height: 300px;
}

.fr-relay-send-btn:not(:disabled) {
  color: var(--blue-500);
}

.relay-snapshot-heading-block {
  margin-bottom: 10px;
}

.relay-snapshot-kicker {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.relay-snapshot-subject {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--text-primary);
}

.relay-glp-group-name {
  margin: 0 0 12px;
  font-size: 0.875rem;
}

.relay-glp-table-block {
  margin-top: 16px;
}

.relay-glp-table-title {
  margin: 0 0 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.relay-snapshot-table-wrap {
  overflow: auto;
}

.relay-notes-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.relay-notes-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.relay-notes-toggle-label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.relay-notes-toggle-indicator {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.relay-notes-toggle-icon {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1;
}

.relay-notes-body {
  margin-top: 12px;
}

.relay-notes-body[hidden] {
  display: none;
}

.relay-send-save-row {
  margin-top: 12px;
  margin-bottom: 0;
}

.relay-notes-heading {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.relay-notes-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.relay-note-item {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
}

.relay-note-item + .relay-note-item {
  margin-top: 8px;
}

.relay-note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.relay-note-meta strong {
  color: var(--text-primary);
}

.relay-note-body {
  font-size: 0.875rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.relay-note-actions {
  margin-top: 8px;
}

.relay-notes-empty {
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.relay-notes-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.relay-notes-input {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.relay-notes-form-actions {
  margin-top: 8px;
}

.relay-notes-status {
  min-height: 1.1rem;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--green-500);
}

.relay-notes-status.is-error {
  color: #b42318;
}

#relayNotesContainer {
  margin-top: 16px;
}
