:root {
  color: #2b303a;
  background: #f3f4f8;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bar: #f08b7c;
  --bar-deep: #c56b62;
  --ink: #2b303a;
  --muted: #8b909a;
  --line: #f0e4df;
  --card: #ffffff;
  --peach: #fff1ea;
  --coral: #ff7d5a;
}

* { box-sizing: border-box; }

body { margin: 0; min-height: 100vh; }

button, input, select { font: inherit; }

a { color: #e07a62; text-decoration: none; }

button { cursor: pointer; }

.scene {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: #0b2f6e url("/portal-assets/home/banner-lab.jpg") center 42% / cover no-repeat;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(8, 27, 68, 0.82) 0%, rgba(14, 61, 140, 0.45) 58%, rgba(8, 27, 68, 0.62) 100%);
}

.login-card {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 8%;
  transform: translateY(-50%);
  width: min(400px, calc(100vw - 48px));
  padding: 42px 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(80, 120, 150, 0.08);
  backdrop-filter: blur(10px);
}

.login-brand {
  margin: 0 0 8px;
  text-align: center;
}

.login-brand img {
  width: 168px;
  height: auto;
}

.login-card h1 {
  margin: 0 0 28px;
  text-align: center;
  color: #1c2b45;
  font-size: 22px;
  font-weight: 600;
}

.login-card select,
.login-card input {
  width: 100%;
  height: 42px;
  margin-bottom: 16px;
  padding: 0 14px;
  border: 1px solid #e4e7ee;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #2b303a;
}

.login-card input::placeholder { color: #b0b5bf; }

.forgot-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }

.forgot, .back-login {
  border: 0;
  background: transparent;
  color: #8d93a0;
  font-size: 13px;
}

.login-btn {
  width: 100%;
  height: 42px;
  border: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #1d5fd0, #2f8bff);
  color: #fff;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(29, 95, 208, 0.28);
}

.login-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  background:
    radial-gradient(720px 420px at 16% 42%, rgba(62, 156, 255, 0.34), transparent 62%),
    radial-gradient(560px 380px at 42% 78%, rgba(96, 84, 255, 0.22), transparent 60%),
    linear-gradient(155deg, #061226 0%, #0a2558 46%, #071427 100%);
}

.login-stage::before {
  background-image:
    linear-gradient(rgba(148, 196, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 196, 255, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 86%);
}

.login-visual {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 12vh 8% 12vh 9%;
  color: #f4f8ff;
}

.login-orbit {
  position: absolute;
  left: -120px;
  top: 6%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(150, 205, 255, 0.28);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(70, 150, 255, 0.12);
  pointer-events: none;
}

.login-orbit::before,
.login-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(170, 214, 255, 0.35);
  border-radius: 50%;
}

.login-orbit::after {
  inset: 36%;
  border-style: solid;
  background: radial-gradient(circle, rgba(92, 176, 255, 0.45), rgba(92, 176, 255, 0.02) 68%);
}

.login-copy {
  position: relative;
  max-width: 560px;
}

.login-kicker {
  margin: 0 0 18px;
  color: #8ec4ff;
  letter-spacing: 0.22em;
  font-size: 13px;
}

.login-copy h2 {
  margin: 0 0 16px;
  font-size: 56px;
  line-height: 1.15;
  font-weight: 600;
}

.login-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 36px;
  color: rgba(232, 241, 255, 0.92);
  font-size: 20px;
  letter-spacing: 0.14em;
}

.login-lead::before {
  content: "";
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, #7ec8ff, transparent);
}

.login-courses,
.login-caps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-courses {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 18px 36px;
  width: min(520px, 100%);
}

.login-courses li {
  position: relative;
  padding-left: 14px;
  color: #f4f8ff;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.login-courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ec8ff;
  box-shadow: 0 0 8px rgba(126, 200, 255, 0.9);
}

.login-caps {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  padding-top: 22px;
  width: min(520px, 100%);
  border-top: 1px solid rgba(168, 208, 255, 0.22);
}

.login-caps li {
  position: relative;
  color: #d7e8ff;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.login-caps li::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-top: 10px;
  background: #3d9dff;
}

.site-icp {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 40;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(8, 18, 40, 0.55);
  color: #e8f1ff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.login-stage .login-card {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  justify-self: center;
  width: min(420px, calc(100vw - 48px));
  margin-right: 7%;
  padding: 36px 32px 28px;
  border: 1px solid rgba(150, 206, 255, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 48, 98, 0.78), rgba(6, 18, 44, 0.88));
  box-shadow:
    inset 0 0 0 1px rgba(190, 224, 255, 0.08),
    0 24px 60px rgba(2, 8, 24, 0.45),
    0 0 42px rgba(70, 160, 255, 0.22);
  backdrop-filter: blur(18px);
}

.login-frame {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(#8fd0ff, #8fd0ff) left top / 18px 2px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) left top / 2px 18px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) right top / 18px 2px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) right top / 2px 18px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) left bottom / 18px 2px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) left bottom / 2px 18px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) right bottom / 18px 2px no-repeat,
    linear-gradient(#8fd0ff, #8fd0ff) right bottom / 2px 18px no-repeat;
}

.login-stage .login-brand img {
  width: 150px;
  padding: 10px 14px 6px;
  border-radius: 16px;
  background: #f5f9ff;
  box-shadow: 0 0 28px rgba(126, 200, 255, 0.38);
}

.login-stage .login-card h1 {
  margin-bottom: 26px;
  color: #f4f8ff;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.login-stage .login-card h1::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, #7ec8ff, transparent);
}

.login-stage .login-card select,
.login-stage .login-card input {
  height: 46px;
  border: 1px solid rgba(158, 206, 255, 0.32);
  border-radius: 12px;
  background: rgba(4, 16, 40, 0.55);
  color: #f4f8ff;
}

.login-stage .login-card input::placeholder { color: rgba(198, 220, 248, 0.55); }

.login-stage .login-card input:focus,
.login-stage .login-card select:focus {
  outline: none;
  border-color: #8fd0ff;
  box-shadow: 0 0 0 3px rgba(90, 176, 255, 0.2);
}

.login-stage .login-card input:-webkit-autofill {
  -webkit-text-fill-color: #f4f8ff;
  caret-color: #f4f8ff;
  box-shadow: 0 0 0 1000px rgba(8, 24, 52, 0.96) inset;
}

.login-stage .forgot { color: rgba(176, 214, 255, 0.82); }

.login-stage .error { color: #ffc1b4; }

.login-stage .login-btn {
  height: 46px;
  border-radius: 12px;
  letter-spacing: 0.32em;
  background: linear-gradient(90deg, #1c6dff, #4cc8ff);
  box-shadow: 0 0 24px rgba(64, 164, 255, 0.48);
}

.login-note {
  margin: -16px 0 22px;
  color: #7d8798;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.identities {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 28px;
}

.identities button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #5c6370;
  font-size: 14px;
}

.id-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #e7eefc center / 34px no-repeat;
}

.id-icon.teacher {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><circle cx='32' cy='22' r='10' fill='%231d5fd0'/><path d='M14 52c2-12 10-16 18-16s16 4 18 16' fill='%231d5fd0'/></svg>");
}

.id-icon.student {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><path d='M18 20h28l-4 6H22z' fill='%231d5fd0'/><circle cx='32' cy='28' r='8' fill='%231d5fd0'/><path d='M16 54c2-11 9-15 16-15s14 4 16 15' fill='%231d5fd0'/></svg>");
}

.back-login {
  display: block;
  margin: 0 auto;
  padding: 6px 22px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
  padding: 0 22px;
  background: var(--bar);
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--bar);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav button,
.bar-side button,
.user-btn {
  border: 0;
  background: transparent;
  color: #fff;
}

.nav button {
  padding: 6px 14px;
  border-radius: 999px;
}

.nav button[aria-current="true"] {
  background: var(--bar-deep);
}

.bar-side {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border-radius: 999px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffe8df;
  color: var(--bar-deep);
  font-size: 13px;
}

.menu {
  position: absolute;
  top: 50px;
  right: 16px;
  z-index: 5;
  min-width: 120px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(40, 40, 60, 0.12);
}

.menu button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.menu button:hover { background: #f6f7fb; }

.page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.banner {
  display: flex;
  align-items: center;
  min-height: 116px;
  margin-bottom: 26px;
  padding: 22px 32px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, #5b6ee1, #8aa0ff);
}

.banner.student { background: linear-gradient(90deg, #f0b56a, #f6d39a); color: #fff; }

.banner h1 { margin: 0; font-size: 28px; font-weight: 600; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 8px 0 12px;
  color: #5c6370;
  font-size: 14px;
}

.linkish {
  border: 0;
  background: transparent;
  color: #9aa0aa;
  padding: 0;
}

.panel, .course, .empty, .tool {
  background: var(--card);
  border-radius: 16px;
}

.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 220px;
  padding: 28px;
}

.empty-mark {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 42%, #ffe08a 0 28px, transparent 30px),
    radial-gradient(circle at 50% 78%, #7ec8f8 0 16px, transparent 18px),
    #f4f7fb;
}

.empty h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }

.muted { color: var(--muted); font-size: 14px; }

.error { color: #c4563a; min-height: 1.2em; font-size: 14px; }

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool {
  padding: 16px 16px 18px;
  text-align: center;
}

.tool b { display: block; margin-bottom: 12px; }

.tool a, .pill-btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
}

.tone-0 { background: #67c23a; }
.tone-1 { background: #409eff; }
.tone-2 { background: #9b7bff; }
.tone-3 { background: #f0a050; }

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.head-row h1 { margin: 0; font-size: 22px; }

.search {
  width: 240px;
  padding: 8px 12px;
  border: 1px solid #e6e8ee;
  border-radius: 999px;
  background: #fff;
}

.courses { display: flex; flex-direction: column; gap: 16px; }

.course {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  padding: 18px;
}

.cover {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
}

.course h2 { margin: 0 0 8px; font-size: 20px; }

.grade {
  margin-left: 8px;
  color: #e07a62;
  font-size: 13px;
  font-weight: 500;
}

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

.pills span, .tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--peach);
  color: #e09a72;
  font-size: 13px;
}

.detail, .warn, .back {
  border-radius: 999px;
  padding: 7px 16px;
}

.detail, .back {
  border: 1px solid #f3c1b4;
  background: #fff;
  color: #e08a78;
}

.warn {
  border: 0;
  background: var(--bar);
  color: #fff;
}

.lesson {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #f2f3f7;
}

.lesson b { display: block; margin-bottom: 6px; }

.files a { display: inline-block; margin: 4px 12px 0 0; }

.stack { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.look-switch {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid #e4e7ee;
  border-radius: 999px;
  background: #fff;
}

.look-switch a {
  padding: 6px 14px;
  border-radius: 999px;
  color: #3a4150;
  font-size: 13px;
}

.look-switch a[aria-current="true"] {
  background: #1c2430;
  color: #fff;
}

body[data-look="2"] { background: #f3eee4; color: #211c16; }
body[data-look="2"] .bar { height: 64px; background: #f3eee4; color: #211c16; border-bottom: 1px solid #ddd4c4; }
body[data-look="2"] .mark { background: #211c16; color: #f3eee4; }
body[data-look="2"] .brand,
body[data-look="2"] .nav button,
body[data-look="2"] .bar-side button,
body[data-look="2"] .user-btn { color: #211c16; }
body[data-look="2"] .nav button[aria-current="true"] { border-radius: 0; background: transparent; box-shadow: inset 0 -2px 0 #9a3412; }
body[data-look="2"] .avatar { background: #211c16; color: #f3eee4; }
body[data-look="2"] .page { width: min(920px, calc(100% - 48px)); }
body[data-look="2"] .paper-kicker,
body[data-look="2"] .paper-label { margin: 0 0 8px; color: #8a8175; font-size: 13px; letter-spacing: 0.12em; }
body[data-look="2"] .paper-home h1 { margin: 0 0 28px; font-family: "Songti SC", "Source Han Serif SC", serif; font-size: 36px; font-weight: 600; line-height: 1.35; }
body[data-look="2"] .paper-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 48px; }
body[data-look="2"] .paper-course { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; border-top: 1px solid #ddd4c4; }
body[data-look="2"] .paper-course b { display: block; margin-bottom: 4px; font-size: 18px; }
body[data-look="2"] .paper-course span,
body[data-look="2"] .muted { color: #6f675d; }
body[data-look="2"] .paper-open { border: 0; border-bottom: 1px solid #9a3412; border-radius: 0; background: transparent; color: #9a3412; padding: 0 0 2px; }
body[data-look="2"] .tool { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-radius: 0; background: transparent; text-align: left; border-top: 1px solid #ddd4c4; }
body[data-look="2"] .tool b { margin: 0; }
body[data-look="2"] .tool a { padding: 0; border-radius: 0; background: transparent; color: #9a3412; }

body[data-look="3"] .bar {
  position: fixed;
  inset: 0 auto 0 0;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 220px;
  height: 100vh;
  padding: 22px 16px;
  background: #16324f;
}
body[data-look="3"] .nav { flex-direction: column; align-items: stretch; }
body[data-look="3"] .nav button { text-align: left; border-radius: 10px; }
body[data-look="3"] .nav button[aria-current="true"] { background: #244868; }
body[data-look="3"] .bar-side { flex-direction: column; align-items: stretch; margin: auto 0 0; }
body[data-look="3"] .page { width: min(880px, calc(100% - 280px)); margin: 0 0 0 248px; padding-top: 36px; }
body[data-look="3"] .rail-hello { margin: 0; color: #6b7c90; }
body[data-look="3"] .rail-home > h1 { margin: 6px 0 22px; font-size: 32px; }
body[data-look="3"] .rail-stage { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: center; margin-bottom: 28px; padding: 22px; border-radius: 20px; background: #fff; }
body[data-look="3"] .rail-stage h1 { margin: 0 0 8px; font-size: 28px; }
body[data-look="3"] .rail-stage .cover { min-height: 180px; }
body[data-look="3"] .rail-open { border: 0; border-radius: 10px; padding: 10px 18px; background: #16324f; color: #fff; }
body[data-look="3"] .menu { top: auto; right: auto; bottom: 72px; left: 16px; }

body[data-look="4"] { background: #121614; color: #e7ece4; }
body[data-look="4"] .bar { background: #121614; border-bottom: 1px solid #2a332c; }
body[data-look="4"] .nav button[aria-current="true"] { background: #d6f25c; color: #17200c; }
body[data-look="4"] .avatar { background: #d6f25c; color: #17200c; }
body[data-look="4"] .page { width: min(1040px, calc(100% - 48px)); }
body[data-look="4"] .lab-home { display: grid; grid-template-columns: 1.5fr 0.7fr; gap: 28px; min-height: 62vh; align-items: end; }
body[data-look="4"] .lab-main p { margin: 0 0 10px; color: #9aa89a; }
body[data-look="4"] .lab-main h1 { margin: 0 0 12px; font-size: 56px; line-height: 1.05; letter-spacing: -0.03em; }
body[data-look="4"] .lab-open { margin-top: 22px; border: 0; border-radius: 999px; padding: 12px 22px; background: #d6f25c; color: #17200c; font-weight: 600; }
body[data-look="4"] .lab-side { display: flex; flex-direction: column; gap: 8px; }
body[data-look="4"] .lab-side > button { border: 0; border-bottom: 1px solid #2a332c; background: transparent; color: #e7ece4; text-align: left; padding: 12px 0; }
body[data-look="4"] .lab-tools { margin-top: 18px; }
body[data-look="4"] .lab-tools p,
body[data-look="4"] .muted { color: #9aa89a; }
body[data-look="4"] .tool { background: #1c2420; color: #e7ece4; }
body[data-look="4"] .panel,
body[data-look="4"] .panel b,
body[data-look="4"] .course,
body[data-look="4"] .course h2,
body[data-look="4"] .empty,
body[data-look="4"] .empty h2 { color: #1c2430; }
body[data-look="4"] .panel .muted,
body[data-look="4"] .course .muted,
body[data-look="4"] .empty .muted { color: #6b7280; }

body[data-role="teacher"], body[data-role="student"]{
  background: #f4f7fb;
  color: #1c2b45;
  --bar: #0e3d8c;
  --bar-deep: #1d5fd0;
  --muted: #7d8ba0;
}

body[data-role="teacher"] .bar , body[data-role="student"] .bar { height: 64px; padding: 0 28px; background: #0e3d8c; }

body[data-role="teacher"] .avatar , body[data-role="student"] .avatar { background: #dbe7ff; color: #0e3d8c; }

body[data-role="teacher"] .bell-btn , body[data-role="student"] .bell-btn {
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1.5px solid #fff;
  border-radius: 50%;
}

body[data-role="teacher"] .page , body[data-role="student"] .page { width: min(1120px, calc(100% - 48px)); }

body[data-role="teacher"] .home-banner , body[data-role="student"] .home-banner {
  position: relative;
  display: flex;
  align-items: center;
  height: 228px;
  margin-bottom: 8px;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
}

body[data-role="teacher"] .home-banner img , body[data-role="student"] .home-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 55%;
}

body[data-role="teacher"] .home-banner .shade , body[data-role="student"] .home-banner .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 28, 72, 0.72) 0%, rgba(8, 28, 72, 0.2) 42%, rgba(8, 28, 72, 0) 62%);
}

body[data-role="teacher"] .home-banner .copy , body[data-role="student"] .home-banner .copy { position: relative; padding-left: 48px; }

body[data-role="teacher"] .home-banner h1 , body[data-role="student"] .home-banner h1 { margin: 0; font-size: 34px; font-weight: 600; letter-spacing: 0.04em; }

body[data-role="teacher"] .home-banner p , body[data-role="student"] .home-banner p { margin: 10px 0 0; letter-spacing: 0.14em; font-size: 14px; }

body[data-role="teacher"] .section-title , body[data-role="student"] .section-title { color: #7d8ba0; }

body[data-role="teacher"] .linkish , body[data-role="student"] .linkish { color: #7d8ba0; }

body[data-role="teacher"] .home-card , body[data-role="student"] .home-card { background: #fff; border-radius: 16px; padding: 6px 8px; }

body[data-role="teacher"] .home-note , body[data-role="student"] .home-note { padding: 18px 16px; }

body[data-role="teacher"] .home-note , body[data-role="student"] .home-note { padding: 18px 16px; }

body[data-role="teacher"] .home-row , body[data-role="student"] .home-row {
  display: grid;
  grid-template-columns: 148px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #eef2f7;
}

body[data-role="teacher"] .home-row:last-child , body[data-role="student"] .home-row:last-child { border-bottom: 0; }

body[data-role="teacher"] .home-row img , body[data-role="student"] .home-row img {
  width: 148px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
}

body[data-role="teacher"] .home-row h2 , body[data-role="student"] .home-row h2 { margin: 0; font-size: 18px; font-weight: 600; }

body[data-role="teacher"] .home-row p , body[data-role="student"] .home-row p { margin: 4px 0 0; color: #7d8ba0; font-size: 13px; }

body[data-role="teacher"] .home-open, body[data-role="student"] .home-open,
body[data-role="teacher"] .home-tool button, body[data-role="student"] .home-tool button,
body[data-role="teacher"] .detail, body[data-role="student"] .detail,
body[data-role="teacher"] .back , body[data-role="student"] .back {
  border: 1px solid #c5d7f5;
  border-radius: 999px;
  background: #f4f8ff;
  color: #1d5fd0;
  padding: 7px 16px;
}

body[data-role="teacher"] .home-tools , body[data-role="student"] .home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

body[data-role="teacher"] .home-tool , body[data-role="student"] .home-tool {
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
}

body[data-role="teacher"] .home-tool img , body[data-role="student"] .home-tool img { width: 100%; height: 108px; object-fit: cover; display: block; }

body[data-role="teacher"] .home-tool .meta , body[data-role="student"] .home-tool .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
}

body[data-role="teacher"] .home-tool b , body[data-role="student"] .home-tool b { display: block; font-size: 16px; }

body[data-role="teacher"] .home-tool span , body[data-role="student"] .home-tool span { display: block; margin-top: 3px; color: #7d8ba0; font-size: 12px; }

body[data-role="teacher"] .page a, body[data-role="student"] .page a,
body[data-role="teacher"] .home-tool a , body[data-role="student"] .home-tool a { color: #1d5fd0; }

body[data-role="teacher"] .catalog-title , body[data-role="student"] .catalog-title {
  margin: 0; padding: 16px 18px 0; color: #0e3d8c; font-size: 13px; letter-spacing: 0.04em;
}
body[data-role="teacher"] .post , body[data-role="student"] .post { padding: 16px 18px; border-bottom: 1px solid #eef2f8; }
body[data-role="teacher"] .post h2 , body[data-role="student"] .post h2 { margin: 0; font-size: 16px; }
body[data-role="teacher"] .post p , body[data-role="student"] .post p { margin: 6px 0 0; color: #3d4d66; white-space: pre-wrap; }
body[data-role="teacher"] .ask , body[data-role="student"] .ask { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
body[data-role="teacher"] .ask input , body[data-role="student"] .ask input { flex: 1; min-width: 180px; border: 1px solid #d5e0f0; border-radius: 8px; padding: 8px 10px; }
body[data-role="teacher"] .ask button, body[data-role="student"] .ask button,
body[data-role="teacher"] .review button, body[data-role="student"] .review button,
body[data-role="teacher"] .tool button , body[data-role="student"] .tool button {
  border: 1px solid #c5d7f5; background: #f4f8ff; color: #1d5fd0; border-radius: 999px; padding: 7px 16px;
}
body[data-role="teacher"] .review , body[data-role="student"] .review {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 12px; background: #fff; border-radius: 14px; padding: 14px 16px;
}
body[data-role="teacher"] .ask-card , body[data-role="student"] .ask-card { padding: 16px 18px; margin-top: 14px; }
body[data-role="teacher"] .ask-card h2 , body[data-role="student"] .ask-card h2 { margin: 0; font-size: 16px; }
body[data-role="teacher"] #askResult, body[data-role="student"] #askResult,
body[data-role="teacher"] #workResult , body[data-role="student"] #workResult { white-space: pre-wrap; }

.nav-group { position: relative; }

.nav-group .sub {
  display: none;
  position: absolute;
  top: 46px;
  left: 0;
  z-index: 6;
  min-width: 148px;
  padding: 6px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(14, 40, 80, 0.16);
}

.nav-group.open .sub { display: block; }

.nav-group .sub button {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: #1c2b45;
  text-align: left;
}

.nav-group .sub button:hover,
.nav-group .sub button[aria-current="true"] { background: #f4f8ff; color: #1d5fd0; }

.sub-empty { margin: 0; padding: 8px 12px; color: #7d8ba0; font-size: 13px; }

.tabs { display: flex; gap: 22px; padding: 8px 18px 0; }

.tabs button {
  border: 0;
  background: transparent;
  color: #7d8ba0;
  padding: 8px 0;
}

.tabs button[aria-current="true"] {
  color: #1d5fd0;
  box-shadow: inset 0 -2px 0 #1d5fd0;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-cover {
  display: grid;
  place-items: center;
  height: 120px;
  border-radius: 12px;
  color: #fff;
  font-size: 22px;
  font-weight: 600;
}

.work-card b { font-size: 15px; }

.work-card span { color: #7d8ba0; font-size: 13px; }

.work-card a { font-size: 13px; }

.trial-card, .profile-card { padding: 18px 22px 22px; }

.trial-card h2, .profile-card h2 { margin: 0 0 8px; font-size: 18px; }

.profile-card p {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #eef2f8;
}

.profile-card span { width: 48px; color: #7d8ba0; }

@media (max-width: 960px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-visual { min-height: auto; padding: 48px 24px 12px; }
  .login-copy h2 { font-size: 36px; }
  .login-orbit { width: 220px; height: 220px; top: 24px; left: auto; right: 12px; }
  .login-courses { grid-template-columns: repeat(2, max-content); gap: 14px 24px; }
  .login-caps { gap: 18px; flex-wrap: wrap; }
  .login-stage .login-card { margin: 12px 24px 36px; width: auto; }
}

@media (max-width: 800px) {
  .login-card { right: 24px; left: 24px; width: auto; }
  body[data-look="2"] .paper-grid,
  body[data-look="3"] .rail-stage,
  body[data-look="4"] .lab-home { grid-template-columns: 1fr; }
  body[data-look="3"] .bar { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; }
  body[data-look="3"] .nav { flex-direction: row; }
  body[data-look="3"] .page { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
  body[data-look="4"] .lab-main h1 { font-size: 36px; }
  .bar { height: auto; flex-wrap: wrap; padding: 10px 14px; }
  .course { grid-template-columns: 1fr; }
  body[data-role="teacher"] .home-row, body[data-role="student"] .home-row,
  body[data-role="teacher"] .home-tools , body[data-role="student"] .home-tools,
  .work-grid { grid-template-columns: 1fr 1fr; }
  body[data-role="teacher"] .home-banner , body[data-role="student"] .home-banner { height: 180px; }
  body[data-role="teacher"] .home-banner h1 , body[data-role="student"] .home-banner h1 { font-size: 26px; }
  body[data-role="teacher"] .home-banner .copy , body[data-role="student"] .home-banner .copy { padding-left: 20px; }
  .search { width: 100%; }
}
