:root {
  --red: #ff2442;
  --red-dark: #d71936;
  --ruangan: #ff2442;
  --ruangan-soft: #fff0f2;
  --fibro: #f97316;
  --fibro-dark: #ea580c;
  --fibro-soft: #fff4e8;
  --kezhi: #4f46e5;
  --kezhi-soft: #f0efff;
  --science: #159b72;
  --science-soft: #eefbf6;
  --ink: #15161c;
  --muted: #6b7280;
  --subtle: #9aa0ad;
  --line: #eceef3;
  --bg: #f4f5f8;
  --card: #ffffff;
  --soft: #fff0f2;
  --panel: #fbfbfd;
  --sidebar: #090b0f;
  --sidebar-soft: #141821;
  --shadow: 0 22px 60px rgba(21, 22, 28, 0.08);
  --shadow-soft: 0 12px 34px rgba(21, 22, 28, 0.055);
  --green: #159b72;
  --amber: #b7791f;
  --blue: #2563eb;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 6%, rgba(255, 36, 66, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfbfc 0%, var(--bg) 48%, #f7f7f9 100%);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 36, 66, 0.1), transparent 22%),
    var(--sidebar);
  overflow-y: auto;
}

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

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, #ff2442, #ff5570);
  box-shadow: 0 18px 40px rgba(255, 36, 66, 0.34);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  color: #fff;
  font-size: 15px;
}

.brand span {
  margin-top: 3px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  width: 100%;
  transition: 0.18s ease;
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, #ff2442, #ff4965);
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(255, 36, 66, 0.22);
}

.nav-home {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.nav-group {
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.nav-group summary {
  list-style: none;
  padding: 7px 8px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "+";
  float: right;
  color: rgba(255, 255, 255, 0.34);
}

.nav-group[open] summary::after {
  content: "-";
}

.admin-nav {
  display: none;
}

.admin-nav.visible {
  display: block;
}

.mobile-tabbar {
  display: none;
}

.nav-admin-login.unlocked {
  color: #fff;
  background: rgba(21, 155, 114, 0.24);
  font-weight: 800;
}

.main {
  min-width: 0;
  width: min(1480px, 100%);
  padding: 24px 30px 56px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 2px 4px;
}

.topbar h1 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.topbar h1,
.hero-panel h2,
.section-head h2,
.agent-card h2,
.placeholder h2 {
  margin: 0;
}

.admin-login-panel,
.admin-overview-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(23, 31, 56, 0.05);
}

.admin-login-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.admin-login-panel.hidden,
.admin-overview-panel {
  display: none;
}

.admin-overview-panel.visible {
  display: block;
}

.admin-login-panel h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.admin-login-panel p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-login-form {
  display: grid;
  gap: 12px;
}

.admin-guide-grid {
  display: grid;
  gap: 18px;
}

.admin-guide-section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fbfcfe;
}

.admin-guide-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.admin-guide-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.admin-guide-item {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #e8ebf1;
  border-radius: 10px;
  text-align: left;
  background: #fff;
}

.admin-guide-item strong {
  color: var(--ink);
  font-size: 14px;
}

.admin-guide-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-guide-item:hover {
  border-color: rgba(255, 36, 66, 0.26);
  background: #fff8f9;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0;
}

.profile-search {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

input,
select,
textarea {
  min-height: 38px;
  border: 1px solid rgba(229, 231, 235, 0.96);
  border-radius: 11px;
  padding: 0 12px;
  outline: 0;
  background: rgba(255, 255, 255, 0.96);
}

textarea {
  padding: 12px;
  line-height: 1.65;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255, 36, 66, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.08);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-visual-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1600 / 760;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 72px rgba(155, 18, 39, 0.14);
  animation: heroReveal 680ms ease both;
}

.page-visual-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 420ms ease, filter 420ms ease;
}

.page-visual-hero:hover img {
  transform: scale(1.006);
  filter: saturate(1.03) contrast(1.01);
}

.page-visual-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 28%, rgba(255, 255, 255, 0.22) 45%, transparent 62% 100%);
  opacity: 0;
  transform: translateX(-42%);
  pointer-events: none;
}

.page-visual-hero:hover::after {
  animation: heroSheen 1100ms ease;
}

.home-visual-hero {
  margin-bottom: 26px;
}

.topic-visual-hero,
.data-visual-hero {
  margin-bottom: 24px;
}

.topic-visual-hero {
  box-shadow: 0 26px 64px rgba(249, 115, 22, 0.12);
}

.data-visual-hero {
  box-shadow: 0 26px 64px rgba(124, 58, 237, 0.13);
}

.hero-motion-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-motion-item {
  position: absolute;
  display: block;
  opacity: 0;
  animation-delay: var(--motion-delay);
  animation-fill-mode: both;
}

.hero-motion-halo {
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 18px 48px rgba(255, 36, 66, 0.16),
    inset 0 0 24px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(2px);
  animation-name: heroHaloIn;
  animation-duration: 4600ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  animation-iteration-count: infinite;
}

.topic-visual-hero .hero-motion-halo {
  box-shadow:
    0 18px 48px rgba(249, 115, 22, 0.16),
    inset 0 0 24px rgba(255, 255, 255, 0.26);
}

.data-visual-hero .hero-motion-halo {
  border-color: rgba(180, 150, 255, 0.72);
  box-shadow:
    0 18px 52px rgba(124, 58, 237, 0.18),
    inset 0 0 24px rgba(255, 255, 255, 0.24);
}

.hero-motion-spark {
  width: 5%;
  height: 5%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(249, 115, 22, 0.45) 42%, transparent 70%);
  animation: heroSpark 3200ms ease-in-out infinite both;
}

.hero-motion-arrow {
  border-radius: 999px 999px 10px 10px;
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.7), rgba(236, 72, 153, 0)),
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.9), transparent 48%);
  filter: blur(0.2px);
  animation: heroArrowRise 2600ms ease-in-out infinite both;
}

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroSheen {
  0% {
    opacity: 0;
    transform: translateX(-42%);
  }
  35% {
    opacity: 0.65;
  }
  100% {
    opacity: 0;
    transform: translateX(42%);
  }
}

@keyframes heroHaloIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.96);
  }
  12% {
    opacity: 0.85;
    transform: translateY(0) scale(1);
  }
  48% {
    opacity: 0.48;
    transform: translateY(-3px) scale(1.012);
  }
  68% {
    opacity: 0;
    transform: translateY(-9px) scale(1.03);
  }
  100% {
    opacity: 0;
    transform: translateY(-9px) scale(1.03);
  }
}

@keyframes heroSpark {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
  32% {
    opacity: 0.86;
    transform: scale(1);
  }
  58% {
    opacity: 0;
    transform: scale(1.7);
  }
}

@keyframes heroArrowRise {
  0% {
    opacity: 0;
    transform: translateY(34px) scaleY(0.82);
  }
  22% {
    opacity: 0.62;
    transform: translateY(0) scaleY(1);
  }
  58% {
    opacity: 0.18;
    transform: translateY(-24px) scaleY(1.08);
  }
  100% {
    opacity: 0;
    transform: translateY(-34px) scaleY(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-visual-hero,
  .page-visual-hero img,
  .page-visual-hero:hover::after,
  .hero-motion-item {
    animation: none;
  }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 0.8fr);
  gap: 32px;
  align-items: center;
  min-height: 410px;
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(70, 12, 22, 0.9), rgba(255, 36, 66, 0.78) 54%, rgba(255, 136, 152, 0.72)),
    #b8142f;
  box-shadow: 0 28px 72px rgba(155, 18, 39, 0.2);
}

.home-carousel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-carousel-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 6, 14, 0.9), rgba(65, 10, 23, 0.68) 43%, rgba(131, 18, 38, 0.1) 72%),
    radial-gradient(circle at 78% 32%, rgba(255, 255, 255, 0.18), transparent 24%);
  z-index: 1;
}

.home-carousel-media img,
.home-carousel-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-media-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48%, 760px);
  background:
    radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.28), transparent 0 16%, rgba(255, 255, 255, 0.09) 16.5%, transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 36, 66, 0.12));
}

.home-carousel-media.slide-evidence .home-media-art {
  background:
    radial-gradient(circle at 50% 38%, rgba(122, 255, 230, 0.24), transparent 0 15%, rgba(255, 255, 255, 0.08) 15.5%, transparent 32%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(255, 36, 66, 0.1));
}

.home-carousel-media.slide-growth .home-media-art {
  background:
    radial-gradient(circle at 54% 45%, rgba(190, 184, 255, 0.25), transparent 0 16%, rgba(255, 255, 255, 0.09) 16.5%, transparent 34%),
    linear-gradient(135deg, rgba(79, 70, 229, 0.18), rgba(255, 36, 66, 0.1));
}

.home-hero-content,
.home-carousel-controls {
  position: relative;
  z-index: 2;
}

.home-hero-content {
  max-width: 690px;
}

.home-hero-english {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.home-hero h2 {
  margin: 0;
  max-width: 620px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.22;
  letter-spacing: 0;
}

.home-hero p:last-child {
  max-width: 720px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  line-height: 1.7;
}

.home-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.home-hero-actions .primary-btn {
  background: #fff;
  color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.home-hero-actions .ghost-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.home-carousel-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  inset: 50% 18px auto;
  transform: translateY(-50%);
  pointer-events: none;
}

.home-carousel-controls .icon-btn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
  pointer-events: auto;
  backdrop-filter: blur(16px);
}

.visual-orbit,
.visual-card,
.visual-portrait,
.visual-note {
  position: absolute;
  z-index: 2;
}

.visual-orbit {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.orbit-one {
  width: 360px;
  height: 360px;
  right: 16%;
  top: 7%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 62%);
}

.orbit-two {
  width: 210px;
  height: 210px;
  right: 5%;
  bottom: 11%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}

.visual-card {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06));
  box-shadow: 0 26px 60px rgba(32, 6, 13, 0.24);
  backdrop-filter: blur(18px);
}

.card-main {
  right: 12%;
  top: 26%;
  width: 230px;
  min-height: 146px;
  opacity: 0.5;
}

.card-note {
  right: 36%;
  bottom: 18%;
  width: 150px;
  min-height: 98px;
  opacity: 0.42;
}

.card-pulse {
  right: 8%;
  bottom: 29%;
  width: 104px;
  min-height: 54px;
  border-radius: 999px;
  opacity: 0.55;
}

.visual-portrait {
  right: 15%;
  top: 18%;
  width: 220px;
  height: 280px;
  border-radius: 110px 110px 28px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 50% 22%, rgba(255, 220, 226, 0.72), transparent 0 23%, rgba(255, 255, 255, 0.1) 24% 34%, transparent 35%);
  box-shadow: 0 34px 74px rgba(45, 6, 16, 0.24);
  backdrop-filter: blur(14px);
}

.portrait-head {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 228, 232, 0.92), rgba(255, 166, 181, 0.42));
  transform: translateX(-50%);
}

.portrait-body {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 132px;
  height: 106px;
  border-radius: 68px 68px 26px 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.12));
  transform: translateX(-50%);
}

.visual-note {
  width: 124px;
  height: 78px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  box-shadow: 0 24px 52px rgba(45, 6, 16, 0.18);
  backdrop-filter: blur(12px);
}

.visual-note::before,
.visual-note::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.visual-note::before {
  top: 22px;
}

.visual-note::after {
  top: 40px;
  right: 42px;
}

.note-one {
  right: 43%;
  top: 24%;
  transform: rotate(-8deg);
}

.note-two {
  right: 7%;
  top: 55%;
  transform: rotate(7deg);
}

.home-score {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid #f0f1f5;
  border-radius: 18px;
  background: #fff;
}

.home-score span,
.home-card span,
.home-card em {
  color: var(--muted);
  font-size: 12px;
}

.home-score strong {
  color: var(--red);
  font-size: 42px;
  line-height: 1;
}

.home-score em {
  color: var(--ink);
  font-style: normal;
  font-weight: 800;
}

.home-section {
  margin-top: 24px;
}

.section-head.compact {
  margin: 20px 0 12px;
}

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

.home-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 16px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), #fff),
    #fff;
  box-shadow: var(--shadow-soft);
  transition: 0.18s ease;
}

.home-card.admin {
  background: #fbfbfd;
}

.home-card strong {
  font-size: 17px;
  line-height: 1.35;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-card:hover {
  border-color: rgba(255, 36, 66, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(255, 36, 66, 0.08);
}

.capability-radar {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 14px;
}

.capability-summary,
.capability-card {
  border: 1px solid #eef0f5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 31, 56, 0.04);
}

.capability-summary {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 36, 66, 0.08), rgba(23, 107, 135, 0.06)),
    #fff;
}

.capability-summary span,
.capability-summary em,
.capability-card span,
.capability-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.capability-summary strong {
  color: var(--red);
  font-size: 46px;
  line-height: 1;
}

.capability-summary p,
.capability-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.capability-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  min-height: 154px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
}

.capability-card strong,
.capability-card em,
.capability-card span,
.capability-card p {
  display: block;
}

.capability-card strong {
  margin-top: 5px;
  font-size: 15px;
  line-height: 1.35;
}

.capability-card b {
  align-self: start;
  min-width: 42px;
  padding: 8px 0;
  border-radius: 12px;
  text-align: center;
  color: var(--red);
  background: rgba(255, 36, 66, 0.08);
}

.capability-card p {
  grid-column: 1 / -1;
  font-size: 12px;
}

.capability-card.ready {
  border-color: rgba(21, 155, 114, 0.22);
}

.capability-card.ready b {
  color: #159b72;
  background: rgba(21, 155, 114, 0.08);
}

.capability-card.watch {
  border-color: rgba(183, 121, 31, 0.22);
}

.capability-card.watch b {
  color: #b7791f;
  background: rgba(183, 121, 31, 0.1);
}

.capability-card.blocked {
  border-color: rgba(255, 36, 66, 0.24);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 14px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 36, 66, 0.1), transparent 40%),
    linear-gradient(90deg, rgba(20, 184, 166, 0.08), transparent 36%),
    #fff;
  box-shadow: 0 18px 42px rgba(23, 31, 56, 0.055);
}

.hero-panel .eyebrow {
  color: var(--red);
}

.hero-panel h2 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-panel p:last-child {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  padding: 16px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-actions span,
.hero-actions strong {
  display: block;
}

.hero-actions span {
  color: var(--muted);
}

.hero-actions strong {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.35;
  white-space: nowrap;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin: 28px 0 14px;
}

.section-head h2 {
  font-size: 21px;
  letter-spacing: 0;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.pill-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.square-tools {
  display: grid;
  grid-template-columns: 130px minmax(220px, 1fr) 160px;
  gap: 10px;
  align-items: center;
}

.square-tools input,
.square-tools select {
  width: 100%;
}

.pill {
  border: 1px solid #e7e9ef;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: #fff;
}

.pill.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.theme-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.theme-card {
  min-height: 76px;
  border: 1px solid #e9ebf1;
  border-radius: 10px;
  padding: 11px 12px;
  text-align: left;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 31, 56, 0.035);
}

.theme-card.active {
  border-color: rgba(255, 36, 66, 0.38);
  background: linear-gradient(180deg, #fff, #fff6f7);
}

.theme-card.theme-ruangan {
  border-color: rgba(180, 90, 60, 0.22);
}

.theme-card.theme-ruangan.active {
  border-color: rgba(180, 90, 60, 0.48);
  background: linear-gradient(180deg, #fff, var(--ruangan-soft));
}

.theme-card.theme-fibroscan {
  border-color: rgba(249, 115, 22, 0.24);
}

.theme-card.theme-fibroscan.active {
  border-color: rgba(249, 115, 22, 0.5);
  background: linear-gradient(180deg, #fff, var(--fibro-soft));
}

.theme-card.theme-kezhi {
  border-color: rgba(79, 125, 87, 0.24);
}

.theme-card.theme-kezhi.active {
  border-color: rgba(79, 125, 87, 0.5);
  background: linear-gradient(180deg, #fff, var(--kezhi-soft));
}

.theme-card span,
.theme-card strong,
.theme-card em {
  display: block;
}

.theme-card span {
  color: #495060;
  font-weight: 800;
  font-size: 12px;
}

.theme-card strong {
  margin-top: 7px;
  line-height: 1.4;
  font-size: 14px;
}

.theme-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.topic-grid {
  display: grid;
  gap: 28px;
}

.topic-section {
  display: grid;
  gap: 12px;
}

.topic-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px;
}

.topic-section-head span,
.topic-section-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.topic-section-head h3 {
  margin: 4px 0 0;
  font-size: 19px;
  line-height: 1.3;
}

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

.topic-card,
.agent-card,
.side-card,
.draft-card,
.task-card,
.placeholder {
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.topic-card {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 360px;
  border-radius: 16px;
}

.topic-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
}

.topic-no {
  display: inline-flex;
  min-width: 58px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(30, 31, 36, 0.08);
  border-radius: 999px;
  color: #111318;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: inset 0 -8px 18px rgba(255, 36, 66, 0.05);
}

.topic-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
  color: #5b6270;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.topic-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.topic-card h3 {
  margin: 0;
  line-height: 1.35;
  font-size: 17px;
  letter-spacing: 0;
}

.topic-card p {
  margin: 0;
  color: #737986;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topic-hook {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 12px;
  color: #555b68;
  line-height: 1.5;
  background: #f7f8fb;
}

.topic-hook strong,
.topic-keywords strong,
.topic-angles strong,
.topic-viral strong,
.topic-reference strong {
  color: var(--ink);
  font-size: 12px;
}

.topic-hook span {
  display: block;
}

.topic-keywords,
.topic-viral,
.topic-reference {
  display: grid;
  gap: 7px;
}

.topic-viral {
  padding: 10px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 12px;
  background: #fff7f8;
}

.topic-viral span,
.topic-viral em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.topic-viral span {
  color: var(--ink);
  font-weight: 800;
}

.compact-reference {
  padding: 0;
}

.compact-reference strong {
  display: block;
  margin-bottom: 6px;
}

.viral-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.viral-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #4b5565;
  background: #f4f6fa;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.viral-link-row a:hover {
  color: var(--red);
  background: #fff0f3;
}

.topic-card-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: auto;
  padding-top: 2px;
}

.compact-tags {
  margin-bottom: 9px;
}

.topic-angles {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid #f0f1f5;
  border-radius: 12px;
  background: #fff;
}

.topic-angles div {
  display: grid;
  gap: 3px;
  padding-top: 8px;
  border-top: 1px solid #f2f3f7;
}

.topic-angles div:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.topic-angles span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.topic-angles em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.smart-signal {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.smart-signal.compact {
  margin-top: 10px;
  padding: 8px 9px;
}

.smart-signal strong,
.smart-signal span {
  display: block;
}

.smart-signal strong {
  font-size: 12px;
  font-weight: 900;
}

.smart-signal span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.smart-signal.hot {
  border-color: rgba(217, 31, 57, 0.2);
  background: #fff5f6;
}

.smart-signal.hot strong,
.smart-pill.hot {
  color: var(--red);
}

.smart-signal.warn,
.smart-signal.watch {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.smart-signal.warn strong,
.smart-signal.watch strong,
.smart-pill.warn,
.smart-pill.watch {
  color: var(--amber);
}

.smart-signal.steady {
  border-color: rgba(21, 155, 114, 0.18);
  background: #f1fbf7;
}

.smart-signal.steady strong,
.smart-pill.steady {
  color: var(--green);
}

.smart-pill {
  font-size: 12px;
  font-weight: 900;
}

.smart-assignees {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px dashed rgba(23, 31, 56, 0.18);
  border-radius: 12px;
  background: #fff;
}

.smart-assignees strong,
.smart-assignees span {
  display: block;
}

.smart-assignees strong {
  font-size: 12px;
}

.smart-assignees span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.smart-assignees .ghost-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.topic-card::before {
  content: "";
  display: block;
  height: 3px;
  width: 76px;
  border-radius: 999px;
  background: var(--red);
  margin-bottom: 0;
}

.topic-card.topic-ruangan::before {
  background: var(--ruangan);
}

.topic-card.topic-ruangan .topic-meta span:first-child,
.theme-card.theme-ruangan span {
  color: var(--ruangan);
}

.topic-card.topic-ruangan .topic-hook {
  background: var(--ruangan-soft);
}

.topic-card.topic-ruangan .topic-viral {
  border-color: rgba(255, 36, 66, 0.18);
  background: #fff9fa;
}

.topic-section-ruangan .topic-section-head span,
.topic-section-ruangan .topic-section-head h3 {
  color: var(--ruangan);
}

.topic-card.topic-fibroscan::before {
  background: var(--fibro);
}

.topic-card.topic-fibroscan .topic-meta span:first-child,
.theme-card.theme-fibroscan span {
  color: var(--fibro);
}

.topic-card.topic-fibroscan .topic-hook {
  background: var(--fibro-soft);
}

.topic-card.topic-fibroscan .topic-viral {
  border-color: rgba(249, 115, 22, 0.2);
  background: #fffaf4;
}

.topic-card.topic-fibroscan .viral-link-row a:hover {
  color: var(--fibro);
  background: var(--fibro-soft);
}

.topic-section-fibroscan .topic-section-head span,
.topic-section-fibroscan .topic-section-head h3 {
  color: var(--fibro);
}

.topic-card.topic-kezhi::before {
  background: var(--kezhi);
}

.topic-card.topic-kezhi .topic-meta span:first-child,
.theme-card.theme-kezhi span {
  color: var(--kezhi);
}

.topic-card.topic-kezhi .topic-hook {
  background: var(--kezhi-soft);
}

.topic-card.topic-kezhi .topic-viral {
  border-color: rgba(37, 99, 235, 0.18);
  background: #f8fbff;
}

.topic-card.topic-kezhi .viral-link-row a:hover {
  color: var(--kezhi);
  background: var(--kezhi-soft);
}

.topic-section-kezhi .topic-section-head span,
.topic-section-kezhi .topic-section-head h3 {
  color: var(--kezhi);
}

.topic-card.topic-visual-science::before {
  background: var(--science);
}

.topic-card.topic-visual-science .topic-meta span:first-child,
.theme-card.theme-science span {
  color: var(--science);
}

.topic-card.topic-visual-science .topic-hook {
  background: var(--science-soft);
}

.topic-card.topic-visual-science .topic-viral {
  border-color: rgba(21, 155, 114, 0.2);
  background: #f8fffc;
}

.topic-card.topic-visual-science .viral-link-row a:hover {
  color: var(--science);
  background: var(--science-soft);
}

.topic-section-science .topic-section-head span,
.topic-section-science .topic-section-head h3 {
  color: var(--science);
}

.tag-row,
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #525866;
  background: #f2f4f8;
}

.tag.green {
  color: #14715a;
  background: #eaf7f2;
}

.tag.blue {
  color: #236078;
  background: #edf7fb;
}

.tag.ai-tag {
  color: #7a2240;
  background: #fff0f4;
  border: 1px solid #ffd6df;
}

.topic-card.topic-ruangan .tag:first-child {
  color: var(--ruangan);
  background: var(--ruangan-soft);
}

.topic-card.topic-fibroscan .tag:first-child {
  color: var(--fibro);
  background: var(--fibro-soft);
}

.topic-card.topic-kezhi .tag:first-child {
  color: var(--kezhi);
  background: var(--kezhi-soft);
}

.quota {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.quota-bar {
  height: 8px;
  border-radius: 999px;
  background: #f0f1f5;
  overflow: hidden;
}

.quota-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

.topic-card.topic-ruangan .quota-bar span {
  background: var(--ruangan);
}

.topic-card.topic-fibroscan .quota-bar span {
  background: var(--fibro);
}

.topic-card.topic-kezhi .quota-bar span {
  background: var(--kezhi);
}

.topic-card.topic-visual-science .tag:first-child {
  color: var(--science);
  background: var(--science-soft);
}

.topic-card.topic-visual-science .quota-bar span {
  background: var(--science);
}

.topic-participants {
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  border-radius: 12px;
  background: #fbfcfe;
}

.topic-participants strong {
  font-size: 12px;
}

.topic-participants span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.generation-angle-panel {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(30, 31, 36, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(23, 31, 56, 0.04);
}

.generation-angle-panel h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

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

.generation-angle {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 12px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  text-align: left;
  background: #fbfcfe;
}

.generation-angle:hover {
  border-color: rgba(255, 36, 66, 0.32);
  background: #fff7f8;
}

.generation-angle strong {
  color: var(--ink);
  font-size: 13px;
}

.generation-angle span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.text-btn,
.icon-btn {
  border: 0;
  min-height: 40px;
  border-radius: 11px;
  padding: 0 14px;
  transition: 0.18s ease;
}

.primary-btn {
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #ff2442, #ff526c);
  box-shadow: 0 12px 26px rgba(255, 36, 66, 0.2);
}

.topic-card.topic-ruangan .primary-btn {
  background: var(--ruangan);
  box-shadow: 0 10px 22px rgba(180, 90, 60, 0.15);
}

.topic-card.topic-fibroscan .primary-btn {
  background: linear-gradient(135deg, var(--fibro), #fb923c);
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.18);
}

.topic-card.topic-kezhi .primary-btn {
  background: var(--kezhi);
  box-shadow: 0 10px 22px rgba(79, 125, 87, 0.15);
}

.topic-card.topic-visual-science .primary-btn {
  background: var(--science);
  box-shadow: 0 10px 22px rgba(21, 155, 114, 0.16);
}

.primary-btn:hover {
  background: linear-gradient(135deg, var(--red-dark), #ff405c);
  transform: translateY(-1px);
}

.topic-card.topic-visual-science .primary-btn:hover {
  background: #0f7d5d;
}

.secondary-btn {
  color: var(--red);
  font-weight: 700;
  background: linear-gradient(180deg, #fff7f8, var(--soft));
}

.ghost-btn {
  color: #4d5260;
  border: 1px solid rgba(229, 231, 235, 0.88);
  background: #fff;
}

.text-btn {
  color: var(--red);
  background: transparent;
  padding: 0;
}

.icon-btn {
  width: 38px;
  padding: 0;
  font-size: 24px;
  color: var(--muted);
  background: #fff;
}

.wide {
  width: 100%;
}

.generator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 16px;
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.cover-studio-layout {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  gap: 18px;
}

.cover-flow-steps {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.cover-flow-steps span {
  flex: 1 1 0;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 6px;
  border: 1px solid rgba(255, 36, 66, 0.14);
  border-radius: 999px;
  color: #7c2d3f;
  background: #fff5f6;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.cover-agent-rule {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
  padding: 12px;
  border: 1px solid rgba(21, 155, 114, 0.16);
  border-radius: 14px;
  background: #f7fffb;
}

.cover-agent-rule span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cover-agent-rule strong {
  color: #159b72;
}

.marker-controls {
  display: grid;
  gap: 10px;
  margin: 4px 0 14px;
  padding: 12px;
  border: 1px solid rgba(255, 36, 66, 0.12);
  border-radius: 14px;
  background: #fff8f9;
}

.marker-controls .table-head {
  margin-bottom: 0;
}

.marker-controls .table-head h3 {
  margin: 0;
  font-size: 14px;
}

.marker-controls .table-head span {
  font-size: 12px;
}

.marker-controls input[type="range"] {
  padding: 0;
}

.marker-controls input[type="color"] {
  height: 42px;
  padding: 4px;
  cursor: pointer;
}

.cover-agent-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.cover-metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.cover-metrics-grid .metric-card {
  min-height: 92px;
  padding: 12px;
  border-radius: 14px;
}

.cover-metrics-grid .metric-card strong {
  margin-top: 8px;
  font-size: 22px;
}

.compact-cover-agent {
  grid-template-columns: 150px minmax(0, 1fr) 230px;
  margin-bottom: 0;
}

.compact-cover-agent .board-agent-score,
.compact-cover-agent .board-agent-brief,
.compact-cover-agent .board-agent-next {
  padding: 13px;
  border-radius: 14px;
}

.compact-cover-agent .board-agent-score strong {
  font-size: 36px;
}

.cover-agent-actions {
  justify-content: flex-end;
}

.compact-cover-library {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.compact-cover-library .cover-library-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cover-library-actions {
  justify-content: flex-start;
  margin: 10px 0 12px;
}

.cover-quality-card {
  margin-bottom: 2px;
}

.cover-preview-grid {
  display: grid;
  grid-template-columns: 300px minmax(520px, 1fr);
  gap: 16px;
  align-items: start;
}

.selected-cover-preview {
  min-height: 0;
  max-width: 300px;
}

.cover-base-gallery {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.cover-base-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 8px;
}

.cover-base-card {
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.cover-base-card.active {
  border-color: #ff2442;
  box-shadow: 0 10px 24px rgba(255, 36, 66, 0.13);
}

.cover-base-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 9px;
  object-fit: cover;
  background: #f7f8fb;
}

.cover-base-card span {
  font-size: 11px;
  line-height: 1.25;
}

.image-title-options {
  margin: 4px 0 8px;
}

.image-title-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.asset-preview {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.asset-preview img,
.asset-preview span {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.asset-preview img {
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.asset-preview span {
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: #6b7280;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
}

.asset-preview strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.asset-preview.empty strong {
  color: var(--muted);
}

.cover-preview {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 28%, #ffffff);
  border-radius: 16px;
  background: var(--cover-bg);
  box-shadow: 0 18px 42px rgba(21, 24, 35, 0.06);
}

.studio-cover-thumb {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #fff;
}

.studio-cover-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-cover-meta {
  display: grid;
  gap: 6px;
}

.cover-library-card {
  margin: 18px 0;
}

.cover-library-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.cover-library-summary::-webkit-details-marker {
  display: none;
}

.cover-library-summary h3 {
  margin: 0 0 4px;
}

.cover-library-summary span {
  color: var(--muted);
}

.cover-library-card[open] .cover-library-grid {
  margin-top: 14px;
}

.cover-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cover-master-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--cover-accent) 24%, #ffffff);
  border-radius: 14px;
  background: var(--cover-bg);
}

.cover-master-card span {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--cover-accent);
  font-size: 11px;
  font-weight: 800;
}

.cover-master-card strong {
  font-size: 17px;
  line-height: 1.28;
}

.cover-master-card p,
.cover-master-card em {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
  font-style: normal;
}

.cover-master-card .ghost-btn {
  align-self: end;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.cover-master-card .secondary-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.cover-preview span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--cover-accent);
  font-size: 12px;
  font-weight: 800;
}

.cover-preview strong {
  font-size: 25px;
  line-height: 1.18;
}

.cover-preview p {
  margin: 0;
  color: #535b69;
  line-height: 1.55;
}

.cover-ai-score {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 3px 9px;
  align-items: center;
  padding: 9px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.66);
}

.cover-ai-score strong {
  grid-row: 1 / span 2;
  color: var(--cover-accent);
  font-size: 24px;
}

.cover-ai-score em,
.cover-ai-score small {
  display: block;
}

.cover-ai-score em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.cover-ai-score small {
  color: #5b6370;
  line-height: 1.35;
}

.cover-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.cover-keywords em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--cover-accent);
  background: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.cover-preview small {
  color: #5b6370;
}

.cover-history-card {
  margin-top: 14px;
}

.generator-main {
  display: grid;
  gap: 16px;
}

.topic-summary {
  padding: 18px;
  border: 1px solid #ffd6dd;
  border-radius: 16px;
  color: var(--ink);
  background: #fff7f8;
}

.topic-summary h2 {
  margin: 0 0 8px;
}

.topic-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.agent-card,
.side-card,
.draft-card,
.task-card,
.placeholder {
  padding: 16px;
}

.agent-head,
.modal-head,
.draft-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.counter {
  display: inline-flex;
  min-width: 50px;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--red);
  background: var(--soft);
  font-weight: 800;
}

.choice-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

label {
  display: grid;
  gap: 7px;
  color: #404552;
  font-size: 13px;
  font-weight: 700;
}

.hidden-field {
  display: none;
}

.hidden-field.visible {
  display: grid;
}

.agent-note {
  padding: 12px;
  border-radius: 12px;
  color: #5d2430;
  line-height: 1.65;
  background: var(--soft);
}

.agent-note:empty {
  display: none;
}

.scene-insight {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #e7ebf0;
  border-radius: 14px;
  background: #fbfcfe;
}

.scene-insight-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.scene-insight h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.scene-insight-head > span {
  display: inline-flex;
  flex-shrink: 0;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: #236078;
  background: #edf7fb;
  font-size: 12px;
  font-weight: 800;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scene-grid div {
  padding: 11px;
  border-radius: 11px;
  background: #fff;
}

.scene-grid strong {
  display: block;
  margin-bottom: 5px;
  color: #363b46;
}

.scene-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.button-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.button-row.end {
  justify-content: flex-end;
}

.generator-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.side-card h3 {
  margin: 0 0 12px;
}

.hot-links {
  display: grid;
  gap: 10px;
}

.hot-links a {
  color: var(--red);
  text-decoration: none;
  line-height: 1.45;
}

.safe-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.drafts {
  display: grid;
  gap: 14px;
}

.draft-card {
  display: grid;
  gap: 14px;
}

.draft-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.risk {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.risk.low {
  color: var(--green);
  background: #e7f7f1;
}

.risk.mid {
  color: var(--amber);
  background: #fff5dd;
}

.risk.high {
  color: var(--red-dark);
  background: #fff0f2;
}

.draft-body {
  white-space: pre-wrap;
  line-height: 1.78;
  color: #343844;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fafafd;
}

.draft-smart-score {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(21, 155, 114, 0.18);
  border-radius: 12px;
  background: #f1fbf7;
}

.draft-smart-score strong {
  grid-row: 1 / span 2;
  font-size: 28px;
  line-height: 1;
  color: var(--green);
}

.draft-smart-score span,
.draft-smart-score em {
  display: block;
}

.draft-smart-score span {
  font-weight: 900;
}

.draft-smart-score em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ai-source-bar {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #c9eadf;
  border-radius: 999px;
  color: #117153;
  background: #effbf6;
  font-size: 12px;
  font-weight: 800;
}

.ai-source-bar.fallback {
  color: #9a4d00;
  border-color: #ffe1a8;
  background: #fff7e8;
}

.draft-extra {
  margin-top: 12px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fbfbfd;
}

.draft-extra summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #4d5361;
  font-weight: 800;
}

.creative-package {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fbfbfd;
}

.creative-package-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.creative-package-head span,
.creative-package-head strong,
.creative-package-head em {
  display: block;
}

.creative-package-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.creative-package-head strong {
  margin-top: 4px;
}

.creative-package-head em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.creative-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.creative-grid div {
  padding: 12px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fff;
}

.creative-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.creative-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.publish-kit {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcff;
}

.publish-kit strong {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
}

.title-option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.title-option {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #ffd1d8;
  border-radius: 999px;
  color: #d81332;
  background: #fff6f7;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.publish-kit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.publish-kit-grid > div {
  min-height: 116px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
}

.publish-kit-grid p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.55;
}

.scene-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scene-mini span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #4c5360;
  background: #f5f7fa;
  font-size: 12px;
  font-weight: 700;
}

.cover-picker {
  margin-top: 12px;
}

.cover-picker-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.cover-picker-head strong {
  font-size: 14px;
}

.cover-picker-head span {
  color: var(--muted);
  font-size: 12px;
}

.cover-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.cover-card {
  min-height: 148px;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  color: #1f2530;
  border: 1px solid var(--line);
  background: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cover-card:hover {
  transform: translateY(-2px);
  border-color: #ffb8c2;
  box-shadow: 0 12px 24px rgba(21, 24, 35, 0.08);
}

.cover-agent-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cover-agent-card {
  min-height: 172px;
  border-width: 2px;
  position: relative;
  overflow: hidden;
}

.cover-agent-card::after {
  content: "Agent 推荐";
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(16, 25, 53, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.cover-agent-card span:first-child {
  max-width: calc(100% - 88px);
  font-size: 12px;
  font-weight: 900;
}

.cover-agent-card strong {
  max-width: 92%;
  font-size: 20px;
  line-height: 1.18;
}

.cover-agent-card span:last-child {
  max-width: 94%;
  color: rgba(31, 37, 48, 0.68);
  font-size: 12px;
  line-height: 1.45;
}

.cover-template-bigword.cover-agent-card span:last-child,
.cover-template-bigwordRed.cover-agent-card span:last-child {
  color: rgba(255, 255, 255, 0.76);
}

.more-cover-templates {
  margin-top: 10px;
}

.more-cover-templates summary {
  cursor: pointer;
  user-select: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.more-cover-templates .cover-row {
  margin-top: 10px;
}

.cover-template-bigword {
  color: #fff;
  background: #ff2442;
}

.cover-template-bigwordRed {
  color: #fff;
  background: #ff2442;
}

.cover-template-bigwordTape {
  background: repeating-linear-gradient(-8deg, #fff, #fff 24px, #fff7d6 25px, #fff7d6 44px);
}

.cover-template-bigwordQuestion {
  background: #eef5ff;
}

.cover-template-memo {
  background: repeating-linear-gradient(#fff, #fff 30px, #fff0f2 31px);
}

.cover-template-list {
  background: #eef5ff;
}

.cover-template-medical {
  background: #edf9fc;
}

.cover-template-knowledge {
  background: #eef8f5;
}

.cover-template-evidence {
  background: #f5f0ff;
}

.cover-template-report {
  background: #f4f7fb;
}

.inner-page-picker {
  margin-top: 4px;
}

.inner-page-card {
  min-height: 136px;
}

.inner-template-sketchNote {
  background: #f8fbff;
}

.inner-template-symptomNote {
  background: #fbf7ff;
}

.inner-template-mechanismFlow {
  background: #f7fbf4;
}

.inner-template-reportChecklist {
  background:
    linear-gradient(90deg, #b7d59a 0 26%, transparent 26%),
    repeating-linear-gradient(0deg, #fffdf2 0 28px, #f3edc9 29px),
    #fffdf2;
}

.inner-template-guideGrid {
  background: #ffffff;
}

.cover-card strong {
  font-size: 20px;
  line-height: 1.22;
}

.cover-card span {
  font-size: 12px;
  opacity: 0.75;
}

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

.cover-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(19, 22, 32, 0.48);
}

.cover-preview-modal.visible {
  display: grid;
}

.cover-preview-panel {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 18, 28, 0.25);
}

.cover-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cover-preview-image {
  display: block;
  width: min(360px, 100%);
  margin: 0 auto 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f7f8fb;
}

.modal {
  width: min(620px, calc(100vw - 28px));
  border: 0;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 28px 80px rgba(31, 35, 48, 0.24);
}

.modal::backdrop {
  background: rgba(31, 35, 48, 0.38);
}

.form-tip {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.task-list {
  display: grid;
  gap: 12px;
}

.mine-compact-list {
  gap: 18px;
}

.mine-dashboard {
  display: grid;
  gap: 14px;
}

.mine-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(300px, 1.18fr);
  gap: 12px;
}

.mine-status-card,
.mine-analysis-card {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 28, 40, 0.05);
}

.mine-status-card.primary {
  border-color: rgba(255, 36, 66, 0.22);
  background: #fff8f9;
}

.mine-analysis-entry {
  display: grid;
  gap: 7px;
  min-height: 96px;
  padding: 18px 20px;
  border: 1px solid rgba(21, 155, 114, 0.28);
  border-radius: 16px;
  text-align: left;
  color: #12654e;
  background: #eefbf6;
  box-shadow: 0 12px 28px rgba(21, 155, 114, 0.08);
}

.mine-analysis-entry span,
.mine-analysis-entry em {
  color: #397d67;
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.mine-analysis-entry strong {
  color: #0f6f53;
  font-size: 20px;
  line-height: 1.15;
}

.mine-analysis-entry:hover {
  border-color: rgba(21, 155, 114, 0.44);
  background: #e4f8ef;
}

.mine-status-card span,
.mine-status-card em,
.mine-analysis-card span,
.mine-analysis-card em,
.mine-performance-card span,
.mine-task-section-head span,
.mine-task-section-head em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
}

.mine-status-card strong {
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
}

.mine-analysis-card {
  align-content: start;
  gap: 9px;
  border-color: rgba(21, 155, 114, 0.2);
  background: #fbfffd;
}

.mine-analysis-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mine-analysis-head strong {
  color: var(--green);
  font-size: 15px;
}

.mine-analysis-card p {
  margin: 0;
  color: #3d414b;
  font-size: 13px;
  line-height: 1.55;
}

.mine-analysis-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mine-analysis-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  color: #12654e;
  background: #eefbf6;
  font-size: 12px;
  font-weight: 800;
}

.mine-analysis-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mine-analysis-card li {
  position: relative;
  padding-left: 12px;
  color: #59606d;
  font-size: 12px;
  line-height: 1.45;
}

.mine-analysis-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
}

.mine-analysis-card > em {
  color: #12654e;
  line-height: 1.45;
}

.mine-performance-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mine-performance-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fff;
}

.mine-performance-card strong {
  font-size: 20px;
  line-height: 1.1;
}

.mine-task-section {
  display: grid;
  gap: 10px;
}

.mine-task-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  padding: 2px 2px 0;
}

.mine-task-section-head div {
  display: grid;
  gap: 4px;
}

.mine-task-section-head strong {
  font-size: 16px;
}

.mine-task-table {
  display: grid;
  gap: 9px;
}

.mine-task-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, auto) auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(23, 28, 40, 0.04);
}

.mine-task-row.pending {
  border-left: 3px solid var(--red);
}

.mine-task-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.mine-task-label {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.mine-task-main strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-task-main em {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mine-task-mini-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.mine-task-mini-metrics span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #686d79;
  background: #f5f6f9;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mine-task-status {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mine-task-status.submitted {
  background: #e8f8f1;
  color: #0f8b62;
}

.mine-task-status.pending {
  background: #fff1f3;
  color: var(--red);
}

.mine-task-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mine-task-actions button {
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
}

.mine-analysis-panel.hidden {
  display: none;
}

.mine-analysis-panel {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(28, 33, 46, 0.36);
}

.mine-analysis-sheet {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(980px, calc(100vw - 36px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 35, 48, 0.22);
}

.mine-analysis-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.mine-analysis-detail-head div {
  display: grid;
  gap: 7px;
}

.mine-analysis-detail-head span {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.mine-analysis-detail-head strong {
  font-size: 26px;
  line-height: 1.15;
}

.mine-analysis-detail-head em {
  max-width: 720px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.6;
}

.mine-analysis-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mine-analysis-detail-stat {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #edf0f5;
  border-radius: 14px;
  background: #fbfbfd;
}

.mine-analysis-detail-stat span,
.mine-analysis-detail-stat em {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  font-style: normal;
}

.mine-analysis-detail-stat strong {
  font-size: 22px;
}

.mine-analysis-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 14px;
}

.mine-analysis-detail-layout section {
  display: grid;
  gap: 11px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.mine-analysis-detail-layout h3 {
  margin: 0;
  font-size: 16px;
}

.mine-analysis-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mine-analysis-list li {
  padding: 11px 12px;
  border-radius: 12px;
  color: #454b57;
  background: #f7f8fb;
  line-height: 1.55;
}

.mine-analysis-persona {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  color: #12654e;
  background: #eefbf6;
}

.mine-analysis-persona strong {
  font-size: 17px;
}

.mine-analysis-persona p {
  margin: 0;
  line-height: 1.55;
}

.mine-analysis-best-list {
  display: grid;
  gap: 8px;
}

.mine-analysis-best-list div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #edf0f5;
  border-radius: 12px;
  background: #fbfbfd;
}

.mine-analysis-best-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mine-agent-float {
  position: sticky;
  right: 18px;
  bottom: 18px;
  justify-self: end;
  width: 82px;
  height: 82px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--green);
  box-shadow: 0 18px 38px rgba(21, 155, 114, 0.28);
}

.mine-agent-chat {
  position: sticky;
  right: 18px;
  bottom: 112px;
  justify-self: end;
  display: grid;
  gap: 10px;
  width: min(380px, 100%);
  padding: 14px;
  border: 1px solid rgba(21, 155, 114, 0.22);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(31, 35, 48, 0.16);
}

.mine-agent-chat.hidden {
  display: none;
}

.mine-agent-chat-head,
.mine-agent-input {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.mine-agent-chat p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.mine-agent-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mine-agent-quick button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  color: #12654e;
  background: #eefbf6;
  font-weight: 800;
}

.mine-agent-answer {
  min-height: 72px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #3f4652;
  background: #f7f8fb;
  line-height: 1.55;
}

.mine-agent-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}

.mine-data-panel.hidden {
  display: none;
}

.mine-data-panel {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 24, 36, 0.42);
}

.mine-data-card {
  width: min(780px, calc(100vw - 28px));
  max-height: 90vh;
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(18, 22, 35, 0.24);
}

.mine-data-head {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mine-data-head span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.mine-data-head strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
  line-height: 1.35;
}

.mine-data-readonly,
.mine-data-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mine-note-link-field {
  display: block;
  margin: 14px 0;
}

.mine-data-card label {
  color: #4b5565;
  font-size: 13px;
  font-weight: 700;
}

.mine-data-card input {
  width: 100%;
  margin-top: 6px;
}

.mine-data-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.mine-data-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.task-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.task-card h3 {
  margin: 0 0 6px;
}

.task-card p {
  margin: 0;
  color: var(--muted);
}

.task-actions {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.task-plan {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 12px;
  background: #fbfcfe;
}

.task-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border-radius: 12px;
  background: #fafafd;
}

.task-metrics input {
  width: 100%;
}

.saved-drafts {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.saved-drafts-head span {
  color: var(--muted);
  font-size: 12px;
}

.saved-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border-radius: 11px;
  background: #fafafd;
}

.saved-draft span,
.saved-draft strong,
.saved-draft em {
  display: block;
}

.saved-draft span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.saved-draft strong {
  margin-top: 4px;
  line-height: 1.4;
}

.saved-draft em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.saved-draft-actions {
  display: flex;
  gap: 8px;
}

.saved-draft-actions .ghost-btn,
.saved-draft-actions .secondary-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.empty-saved-drafts {
  padding: 12px;
  border-radius: 12px;
  color: var(--muted);
  background: #fafafd;
}

.publish-draft {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(21, 155, 114, 0.22);
  border-radius: 12px;
  background: #f1fbf7;
}

.publish-draft span,
.publish-draft strong {
  display: block;
}

.publish-draft span {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.publish-draft strong {
  margin-top: 5px;
  line-height: 1.4;
}

.data-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

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

.board-column {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
}

.board-column-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.board-column-head h3,
.board-column-head p {
  margin: 0;
}

.board-column-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.board-column-head > span {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--red);
  background: var(--soft);
  font-weight: 800;
}

.board-card-list {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.board-card,
.empty-board-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.board-card.overdue {
  border-color: rgba(217, 31, 57, 0.25);
  background: #fff5f6;
}

.board-card strong,
.board-card span,
.board-card em {
  display: block;
}

.board-card strong {
  line-height: 1.4;
}

.board-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.board-card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.board-card em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #4c5360;
  background: #fff;
  font-size: 12px;
  font-style: normal;
}

.empty-board-card {
  color: var(--muted);
  text-align: center;
}

.board-reminder-panel {
  margin-top: 14px;
}

.board-reminder-panel .ghost-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.board-agent-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 14px;
  margin-bottom: 14px;
}

.board-agent-score,
.board-agent-brief,
.board-agent-next {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
}

.board-agent-score {
  display: grid;
  align-content: center;
}

.board-agent-score.ready {
  border-color: rgba(21, 155, 114, 0.24);
  background: #f1fbf7;
}

.board-agent-score.watch {
  border-color: rgba(183, 121, 31, 0.24);
  background: #fffaf0;
}

.board-agent-score.blocked {
  border-color: rgba(217, 31, 57, 0.22);
  background: #fff5f6;
}

.board-agent-score span,
.board-agent-score strong,
.board-agent-score em,
.board-agent-next strong,
.board-agent-next span {
  display: block;
}

.board-agent-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.board-agent-score strong {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
}

.board-agent-score em {
  margin-top: 8px;
  font-style: normal;
  font-weight: 900;
}

.board-agent-brief p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.6;
}

.board-agent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.board-agent-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--red);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.board-agent-next span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.review-queue {
  display: grid;
  gap: 14px;
}

.review-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
}

.review-card.approved {
  border-color: rgba(21, 155, 114, 0.22);
}

.review-card.revise {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.review-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 12px;
}

.review-card-head span,
.review-card-head p,
.review-card-head strong {
  display: block;
}

.review-card-head h3 {
  margin: 6px 0 0;
  line-height: 1.35;
}

.review-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.review-card-head > strong {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.review-card-head > strong.low {
  color: var(--green);
  background: #e7f7f1;
}

.review-card-head > strong.mid {
  color: var(--amber);
  background: #fff5dd;
}

.review-card-head > strong.high {
  color: var(--red-dark);
  background: #fff0f2;
}

.review-body {
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 12px;
  color: #343844;
  line-height: 1.7;
  background: #fafafd;
}

.review-notes {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}

.review-notes span {
  padding: 9px 10px;
  border-radius: 10px;
  color: #4c5360;
  background: #f6f7fa;
  font-size: 12px;
  line-height: 1.5;
}

.review-note-field {
  margin-bottom: 12px;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.report-output {
  min-height: 520px;
  margin: 0;
  white-space: pre-wrap;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #343844;
  background: #fafafd;
  font: inherit;
  line-height: 1.75;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

#dataView .metric-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.data-custom-date {
  display: none;
}

.data-custom-date.active {
  display: grid;
}

.data-summary-card {
  margin-bottom: 14px;
}

.data-summary-card .table-head {
  align-items: start;
}

.data-summary-card .table-head span {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  line-height: 1.45;
}

.data-summary-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.data-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.data-summary-metrics div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.data-summary-metrics span,
.data-summary-metrics strong,
.data-summary-metrics em {
  display: block;
}

.data-summary-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-summary-metrics strong {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.data-summary-metrics em {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.data-summary-layout {
  margin-bottom: 0;
}

.metric-card {
  min-height: 118px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
}

.metric-card span,
.metric-card strong,
.metric-card em {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1.1;
}

.metric-card em {
  margin-top: 8px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.analytics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.data-funnel-card {
  margin-bottom: 14px;
}

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

.funnel-step {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.funnel-step span,
.funnel-step strong,
.funnel-step em {
  display: block;
}

.funnel-step span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.funnel-step strong {
  margin: 8px 0;
  font-size: 24px;
  line-height: 1.1;
}

.funnel-step em {
  margin-top: 7px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.stat-list {
  display: grid;
  gap: 10px;
}

.data-group-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-group-item {
  align-content: start;
}

.topic-pie-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.topic-pie {
  width: 180px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(23, 31, 56, 0.08);
}

.topic-pie > div {
  width: 104px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.08);
}

.topic-pie strong,
.topic-pie span {
  display: block;
}

.topic-pie strong {
  font-size: 24px;
  line-height: 1.1;
}

.topic-pie span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.topic-pie-legend {
  display: grid;
  gap: 9px;
}

.topic-pie-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.topic-pie-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.topic-pie-legend strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.topic-pie-legend span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.stat-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.stat-item.done {
  border-color: rgba(21, 155, 114, 0.22);
  background: #f1fbf7;
}

.stat-item.todo {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.stat-item strong,
.stat-item span {
  display: block;
}

.stat-item strong {
  line-height: 1.4;
}

.stat-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.stat-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceff4;
}

.stat-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--red);
}

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

.table-head h3 {
  margin: 0;
}

.table-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #4b5160;
  font-size: 12px;
  background: #fafafd;
}

.data-table td {
  color: #3a3f4b;
  line-height: 1.45;
}

.manage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.manage-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.managed-list {
  display: grid;
  gap: 10px;
}

.managed-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.managed-item strong,
.managed-item span {
  display: block;
}

.managed-item strong {
  line-height: 1.4;
}

.managed-item span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.managed-item.ruangan {
  border-color: rgba(180, 90, 60, 0.24);
  background: var(--ruangan-soft);
}

.managed-item.fibroscan {
  border-color: rgba(23, 107, 135, 0.24);
  background: var(--fibro-soft);
}

.managed-item.kezhi {
  border-color: rgba(79, 125, 87, 0.24);
  background: var(--kezhi-soft);
}

.managed-item.ruangan {
  border-color: rgba(180, 90, 60, 0.24);
  background: var(--ruangan-soft);
}

.managed-item.fibroscan {
  border-color: rgba(23, 107, 135, 0.24);
  background: var(--fibro-soft);
}

.managed-item.published {
  border-color: rgba(21, 155, 114, 0.22);
}

.managed-item.candidate {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.managed-item.draft {
  background: #f7f8fb;
}

.managed-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.managed-actions .ghost-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.viral-item {
  display: grid;
  gap: 10px;
}

.training-hot-layout {
  display: block;
}

.training-hot-card {
  margin-bottom: 20px;
}

.training-study-layout {
  grid-template-columns: 1fr;
}

.training-hot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-hot-item {
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 16px;
}

.compact-hot-item > strong {
  font-size: 16px;
  line-height: 1.4;
}

.compact-hot-item > span {
  color: var(--muted);
  line-height: 1.6;
}

.compact-hot-steps {
  display: grid;
  gap: 8px;
}

.compact-hot-steps span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: #4b5563;
  line-height: 1.55;
}

.compact-hot-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #159b72;
  color: #fff;
  font-size: 12px;
}

.compact-hot-item .primary-btn {
  width: 100%;
}

.training-empty-hot {
  grid-column: 1 / -1;
}

.training-internal {
  display: none;
}

.viral-card-meta,
.viral-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viral-card-meta em,
.viral-link-row a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 45, 85, 0.08);
  color: var(--brand);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
}

.viral-card-meta .viral-study-number {
  background: #eaf5ff;
  color: #0b69c7;
  border: 1px solid rgba(20, 142, 255, 0.22);
}

.viral-link-row a {
  background: #f4f6fb;
  color: var(--text);
  font-weight: 700;
}

.viral-link-row a:hover {
  background: #edf1f8;
}

.training-source-note {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 45, 85, 0.12);
  border-radius: 12px;
  background: rgba(255, 45, 85, 0.05);
}

.training-source-note strong,
.viral-collection strong,
.viral-route strong,
.viral-remix-product > strong {
  color: var(--text);
  font-size: 13px;
}

.training-source-note span,
.viral-collection span,
.viral-route span {
  color: var(--muted);
  line-height: 1.55;
}

.viral-collection,
.viral-route {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.viral-agent-path {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(21, 155, 114, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fffb 0%, #fbfcff 100%);
}

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

.viral-agent-path-head strong {
  color: var(--text);
  font-size: 13px;
}

.viral-agent-path-head span {
  color: #159b72;
  font-size: 12px;
  font-weight: 800;
}

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

.viral-agent-steps span {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 10px;
  border: 1px solid rgba(18, 28, 45, 0.06);
  border-radius: 12px;
  background: #fff;
}

.viral-agent-steps b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #159b72;
  font-size: 12px;
}

.viral-agent-steps em {
  color: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.viral-agent-steps small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.viral-route-list {
  display: grid;
  gap: 8px;
}

.viral-remix-grid {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.viral-remix-product {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 45, 85, 0.12);
  border-radius: 12px;
  background: #fff;
}

.viral-remix-hint {
  color: var(--muted);
  font-size: 12px;
}

.viral-remix-product .managed-actions {
  margin-top: 0;
}

.viral-study-item {
  border-color: rgba(21, 155, 114, 0.16);
  background: linear-gradient(180deg, #f8fffc 0%, #fff 100%);
}

.viral-study-groups {
  display: grid;
  gap: 16px;
}

.viral-study-empty {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 43, 76, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7f9 0%, #fff 100%);
}

.viral-study-empty strong {
  color: var(--text);
  font-size: 18px;
}

.viral-study-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.viral-study-group {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(21, 155, 114, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfffd 0%, #ffffff 100%);
}

.viral-study-group-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.viral-study-group-head div {
  display: grid;
  gap: 4px;
}

.viral-study-group-head strong {
  color: var(--text);
  font-size: 17px;
}

.viral-study-group-head span {
  color: var(--muted);
  line-height: 1.5;
}

.viral-study-group-head em {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(21, 155, 114, 0.1);
  color: #138965;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.viral-study-examples {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.viral-study-item {
  align-content: start;
  min-height: 0;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(23, 31, 56, 0.04);
}

.viral-study-item > strong {
  font-size: 16px;
  line-height: 1.42;
}

.viral-study-item > span {
  line-height: 1.58;
}

.viral-study-item span b {
  color: var(--text);
}

.viral-real-source {
  color: #667085;
  font-size: 12px;
}

.viral-study-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 142, 255, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #eaf5ff 0%, #dff0ff 100%);
  color: #0b69c7;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(20, 142, 255, 0.1);
}

.viral-study-open-btn:hover {
  background: linear-gradient(180deg, #dff0ff 0%, #cfe8ff 100%);
  border-color: rgba(20, 142, 255, 0.34);
  transform: translateY(-1px);
}

.viral-study-disabled-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6fb;
  color: #98a2b3;
  font-weight: 800;
  cursor: not-allowed;
}

.viral-study-item .managed-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  gap: 10px;
}

.viral-study-item .ghost-btn,
.viral-study-item .viral-study-open-btn,
.viral-study-item .viral-study-disabled-link,
.viral-study-item .primary-btn {
  width: 100%;
  min-height: 42px;
}

.viral-study-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 28px;
}

.viral-study-modal.visible {
  display: grid;
}

.viral-study-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 36, 0.42);
  backdrop-filter: blur(8px);
}

.viral-study-modal-panel {
  position: relative;
  width: min(820px, calc(100vw - 36px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(21, 155, 114, 0.18);
  background: #fff;
  box-shadow: 0 28px 90px rgba(23, 31, 56, 0.22);
}

.viral-study-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.viral-study-modal-head span {
  color: #0b69c7;
  font-size: 12px;
  font-weight: 900;
}

.viral-study-modal-head h3 {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.35;
}

.viral-study-modal-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #f4f6fb;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.viral-study-modal-meta,
.viral-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viral-study-modal-meta em {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff0f3;
  color: var(--primary);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.viral-study-snapshot,
.viral-study-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.viral-study-snapshot div,
.viral-study-detail-grid div,
.viral-study-note-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafbff;
}

.viral-study-snapshot strong,
.viral-study-detail-grid strong,
.viral-study-note-preview strong {
  color: var(--text);
}

.viral-study-snapshot span,
.viral-study-detail-grid p,
.viral-study-note-preview p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.viral-study-note-preview {
  background: linear-gradient(180deg, #fff8f1 0%, #fff 100%);
  border-color: rgba(255, 138, 0, 0.18);
}

.viral-study-note-preview small {
  color: #a05b00;
  line-height: 1.6;
}

.viral-study-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 10px;
}

.viral-study-modal-actions .ghost-btn,
.viral-study-modal-actions .secondary-btn,
.viral-study-modal-actions .primary-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  text-align: center;
}

.viral-study-source-link {
  text-decoration: none;
}

.ip-result {
  display: grid;
  gap: 12px;
}

@media (max-width: 1180px) {
  .viral-study-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1500px) {
  .cover-preview-grid {
    grid-template-columns: 300px minmax(420px, 1fr);
  }

  .selected-cover-preview {
    max-width: 300px;
  }

  .cover-base-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  }
}

.ip-consult-card {
  position: relative;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 36, 66, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 248, 0.86)),
    #fff;
  box-shadow: 0 18px 48px rgba(23, 31, 56, 0.07);
}

.ip-consult-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.ip-consult-top h2 {
  margin: 4px 0 8px;
  font-size: 23px;
  line-height: 1.3;
}

.ip-consult-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ip-consult-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.ip-consult-meta span {
  min-width: 58px;
  padding: 8px 10px;
  border: 1px solid #ffe0e5;
  border-radius: 999px;
  color: var(--red);
  background: #fff7f8;
  text-align: center;
  font-weight: 900;
}

.ip-question-shell {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ip-question-dots {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 7px;
}

.ip-question-dots span {
  height: 7px;
  border-radius: 999px;
  background: #eceff5;
}

.ip-question-dots span.done {
  background: rgba(21, 155, 114, 0.45);
}

.ip-question-dots span.active {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 36, 66, 0.1);
}

#ipAnswerInput {
  min-height: 108px;
  resize: vertical;
  border-radius: 14px;
  background: #fff;
}

.ip-answer-insight {
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 12px;
  color: #375071;
  background: #f5f8ff;
  line-height: 1.6;
}

.ip-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.ip-plan-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 31, 56, 0.06);
}

.ip-side-stack {
  display: grid;
  gap: 14px;
}

.ip-plan-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255, 36, 66, 0.14);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f8 0%, #f7fbff 100%);
}

.ip-plan-hero span,
.ip-plan-hero p {
  color: var(--muted);
}

.ip-plan-hero h3 {
  margin: 6px 0 8px;
  font-size: 22px;
  line-height: 1.35;
}

.ip-plan-hero p {
  margin: 0;
  line-height: 1.7;
}

.ip-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ip-block {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.ip-block.accent {
  border-color: rgba(21, 155, 114, 0.18);
  background: #f4fbf8;
}

.ip-block strong {
  display: block;
  margin-bottom: 6px;
}

.ip-block p,
.ip-block ul,
.ip-block ol {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ip-block ul,
.ip-block ol {
  padding-left: 18px;
}

.ip-floating-agent {
  position: fixed;
  right: 28px;
  bottom: 96px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 10px;
  pointer-events: none;
}

.ip-agent-toggle {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 184px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 36, 66, 0.22);
  border-radius: 18px;
  color: #fff;
  background: #202531;
  box-shadow: 0 18px 44px rgba(23, 31, 56, 0.24);
}

.ip-agent-avatar {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  background: var(--red);
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(255, 36, 66, 0.28);
}

.ip-agent-toggle > span:not(.ip-agent-avatar) {
  font-weight: 950;
  text-align: left;
}

.ip-agent-toggle em {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-style: normal;
  text-align: left;
}

.ip-agent-chat {
  pointer-events: auto;
  width: min(380px, calc(100vw - 40px));
  display: none;
  overflow: hidden;
  border: 1px solid rgba(22, 27, 38, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(23, 31, 56, 0.22);
  backdrop-filter: blur(18px);
}

.ip-floating-agent.open .ip-agent-chat {
  display: grid;
}

.ip-agent-chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.ip-agent-chat-head strong,
.ip-agent-chat-head span {
  display: block;
}

.ip-agent-chat-head strong {
  font-size: 15px;
}

.ip-agent-chat-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ip-agent-messages {
  max-height: 280px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
}

.ip-agent-message {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.ip-agent-message.user {
  justify-items: end;
}

.ip-agent-message span {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  color: #343844;
  background: #f2f4f8;
  line-height: 1.6;
}

.ip-agent-message.user span {
  color: #fff;
  background: var(--red);
}

.ip-agent-message em {
  color: var(--subtle);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ip-agent-message button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #ffd6dd;
  border-radius: 999px;
  color: var(--red);
  background: #fff7f8;
  font-size: 12px;
  font-weight: 800;
}

.ip-agent-quick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 12px;
}

.ip-agent-quick button {
  min-height: 34px;
  border: 1px solid #e7eaf1;
  border-radius: 999px;
  color: #4b5262;
  background: #fafbfe;
  font-size: 12px;
  font-weight: 800;
}

.ip-agent-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: #fbfcff;
}

.ip-agent-input-row textarea {
  min-height: 46px;
  resize: none;
  border-radius: 12px;
}

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

.auto-task {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.auto-task.warning {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.auto-task strong,
.auto-task span {
  display: block;
}

.auto-task span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.auto-task .ghost-btn {
  margin-top: 12px;
  min-height: 34px;
  padding: 0 10px;
}

.automation-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.automation-rule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.automation-rule.active {
  border-color: rgba(217, 31, 57, 0.2);
  background: #fff5f6;
}

.automation-rule.standby {
  opacity: 0.76;
}

.automation-rule span,
.automation-rule strong,
.automation-rule p {
  display: block;
}

.automation-rule span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.automation-rule strong {
  margin-top: 5px;
  line-height: 1.4;
}

.automation-rule p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.automation-rule-actions {
  display: grid;
  gap: 8px;
  min-width: 112px;
}

.automation-rule-actions .ghost-btn,
.automation-rule-actions .secondary-btn {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.automation-rule-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.readiness-panel {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 14px;
  margin-bottom: 14px;
}

.readiness-score,
.readiness-detail,
.readiness-next {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
}

.readiness-score {
  display: grid;
  align-content: center;
}

.readiness-score.ready {
  border-color: rgba(21, 155, 114, 0.24);
  background: #f1fbf7;
}

.readiness-score.watch {
  border-color: rgba(183, 121, 31, 0.24);
  background: #fffaf0;
}

.readiness-score.blocked {
  border-color: rgba(217, 31, 57, 0.22);
  background: #fff5f6;
}

.readiness-score span,
.readiness-score strong,
.readiness-score em,
.readiness-next strong,
.readiness-next span {
  display: block;
}

.readiness-score span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.readiness-score strong {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
}

.readiness-score em {
  margin-top: 8px;
  font-style: normal;
  font-weight: 800;
}

.readiness-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.readiness-check {
  padding: 9px;
  border-radius: 10px;
  background: #fafafd;
}

.readiness-check.done {
  color: var(--green);
  background: #e7f7f1;
}

.readiness-check.todo {
  color: var(--red-dark);
  background: #fff0f2;
}

.readiness-check strong,
.readiness-check span {
  display: block;
}

.readiness-check strong {
  line-height: 1.35;
}

.readiness-check span {
  margin-top: 5px;
  font-size: 12px;
}

.readiness-next span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.group-ops-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.mini-metric {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.mini-metric span,
.mini-metric strong,
.mini-metric em {
  display: block;
}

.mini-metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-metric strong {
  margin-top: 6px;
  font-size: 22px;
  line-height: 1.1;
}

.mini-metric em {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.launch-panel {
  margin-bottom: 14px;
}

.launch-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.launch-day {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.launch-day-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.launch-day-head strong,
.launch-day-head span {
  display: block;
}

.launch-day-head span {
  min-width: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--red);
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.launch-task-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.launch-task {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.launch-task.p0 {
  border-color: rgba(217, 31, 57, 0.18);
}

.launch-task.done {
  border-color: rgba(21, 155, 114, 0.22);
  background: #f1fbf7;
}

.launch-task input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--red);
}

.launch-task strong,
.launch-task em {
  display: block;
}

.launch-task strong {
  line-height: 1.45;
}

.launch-task em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.launch-task-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

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

.compliance-result {
  display: grid;
  gap: 10px;
}

.compliance-score {
  padding: 14px;
  border-radius: 14px;
}

.compliance-score.low {
  color: var(--green);
  background: #e7f7f1;
}

.compliance-score.mid {
  color: var(--amber);
  background: #fff5dd;
}

.compliance-score.high {
  color: var(--red-dark);
  background: #fff0f2;
}

.compliance-score span,
.compliance-score strong {
  display: block;
}

.compliance-score span {
  font-size: 12px;
  font-weight: 800;
}

.compliance-score strong {
  margin-top: 6px;
  font-size: 24px;
}

.compliance-notes {
  display: grid;
  gap: 8px;
}

.rewrite-box {
  min-height: 240px;
  white-space: pre-wrap;
  padding: 12px;
  border-radius: 12px;
  color: #343844;
  line-height: 1.7;
  background: #fafafd;
}

.placeholder {
  min-height: 360px;
  display: grid;
  place-content: center;
  text-align: center;
}

.placeholder.compact {
  min-height: 220px;
  grid-column: 1 / -1;
}

.placeholder p:last-child {
  color: var(--muted);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.insight-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafd;
}

.insight-card.warn {
  border-color: rgba(183, 121, 31, 0.22);
  background: #fffaf0;
}

.insight-card span,
.insight-card strong {
  display: block;
}

.insight-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.insight-card strong {
  margin-top: 5px;
}

.insight-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .topic-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .topic-section-grid,
  .generator-layout,
  .generation-angle-panel,
  .generation-angle-list,
  .admin-login-panel,
  .admin-guide-section,
  .admin-guide-list,
  .publish-kit-grid,
  .theme-rail,
  .home-hero,
  .home-card-grid,
  .capability-radar,
  .capability-list,
  .cover-agent-row,
  .cover-preview-grid,
  .cover-library-grid,
  .viral-agent-steps,
  .mine-status-grid,
  .mine-performance-grid,
  .mine-analysis-detail-grid,
  .mine-analysis-detail-layout,
  .mine-task-row,
  .mine-data-readonly,
  .mine-data-form,
  #dataView .metric-grid,
  .data-summary-metrics,
  .data-group-grid,
  .topic-pie-wrap {
    grid-template-columns: 1fr;
  }

  .hero-actions strong {
    white-space: normal;
  }
}

@media (max-width: 720px) {
  body {
    background: #f6f7fa;
    font-size: 13px;
  }

  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .main {
    padding: 14px 12px 92px;
    width: 100%;
  }

  .topbar,
  .section-head,
  .hero-panel,
  .home-hero,
  .task-card,
  .review-card-head,
  .manage-layout,
  .report-layout,
  .compliance-layout,
  .cover-studio-layout,
  .task-actions,
  .task-plan,
  .task-metrics,
  .saved-draft,
  .publish-draft,
  .data-toolbar,
  .metric-grid,
  .ip-workspace,
  .ip-section-grid,
  .readiness-panel,
  .board-agent-panel,
  .analytics-layout,
  .auto-task-grid,
  .automation-rules,
  .automation-rule,
  .capability-radar,
  .capability-list,
  .funnel-grid,
  .group-ops-metrics,
  .readiness-checks,
  .insight-grid,
  .launch-timeline,
  .square-tools,
  .mine-status-grid,
  .mine-performance-grid,
  .mine-analysis-detail-grid,
  .mine-analysis-detail-layout,
  .mine-task-row,
  .mine-data-readonly,
  .mine-data-form,
  .board-columns {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -14px -12px 14px;
    padding: 12px;
    background: rgba(246, 247, 250, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(236, 238, 243, 0.9);
  }

  .topbar h1 {
    font-size: 21px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 12px;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .section-head p {
    line-height: 1.55;
  }

  .page-visual-hero {
    min-height: 188px;
    margin: 0 -2px 14px;
    border-radius: 18px;
    overflow: hidden;
  }

  .page-visual-hero img {
    min-height: 188px;
    object-fit: cover;
  }

  .home-section,
  .agent-card,
  .side-card,
  .draft-card,
  .task-card,
  .topic-summary,
  .placeholder,
  .admin-login-panel,
  .admin-overview-panel {
    border-radius: 12px;
    padding: 14px;
  }

  .home-card,
  .topic-card,
  .metric-card,
  .managed-item,
  .stat-item {
    border-radius: 12px;
  }

  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
    width: 100%;
  }

  .button-row.end {
    justify-items: stretch;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn,
  .text-btn {
    width: 100%;
    justify-content: center;
  }

  .data-table-wrap,
  .topic-grid,
  .managed-list,
  .stat-list,
  .drafts {
    min-width: 0;
    overflow-x: auto;
  }

  .data-table {
    min-width: 680px;
  }

  .agent-head,
  .modal-head,
  .draft-head,
  .table-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .modal {
    width: min(94vw, 520px);
    max-height: 88vh;
    padding: 0;
  }

  .modal form {
    padding: 16px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(236, 238, 243, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(21, 22, 28, 0.16);
    backdrop-filter: blur(16px);
  }

  .mobile-tab {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    color: #5f6673;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
  }

  .mobile-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--red), #ff4965);
    box-shadow: 0 10px 22px rgba(255, 36, 66, 0.22);
  }

  .topic-pie {
    width: min(220px, 100%);
    justify-self: center;
  }

  .training-hot-grid {
    grid-template-columns: 1fr;
  }

  .viral-study-examples {
    grid-template-columns: 1fr;
  }

  .viral-study-group-head {
    display: grid;
  }

  .mine-task-actions,
  .mine-task-mini-metrics,
  .mine-data-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mine-task-main strong,
  .mine-task-main em {
    white-space: normal;
  }

  .profile-search,
  .choice-grid,
  .form-grid,
  .scene-grid,
  .creative-grid,
  .cover-actions {
    grid-template-columns: 1fr;
  }

  .profile-search {
    display: grid;
    width: 100%;
  }

  .home-hero {
    min-height: 560px;
    padding: 28px 20px;
  }

  .home-media-art {
    width: 100%;
    opacity: 0.38;
  }

  .home-hero h2 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .home-carousel-controls {
    inset: auto 20px 22px auto;
    gap: 10px;
    transform: none;
  }

  .home-carousel-controls .icon-btn {
    width: 42px;
    height: 42px;
    min-height: 42px;
  }

  .ip-consult-top,
  .ip-agent-input-row {
    grid-template-columns: 1fr;
  }

  .ip-consult-top {
    display: grid;
  }

  .ip-consult-meta {
    justify-content: start;
  }

  .ip-plan-hero {
    grid-template-columns: 1fr;
  }

  .ip-floating-agent {
    right: 14px;
    bottom: 18px;
  }

  .ip-agent-toggle {
    min-width: 156px;
  }

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

  .cover-preview-grid {
    grid-template-columns: 1fr;
  }

  .cover-flow-steps,
  .cover-metrics-grid,
  .compact-cover-agent,
  .cover-library-grid {
    grid-template-columns: 1fr;
  }

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