* { box-sizing: border-box; }
.academy-access-notice { max-width: 1180px; margin: 0 auto; padding: 26px 32px 36px; border-top: 1px solid #d2d9d4; color: #354a40; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; }
.academy-access-notice h2 { margin: 0 0 12px; font-size: 1.15rem; }
.academy-access-notice p { margin: 12px 0; }
.academy-access-notice summary { cursor: pointer; font-weight: 700; }
.academy-access-notice details { margin-top: 16px; }
.academy-access-notice summary:focus-visible, .access-notice-link:focus-visible, .access-login-link a:focus-visible { outline: 3px solid #b37e25; outline-offset: 4px; }
.access-notice-link { display: block; margin-bottom: 16px; font-size: .875rem; line-height: 1.5; color: #e5c47c; text-underline-offset: 3px; }
.login-card .access-login-link { font-size: .875rem; line-height: 1.5; margin: 16px 0; }
@media (max-width: 600px) { .academy-access-notice { padding: 24px 20px; } }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: #17211d;
  background: #f5f5ef;
  font-family: "DM Sans", system-ui, sans-serif;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 262px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  color: #f7f3e7;
  background: #10231d;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #10231d;
  background: #ddad55;
  font: 800 21px "Manrope", sans-serif;
}
.brand strong { display: block; font: 800 16px/1.1 "Manrope", sans-serif; }
.brand span { display: block; color: #aebdb5; font-size: 12px; margin-top: 4px; }
.nav-label { padding: 0 12px 9px; color: #7f968b; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav-button {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  color: #b9c7c0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  text-align: left;
}
.nav-button:hover, .nav-button.active { color: #fff; background: #203831; }
.nav-button.active { box-shadow: inset 3px 0 #ddad55; }
.nav-icon { width: 20px; text-align: center; font-size: 17px; }
.sidebar-foot { margin-top: auto; padding: 16px 10px 0; }
.private-note { padding: 12px; border: 1px solid #2d463e; border-radius: 12px; background: #172e27; }
.private-note strong { display: block; font-size: 12px; }
.private-note span { display: block; margin-top: 3px; color: #94aaa0; font-size: 11px; line-height: 1.4; }
.main { min-width: 0; }
.topbar {
  min-height: 72px;
  padding: 14px 38px;
  border-bottom: 1px solid #dedfd8;
  background: rgba(245,245,239,.94);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.mobile-brand { display: none; font: 800 17px "Manrope", sans-serif; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mode-pill { padding: 7px 10px; border: 1px solid #d8d8cf; border-radius: 999px; color: #58625d; background: #fff; font-size: 11px; font-weight: 700; }
.profile-button { border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 4px; border-radius: 12px; }
.profile-button:hover { background: #ebebe4; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2f6956; font-size: 12px; font-weight: 800; }
.profile-meta { text-align: left; }
.profile-meta strong { display: block; font-size: 12px; }
.profile-meta span { display: block; color: #7c847f; font-size: 10px; margin-top: 1px; }
.content { width: min(1180px, 100%); margin: 0 auto; padding: 40px 38px 64px; }
.eyebrow { margin: 0 0 7px; color: #2f6956; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { font-family: "Manrope", sans-serif; }
h1 { margin: 0; color: #14231e; font-size: clamp(30px, 4vw, 45px); line-height: 1.08; letter-spacing: -.035em; }
.subtitle { max-width: 690px; margin: 11px 0 0; color: #68716c; line-height: 1.65; }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.button { border: 0; border-radius: 11px; padding: 11px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; }
.button.primary { color: #fff; background: #2f6956; box-shadow: 0 6px 18px rgba(47,105,86,.17); }
.button.primary:hover { background: #285c4b; }
.button.secondary { color: #20332c; background: #fff; border: 1px solid #d9dbd4; }
.button.secondary:hover { background: #f9f9f5; }
.button.gold { color: #2a2114; background: #ddad55; }
.button.small { padding: 8px 11px; border-radius: 8px; font-size: 12px; }
.button:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 19px; border: 1px solid #dedfd8; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(22,36,30,.035); }
.stat-card span { color: #7c847f; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.stat-card strong { display: block; margin-top: 6px; color: #17251f; font: 800 27px "Manrope", sans-serif; }
.stat-card em { display: block; margin-top: 5px; color: #718079; font-size: 11px; font-style: normal; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, .75fr); gap: 20px; align-items: start; }
.panel { border: 1px solid #dedfd8; border-radius: 17px; background: #fff; box-shadow: 0 7px 22px rgba(22,36,30,.04); overflow: hidden; }
.panel-head { padding: 20px 21px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { margin: 0; font-size: 17px; }
.panel-head p { margin: 5px 0 0; color: #7c847f; font-size: 12px; }
.continue-card { padding: 22px; color: #f5f6f1; background: linear-gradient(135deg, #173d31, #2d6251); }
.continue-card .label { color: #bdd0c7; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.continue-card h2 { max-width: 520px; margin: 9px 0 8px; font-size: 24px; }
.continue-card p { max-width: 560px; margin: 0 0 19px; color: #c9d7d1; line-height: 1.55; font-size: 13px; }
.progress-track { height: 7px; border-radius: 99px; background: #e7e7e0; overflow: hidden; }
.continue-card .progress-track { max-width: 560px; background: rgba(255,255,255,.18); margin-bottom: 18px; }
.progress-fill { height: 100%; border-radius: inherit; background: #ddad55; transition: width .35s ease; }
.module-list { padding: 0 11px 12px; }
.module { border-top: 1px solid #ecece6; }
.module:first-child { border-top: 0; }
.module-toggle { width: 100%; padding: 17px 10px; border: 0; background: transparent; display: flex; align-items: center; gap: 12px; text-align: left; }
.module-number { flex: 0 0 auto; width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #2f6956; background: #e9f1ed; font-size: 11px; font-weight: 800; }
.module-title { min-width: 0; flex: 1; }
.module-title strong { display: block; font-size: 13px; }
.module-title span { display: block; margin-top: 3px; color: #89908c; font-size: 11px; }
.module-percent { color: #617069; font-size: 11px; font-weight: 700; }
.chevron { color: #87918c; transition: transform .2s ease; }
.module.open .chevron { transform: rotate(180deg); }
.lesson-list { display: none; padding: 0 7px 12px 52px; }
.module.open .lesson-list { display: grid; gap: 6px; }
.lesson-row { width: 100%; padding: 10px; border: 0; border-radius: 9px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; }
.lesson-row:hover:not(:disabled) { background: #f3f5f1; }
.lesson-row:disabled { cursor: default; opacity: .68; }
.status-dot { flex: 0 0 auto; width: 22px; height: 22px; border: 1px solid #ccd2ce; border-radius: 50%; display: grid; place-items: center; color: #88928d; background: #fff; font-size: 10px; }
.status-dot.complete { color: #fff; background: #2f6956; border-color: #2f6956; }
.status-dot.ready { color: #2f6956; border-color: #87a99c; }
.lesson-name { min-width: 0; flex: 1; }
.lesson-name strong { display: block; color: #34433d; font-size: 12px; }
.lesson-name span { display: block; margin-top: 2px; color: #929995; font-size: 10px; }
.tag { padding: 4px 7px; border-radius: 99px; color: #6c746f; background: #efefe9; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tag.ready { color: #245543; background: #e1eee8; }
.tag.test { color: #6b4b10; background: #f7e9c9; }
.quick-links { padding: 8px 18px 20px; display: grid; gap: 9px; }
.quick-link { padding: 12px; border: 1px solid #e5e5de; border-radius: 11px; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quick-link:hover { border-color: #a7bdb4; background: #fafbf8; }
.quick-link strong { display: block; font-size: 12px; }
.quick-link span { display: block; margin-top: 3px; color: #89908c; font-size: 10px; }
.activity { padding: 2px 19px 20px; display: grid; gap: 13px; }
.activity-item { display: flex; gap: 10px; }
.activity-icon { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: #2f6956; background: #e8f0ec; font-size: 12px; }
.activity-item strong { display: block; font-size: 11px; }
.activity-item span { display: block; margin-top: 3px; color: #8a918d; font-size: 10px; line-height: 1.4; }
.empty { padding: 34px 20px; color: #8a918d; text-align: center; font-size: 12px; }
.course-tools { display: flex; gap: 9px; flex-wrap: wrap; }
.catalog { display: grid; gap: 15px; }
.catalog-module { padding: 20px; border: 1px solid #dedfd8; border-radius: 15px; background: #fff; }
.catalog-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.catalog-head h3 { margin: 0; font-size: 16px; }
.catalog-head p { margin: 6px 0 0; color: #78817c; font-size: 12px; }
.catalog-meta { text-align: right; color: #768079; font-size: 11px; white-space: nowrap; }
.catalog-lessons { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.catalog-lesson { padding: 11px; border: 1px solid #e8e8e1; border-radius: 10px; display: flex; align-items: center; gap: 9px; }
.catalog-lesson strong { display: block; font-size: 11px; }
.catalog-lesson span { display: block; margin-top: 2px; color: #929995; font-size: 9px; }
.lesson-shell { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 20px; align-items: start; }
.breadcrumb { margin-bottom: 16px; color: #7b837e; font-size: 11px; }
.breadcrumb button { border: 0; padding: 0; color: #2f6956; background: transparent; font-weight: 700; }
.video-box { aspect-ratio: 16/9; border-radius: 17px 17px 0 0; background: radial-gradient(circle at 72% 22%, #416e5d, #17352b 52%, #10231d); display: grid; place-items: center; color: #fff; position: relative; overflow: hidden; }
.video-box:after { content: ""; position: absolute; width: 310px; height: 310px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -80px; top: -170px; }
.play-card { position: relative; z-index: 1; text-align: center; }
.play-button { width: 64px; height: 64px; margin: 0 auto 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; display: grid; place-items: center; color: #17352b; background: #ddad55; font-size: 22px; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.play-card strong { display: block; font-size: 14px; }
.play-card span { display: block; margin-top: 5px; color: #c7d5cf; font-size: 11px; }
.lesson-body { padding: 25px; }
.lesson-body h1 { font-size: clamp(26px, 3.5vw, 37px); }
.lesson-meta { margin: 9px 0 22px; color: #78827d; font-size: 12px; }
.reading { padding: 19px; border: 1px solid #e4e4dc; border-radius: 13px; background: #fbfbf7; }
.reading h3 { margin: 0 0 11px; font-size: 15px; }
.reading p { margin: 0; color: #5f6964; line-height: 1.7; font-size: 13px; }
.reading ul { margin: 12px 0 0; padding-left: 19px; color: #5f6964; font-size: 13px; line-height: 1.7; }
.lesson-actions { margin-top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lesson-actions small { color: #858d89; max-width: 390px; line-height: 1.4; }
.lesson-side { display: grid; gap: 15px; }
.side-card { padding: 17px; border: 1px solid #dedfd8; border-radius: 14px; background: #fff; }
.side-card h3 { margin: 0 0 12px; font-size: 13px; }
.side-card p { margin: 0; color: #7a837e; font-size: 11px; line-height: 1.55; }
.lesson-nav { display: grid; gap: 7px; }
.lesson-nav button { padding: 10px; border: 0; border-radius: 9px; background: #f2f3ed; display: flex; gap: 9px; align-items: center; text-align: left; }
.lesson-nav button.active { background: #e6efe9; }
.lesson-nav button:disabled { opacity: .55; }
.lesson-nav strong { display: block; font-size: 10px; }
.lesson-nav span { display: block; margin-top: 2px; color: #8d9490; font-size: 9px; }
.result-table { width: 100%; border-collapse: collapse; }
.result-table th, .result-table td { padding: 13px 18px; border-top: 1px solid #ecece6; text-align: left; font-size: 11px; }
.result-table th { color: #7a827d; background: #fafaf6; font-size: 9px; text-transform: uppercase; letter-spacing: .07em; }
.score { font-weight: 800; }
.score.pass { color: #2d745b; }
.score.fail { color: #aa4f42; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px; align-items: start; }
.admin-block { padding: 21px; border: 1px solid #dedfd8; border-radius: 15px; background: #fff; }
.admin-block h2 { margin: 0; font-size: 17px; }
.admin-block .help { margin: 6px 0 18px; color: #7d8581; font-size: 11px; line-height: 1.5; }
.template { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: #5f6964; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field textarea, .field select { width: 100%; padding: 11px 12px; border: 1px solid #d9dcd6; border-radius: 9px; color: #28342f; background: #fcfcf9; outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #6e9989; box-shadow: 0 0 0 3px rgba(47,105,86,.09); }
.field textarea { min-height: 90px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.template-checks { display: grid; gap: 8px; margin: 15px 0; }
.check-row { padding: 10px; border: 1px solid #e7e7df; border-radius: 9px; display: flex; gap: 10px; align-items: center; color: #59635e; font-size: 11px; }
.check-row input { accent-color: #2f6956; }
.builder-list { display: grid; gap: 8px; }
.builder-item { padding: 11px; border: 1px solid #e5e5de; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.builder-item strong { display: block; font-size: 11px; }
.builder-item span { display: block; margin-top: 3px; color: #8c948f; font-size: 9px; }
.builder-item button { border: 0; color: #9b4e43; background: transparent; font-size: 11px; font-weight: 700; }
.notice { padding: 12px; border-radius: 10px; color: #654d1e; background: #fbf0d9; font-size: 11px; line-height: 1.5; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 20px; background: rgba(10,24,19,.72); display: grid; place-items: center; backdrop-filter: blur(5px); }
.modal { width: min(620px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.modal-head { padding: 22px 23px 17px; border-bottom: 1px solid #e8e8e1; display: flex; justify-content: space-between; gap: 15px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-head p { margin: 5px 0 0; color: #808884; font-size: 11px; }
.close-button { width: 31px; height: 31px; border: 0; border-radius: 9px; color: #58625d; background: #efefe9; }
.modal-body { padding: 21px 23px 24px; }
.question { padding: 15px 0; border-top: 1px solid #ecece6; }
.question:first-child { padding-top: 0; border-top: 0; }
.question h3 { margin: 0 0 11px; font-size: 13px; line-height: 1.45; }
.answers { display: grid; gap: 7px; }
.answer { padding: 10px 11px; border: 1px solid #dfe1da; border-radius: 9px; display: flex; gap: 9px; align-items: start; color: #4d5852; font-size: 11px; cursor: pointer; }
.answer:hover { background: #f8f9f5; }
.answer input { margin-top: 2px; accent-color: #2f6956; }
.quiz-foot { margin-top: 17px; display: flex; justify-content: flex-end; }
.result-hero { padding: 26px; text-align: center; }
.result-ring { width: 102px; height: 102px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #2f6956; font: 800 23px "Manrope", sans-serif; box-shadow: inset 0 0 0 8px rgba(255,255,255,.19); }
.result-hero.fail .result-ring { background: #9c5046; }
.result-hero h2 { margin: 0; font-size: 21px; }
.result-hero p { margin: 7px auto 18px; max-width: 420px; color: #75807a; font-size: 12px; line-height: 1.5; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 200; padding: 12px 15px; border-radius: 10px; color: #fff; background: #16372c; font-size: 11px; font-weight: 700; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s ease; box-shadow: 0 10px 35px rgba(0,0,0,.2); }
.toast.show { opacity: 1; transform: translateY(0); }
.menu-button { display: none; width: 38px; height: 38px; border: 1px solid #d9dbd4; border-radius: 10px; background: #fff; }
.video-box.has-video { background: #10231d; }
.video-box.has-video::after { content: none; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-fallback { padding: 12px 20px; display: flex; flex-wrap: wrap; gap: 7px 12px; background: #f5f6f0; color: #5f6964; font-size: 14px; line-height: 1.5; }
.video-fallback a { color: #285c49; font-weight: 700; }
.video-library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
.video-card { padding: 20px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #dedfd8; border-radius: 12px; background: #fff; }
.video-card-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: #285c49; background: #e6efe9; }
.video-card h3 { margin: 15px 0 8px; font-size: 16px; line-height: 1.5; }
.video-card p { margin: 0 0 18px; color: #5f6964; font-size: 14px; line-height: 1.5; }
.video-card .button { margin-top: auto; font-size: 14px; min-height: 44px; }
.video-modal { width: min(960px, 100%); }
.video-modal .video-box { border-radius: 0; }
.video-modal-footer { padding: 16px 20px; color: #5f6964; font-size: 14px; line-height: 1.5; }
.watched-list { margin-top: 20px; }
.watched-list ul { margin: 0; padding: 20px 40px; color: #5f6964; font-size: 14px; line-height: 1.8; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .video-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 220px 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-two, .lesson-shell, .admin-grid { grid-template-columns: 1fr; }
  .lesson-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .video-library-grid { grid-template-columns: 1fr; padding: 16px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -280px; z-index: 80; width: 260px; transition: left .25s ease; box-shadow: 10px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { left: 0; }
  .menu-button, .mobile-brand { display: block; }
  .topbar { padding: 12px 18px; }
  .mode-pill, .profile-meta { display: none; }
  .content { padding: 30px 18px 50px; }
  .hero-row { align-items: start; flex-direction: column; }
  .hero-row .button { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .catalog-lessons, .lesson-side, .form-row { grid-template-columns: 1fr; }
  .result-table th:nth-child(2), .result-table td:nth-child(2) { display: none; }
}
@media (max-width: 440px) {
  .stats { grid-template-columns: 1fr; }
  .profile-button { display: none; }
  .topbar-actions { gap: 5px; }
  .catalog-head { display: block; }
  .catalog-meta { margin-top: 8px; text-align: left; }
}
.login-shell { min-height: 100vh; padding: 40px 20px; display: grid; place-items: center; background: #173d2f; }
.login-card { width: min(460px, 100%); padding: 36px; background: #fff; border-radius: 20px; box-shadow: 0 24px 70px #061b2360; }
.login-card .brand-mark { margin-bottom: 28px; background: #173d2f; color: #e5bf69; }
.login-card h1 { margin: 8px 0 12px; font-size: 30px; }
.login-card p { font-size: 16px; line-height: 1.6; color: #59635e; }
.login-card .field label, .account-admin .field label { font-size: 14px; text-transform: none; letter-spacing: 0; }
.login-card .field input, .account-admin input, .account-admin select { font-size: 16px; min-height: 44px; }
.login-card .button, .account-admin .button { min-height: 44px; font-size: 14px; }
.login-card .login-help { font-size: 14px; margin-bottom: 0; }
.form-error { color: #a23829 !important; margin: 0; }
.form-error:empty { display: none; }
.account-admin .help { font-size: 14px; }
.account-table { margin-top: 24px; }
.account-table .result-table th { font-size: 12px; }
.account-table .result-table td { font-size: 14px; line-height: 1.6; }
.account-table select { min-height: 40px; max-width: 170px; font-size: 14px; border: 1px solid #d9dcd6; border-radius: 8px; padding: 6px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.role-modules { display: grid; gap: 8px; border: 0; padding: 0; margin: 8px 0; }
.role-modules legend { font-size: 14px; margin-bottom: 10px; }
.role-modules .check-row { font-size: 14px; }
.role-modules input { min-height: 0; width: 18px; height: 18px; }
.invite-box { margin-top: 20px; padding: 18px; border: 1px solid #7eaa93; border-radius: 12px; background: #edf5ee; }
.invite-box p { font-size: 14px; line-height: 1.6; }
.invite-box input { width: 100%; min-width: 0; margin-bottom: 12px; padding: 10px; border: 1px solid #c3d3c6; border-radius: 8px; }
button:disabled { cursor: default; }
@media (max-width:720px) { .account-table .result-table th:nth-child(2), .account-table .result-table td:nth-child(2) { display: table-cell; } .login-card { padding: 26px; } }
.editor-content { max-width: 1700px; }
.editor-toolbar, .editor-status-row, .editor-outline-head, .editor-form-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.editor-status-row { margin-bottom: 12px; font-size: 14px; color: #52645b; }
.editor-error { font-size: 16px; line-height: 1.6; }
.editor-error:empty { display: none; }
.editor-shell { display: grid; grid-template-columns: minmax(270px, 340px) minmax(0,1fr); align-items: start; gap: 22px; }
.editor-outline, .editor-form-panel { background: white; border: 1px solid #dedfd8; border-radius: 14px; min-width: 0; }
.editor-outline { max-height: 78vh; overflow: auto; padding: 16px; }
.editor-outline-head { margin-bottom: 16px; }
.editor-outline-head h2, .editor-form-head h2 { margin: 0; font-size: 18px; }
.editor-form-head h3 { margin: 0; font-size: 17px; }
.editor-form-panel { padding: 24px; }
.editor-form-panel > .editor-form-head { margin-bottom: 20px; }
.outline-section { border-top: 1px solid #e4e8e1; padding: 12px 0; }
.outline-line { display: flex; align-items: center; gap: 6px; }
.outline-select { width: 100%; min-width: 0; padding: 10px; text-align: left; border: 0; border-radius: 8px; background: transparent; color: #293e33; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.outline-select.selected { background: #e4f0e7; box-shadow: inset 3px 0 #2f6956; }
.outline-select small { display: block; color: #667c6d; font-size: 12px; }
.lesson-outline { padding-left: 12px; }
.test-outline { padding-left: 22px; color: #795e27; }
.order-buttons { display: flex; flex: 0 0 auto; }
.order-buttons button, .edit-answer > button { width: 30px; min-height: 38px; border: 0; background: #f0f4ed; color: #305740; border-radius: 5px; }
.order-buttons button:disabled, .question-tools button:disabled { opacity: .35; }
.outline-add { display: flex; gap: 15px; padding-left: 20px; margin-top: 8px; }
.text-button { border: 0; padding: 7px 0; background: transparent; color: #285c49; font-size: 14px; font-weight: 700; text-align: left; }
.text-button.danger { color: #a44232; }
.editor-form-panel .field label { font-size: 14px; letter-spacing: 0; text-transform: none; }
.editor-form-panel .field input, .editor-form-panel .field textarea, .editor-form-panel .field select { font-size: 16px; line-height: 1.5; min-height: 44px; }
.editor-form-panel .field textarea { min-height: 100px; }
.editor-help { margin: 0; color: #637168; font-size: 14px; line-height: 1.6; }
.editor-video-help { display: flex; align-items: start; gap: 15px; }
.editor-video-help .editor-help { flex: 1; }
.editor-check { font-size: 14px; min-height: 44px; }
.editor-check input { width: 18px; height: 18px; flex-shrink: 0; }
.question-editor { margin-top: 12px; display: grid; gap: 16px; }
.edit-question { padding: 18px; border: 1px solid #d8dfd7; border-radius: 10px; display: grid; gap: 12px; min-width: 0; }
.edit-question legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.edit-answer { display: grid; grid-template-columns: 22px minmax(0,1fr) 30px; gap: 9px; align-items: center; }
.edit-answer input:not([type=radio]) { width: 100%; padding: 10px; font-size: 16px; border: 1px solid #d8dfd7; border-radius: 8px; }
.edit-answer input[type=radio] { width: 18px; height: 18px; accent-color: #2f6956; }
.question-tools { display: flex; flex-wrap: wrap; gap: 14px; }
.reading p { white-space: pre-wrap; }
.video-box video { width: 100%; height: 100%; position: absolute; inset: 0; }
@media (max-width: 1050px) { .editor-shell { grid-template-columns: 1fr; } .editor-outline { max-height: 330px; } }
@media (max-width: 720px) { .editor-form-panel { padding: 16px; } .editor-video-help { display: block; } }

.training-group-title { grid-column: 1 / -1; margin: 18px 0 6px; padding: 12px 14px; color: #173d2f; background: #edf3ef; border-left: 3px solid #bd9b52; font-size: 16px; line-height: 1.5; font-weight: 700; }
.editor-outline .training-group-title { font-size: 14px; margin: 12px 0 4px; padding: 8px; }
.nested-lesson { margin-left: 22px; border-left: 2px solid #d6dfd8; }
.catalog-lessons:has(.nested-lesson) { grid-template-columns: 1fr; }
.empty-category { grid-column: 1 / -1; margin: 8px 0; padding: 10px; font-size: 16px; line-height: 1.6; color: #637168; }
.lesson-course-name { font-size: 16px; color: #52645b; }
.unplaced-content { border-top: 1px solid #d8dfd7; margin-top: 16px; padding-top: 16px; }
.unplaced-content summary { cursor: pointer; font-size: 16px; margin-bottom: 12px; }
.unplaced-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 14px; }

.training-subgroup { grid-column: 1 / -1; min-width: 0; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid #e0e6df; }
.training-subgroup .catalog-lessons { margin-top: 8px; }

.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 16px; line-height: 1.5; }
.report-table th { font-size: 14px; font-weight: 700; color: #53645b; background: #f5f7f3; }
.report-table th, .report-table td { padding: 16px 20px; border-bottom: 1px solid #e1e6df; vertical-align: top; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-person-link { border: 0; background: transparent; padding: 0; text-align: left; font-size: 16px; font-weight: 700; color: #285c49; text-decoration: underline; text-underline-offset: 3px; }
.report-secondary { display: block; color: #637168; font-size: 14px; line-height: 1.6; margin-top: 4px; }
.report-progress-bar { display: block; width: min(180px,100%); height: 9px; margin-top: 8px; accent-color: #2f6956; }
.report-person-controls { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.report-person-controls .field { flex: 1; min-width: 220px; max-width: 400px; }
.report-person-controls .field label { font-size: 14px; }
.report-account-line { color: #52645b; font-size: 16px; margin-bottom: 20px; }
.report-explanation { color: #637168; font-size: 14px; line-height: 1.7; margin: 18px 0; }
.report-sections { display: grid; gap: 24px; }
.report-detail-table { min-width: 780px; table-layout: fixed; }
.report-detail-table th:nth-child(1) { width: 27%; }
.report-detail-table th:nth-child(2) { width: 20%; }
.report-detail-table th:nth-child(3) { width: 20%; }
.report-detail-table th:nth-child(4) { width: 33%; }
.report-note { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; }
.report-status { display: inline-block; font-size: 14px; padding: 4px 9px; border-radius: 6px; background: #f1f3ef; color: #5c695f; }
.report-status.is-complete { color: #205640; background: #e4f1e7; }
.report-status.needs-retry { color: #914724; background: #fff1e7; }
.report-attempts { margin-top: 8px; font-size: 14px; }
.report-attempts summary { cursor: pointer; color: #285c49; text-decoration: underline; }
.report-attempts ol { padding-left: 18px; }
.report-attempts li { margin-top: 12px; }
.report-message { padding: 24px; font-size: 16px; line-height: 1.6; }
.report-other { margin: 24px 0; }
.lesson-note-visibility { font-size: 14px; line-height: 1.6; margin-bottom: 12px; color: #637168; }
@media (max-width:720px) { .report-table th, .report-table td { padding: 12px; } .report-person-controls .field { min-width: 100%; } }
