:root {
  --module-blue: #245f91;
  --module-ink: #172033;
  --module-muted: #65748a;
  --module-line: #d5e0ea;
}

.module-career-page { padding-bottom: 42px; }
.module-hero h1 { max-width: 780px; }

.module-source-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid #bfd7e9;
  border-radius: 15px;
  background: #eef6fb;
  color: #29465f;
}

.module-source-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--module-blue);
  color: #fff;
  font-weight: 900;
}

.module-source-note strong,
.module-source-note span { display: block; }
.module-source-note div > span { margin-top: 3px; font-size: 12px; font-weight: 650; line-height: 1.45; }
.module-path-map { margin-top: 20px; }
.module-path-map > div > h2 { margin: 0; color: var(--module-ink); font-size: 23px; }
.module-path-map > div > p:not(.student-eyebrow) { max-width: 900px; margin: 6px 0 0; color: var(--module-muted); font-size: 13px; font-weight: 650; line-height: 1.5; }
.module-path-map ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.module-path-map li { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; align-items: center; padding: 13px; border: 1px solid var(--module-line); border-radius: 13px; background: #f8fafc; }
.module-path-map li > span { display: grid; grid-row: 1 / 3; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: #e7f0f8; color: var(--module-blue); font-weight: 950; }
.module-path-map li strong { font-size: 12px; }
.module-path-map li small { color: var(--module-muted); font-size: 10px; font-weight: 650; line-height: 1.35; }
.module-catalog { margin-top: 20px; }

.module-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.module-catalog-head h2 { margin: 0; color: var(--module-ink); font-size: 28px; }
.module-catalog-head p:not(.student-eyebrow) { margin: 5px 0 0; color: var(--module-muted); font-size: 13px; font-weight: 650; }

.module-legend { display: flex; gap: 12px; flex-wrap: wrap; color: #526176; font-size: 11px; font-weight: 800; }
.module-legend span { display: inline-flex; align-items: center; gap: 6px; }
.module-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--module-blue); }
.module-legend i.is-uek { background: #7541c7; }
.module-legend i.is-internal { background: #b66900; }

.module-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
}

.module-search-label { display: grid; gap: 6px; color: #334155; font-size: 12px; font-weight: 850; }
.module-search {
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid #c9d6e2;
  border-radius: 12px;
  background: #fff;
  color: var(--module-ink);
  font: inherit;
}
.module-search:focus { border-color: var(--module-blue); outline: 3px solid rgba(36, 95, 145, .13); }

.module-filter { display: flex; gap: 7px; flex-wrap: wrap; }
.module-filter button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #ccd8e4;
  border-radius: 999px;
  background: #fff;
  color: #34455a;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}
.module-filter button:hover { border-color: #95aac0; }
.module-filter button.is-active { border-color: var(--module-ink); background: var(--module-ink); color: #fff; }

.module-count {
  margin: 14px 0;
  padding: 9px 12px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #526176;
  font-size: 12px;
  font-weight: 800;
}

.module-grid-r9 { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 13px; }
.module-card-r9 {
  display: flex;
  min-height: 255px;
  flex-direction: column;
  padding: 17px;
  border: 1px solid var(--module-line);
  border-top: 4px solid var(--module-blue);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}
.module-card-r9.is-uek { border-top-color: #7541c7; }
.module-card-r9.is-internal { border-top-color: #b66900; }
.module-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.module-code-r9,
.module-kind-r9,
.module-topic {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef3f7;
  color: #42566d;
  font-size: 10px;
  font-weight: 900;
}
.module-code-r9 { background: #e7f0f8; color: var(--module-blue); font-size: 11px; }
.module-kind-r9.is-uek { background: #f1ebfe; color: #6c39bd; }
.module-kind-r9.is-internal { background: #fff2dc; color: #965b00; }
.module-card-r9 h3 { margin: 14px 0 8px; color: var(--module-ink); font-size: 18px; line-height: 1.22; }
.module-card-r9 > p { margin: 0; color: var(--module-muted); font-size: 12px; font-weight: 650; line-height: 1.5; }
.module-card-topics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.module-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; }
.module-card-foot > span { color: #6b7789; font-size: 10px; font-weight: 800; }
.module-card-foot button {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #b9cad9;
  border-radius: 9px;
  background: #fff;
  color: #183f62;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
}
.module-card-foot button:hover { border-color: #183f62; background: #f3f7fa; }

.module-empty { grid-column: 1 / -1; padding: 34px; border: 1px dashed #cbd8e4; border-radius: 15px; color: var(--module-muted); text-align: center; }
.module-empty strong, .module-empty span { display: block; }
.module-empty span { margin-top: 5px; font-size: 12px; }

.module-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--module-ink);
  box-shadow: 0 30px 100px rgba(15, 23, 42, .3);
}
.module-dialog::backdrop { background: rgba(15, 23, 42, .58); backdrop-filter: blur(3px); }
.module-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px; border-bottom: 1px solid var(--module-line); }
.module-dialog-head h2 { margin: 6px 0 4px; font-size: 27px; line-height: 1.15; }
.module-dialog-code { color: var(--module-blue); font-size: 11px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.module-dialog-kind { color: var(--module-muted); font-size: 11px; font-weight: 800; }
.module-dialog-close { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--module-line); border-radius: 10px; background: #fff; cursor: pointer; color: #334155; font-size: 22px; }
.module-dialog-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 20px 22px; overflow: auto; }
.module-dialog-body section { padding: 15px; border: 1px solid var(--module-line); border-radius: 13px; background: #f8fafc; }
.module-dialog-body h3 { margin: 0 0 9px; font-size: 13px; }
.module-dialog-body p, .module-dialog-body li { color: #536277; font-size: 12px; font-weight: 650; line-height: 1.5; }
.module-dialog-body p { margin: 0; }
.module-dialog-body ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; }
.module-topic-list { display: flex; gap: 7px; flex-wrap: wrap; }
.module-result { grid-column: 1 / -1; border-color: #bcd7c9 !important; background: #eff9f3 !important; }
.module-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 22px 20px; border-top: 1px solid var(--module-line); }
.module-dialog-foot > span { color: var(--module-muted); font-size: 11px; font-weight: 800; }
.module-dialog-foot a { padding: 10px 13px; border-radius: 10px; background: var(--module-ink); color: #fff; text-decoration: none; font-size: 11px; font-weight: 900; }

@media (max-width: 820px) {
  .module-source-note,
  .module-toolbar { grid-template-columns: 1fr; }
  .module-catalog-head { align-items: flex-start; flex-direction: column; }
  .module-source-icon { display: none; }
  .module-path-map ol { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .module-path-map ol { grid-template-columns: 1fr; }
  .module-dialog-body { grid-template-columns: 1fr; }
  .module-result { grid-column: auto; }
  .module-dialog-foot { align-items: stretch; flex-direction: column; }
  .module-dialog-foot a { text-align: center; }
}
