@import url(/white/_ext/x1b01fb7e/bbf40b46130e4d67.css);

:root {
  --bg: #eef1f6;
  --surface: #fff;
  --line: #d4dce8;
  --text: #1a2f52;
  --primary: #0b4da2;
  --primary-dark: #083a7d;
  --accent: #f7941d;
  --accent-dark: #e07d00;
  --ticker: #f7b500;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.container { width: min(1180px, 94vw); margin: 0 auto; }

.special-notice {
  position: relative;
  background: #f4f6f9;
  border-bottom: 1px solid #e3e8ef;
  color: var(--text);
  padding-right: 2.25rem;
}
.special-notice[hidden] { display: none; }
.special-notice-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.5rem 0 0.55rem;
  position: relative;
}
.special-notice-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.12rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7d8da3;
  font-size: 0.95rem;
}
.special-notice-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.5rem;
}
.special-notice-title {
  margin: 0 0 0.12rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: #3c4d66;
}
.special-notice-summary {
  margin: 0 0 0.25rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5c6b80;
}
.special-notice-more {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #5d7eae;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.special-notice-more:hover,
.special-notice-more:focus-visible {
  color: var(--primary);
}
.special-notice-dismiss {
  position: absolute;
  top: 0.35rem;
  right: 0.55rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  background: transparent;
  color: #8b98a8;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.special-notice-dismiss:hover,
.special-notice-dismiss:focus-visible {
  color: #4d5d73;
}

body.special-notice-modal-open,
body.special-notice-lightbox-open {
  overflow: hidden;
}
.special-notice-modal,
.special-notice-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.special-notice-modal[hidden],
.special-notice-lightbox[hidden] {
  display: none;
}
.special-notice-modal-backdrop,
.special-notice-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 24, 0.58);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.special-notice-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 860px);
}
.special-notice-modal-panel {
  background: #fff;
  border-radius: 0.7rem 1.35rem 0.7rem 0.7rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  max-height: min(86vh, 860px);
  overflow: auto;
  padding: 1.4rem 1.5rem 1.6rem;
}
.special-notice-modal-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #1a1a1a;
}
.special-notice-modal-close,
.special-notice-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #d8d8d8;
  border-radius: 50%;
  background: #fff;
  color: #222;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.special-notice-modal-close:hover,
.special-notice-lightbox-close:hover {
  background: #f4f4f4;
}
.special-notice-modal-body {
  color: #222;
  font-size: 0.95rem;
  line-height: 1.6;
}
.special-notice-modal-body p { margin: 0 0 0.85rem; }
.special-notice-modal-body p:last-child { margin-bottom: 0; }
.special-notice-modal-body h2,
.special-notice-modal-body h3,
.special-notice-modal-body h4 {
  margin: 1.15rem 0 0.5rem;
  color: #1a1a1a;
  font-size: 1.05rem;
}
.special-notice-modal-body h2:first-child,
.special-notice-modal-body h3:first-child,
.special-notice-modal-body h4:first-child { margin-top: 0; }
.special-notice-modal-body ul,
.special-notice-modal-body ol { margin: 0 0 0.9rem; padding-left: 1.25rem; }
.special-notice-modal-body a { color: #c41230; }
.special-notice-modal-body a:hover { color: #9b0e26; }
.special-notice-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.7rem 0 1rem;
  font-size: 0.9rem;
  background: #fff;
}
.special-notice-modal-body th,
.special-notice-modal-body td {
  border: 1px solid #cfcfcf;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.special-notice-modal-body th { background: #f6f6f6; font-weight: 700; }
.special-notice-modal-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.75rem auto;
  border-radius: 0.25rem;
  cursor: zoom-in;
}
.special-notice-lightbox { z-index: 260; padding: 1.5rem; }
.special-notice-lightbox-image {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1400px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 0.35rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  cursor: zoom-out;
}
.special-notice-lightbox-close {
  top: 0.85rem;
  right: 0.85rem;
}
.special-notice-admin-form { max-width: none; }
.special-notice-enable {
  font-weight: 700;
  color: var(--primary);
}

@media (max-width: 720px) {
  .special-notice-inner { padding: 0.5rem 0 0.55rem; }
  .special-notice-title { font-size: 0.88rem; }
  .special-notice-summary { font-size: 0.82rem; }
  .special-notice-modal { padding: 0.75rem; align-items: flex-end; }
  .special-notice-modal-dialog { max-height: 92vh; }
  .special-notice-modal-panel {
    max-height: 92vh;
    border-radius: 0.85rem 0.85rem 0.4rem 0.4rem;
    padding: 1.1rem 1rem 1.3rem;
  }
  .special-notice-modal-close { top: 0.35rem; right: 0.35rem; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(11, 77, 162, 0.06);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .75rem 0 .35rem;
}
.brand img { width: min(340px, 72vw); height: auto; display: block; }
@media (min-width: 981px) {
  .brand img { width: min(560px, 52vw); }
  .header-top { padding: 0.5rem 0 0.25rem; }
}
.header-utilities { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; }
.social-links, .utility-icons, .lang-switch { display: flex; align-items: center; gap: .55rem; }
.social-links a {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary);
}
.social-links i { font-size: 26px; line-height: 1; }
.utility-icons a, .utility-icons .lang-switch a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: .75rem;
}
.lang-switch a.active { color: var(--accent); }
.utility-icons { gap: .35rem; }
.utility-icons > * + * {
  border-left: 1px solid #c9d4e4;
  padding-left: .45rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0;
  border-top: 0;
}
.menu-nav { flex: 1; width: 100%; min-width: 0; }
.menu {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: stretch;
  gap: 1px;
  width: 100%;
  background: var(--primary);
}
.menu > li {
  position: relative;
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 0.4rem;
  background: var(--primary);
  overflow: hidden;
}
.menu > li > a {
  display: block;
  width: 100%;
  max-width: 100%;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.74rem, 0.44vw + 0.46rem, 0.90rem);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  padding: .82rem 0.06rem;
  box-sizing: border-box;
}
html[lang="en"] .menu > li > a {
  font-size: clamp(0.64rem, 0.34vw + 0.42rem, 0.80rem);
  white-space: normal;
  line-height: 1.15;
  min-height: 2.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu > li > a sup.mark-reg,
.submenu li a sup.mark-reg {
  font-size: 0.58em;
  line-height: 0;
  position: relative;
  top: -0.45em;
  font-weight: 700;
}
.menu > li > a:hover { color: var(--accent); }
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: .35rem 0;
  z-index: 90;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.submenu .submenu { left: 100%; top: 0; }
.submenu li a {
  display: block;
  padding: .45rem .75rem;
  text-decoration: none;
  color: var(--text);
  font-size: .86rem;
}
.submenu li a:hover { background: #f3f7fd; color: var(--primary); }
.has-submenu:hover > .submenu { display: block; }

/* UAT Logs (dashboard) */
.uat-logs-layout { display: grid; gap: 1rem; }
.uat-logs-toolbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 0.85rem 1rem;
  background: #fff;
}
.uat-logs-toolbar .filter-bar { margin-bottom: 0.45rem; }
.uat-timezone-note {
  margin: 0;
  font-size: 0.84rem;
  color: #5a6775;
}
.uat-logs-form { scroll-margin-top: 5.5rem; }
.uat-logs-list { scroll-margin-top: 5.5rem; }
.uat-logs-list-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
}
.uat-logs-table-wrap {
  max-height: min(62vh, 720px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
}
.uat-logs-table-wrap .admin-table { display: table; overflow: visible; }
.uat-logs-table-wrap thead th {
  position: sticky;
  top: 0;
  background: #f4f7fb;
  z-index: 1;
}
.uat-row-archived { opacity: 0.72; }
.uat-severity {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.uat-severity--low { background: #e8f5e9; color: #2e7d32; }
.uat-severity--medium { background: #fff3e0; color: #e65100; }
.uat-severity--high { background: #ffebee; color: #c62828; }
.uat-attachments { margin-top: 0.75rem; display: grid; gap: 0.45rem; }
.uat-attachment-item { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.uat-delete-form { margin-top: 0.75rem; }
.admin-form input[type="datetime-local"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; font: inherit; }
.admin-form input[type="url"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; font: inherit; }

/* Mega-menu (desktop) */
.main-nav { position: relative; }
.menu > li.has-mega-menu { overflow: visible; position: static; }
.menu > li.has-mega-menu > a.mega-menu-trigger { cursor: default; }
.mega-menu-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  background: #e6ebf2;
  border-top: 1px solid #c5ced9;
  box-shadow: 0 10px 24px rgba(15, 35, 70, 0.12);
}
.mega-menu-inner {
  position: relative;
  padding: 1.35rem 1.25rem 1.6rem;
}
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1.35rem;
}
.mega-menu-item {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.15rem 0.1rem;
}
.mega-menu-item:hover .mega-menu-title { color: var(--accent); }
.mega-menu-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--primary);
}
.mega-menu-rule {
  display: block;
  height: 1px;
  margin: 0.4rem 0 0.45rem;
  background: #8fa0b5;
}
.mega-menu-highlight {
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #4f5d6d;
}
.mega-menu-close {
  position: absolute;
  right: 0.35rem;
  bottom: 0.2rem;
  border: 0;
  background: transparent;
  color: #6a7a8c;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}
.mega-menu-close:hover { color: var(--primary); }
.has-mega-menu.is-open > .mega-menu-panel { display: block; }
.has-mega-menu.is-open > a.mega-menu-trigger { color: var(--accent); }
.has-mega-menu > .submenu-mobile { display: none !important; }
.mega-menu-panel::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.search-form input {
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .35rem .5rem;
  min-width: 120px;
  font: inherit;
}
.search-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: .35rem;
  padding: .35rem .55rem;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: .4rem;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mobile-utility-links,
.mobile-social-bar {
  display: none;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.hero-wrap { background: #fff; }
.hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 700;
  overflow: hidden;
}
.slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  align-items: stretch;
  padding: 0;
}
.slide.active { display: flex; }
.slide-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.slide-caption {
  display: block;
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.5rem);
  padding: .75rem 1rem;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.hero-prev { left: 12px; }
.hero-next { right: 12px; }

.hero-title-strip {
  margin-top: 0;
  padding: .55rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.hero-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .35rem .35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(.82rem, 0.6vw + .55rem, .98rem);
  line-height: 1.2;
  cursor: pointer;
  font-family: inherit;
}
.hero-title-strip .hero-title + .hero-title {
  border-left: 1px solid var(--line);
}
.hero-title.active {
  color: var(--primary);
  font-weight: 900;
}

.hero-title:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 77, 162, 0.25);
}

.news-ticker {
  background: var(--ticker);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 2rem;
  padding: .55rem 1rem;
  animation: ticker-scroll 28s linear infinite;
}
.ticker-track a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem 0;
  justify-items: center;
}
.shortcut-card {
  min-height: 120px;
  width: 100%;
  max-width: 330px;
  border-radius: .35rem;
  padding: .85rem .9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.shortcut-card h2 {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.25;
}
.shortcut-more {
  align-self: flex-start;
  margin-top: .7rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: .35rem;
  padding: .35rem .75rem;
}
.shortcut-members,
.shortcut-planner,
.shortcut-candidacy {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.shortcut-members h2,
.shortcut-planner h2,
.shortcut-candidacy h2 {
  color: #fff;
}
.shortcut-members .shortcut-more,
.shortcut-planner .shortcut-more,
.shortcut-candidacy .shortcut-more {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.shortcut-members:hover,
.shortcut-members:focus-within,
.shortcut-planner:hover,
.shortcut-planner:focus-within,
.shortcut-candidacy:hover,
.shortcut-candidacy:focus-within {
  background: var(--accent);
  border-color: var(--accent);
}
.shortcut-candidacy .shortcut-more {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.what-we-offer {
  background: #e8edf4;
  border-radius: .75rem;
  padding: 1.2rem 0 1.4rem;
  margin-bottom: 1.5rem;
}
.what-we-offer > h2 {
  margin: 0 1rem 1rem;
  color: var(--primary);
  font-size: 1.45rem;
}
.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  padding: 0 1rem;
}
.offer-column {
  background: #fff;
  border: 1px solid #d8e0ec;
  border-radius: .55rem;
  padding: .85rem .75rem 1rem;
}
.offer-column h3 {
  margin: 0 0 .65rem;
  font-size: .98rem;
}
.heading-orange { color: var(--accent); }
.heading-blue { color: var(--primary); }
.offer-column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.offer-column li + li { margin-top: .35rem; }
.offer-column a {
  display: block;
  position: relative;
  padding-left: .85em;
  color: var(--text);
  text-decoration: none;
  font-size: .86rem;
}
.offer-column a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #98a6bc;
}
.offer-column a:hover { color: var(--primary); }

.corporate-members { padding: .5rem 0 2rem; }
.corporate-members h2 {
  color: var(--accent);
  margin: 0 1rem .85rem;
}
.corporate-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .55rem;
  padding: 1rem;
}
.corporate-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: .35rem;
}
.corporate-grid img {
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.sitemap { padding: 1rem 0 2rem; }
.sitemap ul { padding-left: 1.1rem; }
.sitemap a { color: var(--primary); text-decoration: none; }
.sitemap-page {
  padding: 1.25rem 1.1rem 1.5rem;
}
.sitemap-page h1 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.6rem;
}
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}
.sitemap-col h2 {
  margin: 0 0 .55rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #9eacc3;
  font-size: 1.05rem;
  color: #223f74;
}
.sitemap-col h2 a {
  color: inherit;
  text-decoration: none;
}
.sitemap-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sitemap-col li + li { margin-top: .45rem; }
.sitemap-col li a {
  color: #2d4371;
  text-decoration: none;
  font-size: .95rem;
}
.sitemap-col li a::before {
  content: "◦ ";
  color: #6f7f99;
}
.sitemap-col a:hover { color: var(--accent-dark); }

.site-footer {
  background: var(--primary);
  border-top: 0;
  padding: 1rem 0 1.2rem;
  text-align: center;
  color: #fff;
}
.trademark-notice {
  background: #fff;
  color: #6b7890;
  font-size: .70rem;
  line-height: 1.5;
  margin-bottom: .75rem;
  padding: .55rem .7rem;
  border-radius: .45rem;
}
.trademark-notice sup.mark-reg {
  font-size: 0.58em;
  line-height: 0;
  position: relative;
  top: -0.45em;
  font-weight: 700;
}
.footer-mark-image {
  height: 1em;
  width: auto;
  vertical-align: baseline;
}
.copyright {
  font-size: .88rem;
  margin-bottom: .55rem;
  color: #fff;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .55rem;
  flex-wrap: wrap;
  font-size: .88rem;
}
.footer-links a { color: #ffbe63; text-decoration: none; }
.footer-links span { color: rgba(255, 255, 255, 0.72); }

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  font-size: 1.1rem;
  z-index: 95;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.page-main { padding: 1.2rem 0 2rem; }
.page-content h1 { margin-top: 0; color: var(--primary); }
.page-title-with-logo .page-title-logo {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
  max-height: 2em;
  width: auto;
}
.page-banner {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: .55rem;
  margin-bottom: 0.75rem;
}
.page-breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.page-breadcrumbs a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.page-breadcrumbs a:hover { text-decoration: underline; }
.page-breadcrumb-sep { color: #5a6573; }
.page-breadcrumb-current { color: var(--text); font-weight: 600; }
.subpage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1rem 0;
  padding: .85rem;
}
.subpage-nav a { color: var(--primary); font-weight: 600; text-decoration: none; }

.page-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1rem;
}
.page-layout > :only-child {
  grid-column: 1 / -1;
}
.page-layout--single {
  grid-template-columns: minmax(0, 1fr);
}
.page-sidebar { padding: 1rem; position: sticky; top: 5.5rem; }
.page-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.page-sidebar-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.page-sidebar-link {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 0.4rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.35;
}
.page-sidebar-link:hover { background: #f3f7fd; color: var(--primary); }
.page-sidebar-link.active {
  background: #eff4ff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
  padding-left: calc(0.65rem - 3px);
}
.page-layout-main h1 { margin-top: 0; }
.page-body h3 {
  margin: 1.25rem 0 0.5rem;
  color: var(--primary);
  font-size: 1.05rem;
}
.page-body h3:first-child { margin-top: 0; }
.page-body p { margin: 0 0 1rem; line-height: 1.6; }
.page-body p:last-child { margin-bottom: 0; }

.page-body, .content-blocks, .faq-section, .gallery-section, .publication-section { padding: 1rem; margin-bottom: 1rem; }

.faq-section { padding: 1.25rem 1.5rem; }
.faq-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.faq-category-nav-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #eff4ff;
  border: 1px solid #c9d7f7;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}
.faq-category-nav-link:hover { background: #e4edff; }
.faq-category + .faq-category { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-category-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item details { padding: 0; }
.faq-question {
  display: block;
  padding: 1rem 0 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--primary-dark, #0f2d5c);
  cursor: pointer;
  list-style: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  margin-right: 0.35rem;
  color: var(--primary);
  font-weight: 800;
}
details[open] > .faq-question::before { content: "−"; }
.faq-answer {
  margin: 0 0 1.25rem 1.6rem;
  padding: 0.85rem 1rem;
  background: #f6f9fd;
  border-left: 3px solid var(--primary);
  border-radius: 0 0.35rem 0.35rem 0;
  color: #3d4f66;
  line-height: 1.65;
  font-size: 0.97rem;
}
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer img { max-width: 100%; height: auto; border-radius: 0.35rem; margin: 0.5rem 0; }
.faq-answer table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.92rem;
  background: #fff;
}
.faq-answer th,
.faq-answer td {
  border: 1px solid #c5d0e0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.faq-answer th { background: #eef3fb; font-weight: 700; }
.page-body img { max-width: 100%; height: auto; border-radius: 0.35rem; }
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.page-body th,
.page-body td {
  border: 1px solid #c5d0e0;
  padding: 0.5rem 0.65rem;
  text-align: left;
  vertical-align: top;
}
.page-body th { background: #eef3fb; }
.content-block + .content-block { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.content-block img { max-width: 100%; height: auto; border-radius: .45rem; }

.card { background: #fff; border: 1px solid var(--line); border-radius: .7rem; }
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: .45rem;
  border: 1px solid #c9d7f7;
  background: #eff4ff;
  color: var(--primary);
  font-weight: 700;
  padding: .5rem .6rem;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.db-export-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.db-export-actions form { margin: 0; }

/* Audit Logs (dashboard) */
.audit-day-toolbar {
  display: flex;
  align-items: stretch;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: .75rem;
  background: linear-gradient(180deg, #f7f9fd 0%, #eef3fb 100%);
  border: 1px solid #d8e2f4;
  border-radius: .55rem;
}

.audit-day-nav-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  min-width: 7.5rem;
  padding: .55rem .75rem;
  border: 1px solid #c9d7f7;
  border-radius: .45rem;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 42, 88, .05);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.audit-day-nav-btn:hover {
  background: #eff4ff;
  border-color: #9eb8ef;
  transform: translateY(-1px);
}

.audit-day-nav-btn--next {
  text-align: right;
}

.audit-day-nav-btn--disabled {
  opacity: .72;
  cursor: default;
  background: #f4f7fc;
}

.audit-day-nav-btn--disabled:hover {
  transform: none;
  background: #f4f7fc;
  border-color: #c9d7f7;
}

.audit-day-nav-direction {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5b6f93;
}

.audit-day-nav-date {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.audit-day-picker {
  flex: 1 1 18rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .95rem;
  background: #fff;
  border: 1px solid #b8c9eb;
  border-radius: .5rem;
  box-shadow: 0 2px 6px rgba(16, 42, 88, .07);
}

.audit-day-picker-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: .45rem;
  background: #e8f0fc;
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.audit-day-form {
  display: flex;
  align-items: center;
}

.audit-day-label {
  display: grid;
  gap: .2rem;
  margin: 0;
}

.audit-day-label-text {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #5b6f93;
}

.audit-day-form input[type="date"] {
  min-width: 10.5rem;
  border: 1px solid #c9d7f7;
  border-radius: .35rem;
  padding: .42rem .55rem;
  font: inherit;
  font-weight: 700;
  color: var(--primary-dark);
  background: #f9fbff;
}

.audit-day-form input[type="date"]:focus {
  outline: 2px solid rgba(0, 74, 153, .18);
  border-color: var(--primary);
}

.audit-day-meta {
  display: grid;
  gap: .2rem;
  margin-left: auto;
  padding-left: .85rem;
  border-left: 1px solid #e2e9f5;
}

.audit-day-date {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.audit-day-count {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  color: #5b6f93;
}

.audit-day-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: .12rem .5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.2;
}

.audit-logs-page .audit-day-toolbar + .admin-table {
  margin-top: .15rem;
}

.audit-logs-page .sf-page-body {
  grid-template-columns: 1fr;
}

.audit-logs-page .sf-main-column,
.audit-logs-page .admin-content,
.audit-logs-page .audit-logs-card,
.audit-logs-page .audit-logs-table-wrap,
.audit-logs-page .audit-logs-table {
  max-width: none;
  width: 100%;
}

.audit-logs-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .45rem;
}

.audit-logs-table-wrap .audit-logs-table {
  display: table;
  overflow: visible;
}

.audit-logs-table-wrap thead th {
  position: sticky;
  top: 0;
  background: #f4f7fb;
  z-index: 1;
}

.audit-retention-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 105, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.audit-retention-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 45, 105, 0.45);
}

.audit-retention-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.audit-retention-modal-open {
  overflow: hidden;
}

body.audit-retention-modal-open .audit-retention-fab {
  display: none;
}

.audit-retention-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.audit-retention-modal[hidden] {
  display: none;
}

.audit-retention-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}

.audit-retention-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.audit-retention-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.audit-retention-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
}

.audit-retention-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5b6f93;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.audit-retention-modal-body {
  padding: 1rem 1.1rem 1.15rem;
  display: grid;
  gap: 1rem;
  overflow: auto;
}

.audit-retention-form {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #f9fbff;
}

.audit-retention-form--danger {
  background: #fff8f8;
  border-color: #f0d4d4;
}

.audit-retention-label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.audit-retention-label input {
  max-width: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  padding: 0.45rem 0.55rem;
  font: inherit;
}

.audit-retention-warning {
  margin: 0;
  font-size: 0.84rem;
  color: #8a3b3b;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .audit-day-toolbar {
    flex-direction: column;
  }

  .audit-day-nav-btn,
  .audit-day-nav-btn--next {
    width: 100%;
    text-align: left;
  }

  .audit-day-picker {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-day-meta {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
    padding-top: .55rem;
    border-top: 1px solid #e2e9f5;
  }
}

.admin { padding: 2rem 0; }
.admin h1 { margin: 0 0 .8rem; }
.admin-form { display: grid; gap: .6rem; max-width: 820px; padding: 1rem; }
.body-editor-field {
  display: grid;
  gap: 0.45rem;
  margin: 0.25rem 0 0.5rem;
}
.body-editor-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.body-editor-label {
  font-weight: 700;
  color: var(--primary);
}
.body-editor-modes {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  overflow: hidden;
}
.body-editor-mode {
  border: 0;
  background: #fff;
  color: var(--text);
  padding: 0.35rem 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}
.body-editor-mode + .body-editor-mode { border-left: 1px solid var(--line); }
.body-editor-mode.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}
.body-editor-mode[hidden] { display: none; }
.body-editor-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #5a6573;
}
.body-editor-field textarea.rich-body-editor {
  min-height: 12rem;
}
.body-editor-field .tox-tinymce {
  border-radius: 0.35rem;
  border-color: var(--line);
}
.body-editor-field textarea.body-editor-raw-html {
  display: block;
  width: 100%;
  min-height: 420px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  resize: vertical;
}

.pages-admin-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.pages-admin-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.pages-admin-list-head h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}
.pages-admin-list-scroll {
  overflow: auto;
  flex: 1;
}
.pages-admin-table {
  display: table;
  font-size: 0.82rem;
}
.pages-admin-table tr.is-active {
  background: #eff4ff;
}
.pages-admin-slug {
  word-break: break-word;
}
.pages-admin-status {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}
.pages-admin-status--enable {
  background: #d4f4dd;
  color: #1a7a3a;
}
.pages-admin-status--disable {
  background: #fde8e8;
  color: #c0392b;
}
.pages-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 105, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pages-fab:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 45, 105, 0.45);
}
.pages-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
body.pages-modal-open {
  overflow: hidden;
}
body.pages-modal-open .pages-fab {
  display: none;
}
.pages-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.pages-modal-overlay[hidden] {
  display: none;
}
.pages-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.pages-modal {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92dvh, 100%);
  overflow: auto;
  background: #fff;
  border-radius: 0.65rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.pages-form-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pages-admin-actions {
  white-space: nowrap;
}
.pages-admin-delete {
  display: inline;
  margin-left: 0.35rem;
}
.pages-admin-form {
  max-width: none;
  padding: 0;
  overflow: hidden;
}
.pages-form-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.pages-form-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
}
.pages-form-sticky-inner h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary);
}
.pages-form-id {
  color: #5a6573;
  font-weight: 600;
  font-size: 0.9rem;
}
.pages-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 1rem;
}
.pages-form-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: 0 1rem 0.5rem;
}
.pages-form-options label {
  margin: 0;
}
.pages-admin-form .body-editor-field {
  padding: 0 1rem;
}
.pages-form-footer {
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
.faq-admin-form {
  max-width: none;
}
.faq-filter-form {
  margin: 0;
}
.faq-filter-form label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
}
.faq-filter-form select {
  min-width: 12rem;
}
.admin-form input[type="text"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; }
.admin-form input[type="email"],
.admin-form input[type="tel"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; font: inherit; }
.admin-form input[type="password"] { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; }
.admin-form input[type="date"],
.admin-form input[type="number"],
.admin-form select,
.admin-form textarea { width: 100%; border: 1px solid var(--line); border-radius: .35rem; padding: .45rem; font: inherit; }

/* Dashboard shell: left sidebar + main content */
body.admin-dashboard {
  margin: 0;
  background: #eef2f8;
  color: var(--text);
  min-height: 100dvh;
}
.admin-shell {
  display: flex;
  min-height: 100dvh;
}
.admin-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: #0f2d5c;
  color: #e8eef8;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  z-index: 120;
}
.admin-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: 1.1rem 1rem .85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-sidebar-brand {
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
}
.admin-sidebar-close {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .35rem;
}
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: .65rem 0;
  flex: 1;
}
.admin-sidebar-link {
  display: block;
  padding: .62rem 1rem;
  color: rgba(232, 238, 248, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  border-left: 3px solid transparent;
  transition: background .15s ease, color .15s ease;
}
.admin-sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.admin-sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-left-color: var(--accent);
}
.admin-sidebar-link--external {
  color: #ffd9a8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: .35rem;
}
.admin-sidebar-link--logout {
  color: #ffb4b4;
}
.admin-sidebar-foot {
  padding: .85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  gap: .35rem;
}
.admin-sidebar-user {
  font-size: .82rem;
  color: rgba(232, 238, 248, 0.72);
  word-break: break-word;
}
.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 1px 0 rgba(15, 45, 92, 0.04);
}
.admin-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #fff;
  cursor: pointer;
  padding: .45rem;
}
.admin-menu-toggle-bar {
  display: block;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.admin-topbar-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--primary-dark);
  flex: 1;
  min-width: 0;
}
.admin-topbar-logo {
  flex-shrink: 0;
  line-height: 0;
}
.admin-topbar-logo img {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(170px, 38vw);
  object-fit: contain;
}
.admin-content {
  padding: 1.15rem 1.25rem 2rem;
  flex: 1;
}
.admin-content > h1,
.admin-content > h2:first-child {
  display: none;
}
.admin-content .card {
  margin-bottom: 1rem;
}
.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 55, 0.45);
  z-index: 110;
}
.admin-overlay.is-visible {
  display: block;
}

.admin-nav { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; align-items: center; }
.admin-nav a { text-decoration: none; color: var(--primary); font-weight: 600; }
.admin-nav a.active-link { text-decoration: underline; }
.admin-user { margin-left: auto; color: #41557b; font-size: .9rem; }
.logout-link { color: #9b1f1f !important; }
.admin-datasets { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.ok { color: #0f7d32; font-weight: 600; }
.error-text { color: #b42318; font-weight: 600; }
.search-page { padding: 2rem 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .93rem; display: block; overflow-x: auto; }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: .45rem .5rem; text-align: left; vertical-align: top; }
.admin-table form button { margin-left: .4rem; }

.admin-users-page .sf-page-body { grid-template-columns: 1fr; }
.admin-users-page .sf-main-column,
.admin-users-page .admin-content,
.admin-users-page .admin-content > .card { max-width: none; width: 100%; }
.admin-access-card > h2 { margin: 0 0 .35rem; font-size: 1rem; color: var(--primary-dark); }
.admin-access-legend { display: flex; flex-wrap: wrap; gap: .45rem .9rem; margin: 0 0 .8rem; padding: 0; list-style: none; font-size: .78rem; color: #41557b; }
.admin-access-legend span { display: inline-block; min-width: 4.2rem; margin-right: .35rem; padding: .05rem .35rem; border-radius: .25rem; text-align: center; font-weight: 700; }
.admin-access-wrap { overflow: auto; max-height: min(70vh, 52rem); border: 1px solid var(--line); border-radius: .45rem; }
.admin-access-matrix { display: table; width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; }
.admin-access-matrix th,
.admin-access-matrix td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .35rem .4rem; text-align: center; white-space: nowrap; background: #fff; }
.admin-access-matrix th.menu,
.admin-access-matrix td.menu { position: sticky; left: 0; z-index: 1; min-width: 11.5rem; text-align: left; font-weight: 700; background: #fff; box-shadow: 1px 0 0 var(--line); }
.admin-access-matrix thead th { position: sticky; top: 0; z-index: 2; background: #f4f7fb; }
.admin-access-matrix thead th.menu { z-index: 4; }
.admin-access-matrix thead th.account { writing-mode: vertical-rl; transform: rotate(180deg); height: 13rem; vertical-align: bottom; font-weight: 700; min-width: 2.15rem; }
.admin-access-matrix thead th.account.is-inactive { color: #98a2b3; }
.admin-access-matrix tr.group th { position: sticky; left: 0; z-index: 1; background: #e8eef8; color: var(--primary-dark); text-align: left; font-size: .82rem; }
.admin-access-matrix td.is-yes,
.admin-access-legend .is-yes { background: #e7f6ec; color: #0f7d32; }
.admin-access-matrix td.is-view,
.admin-access-legend .is-view { background: #e8f1fb; color: #1d4f91; }
.admin-access-matrix td.is-edit,
.admin-access-legend .is-edit { background: #fff6e5; color: #8a5a00; }
.admin-access-matrix td.is-approve,
.admin-access-legend .is-approve { background: #f3e8ff; color: #6b21a8; }
.admin-access-matrix td.is-hidden,
.admin-access-legend .is-hidden { background: #f3f4f6; color: #6b7280; }
.admin-access-matrix td.is-no,
.admin-access-legend .is-no { background: #fff; color: #98a2b3; }
.admin-access-cell-form { margin: 0; }
.admin-access-matrix select {
  width: 100%;
  min-width: 5.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.admin-dialog {
  border: none;
  border-radius: .5rem;
  padding: 0;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  box-shadow: 0 18px 48px rgba(15, 35, 75, .28);
}

.admin-dialog::backdrop {
  background: rgba(15, 35, 75, .45);
}

.admin-dialog-inner {
  margin: 0;
  padding: 1.2rem 1.35rem 1.15rem;
}

.admin-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-dialog-head h2 {
  margin: 0;
}

.admin-dialog-close {
  border: 0;
  background: transparent;
  color: #41557b;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: .15rem .35rem;
}

.admin-dialog-close:hover {
  color: var(--primary-dark);
}

.dashboard-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  margin-bottom: 1rem;
}

.dashboard-toolbar-note {
  color: #5a6f94;
  font-size: .9rem;
}

.admin-dialog-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.admin-subnav { display: flex; gap: .65rem; flex-wrap: wrap; padding: .85rem 1rem; margin-bottom: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: .5rem; }
.admin-subnav a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: .9rem; padding: .35rem .55rem; border-radius: .35rem; }
.admin-subnav a:hover { background: #eff4ff; }
.admin-subnav a.active-link { background: var(--primary); color: #fff; text-decoration: none; }
.filter-bar { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: .85rem; }
.admin-dept-fieldset {
  margin: .55rem 0;
  padding: .55rem .7rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  min-width: 12rem;
}
.admin-dept-fieldset legend {
  padding: 0 .25rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
}
.admin-dept-checks {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .75rem;
}
.admin-dept-check {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-weight: 500;
  white-space: nowrap;
}
.admin-user-edit-form .admin-dept-fieldset {
  display: block;
  width: 100%;
  max-width: 28rem;
}
.fpc-admin-details { display: grid; grid-template-columns: minmax(160px, 28%) 1fr; gap: .45rem 1rem; margin: 0; }
.fpc-admin-details dt { font-weight: 700; color: var(--primary); margin: 0; }
.fpc-admin-details dd { margin: 0; overflow-wrap: anywhere; }
.fpc-speaker-admin-block { padding: .75rem 0; border-top: 1px solid var(--line); }
.fpc-speaker-admin-block:first-of-type { border-top: 0; padding-top: 0; }
.fpc-json-pre { margin: 0; white-space: pre-wrap; font-size: .85rem; background: #f6f8fc; padding: .5rem; border-radius: .35rem; }
.inline-form { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; margin-right: .3rem; }
.inline-form input[type="text"],
.inline-form input[type="password"],
.inline-form select { max-width: 140px; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: .35rem; }
.submission-email-form input[type="email"] {
  width: 16rem;
  max-width: 100%;
  padding: .3rem .4rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}
.submission-email-cell > [hidden] { display: none !important; }
.copy-path-btn { border: 1px solid var(--line); background: #f9fbff; border-radius: .35rem; padding: .3rem .45rem; }
.sortable-row { cursor: move; }
.drag-hint { color: #5b6f93; font-size: .85rem; }
.gallery-grid { display: grid; gap: .75rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: .5rem; border: 1px solid var(--line); }

.publication-section { padding: 0.5rem 0 1rem; }
.publication-category-bar {
  margin: 1.5rem 0 0.75rem;
  padding: 0.45rem 0.85rem;
  background: #e8f0fc;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.25rem;
}
.publication-category-bar:first-child { margin-top: 0; }
.publication-grid {
  display: grid;
  gap: 1rem 0.75rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0.5rem;
}
.publication-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: center;
  font: inherit;
  color: inherit;
}
.publication-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #d5ddea;
  border-radius: 0.2rem;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.publication-item:hover img,
.publication-item:focus-visible img {
  box-shadow: 0 4px 14px rgba(28, 68, 130, 0.18);
  transform: translateY(-2px);
}
.publication-item:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 0.2rem; }
.publication-label { font-size: 0.82rem; line-height: 1.35; color: #1a1a1a; }

body.publication-modal-open { overflow: hidden; }
.publication-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.publication-modal[hidden] { display: none; }
.publication-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}
.publication-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.publication-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.publication-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary);
}
.publication-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #5b6f93;
  padding: 0 0.25rem;
}
.publication-modal-pdf {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  background: #f4f6fa;
}
.publication-modal-actions {
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
}
/* CMS login (Salesforce-style) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.login-body {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
  color: var(--text);
}

.login-wrap {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.login-brand {
  margin-bottom: 1.5rem;
  text-align: center;
}

.login-logo {
  max-width: min(320px, 78vw);
  width: 100%;
  height: auto;
  display: block;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #c9d4e4;
  border-radius: .35rem;
  padding: 1.75rem 1.5rem 1.25rem;
  box-shadow: 0 2px 4px rgba(26, 47, 82, 0.06);
}

.login-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--primary);
}

.login-error {
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  background: #fef3f2;
  border: 1px solid #fecdca;
  border-radius: .35rem;
  color: #b42318;
  font-size: .9rem;
  font-weight: 600;
}

.login-form {
  display: grid;
  gap: .85rem;
}

.login-field {
  display: grid;
  gap: .35rem;
}

.login-field label {
  font-size: .82rem;
  font-weight: 700;
  color: #334d73;
}

.login-field input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #c9d4e4;
  border-radius: .25rem;
  padding: .55rem .75rem;
  font: inherit;
}

.login-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 77, 162, 0.15);
}

.login-submit {
  width: 100%;
  min-height: 44px;
  margin-top: .35rem;
  border: 0;
  border-radius: .25rem;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-submit:hover { background: var(--primary-dark); }

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .15rem;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.login-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .85rem;
  padding-top: .85rem;
  border-top: 1px solid #e3e8f0;
}

.login-link {
  color: var(--primary);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 600;
}

.login-link:hover { text-decoration: underline; }

.login-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .75rem;
  border: 1px solid var(--primary);
  border-radius: .25rem;
  color: var(--primary);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}

.login-page-footer {
  margin: 1.25rem 0 0;
  color: #5b6f93;
  font-size: .82rem;
  text-align: center;
}

.login-form .captcha-field {
  display: grid;
  gap: .35rem;
}

.login-form .captcha-field label {
  font-size: .82rem;
  font-weight: 700;
  color: #334d73;
}

.login-form .captcha-row {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}

.login-form .captcha-image {
  flex: 0 0 auto;
  width: 140px;
  height: 44px;
  border: 1px solid #c9d4e4;
  border-radius: .25rem;
  object-fit: cover;
}

.login-form .captcha-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #c9d4e4;
  border-radius: .25rem;
  padding: .55rem .75rem;
  font: inherit;
}

.login-form .captcha-field input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(11, 77, 162, 0.15);
}

.login-form .form-hint {
  margin: 0;
  font-size: .78rem;
  color: #5b6f93;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .login-field input { font-size: 16px; }
  .login-form .captcha-field input[type="text"] { font-size: 16px; }

  .hero-title-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    border-top: 0;
    border-bottom: 0;
  }

  .hero-title {
    padding: .5rem .4rem;
    font-size: .9rem;
    border: 1px solid #c9d7f7;
    border-radius: .55rem;
    background: #fff;
  }

  .hero-title-strip .hero-title + .hero-title {
    border-left: 0;
  }
}

@media (max-width: 1100px) {
  .pages-form-grid {
    grid-template-columns: 1fr;
  }
  .pages-fab {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (max-width: 960px) {
  .admin-menu-toggle { display: inline-flex; }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
  .admin-sidebar-close { display: block; }
  .admin-topbar { padding: .75rem 1rem; }
  .admin-content { padding: 1rem; }
  .admin-form { max-width: none; }
  .admin-topbar-logo img { height: 30px; }
}

@media (max-width: 1024px) {
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corporate-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .publication-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sitemap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  body { padding-bottom: 60px; }
  .header-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
  }
  .header-utilities { display: none; }
  .main-nav { position: relative; flex-wrap: wrap; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .menu-nav {
    display: none;
    width: 100%;
    order: 2;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: .5rem;
    padding: .6rem .7rem;
    max-height: calc(100vh - 140px);
    overflow: auto;
  }
  .main-nav.menu-open .menu-nav { display: block; }
  .mobile-utility-links {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
  }
  .mobile-utility-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: .86rem;
    padding: .2rem .3rem;
    border-right: 1px solid #c9d4e4;
    padding-right: .5rem;
    margin-right: .15rem;
  }
  .mobile-utility-links a:last-child {
    border-right: 0;
    margin-right: 0;
    padding-right: .3rem;
  }
  .menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    min-width: 0;
    gap: .7rem;
    background: transparent;
  }
  .menu > li {
    display: block;
    flex: none;
    justify-content: flex-start;
    padding: .45rem .5rem;
    background: #f7f9fd;
    border: 1px solid #d7e0ee;
    border-radius: .45rem;
    overflow: visible;
  }
  .menu > li + li::before { display: none; }
  .menu > li > a {
    display: block;
    text-align: left;
    width: 100%;
    max-width: none;
    white-space: normal;
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
    padding: .15rem 0 .35rem;
    border-bottom: 1px solid #dbe3ef;
    margin-bottom: .2rem;
  }
  .menu > li > a:hover { color: var(--primary); }
  .submenu {
    position: static;
    border: 0;
    padding: 0;
    display: block;
    box-shadow: none;
  }
  .submenu li { margin: .08rem 0; }
  .submenu li a {
    display: block;
    font-size: .85rem;
    line-height: 1.35;
    padding: .18rem 0;
    color: var(--text);
  }
  .submenu .submenu {
    padding-left: .65rem;
    margin-top: .08rem;
    border-left: 1px solid #d7e0ee;
  }
  .mega-menu-panel { display: none !important; }
  .has-mega-menu.is-open > .mega-menu-panel { display: none !important; }
  .has-mega-menu > .submenu-mobile { display: block !important; }
  .hero-slider {
    aspect-ratio: 1920 / 700;
  }
  .slide {
    background-position: top center;
  }
  .shortcut-row { grid-template-columns: 1fr; justify-items: stretch; }
  .shortcut-card { max-width: none; }
  .offer-grid, .admin-datasets, .gallery-grid, .publication-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .corporate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sitemap-grid { grid-template-columns: 1fr; }
  .admin-user { margin-left: 0; width: 100%; }
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
  .mobile-social-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #1f4f98;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }
  .mobile-social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }
  .mobile-social-bar a:nth-child(1) { background: #1877f2; }
  .mobile-social-bar a:nth-child(2) { background: #c13584; }
  .mobile-social-bar a:nth-child(3) { background: #ff0000; }
  .mobile-social-bar a:nth-child(4) { background: #0a66c2; }
  .mobile-social-bar a:last-child { border-right: 0; }
  .mobile-social-bar i {
    font-size: 24px;
    line-height: 1;
    color: #fff;
  }
  .back-to-top {
    bottom: 72px;
  }
}

@media (max-width: 560px) {
  .menu {
    grid-template-columns: 1fr;
  }
}

/* Salesforce-style CMS dashboard */
body.sf-dashboard {
  background: #eef1f6;
}

.sf-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.sf-header {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem 1rem;
  background: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 160;
}

.sf-header-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 0;
}

.sf-app-launcher {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
}

.sf-header-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.sf-app-name {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: .92rem;
  white-space: nowrap;
}

.sf-header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.sf-header-search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #5b6f93;
  font-size: .85rem;
}

.sf-header-search input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .45rem 1rem .45rem 2.2rem;
  font: inherit;
  background: #f7f9fd;
}

.sf-header-actions {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.sf-header-action {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .35rem;
  color: var(--primary);
  text-decoration: none;
}

.sf-header-action:hover { background: #eff4ff; }

.sf-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
}

.sf-app-menu {
  position: fixed;
  top: 58px;
  left: .75rem;
  width: min(420px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 58px - 1rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .5rem;
  box-shadow: 0 12px 32px rgba(15, 45, 92, 0.16);
  z-index: 1200;
}

.sf-app-menu[hidden] {
  display: none !important;
}

.sf-app-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  background: #fff;
}

.sf-app-menu-close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #5b6f93;
  position: relative;
  z-index: 2;
  padding: .35rem .5rem;
  margin: -.35rem -.5rem -.35rem 0;
}

.sf-app-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .65rem;
  padding: .85rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

.sf-app-tile {
  display: grid;
  gap: .35rem;
  justify-items: center;
  text-align: center;
  padding: .75rem .45rem;
  border-radius: .45rem;
  text-decoration: none;
  color: var(--text);
  border: 1px solid transparent;
}

.sf-app-tile:hover { background: #eff4ff; border-color: #d7e3f7; }
.sf-app-tile.is-active { background: #e8f0fc; border-color: #b8cce8; }
.sf-app-tile--external .sf-app-tile-icon { background: #fff3e6; color: var(--accent-dark); }

.sf-app-tile-icon {
  width: 42px;
  height: 42px;
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fc;
  color: var(--primary);
  font-size: 1rem;
}

.sf-app-tile-label {
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.sf-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .15rem .35rem;
  padding: .35rem 1rem 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.sf-tab {
  display: inline-flex;
  align-items: center;
  padding: .65rem .75rem;
  text-decoration: none;
  color: #41557b;
  font-weight: 700;
  font-size: .82rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  margin-bottom: -1px;
}

.sf-tab:hover { color: var(--primary); }
.sf-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.sf-workspace {
  flex: 1;
  padding: 0 1rem 1.5rem;
}

.sf-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 .75rem;
  flex-wrap: wrap;
}

.sf-page-header-main {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  min-width: 0;
}

.sf-record-icon {
  width: 44px;
  height: 44px;
  border-radius: .45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), #ffb04a);
  color: #fff;
  flex-shrink: 0;
}

.sf-page-entity {
  margin: 0;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #5b6f93;
  font-weight: 700;
}

.sf-page-title {
  margin: .15rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--primary-dark);
}

.sf-page-subtitle {
  margin: .35rem 0 0;
  color: #5b6f93;
  font-size: .92rem;
}

.sf-page-header-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .4rem .85rem;
  border-radius: .35rem;
  text-decoration: none;
  font-weight: 700;
  font-size: .82rem;
  border: 1px solid transparent;
}

.sf-btn--primary {
  background: var(--primary);
  color: #fff;
}

.sf-btn--primary:hover { background: var(--primary-dark); }

.sf-btn--neutral {
  background: #fff;
  border-color: var(--line);
  color: var(--primary);
}

.sf-related-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .75rem;
  margin-bottom: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .45rem;
}

.sf-related-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .7rem;
  border: 1px solid #d7e3f7;
  border-radius: .35rem;
  background: #f7f9fd;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
}

.sf-related-link.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.sf-page-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 1rem;
  align-items: start;
}

.sf-workspace--home .sf-page-body {
  grid-template-columns: 1fr;
}

.sf-main-column { min-width: 0; }

.sf-dashboard .admin-content {
  padding: 0;
}

.sf-dashboard .admin-content > .ok,
.sf-dashboard .admin-content > .error-text,
.sf-dashboard .admin-content > .lead {
  margin: 0 0 1rem;
}

.sf-dashboard .admin-content .card:not(.sf-metric-card):not(.sf-home-summary) {
  padding: 1.2rem 1.35rem 1.15rem;
}

.sf-dashboard .admin-content .card:not(.sf-metric-card):not(.sf-home-summary) > h2:first-child {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.sf-dashboard .admin-content .card.admin-form {
  padding: 1.2rem 1.35rem 1.15rem;
}

.sf-dashboard .admin-content .card .admin-form {
  padding: 0;
  max-width: none;
}

.sf-dashboard .admin-content .filter-bar {
  padding: .85rem 1.15rem;
}

.sf-dashboard .admin-content > h1,
.sf-dashboard .admin-content > h2:first-child {
  display: block;
}

.sf-activity-panel { min-width: 0; }

.sf-panel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .45rem;
  overflow: hidden;
}

.sf-panel-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #f7f9fd;
}

.sf-panel-tab {
  padding: .75rem 1.15rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--primary);
  border-bottom: 3px solid var(--primary);
}

.sf-activity-list {
  display: grid;
  gap: 0;
  max-height: 520px;
  overflow: auto;
  padding: .15rem 0;
}

.sf-activity-item {
  padding: .9rem 1.2rem;
  border-bottom: 1px solid #edf1f7;
}

.sf-activity-title {
  margin: 0;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text);
}

.sf-activity-meta {
  margin: .2rem 0 0;
  font-size: .74rem;
  color: #5b6f93;
}

.sf-activity-empty {
  margin: 0;
  padding: 1.2rem 1.25rem;
  color: #5b6f93;
  font-size: .85rem;
}

.sf-activity-manage {
  border-top: 1px solid var(--line);
  padding: .9rem 1.2rem 1rem;
  background: #f7f9fd;
  display: grid;
  gap: .65rem;
}

.sf-activity-manage-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: .5rem;
}

.sf-activity-manage-label {
  display: grid;
  gap: .25rem;
  font-size: .72rem;
  font-weight: 700;
  color: #5b6f93;
  flex: 1 1 8rem;
}

.sf-activity-manage-label input {
  width: 100%;
  min-width: 4rem;
}

.sf-activity-notice {
  margin: 0;
  font-size: .75rem;
  color: #1a7f37;
  font-weight: 700;
}

.sf-btn--sm {
  padding: .35rem .7rem;
  font-size: .72rem;
}

.sf-btn--danger {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.sf-btn--danger:hover {
  background: #a61f1f;
  border-color: #a61f1f;
}

.media-library-page .sf-page-body {
  grid-template-columns: 1fr;
}

.media-library-page .sf-main-column,
.media-library-page .admin-content,
.media-library-page .media-upload-card,
.media-library-page .media-library-card {
  max-width: none;
  width: 100%;
}

.publications-admin-page .sf-page-body {
  grid-template-columns: 1fr;
}

.publications-admin-page .sf-main-column,
.publications-admin-page .admin-content,
.publications-admin-page .publications-reports-card {
  max-width: none;
  width: 100%;
}

.ce-courses-admin-page .sf-page-body {
  grid-template-columns: 1fr;
}

.ce-courses-admin-page .sf-main-column,
.ce-courses-admin-page .admin-content,
.ce-courses-admin-page .ce-courses-card {
  max-width: none;
  width: 100%;
}

.ce-courses-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.ce-courses-table {
  width: 100%;
  display: table;
  overflow: visible;
}

.ce-courses-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 105, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ce-courses-fab:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 45, 105, 0.45);
}

.ce-courses-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.ce-courses-modal-open {
  overflow: hidden;
}

body.ce-courses-modal-open .ce-courses-fab {
  display: none;
}

.ce-courses-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.ce-courses-modal[hidden] {
  display: none;
}

.ce-courses-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}

.ce-courses-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.ce-courses-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.ce-courses-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
}

.ce-courses-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5b6f93;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.ce-courses-modal-body {
  padding: 1rem;
  overflow-y: auto;
}

.ce-courses-modal-body .ce-course-form {
  max-width: none;
  padding: 0;
}

.ce-course-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
}

.ce-course-form-grid label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
}

.ce-course-form-enabled {
  align-content: end;
}

.ce-course-form-span {
  grid-column: 1 / -1;
}

.ce-courses-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (max-width: 700px) {
  .ce-course-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .ce-courses-fab {
    right: 1rem;
    bottom: 1rem;
  }
}

.forms-admin-page .sf-page-body {
  grid-template-columns: 1fr;
}

.forms-admin-page .sf-main-column,
.forms-admin-page .admin-content,
.forms-admin-page .admin-content > .card,
.forms-admin-page .admin-table {
  max-width: none;
  width: 100%;
}

.member-sync-page .sf-page-body {
  grid-template-columns: 1fr;
}

.member-sync-page .sf-main-column,
.member-sync-page .admin-content,
.member-sync-page .admin-content > .card,
.member-sync-page .member-sync-panel,
.member-sync-page .member-sync-table-wrap {
  max-width: none;
  width: 100%;
}

.member-sync-table-wrap {
  overflow-x: auto;
}

.member-sync-page .member-sync-panel .admin-table {
  display: table;
  width: 100%;
  min-width: 100%;
  table-layout: auto;
  overflow: visible;
}

.member-sync-cell-detail {
  min-width: 220px;
}

.member-sync-cell-detail strong {
  display: block;
  margin-bottom: .2rem;
}

.member-sync-detail-line {
  display: block;
  color: #5a6f94;
  font-size: .86rem;
  line-height: 1.45;
}

.member-sync-detail-meta {
  display: block;
  margin-top: .25rem;
  color: #7a8daa;
  font-size: .8rem;
}

.member-sync-detail-link {
  display: inline-block;
  margin-top: .35rem;
  font-size: .86rem;
}

.member-sync-history-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  margin-bottom: 1rem;
}

.member-sync-history-head h2 {
  margin: 0;
}

.member-sync-history-note {
  margin: .2rem 0 0;
  color: #5a6f94;
  font-size: .9rem;
}

.member-sync-status-dialog {
  width: min(640px, calc(100vw - 2rem));
}

.member-sync-status-summary {
  margin: 0 0 .75rem;
  color: #24365c;
  line-height: 1.45;
}

.member-sync-status-summary strong {
  font-weight: 700;
}

.member-sync-status-log {
  list-style: none;
  margin: 0;
  padding: .35rem .7rem;
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #f7f9fd;
  font-size: .88rem;
}

.member-sync-status-log li {
  padding: .28rem 0;
  border-bottom: 1px solid #e4eaf5;
}

.member-sync-status-log li:last-child {
  border-bottom: 0;
}

.member-sync-status-log li.is-ok {
  color: #0f7d32;
}

.member-sync-status-log li.is-fail {
  color: #b42318;
}

.forms-admin-page .filter-bar {
  align-items: center;
}

.forms-admin-page .filter-bar .filter-bar-export {
  margin-left: auto;
}

.forms-admin-page .submission-archive-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 0 0 .75rem;
}

.forms-admin-page .submission-archive-note,
.forms-admin-page .submission-bulk-bar {
  margin: 0;
}

.forms-admin-page .submission-archive-note {
  flex: 1 1 16rem;
  color: #5a6f94;
  font-size: .9rem;
}

.forms-admin-page .submission-bulk-bar {
  display: flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
}

.forms-admin-page tr.submission-archived {
  color: #5a6f94;
}

.forms-admin-page .filter-select-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}

.forms-admin-page .filter-select-label select {
  min-width: 16rem;
  max-width: min(36rem, 100%);
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .45rem .55rem;
  font: inherit;
  background: #fff;
}

.publications-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.publications-reports-table {
  width: 100%;
  display: table;
  overflow: visible;
}

.publications-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 105, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.publications-fab:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 45, 105, 0.45);
}

.publications-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

body.publications-modal-open {
  overflow: hidden;
}

body.publications-modal-open .publications-fab {
  display: none;
}

.publications-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.publications-modal[hidden] {
  display: none;
}

.publications-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}

.publications-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.publications-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.publications-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
}

.publications-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5b6f93;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.publications-modal-body {
  padding: 1rem;
  overflow-y: auto;
}

.publications-modal-body .publications-report-form {
  max-width: none;
  padding: 0;
}

.publications-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

@media (max-width: 1100px) {
  .publications-fab {
    right: 1rem;
    bottom: 1rem;
  }
}

.media-library-card {
  margin-bottom: 1rem;
}

.media-storage-card {
  margin-bottom: 1rem;
}

.media-storage-monitor {
  display: grid;
  gap: .85rem;
}

.media-storage-monitor-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
}

.media-storage-monitor-title {
  margin: 0;
  font-size: 1rem;
}

.media-storage-monitor-meta {
  margin: 0;
  font-size: .82rem;
  color: #5b6f93;
}

.media-storage-monitor-stats {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.media-storage-stat {
  display: grid;
  gap: .2rem;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #f8fafd;
}

.media-storage-stat--editable {
  padding: 0;
  border: 0;
  background: transparent;
}

.media-storage-stat-trigger {
  display: grid;
  gap: .2rem;
  width: 100%;
  padding: .7rem .8rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: #f8fafd;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

.media-storage-stat-trigger:hover,
.media-storage-stat-trigger:focus-visible {
  border-color: #9ec0ef;
  background: #edf4ff;
  box-shadow: 0 0 0 2px rgba(79, 143, 217, .15);
  outline: none;
}

.media-storage-stat-edit-icon {
  margin-left: .2rem;
  font-size: .68rem;
  color: var(--primary);
}

.media-storage-quota-form {
  display: grid;
  gap: .65rem;
}

.media-storage-quota-form label {
  display: grid;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 700;
}

.media-storage-quota-form input[type="number"] {
  font: inherit;
  padding: .5rem .65rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
}

.media-storage-quota-modal .media-storage-quota-form {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.media-storage-stat-label {
  font-size: .74rem;
  font-weight: 700;
  color: #5b6f93;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.media-storage-stat-value {
  font-size: 1rem;
  color: #1f3558;
}

.media-storage-monitor-bar {
  height: .65rem;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}

.media-storage-monitor-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8fd9, #6aa8ea);
  transition: width .2s ease;
}

.media-storage-monitor-bar-fill.is-caution {
  background: linear-gradient(90deg, #f0a202, #f7be3d);
}

.media-storage-monitor-bar-fill.is-warning,
.media-storage-monitor-bar-fill.is-full {
  background: linear-gradient(90deg, #d64545, #ef6a6a);
}

.media-storage-monitor-caption {
  margin: 0;
  font-size: .82rem;
  color: #41557b;
}

.media-storage-monitor-alert {
  color: #b42318;
  font-weight: 700;
}

.media-fab-group {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.media-upload-fab,
.media-new-folder-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 45, 105, 0.35);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.media-upload-fab {
  background: var(--primary);
}

.media-new-folder-fab {
  background: #2e7d5a;
}

.media-upload-fab:hover,
.media-new-folder-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(15, 45, 105, 0.45);
}

.media-upload-fab:focus-visible,
.media-new-folder-fab:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.media-new-folder-fab[hidden] {
  display: none;
}

body.media-upload-modal-open {
  overflow: hidden;
}

body.media-upload-modal-open .media-fab-group {
  display: none;
}

.media-upload-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.media-upload-modal[hidden] {
  display: none;
}

.media-upload-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}

.media-upload-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.media-upload-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}

.media-upload-modal-title {
  margin: 0;
  font-size: 1rem;
  color: var(--primary-dark);
}

.media-upload-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5b6f93;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.media-upload-modal-body {
  padding: 1rem;
}

.media-upload-modal-folder {
  margin: 0 0 0.75rem;
  color: #41557b;
  font-size: 0.9rem;
}

.media-upload-form {
  display: grid;
  gap: .85rem;
}

.media-new-folder-form {
  display: grid;
  gap: .85rem;
}

.media-new-folder-form label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  font-size: .88rem;
}

.media-new-folder-form input[type="text"] {
  padding: .5rem .6rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  font: inherit;
}

.media-upload-field select,
.media-folder-filter select {
  min-width: 10rem;
  padding: .45rem .55rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fff;
}

.media-upload-drop {
  display: grid;
  place-items: center;
  min-height: 8rem;
  padding: 1.25rem;
  border: 2px dashed #c5d2ea;
  border-radius: .55rem;
  background: #f8fbff;
  cursor: pointer;
  text-align: center;
}

.media-upload-drop.is-dragover {
  border-color: var(--primary);
  background: #edf3ff;
}

.media-upload-drop input[type="file"] {
  width: 100%;
  max-width: 28rem;
}

.media-upload-drop-label {
  display: block;
  margin-bottom: .5rem;
  color: #5b6f93;
  font-size: .9rem;
  font-weight: 600;
}

.media-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: flex-end;
}

.media-upload-selected {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  color: #41557b;
  flex: 1 1 100%;
  display: grid;
  gap: .35rem;
}

.media-upload-selected-note {
  color: #5b6f93;
  font-size: .78rem;
}

.media-upload-status {
  margin: 0;
  font-size: .82rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.media-upload-drop.is-busy {
  opacity: .65;
  pointer-events: none;
}

.media-toolbar {
  display: grid;
  gap: .85rem;
  margin-bottom: 1rem;
}

.media-toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
}

.media-toolbar-search {
  gap: .65rem;
}

.media-view-toggle,
.media-kind-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.media-view-btn,
.media-filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #41557b;
  border-radius: .35rem;
  padding: .4rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.media-view-btn.is-active,
.media-filter-btn.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.media-filter-btn span {
  opacity: .82;
  margin-left: .2rem;
}

.media-search-label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 1 1 14rem;
  padding: .35rem .55rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  background: #fff;
}

.media-search-label input {
  border: 0;
  width: 100%;
  min-width: 10rem;
  padding: .2rem 0;
  background: transparent;
}

.media-results-meta {
  margin: 0 0 .85rem;
  color: #5b6f93;
  font-size: .85rem;
}

.media-empty {
  margin: 0;
  color: #5b6f93;
}

.media-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.media-explorer {
  border: 1px solid var(--line);
  border-radius: .55rem;
  overflow: hidden;
  background: #fff;
}

.media-explorer-location {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: .75rem;
  padding: .65rem .85rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f8fafd;
  font-size: .84rem;
}

.media-explorer-location-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}

.media-explorer-location-link:hover,
.media-explorer-location-link.is-active {
  text-decoration: underline;
}

.media-explorer-location-current {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: #41557b;
  font-weight: 700;
}

.media-explorer-location-sep {
  color: #8a9bb8;
}

.media-explorer-head,
.media-explorer-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) minmax(150px, 1.1fr) minmax(72px, .55fr) minmax(120px, .85fr) minmax(150px, auto);
  align-items: center;
  gap: .75rem;
  padding: .5rem .85rem;
}

.media-explorer-head {
  background: #f4f6fa;
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  color: #5b6f93;
}

.media-explorer-sort {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.media-explorer-sort:hover {
  color: var(--primary);
}

.media-explorer-sort.is-active {
  color: var(--primary-dark);
}

.media-explorer-sort-icon {
  font-size: .68rem;
  opacity: .85;
}

.media-explorer-sort:not(.is-active) .media-explorer-sort-icon {
  opacity: .35;
}

.media-explorer-col-size.media-explorer-sort {
  justify-content: flex-end;
  text-align: right;
}

.media-explorer-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eef2f8;
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
}

.media-explorer-row:hover {
  background: #f3f7fd;
}

.media-explorer-row--folder {
  cursor: pointer;
  font-weight: 600;
}

.media-explorer-row--folder:hover {
  background: #edf3ff;
}

.media-explorer-row--file[hidden],
.media-explorer-row--folder[hidden] {
  display: none !important;
}

.media-explorer-name {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-width: 0;
}

.media-explorer-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-explorer-folder-icon {
  color: #4f8fd9;
  font-size: .95rem;
}

.media-explorer-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  font-size: .95rem;
}

.media-explorer-icon img {
  width: 22px;
  height: 22px;
  object-fit: cover;
  border-radius: .2rem;
  border: 1px solid var(--line);
}

.media-explorer-icon--pdf { color: #c62828; }
.media-explorer-icon--document { color: #1565c0; }
.media-explorer-icon--video { color: #6a1b9a; }
.media-explorer-icon--other { color: #5b6f93; }

.media-explorer-col-date,
.media-explorer-col-size,
.media-explorer-col-kind {
  color: #41557b;
  font-size: .82rem;
}

.media-explorer-col-size {
  text-align: right;
}

.media-explorer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .12s ease;
}

.media-explorer-row--file:hover .media-explorer-actions,
.media-explorer-row--file:focus-within .media-explorer-actions,
.media-explorer-row--folder:hover .media-explorer-actions,
.media-explorer-row--folder:focus-within .media-explorer-actions {
  opacity: 1;
}

.media-delete-folder-form {
  display: inline;
}

.media-explorer.media-view-panel.is-active {
  display: block;
}

.media-view-panel[hidden],
.media-view-panel:not(.is-active) {
  display: none !important;
}

.media-grid.media-view-panel.is-active {
  display: grid;
}

.media-card {
  border: 1px solid var(--line);
  border-radius: .55rem;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.media-card-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #eef2f8;
  overflow: hidden;
}

.media-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-card-preview i {
  font-size: 2.4rem;
}

.media-card-preview--pdf { color: #c62828; background: #fff4f4; }
.media-card-preview--document { color: #1565c0; background: #f2f7ff; }
.media-card-preview--video { color: #6a1b9a; background: #f8f1fc; }
.media-card-preview--other { color: #5b6f93; background: #f4f6fa; }
.media-card-preview--folder { color: #4f8fd9; background: #edf3ff; }

.media-card--folder {
  cursor: pointer;
}

.media-card--folder:hover {
  border-color: #b8cff0;
  box-shadow: 0 2px 8px rgba(79, 143, 217, .12);
}

.media-card--folder .media-card-preview i {
  font-size: 3rem;
}

.media-card[hidden],
.media-card--folder[hidden] {
  display: none !important;
}

.media-card-ext {
  display: block;
  margin-top: .35rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.media-card-body {
  display: grid;
  gap: .45rem;
  padding: .8rem .85rem .9rem;
}

.media-card-name {
  margin: 0;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-card-meta {
  margin: 0;
  font-size: .76rem;
  color: #5b6f93;
}

.media-folder-tag {
  display: inline-block;
  margin-right: .25rem;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: #edf2fb;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 800;
  text-transform: lowercase;
}

.media-card-path,
.media-table-path {
  display: block;
  font-size: .72rem;
  color: #41557b;
  word-break: break-all;
}

.media-card-actions,
.media-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
}

.media-open-link {
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.media-more-actions summary {
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  color: #5b6f93;
}

.media-more-actions-panel {
  display: grid;
  gap: .55rem;
  margin-top: .55rem;
  padding-top: .55rem;
  border-top: 1px solid var(--line);
}

.media-replace-form,
.media-delete-form {
  display: grid;
  gap: .4rem;
}

.media-replace-label {
  display: grid;
  gap: .25rem;
  font-size: .78rem;
  font-weight: 700;
}

.media-delete-btn {
  color: #b42318;
}

.media-list-wrap {
  overflow-x: auto;
}

.media-table {
  display: table;
}

.media-table .media-table-preview img {
  width: 56px;
  height: 42px;
  object-fit: cover;
  border-radius: .35rem;
  border: 1px solid var(--line);
}

.media-table-icon {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 42px;
  border-radius: .35rem;
  border: 1px solid var(--line);
  font-size: .68rem;
  font-weight: 800;
}

.media-table-icon--pdf { background: #fff4f4; color: #c62828; }
.media-table-icon--document { background: #f2f7ff; color: #1565c0; }
.media-table-icon--video { background: #f8f1fc; color: #6a1b9a; }
.media-table-icon--other { background: #f4f6fa; color: #5b6f93; }

@media (max-width: 720px) {
  .media-toolbar-search {
    width: 100%;
  }

  .media-search-label,
  .media-folder-filter,
  .media-folder-filter select {
    width: 100%;
  }

  .media-explorer-head,
  .media-explorer-row {
    grid-template-columns: minmax(0, 1.8fr) minmax(88px, .8fr) minmax(72px, .55fr);
  }

  .media-explorer-col-kind,
  .media-explorer-col-actions {
    display: none;
  }

  .media-explorer-actions {
    opacity: 1;
  }
}

.sf-home-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.sf-metric-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.2rem 1.35rem 1.15rem;
}

.sf-metric-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.sf-metric-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem 1.15rem;
  align-items: center;
  flex: 1;
  padding: 0 .15rem;
}

.sf-donut {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  position: relative;
}

.sf-donut-hole {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .2rem;
}

.sf-donut-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.sf-donut-label {
  font-size: .62rem;
  color: #5b6f93;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.sf-metric-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}

.sf-metric-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: .45rem;
  align-items: center;
  font-size: .78rem;
}

.sf-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sf-metric-action {
  margin-top: 1rem;
  width: 100%;
}

.sf-home-summary {
  padding: 1.2rem 1.35rem 1.15rem;
}

.sf-home-summary h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--primary-dark);
}

.sf-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .75rem;
}

.sf-summary-item {
  display: grid;
  gap: .15rem;
  padding: .75rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: #f7f9fd;
  text-align: center;
}

.sf-summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}

.sf-summary-label {
  font-size: .74rem;
  color: #5b6f93;
  font-weight: 700;
}

.sf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 30, 55, 0.35);
  z-index: 1100;
  pointer-events: none;
}

.sf-overlay[hidden] {
  display: none !important;
}

.sf-overlay.is-visible { display: block; }

@media (max-width: 1200px) {
  .sf-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .sf-app-name { display: none; }
  .sf-page-body { grid-template-columns: 1fr; }
  .sf-header-search { max-width: none; }
  .sf-tab {
    padding: .55rem .6rem;
    font-size: .78rem;
  }
}

@media (max-width: 720px) {
  .sf-home-grid,
  .sf-summary-grid,
  .sf-app-menu-grid { grid-template-columns: 1fr; }
  .sf-metric-body { grid-template-columns: 1fr; justify-items: center; }
  .sf-page-header-actions { width: 100%; }
  .sf-page-header-actions .sf-btn { flex: 1; }
}

/* Sticky footer on short pages */
.site-sticky-footer {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-sticky-footer .page-main,
.site-sticky-footer > main {
  flex: 1 0 auto;
}
.site-sticky-footer .site-footer {
  margin-top: auto;
}

/* Member auth (login / forgot password within site layout) */
.member-auth-panel {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.member-auth-panel h1 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
}

.member-login-upgrade {
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  background: #fff3e0;
  border: 1px solid #f5c48a;
  border-radius: .65rem;
  color: #e65100;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.5;
}

.member-login-upgrade p {
  margin: 0;
}

.member-login-upgrade a {
  color: inherit;
  text-decoration: underline;
}

.member-login-upgrade .member-reset-guide a {
  color: var(--primary);
  text-decoration: none;
}

.member-login-paused {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin: 0;
  padding: 1rem 1.05rem;
  background: #fff8ef;
  border: 1px solid #f0d3a8;
  border-radius: .65rem;
  color: #6a3d08;
}

.member-login-paused-icons {
  display: flex;
  flex: 0 0 auto;
  gap: .45rem;
  margin-top: .1rem;
  color: #c2410c;
  font-size: 1.35rem;
  line-height: 1;
}

.member-login-paused p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
}

.member-login-busy-next {
  margin-top: .35rem;
  font-size: .95rem;
  font-weight: 600;
}

.member-login-busy-next a {
  color: inherit;
}

#member-login-busy-seconds {
  font-variant-numeric: tabular-nums;
}

.member-auth-panel .admin-form {
  max-width: none;
  margin: 0;
}

.member-auth-panel .login-error {
  margin: 0 0 1rem;
}

.member-login-form label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
}

.member-login-hint {
  font-weight: 500;
  font-size: .85rem;
  line-height: 1.45;
  color: #5b6f93;
}

.member-auth-links {
  margin: 1rem 0 0;
}

.member-auth-links a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.member-auth-links a + a {
  margin-left: 1rem;
}

.member-auth-links--split {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.member-auth-links--split a + a {
  margin-left: 0;
}

.member-reset-guide {
  display: flex;
  justify-content: flex-end;
  margin-top: .75rem;
}

.member-auth-panel--wide {
  max-width: 640px;
}

body.member-login-processing-open {
  overflow: hidden;
}

.member-login-processing {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.member-login-processing[hidden] {
  display: none;
}

.member-login-processing-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 24, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.member-login-processing-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 1.6rem 1.5rem 1.45rem;
  text-align: center;
}

.member-login-processing-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 3px solid #dbe4f3;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: member-login-spin 0.8s linear infinite;
}

@keyframes member-login-spin {
  to { transform: rotate(360deg); }
}

.member-login-processing-dialog h2 {
  margin: 0 0 0.55rem;
  color: var(--primary);
  font-size: 1.35rem;
  line-height: 1.3;
}

.member-login-processing-dialog p {
  margin: 0;
  line-height: 1.5;
}

.member-login-processing-time {
  margin-top: 1.1rem !important;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.member-login-processing-time-label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #5b6f93;
}

.member-login-processing-timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1.1;
}

.member-register-form label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
}

.member-register-form .member-register-pair {
  display: grid;
  gap: .75rem;
}

@media (min-width: 640px) {
  .member-register-form .member-register-pair {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.member-register-form input.is-invalid,
.member-register-form select.is-invalid,
.member-register-captcha.is-invalid .captcha-row input {
  border-color: #c41230;
  box-shadow: 0 0 0 1px #c41230;
}

.member-register-form input.is-invalid:focus,
.member-register-form select.is-invalid:focus,
.member-register-captcha.is-invalid .captcha-row input:focus {
  border-color: #c41230;
  box-shadow: 0 0 0 2px rgba(196, 18, 48, .18);
}

.member-register-field-error {
  display: block;
  color: #c41230;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  margin: .2rem 0 0;
}

.member-register-field-error[hidden] {
  display: none;
}

.member-password-modal-open {
  overflow: hidden;
}

.member-password-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 18, 32, .58);
}

.member-password-modal-dialog {
  width: min(440px, 100%);
  background: #fff;
  border-radius: .85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
  padding: 1.35rem 1.35rem 1.2rem;
}

.member-password-modal-dialog h2 {
  margin: 0 0 .6rem;
  color: var(--primary);
  font-size: 1.35rem;
}

.member-password-modal-dialog p {
  margin: 0 0 .9rem;
}

.member-password-wrap {
  position: relative;
  display: block;
}

.member-password-wrap input[type="password"],
.member-password-wrap input[type="text"] {
  width: 100%;
  padding-right: 2.6rem;
  box-sizing: border-box;
}

.member-password-toggle {
  position: absolute;
  top: 50%;
  right: .3rem;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5b6f93;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.member-password-toggle:hover,
.member-password-toggle:focus-visible,
.member-password-toggle.is-visible {
  color: var(--primary);
}

.member-password-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-radius: .3rem;
}

.member-password-rules {
  list-style: none;
  margin: .15rem 0 .95rem;
  padding: 0;
  font-size: .86rem;
  line-height: 1.4;
}

.member-password-rules li {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  margin: .22rem 0;
  color: #6b7280;
}

.member-password-rule-mark {
  flex: 0 0 auto;
  width: 1rem;
  text-align: center;
  font-weight: 700;
}

.member-password-rule-mark::before {
  content: "○";
}

.member-password-rules li.is-met {
  color: #157a3a;
}

.member-password-rules li.is-met .member-password-rule-mark::before {
  content: "✓";
}

.member-password-rules li.is-unmet {
  color: #b42318;
}

.member-password-rules li.is-unmet .member-password-rule-mark::before {
  content: "×";
}

.admin-form .captcha-field {
  display: grid;
  gap: .35rem;
}

.admin-form .captcha-field label {
  font-weight: 600;
  color: var(--text);
}

.admin-form .captcha-row {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}

.admin-form .captcha-image {
  flex: 0 0 auto;
  width: 140px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: .25rem;
  object-fit: cover;
}

.admin-form .captcha-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-form .form-hint {
  margin: 0;
}

/* Member area (post-login) */
.form-hint { font-size: .85rem; color: #5b6f93; margin: .25rem 0 .75rem; line-height: 1.4; }
.member-area-top { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: .85rem; }
.member-area-welcome { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-bottom: 0; }
.member-logout-link {
  color: #b42318;
  font-weight: 900;
  text-decoration: none;
  background: #fff1f1;
  border: 1px solid #f0c7c7;
  border-radius: .5rem;
  padding: .4rem .65rem;
  line-height: 1;
}
.member-logout-link:hover,
.member-logout-link:focus-visible {
  background: #fdecea;
  border-color: #f5b4b4;
}
.member-nav { display: flex; flex-wrap: wrap; gap: .45rem .65rem; }
.member-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem .75rem;
  border-radius: .5rem;
  background: #fff;
  border: 1px solid #d7e0ee;
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
  font-size: .88rem;
  line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.member-nav a:hover,
.member-nav a:focus-visible { background: #f3f7fd; border-color: #b8cce8; }
.member-nav a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.member-nav a[href*="logout.php"] {
  background: #fff1f1;
  border-color: #f0c7c7;
  color: #b42318;
}
.member-nav a[href*="logout.php"]:hover,
.member-nav a[href*="logout.php"]:focus-visible {
  background: #fdecea;
  border-color: #f5b4b4;
}
.member-home-grid { display: grid; grid-template-columns: 320px 1fr; gap: 1.6rem; align-items: start; }
.member-card-section { display: flex; flex-direction: column; gap: .85rem; }
.membership-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: inherit;
}
.membership-card:hover .membership-card-inner,
.membership-card:focus-visible .membership-card-inner {
  border-color: #1d4585;
  box-shadow: 0 12px 28px rgba(29, 69, 133, .18);
}
.membership-card:focus-visible { outline: none; }
.membership-card:focus-visible .membership-card-inner {
  outline: 3px solid rgba(29, 69, 133, .25);
  outline-offset: 2px;
}
.membership-card-inner {
  background: #fff;
  border: 2px solid #c5d4e8;
  border-radius: .85rem;
  padding: 1.2rem 1.1rem 1rem;
  min-height: 380px;
  box-shadow: 0 8px 24px rgba(11, 77, 162, .1);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.membership-card-inner--modal {
  min-height: 0;
  max-width: 400px;
  margin: 0 auto;
  border-color: #1d4585;
  padding: 1.4rem 1.2rem 1.1rem;
}
.membership-card-inner--nonmember {
  background: #fff;
  border-color: #f7941d;
  box-shadow: 0 8px 24px rgba(247, 148, 29, .16);
  padding-bottom: 0;
  overflow: hidden;
}
.membership-card:hover .membership-card-inner--nonmember,
.membership-card:focus-visible .membership-card-inner--nonmember {
  border-color: #e07d00;
  box-shadow: 0 12px 28px rgba(224, 125, 0, .22);
}
.membership-card:focus-visible .membership-card-inner--nonmember {
  outline-color: rgba(247, 148, 29, .35);
}
.membership-card-inner--nonmember.membership-card-inner--modal {
  border-color: #f7941d;
}
.membership-card-type-bar {
  align-self: stretch;
  width: calc(100% + 2.2rem);
  margin: auto -1.1rem 0;
  padding: .72rem 1.1rem;
  background: #f7941d;
  color: #fff;
  text-align: center;
  font-weight: 800;
  font-size: .92rem;
  line-height: 1.3;
  letter-spacing: .02em;
}
.membership-card-inner--modal .membership-card-type-bar {
  width: calc(100% + 2.4rem);
  margin-left: -1.2rem;
  margin-right: -1.2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
}
.membership-card-modal[data-non-member="1"] .membership-card-photo {
  box-shadow: 0 8px 24px rgba(247, 148, 29, .18);
}
.membership-card-logo {
  width: min(180px, 82%);
  height: auto;
  display: block;
  margin: 0 auto .35rem;
}
.membership-card-logo--modal { width: min(220px, 86%); margin-bottom: .4rem; }
.membership-card-heading {
  margin: 0 0 .55rem;
  width: 100%;
  text-align: center;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--primary);
}
.membership-card-inner--modal .membership-card-heading {
  font-size: 1.05rem;
  margin-bottom: .7rem;
}
.membership-card-name,
.membership-card-chinese,
.membership-card-id,
.membership-card-id-label,
.membership-card-expiry {
  text-align: center;
  margin: .18rem 0;
  width: 100%;
}
.membership-card-name { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.membership-card-chinese { font-size: 1rem; color: #41557b; margin-bottom: .35rem; }
.membership-card-id-label { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #5b6f93; margin-top: .2rem; }
.membership-card-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; font-weight: 700; color: #1d4585; font-size: 1rem; }
.membership-card-footer {
  width: 100%;
  margin-top: auto;
  padding-top: .75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
}
.membership-card-expiry {
  font-size: .82rem;
  color: #5b6f93;
  text-align: left;
  margin: 0;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
}
.membership-card-expiry-label {
  font-weight: 700;
}
.membership-card-expiry-date {
  color: #41557b;
}
.membership-card-expiry.is-expired .membership-card-expiry-date,
.membership-card-expiry-state {
  color: #b42318;
  font-weight: 800;
}
.membership-card-footer:not(:has(.membership-card-type-logo)) .membership-card-expiry {
  text-align: center;
  align-items: center;
}
.membership-card-lines {
  width: 100%;
  display: grid;
  gap: .28rem;
  margin: .15rem 0 .1rem;
}
.membership-card-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .6rem;
  margin: 0;
}
.membership-card-line .membership-card-id {
  width: auto;
  text-align: left;
  font-size: .92rem;
}
.membership-card-line-expiry {
  color: #5b6f93;
  font-size: .78rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.membership-card-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-end;
  gap: .35rem;
  margin-left: auto;
}
.membership-card-footer:not(:has(.membership-card-expiry)) {
  justify-content: flex-end;
}
.membership-card-type-logo {
  height: 42px;
  width: auto;
  max-width: 42%;
  object-fit: contain;
  display: block;
  margin-left: auto;
}
.membership-card-logos .membership-card-type-logo {
  height: 36px;
  max-width: 84px;
  margin-left: 0;
}
.member-card-hint { margin: 0; text-align: center; font-size: .85rem; color: #5b6f93; line-height: 1.4; }
.membership-qr-block { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: .7rem 0 .15rem; }
.membership-qr {
  width: 188px;
  max-width: 100%;
  height: auto;
  background: #fff;
  border-radius: .5rem;
  padding: .4rem;
  border: 1px solid #d7e0ee;
  box-shadow: 0 2px 12px rgba(11, 77, 162, .08);
}
.membership-qr--modal { width: 260px; padding: .55rem; }
.membership-card-export-host { display: flex; justify-content: center; }
.membership-card-photo {
  display: block;
  width: min(400px, 100%);
  height: auto;
  border-radius: .85rem;
  box-shadow: 0 8px 24px rgba(11, 77, 162, .12);
  background: #fff;
}
.membership-card-photo[hidden],
.membership-card-inner--modal[hidden] { display: none; }
body.membership-card-modal-open { overflow: hidden; }
.membership-card-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.membership-card-modal[hidden] { display: none; }
.membership-card-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, .62);
}
.membership-card-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: .75rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.membership-card-modal-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  padding: .35rem .65rem 0;
  flex-shrink: 0;
}
.membership-card-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #5b6f93;
  padding: 0 .25rem;
}
.membership-card-modal-body {
  padding: 1.25rem 1rem 1.35rem;
  overflow-y: auto;
}
.membership-card-modal-hint {
  margin: 1rem 0 0;
  font-size: .84rem;
  line-height: 1.5;
  color: #5b6f93;
  text-align: center;
}
.membership-card-modal-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}
.certificate-preview-modal .membership-card-modal-dialog {
  width: min(1100px, calc(100vw - 2rem));
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}
.certificate-preview-modal .membership-card-modal-header {
  justify-content: space-between;
  align-items: center;
  padding: .65rem .75rem;
  border-bottom: 1px solid #e2e8f0;
}
.certificate-preview-modal .membership-card-modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: .6rem .75rem .75rem;
}
.certificate-preview-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 6.5rem);
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.certificate-preview-actions {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 0;
}
.certificate-preview-actions .btn {
  min-width: 128px;
  text-align: center;
}
.membership-qr-download,
.membership-card-save { min-width: 180px; text-align: center; }
.member-tiles { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.member-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
  padding: 1.35rem 1rem;
  border-radius: .85rem;
  text-decoration: none;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 800;
  color: var(--primary);
  background: #fff;
  border: 2px solid #c5d4e8;
  box-shadow: 0 8px 24px rgba(11, 77, 162, .1);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  position: relative;
  overflow: hidden;
}
.member-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, rgba(245, 170, 63, .55), rgba(248, 196, 122, .45));
}
.member-tile > span {
  position: relative;
  z-index: 1;
  line-height: 1.35;
  max-width: 16ch;
}
.member-tile-renewal {
  grid-column: 1 / -1;
  grid-row: 2;
}
.member-tile-benefits {
  grid-column: 1;
  grid-row: 1;
}
.member-tile-eshop {
  grid-column: 2;
  grid-row: 1;
}
.member-tile:hover,
.member-tile:focus-visible {
  border-color: #1d4585;
  box-shadow: 0 12px 28px rgba(29, 69, 133, .18);
  background: #fafcff;
}
.member-tile:focus-visible {
  outline: 3px solid rgba(29, 69, 133, .25);
  outline-offset: 2px;
}

.member-profile-records { margin-top: 1.5rem; }
.member-profile-records h2 { margin: 0 0 .75rem; font-size: 1.15rem; color: #0b1f3a; }
.member-profile-records-wrap { overflow-x: auto; }
.member-profile-records table { width: 100%; border-collapse: collapse; }
.member-profile-records th,
.member-profile-records td {
  padding: .5rem .6rem;
  border-bottom: 1px solid #d7e0ee;
  text-align: left;
  vertical-align: top;
}
.member-profile-records th { color: #41557b; font-size: .85rem; }
.member-profile-card {
  width: 100%;
  max-width: none;
  padding: 1.25rem 1.35rem 1.35rem;
}
.member-profile-form { display: grid; gap: 1rem; }
.member-profile-grid {
  display: grid;
  gap: .85rem 1.25rem;
  grid-template-columns: 1fr;
}
.member-profile-grid label {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.member-profile-grid input[type="text"],
.member-profile-grid input[type="email"],
.member-profile-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .5rem .65rem;
  font: inherit;
  background: #fff;
}
.member-profile-grid input:disabled,
.member-profile-grid input[readonly],
.member-profile-grid select:disabled {
  background: #f4f7fb;
  color: #16345f;
}
.member-profile-hint {
  font-weight: 500;
  font-size: .85rem;
  line-height: 1.4;
  color: #5b6f93;
}
.member-profile-hint a { color: #0b4da2; }
.member-profile-phones {
  display: grid;
  gap: .85rem 1.25rem;
}
.member-profile-address {
  margin: .15rem 0 0;
  padding: .85rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: #f7f9fc;
  min-inline-size: 0;
}
.member-profile-address legend {
  padding: 0 .35rem;
  font-weight: 700;
  color: var(--text);
}
.member-profile-address-fields {
  display: grid;
  gap: .7rem;
}
body.member-activity-preview-open { overflow: hidden; }
.member-activity-preview {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.member-activity-preview[hidden] { display: none; }
.member-activity-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, .62);
}
.member-activity-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: .85rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  overflow: hidden;
}
.member-activity-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #e6edf6;
}
.member-activity-preview-header h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #0b1f3a;
}
.member-activity-preview-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #5b6f93;
}
.member-activity-preview-body {
  padding: 1rem 1rem .25rem;
  overflow: auto;
}
.member-activity-preview-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .85rem 1rem 1rem;
  border-top: 1px solid #e6edf6;
}
.member-activity-ineligible {
  flex: 1 0 100%;
  margin: 0;
  color: #8a4b12;
  font-size: .92rem;
}
.member-activity-ineligible[hidden] {
  display: none;
}
.member-activity-enrol {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.member-activity-enrol[hidden] { display: none; }
.member-activity-preview-actions a.btn.is-disabled,
.member-activity-preview-actions a.btn[aria-disabled="true"] {
  background: #c5cedd;
  border-color: #c5cedd;
  color: #fff;
  pointer-events: none;
  cursor: not-allowed;
}
.member-activity-photo {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: .7rem;
  background: #eef3f9;
}
.member-activity-poster {
  display: grid;
  gap: .35rem;
  min-height: 180px;
  align-content: end;
  margin: 0;
  padding: 1.1rem 1.15rem;
  border-radius: .7rem;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(11, 31, 58, .15), rgba(11, 31, 58, .55)),
    linear-gradient(135deg, #0b4da2, #00b3e3);
}
.member-activity-poster--exam {
  background:
    linear-gradient(160deg, rgba(11, 31, 58, .12), rgba(11, 31, 58, .45)),
    linear-gradient(135deg, #b45309, #f59e0b);
}
.member-activity-poster--ce {
  background:
    linear-gradient(160deg, rgba(11, 31, 58, .12), rgba(11, 31, 58, .45)),
    linear-gradient(135deg, #0f766e, #14b8a6);
}
.member-activity-poster .member-type-badge {
  justify-self: start;
  background: rgba(255, 255, 255, .92);
}
.member-activity-poster strong {
  font-size: 1.25rem;
  line-height: 1.3;
}
.member-activity-preview-title {
  margin: .9rem 0 .35rem;
  font-size: 1.2rem;
  color: #0b1f3a;
}
.member-activity-details {
  display: grid;
  gap: .75rem;
  margin: .85rem 0 1rem;
}
.member-activity-details div {
  display: grid;
  gap: .15rem;
}
.member-activity-details dt {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #5b6f93;
}
.member-activity-details dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.member-notes-button {
  display: inline-flex;
  margin-top: .35rem;
  white-space: normal;
}
@media (min-width: 801px) {
  .member-profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-profile-grid-span { grid-column: 1 / -1; }
  .member-profile-phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.member-exam-card {
  width: 100%;
  max-width: none;
  padding: 1.25rem 1.35rem 1.35rem;
}
.member-exam-stepbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--line);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: .9rem;
}
.member-exam-stepbar-progress {
  color: #5b6f93;
  font-size: .86rem;
  white-space: nowrap;
}
.member-exam-panel { display: grid; gap: 1rem; }
.member-exam-title {
  margin: 0;
  color: var(--primary);
  font-size: 1.25rem;
}
.member-exam-form { display: grid; gap: 1rem; }
.member-exam-empty {
  margin: 0;
  padding: 1.35rem .85rem;
  text-align: center;
  color: #5b6f93;
  font-style: italic;
  background: #f7f9fd;
  border: 1px dashed #c5d4e8;
  border-radius: .55rem;
}
.member-exam-sessions-table { min-width: 720px; }
.member-exam-select {
  width: 3.5rem;
  text-align: center;
  vertical-align: middle;
}
.member-exam-select input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  cursor: pointer;
}
.member-exam-session-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.member-exam-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
}
.member-exam-summary {
  padding: 1rem 1.1rem;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: .55rem;
  line-height: 1.55;
}
.member-exam-summary p { margin: 0 0 .55rem; }
.member-exam-summary p:last-child { margin-bottom: 0; }
.member-exam-fee {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.member-exam-fieldset {
  margin: 0;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #f7f9fd;
}
.member-exam-fieldset legend {
  padding: 0 .35rem;
  font-weight: 700;
  color: var(--primary);
}
.member-exam-radio {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: .55rem 0 0;
  font-weight: 600;
  cursor: pointer;
}
.member-exam-message {
  margin: 0;
  line-height: 1.55;
  color: #41557b;
}

.member-ce-card {
  width: 100%;
  max-width: none;
  padding: 1.25rem 1.35rem 1.35rem;
}
.member-ce-title {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.25rem;
}
.member-renewal-year {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .25rem;
  color: #16345f;
  font-size: .95rem;
  font-weight: 600;
}
.member-renewal-year::before {
  content: "";
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #fdba74;
  flex: 0 0 auto;
  animation: member-renewal-year-blink 1.1s steps(1, end) infinite;
}
@keyframes member-renewal-year-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
  .member-renewal-year::before { animation: none; }
}
.member-renewal-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
}
.member-renewal-popup[hidden] { display: none; }
.member-renewal-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, .55);
}
.member-renewal-popup-dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(26rem, 100%);
  max-height: calc(100dvh - 1.5rem);
  padding: .85rem .9rem .75rem;
  border-radius: .85rem;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 30, 55, .28);
}
.member-renewal-popup-close {
  position: absolute;
  top: .35rem;
  right: .4rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5c6b82;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.member-renewal-popup-close:hover,
.member-renewal-popup-close:focus-visible {
  background: #f3f6fb;
  color: #0b1f3a;
}
.member-renewal-popup-slides {
  min-height: 0;
  overflow: auto;
  padding-right: 1.4rem;
}
.member-renewal-popup-slides .member-ce-title {
  margin-bottom: .7rem;
  font-size: 1.05rem;
}
.member-renewal-popup-facts {
  display: grid;
  gap: .55rem;
  margin: 0;
}
.member-renewal-popup-facts div {
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: .65rem;
  background: #f7f9fd;
}
.member-renewal-popup-facts dt {
  margin: 0 0 .15rem;
  color: #5c6b82;
  font-size: .75rem;
  font-weight: 700;
}
.member-renewal-popup-facts dd {
  margin: 0;
  color: #0b1f3a;
  font-size: .95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.member-renewal-popup .member-renewal-note {
  margin-top: .65rem;
  font-size: .82rem;
}
.member-renewal-popup .member-renewal-note .btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}
.member-renewal-popup-actions {
  flex-direction: column;
}
.member-renewal-popup-actions .btn {
  width: 100%;
  text-align: center;
}
.member-renewal-popup-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .75rem;
  color: #16345f;
  font-weight: 700;
}
.member-renewal-popup-arrow {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #0b4da2;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.member-renewal-popup-countdown {
  margin: .7rem 0 0;
  color: #5c6b82;
  font-size: .82rem;
  text-align: center;
}
@media (max-width: 480px) {
  .member-renewal-popup { padding: .5rem; }
  .member-renewal-popup-dialog {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    padding: .75rem .7rem .65rem;
  }
  .member-renewal-popup-slides { padding-right: 1.2rem; }
}
.member-download-file {
  display: block;
  margin-top: .15rem;
  color: #5c6b80;
  font-size: .85rem;
  font-weight: 500;
}
.member-download-doc {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-width: 0;
}
.member-download-mark {
  position: relative;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.85rem;
  border-radius: .2rem .45rem .2rem .2rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: .32rem;
  color: #fff;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1;
  background: #5b6f93;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.member-download-mark::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 11px 11px 0;
  border-color: transparent #f4f7fb transparent transparent;
  filter: drop-shadow(-1px 1px 0 rgba(0, 0, 0, .12));
}
.member-download-mark.is-pdf { background: #d32f2f; }
.member-download-mark.is-doc { background: #185abd; }
.member-download-mark.is-xls,
.member-download-mark.is-csv { background: #107c41; }
.member-download-mark.is-ppt { background: #c43e1c; }
.member-download-mark.is-img { background: #6941c6; }
.member-download-mark.is-txt { background: #5b6f93; }
.member-download-mark.is-zip { background: #8a5a2b; }
.member-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}
@media (min-width: 901px) {
  .member-download-table th:nth-child(1),
  .member-download-table td:nth-child(1) {
    width: 9.5rem;
    white-space: nowrap;
  }
  .member-download-table th:nth-child(2),
  .member-download-table td:nth-child(2) {
    width: auto;
  }
  .member-download-table th:nth-child(3),
  .member-download-table td:nth-child(3) {
    width: 6.5rem;
    white-space: nowrap;
  }
  .member-download-table th:nth-child(4),
  .member-download-table td:nth-child(4) {
    width: 12.5rem;
    white-space: nowrap;
  }
}
.member-download-modal .membership-card-modal-dialog {
  width: min(960px, calc(100vw - 2rem));
  height: min(860px, calc(100vh - 2rem));
  max-height: calc(100vh - 2rem);
}
.member-download-modal .membership-card-modal-header {
  justify-content: space-between;
  align-items: center;
  padding: .7rem .85rem;
  border-bottom: 1px solid #e2e8f0;
}
.member-download-modal-title {
  margin: 0;
  min-width: 0;
  font-weight: 750;
  color: #0b1f3a;
  overflow-wrap: anywhere;
}
.member-download-modal .membership-card-modal-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  padding: .75rem;
  background: #eef3f9;
}
.member-download-frame,
.member-download-image {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: .35rem;
  background: #fff;
}
.member-download-image {
  object-fit: contain;
}
.member-download-frame[hidden],
.member-download-image[hidden] { display: none; }
.member-ce-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: #fff;
}
.member-ce-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: .92rem;
  display: table;
}
.member-ce-table thead th {
  background: var(--primary);
  color: #fff;
  padding: .7rem .85rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.member-ce-table tbody td {
  border-top: 1px solid var(--line);
  padding: .7rem .85rem;
  vertical-align: middle;
  line-height: 1.45;
}
.member-list-preview { width: 7.5rem; }
.member-list-thumb,
.member-list-poster {
  display: block;
  width: 6.5rem;
  height: 4rem;
  border-radius: .45rem;
  background: #eef3f9;
}
.member-list-thumb { object-fit: cover; }
.member-list-poster { background: linear-gradient(135deg, #0b4da2, #00b3e3); }
.member-list-poster--exam { background: linear-gradient(135deg, #b45309, #f59e0b); }
.member-list-poster--ce { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.member-list-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
}
.member-list-item .member-type-badge { margin-right: 0; }
.member-list-item-title { display: block; }

@media (max-width: 900px) {
  .member-activity-list-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .member-activity-list,
  .member-activity-list tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .member-activity-list thead { display: none; }
  .member-activity-list tr {
    display: flex;
    flex-direction: column;
    margin: 0 0 .85rem;
    padding: .85rem .95rem .7rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(11, 77, 162, .05);
  }
  .member-activity-list tbody tr:nth-child(even):not(.member-ce-empty),
  .member-activity-list tbody tr:hover:not(.member-ce-empty) {
    background: #fff;
  }
  .member-activity-list td {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: .2rem .65rem;
    align-items: start;
    width: auto;
    border: 0;
    border-bottom: 1px solid #eef2f8;
    padding: .45rem 0;
  }
  .member-activity-list td::before {
    content: attr(data-label);
    font-size: .78rem;
    font-weight: 700;
    color: #5b6f93;
    padding-top: .1rem;
  }
  .member-activity-list td.member-list-preview { order: 1; }
  .member-activity-list td.member-list-item-cell { order: 2; }
  .member-activity-list td.member-list-date { order: 3; white-space: normal; }
  .member-activity-list td.member-list-fee { order: 4; }
  .member-activity-list td.member-list-action { order: 5; }
  .member-activity-list td.member-list-preview,
  .member-activity-list td.member-list-item-cell,
  .member-activity-list td.member-list-action {
    display: block;
  }
  .member-activity-list td.member-list-preview::before,
  .member-activity-list td.member-list-item-cell::before,
  .member-activity-list td.member-list-action::before { content: none; }
  .member-activity-list td.member-list-preview {
    padding: 0 0 .65rem;
    border-bottom: 0;
  }
  .member-activity-list .member-list-thumb,
  .member-activity-list .member-list-poster {
    width: 100%;
    height: 8.5rem;
  }
  .member-activity-list td.member-list-item-cell {
    padding-top: 0;
    padding-bottom: .55rem;
  }
  .member-activity-list td.member-list-action {
    border-bottom: 0;
    padding: .75rem 0 .2rem;
  }
  .member-activity-list td.member-list-action .member-table-action {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    box-sizing: border-box;
  }
}
.member-ce-table tbody tr:nth-child(even):not(.member-ce-empty) {
  background: #f7f9fd;
}
.member-ce-table tbody tr:hover:not(.member-ce-empty) {
  background: #eff4ff;
}
.member-ce-empty td {
  text-align: center;
  color: #5b6f93;
  padding: 1.35rem .85rem;
  font-style: italic;
}
.member-ce-link {
  margin: 1rem 0 0;
}
.member-ce-link a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.member-ce-link a:hover {
  text-decoration: underline;
}
.member-table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .35rem .7rem;
  border-radius: .35rem;
  background: #eff4ff;
  border: 1px solid #c9d7f7;
  color: var(--primary);
  font-family: inherit;
  font-weight: 700;
  font-size: .84rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
}
.member-table-action:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.member-table-action:disabled,
.member-table-action:disabled:hover {
  background: #f3f5f8;
  border-color: #d5dce8;
  color: #8a97ad;
  cursor: not-allowed;
}
.member-table-action--danger {
  background: #fff1f1;
  border-color: #f0c7c7;
  color: #b42318;
}
.member-table-action--danger:hover {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

.member-invoice-card,
.member-invoice-wrap,
.member-invoice-table {
  min-width: 0;
  max-width: 100%;
}
.member-invoice-wrap { overflow-x: clip; }
.member-invoice-table {
  table-layout: fixed;
  font-size: .8rem;
}
.member-invoice-col-items { width: 46%; }
.member-invoice-col-amount { width: 16%; }
.member-invoice-col-date { width: 16%; }
.member-invoice-col-doc { width: 22%; }
.member-invoice-table thead th,
.member-invoice-table tbody td {
  white-space: normal;
  overflow-wrap: break-word;
  padding: .55rem .28rem;
}
.member-invoice-table th:nth-child(2),
.member-invoice-table td:nth-child(2),
.member-invoice-table th:nth-child(3),
.member-invoice-table td:nth-child(3) {
  white-space: nowrap;
}
.member-invoice-table .member-table-action {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  padding: .4rem .35rem;
}

@media (max-width: 900px) {
  .member-invoice-card { padding: 1rem .85rem 1.1rem; }
  .member-invoice-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .member-invoice-table,
  .member-invoice-table tbody {
    display: block;
    width: 100%;
  }
  .member-invoice-table thead,
  .member-invoice-table colgroup { display: none; }
  .member-invoice-table tr {
    display: block;
    margin: 0 0 .85rem;
    padding: .85rem .95rem .7rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(11, 77, 162, .05);
  }
  .member-invoice-table tbody tr:nth-child(even):not(.member-ce-empty),
  .member-invoice-table tbody tr:hover:not(.member-ce-empty) {
    background: #fff;
  }
  .member-invoice-table td {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: .2rem .65rem;
    align-items: start;
    border: 0;
    border-bottom: 1px solid #eef2f8;
    padding: .45rem 0;
  }
  .member-invoice-table td::before {
    content: attr(data-label);
    font-size: .78rem;
    font-weight: 700;
    color: #5b6f93;
    padding-top: .1rem;
  }
  .member-invoice-table td.member-invoice-ref {
    display: block;
    border-bottom: 0;
    padding: 0 0 .15rem;
    font-weight: 800;
    font-size: .95rem;
    color: #0b1f3a;
  }
  .member-invoice-table td.member-invoice-ref::before { content: none; }
  .member-invoice-table td.member-invoice-items {
    display: block;
    border-bottom: 1px solid #eef2f8;
    padding-top: 0;
    padding-bottom: .55rem;
    color: #243e66;
  }
  .member-invoice-table td.member-invoice-items::before {
    display: block;
    margin-bottom: .15rem;
  }
  .member-invoice-table td.member-invoice-doc {
    display: block;
    border-bottom: 0;
    padding: .75rem 0 .2rem;
  }
  .member-invoice-table td.member-invoice-doc::before { content: none; }
  .member-invoice-table td.member-invoice-doc .member-table-action {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
  }
  .member-invoice-table tr.member-ce-empty {
    box-shadow: none;
    margin-bottom: 0;
    padding: 0;
    border: 1px solid var(--line);
  }
  .member-invoice-table tr.member-ce-empty td {
    display: block;
    border: 0;
    text-align: center;
    padding: 1.35rem .85rem;
  }
  .member-invoice-table tr.member-ce-empty td::before { content: none; }
}

.member-cert-card,
.member-cert-wrap,
.member-cert-table {
  min-width: 0;
  max-width: 100%;
}
.member-cert-wrap { overflow-x: clip; }
.member-cert-table {
  table-layout: fixed;
  min-width: 0;
}
.member-cert-table thead th,
.member-cert-table tbody td {
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 900px) {
  .member-cert-card { padding: 1rem .85rem 1.1rem; }
  .member-cert-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .member-cert-table,
  .member-cert-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .member-cert-table thead { display: none; }
  .member-cert-table tr {
    display: block;
    margin: 0 0 .85rem;
    padding: .85rem .95rem .7rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
    box-shadow: 0 4px 14px rgba(11, 77, 162, .05);
  }
  .member-cert-table tbody tr:nth-child(even):not(.member-ce-empty),
  .member-cert-table tbody tr:hover:not(.member-ce-empty) {
    background: #fff;
  }
  .member-cert-table td {
    display: grid;
    grid-template-columns: 5.75rem minmax(0, 1fr);
    gap: .2rem .65rem;
    align-items: start;
    border: 0;
    border-bottom: 1px solid #eef2f8;
    padding: .45rem 0;
  }
  .member-cert-table td::before {
    content: attr(data-label);
    font-size: .78rem;
    font-weight: 700;
    color: #5b6f93;
    padding-top: .1rem;
  }
  .member-cert-table td.member-cert-title {
    display: block;
    border-bottom: 0;
    padding: 0 0 .15rem;
    font-weight: 800;
    font-size: .95rem;
    color: #0b1f3a;
  }
  .member-cert-table td.member-cert-title::before { content: none; }
  .member-cert-table td.member-cert-action {
    display: block;
    border-bottom: 0;
    padding: .75rem 0 .2rem;
  }
  .member-cert-table td.member-cert-action::before { content: none; }
  .member-cert-table td.member-cert-action .member-table-action {
    display: flex;
    width: 100%;
    min-height: 2.6rem;
    box-sizing: border-box;
  }
  .member-cert-table tr.member-ce-empty {
    box-shadow: none;
    margin-bottom: 0;
    padding: 0;
    border: 1px solid var(--line);
  }
  .member-cert-table tr.member-ce-empty td {
    display: block;
    border: 0;
    text-align: center;
    padding: 1.35rem .85rem;
  }
  .member-cert-table tr.member-ce-empty td::before { content: none; }
  .member-download-table td.member-cert-action .member-download-actions {
    display: grid;
    gap: .45rem;
  }
}

.member-eshop-card {
  width: 100%;
  max-width: none;
  padding: 1.25rem 1.35rem 1.35rem;
}
.member-eshop-layout {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
@media (min-width: 1024px) {
  .member-eshop-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  }
}
.member-eshop-products,
.member-eshop-cart {
  min-width: 0;
}
.member-eshop-cart.card {
  padding: 1rem 1.1rem 1.15rem;
  background: #f7f9fd;
}
.member-eshop-products-table { min-width: 720px; }
.member-eshop-cart-table { min-width: 420px; }
.member-eshop-product-cell {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 12rem;
}
.member-eshop-product-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: .4rem;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.member-eshop-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}
.member-eshop-add-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0;
}
.member-eshop-qty-label {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .84rem;
  font-weight: 600;
  color: #5b6f93;
}
.member-eshop-qty {
  width: 4rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .35rem .45rem;
  font: inherit;
}
.member-eshop-total {
  margin: 1rem 0 0;
  font-size: 1.05rem;
  color: var(--primary-dark);
}

/* Planner search */
.reg-mark {
  font-family: "Times New Roman", Times, serif;
  font-size: 0.68em;
  font-weight: 400;
  font-style: normal;
  font-variant: normal;
  font-feature-settings: normal;
  letter-spacing: 0;
  line-height: 0;
  text-transform: none;
}
.planner-title { color: var(--primary); margin-top: 0; }
.planner-back { margin: 0 0 1rem; }
.planner-register-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.planner-register-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 172px;
  padding: 1.15rem 1.1rem 0.95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .7rem;
  color: var(--primary);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(16, 42, 84, 0.04);
}
.planner-register-card:hover,
.planner-register-card:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 6px 16px rgba(11, 77, 162, 0.12);
  text-decoration: none;
  color: var(--primary);
}
.planner-register-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.planner-register-card-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}
.planner-register-card-logo {
  align-self: flex-end;
  display: block;
  max-width: 140px;
  max-height: 52px;
  width: auto;
  height: auto;
  margin-top: 1.35rem;
  object-fit: contain;
}
.planner-register-card-mark {
  align-self: flex-end;
  margin-top: 1.35rem;
  color: var(--primary);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
}
.planner-search-form {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}
.planner-search-form label {
  display: block;
  margin: 0 0 .35rem;
  font-weight: 600;
  color: var(--text);
}
.planner-search-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .5rem .65rem;
  font: inherit;
}
.planner-search-form .form-hint {
  margin: .25rem 0 1rem;
}
.planner-search-form .captcha-field {
  display: grid;
  gap: .35rem;
  margin-bottom: .25rem;
}
.planner-search-form .captcha-row {
  display: flex;
  align-items: stretch;
  gap: .65rem;
}
.planner-search-form .captcha-image {
  flex: 0 0 auto;
  width: 140px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: .35rem;
  object-fit: cover;
  background: #fff;
}
.planner-search-form .captcha-field input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.planner-search-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .5rem;
}
.planner-disclaimer {
  padding: 1.25rem;
}
.planner-disclaimer h2 {
  margin: 0 0 .75rem;
  font-size: 1.1rem;
  color: var(--primary);
  line-height: 1.4;
}
.planner-disclaimer h3 {
  margin: 0 0 .75rem;
  font-size: 1rem;
  color: var(--primary);
}
.planner-disclaimer p {
  margin: 0 0 .85rem;
  line-height: 1.6;
}
.planner-disclaimer p:last-child {
  margin-bottom: 0;
}
.planner-results-table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.planner-results-table th { background: var(--primary); color: #fff; padding: .6rem; text-align: left; }
.planner-results-table td { border: 1px solid var(--line); padding: .55rem; vertical-align: top; }
.planner-result-zh { display: block; margin-top: .15rem; color: #41557b; font-size: .92em; }
.planner-results-cards { display: none; }
.planner-result-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .7rem;
  padding: .95rem 1rem;
}
.planner-result-card h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.05rem;
  line-height: 1.35;
}
.planner-result-card dl {
  display: grid;
  grid-template-columns: minmax(6.5rem, 38%) 1fr;
  gap: .4rem .75rem;
  margin: .75rem 0 0;
}
.planner-result-card dt {
  margin: 0;
  color: #5b6f93;
  font-size: .82rem;
  font-weight: 700;
}
.planner-result-card dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.search-meta { margin: 0 0 .75rem; font-weight: 600; }
@media (max-width: 720px) {
  .planner-register-grid { grid-template-columns: 1fr; }
  .planner-results-table { display: none; }
  .planner-results-cards {
    display: grid;
    gap: .75rem;
    margin: 0 0 1.5rem;
  }
  .planner-search-form input[type="text"],
  .planner-search-form .captcha-field input[type="text"] {
    font-size: 16px;
  }
  .planner-search-form .captcha-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Education program schedule */
.edu-schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.edu-schedule-table th,
.edu-schedule-table td {
  border: 1px solid var(--line);
  padding: .65rem .5rem;
  vertical-align: middle;
  text-align: center;
}
.edu-schedule-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}
.edu-schedule-table th:first-child,
.edu-schedule-table td:first-child {
  text-align: left;
  min-width: 12rem;
}
.edu-schedule-cell {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  align-items: center;
}
.edu-provider-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 1.6rem;
  padding: 0 .45rem;
  border-radius: .25rem;
  background: var(--primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-decoration: none;
  line-height: 1;
}
.edu-provider-badge:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
}
.edu-schedule-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin: 1rem 0;
}
.edu-schedule-legend a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.edu-schedule-legend a:hover {
  text-decoration: underline;
}
.search-meta { color: #c00; font-weight: 600; }
.planner-type-list { list-style: none; padding: 0; }
.planner-type-list a { color: var(--primary); font-weight: 600; }

/* CE Calendar */
.ce-cart-widget { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.ce-cart-widget h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--primary); }
.ce-month-nav { margin: 1rem 0; font-size: .88rem; }
.ce-month-nav a.active { color: var(--accent); font-weight: 700; }
.ce-filters { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-bottom: 1rem; }
.ce-courses-table { width: 100%; }
.price-member { color: var(--accent); font-weight: 700; }
.link-btn { background: none; border: none; color: var(--primary); text-decoration: underline; cursor: pointer; padding: 0; }

/* Registration form */
.registration-form-banner { background: var(--primary); color: #fff; padding: 1rem 0; }
.registration-form-banner h1 { margin: 0; font-size: 1.55rem; }
.registration-step-bar { background: var(--primary-dark); color: #fff; }
.registration-step-inner { display: flex; justify-content: space-between; padding: .5rem 0; font-size: .9rem; }
.registration-form-main { background: #eef5fb; padding: 1.5rem 0 3rem; }
.registration-form-main > .container { display: grid; gap: 1rem; max-width: 860px; }
.registration-form-main .card {
  padding: 1.25rem 1.35rem 1.35rem;
}
.registration-form-main .card + .card,
.registration-form-main form.card + section.card,
.registration-form-main section.card + form {
  margin-top: 0;
}
.required-label { color: #c00; font-weight: 700; margin: 0 0 .35rem; }
.radio-block {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin: .55rem 0;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}
.radio-block input { margin-top: .2rem; flex-shrink: 0; }
.registration-notes h2 {
  margin: 0 0 .75rem;
  color: var(--primary);
  font-size: 1.2rem;
}
.registration-notes-box {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  background: #f7f9fd;
  border-radius: .45rem;
  line-height: 1.55;
}
.registration-notes-box ul {
  margin: 0;
  padding-left: 1.2rem;
}
.registration-notes-box li + li { margin-top: .35rem; }
.registration-form {
  display: grid;
  gap: 1rem;
}
.registration-form > p { margin: 0; }
.registration-form-grid {
  display: grid;
  gap: .85rem 1.25rem;
  grid-template-columns: 1fr;
}
.registration-form-grid label,
.registration-form > label:not(.radio-block):not(.inline-check) {
  display: grid;
  gap: .35rem;
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}
.registration-form input[type="text"],
.registration-form input[type="email"],
.registration-form input[type="date"],
.registration-form input[type="number"],
.registration-form input[type="file"],
.registration-form select,
.registration-form textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .5rem .65rem;
  font: inherit;
  background: #fff;
}
.registration-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: .35rem;
}
.registration-form legend {
  margin: 0 0 .35rem;
  font-weight: 700;
  color: var(--primary);
}
.registration-form .inline-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-weight: 500;
  line-height: 1.45;
  cursor: pointer;
}
.registration-form .inline-check input {
  margin-top: .2rem;
  flex-shrink: 0;
  width: auto;
}
.registration-form-span { grid-column: 1 / -1; }
.registration-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-top: 1rem;
}
.registration-form .registration-form-actions { margin-top: .25rem; }
.registration-notes .registration-form-actions { margin-top: 1rem; }
.registration-summary {
  display: grid;
  gap: 1rem;
}
.registration-summary h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.25rem;
}
.registration-summary-section {
  margin: 0;
  padding: 1rem 1.1rem;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.registration-summary-section h3 {
  margin: 0 0 .75rem;
  color: var(--primary-dark);
  font-size: 1rem;
}
.registration-summary-dl {
  display: grid;
  grid-template-columns: minmax(140px, 34%) 1fr;
  gap: .45rem .85rem;
  margin: 0;
}
.registration-summary-dl dt {
  margin: 0;
  color: #5b6f93;
  font-weight: 600;
}
.registration-summary-dl dd {
  margin: 0;
  color: var(--text);
  word-break: break-word;
}
.registration-summary-fee {
  margin: 0;
  font-size: 1.05rem;
}
.registration-payment-note {
  margin: .15rem 0 0;
  padding: .85rem 1rem;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: .45rem;
  color: #41557b;
  line-height: 1.55;
  font-size: .95rem;
}
.registration-payment-note p { margin: 0; }
.registration-payment-note[hidden] { display: none !important; }
@media (min-width: 701px) {
  .registration-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .registration-form-span { grid-column: 1 / -1; }
}

.member-renewal-intro {
  margin: 0 0 1.25rem;
  padding: .85rem 1rem;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: .55rem;
  color: #41557b;
  line-height: 1.55;
}
.member-renewal-block {
  width: 100%;
  max-width: none;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.35rem 1.35rem;
}
.member-renewal-block:last-child { margin-bottom: 0; }
.member-renewal-table { min-width: 520px; }
.member-renewal-table tbody th[scope="row"] {
  width: 34%;
  background: #f7f9fd;
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}
.member-renewal-table tbody td {
  background: #fff;
}
.member-renewal-fee {
  color: #c62828;
  font-weight: 700;
}
.member-renewal-note {
  margin: 1rem 0 0;
  padding: .85rem 1rem;
  background: #fff8ef;
  border: 1px solid #f0dcc0;
  border-radius: .55rem;
  color: #6b4f2e;
  line-height: 1.55;
  font-size: .92rem;
}
.member-renewal-note p {
  margin: 0;
}
.member-renewal-note .btn {
  margin-top: .75rem;
  font-size: 1rem;
}
.member-renewal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin: 1rem 0 0;
}
@media (max-width: 900px) {
  .member-renewal-block .member-ce-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .member-renewal-table,
  .member-renewal-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }
  .member-renewal-table thead { display: none; }
  .member-renewal-table tr {
    display: block;
    margin: 0 0 .65rem;
    padding: .8rem .9rem;
    border: 1px solid var(--line);
    border-radius: .75rem;
    background: #fff;
  }
  .member-renewal-table tr:last-child { margin-bottom: 0; }
  .member-renewal-table tbody th[scope="row"],
  .member-renewal-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: normal;
  }
  .member-renewal-table tbody th[scope="row"] {
    margin-bottom: .2rem;
    color: #5c6b82;
    font-size: .78rem;
    font-weight: 700;
  }
  .member-renewal-table tbody td {
    color: #0b1f3a;
    font-size: 1rem;
    line-height: 1.4;
  }
  .member-renewal-actions { flex-direction: column; }
  .member-renewal-actions .btn,
  .member-renewal-actions form,
  .member-renewal-actions form .btn,
  .member-renewal-note .btn {
    width: 100%;
    text-align: center;
  }
}
.member-renewal-alt {
  margin: .85rem 0 0;
}
.member-renewal-alt a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.member-renewal-alt a:hover { text-decoration: underline; }

.member-survey-form {
  display: grid;
  gap: .15rem;
}
.member-survey-intro,
.member-survey-thanks {
  margin: 0 0 1rem;
  color: #41557b;
  line-height: 1.55;
}
.member-survey-thanks { margin: .35rem 0 0; }
.member-survey-part {
  margin: .85rem 0 .55rem;
  color: var(--primary);
  font-size: 1rem;
}
.member-survey-question {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 .85rem;
  padding: .85rem 1rem 1rem;
  border: 1px solid #c5d0e0;
  border-radius: .5rem;
  background: #fff;
}
.member-survey-question legend {
  padding: 0 .3rem;
  font-weight: 700;
  color: #1c3358;
  line-height: 1.45;
}
.member-survey-hint {
  margin: 0 0 .65rem;
  color: #5b6f93;
  font-size: .92rem;
}
.member-survey-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  align-items: stretch;
}
.member-survey-options--choices {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.member-survey-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.85rem;
  margin: 0;
  padding: .55rem .75rem;
  border: 1px solid #d5deeb;
  border-radius: .55rem;
  background: #fff;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.member-survey-option:hover {
  border-color: #8eadd4;
  background: #f7faff;
}
.member-survey-option:has(input:checked) {
  border-color: #0b4da2;
  background: #eef5ff;
  box-shadow: inset 0 0 0 1px #0b4da2;
}
.member-survey-option input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #0b4da2;
}
.member-survey-option span {
  min-width: 0;
}
.member-survey-option--wide {
  grid-column: 1 / -1;
}
.member-survey-text {
  display: grid;
  gap: .4rem;
  font-weight: 600;
}
.member-survey-select {
  display: block;
  max-width: 36rem;
}
.member-survey-select select {
  width: 100%;
  min-height: 2.85rem;
  box-sizing: border-box;
  border: 1px solid var(--line, #d5deeb);
  border-radius: .4rem;
  padding: .55rem .7rem;
  font: inherit;
  font-weight: 500;
  background: #fff;
  color: #1c3358;
}
.declaration-question-text {
  margin: 0 0 .75rem;
  font-weight: 600;
}
.declaration-answer-store {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.member-survey-text textarea,
.member-survey-specify input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: .4rem;
  padding: .6rem .7rem;
  font: inherit;
  font-weight: 500;
  background: #fff;
}
.member-survey-text textarea {
  min-height: 6.5rem;
  resize: vertical;
}
.member-survey-specify {
  margin-top: .75rem;
}
.member-survey-specify input {
  min-height: 2.85rem;
}
.member-survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .85rem;
}
@media (max-width: 900px) {
  .member-survey-actions { flex-direction: column; }
  .member-survey-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 860px) {
  .member-survey-options,
  .member-survey-options--choices,
  .member-survey-options--amounts,
  .member-survey-options--short,
  .member-survey-options--exams {
    grid-template-columns: 1fr;
  }
  .member-survey-option {
    min-height: 3.25rem;
    padding: .85rem 1rem;
    font-size: 1.02rem;
  }
  .member-survey-option input {
    width: 1.35rem;
    height: 1.35rem;
  }
}

.declaration-form { display: grid; gap: .85rem; }
.declaration-columns-frame { container-type: inline-size; container-name: declaration; min-width: 0; }
.declaration-columns { display: grid; gap: .85rem; min-width: 0; }
.declaration-column {
  border: 1px solid #9eb0c8;
  border-radius: .45rem;
  background: #fff;
  min-width: 0;
}
.declaration-column summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  background: #f4f7fb;
  color: #1c3358;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}
.declaration-column summary::-webkit-details-marker { display: none; }
.declaration-column summary::marker { content: ""; }
.declaration-column summary:hover,
.declaration-column summary:focus-visible { background: #e7eef8; }
.declaration-column.is-done summary { background: #f4faf6; }
.declaration-column[open] summary { border-bottom: 1px solid #d5deeb; }
.declaration-column-title { min-width: 0; }
.declaration-chevron {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  margin-top: .45rem;
  border-right: 2px solid #1c3358;
  border-bottom: 2px solid #1c3358;
  transform: rotate(45deg);
}
.declaration-column[open] .declaration-chevron {
  transform: rotate(-135deg);
  margin-top: .6rem;
}
.declaration-column-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.declaration-column-scroll {
  min-width: 0;
}
.declaration-column-scroll-inner {
  display: grid;
  gap: .75rem;
  padding: .95rem 1rem 1rem;
  min-width: 0;
}
.declaration-column-foot {
  display: grid;
  gap: .55rem;
  padding: .75rem 1rem .95rem;
  border-top: 1px solid #d5deeb;
  background: #f8fafc;
}
.declaration-column-foot .declaration-scroll-note {
  margin: 0;
  padding: 0;
}
.declaration-column .declaration-actions { padding: 0; }
.declaration-column-foot .btn:disabled,
.declaration-column .btn.is-next-action:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
}
.declaration-column .btn.is-next-action {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .28);
}
.declaration-column-message { margin: 0; color: #b42318; font-weight: 600; }
.declaration-column-message[hidden] { display: none; }
.declaration-list--arrow { list-style: none; padding-left: .15rem; }
.declaration-list--arrow > li::before { content: "➢ "; }
.declaration-question legend { display: block; margin-bottom: .25rem; }
@container declaration (min-width: 640px) {
  .declaration-columns.is-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
  }
  .declaration-column.is-lead { grid-column: 1 / -1; }
  .declaration-columns.is-split > .declaration-column:not(.is-lead)[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: clamp(22rem, calc(100vh - 15rem), 42rem);
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead)[open]::details-content {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead)[open] > .declaration-column-body,
  .declaration-columns.is-split > .declaration-column:not(.is-lead)[open]::details-content > .declaration-column-body {
    flex: 1 1 auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead) .declaration-column-foot {
    flex-shrink: 0;
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead) .declaration-column-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead).is-scroll-locked .declaration-column-scroll {
    box-shadow: inset 0 -16px 14px -14px rgba(28, 51, 88, .38);
  }
  .declaration-columns:not(.is-split) > .declaration-column[open] .declaration-column-scroll {
    max-height: clamp(22rem, calc(100vh - 15rem), 42rem);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .declaration-columns:not(.is-split) > .declaration-column.is-scroll-locked .declaration-column-scroll {
    box-shadow: inset 0 -16px 14px -14px rgba(28, 51, 88, .38);
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead) summary {
    cursor: default;
  }
  .declaration-columns.is-split > .declaration-column:not(.is-lead) .declaration-chevron {
    display: none;
  }
}
.declaration-doc {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid #d5deeb;
}
.declaration-doc h3 {
  margin: 0;
  color: #1c3358;
  font-size: 1.05rem;
}
.declaration-table {
  border: 1px solid #9eb0c8;
  border-radius: .35rem;
  overflow: hidden;
}
.declaration-head,
.declaration-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9.5rem;
  align-items: stretch;
}
.declaration-head {
  background: #f4f7fb;
  color: #1c3358;
  font-weight: 700;
}
.declaration-head span:last-child,
.declaration-read-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #9eb0c8;
  padding: .55rem .4rem;
}
.declaration-head span:first-child { padding: .55rem .75rem; }
.declaration-row + .declaration-row { border-top: 1px solid #9eb0c8; }
.declaration-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .45rem .75rem;
  width: 100%;
  min-height: 3rem;
  margin: 0;
  padding: .7rem .85rem;
  border: 0;
  background: #fff;
  color: #1c3358;
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.declaration-open-title { min-width: 0; }
.declaration-open:hover,
.declaration-open:focus-visible { background: #f3f7fd; }
.declaration-open:disabled {
  color: #8aa0bd;
  background: #f7f9fc;
  cursor: not-allowed;
}
.declaration-row.is-next .declaration-open {
  color: #1c3358;
  background: #fff6e8;
  box-shadow: inset 4px 0 0 #e07d00;
  animation: declaration-pulse 1.5s ease-in-out infinite;
}
.declaration-row.is-next .declaration-open:hover,
.declaration-row.is-next .declaration-open:focus-visible { background: #ffe8c2; }
.declaration-next {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  color: #9a5b00;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.declaration-next[hidden] { display: none; }
.declaration-next-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #e07d00;
  box-shadow: 0 0 0 0 rgba(224, 125, 0, .55);
  animation: declaration-dot 1.5s ease-in-out infinite;
}
.declaration-row.is-done .declaration-open { background: #f4faf6; }
@keyframes declaration-pulse {
  0%, 100% { background: #fff6e8; }
  50% { background: #ffe4bf; }
}
@keyframes declaration-dot {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 125, 0, .45); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 .45rem rgba(224, 125, 0, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 125, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .declaration-row.is-next .declaration-open,
  .declaration-next-dot { animation: none; }
}
.declaration-read {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  pointer-events: none;
  accent-color: #0b4da2;
  opacity: 1;
}
.declaration-confirm[hidden] { display: none; }
.declaration-confirm {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin: .2rem 0 0;
  padding: .15rem 0;
  line-height: 1.5;
  cursor: pointer;
}
.declaration-confirm input {
  width: 1.2rem;
  height: 1.2rem;
  margin: .2rem 0 0;
  flex: 0 0 auto;
  accent-color: #0b4da2;
}
.declaration-hint { margin: 0; color: #5b6f93; }
.declaration-dialog {
  width: min(44rem, calc(100vw - 1.5rem));
  max-height: min(88vh, 48rem);
  margin: auto;
  padding: 0;
  border: 1px solid #c5d0e0;
  border-radius: .7rem;
  box-shadow: 0 18px 50px rgba(16, 36, 72, .22);
}
.declaration-dialog::backdrop { background: rgba(16, 28, 48, .45); }
.declaration-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid #d5deeb;
}
.declaration-dialog-bar h3 { margin: 0; color: #1c3358; font-size: 1.05rem; }
.declaration-close {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.declaration-scroll {
  max-height: min(58vh, 32rem);
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
  line-height: 1.6;
  color: #1c3358;
}
.declaration-scroll p { margin: 0 0 .75rem; }
.declaration-subhead { font-weight: 700; }
.declaration-list { margin: 0 0 .9rem; padding-left: 1.35rem; }
.declaration-list li + li { margin-top: .55rem; }
.declaration-list--alpha { list-style: lower-alpha; }
.declaration-question {
  margin: 0 0 .85rem;
  padding: .75rem .85rem;
  border: 1px solid #d5deeb;
  border-radius: .5rem;
}
.declaration-question legend { font-weight: 600; padding: 0; }
.declaration-question label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 2.6rem;
  margin: .35rem .8rem 0 0;
  cursor: pointer;
}
.declaration-scroll-note { margin: 0; padding: .45rem 1rem 0; color: #8a4b12; font-size: .92rem; }
.declaration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: .85rem 1rem 1rem;
}
.declaration-disagree {
  background: #fff;
  color: #1c3358;
  border: 1px solid #9eb0c8;
}
@media (max-width: 640px) {
  .declaration-head,
  .declaration-row { grid-template-columns: minmax(0, 1fr) 6.5rem; }
  .declaration-open { min-height: 3.4rem; }
  .declaration-dialog { width: calc(100vw - .75rem); max-height: calc(100vh - .75rem); }
  .declaration-scroll { max-height: calc(100vh - 12.5rem); }
  .declaration-actions .btn { min-height: 3rem; padding-inline: 1.15rem; }
  .declaration-question label { min-height: 3rem; }
}

.renewal-block { margin-bottom: 1.5rem; }
.renewal-dl { display: grid; grid-template-columns: 180px 1fr; gap: .35rem .75rem; }
.renewal-fee { color: #c00; }
.renewal-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }

.checkout-total { font-size: 1.1rem; margin: 1rem 0; }
.renewal-checkout-summary {
  margin: 0 0 1rem;
  padding: 1.05rem 1.15rem 1.1rem;
}
.renewal-checkout-summary h2 {
  margin: 0 0 .85rem;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1.35;
}
.renewal-checkout-facts {
  display: grid;
  margin: 0;
  border: 1px solid #d5deeb;
  border-radius: .5rem;
  overflow: hidden;
}
.renewal-checkout-facts > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr);
  align-items: stretch;
  min-height: 2.85rem;
}
.renewal-checkout-facts > div + div {
  border-top: 1px solid #d5deeb;
}
.renewal-checkout-facts dt,
.renewal-checkout-facts dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: .7rem .9rem;
}
.renewal-checkout-facts dt {
  background: #f4f7fb;
  color: #1c3358;
  font-weight: 700;
  border-right: 1px solid #d5deeb;
}
.renewal-checkout-facts dd {
  background: #fff;
  font-weight: 600;
  word-break: break-word;
}
.renewal-checkout-fee {
  color: #c62828;
  font-weight: 800;
  font-size: 1.05rem;
}
.payment-method-remark {
  margin: .85rem 0 0;
  color: #5c6b80;
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .renewal-checkout-facts > div {
    grid-template-columns: minmax(6.5rem, 42%) minmax(0, 1fr);
    min-height: 3.15rem;
  }
  .renewal-checkout-facts dt,
  .renewal-checkout-facts dd {
    padding: .8rem .75rem;
  }
}
.checkout-item-list { margin: 0; padding-left: 1.2rem; }
.payment-redirect-box, .payment-result-box { max-width: 560px; margin: 2rem auto; text-align: center; }
.payment-result-success { border-left: 4px solid #2e7d32; }
.renewal-checkout-result {
  padding: 1.15rem 1.4rem 1.25rem;
}
.renewal-checkout-result > p {
  margin: 0;
}
.renewal-checkout-result > p + p {
  margin-top: 1rem;
}
.payment-result-error { border-left: 4px solid #c62828; }
.payment-result-dl { display: grid; grid-template-columns: 140px 1fr; gap: .35rem .75rem; text-align: left; max-width: 400px; margin: 1rem auto; }

@media (max-width: 800px) {
  .member-home-grid { grid-template-columns: 1fr; }
  .member-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
  }
  .member-nav a { width: 100%; }
  .member-tiles { grid-template-columns: 1fr; }
  .member-tile-renewal,
  .member-tile-benefits,
  .member-tile-eshop { grid-column: auto; grid-row: auto; }
  .membership-qr { width: 168px; }
  .membership-qr--modal { width: min(240px, 72vw); }
  .membership-card-type-logo { height: 36px; }
  .renewal-dl { grid-template-columns: 1fr; }
  .payment-result-dl { grid-template-columns: 1fr; }
}

/* Member portal sidebar layout */
.member-portal-container {
  max-width: 1280px;
  min-width: 0;
}
.member-portal-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.member-portal-main,
.member-dash {
  min-width: 0;
  max-width: 100%;
}
.cert-path {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}
.member-calendar-card {
  min-width: 0;
  max-width: 100%;
}
.member-portal-sidebar {
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 1rem;
  padding: 1rem .85rem 1.1rem;
  box-shadow: 0 8px 24px rgba(11, 77, 162, .06);
}
.member-portal-card { margin-bottom: 1rem; }
.member-side-nav { display: flex; flex-direction: column; gap: .2rem; }
.member-side-link {
  display: block;
  padding: .65rem .75rem;
  border-radius: .55rem;
  color: #16345f;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
}
.member-side-link:hover,
.member-side-link:focus-visible { background: #f3f7fd; }
.member-side-link.is-active { background: #00b3e3; color: #fff; }
.member-side-link.is-logout { color: #b42318; }
.member-side-group { border-top: 1px solid #eef2f8; border-bottom: 1px solid #eef2f8; }
.member-side-children {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: .45rem;
  padding: 0 0 .15rem .4rem;
}
.member-mobile-hub { display: none; }
.member-mobile-logout { display: none; }
.member-side-sub { font-weight: 600; font-size: .86rem; color: #3a5278; }
.member-portal-welcome {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.member-welcome-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  min-width: 0;
}
.member-welcome-text { margin: 0; }
.member-point-coin {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #16345f;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
a.member-point-coin:hover,
a.member-point-coin:focus-visible { color: #0b4da2; }
.member-point-coin.is-inert { cursor: default; }
.member-point-coin-icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; }
.member-point-coin-total { color: #8a5a00; }
.member-portal-title { margin: 0; font-size: 1.7rem; color: #0b1f3a; }
.member-dash-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #f4fbf8;
  border: 1px solid #c9e8d8;
  border-radius: .75rem;
  padding: .85rem 1rem;
  margin-bottom: 1rem;
  min-width: 0;
}
.member-dash-banner > p {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}
.member-dash-banner-action {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  flex: 0 0 auto;
}
.member-dash-banner--pending { background: #fff8ee; border-color: #f0d7a8; }
.member-dash-banner--failed { background: #fff4f4; border-color: #f0c2c2; }
.member-dash-banner--completed { background: #f4f7fb; border-color: #d5deea; }
.member-dash-banner-action form { margin: 0; }
.member-dash-renewal { margin-bottom: 1rem; }
.member-dash-renewal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.member-dash-renewal-head .member-ce-title { margin: 0 0 .85rem; }
.member-dash-renewal-hide { margin: 0; flex: 0 0 auto; }
.member-dash-renewal-hide-btn {
  width: 2rem;
  height: 2rem;
  margin: -.2rem -.35rem 0 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5c6b82;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.member-dash-renewal-hide-btn:hover,
.member-dash-renewal-hide-btn:focus-visible {
  background: #f3f6fb;
  color: #0b1f3a;
}
.member-offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.member-offer-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
  padding: .85rem;
  border: 1px solid #d5deea;
  border-radius: .75rem;
  background: #fff;
  color: inherit;
  text-align: left;
  font: inherit;
}
button.member-offer-card { cursor: pointer; }
a.member-offer-card { color: inherit; text-decoration: none; }
.member-offer-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: .5rem;
  background: #f4f7fb;
}
.member-offer-grid--banners {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.member-offer-card--banner img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.member-offer-card h3 { margin: 0; font-size: 1rem; }
.member-offer-card p { margin: 0; }
.member-offer-card.is-locked,
.member-offer-card:disabled {
  filter: grayscale(1);
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.member-point-value { margin: 0; font-size: 1.35rem; font-weight: 700; color: #0b4da2; }
.member-point-summary p { margin: 0 0 .75rem; line-height: 1.55; }
.member-point-block + .member-point-block { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #d5deeb; }
.member-point-total {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .85rem;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
}
.member-point-total .member-point-coin-icon { width: 1.45rem; height: 1.45rem; }
.member-point-summary .member-point-expiry {
  margin: 1.55rem 0;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}
.member-point-terms { margin: .35rem 0 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.member-point-terms li { line-height: 1.55; }
.member-point-rules { margin: .5rem 0 1rem; }
.member-offer-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.member-offer-modal[hidden] { display: none; }
.member-offer-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 55, .62); }
.member-offer-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border-radius: .75rem;
  background: #fff;
}
.member-offer-modal-dialog img { width: 100%; border-radius: .5rem; margin-bottom: .75rem; }
.member-offer-modal-close {
  position: absolute;
  top: .4rem;
  right: .55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.declaration-employer {
  margin: .75rem 0 1rem;
  padding: .75rem;
  border: 1px solid #d5deea;
  border-radius: .5rem;
}
.declaration-employer label { display: inline-flex; gap: .35rem; margin-right: 1rem; }
.member-demo-mark {
  display: inline-flex;
  align-items: center;
  margin-left: .35rem;
  vertical-align: middle;
}
.member-demo-mark-spot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #c81e1e;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #f3b4b4;
  animation: member-demo-mark-blink 1.1s steps(1, end) infinite;
}
@keyframes member-demo-mark-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: .15; }
}
@media (prefers-reduced-motion: reduce) {
  .member-demo-mark-spot { animation: none; }
}
.member-dash-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: .75rem;
}
.member-past-toggle {
  padding: .4rem .9rem;
  border: 1px solid #c5d4e8;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #16345f;
  background: #fff;
}
.member-past-toggle.is-active {
  background: #0b4da2;
  border-color: #0b4da2;
  color: #fff;
}
.member-calendar-item.is-past { opacity: .72; }
.member-activity-list tr.is-past { color: #5c6b82; }
.member-view-toggle { display: inline-flex; border: 1px solid #c5d4e8; border-radius: 999px; overflow: hidden; }
.member-view-btn {
  padding: .4rem .9rem;
  text-decoration: none;
  font-weight: 800;
  color: #16345f;
  background: #fff;
}
.member-dash [data-member-view-panel][hidden] { display: none !important; }
@media (max-width: 900px) {
  .member-dash-mobile-list [data-member-view-panel="calendar"] { display: none !important; }
  .member-dash-mobile-list [data-member-view-panel="list"] { display: block !important; }
  .member-dash-mobile-list [data-member-view="calendar"] { background: #fff; color: #16345f; }
  .member-dash-mobile-list [data-member-view="list"] { background: #0b4da2; color: #fff; }
}
.member-card-toggle { display: none; }
@media (min-width: 901px) {
  .member-portal-card > .member-card-body { display: block !important; }
  /* Closed <details> hides its body on current browsers, which removed the card from the desktop sidebar. */
  .member-portal-sidebar details.member-portal-card::details-content {
    display: block !important;
    content-visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
  }
}
.member-view-btn.is-active { background: #0b4da2; color: #fff; }
.member-calendar-card { padding: 1rem; }
.member-calendar-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.member-calendar-nav a { text-decoration: none; font-weight: 800; padding: .25rem .6rem; }
.member-calendar-nav-disabled {
  font-weight: 800;
  padding: .25rem .6rem;
  color: #c5d0e0;
  cursor: default;
}
.member-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}
.member-calendar-dow { font-size: .75rem; font-weight: 800; color: #5b6f93; text-align: center; }
.member-calendar-cell {
  min-height: 92px;
  border: 1px solid #e6edf6;
  border-radius: .45rem;
  padding: .35rem;
  background: #fff;
}
.member-calendar-cell.is-empty { background: transparent; border-color: transparent; }
.member-calendar-cell.is-today { border-color: #0b4da2; box-shadow: inset 0 0 0 1px #0b4da2; }
.member-calendar-day { display: block; font-weight: 800; font-size: .8rem; margin-bottom: .25rem; }
.member-calendar-time { font-weight: 800; margin-right: .25rem; color: #0b4da2; }
.member-list-date { white-space: nowrap; }
.member-calendar-item {
  display: block;
  width: 100%;
  margin-bottom: .25rem;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .72rem;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  color: #16345f;
  cursor: pointer;
}
.member-type-badge {
  display: inline-block;
  margin-right: .25rem;
  padding: .05rem .35rem;
  border-radius: 999px;
  background: #e8f1fb;
  color: #0b4da2;
  font-size: .68rem;
  font-weight: 800;
}
.member-calendar-item--exam .member-type-badge,
.member-type-badge--exam { background: #fff3e0; color: #b45309; }
.member-calendar-item--ce .member-type-badge,
.member-type-badge--ce { background: #e7f7ef; color: #0f766e; }
.member-register-section { margin-bottom: 1.4rem; }
.member-register-notes { background: #f7fafc; border-radius: .6rem; padding: .8rem 1rem; }
.member-eshop-toolbar { display: flex; justify-content: flex-end; margin-bottom: .75rem; }
.member-eshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.member-eshop-card-item {
  border: 1px solid #d7e0ee;
  border-radius: .8rem;
  padding: .85rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.member-eshop-card-item img { width: 100%; height: 140px; object-fit: cover; border-radius: .5rem; }
.member-eshop-list .member-eshop-card-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 1rem;
}
.member-eshop-list .member-eshop-card-item img { width: 120px; height: 90px; }

@media (max-width: 900px) {
  .member-portal-welcome { flex-direction: column; }
  .member-welcome-line {
    width: 100%;
    justify-content: space-between;
  }
  .member-welcome-text { order: 1; }
  .member-point-coin { order: 2; }
  .member-eshop-list .member-eshop-card-item { grid-template-columns: 1fr; }
}

/* Certification pathway on the member dashboard */
.cert-path {
  margin-top: 1.25rem;
  padding: 1.15rem 1.15rem 1rem;
}
.cert-path-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  margin-bottom: .9rem;
}
.cert-path-kicker {
  margin: 0 0 .2rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #5b6f93;
}
.cert-path h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #0b1f3a;
}
.cert-path-standing {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin: .45rem 0 0;
  font-weight: 700;
  color: var(--primary);
  min-width: 0;
  overflow-wrap: anywhere;
}
.cert-path-standing i { flex: 0 0 auto; margin-top: .2rem; }
.cert-path-standing i { color: #0b4da2; }
.cert-path-meter { min-width: min(220px, 100%); }
.cert-path-meter p {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: #5b6f93;
  text-align: right;
}
.cert-progress {
  position: relative;
  height: .7rem;
  border-radius: 999px;
  background: #e6edf6;
  overflow: visible;
}
.cert-progress-fill {
  display: block;
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #083a7d, #0b4da2 55%, #3d8bfd);
  overflow: hidden;
  animation: cert-meter 1.15s cubic-bezier(.22, .8, .3, 1) forwards;
}
.cert-progress-flow {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0 8px,
    rgba(255, 255, 255, .34) 8px 16px
  );
  background-size: 28px 100%;
  animation: cert-flow .7s linear infinite;
}
.cert-progress.is-complete .cert-progress-flow { animation: none; opacity: .35; }
.cert-progress-runner {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 2;
  width: 0;
  height: 0;
  animation: cert-runner 1.15s cubic-bezier(.22, .8, .3, 1) forwards;
}
.cert-progress-runner i {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #0b4da2;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(11, 77, 162, .4);
  animation: cert-runner-pulse 1.15s ease-in-out infinite;
}
.cert-progress.is-complete .cert-progress-runner i {
  background: #0b4da2;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(11, 77, 162, .25);
  animation: none;
}
.cert-progress-aim {
  position: absolute;
  right: -1px;
  top: 50%;
  z-index: 1;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #f7941d;
  transform: translate(30%, -70%) rotate(45deg);
  box-shadow: 0 0 0 3px #fff;
}
.cert-progress.is-complete .cert-progress-aim { background: #0b4da2; }
@keyframes cert-meter { to { width: var(--cert-progress, 0%); } }
@keyframes cert-runner { to { left: var(--cert-progress, 0%); } }
@keyframes cert-flow { to { background-position: 28px 0; } }
@keyframes cert-runner-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 77, 162, .4); }
  70% { box-shadow: 0 0 0 8px rgba(11, 77, 162, 0); }
}
.cert-path-hold {
  margin: 0 0 .9rem;
  padding: .7rem .85rem;
  border-radius: .65rem;
  background: #fff6e8;
  border: 1px solid #f3d2a6;
  color: #8a4b08;
  font-weight: 700;
}
.cert-path-board { display: block; margin-top: 1rem; }
.cert-track {
  border-radius: .9rem;
  padding: .85rem;
}
.cert-track-cfp {
  background: #fff;
  border: 1px solid #d5e3f5;
  border-left: 4px solid #0b4da2;
}
.cert-track-cfp > .cert-track-afp {
  margin: 0 0 .9rem;
  padding: .75rem .75rem .45rem;
  background: #f4f8fc;
  border: 1px solid #d5e3f5;
  border-left: 4px solid #0b4da2;
}
.cert-track-afp.is-bypassed { opacity: .9; }
.cert-track-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .8rem;
}
.cert-track-label img { height: 42px; width: auto; }
.cert-track-cfp > .cert-track-label img { height: 48px; }
.cert-track-afp .cert-track-label img { height: 36px; }
.cert-track-label strong { display: block; color: #0b1f3a; }
.cert-track-label span { display: block; font-size: .8rem; color: #5b6f93; font-weight: 600; }
.cert-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: .65rem;
}
.cert-timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.cert-timeline-courses { width: 100%; align-items: stretch; }
.cert-timeline-row {
  display: flex;
  align-items: stretch;
  gap: .65rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cert-timeline-row > .cert-timeline-item {
  flex: 1 1 0;
  align-items: stretch;
}
.cert-timeline-row .cert-node {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  height: 100%;
  gap: .45rem;
}
.cert-timeline-row .cert-node-status { white-space: normal; }
.cert-timeline-arrow {
  display: block;
  margin: .15rem 0 .2rem;
  color: #7a96bd;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  animation: cert-node-in .35s ease both;
  animation-delay: calc(var(--i, 0) * 55ms + 120ms);
}
.cert-node {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  width: 100%;
  min-height: 0;
  padding: .75rem .9rem;
  border-radius: .75rem;
  border: 1px solid transparent;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: #16345f;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(11, 31, 58, .05);
  animation: cert-node-in .45s ease both;
  animation-delay: calc(var(--i, 0) * 55ms);
}
.cert-node:hover { transform: translateY(-1px); }
.cert-node:focus-visible {
  outline: 3px solid rgba(11, 77, 162, .35);
  outline-offset: 2px;
}
.cert-node--course { background: #b9d2f2; border-color: #0b4da2; }
.cert-node--exam { background: #f8c48a; border-color: #c56a00; }
.cert-node--cert { background: #7dce96; border-color: #1a7a3a; }
.cert-node.is-cpt,
.cert-node.is-exm {
  background: #eef1f4;
  border-color: #cfd6de;
  color: #7b8794;
  box-shadow: none;
  filter: none;
}
.cert-node.is-exm { border-style: dashed; }
.cert-node.is-cpt .cert-node-code,
.cert-node.is-exm .cert-node-code,
.cert-node.is-cpt .cert-node-title,
.cert-node.is-exm .cert-node-title,
.cert-node.is-cpt .cert-node-subtitle,
.cert-node.is-exm .cert-node-subtitle { color: #8b95a3; }
.cert-node.is-current {
  z-index: 2;
  border-width: 3px;
  border-color: #f7941d;
  animation: cert-node-in .45s ease both, cert-here 1.25s ease-in-out infinite .35s;
  animation-delay: calc(var(--i, 0) * 55ms), .35s;
  padding-top: 1.85rem;
}
.cert-node.is-selected { outline: 2px solid var(--primary); outline-offset: 3px; }
.cert-node.is-current.is-selected { outline-color: #f7941d; }
.cert-node-pin {
  position: absolute;
  top: .4rem;
  left: .55rem;
  max-width: calc(100% - 1.1rem);
  padding: .22rem .7rem;
  border-radius: 999px;
  background: #f7941d;
  color: #fff;
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 12px rgba(224, 125, 0, .45);
  animation: cert-pin 1.25s ease-in-out infinite;
}
.cert-node-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .1rem;
  min-width: 0;
  flex: 1 1 auto;
}
.cert-node-code { font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #5b6f93; }
.cert-node-title {
  font-size: .95rem;
  font-weight: 800;
  color: #0b1f3a;
  overflow-wrap: anywhere;
}
.cert-node-subtitle {
  display: block;
  margin-top: .12rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.35;
  color: #243e66;
  overflow-wrap: anywhere;
}
.cert-detail-subtitle {
  margin: 0 0 .4rem;
  font-weight: 700;
  color: #243e66;
  line-height: 1.4;
}
.cert-node-status {
  flex: 0 0 auto;
  margin: 0;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}
.cert-node.is-cpt .cert-node-status,
.cert-node.is-exm .cert-node-status { color: #8b95a3; }
.cert-node--course.is-ntc .cert-node-status { color: #083a7d; }
.cert-node--exam.is-ntc .cert-node-status { color: #8a3e00; }
.cert-node--cert.is-ntc .cert-node-status { color: #0d5a28; }
.cert-node.is-held {
  box-shadow: inset 0 0 0 2px #e0a15a, 0 6px 16px rgba(11, 31, 58, .05);
}
.cert-node.is-record {
  box-shadow: inset 0 0 0 2px #d98a1a, 0 6px 16px rgba(11, 31, 58, .05);
}
.cert-node.is-held .cert-node-status,
.cert-node.is-record .cert-node-status { color: #8a4b08; }
.cert-path-bridge {
  display: flex;
  justify-content: center;
  height: 28px;
}
.cert-path-bridge span {
  width: 2px;
  height: 100%;
  background: linear-gradient(#b7dbb0, #8eb4e0);
  position: relative;
  transform: scaleY(0);
  transform-origin: top;
  animation: cert-bridge .35s ease forwards .2s;
}
.cert-path-bridge span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #8eb4e0;
  border-bottom: 2px solid #8eb4e0;
  transform: translateX(-50%) rotate(45deg);
}
.cert-path-scroll-hint { display: none; }
.cert-path-detail {
  margin-top: .15rem;
  padding: .9rem 1rem;
  border-radius: .75rem;
  background: #f7fafc;
  border: 1px solid #e1eaf5;
  min-height: 7.5rem;
}
.cert-path-detail.is-updating { animation: cert-detail .28s ease; }
.cert-detail-kicker {
  margin: 0;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #5b6f93;
}
.cert-path-detail h3 { margin: .15rem 0 .35rem; color: #0b1f3a; font-size: 1.05rem; }
.cert-detail-status { margin: 0 0 .35rem; font-size: .8rem; font-weight: 800; }
.cert-detail-status.is-cpt,
.cert-detail-status.is-exm { color: #8b95a3; }
.cert-detail-status.is-ntc { color: #0b4da2; }
.cert-path-detail p:last-child { margin: 0; color: #243e66; line-height: 1.5; }
.cert-path-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin: .85rem 0 .35rem;
  padding: 0;
  list-style: none;
  font-size: .78rem;
  font-weight: 700;
  color: #5b6f93;
}
.cert-path-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.cert-swatch { width: .75rem; height: .75rem; border-radius: .2rem; border: 1px solid transparent; }
.cert-swatch.is-course { background: #b9d2f2; border-color: #0b4da2; }
.cert-swatch.is-exam { background: #f8c48a; border-color: #c56a00; }
.cert-swatch.is-cert { background: #7dce96; border-color: #1a7a3a; }
.cert-swatch.is-here { background: #f7941d; border-color: #c56a00; }
.cert-path-note { margin: 0; font-size: .8rem; line-height: 1.5; color: #5b6f93; }
@keyframes cert-node-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes cert-here {
  0%, 100% { box-shadow: 0 0 0 3px rgba(247, 148, 29, .55), 0 8px 18px rgba(247, 148, 29, .22); }
  50% { box-shadow: 0 0 0 10px rgba(247, 148, 29, 0), 0 10px 24px rgba(247, 148, 29, .38); }
}
@keyframes cert-pin {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.06); }
}
body.cert-step-modal-open { overflow: hidden; }
.cert-step-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cert-step-modal[hidden] { display: none; }
.cert-step-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, .62);
}
.cert-step-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(460px, 100%);
  background: #fff;
  border-radius: .85rem;
  padding: 1rem 1.15rem 1.2rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
}
.cert-step-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.cert-step-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: #5b6f93;
  padding: 0 .15rem;
}
.cert-step-modal-dialog h3 { margin: .2rem 0 .4rem; color: #0b1f3a; font-size: 1.15rem; }
.cert-step-modal-dialog p:last-child { margin: 0; color: #243e66; line-height: 1.55; }
@keyframes cert-bridge { to { transform: scaleY(1); } }
@keyframes cert-detail {
  from { opacity: .35; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .member-portal-container {
    width: 100%;
    max-width: none;
    padding-left: .85rem;
    padding-right: .85rem;
    box-sizing: border-box;
  }
  .member-portal-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .member-portal-main,
  .member-mobile-hub,
  .member-invoice-card,
  .member-cert-card {
    width: 100%;
    max-width: 100%;
    align-self: stretch;
  }
  .member-portal-sidebar {
    display: contents;
  }
  .member-portal-card {
    order: 1;
    min-width: 0;
    max-width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .member-card-toggle {
    display: block;
    cursor: pointer;
    list-style: none;
    color: inherit;
  }
  .member-card-toggle::-webkit-details-marker,
  .member-card-toggle::marker { display: none; content: ""; }
  .member-card-toggle:focus-visible {
    outline: 3px solid rgba(29, 69, 133, .28);
    outline-offset: 3px;
    border-radius: .95rem;
  }
  .member-card-toggle-label { display: none; }
  .member-card-pocket {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 2px solid #1d4585;
    border-radius: .9rem;
    padding: 1rem .95rem .85rem;
    box-shadow: 0 10px 24px rgba(11, 77, 162, .14);
  }
  .member-card-pocket-logo {
    width: min(148px, 62%);
    height: auto;
    display: block;
    margin: 0 auto .2rem;
  }
  .member-card-pocket-title {
    margin: 0 0 .35rem;
    color: #0b4da2;
    font-size: .92rem;
    font-weight: 700;
    line-height: 1.3;
  }
  .member-card-pocket-name {
    font-weight: 800;
    font-size: 1.05rem;
    color: #0b1f3a;
    line-height: 1.3;
  }
  .member-card-pocket-zh {
    margin-top: .1rem;
    color: #41557b;
    font-size: .95rem;
    line-height: 1.3;
  }
  .member-card-pocket-id-label {
    margin-top: .45rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5b6f93;
  }
  .member-card-pocket-id {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
    font-weight: 700;
    color: #1d4585;
    font-size: .98rem;
  }
  .member-card-pocket-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .12rem;
    width: 100%;
  }
  .member-card-pocket-hint {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: .7rem;
    padding: .38rem .7rem;
    border-radius: 999px;
    background: #e8f1fb;
    color: #0b4da2;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.2;
  }
  .member-card-pocket-qr { width: 1rem; height: 1rem; flex: 0 0 auto; }
  .member-card-pocket--nonmember {
    background: #fff;
    border-color: #f7941d;
    box-shadow: 0 10px 24px rgba(247, 148, 29, .16);
    padding-bottom: 0;
    overflow: hidden;
  }
  .member-card-pocket--nonmember .member-card-pocket-hint {
    background: #fff4e5;
    color: #c56a00;
  }
  .member-card-pocket-type {
    align-self: stretch;
    width: calc(100% + 1.9rem);
    margin: .75rem -.95rem 0;
    padding: .55rem .7rem;
    background: #f7941d;
    color: #fff;
    font-weight: 800;
    font-size: .82rem;
    line-height: 1.3;
    text-align: center;
  }
  .member-portal-card[open] .member-card-pocket { display: none; }
  .member-portal-card[open] .member-card-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid #d7e0ee;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(11, 77, 162, .06);
    font-weight: 800;
    color: #0b1f3a;
  }
  .member-portal-card[open] .member-card-toggle-label { display: block; }
  .member-portal-card[open] .member-card-toggle::after {
    content: "";
    flex: 0 0 auto;
    width: .5rem;
    height: .5rem;
    border-right: 2px solid #0b4da2;
    border-bottom: 2px solid #0b4da2;
    transform: rotate(225deg);
    margin-top: .2rem;
  }
  .member-portal-card[open] .member-card-body { margin-top: .85rem; }
  .member-portal-main {
    order: 2;
    min-width: 0;
    max-width: 100%;
  }
  .member-side-nav { display: none !important; }
  .member-mobile-hub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin: 0 0 1rem;
  }
  .member-hub-btn,
  .member-hub-btn > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.6rem;
    padding: .85rem .7rem;
    border-radius: .9rem;
    background: #0b4da2;
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    text-align: center;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
  }
  .member-hub-btn > summary::-webkit-details-marker { display: none; }
  .member-hub-btn.is-dashboard { background: #16345f; }
  .member-hub-btn[open] { background: #fff; color: #0b4da2; border: 2px solid #0b4da2; display: block; }
  .member-hub-btn[open] > summary { min-height: 3rem; background: transparent; color: inherit; }
  .member-hub-menu { display: flex; flex-direction: column; gap: .4rem; padding: 0 .35rem .7rem; }
  .member-hub-menu a {
    display: block;
    background: #f3f7fd;
    color: #16345f;
    text-decoration: none;
    font-weight: 700;
    border-radius: .55rem;
    padding: .7rem .6rem;
    text-align: center;
  }
  .member-mobile-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 1.25rem 0 .15rem;
    min-height: 3.1rem;
    padding: .85rem 1rem;
    border: 0;
    border-radius: .9rem;
    background: #c62828;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(198, 40, 40, .22);
  }
  .member-mobile-logout:hover,
  .member-mobile-logout:focus-visible {
    background: #a31f1f;
    color: #fff;
  }
  .member-side-nav-legacy {
    order: 0;
    position: sticky;
    top: 0;
    z-index: 40;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: .3rem;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: #fff;
    border: 1px solid #d7e0ee;
    border-radius: .85rem;
    padding: .35rem .4rem;
    box-shadow: 0 8px 20px rgba(11, 31, 58, .08);
  }
  .member-side-nav::-webkit-scrollbar { display: none; }
  .member-side-group {
    display: contents;
    border: 0;
  }
  .member-side-children { display: none; }
  .member-side-link {
    flex: 0 0 auto;
    min-width: 0;
    padding: .45rem .7rem;
    text-align: center;
    font-size: .8rem;
    line-height: 1.2;
    white-space: nowrap;
  }
  .member-side-link.is-logout { color: #b42318; }
  .member-dash-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .member-dash-banner .btn { width: 100%; text-align: center; }
  .member-calendar-card { padding: .75rem; overflow: hidden; }
  .member-calendar-grid { gap: .2rem; }
  .member-calendar-dow { font-size: .68rem; }
  .member-calendar-cell {
    min-height: 54px;
    padding: .2rem;
  }
  .member-calendar-day { font-size: .72rem; margin-bottom: .1rem; }
  .member-calendar-item {
    font-size: .62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .member-calendar-item .member-type-badge {
    display: none;
  }
  .cert-path { overflow-x: hidden; }
  .cert-path-head { flex-direction: column; align-items: stretch; }
  .cert-path-meter p { text-align: left; }
  .cert-node {
    align-items: flex-start;
    padding: .7rem .75rem;
  }
  .cert-node.is-current { padding-top: 1.75rem; }
  .cert-node-status {
    white-space: normal;
    text-align: right;
    max-width: 7.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cert-node,
  .cert-node.is-current,
  .cert-node-pin,
  .cert-progress-fill,
  .cert-progress-flow,
  .cert-progress-runner,
  .cert-progress-runner i,
  .cert-path-bridge span,
  .cert-timeline-arrow,
  .cert-path-detail.is-updating {
    animation: none;
  }
  .cert-progress-fill { width: var(--cert-progress, 0%); }
  .cert-progress-runner { left: var(--cert-progress, 0%); }
  .cert-path-bridge span { transform: scaleY(1); }
}

