:root {
  color-scheme: light;
  font-family: "Segoe UI", "Noto Sans Thai", Tahoma, sans-serif;
  background: #f4f7fb;
  color: #14213d;
  font-size: 16px;
  line-height: 1.5;
  --page-max: 1280px;
  --page-gutter: clamp(18px, 4vw, 56px);
}

/* Thai Research Radar entry points */
.nav-tabs .research-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #082f3f;
  background: #e9b95d;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-tabs .research-nav-link:hover {
  color: #082f3f;
  background: #f6d590;
}

.public-nav-more-menu .research-more-link {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(8, 47, 63, 0.14);
  border-radius: 8px;
  color: #082f3f;
  background: #f6e4b8;
  text-decoration: none;
}

.public-nav-more-menu .research-more-link:hover {
  color: #fff;
  border-color: #082f3f;
  background: #082f3f;
}

.public-nav-more-menu .research-more-link strong,
.public-nav-more-menu .research-more-link small {
  display: block;
}

.public-nav-more-menu .research-more-link small {
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
  font-weight: 500;
}

@media (max-width: 1040px) {
  .public-nav-more-menu .research-more-link {
    display: grid !important;
  }
}

.research-home-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 34px;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #082f3f;
  background-size: 50px 50px;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(8, 47, 63, 0.2);
}

.research-home-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 800px;
}

.research-home-copy > span {
  color: #e9b95d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.research-home-copy h2 {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.research-home-copy p {
  max-width: 730px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.02rem;
  line-height: 1.75;
}

.research-home-copy a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding: 11px 17px;
  color: #082f3f;
  background: #a8d7c4;
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}

.research-home-signal {
  position: relative;
  align-self: center;
  aspect-ratio: 1;
  border: 1px solid rgba(168, 215, 196, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 215, 196, 0.16), transparent 62%);
}

.research-home-signal i {
  position: absolute;
  border: 1px solid rgba(168, 215, 196, 0.28);
  border-radius: 50%;
}

.research-home-signal i:nth-child(1) { inset: 18%; }
.research-home-signal i:nth-child(2) { inset: 36%; }
.research-home-signal i:nth-child(3) { left: 50%; top: 0; bottom: 0; width: 1px; border: 0; border-radius: 0; background: rgba(168, 215, 196, 0.25); }
.research-home-signal b { position: absolute; left: calc(50% - 6px); top: calc(50% - 6px); width: 12px; height: 12px; border-radius: 50%; background: #ef5b3f; box-shadow: 0 0 18px #ef5b3f; }
.research-home-signal strong { position: absolute; right: 4%; bottom: 13%; font-size: 3.5rem; line-height: 0.85; }
.research-home-signal small { display: block; margin-top: 12px; font-size: 0.58rem; letter-spacing: 0.12em; }
.research-home-topics { position: relative; z-index: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.research-home-topics span { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.72); font-size: 0.78rem; border-radius: 999px; }

@media (max-width: 1040px) {
  .public-nav .research-nav-link {
    display: inline-flex !important;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .research-home-spotlight { grid-template-columns: 1fr; }
  .research-home-signal { width: min(70vw, 260px); justify-self: center; }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(233, 240, 249, 0.7), rgba(244, 247, 251, 0) 330px),
    #f4f7fb;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px var(--page-gutter);
  background: #002b5f;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 24, 61, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.brand strong {
  display: block;
  font-size: 1.28rem;
  line-height: 1.1;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  max-width: min(42vw, 360px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand > span:not(.brand-mark) {
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 27px;
  height: 27px;
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  min-width: 0;
}

.nav-tabs button,
.admin-shortcut {
  border: 0;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  height: 44px;
  padding: 0 16px;
  border-radius: 7px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-tabs button.is-active,
.nav-tabs button:hover,
.admin-shortcut:hover,
.admin-shortcut.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 36px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.language-switch button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.language-switch button:hover,
.language-switch button.is-active {
  background: rgba(255, 255, 255, 0.18);
}

.flag-icon {
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.flag-th {
  background: linear-gradient(
    to bottom,
    #a51931 0 16.5%,
    #fff 16.5% 33%,
    #2d2a4a 33% 67%,
    #fff 67% 83.5%,
    #a51931 83.5% 100%
  );
}

.flag-en {
  background:
    linear-gradient(34deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(146deg, transparent 0 42%, #fff 42% 47%, #c8102e 47% 53%, #fff 53% 58%, transparent 58%),
    linear-gradient(to bottom, transparent 0 38%, #fff 38% 44%, #c8102e 44% 56%, #fff 56% 62%, transparent 62%),
    linear-gradient(to right, transparent 0 40%, #fff 40% 46%, #c8102e 46% 54%, #fff 54% 60%, transparent 60%),
    #012169;
}

.admin-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.app-grid {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr) 282px;
  gap: 20px;
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px 0 28px;
}

.filter-panel,
.summary-panel {
  min-width: 0;
}

.filter-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-panel h2,
.summary-card h2,
.method-card h2,
.status-card h2,
.data-head h2,
.edit-panel h2,
.backup-panel h2 {
  margin: 0;
  color: #0d2552;
  font-size: 1.04rem;
  line-height: 1.25;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
  background: #fff;
  color: #517099;
  box-shadow: 0 10px 24px rgba(29, 63, 114, 0.06);
}

.searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #102447;
  background: transparent;
  font-size: 0.9rem;
}

.filter-group {
  display: grid;
  gap: 7px;
}

.filter-group label,
.edit-panel label {
  color: #233a63;
  font-size: 0.86rem;
  font-weight: 700;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid #d6deeb;
  border-radius: 7px;
  background: #fff;
  color: #152845;
  outline: 0;
}

input[readonly] {
  background: #f5f8fc;
  color: #66758a;
  cursor: not-allowed;
}

select,
input {
  height: 42px;
  padding: 0 11px;
}

textarea {
  resize: vertical;
  min-height: 92px;
  padding: 10px 11px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent);
}

.system-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.system-button {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px 8px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  color: #132847;
  text-align: left;
  box-shadow: 0 8px 20px rgba(24, 56, 98, 0.04);
}

.system-button.is-active {
  border-color: var(--item-accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--item-accent) 10%, #fff), #fff);
  box-shadow: inset 4px 0 0 var(--item-accent), 0 12px 26px rgba(25, 66, 113, 0.08);
}

.system-logo,
.rank-logo {
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 7px;
  background: var(--item-accent, var(--accent));
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.system-logo {
  width: 44px;
  height: 36px;
  font-size: 0.72rem;
}

.system-text {
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.25;
}

.system-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 24px;
  border-radius: 6px;
  background: #073f8f;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
}

.main-panel {
  min-width: 0;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.page-heading.wide {
  max-width: 1280px;
  margin: 0 auto 18px;
}

.page-heading h1 {
  margin: 0;
  color: #092257;
  font-size: clamp(1.65rem, 2vw, 2.25rem);
  line-height: 1.15;
  font-weight: 900;
}

.page-heading p {
  margin: 6px 0 0;
  color: #56677f;
  font-size: 0.98rem;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.primary-button,
.orange-button,
.ghost-button,
.outline-button,
.danger-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--accent) 22%, transparent);
}

.orange-button {
  border: 1px solid #f08a00;
  background: linear-gradient(180deg, #ff9f1c, #ed7d00);
  color: #fff;
  box-shadow: 0 14px 28px rgba(237, 125, 0, 0.22);
}

.ghost-button,
.outline-button {
  border: 1px solid #d6deeb;
  background: #fff;
  color: #16427a;
}

.outline-button {
  margin-left: auto;
}

.danger-button {
  border: 1px solid #d9485f;
  background: #fff1f3;
  color: #a61f35;
}

.text-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: #0b52b7;
  padding: 0;
}

.compact {
  min-height: 36px;
  padding-inline: 10px;
}

.full {
  width: 100%;
}

.file-button {
  position: relative;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.category-card {
  position: relative;
  min-height: 76px;
  padding: 12px 12px 10px 54px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 24%, #dce4ee);
  border-radius: 8px 8px 0 0;
  background: var(--cat-accent);
  color: #fff;
  text-align: left;
  overflow: hidden;
}

.category-card.is-active {
  box-shadow: inset 0 -5px 0 #fff, 0 13px 28px color-mix(in srgb, var(--cat-accent) 20%, transparent);
}

.category-card strong,
.category-card small {
  display: block;
  min-width: 0;
}

.category-card strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.category-card small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.25;
}

.cat-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--cat-accent, var(--accent));
  font-size: 1.15rem;
  font-weight: 900;
}

.category-card .cat-number {
  position: absolute;
  top: 12px;
  left: 12px;
}

.ranking-board,
.summary-card,
.note-card,
.filter-panel > h2,
.filter-group,
.edit-panel,
.data-panel,
.backup-panel article,
.category-detail {
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(35, 66, 107, 0.07);
}

.ranking-board {
  padding: 16px;
}

.filter-panel > h2,
.filter-group {
  padding: 12px;
}

.board-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.board-title > div:nth-child(2) {
  min-width: 0;
}

.board-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.board-actions .outline-button {
  margin-left: 0;
}

.share-menu {
  position: relative;
  display: inline-block;
}

.share-menu summary {
  list-style: none;
  cursor: pointer;
}

.share-menu summary::-webkit-details-marker {
  display: none;
}

.share-menu[open] summary {
  border-color: var(--accent);
  color: var(--accent);
}

.share-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  min-width: 210px;
  padding: 8px;
  border: 1px solid #d7e0ed;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(18, 43, 74, 0.16);
}

.share-menu-panel button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #16427a;
  font-weight: 800;
  text-align: left;
}

.share-menu-panel button:hover {
  background: #f2f7ff;
  color: var(--accent);
}

.rank-logo {
  width: 58px;
  height: 52px;
  font-size: 1.08rem;
  background: var(--accent);
  flex: 0 0 auto;
}

.board-title h2 {
  margin: 0;
  color: #092257;
  font-size: 1.3rem;
  line-height: 1.25;
}

.board-title p {
  margin: 3px 0 0;
  color: #617089;
  font-size: 0.9rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}

.ranking-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

.ranking-table th {
  height: 44px;
  padding: 8px 12px;
  background: #f6f9fd;
  color: #28405f;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: left;
  border-bottom: 1px solid #dce4ef;
}

.ranking-table td {
  height: 48px;
  padding: 8px 12px;
  border-bottom: 1px solid #e7edf5;
  color: #172945;
  font-size: 0.88rem;
  vertical-align: middle;
}

.ranking-table tr:last-child td {
  border-bottom: 0;
}

.ranking-table strong,
.ranking-table small {
  display: block;
}

.ranking-table small {
  margin-top: 2px;
  color: #65748b;
  font-size: 0.74rem;
}

.ranking-table tr.is-selected td {
  background: var(--soft);
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 900;
}

.rank-badge.is-tied {
  background: #fff7e8;
  color: #9a4f00;
  box-shadow: inset 0 0 0 1px #f4c56e;
}

.rank-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.rank-inline small {
  color: #6c7b90;
  font-size: 0.66em;
  font-weight: 850;
}

.rank-inline.is-tied {
  color: #9a4f00;
}

.rank-tie-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  min-width: 0;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #f1d59a;
  border-left: 4px solid #f0a22a;
  border-radius: 8px;
  background: #fff9ed;
}

.rank-tie-note.is-compact {
  margin-top: 4px;
}

.rank-tie-note strong,
.rank-tie-note p {
  margin: 0;
}

.rank-tie-note strong {
  color: #7b4208;
  font-size: 0.92rem;
}

.rank-tie-note p {
  margin-top: 3px;
  color: #6a5a45;
  font-size: 0.82rem;
  line-height: 1.45;
}

.rank-tie-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.rank-tie-chip {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #efd08c;
  border-radius: 999px;
  background: #fff;
  color: #7b4208;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.rank-tie-chip b {
  color: #0d3470;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0c4a91;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-pill small {
  color: inherit;
  font-size: 0.66rem;
  font-weight: 850;
  opacity: 0.82;
}

.status-pill.is-verified,
.status-pill.is-published {
  background: #e9f8ef;
  color: #08723f;
}

.status-pill.is-pending {
  background: #fff7e6;
  color: #93620a;
}

.status-pill.is-needs-fix,
.status-pill.is-needs-fix.review-pill {
  background: #fff0ed;
  color: #af2f20;
}

.status-pill.is-source,
.status-pill.is-source.review-pill {
  background: #eef6ff;
  color: #0d52a5;
}

.status-pill.is-seed {
  background: #eef2f7;
  color: #53657d;
}

.review-pill.compact-review-pill {
  min-height: 24px;
  padding: 0 7px;
  font-size: 0.68rem;
  white-space: nowrap;
}

.ranking-card-list {
  display: none;
}

.ranking-mobile-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 56, 98, 0.04);
}

.mobile-rank-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.ranking-mobile-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.ranking-mobile-card dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5edf6;
  border-radius: 7px;
  background: #f8fbff;
}

.ranking-mobile-card dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.ranking-mobile-card dd {
  margin: 0;
  color: #172945;
  font-size: 0.86rem;
  font-weight: 800;
}

.ranking-mobile-card dd small {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.72rem;
}

.muted {
  color: #8b98aa;
}

.row-actions {
  display: inline-flex;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d7e0ed;
  border-radius: 7px;
  background: #fff;
  color: #16427a;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.icon-button.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 4px 0;
  color: #607087;
  font-size: 0.84rem;
}

.summary-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-card,
.note-card {
  padding: 14px;
}

.summary-card dl {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
}

.summary-card dl div {
  display: grid;
  gap: 2px;
}

.summary-card dt {
  color: #566981;
  font-size: 0.75rem;
  font-weight: 800;
}

.summary-card dd {
  margin: 0;
  color: #152845;
  font-size: 0.91rem;
  font-weight: 700;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #064fb0;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-link.is-disabled,
.mini-source-link.is-disabled,
.ghost-button.is-disabled {
  color: #7d8ca0;
  cursor: not-allowed;
}

.method-card ul,
.indicator-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.method-card li,
.indicator-list li {
  position: relative;
  padding-left: 18px;
  color: #344762;
  font-size: 0.86rem;
}

.method-card li::before,
.indicator-list li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.status-line,
.note-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.status-line {
  margin: 13px 0;
  color: #2d445e;
  font-size: 0.85rem;
}

.status-line svg {
  color: #0e9f6e;
  flex: 0 0 auto;
}

.note-card {
  background: #fff8e8;
  border-color: #f5d89c;
  color: #745118;
}

.note-card p {
  margin: 0;
  font-size: 0.83rem;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 300px;
  color: #5c6c83;
  text-align: center;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
}

.empty-state h3,
.empty-state p {
  margin: 0;
}

.content-page,
.admin-page {
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px 0 34px;
}

.category-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto 18px;
}

.source-guide-page {
  display: grid;
  gap: 18px;
}

.source-guide-heading {
  align-items: flex-end;
}

.source-guide-hero {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.source-guide-hero > div {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(13, 37, 82, 0.06);
}

.source-guide-hero strong {
  color: #0d2552;
  font-size: 1.7rem;
  line-height: 1;
}

.source-guide-hero span {
  color: #61758f;
  font-size: 0.86rem;
  font-weight: 800;
}

.source-guide-summary {
  display: grid;
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.source-guide-table-wrap {
  overflow-x: auto;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fff;
}

.source-guide-summary-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.source-guide-summary-table th,
.source-guide-summary-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #233a63;
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

.source-guide-summary-table th {
  background: #f5f8fc;
  color: #0d2552;
  font-size: 0.76rem;
  font-weight: 950;
}

.source-guide-summary-table tr:last-child td {
  border-bottom: 0;
}

.source-guide-table-source {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.source-guide-table-source .mini-system-logo {
  width: 44px;
  height: 34px;
  margin-left: 0;
}

.source-guide-table-source strong,
.source-guide-table-source small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-guide-table-source small {
  color: #667790;
  font-size: 0.72rem;
  white-space: nowrap;
}

.source-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 1280px;
  margin: 0 auto;
}

.source-guide-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce5f1;
  border-top: 5px solid var(--item-accent);
  border-radius: 8px;
  background: #fff;
}

.source-guide-card.is-selected {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--item-accent) 30%, transparent), 0 18px 38px rgba(13, 37, 82, 0.08);
}

.source-guide-card-head,
.source-guide-detail-head,
.guide-admin-current {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.source-guide-card-head h2,
.source-guide-card-head span,
.source-guide-card h3,
.source-guide-card p {
  margin: 0;
}

.source-guide-card-head span {
  color: #697b92;
  font-size: 0.78rem;
  font-weight: 900;
}

.source-guide-card-head h2 {
  color: #0d2552;
  font-size: 1rem;
}

.source-guide-card h3 {
  color: #132847;
  font-size: 0.98rem;
  line-height: 1.35;
}

.source-guide-card p {
  color: #506176;
  font-size: 0.88rem;
  line-height: 1.55;
}

.source-guide-card-actions,
.source-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-guide-card-actions .follow-button,
.source-guide-actions .follow-button {
  min-width: fit-content;
}

.source-guide-detail-list {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.source-guide-detail {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #dbe6f3;
  border-left: 5px solid var(--item-accent);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(13, 37, 82, 0.06);
}

.source-guide-detail.is-featured {
  background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--item-soft) 36%, #fff));
}

.source-guide-detail-head h2,
.source-guide-detail-head p {
  margin: 0;
}

.source-guide-detail-head h2 {
  color: #0d2552;
  font-size: 1.35rem;
  line-height: 1.28;
}

.source-guide-detail-head p {
  margin-top: 4px;
  color: #61758f;
  font-weight: 800;
}

.source-guide-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.source-guide-facts div {
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #f8fbff;
}

.source-guide-facts dt {
  color: #61758f;
  font-size: 0.78rem;
  font-weight: 900;
}

.source-guide-facts dd {
  margin: 5px 0 0;
  color: #162b49;
  font-size: 0.9rem;
  line-height: 1.55;
}

.source-guide-body {
  max-width: 940px;
}

.guide-admin-current {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #f8fbff;
}

.guide-admin-current strong,
.guide-admin-current span {
  display: block;
}

.guide-admin-current strong {
  color: #0d2552;
}

.guide-admin-current span {
  margin-top: 2px;
  color: #61758f;
  font-size: 0.82rem;
  font-weight: 800;
}

.category-detail {
  padding: 14px;
  border-top: 5px solid var(--cat-accent);
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 11px;
}

.detail-head h2,
.detail-head p {
  margin: 0;
}

.detail-head h2 {
  color: var(--accent-text);
  font-size: 1.02rem;
  line-height: 1.28;
}

.detail-head p {
  color: #6a788d;
  font-size: 0.78rem;
  line-height: 1.3;
}

.detail-summary {
  min-height: 116px;
  margin: 13px 0;
  color: #31445f;
  font-size: 0.86rem;
}

.mini-system-list {
  display: grid;
  gap: 8px;
}

.mini-system-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: stretch;
}

.mini-system-list button {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 50px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  background: #fff;
  color: #182d4b;
  text-align: left;
}

.mini-source-link {
  display: inline-grid;
  place-items: center;
  width: 42px;
  min-height: 50px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  background: #fff;
  color: var(--cat-accent);
  text-decoration: none;
}

.mini-source-link span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.mini-system-list .mini-system-logo {
  display: grid;
  place-items: center;
  height: 34px;
  margin-left: 7px;
  border-radius: 6px;
  background: var(--cat-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.mini-system-list strong {
  padding-right: 8px;
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(210px, 0.7fr);
  gap: 10px;
  max-width: 1280px;
  margin: 0 auto 14px;
}

.admin-tab-group {
  --group-accent: #0d52a5;
  --group-soft: #eef5ff;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid color-mix(in srgb, var(--group-accent) 18%, #d7e0ed);
  border-radius: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--group-soft) 72%, #fff), #fff);
}

.admin-tab-group.is-data {
  --group-accent: #0d52a5;
  --group-soft: #eef5ff;
}

.admin-tab-group.is-registry {
  --group-accent: #158263;
  --group-soft: #edf9f4;
}

.admin-tab-group.is-content {
  --group-accent: #c46216;
  --group-soft: #fff4e7;
}

.admin-tab-group-label {
  width: 100%;
  color: var(--group-accent);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
}

.admin-tabs button,
.admin-tabs .admin-tab-link {
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--group-accent) 22%, #d7e0ed);
  border-radius: 7px;
  background: #fff;
  color: #1c365e;
  padding: 0 12px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-tabs button.is-active {
  border-color: var(--group-accent);
  background: var(--group-accent);
  color: #fff;
}

.admin-tabs button:hover,
.admin-tabs button:focus-visible,
.admin-tabs .admin-tab-link:hover,
.admin-tabs .admin-tab-link:focus-visible {
  border-color: var(--group-accent);
  color: var(--group-accent);
}

.admin-tabs .admin-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
}

.admin-tabs .admin-tab-link svg {
  width: 17px;
  height: 17px;
}

.admin-tabs button.is-active:hover,
.admin-tabs button.is-active:focus-visible {
  color: #fff;
}

.admin-dashboard {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.dashboard-hero h2,
.dashboard-hero p,
.dashboard-panel h3,
.dashboard-panel p {
  margin: 0;
}

.dashboard-hero h2 {
  margin-top: 3px;
  color: #0d2552;
  font-size: 1.25rem;
  line-height: 1.25;
}

.dashboard-hero p,
.dashboard-panel p {
  color: #63758f;
  line-height: 1.55;
}

.dashboard-hero-actions,
.dashboard-next-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-stat-card,
.dashboard-health-grid article,
.dashboard-publish-row article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(27, 62, 105, 0.06);
}

.dashboard-stat-card span,
.dashboard-health-grid span,
.dashboard-publish-row span {
  color: #607087;
  font-size: 0.78rem;
  font-weight: 900;
}

.dashboard-stat-card strong,
.dashboard-health-grid strong {
  color: #0d2552;
  font-size: 1.55rem;
  line-height: 1.05;
}

.dashboard-stat-card small,
.dashboard-publish-row small {
  color: #65748a;
  font-size: 0.78rem;
  line-height: 1.45;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
}

.dashboard-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-panel h3 {
  color: #0d2552;
  font-size: 1.05rem;
  line-height: 1.3;
}

.dashboard-health-grid,
.dashboard-publish-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dashboard-health-grid .is-critical {
  border-color: #f1c8c4;
  background: #fff7f6;
}

.dashboard-health-grid .is-warning {
  border-color: #f3d49e;
  background: #fff9ed;
}

.dashboard-health-grid .is-ok {
  border-color: #c9eadb;
  background: #f2fbf6;
}

.dashboard-publish-row strong {
  color: #0d2552;
  font-size: 0.96rem;
  line-height: 1.35;
}

.report-queue-list {
  display: grid;
  gap: 10px;
}

.report-queue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-left: 5px solid #0d52a5;
  border-radius: 8px;
  background: #f9fcff;
}

.report-queue-item.is-reviewing {
  border-left-color: #e08316;
}

.report-queue-item.is-resolved {
  border-left-color: #158263;
  opacity: 0.82;
}

.report-queue-item h4,
.report-queue-item p {
  margin: 0;
}

.report-queue-item h4 {
  color: #0d2552;
  font-size: 0.92rem;
  line-height: 1.35;
}

.report-queue-item p {
  margin-top: 5px;
  color: #45576f;
  font-size: 0.84rem;
  line-height: 1.55;
}

.report-queue-item small {
  display: block;
  margin-top: 5px;
  color: #718198;
  font-size: 0.74rem;
  line-height: 1.45;
}

.report-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0d52a5;
  font-size: 0.72rem;
  font-weight: 950;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(390px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.content-admin-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.content-form-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

[data-update-language-field][hidden],
[data-native-update-language-editor][data-editor-language="th"] [data-update-language-field="en"],
[data-native-update-language-editor][data-editor-language="en"] [data-update-language-field="th"] {
  display: none !important;
}

.editor-link-dialog .editor-link-dialog__submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 52px;
  padding: 12px 24px !important;
  border: 1px solid #0756a3 !important;
  border-radius: 10px;
  background: #0756a3 !important;
  color: #ffffff !important;
  font-weight: 800;
  line-height: 1.2;
  opacity: 1 !important;
  visibility: visible !important;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 86, 163, 0.2);
}

.editor-link-dialog .editor-link-dialog__submit:hover,
.editor-link-dialog .editor-link-dialog__submit:focus-visible {
  border-color: #003f7d !important;
  background: #003f7d !important;
}

.edit-panel,
.data-panel {
  padding: 16px;
  min-width: 0;
}

.edit-panel.is-editing {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent), 0 14px 36px rgba(35, 66, 107, 0.07);
}

.form-head,
.data-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.form-head p,
.data-head p {
  margin: 4px 0 0;
  color: #68778b;
  font-size: 0.86rem;
}

.form-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid #cddcf0;
  border-radius: 999px;
  background: #f3f7fc;
  color: #31506f;
  font-size: 0.72rem;
  font-weight: 900;
}

.mode-pill.is-editing {
  border-color: color-mix(in srgb, var(--accent) 28%, #cddcf0);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent-text);
}

.form-context {
  display: block;
  margin-top: 5px;
  color: #7a8899;
  font-size: 0.76rem;
  font-weight: 700;
}

.rich-editor-toolbar {
  display: grid;
  gap: 12px;
  margin: 8px 0 12px;
}

.editor-main-toolbar,
.editor-helper-toolbar {
  border: 1px solid #eadbd6;
  border-radius: 12px;
  background: #fffdfc;
}

.editor-main-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
}

.editor-format-select {
  width: auto;
  min-width: 150px;
  min-height: 42px;
  padding: 0 12px;
  border-color: #eadbd6;
  border-radius: 10px;
  background: #fff;
  color: #2d1f1c;
  font-weight: 900;
}

.editor-icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #eadbd6;
  border-radius: 10px;
  background: #fff;
  color: #613328;
  font-size: 1rem;
  font-weight: 900;
}

.editor-color-label {
  margin-left: 8px;
  color: #74645f;
  font-size: 0.84rem;
  font-weight: 900;
}

.editor-color-swatches {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.editor-color-swatch {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid #eadbd6;
  border-radius: 999px;
  background: var(--swatch);
  color: transparent;
}

.editor-color-swatch:first-child {
  border-radius: 8px;
}

.editor-color-swatch span {
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.editor-helper-toolbar {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.editor-helper-toolbar strong {
  color: #74645f;
  font-size: 0.86rem;
}

.editor-helper-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-helper-button {
  min-height: 38px;
  border-color: #eadbd6;
  color: #67392f;
}

.editor-upload-button {
  position: relative;
  overflow: hidden;
}

.editor-helper-button input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.edit-panel .form-field {
  display: grid;
  gap: 6px;
}

.field-label {
  color: #0d2552;
  font-weight: 900;
}

.rich-editor-shell {
  overflow: hidden;
  border: 1px solid #eadbd6;
  border-radius: 12px;
  background: #fff;
}

.editor-mode-tabs {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-bottom: 1px solid #eadbd6;
  background: #fffdfc;
}

.editor-mode-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #67392f;
  font-weight: 900;
}

.editor-mode-tab.is-active {
  border-color: #cbd9ec;
  background: #eaf2ff;
  color: #0d4f96;
}

.rich-editor-visual,
.rich-editor-html {
  min-height: 420px;
  background: #fff;
  line-height: 1.65;
}

.rich-editor-visual {
  padding: 16px;
  outline: none;
}

.rich-editor-visual:empty::before {
  content: attr(data-placeholder);
  color: #8b98a8;
}

.rich-editor-html {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  font-family: Consolas, "Courier New", monospace;
  resize: vertical;
}

.rich-editor-shell[data-mode="visual"] .rich-editor-html,
.rich-editor-shell[data-mode="html"] .rich-editor-visual {
  display: none;
}

.admin-searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 330px);
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d6deeb;
  border-radius: 7px;
  background: #fff;
  color: #55708f;
}

.admin-searchbox input {
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

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

.edit-panel label {
  display: grid;
  gap: 6px;
}

.span-2 {
  grid-column: span 2;
}

.color-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.color-input-row input[type="color"] {
  flex: 0 0 44px;
  width: 44px;
  height: 34px;
  padding: 2px;
  border: 1px solid #cbd8e8;
  border-radius: 7px;
  background: #fff;
}

.color-input-row code {
  color: #0d2552;
  font-size: 0.82rem;
  font-weight: 900;
}

.color-source-pill {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0d52a5;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.release-month-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  background: #f8fbff;
}

.release-month-picker-head {
  display: grid;
  gap: 3px;
}

.release-month-picker-head span {
  color: #173456;
  font-weight: 900;
}

.release-month-picker-head small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.release-month-picker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.release-month-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 9px;
  border: 1px solid #d6e1ef;
  border-radius: 8px;
  background: #fff;
  color: #15345c;
  cursor: pointer;
}

.release-month-toggle:hover {
  border-color: #b7cfea;
  background: #f4f9ff;
}

.release-month-toggle:has(input:checked) {
  border-color: #8ebbe9;
  background: #edf6ff;
  box-shadow: inset 0 0 0 1px rgba(0, 85, 166, 0.12);
}

.release-month-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0055a6;
  grid-row: span 2;
}

.release-month-toggle span,
.release-month-toggle small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.release-month-toggle span {
  color: #0d2552;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.1;
}

.release-month-toggle small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.1;
}

.form-actions,
.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.compact-table .ranking-table {
  min-width: 480px;
}

.entry-edit-table .ranking-table {
  min-width: 760px;
}

.admin-university-finder {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4ebf5;
}

.entry-data-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-data-panel .admin-edit-helper {
  order: 0;
}

.entry-data-panel .admin-entry-search {
  order: 1;
}

.entry-data-panel .entry-filter-bar {
  order: 1;
}

.entry-data-panel .admin-entry-head {
  order: 2;
}

.entry-data-panel .compact-table {
  order: 3;
}

.entry-data-panel .admin-university-finder {
  order: 4;
  margin-top: 4px;
  margin-bottom: 0;
  padding-top: 14px;
  padding-bottom: 0;
  border-top: 1px solid #e4ebf5;
  border-bottom: 0;
}

.admin-edit-helper {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #d8e5f4;
  border-radius: 8px;
  background: #f6faff;
}

.admin-edit-helper strong {
  color: #0d2552;
  font-size: 0.92rem;
}

.admin-edit-helper span {
  color: #637287;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-entry-search {
  width: 100%;
}

.entry-filter-bar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(150px, 0.45fr) minmax(110px, 0.3fr);
  gap: 10px;
  align-items: end;
}

.entry-filter-control {
  display: grid;
  gap: 5px;
  color: #0d2552;
  font-size: 0.78rem;
  font-weight: 900;
}

.entry-filter-control select {
  min-height: 40px;
  border-radius: 7px;
}

.entry-edit-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  background: #f6faff;
}

.entry-edit-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: #405b78;
  font-size: 0.78rem;
  font-weight: 800;
}

.entry-edit-summary span:first-child {
  color: #0d2552;
}

.entry-edit-summary.is-new {
  border-color: #e1e8f2;
  background: #fbfdff;
}

.entry-world-rank,
.entry-score {
  white-space: nowrap;
  font-weight: 800;
}

.entry-edit-button {
  width: auto;
  min-width: 92px;
  justify-content: center;
}

.entry-edit-button.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  color: var(--accent-text);
}

.finder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.finder-head h2 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.25;
}

.finder-head p {
  margin: 4px 0 0;
  color: #68778b;
  font-size: 0.82rem;
}

.university-finder-search {
  width: 100%;
}

.admin-university-results {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.admin-university-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content action"
    "content logo";
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.admin-university-result.is-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, #fff);
}

.admin-university-result .result-logo {
  grid-area: logo;
  justify-self: end;
  align-self: end;
  width: 40px;
  height: 40px;
}

.admin-university-result > div {
  grid-area: content;
  min-width: 0;
}

.admin-university-result > .primary-button,
.admin-university-result > .ghost-button {
  grid-area: action;
  justify-self: end;
  width: auto;
  min-width: 116px;
  max-width: 140px;
}

.admin-university-result strong,
.admin-university-result small,
.admin-university-result span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-university-result strong {
  color: #132847;
  font-size: 0.88rem;
  line-height: 1.3;
}

.admin-university-result small,
.admin-university-result span {
  color: #6d7e94;
  font-size: 0.72rem;
  line-height: 1.35;
}

.compact-table .icon-button[data-action="edit-entry"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 76px;
  padding: 0 10px;
  gap: 6px;
}

.compact-table .icon-button[data-action="edit-entry"]::after {
  content: "แก้ไข";
  font-size: 0.76rem;
  font-weight: 900;
}

.system-admin-list {
  display: grid;
  gap: 10px;
}

.content-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.content-admin-list:first-of-type {
  margin-top: 0;
}

.content-admin-list h3 {
  margin: 0;
  color: #0d2552;
  font-size: 0.96rem;
  line-height: 1.25;
}

.content-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
}

.content-admin-item.has-cover {
  grid-template-columns: 86px minmax(0, 1fr) auto;
}

.content-admin-cover {
  width: 86px;
  height: 54px;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #eaf2ff;
}

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

.content-admin-cover.is-placeholder {
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid #cddcf0;
  color: #0d52a5;
  text-align: center;
}

.content-admin-cover.is-placeholder span {
  font-size: 0.66rem;
}

.content-admin-cover.is-placeholder small {
  font-size: 0.58rem;
}

.content-admin-item.is-editing {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent);
}

.content-admin-item h4,
.content-admin-item p {
  margin: 0;
}

.content-admin-item h4 {
  margin-top: 3px;
  color: #132847;
  font-size: 0.9rem;
  line-height: 1.32;
}

.content-admin-item p {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.4;
}

.content-admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.release-admin-layout {
  align-items: start;
}

.release-admin-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

.release-admin-item .content-admin-cover {
  width: 64px;
  height: 48px;
  aspect-ratio: auto;
  margin: 0;
}

.release-admin-months {
  color: #0d52a5 !important;
  font-weight: 850;
}

.university-registry-overview {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.registry-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.registry-stat-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #f8fbff;
}

.registry-stat-grid span,
.registry-stat-grid small {
  color: #63758e;
  font-size: 0.76rem;
  font-weight: 850;
}

.registry-stat-grid strong {
  color: #0d2552;
  font-size: 1.36rem;
  line-height: 1.1;
}

.registry-duplicate-list {
  display: grid;
  gap: 10px;
}

.registry-duplicate-list > strong {
  color: #0d2552;
  font-size: 0.94rem;
}

.registry-duplicate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #f2d7b5;
  border-left: 4px solid #f0a22a;
  border-radius: 8px;
  background: #fffaf0;
}

.registry-duplicate-item h4,
.registry-duplicate-item p {
  margin: 0;
}

.registry-duplicate-item h4 {
  color: #0d2552;
  font-size: 0.9rem;
}

.registry-duplicate-item p {
  margin-top: 3px;
  color: #73551d;
  font-size: 0.76rem;
  line-height: 1.4;
}

.university-admin-item {
  grid-template-columns: 58px minmax(0, 1fr) auto;
}

.university-region-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.university-region-summary button,
.university-region-summary a,
.university-region-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #d9e5f4;
  border-radius: 8px;
  background: #f7fbff;
  color: #42536b;
  font-size: 0.76rem;
  font-weight: 850;
  text-decoration: none;
}

.university-region-summary button,
.university-region-summary a {
  cursor: pointer;
}

.university-region-summary button:hover,
.university-region-summary button:focus-visible,
.university-region-summary a:hover,
.university-region-summary a:focus-visible,
.university-region-summary a.is-active {
  border-color: #a9c9f6;
  background: #eef6ff;
  color: #0b4f9c;
}

.university-region-summary em {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e8f1ff;
  color: #0d52a5;
  font-style: normal;
}

.university-region-list {
  display: grid;
  gap: 18px;
  margin-top: 16px;
}

.university-region-group {
  min-width: 0;
}

.university-region-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 8px;
  border-bottom: 1px solid #dbe6f3;
}

.university-region-head h3,
.university-region-head p {
  margin: 0;
}

.university-region-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0d2552;
  font-size: 0.98rem;
  line-height: 1.25;
}

.university-region-head h3 span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff3d7;
  color: #9a5b00;
  font-size: 0.76rem;
  font-weight: 900;
}

.university-region-head p {
  margin-top: 3px;
  color: #66758a;
  font-size: 0.76rem;
  line-height: 1.45;
}

.university-region-items {
  margin-top: 10px;
}

.universities-page {
  gap: 20px;
}

.universities-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.75fr);
  align-items: stretch;
}

.universities-filter-card {
  align-self: stretch;
  align-content: start;
}

.universities-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.universities-filter-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.universities-filter-grid span {
  color: #213a5d;
  font-size: 0.78rem;
  font-weight: 850;
}

.universities-filter-grid select {
  width: 100%;
}

.universities-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}

.universities-filter-actions strong {
  color: #0d3470;
  font-size: 0.86rem;
  font-weight: 900;
}

.universities-directory-section {
  display: grid;
  gap: 14px;
}

.universities-region-list {
  gap: 22px;
}

.university-region-report {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #d9e2ef;
  border-left: 5px solid #0055a6;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  box-shadow: 0 16px 38px rgba(25, 57, 101, 0.08);
}

.region-report-hero {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.region-report-hero h2 {
  margin: 0;
  color: #092257;
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  line-height: 1.18;
}

.region-report-hero p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #5f7189;
  font-size: 0.94rem;
  line-height: 1.6;
}

.region-report-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.region-report-stats div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: #fff;
}

.region-report-stats span,
.region-report-stats small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.region-report-stats strong {
  color: #092257;
  font-size: 1.25rem;
  font-weight: 950;
  line-height: 1.15;
}

.region-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 12px;
}

.region-report-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 10px 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe8f4;
  border-top: 4px solid var(--university-color, #0d52a5);
  border-radius: 8px;
  background: #fff;
}

.region-report-card .result-logo {
  grid-area: auto;
  grid-column: 1;
  grid-row: 1;
  width: 52px;
  height: 52px;
}

.region-report-card > div {
  grid-column: 2;
  min-width: 0;
}

.region-report-card .ghost-button {
  grid-column: 1 / -1;
  justify-content: center;
}

.region-report-card strong,
.region-report-card span,
.region-report-card small {
  display: block;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.region-report-card strong {
  color: #102a56;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.32;
}

.region-report-card span {
  color: #64748b;
  font-size: 0.74rem;
  line-height: 1.35;
}

.region-report-card small {
  margin-top: 4px;
  color: #4d6078;
  font-size: 0.74rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.universities-region-group {
  padding: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(29, 63, 114, 0.08);
}

.directory-start-panel {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 22px;
  border: 1px dashed #b8cce6;
  border-radius: 8px;
  background: linear-gradient(135deg, #f9fcff, #f1f6fc);
  color: #5f7088;
}

.directory-start-panel svg {
  width: 28px;
  height: 28px;
  color: #0d52a5;
}

.directory-start-panel strong {
  color: #092257;
  font-size: 1.05rem;
  font-weight: 950;
}

.directory-start-panel p {
  max-width: 720px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
}

.university-directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.university-directory-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce7f4;
  border-top: 5px solid var(--university-color, #0d52a5);
  border-radius: 8px;
  background: #fbfdff;
}

.university-directory-head {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.university-directory-head strong {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  color: #092257;
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.university-directory-head small {
  display: block;
  min-width: 0;
  margin-top: 3px;
  overflow: hidden;
  color: #66758a;
  font-size: 0.78rem;
  font-weight: 780;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.university-directory-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #66758a;
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.university-directory-card .result-logo {
  grid-area: auto;
  width: 56px;
  height: 56px;
  border-radius: 10px;
}

.university-directory-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.university-directory-card dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 7px;
  background: #f1f6fd;
}

.university-directory-card dt {
  color: #6b7b92;
  font-size: 0.66rem;
  font-weight: 850;
}

.university-directory-card dd {
  margin: 0;
  overflow: hidden;
  color: #0d3470;
  font-size: 0.86rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.university-directory-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.university-directory-actions .ghost-button {
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding-inline: 10px;
}

.university-directory-actions .ghost-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.university-admin-item .university-admin-logo {
  width: 58px;
  height: 58px;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
}

.university-admin-form .university-logo-preview {
  align-items: center;
}

.university-admin-impact {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #f8fbff;
}

.impact-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.impact-summary-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e9f3;
  border-radius: 7px;
  background: #fff;
}

.impact-summary-grid span,
.impact-entry-list small {
  display: block;
  color: #66758a;
  font-size: 0.76rem;
  font-weight: 750;
}

.impact-summary-grid strong {
  display: block;
  margin-top: 2px;
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.2;
}

.impact-entry-list {
  min-width: 0;
}

.impact-entry-list strong {
  display: block;
  margin-bottom: 6px;
  color: #142844;
  font-size: 0.84rem;
}

.impact-entry-list ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #4d6078;
  font-size: 0.8rem;
  line-height: 1.45;
}

.frontend-edit-button {
  min-height: 30px;
  padding-inline: 9px;
  border-color: #bfd2ea;
  background: #f8fbff;
  color: #16427a;
  box-shadow: none;
}

.system-admin-list article {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 10px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
}

.system-admin-list article.is-editing {
  border-color: var(--item-accent);
  background: color-mix(in srgb, var(--item-accent) 6%, #fff);
  box-shadow: inset 4px 0 0 var(--item-accent);
}

.source-icon.is-disabled {
  opacity: 0.55;
}

.system-admin-list article > span {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 7px;
  background: var(--item-accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.system-admin-list h3,
.system-admin-list p {
  margin: 0;
}

.system-admin-list h3 {
  color: #142844;
  font-size: 0.94rem;
  line-height: 1.25;
}

.system-admin-list p {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.8rem;
}

.quality-admin-panel {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.workflow-admin {
  display: grid;
  gap: 14px;
  max-width: 1280px;
  margin: 0 auto;
}

.workflow-step-panel {
  display: grid;
  gap: 12px;
}

.workflow-step-panel h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1.05rem;
}

.workflow-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.workflow-step-grid article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-step-grid strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0d52a5;
  color: #fff;
  font-size: 1rem;
}

.workflow-step-grid span {
  color: #435773;
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.45;
}

.workflow-row-list {
  display: grid;
  gap: 10px;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.2fr) auto minmax(260px, auto);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 18%, #dce4ee);
  border-left: 5px solid var(--cat-accent);
  border-radius: 8px;
  background: #fff;
}

.workflow-row.is-review {
  border-left-color: #e08316;
}

.workflow-row.is-ready {
  border-left-color: #158263;
}

.workflow-row-title {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.workflow-row-title strong,
.workflow-row-title small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-row-title strong {
  color: #0d2552;
  font-size: 0.98rem;
}

.workflow-row-title small {
  color: #64748b;
  font-size: 0.76rem;
  white-space: nowrap;
}

.workflow-row-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.workflow-row-metrics span {
  display: grid;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  background: #f8fbff;
}

.workflow-row-metrics strong {
  overflow: hidden;
  color: #0d2552;
  font-size: 0.9rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-row-metrics small {
  color: #6b7c91;
  font-size: 0.66rem;
  font-weight: 850;
}

.workflow-status {
  justify-self: start;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0d52a5;
  font-size: 0.78rem;
  font-weight: 950;
  white-space: nowrap;
}

.workflow-status.is-review {
  background: #fff4df;
  color: #96500d;
}

.workflow-status.is-ready {
  background: #e1f7ec;
  color: #126b49;
}

.workflow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.data-status-page {
  gap: 18px;
}

.data-status-summary .reader-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.data-status-note {
  padding: 16px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(13, 37, 82, 0.06);
}

.data-status-legend {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  color: #586a82;
  font-size: 0.88rem;
  line-height: 1.5;
}

.data-status-list {
  display: grid;
  gap: 10px;
}

.data-status-row {
  background: #ffffff;
}

.data-status-row.is-empty {
  border-left-color: #94a3b8;
}

.workflow-status.is-empty {
  background: #eef2f7;
  color: #475569;
}

.quality-admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quality-admin-hero h2 {
  margin: 0;
  color: #0d2552;
  font-size: 1.15rem;
}

.quality-admin-hero p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #63758f;
  line-height: 1.55;
}

.quality-hero-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.quality-logo-check-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quality-logo-check-panel h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
}

.quality-logo-check-panel p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #63758f;
  line-height: 1.5;
}

.quality-logo-check-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: #0d52a5;
  font-size: 0.84rem;
  font-weight: 850;
}

.quality-logo-check-status small {
  color: #6b7b91;
  font-weight: 750;
}

.quality-progress {
  width: min(460px, 100%);
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf7;
}

.quality-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0d52a5;
  transition: width 0.18s ease;
}

.quality-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quality-stat-card {
  min-height: 86px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
}

.quality-stat-card span {
  display: block;
  color: #65758c;
  font-size: 0.82rem;
  font-weight: 850;
}

.quality-stat-card strong {
  display: block;
  margin-top: 8px;
  color: #0d2552;
  font-size: 1.7rem;
  line-height: 1;
}

.quality-stat-card.is-critical {
  border-color: #f3c4bd;
  box-shadow: inset 4px 0 0 #c0392b;
}

.quality-stat-card.is-warning {
  border-color: #f8d89f;
  box-shadow: inset 4px 0 0 #d97706;
}

.quality-stat-card.is-info {
  border-color: #bfe2d6;
  box-shadow: inset 4px 0 0 #16835b;
}

.quality-ready-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-color: #bfe2d6;
  box-shadow: inset 5px 0 0 #16835b;
}

.quality-ready-panel h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
}

.quality-ready-panel p {
  max-width: 780px;
  margin: 5px 0 0;
  color: #63758f;
  line-height: 1.55;
}

.quality-ready-panel > strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #e6f8ef;
  color: #08713b;
  font-size: 0.86rem;
  font-weight: 950;
}

.quality-info-details {
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.quality-info-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 16px;
  color: #0d2552;
  font-weight: 950;
  cursor: pointer;
  list-style: none;
}

.quality-info-details > summary::-webkit-details-marker {
  display: none;
}

.quality-info-details > summary strong {
  color: #16835b;
  font-size: 0.9rem;
  white-space: nowrap;
}

.quality-info-details[open] > summary {
  border-bottom: 1px solid #e4edf7;
  background: #f8fbff;
}

.quality-info-list {
  padding: 12px;
}

.quality-issue-list {
  display: grid;
  gap: 12px;
}

.quality-issue-card {
  padding: 16px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
}

.quality-issue-card.is-critical {
  border-left: 5px solid #c0392b;
}

.quality-issue-card.is-warning {
  border-left: 5px solid #d97706;
}

.quality-issue-card.is-info {
  border-left: 5px solid #16835b;
}

.quality-issue-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.quality-issue-head h3 {
  margin: 7px 0 0;
  color: #10294d;
  font-size: 1.02rem;
  line-height: 1.32;
}

.quality-issue-head p,
.quality-detail {
  margin: 5px 0 0;
  color: #65758c;
  line-height: 1.5;
}

.quality-issue-head strong {
  flex: 0 0 auto;
  min-width: 58px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f8fc;
  color: #0d52a5;
  font-size: 1.1rem;
  text-align: center;
}

.quality-severity {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: #0d52a5;
  font-size: 0.74rem;
  font-weight: 900;
}

.quality-issue-card.is-critical .quality-severity {
  background: #fff0ed;
  color: #a43225;
}

.quality-issue-card.is-warning .quality-severity {
  background: #fff7e8;
  color: #9a5600;
}

.quality-issue-card.is-info .quality-severity {
  background: #ebf8f2;
  color: #116b4c;
}

.quality-item-list {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #e4ecf6;
}

.quality-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e4ecf6;
}

.quality-item h4 {
  margin: 0;
  color: #0d2552;
  font-size: 0.94rem;
  line-height: 1.35;
}

.quality-item p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.quality-item ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #4d6079;
  font-size: 0.78rem;
  line-height: 1.5;
}

.quality-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}

.backup-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
}

.backup-panel article {
  padding: 18px;
}

.backup-panel p {
  color: #53657d;
}

.backup-schema code {
  display: block;
  padding: 14px;
  border: 1px solid #dce4ee;
  border-radius: 7px;
  background: #f7f9fc;
  color: #17345e;
  white-space: normal;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  transform: translateY(16px);
  opacity: 0;
  min-width: 220px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 13px 15px;
  border-radius: 8px;
  background: #0d2552;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 24, 61, 0.24);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1220px) {
  .app-grid {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .summary-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .category-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-tabs {
    order: 3;
    grid-column: 1 / -1;
    overflow-x: auto;
  }

  .app-grid,
  .admin-layout,
  .backup-panel {
    grid-template-columns: 1fr;
  }

  .main-panel {
    order: 1;
  }

  .filter-panel {
    position: static;
    order: 2;
  }

  .summary-panel {
    order: 3;
  }

  .system-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-guide-hero,
  .source-guide-grid,
  .source-guide-facts {
    grid-template-columns: 1fr;
  }

  .source-guide-heading,
  .source-guide-detail-head {
    display: grid;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 10px;
    padding: 10px 14px;
  }

  .language-switch {
    gap: 2px;
    height: 34px;
    padding: 2px;
  }

  .language-switch button {
    width: 28px;
    height: 26px;
  }

  .flag-icon {
    width: 20px;
    height: 14px;
  }

  .brand small,
  .admin-shortcut span {
    display: none;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .app-grid,
  .content-page,
  .admin-page {
    width: calc(100% - 20px);
    padding-inline: 0;
  }

  .page-heading,
  .form-head,
  .data-head,
  .board-title {
    display: grid;
  }

  .board-actions {
    width: 100%;
    margin-left: 0;
    justify-content: stretch;
  }

  .board-actions > * {
    flex: 1 1 0;
  }

  .share-menu,
  .share-menu summary {
    width: 100%;
  }

  .share-menu-panel {
    left: 0;
    right: 0;
  }

  .heading-actions,
  .form-actions,
  .backup-actions {
    justify-content: stretch;
  }

  .heading-actions > *,
  .form-actions > *,
  .backup-actions > * {
    width: 100%;
  }

  .system-list,
  .summary-panel,
  .category-strip,
  .category-overview,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .mini-system-item {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .category-card {
    min-height: 68px;
  }
}

.public-topbar {
  position: sticky;
  grid-template-columns: minmax(320px, 1fr) auto auto;
  gap: 16px;
  background: #07315f;
  box-shadow: 0 10px 24px rgba(0, 24, 61, 0.16);
}

.public-header-tools {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.newsletter-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 176, 69, 0.85);
  border-radius: 8px;
  background: linear-gradient(135deg, #ff9700, #f26f00);
  box-shadow: 0 10px 24px rgba(242, 111, 0, 0.24);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.newsletter-footer-button:hover,
.newsletter-footer-button.is-active {
  background: linear-gradient(135deg, #ffac2f, #ff7f0e);
  box-shadow: 0 12px 28px rgba(242, 111, 0, 0.32);
}

.mobile-menu-button {
  display: none;
  place-items: center;
  width: 38px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-menu-button:hover,
.mobile-menu-button.is-open {
  background: rgba(255, 255, 255, 0.16);
}

.public-nav button {
  padding-inline: 14px;
}

.public-nav-rankings,
.public-nav-more {
  position: relative;
  height: 44px;
}

.public-nav-rankings summary,
.public-nav-more summary {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 14px;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.public-nav-rankings summary::-webkit-details-marker,
.public-nav-more summary::-webkit-details-marker {
  display: none;
}

.public-nav-rankings summary::after,
.public-nav-more summary::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 8px;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.8;
}

.public-nav-rankings summary:hover,
.public-nav-rankings summary.is-active,
.public-nav-rankings[open] summary,
.public-nav-more summary:hover,
.public-nav-more summary.is-active,
.public-nav-more[open] summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.public-nav-rankings-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
  width: min(760px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  padding: 12px;
  border: 1px solid rgba(207, 223, 242, 0.92);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 34, 75, 0.22);
  transform: translateX(-50%);
}

.public-nav-ranking-group {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(207, 223, 242, 0.92);
  border-top: 3px solid var(--cat-accent, #0b55a8);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--cat-soft, #f8fbff), #fff);
}

.public-nav-ranking-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #102e5d;
}

.public-nav-ranking-group-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-nav-ranking-group-head span {
  flex: 0 0 auto;
  color: var(--cat-text, #0b55a8);
  font-size: 0.76rem;
  font-weight: 800;
}

.public-nav-ranking-links {
  display: grid;
  gap: 6px;
}

.public-nav-ranking-links button {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  height: auto;
  padding: 7px 8px;
  border-radius: 8px;
  color: #12325f;
  text-align: left;
}

.public-nav-ranking-links button:hover,
.public-nav-ranking-links button.is-active {
  color: #0b55a8;
  background: #eef6ff;
}

.public-nav-system-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 30px;
  height: 30px;
  min-width: 30px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  background: #fff;
  color: #0b55a8;
  font-size: 0.62rem;
  line-height: 1;
}

.public-nav-system-logo.has-logo img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
}

.public-nav-system-logo.has-logo.logo-on-dark {
  border-color: rgba(15, 35, 68, 0.48);
  background: #0b2c5d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.public-nav-system-logo.has-logo.logo-on-dark img {
  padding: 5px;
}

.public-nav-system-logo.has-logo .logo-fallback {
  display: none;
}

.public-nav-system-logo.has-logo.is-logo-missing .logo-fallback,
.public-nav-system-logo:not(.has-logo) .logo-fallback,
.public-nav-system-logo .logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2px;
  font-size: 0.58rem;
  line-height: 1;
  text-align: center;
}

.public-nav-ranking-links span {
  min-width: 0;
}

.public-nav-ranking-links strong,
.public-nav-ranking-links small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-nav-ranking-links strong {
  font-size: 0.85rem;
  line-height: 1.15;
}

.public-nav-ranking-links small {
  margin-top: 2px;
  color: #60718d;
  font-size: 0.74rem;
  line-height: 1.15;
}

.public-nav-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 220px;
  padding: 8px;
  border: 1px solid rgba(207, 223, 242, 0.92);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(7, 34, 75, 0.2);
}

.public-nav-more-menu button {
  justify-content: flex-start;
  width: 100%;
  height: 38px;
  color: #12325f;
  text-align: left;
}

.public-nav-more-menu button:hover,
.public-nav-more-menu button.is-active {
  color: #0b55a8;
  background: #eef6ff;
}

.utility-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 7px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.utility-admin-link:hover,
.utility-admin-link.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.reader-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 24px 0 46px;
}

.reader-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 255, 0.92)),
    linear-gradient(135deg, rgba(7, 49, 95, 0.07), rgba(0, 86, 168, 0));
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.08);
  overflow: hidden;
}

.reader-hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -130px auto;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(7, 49, 95, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.reader-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #092257;
  font-size: clamp(1.95rem, 4vw, 3.35rem);
  line-height: 1.09;
  font-weight: 900;
}

.reader-hero-copy p {
  max-width: 650px;
  margin: 14px 0 0;
  color: #52627a;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.reader-page:not(.home-page) .reader-hero {
  padding: clamp(16px, 3vw, 26px);
}

.reader-page:not(.home-page) .reader-hero-copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

.reader-page:not(.home-page) .reader-hero-copy p {
  font-size: clamp(0.94rem, 1.2vw, 1.06rem);
  line-height: 1.6;
}

.home-page {
  gap: 18px;
}

.home-hero {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  gap: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.home-hero::after {
  width: 210px;
  height: 210px;
  border-width: 34px;
}

.home-hero .reader-hero-copy h1 {
  max-width: 860px;
  font-size: clamp(2.15rem, 4.2vw, 3.55rem);
  line-height: 1.07;
}

.home-hero .reader-hero-copy p {
  margin-top: 10px;
  max-width: 760px;
  font-size: 1.06rem;
  line-height: 1.6;
}

.home-global-search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin-top: 18px;
}

.home-global-search .reader-search {
  min-height: 52px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 48, 90, 0.08);
}

.home-global-search .primary-button {
  min-height: 52px;
}

.home-global-results {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin-top: 10px;
}

.home-global-results > button,
.home-global-result {
  display: inline-grid;
  gap: 2px;
  min-height: 38px;
  max-width: min(100%, 260px);
  padding: 7px 10px;
  border: 1px solid #d6e1ef;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #153258;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.home-global-results > button:hover,
.home-global-results > button:focus-visible {
  border-color: #0d52a5;
  color: #0d52a5;
}

.home-global-result span,
.home-global-result small {
  overflow: hidden;
  color: #6a788d;
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-global-result strong {
  overflow: hidden;
  font-size: 0.85rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-result-empty {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 800;
}

.home-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.home-stat-bar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 860px;
  margin-top: 16px;
}

.home-stat-bar span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 26px rgba(18, 52, 93, 0.06);
}

.home-stat-bar strong {
  overflow: hidden;
  color: #0b2d63;
  font-size: 1.15rem;
  line-height: 1.15;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-stat-bar small {
  color: #62728a;
  font-size: 0.74rem;
  font-weight: 850;
}

.home-feature-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #fff, #f7fbff);
  box-shadow: 0 18px 42px rgba(25, 57, 101, 0.1);
}

.home-feature-card h2,
.home-feature-card p,
.home-feature-card dl {
  margin: 0;
}

.home-feature-card h2 {
  color: #0d2552;
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-feature-card p {
  color: #5d6f86;
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-feature-label {
  color: #0d52a5;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.home-feature-title {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.home-feature-logo {
  width: 50px;
  height: 50px;
}

.home-feature-title strong,
.home-feature-title small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-button {
  --follow-bg: #fff7e8;
  --follow-border: #f0b54d;
  --follow-text: #8f4b07;
  border-color: var(--follow-border);
  background: var(--follow-bg);
  color: var(--follow-text);
}

.follow-button.is-following {
  --follow-bg: #e8f7ef;
  --follow-border: #8bd3a9;
  --follow-text: #126b49;
}

.follow-section {
  display: grid;
  gap: 14px;
}

.follow-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 1.1fr);
  gap: 12px;
  align-items: start;
}

.follow-grid-2 {
  grid-template-columns: minmax(260px, 0.82fr) minmax(340px, 1.18fr);
}

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

.follow-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(25, 57, 101, 0.06);
}

.follow-chip-list,
.follow-movement-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.follow-chip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #0d2552;
  text-align: left;
  cursor: pointer;
}

.follow-chip:hover,
.follow-chip:focus-visible {
  border-color: #a9c8eb;
  background: #eef6ff;
}

.follow-chip strong,
.follow-chip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.follow-chip strong {
  font-size: 0.86rem;
  line-height: 1.25;
}

.follow-chip small {
  color: #65748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.latest-overview-section {
  display: grid;
  gap: 14px;
}

.latest-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.latest-overview-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(25, 57, 101, 0.06);
}

.latest-overview-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.latest-overview-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #0d2552;
  text-align: left;
  cursor: pointer;
}

.latest-overview-item.is-tie {
  border-color: #f1d59a;
  background: #fff9ed;
}

.latest-overview-item:hover,
.latest-overview-item:focus-visible {
  border-color: #9dc4ef;
  background: #eef6ff;
}

.latest-overview-item strong,
.latest-overview-item small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.latest-overview-item strong {
  color: #0d2552;
  font-size: 0.88rem;
  line-height: 1.25;
}

.latest-overview-item small {
  margin-top: 2px;
  color: #667790;
  font-size: 0.74rem;
  line-height: 1.35;
}

.latest-overview-item .rank-inline {
  display: inline-flex;
}

.home-feature-title strong {
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-feature-title small {
  margin-top: 2px;
  color: #6b7c91;
  font-size: 0.78rem;
  white-space: nowrap;
}

.home-feature-ranks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.home-feature-ranks div {
  padding: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: #f6faff;
}

.home-feature-ranks dt {
  color: #667790;
  font-size: 0.72rem;
  font-weight: 850;
}

.home-feature-ranks dd {
  margin: 2px 0 0;
  color: #0d2552;
  font-size: 1.2rem;
  line-height: 1.15;
  font-weight: 950;
}

.home-quick-grid,
.home-category-grid,
.home-highlight-grid,
.home-watch-grid,
.home-system-group-grid {
  display: grid;
  gap: 12px;
}

.home-quick-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-quick-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 142px;
  padding: 14px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  color: #132847;
  text-align: left;
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.06);
}

.home-quick-card:hover,
.home-quick-card:focus-visible {
  border-color: #0d52a5;
  box-shadow: 0 16px 34px rgba(13, 82, 165, 0.12);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eaf2ff;
  color: #0d52a5;
}

.quick-icon svg {
  width: 21px;
  height: 21px;
}

.home-quick-card strong {
  color: #0d2552;
  font-size: 0.98rem;
  line-height: 1.28;
}

.home-quick-card small {
  color: #62728a;
  font-size: 0.8rem;
  line-height: 1.45;
}

.home-category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-category-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 24%, #dce4ee);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cat-soft) 72%, #fff), #fff);
  color: var(--cat-text, #12345a);
  text-align: left;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--cat-accent) 9%, transparent);
}

.home-category-card.is-active,
.home-category-card:hover,
.home-category-card:focus-visible {
  border-color: var(--cat-accent);
  box-shadow: inset 0 4px 0 var(--cat-accent), 0 18px 38px color-mix(in srgb, var(--cat-accent) 16%, transparent);
}

.home-category-card .cat-number {
  width: 42px;
  height: 42px;
  background: var(--cat-accent);
  color: #fff;
}

.home-category-card strong,
.home-category-card small {
  display: block;
  min-width: 0;
}

.home-category-card strong {
  color: var(--cat-text, #12345a);
  font-size: 0.98rem;
  line-height: 1.25;
}

.home-category-card small {
  margin-top: 2px;
  color: #65768d;
  font-size: 0.76rem;
  line-height: 1.25;
}

.home-category-card p,
.home-category-card em {
  grid-column: 1 / -1;
  margin: 0;
}

.home-category-card p {
  color: #5c6f85;
  font-size: 0.8rem;
  line-height: 1.48;
}

.home-category-card em {
  color: var(--cat-accent);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

.home-category-hint {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid #d6e4f4;
  border-radius: 8px;
  background: #f6fbff;
  color: #425875;
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-category-hint svg {
  width: 19px;
  height: 19px;
  color: #0d52a5;
}

.home-highlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-highlight-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 20%, #dce4ee);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--cat-accent) 8%, transparent);
}

.highlight-head,
.highlight-university,
.home-highlight-card dl {
  min-width: 0;
}

.highlight-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--cat-accent);
  font-size: 0.72rem;
  font-weight: 950;
}

.highlight-head span,
.highlight-head strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.highlight-university {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.highlight-logo {
  width: 46px;
  height: 46px;
}

.highlight-university strong,
.highlight-university small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.highlight-university strong {
  color: #132847;
  font-size: 0.95rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.highlight-university small {
  color: #6f7f95;
  font-size: 0.74rem;
  white-space: nowrap;
}

.home-highlight-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.home-highlight-card dl div {
  padding: 8px;
  border-radius: 8px;
  background: var(--cat-soft);
}

.home-highlight-card dt {
  color: #65768d;
  font-size: 0.68rem;
  font-weight: 850;
}

.home-highlight-card dd {
  margin: 1px 0 0;
  color: var(--cat-text);
  font-size: 1rem;
  font-weight: 950;
}

.home-watch-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-watch-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 18%, #dce4ee);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cat-soft) 48%, #fff), #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--cat-accent) 7%, transparent);
}

.home-watch-card h3,
.home-watch-card p {
  margin: 0;
}

.home-watch-card h3 {
  margin-top: 7px;
  color: #0d2552;
  font-size: 0.92rem;
  line-height: 1.35;
}

.home-watch-card p {
  margin-top: 4px;
  color: #5d7088;
  font-size: 0.78rem;
  line-height: 1.45;
}

.home-watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.home-watch-actions a {
  color: #0d52a5;
  text-decoration: none;
}

.home-watch-actions a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-movement-grid,
.movement-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.home-movement-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.movement-filter-panel {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.06);
}

.movement-filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #18375d;
  font-size: 0.82rem;
  font-weight: 900;
}

.movement-filter-panel select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  background: #f9fbff;
  color: #10284a;
  font-weight: 800;
}

.movement-chart-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.06);
}

.movement-digest-section {
  display: grid;
  gap: 12px;
}

.movement-digest-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.movement-digest-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-top: 4px solid #617086;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(25, 57, 101, 0.06);
}

.movement-digest-card.is-up {
  border-top-color: #138a5b;
}

.movement-digest-card.is-new {
  border-top-color: #f08a24;
}

.movement-digest-card.is-tie {
  border-top-color: #f0a22a;
}

.movement-digest-card.is-down {
  border-top-color: #c4492d;
}

.movement-digest-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: start;
}

.movement-digest-head h3,
.movement-digest-head p {
  margin: 0;
}

.movement-digest-head h3 {
  color: #0d2552;
  font-size: 0.95rem;
  line-height: 1.25;
}

.movement-digest-head p {
  margin-top: 3px;
  color: #667790;
  font-size: 0.76rem;
  line-height: 1.42;
}

.movement-digest-head > strong {
  min-width: 34px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef5ff;
  color: #0d52a5;
  font-size: 0.78rem;
  text-align: center;
}

.movement-digest-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.movement-digest-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #0d2552;
  text-align: left;
  cursor: pointer;
}

.movement-digest-item:hover,
.movement-digest-item:focus-visible {
  border-color: #9dc4ef;
  background: #eef6ff;
}

.movement-digest-item strong,
.movement-digest-item small,
.movement-digest-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movement-digest-item strong {
  color: #0d2552;
  font-size: 0.82rem;
  line-height: 1.25;
}

.movement-digest-item small,
.movement-digest-item em {
  color: #667790;
  font-size: 0.7rem;
  line-height: 1.35;
}

.movement-digest-item em {
  margin-top: 2px;
  font-style: normal;
}

.movement-digest-item .rank-inline {
  display: inline-flex;
}

.movement-chart-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.movement-chart-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
  color: #102a56;
  text-align: left;
  cursor: pointer;
}

.movement-chart-bar:hover,
.movement-chart-bar:focus-visible,
.movement-chart-bar.is-active {
  border-color: #9dc4ef;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 86, 168, 0.1);
}

.movement-chart-label {
  color: #52627a;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.3;
}

.movement-chart-track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf6;
}

.movement-chart-track span {
  display: block;
  width: var(--bar-size);
  height: 100%;
  border-radius: inherit;
  background: #617086;
}

.movement-chart-bar.is-up .movement-chart-track span {
  background: #138a5b;
}

.movement-chart-bar.is-down .movement-chart-track span {
  background: #c4492d;
}

.movement-chart-bar.is-new .movement-chart-track span {
  background: #f08a24;
}

.movement-chart-bar strong {
  color: #0d2552;
  font-size: 1.45rem;
  line-height: 1;
}

.movement-overview-card h2 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
}

.movement-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.movement-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--cat-accent) 18%, #dce4ee);
  border-left: 5px solid var(--cat-accent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--cat-soft) 38%, #fff), #fff);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--cat-accent) 7%, transparent);
}

.movement-list-card {
  grid-template-columns: minmax(260px, 1.05fr) minmax(330px, 1.15fr) minmax(250px, 0.82fr);
  align-items: center;
  padding: 16px;
}

.movement-card.is-up {
  border-left-color: #138a5b;
}

.movement-card.is-down {
  border-left-color: #c4492d;
}

.movement-card.is-new {
  border-left-color: #f08a24;
}

.movement-card.is-stable {
  border-left-color: #617086;
}

.movement-card-head,
.movement-source-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.movement-card-head {
  justify-content: flex-start;
}

.movement-rank-panel,
.movement-source-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.movement-source-panel {
  justify-items: start;
}

.movement-source-row {
  justify-content: flex-start;
  width: 100%;
}

.movement-source-row > span {
  min-width: 0;
}

.movement-source-row .movement-system-logo {
  flex: 0 0 56px;
  width: 56px;
  min-width: 56px;
  height: 38px;
  margin-left: 0;
}

.movement-source-row .movement-system-logo.has-logo img {
  padding: 4px;
}

.movement-university {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.movement-university-logo {
  width: 46px;
  height: 46px;
}

.movement-university strong,
.movement-university small,
.movement-source-row strong,
.movement-source-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movement-university strong {
  color: #0d2552;
  font-size: 0.98rem;
  line-height: 1.3;
}

.movement-university small,
.movement-source-row small {
  color: #667790;
  font-size: 0.76rem;
  white-space: nowrap;
}

.movement-badge {
  justify-self: start;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #0d52a5;
  font-size: 0.76rem;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.movement-card.is-up .movement-badge {
  background: #e1f7ec;
  color: #126b49;
}

.movement-card.is-down .movement-badge {
  background: #fff0e8;
  color: #9b351e;
}

.movement-card.is-new .movement-badge {
  background: #fff3df;
  color: #9a5514;
}

.movement-rank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.movement-rank-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.movement-rank-grid span,
.movement-rank-grid small {
  display: block;
  color: #68788e;
  font-size: 0.72rem;
  font-weight: 850;
}

.movement-rank-grid strong {
  display: block;
  margin: 2px 0;
  color: #0d2552;
  font-size: 0.94rem;
  line-height: 1.25;
}

.movement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movement-source-panel .movement-actions {
  justify-content: flex-start;
}

.movement-actions .ghost-button {
  min-height: 34px;
}

.movement-card.is-compact {
  gap: 10px;
}

.movement-card.is-compact .movement-source-row .movement-system-logo {
  flex-basis: 44px;
  width: 44px;
  min-width: 44px;
  height: 32px;
}

.movement-card.is-compact .movement-actions {
  display: none;
}

.movement-card.is-compact .movement-badge {
  justify-self: start;
  max-width: 100%;
}

.home-hero .reader-search-card {
  gap: 10px;
  padding: 14px;
}

.home-hero .reader-stats span {
  padding: 8px;
}

.reader-search-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(29, 63, 114, 0.08);
}

.reader-search-card > label {
  color: #213a5d;
  font-size: 0.9rem;
  font-weight: 800;
}

.ranking-overview-card h2,
.ranking-overview-card p {
  margin: 0;
}

.ranking-overview-card h2 {
  color: #0d2a59;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 850;
}

.ranking-overview-card p {
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.5;
}

.reader-search {
  box-shadow: none;
}

.reader-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reader-stats span {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  background: #f8fbff;
}

.reader-stats strong {
  color: #0b2c5d;
  font-size: 1.02rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reader-stats small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
}

.home-overview-card h2,
.home-overview-card p {
  margin: 0;
}

.home-overview-card h2 {
  color: #0d2552;
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-overview-card p {
  color: #5d6f86;
  font-size: 0.9rem;
  line-height: 1.6;
}

.home-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pulse-section {
  margin-top: 4px;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-pulse-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.pulse-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.07);
}

.pulse-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pulse-head h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.25;
}

.pulse-head span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 850;
  white-space: nowrap;
}

.update-list,
.calendar-list {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.update-item,
.calendar-item {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.update-item {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: start;
}

.update-copy {
  min-width: 0;
}

.headline-button {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.headline-button:hover,
.headline-button:focus-visible {
  color: #0d52a5;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.update-cover {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #eaf2ff;
  color: #0d52a5;
}

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

.update-cover.is-placeholder {
  padding: 10px;
  border: 1px solid #cddcf0;
  background: linear-gradient(135deg, #eaf2ff 0%, #f7fbff 100%);
  text-align: center;
}

.update-cover.is-placeholder span,
.update-cover.is-placeholder small {
  display: block;
}

.update-cover.is-placeholder span {
  color: #0d52a5;
  font-size: 0.78rem;
  font-weight: 950;
}

.update-cover.is-placeholder small {
  margin-top: 2px;
  color: #61758f;
  font-size: 0.68rem;
  font-weight: 850;
}

.update-item h4,
.calendar-item h4 {
  margin: 4px 0 0;
  color: #132847;
  font-size: 0.9rem;
  line-height: 1.35;
}

.update-item p,
.calendar-item p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.content-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0d52a5;
  font-size: 0.7rem;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.content-type-ranking-update,
.content-type-ranking-release {
  background: #eaf3ff;
  color: #004f9f;
}

.content-type-data-update {
  background: #e9f8ef;
  color: #08713b;
}

.content-type-news-archive {
  background: #f1edff;
  color: #5a35a3;
}

.content-type-event {
  background: #fff3d5;
  color: #8a5a00;
}

.content-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.updates-page,
.update-detail-page {
  display: grid;
  gap: 18px;
}

.updates-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 22px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 37, 82, 0.08);
}

.updates-hero h1 {
  margin: 6px 0 0;
  color: #0d2552;
  font-size: 1.8rem;
  line-height: 1.15;
}

.updates-hero p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #64748b;
  line-height: 1.55;
}

.updates-hero-actions {
  display: flex;
  justify-content: flex-end;
}

.updates-archive-list {
  display: grid;
  gap: 12px;
}

.archive-update-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #ffffff;
}

.archive-update-cover {
  min-height: 132px;
}

.archive-update-copy {
  display: grid;
  gap: 8px;
  align-content: center;
  min-width: 0;
}

.archive-update-copy h2 {
  margin: 0;
  color: #132847;
  font-size: 1.1rem;
  line-height: 1.35;
}

.archive-update-copy p {
  margin: 0;
  color: #4d6078;
  line-height: 1.55;
}

.archive-update-copy .primary-button {
  justify-self: start;
}

.update-article {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(13, 37, 82, 0.08);
}

.update-article-head {
  display: grid;
  gap: 12px;
  max-width: 960px;
}

.update-article-head h1 {
  margin: 8px 0 0;
  color: #0d2552;
  font-size: 2rem;
  line-height: 1.2;
}

.update-article-head p {
  margin: 10px 0 0;
  color: #4d6078;
  font-size: 1rem;
  line-height: 1.65;
}

.update-article-cover {
  width: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 1px solid #dbe5f2;
  background: #f7fbff;
}

.update-article-cover.has-cover {
  display: block;
}

.update-article-cover img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.update-article-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}

.update-article-main {
  min-width: 0;
}

.update-article-body {
  width: 100%;
  justify-self: stretch;
  color: #243b5a;
  font-size: 1rem;
  line-height: 1.85;
}

.update-article-aside {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.update-side-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #f8fbff;
}

.side-card-label {
  color: #6b7a90;
  font-size: 0.74rem;
  font-weight: 900;
}

.side-university,
.side-source {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.side-university strong,
.side-source strong,
.side-update-link strong {
  display: block;
  min-width: 0;
  color: #0d2552;
  font-size: 0.9rem;
  line-height: 1.35;
}

.side-university small,
.side-source small,
.side-update-link small {
  display: block;
  margin-top: 2px;
  color: #66758a;
  font-size: 0.74rem;
  line-height: 1.35;
}

.side-update-list {
  display: grid;
  gap: 7px;
}

.side-update-link {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce6f3;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.side-update-link:hover {
  border-color: #a9c5e8;
  background: #eef6ff;
}

.update-article-body > p,
.update-article-body > ul,
.update-article-body > ol,
.update-article-body > blockquote,
.update-article-body > h2,
.update-article-body > h3,
.update-article-body > h4 {
  max-width: 860px;
}

.update-article-body p {
  margin: 0 auto 1em;
}

.update-article-body h2,
.update-article-body h3,
.update-article-body h4 {
  margin: 0 auto 0.55em;
  color: #0d2552;
  line-height: 1.35;
}

.update-article-body a {
  color: #0b52b7;
  font-weight: 800;
}

.update-article-body ul,
.update-article-body ol {
  margin: 0 auto 1em;
  padding-left: 1.35rem;
}

.update-article-body blockquote {
  margin: 0 auto 1em;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f6faff;
  color: #394a62;
}

.update-article-body hr {
  height: 1px;
  margin: 1.4em 0;
  border: 0;
  background: #dbe5f2;
}

.update-article-body table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
}

.update-article-body td,
.update-article-body th {
  padding: 8px 10px;
  vertical-align: top;
}

.update-article-body figure {
  display: grid;
  gap: 8px;
  margin: 0 0 1em;
  justify-items: center;
}

.update-article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
}

.update-article-body figcaption {
  color: #68778b;
  font-size: 0.84rem;
}

.update-article-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e6edf6;
}

.content-meta a {
  color: #0d52a5;
  font-weight: 900;
}

.home-featured-update {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce5f1;
  border-radius: 8px;
  background: #fbfdff;
}

.home-featured-update-cover {
  min-height: 132px;
}

.home-featured-update-copy {
  min-width: 0;
}

.home-featured-update h4,
.home-compact-update h4 {
  margin: 4px 0 0;
  color: #132847;
  line-height: 1.35;
}

.home-featured-update h4 {
  font-size: 1rem;
}

.home-featured-update p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.home-update-compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.home-compact-update {
  min-width: 0;
  padding: 11px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
}

.home-compact-update h4 {
  font-size: 0.88rem;
}

.calendar-item {
  grid-template-columns: 88px minmax(0, 1fr);
}

.release-watch-item {
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: start;
}

.release-watch-item .release-system-logo {
  margin-left: 0;
}

.calendar-item time {
  display: grid;
  place-items: center;
  min-height: 58px;
  padding: 8px;
  border-radius: 7px;
  background: #eef6ff;
  color: #0d52a5;
  font-size: 0.75rem;
  font-weight: 900;
  text-align: center;
}

.mini-empty {
  padding: 14px;
  border: 1px dashed #cbd8e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.insight-tools-section {
  margin-top: 4px;
}

.insight-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.insight-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.07);
}

.home-compare-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #d9e2ef;
  border-left: 5px solid #ff8a00;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0 0%, #ffffff 52%, #f5f9ff 100%);
  box-shadow: 0 16px 38px rgba(25, 57, 101, 0.08);
}

.home-compare-cta-copy {
  display: grid;
  gap: 10px;
}

.home-compare-cta-copy h2 {
  margin: 0;
  color: #092257;
  font-size: clamp(1.5rem, 2.3vw, 2.2rem);
  line-height: 1.18;
}

.home-compare-cta-copy p {
  max-width: 720px;
  margin: 0;
  color: #5f7189;
  font-size: 0.98rem;
  line-height: 1.65;
}

.home-compare-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.home-compare-cta-preview {
  display: grid;
  gap: 8px;
}

.home-compare-cta-preview article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.home-compare-cta-logo {
  width: 46px;
  height: 46px;
}

.home-compare-cta-preview strong,
.home-compare-cta-preview span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-compare-cta-preview strong {
  color: #102a56;
  font-size: 0.94rem;
  font-weight: 900;
}

.home-compare-cta-preview span {
  color: #64748b;
  font-size: 0.78rem;
}

.ranking-literacy-section {
  margin-top: 4px;
}

.ranking-literacy-grid,
.content-idea-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ranking-literacy-card,
.content-idea-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  min-height: 100%;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.06);
}

.ranking-literacy-card span,
.content-idea-card > span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eef6ff;
  color: #0d52a5;
  font-size: 0.74rem;
  font-weight: 900;
  line-height: 1.25;
}

.ranking-literacy-card p,
.content-idea-card p {
  margin: 0;
  color: #5f7189;
  font-size: 0.84rem;
  line-height: 1.55;
}

.ranking-literacy-card .text-button,
.content-idea-card .ghost-button {
  justify-self: start;
  margin-top: auto;
}

.ranking-faq-section {
  margin-top: 4px;
}

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

.ranking-faq-card {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #d9e2ef;
  border-left: 4px solid #0d52a5;
  border-radius: 8px;
  background: #fbfdff;
}

.ranking-faq-card h3,
.ranking-faq-card p {
  margin: 0;
}

.ranking-faq-card h3 {
  color: #0d2552;
  font-size: 0.95rem;
  line-height: 1.35;
}

.ranking-faq-card p {
  margin-top: 7px;
  color: #5f7189;
  font-size: 0.84rem;
  line-height: 1.55;
}

.content-idea-card {
  border-top: 4px solid #0d52a5;
}

.content-idea-card h3 {
  margin: 0;
  color: #0d2552;
  font-size: 0.98rem;
  line-height: 1.35;
}

.content-idea-card.is-movement {
  border-top-color: #138a5b;
}

.content-idea-card.is-movement > span {
  background: #e9f8f0;
  color: #0b6b43;
}

.content-idea-card.is-region {
  border-top-color: #8a4be3;
}

.content-idea-card.is-region > span {
  background: #f2ecff;
  color: #5c32a6;
}

.content-idea-card.is-calendar {
  border-top-color: #d88400;
}

.content-idea-card.is-calendar > span {
  background: #fff4dc;
  color: #995d00;
}

.content-idea-card.is-profile {
  border-top-color: #0f766e;
}

.content-idea-card.is-profile > span {
  background: #e7f8f5;
  color: #0f615b;
}

.home-about-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff, #f6faff);
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.06);
}

.home-about-strip h2,
.home-about-strip p {
  margin: 0;
}

.home-about-strip h2 {
  color: #0d2552;
  font-size: 1.08rem;
  line-height: 1.3;
}

.home-about-strip p {
  max-width: 860px;
  margin-top: 5px;
  color: #61728a;
  font-size: 0.88rem;
  line-height: 1.55;
}

.home-about-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.release-schedule-page {
  gap: 18px;
}

.release-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 10px;
  border: 1px solid #cfe0f6;
  border-radius: 7px;
  background: #eef6ff;
  color: #0d52a5;
  font-size: 0.78rem;
  font-weight: 850;
}

.release-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.release-hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(25, 57, 101, 0.08);
}

.release-hero-card > strong {
  color: #0d2552;
  font-size: 1rem;
}

.release-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.release-summary-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #f8fbff;
}

.release-summary-grid b {
  color: #0d2552;
  font-size: 1.5rem;
  line-height: 1.05;
}

.release-summary-grid small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.release-month-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.release-month-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.05);
}

.release-month-card span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 7px;
  background: #073f8f;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 850;
}

.release-month-card strong {
  color: #0d2552;
  font-size: 0.9rem;
  line-height: 1.3;
}

.release-month-card small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.release-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #d6e4f4;
  border-radius: 8px;
  background: #f6fbff;
  color: #40536f;
  font-size: 0.84rem;
  line-height: 1.55;
}

.release-note svg {
  width: 20px;
  height: 20px;
  color: #0d52a5;
}

.release-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.05);
}

.release-filter-bar label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #2d405f;
  font-size: 0.78rem;
  font-weight: 850;
}

.release-filter-bar select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #cfdbe9;
  border-radius: 7px;
  background: #fff;
  color: #14213d;
}

.release-filter-result {
  display: grid;
  min-width: 112px;
  min-height: 42px;
  justify-content: center;
  align-content: center;
  padding: 7px 12px;
  border: 1px solid #cfdbe9;
  border-radius: 8px;
  background: #f7fbff;
  text-align: center;
}

.release-filter-result strong {
  color: #0d2552;
  font-size: 1.05rem;
  line-height: 1;
}

.release-filter-result span {
  color: #64748b;
  font-size: 0.72rem;
}

.release-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.06);
}

.release-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.release-table th,
.release-table td {
  padding: 13px 14px;
  border-bottom: 1px solid #e6edf6;
  text-align: left;
  vertical-align: top;
}

.release-table th {
  background: #f2f6fb;
  color: #2d405f;
  font-size: 0.78rem;
  font-weight: 850;
}

.release-table tr:last-child td {
  border-bottom: 0;
}

.release-table td:nth-child(1) {
  width: 30%;
}

.release-table td:nth-child(2) {
  width: 14%;
}

.release-table td:nth-child(3) {
  width: 18%;
}

.release-table td:nth-child(5) {
  width: 14%;
}

.release-system-button {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.release-system-button:hover strong,
.release-system-button:focus-visible strong {
  color: #0056a8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-system-logo {
  width: 44px;
  height: 34px;
  margin-left: 0;
}

.release-system-button strong,
.release-system-button small,
.release-card-head strong,
.release-card-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.release-system-button strong {
  color: #132847;
  font-size: 0.86rem;
  line-height: 1.35;
}

.release-system-button small {
  margin-top: 2px;
  color: #6b7b91;
  font-size: 0.74rem;
}

.release-category-pill {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid color-mix(in srgb, var(--cat-accent, #0d52a5) 26%, #dbe5f1);
  border-radius: 7px;
  background: color-mix(in srgb, var(--cat-soft, #eef6ff) 78%, #fff);
  color: var(--cat-text, #0d2552);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.25;
}

.release-period-cell {
  display: grid;
  gap: 4px;
}

.release-period-cell strong {
  color: #0d2552;
  font-size: 0.9rem;
  line-height: 1.35;
}

.release-period-cell small {
  color: #65758d;
  font-size: 0.78rem;
  line-height: 1.45;
}

.release-evidence {
  display: grid;
  gap: 7px;
}

.release-evidence p {
  margin: 0;
  color: #31445f;
  font-size: 0.82rem;
  line-height: 1.55;
}

.release-evidence small {
  color: #718198;
  font-size: 0.76rem;
  line-height: 1.45;
}

.release-confidence {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.release-confidence.is-high {
  background: #def8e7;
  color: #0d6b38;
}

.release-confidence.is-medium {
  background: #fff3d5;
  color: #8a5a00;
}

.release-confidence.is-watch {
  background: #edf2ff;
  color: #24478f;
}

.release-row-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.release-source-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d52a5;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.release-source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.release-source-link svg {
  width: 17px;
  height: 17px;
}

.release-card-list {
  display: none;
}

.release-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.06);
}

.release-card-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.release-card-head strong {
  color: #0d2552;
  font-size: 0.95rem;
  line-height: 1.25;
}

.release-card-head small {
  margin-top: 2px;
  color: #61728a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-head h3,
.tool-head p {
  margin: 0;
}

.tool-head h3 {
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.25;
}

.tool-head p {
  margin-top: 3px;
  color: #62728a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-tool-label {
  color: #243b60;
  font-size: 0.82rem;
  font-weight: 850;
}

.university-result-list {
  display: grid;
  gap: 10px;
}

.university-result-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "logo copy"
    "actions actions";
  gap: 10px 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.result-logo {
  grid-area: logo;
  width: 46px;
  height: 46px;
  align-self: start;
}

.result-copy {
  grid-area: copy;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.result-copy strong,
.result-copy small,
.result-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-copy strong {
  color: #132847;
  font-size: 0.95rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result-copy small {
  color: #728198;
  font-size: 0.76rem;
  white-space: nowrap;
}

.result-copy span {
  color: #4d6078;
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.result-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.result-actions .ghost-button {
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.result-actions .ghost-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.compare-toolbar.has-clear {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.compare-selected-count {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d8e4f2;
  border-radius: 999px;
  background: #f7fbff;
  color: #315170;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.compare-clear-button {
  border-color: #f2c47a;
  background: #fff8eb;
  color: #9a4d00;
}

.compare-clear-button:hover,
.compare-clear-button:focus-visible {
  border-color: #df8f21;
  background: #fff1d6;
  color: #713800;
}

.compare-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 32px;
  padding: 0 8px 0 11px;
  border: 1px solid #d7e1ee;
  border-radius: 999px;
  background: #f4f8ff;
  color: #15345c;
  font-size: 0.78rem;
  font-weight: 850;
}

.compare-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #315a91;
  padding: 0;
}

.compare-chip svg {
  width: 13px;
  height: 13px;
}

.compare-selected-list.is-readonly .compare-chip {
  padding-right: 11px;
}

.compare-options {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fbfdff;
}

.compare-options-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.compare-options-head strong {
  color: #0d2552;
  font-size: 0.88rem;
}

.compare-options-head span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
}

.compare-update-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #f4c56f;
  border-radius: 999px;
  background: #fff8ea;
  color: #8a4a00;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.compare-update-status[hidden] {
  display: none;
}

.compare-update-status::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(138, 74, 0, 0.25);
  border-top-color: #b66000;
  border-radius: 50%;
  animation: compareStatusSpin 0.72s linear infinite;
}

@keyframes compareStatusSpin {
  to {
    transform: rotate(360deg);
  }
}

.compare-options-head .compare-update-status {
  color: #8a4a00;
  font-size: 0.74rem;
}

.compare-picker-status {
  align-self: center;
}

.compare-toolbar .compare-update-status,
.compare-panel .compare-update-status {
  margin-top: 2px;
}

.compare-options.is-updating,
.rank-trend-controls.is-updating,
.compare-toolbar.is-updating,
.compare-picker-panel.is-updating {
  border-color: #f1c66d;
  background: linear-gradient(135deg, #fffdf8, #fbfdff);
}

.compare-options.is-updating select,
.rank-trend-controls.is-updating select,
.compare-toolbar.is-updating button,
.compare-toolbar.is-updating select,
.compare-picker-panel.is-updating select,
.compare-picker-panel.is-updating button {
  cursor: progress;
}

.compare-toolbar.is-updating input,
.compare-panel.is-updating select,
.compare-panel.is-updating button,
.compare-panel.is-updating input {
  cursor: progress;
}

.compare-year-selects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.compare-year-selects label {
  display: grid;
  gap: 5px;
  color: #0d2552;
  font-size: 0.76rem;
  font-weight: 900;
}

.compare-year-selects label > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-year-selects select {
  min-height: 36px;
  border-radius: 7px;
}

.compare-system-filter {
  display: grid;
  gap: 10px;
}

.compare-system-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  color: #15345c;
  cursor: pointer;
  list-style: none;
}

.compare-system-filter summary::-webkit-details-marker {
  display: none;
}

.compare-system-filter summary span {
  font-size: 0.78rem;
  font-weight: 900;
}

.compare-system-filter summary strong {
  color: #52627a;
  font-size: 0.72rem;
  font-weight: 850;
}

.compare-system-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.compare-system-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-system-toggle {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  color: #15345c;
  font-size: 0.74rem;
  font-weight: 850;
}

.compare-system-toggle:hover {
  border-color: #b9d1ee;
  background: #f8fbff;
}

.compare-system-toggle:has(input:checked) {
  border-color: #b8d5f7;
  background: #f4f9ff;
}

.compare-system-toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #0055a6;
  justify-self: center;
}

.compare-system-toggle-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.compare-system-toggle-text strong,
.compare-system-toggle-text small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-system-toggle-text strong {
  color: #0d2552;
  font-size: 0.82rem;
  line-height: 1.18;
}

.compare-system-toggle-text small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
}

.compare-empty {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #cbd8e8;
  border-radius: 8px;
  background: #f8fbff;
}

.compare-empty strong,
.compact-empty-state strong {
  color: #173456;
  font-size: 0.9rem;
}

.compare-empty span,
.compact-empty-state span {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.compare-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.compare-suggestions button,
.mini-action {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #d7e1ee;
  border-radius: 7px;
  background: #fff;
  color: #16427a;
  font-size: 0.74rem;
  font-weight: 850;
}

.compare-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

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

.compare-summary-head strong,
.compare-summary-head span {
  display: block;
}

.compare-summary-head strong {
  color: #0d2552;
  font-size: 0.92rem;
  line-height: 1.25;
}

.compare-summary-head span {
  margin-top: 2px;
  color: #64748b;
  font-size: 0.78rem;
}

.compare-detail-button {
  position: relative;
  overflow: hidden;
  border-color: #f7a13a;
  background: linear-gradient(90deg, #fff7ed, #fff);
  color: #8a3a00;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.12);
}

.compare-detail-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: #f97316;
}

.compare-detail-button svg,
.compare-detail-button span {
  position: relative;
  z-index: 1;
}

.compare-detail-button:hover,
.compare-detail-button:focus-visible {
  border-color: #ea580c;
  background: linear-gradient(90deg, #ffedd5, #fff7ed);
  color: #7c2d12;
}

.compare-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.compare-mini-grid button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.compare-mini-grid span,
.compare-mini-grid strong,
.compare-mini-grid small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-mini-grid span {
  color: #132847;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.compare-mini-grid strong {
  color: #0d52a5;
  font-size: 0.76rem;
}

.compare-mini-grid small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.3;
}

.compare-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.compare-table-head span {
  color: #31445f;
  font-size: 0.8rem;
  font-weight: 800;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid #dde6f1;
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #fff;
}

.compare-table th,
.compare-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  background: #f3f7fc;
  color: #233a63;
  font-size: 0.75rem;
  font-weight: 900;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-system-cell {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
}

.compare-system-cell .mini-system-logo {
  width: 40px;
  height: 28px;
  margin-left: 0;
}

.compare-system-cell strong,
.compare-system-cell small {
  display: block;
}

.compare-system-cell strong {
  color: #132847;
  font-size: 0.78rem;
}

.compare-system-cell small {
  color: #728198;
  font-size: 0.7rem;
}

.compare-cell {
  display: grid;
  gap: 4px;
  min-width: 128px;
}

.compare-cell strong {
  color: #0d3470;
  font-size: 0.82rem;
}

.compare-cell small {
  color: #64748b;
  font-size: 0.72rem;
}

.compare-cell-button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #dbe5f2;
  border-radius: 7px;
  background: #fff;
  text-align: left;
}

.compare-cell-button.is-leader,
.compare-table td.is-leader {
  background: #f0f8ff;
}

.compare-cell-button.is-leader {
  border-color: #8fc0ef;
  box-shadow: inset 3px 0 0 #0d52a5;
}

.compare-cell-button.is-tie,
.compare-table td.is-tie {
  background: #fff9ea;
}

.compare-cell-button.is-tie {
  border-color: #f2cf79;
  box-shadow: inset 3px 0 0 #f0a000;
}

.compare-cell-button:hover {
  border-color: #b8cbe4;
  background: #f7fbff;
}

.compare-cell-button strong {
  color: #0d3470;
  font-size: 0.76rem;
  line-height: 1.2;
}

.compare-cell-button small {
  color: #64748b;
  font-size: 0.67rem;
}

.compare-cell-button em {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e7f2ff;
  color: #0d52a5;
  font-style: normal;
  font-size: 0.64rem;
  font-weight: 950;
}

.compare-cell-button.is-tie em {
  background: #fff1c7;
  color: #8a5b00;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #0d52a5;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.print-only {
  display: none;
}

.compare-page {
  gap: 14px;
}

.share-capture-shell {
  min-height: 100vh;
  padding: 24px;
  background: #dfe8f4;
}

.compare-share-page {
  display: grid;
  justify-items: center;
  padding: 0;
}

.compare-share-canvas {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  padding: 28px;
  border: 1px solid #c9d8ea;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 251, 255, 0.98)),
    radial-gradient(circle at top right, rgba(255, 153, 31, 0.14), transparent 34%),
    #f7fbff;
  box-shadow: 0 28px 70px rgba(16, 42, 86, 0.16);
}

.compare-share-header,
.compare-share-hero,
.compare-share-section-title,
.compare-share-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compare-share-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(460px, 100%);
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(9, 34, 87, 0.12);
}

.compare-share-brand img {
  display: block;
  width: min(380px, 100%);
  max-height: 70px;
  object-fit: contain;
}

.compare-share-meta {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: #52627a;
  font-size: 0.82rem;
  font-weight: 850;
}

.compare-share-meta strong {
  color: #092257;
  font-size: 0.95rem;
}

.compare-share-meta a {
  color: #52627a;
  text-decoration: none;
}

.compare-share-brand:focus-visible,
.compare-share-meta a:focus-visible {
  outline: 3px solid rgba(255, 159, 28, 0.55);
  outline-offset: 4px;
}

.compare-share-hero {
  align-items: stretch;
  padding: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #07366f, #061b3f);
  color: #fff;
}

.compare-share-hero > div:first-child {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.compare-share-hero span,
.compare-share-section-title p {
  color: #ffb45c;
  font-size: 0.78rem;
  font-weight: 950;
}

.compare-share-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 3.1vw, 2.65rem);
  line-height: 1.14;
  font-weight: 950;
}

.compare-share-hero p {
  margin: 0;
  color: #dcecff;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 800;
}

.compare-share-hero dl {
  flex: 0 0 320px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.compare-share-hero dl div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #092257;
}

.compare-share-hero dt {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
}

.compare-share-hero dd {
  margin: 0;
  color: #005eb8;
  font-size: 2rem;
  line-height: 1;
  font-weight: 950;
}

.compare-share-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.compare-share-panel,
.compare-share-chart {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 42, 86, 0.08);
}

.compare-share-chart .rank-trend-controls,
.compare-share-chart .rank-trend-source-notes,
.compare-share-chart .rank-trend-system-notes {
  display: none;
}

.compare-share-chart .rank-trend-chart-shell {
  background: #f9fcff;
}

.compare-share-section-title h2 {
  margin: 0;
  color: #092257;
  font-size: 1.2rem;
  line-height: 1.25;
  font-weight: 950;
}

.compare-share-section-title p {
  margin: 0;
  color: #5f7088;
}

.compare-share-table-wrap {
  overflow-x: auto;
}

.compare-share-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #102a56;
  font-size: 0.82rem;
}

.compare-share-table th,
.compare-share-table td {
  padding: 10px;
  border-bottom: 1px solid #e1eaf5;
  text-align: left;
  vertical-align: top;
}

.compare-share-table th {
  background: #eef5ff;
  color: #092257;
  font-size: 0.76rem;
  font-weight: 950;
}

.compare-share-source-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 150px;
}

.compare-share-source-cell strong,
.compare-share-source-cell small {
  display: block;
}

.compare-share-source-cell small {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 850;
}

.compare-share-rank {
  display: grid;
  gap: 2px;
  min-width: 105px;
  padding: 7px 8px;
  border-radius: 7px;
  background: #f4f8fd;
}

.compare-share-rank.is-leader {
  background: #fff4df;
  box-shadow: inset 4px 0 0 #f0a22a;
}

.compare-share-rank b {
  color: #092257;
  font-size: 0.82rem;
  font-weight: 950;
}

.compare-share-rank small,
.compare-share-empty {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 820;
}

.compare-share-source-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-share-footer {
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #d9e4f2;
  color: #5f7088;
  font-size: 0.8rem;
  font-weight: 820;
}

.compare-share-footer strong {
  color: #092257;
  white-space: nowrap;
}

.ranking-share-page {
  display: grid;
  justify-items: center;
}

.ranking-share-canvas {
  width: min(1180px, 100%);
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid #cfdff2;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)),
    radial-gradient(circle at top right, rgba(255, 159, 28, 0.16), transparent 35%);
  box-shadow: 0 24px 60px rgba(20, 46, 82, 0.13);
}

.ranking-share-header {
  padding-bottom: 4px;
}

.ranking-share-hero {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(320px, 1.35fr) minmax(240px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid #d9e6f5;
  border-radius: 14px;
  background:
    linear-gradient(135deg, var(--source-soft), rgba(255, 255, 255, 0.95)),
    #fff;
}

.ranking-share-source {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ranking-share-source-logo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid #d6e2f1;
  border-radius: 14px;
  background: #fff;
  color: #0b4f9c;
  font-size: 0.7rem;
  font-weight: 900;
  overflow: hidden;
}

.ranking-share-source-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ranking-share-source-logo .logo-fallback,
.ranking-share-source-logo.is-logo-missing .logo-fallback,
.ranking-share-university-logo .logo-fallback,
.ranking-share-university-logo.is-logo-missing .logo-fallback,
.university-share-logo .logo-fallback,
.university-share-logo.is-logo-missing .logo-fallback {
  display: none;
}

.ranking-share-source small,
.ranking-share-source em {
  display: block;
  color: #607187;
  font-style: normal;
  font-weight: 800;
}

.ranking-share-source strong {
  display: block;
  margin: 4px 0;
  color: #092b60;
  font-size: 1rem;
  line-height: 1.25;
}

.ranking-share-hero h1 {
  margin: 0;
  color: #092b60;
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.ranking-share-hero p {
  margin: 10px 0 0;
  color: #566b84;
  font-size: 1.04rem;
  font-weight: 760;
}

.ranking-share-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.ranking-share-hero dl div {
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.ranking-share-hero dt {
  color: #67788e;
  font-size: 0.78rem;
  font-weight: 900;
}

.ranking-share-hero dd {
  margin: 4px 0 0;
  color: #08275a;
  font-size: 1.3rem;
  font-weight: 950;
}

.ranking-share-winner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #f4c56e;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7e5, #fff);
}

.ranking-share-winner span {
  color: #9a4f00;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ranking-share-winner h2 {
  margin: 4px 0;
  color: #0a2b5d;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.12;
}

.ranking-share-winner p {
  margin: 0;
  color: #607187;
  font-weight: 800;
}

.ranking-share-winner-rank {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.ranking-share-panel {
  gap: 12px;
}

.ranking-share-table-wrap {
  overflow: hidden;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #fff;
}

.ranking-share-table {
  width: 100%;
  border-collapse: collapse;
}

.ranking-share-table th,
.ranking-share-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e7edf5;
  color: #122844;
  text-align: left;
  vertical-align: middle;
}

.ranking-share-table th {
  background: #f3f7fc;
  color: #29425f;
  font-size: 0.78rem;
  font-weight: 950;
}

.ranking-share-table tr:last-child td {
  border-bottom: 0;
}

.ranking-share-table small {
  display: block;
  margin-top: 2px;
  color: #6b7c91;
  font-size: 0.72rem;
  font-weight: 760;
}

.ranking-share-university {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.ranking-share-university strong {
  display: block;
  color: #0a2b5d;
  font-weight: 950;
  line-height: 1.22;
}

.ranking-share-university-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dce6f3;
  border-radius: 8px;
  background: #fff;
  color: #0b52b7;
  font-size: 0.58rem;
  font-weight: 900;
  overflow: hidden;
}

.ranking-share-university-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
}

.ranking-share-rank {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  background: #eaf3ff;
  color: #0759a8;
  font-weight: 950;
}

.ranking-share-rank.is-tied {
  background: #fff3d2;
  color: #9a4f00;
  box-shadow: inset 0 0 0 1px #f1c15e;
}

.ranking-share-rank.is-large {
  min-width: 64px;
  height: 58px;
  font-size: 1.75rem;
  border-radius: 14px;
}

.ranking-share-tie-note {
  padding: 14px 16px;
  border: 1px solid #f3d39a;
  border-radius: 12px;
  background: #fff9eb;
  color: #5b3a08;
}

.ranking-share-tie-note strong {
  display: block;
  margin-bottom: 4px;
  color: #8a4b00;
}

.ranking-share-tie-note p {
  margin: 0;
  line-height: 1.6;
}

.ranking-share-footer {
  border-color: #d8e4f2;
  background: #f7fbff;
}

.ranking-share-canvas {
  width: min(1080px, 100%);
  gap: 14px;
  padding: 28px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 159, 28, 0.16), transparent 32%),
    linear-gradient(145deg, #ffffff 0%, #f6faff 62%, #edf5ff 100%);
  box-shadow: 0 28px 70px rgba(9, 34, 87, 0.18);
}

.ranking-share-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(10, 43, 93, 0.1);
}

.ranking-share-brand {
  display: block;
  width: max-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.ranking-share-brand img {
  display: block;
  width: min(520px, 100%);
  height: auto;
}

.ranking-share-brand:focus-visible,
.ranking-share-site-url:focus-visible {
  outline: 3px solid rgba(255, 159, 28, 0.55);
  outline-offset: 4px;
}

.ranking-share-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #5d6f86;
  font-size: 0.8rem;
  font-weight: 850;
}

.ranking-share-meta strong {
  color: #0a2b5d;
  font-size: 0.95rem;
}

.ranking-share-hero {
  grid-template-columns: minmax(240px, 0.86fr) minmax(0, 1.38fr) minmax(260px, 0.92fr);
  padding: 18px;
  border: 1px solid rgba(10, 43, 93, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 235, 0.9)),
    linear-gradient(135deg, var(--source-soft), transparent);
}

.ranking-share-source {
  grid-template-columns: 70px minmax(0, 1fr);
}

.ranking-share-source-logo {
  width: 70px;
  height: 70px;
  box-shadow: 0 10px 24px rgba(20, 46, 82, 0.08);
}

.ranking-share-hero h1 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.04;
}

.ranking-share-hero p {
  max-width: 580px;
  font-size: 1rem;
  line-height: 1.55;
}

.ranking-share-hero dl {
  align-content: stretch;
}

.ranking-share-hero dl div {
  display: grid;
  align-content: center;
  min-height: 78px;
  background: rgba(255, 255, 255, 0.9);
}

.ranking-share-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #f0c36f;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.ranking-share-lead span {
  display: block;
  color: #9a4f00;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.ranking-share-lead strong {
  display: block;
  margin-top: 3px;
  color: #092257;
  font-size: clamp(1.25rem, 2.7vw, 1.9rem);
  line-height: 1.15;
}

.ranking-share-lead p {
  margin: 2px 0 0;
  color: #607187;
  font-weight: 820;
}

.ranking-share-lead-rank {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.ranking-share-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ranking-share-panel .compare-share-section-title {
  padding: 0 2px;
}

.ranking-share-table-wrap {
  border: 1px solid #d3dfed;
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(13, 37, 82, 0.08);
}

.ranking-share-table {
  table-layout: fixed;
}

.ranking-share-table th:nth-child(1),
.ranking-share-table td:nth-child(1) {
  width: 100px;
  text-align: center;
}

.ranking-share-table th:nth-child(3),
.ranking-share-table td:nth-child(3),
.ranking-share-table th:nth-child(4),
.ranking-share-table td:nth-child(4) {
  width: 140px;
  text-align: center;
}

.ranking-share-table th,
.ranking-share-table td {
  padding: 11px 14px;
}

.ranking-share-table th {
  background: #eef5ff;
  color: #17365d;
  font-size: 0.82rem;
}

.ranking-share-table tbody tr:nth-child(even) {
  background: #fbfdff;
}

.ranking-share-university {
  grid-template-columns: 44px minmax(0, 1fr);
}

.ranking-share-university-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.ranking-share-university strong {
  font-size: 0.98rem;
}

.ranking-share-rank {
  min-width: 42px;
  height: 38px;
  border-radius: 11px;
}

.ranking-share-rank.is-large {
  min-width: 66px;
  height: 58px;
}

.ranking-share-tie-note {
  padding: 12px 14px;
}

.ranking-share-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  font-size: 0.76rem;
}

.ranking-share-site-url {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0a3b78, #0759a8);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(7, 89, 168, 0.18);
}

.ranking-share-site-url:hover {
  filter: brightness(1.04);
}

.ranking-share-site-url span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}

.ranking-share-site-url strong {
  color: #fff;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 950;
  letter-spacing: 0;
  white-space: nowrap;
}

.university-share-page {
  display: grid;
  justify-items: center;
}

.university-share-canvas {
  display: grid;
  gap: 14px;
  width: min(1080px, 100%);
  padding: 28px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 159, 28, 0.14), transparent 30%),
    linear-gradient(145deg, #ffffff 0%, #f7fbff 62%, #eef6ff 100%);
  box-shadow: 0 28px 70px rgba(9, 34, 87, 0.18);
}

.university-share-header .ranking-share-meta a {
  color: #5d6f86;
  text-decoration: none;
}

.university-share-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
  gap: 16px;
  align-items: stretch;
  padding: 20px;
  border: 1px solid rgba(10, 43, 93, 0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 235, 0.9)),
    linear-gradient(135deg, rgba(13, 82, 165, 0.08), transparent);
  box-shadow: inset 6px 0 0 var(--university-color, #0d52a5);
}

.university-share-title {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
}

.university-share-logo {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid #d4e1f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(20, 46, 82, 0.1);
}

.university-share-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.university-share-title span {
  display: block;
  color: #9a4f00;
  font-size: 0.78rem;
  font-weight: 950;
}

.university-share-title h1 {
  margin: 4px 0;
  color: #092257;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.08;
  font-weight: 950;
}

.university-share-title p {
  margin: 0;
  color: #607187;
  font-size: 1.08rem;
  font-weight: 850;
}

.university-share-hero dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.university-share-hero dl div,
.university-share-highlight dl div {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.university-share-hero dt,
.university-share-highlight dt {
  color: #66758a;
  font-size: 0.68rem;
  font-weight: 900;
}

.university-share-hero dd,
.university-share-highlight dd {
  margin: 0;
  color: #0a2b5d;
  font-size: 1.36rem;
  line-height: 1.05;
  font-weight: 950;
}

.university-share-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #f0c36f;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff8e8, #ffffff);
}

.university-share-lead span {
  display: block;
  color: #9a4f00;
  font-size: 0.78rem;
  font-weight: 950;
}

.university-share-lead strong {
  display: block;
  margin-top: 3px;
  color: #092257;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  line-height: 1.18;
}

.university-share-lead p {
  margin: 2px 0 0;
  color: #607187;
  font-weight: 820;
}

.university-share-snapshot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.university-share-snapshot article {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.university-share-snapshot span {
  color: #66758a;
  font-size: 0.72rem;
  font-weight: 900;
}

.university-share-snapshot strong {
  color: #092257;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.15;
  font-weight: 950;
}

.university-share-snapshot small {
  color: #5d6f86;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.university-share-panel {
  padding: 16px;
  border-radius: 16px;
}

.university-share-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.university-share-highlight {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe7f5;
  border-radius: 14px;
  background: #fbfdff;
}

.university-share-highlight > div:first-child {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.university-share-highlight strong,
.university-share-highlight small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.university-share-highlight strong {
  color: #092257;
  font-size: 0.9rem;
  font-weight: 950;
}

.university-share-highlight small {
  color: #66758a;
  font-size: 0.68rem;
  font-weight: 850;
}

.university-share-highlight dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.university-share-highlight dd {
  font-size: 1rem;
}

.university-share-chart {
  border-radius: 16px;
}

.university-share-chart .rank-trend-controls,
.university-share-chart .rank-trend-source-notes,
.university-share-chart .rank-trend-system-notes {
  display: none;
}

.university-share-chart .rank-trend-chart-shell {
  background: #f9fcff;
}

.university-share-table-wrap {
  overflow-x: auto;
  border: 1px solid #d3dfed;
  border-radius: 14px;
}

.university-share-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #102a56;
  font-size: 0.82rem;
}

.university-share-table th,
.university-share-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e1eaf5;
  text-align: left;
  vertical-align: middle;
}

.university-share-table th {
  background: #eef5ff;
  color: #17365d;
  font-size: 0.78rem;
  font-weight: 950;
}

.university-share-table th:nth-child(2),
.university-share-table td:nth-child(2),
.university-share-table th:nth-child(3),
.university-share-table td:nth-child(3),
.university-share-table th:nth-child(4),
.university-share-table td:nth-child(4) {
  width: 120px;
  text-align: center;
}

.university-share-table tr:last-child td {
  border-bottom: 0;
}

.university-share-table-note {
  margin: 8px 0 0;
  color: #66758a;
  font-size: 0.78rem;
  font-weight: 820;
}

.compare-page > *,
.compare-page-panel > *,
.compare-trend-panel,
.compare-trend-panel > * {
  min-width: 0;
}

.compare-page-hero,
.compare-page-empty,
.compare-page-overview,
.compare-page-panel {
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.08);
}

.compare-page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.compare-publish-card {
  position: relative;
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 8px;
  border: 1px solid #183f70;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(155deg, #07366f 0%, #062857 52%, #061a3b 100%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(6, 28, 58, 0.18);
}

.compare-publish-card > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.compare-publish-top,
.compare-publish-hero,
.compare-publish-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compare-publish-brand {
  display: inline-flex;
  align-items: center;
  max-width: min(460px, 100%);
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.compare-publish-brand img {
  display: block;
  width: min(360px, 100%);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

.compare-publish-url {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #f4f9ff;
  font-size: 0.8rem;
  font-weight: 900;
}

.compare-publish-hero {
  align-items: end;
}

.compare-publish-hero span,
.compare-publish-section-title span {
  color: #ffb45c;
  font-size: 0.78rem;
  font-weight: 950;
}

.compare-publish-hero h2 {
  max-width: 820px;
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  font-weight: 950;
}

.compare-publish-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #dcecff;
  font-size: clamp(0.98rem, 1.7vw, 1.18rem);
  line-height: 1.55;
  font-weight: 800;
}

.compare-publish-stat {
  flex: 0 0 190px;
  display: grid;
  gap: 2px;
  padding: 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: #092257;
}

.compare-publish-stat strong {
  color: #005eb8;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 950;
}

.compare-publish-stat span {
  color: #43546e;
  font-size: 0.82rem;
  line-height: 1.35;
  font-weight: 900;
}

.compare-publish-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.compare-publish-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #dcecff;
  font-size: 0.78rem;
  font-weight: 820;
}

.compare-publish-stats strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 950;
}

.compare-publish-profiles,
.compare-publish-sources {
  display: grid;
  gap: 12px;
}

.compare-publish-profiles {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.compare-publish-profiles-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.compare-publish-profiles-5 .compare-publish-profile {
  padding: 12px;
}

.compare-publish-profiles-5 .compare-publish-profile-head {
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
}

.compare-publish-profiles-5 .compare-publish-profile-head .tiny-university-logo {
  width: 38px;
  height: 38px;
}

.compare-publish-profiles-5 .compare-publish-profile dl {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.compare-publish-profiles-5 .compare-publish-profile dl div {
  padding: 7px;
}

.compare-publish-sources {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compare-publish-profile,
.compare-publish-source {
  min-width: 0;
  border-radius: 8px;
  border: 1px solid #dfe8f4;
  background: rgba(255, 255, 255, 0.96);
  color: #0b244c;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.compare-publish-profile {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 5px solid var(--university-color, #0d52a5);
}

.compare-publish-profile-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.compare-publish-profile-head .tiny-university-logo {
  width: 42px;
  height: 42px;
}

.compare-publish-profile-head strong,
.compare-publish-profile-head span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-publish-profile-head strong {
  color: #092257;
  font-size: 0.94rem;
  font-weight: 950;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compare-publish-profile-head span,
.compare-publish-profile p {
  color: #607089;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

.compare-publish-profile-head span {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compare-publish-profile dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.compare-publish-profile dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: #f3f7fc;
}

.compare-publish-profile dt {
  color: #677790;
  font-size: 0.66rem;
  font-weight: 900;
}

.compare-publish-profile dd {
  margin: 0;
  color: #0d3470;
  font-size: 0.92rem;
  font-weight: 950;
}

.compare-publish-profile p {
  margin: 0;
}

.compare-publish-section-title strong {
  color: #fff;
  font-size: 1.08rem;
  line-height: 1.25;
  font-weight: 950;
}

.compare-publish-source {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.compare-publish-source-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.compare-publish-source-head .mini-system-logo {
  width: 48px;
  height: 36px;
  margin-left: 0;
}

.compare-publish-source-head span,
.compare-publish-source-head strong,
.compare-publish-source-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-publish-source-head span {
  color: #f08b14;
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-publish-source-head strong {
  color: #092257;
  font-size: 0.96rem;
  font-weight: 950;
}

.compare-publish-source-head small,
.compare-publish-gap {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 850;
}

.compare-publish-source p {
  margin: 0;
  color: #46576f;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.4;
}

.compare-publish-ranks {
  display: grid;
  gap: 6px;
}

.compare-publish-ranks span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 7px;
  border-left: 4px solid var(--university-color, #0d52a5);
  background: #f4f8fd;
}

.compare-publish-ranks span.is-leader {
  background: color-mix(in srgb, var(--university-color, #0d52a5) 10%, #fff);
}

.compare-publish-ranks b {
  min-width: 0;
  overflow: hidden;
  color: #102a56;
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-publish-ranks em {
  color: #08275c;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.compare-publish-gap {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5ff;
}

.compare-publish-note {
  color: #cbdff7;
  font-size: 0.76rem;
  line-height: 1.45;
  font-weight: 800;
}

.compare-page-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.compare-page-title h1,
.compare-page-empty h1,
.compare-page-panel-head h2 {
  margin: 0;
  color: #092257;
  line-height: 1.16;
}

.compare-page-title h1,
.compare-page-empty h1 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 900;
}

.compare-page-title p,
.compare-page-empty p,
.compare-page-panel-head p {
  margin: 0;
  color: #52627a;
  line-height: 1.55;
}

.compare-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-start-hero {
  align-items: stretch;
}

.compare-start-summary {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: min(100%, 300px);
  padding: 18px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.compare-start-summary span {
  color: #0055a6;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  font-weight: 950;
}

.compare-start-summary strong,
.compare-start-summary small {
  display: block;
}

.compare-start-summary strong {
  color: #092257;
  font-size: 1rem;
  line-height: 1.3;
}

.compare-start-summary small {
  color: #607187;
  font-size: 0.85rem;
  line-height: 1.45;
}

.compare-start-panel {
  margin-top: 0;
}

.compare-start-panel .compare-panel {
  border-top: 4px solid #0055a6;
}

.compare-picker-panel {
  gap: 14px;
}

.compare-search-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fbfdff;
}

.compare-search-results {
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

.compare-search-item {
  grid-template-columns: 48px minmax(0, 1fr) minmax(210px, auto);
  grid-template-areas: "logo copy actions";
  align-items: center;
}

.compare-search-item .result-actions {
  grid-template-columns: repeat(2, minmax(0, auto));
  align-items: center;
}

.compare-search-item .primary-button[disabled] {
  cursor: default;
  opacity: 0.62;
  box-shadow: none;
}

.compare-search-hint {
  padding: 10px 12px;
  border: 1px dashed #cbd8e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #64748b;
  font-size: 0.84rem;
  line-height: 1.5;
}

.compare-preset-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
}

.compare-preset-head {
  display: grid;
  gap: 3px;
}

.compare-preset-head strong {
  color: #102a56;
  font-size: 0.92rem;
  font-weight: 900;
}

.compare-preset-head span {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.45;
}

.compare-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.compare-preset-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: #fff;
  color: #102a56;
  text-align: left;
  cursor: pointer;
}

.compare-preset-card:hover,
.compare-preset-card:focus-visible {
  border-color: #f59e0b;
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.14);
  outline: none;
}

.compare-preset-card strong,
.compare-preset-card span,
.compare-preset-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-preset-card strong {
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.compare-preset-card span {
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.compare-preset-card small {
  color: #0055a6;
  font-size: 0.74rem;
  font-weight: 900;
}

.compare-selection-method-note {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e1e9f4;
  border-radius: 8px;
  background: #fff;
  color: #5f6f86;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.5;
}

.compare-picker-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #f8fbff;
  color: #607187;
  font-size: 0.88rem;
  line-height: 1.5;
}

.compare-picker-next .ghost-button {
  flex: 0 0 auto;
}

.compare-page-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  min-height: 320px;
  padding: clamp(22px, 4vw, 34px);
}

.compare-page-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.compare-page-overview article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe8f4;
  border-left: 4px solid var(--university-color, #0d52a5);
  border-radius: 8px;
  background: #f8fbff;
}

.compare-page-overview article > strong {
  color: #102a56;
  font-size: 0.94rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-page-overview article > span {
  min-height: 1em;
  color: #64748b;
  font-size: 0.78rem;
}

.compare-page-overview dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.compare-page-overview dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 7px;
  background: #fff;
}

.compare-page-overview dl div:last-child {
  grid-column: 1 / -1;
}

.compare-page-overview dt {
  color: #6b7d95;
  font-size: 0.68rem;
  font-weight: 800;
}

.compare-page-overview dd {
  margin: 0;
  color: #0d3470;
  font-size: 0.84rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-page-overview dl div:last-child dd {
  white-space: normal;
}

.compare-insight-panel,
.compare-difference-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.07);
}

.compare-insight-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compare-insight-head h2 {
  margin: 0;
  color: #092257;
  font-size: 1.12rem;
  line-height: 1.3;
}

.compare-insight-head p {
  margin: 5px 0 0;
  color: #52627a;
  line-height: 1.55;
}

.compare-insight-head > span {
  flex: 0 0 auto;
  max-width: 260px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0d52a5;
  font-size: 0.76rem;
  font-weight: 950;
  text-align: center;
}

.compare-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.compare-insight-grid article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.compare-insight-grid span,
.compare-insight-grid small,
.compare-leader-board dt,
.compare-difference-card dt,
.compare-difference-card small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.compare-insight-grid strong,
.compare-leader-board dd,
.compare-difference-card dd {
  margin: 0;
  color: #0d2552;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1.2;
}

.compare-leader-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.compare-leader-board article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe8f4;
  border-left: 4px solid var(--university-color, #0d52a5);
  border-radius: 8px;
  background: #fbfdff;
}

.compare-leader-board .tiny-university-logo {
  width: 40px;
  height: 40px;
}

.compare-leader-board dl,
.compare-difference-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
}

.compare-leader-board dl div,
.compare-difference-card dl div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e3ebf5;
  border-radius: 7px;
  background: #fff;
}

.compare-difference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 10px;
}

.compare-difference-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dfe8f4;
  border-top: 4px solid #0d52a5;
  border-radius: 8px;
  background: #fbfdff;
}

.compare-difference-card.is-wide {
  border-top-color: #c4492d;
}

.compare-difference-card.is-close {
  border-top-color: #138a5b;
}

.compare-difference-card.is-tie {
  border-top-color: #f0a000;
}

.compare-difference-top {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.compare-difference-top .mini-system-logo {
  width: 46px;
  height: 34px;
  margin-left: 0;
}

.compare-difference-top span {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0d52a5;
  font-size: 0.66rem;
  font-weight: 950;
}

.compare-difference-card.is-wide .compare-difference-top span {
  background: #fff0ee;
  color: #9a3125;
}

.compare-difference-card.is-close .compare-difference-top span {
  background: #e4f8eb;
  color: #17623a;
}

.compare-difference-card.is-tie .compare-difference-top span {
  background: #fff1c7;
  color: #8a5b00;
}

.compare-difference-top strong,
.compare-difference-top small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compare-difference-top strong {
  color: #0d2552;
  font-size: 0.96rem;
  line-height: 1.25;
}

.compare-difference-card p {
  margin: 0;
  color: #52627a;
  font-size: 0.82rem;
  line-height: 1.5;
}

.compare-difference-ranks {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #e2ebf6;
  border-radius: 8px;
  background: #fff;
}

.compare-difference-ranks > strong {
  color: #0d2552;
  font-size: 0.76rem;
  font-weight: 950;
}

.compare-difference-ranks > div {
  display: grid;
  gap: 6px;
}

.compare-difference-ranks span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5edf7;
  border-left: 4px solid var(--university-color, #0d52a5);
  border-radius: 7px;
  background: #f8fbff;
}

.compare-difference-ranks span.is-leader {
  border-color: color-mix(in srgb, var(--university-color, #0d52a5) 30%, #dbe7f5);
  border-left-color: var(--university-color, #0d52a5);
  background: color-mix(in srgb, var(--university-color, #0d52a5) 9%, #fff);
}

.compare-difference-ranks b {
  min-width: 0;
  overflow: hidden;
  color: #102a56;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-difference-ranks em {
  color: #092257;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.compare-difference-ranks small {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0d52a5;
  font-size: 0.68rem;
  font-weight: 950;
  white-space: nowrap;
}

.compare-difference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-page-panel {
  display: grid;
  gap: 12px;
  padding: clamp(14px, 2vw, 18px);
}

.compare-page-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.compare-page-panel-head h2 {
  font-size: 1.1rem;
  font-weight: 900;
}

.compare-page-panel-head span {
  color: #0d52a5;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.compare-page-table .compare-table {
  min-width: 780px;
}

.compare-detail-modal {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  width: min(1120px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 24, 48, 0.24);
}

.compare-modal-head {
  align-items: center;
}

.compare-modal-head h2,
.compare-modal-head p {
  margin: 0;
}

.compare-modal-head h2 {
  color: #0d2552;
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.25;
}

.compare-modal-head p {
  margin-top: 3px;
  color: #64748b;
  font-size: 0.85rem;
}

.compare-modal-head .compare-modal-hint {
  color: #315a91;
  font-size: 0.78rem;
  font-weight: 800;
}

.compare-modal-table {
  min-height: 0;
}

.compare-modal-table .compare-table-wrap {
  max-height: min(650px, calc(100vh - 214px));
  overflow: auto;
}

.compare-modal-table .compare-table {
  min-width: 760px;
}

.compare-modal-table .compare-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid #cfdcec;
  box-shadow: 0 2px 0 rgba(13, 37, 82, 0.06), 0 8px 14px rgba(13, 37, 82, 0.08);
}

.university-profile-modal {
  display: grid;
  grid-template-rows: none;
  gap: 12px;
  align-content: start;
  width: min(980px, 100%);
  max-height: min(820px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 24, 48, 0.24);
}

.university-profile-head {
  align-items: center;
}

.profile-logo {
  width: 48px;
  height: 48px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.profile-stat-grid div,
.profile-summary-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.profile-stat-grid span,
.profile-summary-row span {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-stat-grid strong,
.profile-summary-row strong {
  min-width: 0;
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-stat-grid small,
.profile-summary-row small {
  min-width: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.profile-best-rank-sources strong,
.profile-best-rank-sources small {
  overflow-wrap: anywhere;
}

.profile-summary-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
}

.profile-summary-row.profile-summary-row-three {
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.05fr) minmax(170px, 0.85fr);
}

.profile-website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: #0056a8;
  text-decoration: none;
}

.profile-website-link:hover {
  color: #003f7d;
  text-decoration: underline;
}

.profile-website-link svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
}

.profile-website-link span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-year-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(120px, 0.55fr) minmax(120px, 0.55fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-data-year-controls {
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
}

.university-profile-modal .profile-year-controls {
  margin: 4px 0;
}

.profile-year-controls label {
  display: grid;
  gap: 5px;
  color: #0d2552;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-year-controls select {
  min-height: 40px;
  border-radius: 7px;
}

.profile-year-note {
  color: #5f7188;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
}

.profile-compare-controls {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #cfe0f3;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #f7fbff;
}

.profile-compare-control-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-compare-control-head strong {
  color: #0d2552;
  font-size: 0.94rem;
}

.profile-compare-control-head span,
.profile-compare-note {
  color: #5f7188;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.45;
}

.profile-compare-control-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.42fr) minmax(130px, 0.42fr) minmax(0, 1.16fr);
  gap: 10px;
  align-items: end;
}

.profile-compare-control-grid label {
  display: grid;
  gap: 5px;
  color: #0d2552;
  font-size: 0.78rem;
  font-weight: 900;
}

.profile-compare-control-grid select {
  min-height: 40px;
  border-radius: 7px;
}

.profile-table-wrap {
  min-height: 0;
  overflow: auto;
  border: 1px solid #dde6f1;
  border-radius: 8px;
}

.profile-ranking-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  background: #fff;
}

.profile-ranking-table th,
.profile-ranking-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #edf2f7;
  color: #253858;
  font-size: 0.8rem;
  text-align: left;
  vertical-align: middle;
}

.profile-ranking-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7fc;
  color: #233a63;
  font-size: 0.74rem;
  font-weight: 900;
  box-shadow: 0 2px 0 rgba(13, 37, 82, 0.06);
}

.profile-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.profile-ranking-list {
  display: none;
}

.profile-ranking-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: #fff;
}

.profile-card-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.profile-card-head .mini-system-logo {
  width: 44px;
  height: 34px;
  margin-left: 0;
}

.profile-card-head strong,
.profile-card-head small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-card-head strong {
  color: #132847;
  font-size: 0.95rem;
  line-height: 1.25;
}

.profile-card-head small {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.profile-card-category {
  padding: 8px 10px;
  border-radius: 7px;
  background: #f3f7fc;
  color: #233a63;
  font-size: 0.8rem;
  font-weight: 850;
}

.profile-card-ranks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-card-ranks div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  background: #f8fbff;
}

.profile-card-ranks span {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 900;
}

.profile-card-ranks strong {
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.2;
}

.profile-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.profile-year-compare {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.profile-best-highlights {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.08);
}

.university-profile-modal .profile-best-highlights {
  padding: 12px;
  box-shadow: none;
}

.profile-best-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.profile-best-highlight-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}

.profile-best-highlight-card .profile-card-ranks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-best-highlight-card .profile-card-foot small {
  order: -1;
  flex: 1 0 100%;
  min-width: 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.profile-best-highlight-card .profile-card-foot .ghost-button {
  flex: 1 1 150px;
  justify-content: center;
}

.rank-trend-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.07);
}

.rank-trend-chart-shell {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid #e0e9f5;
  border-radius: 8px;
  background: #f8fbff;
}

.rank-trend-controls {
  display: grid;
  grid-template-columns: minmax(190px, 0.75fr) minmax(260px, 1.25fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: #fbfdff;
}

.rank-trend-controls .compare-update-status {
  grid-column: 1 / -1;
  justify-self: start;
}

.trend-control-help {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #5f6f86;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.55;
}

.profile-trend-controls {
  grid-template-columns: minmax(150px, 0.65fr) minmax(240px, 1.25fr) minmax(190px, 0.9fr);
}

.rank-trend-controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #0d2552;
  font-size: 0.76rem;
  font-weight: 900;
}

.rank-trend-controls select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d5dfec;
  border-radius: 7px;
  background: #fff;
  color: #102a56;
  font-weight: 850;
}

.rank-trend-chart {
  display: block;
  width: 100%;
  min-width: 680px;
  height: auto;
  fill: none;
  stroke: none;
  stroke-width: 0;
}

.rank-trend-bg {
  fill: #fff;
  stroke: #dce6f2;
}

.rank-trend-grid-line {
  stroke: #dce6f2;
  stroke-width: 1;
}

.rank-trend-year-line {
  stroke: #edf3fa;
  stroke-width: 1;
}

.rank-trend-axis-text,
.rank-trend-axis-title {
  fill: #52627a;
  stroke: none;
  stroke-width: 0;
  paint-order: normal;
  font-size: 12px;
  font-weight: 750;
}

.rank-trend-axis-title {
  font-size: 11px;
  fill: #64748b;
}

.rank-trend-line {
  filter: drop-shadow(0 3px 5px rgba(16, 42, 86, 0.12));
}

.rank-trend-point {
  stroke: #fff;
  stroke-width: 2;
  pointer-events: none;
}

.rank-trend-hit-area {
  fill: transparent;
  stroke: transparent;
  stroke-width: 0;
  cursor: help;
  pointer-events: all;
}

.rank-trend-hit-area.is-stacked {
  stroke: rgba(13, 82, 165, 0.18);
  stroke-width: 8;
}

.rank-trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rank-trend-legend span {
  display: inline-grid;
  grid-template-columns: 10px minmax(0, auto);
  grid-template-areas:
    "mark label"
    "mark meta";
  column-gap: 7px;
  align-items: center;
  max-width: 260px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid #e0e8f3;
  border-radius: 999px;
  background: #fbfdff;
}

.rank-trend-legend i {
  grid-area: mark;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
}

.rank-trend-legend strong,
.rank-trend-legend small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-trend-legend strong {
  grid-area: label;
  color: #102a56;
  font-size: 0.78rem;
  font-weight: 950;
}

.rank-trend-legend small {
  grid-area: meta;
  color: #6a7b91;
  font-size: 0.68rem;
  font-weight: 750;
}

.rank-trend-source-notes {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: #fbfdff;
}

.rank-trend-source-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.rank-trend-source-head strong {
  color: #0d2552;
  font-size: 0.86rem;
  font-weight: 950;
}

.rank-trend-source-head span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
}

.rank-trend-source-rows {
  display: grid;
  gap: 8px;
}

.rank-trend-source-row {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.rank-trend-source-name {
  display: inline-grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-width: 0;
  color: #102a56;
  font-size: 0.78rem;
  font-weight: 950;
}

.rank-trend-source-name i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
}

.rank-trend-source-name strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-trend-source-chips {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.rank-trend-source-chips span {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid #dce6f2;
  border-radius: 999px;
  background: #fff;
  color: #42526e;
  font-size: 0.7rem;
  font-weight: 820;
  white-space: nowrap;
}

.rank-trend-source-chips b {
  color: #0d3470;
}

.profile-category-summary,
.profile-best-system-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.07);
}

.profile-category-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.profile-category-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--item-accent) 22%, #dde6f1);
  border-top: 4px solid var(--item-accent);
  border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--item-soft) 42%, #fff), #fff);
}

.profile-category-card span,
.profile-category-card small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.35;
}

.profile-category-card strong {
  color: #0d2552;
  font-size: 1.65rem;
  line-height: 1;
}

.profile-category-card .ghost-button {
  width: 100%;
  justify-content: center;
}

.profile-best-system-table-wrap {
  overflow-x: auto;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: #fff;
}

.profile-best-system-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.profile-best-system-table th,
.profile-best-system-table td {
  padding: 9px 10px;
  border-bottom: 1px solid #edf2f7;
  color: #253858;
  font-size: 0.8rem;
  text-align: left;
  vertical-align: middle;
}

.profile-best-system-table th {
  background: #f3f7fc;
  color: #233a63;
  font-size: 0.74rem;
  font-weight: 950;
}

.profile-best-system-table tr:last-child td {
  border-bottom: 0;
}

.profile-best-system-source {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.profile-best-system-source .mini-system-logo {
  width: 44px;
  height: 34px;
  margin-left: 0;
}

.profile-best-system-source strong,
.profile-best-system-source small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-best-system-source small {
  color: #667790;
  font-size: 0.72rem;
  white-space: nowrap;
}

.profile-best-system-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.profile-coverage-list div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #f8fbff;
}

.profile-coverage-list dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.profile-coverage-list dd {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
  font-weight: 950;
}

.profile-year-compare .section-heading h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
}

.profile-year-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.year-compare-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dde6f1;
  border-radius: 8px;
  background: #fff;
}

.year-compare-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.year-compare-values div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px;
  border: 1px solid #e1e8f2;
  border-radius: 7px;
  background: #f8fbff;
}

.year-compare-values span,
.year-compare-values small {
  color: #66758a;
  font-size: 0.72rem;
  font-weight: 850;
}

.year-compare-values strong {
  color: #0d2552;
  font-size: 1.1rem;
  line-height: 1.15;
}

.rank-change {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef4fb;
  color: #51647d;
  font-size: 0.78rem;
  font-weight: 900;
}

.rank-change.is-up {
  background: #e4f8eb;
  color: #17623a;
}

.rank-change.is-down {
  background: #fff0ee;
  color: #9a3125;
}

.rank-change.is-stable {
  background: #eef4fb;
  color: #31506f;
}

.university-page {
  gap: 16px;
}

.university-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 18px;
  align-items: center;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.94)),
    linear-gradient(135deg, rgba(7, 49, 95, 0.07), rgba(0, 86, 168, 0));
  box-shadow: 0 18px 46px rgba(19, 55, 96, 0.08);
}

.university-page-title {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.university-page-title .modal-university {
  grid-template-columns: 58px minmax(0, 1fr);
}

.university-page-title h1 {
  margin: 0;
  color: #092257;
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  font-weight: 900;
}

.university-page-title p {
  max-width: 720px;
  margin: 0;
  color: #52627a;
  font-size: 1rem;
  line-height: 1.65;
}

.university-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.university-page-summary div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fff;
}

.university-page-summary span {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
}

.university-page-summary strong {
  min-width: 0;
  color: #0d2552;
  font-size: 1.2rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.university-page-summary small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 800;
}

.profile-anchor-target,
#profileOverview,
#profileOverviewInsights,
#profileHighlights,
#profileTrend,
#profileRecords,
#profileCompare,
#profileStatus {
  scroll-margin-top: 108px;
}

.profile-anchor-nav {
  position: sticky;
  top: 74px;
  z-index: 8;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(25, 57, 101, 0.08);
  backdrop-filter: blur(12px);
}

.profile-anchor-nav button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d8e4f2;
  border-radius: 7px;
  background: #f8fbff;
  color: #0d3470;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-anchor-nav button:hover,
.profile-anchor-nav button:focus-visible {
  border-color: #a9c8eb;
  background: #edf6ff;
}

.profile-insight-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    linear-gradient(135deg, rgba(0, 86, 168, 0.06), rgba(18, 135, 90, 0.06));
  box-shadow: 0 16px 38px rgba(19, 55, 96, 0.07);
}

.profile-insight-story {
  display: grid;
  gap: 5px;
  max-width: 980px;
}

.profile-insight-story span {
  color: #0d52a5;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-insight-story p {
  margin: 0;
  color: #253858;
  font-size: 0.98rem;
  line-height: 1.62;
}

.profile-insight-grid,
.profile-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.profile-insight-card,
.profile-status-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #e1e8f2;
  border-left: 4px solid #0d52a5;
  border-radius: 8px;
  background: #fff;
}

.profile-insight-card.is-up {
  border-left-color: #138a5b;
}

.profile-insight-card.is-down {
  border-left-color: #c4492d;
}

.profile-insight-card.is-stable {
  border-left-color: #617086;
}

.profile-insight-card span,
.profile-status-grid dt,
.profile-status-grid small {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.35;
}

.profile-insight-card strong,
.profile-status-grid dd {
  min-width: 0;
  margin: 0;
  color: #0d2552;
  font-size: 1.04rem;
  line-height: 1.24;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.profile-insight-card small {
  color: #52627a;
  font-size: 0.74rem;
  font-weight: 760;
  line-height: 1.42;
}

.profile-disclosure {
  overflow: hidden;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-disclosure + .profile-disclosure {
  margin-top: 2px;
}

.profile-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  color: #0d2552;
  cursor: pointer;
  list-style: none;
}

.profile-disclosure summary::-webkit-details-marker {
  display: none;
}

.profile-disclosure summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.profile-disclosure summary strong {
  font-size: 0.98rem;
  line-height: 1.32;
}

.profile-disclosure summary small {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 780;
  line-height: 1.42;
}

.profile-disclosure summary i {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #0d52a5;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 950;
}

.profile-disclosure[open] summary {
  border-bottom: 1px solid #dfe8f4;
  background: #f5f9ff;
}

.profile-disclosure-body {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.profile-disclosure-body .profile-best-system-section {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.profile-quick-compare-grid {
  display: grid;
  gap: 9px;
}

.profile-quick-compare-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.profile-quick-compare-card .university-cell {
  min-width: 0;
}

.profile-quick-compare-card .tiny-university-logo {
  width: 38px;
  height: 38px;
}

.profile-quick-compare-card strong,
.profile-quick-compare-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-quick-compare-card small {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.profile-data-status-panel {
  border-left: 4px solid #0d52a5;
}

.profile-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-print-note {
  margin: 0;
  color: #52627a;
  font-size: 0.86rem;
  line-height: 1.55;
}

.university-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.university-page-main,
.university-page-aside {
  min-width: 0;
}

.university-page-aside {
  display: grid;
  gap: 14px;
}

.university-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.07);
}

.compact-heading {
  align-items: end;
}

.university-page-rankings {
  max-height: none;
}

.university-page-rankings .profile-ranking-table {
  min-width: 720px;
}

.university-info-panel {
  gap: 10px;
}

.university-info-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.university-info-list div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 8px;
  background: #fbfdff;
}

.university-info-list dt {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
}

.university-info-list dd {
  min-width: 0;
  margin: 0;
  color: #0d2552;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
}

.university-info-note {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.share-panel {
  gap: 10px;
}

.share-actions {
  display: grid;
  gap: 8px;
}

.profile-system-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.profile-system-cell .mini-system-logo {
  width: 42px;
  height: 30px;
  margin-left: 0;
}

.profile-system-cell strong,
.profile-system-cell small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-system-cell strong {
  color: #132847;
  font-size: 0.8rem;
}

.profile-system-cell small {
  color: #64748b;
  font-size: 0.7rem;
  white-space: nowrap;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.compact-empty-state {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 14px;
  border: 1px dashed #cbd8e8;
  border-radius: 8px;
  background: #f8fbff;
}

.compact-empty-state svg {
  width: 22px;
  height: 22px;
  color: #315a91;
}

.website-guide {
  display: grid;
  gap: 18px;
  margin: 18px 0 22px;
}

.guide-heading {
  padding: 16px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96)),
    linear-gradient(135deg, rgba(0, 86, 168, 0.08), rgba(0, 86, 168, 0));
}

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

.guide-card,
.guide-notes article {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(25, 57, 101, 0.05);
}

.guide-card.is-featured {
  grid-column: span 2;
  background:
    linear-gradient(180deg, #fff, #f8fbff);
  border-color: #cfdeef;
}

.guide-card h3,
.guide-workflow h3,
.guide-notes h3 {
  margin: 0;
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.3;
}

.guide-card p,
.guide-card li,
.guide-notes p {
  margin: 0;
  color: #53647c;
  font-size: 0.88rem;
  line-height: 1.65;
}

.guide-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
}

.guide-workflow {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  background: #f8fbff;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.guide-steps li {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fff;
  counter-increment: guide-step;
}

.guide-steps li::before {
  content: counter(guide-step);
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-steps strong {
  color: #0d2552;
  font-size: 0.86rem;
  line-height: 1.35;
}

.guide-steps span {
  color: #5d6f86;
  font-size: 0.78rem;
  line-height: 1.55;
}

.guide-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 12px;
}

.guide-contact {
  align-content: start;
  background: #f8fbff;
}

.guide-contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd9ec;
  border-radius: 7px;
  background: #fff;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.guide-contact a svg {
  width: 16px;
  height: 16px;
}

.reader-section {
  display: grid;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.home-deferred-placeholder {
  gap: 10px;
  min-height: 170px;
  padding: 16px;
  border: 1px solid #dfe8f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.home-deferred-placeholder span {
  display: block;
  height: 22px;
  max-width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #edf3fb 0%, #f8fbff 46%, #edf3fb 100%);
  background-size: 220% 100%;
  animation: homeDeferredPulse 1.2s ease-in-out infinite;
}

.home-deferred-placeholder span:nth-child(1) {
  width: 52%;
}

.home-deferred-placeholder span:nth-child(2) {
  width: 86%;
}

.home-deferred-placeholder span:nth-child(3) {
  width: 68%;
}

@keyframes homeDeferredPulse {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: -220% 0;
  }
}

@supports (content-visibility: auto) {
  .home-page > .reader-section:not(.home-deferred-placeholder) {
    content-visibility: visible;
    contain-intrinsic-size: none;
  }

  .home-page > .latest-overview-section,
  .home-page > .home-system-section,
  .home-page > .home-movement-section,
  .home-page > .pulse-section {
    contain-intrinsic-size: 1px 720px;
  }

  .home-page > .home-compare-cta,
  .home-page > .home-about-strip {
    contain-intrinsic-size: 1px 300px;
  }
}

.guide-page {
  gap: 20px;
}

.guide-hero {
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
}

.guide-summary-card {
  align-self: stretch;
  align-content: center;
}

.guide-summary-card h2 {
  margin: 0;
  color: #0d2552;
  font-size: 1.08rem;
  line-height: 1.3;
}

.guide-summary-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding-left: 1.2rem;
  color: #41536d;
  font-weight: 850;
  line-height: 1.5;
}

.guide-page .guide-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.guide-page .guide-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dbe6f3;
  border-top: 4px solid #0d52a5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23, 61, 104, 0.06);
}

.guide-page .guide-card h3,
.guide-page .guide-card p {
  margin: 0;
}

.guide-page .guide-card h3 {
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.3;
}

.guide-page .guide-card p {
  margin-top: 8px;
  color: #4b5c73;
  font-size: 0.9rem;
  line-height: 1.68;
}

.guide-step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.guide-step-list article {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #f8fbff;
}

.guide-step-list strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #0d52a5;
  color: #fff;
}

.guide-step-list p {
  margin: 0;
  color: #43556e;
  font-size: 0.86rem;
  line-height: 1.58;
}

.guide-warning-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 18px;
  border: 1px solid #f0c884;
  border-left: 5px solid #f09a16;
  border-radius: 8px;
  background: #fff8eb;
}

.guide-warning-panel h2,
.guide-warning-panel p {
  margin: 0;
}

.guide-warning-panel h2 {
  color: #8d4c0c;
  font-size: 1.05rem;
}

.guide-warning-panel p {
  margin-top: 6px;
  color: #614b2b;
  line-height: 1.65;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2,
.section-heading p {
  margin: 0;
}

.section-heading h2 {
  color: #0d2552;
  font-size: 1.22rem;
  line-height: 1.25;
}

.section-heading p {
  max-width: 640px;
  color: #607087;
  font-size: 0.92rem;
  text-align: right;
}

.reader-category-strip {
  margin-bottom: 0;
}

.public-system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 12px;
}

.public-system-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 12px;
  border: 1px solid #d8e1ee;
  border-radius: 8px;
  background: #fff;
  color: #132847;
  text-align: left;
  box-shadow: 0 10px 24px rgba(24, 56, 98, 0.04);
}

.public-system-card.is-active {
  border-color: var(--accent);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent) 11%, #fff), #fff 70%);
  box-shadow: inset 5px 0 0 var(--accent), 0 16px 34px rgba(25, 66, 113, 0.1);
}

.home-system-card:hover {
  border-color: var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, #fff), #fff);
  box-shadow: 0 14px 30px rgba(25, 66, 113, 0.08);
}

.home-system-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.home-system-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 57, 101, 0.06);
}

.home-system-group:first-child {
  grid-column: 1 / -1;
}

.home-system-group-head {
  display: grid;
  gap: 3px;
}

.home-system-group-head h3,
.home-system-group-head p {
  margin: 0;
}

.home-system-group-head h3 {
  color: #0d2552;
  font-size: 1rem;
  line-height: 1.25;
}

.home-system-group-head p {
  color: #65768d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-system-group:first-child .home-system-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.home-system-group:not(:first-child) .home-system-grid {
  grid-template-columns: 1fr;
}

.public-system-card strong,
.public-system-card small {
  display: block;
  min-width: 0;
}

.public-system-card strong {
  color: #122847;
  font-size: 0.92rem;
  line-height: 1.25;
}

.public-system-card small {
  margin-top: 4px;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.25;
}

.reader-filter-section {
  margin-top: -2px;
}

.reader-filter-bar {
  display: grid;
  grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(35, 66, 107, 0.06);
}

.reader-filter-bar label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.reader-filter-bar label > span {
  color: #233a63;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-search-field {
  min-width: 0;
}

.filter-searchbox {
  height: 42px;
  border-color: #c9d8eb;
  background: #fbfdff;
}

.filter-searchbox:focus-within {
  border-color: #0056a8;
  box-shadow: 0 0 0 3px rgba(0, 86, 168, 0.12);
}

.reader-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 16px;
  align-items: start;
}

.reader-board {
  min-width: 0;
}

.reader-board-title {
  gap: 12px;
  margin-bottom: 16px;
}

.reader-board-title .rank-logo {
  width: 64px;
  height: 56px;
}

.reader-board-title h2 {
  font-size: clamp(1.2rem, 2vw, 1.58rem);
}

.reader-board-title p {
  color: #5d6f86;
}

.reader-aside {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.reader-source-card dl {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-year-links {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ranking-year-links > strong {
  color: #0d2552;
  font-size: 0.84rem;
}

.ranking-year-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ranking-year-links a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d7e2ef;
  border-radius: 999px;
  background: #fff;
  color: #0d52a5;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.ranking-year-links a:hover,
.ranking-year-links a:focus-visible,
.ranking-year-links a.is-active {
  border-color: #0d52a5;
  background: #eef6ff;
}

.public-table-wrap {
  border-color: #d7e1ee;
}

.public-ranking-table {
  min-width: 820px;
}

.public-ranking-table th:last-child,
.public-ranking-table td:last-child {
  width: 54px;
  text-align: center;
}

.university-cell {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.university-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: linear-gradient(135deg, #eef5ff, #fff);
  color: #0b52b7;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
}

.university-logo.has-logo {
  background: #fff;
}

.university-logo.has-logo .logo-fallback {
  display: none;
}

.university-logo.has-logo.is-logo-missing {
  background: linear-gradient(135deg, #eef5ff, #fff);
  color: #0b52b7;
}

.university-logo.has-logo.is-logo-missing .logo-fallback {
  display: block;
}

.university-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.admin-university-cell {
  grid-template-columns: 34px minmax(0, 1fr);
}

.admin-university-cell .university-logo {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.logo-field input[type="file"] {
  height: auto;
  padding: 9px 11px;
}

.university-logo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px dashed #bfd0e6;
  border-radius: 8px;
  background: #f8fbff;
  color: #31445f;
  font-size: 0.84rem;
  font-weight: 700;
}

.university-logo.preview-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.university-logo-preview .text-button {
  margin-left: auto;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px dashed #c8d6e8;
  border-radius: 7px;
  background: #f8fbff;
  color: #31445f;
  font-size: 0.8rem;
  font-weight: 700;
}

.upload-preview.is-empty {
  color: #7a8899;
  font-weight: 600;
}

.upload-preview img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border: 1px solid #dce4ef;
  border-radius: 6px;
  background: #fff;
}

.reader-table-footer {
  align-items: center;
}

.reader-note {
  background: #f8fbff;
  border-color: #d9e2ef;
  color: #31445f;
}

.public-empty-state {
  min-height: 240px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - var(--page-gutter) - var(--page-gutter));
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 18px 0 34px;
  color: #5d6f86;
  font-size: 0.86rem;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: #173456;
  font-size: 0.92rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-trust-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.footer-trust-links .text-button,
.footer-trust-links a {
  padding: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: #0d52a5;
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.footer-trust-links a:hover,
.footer-trust-links .text-button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d6deeb;
  border-radius: 7px;
  background: #fff;
  color: #16427a;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-icon-link {
  width: 36px;
  min-width: 36px;
  justify-content: center;
  padding: 0;
}

.footer-icon-link svg {
  fill: currentColor;
  stroke: none;
}

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

.footer-admin-link:hover,
.footer-admin-link.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.policy-page {
  gap: 22px;
}

.policy-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
}

.policy-card {
  align-self: stretch;
  align-content: center;
}

.policy-card h2,
.policy-card p {
  margin: 0;
}

.policy-card h2 {
  color: #0b2555;
  font-size: 1rem;
  line-height: 1.35;
}

.policy-card p {
  color: #5f7189;
  font-size: 0.9rem;
  line-height: 1.6;
}

.policy-content {
  display: grid;
  gap: 14px;
}

.policy-section {
  padding: 18px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(29, 63, 114, 0.06);
}

.policy-section h2,
.policy-section p {
  margin: 0;
}

.policy-section h2 {
  color: #0b2555;
  font-size: 1.05rem;
  line-height: 1.35;
}

.policy-section p {
  margin-top: 8px;
  color: #42536b;
  font-size: 0.94rem;
  line-height: 1.75;
}

.policy-contact {
  display: grid;
  gap: 10px;
}

.cookie-consent {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  left: max(18px, env(safe-area-inset-left));
  z-index: 1100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px;
  border: 1px solid #d8e4f3;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 54px rgba(12, 35, 74, 0.2);
}

.cookie-consent-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.cookie-consent-copy strong {
  color: #0b2555;
  font-size: 1rem;
  line-height: 1.35;
}

.cookie-consent-copy p {
  margin: 0;
  color: #52627a;
  font-size: 0.9rem;
  line-height: 1.65;
}

.inline-link {
  margin: 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0055a6;
  font: inherit;
  font-weight: 850;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 4px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid #dbe6f3;
  border-radius: 8px;
  background: #f7fbff;
}

.cookie-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0055a6;
}

.cookie-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cookie-option small {
  color: #65748a;
  font-size: 0.76rem;
  line-height: 1.45;
}

.cookie-option.is-required {
  background: #fff8ec;
}

.cookie-consent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 24, 48, 0.42);
}

.entry-detail-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 16px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(7, 24, 48, 0.24);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4ebf4;
}

.modal-university h2 {
  margin: 0;
  color: #0d2552;
  font-size: clamp(1.15rem, 2vw, 1.48rem);
  line-height: 1.25;
}

.detail-rank-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.detail-rank-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  background: #f8fbff;
}

.detail-rank-strip span,
.detail-list dt {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 900;
}

.detail-rank-strip strong {
  color: #102447;
  font-size: 1.04rem;
  line-height: 1.2;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 14px 0 0;
}

.detail-list div {
  min-width: 0;
}

.detail-list dd {
  margin: 3px 0 0;
  color: #172945;
  font-size: 0.9rem;
  font-weight: 750;
}

.detail-list dd small {
  display: block;
  margin-top: 2px;
  color: #64748b;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e4ebf4;
}

.correction-report-modal {
  width: min(680px, 100%);
}

.correction-report-modal .modal-head h2,
.correction-report-modal .modal-head p {
  margin: 0;
}

.correction-report-modal .modal-head h2 {
  color: #0d2552;
  font-size: 1.28rem;
  line-height: 1.3;
}

.correction-report-modal .modal-head p {
  margin-top: 5px;
  color: #607087;
  font-size: 0.88rem;
}

.correction-report-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}

.correction-report-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e0e8f3;
  border-radius: 8px;
  background: #f8fbff;
  color: #0d2552;
  font-weight: 900;
}

.correction-report-summary strong {
  color: #607087;
  font-size: 0.72rem;
}

.correction-report-form {
  display: grid;
  gap: 12px;
}

.correction-report-form label {
  display: grid;
  gap: 6px;
  color: #233a63;
  font-size: 0.84rem;
  font-weight: 900;
}

.correction-report-form textarea {
  min-height: 118px;
  resize: vertical;
}

.correction-report-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e7edf5;
  border-radius: 8px;
  background: #fbfdff;
  color: #66768c;
  font-size: 0.78rem;
  line-height: 1.5;
}

.correction-report-note a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0d52a5;
  font-weight: 900;
  text-decoration: none;
}

.login-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 190px);
  padding: 38px 14px;
}

.login-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(100%, 430px);
  padding: 24px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(35, 66, 107, 0.1);
  text-align: center;
}

.login-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.login-card h1,
.login-card p {
  margin: 0;
}

.login-card h1 {
  color: #092257;
  font-size: 1.42rem;
  line-height: 1.25;
}

.login-card > p {
  color: #607087;
  font-size: 0.92rem;
}

.login-form {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
  text-align: left;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #233a63;
  font-size: 0.86rem;
  font-weight: 800;
}

.login-message {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #f2c38f;
  border-radius: 7px;
  background: #fff8e8;
  color: #795318;
  font-size: 0.84rem;
  text-align: left;
}

.field-hint {
  color: #6a788d;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.system-logo.has-logo,
.rank-logo.has-logo,
.mini-system-logo.has-logo,
.source-guide-logo.has-logo,
.source-guide-detail-logo.has-logo,
.system-admin-logo.has-logo {
  overflow: hidden;
  border: 1px solid #dce4ef;
  background: #fff;
  color: #102447;
}

.system-logo.has-logo.logo-on-dark,
.rank-logo.has-logo.logo-on-dark,
.mini-system-logo.has-logo.logo-on-dark,
.source-guide-logo.has-logo.logo-on-dark,
.source-guide-detail-logo.has-logo.logo-on-dark,
.system-admin-logo.has-logo.logo-on-dark {
  border-color: rgba(15, 35, 68, 0.48);
  background: #0b2c5d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.system-logo.has-logo .logo-fallback,
.rank-logo.has-logo .logo-fallback,
.mini-system-logo.has-logo .logo-fallback,
.source-guide-logo.has-logo .logo-fallback,
.source-guide-detail-logo.has-logo .logo-fallback,
.system-admin-logo.has-logo .logo-fallback {
  display: none;
}

.system-logo.has-logo.is-logo-missing,
.rank-logo.has-logo.is-logo-missing,
.mini-system-logo.has-logo.is-logo-missing,
.source-guide-logo.has-logo.is-logo-missing,
.source-guide-detail-logo.has-logo.is-logo-missing,
.system-admin-logo.has-logo.is-logo-missing {
  display: grid;
  place-items: center;
  background: var(--cat-accent, #0055a6);
  color: #fff;
  font-weight: 900;
}

.system-logo.has-logo.is-logo-missing .logo-fallback,
.rank-logo.has-logo.is-logo-missing .logo-fallback,
.mini-system-logo.has-logo.is-logo-missing .logo-fallback,
.source-guide-logo.has-logo.is-logo-missing .logo-fallback,
.source-guide-detail-logo.has-logo.is-logo-missing .logo-fallback,
.system-admin-logo.has-logo.is-logo-missing .logo-fallback {
  display: block;
  padding: 0 6px;
  line-height: 1.1;
  text-align: center;
}

.system-logo.has-logo img,
.rank-logo.has-logo img,
.mini-system-logo.has-logo img,
.source-guide-logo.has-logo img,
.source-guide-detail-logo.has-logo img,
.system-admin-logo.has-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

.system-logo.has-logo.logo-on-dark img,
.rank-logo.has-logo.logo-on-dark img,
.mini-system-logo.has-logo.logo-on-dark img,
.source-guide-logo.has-logo.logo-on-dark img,
.source-guide-detail-logo.has-logo.logo-on-dark img,
.system-admin-logo.has-logo.logo-on-dark img {
  padding: 6px;
}

.mini-system-logo {
  display: grid;
  place-items: center;
  height: 34px;
  margin-left: 7px;
  border-radius: 6px;
  background: var(--cat-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.source-guide-logo,
.source-guide-detail-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--item-accent);
  color: #fff;
  font-weight: 900;
}

.source-guide-logo {
  width: 48px;
  height: 48px;
  font-size: 0.76rem;
}

.source-guide-detail-logo {
  width: 68px;
  height: 68px;
  font-size: 0.9rem;
}

.system-admin-logo {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 7px;
  background: var(--item-accent);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
}

.system-admin-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.system-edit-button.is-active {
  border-color: var(--item-accent);
  color: var(--item-accent);
  background: color-mix(in srgb, var(--item-accent) 8%, #fff);
}

.logo-preview-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px dashed #c8d6e8;
  border-radius: 8px;
  background: #f8fbff;
}

.logo-preview-row strong,
.logo-preview-row small {
  display: block;
}

.logo-preview-row strong {
  color: #142844;
  font-size: 0.9rem;
}

.logo-preview-row small {
  margin-top: 2px;
  color: #66758a;
  font-size: 0.78rem;
  font-weight: 600;
}

.cover-preview-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 92px;
  padding: 10px;
  border: 1px dashed #c8d6e8;
  border-radius: 8px;
  background: #f8fbff;
  color: #31445f;
  font-size: 0.84rem;
  font-weight: 700;
}

.cover-preview-row.is-empty {
  display: grid;
  place-items: center start;
  color: #7a8899;
  font-weight: 600;
}

.preview-cover {
  width: 160px;
  max-width: 160px;
  aspect-ratio: 16 / 9;
}

.cover-preview-row .preview-cover {
  width: 160px;
  max-width: 160px;
  min-height: 0;
}

.cover-preview-row strong,
.cover-preview-row small {
  display: block;
}

.cover-preview-row strong {
  color: #142844;
  font-size: 0.9rem;
}

.cover-preview-row small {
  margin-top: 2px;
  color: #66758a;
  font-size: 0.78rem;
  font-weight: 600;
}

.logo-upload-control {
  position: relative;
  overflow: hidden;
}

.logo-upload-control input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.facebook-icon {
  fill: currentColor;
  stroke: none;
}

.facebook-icon circle,
.facebook-icon path {
  stroke: none;
}

.home-category-card {
  min-height: 0;
}

.home-category-card p {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-category-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-detail .detail-summary {
  display: -webkit-box;
  min-height: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.home-system-group-grid {
  grid-template-columns: 1fr;
}

.home-system-group:first-child .home-system-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.home-system-card {
  min-height: 70px;
  padding: 10px;
}

.home-system-card .system-logo {
  width: 48px;
  height: 38px;
}

.archive-update-card {
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
}

.archive-update-cover {
  min-height: 102px;
}

.archive-update-copy h2 {
  font-size: 1rem;
}

.archive-update-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.archive-update-copy .primary-button {
  min-height: 38px;
  padding: 0 12px;
}

.university-page-aside {
  gap: 10px;
}

.university-page-aside .pulse-panel,
.university-page-aside .university-info-panel {
  padding: 12px;
}

.university-page-aside .update-item {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
}

.university-page-aside .update-cover {
  aspect-ratio: 16 / 10;
}

.university-page-aside .update-item p,
.university-page-aside .calendar-item p {
  display: none;
}

.university-page-aside .update-item h4,
.university-page-aside .calendar-item h4 {
  font-size: 0.82rem;
  line-height: 1.3;
}

.university-page-aside .content-meta {
  gap: 6px;
}

.panel-more-button {
  width: 100%;
  justify-content: center;
}

@media (max-width: 1180px) {
  .admin-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tab-group.is-content {
    grid-column: 1 / -1;
  }

  .pulse-grid,
  .university-page-grid,
  .admin-layout,
  .content-admin-layout,
  .dashboard-main-grid,
  .guide-hero {
    grid-template-columns: 1fr;
  }

  .home-quick-grid,
  .home-category-grid,
  .home-highlight-grid,
  .home-watch-grid,
  .home-movement-grid,
  .movement-digest-grid,
  .ranking-literacy-grid,
  .ranking-faq-grid,
  .content-idea-grid,
  .home-system-group-grid,
  .dashboard-stat-grid,
  .guide-card-grid,
  .guide-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .workflow-row {
    grid-template-columns: 1fr;
  }

  .workflow-row-metrics {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  }

  .workflow-actions {
    justify-content: flex-start;
  }

  .dashboard-hero,
  .dashboard-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero-actions,
  .report-actions {
    justify-content: flex-start;
  }

  .home-system-group:first-child {
    grid-column: 1 / -1;
  }

  .release-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .release-month-picker-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .guide-grid,
  .guide-steps,
  .guide-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-card.is-featured {
    grid-column: span 2;
  }

  .insight-tools-grid {
    grid-template-columns: 1fr;
  }

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

  .reader-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .movement-list-card {
    grid-template-columns: minmax(260px, 1fr) minmax(300px, 1fr);
  }

  .movement-list-card .movement-source-panel {
    grid-column: 1 / -1;
  }

  .reader-source-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1020px) {
  .reader-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-article-content-grid {
    grid-template-columns: 1fr;
  }

  .update-article-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .reader-hero {
    grid-template-columns: 1fr;
  }

  .university-page-hero {
    grid-template-columns: 1fr;
  }

  .archive-update-card,
  .update-article-head {
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 18px;
  }

  .home-hero .reader-hero-copy h1 {
    font-size: 2.25rem;
  }

  .home-feature-card {
    max-width: 620px;
  }

  .home-about-strip {
    grid-template-columns: 1fr;
  }

  .home-about-actions {
    justify-content: flex-start;
  }

  .release-month-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .workflow-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .public-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding-block: 9px;
    overflow: visible;
  }

  .public-nav {
    order: initial;
    grid-column: auto;
    position: absolute;
    top: calc(100% - 1px);
    right: 12px;
    left: 12px;
    z-index: 24;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    width: auto;
    height: auto;
    max-height: min(70vh, 360px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: #07315f;
    box-shadow: 0 18px 34px rgba(0, 24, 61, 0.28);
  }

  .public-nav.is-open {
    display: grid;
  }

  .public-nav button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }

  .public-nav-rankings,
  .public-nav-more {
    height: auto;
  }

  .public-nav-rankings summary,
  .public-nav-more summary {
    height: 40px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .public-nav-rankings-menu {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
    max-height: none;
    margin-top: 4px;
    padding: 6px 0 0 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .public-nav-ranking-group {
    border-color: rgba(255, 255, 255, 0.16);
    border-top-color: var(--cat-accent, #8cc8ff);
    background: rgba(255, 255, 255, 0.06);
  }

  .public-nav-ranking-group-head strong {
    color: #fff;
  }

  .public-nav-ranking-group-head span {
    color: rgba(255, 255, 255, 0.68);
  }

  .public-nav-ranking-links button {
    color: rgba(255, 255, 255, 0.84);
    background: transparent;
  }

  .public-nav-ranking-links button:hover,
  .public-nav-ranking-links button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .public-nav-ranking-links small {
    color: rgba(255, 255, 255, 0.62);
  }

  .public-nav-more-menu {
    position: static;
    min-width: 0;
    margin-top: 4px;
    padding: 4px 0 0 12px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .public-nav-more-menu button {
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
  }

  .public-nav-more-menu button:hover,
  .public-nav-more-menu button.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
  }

  .public-topbar .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }

  .public-header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: max-content;
  }

  .mobile-menu-button {
    display: grid;
  }
}

@media (max-width: 760px) {
  .home-compare-cta {
    grid-template-columns: 1fr;
  }

  .home-compare-cta-actions .primary-button,
  .home-compare-cta-actions .ghost-button {
    width: 100%;
  }

  .compare-preset-grid,
  .region-report-stats,
  .region-report-grid,
  .policy-hero,
  .cookie-consent,
  .cookie-options,
  .dashboard-stat-grid,
  .dashboard-health-grid,
  .dashboard-publish-row,
  .guide-card-grid,
  .guide-step-list,
  .guide-warning-panel,
  .correction-report-summary,
  .university-share-snapshot {
    grid-template-columns: 1fr;
  }

  .region-report-hero {
    display: grid;
  }

  .region-report-hero .orange-button {
    width: 100%;
  }

  .compare-picker-next {
    display: grid;
  }

  .compare-picker-next .ghost-button {
    width: 100%;
  }

  .cookie-consent {
    align-items: stretch;
    padding: 14px;
  }

  .cookie-consent-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions > * {
    width: 100%;
  }

  .compare-search-item {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "logo copy"
      "actions actions";
  }

  .compare-search-item .result-actions {
    grid-template-columns: 1fr;
  }

  .admin-tabs {
    grid-template-columns: 1fr;
  }

  .admin-tab-group.is-content {
    grid-column: auto;
  }

  .admin-tabs button,
  .admin-tabs .admin-tab-link {
    flex: 1 1 140px;
  }

  .report-queue-item {
    grid-template-columns: 1fr;
  }

  .report-actions,
  .dashboard-next-actions {
    justify-content: stretch;
  }

  .report-actions > *,
  .dashboard-next-actions > * {
    width: 100%;
    justify-content: center;
  }

  .correction-report-form .form-grid.two {
    grid-template-columns: 1fr;
  }

  .release-month-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    width: 100%;
    max-width: 100%;
    align-items: center;
    gap: 8px;
    padding-block: 9px;
    overflow: visible;
  }

  .public-nav {
    order: initial;
    grid-column: auto;
    position: absolute;
    top: calc(100% - 1px);
    right: 12px;
    left: 12px;
    z-index: 24;
    display: none;
    grid-template-columns: 1fr;
    gap: 4px;
    width: auto;
    height: auto;
    max-height: min(70vh, 360px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: #07315f;
    box-shadow: 0 18px 34px rgba(0, 24, 61, 0.28);
  }

  .public-nav.is-open {
    display: grid;
  }

  .public-nav button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 40px;
    min-width: 0;
    padding: 0 12px;
    font-size: 0.92rem;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
  }

  .public-topbar .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
  }

  .public-header-tools {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    width: max-content;
  }

  .public-topbar .language-switch {
    width: max-content;
    max-width: none;
    margin-left: 0;
    overflow: visible;
  }

  .mobile-menu-button {
    display: grid;
  }

  .utility-admin-link span {
    display: none;
  }

  .reader-page {
    width: auto;
    max-width: none;
    margin-right: 10px;
    margin-left: 10px;
    gap: 16px;
  }

  .reader-hero {
    padding-top: 4px;
  }

  .home-hero {
    padding: 16px;
  }

  .home-hero .reader-hero-copy h1 {
    font-size: 1.95rem;
  }

  .home-hero .reader-hero-copy p {
    font-size: 0.96rem;
  }

  .home-global-search {
    grid-template-columns: 1fr;
  }

  .home-global-results > button,
  .home-global-result {
    max-width: 100%;
  }

  .home-hero-actions,
  .home-about-actions,
  .release-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-stat-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reader-search-card {
    padding: 12px;
  }

  .pulse-panel,
  .university-panel,
  .updates-hero,
  .update-article {
    padding: 12px;
  }

  .pulse-grid,
  .calendar-item,
  .update-item,
  .admin-university-result,
  .updates-hero,
  .university-page-summary,
  .content-admin-item,
  .content-admin-item.has-cover,
  .cover-preview-row,
  .quality-admin-hero,
  .quality-logo-check-panel,
  .quality-item {
    grid-template-columns: 1fr;
  }

  .quality-admin-hero,
  .quality-logo-check-panel {
    display: grid;
  }

  .quality-ready-panel {
    grid-template-columns: 1fr;
  }

  .registry-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .registry-duplicate-item {
    grid-template-columns: 1fr;
  }

  .university-region-head {
    display: grid;
    align-items: start;
  }

  .university-region-summary span {
    flex: 1 1 180px;
  }

  .quality-hero-actions {
    justify-content: flex-start;
  }

  .quality-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-summary-grid,
  .update-article-aside {
    grid-template-columns: 1fr;
  }

  .quality-issue-head {
    display: grid;
  }

  .quality-issue-head strong {
    width: max-content;
  }

  .quality-actions {
    justify-content: flex-start;
  }

  .updates-hero-actions {
    justify-content: flex-start;
  }

  .finder-head {
    display: grid;
  }

  .updates-hero h1,
  .update-article-head h1 {
    font-size: 1.55rem;
  }

  .archive-update-card {
    padding: 12px;
  }

  .content-admin-cover,
  .preview-cover,
  .archive-update-cover,
  .update-article-cover {
    width: 100%;
  }

  .university-admin-item .university-admin-logo {
    width: 58px;
    height: 58px;
  }

  .calendar-item time {
    justify-items: start;
    place-items: center start;
    min-height: 44px;
  }

  .university-profile-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .reader-stats {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: grid;
  }

  .section-heading p {
    text-align: left;
  }

  .reader-category-strip,
  .universities-hero,
  .universities-filter-grid,
  .university-directory-grid,
  .release-month-grid,
  .release-summary-grid,
  .release-filter-bar,
  .movement-filter-panel,
  .movement-chart-bars,
  .movement-digest-grid,
  .home-movement-grid,
  .latest-overview-grid,
  .movement-list-card,
  .movement-rank-grid,
  .workflow-step-grid,
  .workflow-row-metrics,
  .follow-grid,
  .home-quick-grid,
  .home-category-grid,
  .home-highlight-grid,
  .home-watch-grid,
  .ranking-literacy-grid,
  .ranking-faq-grid,
  .content-idea-grid,
  .home-system-group-grid,
  .home-system-group:first-child .home-system-grid,
  .home-system-group:not(:first-child) .home-system-grid,
  .home-featured-update,
  .home-update-compact-list,
  .home-about-strip,
  .profile-insight-grid,
  .profile-status-grid,
  .public-system-grid,
  .pulse-grid,
  .insight-tools-grid,
  .guide-grid,
  .guide-steps,
  .guide-notes,
  .entry-filter-bar,
  .reader-filter-bar,
  .reader-aside {
    grid-template-columns: 1fr;
  }

  .universities-filter-actions {
    display: grid;
    justify-items: start;
  }

  .university-directory-actions {
    grid-template-columns: 1fr;
  }

  .movement-list-card .movement-source-panel {
    grid-column: auto;
  }

  .movement-source-row small {
    white-space: normal;
  }

  .rank-tie-note {
    grid-template-columns: 1fr;
  }

  .rank-tie-chip-list {
    justify-content: flex-start;
  }

  .rank-tie-chip {
    white-space: normal;
  }

  .movement-source-panel .movement-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .movement-source-panel .movement-actions > * {
    width: 100%;
    justify-content: center;
  }

  .movement-chart-panel,
  .rank-trend-panel {
    padding: 12px;
  }

  .rank-trend-controls {
    grid-template-columns: 1fr;
  }

  .rank-trend-chart {
    min-width: 620px;
  }

  .rank-trend-legend span {
    max-width: 100%;
    border-radius: 8px;
  }

  .rank-trend-source-row,
  .rank-trend-source-head {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .rank-trend-source-chips {
    width: 100%;
  }

  .release-table-wrap {
    display: none;
  }

  .release-card-list {
    display: grid;
    gap: 10px;
  }

  .release-card .release-row-actions {
    grid-template-columns: 1fr;
  }

  .home-system-group:first-child {
    grid-column: auto;
  }

  .guide-card.is-featured {
    grid-column: auto;
  }

.entry-edit-table {
  max-width: 100%;
  overflow-x: auto;
}

  .university-result-item {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .result-logo {
    width: 40px;
    height: 40px;
  }

  .result-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .content-admin-actions {
    justify-content: flex-start;
  }

  .compare-toolbar,
  .compare-toolbar.has-clear {
    grid-template-columns: 1fr;
  }

  .compare-toolbar .primary-button,
  .compare-toolbar .compare-clear-button {
    width: 100%;
  }

  .compare-toolbar .compare-update-status {
    width: 100%;
    justify-content: center;
  }

  .compare-summary-head,
  .compare-table-head,
  .compare-options-head,
  .compare-system-filter summary {
    display: grid;
    justify-items: start;
  }

  .compare-year-selects,
  .compare-system-filter-grid,
  .compare-insight-grid,
  .compare-leader-board,
  .compare-difference-grid,
  .profile-best-highlight-grid,
  .profile-category-summary-grid,
  .profile-coverage-list {
    grid-template-columns: 1fr;
  }

  .compare-page-hero,
  .compare-page-panel-head,
  .compare-insight-head,
  .compare-share-header,
  .compare-share-hero,
  .compare-share-section-title,
  .compare-share-footer,
  .ranking-share-header,
  .ranking-share-hero,
  .ranking-share-lead,
  .university-share-hero,
  .university-share-lead,
  .compare-publish-top,
  .compare-publish-hero,
  .compare-publish-section-title {
    display: grid;
    justify-items: start;
  }

  .compare-publish-url,
  .compare-publish-stat {
    width: 100%;
  }

  .compare-publish-stats,
  .compare-publish-profiles,
  .compare-publish-sources,
  .compare-share-hero dl,
  .compare-share-source-grid,
  .ranking-share-hero,
  .ranking-share-hero dl,
  .university-share-hero,
  .university-share-hero dl,
  .university-share-highlight-grid,
  .compare-publish-profile dl {
    grid-template-columns: 1fr;
  }

  .share-capture-shell {
    padding: 12px;
  }

  .compare-share-canvas {
    padding: 16px;
  }

  .ranking-share-canvas {
    padding: 16px;
  }

  .university-share-canvas {
    padding: 16px;
  }

  .compare-share-meta {
    justify-items: start;
  }

  .university-share-title {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .university-share-logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .university-share-title h1 {
    font-size: 1.72rem;
    line-height: 1.12;
  }

  .ranking-share-hero h1,
  .compare-share-hero h1 {
    font-size: 1.9rem;
    line-height: 1.14;
  }

  .ranking-share-table-wrap {
    overflow-x: auto;
  }

  .ranking-share-table,
  .university-share-table {
    min-width: 760px;
  }

  .ranking-share-site-url {
    align-items: flex-start;
    flex-direction: column;
  }

  .ranking-share-site-url strong {
    white-space: normal;
  }

  .compare-publish-brand {
    max-width: 100%;
  }

  .compare-publish-brand img {
    width: min(330px, 100%);
  }

  .compare-insight-head > span {
    max-width: none;
    text-align: left;
  }

  .compare-leader-board dl,
  .compare-difference-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-page-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .compare-page-actions > * {
    width: 100%;
  }

  .compare-page-overview {
    grid-template-columns: 1fr;
  }

  .compare-page-overview article > strong {
    white-space: normal;
  }

  .compare-detail-modal {
    padding: 12px;
  }

  .university-profile-modal {
    grid-template-rows: none;
    align-content: start;
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 12px;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .profile-summary-row.profile-summary-row-three {
    grid-template-columns: 1fr;
  }

  .profile-year-controls,
  .profile-data-year-controls,
  .profile-trend-controls,
  .profile-compare-control-grid,
  .profile-year-compare-grid {
    grid-template-columns: 1fr;
  }

  .profile-anchor-nav {
    top: 8px;
    margin-inline: -2px;
  }

  .university-page-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-profile-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .university-profile-actions .primary-button {
    grid-column: 1 / -1;
  }

  .profile-insight-panel,
  .profile-records-panel,
  .profile-compare-panel {
    padding: 12px;
  }

  .profile-quick-compare-card {
    grid-template-columns: 1fr;
  }

  .profile-quick-compare-card .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .profile-compare-control-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .profile-table-wrap {
    border: 0;
    overflow: visible;
  }

  .profile-ranking-table {
    display: none;
  }

  .profile-ranking-list {
    display: grid;
    gap: 10px;
    padding-bottom: 88px;
  }

  .university-page-rankings .profile-ranking-list {
    padding-bottom: 0;
  }

  .compare-mini-grid {
    grid-template-columns: 1fr;
  }

  .public-table-wrap {
    display: none;
  }

  .ranking-card-list {
    display: grid;
    gap: 10px;
  }

  .detail-rank-strip,
  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-system-card {
    min-height: 66px;
  }

  .reader-board {
    padding: 12px;
  }

  .reader-board-title {
    display: grid;
  }

  .site-footer {
    display: grid;
    align-items: start;
  }

  .footer-actions {
    justify-content: flex-start;
  }

  .profile-actions {
    position: sticky;
    bottom: -12px;
    margin: 0 -12px -12px;
    padding: 10px 12px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), #fff 38%);
    box-shadow: 0 -14px 24px rgba(13, 37, 82, 0.08);
  }

  .system-admin-list article {
    grid-template-columns: 58px minmax(0, 1fr);
  }

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

  .system-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .logo-preview-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .logo-preview-row .ghost-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .quality-summary-grid {
    grid-template-columns: 1fr;
  }

  header.public-topbar {
    padding-inline: 12px;
  }

  header.public-topbar > .brand {
    max-width: 100%;
    gap: 9px;
  }

  header.public-topbar .brand-mark {
    width: 38px;
    height: 38px;
  }

  header.public-topbar .brand-mark img {
    width: 30px;
    height: 30px;
  }

  header.public-topbar .brand strong {
    font-size: 1rem;
  }

  header.public-topbar > .public-nav {
    right: 10px;
    left: 10px;
  }

  header.public-topbar > .public-header-tools {
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
  }

  header.public-topbar .language-switch button {
    width: 27px;
  }

  header.public-topbar .mobile-menu-button {
    width: 34px;
  }
}

@media (max-width: 480px) {
  .home-stat-bar,
  .home-feature-ranks,
  .home-highlight-card dl {
    grid-template-columns: 1fr;
  }

  .home-category-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .home-category-card .cat-number {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .ranking-mobile-card dl,
  .detail-rank-strip,
  .detail-list {
    grid-template-columns: 1fr;
  }

  .modal-actions > *,
  .home-actions > *,
  .university-profile-actions > *,
  .updates-hero-actions > *,
  .update-article-actions > *,
  .admin-university-result .primary-button,
  .admin-university-result .ghost-button,
  .archive-update-copy .primary-button,
  .release-card .primary-button,
  .release-card .ghost-button,
  .result-actions > *,
  .compare-summary-head .ghost-button,
  .content-admin-actions > *,
  .profile-actions > * {
    width: 100%;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-card-ranks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-card-foot .ghost-button {
    width: auto;
    justify-content: center;
  }

  .color-input-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .color-source-pill {
    margin-left: 0;
  }

  .rank-trend-chart {
    min-width: 540px;
  }
}

@media (max-width: 360px) {
  .profile-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .profile-card-foot .ghost-button {
    width: 100%;
  }
}

.entry-data-panel .admin-university-result {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "content action"
    "content logo";
}

.entry-data-panel .admin-university-result > .primary-button,
.entry-data-panel .admin-university-result > .ghost-button {
  width: auto;
  min-width: 116px;
  max-width: 140px;
}

.newsletter-page,
.email-admin {
  width: min(100%, 1480px);
  margin: 0 auto;
}

.newsletter-hero {
  align-items: stretch;
}

.newsletter-hero-card {
  align-self: stretch;
  min-width: min(360px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  display: grid;
  align-content: center;
  gap: 8px;
  color: var(--text);
}

.newsletter-hero-card strong {
  font-size: 1.1rem;
  color: var(--accent-blue);
  word-break: break-word;
}

.newsletter-hero-card span {
  color: var(--muted);
}

.newsletter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin: 18px 0;
}

.newsletter-form,
.newsletter-benefit-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.newsletter-form {
  display: grid;
  gap: 16px;
}

.newsletter-form h2,
.newsletter-benefit-card h3 {
  margin: 0;
  color: var(--text);
}

.newsletter-form p,
.newsletter-benefit-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.newsletter-form label,
.subscriber-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--text);
}

.newsletter-form input,
.newsletter-form select,
.subscriber-form input,
.subscriber-form select,
.subscriber-form textarea,
.email-batch-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.newsletter-form input,
.newsletter-form select,
.subscriber-form input,
.subscriber-form select {
  min-height: 46px;
  padding: 0 12px;
}

.subscriber-form textarea,
.email-batch-card textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: vertical;
}

.newsletter-consent {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: #f7fbff;
  border: 1px solid var(--line);
  font-weight: 700;
}

.newsletter-consent input {
  width: auto;
  min-height: 0;
  margin-top: 4px;
}

.newsletter-benefits {
  display: grid;
  gap: 14px;
}

.email-admin {
  display: grid;
  gap: 18px;
}

.email-admin-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}

.email-admin-status span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbff;
  font-weight: 800;
}

.email-admin-status .is-warning {
  border-color: #f7c66b;
  background: #fff7df;
  color: #8a5200;
}

.email-admin-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f8fc;
}

.email-admin-view-tabs button {
  min-height: 42px;
  padding: 9px 16px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.email-admin-view-tabs button:hover,
.email-admin-view-tabs button.is-active {
  color: #fff;
  background: var(--primary);
}

.email-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: 18px;
}

.email-admin-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.email-all-groups-panel {
  display: grid;
  gap: 16px;
}

.email-all-count {
  padding: 9px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--primary);
  white-space: nowrap;
}

.email-all-textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  font: 600 0.88rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.email-all-guidance {
  display: flex;
  gap: 7px;
  color: var(--muted);
}

.email-all-groups-panel > .primary-button {
  justify-self: start;
}

.email-batch-list,
.subscriber-list {
  display: grid;
  gap: 12px;
}

.email-batch-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.email-batch-card.is-subscriber-batch {
  border-color: #f5b64d;
  background: #fff8ea;
}

.email-batch-card h4 {
  margin: 4px 0 0;
  color: var(--text);
}

.email-batch-card p,
.email-batch-card small {
  margin: 0;
  color: var(--muted);
}

.email-batch-card strong {
  color: var(--accent-blue);
}

.email-batch-card p strong,
.email-batch-card small strong {
  color: var(--text);
}

.subscriber-form {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 14px;
  border: 1px dashed #bfd0e4;
  border-radius: 12px;
  background: #fbfdff;
}

.admin-email-search {
  margin-top: 12px;
}

.subscriber-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.subscriber-row strong,
.subscriber-row span,
.subscriber-row small {
  display: block;
}

.subscriber-row strong {
  color: var(--text);
  word-break: break-word;
}

.subscriber-row span,
.subscriber-row small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .newsletter-layout,
  .email-admin-grid {
    grid-template-columns: 1fr;
  }

  .subscriber-row {
    grid-template-columns: 1fr;
  }

  .email-admin-view-tabs button {
    flex: 1 1 180px;
  }

  .email-all-guidance {
    display: grid;
  }
}

@media print {
  @page {
    size: landscape;
    margin: 12mm;
  }

  body {
    background: #fff;
    color: #0d2552;
  }

  .public-topbar,
  .site-footer,
  .toast,
  .print-hidden,
  .compare-page-actions,
  .modal-backdrop {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .shell,
  .reader-page,
  .compare-page {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .compare-page-hero,
  .compare-page-empty,
  .compare-page-overview,
  .compare-page-panel,
  .compare-insight-panel,
  .compare-difference-panel,
  .university-page-hero,
  .profile-insight-panel,
  .profile-best-highlights,
  .rank-trend-panel,
  .profile-category-summary,
  .profile-records-panel,
  .profile-compare-panel,
  .pulse-panel {
    box-shadow: none;
    break-inside: avoid;
  }

  .compare-page-hero {
    padding: 0 0 10px;
    border: 0;
  }

  .compare-page-overview {
    margin: 10px 0;
    padding: 0;
    border: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compare-page-panel {
    padding: 0;
    border: 0;
  }

  .compare-insight-panel,
  .compare-difference-panel {
    margin: 10px 0;
    padding: 0 0 10px;
    border: 0;
  }

  .compare-insight-grid,
  .compare-leader-board,
  .compare-difference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-insight-head > span {
    border: 1px solid #cfdcec;
    background: #fff;
  }

  .compare-page-title h1 {
    font-size: 22pt;
  }

  .compare-print-note {
    margin: 4px 0 10px;
    color: #52627a;
    font-size: 9pt;
  }

  .compare-table-wrap {
    overflow: visible;
    border-color: #cfdcec;
  }

  .compare-table {
    min-width: 0;
    font-size: 9pt;
  }

  .compare-table th,
  .compare-table td {
    padding: 5px 6px;
  }

  .compare-cell-button {
    border-color: #cfdcec;
    background: #fff;
    color: #0d2552;
  }

  .university-page {
    display: block;
  }

  .university-page-hero,
  .profile-insight-panel,
  .profile-best-highlights,
  .rank-trend-panel,
  .profile-category-summary,
  .profile-records-panel,
  .profile-compare-panel {
    margin-bottom: 10px;
    padding: 0 0 10px;
    border: 0;
  }

  .university-page-grid {
    display: block;
  }

  .university-page-aside {
    display: block;
  }

  .university-page-aside .pulse-panel {
    margin-top: 10px;
    padding: 0 0 10px;
    border: 0;
  }

  .share-panel,
  .profile-quick-compare-panel,
  .rank-trend-controls {
    display: none !important;
  }

  .profile-disclosure,
  .profile-table-wrap,
  .profile-best-system-table-wrap {
    border-color: #cfdcec;
    break-inside: avoid;
  }

  .profile-disclosure summary i {
    display: none;
  }

  .profile-disclosure:not([open]) > .profile-disclosure-body,
  .profile-disclosure:not([open]) > *:not(summary) {
    display: grid;
  }

  .profile-ranking-table,
  .profile-best-system-table {
    min-width: 0;
  }

  .profile-ranking-table th,
  .profile-ranking-table td,
  .profile-best-system-table th,
  .profile-best-system-table td {
    padding: 5px 6px;
    font-size: 8.5pt;
  }
}

.editor-link-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 28, 44, 0.58);
  backdrop-filter: blur(3px);
}

.editor-link-dialog {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 24px;
  border: 1px solid #c7d6dd;
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 30px 90px rgba(5, 28, 44, 0.3);
}

.editor-link-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.editor-link-dialog__head h2,
.editor-link-dialog__head p { margin: 0; }
.editor-link-dialog__head h2 { color: #0d3154; font-size: 1.35rem; }
.editor-link-dialog__head p { margin-top: 5px; color: #667985; }
.editor-link-dialog form { display: grid; gap: 16px; }
.editor-link-dialog form > label:not(.editor-link-dialog__checkbox) { display: grid; gap: 7px; color: #173b52; font-weight: 800; }
.editor-link-dialog input[type="text"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #b9cbd4;
  border-radius: 10px;
  background: #fff;
  color: #0c2943;
  font: inherit;
}
.editor-link-dialog input[type="text"]:focus { outline: 3px solid rgba(27, 111, 178, 0.18); border-color: #1b6fb2; }
.editor-link-dialog__checkbox { display: flex; align-items: center; gap: 9px; color: #294b5f; font-weight: 700; }
.editor-link-dialog__checkbox input { width: 19px; height: 19px; }
.editor-link-dialog__error { margin: -4px 0 0; color: #a53025; font-weight: 700; }
.editor-link-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

@media (max-width: 600px) {
  .editor-link-backdrop { align-items: end; padding: 10px; }
  .editor-link-dialog { padding: 18px; border-radius: 16px; }
  .editor-link-dialog__actions > * { flex: 1 1 130px; }
}
.system-type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-left: 0.55rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(180, 121, 18, 0.4);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.system-type-badge.is-meta {
  color: #7a4a00;
  background: #fff2c9;
}

.public-system-card .system-type-badge {
  margin-top: 0.4rem;
  margin-left: 0;
}

.board-title .system-type-badge {
  margin-top: 0.4rem;
  margin-left: 0;
}

@media (max-width: 640px) {
  .system-type-badge {
    font-size: 0.66rem;
  }
}
.source-guide-card-extra {
  display: grid;
  gap: 0.72rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(15, 62, 84, 0.14);
}

.source-guide-card-extra p {
  display: grid;
  gap: 0.16rem;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.source-guide-card-extra strong {
  color: var(--navy, #0b3550);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.source-guide-card-extra span {
  color: var(--muted, #5c6d78);
}

.source-guide-detail p,
.source-guide-detail dd,
.source-guide-detail li {
  max-width: 88ch;
  font-size: clamp(1rem, 0.25vw + 0.94rem, 1.08rem);
  line-height: 1.82;
}

.source-guide-detail h3 {
  margin-top: 1.45rem;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .source-guide-card-extra p {
    font-size: 0.94rem;
  }

  .source-guide-detail p,
  .source-guide-detail dd,
  .source-guide-detail li {
    font-size: 1rem;
    line-height: 1.75;
  }
}
