:root {
  --bg: #f1f6f8;
  --ink: #1f2f35;
  --muted: #5e727a;
  --line: #c5d5dc;
  --panel: #f9fcfd;
  --brand: #0f7f91;
  --brand-2: #1d5f8f;
  --danger: #9f1239;
}
body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% -8%, #b6eef3 0, transparent 32%),
    radial-gradient(circle at 10% -6%, #d2e4fb 0, transparent 30%),
    var(--bg);
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px; }
.hero {
  background: linear-gradient(120deg, #ecf9fb 0%, #eff6ff 45%, #f7f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.heroAuthControls {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.heroAuthBtn {
  width: auto;
}
.heroLogoutBtn {
  width: auto;
}
.authOnly { display: none; }
body.authorized .authOnly { display: block; }
body.authorized .viewSection.authOnly { display: none; }
body.authorized .viewSection.authOnly.active { display: block; }
.authOverlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 33, 39, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 16px;
}
.authOverlay.hidden { display: none; }
.authModal {
  width: min(860px, 100%);
  box-shadow: 0 20px 46px rgba(10, 30, 36, 0.34);
}
.shortcutsOverlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(16, 33, 39, 0.35);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 16px 16px;
}
.shortcutsOverlay.hidden { display: none; }
.shortcutsModal {
  width: min(760px, 100%);
  box-shadow: 0 16px 36px rgba(10, 30, 36, 0.26);
}
.guideOverlay {
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(16, 33, 39, 0.42);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 16px;
}
.guideOverlay.hidden { display: none; }
.guideModal {
  width: min(1040px, 100%);
  max-height: calc(100vh - 84px);
  overflow: auto;
  box-shadow: 0 16px 36px rgba(10, 30, 36, 0.28);
}
.guideGrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}
.guideCheck {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 14px;
}
.guideField {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
}
.guideField input,
.guideField textarea {
  width: 100%;
  margin-top: 4px;
  box-sizing: border-box;
}
.guideLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #1a4f69;
  text-decoration: none;
  font-weight: 600;
}
.guideLink:hover { background: #f4fafc; }

.docsList {
  margin: 8px 0 0;
  padding-left: 18px;
}
.docsList li {
  margin-bottom: 8px;
}
.legalStatusWidget {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  padding: 10px;
  margin-bottom: 10px;
}
.legalStatusWidget table {
  margin-top: 8px;
}
.legalStatusTag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #f4f8fa;
  color: #36505b;
}
.legalStatusTag.ok {
  border-color: #7bc5a3;
  background: #edf9f3;
  color: #1f6b4b;
}
.legalStatusTag.warn {
  border-color: #e4c587;
  background: #fff7e8;
  color: #835d12;
}
.legalStatusTag.error {
  border-color: #e49ab0;
  background: #fff1f5;
  color: #8f1538;
}
.legalStatusControls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.legalStatusSelect {
  min-width: 148px;
  flex: 0 0 auto;
}
.heroBrand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.heroIcon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  border: 1px solid #8ec4d6;
  box-shadow: 0 10px 24px rgba(29, 95, 143, 0.22);
}
.hero h1 { margin: 0; }
.hero p { margin: 6px 0 0; color: var(--muted); }
.heroGlow {
  position: absolute;
  right: -24px;
  top: -24px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 127, 145, 0.25) 0, rgba(15, 127, 145, 0) 70%);
}
.eduShowcase {
  position: relative;
  overflow: hidden;
  background: linear-gradient(128deg, #f2fbfe 0%, #eff8ff 48%, #f8fbff 100%);
}
.eduBubble {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.eduBubbleA {
  right: -42px;
  top: -34px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.26) 0, rgba(56, 189, 248, 0) 72%);
}
.eduBubbleB {
  left: -48px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0, rgba(34, 197, 94, 0) 72%);
}
.eduCards {
  margin-top: 8px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}
.eduCard {
  flex: 0 0 240px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 10px;
}
.eduCard img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.48);
  display: block;
  margin-bottom: 6px;
}
.eduCard h3 {
  margin: 0;
  font-size: 13px;
  color: #123b55;
}
.eduCard p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #4b6674;
  line-height: 1.35;
}
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.navPanel { padding: 8px 10px; }
.navToolsRow { align-items: center; }
.navToolsRow #compactModeState { margin: 0; }
.actionStatus {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}
.actionStatus.hidden { display: none; }
.actionStatus.ok {
  border-color: #7bc5a3;
  background: #edf9f3;
  color: #1f6b4b;
}
.actionStatus.error {
  border-color: #e49ab0;
  background: #fff1f5;
  color: #8f1538;
}
.actionStatus.info {
  border-color: #a8cad8;
  background: #f1f8fb;
  color: #27536b;
}
.inlineStatus {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.inlineStatus.ok {
  border-color: #7bc5a3;
  background: #edf9f3;
  color: #1f6b4b;
}
.inlineStatus.error {
  border-color: #e49ab0;
  background: #fff1f5;
  color: #8f1538;
}
.inlineStatus.info {
  border-color: #a8cad8;
  background: #f1f8fb;
  color: #27536b;
}
.viewNav { display: flex; flex-wrap: wrap; gap: 8px; }
.viewBtn {
  width: auto;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.viewBtn.active { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; align-items: stretch; }
.row > input,
.row > select,
.row > button {
  flex: 1 1 180px;
  min-width: 0;
}
input, select, button { padding: 8px; border-radius: 8px; border: 1px solid var(--line); }
button {
  background: linear-gradient(180deg, #27a5ba 0%, var(--brand) 55%, var(--brand-2) 100%);
  color: #fff;
  border: 1px solid #0b5562;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 2px 0 #0b5562,
    0 6px 14px rgba(15, 127, 145, 0.22);
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.08s ease, box-shadow 0.14s ease, filter 0.14s ease;
}
button:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 3px 0 #0b5562,
    0 8px 16px rgba(15, 127, 145, 0.26);
}
button:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 0 #0b5562,
    0 3px 8px rgba(15, 127, 145, 0.18);
}
button.danger {
  background: linear-gradient(180deg, #c62a58 0%, var(--danger) 62%, #7a0d2f 100%);
  border-color: #630a26;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 0 #630a26,
    0 6px 14px rgba(159, 18, 57, 0.2);
}
button.danger:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 3px 0 #630a26,
    0 8px 16px rgba(159, 18, 57, 0.24);
}
button.danger:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 1px 0 #630a26,
    0 3px 8px rgba(159, 18, 57, 0.16);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #e2ebef; padding: 6px; text-align: left; }
.mobileCollapse { margin-bottom: 10px; }
.mobileCollapse > summary {
  display: none;
  cursor: pointer;
  list-style: none;
}
.mobileCollapse > summary::-webkit-details-marker { display: none; }
.muted { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.mobileSecuritySummary {
  display: none;
  gap: 8px;
  margin: 8px 0 10px;
}
.mobileSecuritySummary div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}
.mobileSecuritySummary span {
  color: var(--muted);
  text-align: right;
}
.hintable { position: relative; }
.hintable:hover::after {
  content: attr(data-hint);
  position: absolute;
  left: 0;
  top: auto;
  bottom: calc(100% + 8px);
  z-index: 20;
  max-width: 260px;
  background: #102127;
  color: #f3fbfd;
  border: 1px solid #35515a;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.3;
  white-space: normal;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(10, 26, 31, 0.28);
}
pre { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; min-height: 120px; }
.kpi { display: grid; grid-template-columns: repeat(3, minmax(100px, 1fr)); gap: 8px; margin-top: 8px; }
.kpi div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; }
.viewSection { display: none; }
.viewSection.active { display: block; }
body.compact .panel { padding: 9px; }
body.compact .row { gap: 6px; margin-bottom: 6px; }
body.compact input,
body.compact select,
body.compact button { padding: 6px 7px; font-size: 13px; }
body.compact table { font-size: 12px; }
body.compact th,
body.compact td { padding: 4px 5px; }
body.compact .muted { font-size: 12px; margin-bottom: 4px; }
body.compact .kpi div { padding: 5px; }
@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .row > input,
  .row > select,
  .row > button { flex: 1 1 100%; }
  .mobileCollapse {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0;
    overflow: hidden;
  }
  .mobileCollapse > summary {
    display: block;
    padding: 8px 10px;
    font-weight: 600;
    color: var(--ink);
    background: linear-gradient(180deg, #f4fbfd 0%, #ecf5f9 100%);
    border-bottom: 1px solid var(--line);
  }
  .mobileCollapse[open] > summary {
    background: linear-gradient(180deg, #eaf8fc 0%, #e4f0f6 100%);
  }
  .mobileCollapse > table { font-size: 13px; }
  .mobileSecuritySummary { display: grid; grid-template-columns: 1fr; }
  .hintable:hover::after { display: none; }
  .heroAuthControls {
    position: static;
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .heroAuthBtn, .heroLogoutBtn { width: 100%; }
  .authOverlay { padding-top: 20px; }
  .shortcutsOverlay { padding-top: 20px; }
  .guideOverlay { padding-top: 20px; }
  .guideGrid { grid-template-columns: 1fr; }
}



.siteFooter {
  margin-top: 10px;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
}


.siteInfoPanel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(132deg, rgba(12, 30, 48, 0.95) 0%, rgba(18, 52, 83, 0.92) 52%, rgba(21, 72, 102, 0.9) 100%);
  border: 1px solid rgba(120, 173, 207, 0.42);
}
.siteInfoGlow {
  position: absolute;
  right: -26px;
  top: -26px;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(143, 219, 240, 0.35) 0%, rgba(143, 219, 240, 0) 72%);
  pointer-events: none;
}
.siteInfoLead {
  color: rgba(219, 234, 254, 0.96);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.rightsBadge {
  margin: 0 0 8px;
  padding: 0;
  max-width: 760px;
}
.rightsBadgeMain {
  font-size: 11px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.9);
  text-align: left;
  line-height: 1.25;
}
.rightsBadgeSlogan {
  margin-top: 2px;
  font-size: 10px;
  color: rgba(191, 219, 254, 0.95);
  text-align: left;
  line-height: 1.3;
}
.footerSections {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.footerPill {
  font-size: 10px;
  color: rgba(226, 232, 240, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(15, 23, 42, 0.18);
}
@media (max-width: 720px) {
  .eduCards { flex-wrap: wrap; }
  .eduCard { flex: 1 1 100%; }
  .rightsBadgeMain { font-size: 10px; }
  .rightsBadgeSlogan { font-size: 9px; }
}
