:root {
  --blue-950: #06245f;
  --blue-900: #063a97;
  --blue-800: #0756d8;
  --blue-700: #066bff;
  --blue-600: #1184ff;
  --blue-500: #2aa8ff;
  --blue-100: #e9f4ff;
  --blue-50: #f5fbff;
  --cyan: #20d5ff;
  --ink: #102033;
  --muted: #60758f;
  --soft: #f3f8ff;
  --line: #d9e6f5;
  --line-strong: #b9cee8;
  --paper: #ffffff;
  --danger: #e11d48;
  --shadow-soft: 0 18px 46px rgba(6, 58, 151, .10);
  --shadow-strong: 0 26px 80px rgba(6, 58, 151, .18);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #f5f9ff;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(245,249,255,.96) 42%, #f7fbff),
    radial-gradient(circle at 18% 10%, rgba(32,213,255,.26), transparent 34%),
    radial-gradient(circle at 84% 0%, rgba(6,107,255,.22), transparent 30%);
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 58, 151, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 58, 151, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, #000 0, transparent 760px);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button { cursor: pointer; }

.site-shell {
  width: min(1320px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 46px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(185, 206, 232, .74);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 44px rgba(6, 58, 151, .10);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #063a97, #066bff 56%, #20d5ff);
  box-shadow: 0 16px 34px rgba(6, 107, 255, .26);
  font-size: 20px;
  font-weight: 1000;
}

.brand strong,
.brand em {
  display: block;
}

.brand strong {
  color: var(--blue-950);
  font-size: 20px;
  font-weight: 1000;
}

.brand em {
  margin-top: 2px;
  color: #6c7f97;
  font-size: 10px;
  font-style: normal;
  font-weight: 1000;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-actions a,
.ghost-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #25435f;
  background: transparent;
  font-size: 14px;
  font-weight: 1000;
}

.header-actions a {
  display: inline-flex;
  align-items: center;
}

.header-actions a:hover,
.ghost-button:hover {
  border-color: var(--line);
  background: var(--blue-50);
  color: var(--blue-800);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  gap: 22px;
  align-items: stretch;
  margin-top: 22px;
  overflow: hidden;
  min-height: 510px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(6, 36, 95, .96), rgba(6, 86, 216, .94) 52%, rgba(17, 132, 255, .92)),
    linear-gradient(90deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  box-shadow: var(--shadow-strong);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,.13) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .18;
}

.hero-copy,
.hero-console {
  position: relative;
  z-index: 1;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 1000;
}

.hero .eyebrow { color: #ccedff; }

.hero h1 {
  margin: 0;
  font-size: clamp(58px, 7.8vw, 112px);
  line-height: .92;
  font-weight: 1000;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 19px;
  line-height: 1.72;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 1000;
}

.primary-button {
  border: 1px solid var(--blue-700);
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  box-shadow: 0 16px 34px rgba(6, 107, 255, .24);
}

.hero .primary-button {
  border-color: #fff;
  color: var(--blue-950);
  background: #fff;
  box-shadow: 0 14px 30px rgba(6, 36, 95, .18);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, .34);
  color: #fff;
  background: rgba(255, 255, 255, .12);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #ecf8ff;
  font-size: 12px;
  font-weight: 1000;
}

.hero-console {
  display: grid;
  align-content: stretch;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(20px);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.console-top span {
  color: #dff4ff;
  font-size: 12px;
  font-weight: 1000;
}

.console-top strong {
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, .15);
  font-size: 12px;
  font-weight: 1000;
}

.hero-featured {
  min-height: 230px;
  display: grid;
}

.hero-feature-card {
  position: relative;
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 230px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(6, 36, 95, .28)),
    linear-gradient(135deg, rgba(32,213,255,.30), rgba(255,255,255,.08));
}

.hero-feature-card::before {
  content: "OPEN";
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255,255,255,.14);
  font-size: 54px;
  font-weight: 1000;
}

.hero-feature-card h3 {
  position: relative;
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 1000;
}

.hero-feature-card p {
  position: relative;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.feature-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feature-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
}

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

.stat-card {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: #fff;
  color: var(--blue-950);
}

.stat-card span,
.stat-card strong {
  display: block;
}

.stat-card span {
  color: #607896;
  font-size: 12px;
  font-weight: 1000;
}

.stat-card strong {
  margin-top: 8px;
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
}

.section-block,
.featured-section,
.schedule-board,
.content-hub {
  margin-top: 18px;
  border: 1px solid rgba(217, 230, 245, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}

.section-block,
.featured-section,
.content-hub {
  padding: 24px;
}

.section-heading,
.board-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading h2,
.board-top h2,
.content-hub h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 30px;
  line-height: 1.24;
  font-weight: 1000;
}

.section-heading > p,
.board-copy,
.content-hub > div > p {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.featured-card,
.today-card,
.list-row {
  position: relative;
  border: 1px solid var(--tier-border, var(--line));
  border-radius: 8px;
  background: #fff;
}

.featured-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, #fff 0, var(--tier-soft, #f8fbff) 100%);
  box-shadow: 0 14px 36px rgba(6, 58, 151, .08);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.featured-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--tier-color);
}

.featured-card:hover,
.list-row:hover,
.event-card:hover {
  transform: translateY(-2px);
  border-color: var(--tier-color);
  box-shadow: 0 18px 42px rgba(6, 58, 151, .13);
}

.featured-card h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 23px;
  line-height: 1.18;
  font-weight: 1000;
}

.featured-card p {
  margin: 0;
  color: #4f6278;
  font-size: 13px;
  line-height: 1.58;
  font-weight: 800;
}

.schedule-board { padding: 18px; }

.board-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.board-controls button,
.search-field {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.board-controls button {
  min-width: 60px;
  color: #31506f;
  font-size: 13px;
  font-weight: 1000;
}

.board-controls button:hover {
  border-color: var(--blue-500);
  color: var(--blue-800);
  background: var(--blue-50);
}

.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 285px;
  padding: 0 12px;
}

.search-field span {
  color: var(--blue-800);
  font-size: 12px;
  font-weight: 1000;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}

.tier-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tier-filters button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334963;
  background: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.tier-filters button::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--blue-500));
}

.tier-filters button.active {
  border-color: var(--blue-700);
  color: var(--blue-950);
  background: var(--blue-100);
}

.priority-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e2ecf8;
  border-radius: 8px;
  background: #f8fbff;
}

.priority-strip strong {
  color: var(--blue-950);
  font-size: 13px;
  font-weight: 1000;
}

.priority-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52677f;
  font-size: 12px;
  font-weight: 900;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--legend-color);
  box-shadow: 0 0 0 3px rgba(17, 132, 255, .08);
}

.legend-flash {
  --legend-color: #ff1515;
  animation: flashRedDot 1.1s ease-in-out infinite;
}

.legend-red { --legend-color: #dc0000; }
.legend-black { --legend-color: #111827; }
.legend-purple { --legend-color: #7440ff; }
.legend-sky { --legend-color: #12bdf4; }

.calendar-shell {
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.weekday-row,
.calendar-grid {
  min-width: 1120px;
  display: grid;
  grid-template-columns: repeat(7, minmax(148px, 1fr));
}

.weekday-row {
  gap: 8px;
  margin-bottom: 8px;
}

.weekday-row span {
  display: grid;
  min-height: 36px;
  place-items: center;
  border-radius: 8px;
  color: var(--blue-900);
  background: linear-gradient(180deg, #ecf6ff, #ddecff);
  font-size: 13px;
  font-weight: 1000;
}

.calendar-grid { gap: 8px; }

.day-card {
  min-height: 246px;
  padding: 11px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff 0, #fbfdff 100%);
}

.day-card.is-today {
  border-color: var(--blue-500);
  box-shadow: inset 0 0 0 1px rgba(17, 132, 255, .34), 0 14px 26px rgba(17, 132, 255, .13);
}

.day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin-bottom: 10px;
}

.day-head div {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.day-head strong {
  color: var(--blue-950);
  font-size: 25px;
  line-height: 1;
  font-weight: 1000;
}

.day-head small {
  color: #8a9ab0;
  font-size: 11px;
  font-weight: 900;
}

.day-head span {
  color: #71839a;
  font-size: 12px;
  font-weight: 900;
}

.today-badge {
  color: #fff !important;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  padding: 5px 8px;
  border-radius: 999px;
}

.day-events {
  display: grid;
  gap: 7px;
}

.event-card {
  position: relative;
  display: block;
  min-height: 80px;
  padding: 10px 10px 10px 12px;
  border: 1px solid var(--tier-border, #dce7f6);
  border-radius: 8px;
  background: var(--tier-soft, #fff);
  box-shadow: inset 4px 0 0 var(--tier-color);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.event-meta,
.card-meta,
.list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #52677f;
  font-size: 12px;
  font-weight: 900;
}

.event-meta {
  justify-content: space-between;
  margin-bottom: 7px;
}

.event-time,
.pill,
.tier-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-950);
  font-size: 12px;
  font-weight: 1000;
}

.event-card strong {
  display: block;
  overflow: hidden;
  color: var(--blue-950);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-card p {
  overflow: hidden;
  margin: 5px 0 0;
  color: #536981;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-flash-red { animation: flashRedGlow 1.15s ease-in-out infinite; }

.event-flash-red .color-badge,
.tier-flash-red .color-badge {
  animation: flashRedDot 1.15s ease-in-out infinite;
}

@keyframes flashRedGlow {
  0%, 100% { box-shadow: inset 4px 0 0 var(--tier-color), 0 0 0 rgba(255, 21, 21, 0); }
  50% { box-shadow: inset 4px 0 0 var(--tier-color), 0 0 20px rgba(255, 21, 21, .45); }
}

@keyframes flashRedDot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255, 21, 21, .16); }
  50% { transform: scale(1.12); box-shadow: 0 0 16px 5px rgba(255, 21, 21, .50); }
}

.empty-day,
.empty-state {
  display: grid;
  place-items: center;
  border: 1px dashed #d5e2f3;
  border-radius: 8px;
  color: #8ca0b8;
  background: #fbfdff;
  font-weight: 900;
  text-align: center;
}

.empty-day {
  min-height: 118px;
  font-size: 13px;
}

.empty-state { min-height: 130px; }

.schedule-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.list-row {
  display: grid;
  grid-template-columns: 122px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  overflow: hidden;
  padding: 14px 16px 14px 22px;
  background: linear-gradient(180deg, #fff, var(--tier-soft, #fbfdff));
  box-shadow: 0 10px 26px rgba(6, 58, 151, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.list-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--tier-color);
}

.list-date {
  color: var(--blue-900);
  font-size: 18px;
  font-weight: 1000;
}

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

.list-main strong {
  display: block;
  margin-top: 4px;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 1000;
}

.list-main p {
  margin: 5px 0 0;
  color: #4f6278;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

.list-action {
  min-width: 86px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--blue-100);
  color: var(--blue-950);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 1000;
}

.color-badge {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--tier-color);
  box-shadow: 0 0 0 4px var(--tier-ring, rgba(17, 132, 255, .10));
  flex: 0 0 auto;
}

.content-hub {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(236,246,255,.94));
}

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

.guide-grid article {
  min-height: 180px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guide-grid span {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 1000;
}

.guide-grid h3 {
  margin: 18px 0 0;
  color: var(--blue-950);
  font-size: 18px;
  font-weight: 1000;
}

.guide-grid p {
  margin: 9px 0 0;
  color: #60758f;
  font-size: 13px;
  line-height: 1.62;
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 4px;
  color: #52677f;
  font-size: 13px;
  font-weight: 800;
}

.site-footer strong { color: var(--blue-800); }

.tier-flash-red {
  --tier-color: #ff1515;
  --tier-soft: #fff4f4;
  --tier-border: #ffc7c7;
  --tier-ring: rgba(255, 21, 21, .16);
}

.tier-red {
  --tier-color: #dc0000;
  --tier-soft: #fff7f7;
  --tier-border: #ffd2d2;
  --tier-ring: rgba(220, 0, 0, .14);
}

.tier-black {
  --tier-color: #111827;
  --tier-soft: #f7f8fa;
  --tier-border: #d7dbe2;
  --tier-ring: rgba(17, 24, 39, .12);
}

.tier-purple {
  --tier-color: #7440ff;
  --tier-soft: #f8f5ff;
  --tier-border: #ded4ff;
  --tier-ring: rgba(116, 64, 255, .14);
}

.tier-sky {
  --tier-color: #12bdf4;
  --tier-soft: #f2fbff;
  --tier-border: #c5effd;
  --tier-ring: rgba(18, 189, 244, .16);
}

.admin-panel {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(6, 36, 95, .64);
  backdrop-filter: blur(10px);
}

.admin-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: min(840px, calc(100vh - 44px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

.admin-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  margin: 12px 12px 0 0;
  min-width: 58px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2e4057;
  font-size: 13px;
  font-weight: 1000;
}

.admin-login,
.admin-workspace {
  padding: 30px;
}

.admin-login {
  display: grid;
  gap: 12px;
  max-width: 430px;
}

.admin-login h2 {
  margin: 0;
  color: var(--blue-950);
  font-size: 30px;
}

.admin-login p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.admin-login input {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  outline: 0;
  font-weight: 800;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #405978;
  background: #fff;
  font-weight: 1000;
}

.admin-tabs button.active {
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  margin-top: 18px;
}

.admin-form,
.admin-list,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.admin-form,
.admin-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-list { overflow: hidden; }

.admin-form h2,
.admin-card h2 {
  margin: 0 0 4px;
  color: var(--blue-950);
  font-size: 20px;
}

.form-row {
  display: grid;
  gap: 6px;
}

.form-row label {
  color: #405978;
  font-size: 13px;
  font-weight: 1000;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  font-weight: 800;
}

.form-row input,
.form-row select {
  height: 40px;
  padding: 0 11px;
}

.form-row textarea {
  min-height: 82px;
  resize: vertical;
  padding: 10px 11px;
}

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

.form-actions button,
.mini-button,
.danger-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 1000;
}

.form-actions button,
.mini-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-800);
}

.form-actions .save-button {
  flex: 1;
  border-color: var(--blue-700);
  color: #fff;
  background: var(--blue-700);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 11px 12px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

.admin-table th {
  color: #405978;
  background: var(--blue-100);
  font-weight: 1000;
}

.admin-table td {
  color: #273a52;
  font-weight: 800;
}

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

.danger-button {
  border: 1px solid rgba(225, 29, 72, .24);
  color: var(--danger);
  background: #fff1f4;
}

.backup-box {
  width: 100%;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: #22344d;
  background: #fff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.notice {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 800;
}

.server-page {
  min-height: 100vh;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  margin-top: 22px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800) 54%, var(--blue-600));
  box-shadow: var(--shadow-strong);
}

.detail-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1;
  font-weight: 1000;
}

.detail-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 800;
}

.detail-panel,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--shadow-soft);
}

.detail-panel {
  padding: 18px;
  color: var(--blue-950);
}

.detail-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-panel div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--blue-50);
}

.detail-panel dt {
  color: #60758f;
  font-size: 12px;
  font-weight: 1000;
}

.detail-panel dd {
  margin: 0;
  font-size: 18px;
  font-weight: 1000;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  margin-top: 18px;
}

.detail-section {
  padding: 24px;
}

.detail-section h2,
.detail-section h3 {
  margin: 0;
  color: var(--blue-950);
  font-weight: 1000;
}

.detail-section h2 { font-size: 28px; }
.detail-section h3 { font-size: 18px; }

.detail-section p,
.detail-section li {
  color: #52677f;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 800;
}

.detail-section ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.link-stack {
  display: grid;
  gap: 8px;
}

.link-stack a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  font-weight: 1000;
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue-950);
  background: #fff;
  font-weight: 1000;
}

@media (max-width: 1120px) {
  .site-shell {
    width: min(100% - 22px, 1320px);
    padding-top: 10px;
  }

  .site-header,
  .section-heading,
  .board-top,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .header-actions,
  .board-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero,
  .detail-hero,
  .detail-layout,
  .content-hub {
    grid-template-columns: 1fr;
  }

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

  .search-field { min-width: min(100%, 320px); }

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

  .list-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 14px, 1320px); }

  .site-header { top: 7px; }

  .header-actions a,
  .ghost-button {
    flex: 1 1 auto;
    justify-content: center;
  }

  .hero,
  .detail-hero,
  .section-block,
  .featured-section,
  .schedule-board,
  .content-hub,
  .detail-section {
    padding: 16px;
  }

  .hero h1 { font-size: 54px; }

  .hero-copy > p:not(.eyebrow) { font-size: 15px; }

  .stat-grid,
  .featured-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .board-controls button { flex: 1 1 30%; }

  .search-field { width: 100%; }

  .admin-login,
  .admin-workspace {
    padding: 22px;
  }

  .form-actions,
  .admin-tabs {
    flex-wrap: wrap;
  }
}
