:root {
  --ink: #17322d;
  --muted: #667872;
  --paper: #fff;
  --soft: #f5f7f3;
  --green: #2b6759;
  --mint: #e2efe8;
  --gold: #c99b44;
  --line: #dfe5de;
  --shadow: 0 14px 35px rgba(31, 56, 48, .07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; line-height: 1.65; }
.topbar { height: 72px; padding: 0 max(24px, calc((100% - 1120px)/2)); display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.logo span, .brand-mark { display: grid; place-items: center; background: var(--green); color: white; border-radius: 12px; font-weight: 800; }
.logo span { width: 38px; height: 38px; }
.brand-mark { width: 56px; height: 56px; margin: auto; font-size: 22px; }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a { color: #4d635d; text-decoration: none; padding: 9px 13px; border-radius: 9px; font-size: 14px; }
.topbar nav a:hover { background: var(--mint); color: var(--green); }
.container { max-width: 1120px; margin: 0 auto; padding: 42px 24px 72px; }
.academy-hero { border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.hero-kicker { padding: 18px 34px; background: linear-gradient(115deg,#1f5447,#377b66); color: #dcebe5; font-size: 11px; letter-spacing: .2em; font-weight: 800; }
.hero-copy { padding: 42px 44px; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(90deg,#fff 65%,#f1f7f3); }
.hero-copy h1, .page-title h1 { font-family: Georgia, "Yu Mincho", serif; font-size: clamp(30px,4vw,46px); line-height: 1.3; margin: 5px 0 12px; }
.hero-copy p { margin: 0; color: #526962; }
.eyebrow { font-size: 11px!important; letter-spacing: .16em; font-weight: 800; color: #719188!important; margin: 0; }
.stat { min-width: 140px; text-align: center; color: var(--green); }
.stat strong { display: block; font: 700 48px/1 Georgia, serif; }
.stat span { font-size: 12px; }
.quick-links { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 18px 0; }
.quick-links a { background: #fff; color: var(--ink); text-decoration: none; padding: 16px 18px; font-size: 13px; font-weight: 700; }
.quick-links a:hover { background: var(--soft); }
.quick-links span { color: var(--gold); font: 700 12px Georgia,serif; margin-right: 9px; }
.about-strip { padding: 48px 8%; margin: 22px 0; background: var(--soft); border-radius: 18px; text-align: center; }
.about-strip h2 { font-family: Georgia,"Yu Mincho",serif; font-size: 28px; margin: 5px 0 10px; }
.about-strip p:last-child { max-width: 740px; margin: 0 auto; color: var(--muted); }
.grid.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; margin-top: 22px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; margin: 0 0 20px; }
.section-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 8px; }
.section-head h2 { margin: 2px 0 0; }
.course { display: flex; gap: 18px; padding: 18px 2px; border-bottom: 1px solid #edf0ec; }
.course:last-child, .news:last-child, .archive-card:last-child { border: 0; }
.course time { width: 56px; height: 62px; background: var(--mint); color: var(--green); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 auto; }
.course time strong { font: 700 25px/1 Georgia,serif; }
.course time span { font-size: 11px; }
.course h3, .news h3 { margin: 0 0 3px; font-size: 16px; }
.course p, .course small { margin: 0; color: var(--muted); font-size: 13px; }
.news, .archive-card { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news time, .archive-date { font-size: 11px; color: var(--green); font-weight: 700; }
.news p, .archive-card p { font-size: 13px; color: var(--muted); margin: 5px 0 0; }
.archive-card h3 { margin: 5px 0; font-size: 16px; }
.page-title { margin: 15px 0 28px; }
.page-title p:last-child { color: var(--muted); }
.course-sections, .admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.table-wrap { overflow: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; min-width: 720px; }
th, td { text-align: left; padding: 17px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { font-size: 11px; letter-spacing: .08em; color: var(--muted); background: #fafbf9; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.badge.green { background: #dcefe3; color: #26603d; }
.badge.red { background: #f9dfdf; color: #943d3d; }
.badge.blue { background: #dfeaf7; color: #355f90; }
.badge.gray { background: #ecefed; color: #64706c; }
.stack { display: grid; gap: 15px; }
label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: #465c56; }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid #cfd9d4; border-radius: 9px; padding: 11px 12px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43,103,89,.12); }
textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.primary { border: 0; border-radius: 10px; background: var(--green); color: white; padding: 12px 18px; font: 700 14px inherit; cursor: pointer; }
.primary:hover { background: #205247; }
.alert { padding: 12px 15px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; }
.alert.success { background: #dff1e7; color: #235c3e; }
.alert.error { background: #fbe5e5; color: #8b3434; }
.empty { color: var(--muted); padding: 22px 4px; }
.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(circle at 15% 10%,#e7f1ec 0,transparent 35%),#fff; }
.auth-card { background: #fff; width: min(100%,430px); padding: 42px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(31,56,48,.14); text-align: center; }
.auth-card h1 { font-family: Georgia,"Yu Mincho",serif; font-size: 28px; margin: 8px 0; }
.auth-card>.muted { color: var(--muted); margin: 0 0 26px; }
.auth-card form { text-align: left; }
.support { font-size: 12px; color: var(--muted); margin: 22px 0 0; }
footer { text-align: center; color: #80908b; font-size: 12px; padding: 28px; background: var(--soft); }
@media (max-width: 760px) {
  .topbar { height: auto; padding: 12px 16px; align-items: flex-start; }
  .logo strong { display: none; }
  .topbar nav { overflow-x: auto; }
  .topbar nav a { white-space: nowrap; padding: 8px; }
  .container { padding: 25px 15px 50px; }
  .hero-copy { padding: 28px 24px; }
  .stat { display: none; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .grid.two, .admin-grid, .course-sections { grid-template-columns: 1fr; }
  .panel { padding: 21px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 30px 22px; }
}
