:root {
  color-scheme: light;
  --bg: #f7fbff;
  --ink: #121417;
  --muted: rgba(18, 20, 23, 0.58);
  --soft: rgba(255, 255, 255, 0.62);
  --line: rgba(30, 58, 92, 0.12);
  --glass: rgba(255, 255, 255, 0.58);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --shadow: 0 28px 90px rgba(80, 110, 140, 0.18);
  --radius: 28px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.login-dialog {
  width: min(420px, calc(100vw - 32px));
  padding: 0;
  overflow: visible;
  border: 3px solid #111;
  border-radius: 16px;
  background: #fffdf8;
  color: #111;
  box-shadow: 9px 9px 0 #111;
}

.login-dialog::backdrop {
  background: rgba(17, 17, 17, 0.38);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid #111;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.login-form,
.account-view {
  padding: 34px 30px 28px;
}

.login-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 9px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd522;
  font-size: 11px;
  font-weight: 900;
}

.login-form h2,
.account-view h2 {
  margin: 0 0 7px;
  font-size: 26px;
}

.login-copy,
.account-view > p {
  margin: 0 0 24px;
  color: #666;
  font-size: 14px;
}

.login-form label {
  display: grid;
  gap: 7px;
  margin-top: 15px;
  font-size: 13px;
  font-weight: 850;
}

.login-form input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 2px solid #111;
  border-radius: 8px;
  outline: none;
  background: #fff;
}

.login-form input:focus {
  box-shadow: 4px 4px 0 #ffd522;
}

.code-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.code-field button,
.login-submit,
.logout-button {
  border: 2px solid #111;
  border-radius: 8px;
  font-weight: 900;
}

.code-field button {
  padding: 0 12px;
  background: #fff;
  font-size: 12px;
}

.login-message {
  min-height: 20px;
  margin: 10px 0 4px;
  color: #b65320;
  font-size: 12px;
  font-weight: 800;
}

.login-submit {
  width: 100%;
  height: 48px;
  background: #ffd522;
  box-shadow: 4px 4px 0 #111;
}

.login-terms {
  margin: 16px 0 0;
  color: #888;
  text-align: center;
  font-size: 11px;
}

.account-view {
  text-align: center;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #ffd522;
  font-size: 24px;
  font-weight: 900;
}

.account-plan {
  display: grid;
  gap: 5px;
  margin: 20px 0;
  padding: 16px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff8cf;
  text-align: left;
}

.account-plan span,
.account-plan small {
  color: #666;
  font-size: 12px;
}

.account-plan strong {
  font-size: 18px;
}

.logout-button {
  width: 100%;
  height: 44px;
  background: #fff;
}

@media (max-width: 520px) {
  .login-form,
  .account-view {
    padding: 30px 20px 22px;
  }
}

.login-terms a {
  color: inherit;
}

.process-message {
  min-height: 20px;
  margin: 15px 0 0;
  color: #8c4f00;
  font-size: 12px;
  font-weight: 850;
}

.clip-notice {
  margin: 0 0 8px;
  color: #8c4f00;
  font-size: 11px;
  font-weight: 850;
}

.legal-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
  background: #f7f4ed;
}

.legal-page main {
  width: min(780px, calc(100% - 32px));
  height: auto;
  margin: auto;
  padding: 34px 0 70px;
  overflow: visible;
}

.legal-page h1 {
  margin: 36px 0 22px;
  font-size: clamp(30px, 5vw, 48px);
}

.legal-page section {
  margin-top: 16px;
  padding: 22px;
  border: 3px solid #111;
  border-radius: 10px;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.legal-page p {
  margin: 10px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(130, 220, 238, 0.36), transparent 26rem),
    radial-gradient(circle at 80% 22%, rgba(182, 205, 255, 0.42), transparent 28rem),
    radial-gradient(circle at 50% 92%, rgba(197, 255, 232, 0.34), transparent 30rem),
    linear-gradient(145deg, #ffffff 0%, #f4f9ff 46%, #eef8f7 100%);
  color: var(--ink);
}

main {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  overflow: hidden;
  padding: 32px;
  transform: translateY(0);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 20%, rgba(255, 255, 255, 0.76) 45%, transparent 64%),
    radial-gradient(circle at 16% 76%, rgba(112, 203, 183, 0.22), transparent 22rem),
    radial-gradient(circle at 84% 18%, rgba(122, 166, 255, 0.2), transparent 24rem);
  filter: blur(0.2px);
}

.workspace-head,
.work-grid,
.hero-center {
  position: relative;
  z-index: 1;
}

.brand,
.status-pill,
.mode-pill,
.back-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.brand {
  padding: 12px 16px;
  border-radius: 999px;
  color: rgba(18, 20, 23, 0.78);
  font-weight: 700;
}

.status-pill,
.mode-pill,
.back-link {
  padding: 11px 15px;
  border-radius: 999px;
  color: rgba(18, 20, 23, 0.68);
  text-decoration: none;
  font-weight: 650;
}

.hero-center {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: calc(100svh - 64px);
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 880px;
  margin-bottom: 34px;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.16;
  letter-spacing: 0;
}

.link-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: min(760px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid rgba(45, 72, 103, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.86), rgba(226, 248, 255, 0.46)),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(34px) saturate(190%);
  -webkit-backdrop-filter: blur(34px) saturate(190%);
}

.link-card input {
  min-width: 0;
  height: 58px;
  border: 0;
  outline: 0;
  border-radius: 22px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 17px;
  box-shadow: inset 0 1px 10px rgba(82, 119, 150, 0.08);
}

.link-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  min-width: 118px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(117, 196, 255, 0.72), rgba(255, 255, 255, 0.86));
  color: #17324a;
  font-weight: 800;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 12px 30px rgba(80, 150, 210, 0.22);
}

.link-card svg,
.play-button svg,
.play-mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.link-card button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace {
  position: absolute;
  inset: 0;
  min-height: 100svh;
  height: 100svh;
  overflow-y: auto;
  padding: 26px 28px 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.7)),
    radial-gradient(circle at 72% 12%, rgba(149, 199, 255, 0.2), transparent 24rem);
  transform: translateY(100%);
  transition: transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

body.workspace-mode .hero {
  transform: translateY(-100%);
}

body.workspace-mode .workspace {
  transform: translateY(0);
}

.workspace-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  max-width: 1480px;
  margin: 0 auto 18px;
}

.workspace h2 {
  margin: 0;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.16;
  letter-spacing: 0;
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.75fr);
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.video-column,
.side-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.video-shell,
.glass-card,
.highlight-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.84), rgba(233, 248, 255, 0.48)),
    rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8f2f7;
}

.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8f2f7;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(160, 190, 210, 0.18)),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.46), transparent 12rem),
    linear-gradient(135deg, #dbe9ef, #edf6fb);
  color: rgba(18, 20, 23, 0.58);
  font-weight: 800;
  transition: opacity 0.25s ease;
}

.video-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-mark {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #121417;
}

.highlight-card,
.glass-card {
  border-radius: 18px;
}

.highlight-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.84), rgba(233, 248, 255, 0.48)),
    rgba(255, 255, 255, 0.56);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  padding: 14px 16px;
  color: rgba(18, 20, 23, 0.62);
}

.highlight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.highlight-head h3,
.audio-card h3 {
  margin: 0;
}

.highlight-head h3 {
  font-size: 15px;
}

.highlight-head span {
  font-size: 12px;
  font-weight: 850;
  color: rgba(18, 20, 23, 0.48);
}

.highlight-track {
  position: relative;
  height: 24px;
  margin: 14px 4px 12px;
  cursor: pointer;
}

.highlight-track::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(70, 112, 146, 0.14);
}

.highlight-fill {
  position: absolute;
  top: 10px;
  left: 0;
  width: 0%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(93, 178, 238, 0.84), rgba(255, 255, 255, 0.9));
}

.highlight-handle,
.highlight-marker {
  position: absolute;
  top: 50%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 18px rgba(60, 120, 180, 0.18);
}

.highlight-handle {
  left: 0%;
  z-index: 3;
  width: 16px;
  height: 16px;
  background: #5aaee8;
  cursor: grab;
}

.highlight-handle:active {
  cursor: grabbing;
}

.highlight-marker {
  z-index: 2;
  width: 12px;
  height: 12px;
  padding: 0;
  background: rgba(39, 58, 78, 0.85);
}

.highlight-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.highlight-list button {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid rgba(30, 58, 92, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.52);
  color: rgba(18, 20, 23, 0.72);
  text-align: left;
}

.highlight-list button.active {
  background: linear-gradient(135deg, rgba(143, 210, 255, 0.32), rgba(255, 255, 255, 0.68));
}

.highlight-list time {
  font-size: 11px;
  font-weight: 850;
  color: rgba(18, 20, 23, 0.42);
}

.highlight-list span {
  overflow: hidden;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-label {
  margin-bottom: 6px;
  color: rgba(18, 20, 23, 0.46);
  font-size: 11px;
  font-weight: 800;
}

.side-panel {
  position: sticky;
  top: 18px;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.segmented button {
  height: 36px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: rgba(18, 20, 23, 0.48);
  font-size: 13px;
  font-weight: 760;
}

.segmented .active {
  background: linear-gradient(135deg, rgba(117, 196, 255, 0.7), rgba(255, 255, 255, 0.88));
  color: #17324a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.85);
}

.tab-panel[hidden] {
  display: none;
}

.glass-card {
  padding: 16px;
}

.audio-card {
  padding: 10px 12px;
}

.audio-card .card-label {
  display: none;
}

.summary-card {
  overflow: hidden;
}

.summary-scroll {
  position: relative;
  max-height: 440px;
  overflow-y: auto;
  padding: 4px 6px 110px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 104, 132, 0.26) transparent;
  mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 calc(100% - 44px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34px, #000 calc(100% - 44px), transparent 100%);
}

.summary-scroll::-webkit-scrollbar {
  width: 6px;
}

.summary-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(69, 104, 132, 0.24);
}

.audio-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.play-button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(117, 196, 255, 0.76), rgba(255, 255, 255, 0.9));
  color: #17324a;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 12px 28px rgba(80, 150, 210, 0.2);
}

.play-button .icon-pause,
.play-button.is-playing .icon-play {
  display: none;
}

.play-button.is-playing .icon-pause {
  display: block;
}

.audio-row p {
  margin: 0;
  font-size: 10px;
  line-height: 1.2;
  color: var(--muted);
}

.audio-card h3 {
  font-size: 12px;
  line-height: 1.15;
}

.audio-timeline {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
  color: rgba(18, 20, 23, 0.44);
  font-size: 10px;
  font-weight: 760;
}

.audio-timeline input {
  width: 100%;
  height: 10px;
  margin: 0;
  accent-color: #7cc8ff;
}

.audio-timeline input::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 200, 255, 0.62), rgba(255, 255, 255, 0.88));
}

.audio-timeline input::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -3px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: #5aaee8;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-top span {
  color: rgba(18, 20, 23, 0.46);
  font-size: 11px;
  font-weight: 800;
}

.caption-controls,
.caption-language {
  display: flex;
  align-items: center;
}

.caption-controls {
  gap: 8px;
}

.caption-language {
  gap: 2px;
  padding: 2px;
  border: 1px solid rgba(30, 58, 92, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.48);
}

.caption-language button {
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(18, 20, 23, 0.46);
  font-size: 10px;
  font-weight: 760;
}

.caption-language button.active {
  background: rgba(133, 201, 251, 0.42);
  color: #17324a;
}

.transcript-scroll {
  position: relative;
  height: min(490px, calc(100vh - 210px));
  min-height: 300px;
  overflow-y: auto;
  padding: 0 5px 120px 0;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(69, 104, 132, 0.24) transparent;
}

.transcript-scroll::-webkit-scrollbar {
  width: 5px;
}

.transcript-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(69, 104, 132, 0.22);
}

.caption-line,
.summary-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(30, 58, 92, 0.1);
  color: rgba(18, 20, 23, 0.56);
  font-size: 13px;
  line-height: 1.5;
}

.caption-line.active,
.summary-line.active {
  color: var(--ink);
}

.caption-line time,
.summary-line time {
  font-weight: 850;
  color: rgba(18, 20, 23, 0.42);
  font-size: 12px;
}

.caption-line p,
.summary-line p {
  margin: 0;
}

.caption-original,
.caption-translation {
  display: block;
}

.caption-original {
  color: #111;
  font-weight: 760;
}

.caption-translation {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(17, 17, 17, 0.32);
  color: rgba(17, 17, 17, 0.62);
  font-size: 12px;
}

.summary-line.active {
  position: relative;
}

.summary-line.active::before {
  content: "";
  position: absolute;
  inset: 4px -8px;
  z-index: -1;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(143, 210, 255, 0.24), rgba(255, 255, 255, 0.42));
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.64);
  }
  50% {
    transform: scaleY(1);
  }
}

@media (max-width: 980px) {
  .hero,
  .workspace {
    padding-inline: 18px;
  }

  .workspace-head,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .workspace-head {
    align-items: start;
  }

  .side-panel {
    position: static;
  }

  .mode-pill {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .link-card {
    grid-template-columns: 1fr;
    border-radius: 24px;
  }

  .link-card button,
  .link-card input {
    width: 100%;
  }

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

  .caption-line,
  .summary-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.preview-panel {
  padding: 28px;
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 7px 7px 0 #111;
}

.preview-panel h3 {
  margin: 10px 0 8px;
  font-size: 22px;
}

.preview-panel > p:not(.card-label) {
  margin: 0 0 22px;
  color: #666;
  line-height: 1.7;
}

.preview-panel button {
  width: 100%;
  padding: 13px 18px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd51f;
  color: #111;
  font: inherit;
  font-weight: 900;
  box-shadow: 3px 3px 0 #111;
  cursor: pointer;
}

.preview-actions {
  display: grid;
  gap: 12px;
}

.preview-panel button.secondary {
  background: #fff;
}

.preview-mode .highlight-card,
.preview-mode .segmented,
.preview-mode .tab-panel {
  display: none;
}

.preview-mode .preview-panel {
  display: block;
}

.demo-entry {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  padding: 9px 16px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #fff;
  color: #111;
  box-shadow: 3px 3px 0 #111;
  font-size: 13px;
  font-weight: 900;
}

.demo-entry span {
  color: #777;
  font-size: 10px;
  font-weight: 700;
}

.full-demo-benefit {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 14px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #ffd522;
}

.full-demo-benefit > div {
  display: grid;
  min-width: 0;
  gap: 3px;
  margin-right: auto;
}

.full-demo-benefit span,
.full-demo-benefit small {
  font-size: 11px;
}

.full-demo-benefit strong {
  font-size: 15px;
}

.full-demo-benefit button {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 520px) {
  .full-demo-benefit {
    align-items: stretch;
    flex-direction: column;
  }
}

.hero-login {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 28px;
}

.login-dialog:has(.account-view:not([hidden])) {
  width: min(700px, calc(100vw - 32px));
}

.login-dialog:has(.login-form:not([hidden])) .login-form {
  max-width: 420px;
  margin: auto;
}

.account-view {
  max-height: min(720px, calc(100svh - 48px));
  overflow-y: auto;
  text-align: left;
}

.account-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 42px;
}

.account-head .account-avatar {
  flex: 0 0 auto;
  margin: 0;
}

.account-head .login-kicker {
  margin-bottom: 6px;
}

.account-head h2 {
  font-size: 22px;
}

.account-head p {
  margin: 3px 0 0;
  color: #666;
  font-size: 13px;
}

.account-plan {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.account-plan > div:first-child {
  display: grid;
  gap: 2px;
}

.account-plan button,
.history-item button,
.history-item a {
  padding: 8px 12px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #ffd522;
  color: #111;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.account-plan small,
.quota-track {
  grid-column: 1 / -1;
}

.quota-track {
  height: 7px;
  overflow: hidden;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
}

.quota-track span {
  display: block;
  width: 72%;
  height: 100%;
  background: #ffd522;
}

.account-section {
  margin-top: 18px;
  padding: 14px;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
}

.account-section-head,
.history-item {
  display: flex;
  align-items: center;
}

.account-section-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.account-section-head h3 {
  margin: 0;
  font-size: 15px;
}

.account-section-head span {
  color: #777;
  font-size: 11px;
}

.history-item {
  gap: 12px;
}

.account-job {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #ddd;
}

.history-thumb {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 42px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #111;
  color: #fff;
  font-weight: 900;
}

.highlight-thumb {
  background: #ffd522;
  color: #111;
}

.history-item > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
  margin-right: auto;
}

.history-item strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item span,
.history-item small {
  color: #777;
  font-size: 11px;
}

.account-notice {
  min-height: 18px;
  margin: 10px 0 2px;
  color: #9a5a00;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 620px) {
  .hero-login {
    top: 16px;
    right: 16px;
  }

  .account-view {
    padding: 26px 16px 18px;
  }

  .history-thumb {
    display: none;
  }

  .history-item {
    gap: 8px;
  }
}

.summary-card-head,
.clip-status > div:first-child,
.clip-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.summary-card-head .card-label {
  margin: 0;
}

.clip-button,
.clip-result a {
  min-height: 28px;
  padding: 5px 9px;
  border: 2px solid #111;
  border-radius: 5px;
  background: #ffd51f;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.clip-button:disabled {
  cursor: default;
  opacity: 0.7;
}

.clip-status {
  margin: 10px 0;
  padding: 9px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

.clip-status[hidden],
.clip-result[hidden],
.clip-result a[hidden] {
  display: none;
}

.clip-progress {
  height: 5px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid #111;
  border-radius: 999px;
  background: #fff;
}

.clip-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffd51f;
  transition: width 0.45s ease;
}

.clip-result {
  margin-top: 10px;
}

.clip-result video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 2px solid #111;
  border-radius: 6px;
  background: #111;
}

.clip-result > div {
  align-items: end;
  margin-top: 8px;
}

.clip-result p {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: 11px;
}

.clip-result p span {
  color: rgba(17, 17, 17, 0.58);
  font-size: 10px;
}

.workspace {
  padding-top: 12px;
}

.workspace-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 10px;
}

.workspace-head .eyebrow {
  display: none;
}

.workspace-head .back-link {
  padding: 7px 11px;
}

.workspace h2 {
  font-size: clamp(19px, 1.8vw, 27px);
}

.login-button {
  min-height: 36px;
  padding: 7px 13px;
  border: 2px solid #111;
  border-radius: 7px;
  background: #ffd51f;
  color: #111;
  font-weight: 800;
  box-shadow: 3px 3px 0 #111;
}

.saved-state {
  color: #111 !important;
  font-weight: 760;
}

.clip-actions {
  display: flex;
  gap: 6px;
}

.clip-actions button {
  min-height: 28px;
  padding: 5px 8px;
  border: 2px solid #111;
  border-radius: 5px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .workspace-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
}

@media (max-width: 620px) {
  .workspace-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .login-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .workspace-head > div {
    grid-column: 1 / -1;
  }
}

.summary-source {
  grid-column: 2;
  justify-self: start;
  padding: 3px 7px;
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 760;
}

.summary-source:hover {
  background: #ffd51f;
}

@media (max-width: 620px) {
  .summary-source {
    grid-column: 1;
  }
}

/* Previous cartoon UI restored */
:root {
  --bg: #f6f1e9;
  --ink: #111;
  --muted: rgba(17, 17, 17, 0.62);
  --soft: #fff;
  --line: #111;
  --glass: #fff;
  --glass-strong: #fff;
  --shadow: 5px 5px 0 #111;
  --radius: 8px;
  font-family: "Arial Rounded MT Bold", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

body,
.hero {
  background: #f6f1e9;
}

.workspace {
  background-color: #f6f1e9;
  background-image: radial-gradient(rgba(17, 17, 17, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ambient {
  opacity: 0.16;
  background-color: transparent;
  background-image: radial-gradient(#111 1.4px, transparent 1.4px);
  background-size: 22px 22px;
  filter: none;
}

.ambient::before,
.ambient::after,
.link-card::after {
  content: none;
}

.cartoon-mascot {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 6px 6px 0 #ffd51f;
  transform: none;
}

.cartoon-mascot::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 14px;
  width: 54px;
  height: 25px;
  border: 3px solid #111;
  border-radius: 50% 50% 42% 42%;
  background: #111;
  transform: rotate(-4deg);
}

.cartoon-mascot::after {
  content: none;
}

.mascot-eye {
  display: block;
  position: absolute;
  top: 42px;
  z-index: auto;
  width: 7px;
  height: 10px;
  border-radius: 50%;
  background: #111;
}

.mascot-eye.left {
  left: 26px;
}

.mascot-eye.right {
  right: 26px;
}

.mascot-smile {
  display: block;
  position: absolute;
  left: 32px;
  bottom: 18px;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid #111;
  border-radius: 50%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-bottom: 14px;
  padding: 3px 9px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd51f;
  color: #111;
  font-family: inherit;
  font-size: 12px;
  transform: none;
}

h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.24;
}

.link-card {
  gap: 8px;
  padding: 8px;
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 7px 7px 0 #111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
}

.link-card input {
  height: 54px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  font-size: 17px;
}

.link-card button {
  height: 54px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd51f;
  color: #111;
  box-shadow: 3px 3px 0 #111;
}

.link-card button:hover,
.back-link:hover {
  transform: none;
}

.link-card button:active,
.highlight-list button:active,
.back-link:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #111;
}

.brand,
.status-pill,
.mode-pill,
.back-link {
  border: 2px solid #111;
  border-radius: 7px;
  background: #fff;
  color: #111;
  box-shadow: 3px 3px 0 #111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.workspace-head .eyebrow {
  margin-bottom: 7px;
  color: #111;
}

.workspace h2 {
  font-size: clamp(20px, 2vw, 30px);
  line-height: 1.24;
}

.video-shell,
.glass-card,
.highlight-card {
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-shell,
.video-shell video {
  background: #111;
}

.video-placeholder {
  background: #fff;
  color: #111;
}

.play-mark {
  width: 88px;
  height: 88px;
  border: 3px solid #111;
  background: #ffd51f;
  box-shadow: 4px 4px 0 #111;
}

.highlight-card {
  color: #111;
  transform: none;
}

.highlight-track::before {
  height: 4px;
  background: #111;
}

.highlight-fill {
  height: 4px;
  background: #ffd51f;
}

.highlight-handle,
.highlight-marker {
  border: 2px solid #111;
  box-shadow: none;
}

.highlight-handle {
  background: #ffd51f;
}

.highlight-marker {
  background: #fff;
}

.highlight-list button,
.highlight-list button:nth-child(2n) {
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
  color: #111;
  box-shadow: 2px 2px 0 #111;
  transform: none;
}

.highlight-list button.active {
  border-color: #111;
  background: #ffd51f;
}

.segmented {
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.segmented button {
  border-radius: 5px;
  color: rgba(17, 17, 17, 0.56);
}

.segmented .active {
  background: #ffd51f;
  color: #111;
  box-shadow: none;
}

.card-label {
  color: rgba(17, 17, 17, 0.46);
  font-family: inherit;
  font-size: 11px;
}

.play-button,
.play-button.is-playing {
  border: 2px solid #111;
  background: #ffd51f;
  color: #111;
  box-shadow: 2px 2px 0 #111;
}

.audio-timeline input {
  accent-color: #ffd51f;
}

.audio-timeline input::-webkit-slider-runnable-track {
  background: #111;
}

.audio-timeline input::-webkit-slider-thumb {
  border-color: #111;
  background: #ffd51f;
}

.caption-language {
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
}

.caption-language button {
  border-radius: 4px;
}

.caption-language button.active {
  background: #ffd51f;
  color: #111;
}

.caption-line,
.summary-line {
  border-top-color: rgba(17, 17, 17, 0.18);
}

.caption-line.active,
.summary-line.active {
  position: relative;
  z-index: 0;
  color: #111;
}

.caption-line.active::before,
.summary-line.active::before {
  content: "";
  position: absolute;
  inset: 3px -7px;
  z-index: -1;
  border: 2px solid #111;
  border-radius: 5px;
  background: #fff4a8;
  color: #111;
  transform: none;
}

.summary-scroll,
.transcript-scroll {
  scrollbar-color: #111 transparent;
}

.summary-scroll::-webkit-scrollbar-thumb,
.transcript-scroll::-webkit-scrollbar-thumb {
  background: #111;
}

@media (max-width: 620px) {
  h1 {
    font-size: 32px;
    line-height: 1.28;
  }

  .cartoon-mascot {
    width: 72px;
    height: 72px;
    margin-bottom: 14px;
  }

  .cartoon-mascot::before {
    left: 11px;
    width: 44px;
  }

  .mascot-eye {
    top: 35px;
  }

  .mascot-eye.left {
    left: 21px;
  }

  .mascot-eye.right {
    right: 21px;
  }

  .mascot-smile {
    left: 26px;
    bottom: 13px;
  }

  .link-card {
    border-radius: 8px;
  }
}

/* Xiaohei hand-drawn editorial theme */
:root {
  --bg: #fff;
  --ink: #111;
  --muted: rgba(17, 17, 17, 0.58);
  --soft: #fff;
  --line: rgba(17, 17, 17, 0.82);
  --glass: #fff;
  --glass-strong: #fff;
  --shadow: none;
  --radius: 6px;
  --red: #ef4338;
  --orange: #f07822;
  --blue: #2674db;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

body,
.hero,
.workspace {
  background: #fff;
}

.ambient {
  opacity: 1;
  filter: none;
  background: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  font-family: "Kaiti SC", KaiTi, serif;
  font-size: 15px;
  transform: rotate(-5deg);
}

.ambient::before {
  content: "英文进来";
  left: 12%;
  top: 27%;
  color: var(--red);
}

.ambient::after {
  content: "中文出去 →";
  right: 11%;
  bottom: 25%;
  color: var(--blue);
  transform: rotate(4deg);
}

.cartoon-mascot {
  position: relative;
  width: 52px;
  height: 68px;
  margin-bottom: 22px;
  border: 0;
  border-radius: 48% 52% 43% 46%;
  background: #111;
  box-shadow: none;
  transform: rotate(-3deg);
}

.cartoon-mascot::before,
.cartoon-mascot::after {
  content: "";
  position: absolute;
  bottom: -14px;
  width: 2px;
  height: 19px;
  background: #111;
  transform-origin: top;
}

.cartoon-mascot::before {
  left: 15px;
  transform: rotate(9deg);
}

.cartoon-mascot::after {
  right: 15px;
  transform: rotate(-8deg);
}

.mascot-eye {
  display: block;
  z-index: 2;
  top: 22px;
  width: 8px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

.mascot-eye.left {
  left: 17px;
}

.mascot-eye.right {
  right: 15px;
}

.mascot-smile {
  display: none;
}

.eyebrow {
  display: inline-flex;
  min-height: auto;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--orange);
  font-family: "Kaiti SC", KaiTi, serif;
  font-size: 14px;
  transform: rotate(-1deg);
}

h1 {
  max-width: 760px;
  margin-bottom: 34px;
  font-size: clamp(36px, 4.6vw, 62px);
  font-weight: 780;
  line-height: 1.28;
}

.link-card {
  gap: 8px;
  padding: 7px;
  border: 1.5px solid #111;
  border-radius: 7px 10px 6px 9px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: rotate(-0.15deg);
}

.link-card::after {
  content: "先试试看";
  position: absolute;
  right: -66px;
  bottom: -29px;
  color: var(--red);
  font-family: "Kaiti SC", KaiTi, serif;
  font-size: 13px;
  transform: rotate(-7deg);
}

.link-card input {
  height: 52px;
  border: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: none;
  font-size: 15px;
}

.link-card button {
  height: 52px;
  min-width: 110px;
  border: 1.5px solid #111;
  border-radius: 5px 7px 4px 6px;
  background: #111;
  color: #fff;
  box-shadow: none;
}

.link-card button:hover,
.back-link:hover {
  transform: rotate(-1deg);
}

.brand,
.status-pill,
.mode-pill,
.back-link {
  border: 1.5px solid #111;
  border-radius: 5px 7px 4px 6px;
  background: #fff;
  color: #111;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.workspace-head .eyebrow {
  margin-bottom: 5px;
  color: var(--blue);
}

.workspace h2 {
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.3;
}

.video-shell,
.glass-card,
.highlight-card {
  border: 1.5px solid #111;
  border-radius: 5px 8px 6px 4px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.video-shell,
.video-shell video {
  background: #111;
}

.video-placeholder {
  background: #fff;
  color: #111;
}

.play-mark {
  width: 68px;
  height: 68px;
  border: 1.5px solid #111;
  background: #fff;
  box-shadow: none;
}

.highlight-card {
  color: #111;
  transform: rotate(0.08deg);
}

.highlight-track::before {
  height: 2px;
  background: #111;
}

.highlight-fill {
  height: 2px;
  background: var(--orange);
}

.highlight-handle,
.highlight-marker {
  border: 1.5px solid #111;
  box-shadow: none;
}

.highlight-handle {
  background: var(--orange);
}

.highlight-marker {
  background: #fff;
}

.highlight-list button {
  border: 1px solid rgba(17, 17, 17, 0.76);
  border-radius: 3px 5px 4px 2px;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.highlight-list button:nth-child(2n) {
  transform: rotate(0.25deg);
}

.highlight-list button.active {
  border-color: var(--orange);
  background: #fff7f0;
  color: #111;
}

.segmented {
  border: 1.5px solid #111;
  border-radius: 5px 8px 6px 4px;
  background: #fff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.segmented button {
  border-radius: 3px;
  color: rgba(17, 17, 17, 0.52);
}

.segmented .active {
  background: #111;
  color: #fff;
  box-shadow: none;
}

.card-label {
  color: var(--blue);
  font-family: "Kaiti SC", KaiTi, serif;
  font-size: 12px;
}

.play-button {
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  box-shadow: none;
}

.play-button.is-playing {
  background: #111;
  color: #fff;
}

.audio-timeline input {
  accent-color: var(--orange);
}

.audio-timeline input::-webkit-slider-runnable-track {
  background: rgba(17, 17, 17, 0.82);
}

.audio-timeline input::-webkit-slider-thumb {
  border-color: #111;
  background: var(--orange);
}

.caption-language {
  border: 1px solid #111;
  border-radius: 4px;
  background: #fff;
}

.caption-language button {
  border-radius: 2px;
}

.caption-language button.active {
  background: var(--blue);
  color: #fff;
}

.caption-line,
.summary-line {
  border-top-color: rgba(17, 17, 17, 0.16);
}

.caption-line.active,
.summary-line.active {
  position: relative;
  z-index: 0;
  color: #111;
}

.caption-line.active::before,
.summary-line.active::before {
  content: "";
  position: absolute;
  inset: 4px -7px;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: 3px 6px 4px 2px;
  background: #fff;
  transform: rotate(-0.15deg);
}

.caption-line.active::before {
  color: var(--blue);
  background: #f5f9ff;
}

.summary-line.active::before {
  color: var(--orange);
  background: #fff8f2;
}

.summary-scroll,
.transcript-scroll {
  scrollbar-color: #111 transparent;
}

.summary-scroll::-webkit-scrollbar-thumb,
.transcript-scroll::-webkit-scrollbar-thumb {
  background: #111;
}

@media (max-width: 620px) {
  h1 {
    font-size: 31px;
    line-height: 1.34;
  }

  .cartoon-mascot {
    width: 44px;
    height: 58px;
    margin-bottom: 18px;
  }

  .mascot-eye {
    top: 18px;
  }

  .mascot-eye.left {
    left: 14px;
  }

  .mascot-eye.right {
    right: 13px;
  }

  .ambient::before,
  .ambient::after,
  .link-card::after {
    display: none;
  }
}

/* Keep the restored UI last in the cascade. */
:root {
  --bg: #f6f1e9;
  --ink: #111;
  --muted: rgba(17, 17, 17, 0.62);
  --line: #111;
  --shadow: 5px 5px 0 #111;
  --radius: 8px;
}

body,
.hero {
  background: #f6f1e9;
}

.workspace {
  background-color: #f6f1e9;
  background-image: radial-gradient(rgba(17, 17, 17, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.ambient {
  opacity: 0.16;
  background-image: radial-gradient(#111 1.4px, transparent 1.4px);
  background-size: 22px 22px;
}

.ambient::before,
.ambient::after,
.link-card::after {
  content: none;
}

.cartoon-mascot {
  width: 88px;
  height: 88px;
  margin-bottom: 20px;
  border: 3px solid #111;
  border-radius: 50%;
  background: #fff;
  box-shadow: 6px 6px 0 #ffd51f;
  transform: none;
}

.cartoon-mascot::before {
  content: "";
  top: -3px;
  left: 14px;
  bottom: auto;
  width: 54px;
  height: 25px;
  border: 3px solid #111;
  border-radius: 50% 50% 42% 42%;
  background: #111;
  transform: rotate(-4deg);
}

.cartoon-mascot::after {
  content: none;
}

.mascot-eye {
  top: 42px;
  width: 7px;
  height: 10px;
  background: #111;
}

.mascot-eye.left {
  left: 26px;
}

.mascot-eye.right {
  right: 26px;
}

.mascot-smile {
  display: block;
  left: 32px;
  bottom: 18px;
  width: 22px;
  height: 10px;
  border-bottom: 3px solid #111;
  border-radius: 50%;
}

.eyebrow {
  min-height: 26px;
  padding: 3px 9px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd51f;
  color: #111;
  font-family: inherit;
  font-size: 12px;
  transform: none;
}

.workspace-head .eyebrow {
  color: #111;
}

.link-card {
  padding: 8px;
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 7px 7px 0 #111;
  transform: none;
}

.link-card input {
  height: 54px;
  border: 2px solid #111;
  border-radius: 6px;
  font-size: 17px;
}

.link-card button {
  height: 54px;
  border: 2px solid #111;
  border-radius: 6px;
  background: #ffd51f;
  color: #111;
  box-shadow: 3px 3px 0 #111;
}

.brand,
.status-pill,
.mode-pill,
.back-link {
  border: 2px solid #111;
  border-radius: 7px;
  background: #fff;
  color: #111;
  box-shadow: 3px 3px 0 #111;
}

.video-shell,
.glass-card,
.highlight-card {
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 5px 5px 0 #111;
}

.highlight-card {
  transform: none;
}

.highlight-track::before {
  height: 4px;
  background: #111;
}

.highlight-fill,
.highlight-handle {
  background: #ffd51f;
}

.highlight-fill {
  height: 4px;
}

.highlight-handle,
.highlight-marker {
  border: 2px solid #111;
}

.highlight-marker {
  background: #fff;
}

.highlight-list button,
.highlight-list button:nth-child(2n) {
  border: 2px solid #111;
  border-radius: 6px;
  background: #fff;
  color: #111;
  box-shadow: 2px 2px 0 #111;
  transform: none;
}

.highlight-list button.active {
  border-color: #111;
  background: #ffd51f;
}

.segmented {
  border: 3px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 4px 4px 0 #111;
}

.segmented button {
  border-radius: 5px;
}

.segmented .active,
.caption-language button.active {
  background: #ffd51f;
  color: #111;
}

.card-label {
  color: rgba(17, 17, 17, 0.46);
  font-family: inherit;
  font-size: 11px;
}

.play-button,
.play-button.is-playing {
  border: 2px solid #111;
  background: #ffd51f;
  color: #111;
  box-shadow: 2px 2px 0 #111;
}

.audio-timeline input::-webkit-slider-runnable-track {
  background: #111;
}

.audio-timeline input::-webkit-slider-thumb {
  border-color: #111;
  background: #ffd51f;
}

.caption-language {
  border: 2px solid #111;
  border-radius: 6px;
}

.caption-line.active::before,
.summary-line.active::before {
  border: 2px solid #111;
  border-radius: 5px;
  background: #fff4a8;
  color: #111;
  transform: none;
}

@media (max-width: 620px) {
  .cartoon-mascot {
    width: 72px;
    height: 72px;
  }

  .cartoon-mascot::before {
    left: 11px;
    width: 44px;
  }

  .mascot-eye {
    top: 35px;
  }

  .mascot-eye.left {
    left: 21px;
  }

  .mascot-eye.right {
    right: 21px;
  }

  .mascot-smile {
    left: 26px;
    bottom: 13px;
  }
}

/* Compact workspace header stays last in the cascade. */
.workspace {
  padding-top: 12px;
}

.workspace-head {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 10px;
}

.workspace-head .eyebrow {
  display: none;
}

.workspace-head .back-link {
  padding: 7px 11px;
}

.workspace h2 {
  font-size: clamp(19px, 1.8vw, 27px);
}

@media (max-width: 620px) {
  .workspace-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .login-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .workspace-head > div {
    grid-column: 1 / -1;
  }
}
