/*
 * DeutschUM Stitch interface layer
 * Source direction: ARAYUZLER / Continental Academic
 * Loaded last so the supplied interface language stays authoritative.
 */

:root {
  --du-ink: #101828;
  --du-ink-2: #344054;
  --du-muted: #667085;
  --du-red: #c8120d;
  --du-red-hover: #a90f0a;
  --du-red-soft: #fdecea;
  --du-warm: #f7f6f2;
  --du-white: #fff;
  --du-line: #e4e7ec;
  --du-blue-soft: #eef3ff;
  --du-gold: #eec061;
  --du-green: #168a52;
  --du-radius: 18px;
  --du-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
  --du-max: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--du-ink);
  background: var(--du-warm);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
.brand,
.page-head h1,
.stat-card b {
  font-family: Manrope, Inter, system-ui, sans-serif;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(200, 18, 13, 0.24) !important;
  outline-offset: 3px;
}

.wrap {
  width: min(calc(100% - 48px), var(--du-max));
  max-width: var(--du-max);
  margin-inline: auto;
}

.btn,
.btn-red,
.btn-white,
.btn-ghost,
.soft,
button {
  min-height: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-red,
.panel-body .btn-red {
  color: #fff !important;
  background: var(--du-red) !important;
  border-color: var(--du-red) !important;
  box-shadow: 0 8px 20px rgba(200, 18, 13, 0.16);
}

.btn-red:hover,
.panel-body .btn-red:hover {
  background: var(--du-red-hover) !important;
  border-color: var(--du-red-hover) !important;
}

.btn-white {
  color: var(--du-ink) !important;
  background: #fff !important;
  border: 1px solid var(--du-line) !important;
  box-shadow: 0 4px 14px rgba(16, 24, 40, 0.04);
}

/* Shared public header */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 80;
  height: 80px;
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid var(--du-line) !important;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.035) !important;
  backdrop-filter: blur(14px);
}

.site-header .nav-wrap {
  height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  color: #000 !important;
  font-size: clamp(26px, 2.5vw, 36px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.055em !important;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.brand > span:last-of-type,
.brand > span:last-of-type > span {
  color: inherit !important;
}

.brand-mark {
  display: none !important;
}

.logo-suffix {
  margin-left: 12px;
  color: var(--du-muted) !important;
  font-family: Inter, sans-serif;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  align-self: stretch;
  gap: 2px;
  margin-left: auto;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: var(--du-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--du-red) !important;
  background: var(--du-red-soft);
}

.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--du-red);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-actions .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: var(--du-ink) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions .btn-red {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 13px;
}

/* Supplied homepage composition */
.stitch-home,
.stitch-home-main {
  background: var(--du-warm) !important;
}

.stitch-home-main {
  padding-top: 0 !important;
}

.stitch-home .site-header,
.stitch-home .site-header .nav-wrap {
  height: 80px !important;
}

.stitch-home .site-nav {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.site-header .nav-actions .btn-red {
  background: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
}

.site-header .nav-actions .btn-red:hover {
  background: #252525 !important;
  border-color: #252525 !important;
}

.stitch-hero {
  padding: 72px 0 64px;
  overflow: hidden;
}

.stitch-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.stitch-hero-copy {
  min-width: 0;
}

.stitch-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 7px 13px;
  color: var(--du-red);
  background: var(--du-red-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.stitch-pill span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: var(--du-red);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(200, 18, 13, 0.08);
}

.stitch-hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--du-ink);
  font-size: clamp(45px, 5.1vw, 68px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.12;
}

.stitch-hero h1 em {
  position: relative;
  z-index: 0;
  color: var(--du-red);
  font-style: normal;
  white-space: nowrap;
}

.stitch-hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 8px;
  background: #f8d2ce;
  transform: rotate(-0.8deg);
}

.stitch-hero-copy > p {
  max-width: 640px;
  margin: 26px 0 0;
  color: var(--du-muted);
  font-size: 17px;
  line-height: 1.7;
}

.stitch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.stitch-actions .btn {
  min-height: 54px;
  padding: 0 24px;
  font-size: 14px;
}

.stitch-hero-visual {
  position: relative;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--du-line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, 0.12);
}

.stitch-hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 72%;
  width: 180px;
  height: 1px;
  background: rgba(200, 18, 13, 0.34);
}

.stitch-hero-visual > img {
  display: block;
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 11px;
}

.stitch-next-card,
.stitch-level-card {
  position: absolute;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--du-line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.14);
}

.stitch-next-card {
  top: 30px;
  right: -26px;
  max-width: 210px;
  padding: 15px 17px;
}

.stitch-next-card span {
  color: var(--du-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stitch-next-card b {
  margin-top: 7px;
  color: var(--du-ink);
  font-size: 13px;
  line-height: 1.35;
}

.stitch-next-card small,
.stitch-level-card span {
  margin-top: 4px;
  color: var(--du-muted);
  font-size: 11px;
}

.stitch-level-card {
  left: -18px;
  bottom: -18px;
  padding: 13px 16px;
}

.stitch-level-card strong {
  color: var(--du-red);
  font-size: 15px;
}

.stitch-trust {
  background: #fff;
  border-block: 1px solid var(--du-line);
}

.stitch-trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: 21px;
}

.stitch-trust span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding-inline: 18px;
  color: var(--du-ink-2);
  border-left: 1px solid var(--du-line);
  font-size: 12px;
  font-weight: 600;
}

.stitch-trust span:first-child {
  border-left: 0;
}

.stitch-benefits {
  padding: 86px 0 96px;
}

.stitch-benefits header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.stitch-benefits h2,
.stitch-final-cta h2 {
  margin: 0;
  color: var(--du-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.stitch-benefits header p,
.stitch-final-cta p {
  margin: 16px 0 0;
  color: var(--du-muted);
  font-size: 16px;
  line-height: 1.7;
}

.stitch-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.stitch-benefit-grid article {
  position: relative;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--du-line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16, 24, 40, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stitch-benefit-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30%;
  right: 30%;
  height: 2px;
  background: transparent;
  transition: 180ms ease;
}

.stitch-benefit-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--du-shadow);
}

.stitch-benefit-grid article:hover::before {
  left: 0;
  right: 0;
  background: var(--du-red);
}

.stitch-benefit-grid article > span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--du-ink);
  background: var(--du-blue-soft);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

.stitch-benefit-grid h3 {
  margin: 24px 0 10px;
  color: var(--du-ink);
  font-size: 17px;
  font-weight: 750;
  line-height: 1.35;
}

.stitch-benefit-grid p {
  margin: 0;
  color: var(--du-muted);
  font-size: 13px;
  line-height: 1.65;
}

.stitch-final-cta {
  padding: 88px 0;
  color: #fff;
  background: #15171c;
}

.stitch-final-cta .wrap {
  max-width: 900px;
  text-align: center;
}

.stitch-final-cta h2 {
  color: #fff;
}

.stitch-final-cta p {
  color: #98a2b3;
}

.stitch-final-cta .wrap > div {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.stitch-final-cta .btn {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 14px;
}

.stitch-final-cta .btn-dark-outline {
  color: #fff !important;
  background: transparent !important;
  border: 1px solid #667085 !important;
  box-shadow: none;
}

/* Shared public footer */
.footer {
  padding: 54px 0 24px !important;
  color: var(--du-ink) !important;
  background: var(--du-warm) !important;
  border-top: 1px solid var(--du-line) !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1.25fr repeat(3, minmax(0, 0.8fr)) !important;
  gap: 48px !important;
}

.footer .brand {
  margin-bottom: 20px;
  font-size: 28px !important;
}

.footer h4 {
  margin: 0 0 18px !important;
  color: var(--du-ink) !important;
  font-size: 16px !important;
  font-weight: 750 !important;
}

.footer p,
.footer a,
.footer-bottom {
  color: var(--du-muted) !important;
  font-size: 13px !important;
  line-height: 1.55;
}

.footer a {
  display: block;
  margin: 0 0 10px !important;
  text-decoration: none;
}

.footer a:hover {
  color: var(--du-red) !important;
}

.footer-bottom {
  margin-top: 34px !important;
  padding-top: 20px !important;
  border-top: 1px solid var(--du-line) !important;
}

/* Public inner pages supplied as bento surfaces */
body:not(.panel-body):not(.home-ref) main {
  background: var(--du-warm);
}

.subhero {
  padding: 76px 0 56px !important;
  background: var(--du-warm) !important;
  border-bottom: 1px solid var(--du-line);
}

.subhero h1 {
  max-width: 850px;
  color: var(--du-ink) !important;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(40px, 5vw, 64px) !important;
  font-weight: 800 !important;
  letter-spacing: -0.05em;
  line-height: 1.1 !important;
}

.subhero p {
  max-width: 720px;
  color: var(--du-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

body:not(.panel-body) .section {
  padding-block: 76px !important;
}

body:not(.panel-body) .card,
body:not(.panel-body) .teacher-card,
body:not(.panel-body) .exam-card,
body:not(.panel-body) .price-card,
body:not(.panel-body) .cafe-card,
body:not(.panel-body) .class-card {
  background: #fff !important;
  border: 1px solid var(--du-line) !important;
  border-radius: var(--du-radius) !important;
  box-shadow: var(--du-shadow) !important;
}

/* Panel shell */
.panel-body {
  min-width: 0;
  color: var(--du-ink);
  background: #f7f7fb !important;
}

.panel-app {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  grid-template-rows: 80px minmax(calc(100vh - 80px), auto) !important;
  min-height: 100vh;
  background: #f7f7fb;
}

.panel-top {
  position: sticky !important;
  top: 0;
  z-index: 90;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  display: flex !important;
  align-items: center;
  gap: 24px;
  height: 80px !important;
  padding: 0 28px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid var(--du-line) !important;
  box-shadow: 0 2px 12px rgba(16, 24, 40, 0.035) !important;
  backdrop-filter: blur(14px);
}

.panel-top .brand {
  min-width: 226px;
  font-size: 27px !important;
}

.panel-context {
  margin-left: 2px;
  color: var(--du-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-user {
  display: flex !important;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.panel-user > span {
  color: var(--du-ink-2) !important;
  font-size: 13px;
  font-weight: 700;
}

.panel-user form,
.panel-user button {
  margin: 0;
}

.panel-user button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--du-red) !important;
  background: var(--du-red-soft) !important;
  border: 0 !important;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.panel-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  color: var(--du-ink);
  background: #fff;
  border: 1px solid var(--du-line);
  border-radius: 10px;
  cursor: pointer;
}

.side {
  position: sticky !important;
  top: 80px !important;
  z-index: 40;
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: auto !important;
  height: calc(100vh - 80px) !important;
  padding: 25px 18px 90px !important;
  overflow-y: auto;
  background: #fff !important;
  border-right: 1px solid var(--du-line) !important;
  box-shadow: none !important;
}

.side::-webkit-scrollbar {
  width: 6px;
}

.side::-webkit-scrollbar-thumb {
  background: #d0d5dd;
  border-radius: 99px;
}

.ns {
  margin: 22px 13px 8px !important;
  color: #98a2b3 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
}

.ns:first-child {
  margin-top: 0 !important;
}

.ni {
  display: flex !important;
  width: 100%;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  margin: 3px 0;
  padding: 0 13px !important;
  color: var(--du-muted) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}

.ni .ico {
  display: inline-grid !important;
  width: 24px !important;
  height: 24px !important;
  place-items: center;
  color: inherit;
  font-size: 16px !important;
  filter: grayscale(1);
}

.ni:hover {
  color: var(--du-ink) !important;
  background: #f9fafb !important;
}

.ni.on {
  color: #fff !important;
  background: var(--du-red) !important;
  border-color: var(--du-red) !important;
  box-shadow: 0 8px 18px rgba(200, 18, 13, 0.16);
}

.ni.on .ico {
  filter: grayscale(1) brightness(0) invert(1);
}

.panel-main {
  grid-column: 2 !important;
  grid-row: 2 !important;
  min-width: 0;
  width: auto !important;
  margin: 0 !important;
  padding: clamp(32px, 4vw, 58px) !important;
  background:
    linear-gradient(rgba(200, 18, 13, 0.08), rgba(200, 18, 13, 0.08)) center 0 / 1px 100% no-repeat,
    #f7f7fb !important;
}

.page {
  display: none !important;
  max-width: 1440px;
  margin: 0 auto;
}

.page.on {
  display: block !important;
  animation: stitch-page-in 220ms ease-out both;
}

@keyframes stitch-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.page-head {
  margin: 0 0 30px !important;
  padding-left: 18px;
  border-left: 3px solid var(--du-red);
}

.page-head h1 {
  margin: 0 !important;
  color: #000 !important;
  font-size: clamp(30px, 3vw, 43px) !important;
  font-weight: 750 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.15 !important;
}

.page-head p {
  margin: 7px 0 0 !important;
  color: var(--du-muted) !important;
  font-size: 15px !important;
  line-height: 1.55;
}

.panel-body .card,
.panel-body .stat-card,
.panel-body .new-class-form > article,
.panel-body .study-card {
  color: var(--du-ink);
  background: #fff !important;
  border: 1px solid var(--du-line) !important;
  border-radius: var(--du-radius) !important;
  box-shadow: var(--du-shadow) !important;
}

.panel-body .card {
  margin-bottom: 24px;
  padding: 26px !important;
}

.panel-body .card h2,
.panel-body .card h3 {
  color: var(--du-ink) !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em;
}

.panel-body .card p,
.panel-body .card small {
  color: var(--du-muted);
}

.grid-2,
.grid-3,
.stat-grid {
  gap: 22px !important;
}

.stat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 24px;
}

.stat-card {
  min-width: 0;
  min-height: 132px;
  padding: 24px !important;
}

.stat-card > span {
  display: inline-grid !important;
  width: 42px !important;
  height: 42px !important;
  place-items: center;
  margin-bottom: 14px;
  color: var(--du-red) !important;
  background: var(--du-red-soft) !important;
  border-radius: 10px;
  font-size: 14px !important;
}

.stat-card b {
  color: #000 !important;
  font-size: 27px !important;
  letter-spacing: -0.04em;
}

.stat-card small {
  margin-top: 4px;
  color: var(--du-muted) !important;
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.panel-body input,
.panel-body select,
.panel-body textarea {
  width: 100%;
  color: var(--du-ink) !important;
  background: #fff !important;
  border: 1px solid #d0d5dd !important;
  border-radius: 11px !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.03);
}

.panel-body input,
.panel-body select {
  min-height: 46px;
}

.panel-body textarea {
  min-height: 120px;
}

.panel-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.panel-body th {
  padding: 13px 14px !important;
  color: var(--du-muted) !important;
  background: #f9fafb !important;
  border-bottom: 1px solid var(--du-line) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-body td {
  padding: 14px !important;
  color: var(--du-ink-2) !important;
  border-bottom: 1px solid #f0f1f3 !important;
  font-size: 13px !important;
}

.badge {
  border-radius: 999px !important;
  font-weight: 750 !important;
}

.badge.ok {
  color: var(--du-green) !important;
  background: #ecfdf3 !important;
}

.soft {
  color: var(--du-red) !important;
  background: var(--du-red-soft) !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 750 !important;
}

/* Student top-navigation version from the supplied screen */
.panel-public-nav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 4px;
  margin-left: auto;
}

.panel-public-nav a,
.panel-public-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 0;
  padding: 0 14px;
  color: var(--du-ink);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.panel-public-nav a:hover,
.panel-public-nav button:hover,
.panel-public-nav button.on {
  color: var(--du-red);
  background: var(--du-red-soft);
}

.panel-public-nav button.on::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 2px;
  background: var(--du-red);
}

.panel-student {
  grid-template-columns: 1fr !important;
  grid-template-rows: 80px 58px minmax(calc(100vh - 138px), auto) !important;
}

.panel-student .panel-top {
  grid-column: 1 !important;
}

.panel-student .panel-top .brand {
  min-width: auto;
}

.panel-student .side {
  position: sticky !important;
  top: 80px !important;
  z-index: 70;
  grid-column: 1 !important;
  grid-row: 2 !important;
  display: flex !important;
  width: 100% !important;
  height: 58px !important;
  align-items: center;
  gap: 4px;
  padding: 6px max(24px, calc((100vw - var(--du-max)) / 2)) !important;
  overflow-x: auto;
  overflow-y: hidden;
  background: rgba(255, 255, 255, 0.97) !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--du-line) !important;
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.035) !important;
}

.panel-student .side .ns {
  display: none;
}

.panel-student .side .ni {
  width: auto;
  min-width: max-content;
  min-height: 42px;
  margin: 0;
  padding: 0 13px !important;
}

.panel-student .side .ni .ico {
  display: none !important;
}

.panel-student .side .ni.on {
  color: var(--du-red) !important;
  background: var(--du-red-soft) !important;
  border-color: transparent !important;
  box-shadow: none;
}

.panel-student .panel-main {
  grid-column: 1 !important;
  grid-row: 3 !important;
  background: var(--du-warm) !important;
}

/* Supplied bento dashboards */
.stitch-dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.stitch-dashboard-head > div > span {
  display: block;
  margin-bottom: 8px;
  color: var(--du-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stitch-dashboard-head h1 {
  margin: 0;
  color: #000;
  font-size: clamp(35px, 4vw, 52px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1.1;
}

.stitch-dashboard-head p {
  margin: 9px 0 0;
  color: var(--du-muted);
  font-size: 16px;
}

.stitch-dashboard-head > time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #000;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
  font-weight: 750;
}

.stitch-dashboard-head > time small {
  margin-bottom: 5px;
  color: var(--du-muted);
  font-family: Inter, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.stitch-teacher-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.85fr) minmax(440px, 1.8fr) minmax(220px, 0.9fr);
  gap: 24px;
}

.stitch-teacher-grid .card,
.stitch-student-grid .card {
  margin: 0 !important;
}

.stitch-teacher-grid .card > span,
.stitch-schedule .card-head > span,
.stitch-performance .card-head > span {
  color: var(--du-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.stitch-quick {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stitch-quick > span {
  margin-bottom: 6px;
}

.stitch-quick > a,
.stitch-quick > button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: #000;
  background: #fff;
  border: 1px solid var(--du-line);
  border-radius: 11px;
  font-weight: 750;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.stitch-quick .stitch-primary-action {
  color: #fff;
  background: var(--du-red);
  border-color: var(--du-red);
}

.stitch-schedule {
  border-top: 2px solid var(--du-gold) !important;
}

.stitch-schedule .card-head,
.stitch-performance .card-head,
.stitch-activity .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.stitch-schedule-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  margin-top: 14px;
  padding: 16px 18px;
  background: #fafbff;
  border: 1px solid var(--du-line);
  border-radius: 12px;
}

.stitch-schedule-row.next {
  background: #f1f4ff;
  border-left: 4px solid var(--du-red);
}

.stitch-schedule-row time {
  display: flex;
  flex-direction: column;
  color: #000;
  font-family: Manrope, Inter, sans-serif;
  font-size: 22px;
  font-weight: 750;
  text-align: center;
}

.stitch-schedule-row time small {
  color: var(--du-muted);
  font-family: Inter, sans-serif;
  font-size: 10px;
}

.stitch-schedule-row h3 {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.35;
}

.stitch-schedule-row p {
  margin: 5px 0 0 !important;
  font-size: 12px !important;
}

.stitch-schedule-row > a {
  padding: 8px 11px;
  color: #fff;
  background: var(--du-red);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.stitch-empty {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--du-muted);
  text-align: center;
}

.stitch-empty b {
  color: var(--du-ink);
}

.stitch-empty span {
  margin-top: 6px;
  font-size: 12px;
}

.stitch-kpi {
  display: flex;
  flex-direction: column;
}

.stitch-kpi strong,
.stitch-earning strong {
  margin-top: 26px;
  color: #000;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 750;
  letter-spacing: -0.06em;
}

.stitch-kpi p,
.stitch-earning p {
  margin: 2px 0 16px !important;
  font-size: 12px !important;
}

.stitch-mini-bars {
  display: flex;
  height: 100px;
  align-items: flex-end;
  gap: 9px;
  margin-top: auto;
}

.stitch-mini-bars i {
  width: 20%;
  height: 34%;
  background: #e4e7ec;
  border-radius: 7px 7px 0 0;
}

.stitch-mini-bars i:nth-child(2) { height: 52%; }
.stitch-mini-bars i:nth-child(3) { height: 42%; }
.stitch-mini-bars i:nth-child(4) { height: 70%; }
.stitch-mini-bars i:nth-child(5) { height: 94%; background: var(--du-red); }

.stitch-earning {
  grid-column: 1 / 2;
  border-top: 2px solid var(--du-gold) !important;
}

.stitch-earning strong {
  font-size: clamp(31px, 3vw, 44px);
}

.stitch-earning strong small {
  color: var(--du-muted);
  font-size: 12px;
  letter-spacing: 0;
}

.stitch-progress {
  height: 8px;
  overflow: hidden;
  background: #e5eaf8;
  border-radius: 999px;
}

.stitch-progress i {
  display: block;
  height: 100%;
  background: #000;
  border-radius: inherit;
}

.stitch-earning .stitch-progress i {
  background: var(--du-red);
}

.stitch-performance {
  grid-column: 2 / 4;
}

.stitch-performance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--du-line);
  border: 1px solid var(--du-line);
  border-radius: 12px;
}

.stitch-performance-grid > div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #fff;
  text-align: center;
}

.stitch-performance-grid strong {
  color: #000;
  font-family: Manrope, Inter, sans-serif;
  font-size: 28px;
}

.stitch-performance-grid span {
  margin-top: 7px;
  color: var(--du-muted);
  font-size: 11px;
}

/* Student supplied dashboard */
.stitch-student-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.stitch-next-lesson {
  position: relative;
  grid-column: span 8;
  display: flex;
  min-height: 310px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-top: 2px solid var(--du-gold) !important;
}

.stitch-next-lesson::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 320px;
  height: 320px;
  background: var(--du-red-soft);
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.7;
  pointer-events: none;
}

.stitch-next-lesson > div {
  position: relative;
  z-index: 1;
}

.stitch-chip {
  display: inline-flex;
  padding: 7px 13px;
  color: var(--du-red);
  background: var(--du-red-soft);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.stitch-next-lesson h2 {
  margin: 18px 0 8px !important;
  color: #000 !important;
  font-size: clamp(24px, 2.5vw, 34px) !important;
}

.stitch-next-lesson p {
  margin: 0 0 18px !important;
  font-size: 15px !important;
}

.stitch-next-lesson > div > small {
  display: block;
  max-width: 620px;
  color: var(--du-ink-2) !important;
  font-size: 14px !important;
}

.stitch-lesson-actions {
  display: flex;
  gap: 14px;
  margin-top: 30px;
}

.stitch-lesson-actions .btn {
  min-height: 50px;
  padding-inline: 22px;
}

.stitch-student-stats {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
}

.stitch-student-stats > span {
  margin-bottom: 28px;
  color: var(--du-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.stitch-student-stats label {
  margin: 0 0 5px;
  color: var(--du-muted);
  font-size: 12px;
}

.stitch-student-stats strong {
  margin-bottom: 10px;
  color: #000;
  font-family: Manrope, Inter, sans-serif;
  font-size: 38px;
  letter-spacing: -0.05em;
}

.stitch-student-stats strong small {
  color: var(--du-muted);
  font-size: 13px;
  letter-spacing: 0;
}

.stitch-student-stats .stitch-progress {
  margin-bottom: 28px;
}

.stitch-student-stats > button {
  margin-top: auto;
  color: var(--du-red);
  background: transparent;
  border: 0;
  font-weight: 750;
  cursor: pointer;
}

.stitch-learning-path,
.stitch-activity {
  grid-column: span 6;
  min-height: 390px;
}

.stitch-learning-path h2,
.stitch-activity h2 {
  margin: 0 !important;
  font-size: 24px !important;
}

.stitch-path {
  position: relative;
  margin: 28px 0 0 14px;
  padding-left: 32px;
}

.stitch-path::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 7px;
  width: 2px;
  background: var(--du-line);
}

.stitch-path > div {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 88px;
  padding-bottom: 20px;
  opacity: 0.48;
}

.stitch-path > div.done,
.stitch-path > div.active {
  opacity: 1;
}

.stitch-path > div.done::before,
.stitch-path > div.active::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: -4px;
  left: -25px;
  width: 2px;
  background: var(--du-red);
}

.stitch-path i {
  position: absolute;
  z-index: 2;
  top: 0;
  left: -32px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: #fff;
  background: #fff;
  border: 3px solid #98a2b3;
  border-radius: 50%;
  font-size: 9px;
  font-style: normal;
}

.stitch-path .done i {
  background: var(--du-red);
  border-color: var(--du-red);
}

.stitch-path .active i {
  background: #fff;
  border-color: var(--du-red);
}

.stitch-path b {
  color: #000;
  font-size: 14px;
}

.stitch-path span {
  margin-top: 4px;
  color: var(--du-muted);
  font-size: 12px;
}

.stitch-path em {
  margin-top: 12px;
  padding: 11px 13px;
  color: var(--du-red);
  background: var(--du-red-soft);
  border: 1px solid rgba(200, 18, 13, 0.18);
  border-radius: 9px;
  font-size: 12px;
  font-style: normal;
}

.stitch-activity ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.stitch-activity li {
  display: flex;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid var(--du-line);
}

.stitch-activity li:last-child {
  border-bottom: 0;
}

.stitch-activity li > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--du-red);
  background: var(--du-red-soft);
  border-radius: 50%;
  font-weight: 800;
}

.stitch-activity li b {
  color: #000;
  font-size: 14px;
}

.stitch-activity li p {
  margin: 5px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.stitch-activity li button {
  min-height: 32px;
  margin-top: 5px;
  padding: 0;
  color: var(--du-red);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

/* Auth screens use the same Continental Academic system */
.auth-body {
  background: var(--du-warm) !important;
}

.auth-page {
  min-height: calc(100vh - 80px);
}

.auth-brand {
  color: #fff !important;
  background: #15171c !important;
}

.auth-brand .brand {
  color: #fff !important;
}

.form-shell {
  background: #fff !important;
  border: 1px solid var(--du-line) !important;
  border-radius: var(--du-radius) !important;
  box-shadow: var(--du-shadow) !important;
}

/* Responsive */
@media (max-width: 1180px) {
  .site-header .nav-wrap {
    gap: 14px;
  }

  .site-nav a {
    padding-inline: 8px;
    font-size: 12px !important;
  }

  .nav-actions .btn-red {
    padding-inline: 14px;
  }

  .stitch-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 42px;
  }

  .stitch-hero h1 {
    font-size: clamp(42px, 5vw, 58px);
  }

  .stitch-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-app {
    grid-template-columns: 246px minmax(0, 1fr) !important;
  }

  .panel-top .brand {
    min-width: 192px;
  }

  .panel-main {
    padding: 36px !important;
  }

  .stitch-teacher-grid {
    grid-template-columns: minmax(190px, 0.75fr) minmax(380px, 1.6fr);
  }

  .stitch-kpi {
    grid-column: 1 / 2;
  }

  .stitch-earning {
    grid-column: 2 / 3;
  }

  .stitch-performance {
    grid-column: 1 / 3;
  }
}

@media (max-width: 960px) {
  .wrap {
    width: min(calc(100% - 40px), var(--du-max));
  }

  .site-header,
  .site-header .nav-wrap {
    height: 72px;
  }

  .stitch-home .site-header,
  .stitch-home .site-header .nav-wrap {
    height: 72px !important;
  }

  .site-nav,
  .nav-actions .btn-ghost {
    display: none;
  }

  .menu-btn {
    display: flex !important;
    order: 3;
  }

  .site-nav.open {
    position: absolute;
    top: 72px;
    right: 20px;
    left: 20px;
    display: grid !important;
    height: auto;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--du-line);
    border-radius: 14px;
    box-shadow: var(--du-shadow);
  }

  .site-nav.open a {
    min-height: 48px;
    padding-inline: 14px;
    border-radius: 8px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .stitch-hero {
    padding-top: 62px;
  }

  .stitch-hero-grid {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .stitch-hero-copy {
    max-width: 720px;
  }

  .stitch-hero-visual {
    width: min(100%, 720px);
  }

  .stitch-trust .wrap {
    grid-template-columns: repeat(2, 1fr);
  }

  .stitch-trust span:nth-child(3) {
    border-left: 0;
  }

  .stitch-trust span:nth-child(n+3) {
    border-top: 1px solid var(--du-line);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .panel-app,
  .panel-student {
    display: block !important;
    min-height: 100vh;
  }

  .panel-top {
    position: sticky !important;
    display: flex !important;
    height: 72px !important;
    padding: 0 20px !important;
  }

  .panel-top .brand {
    min-width: 0;
    font-size: 24px !important;
  }

  .panel-context,
  .panel-public-nav,
  .panel-user {
    display: none !important;
  }

  .panel-menu-toggle {
    display: grid;
    place-items: center;
  }

  .side,
  .panel-student .side {
    position: fixed !important;
    top: 72px !important;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: block !important;
    width: min(86vw, 330px) !important;
    height: calc(100vh - 72px) !important;
    padding: 22px 16px 80px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border-right: 1px solid var(--du-line) !important;
    transform: translateX(-105%);
    transition: transform 200ms ease;
    box-shadow: 18px 0 44px rgba(16, 24, 40, 0.18) !important;
  }

  .side.open,
  .panel-student .side.open {
    transform: translateX(0);
  }

  .panel-student .side .ni {
    display: flex !important;
    width: 100%;
  }

  .panel-student .side .ni .ico {
    display: inline-grid !important;
  }

  .panel-main,
  .panel-student .panel-main {
    min-height: calc(100vh - 72px);
    padding: 32px 24px !important;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .stitch-teacher-grid {
    grid-template-columns: 1fr 1.6fr;
  }

  .stitch-performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .wrap {
    width: min(calc(100% - 32px), var(--du-max));
  }

  .site-header .nav-wrap {
    gap: 10px;
  }

  .brand {
    font-size: 25px !important;
  }

  .nav-actions .btn-red {
    min-height: 42px;
    padding-inline: 12px;
    font-size: 11px;
  }

  .stitch-hero {
    padding: 48px 0 52px;
  }

  .stitch-pill {
    margin-bottom: 20px;
    font-size: 11px;
  }

  .stitch-hero h1 {
    font-size: clamp(37px, 11.4vw, 52px);
    line-height: 1.08;
  }

  .stitch-hero h1 em {
    white-space: normal;
  }

  .stitch-hero-copy > p {
    margin-top: 20px;
    font-size: 15px;
  }

  .stitch-actions,
  .stitch-final-cta .wrap > div,
  .stitch-lesson-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .stitch-actions .btn,
  .stitch-final-cta .btn,
  .stitch-lesson-actions .btn {
    width: 100%;
  }

  .stitch-hero-visual {
    padding: 6px;
  }

  .stitch-next-card {
    top: 15px;
    right: 14px;
    max-width: 170px;
    padding: 11px 12px;
  }

  .stitch-level-card {
    left: 12px;
    bottom: 12px;
  }

  .stitch-trust .wrap {
    width: 100%;
  }

  .stitch-trust span {
    min-height: 64px;
    padding-inline: 8px;
    font-size: 10px;
    text-align: center;
  }

  .stitch-benefits {
    padding: 62px 0;
  }

  .stitch-benefits header {
    margin-bottom: 34px;
  }

  .stitch-benefits header p {
    font-size: 14px;
  }

  .stitch-benefit-grid {
    grid-template-columns: 1fr;
  }

  .stitch-benefit-grid article {
    min-height: 0;
  }

  .stitch-final-cta {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  .panel-main,
  .panel-student .panel-main {
    padding: 26px 16px !important;
  }

  .page-head {
    padding-left: 13px;
  }

  .page-head h1 {
    font-size: 30px !important;
  }

  .grid-2,
  .grid-3,
  .stat-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    min-height: 105px;
  }

  .panel-body .card {
    padding: 20px !important;
  }

  .panel-body .table-wrap {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .stitch-dashboard-head {
    align-items: flex-start;
    margin-bottom: 26px;
  }

  .stitch-dashboard-head h1 {
    font-size: 36px;
  }

  .stitch-dashboard-head p {
    font-size: 14px;
  }

  .stitch-dashboard-head > time {
    display: none;
  }

  .stitch-teacher-grid,
  .stitch-student-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .stitch-teacher-grid > *,
  .stitch-student-grid > *,
  .stitch-kpi,
  .stitch-earning,
  .stitch-performance {
    grid-column: 1 !important;
  }

  .stitch-schedule-row {
    grid-template-columns: 60px minmax(0, 1fr);
    padding: 14px;
  }

  .stitch-schedule-row > a {
    grid-column: 1 / -1;
    min-height: 40px;
    display: grid;
    place-items: center;
  }

  .stitch-performance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stitch-performance-grid > div {
    min-height: 100px;
    padding: 12px;
  }

  .stitch-next-lesson {
    min-height: 290px;
  }

  .stitch-learning-path,
  .stitch-activity {
    min-height: 0;
  }

  .two,
  .toolbar,
  .mode-row {
    grid-template-columns: 1fr !important;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
