:root {
  --navy: #163d75;
  --blue: #2c7ac8;
  --blue-2: #1b8fd8;
  --green: #63b849;
  --green-2: #7ccc59;
  --ink: #1a2433;
  --muted: #6b7584;
  --line: #dce4ed;
  --bg: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 12px 32px rgba(17, 40, 78, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
body.ryeo-mode {
  background: #0b1119;
  color: #d6dde7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { cursor: pointer; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.top-banner {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.top-banner__inner {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  min-height: 44px;
}
.top-banner__inner p { margin: 0; }
.top-banner__actions { display: flex; gap: 14px; }
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(220,228,237,.85);
}
body.ryeo-mode .header,
body.ryeo-mode .top-banner,
body.ryeo-mode .search-panel {
  background: rgba(10,16,24,0.92);
  border-color: rgba(122,142,165,.18);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 84px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__logo { width: 58px; height: 58px; object-fit: contain; }
.brand__text strong {
  display: block;
  font-size: 23px;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.brand__text span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
body.ryeo-mode .brand__text strong,
body.ryeo-mode .section-head h2,
body.ryeo-mode .section-head .eyebrow,
body.ryeo-mode h3,
body.ryeo-mode .footer a,
body.ryeo-mode .ryeo-panel__header h2 {
  color: #f2f7ff;
}
.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav button {
  border: 0;
  background: transparent;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 700;
}
.nav button:hover { background: #eef5fb; color: var(--navy); }
body.ryeo-mode .nav button { color: #d8e1ec; }
body.ryeo-mode .nav button:hover { background: rgba(255,255,255,.08); }
.header-tools { display: flex; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 50%;
  font-size: 20px;
}
body.ryeo-mode .icon-btn {
  background: #121a24; color: #e7eef9; border-color: rgba(122,142,165,.25);
}
.search-panel {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.search-panel__inner {
  display: flex; gap: 10px; align-items: center;
  padding: 16px 0;
}
.search-panel input {
  flex: 1;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 0 16px;
}
body.ryeo-mode .search-panel input {
  background: #0f1620; border-color: rgba(122,142,165,.22); color: #fff;
}
.search-result {
  padding-bottom: 18px;
  color: var(--muted);
}
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(15,41,84,.94), rgba(36,124,201,.78) 46%, rgba(97,189,87,.72)),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.2), transparent 30%),
    radial-gradient(circle at 80% 35%, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(180deg, #5ea0d9, #3f6b9a 55%, #2f6253 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: auto 0 0 0; height: 90px;
  background: linear-gradient(to top, rgba(0,0,0,.12), transparent);
}
body.ryeo-mode .hero {
  background:
    linear-gradient(135deg, rgba(6,11,17,.96), rgba(18,31,48,.96) 48%, rgba(39,55,64,.9)),
    radial-gradient(circle at 18% 25%, rgba(255,255,255,.08), transparent 22%),
    linear-gradient(180deg, #111926, #0b1119 100%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 34px;
  align-items: center;
  padding: 84px 0 90px;
}
.eyebrow {
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--blue-2);
}
.hero .eyebrow,
.hero h1,
.hero__lead { color: #fff; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.045em;
}
.hero__lead { font-size: 18px; max-width: 700px; margin: 18px 0 0; color: rgba(255,255,255,.92); }
.hero__buttons, .button-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__panel {
  display: grid; gap: 14px;
}
.stat-box {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(6px);
}
.stat-box strong { display: block; font-size: 12px; opacity: .95; letter-spacing: .14em; text-transform: uppercase; }
.stat-box span { display: block; margin-top: 6px; opacity: .9; }
.stat-box b { display: block; margin-top: 8px; font-size: 28px; letter-spacing: -.03em; }
.stat-box--hidden {
  min-height: 92px;
}

.hidden-record-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hidden-record-line > span {
  display: inline-block;
}

/* 려 표식 :| — 정확한 정렬을 위해 SVG 사용 */
.hidden-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 24px;
  height: 28px;
  padding: 0;

  border: 0;
  border-radius: 5px;
  background: transparent;
  opacity: 0.32;

  cursor: pointer;
  user-select: none;

  transition: opacity .2s ease, transform .2s ease;
}

.hidden-mark:hover {
  opacity: 0.58;
  transform: scale(1.04);
}

.hidden-mark:focus-visible {
  opacity: 0.72;
  outline: 1px solid rgba(255,255,255,.45);
  outline-offset: 3px;
}

.hidden-mark__svg {
  display: block;
  width: 18px;
  height: 26px;
  fill: rgba(255,255,255,.9);
}

.hidden-mark__bar {
  display: block;
  width: 2px;
  height: 26px;

  border-radius: 999px;
  background: rgba(255,255,255,.88);
}
.quick-links {
  margin-top: -52px;
  position: relative;
  z-index: 3;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card-link {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-link strong { display: block; font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.card-link span { color: var(--muted); font-size: 15px; }
.notice-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.notice-strip__inner {
  display: flex; gap: 24px; align-items: center;
  min-height: 64px;
}
.notice-strip__inner strong { color: var(--navy); }
.notice-strip__text { color: var(--muted); }
.section { padding: 70px 0; }
.section--subtle { background: var(--bg); }
body.ryeo-mode .section--subtle,
body.ryeo-mode .notice-strip,
body.ryeo-mode .footer,
body.ryeo-mode .quick-links .card-link,
body.ryeo-mode .panel,
body.ryeo-mode .info-card,
body.ryeo-mode .table-wrap,
body.ryeo-mode .site-popup__panel,
body.ryeo-mode .mobile-menu__panel {
  background: #101823;
}
body.ryeo-mode .section,
body.ryeo-mode .quick-links,
body.ryeo-mode .section--subtle { color: #d6dde7; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 16px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.section-head--compact h2 { font-size: 28px; }
.business-grid, .two-col, .intro-grid {
  display: grid;
  gap: 22px;
}
.business-grid { grid-template-columns: repeat(3, 1fr); }
.two-col { grid-template-columns: repeat(2, 1fr); }
.intro-grid { grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
.info-card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.info-card h3, .panel h3, .timeline h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 22px;
}
.info-card ul, .doc-list, .info-list, .board-list {
  margin: 0; padding: 0; list-style: none;
}
.info-card li { margin-top: 9px; color: var(--muted); }
.table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
table { width: 100%; border-collapse: collapse; }
thead { background: #eef5fb; }
body.ryeo-mode thead { background: rgba(255,255,255,.06); }
th, td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
body.ryeo-mode th, body.ryeo-mode td { border-color: rgba(122,142,165,.18); }
tbody tr:hover { background: rgba(44,122,200,.05); }
.board-list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.board-list li button,
.board-list li a {
  background: none; border: 0; padding: 0; color: inherit; text-align: left;
}
.board-list li small { color: var(--muted); white-space: nowrap; }
.info-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px dashed var(--line);
}
.info-list strong { color: var(--ink); }
.doc-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}
body.ryeo-mode .faq-list details { background: #101823; border-color: rgba(122,142,165,.18); }
.faq-list { display: grid; gap: 12px; }
.faq-list summary { cursor: pointer; font-weight: 700; color: var(--navy); }
body.ryeo-mode .faq-list summary { color: #eff6ff; }
.timeline ul { margin: 16px 0 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.timeline li strong { color: var(--navy); }
.timeline__hidden button {
  all: unset;
  display: contents;
  cursor: pointer;
}
.footer {
  background: #f7f9fc;
  border-top: 1px solid var(--line);
  padding: 34px 0 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 22px;
}
.footer__address, .footer__contact { color: var(--muted); margin: 10px 0 0; }
.footer-links {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 10px; color: var(--muted);
}
.footer__bottom {
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.top-btn {
  border: 0; border-radius: 999px; padding: 12px 18px;
  background: var(--navy); color: #fff; font-weight: 800;
}
.btn {
  border-radius: 999px;
  padding: 12px 20px;
  border: 1px solid transparent;
  font-weight: 800;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--ghost { background: rgba(255,255,255,.1); color: var(--navy); border-color: var(--line); }
.btn--small { padding: 10px 14px; font-size: 14px; }
body.ryeo-mode .btn--ghost { color: #fff; background: transparent; border-color: rgba(122,142,165,.25); }
.ryeo-panel {
  background: linear-gradient(180deg, #111825, #0a1017);
  color: #d7dfeb;
  padding: 65px 0;
  border-top: 1px solid rgba(122,142,165,.2);
}
.ryeo-panel__header { margin-bottom: 24px; }
.ryeo-panel__header p { margin: 0; color: #8aa4c4; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; }
.ryeo-panel__header h2 { margin: 6px 0 8px; font-size: 40px; letter-spacing: .06em; }
.ryeo-panel__header span { color: #9fb2c9; font-size: 14px; }
.ryeo-panel__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ryeo-panel article {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(122,142,165,.18);
  border-radius: 18px;
  padding: 22px;
}
.ryeo-panel article h3 { margin-top: 0; color: #fff; }
.mobile-menu[hidden], .search-panel[hidden], .ryeo-panel[hidden] { display: none; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
}
.mobile-menu__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.mobile-menu__panel {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(340px, 88vw);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow);
}
.mobile-menu__head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.mobile-menu__panel a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-weight: 700;
}
.site-popup {
  position: fixed; inset: 0; z-index: 50; display: none;
}
.site-popup.is-open { display: block; }
.site-popup__backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.38);
}
.site-popup__panel {
  position: relative; z-index: 1;
  width: min(560px, calc(100% - 24px));
  margin: 9vh auto 0;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.16);
}
.site-popup__header,
.site-popup__footer {
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.site-popup__header { border-bottom: 1px solid var(--line); }
.site-popup__body { padding: 22px; color: var(--muted); }
.site-popup__close {
  border: 0; background: none; font-size: 28px; color: var(--muted);
}
.popup-check { color: var(--muted); font-size: 14px; }
body.ryeo-mode .card-link,
body.ryeo-mode .info-card,
body.ryeo-mode .panel,
body.ryeo-mode .table-wrap,
body.ryeo-mode .faq-list details,
body.ryeo-mode .site-popup__panel { border-color: rgba(122,142,165,.18); }
body.ryeo-mode .card-link strong,
body.ryeo-mode .info-list strong,
body.ryeo-mode .board-list button,
body.ryeo-mode .board-list a,
body.ryeo-mode .timeline li strong,
body.ryeo-mode .brand__text span,
body.ryeo-mode .top-banner__inner,
body.ryeo-mode .footer__address,
body.ryeo-mode .footer__contact,
body.ryeo-mode .board-list small,
body.ryeo-mode .notice-strip__text,
body.ryeo-mode .site-popup__body,
body.ryeo-mode .popup-check,
body.ryeo-mode .doc-list li,
body.ryeo-mode .info-card li,
body.ryeo-mode .info-list span,
body.ryeo-mode .panel p,
body.ryeo-mode .timeline li span,
body.ryeo-mode .card-link span,
body.ryeo-mode .footer small,
body.ryeo-mode .top-banner__actions a { color: #9cafc6; }
body.ryeo-mode .notice-strip__inner strong,
body.ryeo-mode .card-link strong,
body.ryeo-mode .hero .eyebrow,
body.ryeo-mode .hero h1,
body.ryeo-mode .hero__lead,
body.ryeo-mode .timeline li strong { color: #f2f7ff; }
body.ryeo-mode .hero__lead { color: rgba(242,247,255,.82); }
@media (max-width: 1024px) {
  .grid-4, .business-grid, .two-col, .intro-grid, .ryeo-panel__grid, .hero__inner { grid-template-columns: 1fr; }
  .quick-links { margin-top: 18px; }
  .header__inner { grid-template-columns: auto auto; }
  .nav { display: none; }
}
@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .hero__inner { padding: 52px 0 60px; }
  .hero h1 { font-size: 34px; }
  .header__inner { min-height: 74px; }
  .brand__logo { width: 48px; height: 48px; object-fit: contain; }
  .brand__text strong { font-size: 18px; }
  .footer__grid, .footer__bottom, .top-banner__inner, .notice-strip__inner, .search-panel__inner { grid-template-columns: 1fr; display: grid; }
  .footer__bottom { align-items: start; }
  .top-btn { justify-self: start; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 620px; }
}


/* =========================================================
   慮 내부 기록망
   ========================================================= */

body.ryeo-mode {
  overflow: hidden;
  background: #070b11;
}

body.ryeo-mode > .top-banner,
body.ryeo-mode > .header,
body.ryeo-mode > .search-panel,
body.ryeo-mode > main > section:not(.ryeo-system),
body.ryeo-mode > .footer,
body.ryeo-mode > .mobile-menu,
body.ryeo-mode > .site-popup {
  display: none !important;
}

body.ryeo-mode > main {
  min-height: 100vh;
}

.ryeo-system {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  background:
    radial-gradient(circle at 80% 10%, rgba(31, 86, 120, .10), transparent 28%),
    #090e15;
  color: #d7e0ec;
}

.ryeo-system[hidden] {
  display: none;
}

.ryeo-sidebar {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 26px 20px;
  border-right: 1px solid rgba(129, 154, 183, .16);
  background: #0c121b;
}

.ryeo-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 8px 22px;
  border-bottom: 1px solid rgba(129, 154, 183, .15);
}

.ryeo-brand__logo {
  width: 124px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255,255,255,.06));
}

.ryeo-brand__sub {
  min-width: 0;
}

.ryeo-brand strong {
  display: block;
  color: #f3f7fb;
  font-size: 17px;
  letter-spacing: .08em;
}

.ryeo-brand span {
  display: block;
  margin-top: 4px;
  color: #71859c;
  font-size: 10px;
  letter-spacing: .12em;
}

.ryeo-nav {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.ryeo-nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid transparent;
  background: transparent;
  color: #8fa0b4;
  text-align: left;
  border-radius: 8px;
  font-weight: 700;
  transition: .18s ease;
}

.ryeo-nav button span {
  width: 24px;
  color: #4f647a;
  font-size: 10px;
  letter-spacing: .08em;
}

.ryeo-nav button:hover,
.ryeo-nav button.is-active {
  border-color: rgba(78, 141, 181, .25);
  background: rgba(44, 94, 126, .14);
  color: #e8f3ff;
}

.ryeo-nav button.is-active span {
  color: #79a9c7;
}

.ryeo-sidebar__footer {
  margin-top: auto;
  padding: 18px 8px 0;
  border-top: 1px solid rgba(129, 154, 183, .15);
}

.ryeo-signal {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8194a9;
  font-size: 12px;
}

.ryeo-signal i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63c48f;
  box-shadow: 0 0 12px rgba(99, 196, 143, .6);
}

.ryeo-sidebar__footer small {
  display: block;
  margin-top: 8px;
  color: #4e6073;
  font-size: 9px;
  letter-spacing: .09em;
}

.ryeo-workspace {
  min-width: 0;
  height: 100vh;
  overflow: auto;
}

.ryeo-topbar {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  border-bottom: 1px solid rgba(129, 154, 183, .15);
  background: rgba(10, 16, 24, .88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 4;
}

.ryeo-topbar p {
  margin: 0;
  color: #5f758c;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.ryeo-topbar h1 {
  margin: 4px 0 0;
  color: #edf5fc;
  font-size: 25px;
  letter-spacing: -.03em;
}

.ryeo-topbar__status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ryeo-topbar__status > div {
  min-width: 104px;
  padding: 8px 12px;
  border-left: 1px solid rgba(129, 154, 183, .15);
}

.ryeo-topbar__status span {
  display: block;
  color: #596f85;
  font-size: 9px;
  letter-spacing: .08em;
}

.ryeo-topbar__status strong {
  display: block;
  margin-top: 3px;
  color: #d8e6f2;
  font-size: 13px;
}

.ryeo-topbar__status .status-warn {
  color: #d8a676;
}

.ryeo-topbar__status button {
  padding: 10px 14px;
  border: 1px solid rgba(129, 154, 183, .2);
  background: transparent;
  color: #90a3b7;
  border-radius: 6px;
  font-size: 12px;
}

.ryeo-content {
  padding: 26px 28px 50px;
}

.ryeo-view {
  display: none;
}

.ryeo-view.is-visible {
  display: block;
}

.ryeo-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 18px;
  border: 1px solid rgba(173, 112, 74, .26);
  background: linear-gradient(90deg, rgba(123, 67, 38, .15), rgba(50, 35, 28, .06));
}

.ryeo-alert span {
  display: block;
  color: #aa785b;
  font-size: 9px;
  letter-spacing: .12em;
}

.ryeo-alert strong {
  color: #e0c9ba;
  font-size: 14px;
}

.ryeo-alert p {
  margin: 0;
  color: #826d61;
  font-size: 12px;
}

.ryeo-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.ryeo-metrics article,
.ryeo-module,
.ryeo-office,
.ryeo-class-grid article,
.ryeo-forbidden,
.ryeo-scripture,
.ryeo-keeper {
  border: 1px solid rgba(129, 154, 183, .14);
  background: #0f1620;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .015);
}

.ryeo-metrics article {
  padding: 18px;
}

.ryeo-metrics span {
  color: #697f95;
  font-size: 11px;
}

.ryeo-metrics strong {
  display: block;
  margin: 8px 0 4px;
  color: #f1f6fb;
  font-size: 28px;
  font-weight: 600;
}

.ryeo-metrics small {
  color: #506479;
  font-size: 10px;
}

.ryeo-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 14px;
  margin-top: 14px;
}

.ryeo-module {
  min-width: 0;
  padding: 18px;
}

.ryeo-module--wide {
  grid-row: span 2;
}

.ryeo-module__head,
.ryeo-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ryeo-module__head {
  margin-bottom: 14px;
}

.ryeo-module__head span,
.ryeo-section-title span {
  color: #587089;
  font-size: 9px;
  letter-spacing: .14em;
}

.ryeo-module__head h2,
.ryeo-section-title h2 {
  margin: 4px 0 0;
  color: #dfe9f2;
  font-size: 17px;
  letter-spacing: -.02em;
}

.ryeo-module__head button,
.ryeo-search button,
.ryeo-scripture button {
  border: 1px solid rgba(129, 154, 183, .18);
  background: transparent;
  color: #778da3;
  padding: 8px 11px;
  border-radius: 5px;
  font-size: 11px;
}

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

.ryeo-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.ryeo-table th,
.ryeo-table td {
  padding: 12px 11px;
  border-bottom: 1px solid rgba(129, 154, 183, .10);
  text-align: left;
  font-size: 11px;
}

.ryeo-table th {
  color: #566c82;
  font-weight: 600;
}

.ryeo-table td {
  color: #aebdcb;
}

.ryeo-table tbody tr:hover {
  background: rgba(59, 101, 132, .08);
}

.ryeo-table--large th,
.ryeo-table--large td {
  padding: 15px 13px;
  font-size: 12px;
}

.tag {
  display: inline-block;
  padding: 4px 7px;
  border: 1px solid;
  border-radius: 4px;
  font-size: 9px;
}

.tag--orange { color: #d6a36e; border-color: rgba(214, 163, 110, .3); background: rgba(214, 163, 110, .07); }
.tag--blue { color: #7fa9c8; border-color: rgba(127, 169, 200, .3); background: rgba(127, 169, 200, .07); }
.tag--red { color: #cb7777; border-color: rgba(203, 119, 119, .3); background: rgba(203, 119, 119, .07); }
.tag--gray { color: #7f8d9b; border-color: rgba(127, 141, 155, .3); background: rgba(127, 141, 155, .07); }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-dot--green::before { background: #61b98b; }
.status-dot--yellow::before { background: #c6a55e; }
.status-dot--red::before { background: #c66c6c; }
.status-dot--gray::before { background: #697784; }

.ryeo-queue,
.ryeo-log {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ryeo-queue li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(129, 154, 183, .10);
}

.ryeo-queue li > span {
  color: #4a6075;
  font-size: 10px;
}

.ryeo-queue strong,
.ryeo-log span {
  display: block;
  color: #a9b7c5;
  font-size: 11px;
}

.ryeo-queue small {
  display: block;
  margin-top: 3px;
  color: #52677c;
  font-size: 9px;
}

.ryeo-log li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(129, 154, 183, .08);
}

.ryeo-log time {
  color: #50667b;
  font-size: 10px;
  font-family: monospace;
}

.ryeo-section-title {
  margin-bottom: 18px;
}

.ryeo-section-title h2 {
  font-size: 24px;
}

.ryeo-search {
  display: flex;
  gap: 8px;
}

.ryeo-search input {
  width: 280px;
  padding: 10px 12px;
  border: 1px solid rgba(129, 154, 183, .18);
  background: #0b1119;
  color: #ccd8e3;
  border-radius: 5px;
}

.ryeo-office-grid,
.ryeo-class-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ryeo-office,
.ryeo-class-grid article {
  padding: 24px;
}

.ryeo-office > span,
.ryeo-class-grid article > span {
  color: #6e94af;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 36px;
}

.ryeo-office h3,
.ryeo-class-grid h3 {
  margin: 12px 0 8px;
  color: #dbe6ef;
  font-size: 17px;
}

.ryeo-office p,
.ryeo-class-grid p {
  margin: 0;
  color: #708399;
  font-size: 12px;
}

.ryeo-office strong {
  display: block;
  margin-top: 18px;
  color: #94a7ba;
  font-size: 11px;
}

.ryeo-class-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ryeo-empty-state,
.ryeo-forbidden,
.ryeo-scripture {
  padding: 55px 30px;
  text-align: center;
}

.ryeo-empty-state strong,
.ryeo-forbidden strong {
  color: #d7e1ea;
  font-size: 16px;
}

.ryeo-empty-state p,
.ryeo-forbidden p,
.ryeo-scripture p {
  color: #687d92;
  font-size: 12px;
}

.ryeo-lock {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid rgba(172, 108, 108, .24);
  color: #a76f6f;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 26px;
}

.ryeo-scripture blockquote {
  margin: 0 0 22px;
  color: #d9e3ec;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 22px;
  line-height: 1.9;
}

.ryeo-keeper {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 26px;
  align-items: center;
  padding: 34px;
}

.ryeo-keeper__mark {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 154, 183, .18);
  color: #738da3;
  font-family: "Noto Serif KR", "Batang", serif;
  font-size: 50px;
}

.ryeo-keeper span {
  color: #526a80;
  font-size: 9px;
  letter-spacing: .14em;
}

.ryeo-keeper h3 {
  margin: 7px 0 16px;
  color: #dbe5ee;
  font-size: 20px;
}

.ryeo-keeper p {
  margin: 5px 0;
  color: #718499;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .ryeo-system {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .ryeo-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .ryeo-brand__sub,
  .ryeo-nav button:not(.is-active) {
    font-size: 0;
  }

  .ryeo-nav button {
    justify-content: center;
  }

  .ryeo-nav button span {
    font-size: 10px;
  }

  .ryeo-sidebar__footer {
    display: none;
  }

  .ryeo-metrics,
  .ryeo-office-grid,
  .ryeo-class-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ryeo-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ryeo-module--wide {
    grid-row: auto;
  }
}

@media (max-width: 760px) {
  body.ryeo-mode {
    overflow: auto;
  }

  .ryeo-system {
    display: block;
  }

  .ryeo-sidebar {
    min-height: auto;
    padding: 14px;
    position: static;
  }

  .ryeo-brand {
    justify-content: flex-start;
    border-bottom: 0;
    padding-bottom: 10px;
  }

  .ryeo-brand__sub {
    display: block;
  }

  .ryeo-nav {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: auto;
    margin-top: 8px;
  }

  .ryeo-nav button,
  .ryeo-nav button:not(.is-active) {
    justify-content: center;
    font-size: 0;
    padding: 10px 6px;
  }

  .ryeo-nav button span {
    font-size: 10px;
  }

  .ryeo-workspace {
    height: auto;
    overflow: visible;
  }

  .ryeo-topbar {
    position: static;
    display: block;
    padding: 16px;
  }

  .ryeo-topbar__status {
    margin-top: 14px;
    flex-wrap: wrap;
  }

  .ryeo-topbar__status > div {
    min-width: auto;
  }

  .ryeo-content {
    padding: 16px;
  }

  .ryeo-metrics,
  .ryeo-office-grid,
  .ryeo-class-grid {
    grid-template-columns: 1fr;
  }

  .ryeo-alert {
    display: block;
  }

  .ryeo-alert p {
    margin-top: 8px;
  }

  .ryeo-section-title {
    align-items: flex-start;
    display: block;
  }

  .ryeo-search {
    margin-top: 12px;
  }

  .ryeo-search input {
    width: 100%;
  }

  .ryeo-keeper {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   1912 접근 전환 연출
   ========================================================= */

.access-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  overflow: hidden;
  background: rgba(3, 7, 12, 0);
  pointer-events: none;
}

.access-transition.is-active {
  display: block;
  pointer-events: all;
  animation: accessBackdrop 3.85s both;
}

.access-transition__noise,
.access-transition__scan,
.access-transition__flash {
  position: absolute;
  inset: 0;
}

.access-transition__noise {
  opacity: 0;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
  background-size: 7px 7px, 100% 4px;
  mix-blend-mode: screen;
}

.access-transition.is-active .access-transition__noise {
  animation: noiseRise 3.2s both steps(2, end);
}

.access-transition__scan {
  top: -18%;
  bottom: auto;
  height: 14%;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(131, 183, 215, .04),
    rgba(206, 232, 247, .22),
    rgba(96, 160, 198, .04),
    transparent
  );
  filter: blur(1px);
}

.access-transition.is-active .access-transition__scan {
  animation: scanDrop 2.25s .3s ease-in-out both;
}

.access-transition__flash {
  background: #dcecf4;
  opacity: 0;
}

.access-transition.is-active .access-transition__flash {
  animation: accessFlash 3.7s both;
}

.access-transition__terminal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 40px));
  transform: translate(-50%, -46%);
  opacity: 0;
  color: #c8d8e3;
  font-family: "Courier New", "Malgun Gothic", monospace;
}

.access-transition.is-active .access-transition__terminal {
  animation: terminalAppear 3.5s .42s both;
}

.access-transition__symbol {
  margin-bottom: 24px;
  color: #dceaf2;
  font-size: 36px;
  letter-spacing: .12em;
  opacity: .76;
}

.access-transition__lines {
  min-height: 150px;
  border-left: 1px solid rgba(135, 174, 199, .26);
  padding-left: 18px;
}

.access-transition__lines p {
  margin: 0 0 9px;
  color: #7991a2;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(4px);
}

.access-transition__lines p:first-child {
  color: #d0e0ea;
  font-size: 11px;
  letter-spacing: .16em;
  margin-bottom: 19px;
}

.access-transition.is-active [data-transition-line="1"] { animation: lineReveal .16s .55s forwards; }
.access-transition.is-active [data-transition-line="2"] { animation: lineReveal .16s 1.02s forwards; }
.access-transition.is-active [data-transition-line="3"] { animation: lineReveal .16s 1.55s forwards; color: #b88973; }
.access-transition.is-active [data-transition-line="4"] { animation: lineReveal .16s 2.15s forwards; color: #adc4d2; }
.access-transition.is-active [data-transition-line="5"] { animation: lineReveal .16s 2.72s forwards; color: #e0ebf1; }

.access-transition__progress {
  height: 1px;
  margin-top: 20px;
  background: rgba(124, 157, 179, .12);
  overflow: hidden;
}

.access-transition__progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #a8c3d4;
  box-shadow: 0 0 10px rgba(168,195,212,.32);
}

.access-transition.is-active .access-transition__progress i {
  animation: accessProgress 2.7s .65s cubic-bezier(.18,.75,.24,1) forwards;
}

body.access-transitioning > .top-banner,
body.access-transitioning > .header,
body.access-transitioning > .search-panel,
body.access-transitioning > main,
body.access-transitioning > .footer {
  animation: publicSiteCorrupt 2.35s .12s both;
  transform-origin: center center;
}

@keyframes accessBackdrop {
  0% { background: rgba(3,7,12,0); backdrop-filter: blur(0); }
  15% { background: rgba(4,9,15,.15); }
  34% { background: rgba(4,9,15,.58); backdrop-filter: blur(1px); }
  55%, 100% { background: #050a10; backdrop-filter: blur(0); }
}

@keyframes publicSiteCorrupt {
  0% { opacity: 1; filter: none; transform: translate(0,0) scale(1); }
  8% { transform: translate(-1px,0); }
  10% { transform: translate(2px,1px); filter: contrast(1.04); }
  12% { transform: translate(0,0); }
  23% { opacity: .95; filter: saturate(.72) contrast(1.06); }
  38% { transform: translateX(-2px) skewX(.08deg); }
  40% { transform: translateX(2px) skewX(-.08deg); }
  43% { transform: translateX(0); }
  62% { opacity: .58; filter: grayscale(.65) contrast(1.15) brightness(.75); }
  82%, 100% { opacity: 0; filter: grayscale(1) contrast(1.3) brightness(.25); }
}

@keyframes noiseRise {
  0%, 10% { opacity: 0; transform: translate(0,0); }
  18% { opacity: .14; transform: translate(-2px,1px); }
  25% { opacity: .04; transform: translate(2px,-1px); }
  37% { opacity: .22; transform: translate(-1px,2px); }
  49% { opacity: .08; }
  61% { opacity: .25; transform: translate(3px,0); }
  75%, 100% { opacity: .07; transform: translate(0,0); }
}

@keyframes scanDrop {
  0% { top: -18%; opacity: 0; }
  10% { opacity: .7; }
  82% { opacity: .42; }
  100% { top: 110%; opacity: 0; }
}

@keyframes accessFlash {
  0%, 25% { opacity: 0; }
  26% { opacity: .1; }
  27.2% { opacity: 0; }
  58% { opacity: 0; }
  59% { opacity: .06; }
  60% { opacity: 0; }
  88% { opacity: 0; }
  89% { opacity: .16; }
  91%, 100% { opacity: 0; }
}

@keyframes terminalAppear {
  0%, 7% { opacity: 0; transform: translate(-50%, -43%); }
  16%, 82% { opacity: 1; transform: translate(-50%, -50%); }
  92%, 100% { opacity: 0; transform: translate(-50%, -52%); }
}

@keyframes lineReveal {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes accessProgress {
  0% { width: 0; }
  28% { width: 21%; }
  41% { width: 46%; }
  67% { width: 74%; }
  84% { width: 91%; }
  100% { width: 100%; }
}

body.ryeo-entering .ryeo-system {
  animation: ryeoSystemEnter .75s cubic-bezier(.2,.78,.25,1) both;
}

@keyframes ryeoSystemEnter {
  0% { opacity: 0; filter: brightness(.45) blur(2px); transform: scale(1.006); }
  35% { opacity: .42; filter: brightness(.72) blur(1px); }
  100% { opacity: 1; filter: none; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .access-transition.is-active,
  .access-transition.is-active *,
  body.access-transitioning > * {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
  }
}


/* v5: 내부 로고 축소 및 한 줄 고정 */
.ryeo-brand {
  gap: 10px;
  padding: 0 6px 18px;
}

.ryeo-brand__logo {
  width: 78px;
  max-width: 78px;
  max-height: 82px;
  object-fit: contain;
  flex: 0 0 78px;
}

.ryeo-brand__sub {
  min-width: 0;
  white-space: nowrap;
}

.ryeo-brand__sub strong {
  display: block;
  font-size: 14px;
  letter-spacing: .025em;
  white-space: nowrap;
}

.ryeo-brand__sub span {
  display: block;
  margin-top: 3px;
  font-size: 7px;
  letter-spacing: .12em;
  line-height: 1.35;
  white-space: normal;
}

/* v5: 글리치 강화 */
.access-transition__tear {
  position: absolute;
  left: -8%;
  width: 116%;
  height: 9%;
  z-index: 3;
  opacity: 0;
  background: rgba(207,239,255,.10);
  backdrop-filter: blur(1px) contrast(1.8);
  mix-blend-mode: screen;
}

.access-transition__tear--1 { top: 17%; }
.access-transition__tear--2 { top: 44%; }
.access-transition__tear--3 { top: 73%; }

.access-transition.is-active .access-transition__tear--1 {
  animation: tearGlitchA .82s steps(2,end) .34s 4;
}
.access-transition.is-active .access-transition__tear--2 {
  animation: tearGlitchB .68s steps(2,end) .72s 5;
}
.access-transition.is-active .access-transition__tear--3 {
  animation: tearGlitchC .76s steps(2,end) 1.12s 4;
}

.access-transition__code {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: rgba(215,242,255,.055);
  font-family: Consolas, monospace;
  font-size: clamp(80px, 16vw, 210px);
  font-weight: 800;
  letter-spacing: .18em;
  opacity: 0;
  transform: scale(1);
}

.access-transition.is-active .access-transition__code {
  animation: codeGhost 1.05s steps(2,end) 1.48s 2;
}

.access-transition.is-active .access-transition__noise {
  animation: noisePulse .13s steps(2,end) infinite, noiseFade 4.55s linear forwards;
}

.access-transition.is-active .access-transition__scan {
  animation: scanSweep 1.05s ease-in-out .58s 3;
}

.access-transition.is-active .access-transition__flash {
  animation: hardFlash 4.55s steps(1,end) forwards;
}

body.access-transitioning > .top-banner,
body.access-transitioning > .header,
body.access-transitioning > .search-panel,
body.access-transitioning > main,
body.access-transitioning > .footer {
  animation: pageGlitchHeavy 4.35s steps(1,end) forwards;
  transform-origin: center;
}

body.access-transitioning::before,
body.access-transitioning::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
}

body.access-transitioning::before {
  background: rgba(255, 0, 72, .09);
  transform: translateX(-5px);
  animation: chromaRed 1.25s steps(2,end) .3s 3;
}

body.access-transitioning::after {
  background: rgba(0, 218, 255, .09);
  transform: translateX(5px);
  animation: chromaCyan 1.25s steps(2,end) .4s 3;
}

@keyframes tearGlitchA {
  0%,100% { opacity: 0; transform: translateX(0) scaleX(1); }
  20% { opacity: .55; transform: translateX(28px) scaleX(1.02); }
  42% { opacity: .10; transform: translateX(-34px) scaleX(.98); }
  68% { opacity: .42; transform: translateX(13px) scaleX(1.01); }
}

@keyframes tearGlitchB {
  0%,100% { opacity: 0; transform: translateX(0); }
  30% { opacity: .48; transform: translateX(-38px); }
  62% { opacity: .16; transform: translateX(31px); }
}

@keyframes tearGlitchC {
  0%,100% { opacity: 0; transform: translateX(0); }
  50% { opacity: .44; transform: translateX(42px); }
}

@keyframes codeGhost {
  0%,100% { opacity: 0; transform: scale(1); }
  16% { opacity: .55; transform: scale(1.025); }
  19% { opacity: .06; transform: scale(.992); }
  46% { opacity: .34; transform: scale(1.012); }
  49% { opacity: 0; }
}

@keyframes noiseFade {
  0% { opacity: 0; }
  14% { opacity: .22; }
  28% { opacity: .60; }
  33% { opacity: .12; }
  52% { opacity: .52; }
  71% { opacity: .24; }
  88% { opacity: .68; }
  100% { opacity: .18; }
}

@keyframes hardFlash {
  0%, 21%, 100% { opacity: 0; }
  22% { opacity: .32; background: #fff; }
  23% { opacity: 0; }
  47% { opacity: .20; background: #4fc8ff; }
  48% { opacity: 0; }
  69% { opacity: .42; background: #fff; }
  70% { opacity: .04; }
  83% { opacity: .22; background: #ff315f; }
  84% { opacity: 0; }
}

@keyframes pageGlitchHeavy {
  0%, 7%, 100% { transform: translate(0,0); filter: none; }
  8% { transform: translate(-3px,1px); }
  9% { transform: translate(4px,-1px); }
  10% { transform: translate(0,0); }
  24% { transform: skewX(.35deg) translateX(-2px); filter: contrast(1.25); }
  25% { transform: skewX(-.4deg) translateX(3px); }
  26% { transform: none; }
  42% { filter: grayscale(.65) contrast(1.45); }
  44% { filter: invert(1) contrast(2.1); }
  45% { filter: grayscale(.8) contrast(1.55); }
  47% { filter: none; }
  61% { transform: translateX(3px) scaleX(1.002); }
  62% { transform: translateX(-4px) scaleX(.998); }
  63% { transform: none; }
  78% { filter: saturate(.05) contrast(1.7); }
  80% { filter: invert(1) saturate(0) contrast(2.2); }
  81% { filter: none; }
  91% { transform: translateY(2px); opacity: .75; }
  93% { transform: translateY(-1px); opacity: .92; }
  100% { transform: none; opacity: 1; }
}

@keyframes chromaRed {
  0%,100% { opacity: 0; }
  18%,25% { opacity: .58; }
  26% { opacity: .06; }
  52%,58% { opacity: .42; }
}

@keyframes chromaCyan {
  0%,100% { opacity: 0; }
  15%,23% { opacity: .50; }
  24% { opacity: .05; }
  48%,55% { opacity: .38; }
}

@media (max-width: 1050px) {
  .ryeo-brand__logo {
    width: 54px;
    max-width: 54px;
    max-height: 58px;
    flex-basis: 54px;
  }

  .ryeo-brand__sub {
    display: none;
  }
}
