/* World-class executive redesign layer for the Trade Exchange Business Operations Manual. */
:root {
  --tebom-navy: #020817;
  --tebom-ink: #06122c;
  --tebom-panel: #071a36;
  --tebom-panel-2: #0b2a55;
  --tebom-sky: #38bdf8;
  --tebom-cyan: #67e8f9;
  --tebom-green: #24b99d;
  --tebom-gold: #ffb650;
  --tebom-red: #fb3f6c;
  --tebom-paper: #f5f9ff;
  --tebom-line: rgba(148, 163, 184, .22);
  --tebom-shadow: 0 26px 70px rgba(2, 8, 23, .22);
}

body.tebom-standalone {
  min-height: 100vh;
  color: #0f2138;
  background:
    radial-gradient(circle at 12% 10%, rgba(56, 189, 248, .30), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(255, 182, 80, .20), transparent 26%),
    radial-gradient(circle at 70% 86%, rgba(36, 185, 157, .20), transparent 30%),
    linear-gradient(135deg, #020817 0%, #06122c 50%, #0b4f85 100%);
}

body.tebom-standalone:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.18));
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.18));
}

body.tebom-standalone #root {
  position: relative;
  z-index: 1;
  font-family: Inter, Raleway, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body.tebom-standalone #root > .min-h-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .15), transparent 24%),
    radial-gradient(circle at 90% 0%, rgba(103, 232, 249, .10), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #eaf2fb 100%) !important;
}

body.tebom-standalone #root > .bg-\[\#050d22\],
body.tebom-standalone #root [class*="bg-[#050d22]"],
body.tebom-standalone #root [class*="bg-[#040b1c]"] {
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, .34), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(255, 182, 80, .18), transparent 27%),
    radial-gradient(circle at 76% 82%, rgba(36, 185, 157, .20), transparent 30%),
    linear-gradient(135deg, #020817 0%, #06122c 48%, #0b4f85 100%) !important;
}

body.tebom-standalone h1,
body.tebom-standalone h2,
body.tebom-standalone h3 {
  letter-spacing: 0 !important;
}

body.tebom-standalone .font-serif {
  font-family: Inter, Raleway, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Public front-end / launch page */
body.tebom-standalone section {
  position: relative;
}

body.tebom-standalone section:first-of-type .max-w-7xl {
  min-height: calc(100vh - 28px);
  align-items: center;
}

body.tebom-standalone section:first-of-type h1 {
  max-width: 980px;
  font-weight: 950 !important;
  line-height: .96 !important;
  text-shadow: 0 24px 54px rgba(0, 0, 0, .34);
}

body.tebom-standalone section:first-of-type p {
  font-weight: 650;
}

body.tebom-standalone section:first-of-type button,
body.tebom-standalone button.bg-gradient-to-r,
body.tebom-standalone .bg-gradient-to-r.from-sky-400 {
  border-radius: 8px !important;
  background: linear-gradient(180deg, #8be9ff 0%, #38bdf8 100%) !important;
  box-shadow: 0 22px 46px rgba(14, 165, 233, .34), inset 0 1px 0 rgba(255,255,255,.68) !important;
}

body.tebom-standalone .tebom-card,
body.tebom-standalone [class*="bg-white/[0.04]"],
body.tebom-standalone [class*="bg-white/[0.05]"] {
  border-radius: 10px !important;
  border-color: rgba(125, 211, 252, .20) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.105), rgba(255,255,255,.045)),
    linear-gradient(180deg, rgba(8, 30, 68, .92), rgba(4, 12, 31, .92)) !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.13) !important;
}

body.tebom-standalone .tebom-card:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, .52) !important;
  box-shadow: 0 28px 70px rgba(2, 8, 23, .36), 0 0 0 1px rgba(103, 232, 249, .12) !important;
}

/* Sign-in modal */
body.tebom-standalone .fixed.inset-0.z-\[100\] > .relative {
  border-radius: 12px !important;
  border-color: rgba(125, 211, 252, .24) !important;
  background:
    linear-gradient(180deg, rgba(8, 30, 68, .98), rgba(2, 8, 23, .98)) !important;
  box-shadow: 0 42px 120px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

body.tebom-standalone .fixed.inset-0.z-\[100\] form > div,
body.tebom-standalone .fixed.inset-0.z-\[100\] .flex.items-center.gap-3.rounded-xl {
  border-radius: 8px !important;
  background: rgba(255,255,255,.075) !important;
  border-color: rgba(125, 211, 252, .18) !important;
}

/* Main dashboard shell */
body.tebom-standalone #root > .min-h-screen.lg\:flex {
  background:
    radial-gradient(circle at 18% 12%, rgba(56,189,248,.16), transparent 24%),
    linear-gradient(180deg, #f8fbff 0%, #e7f0fb 100%) !important;
}

body.tebom-standalone aside > div {
  background:
    radial-gradient(circle at 16% 8%, rgba(56,189,248,.20), transparent 28%),
    linear-gradient(180deg, #071a36 0%, #041025 100%) !important;
  border-right: 1px solid rgba(125, 211, 252, .18);
  box-shadow: 18px 0 46px rgba(2, 8, 23, .16);
}

body.tebom-standalone aside > div:before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--tebom-sky), var(--tebom-green), var(--tebom-gold));
}

body.tebom-standalone aside button {
  border-radius: 8px !important;
}

body.tebom-standalone aside nav > div > button {
  min-height: 42px;
  font-weight: 800;
  color: rgba(240, 249, 255, .86) !important;
}

body.tebom-standalone aside nav > div > button:hover,
body.tebom-standalone aside nav div[class*="border-l"] button:hover {
  background: rgba(255, 255, 255, .085) !important;
}

body.tebom-standalone aside nav div[class*="border-l"] {
  border-color: rgba(125, 211, 252, .15) !important;
}

body.tebom-standalone aside nav div[class*="border-l"] button {
  color: rgba(203, 213, 225, .82) !important;
}

body.tebom-standalone aside nav div[class*="border-l"] button[class*="bg-sky"] {
  background: linear-gradient(90deg, rgba(56,189,248,.22), rgba(36,185,157,.12)) !important;
  color: #e0f7ff !important;
  box-shadow: inset 3px 0 0 #38bdf8;
}

body.tebom-standalone header.sticky {
  min-height: 78px;
  border-color: rgba(148, 163, 184, .28) !important;
  background: rgba(248, 251, 255, .92) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

body.tebom-standalone header.sticky input {
  min-height: 48px;
  border-radius: 8px !important;
  background: #ffffff !important;
  border-color: #cddbeb !important;
  box-shadow: inset 0 1px 0 #fff, 0 12px 26px rgba(15, 23, 42, .06);
  font-weight: 650;
}

body.tebom-standalone header.sticky button {
  border-radius: 8px !important;
  font-weight: 850;
}

/* Dashboard home cards and hero */
body.tebom-standalone main .rounded-3xl.bg-gradient-to-br {
  position: relative;
  overflow: hidden;
  border-radius: 12px !important;
  border: 1px solid rgba(125, 211, 252, .24);
  background:
    radial-gradient(circle at 80% 10%, rgba(103,232,249,.17), transparent 28%),
    linear-gradient(135deg, #071a36 0%, #0b2a55 55%, #064a78 100%) !important;
  box-shadow: 0 30px 80px rgba(2, 8, 23, .22), inset 0 1px 0 rgba(255,255,255,.14) !important;
}

body.tebom-standalone main .rounded-3xl.bg-gradient-to-br:after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 68%);
}

body.tebom-standalone main .rounded-3xl.bg-gradient-to-br > * {
  position: relative;
  z-index: 1;
}

body.tebom-standalone main .grid > button.rounded-2xl,
body.tebom-standalone main .grid > button.rounded-xl,
body.tebom-standalone main .space-y-2 > button,
body.tebom-standalone main .grid > article {
  border-radius: 8px !important;
  border-color: #d7e3f0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
  box-shadow: 0 16px 38px rgba(15, 23, 42, .07) !important;
}

body.tebom-standalone main .grid > button.rounded-2xl:hover,
body.tebom-standalone main .grid > button.rounded-xl:hover,
body.tebom-standalone main .space-y-2 > button:hover {
  transform: translateY(-3px) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 26px 54px rgba(14, 42, 84, .16) !important;
}

body.tebom-standalone main .grid > button .h-11,
body.tebom-standalone main .grid > button .h-10 {
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.52), 0 14px 28px rgba(14,165,233,.18);
}

/* Manual reader */
body.tebom-standalone main > div > .rounded-2xl.bg-white {
  border-radius: 10px !important;
  border: 1px solid #d7e3f0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,253,255,.98)) !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .10) !important;
}

body.tebom-standalone article.mx-auto.max-w-3xl {
  max-width: 940px !important;
}

body.tebom-standalone article h1 {
  font-size: clamp(31px, 4vw, 48px) !important;
  line-height: 1.02 !important;
  color: #071a36 !important;
}

body.tebom-standalone article h3 {
  margin-top: 28px !important;
  padding-top: 18px;
  border-top: 1px solid #e2ebf5;
  color: #071a36 !important;
  font-size: 22px !important;
}

body.tebom-standalone article p,
body.tebom-standalone article li,
body.tebom-standalone article td {
  color: #2b3d55 !important;
  font-size: 16px;
}

body.tebom-standalone article strong {
  color: #071a36 !important;
}

body.tebom-standalone article .bg-gradient-to-br.from-sky-50,
body.tebom-standalone article .rounded-xl.border.border-sky-200 {
  border-radius: 8px !important;
  border-color: #b8e6fb !important;
  background:
    linear-gradient(135deg, #eaf8ff 0%, #f8fdff 100%) !important;
  box-shadow: inset 4px 0 0 #38bdf8, 0 16px 34px rgba(14, 165, 233, .08);
}

body.tebom-standalone article table {
  overflow: hidden;
  border-radius: 8px;
}

body.tebom-standalone article thead {
  background: linear-gradient(90deg, #071a36, #0b2a55) !important;
  color: #e0f7ff !important;
}

body.tebom-standalone article th {
  color: #e0f7ff !important;
}

body.tebom-standalone article tbody tr:nth-child(even) {
  background: #f7fbff;
}

body.tebom-standalone article button {
  border-radius: 8px !important;
}

body.tebom-standalone article button.bg-emerald-500 {
  background: linear-gradient(180deg, #34d399, #059669) !important;
}

/* Scrollbars */
body.tebom-standalone * {
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, .55) rgba(2, 8, 23, .08);
}

body.tebom-standalone *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.tebom-standalone *::-webkit-scrollbar-track {
  background: rgba(2, 8, 23, .08);
}

body.tebom-standalone *::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8, #24b99d) border-box;
}

@media (max-width: 1023px) {
  body.tebom-standalone aside > div {
    width: min(88vw, 380px);
  }

  body.tebom-standalone header.sticky {
    min-height: 68px;
  }

  body.tebom-standalone main {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

@media (max-width: 640px) {
  body.tebom-standalone section:first-of-type .max-w-7xl {
    min-height: auto;
  }

  body.tebom-standalone main .rounded-3xl.bg-gradient-to-br,
  body.tebom-standalone main > div > .rounded-2xl.bg-white {
    border-radius: 8px !important;
  }

  body.tebom-standalone article p,
  body.tebom-standalone article li,
  body.tebom-standalone article td {
    font-size: 15px;
  }
}

/* Dashboard refresh and manual card system applied to the manual theme. */

body.tebom-standalone .tebom-manual-menu-label {
  margin: 2px 18px 10px;
  padding: 12px 0 0;
  color: #9df0ff;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-force-refresh {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 191, 36, .55);
  border-radius: 8px;
  background: linear-gradient(180deg, #fde68a 0%, #f59e0b 100%);
  box-shadow: 0 14px 30px rgba(245, 158, 11, .20);
  color: #071a36;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  line-height: 1;
  padding: 0 14px;
  text-transform: uppercase;
  transition: transform .18s ease, box-shadow .18s ease;
}

body.tebom-standalone .tebom-force-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(245, 158, 11, .28);
}

body.tebom-standalone .tebom-logout-strong {
  border-color: rgba(244, 63, 94, .38) !important;
  background: linear-gradient(180deg, #fb7185 0%, #e11d48 100%) !important;
  color: #fff !important;
  font-weight: 900 !important;
}

body.tebom-standalone .pte-rad-side-title {
  margin: 10px 8px 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.tebom-standalone .pte-rad-category-note {
  margin: 0 8px 10px;
  color: rgba(203, 213, 225, .70);
  font-size: 11px;
  font-weight: 800;
}

body.tebom-standalone .pte-rad-category-scroll {
  display: block !important;
  padding: 0 6px 26px !important;
}

body.tebom-standalone .pte-rad-side-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(229, 241, 255, .82);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.18;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

body.tebom-standalone .pte-rad-side-link:hover,
body.tebom-standalone .pte-rad-side-link.is-active {
  color: #fff;
  border-color: rgba(125, 211, 252, .22);
  background: linear-gradient(90deg, rgba(56, 189, 248, .20), rgba(36, 185, 157, .10));
}

body.tebom-standalone .pte-rad-idx {
  width: 32px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 7px;
  color: #9df0ff;
  background: rgba(255,255,255,.08);
  font-size: 10px;
  font-weight: 950;
}

body.tebom-standalone main .grid {
  align-items: stretch;
}

body.tebom-standalone .pte-rad-card,
body.tebom-standalone main .pte-rad-card {
  --pte-rad-accent: #40dfff;
  --pte-rad-deep: #061634;
  --pte-rad-mid: #083b7c;
  --pte-rad-low: #0e7490;
  min-height: 365px;
  display: flex !important;
  flex-direction: column;
  padding: 16px 18px 19px !important;
  position: relative;
  overflow: hidden;
  border-radius: 16px !important;
  color: #fff !important;
  text-align: left !important;
  background-color: #07101d !important;
  background-image:
    radial-gradient(circle at 78% 12%, rgba(34, 211, 238, .3), transparent 36%),
    linear-gradient(145deg, var(--pte-rad-deep), var(--pte-rad-mid) 54%, var(--pte-rad-low)) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  box-shadow: 0 24px 54px rgba(20, 36, 58, .24) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

body.tebom-standalone .pte-rad-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(255,255,255,.28) !important;
  box-shadow: 0 34px 70px rgba(20, 36, 58, .30) !important;
}

body.tebom-standalone .pte-rad-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .12), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(255, 255, 255, .055) 0 1px, transparent 1px 100%);
  background-size: auto, 34px 34px, 34px 34px;
  pointer-events: none;
}

body.tebom-standalone .pte-rad-card:after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 96px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--pte-rad-accent));
  box-shadow: 0 0 26px var(--pte-rad-accent);
}

body.tebom-standalone .pte-rad-card:nth-child(12n+1) { --pte-rad-accent: #40dfff; --pte-rad-deep: #061634; --pte-rad-mid: #084a8c; --pte-rad-low: #0e7490; }
body.tebom-standalone .pte-rad-card:nth-child(12n+2) { --pte-rad-accent: #fb7185; --pte-rad-deep: #260617; --pte-rad-mid: #7f1d4d; --pte-rad-low: #f97316; }
body.tebom-standalone .pte-rad-card:nth-child(12n+3) { --pte-rad-accent: #86efac; --pte-rad-deep: #052e1a; --pte-rad-mid: #047857; --pte-rad-low: #22c55e; }
body.tebom-standalone .pte-rad-card:nth-child(12n+4) { --pte-rad-accent: #fda4af; --pte-rad-deep: #330511; --pte-rad-mid: #9f1239; --pte-rad-low: #f43f5e; }
body.tebom-standalone .pte-rad-card:nth-child(12n+5) { --pte-rad-accent: #67e8f9; --pte-rad-deep: #082f49; --pte-rad-mid: #1d4ed8; --pte-rad-low: #0891b2; }
body.tebom-standalone .pte-rad-card:nth-child(12n+6) { --pte-rad-accent: #fde68a; --pte-rad-deep: #422006; --pte-rad-mid: #b45309; --pte-rad-low: #f59e0b; }
body.tebom-standalone .pte-rad-card:nth-child(12n+7) { --pte-rad-accent: #4ade80; --pte-rad-deep: #052e16; --pte-rad-mid: #166534; --pte-rad-low: #65a30d; }
body.tebom-standalone .pte-rad-card:nth-child(12n+8) { --pte-rad-accent: #38bdf8; --pte-rad-deep: #11114a; --pte-rad-mid: #3730a3; --pte-rad-low: #0284c7; }
body.tebom-standalone .pte-rad-card:nth-child(12n+9) { --pte-rad-accent: #facc15; --pte-rad-deep: #3b0718; --pte-rad-mid: #be123c; --pte-rad-low: #ca8a04; }
body.tebom-standalone .pte-rad-card:nth-child(12n+10) { --pte-rad-accent: #c084fc; --pte-rad-deep: #240046; --pte-rad-mid: #7e22ce; --pte-rad-low: #d946ef; }
body.tebom-standalone .pte-rad-card:nth-child(12n+11) { --pte-rad-accent: #2dd4bf; --pte-rad-deep: #042f2e; --pte-rad-mid: #0f766e; --pte-rad-low: #06b6d4; }
body.tebom-standalone .pte-rad-card:nth-child(12n) { --pte-rad-accent: #fb7185; --pte-rad-deep: #4a044e; --pte-rad-mid: #db2777; --pte-rad-low: #fb923c; }

body.tebom-standalone .pte-rad-card > * {
  position: relative;
  z-index: 1;
}

body.tebom-standalone .pte-rad-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

body.tebom-standalone .pte-rad-badge {
  display: inline-flex;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.tebom-standalone .pte-rad-num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 12px;
  background: rgba(255,255,255,.13);
  font-size: 12px;
  font-weight: 900;
}

body.tebom-standalone .pte-rad-art {
  height: 102px;
  margin: -2px 0 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}

body.tebom-standalone .pte-rad-art svg {
  width: 92%;
  height: 80px;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.28));
}

body.tebom-standalone .pte-rad-card h2 {
  margin: 0 0 9px;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.12;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0,0,0,.36);
}

body.tebom-standalone .pte-rad-card p {
  margin: 0 0 12px;
  color: rgba(255,255,255,.86) !important;
  font-size: 12px;
  line-height: 1.45;
}

body.tebom-standalone .pte-rad-credential {
  display: grid;
  gap: 5px;
  margin: 0 0 11px;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.82);
  font-size: 10px;
  font-weight: 800;
}

body.tebom-standalone .pte-rad-credential span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

body.tebom-standalone .pte-rad-credential b {
  color: #fff;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.tebom-standalone .pte-rad-credential em {
  font-style: normal;
}

body.tebom-standalone .pte-rad-urls {
  margin-top: auto;
  display: grid;
  gap: 7px;
}

body.tebom-standalone .pte-rad-url {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

@media (min-width: 1024px) {
  body.tebom-standalone main .grid.lg\:grid-cols-3,
  body.tebom-standalone main .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) and (min-width: 768px) {
  body.tebom-standalone main .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v1.0.4 — functional module cards, lesson navigation, dashboard stats */
body.tebom-standalone #root header .tebom-dashboard-home,
body.tebom-standalone #root header .tebom-force-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 0;
  border-radius: 9px;
  padding: 0 14px;
  color: #071426;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 9px 22px rgba(15, 23, 42, .12);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

body.tebom-standalone #root header .tebom-dashboard-home {
  background: linear-gradient(135deg, #e0f2fe, #67e8f9);
  border: 1px solid rgba(14, 165, 233, .28);
}

body.tebom-standalone #root header .tebom-force-refresh {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

body.tebom-standalone #root header .tebom-dashboard-home:hover,
body.tebom-standalone #root header .tebom-force-refresh:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .18);
}

body.tebom-standalone #root header .tebom-logout-strong {
  border-color: rgba(244, 63, 94, .2) !important;
  background: linear-gradient(135deg, #f43f5e, #e11d48) !important;
  color: #fff !important;
  font-weight: 900 !important;
  box-shadow: 0 9px 22px rgba(225, 29, 72, .22) !important;
}

body.tebom-standalone .tebom-dashboard-insights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}

body.tebom-standalone .tebom-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 86% 10%, rgba(56, 189, 248, .14), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.92));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
}

body.tebom-standalone .tebom-stat-card:after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(14, 165, 233, .08);
}

body.tebom-standalone .tebom-stat-card span {
  display: block;
  margin-bottom: 7px;
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-stat-card strong {
  display: block;
  color: #0f172a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 31px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -.03em;
}

body.tebom-standalone .tebom-stat-card em {
  display: block;
  margin-top: 9px;
  color: #475569;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.35;
}

body.tebom-standalone .tebom-stat-primary {
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(125, 211, 252, .36), transparent 36%),
    linear-gradient(145deg, #061634, #075985 58%, #0e7490);
  border-color: rgba(255,255,255,.20);
}

body.tebom-standalone .tebom-stat-primary span,
body.tebom-standalone .tebom-stat-primary strong,
body.tebom-standalone .tebom-stat-primary em {
  color: #fff;
}

body.tebom-standalone .tebom-stat-bar {
  height: 8px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}

body.tebom-standalone .tebom-stat-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #facc15);
  box-shadow: 0 0 24px rgba(34, 211, 238, .6);
}

body.tebom-standalone .tebom-stat-activity strong {
  font-size: 22px;
  letter-spacing: -.02em;
}

body.tebom-standalone .tebom-activity-panel {
  margin: 18px 0 22px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
  box-shadow: 0 18px 42px rgba(15, 23, 42, .07);
}

body.tebom-standalone .tebom-activity-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body.tebom-standalone .tebom-activity-head span {
  display: block;
  color: #0284c7;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-activity-head h2 {
  margin: 3px 0 0;
  color: #0f172a;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 23px;
  font-weight: 950;
}

body.tebom-standalone .tebom-dashboard-home-inline {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: #06122c;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

body.tebom-standalone .tebom-activity-list {
  display: grid;
  gap: 9px;
}

body.tebom-standalone .tebom-activity-item {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 13px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: #fff;
}

body.tebom-standalone .tebom-activity-item b {
  color: #0f172a;
  font-size: 12px;
}

body.tebom-standalone .tebom-activity-item span {
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 650;
}

body.tebom-standalone .tebom-activity-item em {
  color: #0284c7;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

body.tebom-standalone .tebom-activity-empty {
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, .55);
  border-radius: 16px;
  color: #64748b;
  background: rgba(248,250,252,.82);
  font-size: 13px;
  font-weight: 650;
}

body.tebom-standalone .pte-rad-card {
  cursor: pointer;
}

body.tebom-standalone .pte-rad-card h2 {
  min-height: 42px;
  font-size: 15px !important;
}

body.tebom-standalone .pte-rad-card .pte-rad-url:after {
  content: "  →";
  font-size: 12px;
}

body.tebom-standalone.tebom-reading-mode #root main > div.rounded-2xl,
body.tebom-standalone.tebom-reading-mode #root main article {
  max-width: 900px !important;
}

body.tebom-standalone .tebom-floating-lessons {
  position: fixed;
  z-index: 20;
  top: 96px;
  right: 24px;
  width: 310px;
  max-height: calc(100vh - 128px);
  overflow: hidden;
  border: 1px solid rgba(14, 165, 233, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 6%, rgba(56, 189, 248, .18), transparent 36%),
    rgba(255,255,255,.96);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .17);
  backdrop-filter: blur(16px);
}

body.tebom-standalone .tebom-floating-head {
  padding: 18px 18px 14px;
  color: #fff;
  background: linear-gradient(145deg, #06122c, #075985);
}

body.tebom-standalone .tebom-floating-head span {
  display: block;
  color: #7dd3fc;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-floating-head h3 {
  margin: 5px 0 2px;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 25px;
  font-weight: 950;
}

body.tebom-standalone .tebom-floating-head p {
  margin: 0;
  color: rgba(226, 246, 255, .9);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.3;
}

body.tebom-standalone .tebom-floating-head em {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-floating-list {
  max-height: calc(100vh - 292px);
  overflow-y: auto;
  padding: 10px;
}

body.tebom-standalone .tebom-lesson-jump {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 9px;
  align-items: start;
  margin: 0 0 7px;
  padding: 10px;
  border: 1px solid rgba(226, 232, 240, .95);
  border-radius: 14px;
  background: #fff;
  color: #334155;
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.tebom-standalone .tebom-lesson-jump:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 165, 233, .36);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .08);
}

body.tebom-standalone .tebom-lesson-jump b {
  display: grid;
  place-items: center;
  min-height: 30px;
  border-radius: 10px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 950;
}

body.tebom-standalone .tebom-lesson-jump span {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

body.tebom-standalone .tebom-lesson-jump em {
  grid-column: 2;
  display: inline-flex;
  width: max-content;
  margin-top: 2px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 9px;
  font-style: normal;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.tebom-standalone .tebom-lesson-jump.is-now-reading {
  border-color: rgba(220, 38, 38, .42);
  background: linear-gradient(180deg, #fff, #fff5f5);
  box-shadow: inset 4px 0 0 #dc2626, 0 14px 28px rgba(220, 38, 38, .09);
}

body.tebom-standalone .tebom-lesson-jump.is-now-reading b {
  background: #dc2626;
  color: #fff;
}

body.tebom-standalone .tebom-lesson-jump.is-done:not(.is-now-reading) b {
  background: #dcfce7;
  color: #15803d;
}

body.tebom-standalone .tebom-lesson-footer {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid rgba(226,232,240,.95);
}

body.tebom-standalone .tebom-next-lesson {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 0;
  border-radius: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #06122c, #075985 62%, #0e7490);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .17);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  transition: transform .16s ease, box-shadow .16s ease;
}

body.tebom-standalone .tebom-next-lesson:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 58px rgba(15, 23, 42, .24);
}

body.tebom-standalone .tebom-next-lesson span {
  color: rgba(226, 246, 255, .9);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

body.tebom-standalone .tebom-next-dashboard {
  background: linear-gradient(135deg, #172554, #7c2d12);
}

@media (min-width: 1480px) {
  body.tebom-standalone.tebom-reading-mode #root main {
    padding-right: 370px !important;
  }
}

@media (max-width: 1479px) {
  body.tebom-standalone .tebom-floating-lessons {
    display: none;
  }
}

@media (max-width: 1280px) {
  body.tebom-standalone .tebom-dashboard-insights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  body.tebom-standalone #root header .tebom-dashboard-home,
  body.tebom-standalone #root header .tebom-force-refresh {
    min-height: 34px;
    padding: 0 10px;
    font-size: 9px;
  }

  body.tebom-standalone .tebom-dashboard-insights {
    grid-template-columns: 1fr;
  }

  body.tebom-standalone .tebom-activity-head,
  body.tebom-standalone .tebom-next-lesson {
    align-items: flex-start;
    flex-direction: column;
  }

  body.tebom-standalone .tebom-activity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
