:root {
  --app-navy: #10233f;
  --app-navy-soft: #1b3657;
  --app-blue: #4268a1;
  --app-teal: #4f9d9a;
  --app-ink: #18233b;
  --app-muted: #6b7888;
  --app-line: #dde3e2;
  --app-off: #f5f6f2;
  --app-shadow: 0 10px 36px rgba(18, 36, 61, 0.08);
}

.brand-copy { display: grid; gap: 1px; }
.brand-copy b { font-size: 16px; letter-spacing: .04em; }
.brand-copy small { color: #78908f; font-size: 8px; letter-spacing: .12em; }
.global-search { display: none; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #28a19c; }

body.is-authenticated {
  color: var(--app-ink);
  background: var(--app-off);
  font-family: Manrope, "Noto Sans KR", Inter, system-ui, sans-serif;
}

body.is-authenticated .topbar {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto 0;
  height: 68px;
  padding: 0 28px 0 256px;
  border-bottom: 1px solid var(--app-line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

body.is-authenticated .brand {
  position: fixed;
  inset: 0 auto auto 0;
  width: 228px;
  height: 68px;
  padding: 0 22px;
  color: #fff;
  background: var(--app-navy);
}

body.is-authenticated .brand-mark {
  width: 38px;
  height: 38px;
  color: var(--app-navy);
  background: #fff;
  border-radius: 11px;
  font-size: 21px;
}

body.is-authenticated .brand-copy b { font-size: 17px; }
body.is-authenticated .brand-copy small { color: #9fb0c5; }
body.is-authenticated .global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(330px, 36vw);
  padding: 9px 12px;
  color: #7c8795;
  border: 1px solid #e5e8e7;
  border-radius: 9px;
  background: #f6f7f5;
}
body.is-authenticated .global-search input { width: 100%; border: 0; outline: 0; color: var(--app-ink); background: transparent; font-size: 12px; }
body.is-authenticated .topbar-actions { margin-left: auto; }
body.is-authenticated .topbar-profile-button { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: #526477; border: 1px solid #dce2e3; border-radius: 10px; background: #fff; }
body.is-authenticated .topbar-profile-button:hover,
body.is-authenticated .topbar-profile-button.is-active { color: #fff; border-color: var(--app-blue); background: var(--app-blue); }
body.is-authenticated .topbar-profile-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-profile-button[hidden] { display: none !important; }
body.is-authenticated .status { color: #377574; background: #f4fbfa; border: 1px solid #d7e5e4; font-size: 9px; letter-spacing: .08em; }
body.is-authenticated .login-button { min-height: 36px; padding: 0 14px; color: #526477; border: 1px solid #dce2e3; background: #fff; font-size: 11px; }
body.is-authenticated .login-button:hover { color: #fff; background: var(--app-navy-soft); }

body.is-authenticated main { width: auto; min-height: 100vh; margin: 0 0 0 228px; padding: 0; }
body.is-authenticated .member-app { max-width: 1440px; margin: 0 auto; padding: 102px 36px 105px; }
body.is-authenticated .member-header { align-items: flex-end; margin-bottom: 25px; }
body.is-authenticated .member-header h1 { margin-top: 4px; font-size: 27px; letter-spacing: -.04em; }
body.is-authenticated .member-header p:last-child { margin-top: 8px; color: var(--app-muted); font-size: 13px; }
body.is-authenticated .eyebrow { color: #688092; font-size: 10px; letter-spacing: .12em; }
body.is-authenticated .profile-button,
body.is-authenticated .primary-button,
body.is-authenticated .refresh-button,
body.is-authenticated .filter-button { min-height: 40px; border-radius: 8px; background: var(--app-blue); font-size: 11px; }
body.is-authenticated .profile-button:hover,
body.is-authenticated .primary-button:hover,
body.is-authenticated .refresh-button:hover,
body.is-authenticated .filter-button:hover { background: #345787; }
body.is-authenticated .secondary-button { color: var(--app-blue); border-color: #cfd9e2; background: #fff; }

body.is-authenticated .member-nav {
  position: fixed;
  z-index: 40;
  inset: 68px auto 0 0;
  width: 228px;
  margin: 0;
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--app-navy);
}
.nav-section-label { margin: 4px 12px 7px; color: #6f8298; font-size: 9px; font-weight: 800; letter-spacing: .15em; }
body.is-authenticated .member-nav-item {
  position: relative;
  flex: none;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #aab6c7;
  border-radius: 9px;
  background: transparent;
  font-size: 12px;
  text-align: left;
}
body.is-authenticated .member-nav-item > span { display: grid; place-items: center; width: 19px; color: #89a1b8; font-size: 17px; }
body.is-authenticated .member-nav-item:hover,
body.is-authenticated .member-nav-item.is-active { color: #fff; background: #263b5f; }
body.is-authenticated .member-nav-item.is-active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 24px; border-radius: 0 4px 4px 0; background: #46b6c1; }
body.is-authenticated .member-nav-item.is-active > span { color: #65d1d0; }
.nav-admin-label { margin-top: 18px; }
.sidebar-security { margin-top: auto; padding: 13px; display: grid; gap: 3px; color: #fff; border: 1px solid #29425f; border-radius: 10px; background: #142c48; }
.sidebar-security b { font-size: 11px; }
.sidebar-security small { color: #7cd1d0; font-size: 9px; }

body.is-authenticated .section-heading { align-items: flex-end; margin-bottom: 18px; }
body.is-authenticated .section-heading h2 { font-size: 24px; }
body.is-authenticated .member-view { min-height: 520px; }
.profile-page-card { max-width: 760px; padding: 26px; border: 1px solid var(--app-line); border-radius: 14px; background: #fff; }
.profile-account { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--app-line); }
.profile-account > div { display: grid; gap: 4px; }
.profile-account small { color: var(--app-muted); font-size: 10px; }
.profile-account strong { color: var(--app-ink); font-size: 14px; }
.profile-avatar { display: grid; place-items: center; width: 46px; height: 46px; color: var(--app-blue); border-radius: 50%; background: #eaf0f7; }
.profile-avatar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.profile-actions { display: flex; align-items: center; justify-content: flex-end; gap: 18px; margin-top: 20px; }
.profile-actions .login-message { margin-right: auto; text-align: left; }
.profile-actions .primary-button { min-width: 140px; }
.brief-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  margin-bottom: 18px;
  padding: 23px 26px;
  display: flex;
  align-items: center;
  color: #fff;
  border-radius: 15px;
  background: linear-gradient(125deg, #1c2d4d, #294663 66%, #355f68);
  box-shadow: var(--app-shadow);
}
.brief-card::after { content: ""; position: absolute; right: -90px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; }
.brief-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-right: 17px; color: #74d1d0; border-radius: 12px; background: rgba(255,255,255,.11); font-size: 21px; font-weight: 800; }
.brief-copy { position: relative; z-index: 1; }
.brief-copy small { color: #75c8c5; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.brief-copy h2 { margin: 5px 0; font-size: 18px; }
.brief-copy p { margin: 0; color: #b6c4d1; font-size: 11px; }
.brief-stats { position: relative; z-index: 1; margin-left: auto; display: flex; }
.brief-stats div { min-width: 90px; padding: 0 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.14); }
.brief-stats b { display: block; font-size: 22px; }
.brief-stats span { display: block; margin-top: 3px; color: #b7c5d2; font-size: 9px; }

.today-simple-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.today-simple-card { min-height: 220px; padding: 20px; border: 1px solid var(--app-line); border-radius: 13px; background: #fff; }
.today-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.today-card-head > div { display: flex; align-items: center; gap: 10px; }
.today-card-head h3 { margin: 0; color: var(--app-ink); font-size: 16px; }
.today-card-head button { min-height: 34px; padding: 0 11px; color: var(--app-blue); border: 1px solid #d4dde5; border-radius: 8px; background: #fff; font-size: 9px; font-weight: 800; }
.today-card-head button:hover { color: #fff; border-color: var(--app-blue); background: var(--app-blue); }
.today-card-icon { display: grid; place-items: center; width: 30px; height: 30px; color: var(--app-teal); border-radius: 9px; background: #e7f2f0; font-weight: 900; }
.today-card-icon.calendar { color: var(--app-blue); background: #eaf0f7; }
.simple-empty { min-height: 150px; display: grid; place-content: center; gap: 7px; text-align: center; color: var(--app-muted); }
.simple-empty strong { color: #405467; font-size: 13px; }
.simple-empty p { max-width: 350px; margin: 0; font-size: 10px; line-height: 1.6; }

body.is-authenticated .metric-grid { gap: 12px; }
body.is-authenticated .metric-grid article,
body.is-authenticated .content-card,
body.is-authenticated .info-cards article,
body.is-authenticated .institution-grid a,
body.is-authenticated .data-workspace,
body.is-authenticated .admin-grid article { border: 1px solid var(--app-line); border-radius: 12px; box-shadow: none; background: #fff; }
body.is-authenticated .metric-grid article { padding: 18px; }
body.is-authenticated .metric-grid strong { color: var(--app-ink); font-size: 25px; }
body.is-authenticated .content-grid { gap: 18px; margin-top: 18px; }
body.is-authenticated .content-card { padding: 18px; }
body.is-authenticated .empty-content { padding: 38px 18px; }
body.is-authenticated .filter-row,
body.is-authenticated .data-filters { border: 1px solid #e5e8e7; background: #f7f8f7; }
body.is-authenticated .info-cards { grid-template-columns: repeat(3, 1fr); gap: 16px; }
body.is-authenticated .info-cards article { padding: 19px; transition: transform .18s, box-shadow .18s, border-color .18s; }
body.is-authenticated .info-cards article:hover { border-color: #bfced3; transform: translateY(-2px); box-shadow: var(--app-shadow); }
body.is-authenticated .card-tag,
body.is-authenticated .source-status { color: #26736f; background: #e7f2f1; }
body.is-authenticated .data-tab.is-active { color: var(--app-blue); border-bottom-color: var(--app-blue); }
body.is-authenticated .data-message { color: #397b78; }

body.is-authenticated[data-current-view="admin"] .member-app { max-width: none; padding: 0; }
body.is-authenticated[data-current-view="admin"] .member-header { display: none; }
body.is-authenticated .admin-panel { max-width: 1440px; margin: 0 auto; padding: 102px 36px 105px; }
body.is-authenticated .admin-hero { padding: 24px 26px; color: #fff; border: 0; border-radius: 15px; background: linear-gradient(125deg, #112b4a, #163e5d 65%, #155d69); box-shadow: var(--app-shadow); }
body.is-authenticated .admin-hero h1 { font-size: 27px; }
body.is-authenticated .admin-hero p:last-child { color: #b6c4d1; }
body.is-authenticated .admin-badge { color: #7cd1d0; border: 1px solid #2a5e6d; background: rgba(14, 50, 74, .75); }
body.is-authenticated .data-workspace { padding: 22px; }
body.is-authenticated .data-heading h2 { font-size: 22px; }
body.is-authenticated .data-summary article { background: #f8faf9; }

body.is-authenticated > footer { margin-left: 228px; border: 0; background: var(--app-off); font-size: 9px; }

@media (max-width: 980px) {
  body.is-authenticated .topbar { padding: 0 14px; }
  body.is-authenticated .brand { position: static; width: auto; height: auto; padding: 0; color: var(--app-navy); background: transparent; }
  body.is-authenticated .brand-mark { width: 34px; height: 34px; color: #fff; background: var(--app-navy); }
  body.is-authenticated .brand-copy small { color: #78908f; }
  body.is-authenticated .global-search { display: none; }
  body.is-authenticated main { margin-left: 0; }
  body.is-authenticated .member-app { padding: 94px 20px 118px; }
  body.is-authenticated .member-nav {
    position: fixed;
    inset: auto 9px max(8px, env(safe-area-inset-bottom)) 9px;
    width: auto;
    min-height: 68px;
    padding: 0 5px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    border: 1px solid rgba(199, 211, 209, .92);
    border-radius: 18px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 16px 42px rgba(14, 39, 62, .20);
    backdrop-filter: blur(16px);
  }
  body.is-authenticated .member-nav::-webkit-scrollbar { display: none; }
  body.is-authenticated .member-nav-item { flex: 1 1 54px; width: auto; min-width: 54px; min-height: 66px; padding: 8px 2px 6px; flex-direction: column; justify-content: center; gap: 3px; color: #71808b; border-radius: 13px; font-size: 8px; text-align: center; }
  body.is-authenticated .member-nav-item > span { width: auto; color: #71808b; font-size: 18px; }
  body.is-authenticated .member-nav-item:hover,
  body.is-authenticated .member-nav-item.is-active { color: #176f6c; background: #edf6f4; }
  body.is-authenticated .member-nav-item.is-active::before { inset: 0 auto auto 50%; width: 28px; height: 3px; border-radius: 0 0 3px 3px; transform: translateX(-50%); background: #168b86; }
  body.is-authenticated .member-nav-item.is-active > span { color: #168b86; }
  .nav-section-label, .sidebar-security { display: none !important; }
  body.is-authenticated .admin-panel { padding: 94px 20px 118px; }
  body.is-authenticated > footer { display: none; margin-left: 0; }
  body.is-authenticated .info-cards { grid-template-columns: 1fr 1fr; }
  .today-simple-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body.is-authenticated .topbar { height: 64px; }
  body.is-authenticated .brand-copy small { display: none; }
  body.is-authenticated .status { display: none; }
  body.is-authenticated .login-button { min-height: 38px; }
  body.is-authenticated .member-app,
  body.is-authenticated .admin-panel { padding: 84px 14px 112px; }
  body.is-authenticated .member-header { align-items: flex-start; }
  body.is-authenticated .member-header h1 { font-size: 23px; }
  body.is-authenticated .profile-button { width: auto; min-height: 38px; }
  body.is-authenticated .section-heading { flex-direction: row; align-items: flex-end; }
  body.is-authenticated .section-heading h2 { font-size: 22px; }
  .brief-card { padding: 20px; align-items: flex-start; }
  .brief-icon { display: none; }
  .brief-copy h2 { font-size: 17px; }
  .brief-copy p { max-width: 240px; line-height: 1.55; }
  .brief-stats { display: none; }
  body.is-authenticated .metric-grid { grid-template-columns: repeat(3, 1fr); }
  body.is-authenticated .metric-grid article { min-width: 0; padding: 14px 10px; }
  body.is-authenticated .metric-grid strong { font-size: 22px; }
  body.is-authenticated .metric-grid small,
  body.is-authenticated .metric-grid span { font-size: 9px; }
  body.is-authenticated .content-grid,
  body.is-authenticated .info-cards { grid-template-columns: 1fr; }
  .today-simple-card { min-height: 180px; padding: 17px; }
  .simple-empty { min-height: 110px; }
  body.is-authenticated .admin-hero { padding: 21px; }
  body.is-authenticated .admin-grid { grid-template-columns: 1fr 1fr; }
  body.is-authenticated .admin-grid article:last-child { grid-column: 1 / -1; }
  body.is-authenticated .data-workspace { padding: 18px 13px; }
  body.is-authenticated[data-current-view="admin"] .admin-panel { padding-top: 84px; }
  .profile-page-card { padding: 20px 16px; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .profile-actions .primary-button { width: 100%; }
}
