.eras-org-nabila-font {
  font-family:'SVN-Hottroof-Semhesta';
}
@font-face {
  font-family:'SVN-Hottroof-Semhesta';
  src:url('font/SVN-Hottroof-Semhesta.otf') format('opentype');
  font-display:swap;
}
.eras-org-frontend-page {
  background:
    radial-gradient(circle at top, rgba(255,255,255,.92), rgba(255,255,255,0) 38%),
    linear-gradient(180deg, #f6fbff 0%, #eef6fd 100%);
  min-height:100vh;
  padding:0;
  color:#16314d;
}
.eras-org-frontend-wrap { max-width:none; margin:0 auto; padding:0; }
.eras-org-app-shell { margin:0; background:#eef6fd; color:#16314d; }
.eras-org-app-shell #wpadminbar { display:none; }
.eras-org-app-shell a { color:#0073ce; }
.eras-org-app-shell .button,
.eras-org-app-shell button,
.eras-org-app-shell input[type="submit"] {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:38px;
  padding:9px 15px;
  border:1px solid #c7ddec;
  border-radius:10px;
  background:linear-gradient(180deg, #ffffff, #eef6fd);
  color:#16314d;
  font-size:13px;
  font-weight:800;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 8px 16px rgba(0,67,123,.08), inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.eras-org-app-shell .button:hover,
.eras-org-app-shell button:hover,
.eras-org-app-shell input[type="submit"]:hover {
  transform:translateY(-1px);
  border-color:#8fc2e8;
  color:#0073ce;
  box-shadow:0 12px 22px rgba(0,67,123,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.eras-org-app-shell .button:focus-visible,
.eras-org-app-shell button:focus-visible,
.eras-org-app-shell input[type="submit"]:focus-visible {
  outline:3px solid rgba(0,115,206,.22);
  outline-offset:2px;
}
.eras-org-app-shell .button.button-primary,
.eras-org-app-shell .button-primary,
.eras-org-app-shell input[type="submit"].button-primary {
  border-color:#0066b8;
  background:linear-gradient(180deg, #1981d8, #0073ce);
  color:#fff;
  box-shadow:0 10px 20px rgba(0,115,206,.22), inset 0 1px 0 rgba(255,255,255,.24);
}
.eras-org-app-shell .button.button-primary:hover,
.eras-org-app-shell .button-primary:hover,
.eras-org-app-shell input[type="submit"].button-primary:hover {
  border-color:#005fae;
  background:linear-gradient(180deg, #0b73c9, #005fae);
  color:#fff;
}
.eras-org-app-shell .button.button-link-delete,
.eras-org-app-shell .button-link-delete {
  border-color:#d92d20;
  background:linear-gradient(180deg, #f04438, #d92d20);
  color:#fff;
  box-shadow:0 10px 20px rgba(217,45,32,.2), inset 0 1px 0 rgba(255,255,255,.24);
}
.eras-org-app-shell .button.button-link-delete:hover,
.eras-org-app-shell .button-link-delete:hover {
  border-color:#b42318;
  background:linear-gradient(180deg, #e03125, #b42318);
  color:#fff;
}
.eras-org-app-shell .button:disabled,
.eras-org-app-shell button:disabled,
.eras-org-app-shell input[type="submit"]:disabled {
  cursor:not-allowed;
  opacity:.58;
  transform:none;
  box-shadow:none;
}
.eras-login-shell {
  display:grid;
  place-items:center;
  gap:26px;
  min-height:100vh;
  padding:40px 20px 48px;
}
.eras-login-banner {
  position:relative;
  width:min(920px, 100%);
  min-height:140px;
  border-radius:28px;
  background:
    radial-gradient(circle at 20% 50%, rgba(0,115,206,.18), transparent 18%),
    radial-gradient(circle at 80% 50%, rgba(0,115,206,.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #e8f3fb 100%);
  border:1px solid #cfe3f4;
  box-shadow:0 24px 70px rgba(0,67,123,.12);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}
.eras-login-banner::before,
.eras-login-banner::after {
  content:'';
  position:absolute;
  top:50%;
  width:130px;
  height:2px;
  background:linear-gradient(90deg, rgba(0,115,206,0), rgba(0,115,206,.55), rgba(0,115,206,0));
}
.eras-login-banner::before { left:28px; }
.eras-login-banner::after { right:28px; }
.eras-login-banner-title {
  font-size: clamp(34px, 5vw, 58px);
  font-weight:800;
  color:#0073ce;
  letter-spacing:.12em;
  text-transform:uppercase;
  line-height:1;
}
.eras-login-banner-subtitle {
  margin-top:10px;
  color:#3b6389;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.eras-login-card {
  width:min(460px, 100%);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(243,248,253,.98));
  border:1px solid rgba(188,213,235,.92);
  box-shadow:0 24px 70px rgba(0,67,123,.12);
  padding:30px 28px 24px;
  backdrop-filter:blur(6px);
}
.eras-login-card-head { text-align:center; margin-bottom:18px; }
.eras-login-card-head .eras-dashboard-kicker { display:inline-flex; margin-bottom:10px; }
.eras-login-card h2 { margin:0 0 8px; font-size:28px; color:#16314d; }
.eras-login-card p { margin:0; color:#56708a; font-size:14px; line-height:1.6; }
.eras-login-form-wrap .login-form { margin-top:22px; display:grid; gap:14px; }
.eras-login-form-wrap .login-username,
.eras-login-form-wrap .login-password { margin:0; }
.eras-login-form,
.eras-password-form {
  margin-top:22px;
  display:grid;
  gap:14px;
}
.eras-login-form .eras-form-row,
.eras-password-form .eras-form-row {
  margin:0;
}
.eras-login-form-wrap label { display:block; margin:0 0 7px; color:#234765; font-weight:700; font-size:13px; }
.eras-login-form-wrap input[type="text"],
.eras-login-form-wrap input[type="password"] {
  width:100%;
  border:1px solid #bfd7eb;
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.eras-login-form-wrap input[type="text"]:focus,
.eras-login-form-wrap input[type="password"]:focus {
  outline:none;
  border-color:#0073ce;
  box-shadow:0 0 0 3px rgba(0,115,206,.16);
}
.eras-password-field {
  position:relative;
  display:flex;
  align-items:stretch;
}
.eras-password-field input[type="password"],
.eras-password-field input[type="text"] {
  width:100%;
  padding-right:54px;
  height:100%;
  border: 1px solid #bfd7eb;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);

}
.eras-org-app-shell button.eras-password-toggle,
.eras-org-app-shell button.eras-password-toggle:hover,
.eras-org-app-shell button.eras-password-toggle:focus,
.eras-org-app-shell button.eras-password-toggle:active {
  all: unset;
  position:absolute;
  top:19px;
  right:10px;
  width:22px;
  height:22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:#000;
  line-height:1;
  user-select:none;
  min-height:0;
  padding:0;
  margin:0;
  border:0;
  background:none;
  box-shadow:none;
}
.eras-org-app-shell button.eras-password-toggle svg {
  width:22px;
  height:22px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.eras-org-app-shell button.eras-password-toggle:focus-visible {
  outline:2px solid rgba(0,0,0,.25);
  outline-offset:2px;
}
.eras-login-form-wrap .login-remember { margin:2px 0 0; color:#45647f; }
.eras-login-form-wrap .submit { margin-top:4px; }
.eras-login-form-wrap .button-primary {
  width:100%;
  height:46px;
  border-radius:14px;
  background:linear-gradient(180deg, #1981d8, #0073ce);
  box-shadow:0 10px 20px rgba(0,115,206,.22);
  font-weight:800;
  font-size:15px;
}
.eras-login-form-wrap .button-primary:hover { background:linear-gradient(180deg, #106fbe, #005fae); }
.eras-login-links {
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.eras-login-links a {
  color:#0073ce;
  text-decoration:none;
  font-size:13px;
  padding:6px 0;
  border-bottom:1px dotted rgba(0,115,206,.35);
}
.eras-login-remember-row {
  margin-top:-2px;
  color:#45647f;
  font-size:13px;
}
.eras-login-remember-row label {
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.eras-login-remember-row input[type="checkbox"] {
  width:16px;
  height:16px;
  margin:0;
  accent-color:#0073ce;
}
.eras-password-form {
  display:grid;
  gap:14px;
}
.eras-password-form p { margin:0; }
.eras-password-form label {
  display:block;
  margin:0 0 7px;
  color:#234765;
  font-weight:700;
  font-size:13px;
}
.eras-password-form input[type="text"],
.eras-password-form input[type="password"] {
  width:100%;
  border:1px solid #bfd7eb;
  border-radius:12px;
  padding:12px 14px;
  background:#fff;
}
.eras-password-form input[type="text"]:focus,
.eras-password-form input[type="password"]:focus {
  outline:none;
  border-color:#0073ce;
  box-shadow:0 0 0 3px rgba(0,115,206,.16);
}
.eras-dashboard-shell {
  display:grid;
  gap:18px;
}
.eras-dashboard-shell-admin { gap:20px; padding:30px; }
.eras-admin-dashboard-app .eras-family-content { padding:0; }
.eras-admin-dashboard-app .eras-family-topbar { position:sticky; top:0; z-index:10; }
.eras-admin-dashboard-app .eras-admin-section { scroll-margin-top:92px; }
.eras-admin-dashboard-app .eras-family-sidebar {
  background:linear-gradient(180deg, #004f8f, #0073ce);
}
.eras-admin-page-nav a { cursor:pointer; }
.eras-dashboard-hero {
  display:flex;
  gap:18px;
  align-items:stretch;
  justify-content:space-between;
  flex-wrap:wrap;
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(243,248,253,.98));
  border:1px solid #cfe3f4;
  border-radius:22px;
  padding:22px 24px;
  box-shadow:0 18px 40px rgba(0,67,123,.08);
}
.eras-dashboard-hero-copy { flex:1 1 360px; }
.eras-dashboard-kicker {
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  font-weight:800;
  color:#0073ce;
  text-transform:uppercase;
  letter-spacing:.1em;
}
.eras-dashboard-hero-copy h2 {
  margin:8px 0 8px;
  font-size:clamp(28px, 3vw, 40px);
  line-height:1.1;
  color:#16314d;
}
.eras-dashboard-hero-copy p {
  margin:0;
  color:#56708a;
  font-size:14px;
  line-height:1.7;
  max-width:760px;
}
.eras-dashboard-hero-meta {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:stretch;
}
.eras-hero-badge {
  min-width:120px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(180deg, #ffffff, #eef6fd);
  border:1px solid #cfe3f4;
  text-align:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;	
}
.eras-hero-badge strong {
  display:block;
  font-size:30px;
  line-height:1;
  color:#0073ce;
  margin-bottom:6px;
}
.eras-hero-badge span {
  display:block;
  color:#56708a;
  font-size:12px;
  font-weight:700;
}
.eras-dashboard-grid {
  display:grid;
  grid-template-columns:minmax(320px, 420px) minmax(0, 1fr);
  gap:18px;
  align-items:start;
}
.eras-dashboard-card {
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.98));
  border:1px solid #cfe3f4;
  border-radius:22px;
  padding:20px;
  box-shadow:0 18px 40px rgba(0,67,123,.08);
}
.eras-dashboard-card-table { overflow:hidden; }
.eras-dashboard-card-owned { display:flex; flex-direction:column; gap:14px; }
.eras-owned-linkbox,
.eras-upgrade-box {
  background:#fff;
  border:1px solid #cfe3f4;
  border-radius:18px;
  padding:18px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.eras-owned-link-title {
  color:#0073ce;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:8px;
  font-weight:800;
}
.eras-owned-link {
  display:block;
  color:#0c5da1;
  font-size:15px;
  font-weight:700;
  word-break:break-all;
  text-decoration:none;
  margin-bottom:14px;
}
.eras-owned-link-actions { margin-top:8px; }
.eras-owned-mini {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
}
.eras-owned-mini div {
  background:#f7fbff;
  border:1px solid #d7e7f5;
  border-radius:14px;
  padding:12px 14px;
}
.eras-owned-mini span {
  display:block;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#5b7590;
  margin-bottom:6px;
}
.eras-owned-mini strong { color:#16314d; font-size:14px; word-break:break-word; }
.eras-upgrade-box strong { display:block; color:#0073ce; margin-bottom:8px; font-size:16px; }
.eras-upgrade-box p { margin:0; color:#56708a; line-height:1.65; }
.eras-package-list { display:grid; gap:10px; margin-top:16px; }
.eras-package-item {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid #d7e7f5;
  border-radius:12px;
  background:#fff;
}
.eras-package-item strong { display:block; color:#16314d; font-size:14px; }
.eras-package-item span { display:block; margin-top:3px; color:#5b7590; font-size:12px; }
.eras-package-status {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #d7e7f5;
  border-radius:12px;
  background:linear-gradient(180deg, #fff, #f6fbff);
  color:#35526e;
}
.eras-package-status strong { color:#16314d; }
.eras-package-status span {
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:4px 10px;
  border-radius:999px;
  background:#e8f4ff;
  color:#0073ce;
  font-size:12px;
  font-weight:800;
}
.eras-message { position:relative; background:#f3f9ff; border:1px solid #cfe3f4; color:#234765; padding:16px 44px 16px 16px; border-radius:10px; margin-bottom:24px; }
.eras-message-close { position:absolute; top:10px; right:12px; display:grid; place-items:center; width:26px; min-height:0; height:26px; border:0; background:transparent; color:#0073ce; font-size:20px; line-height:1; cursor:pointer; padding:0; box-shadow:none; }
.eras-message-close:hover { color:#005fae; }
.eras-org-app-shell .eras-message-close:hover { transform:none; border:0; background:transparent; box-shadow:none; color:#005fae; }
.eras-message-success { background:#e8f4ff; border-color:#b9d8f2; color:#14518c; }
.eras-org-page { max-width:100%; overflow-x:auto; }
.eras-org-page-chart-only {
  width:100%;
  max-width:100%;
  min-width:0;
  margin:0;
  overflow-x:auto;
  overflow-y:hidden;
}
.eras-org-page-chart-only .eras-org-chart-scroll {
  display:block !important;
  width:100% !important;
  max-width:none !important;
  min-width:100% !important;
  align-items:flex-start !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
}
.eras-org-page-chart-only .eras-org-legacy-header {
    position: relative;
    width: 100% !important;
    max-width: 100% !important;
    display: flex;
    align-items: center;
    justify-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
}
.eras-org-page-chart-only .eras-org-legacy-header-side {
  height:132px !important;
  width:auto !important;
  max-width:100%;
}
.eras-org-page-chart-only .eras-org-legacy-header-center {
  height:132px !important;
  width:auto !important;
  max-width:min(500px, 48vw) !important;
  justify-self:center;
}
.eras-org-page-chart-only .eras-org-chart-stage {
  display:block !important;
  width:100% !important;
  min-width:100% !important;
  max-width:none !important;
  position:relative;
  align-self:flex-start;
}
.eras-org-page-chart-only .eras-org-legacy-side-text-left,
.eras-org-page-chart-only .eras-org-legacy-side-text-right {
  width:100% !important;
  max-width:100% !important;
  display:flex !important;
  flex-direction:column;
  top:50% !important;
  transform:translateY(-50%) !important;
}
.eras-org-page-chart-only .eras-org-legacy-side-text-left {
  left:0 !important;
  align-items:flex-start !important;
  padding-left:18px;
}
.eras-org-page-chart-only .eras-org-legacy-side-text-right {
  right:0 !important;
  align-items:flex-end !important;
  padding-right:18px;
}
.eras-org-page-chart-only .eras-org-connectors {
  display:block !important;
  position:absolute !important;
  left:0 !important;
  top:0 !important;
  right:auto !important;
  bottom:auto !important;
  max-width:none !important;
  min-width:0 !important;
}
.eras-org-page-chart-only .eras-org-chart {
  width:max-content !important;
  min-width:100% !important;
  max-width:none !important;
  --eras-org-card-width:72px;
}
.eras-org-page-chart-only .eras-org-card {
  width:72px !important;
}
.eras-org-page-chart-only .eras-org-chart-scroll::-webkit-scrollbar {
  height:14px;
}
.eras-org-page-chart-only .eras-org-chart-scroll::-webkit-scrollbar-track {
  background:#f0dfbe;
  border-radius:999px;
}
.eras-org-page-chart-only .eras-org-chart-scroll::-webkit-scrollbar-thumb {
  background:linear-gradient(180deg, #c99a4a, #8f5a1c);
  border-radius:999px;
  border:2px solid #f0dfbe;
}
.eras-family-app {
  min-height:100vh;
  display:grid;
  grid-template-columns:280px minmax(0, 1fr);
  background:
    radial-gradient(circle at top left, rgba(0,115,206,.1), rgba(0,115,206,0) 30%),
    linear-gradient(180deg, #f7fbff 0%, #eef6fd 100%);
}
.eras-family-sidebar {
  position:sticky;
  top:0;
  height:100vh;
  overflow:auto;
  padding:18px 16px;
  background:linear-gradient(180deg, rgba(5,90,162,1), rgba(0,115,206,.98));
  color:#fff;
  box-shadow:4px 0 24px rgba(0,67,123,.18);
  display:flex;
  flex-direction:column;
  gap:18px;
}
.eras-family-brand {
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px 12px 10px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.08));
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 12px 24px rgba(0,47,92,.12);
}
.eras-family-brand-mark {
  width:56px;
  height:56px;
  min-width:56px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:#fff;
  border:1px solid rgba(255,255,255,.68);
  color:#fff;
  font-weight:900;
  overflow:hidden;
  box-shadow:0 10px 20px rgba(0,47,92,.18);
}
.eras-family-brand-logo {
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  padding:6px;
}
.eras-family-brand-initial {
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  background:linear-gradient(180deg, #1981d8, #0073ce);
  color:#fff;
  font-size:22px;
  font-weight:900;
  text-transform:uppercase;
}
.eras-family-brand-copy {
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:0;
}
.eras-family-brand-copy strong {
  font-size:15px;
  line-height:1.2;
  color:#fff;
  overflow-wrap:anywhere;
}
.eras-family-brand-copy span {
  font-size:12px;
  line-height:1.35;
  color:rgba(255,255,255,.82);
  overflow-wrap:anywhere;
}
.eras-family-dashboard-link {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:10px 14px;
  border-radius:14px;
  text-decoration:none;
  color:#0073ce;
  background:#fff;
  border:1px solid #d7e7f5;
  font-size:14px;
  font-weight:800;
  box-shadow:0 10px 22px rgba(0,67,123,.1);
}
.eras-family-dashboard-link:hover {
  border-color:#fff;
  box-shadow:0 14px 26px rgba(0,67,123,.16);
}
.eras-family-page-nav {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0;
}
.eras-family-page-nav a {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:12px 14px;
  border-radius:14px;
  text-decoration:none;
  color:rgba(255,255,255,.92);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  font-size:14px;
  font-weight:700;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.eras-family-page-nav a::before {
  content:'';
  width:10px;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.7);
  flex:0 0 auto;
}
.eras-family-page-nav a:hover {
  background:rgba(255,255,255,.14);
  transform:translateX(2px);
  color:#fff;
}
.eras-family-page-nav a.is-active {
  background:#fff;
  color:#0073ce;
  border-color:#fff;
  box-shadow:0 12px 24px rgba(0,0,0,.12);
}
.eras-family-page-nav a.is-active::before { background:#0073ce; }
.eras-family-sidebar-footer {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
  padding:14px 12px 8px;
  font-size:12px;
  color:rgba(255,255,255,.84);
  text-align:center;
}
.eras-family-sidebar-footer a {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:40px;
  padding:10px 14px;
  border-radius:12px;
  color:#0073ce;
  background:#fff;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 10px 22px rgba(0,67,123,.1);
}
.eras-family-sidebar-footer a:hover {
  box-shadow:0 14px 26px rgba(0,67,123,.16);
}
.eras-org-app-shell .eras-family-mobile-menu-toggle {
  display:none;
}
.eras-family-main {
  min-width:0;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}
.eras-family-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px 24px;
  background:rgba(255,255,255,.86);
  border-bottom:1px solid #d7e7f5;
  backdrop-filter:blur(10px);
}
.eras-family-topbar-left h1 {
  margin:4px 0 0;
  color:#16314d;
  font-size:28px;
  line-height:1.15;
}
.eras-family-breadcrumb {
  color:#59748f;
  font-size:12px;
  letter-spacing:.02em;
}
.eras-family-account {
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid #cfe3f4;
  box-shadow:0 8px 20px rgba(0,67,123,.08);
  text-decoration:none;
  color:#16314d;
}
.eras-family-account:hover {
  border-color:#0073ce;
  box-shadow:0 12px 24px rgba(0,115,206,.12);
}
.eras-family-account-avatar img {
  display:block;
  width:36px;
  height:36px;
  border-radius:50%;
}
.eras-family-account-meta {
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.eras-family-account-meta strong { font-size:14px; color:#16314d; }
.eras-family-account-meta em { font-style:normal; font-size:12px; color:#0073ce; }
.eras-family-content {
  flex:1;
  padding:24px;
}
.eras-family-credit {
  text-align:center;
  padding:18px 24px 24px;
  color:#59748f;
  font-size:13px;
}
.eras-family-credit a { color:#0073ce; font-weight:800; text-decoration:none; }
.eras-members-panel { background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.98)); border:1px solid #cfe3f4; border-radius:14px; padding:18px; box-shadow:0 16px 34px rgba(0,67,123,.06); }
.eras-members-head h2 { margin:0 0 6px; color:#16314d; font-size:20px; }
.eras-members-head p { margin:0 0 16px; color:#56708a; font-size:14px; }
.eras-members-grid { display:grid; gap:14px; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); }
.eras-table-wrap { overflow:auto; border:1px solid #cfe3f4; border-radius:14px; background:#fff; box-shadow:0 10px 24px rgba(0,67,123,.06); }
.eras-payment-history-list { display:grid; gap:12px; }
.eras-payment-history-item {
  border:1px solid #cfe3f4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(0,67,123,.06);
  overflow:hidden;
}
.eras-payment-history-item summary {
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:minmax(180px, 1.3fr) auto auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  background:linear-gradient(180deg, #f2f8fd, #e8f2fb);
  color:#16314d;
  font-weight:700;
}
.eras-payment-history-item summary::-webkit-details-marker { display:none; }
.eras-payment-history-item summary span { font-weight:600; color:#4e6b86; }
.eras-payment-history-body { padding:16px; }
.eras-payment-history-grid {
  display:grid;
  gap:12px;
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
.eras-payment-history-grid > div,
.eras-payment-history-full {
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:12px;
  border:1px solid #e1edf7;
  border-radius:12px;
  background:#fafcff;
}
.eras-payment-history-grid span,
.eras-payment-history-full span {
  font-size:12px;
  font-weight:700;
  color:#5b7590;
  text-transform:uppercase;
  letter-spacing:.02em;
}
.eras-payment-history-grid strong,
.eras-payment-history-full strong {
  color:#24384d;
  font-size:14px;
  font-weight:600;
  word-break:break-word;
}
.eras-payment-history-full { grid-column:1 / -1; }
.eras-payment-history-actions { margin-top:14px; display:flex; justify-content:flex-end; }
.eras-family-index-table { width:100%; border-collapse:collapse; }
.eras-family-index-table thead th { background:linear-gradient(180deg, #f2f8fd, #e8f2fb); color:#16314d; font-weight:700; padding:14px 16px; text-align:left; white-space:nowrap; }
.eras-family-index-table tbody td { padding:14px 16px; border-top:1px solid #e0edf8; vertical-align:middle; color:#35526e; }
.eras-family-index-table tbody td[data-label="Hành động"] { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.eras-family-index-table tbody tr:hover { background:#f7fbff; }
.eras-family-index-table .eras-table-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.eras-inline-form { display:flex; align-items:center; gap:8px; margin:0; }
.eras-inline-form select {
  min-width:150px;
  height:38px;
  border:1px solid #bfd7eb;
  border-radius:10px;
  padding:6px 10px;
  background:#fff;
}
.eras-inline-form button{margin:0}
.eras-member-card { background:linear-gradient(180deg, #ffffff, #f7fbff); border:1px solid #cfe3f4; border-radius:14px; padding:12px; box-shadow:0 8px 20px rgba(0,67,123,.05); display:flex; flex-direction:column; gap:10px; }
.eras-member-thumb img { width:72px; height:72px; object-fit:cover; border-radius:10px; display:block; border:0; box-shadow:none; }
.eras-member-meta h3 { margin:0 0 6px; font-size:16px; color:#16314d; }
.eras-member-meta p { margin:0 0 4px; font-size:13px; color:#56708a; }
.eras-member-actions { display:flex; gap:8px; flex-wrap:wrap; }
.eras-member-actions .button { font-size:13px; height:auto; padding:7px 11px; }
.eras-form-grid-2 { display:grid; gap:12px; grid-template-columns:repeat(2, minmax(0, 1fr)); }
.eras-form-grid-2 > div { display:flex; flex-direction:column; gap:6px; }
.eras-org-form textarea,
.eras-org-form input[type="text"],
.eras-org-form input[type="email"],
.eras-org-form input[type="number"],
.eras-org-form input[type="date"],
.eras-org-form select {
  width:100%;
  min-height:40px;
  border:1px solid #bfd7eb;
  border-radius:10px;
  padding:8px 12px;
  background:#fff;
  color:#24384d;
}
.eras-org-form textarea { min-height:90px; resize:vertical; }
.eras-org-form label { display:block; margin:0 0 6px; font-weight:700; color:#16314d; font-size:13px; }
.eras-org-form .eras-form-row { margin:0 0 12px; }
.eras-org-form .eras-form-help { display:block; margin-top:6px; color:#5b7590; font-size:12px; }
.eras-media-status {
  padding:10px 12px;
  border:1px solid #d9e4ee;
  border-radius:10px;
  background:#fafcff;
  color:#334a62;
  font-size:13px;
  line-height:1.6;
}
.eras-media-status a { color:#0073ce; text-decoration:none; font-weight:700; }
.eras-media-status a:hover { text-decoration:underline; }
.eras-person-modal[hidden] { display:none; }
.eras-person-modal {
  position:fixed;
  inset:0;
  z-index:9999;
}
.eras-person-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(12,28,44,.72);
  backdrop-filter:blur(4px);
}
.eras-person-modal-dialog {
  position:relative;
  max-width:980px;
  width:calc(100% - 32px);
  margin:40px auto;
  background:#fff;
  border-radius:20px;
  box-shadow:0 30px 70px rgba(0,0,0,.25);
  overflow:hidden;
}
.eras-person-modal-close {
  position:absolute;
  right:14px;
  top:10px;
  z-index:2;
  border:0;
  background:#f1f5f9;
  color:#16314d;
  width:36px;
  height:36px;
  border-radius:999px;
  font-size:22px;
  line-height:1;
}
.eras-person-modal-scroll {
  max-height:calc(100vh - 80px);
  overflow:auto;
}
.eras-person-modal-layout {
  display:grid;
  grid-template-columns:320px minmax(0, 1fr);
}
.eras-person-modal-media {
  padding:24px;
  border-right:1px solid #e3e3e3;
}
.eras-person-modal-avatar,
.eras-person-modal-video {
  width:100%;
  display:block;
  max-height:420px;
  object-fit:cover;
  border-radius:16px;
  background:#eef5fb;
}
.eras-person-modal-video {
  object-fit:contain;
  background:#000;
}
.eras-person-modal-body {
  padding:24px;
}
.eras-person-modal-info h3 { margin:0 0 8px; color:#16314d; font-size:28px; }
.eras-person-modal-info > p { margin:0 0 18px; color:#5b7590; }
.eras-person-modal-grid {
  display:flex;
  flex-direction:column;
  gap:0;
  border-top:1px solid #d9d9d9;
}
.eras-person-modal-grid > div {
  display:flex;
  align-items:flex-start;
  gap:6px;
  padding:11px 8px;
  border-bottom:1px solid #d9d9d9;
}
.eras-person-modal-grid span {
  flex:0 0 auto;
  color:#3c3c3c;
  font-size:14px;
}
.eras-person-modal-grid strong {
  color:#222;
  font-size:14px;
  font-weight:700;
}
.eras-person-modal-bio {
  margin-top:14px;
  padding:0 8px 0;
  color:#333;
  white-space:pre-wrap;
  line-height:1.7;
}
.eras-person-modal-bio-wrap h4 {
  margin:18px 0 10px;
  color:#222;
  font-size:18px;
  text-align:center;
}
.eras-person-modal-video-wrap { margin-top:18px; }
body.eras-modal-open { overflow:hidden; }
@media (max-width: 860px) {
  .eras-person-modal-layout { grid-template-columns:1fr; }
  .eras-person-modal-media {
    border-right:0;
    border-bottom:1px solid #e3e3e3;
  }
}
.eras-stats-panel {
  display:flex;
  flex-direction:column;
  gap:14px;
  margin:0 0 18px;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg, rgba(0,115,206,.12), rgba(255,255,255,.95) 46%, rgba(0,115,206,.06));
  border:1px solid #b9d7ef;
  box-shadow:0 18px 36px rgba(0,67,123,.08);
}
.eras-stats-panel-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.eras-stats-panel-head h2 {
  margin:0;
  color:#16314d;
  font-size:20px;
  line-height:1.15;
}
.eras-stats-panel-head p {
  margin:6px 0 0;
  color:#5b7590;
  font-size:13px;
}
.eras-stats-panel-badge {
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  background:#0073ce;
  color:#fff;
  font-size:12px;
  font-weight:800;
  box-shadow:0 10px 18px rgba(0,115,206,.16);
}
.eras-stats-bar {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:12px;
}
.eras-export-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin:0 0 14px;
  padding:14px;
  border:1px solid #cfe3f4;
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #f6fbff);
  box-shadow:0 12px 24px rgba(0,67,123,.06);
}
.eras-export-toolbar strong {
  display:block;
  color:#16314d;
  font-size:15px;
}
.eras-export-toolbar span {
  display:block;
  margin-top:3px;
  color:#5b7590;
  font-size:12px;
}
.eras-export-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.eras-export-actions .is-exporting {
  opacity:.68;
  cursor:wait;
}
.eras-stat {
  position:relative;
  overflow:hidden;
  min-height:92px;
  padding:16px 16px 14px;
  border-radius:18px;
  background:linear-gradient(180deg, #fff, #f6fbff);
  border:1px solid #d3e5f4;
  box-shadow:0 10px 22px rgba(0,67,123,.06);
}
.eras-stat::before {
  content:'';
  position:absolute;
  inset:auto -18px -22px auto;
  width:80px;
  height:80px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(0,115,206,.16), rgba(0,115,206,0) 68%);
}
.eras-stat span {
  display:block;
  color:#5b7590;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}
.eras-stat strong {
  display:block;
  margin-top:10px;
  color:#0073ce;
  font-size:28px;
  line-height:1;
  font-weight:900;
}
.eras-org-legacy-header {
  position:relative;
  z-index:4;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:18px;
  padding:12px 0 6px;
  width:100%;
}
.eras-org-legacy-header-side {
  width:192px;
  height:auto;
  object-fit:contain;
}
.eras-org-legacy-header-center {
  width:min(500px, 48vw);
  height:auto;
  object-fit:contain;
}
.eras-org-chart-scroll {
  position:relative;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  padding:18px 14px 26px;
  border-radius:14px;
  background:url('image/main_bg.jpg') center center / cover no-repeat;
  border:1px solid #e0c48a;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  scrollbar-color:#8f5a1c #f0dfbe;
  scrollbar-width:thin;
}
.eras-org-chart-scroll {
  display:flex;
  flex-direction:column;
  align-items:center;
}
.eras-org-chart-stage {
  position:relative;
  /* ensure stage always matches scroll container dimensions to avoid layout issues on small devices */
  width:100%;
  height:100%;
  min-width:0;
  box-sizing:border-box;
  transform-origin:top center;
  display:flex;
  justify-content:center;
  align-items:flex-start;
}
.eras-org-chart-scroll > .eras-org-chart,
.eras-org-chart-scroll > .eras-org-legacy-header,
.eras-org-chart-scroll > .eras-org-legacy-side-text,
.eras-org-chart-scroll > .eras-export-toolbar {
  flex:0 0 auto;
}
.eras-org-chart-scroll::-webkit-scrollbar { height:12px; }
.eras-org-chart-scroll::-webkit-scrollbar-track { background:#f0dfbe; border-radius:999px; }
.eras-org-chart-scroll::-webkit-scrollbar-thumb { background:linear-gradient(180deg, #c99a4a, #8f5a1c); border-radius:999px; border:2px solid #f0dfbe; }
.eras-org-chart { --eras-org-card-width:96px; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:flex-start; gap:12px; min-width:100%; width:100%; margin:0 auto; padding:16px 120px 26px; transform-origin:top center; }

/* Keep chart at desktop (24") width on smaller viewports — avoid auto-scaling. */
@media (max-width:1920px) {
  .eras-org-chart-scroll {
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
  }
  .eras-org-chart-stage,
  .eras-org-chart {
    min-width:1920px !important;
    width:1920px !important;
    max-width:none !important;
    transform:none !important;
  }
}

.eras-org-legacy-side-text {
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  display:flex;
  flex-direction:column;
  gap:12px;
  z-index:2;
  color:#7f1111;
  font-family:'SVN-Hottroof-Semhesta',"Snell Roundhand","Brush Script MT","Segoe Script",cursive;
  font-size:52px;
  font-weight:400;
  line-height:1;
  pointer-events:none;
}
.eras-org-legacy-side-text-left { left:0; }
.eras-org-legacy-side-text-right { right:0; }
.eras-org-legacy-side-text span { display:block; }
.eras-org-connectors {
  display:none;
}
.eras-org-root-group {
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  padding:8px 10px 14px;
  width:100%;
  max-width:none;
  margin:0 auto;
  border-radius:12px;
  background:transparent;
  border:0;
  box-shadow:none;
}
.eras-org-root-row {
  display:flex;
  gap:20px;
  align-items:flex-start;
  justify-content:center;
  flex-wrap:nowrap;
  width:max-content;
  position:relative;
  padding-top:8px;
}
.eras-org-root-row::before { content:none; }
.eras-org-root-couple {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:0;
  padding:0 6px 4px;
  position:relative;
  overflow:visible;
}
.eras-org-couple-head {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:nowrap;
  position:relative;
}
.eras-org-couple-children {
  --eras-org-branch-gap:14px;
  --eras-org-branch-line-offset:-8px;
  display:flex;
  gap:var(--eras-org-branch-gap);
  justify-content:center;
  align-items:flex-start;
  flex-wrap:nowrap;
  margin-top:0;
  padding-top:34px;
  position:relative;
  width:max-content;
  overflow:visible;
}
.eras-org-couple-children::before,
.eras-org-children::before {
  content:none;
}
.eras-org-couple-children::after,
.eras-org-children::after {
  content:'';
  position:absolute;
  top:-1px;
  left:50%;
  width:2px;
  height:19px;
  transform:translateX(-50%);
  border-radius:999px;
  background:#b87923;
  box-shadow:0 1px 0 rgba(255,250,236,.82), 0 0 8px rgba(124,68,16,.16);
  pointer-events:none;
  z-index:3;
}
.eras-org-root-item {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  padding-top:4px;
  overflow:visible;
}
.eras-org-root-item::before { content:none; }
.eras-org-root-label { display:none; }
.eras-org-branch {
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  overflow:visible;
}
.eras-org-branch::before,
.eras-org-couple-children > .eras-org-branch::before,
.eras-org-children > .eras-org-branch::before {
  content:'';
  position:absolute;
  top:-16px;
  left:50%;
  width:2px;
  height:16px;
  transform:translateX(-50%);
  border-radius:999px;
  background:#b87923;
  box-shadow:0 1px 0 rgba(255,250,236,.82), 0 0 8px rgba(124,68,16,.16);
  pointer-events:none;
  z-index:3;
}
.eras-org-couple-children > .eras-org-branch::after,
.eras-org-children > .eras-org-branch::after {
  content:'';
  position:absolute;
  top:-16px;
  left:var(--eras-org-branch-line-offset, -8px);
  right:var(--eras-org-branch-line-offset, -8px);
  height:2px;
  border-radius:999px;
  background:#b87923;
  box-shadow:0 1px 0 rgba(255,250,236,.82), 0 0 8px rgba(124,68,16,.16);
  pointer-events:none;
  z-index:3;
}
.eras-org-couple-children > .eras-org-branch:first-child::after,
.eras-org-children > .eras-org-branch:first-child::after {
  left:50%;
  right:var(--eras-org-branch-line-offset, -8px);
}
.eras-org-couple-children > .eras-org-branch:last-child::after,
.eras-org-children > .eras-org-branch:last-child::after {
  left:var(--eras-org-branch-line-offset, -8px);
  right:50%;
}
.eras-org-couple-children > .eras-org-branch:only-child::after,
.eras-org-children > .eras-org-branch:only-child::after {
  content:none;
}
.eras-org-card { width:96px; border:1px solid #d4ab63; border-radius:0; background:linear-gradient(180deg, #fff7e5 0%, #f3e0b7 100%); box-shadow:0 6px 12px rgba(88,42,12,.08); padding:5px; text-align:center; position:relative; z-index:4; }
.eras-org-card::before {
  content:'';
  position:absolute;
  top:5px;
  left:5px;
  right:5px;
  height:2px;
  border-radius:0;
  background:linear-gradient(90deg, rgba(143,27,27,.08), rgba(185,120,34,.32), rgba(143,27,27,.08));
}
.eras-album-media-card-actions button{margin:0;}
.eras-org-avatar { width:100%; aspect-ratio:1 / 1; height:auto; border-radius:0; background:#fff3d8; display:flex; align-items:center; justify-content:center; overflow:hidden; margin-bottom:4px; border:0; }
.eras-org-avatar img { width:100%; height:100%; object-fit:cover; object-position:center; border:0; box-shadow:none; display:block; }
.eras-org-avatar.upload-avt { width:100%; aspect-ratio:1 / 1; height:auto; padding:0; display:block; position:relative; overflow:hidden; background-size:cover; background-position:center center; background-repeat:no-repeat; }
.eras-org-avatar.upload-avt img { display:none !important; }
.eras-org-avatar.default { width:100%; aspect-ratio:1 / 1; height:auto; color:#9b4a13; font-size:7px; padding:1px; display:flex; align-items:center; justify-content:center; position:relative; }
.eras-org-avatar.default img { width:100%; height:100%; object-fit:cover; display:block; }
.eras-org-name { font-size: 10px;font-weight: 800; color: #4a2611; margin-bottom: 2px; line-height: 1.15; overflow-wrap: break-word;}
.eras-org-position { font-size:9px; color:#8b5a2b; margin:0 0 3px; line-height:1.1; }
.eras-org-edit { margin-top:2px; margin-bottom:0; }
.eras-org-edit a { color:#9a2c1f; text-decoration:none; border-bottom:1px dotted #9a2c1f; font-size:8px; }
.eras-org-spouse-link {
  width:22px;
  height:22px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg, #b72020, #8f1b1b);
  color:#fff7df;
  font-size:13px;
  font-weight:900;
  line-height:1;
  box-shadow:0 8px 18px rgba(143,27,27,.18);
  flex:0 0 auto;
  position:relative;
  z-index:4;
}
.eras-org-arrow { display:none; }
.eras-org-children {
  --eras-org-branch-gap:14px;
  --eras-org-branch-line-offset:-8px;
  display:flex;
  gap:var(--eras-org-branch-gap);
  justify-content:center;
  align-items:flex-start;
  flex-wrap:nowrap;
  margin-top:0;
  padding-top:34px;
  position:relative;
  width:max-content;
  overflow:visible;
}
.eras-org-children > .eras-org-branch {
  padding-top:0;
}
.eras-org-couple-children > .eras-org-branch {
  padding-top:0;
}
.eras-org-form-wrap { background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,250,255,.98)); border:1px solid #cfe3f4; box-shadow:0 18px 40px rgba(0,67,123,.08);     padding: 30px;
    border-radius: 16px;}
.eras-org-form-wrap h2 { margin-top:0; color:#16314d; }
.eras-org-form { display:grid; gap:18px; }
.eras-org-search-form {
  display:grid;
  gap:14px;
  margin:18px 0 22px;
  padding:16px;
  border:1px solid #d9e8f4;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(242,247,252,.98));
  box-shadow:0 10px 22px rgba(0,67,123,.05);
}
.eras-org-search-form .eras-form-row { margin:0; }
.eras-org-search-form .eras-form-actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.eras-org-search-form input[type="search"] {
  width:100%;
  border:1px solid #bfd7eb;
  border-radius:10px;
  padding:12px 14px;
  min-height:50px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.6);
}
.eras-org-search-form input[type="search"]:focus {
  outline:none;
  border-color:#0073ce;
  box-shadow:0 0 0 3px rgba(0,115,206,.16);
}
.eras-org-spouse-row { display:none; }
.eras-form-row { display:flex; flex-direction:column; gap:8px; }
.eras-form-row label { font-weight:700; color:#234765; }
.eras-form-help { display:block; margin-top:4px; color:#5b7590; font-size:12px; line-height:1.5; }
.eras-form-row input[type="text"],
.eras-form-row input[type="email"],
.eras-form-row input[type="number"],
.eras-form-row select,
.eras-form-row input[type="file"],
.eras-form-row textarea { width:100%; border:1px solid #bfd7eb; border-radius:10px; padding:10px 12px; background:#fff; }
.eras-form-row input[type="text"],
.eras-form-row input[type="email"],
.eras-form-row input[type="number"],
.eras-form-row select,
.eras-form-row input[type="file"] { height:50px; }
.eras-form-row textarea { min-height:120px; resize:vertical; line-height:1.5; }
.eras-form-row input[type="text"]:focus,
.eras-form-row input[type="email"]:focus,
.eras-form-row input[type="number"]:focus,
.eras-form-row select:focus,
.eras-form-row textarea:focus {
  outline:none;
  border-color:#0073ce;
  box-shadow:0 0 0 3px rgba(0,115,206,.14);
}
.eras-form-actions { margin-top:8px; }
.eras-album-tabs {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:4px 0 14px;
}
.eras-album-tabs .button {
  width:auto;
  min-width:0;
  padding:8px 12px;
  min-height:34px;
}
.eras-album-picker .eras-album-picker-open {
  width:auto;
  min-width:0;
  align-self:flex-start;
  padding:8px 12px;
  min-height:34px;
  font-size:13px;
}
.eras-album-panels {
  display:grid;
  gap:18px;
}
.eras-album-panel {
  display:block;
  padding:18px;
  border:1px solid #cfe3f4;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(247,250,255,.98));
  box-shadow:0 12px 28px rgba(0,67,123,.06);
}
.eras-album-panel h3 {
  margin:0 0 14px;
  color:#16314d;
  font-size:18px;
}
.eras-album-panel .eras-form-row + .eras-form-row {
  margin-top:16px;
}
.eras-album-picker {
  display:flex;
  flex-direction:column;
  gap:8px;
  margin:0 0 16px;
}
.eras-album-picker-hint {
  color:#5b7590;
  font-size:12px;
  line-height:1.5;
}
.eras-album-popup {
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:20px;
}
.eras-album-popup[hidden] {
  display:none;
}
.eras-album-popup-backdrop {
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.52);
  backdrop-filter:blur(3px);
}
.eras-album-popup-panel {
  position:relative;
  z-index:1;
  width:min(920px, 100%);
  max-height:min(88vh, 900px);
  overflow:auto;
  padding:20px;
  border:1px solid #cfe3f4;
  border-radius:20px;
  background:linear-gradient(180deg, #ffffff, #f6fbff);
  box-shadow:0 28px 80px rgba(0,67,123,.28);
}
.eras-album-popup-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.eras-album-popup-head h4 {
  margin:0;
  color:#16314d;
  font-size:20px;
}
.eras-album-popup-close {
  width:38px;
  height:38px;
  border-radius:999px;
  border:1px solid #cfe3f4;
  background:#fff;
  color:#16314d;
  font-size:22px;
  line-height:1;
}
.eras-album-popup-actions {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.eras-album-media-pool,
.eras-album-media-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(170px, 1fr));
  gap:12px;
  align-items:start;
}
.eras-album-media-pool-item,
.eras-album-media-card {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border:1px solid #d9e8f4;
  border-radius:14px;
  background:#fff;
  box-shadow:0 8px 18px rgba(0,67,123,.05);
}
.eras-album-media-pool-item input[type="checkbox"] {
  margin:0;
}
.eras-album-media-pool-preview,
.eras-album-media-card-preview {
  display:block;
  overflow:hidden;
  border-radius:10px;
  background:#f4f9fd;
  aspect-ratio:16 / 10;
}
.eras-album-media-pool-preview img,
.eras-album-media-card-preview img,
.eras-album-media-pool-preview video,
.eras-album-media-card-preview video {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.eras-album-media-card-preview video {
  background:#0f172a;
}
.eras-album-media-card-actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.eras-album-media-card-actions button {
  margin:0;
}
.eras-album-media-card-actions .button {
  margin:0;
}
@media (max-width: 1024px) {
  .eras-family-app { grid-template-columns:1fr; }
  .eras-family-sidebar {
    position:sticky;
    top:0;
    z-index:40;
    height:auto;
    max-height:100vh;
    overflow:auto;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    align-items:center;
    gap:10px 12px;
    padding:12px;
    border-radius:0 0 18px 18px;
  }
  .eras-family-brand {
    min-width:0;
    padding:8px;
    border-radius:12px;
  }
  .eras-family-brand-mark {
    width:44px;
    height:44px;
    min-width:44px;
    border-radius:10px;
  }
  .eras-family-brand-copy strong {
    font-size:14px;
  }
  .eras-family-brand-copy span {
    font-size:11px;
  }
  .eras-org-app-shell .eras-family-mobile-menu-toggle {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:78px;
    min-height:42px;
    padding:9px 14px;
    border:1px solid rgba(255,255,255,.26);
    border-radius:12px;
    background:#fff;
    color:#0073ce;
    font-size:13px;
    font-weight:900;
    box-shadow:0 10px 22px rgba(0,47,92,.14);
    height: 100%;
    margin:0;
  }
  .eras-org-app-shell .eras-family-mobile-menu-toggle:hover {
    transform:none;
    color:#0073ce;
  }
  .eras-family-page-nav,
  .eras-family-sidebar-footer {
    display:none;
    grid-column:1 / -1;
    width:100%;
  }
  .eras-family-sidebar.is-mobile-open .eras-family-page-nav,
  .eras-family-sidebar.is-mobile-open .eras-family-sidebar-footer {
    display:flex;
  }
  .eras-family-sidebar.is-mobile-open .eras-family-page-nav {
    padding-top:4px;
  }
  .eras-family-sidebar-footer {
    margin-top:0;
    padding:2px 0 0;
  }
  .eras-family-main { min-height:auto; }
  .eras-admin-dashboard-app .eras-family-topbar { position:relative; }
  .eras-admin-dashboard-app .eras-admin-section { scroll-margin-top:16px; }
  .eras-dashboard-shell-admin { padding:18px; }
  .eras-family-topbar { padding:16px 18px; flex-wrap:wrap; }
  .eras-family-content { padding:18px; }
  .eras-family-account { width:100%; justify-content:center; }
  .eras-dashboard-grid { grid-template-columns:1fr; }
  .eras-owned-mini { grid-template-columns:1fr; }
  .eras-login-banner { min-height:120px; border-radius:22px; }
  .eras-login-card { padding:24px 18px 20px; }
  .eras-stats-bar { grid-template-columns:1fr; }
  .eras-export-toolbar { align-items:stretch; flex-direction:column; }
  .eras-export-actions { justify-content:flex-start; }
  .eras-family-page-nav { gap:8px; }
  .eras-family-page-nav a { width:100%; }
}

@media (max-width: 860px) {
  .eras-org-page-chart-only {
    overflow-x:hidden;
  }
  .eras-org-page-chart-only .eras-org-chart-scroll {
    padding:14px 10px 20px;
    border-radius:12px;
  }
  .eras-org-page-chart-only .eras-org-legacy-header {
    gap:10px;
    padding:0 10px;
  }
  .eras-org-page-chart-only .eras-org-legacy-header-side {
    height:96px !important;
  }
  .eras-org-page-chart-only .eras-org-legacy-header-center {
    height:96px !important;
    max-width:min(360px, 42vw) !important;
  }
  .eras-org-page-chart-only .eras-org-chart {
    padding:14px 88px 22px;
    --eras-org-card-width:72px;
  }
  .eras-org-page-chart-only .eras-org-card {
    width:72px !important;
  }
  .eras-org-page-chart-only .eras-org-legacy-side-text {
    font-size:34px;
  }
  .eras-family-index-table thead { display:none; }
  .eras-family-index-table, .eras-family-index-table tbody, .eras-family-index-table tr, .eras-family-index-table td { display:block; width:100%; }
  .eras-family-index-table tbody tr { border-top:1px solid #f0e1d0; padding:10px 0; }
  .eras-family-index-table tbody td { border-top:0; padding:8px 14px; }
  .eras-family-index-table tbody td::before { content: attr(data-label); display:block; font-size:12px; color:#8a6c53; margin-bottom:3px; text-transform:uppercase; letter-spacing:.04em; }
  .eras-album-tabs .button,
  .eras-album-media-card-actions .button {
    width:100%;
  }
  .eras-album-tabs .button {
    width:auto;
  }
  .eras-album-media-pool,
  .eras-album-media-grid {
    grid-template-columns:1fr;
  }
  .eras-album-popup {
    padding:12px;
  }
  .eras-album-popup-panel {
    padding:16px;
    border-radius:16px;
  }
}

@media (max-width: 540px) {
}
