@import url("./site-theme.css");

:root {
  --bg: var(--site-bg);
  --panel: var(--site-surface);
  --panel-soft: var(--site-surface-soft);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.52);
  --line: var(--site-line-strong);
  --line-soft: var(--site-line);
  --accent: var(--site-accent);
  --frame: min(1344px, calc(100vw - 96px));
  --article: min(860px, 100vw);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family:
    Poppins,
    Inter,
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    ui-sans-serif,
    system-ui,
    sans-serif;
  letter-spacing: 0;
}

body.preview-open {
  overflow: hidden;
}

body.share-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.academy-bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 220ms ease;
}

.academy-bar.is-hidden {
  transform: translateY(-100%);
}

.academy-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: opacity 180ms ease;
}

.academy-bar a:hover,
.academy-bar a:focus-visible {
  opacity: 0.78;
  outline: none;
}

.academy-bar a::after,
.article-primary-link::after,
.library-link::after,
.back-link::before {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transition: color 180ms ease, transform 180ms ease;
}

.academy-bar a::after,
.article-primary-link::after,
.library-link::after {
  content: "→";
}

.back-link::before {
  content: "←";
}

.academy-bar a:hover::after,
.academy-bar a:focus-visible::after,
.article-primary-link:hover::after,
.article-primary-link:focus-visible::after,
.library-link:hover::after,
.library-link:focus-visible::after {
  transform: translateX(4px);
}

.back-link:hover::before,
.back-link:focus-visible::before {
  transform: translateX(-4px);
}

.academy-close {
  position: absolute;
  right: max(18px, calc((100vw - var(--frame)) / 2));
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.clone-nav {
  position: fixed;
  inset: 40px 0 auto;
  z-index: 70;
  height: 80px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: top 220ms ease, background 220ms ease;
}

.academy-bar.is-hidden + .clone-nav {
  top: 0;
}

body.promo-hidden .clone-nav {
  top: 0;
}

.clone-nav-inner {
  width: var(--frame);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.clone-brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 31px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.clone-links {
  display: flex;
  align-items: center;
  gap: 38px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
}

.clone-links a {
  position: relative;
  transition: opacity 180ms ease;
}

.clone-links a:hover {
  opacity: 0.7;
}

.clone-links a[aria-current="page"]::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--accent);
  content: "";
}

.menu-toggle {
  display: none;
  width: 32px;
  height: 26px;
  border: 0;
  padding: 0;
  background: linear-gradient(#fff, #fff) left top / 32px 2px no-repeat,
    linear-gradient(#fff, #fff) left center / 32px 2px no-repeat,
    linear-gradient(#fff, #fff) left bottom / 32px 2px no-repeat;
  cursor: pointer;
}

.mobile-panel {
  position: fixed;
  inset: 104px 16px auto;
  z-index: 90;
  display: none;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(15, 15, 15, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.mobile-panel.is-open {
  display: grid;
  gap: 14px;
}

.mobile-panel a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 700;
}

.logs-page-main {
  padding-top: 120px;
}

.logs-hero {
  width: var(--frame);
  margin: 0 auto;
  padding: 12px 0 57px;
}

.eyebrow {
  display: block;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logs-hero h1,
.article-hero h1 {
  margin: 0;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0;
}

.logs-hero h1 {
  font-size: clamp(52px, 4.2vw, 72px);
  line-height: 1.06;
}

.logs-hero p {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.62;
}

.logs-section {
  border-top: 1px solid var(--line);
}

.logs-section-inner {
  width: var(--frame);
  margin: 0 auto;
  padding: 68px 0 clamp(80px, 7vw, 112px);
}

.logs-section + .logs-section .logs-section-inner {
  padding-top: 64px;
}

.logs-page-main > .logs-section:last-child .logs-section-inner {
  padding-bottom: clamp(96px, 8vw, 144px);
}

.section-label {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logs-section h2 {
  margin: 0 0 40px;
  color: #fff;
  font-size: clamp(30px, 2.05vw, 34px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0;
}

.logs-section p.section-copy {
  max-width: 650px;
  margin: -34px 0 48px;
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

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

.log-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 553px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 180ms ease, transform 180ms ease;
}

.log-card:hover,
.log-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
  outline: none;
}

.log-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0a0a0a;
}

.log-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.84) saturate(0.98);
  transition: transform 700ms ease, filter 220ms ease;
}

.log-card:hover .log-card-media img,
.log-card:focus-visible .log-card-media img {
  transform: scale(1.05);
  filter: brightness(0.96) saturate(1.05);
}

.log-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 32px;
}

.log-date {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.log-card-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  min-height: 54px;
  margin-bottom: 13px;
  gap: 18px;
  align-items: start;
}

.log-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.log-card p {
  display: -webkit-box;
  min-height: 68px;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-list {
  display: flex;
  min-height: 56px;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin-top: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease, transform 180ms ease;
}

.log-card:hover .card-arrow,
.log-card:focus-visible .card-arrow {
  color: #fff;
  transform: translateX(4px);
}

.article-hero {
  position: relative;
  min-height: 100svh;
  margin-top: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.article-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.article-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--article-hero-position, center top);
  opacity: 0.5;
  transform: scale(1.1);
  transform-origin: top;
}

@media (max-width: 640px) {
  .article-hero-image img {
    object-position: var(--article-hero-position-mobile, var(--article-hero-position, center top));
  }
}

.article-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.18) 0%, rgba(10, 10, 10, 0.15) 54%, #0a0a0a 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.75) 0%, transparent 26%, transparent 72%, rgba(10, 10, 10, 0.65) 100%);
  content: "";
}

.article-hero.is-linchong .article-hero-image img {
  object-position: center;
  opacity: 0.62;
  transform: scale(1.03);
}

.article-hero.is-linchong {
  min-height: 100svh;
}

.article-hero.is-linchong::after {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.12) 0%, rgba(10, 10, 10, 0.22) 56%, #0a0a0a 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.76) 0%, transparent 28%, transparent 70%, rgba(10, 10, 10, 0.7) 100%);
}

.article-hero.is-feishu-article {
  min-height: 100svh;
}

.article-hero.is-feishu-article .article-hero-image img {
  opacity: 0.52;
  transform: scale(1.04);
}

.article-hero.is-feishu-article::after {
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.14) 0%, rgba(10, 10, 10, 0.24) 55%, #0a0a0a 100%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.82) 0%, transparent 34%, transparent 70%, rgba(10, 10, 10, 0.7) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0 64px 64px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-tags .tag {
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
}

.article-date {
  display: block;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero h1 {
  max-width: 760px;
  font-size: 58px;
  line-height: 1.08;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-body {
  width: var(--article);
  margin: 0 auto;
  padding: 80px 48px 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 64px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 800;
  transition: color 180ms ease;
}

.back-link:hover {
  color: #fff;
}

.article-lead {
  margin: 0 0 64px;
  padding: 0 0 48px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.625;
}

.article-body figure {
  margin: 0 0 48px;
}

.article-body figure img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

.article-body figcaption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
  font-weight: 700;
}

.article-showcase {
  width: 100%;
  margin: 0 0 64px;
}

.article-video-frame {
  margin: 0 0 26px;
}

.article-video-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 1800 / 764;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: var(--site-bg);
  object-fit: cover;
}

.branded-video-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background: var(--site-bg);
  isolation: isolate;
}

.article-inline-video .branded-video-shell {
  border-radius: 10px;
}

.branded-video-shell video {
  position: relative;
  z-index: 1;
}

.branded-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 14px 38px rgba(255, 0, 80, 0.3);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.branded-video-play:hover {
  background: #ff2468;
  box-shadow: 0 16px 44px rgba(255, 0, 80, 0.42);
  transform: translate(-50%, -50%) scale(1.06);
}

.branded-video-play:focus-visible {
  outline: 3px solid rgba(255, 0, 80, 0.35);
  outline-offset: 5px;
}

.branded-video-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid currentColor;
}

.branded-video-shell.is-playing .branded-video-play {
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.86);
}

.branded-video-shell.has-error .branded-video-play {
  cursor: not-allowed;
  opacity: 0.45;
}

.article-still-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.article-still-grid.is-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-still-grid figure {
  margin: 0;
}

.article-still-grid img {
  width: 100%;
  aspect-ratio: 1800 / 764;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  object-fit: cover;
  cursor: zoom-in;
  transition: border-color 180ms ease, filter 180ms ease, transform 180ms ease;
}

.article-still-grid img:hover,
.article-still-grid img:focus-visible {
  border-color: rgba(255, 255, 255, 0.22);
  filter: brightness(1.08);
  outline: none;
  transform: translateY(-1px);
}

.article-cover-frame img {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.article-cover-frame img,
.article-inline-image img {
  cursor: zoom-in;
  transition: border-color 180ms ease, filter 180ms ease;
}

.article-cover-frame img:hover,
.article-cover-frame img:focus-visible,
.article-inline-image img:hover,
.article-inline-image img:focus-visible {
  border-color: rgba(255, 255, 255, 0.24);
  filter: brightness(1.06);
  outline: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 82px 48px 58px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(16px);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox img {
  display: block;
  max-width: min(1280px, calc(100vw - 96px));
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
}

.image-lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 28px;
  width: min(760px, calc(100vw - 48px));
  margin: 0;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}

.image-lightbox-close:hover,
.image-lightbox-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.article-section {
  padding: 0 0 44px;
  margin: 0 0 54px;
}

.article-section h2 {
  margin: 56px 0 20px;
  color: #fff;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-wrap: balance;
}

.article-section h2:first-child {
  margin-top: 0;
}

.article-section p,
.article-section li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.625;
}

.article-section p {
  margin: 0 0 24px;
}

.article-body .article-inline-image {
  width: 100%;
  margin: 48px 0;
}

.article-body .article-inline-video {
  width: 100%;
  margin: 48px 0;
}

.article-inline-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--site-bg);
  object-fit: contain;
}

.article-inline-video figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .branded-video-play {
    width: 54px;
    height: 54px;
  }

  .branded-video-play-icon {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
  }
}

.article-inline-image img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
}

.article-inline-image figcaption {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.article-section ul {
  display: grid;
  gap: 9px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.article-section li::before {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.4);
  content: "- ";
}

.article-table-wrap {
  width: 100%;
  margin: 30px 0 36px;
  overflow-x: auto;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.article-table th,
.article-table td {
  min-width: 160px;
  padding: 17px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
  vertical-align: top;
}

.article-table th {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-panel {
  box-sizing: border-box;
  width: 100%;
  margin: 30px 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  background: #0d0d0d;
}

.prompt-panel + .prompt-panel {
  margin-top: -18px;
}

.prompt-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 13px 16px 13px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prompt-panel-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.prompt-panel-label {
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prompt-panel-title {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prompt-copy {
  flex: 0 0 auto;
  min-width: 112px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 0, 70, 0.24);
  border-radius: 6px;
  background: rgba(255, 0, 70, 0.07);
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.prompt-copy:hover,
.prompt-copy:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 0, 70, 0.15);
  color: #ff2862;
  outline: none;
}

.prompt-copy.is-copied {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.prompt-copy:disabled {
  cursor: default;
}

.prompt-block {
  box-sizing: border-box;
  width: 100%;
  max-height: min(54vh, 520px);
  margin: 0;
  padding: 26px 28px 34px;
  overflow-x: auto;
  overflow-y: scroll;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "PingFang SC", monospace;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
  scrollbar-width: thin;
  white-space: pre-wrap;
}

.prompt-block:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.prompt-block::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.prompt-block::-webkit-scrollbar-track {
  background: transparent;
}

.prompt-block::-webkit-scrollbar-thumb {
  border: 2px solid #0d0d0d;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.prompt-block::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.learning-module {
  box-sizing: border-box;
  width: 100%;
  margin: 42px 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #0d0d0d;
}

.learning-module-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 10px;
}

.learning-module-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.article-section .learning-module h3 {
  max-width: 640px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-wrap: balance;
}

.article-section .learning-module-intro {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.6;
}

.hotspot-progress {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.hotspot-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #080808;
}

.hotspot-stage img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hotspot-pin {
  position: absolute;
  left: var(--hotspot-x);
  top: var(--hotspot-y);
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  transform: translate(-50%, -50%);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.74);
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.22);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.hotspot-pin:hover,
.hotspot-pin:focus-visible,
.hotspot-pin.is-active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(255, 0, 70, 0.18);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

.hotspot-pin.is-seen:not(.is-active) {
  border-color: rgba(255, 0, 70, 0.8);
  color: #ff4d7d;
}

.hotspot-readout {
  display: grid;
  grid-template-columns: minmax(130px, 0.32fr) minmax(0, 1fr);
  gap: 20px;
  min-height: 68px;
  padding: 17px 2px 0;
}

.hotspot-readout strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.hotspot-readout span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.compare-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #080808;
}

.compare-image,
.compare-reveal {
  position: absolute;
  inset: 0;
}

.compare-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare-image.is-grayscale {
  filter: grayscale(1) contrast(1.12) brightness(0.92);
}

.compare-reveal {
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--compare-position)) 0 0);
}

.compare-reveal .compare-image {
  width: 100%;
}

.compare-label {
  position: absolute;
  top: 16px;
  z-index: 2;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.compare-label-before {
  right: 16px;
}

.compare-label-after {
  left: 16px;
}

.compare-handle {
  position: absolute;
  left: var(--compare-position);
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #0b0b0b;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.36);
  pointer-events: none;
}

.compare-frame::after {
  position: absolute;
  left: var(--compare-position);
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 1px;
  background: rgba(255, 255, 255, 0.88);
  content: "";
  pointer-events: none;
}

.compare-handle::before,
.compare-handle::after {
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  content: "";
}

.compare-handle::before {
  left: 9px;
  transform: translateY(-50%) rotate(-45deg);
}

.compare-handle::after {
  right: 9px;
  transform: translateY(-50%) rotate(135deg);
}

.compare-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare-range:focus-visible {
  opacity: 1;
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}

.article-section .compare-caption {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  line-height: 1.55;
}

.toggle-study .learning-module-head {
  align-items: center;
}

.toggle-study-tabs {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.toggle-study-tab {
  min-width: 72px;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.toggle-study-tab:hover,
.toggle-study-tab:focus-visible {
  color: #fff;
  outline: none;
}

.toggle-study-tab.is-active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.toggle-study-stage {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: #080808;
}

.toggle-study-panel {
  margin: 0;
}

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

.toggle-study-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.toggle-study-panel img.is-slop {
  filter: saturate(1.72) contrast(1.2) brightness(1.08);
}

.toggle-study-panel figcaption {
  padding: 16px 18px 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.article-section .toggle-study-panel p {
  margin: 0;
  padding: 18px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 14px;
  line-height: 1.65;
}

.prompt-anatomy-label {
  display: block;
  margin: 24px 0 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.prompt-anatomy-text {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: rgba(255, 255, 255, 0.7);
  font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.85;
}

.prompt-anatomy-fragment {
  box-decoration-break: clone;
  padding: 2px 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.055);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
  -webkit-box-decoration-break: clone;
}

.prompt-anatomy-fragment.is-inferred {
  border-bottom: 1px dashed rgba(255, 0, 70, 0.72);
  background: rgba(255, 0, 70, 0.06);
  color: rgba(255, 104, 145, 0.9);
}

.prompt-anatomy.has-active-slot .prompt-anatomy-fragment {
  opacity: 0.22;
}

.prompt-anatomy.has-active-slot .prompt-anatomy-fragment.is-active {
  background: rgba(255, 0, 70, 0.16);
  color: #fff;
  opacity: 1;
}

.prompt-slot-list {
  display: grid;
  gap: 7px;
}

.prompt-slot {
  display: grid;
  grid-template-columns: minmax(118px, 0.28fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  min-height: 46px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.prompt-slot strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.prompt-slot span {
  font-size: 12px;
  line-height: 1.5;
}

.prompt-slot:hover,
.prompt-slot:focus-visible,
.prompt-slot.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  outline: none;
}

.prompt-slot.is-missing {
  border-color: rgba(255, 0, 70, 0.55);
  border-style: dashed;
}

.prompt-slot.is-missing span {
  color: rgba(255, 91, 135, 0.82);
}

.prompt-slot.is-active {
  border-color: var(--accent);
}

.article-section .prompt-anatomy-readout {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  line-height: 1.6;
}

.article-callout {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  margin: 28px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
}

.article-callout.is-warning {
  border-color: rgba(255, 0, 70, 0.24);
  background: rgba(255, 0, 70, 0.035);
}

.article-callout-icon {
  display: grid;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.article-callout strong {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.article-section .article-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.article-downloads {
  display: grid;
  gap: 10px;
  margin: 28px 0;
}

.article-download-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 14px;
  min-height: 72px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #090909;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease;
}

.article-download-card:hover,
.article-download-card:focus-visible {
  border-color: rgba(255, 0, 70, 0.62);
  background: rgba(255, 0, 70, 0.025);
  outline: none;
}

.article-download-badge {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
  font-weight: 900;
}

.article-download-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.article-download-name strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-download-name small {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.article-download-icon {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  text-align: center;
}

.quiz-options {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

.quiz-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.015);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.quiz-option span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-weight: 900;
}

.quiz-option:hover,
.quiz-option:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  outline: none;
}

.quiz-option.is-correct {
  border-color: rgba(66, 203, 139, 0.7);
  background: rgba(66, 203, 139, 0.06);
  color: #fff;
}

.quiz-option.is-correct span {
  border-color: rgba(66, 203, 139, 0.8);
  background: rgba(66, 203, 139, 0.14);
  color: #85e7b9;
}

.quiz-option.is-wrong {
  border-color: rgba(255, 0, 70, 0.62);
  background: rgba(255, 0, 70, 0.055);
}

.quiz-option.is-wrong span {
  border-color: rgba(255, 0, 70, 0.72);
  color: #ff4d7d;
}

.article-section .quiz-feedback {
  margin: 16px 0 0;
  padding-left: 2px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.6;
}

.article-section .quiz-feedback.is-correct {
  color: rgba(133, 231, 185, 0.8);
}

.article-source-link {
  display: inline-flex;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-source-link:hover,
.article-source-link:focus-visible {
  color: #fff;
  outline: none;
}

.project-action-panel {
  margin: 0 0 72px;
  padding: 40px 0 52px;
}

.project-action-panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.project-action-panel p {
  max-width: 560px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.62;
}

.article-closeout {
  margin: 42px 0 96px;
  text-align: center;
}

.article-feedback {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
}

.article-feedback-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-feedback-button {
  position: relative;
  display: inline-flex;
  width: 64px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 0 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.64);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.article-feedback-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.article-feedback-button::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  z-index: 3;
  width: max-content;
  max-width: 120px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  background: #171717;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.article-feedback-button:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (hover: none) {
  .article-feedback-button::after {
    display: none;
  }
}

.article-feedback-count {
  min-width: 10px;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.article-feedback-button:hover,
.article-feedback-button:focus-visible {
  border-color: var(--accent);
  color: #fff;
  outline: none;
}

.article-feedback-button.is-selected {
  border-color: var(--accent);
  background: rgba(255, 0, 71, 0.08);
  color: var(--accent);
}

.article-feedback-button[data-feedback="like"].is-selected svg {
  fill: currentColor;
}

.article-feedback-status {
  flex: 0 0 100%;
  min-height: 20px;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.article-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  text-align: center;
}

.article-share-copy h2 {
  max-width: 640px;
  margin: 0 auto 12px;
  color: #fff;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: 0;
}

.article-share-copy p {
  max-width: 560px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.article-share-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 150px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 24px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.article-share-trigger:hover,
.article-share-trigger:focus-visible {
  opacity: 0.82;
  outline: none;
  transform: translateY(-1px);
}

.article-share-trigger-icon {
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  transition: transform 180ms ease;
}

.article-share-trigger:hover .article-share-trigger-icon,
.article-share-trigger:focus-visible .article-share-trigger-icon {
  transform: translateX(3px);
}

.article-share-status {
  width: 100%;
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.share-dialog {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 3vw, 48px);
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
}

.share-dialog[hidden] {
  display: none;
}

.share-dialog-panel {
  display: flex;
  width: min(960px, calc(100vw - 64px), calc((100svh - 64px) * 1.2));
  height: min(960px, calc(100svh - 64px));
  max-height: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
  background: #0d0d0d;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.62);
}

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

.share-dialog-head h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
}

.share-dialog-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.share-dialog-close:hover,
.share-dialog-close:focus-visible {
  border-color: rgba(255, 0, 70, 0.7);
  background: rgba(255, 0, 70, 0.08);
  color: #fff;
  outline: none;
}

.share-wechat-tip {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.share-dialog-content {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: stretch;
}

.share-poster-stage {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070707;
}

.share-poster-loading {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 700;
}

.share-poster-preview {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.share-dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.share-dialog-side {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: stretch;
  justify-content: flex-start;
  padding: 2px 0;
}

.share-action {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 0 20px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.share-action.is-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.share-action:hover,
.share-action:focus-visible {
  border-color: rgba(255, 0, 70, 0.7);
  background: rgba(255, 0, 70, 0.08);
  color: #fff;
  outline: none;
}

.share-action.is-primary:hover,
.share-action.is-primary:focus-visible {
  border-color: var(--accent);
  background: #e5003f;
}

.share-action:disabled {
  cursor: wait;
  opacity: 0.38;
}

.share-dialog-note,
.share-dialog-status {
  color: rgba(255, 255, 255, 0.36);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
}

.share-dialog-note {
  margin: 16px 0 0;
}

.share-dialog-status {
  min-height: 18px;
  margin: 8px 0 0;
}

.article-primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 38px;
  border-radius: 999px;
  padding: 0 22px;
  background: #fff;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease, opacity 180ms ease;
}

.article-primary-link:hover,
.article-primary-link:focus-visible {
  opacity: 0.82;
  transform: translateY(-1px);
  outline: none;
}

.keep-reading {
  padding: 0 0 70px;
}

.keep-reading h2 {
  margin: 0 0 28px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0;
}

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

.mini-card {
  display: block;
  transition: opacity 180ms ease;
}

.mini-card:hover {
  opacity: 0.82;
}

.mini-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(0.7);
}

.mini-card div {
  padding: 14px 0 0;
}

.mini-card h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.mini-card time {
  color: rgba(255, 255, 255, 0.32);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.subscribe-card {
  margin: 56px 0 52px;
  padding: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #111;
  text-align: center;
}

.subscribe-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
}

.subscribe-card p {
  max-width: 440px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.subscribe-form {
  display: flex;
  width: min(430px, 100%);
  margin: 0 auto;
  gap: 8px;
}

.subscribe-form input {
  min-width: 0;
  flex: 1;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  outline: none;
}

.subscribe-form button,
.library-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.library-link {
  display: flex;
  width: max-content;
  margin: 40px 0 96px;
}

.site-footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  width: var(--frame);
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
}

.site-footer h2 {
  max-width: 560px;
  margin: 0 0 22px;
  color: #fff;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.site-footer p {
  max-width: 390px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.62;
}

.footer-brand {
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
  font-weight: 700;
}

.footer-note {
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 980px) {
  :root {
    --frame: min(100%, calc(100vw - 64px));
  }

  .clone-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .logs-page-main {
    padding-top: 104px;
  }

  .logs-hero {
    padding: 28px 0 56px;
  }

  .logs-hero h1 {
    font-size: clamp(48px, 14vw, 58px);
  }

  .log-grid,
  .keep-grid,
  .site-footer-inner {
    grid-template-columns: 1fr;
  }

  .article-hero {
    min-height: 100svh;
    margin-top: 0;
  }

  .article-hero-content {
    padding: 0 48px 48px;
  }

  .article-hero h1 {
    font-size: clamp(56px, 7.3vw, 72px);
  }

  .article-still-grid {
    grid-template-columns: 1fr;
  }

  .article-still-grid.is-two-column {
    grid-template-columns: 1fr;
  }

  .article-share {
    align-items: center;
  }

  .article-feedback {
    justify-content: center;
    gap: 12px;
  }

  .article-feedback-status {
    margin-top: 0;
  }

  .article-share-trigger {
    width: max-content;
  }

  .article-share-status {
    margin-top: 12px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --frame: min(100%, calc(100vw - 64px));
    --article: 100%;
  }

  .academy-bar {
    height: 40px;
    justify-content: center;
    padding: 0 58px 0 24px;
    gap: 10px;
    overflow: hidden;
    white-space: nowrap;
  }

  .academy-bar span:first-child {
    display: none;
  }

  .academy-bar a {
    overflow: hidden;
    font-size: 0;
    text-decoration: none;
  }

  .academy-bar a::after {
    font-size: 20px;
  }

  .clone-nav {
    height: 64px;
  }

  .clone-brand {
    font-size: 29px;
  }

  .logs-hero {
    padding-top: 28px;
  }

  .eyebrow {
    margin-bottom: 30px;
  }

  .logs-hero p {
    font-size: 20px;
    line-height: 1.5;
  }

  .logs-section-inner {
    padding-top: 44px;
  }

  .logs-section h2 {
    margin-bottom: 46px;
    font-size: 28px;
  }

  .log-card {
    min-height: 0;
  }

  .log-card-body {
    padding: 28px 32px 34px;
  }

  .log-card-title-row,
  .tag-list {
    min-height: 0;
  }

  .site-footer {
    margin-top: 72px;
  }

  .site-footer-inner {
    padding-top: 48px;
  }

  .article-body {
    padding: 64px 32px 0;
  }

  .library-link {
    margin: 32px 0 72px;
  }

  .article-lead {
    font-size: 20px;
  }

  .article-hero-content {
    padding: 0 32px 32px;
  }

  .article-hero h1 {
    font-size: 34px;
    line-height: 1.12;
  }

  .article-share {
    gap: 0;
    padding: 0;
  }

  .article-closeout {
    margin: 32px 0 80px;
  }

  .article-feedback {
    margin-bottom: 32px;
    padding: 0;
  }

  .article-feedback-actions {
    gap: 11px;
  }

  .article-feedback-button {
    min-height: 40px;
    font-size: 13px;
  }

  .article-feedback-button::after {
    display: none;
  }

  .article-share-trigger {
    width: 100%;
  }

  .article-share-status {
    margin: 12px 0 0;
  }

  .share-dialog {
    align-items: flex-end;
    padding: 0;
  }

  .share-dialog-panel {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 8px 8px 0 0;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  }

  .share-poster-stage {
    min-height: 360px;
    padding: 16px;
  }

  .share-dialog-content {
    display: block;
  }

  .share-poster-preview {
    width: auto;
    max-width: 100%;
    max-height: 52svh;
  }

  .share-dialog-side {
    position: static;
  }

  .share-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 16px;
  }

  .share-action {
    padding: 0 14px;
  }

  .article-section h2 {
    font-size: 22px;
    line-height: 1.375;
  }

  .article-table {
    table-layout: fixed;
  }

  .article-table th,
  .article-table td {
    min-width: 0;
    padding: 13px 10px;
    overflow-wrap: anywhere;
  }

  .article-table th {
    font-size: 11px;
    letter-spacing: 0;
  }

  .prompt-panel-head {
    min-height: 60px;
    padding: 11px 12px 11px 20px;
  }

  .prompt-panel-title {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .prompt-copy {
    min-width: 98px;
    height: 36px;
    padding: 0 12px;
    font-size: 11px;
  }

  .prompt-block {
    max-height: 430px;
    padding: 22px 20px 28px;
    font-size: 12px;
    line-height: 1.75;
  }

  .learning-module {
    margin: 34px 0;
    padding: 20px;
  }

  .learning-module-head {
    gap: 16px;
  }

  .article-section .learning-module h3 {
    font-size: 18px;
  }

  .hotspot-stage,
  .compare-frame {
    aspect-ratio: 4 / 3;
  }

  .hotspot-readout {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 82px;
  }

  .compare-label {
    top: 10px;
  }

  .compare-label-before {
    right: 10px;
  }

  .compare-label-after {
    left: 10px;
  }

  .toggle-study .learning-module-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toggle-study-tabs {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toggle-study-tab {
    min-width: 0;
  }

  .toggle-study-panel img {
    aspect-ratio: 4 / 3;
  }

  .prompt-slot {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .prompt-anatomy-text {
    padding: 14px;
    font-size: 11px;
  }

  .article-callout {
    padding: 14px;
  }

  .subscribe-card {
    padding: 30px 20px;
  }

  .subscribe-form {
    flex-direction: column;
  }

  .image-lightbox {
    padding: 72px 20px 68px;
  }

  .image-lightbox img {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 170px);
    border-radius: 12px;
  }

  .image-lightbox-close {
    top: 18px;
    right: 18px;
  }
}
img[src$="visualized-screenwriting-cover.jpg"] {
  object-position: center 24%;
}

img[src$="director-thinking-cover.jpg"] {
  object-position: center 30%;
}

.article-hero.is-fight-skill .article-hero-image::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.26) 54%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, var(--site-bg) 100%);
}

.article-hero.is-fight-skill .article-hero-image img {
  object-position: center 45%;
}

.fight-film-section {
  padding-top: 12px;
}

.fight-preview video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #050505;
  object-fit: cover;
}

.fight-character-sheet img {
  aspect-ratio: 1672 / 941;
  background: #eee9df;
  object-fit: contain;
}

.fight-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fight-principles article {
  min-height: 250px;
  padding: 32px 28px 34px 0;
}

.fight-principles article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}

.fight-principles span {
  display: block;
  margin-bottom: 54px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.fight-principles h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.fight-principles p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.fight-skill-reveal .article-inline-image {
  margin-bottom: 0;
}

.fight-platform {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 54px;
  margin: 0 0 104px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fight-platform h2 {
  max-width: 440px;
  margin: 12px 0 18px;
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  line-height: 1.25;
}

.fight-platform p {
  max-width: 480px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.fight-platform-card {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.fight-platform-card img {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  object-fit: contain;
}

.fight-platform-card figcaption {
  margin-top: 14px;
}

@media (max-width: 760px) {
  .article-hero.is-fight-skill .article-hero-image img {
    object-position: 58% center;
  }

  .fight-principles {
    grid-template-columns: 1fr;
  }

  .fight-principles article {
    min-height: 0;
    padding: 26px 0;
  }

  .fight-principles article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding-left: 0;
  }

  .fight-principles span {
    margin-bottom: 24px;
  }

  .fight-platform {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 72px;
    padding: 40px 0;
  }

  .fight-platform h2 {
    font-size: 24px;
  }

  .fight-platform-card {
    padding: 14px;
  }
}
