:root {
  --ink: #111827;
  --muted: #64748b;
  --line: #d9e2ec;
  --panel: #ffffff;
  --soft: #eef4f7;
  --brand: #0f9f8f;
  --brand-dark: #08786d;
  --accent: #ef6a3a;
  --violet: #7c3aed;
  --sun: #f5b83b;
  --shadow: 0 18px 48px rgba(28, 42, 64, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(17,24,39,.035) 1px, transparent 1px),
    linear-gradient(rgba(17,24,39,.035) 1px, transparent 1px),
    #eef4f7;
  background-size: 32px 32px;
  color: var(--ink);
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #111821;
  color: #f8fbfd;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3dd6b5, #f5b83b);
  border-radius: 8px;
  color: #0b1720;
  font-weight: 900;
}

.brand strong, .brand span { display: block; }
.brand span { color: #9fb0c1; font-size: 13px; margin-top: 2px; }

.nav { display: grid; gap: 8px; }
.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  text-align: left;
  background: transparent;
  color: #b8c5d2;
  font-weight: 800;
}
.nav-item.active, .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.credit-card {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255,255,255,0.07);
}
.credit-card span, .credit-card small { color: #aebccc; display: block; }
.credit-card strong { font-size: 42px; line-height: 1.1; display: block; margin: 8px 0; }
#creditValidityText { margin-top: 6px; color: #d5e0ea; }
.mini-topup {
  margin-top: 14px;
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}

.workspace { padding: 30px 34px; min-width: 0; }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.topbar h1 { margin: 0; font-size: 32px; letter-spacing: 0; }
.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-weight: 850;
  font-size: 12px;
  text-transform: uppercase;
}
.account { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; }

.auth-panel, .composer, .billing-layout {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  grid-template-columns: 1fr 420px;
  overflow: hidden;
}
.auth-copy { padding: 54px; background: linear-gradient(135deg, #f8fffc, #edf7ff); }
.auth-copy h2 { font-size: 34px; margin: 0 0 14px; max-width: 560px; }
.auth-copy p { color: var(--muted); line-height: 1.6; }
.auth-form { padding: 42px; display: grid; gap: 14px; align-content: center; }
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 0;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f1f5f9;
  border-color: var(--line);
  color: var(--ink);
}
.eye-icon {
  position: relative;
  width: 21px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 999px 999px 999px 999px / 80% 80% 80% 80%;
}
.eye-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.password-toggle.showing .eye-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 2px;
  height: 22px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  outline: none;
}
textarea { resize: vertical; min-height: 170px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,159,143,.14); }

.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
button, .primary-action {
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 12px 15px;
  font-weight: 850;
}
.secondary, .icon-btn {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.primary-action {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  width: 100%;
}
.primary-action:disabled { opacity: .55; cursor: wait; }

.hidden, .hidden-native { display: none !important; }
.view { display: none; }
.view.active { display: block; }

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 0;
  overflow: hidden;
}
.composer-main { padding: 28px; }
.preview-panel {
  border-left: 1px solid var(--line);
  background: #f8fafc;
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 22px;
}
.section-heading h2 { margin: 0; font-size: 25px; }
.cost-pill {
  background: #fff1e8;
  color: #ba4a25;
  border: 1px solid #ffd4bd;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.flow-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px;
  margin-bottom: 20px;
}
.flow-tab {
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
  padding: 11px 10px;
}
.flow-tab.active {
  color: #fff;
  background: #111827;
}

.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field span, .field-title { font-weight: 850; color: #2d3748; display: block; margin-bottom: 9px; }

.provider-block { margin-bottom: 18px; }
.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.provider-pill {
  min-width: 190px;
  display: grid;
  gap: 2px;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 13px 14px;
}
.provider-pill small { color: var(--muted); }
.provider-pill.active {
  border-color: rgba(15,159,143,.7);
  background: #f1fffb;
  box-shadow: 0 12px 28px rgba(15,159,143,.12);
}
.provider-pill[data-provider="grok"].active {
  border-color: rgba(124,58,237,.55);
  background: #f7f3ff;
  box-shadow: 0 12px 28px rgba(124,58,237,.12);
}

.settings-grid {
  display: grid;
  gap: 18px;
  margin: 18px 0;
}
.setting-group {
  border-top: 1px solid #edf2f7;
  padding-top: 16px;
}

.orientation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.orientation-card, .choice-card {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  text-align: left;
  min-height: 82px;
}
.orientation-card {
  display: grid;
  gap: 7px;
  align-content: start;
}
.orientation-card strong, .orientation-card small { display: block; }
.orientation-card small { color: var(--muted); }
.orientation-card.active, .choice-card.active {
  border-color: var(--accent);
  background: #fff8f3;
  color: var(--ink);
}
.shape {
  height: 42px;
  border-radius: 8px;
  background: #e6ebf1;
  border: 1px solid #d9e2ec;
  display: block;
  margin: 0 auto 3px;
}
.shape.wide { width: 84px; }
.shape.tall { width: 38px; height: 58px; }
.shape.square { width: 54px; height: 54px; }
.shape.wide-mid { width: 74px; height: 48px; }
.shape.tall-mid { width: 42px; height: 58px; }

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choice-card {
  min-height: 50px;
  padding: 12px 14px;
}
.duration-row .choice-card { cursor: default; }

.smart-route {
  display: grid;
  gap: 4px;
  border: 1px solid #cfeae4;
  background: #effaf6;
  color: #0f5f55;
  border-radius: 8px;
  padding: 13px 14px;
  margin: 0 0 16px;
}
.smart-route span {
  color: #42786f;
  line-height: 1.45;
}

.upload-zone {
  border: 1px dashed #b7c7d4;
  background: #f8fbfd;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin-bottom: 16px;
  cursor: pointer;
  position: relative;
}
.upload-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.upload-zone span { font-weight: 850; }
.upload-zone small, .muted { color: var(--muted); }
.upload-zone.required {
  border-color: var(--accent);
  background: #fff8f3;
}
.upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f7f4;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
}
.upload-file-name {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
}

.preview-box {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  display: flex;
  align-items: end;
  padding: 22px;
}
.studio-reel {
  position: absolute;
  inset: 0;
  background: #101827;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  z-index: 1;
}
.reel-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: reelFade 12s infinite;
}
.frame-product {
  background: radial-gradient(circle at 68% 38%, rgba(245,184,59,.35), transparent 26%), linear-gradient(135deg, #101827 0%, #16313a 52%, #0f9f8f 100%);
  animation-delay: 0s;
}
.frame-portrait {
  background: radial-gradient(circle at 50% 38%, rgba(255,255,255,.16), transparent 18%), linear-gradient(135deg, #202238, #6f3cc3 52%, #ef6a3a);
  animation-delay: 4s;
}
.frame-city {
  background: linear-gradient(180deg, #17213a 0%, #466889 55%, #f5b83b 100%);
  animation-delay: 8s;
}
.product-bottle {
  position: absolute;
  width: 92px;
  height: 150px;
  right: 78px;
  top: 54px;
  border-radius: 26px 26px 12px 12px;
  background: linear-gradient(90deg, rgba(255,255,255,.22), rgba(255,255,255,.9), rgba(255,255,255,.16));
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
  animation: productMove 4s ease-in-out infinite;
}
.product-bottle::before {
  content: "";
  position: absolute;
  width: 42px;
  height: 28px;
  left: 25px;
  top: -22px;
  border-radius: 8px 8px 3px 3px;
  background: rgba(255,255,255,.78);
}
.light-line {
  position: absolute;
  width: 180px;
  height: 3px;
  left: 42px;
  top: 140px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 0 26px rgba(255,255,255,.65);
  animation: sweepLine 4s ease-in-out infinite;
}
.portrait-face {
  position: absolute;
  width: 132px;
  height: 132px;
  left: 52%;
  top: 44px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(135deg, #f8c9a5, #c66b55);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.portrait-face::before,
.portrait-face::after {
  content: "";
  position: absolute;
  top: 58px;
  width: 13px;
  height: 8px;
  border-radius: 999px;
  background: #42261f;
}
.portrait-face::before { left: 38px; }
.portrait-face::after { right: 38px; }
.caption-line {
  position: absolute;
  left: 52px;
  bottom: 78px;
  width: 210px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}
.caption-line.short {
  bottom: 98px;
  width: 132px;
}
.sun-disc {
  position: absolute;
  width: 92px;
  height: 92px;
  right: 62px;
  top: 42px;
  border-radius: 50%;
  background: #f6c45a;
  box-shadow: 0 0 44px rgba(246,196,90,.5);
  animation: sunFloat 4s ease-in-out infinite;
}
.skyline {
  position: absolute;
  left: 40px;
  right: 40px;
  bottom: 58px;
  height: 92px;
  background:
    linear-gradient(to top, #15202e 0 100%) 0 52px / 42px 40px no-repeat,
    linear-gradient(to top, #15202e 0 100%) 54px 20px / 50px 72px no-repeat,
    linear-gradient(to top, #15202e 0 100%) 116px 42px / 38px 50px no-repeat,
    linear-gradient(to top, #15202e 0 100%) 168px 8px / 58px 84px no-repeat,
    linear-gradient(to top, #15202e 0 100%) 242px 34px / 44px 58px no-repeat;
  animation: skylineMove 4s ease-in-out infinite;
}
.preview-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17,24,39,.05), rgba(17,24,39,.82));
  z-index: 2;
}
.preview-box > div:last-child {
  position: relative;
  z-index: 3;
}
.preview-box span { font-weight: 900; font-size: 19px; }
.preview-box p { margin: 6px 0 0; color: rgba(255,255,255,.82); }
.model-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}
.model-note p { color: var(--muted); line-height: 1.5; margin-bottom: 0; }
.message { min-height: 20px; color: var(--brand-dark); font-weight: 800; }

@keyframes reelFade {
  0% { opacity: 0; transform: scale(1.02); }
  7% { opacity: 1; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.03); }
  38% { opacity: 0; transform: scale(1.05); }
  100% { opacity: 0; transform: scale(1.05); }
}

@keyframes productMove {
  0%, 100% { transform: translateX(0) rotate(-2deg); }
  50% { transform: translateX(-18px) rotate(2deg); }
}

@keyframes sweepLine {
  0% { transform: translateX(-28px); opacity: .35; }
  50% { transform: translateX(42px); opacity: .95; }
  100% { transform: translateX(-28px); opacity: .35; }
}

@keyframes sunFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes skylineMove {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-18px); }
}

.history-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.filter-chip {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 9px 13px;
}
.filter-chip.active {
  background: #111827;
  color: #fff;
}
.notice {
  background: #fff8e6;
  border: 1px solid #fde8b2;
  color: #9a6a00;
  border-radius: 8px;
  padding: 13px 16px;
  font-weight: 800;
  margin-bottom: 18px;
}

.course-hero,
.course-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21,35,55,.06);
}
.course-hero {
  min-height: 280px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(15,159,143,.08), rgba(239,106,58,.08)),
    #fff;
}
.course-hero h2 {
  max-width: 780px;
  margin: 0;
  font-size: 38px;
  line-height: 1.08;
}
.course-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}
.course-hero-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 24%, rgba(245,184,59,.55), transparent 26%),
    linear-gradient(135deg, #0b1720, #123a42 52%, #0f9f8f);
  box-shadow: 0 18px 42px rgba(15,49,61,.22);
}
.course-hero-card span {
  width: max-content;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.course-hero-card strong {
  font-size: 25px;
  line-height: 1.18;
}
.course-section {
  margin-top: 18px;
  padding: 28px;
}
.course-section-head {
  margin-bottom: 18px;
}
.course-intro {
  max-width: 980px;
  margin: 0 0 18px;
  color: #334155;
  line-height: 1.6;
  font-weight: 750;
}
.course-section h3 {
  margin: 0;
  font-size: 26px;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lesson-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfd;
}
.lesson-card span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e8f7f4;
  color: var(--brand-dark);
  font-weight: 950;
  margin-bottom: 16px;
}
.lesson-card h4 {
  margin: 0 0 8px;
  font-size: 17px;
}
.lesson-card p,
.course-copy,
.course-video-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.course-split {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
  gap: 24px;
  align-items: start;
}
.prompt-template {
  border: 1px solid #cfeae4;
  border-radius: 8px;
  background: #f8fffc;
  overflow: hidden;
}
.prompt-template pre {
  margin: 0;
  padding: 18px;
  white-space: pre-wrap;
  color: #17313a;
  line-height: 1.55;
  font: 850 15px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.prompt-template button {
  width: 100%;
  border-radius: 0;
  background: var(--brand-dark);
}
.sequence-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.sequence-board article {
  min-height: 128px;
  display: grid;
  align-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
}
.sequence-board strong {
  color: var(--brand-dark);
  font-size: 18px;
}
.sequence-board span {
  color: var(--muted);
  line-height: 1.45;
}
.course-note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #fde8b2;
  border-radius: 8px;
  color: #8a6100;
  background: #fff8e6;
  font-weight: 800;
  line-height: 1.45;
}
.course-highlight {
  border-color: #cfeae4;
  background: linear-gradient(135deg, #f8fffc, #fff);
}
.course-highlight p {
  max-width: 980px;
  margin: 12px 0 0;
  color: #355f59;
  font-weight: 760;
  line-height: 1.6;
}
.course-policy {
  display: grid;
  gap: 12px;
  border: 1px solid #fde8b2;
  border-radius: 8px;
  background: #fff8e6;
  color: #684b00;
  padding: 18px;
}
.course-policy strong {
  color: #513a00;
  font-size: 17px;
}
.course-policy p {
  margin: 0;
  line-height: 1.55;
  font-weight: 750;
}
.course-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.course-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.course-video-card video {
  width: 100%;
  height: 360px;
  display: block;
  background: #0b1118;
  object-fit: contain;
}
.course-video-card div {
  padding: 16px;
}
.course-video-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}
.course-checklist {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
}
.course-checklist ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.course-checklist li {
  position: relative;
  padding: 13px 14px 13px 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: #334155;
  font-weight: 800;
}
.course-checklist li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--brand-dark);
  border-bottom: 3px solid var(--brand-dark);
  transform: rotate(-45deg);
}
.support-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(21,35,55,.06);
  padding: 32px;
}
.support-panel h2 {
  margin: 0;
  font-size: 30px;
}
.support-panel p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
}
.support-card {
  display: grid;
  gap: 12px;
  align-content: start;
  border: 1px solid #cfeae4;
  border-radius: 8px;
  background: #f8fffc;
  padding: 20px;
}
.support-card strong {
  font-size: 20px;
}
.support-card p {
  margin: 0;
}
.support-card small {
  color: var(--muted);
  font-weight: 750;
}
.support-whatsapp {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
  padding: 12px 14px;
  text-decoration: none;
  font-weight: 900;
}

.jobs-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 16px;
}
.empty-card, .job-card, .status-card, .price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(21,35,55,.06);
}
.empty-card { grid-column: 1 / -1; color: var(--muted); font-weight: 800; }
.job-card { display: grid; gap: 12px; }
.job-visual { position: relative; }
.job-visual .badge { position: absolute; top: 10px; right: 10px; }
.thumb {
  width: 100%;
  height: clamp(260px, 34vw, 520px);
  border-radius: 8px;
  background: #0b1118;
  object-fit: contain;
  display: block;
}
.thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 850;
}
.job-card h3, .status-card h3 { margin: 0 0 6px; font-size: 16px; }
.job-card p, .status-card p { margin: 0; color: var(--muted); }
.job-prompt {
  color: var(--ink) !important;
  font-weight: 800;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-bottom: 8px !important;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 12px;
  background: #eef3f6;
  color: #526073;
}
.badge.completed, .badge.operational { background: #e6f8f2; color: #087d77; }
.badge.failed, .badge.outage { background: #ffeceb; color: #c0392b; }
.badge.processing, .badge.degraded { background: #fff6dc; color: #9a6a00; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job-actions a, .job-actions button {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  text-decoration: none;
  font-weight: 850;
}

.status-list { display: grid; gap: 12px; max-width: 880px; }
.status-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.billing-layout {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 620px;
  gap: 24px;
  align-items: center;
}
.package-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.price-card strong {
  display: block;
  font-size: 34px;
  margin: 8px 0;
}
.price-card.highlight {
  border-color: rgba(15,159,143,.45);
  box-shadow: 0 14px 36px rgba(15,159,143,.14);
}
.price-card small { color: var(--muted); }
.validity-note { display: block; margin: 6px 0; }
.credit-validity-copy { margin-top: 10px; max-width: 560px; }
.finance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.finance-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(21,35,55,.06);
}
.simple-list { display: grid; gap: 10px; }
.simple-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}
.simple-row strong, .simple-row span { display: block; }
.simple-row small { color: var(--muted); }
.simple-row button {
  align-self: center;
  padding: 8px 10px;
  background: var(--ink);
}

@media (max-width: 1180px) {
  .composer, .billing-layout { grid-template-columns: 1fr; }
  .preview-panel { border-left: 0; border-top: 1px solid var(--line); }
  .jobs-list { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
  .course-hero, .course-split, .course-checklist { grid-template-columns: 1fr; }
  .support-panel { grid-template-columns: 1fr; }
  .lesson-grid, .course-video-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .auth-panel, .finance-grid { grid-template-columns: 1fr; }
  .package-list, .jobs-list, .flow-tabs, .orientation-grid { grid-template-columns: 1fr; }
  .thumb { height: min(70vh, 520px); }
  .workspace { padding: 22px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .course-hero, .course-section { padding: 20px; }
  .course-hero h2 { font-size: 30px; }
  .sequence-board { grid-template-columns: 1fr; }
  .course-video-card video { height: min(64vh, 420px); }
}
