: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-panel {
  display: grid;
  gap: 6px;
  min-width: min(560px, 100%);
}

.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);
}

.current-identity-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.current-identity-bar[hidden] {
  display: none;
}

.current-identity-bar strong {
  color: var(--text);
}

.identity-ip-btn {
  display: none;
}

.identity-switch-btn {
  min-height: 28px;
  padding: 3px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--red);
  background: #fff0f2;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.identity-xhs-btn {
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.identity-xhs-modal form {
  display: grid;
  gap: 16px;
}

.identity-xhs-modal label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.identity-xhs-owner,
.identity-xhs-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.identity-xhs-owner {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fb;
  font-weight: 700;
}

.identity-xhs-status[data-kind="error"] { color: #c62842; }
.identity-xhs-status[data-kind="success"] { color: #16845b; }

.employee-login-modal {
  width: min(560px, calc(100vw - 28px));
  padding: 0;
  overflow: hidden;
}

.employee-login-modal::backdrop {
  background: rgba(20, 24, 34, 0.62);
  backdrop-filter: blur(6px);
}

.employee-login-modal form {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.employee-login-brand {
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #202636, #3a4052 58%, #ff2442 160%);
}

.employee-login-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.employee-login-brand strong { font-size: 24px; line-height: 1.3; }
.employee-login-brand p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 13px; line-height: 1.65; }

.employee-login-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.employee-login-fields > label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.employee-login-fields > label:nth-child(3),
.employee-login-fields > .employee-login-confirm { grid-column: 1 / -1; }

.employee-login-fields .employee-login-confirm {
  display: flex;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #eceef3;
  border-radius: 13px;
  color: #505767;
  background: #f8f9fb;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.employee-login-confirm input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.employee-login-status {
  min-height: 22px;
  margin: 0;
  color: #c62842;
  font-size: 13px;
  line-height: 1.55;
}

.employee-login-status[data-kind="success"] { color: #16845b; }

.employee-login-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-search.employee-identity-locked select,
.profile-search.employee-identity-locked input {
  color: #545b69;
  background: #f4f5f7;
  cursor: not-allowed;
}

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;
}

.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.theme-science {
  border-color: rgba(21, 155, 114, 0.24);
}

.theme-card.theme-science.active {
  border-color: rgba(21, 155, 114, 0.5);
  background: linear-gradient(180deg, #fff, var(--science-soft));
}

.signup-channel-card {
  min-height: 184px;
  padding: 18px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.signup-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(23, 31, 56, 0.09);
}

.signup-channel-card:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.signup-channel-card span {
  font-size: 14px;
}

.signup-channel-card strong {
  margin-top: 14px;
  font-size: 17px;
}

.signup-channel-card em {
  min-height: 36px;
  margin-top: 10px;
}

.signup-channel-card b {
  margin-top: 16px;
  color: #fff;
  background: #242936;
}

.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;
}

.theme-card b {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #111827;
  background: #f7f8fb;
  font-size: 12px;
  line-height: 1.3;
}

.theme-card.active b {
  color: #fff;
  background: var(--red);
}

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

.square-signup-guide {
  padding: 22px;
  border: 1px solid #e7eaf0;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #fafbfe);
}

.square-signup-guide-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.square-signup-guide-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.square-signup-guide-head h3 {
  margin: 6px 0 0;
  font-size: 20px;
}

.square-signup-guide-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.square-signup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.square-signup-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #edf0f5;
}

.square-signup-steps b {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
}

.square-signup-steps strong {
  font-size: 14px;
}

.square-signup-steps span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.topic-loading-channel,
.topic-loading-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #edf0f5;
  background: #f7f8fb;
}

.topic-loading-channel {
  min-height: 118px;
  border-radius: 18px;
}

.topic-loading-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 28px;
  border-radius: 24px;
  color: #6b7280;
}

.topic-loading-card strong {
  color: #374151;
  font-size: 18px;
}

.topic-loading-channel::after,
.topic-loading-card::after {
  position: absolute;
  inset: 0;
  content: "";
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.86), transparent);
  animation: topic-loading-shimmer 1.2s ease-in-out infinite;
}

@keyframes topic-loading-shimmer {
  to { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .topic-loading-channel::after,
  .topic-loading-card::after {
    animation: none;
  }
}

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

.comment-create-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
}

.comment-create-panel summary {
  width: fit-content;
  cursor: pointer;
  color: var(--red);
  font-weight: 900;
}

.comment-create-panel[open] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.comment-create-panel[open] summary {
  grid-column: 1 / -1;
}

.comment-center-section {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.comment-topic-card {
  gap: 9px;
  padding: 13px;
}

.comment-topic-card .topic-meta {
  margin-top: 6px;
}

.comment-topic-meta-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.comment-topic-card h3 {
  font-size: 16px;
  line-height: 1.32;
  min-height: 42px;
}

.comment-topic-card p {
  font-size: 13px;
  line-height: 1.45;
  word-break: break-all;
}

.comment-topic-card .topic-card-foot {
  grid-template-columns: auto minmax(88px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.comment-topic-card .topic-card-foot .ghost-btn,
.comment-topic-card .topic-card-foot .primary-btn,
.comment-task-issue-select {
  min-height: 36px;
  padding: 0 11px;
  white-space: nowrap;
}

.comment-task-issue-select {
  min-width: 92px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 10px;
  color: #4d5260;
  background: #fff;
  font-weight: 800;
}

.accent-btn {
  min-height: 40px;
  border: 0;
  border-radius: 12px;
  padding: 0 16px;
  color: #111827;
  background: #facc15;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.22);
  cursor: pointer;
}

.comment-card-grid .comment-topic-card {
  min-height: 238px;
  border-radius: 14px;
}

.comment-card-grid .comment-topic-card h3 {
  min-height: 44px;
}

.comment-card-grid .comment-topic-card p {
  min-height: 20px;
}

.comment-card-grid .comment-topic-card .primary-btn {
  margin-top: 8px;
}

.comment-signup-feed {
  display: grid;
  gap: 18px;
}

.comment-signup-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 180px)) 1fr;
  gap: 12px;
  align-items: stretch;
}

.comment-signup-overview > div,
.comment-signup-overview > p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.comment-signup-overview > div {
  display: grid;
  gap: 3px;
}

.comment-signup-overview strong {
  font-size: 26px;
  line-height: 1;
}

.comment-signup-overview span,
.comment-signup-overview p,
.comment-signup-section-head span,
.comment-signup-collapse em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.comment-signup-overview > p {
  display: flex;
  align-items: center;
  line-height: 1.65;
}

.comment-signup-section {
  display: grid;
  gap: 14px;
}

.comment-signup-section-head,
.comment-signup-section-head > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.comment-signup-section-head {
  justify-content: space-between;
}

.comment-signup-more {
  justify-self: center;
  min-width: min(100%, 280px);
}

.comment-signup-collapse {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(247, 248, 250, 0.96);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.comment-signup-collapse span {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.comment-signup-collapse b {
  color: var(--red);
  font-size: 13px;
}

@media (max-width: 720px) {
  .comment-signup-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comment-signup-overview > p {
    grid-column: 1 / -1;
  }
}

/* 2026 compact card UI: lightweight, desktop/mobile shared. */
:root {
  --bg: #f7f7f9;
  --panel: #fafafa;
  --line: #ececef;
  --shadow: 0 10px 32px rgba(24, 24, 31, 0.055);
  --shadow-soft: 0 6px 20px rgba(24, 24, 31, 0.045);
}

body {
  background: linear-gradient(180deg, #fffafa 0, #f7f7f9 260px);
}

.app-shell {
  grid-template-columns: 196px minmax(0, 1fr);
}

.sidebar {
  padding: 18px 12px;
}

.main {
  width: min(1240px, 100%);
  padding: 20px 26px 48px;
}

.topbar {
  margin-bottom: 16px;
}

.section-head {
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: 24px;
}

.planning-view-tabs {
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.planning-view-tab {
  min-height: 40px;
  border-radius: 10px;
}

.daily-inspiration-panel,
.planning-form-card,
.planning-main,
.planning-library-card,
.viral-inspiration-form,
.viral-library-section {
  border-color: var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.daily-inspiration-panel {
  padding: 20px;
  background: linear-gradient(135deg, #fff 60%, #fff6f7);
}

.daily-inspiration-head h3 {
  font-size: 25px;
}

.daily-inspiration-card,
.viral-library-card {
  border-color: #eeeef1;
  border-radius: 15px;
  box-shadow: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.daily-inspiration-card:hover,
.viral-library-card:hover {
  border-color: rgba(255, 36, 66, .28);
  box-shadow: 0 8px 22px rgba(32, 24, 28, .06);
  transform: translateY(-1px);
}

.ip-core-card-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr 1.5fr;
  gap: 12px;
}

.ip-core-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ip-core-card > span {
  display: block;
  margin-bottom: 10px;
  color: #8a8f9b;
  font-size: 12px;
  font-weight: 800;
}

.ip-core-card h3,
.ip-core-card p {
  margin: 0;
}

.ip-core-card h3 {
  font-size: 22px;
  line-height: 1.35;
}

.ip-core-card p {
  color: #444955;
  line-height: 1.7;
}

.ip-core-keywords > div,
.viral-keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ip-core-keywords b,
.viral-keyword-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #f0e3e6;
  border-radius: 999px;
  color: #8a4050;
  background: #fff7f8;
  font-size: 13px;
  font-weight: 800;
}

.viral-keyword-grid {
  margin: 14px 0 6px;
}

.viral-keyword-chip {
  cursor: pointer;
}

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

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

.viral-library-card {
  cursor: pointer;
}

.viral-note-dialog {
  width: min(680px, calc(100vw - 36px));
  max-height: min(760px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(22, 17, 20, .2);
  overflow: auto;
}

.viral-note-dialog::backdrop {
  background: rgba(20, 20, 24, .38);
  backdrop-filter: blur(3px);
}

.viral-note-dialog-close {
  position: sticky;
  z-index: 2;
  top: 12px;
  float: right;
  width: 38px;
  height: 38px;
  margin: 12px 12px 0 0;
  border: 0;
  border-radius: 50%;
  color: #60646f;
  background: #f3f3f5;
  font-size: 24px;
}

#viralNoteDialogBody {
  display: grid;
  gap: 16px;
  padding: 30px;
}

#viralNoteDialogBody h3,
#viralNoteDialogBody p {
  margin: 0;
}

#viralNoteDialogBody h3 {
  padding-right: 36px;
  font-size: 22px;
  line-height: 1.45;
}

#viralNoteDialogBody p {
  color: #555b67;
  line-height: 1.8;
  white-space: pre-wrap;
}

.viral-note-dialog-meta,
.viral-note-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.viral-note-dialog-meta span {
  color: #159b72;
  font-weight: 800;
}

.viral-note-dialog-meta em {
  color: #7d828e;
  font-style: normal;
}

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

  .ip-core-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-core-bio {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 14px 14px 92px;
  }

  .topbar {
    align-items: flex-start;
  }

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

  .planning-view-tabs {
    top: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
  }

  .planning-view-tab {
    min-height: 44px;
    padding: 6px;
    font-size: 13px;
  }

  .daily-inspiration-panel,
  .planning-form-card,
  .planning-main,
  .planning-library-card,
  .viral-inspiration-form,
  .viral-library-section {
    margin-right: 0;
    margin-left: 0;
    padding: 15px;
    border-radius: 16px;
  }

  .daily-inspiration-list,
  .viral-library-grid,
  .ip-core-card-grid {
    grid-template-columns: 1fr;
  }

  .ip-core-bio {
    grid-column: auto;
  }

  .viral-library-card,
  .daily-inspiration-card {
    padding: 15px;
  }

  .viral-keyword-grid {
    flex-wrap: nowrap;
    margin-right: -15px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .viral-keyword-chip {
    flex: 0 0 auto;
    min-height: 40px;
  }

  .viral-library-filters {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viral-library-filters button {
    width: auto;
  }

  .viral-note-dialog {
    width: 100vw;
    max-width: none;
    max-height: 88vh;
    margin: auto 0 0;
    border-radius: 20px 20px 0 0;
  }

  #viralNoteDialogBody {
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom));
  }

  .viral-note-dialog-actions,
  .daily-inspiration-actions,
  .viral-library-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .viral-note-dialog-actions > *,
  .daily-inspiration-actions > *,
  .viral-library-actions > * {
    width: 100%;
    min-height: 46px;
  }
}

.comment-note-link {
  color: #7b8494;
  text-decoration: none;
}

.comment-note-link:hover {
  color: var(--red);
  text-decoration: underline;
}

.comment-thread-line-list {
  display: grid;
  gap: 10px;
}

.comment-thread-line {
  display: grid;
  gap: 6px;
  color: #374151;
  font-size: 13px;
  font-weight: 900;
}
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 10px;
  color: #4d5260;
  background: #fff;
  font-weight: 800;
}

.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-show-more {
  display: block;
  min-width: 180px;
  margin: 18px auto 0;
}

.topic-reference-note {
  display: block;
  margin: 5px 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.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: 9px;
  min-width: 84px;
  border: 1px solid rgba(91, 98, 112, 0.08);
  border-radius: 999px;
  background: #e9ebf1;
  overflow: hidden;
}

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

.quota-bar span.has-progress {
  min-width: 14px;
}

.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;
}

.reference-title-notice {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #bfe8d8;
  border-radius: 12px;
  background: #effaf5;
  color: #24624e;
  font-size: 13px;
  line-height: 1.55;
}

.reference-title-notice strong {
  flex: 0 0 auto;
  color: #087a55;
}

.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;
}

.choice-grid > [hidden] {
  display: none !important;
}

.personal-real-context-field {
  grid-column: 1 / -1;
}

.personal-real-context-field[hidden] {
  display: none;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.personal-ip-generation-context {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 36, 66, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f8, #fff);
}

.personal-ip-generation-context[hidden] {
  display: none;
}

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

.personal-ip-generation-head > div,
.personal-ip-generation-grid > div {
  display: grid;
  gap: 4px;
}

.personal-ip-generation-head span,
.personal-ip-generation-grid span {
  color: var(--muted);
  font-size: 12px;
}

.personal-ip-generation-head strong {
  font-size: 18px;
}

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

.personal-ip-generation-grid > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
}

.personal-ip-generation-grid strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.45;
}

.personal-ip-generation-context > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.comment-member-fields {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.comment-member-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.comment-member-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.comment-signup-topic-summary {
  display: grid;
  gap: 12px;
  padding: 14px;
  margin: 12px 0 16px;
  border: 1px solid rgba(255, 36, 66, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 246, 248, 0.94), rgba(255, 255, 255, 0.98));
}

.comment-signup-topic-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
}

.comment-signup-topic-summary h3 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.comment-signup-topic-summary > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.comment-signup-reply-blocks {
  display: grid;
  gap: 10px;
}

.comment-signup-reply-blocks section {
  padding: 12px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fff;
}

.comment-signup-reply-blocks strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.comment-signup-reply-blocks p {
  margin: 6px 0 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.comment-preview-note em,
.managed-item em {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.comment-task-board {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: 1px solid #eef0f5;
  border-radius: 14px;
  background: #fff;
}

.comment-task-board + .comment-task-board {
  margin-top: 12px;
}

.comment-task-board[hidden] {
  display: none;
}

.comment-task-board-head,
.comment-assignment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: center;
}

.comment-task-board-head strong,
.comment-assignment-row strong {
  display: block;
  color: var(--ink);
}

.comment-task-board-head span,
.comment-assignment-row span,
.comment-assignment-row em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

.comment-assignment-group {
  display: grid;
  gap: 8px;
}

.comment-assignment-status-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
}

.comment-assignment-status-section.pending {
  border: 1px solid rgba(37, 99, 235, 0.34);
  background: rgba(239, 246, 255, 0.82);
}

.comment-assignment-status-section.submitted {
  border: 1px solid rgba(245, 158, 11, 0.38);
  background: rgba(255, 251, 235, 0.9);
}

.comment-assignment-status-section.context {
  border: 1px dashed rgba(111, 116, 128, 0.32);
  background: rgba(248, 249, 252, 0.88);
}

.comment-assignment-status-section.context .comment-assignment-row {
  opacity: 0.82;
}

.comment-assignment-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.comment-assignment-status-head strong {
  color: var(--ink);
}

.comment-assignment-status-head span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.comment-assignment-group h3 {
  margin: 0;
  font-size: 14px;
}

.comment-assignment-row {
  padding: 12px 14px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fbfcff;
}

.comment-assignment-row.own {
  border-color: rgba(255, 36, 66, 0.24);
  background: #fffafa;
}

.mine-status-jump {
  cursor: pointer;
}

.mine-status-jump:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.mine-task-focus {
  animation: mine-task-focus-pulse 1.8s ease;
}

.comment-mine-tools {
  position: sticky;
  top: 8px;
  z-index: 4;
  display: grid;
  grid-template-columns: max-content minmax(260px, 1fr);
  gap: 14px;
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #e7eaf0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(20, 30, 55, 0.06);
}

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

.comment-mine-filter {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.comment-mine-filter.active {
  border-color: #ff2442;
  background: #ff2442;
  color: #fff;
}

.comment-mine-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.comment-mine-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe3eb;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.comment-mine-filter-summary {
  margin: 2px 2px 12px;
  color: var(--muted);
  font-size: 13px;
}

.comment-mine-empty {
  padding: 24px;
  border: 1px dashed #dfe3eb;
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .comment-mine-tools {
    position: static;
    grid-template-columns: 1fr;
  }

  .comment-mine-filter {
    flex: 1 1 auto;
  }
}

@keyframes mine-task-focus-pulse {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.2); }
}

.comment-consult-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.comment-consult-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  color: #374151;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.comment-consult-list img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.comment-stats-entry-btn {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #e4a500;
  border-radius: 8px;
  color: #342300;
  background: #ffd43b;
  font-weight: 900;
  cursor: pointer;
}

.comment-stats-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 24px;
}

.comment-stat-metric {
  min-height: 118px;
  border-radius: 8px;
}

.comment-stats-panel {
  margin-top: 24px;
}

.comment-stats-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #e6e9ef;
  border-radius: 8px;
  background: #fff;
}

.comment-stats-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
}

.comment-stats-table th,
.comment-stats-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.comment-stats-table th {
  color: #4b5563;
  background: #f7f8fa;
  font-weight: 900;
}

.comment-stats-table tbody tr:last-child td {
  border-bottom: 0;
}

.comment-stats-table a {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}

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

.comment-conflict-item,
.comment-stats-clear {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 8px;
  background: #fff7f7;
}

.comment-conflict-item strong,
.comment-stats-clear strong {
  color: var(--ink);
}

.comment-conflict-item span,
.comment-stats-clear span {
  color: var(--muted);
  font-size: 12px;
}

.comment-conflict-item a {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.comment-stats-clear {
  border-color: rgba(5, 150, 105, 0.24);
  background: #f0fdf8;
}

.comment-consult-audit-item {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  background: #fff;
}

.comment-consult-audit-item > a {
  border: 0;
  padding: 0;
}

.consult-audit-status {
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.consult-audit-status.status-approved { color: #047857; }
.consult-audit-status.status-rejected { color: #b91c1c; }
.consult-audit-status.status-pending { color: #9a6700; }

.comment-consult-audit-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.comment-consult-audit-actions .ghost-btn {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .comment-stats-metrics,
  .comment-conflict-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .comment-stats-metrics,
  .comment-conflict-list {
    grid-template-columns: 1fr;
  }

  .comment-stat-metric {
    min-height: 96px;
  }

  .comment-conflict-item,
  .comment-stats-clear {
    grid-template-columns: 1fr;
  }

  .comment-conflict-item a {
    grid-column: 1;
    grid-row: auto;
  }
}

.comment-audit-detail-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef0f5;
}

.comment-audit-detail-panel[hidden] {
  display: none;
}

.comment-audit-detail-list {
  display: grid;
  gap: 8px;
}

.comment-audit-assignment {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid #eef0f5;
  border-radius: 10px;
  background: #fbfcff;
}

.comment-audit-assignment strong {
  color: var(--ink);
  font-size: 13px;
}

.comment-audit-assignment span,
.comment-audit-assignment em {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
}

.comment-assignment-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 360px;
}

.comment-assignment-actions .ghost-btn,
.comment-assignment-actions .primary-btn {
  min-height: 36px;
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 36px;
  white-space: nowrap;
}

.comment-assignment-actions .primary-btn {
  box-shadow: 0 8px 18px rgba(255, 36, 66, 0.16);
}

.comment-assignment-status-pill {
  min-width: 44px;
  margin: 0;
  text-align: center;
}

.consult-upload-label {
  cursor: pointer;
}

.comment-consult-upload-modal form {
  display: grid;
  gap: 16px;
}

.comment-consult-upload-body {
  display: grid;
  gap: 12px;
}

.comment-consult-upload-body p {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.comment-consult-file-box {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 14px;
  background: #fffafa;
}

.comment-consult-file-box span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.comment-consult-file-box input {
  display: none;
}

.comment-consult-picker-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 36, 66, 0.22);
  border-radius: 10px;
  color: var(--red);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.comment-consult-picker-btn.primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff2442, #ff526c);
  box-shadow: 0 10px 22px rgba(255, 36, 66, 0.16);
}

.comment-consult-dropzone {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: start;
  width: 100%;
  min-height: 88px;
  padding: 16px 18px;
  border: 1px dashed rgba(255, 36, 66, 0.42);
  border-radius: 13px;
  appearance: none;
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: 0.18s ease;
}

.comment-consult-dropzone strong {
  color: var(--red);
  font-size: 15px;
}

.comment-consult-dropzone em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.comment-consult-dropzone:hover,
.comment-consult-dropzone.is-dragover {
  border-color: var(--red);
  background: #fff7f8;
}

.comment-consult-dropzone.has-file {
  border-color: rgba(21, 155, 114, 0.5);
  background: #f0fdf7;
}

.comment-consult-dropzone.has-file strong {
  color: #0f7d5d;
}

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

.comment-consult-mobile-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 36, 66, 0.18);
  border-radius: 12px;
  appearance: none;
  color: var(--red);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.comment-consult-mobile-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #ff2442, #ff526c);
  box-shadow: 0 10px 22px rgba(255, 36, 66, 0.18);
}

.comment-consult-native-picker {
  display: grid;
  gap: 8px;
}

.comment-consult-native-picker strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

#commentConsultFileName {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.comment-mine-section > .primary-btn {
  width: fit-content;
}

.comment-mine-entry-card {
  width: 100%;
  justify-self: stretch;
  align-content: start;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 18px 42px rgba(245, 158, 11, 0.1);
}

.comment-mine-entry-card .mine-task-section-head {
  align-items: center;
  text-align: left;
  justify-content: space-between;
}

.comment-mine-entry-card .mine-task-section-head div {
  justify-items: start;
}

.comment-mine-entry-head strong {
  color: #92400e;
  font-size: 18px;
  line-height: 1.35;
}

.comment-mine-entry-card .toggle-comment-mine-tasks {
  background: #f59e0b;
  color: #111827;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.22);
}

.comment-mine-entry-actions {
  display: flex;
  justify-content: flex-start;
}

.comment-mine-detail {
  display: grid;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
}

.comment-mine-detail[hidden] {
  display: none;
}

.comment-task-detail-modal form {
  max-width: min(920px, calc(100vw - 28px));
}

.comment-task-detail-body {
  display: grid;
  gap: 14px;
  max-height: 68vh;
  overflow: auto;
  padding-right: 4px;
}

.comment-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-detail-summary span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fffbeb;
  font-size: 12px;
  font-weight: 900;
}

.comment-detail-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fbfcff;
}

.comment-detail-block h3 {
  margin: 0;
  font-size: 15px;
}

.comment-detail-block ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.65;
}

.comment-detail-block textarea {
  width: 100%;
  resize: vertical;
  line-height: 1.6;
}

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

.publish-target-label {
  min-width: 170px;
  margin: 0;
}

.publish-target-label select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-weight: 800;
}

.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;
}

.issue-archive-card {
  margin: 16px 0;
}

.issue-archive-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.issue-archive-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.issue-archive-topics span {
  display: inline-flex;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f6f7fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.issue-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #59647a;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.issue-status-badge.current {
  background: #ecfdf3;
  color: #087f5b;
}

.issue-status-badge.archived {
  background: #eef4ff;
  color: #246bfe;
}

.issue-status-badge.candidate {
  background: #fff7e6;
  color: #b56b00;
}

.issue-status-badge.draft {
  background: #fff0f3;
  color: #e03131;
}

.data-source-guard {
  display: none;
  margin: 0 0 14px;
}

.data-source-guard.active {
  display: block;
}

.data-source-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #ffd8a8;
  border-radius: 16px;
  background: #fff9f0;
  color: #2b2f38;
  box-shadow: 0 10px 24px rgba(23, 31, 56, 0.04);
}

.data-source-card.ready {
  border-color: #b7efd0;
  background: #f0fff6;
}

.data-source-card.error {
  border-color: #ffc9c9;
  background: #fff5f5;
}

.data-source-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.data-source-card h3,
.data-source-card p {
  margin: 0;
}

.data-source-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

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

.data-source-facts span {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.data-source-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

.data-source-path {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.issue-product-row,
.issue-overview-grid,
.issue-topic-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.issue-product-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.issue-product-chip,
.issue-overview-card,
.issue-topic-card,
.issue-data-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.issue-product-chip {
  padding: 12px;
  border-top: 4px solid #d7dee9;
}

.issue-product-chip.product-ruangan,
.issue-topic-card.product-ruangan {
  border-top-color: #ff2d55;
}

.issue-product-chip.product-kezhi,
.issue-topic-card.product-kezhi {
  border-top-color: #1677ff;
}

.issue-product-chip.product-fibroscan,
.issue-topic-card.product-fibroscan {
  border-top-color: #ff922b;
}

.issue-product-chip.product-health,
.issue-topic-card.product-health {
  border-top-color: #12b886;
}

.issue-product-chip strong,
.issue-product-chip span,
.issue-overview-card strong,
.issue-overview-card p,
.issue-topic-card p,
.issue-topic-card strong,
.issue-topic-card span,
.issue-data-row strong,
.issue-data-row span,
.issue-data-row em {
  display: block;
}

.issue-product-chip strong,
.issue-overview-card strong,
.issue-topic-card strong,
.issue-data-row strong {
  color: var(--ink);
  font-weight: 900;
}

.issue-product-chip span,
.issue-overview-card p,
.issue-topic-card p,
.issue-topic-card span,
.issue-data-row span,
.issue-data-row em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

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

.issue-overview-card {
  padding: 14px;
}

.issue-overview-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.issue-topic-archive,
.issue-data-preview {
  margin-top: 14px;
}

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

.issue-topic-card {
  padding: 14px;
  border-top: 4px solid #d7dee9;
}

.issue-data-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.issue-data-row {
  padding: 12px;
}

.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;
}

.risk.unchecked {
  color: #6f7480;
  background: #f0f1f4;
}

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

.manual-compliance-check {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 15px;
  border: 1px solid rgba(255, 36, 66, 0.22);
  border-radius: 14px;
  background: #fff5f6;
}

.compliance-check-btn {
  min-width: 128px;
  padding: 11px 22px;
  border: 1px solid #ff2442;
  border-radius: 12px;
  color: #fff;
  background: #ff2442;
  box-shadow: 0 8px 20px rgba(255, 36, 66, 0.22);
  font-weight: 900;
}

.compliance-check-btn:hover:not(:disabled) {
  border-color: #e61937;
  background: #e61937;
  transform: translateY(-1px);
}

.compliance-check-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.manual-compliance-check span {
  color: #7b3e48;
  font-size: 12px;
  line-height: 1.6;
}

.auto-compliance-panel {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #f0c36a;
  border-radius: 14px;
  background: #fffbf1;
}

.auto-compliance-panel.low {
  border-color: rgba(21, 155, 114, 0.28);
  background: #f1fbf7;
}

.auto-compliance-panel.high {
  border-color: rgba(210, 48, 73, 0.28);
  background: #fff4f5;
}

.auto-compliance-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.auto-compliance-head > div:first-child {
  display: grid;
  gap: 4px;
}

.auto-compliance-head strong {
  color: #252936;
}

.auto-compliance-head span,
.auto-compliance-pass {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.compliance-result-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.compliance-result-badge.pass {
  color: var(--green);
  background: #dff6ed;
}

.compliance-result-badge.fail {
  color: var(--red-dark);
  background: #ffe5e9;
}

.auto-compliance-score {
  display: grid;
  min-width: 92px;
  text-align: right;
}

.auto-compliance-score strong {
  color: var(--amber);
  font-size: 26px;
  line-height: 1;
}

.auto-compliance-panel.low .auto-compliance-score strong {
  color: var(--green);
}

.auto-compliance-panel.high .auto-compliance-score strong {
  color: var(--red-dark);
}

.auto-compliance-issues {
  display: grid;
  gap: 8px;
}

.auto-compliance-issue {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid var(--amber);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.auto-compliance-issue.high {
  border-left-color: var(--red);
}

.auto-compliance-issue strong {
  font-size: 13px;
}

.auto-compliance-issue span,
.auto-compliance-issue em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.auto-compliance-issue em {
  color: #353946;
}

.auto-compliance-issue a {
  width: fit-content;
  color: #a66b00;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compliance-manual-checks {
  border: 1px solid rgba(126, 105, 45, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.62);
}

.compliance-manual-checks summary {
  padding: 10px 12px;
  color: #6c5b2e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}

.compliance-manual-check-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.compliance-manual-check-item {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #fffdf5;
}

.compliance-manual-check-item strong {
  font-size: 12px;
}

.compliance-manual-check-item span,
.compliance-manual-check-item a {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.compliance-manual-check-item a {
  width: fit-content;
  color: #8c6a17;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auto-compliance-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 2px;
}

.auto-compliance-actions span {
  color: var(--muted);
  font-size: 12px;
}

.compliance-regenerate-box {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid #e8b93d;
  border-radius: 12px;
  color: #6b4a00;
  text-align: left;
  background: #fff6cf;
  box-shadow: 0 6px 16px rgba(191, 143, 20, 0.12);
}

.compliance-regenerate-box:hover:not(:disabled) {
  border-color: #d49c12;
  background: #ffefae;
  transform: translateY(-1px);
}

.compliance-regenerate-box strong {
  color: #6b4a00;
  font-size: 15px;
}

.compliance-regenerate-box span {
  color: #80651e;
  font-size: 12px;
  line-height: 1.5;
}

.compliance-regenerate-box:disabled {
  cursor: wait;
  opacity: 0.72;
}

.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;
}

.title-option.locked {
  cursor: default;
  color: #166a50;
  border-color: #b9e3d5;
  background: #effaf6;
}

.personal-title-selection {
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid #ffd7dd;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff 0%, #fff8f9 100%);
}

.personal-title-selection-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.personal-title-selection-head h2,
.personal-title-selection-head p {
  margin: 0;
}

.personal-title-selection-head h2 {
  margin-bottom: 8px;
}

.personal-title-selection-head > div > p:last-child,
.personal-title-selection-foot {
  color: var(--muted);
  line-height: 1.6;
}

.personal-title-selection-head > span {
  flex: none;
  padding: 7px 12px;
  border-radius: 999px;
  color: #d81332;
  background: #fff0f3;
  font-weight: 900;
}

.viral-source-title-card {
  display: grid;
  gap: 7px;
  padding: 16px 18px;
  border: 1px solid #ffd1d8;
  border-radius: 16px;
  background: #fff;
}

.viral-source-title-card span {
  color: #e11d3f;
  font-size: 12px;
  font-weight: 900;
}

.viral-source-title-card strong {
  font-size: 19px;
  line-height: 1.45;
}

.viral-source-title-card a {
  width: fit-content;
  color: #e11d3f;
  font-size: 13px;
  font-weight: 800;
}

.personal-title-candidate-list {
  display: grid;
  gap: 10px;
}

.personal-title-candidate {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid #eceef3;
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.personal-title-candidate:hover {
  border-color: #ff9bab;
  box-shadow: 0 10px 28px rgba(255, 36, 66, 0.08);
}

.personal-title-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: #ff2442;
  font-weight: 900;
}

.personal-title-candidate h3,
.personal-title-candidate p {
  margin: 0;
}

.personal-title-candidate h3 {
  font-size: 17px;
  line-height: 1.45;
}

.personal-title-candidate p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.personal-title-selection-foot {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 760px) {
  .personal-title-selection {
    padding: 16px;
  }

  .personal-title-selection-head,
  .personal-title-candidate {
    grid-template-columns: 1fr;
  }

  .personal-title-selection-head {
    display: grid;
  }

  .personal-title-selection-head > span {
    width: fit-content;
  }

  .personal-title-candidate .primary-btn {
    width: 100%;
  }
}

.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;
}

.comment-copy-kit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #edf0f7;
  border-radius: 12px;
  background: #fff;
}

.comment-copy-list {
  display: grid;
  gap: 8px;
}

.comment-copy-item {
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid #e7ebf3;
  border-radius: 10px;
  background: #f8faff;
  color: #394150;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
}

.comment-copy-item:hover {
  border-color: #ff6b82;
  color: #d81332;
  background: #fff7f8;
}

.reply-copy-group {
  display: grid;
  gap: 8px;
  padding: 8px;
  border-radius: 10px;
  background: #fbfcff;
}

.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-period-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #ffd2da;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff7f9, #fff);
}

.mine-period-bar > div,
.mine-period-bar label {
  display: grid;
  gap: 4px;
}

.mine-period-bar span,
.mine-period-bar em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.mine-period-bar strong {
  font-size: 20px;
}

.mine-period-bar select {
  min-width: 190px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.mine-period-empty {
  display: grid;
  gap: 6px;
  padding: 28px;
  border: 1px dashed #dfe3eb;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.mine-period-empty strong {
  color: var(--text);
}

.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(6, 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;
}

.topic-reserve-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: -4px 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 48, 85, 0.18);
  border-radius: 14px;
  background: #fff7f8;
}

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

.topic-reserve-status span {
  color: var(--muted);
  font-size: 12px;
}

.topic-reserve-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.topic-list-panel.hidden,
.topic-detail-panel.hidden {
  display: none;
}

.topic-pool-tabs,
.topic-product-tabs,
.topic-lane-grid,
.topic-source-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.topic-pool-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topic-product-tabs {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.topic-lane-grid,
.topic-source-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.topic-pool-tab,
.topic-product-tab,
.topic-lane-card {
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  align-content: start;
}

.topic-pool-tab,
.topic-product-tab {
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.topic-pool-tab {
  min-height: 118px;
}

.topic-product-tab {
  min-height: 84px;
  border-top-width: 4px;
}

.topic-pool-tab.active,
.topic-product-tab.active {
  box-shadow: 0 18px 40px rgba(23, 31, 56, 0.1);
  transform: translateY(-1px);
}

.topic-pool-tab span,
.topic-product-tab span,
.topic-lane-card span,
.topic-source-card .table-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.topic-pool-tab strong,
.topic-product-tab strong,
.topic-lane-card strong {
  font-size: 34px;
  line-height: 1;
}

.topic-product-tab strong {
  font-size: 24px;
}

.topic-pool-tab em {
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.topic-pool-tab.draft.active {
  border-color: rgba(255, 48, 85, 0.36);
  background: #fff7f8;
}

.topic-pool-tab.candidate.active {
  border-color: rgba(183, 121, 31, 0.32);
  background: #fffaf0;
}

.topic-product-tab.ruangan {
  border-top-color: #ff3055;
}

.topic-product-tab.kezhi {
  border-top-color: #2f7df6;
}

.topic-product-tab.fibroscan {
  border-top-color: #f59a23;
}

.topic-product-tab.science {
  border-top-color: #18a06b;
}

.topic-product-tab.ruangan.active {
  background: #fff6f8;
  border-color: rgba(255, 48, 85, 0.3);
}

.topic-product-tab.kezhi.active {
  background: #f5f9ff;
  border-color: rgba(47, 125, 246, 0.28);
}

.topic-product-tab.fibroscan.active {
  background: #fff8ef;
  border-color: rgba(245, 154, 35, 0.32);
}

.topic-product-tab.science.active {
  background: #f3fff9;
  border-color: rgba(24, 160, 107, 0.28);
}

.topic-lane-card p,
.topic-source-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.topic-lane-card.draft {
  border-color: rgba(47, 75, 112, 0.18);
  background: #fbfcff;
}

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

.topic-lane-card.published {
  border-color: rgba(21, 155, 114, 0.22);
  background: #f6fffb;
}

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

.topic-reserve-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: stretch;
  max-height: none;
  overflow: visible;
  padding-right: 4px;
}

.topic-list-panel .side-card {
  max-width: none;
}

.topic-reserve-card,
.topic-test-draft,
.topic-test-topic,
.topic-comment-reference {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.topic-reserve-card {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 10px;
  min-height: 260px;
  box-shadow: 0 10px 28px rgba(23, 31, 56, 0.04);
  border-top-width: 5px;
  cursor: pointer;
}

.topic-reserve-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(23, 31, 56, 0.08);
}

.topic-reserve-card.published {
  border-color: rgba(21, 155, 114, 0.28);
}

.topic-reserve-card.candidate {
  border-color: rgba(183, 121, 31, 0.24);
}

.topic-reserve-card.draft {
  border-color: rgba(45, 74, 112, 0.16);
  background: #fbfcff;
}

.topic-reserve-card.product-ruangan {
  border-top-color: #ff3055;
}

.topic-reserve-card.product-kezhi {
  border-top-color: #2f7df6;
}

.topic-reserve-card.product-fibroscan {
  border-top-color: #f59a23;
}

.topic-reserve-card.product-science {
  border-top-color: #18a06b;
}

.topic-reserve-head {
  display: grid;
  gap: 12px;
  align-items: start;
}

.topic-reserve-head h3,
.topic-reserve-card p {
  margin: 0;
}

.topic-reserve-head h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 56px;
  line-height: 1.45;
}

.topic-reserve-card p {
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.topic-status-pill {
  justify-self: start;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #f4f6fb;
}

.topic-status-pill.published {
  color: #137a5a;
  background: #e9f8f2;
}

.topic-status-pill.candidate {
  color: #9a650f;
  background: #fff5df;
}

.topic-status-pill.draft {
  color: #2f4b70;
  background: #eef4ff;
}

.topic-reserve-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-reserve-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  background: #f5f6fa;
  font-size: 12px;
}

.topic-target-issue {
  min-width: 118px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
  font-weight: 800;
}

.topic-comment-preview,
.topic-comment-reference {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 12px;
  background: #f9fafc;
}

.topic-comment-preview strong,
.topic-comment-reference strong {
  font-size: 12px;
}

.topic-comment-preview span,
.topic-comment-reference span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

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

.topic-detail-panel {
  margin-top: 16px;
}

.topic-detail-page {
  display: grid;
  gap: 16px;
}

.topic-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(23, 31, 56, 0.06);
}

.topic-detail-hero h2,
.topic-detail-hero p {
  margin: 0;
}

.topic-detail-hero p:not(.eyebrow) {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.topic-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
  gap: 16px;
  align-items: start;
}

.topic-detail-materials,
.topic-detail-generator {
  display: grid;
  gap: 14px;
}

.topic-detail-materials label,
.topic-detail-generator label,
.topic-test-draft label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.topic-detail-materials textarea,
.topic-detail-materials input,
.topic-detail-generator select,
.topic-detail-generator input,
.topic-test-draft textarea,
.topic-test-draft input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
}

.topic-test-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.topic-test-topic {
  background: #fbfcff;
}

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

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

.topic-test-draft {
  display: grid;
  gap: 10px;
}

.topic-test-draft h3 {
  margin: 0;
}

.topic-test-body {
  white-space: pre-wrap;
  color: var(--text);
  line-height: 1.7;
}

.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;
}

.training-legacy {
  display: none !important;
}

.viral-inspiration-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(240px, 1fr) minmax(170px, 220px) auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  border: 1px solid #f0e7e8;
  border-radius: 18px;
  background: #fff;
}

.viral-search-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

.viral-search-tip {
  margin: -4px 0 18px;
  color: #6f7785;
  font-size: 13px;
  line-height: 1.55;
}

.viral-inspiration-form label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
}

.viral-inspiration-form input,
.viral-inspiration-form select,
.viral-inspiration-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ddd4d6;
  border-radius: 12px;
  padding: 0 13px;
  background: #fff;
  font: inherit;
}

.viral-inspiration-form textarea {
  min-height: 72px;
  padding: 12px 13px;
  resize: vertical;
}

.viral-inspiration-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.viral-inspiration-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #efe5e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(52, 31, 35, 0.05);
}

.viral-inspiration-card h3,
.viral-inspiration-card p {
  margin: 0;
}

.viral-inspiration-card p {
  color: var(--muted);
  line-height: 1.7;
}

.viral-inspiration-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #7a6b6e;
  font-size: 12px;
}

.viral-inspiration-meta em {
  font-style: normal;
}

.viral-library-section {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #ece7e8;
}

.viral-library-head {
  align-items: end;
}

.viral-library-head h3,
.viral-library-head p {
  margin: 0;
}

.viral-library-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.viral-library-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.viral-library-filters select,
.viral-library-filters input {
  min-height: 42px;
  border: 1px solid #ddd4d6;
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  font: inherit;
}

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

.viral-library-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e8e5e7;
  border-radius: 18px;
  background: #fff;
}

.viral-library-card[data-full="true"] {
  opacity: 0.64;
}

.viral-library-card h4,
.viral-library-card p {
  margin: 0;
}

.viral-library-card h4 {
  font-size: 17px;
  line-height: 1.45;
}

.viral-library-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.viral-library-card-meta,
.viral-library-tags,
.viral-library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.viral-library-card-meta {
  justify-content: space-between;
  color: #756b6d;
  font-size: 12px;
}

.viral-library-card-meta em {
  font-style: normal;
  font-weight: 800;
}

.viral-library-tags span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f7f2f3;
  color: #6e555a;
  font-size: 12px;
}

.viral-library-actions {
  margin-top: auto;
}

.viral-library-actions .primary-btn {
  margin-left: auto;
}

.viral-why-good {
  padding: 13px 14px;
  border-radius: 14px;
  background: #fff7f8;
}

.viral-why-good ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 20px;
  color: #594b4e;
  line-height: 1.55;
}

.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);
  gap: 14px;
  align-items: start;
}

.ip-stage-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(23, 31, 56, 0.06);
}

.ip-benchmark-workspace {
  border-color: rgba(21, 155, 114, 0.18);
  background: linear-gradient(135deg, #f7fcfa 0%, #fff 46%);
}

.ip-topics-workspace {
  border-color: rgba(37, 99, 235, 0.16);
  background: linear-gradient(135deg, #f7f9ff 0%, #fff 46%);
}

.ip-stage-head,
.ip-stage-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ip-stage-head h3 {
  margin: 4px 0 6px;
  font-size: 21px;
}

.ip-stage-head p,
.ip-stage-actions p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.ip-stage-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  color: #26735a;
  background: #e8f6f0;
  font-size: 12px;
  font-weight: 800;
}

.ip-topics-workspace .ip-stage-badge {
  color: #375db2;
  background: #eaf0ff;
}

.ip-stage-form {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(102, 112, 133, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.ip-stage-form > label,
.ip-stage-form > label textarea {
  width: 100%;
}

.ip-stage-form > label textarea {
  min-height: 94px;
  margin-top: 8px;
  resize: vertical;
}

.ip-stage-actions p {
  min-width: 0;
  flex: 1 1 auto;
}

.ip-stage-result:empty {
  display: none;
}

.ip-topic-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.ip-topic-source-options legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 800;
}

.ip-topic-source-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.ip-topic-source-options label:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.4);
  background: #f4f7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.07);
}

.ip-topic-source-options label:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
}

.ip-topic-source-options input {
  margin-top: 3px;
}

.ip-topic-source-options strong,
.ip-topic-source-options small {
  display: block;
}

.ip-topic-source-options small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.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-plan-chat-entry {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 36, 66, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff7f8 0%, #fff 100%);
}

.ip-plan-chat-entry strong,
.ip-plan-chat-entry span {
  display: block;
}

.ip-plan-chat-entry span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.5;
}

.ip-plan-chat-entry button {
  flex: 0 0 auto;
}

.ip-plan-panel {
  grid-column: 1;
  grid-row: 1;
}

.ip-workspace > .ip-benchmark-workspace {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.ip-workspace > .ip-topics-workspace {
  grid-column: 1;
  grid-row: 3;
  margin-top: 0;
}

.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 small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.55;
}

.ip-benchmark-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.ip-benchmark-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(21, 155, 114, 0.16);
  border-radius: 14px;
  background: #fff;
}

.ip-benchmark-card h4 {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.ip-benchmark-card p + p {
  margin-top: 6px;
}

.ip-benchmark-section {
  min-width: 0;
  padding: 16px;
}

.ip-benchmark-head,
.ip-benchmark-card > header,
.ip-benchmark-notes > a,
.ip-benchmark-pending > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ip-benchmark-head {
  margin-bottom: 12px;
}

.ip-benchmark-head strong,
.ip-benchmark-head span,
.ip-benchmark-card > header h4,
.ip-benchmark-card > header small {
  display: block;
}

.ip-benchmark-head span,
.ip-benchmark-head em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ip-benchmark-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #26735a;
  background: #e8f6f0;
  font-weight: 800;
}

.ip-benchmark-card > header {
  align-items: flex-start;
}

.ip-benchmark-card > header > div {
  min-width: 0;
}

.ip-benchmark-link,
.ip-benchmark-pending a {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.ip-benchmark-card-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.ip-benchmark-remove {
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.ip-benchmark-remove:hover {
  color: var(--red);
}

.ip-benchmark-bio {
  margin-top: 10px !important;
  padding: 10px 11px;
  border-radius: 10px;
  background: #f8fafc;
}

.ip-benchmark-bio b,
.ip-benchmark-findings b {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
  font-size: 12px;
}

.ip-benchmark-notes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.ip-benchmark-notes > a {
  min-width: 0;
  justify-content: flex-start;
  padding: 8px 9px;
  border: 1px solid #edf0f4;
  border-radius: 9px;
  color: var(--text);
  background: #fff;
  text-decoration: none;
}

.ip-benchmark-notes i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 6px;
  color: #26735a;
  background: #eaf7f2;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.ip-benchmark-notes span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ip-benchmark-notes em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ip-benchmark-findings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ip-benchmark-findings .wide {
  grid-column: 1 / -1;
}

.ip-benchmark-findings p {
  min-width: 0;
  padding: 9px;
  border-radius: 9px;
  background: #f5faf8;
  overflow-wrap: anywhere;
}

.ip-benchmark-pending {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #e1a1ab;
  border-radius: 12px;
  background: #fff8f9;
}

.ip-benchmark-pending > div {
  align-items: flex-start;
}

.ip-benchmark-pending span {
  flex: 0 0 90px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.ip-benchmark-pending p {
  min-width: 0;
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.ip-persona-summary {
  color: var(--text) !important;
  font-weight: 700;
}

.ip-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: 10px;
}

.ip-persona-grid > div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #eceef3;
  border-radius: 9px;
  background: #fff;
}

.ip-persona-grid span {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.ip-persona-grid p {
  overflow-wrap: anywhere;
}

.ip-growth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.ip-growth-grid > div {
  min-width: 0;
  padding: 11px;
  border: 1px solid #eceef3;
  border-radius: 10px;
  background: linear-gradient(145deg, #fff, #fafbff);
}

.ip-growth-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
}

.ip-growth-grid p {
  overflow-wrap: anywhere;
}

.ip-topic-basis {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid #e7e9ef;
  border-radius: 12px;
  background: #f8f9fc;
}

.ip-topic-basis > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ip-topic-basis span,
.ip-topic-basis p {
  color: var(--muted);
  font-size: 12px;
}

.ip-topic-basis p {
  margin: 0;
  line-height: 1.6;
}

.ip-topic-basis.verified {
  border-color: rgba(21, 155, 114, 0.2);
  background: #f2faf6;
}

.ip-topic-basis.verified span {
  color: #26735a;
  font-weight: 800;
}

@media (max-width: 720px) {
  .ip-stage-head,
  .ip-stage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-stage-actions .button-row,
  .ip-stage-actions button {
    width: 100%;
  }

  .ip-topic-source-options {
    grid-template-columns: 1fr;
  }

  .ip-benchmark-findings,
  .ip-persona-grid,
  .ip-growth-grid {
    grid-template-columns: 1fr;
  }

  .ip-benchmark-card > header,
  .ip-benchmark-pending > div,
  .ip-topic-basis > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .ip-benchmark-notes em {
    display: none;
  }

  .ip-benchmark-card-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .ip-benchmark-notes span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

.ip-launch-plan {
  display: grid;
  gap: 8px;
}

.ip-launch-plan li {
  padding-left: 4px;
}

.ip-launch-plan b,
.ip-launch-plan span {
  display: block;
}

.ip-launch-plan b {
  color: var(--text);
}

.ip-plan-reference {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid #e6e9f0;
  border-radius: 12px;
  color: #667085;
  background: #f8f9fc;
  font-size: 12px;
}

.ip-plan-reference strong {
  color: #344054;
}

.ip-plan-reference.verified {
  border-color: rgba(21, 155, 114, 0.2);
  color: #39735f;
  background: #f2faf6;
}

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

.ip-seven-day-block {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.ip-topic-evidence {
  display: grid;
  gap: 8px;
}

.ip-topic-evidence > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(21, 155, 114, 0.2);
  border-radius: 10px;
  color: #246b55;
  background: #f2faf6;
  text-decoration: none;
}

.ip-topic-evidence > a:hover {
  border-color: rgba(21, 155, 114, 0.45);
}

.ip-topic-evidence > a span {
  font-weight: 600;
}

.ip-topic-evidence > a em {
  flex: 0 0 auto;
  color: #548574;
  font-size: 12px;
  font-style: normal;
}

.ip-seven-day-head,
.ip-seven-day-preview-head,
.ip-seven-day-adjuster-foot,
.ip-seven-day-preview-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ip-seven-day-head {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff9fa, #f8fbff);
}

.ip-seven-day-head strong,
.ip-seven-day-head span,
.ip-seven-day-preview-head strong,
.ip-seven-day-preview-head span {
  display: block;
}

.ip-seven-day-head span,
.ip-seven-day-preview-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ip-seven-day-head-actions,
.ip-seven-day-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ip-seven-day-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.ip-seven-day-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ip-seven-day-item.selected {
  border-color: rgba(255, 36, 66, 0.28);
  background: #fff8fa;
  box-shadow: 0 8px 24px rgba(255, 36, 66, 0.07);
}

.ip-seven-day-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.ip-seven-day-choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.ip-seven-day-copy {
  min-width: 0;
}

.ip-seven-day-copy em,
.ip-seven-day-copy strong {
  display: block;
}

.ip-seven-day-copy em {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.ip-seven-day-copy strong {
  margin: 0;
  color: #202531;
  line-height: 1.5;
}

.ip-seven-day-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.ip-name-suggestion-group + .ip-name-suggestion-group {
  margin-top: 10px;
}

.ip-name-suggestion-group > span {
  display: inline-flex;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.ip-name-suggestion-group.recommended > span {
  color: var(--red);
}

.ip-seven-day-actions button,
.ip-seven-day-head-actions button {
  min-height: 36px;
  padding: 7px 10px;
  white-space: nowrap;
}

.ip-seven-day-actions .saved {
  color: #087b58;
  background: #eef9f5;
}

.ip-topic-plan-detail {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid #e5e9f2;
  border-radius: 12px;
  background: #f8faff;
}

.ip-topic-plan-detail > div {
  padding: 10px;
  border-radius: 10px;
  background: #fff;
}

.ip-topic-plan-detail > div.wide {
  grid-column: 1 / -1;
}

.ip-topic-plan-detail strong,
.ip-topic-plan-detail p,
.ip-topic-plan-detail ol {
  margin: 0;
}

.ip-topic-plan-detail strong {
  margin-bottom: 5px;
  color: #344054;
  font-size: 12px;
}

.ip-topic-plan-detail p,
.ip-topic-plan-detail ol {
  color: #667085;
  font-size: 13px;
  line-height: 1.65;
}

.ip-topic-plan-detail ol {
  padding-left: 18px;
}

.ip-topic-plan-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ip-topic-plan-actions span {
  color: #087b58;
  font-size: 12px;
  font-weight: 800;
}

.ip-seven-day-adjuster,
.ip-seven-day-preview {
  margin: 0 12px 12px;
  padding: 14px;
  border: 1px solid rgba(255, 36, 66, 0.2);
  border-radius: 14px;
  background: #fff9fa;
}

.ip-seven-day-adjuster label,
.ip-seven-day-adjuster label > span {
  display: block;
}

.ip-seven-day-adjuster-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ip-seven-day-adjuster-head strong,
.ip-seven-day-adjuster-head span {
  display: block;
}

.ip-seven-day-adjuster-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.ip-seven-day-picker {
  margin-bottom: 12px;
}

.ip-seven-day-picker > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ip-seven-day-picker > div {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.ip-seven-day-picker button {
  min-height: 38px;
  padding: 6px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #667085;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.ip-seven-day-picker button.selected {
  border-color: rgba(255, 36, 66, 0.34);
  color: var(--red);
  background: #fff0f3;
}

.ip-seven-day-adjuster label > span {
  margin-bottom: 7px;
  font-weight: 850;
}

.ip-seven-day-adjuster textarea {
  width: 100%;
  resize: vertical;
  background: #fff;
}

.ip-seven-day-adjuster-foot {
  margin-top: 10px;
}

.ip-seven-day-adjuster-foot > span {
  color: var(--muted);
  font-size: 12px;
}

.ip-seven-day-adjuster-foot > div,
.ip-seven-day-preview-actions {
  display: flex;
  gap: 8px;
}

.ip-seven-day-preview {
  border-color: rgba(21, 155, 114, 0.24);
  background: #f5fbf8;
}

.ip-seven-day-diff-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ip-seven-day-diff {
  display: grid;
  grid-template-columns: 62px repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.ip-seven-day-diff > em,
.ip-seven-day-diff > div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.ip-seven-day-diff > em {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.ip-seven-day-diff > div.new {
  border-color: rgba(21, 155, 114, 0.24);
  background: #f1faf6;
}

.ip-seven-day-diff span {
  color: var(--muted);
  font-size: 11px;
}

.ip-seven-day-diff p {
  margin: 4px 0 0;
  color: #202531;
  line-height: 1.5;
}

.ip-seven-day-preview-actions {
  justify-content: flex-end;
  margin-top: 12px;
}

.ip-seven-day-status {
  min-height: 18px;
  margin: 0;
  padding: 0 14px 12px;
  color: var(--muted);
  font-size: 12px;
}

.ip-seven-day-status[data-kind="loading"] {
  color: #9b6500;
}

.ip-seven-day-status[data-kind="success"] {
  color: #087b58;
}

.ip-seven-day-status[data-kind="error"] {
  color: #c5233f;
}

.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,
  .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,
  .topic-lane-grid,
  .topic-source-grid,
  .topic-reserve-layout,
  .topic-detail-grid,
  .topic-detail-hero,
  .topic-test-controls,
  .data-source-facts,
  #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;
  }

  .identity-ip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 55, 91, 0.2);
    border-radius: 999px;
    background: #fff4f6;
    color: var(--red);
    font-size: 12px;
    font-weight: 800;
  }

  .identity-xhs-btn {
    min-height: 38px;
    padding: 0 12px;
  }

  .main {
    padding: 14px 12px 92px;
    width: 100%;
  }

  .topbar,
  .section-head,
  .hero-panel,
  .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,
  .topic-reserve-layout,
  .metric-grid,
  .ip-workspace,
  .ip-section-grid,
  .ip-benchmark-grid,
  .readiness-panel,
  .board-agent-panel,
  .analytics-layout,
  .auto-task-grid,
  .automation-rules,
  .automation-rule,
  .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,
  .comment-card-grid,
  .comment-create-panel[open],
  .comment-task-board-head,
  .comment-assignment-row,
  .board-columns {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ip-plan-panel,
  .ip-workspace > .ip-benchmark-workspace,
  .ip-workspace > .ip-topics-workspace {
    grid-column: 1;
    grid-row: auto;
  }

  .comment-assignment-actions {
    justify-content: flex-start;
    min-width: 0;
  }

  .comment-mine-entry-card {
    padding: 14px;
  }

  .comment-mine-entry-card .mine-task-section-head {
    align-items: start;
  }

  .comment-task-board {
    padding: 12px;
  }

  .comment-assignment-status-section {
    padding: 10px;
  }

  .comment-assignment-actions .ghost-btn,
  .comment-assignment-actions .primary-btn {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
  }

  .comment-consult-upload-modal {
    width: min(96vw, 620px);
    padding: 18px;
  }

  .comment-consult-upload-modal form {
    max-height: min(86vh, 720px);
    overflow-y: auto;
  }

  .comment-consult-upload-body {
    gap: 12px;
  }

  .comment-consult-file-box {
    padding: 12px;
    border-radius: 12px;
  }

  .comment-consult-dropzone {
    min-height: 72px;
    padding: 13px;
  }

  .comment-consult-mobile-actions {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comment-consult-picker-btn {
    min-height: 46px;
    font-size: 14px;
  }

  .comment-consult-upload-modal .button-row button {
    min-height: 46px;
  }

  .comment-consult-native-picker {
    gap: 7px;
  }

  .comment-consult-native-picker strong,
  .comment-consult-file-box > span {
    font-size: 12px;
  }

  .theme-rail {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .theme-card {
    min-height: auto;
    padding: 13px 14px;
    border-radius: 12px;
  }

  .theme-card strong,
  .theme-card em,
  .theme-card b {
    max-width: 100%;
    white-space: normal;
  }

  .theme-card b {
    justify-self: start;
    margin-top: 4px;
  }

  .topic-section-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: start;
  }

  .topic-section-head em {
    justify-self: start;
  }

  .topic-section-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .topic-card {
    min-height: auto;
    padding: 13px;
    gap: 9px;
  }

  .topic-card-head,
  .topic-card-foot {
    grid-template-columns: 1fr;
  }

  .topic-card-head {
    display: grid;
    gap: 8px;
  }

  .topic-meta {
    justify-items: start;
    text-align: left;
  }

  .topic-card h3 {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .topic-card p,
  .topic-hook,
  .topic-viral {
    font-size: 13px;
  }

  .topic-card-foot {
    align-items: stretch;
  }

  .topic-card-foot .primary-btn,
  .topic-card-foot .ghost-btn {
    width: 100%;
  }

  .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;
  }

  .agent-card,
  .side-card,
  .draft-card,
  .task-card,
  .topic-summary,
  .placeholder,
  .admin-login-panel,
  .admin-overview-panel {
    border-radius: 12px;
    padding: 14px;
  }

  .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;
  }

  .identity-xhs-modal .modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .employee-login-modal form { padding: 16px; }
  .employee-login-brand { padding: 17px; }
  .employee-login-brand strong { font-size: 21px; }
  .employee-login-fields { grid-template-columns: 1fr; }
  .employee-login-fields > label:nth-child(3),
  .employee-login-fields > .employee-login-confirm { grid-column: auto; }
  .employee-login-actions { display: grid; grid-template-columns: 1fr; }

  .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(3, 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,
  .personal-ip-generation-grid,
  .form-grid,
  .scene-grid,
  .creative-grid,
  .cover-actions {
    grid-template-columns: 1fr;
  }

  .profile-search {
    display: grid;
    width: 100%;
  }

  .profile-panel {
    width: 100%;
    min-width: 0;
  }

  .current-identity-bar {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0 4px;
  }

  .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-plan-chat-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-plan-chat-entry button {
    width: 100%;
  }

  .ip-floating-agent {
    right: 14px;
    bottom: 18px;
  }

  .ip-agent-toggle {
    min-width: 156px;
  }

  .ip-seven-day-head,
  .ip-seven-day-preview-head,
  .ip-seven-day-adjuster-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-seven-day-head-actions,
  .ip-seven-day-head-actions button,
  .ip-seven-day-adjuster-foot > div,
  .ip-seven-day-adjuster-foot button {
    width: 100%;
  }

  .ip-seven-day-head-actions,
  .ip-seven-day-adjuster-foot > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-seven-day-item {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px;
  }

  .ip-seven-day-picker > div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ip-seven-day-picker button {
    min-height: 44px;
  }

  .ip-seven-day-choice {
    justify-content: space-between;
    width: 100%;
    min-height: 32px;
  }

  .ip-seven-day-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-seven-day-actions button {
    min-height: 44px;
  }

  .ip-topic-plan-detail {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .ip-topic-plan-detail > div.wide {
    grid-column: auto;
  }

  .ip-topic-plan-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ip-topic-plan-actions button {
    min-height: 44px;
    width: 100%;
  }

  .ip-seven-day-adjuster,
  .ip-seven-day-preview {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    max-height: 78vh;
    margin: 0;
    overflow-y: auto;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -20px 60px rgba(23, 31, 56, 0.22);
  }

  .ip-seven-day-preview {
    z-index: 72;
  }

  .ip-seven-day-diff {
    grid-template-columns: 1fr;
  }

  .ip-seven-day-diff > em {
    display: block;
    text-align: left;
  }

  .ip-seven-day-preview-actions,
  .ip-seven-day-preview-actions button {
    width: 100%;
  }

  .ip-seven-day-preview-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .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));
  }
}

.planning-section-head {
  align-items: end;
}

.daily-inspiration-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid #f0d9df;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 81, 111, 0.12), transparent 34%),
    linear-gradient(145deg, #fff, #fff8fa);
  box-shadow: 0 18px 50px rgba(66, 26, 39, 0.07);
}

[data-planning-section][hidden] {
  display: none !important;
}

.planning-view-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(132px, 1fr));
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border: 1px solid #eadde1;
  border-radius: 16px;
  background: #fff7f9;
}

.planning-view-tab {
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  color: #747b87;
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.planning-view-tab.active {
  color: #fff;
  background: linear-gradient(145deg, #ff385a, #e72749);
  box-shadow: 0 8px 20px rgba(231, 39, 73, 0.2);
}

.daily-inspiration-panel[aria-busy="true"] {
  opacity: 0.88;
}

.daily-inspiration-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.daily-inspiration-head > div {
  display: grid;
  gap: 5px;
}

.daily-inspiration-head span,
.planning-subsection-title span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.daily-inspiration-head h3,
.daily-inspiration-head p,
.planning-subsection-title h3 {
  margin: 0;
}

.daily-inspiration-head h3 {
  font-size: clamp(24px, 3vw, 32px);
}

.daily-inspiration-head p {
  color: #687080;
  line-height: 1.6;
}

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

.daily-inspiration-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(235, 218, 223, 0.95);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.daily-inspiration-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #ff385a, #e72749);
  font-weight: 900;
}

.daily-inspiration-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.daily-inspiration-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.daily-inspiration-meta span,
.daily-inspiration-meta em {
  color: #985165;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.daily-inspiration-card h3,
.daily-inspiration-card p,
.daily-inspiration-card small {
  margin: 0;
  overflow-wrap: anywhere;
}

.daily-inspiration-card h3 {
  font-size: 17px;
  line-height: 1.45;
}

.daily-inspiration-card p,
.daily-inspiration-card small {
  color: #626a78;
  line-height: 1.6;
}

.daily-inspiration-card small {
  padding: 9px 10px;
  border-radius: 11px;
  background: #fff5f7;
}

.daily-inspiration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.daily-inspiration-actions button {
  min-height: 42px;
}

.daily-inspiration-actions .saved {
  color: #087a55;
  border-color: #a8dfca;
  background: #effaf5;
}

.daily-inspiration-empty {
  grid-column: 1 / -1;
  padding: 30px 18px;
  border: 1px dashed #e5cbd2;
  border-radius: 16px;
  color: #78808e;
  text-align: center;
}

.daily-source-divider {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(183, 112, 132, 0.2);
}

.daily-source-divider > div {
  display: grid;
  gap: 5px;
}

.daily-source-divider span {
  color: #087a55;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.daily-source-divider h3,
.daily-source-divider p {
  margin: 0;
}

.daily-source-divider h3 {
  font-size: 22px;
}

.daily-source-divider p {
  color: #687080;
  line-height: 1.6;
}

.daily-viral-recommendation-card {
  border-color: rgba(41, 145, 102, 0.2);
  background: rgba(248, 253, 250, 0.96);
}

.daily-viral-recommendation-card .daily-inspiration-number {
  background: linear-gradient(145deg, #15956b, #087a55);
}

.planning-subsection-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 6px 0 12px;
}

.planning-subsection-title > div {
  display: grid;
  gap: 4px;
}

.planning-subsection-title h3 {
  font-size: 22px;
}

.planning-form-card,
.planning-main,
.planning-library-card {
  border: 1px solid rgba(226, 229, 236, 0.95);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(31, 37, 50, 0.06);
}

.planning-form-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.planning-form-card label {
  display: grid;
  gap: 8px;
  color: #343a46;
  font-weight: 800;
}

#planningCustomTypeWrap[hidden] {
  display: none !important;
}

.planning-query-field textarea {
  min-height: 104px;
  resize: vertical;
}

.planning-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.planning-switch {
  min-height: 48px;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #e1e5ec;
  border-radius: 14px;
  background: #f8fafc;
}

.planning-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--red);
}

.planning-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.planning-status {
  min-height: 22px;
  margin: 0;
  color: #687080;
  font-size: 14px;
}

.planning-status[data-kind="success"] {
  color: #087a55;
}

.planning-status[data-kind="error"] {
  color: #c4233d;
}

.planning-evidence {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #bfe8d8;
  border-radius: 16px;
  background: #f6fcf9;
}

.planning-evidence[hidden] {
  display: none !important;
}

.planning-evidence-head,
.planning-evidence-head > div,
.planning-evidence-links,
.planning-evidence-links a,
.planning-evidence-unavailable,
.planning-evidence-links a > span,
.planning-evidence-unavailable > span {
  display: grid;
}

.planning-evidence-head {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.planning-evidence-head > div,
.planning-evidence-links a > span,
.planning-evidence-unavailable > span {
  gap: 4px;
}

.planning-evidence-head span,
.planning-evidence-head em,
.planning-evidence-links small {
  color: #5f746c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.planning-evidence-head em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #087a55;
  background: #e3f6ee;
  font-weight: 800;
}

.planning-evidence-links {
  gap: 8px;
}

.planning-evidence-links a,
.planning-evidence-unavailable {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(8, 122, 85, 0.14);
  border-radius: 12px;
  color: #25312d;
  background: #fff;
  text-decoration: none;
}

.planning-evidence-links a:hover {
  border-color: rgba(8, 122, 85, 0.42);
  box-shadow: 0 8px 20px rgba(8, 122, 85, 0.08);
}

.planning-evidence-links b,
.planning-evidence-unavailable b {
  color: #087a55;
  font-size: 12px;
  white-space: nowrap;
}

.planning-evidence-unavailable b {
  color: #8a746c;
}

.planning-reference-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid rgba(8, 122, 85, 0.16);
  border-radius: 12px;
  background: #fff;
}

.planning-reference-choice.selected {
  border-color: #ff375f;
  box-shadow: 0 8px 22px rgba(255, 55, 95, 0.1);
}

.planning-reference-choice label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  cursor: pointer;
}

.planning-reference-choice label > span {
  display: grid;
  gap: 4px;
}

.planning-reference-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff375f;
}

.planning-reference-choice > a {
  display: inline-flex;
  padding: 7px 10px;
  border: 0;
  color: #087a55;
  background: #eefaf5;
  box-shadow: none;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.planning-reference-choice > a:hover {
  border: 0;
  box-shadow: none;
}

.planning-reference-choice small {
  color: #5f746c;
  font-size: 12px;
  line-height: 1.5;
}

.planning-reference-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.planning-reference-actions span {
  color: #5f746c;
  font-size: 12px;
}

.ip-topic-candidates {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 720px) {
  .planning-evidence-head,
  .planning-evidence-links a,
  .planning-evidence-unavailable,
  .planning-reference-choice {
    grid-template-columns: 1fr;
  }

  .planning-reference-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.planning-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.planning-main,
.planning-library-card {
  padding: 22px;
}

.planning-idea-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.planning-idea-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid #e7e9ef;
  border-radius: 18px;
  background: linear-gradient(155deg, #fff, #fbfbfe);
}

.planning-idea-card h3,
.planning-idea-card p,
.planning-idea-card ul,
.planning-idea-card small {
  margin: 0;
}

.planning-idea-card h3 {
  font-size: 18px;
  line-height: 1.45;
}

.planning-idea-card p,
.planning-idea-card li,
.planning-idea-card small {
  color: #5c6472;
  line-height: 1.65;
}

.planning-idea-card ul {
  padding-left: 20px;
}

.planning-idea-head,
.planning-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.planning-idea-head span,
.planning-idea-head em {
  color: #8a4050;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.planning-card-actions {
  align-self: end;
  justify-content: flex-end;
  margin-top: 4px;
}

.planning-card-actions .saved {
  color: #087a55;
  border-color: #a8dfca;
  background: #effaf5;
}

.planning-library-card > p {
  margin: 8px 0 16px;
  color: #6b7280;
  line-height: 1.6;
}

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

.planning-library-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e7e9ef;
  border-radius: 15px;
}

.planning-library-item div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.planning-library-item strong,
.planning-library-item span {
  overflow-wrap: anywhere;
}

.planning-library-item span {
  color: #737b89;
  font-size: 13px;
  line-height: 1.5;
}

.planning-library-item.viral-reference-item {
  border-color: #bfe8d8;
  background: #f6fcf9;
}

.planning-library-source {
  color: #087a55;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.planning-empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  border: 1px dashed #d5d9e2;
  border-radius: 16px;
  color: #78808e;
  text-align: center;
}

.signup-note-title-field,
.signup-note-link-field {
  grid-column: span 2;
}

.mine-task-main small {
  color: #7a818e;
  font-size: 12px;
  line-height: 1.45;
}

.ip-account-card {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid rgba(226, 229, 236, 0.95);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff, #fbfcff);
  box-shadow: 0 16px 44px rgba(31, 37, 50, 0.05);
}

.ip-account-head,
.ip-account-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.ip-account-head h3,
.ip-account-head p,
.ip-account-actions p {
  margin: 0;
}

.ip-account-head > div {
  display: grid;
  gap: 5px;
}

.ip-account-head > div > p:last-child {
  color: #6f7684;
}

.ip-account-load-btn {
  min-width: 164px;
  flex: 0 0 auto;
  white-space: nowrap;
}

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

.ip-account-grid label {
  display: grid;
  gap: 8px;
  color: #343a46;
  font-weight: 800;
}

.ip-account-url-field {
  grid-column: span 2;
}

.ip-account-actions {
  justify-content: flex-end;
}

.ip-account-actions p {
  margin-right: auto;
  color: #6f7684;
  font-size: 14px;
}

.ip-account-actions p[data-kind="success"] {
  color: #087a55;
}

.ip-account-actions p[data-kind="error"] {
  color: #c4233d;
}

.admin-ip-card-section {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid rgba(226, 229, 236, 0.95);
  border-radius: 22px;
  background: #fff;
}

.admin-ip-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admin-ip-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #e7e9ef;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #fbfcff);
}

.admin-ip-card-head,
.admin-ip-account-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-ip-card-head div {
  min-width: 0;
}

.admin-ip-card-head span,
.admin-ip-card-head em,
.admin-ip-card small {
  color: #727a88;
  font-size: 12px;
  font-style: normal;
}

.admin-ip-card h3,
.admin-ip-card p {
  margin: 0;
}

.admin-ip-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-ip-card-actions .ghost-btn {
  min-height: 36px;
  padding: 7px 12px;
  white-space: nowrap;
}

.admin-secondary-tools,
.admin-collector-details {
  margin: 12px 0;
  border: 1px solid rgba(34, 39, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-secondary-tools > summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
}

.admin-secondary-tools > .button-row {
  padding: 0 18px 16px;
}

.admin-collector-details .admin-xhs-collector {
  margin: 0;
  border: 0;
  border-radius: 18px;
}

.app-update-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 61, 92, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 54px rgba(30, 22, 27, 0.18);
}

.app-update-banner.hidden {
  display: none;
}

.app-update-banner span {
  color: #303541;
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .app-update-banner {
    right: 12px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 12px;
    max-width: none;
  }

  .app-update-banner .primary-btn {
    min-height: 44px;
    white-space: nowrap;
  }
}

.admin-ip-account-line a {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.admin-ip-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.admin-ip-metrics span {
  display: grid;
  gap: 3px;
  padding: 8px 5px;
  border-radius: 11px;
  background: #f5f7fa;
  color: #737b89;
  font-size: 11px;
  text-align: center;
}

.admin-ip-metrics b {
  color: #212735;
  font-size: 15px;
}

.admin-ip-analysis {
  display: grid;
  gap: 4px;
  padding: 11px;
  border-radius: 13px;
  background: #fff5f7;
}

.admin-ip-analysis strong {
  color: #b6203a;
  font-size: 12px;
}

.admin-ip-analysis span {
  color: #5f6673;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .daily-inspiration-list {
    grid-template-columns: 1fr;
  }

  .planning-form-grid,
  .planning-idea-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planning-workspace {
    grid-template-columns: 1fr;
  }

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

  .admin-ip-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .square-signup-guide {
    padding: 16px;
  }

  .square-signup-guide-head {
    display: grid;
    align-items: start;
  }

  .square-signup-steps {
    grid-template-columns: 1fr;
  }

  .signup-note-title-field,
  .signup-note-link-field {
    grid-column: auto;
  }
  .planning-view-tabs {
    position: sticky;
    z-index: 4;
    top: 0;
    display: grid;
    width: 100%;
  }
  .daily-inspiration-panel {
    gap: 12px;
    margin: 0 -4px 18px;
    padding: 15px;
    border-radius: 18px;
  }

  .daily-inspiration-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 10px;
  }

  .daily-inspiration-head h3 {
    font-size: 25px;
  }

  .daily-inspiration-head p {
    display: none;
  }

  .daily-inspiration-head button {
    min-width: 88px;
    min-height: 48px;
  }

  .daily-inspiration-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .daily-inspiration-number {
    width: 30px;
    height: 30px;
    border-radius: 10px;
  }

  .daily-inspiration-card h3 {
    font-size: 18px;
  }

  .daily-inspiration-card small {
    font-size: 13px;
  }

  .daily-inspiration-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .daily-inspiration-actions button {
    min-height: 48px;
  }

.daily-inspiration-actions .text-btn {
    grid-column: 1 / -1;
  }

  .planning-form-card,
  .planning-main,
  .planning-library-card {
    padding: 16px;
    border-radius: 18px;
  }

  .planning-form-grid,
  .planning-idea-grid {
    grid-template-columns: 1fr;
  }

  .planning-form-actions,
  .planning-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .planning-form-actions button,
  .planning-card-actions button,
  .planning-library-item button {
    min-height: 46px;
  }

  .planning-library-item {
    grid-template-columns: 1fr;
  }

  .ip-account-card {
    padding: 16px;
    border-radius: 18px;
  }

  .ip-account-head,
  .ip-account-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ip-account-load-btn {
    width: 100%;
  }

  .ip-account-grid {
    grid-template-columns: 1fr;
  }

  .ip-account-url-field {
    grid-column: auto;
  }

  .admin-ip-card-grid {
    grid-template-columns: 1fr;
  }

  .viral-inspiration-form,
  .viral-inspiration-results {
    grid-template-columns: 1fr;
  }

  .viral-inspiration-form {
    padding: 16px;
  }

  .viral-inspiration-form button,
  .viral-inspiration-card .planning-card-actions a,
  .viral-inspiration-card .planning-card-actions button {
    width: 100%;
    min-height: 46px;
  }

  .ip-account-actions button {
    width: 100%;
  }

  .view button,
  .topbar button,
  .view input:not([type="checkbox"]):not([type="radio"]),
  .view select {
    min-height: 44px;
  }

  .mobile-tabbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    overflow: hidden;
    padding: 6px;
  }

  .mobile-tabbar::-webkit-scrollbar {
    display: none;
  }

  .mobile-tab {
    min-width: 0;
    min-height: 48px;
    padding: 0 2px;
    font-size: 11px;
    white-space: nowrap;
  }
}

.daily-inspiration-evidence {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(41, 145, 102, 0.18);
  border-radius: 14px;
  background: #f6fcf8;
}

.daily-inspiration-evidence[hidden] {
  display: none;
}

+/* Open image studio */
.image-page-head {
  align-items: center;
}

.image-page-head > div:first-child > p:last-child {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.image-quota-card {
  min-width: 150px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 36, 66, 0.16);
  border-radius: 15px;
  background: linear-gradient(145deg, #fff, #fff5f7);
  box-shadow: 0 12px 30px rgba(255, 36, 66, 0.07);
}

.image-quota-card span,
.image-quota-card small,
.image-quota-card strong {
  display: block;
}

.image-quota-card span,
.image-quota-card small {
  color: var(--muted);
  font-size: 11px;
}

.image-quota-card strong {
  margin: 3px 0;
  color: var(--red);
  font-size: 20px;
}

.image-studio-layout {
  display: grid;
  grid-template-columns: minmax(380px, 500px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.image-control-panel,
.image-results-panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(29, 35, 52, 0.06);
}

.image-control-panel {
  display: grid;
  gap: 0;
  padding: 18px;
}

.image-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 5px;
  border-radius: 15px;
  background: #f4f5f8;
}

.image-mode-switch button {
  display: grid;
  gap: 3px;
  min-height: 65px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #656b77;
  text-align: left;
  background: transparent;
}

.image-mode-switch button strong {
  color: #383d48;
  font-size: 14px;
}

.image-mode-switch button span {
  font-size: 11px;
}

.image-mode-switch button.active {
  border-color: rgba(255, 36, 66, 0.18);
  color: #8f5360;
  background: #fff;
  box-shadow: 0 7px 20px rgba(38, 42, 54, 0.08);
}

.image-mode-switch button.active strong {
  color: var(--red);
}

.image-form-section {
  display: grid;
  gap: 13px;
  padding: 20px 0;
  border-bottom: 1px solid #eff0f3;
}

.image-form-section[hidden],
#imageSingleTitleField[hidden] {
  display: none !important;
}

.image-form-section label {
  display: grid;
  gap: 7px;
  color: #353a45;
  font-size: 13px;
  font-weight: 800;
}

.image-form-section input,
.image-form-section select,
.image-form-section textarea {
  width: 100%;
  border-color: #e3e6eb;
  color: var(--ink);
  font-weight: 500;
  background: #fbfcfd;
}

.image-form-section textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.65;
}

.image-form-section input:focus,
.image-form-section select:focus,
.image-form-section textarea:focus {
  outline: 3px solid rgba(255, 36, 66, 0.09);
  border-color: rgba(255, 36, 66, 0.45);
  background: #fff;
}

.optional-label {
  color: #979ca7;
  font-size: 11px;
  font-weight: 500;
}

.image-field-heading,
.image-field-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.image-field-heading {
  justify-content: space-between;
}

.image-field-heading strong {
  font-size: 15px;
}

.image-field-heading em {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--red);
  background: #fff1f3;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.image-step {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #17191f;
  font-size: 11px;
  font-weight: 900;
}

.image-reference-dropzone {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 20px;
  border: 1.5px dashed #d9dce3;
  border-radius: 16px;
  color: #4a505c;
  text-align: center;
  background: #fafbfc;
  cursor: pointer;
  transition: 0.18s ease;
}

.image-reference-dropzone:hover,
.image-reference-dropzone.dragging {
  border-color: rgba(255, 36, 66, 0.55);
  background: #fff7f8;
}

.image-reference-dropzone small {
  max-width: 330px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.image-upload-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--red);
  background: #fff0f2;
  font-size: 23px;
}

.image-reference-dropzone.has-image {
  min-height: 112px;
  padding: 16px;
  background: #fffafb;
}

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

.image-reference-list:empty {
  display: none;
}

.image-reference-list.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-reference-item {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  background: #f5f6f8;
}

.image-reference-item img {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
}

.image-reference-pdf-icon {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  gap: 6px;
  color: #c72f43;
  text-align: center;
  background: linear-gradient(145deg, #fff8f9, #f6f2f3);
}

.image-reference-pdf-icon b {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.image-reference-pdf-icon small {
  color: #8b7f83;
  font-size: 9px;
  font-weight: 700;
}

.image-reference-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 25px;
  min-height: 25px !important;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(18, 20, 25, 0.75);
  font-size: 17px;
}

.image-reference-item span {
  display: block;
  overflow: hidden;
  padding: 6px 7px;
  color: #777d88;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-reference-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.image-reference-actions[hidden] {
  display: none !important;
}

.image-reference-actions span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-fixed-ip-card {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(105, 82, 181, 0.17);
  border-radius: 15px;
  background: linear-gradient(145deg, #fbfaff, #f7f5ff);
}

.image-fixed-ip-head,
.image-fixed-ip-head > div,
.image-fixed-ip-saved,
.image-fixed-ip-actions {
  display: flex;
  align-items: center;
}

.image-fixed-ip-head {
  justify-content: space-between;
  gap: 12px;
}

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

.image-ip-choice-grid button {
  min-height: 74px;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px;
  border: 1px solid rgba(105, 82, 181, 0.18);
  border-radius: 12px;
  color: #4f485b;
  text-align: left;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}

.image-ip-choice-grid button strong,
.image-ip-choice-grid button span {
  display: block;
}

.image-ip-choice-grid button strong {
  font-size: 12px;
}

.image-ip-choice-grid button span {
  color: #878190;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.image-ip-choice-grid button:hover,
.image-ip-choice-grid button.active {
  border-color: #765aba;
  background: #fff;
  box-shadow: 0 7px 18px rgba(83, 62, 146, 0.09);
}

.image-ip-choice-grid button.active strong {
  color: #6248aa;
}

.image-ip-choice-grid button.unavailable:not(.active) {
  border-style: dashed;
}

.image-fixed-ip-head > div,
.image-fixed-ip-saved {
  min-width: 0;
  gap: 9px;
}

.image-fixed-ip-head strong,
.image-fixed-ip-head small,
.image-fixed-ip-saved strong,
.image-fixed-ip-saved span {
  display: block;
}

.image-fixed-ip-head small,
.image-fixed-ip-saved span {
  margin-top: 2px;
  color: #827b92;
  font-size: 10px;
}

.image-ip-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #6a54b5, #9c78ef);
  font-size: 11px;
  font-weight: 900;
}

.image-ip-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 6px !important;
  color: #6952a9 !important;
  cursor: pointer;
}

.image-ip-toggle input {
  width: 18px !important;
  min-height: 18px !important;
  accent-color: #7457bf;
}

.image-fixed-ip-summary {
  display: grid;
  gap: 10px;
}

.image-fixed-ip-delete {
  width: max-content;
  justify-self: end;
  color: #a65c69;
}

.image-fixed-ip-summary[hidden],
.image-fixed-ip-editor[hidden] {
  display: none !important;
}

.image-fixed-ip-summary p,
.image-fixed-ip-storage-note {
  margin: 0;
  color: #777084;
  font-size: 11px;
  line-height: 1.6;
}

.image-fixed-ip-editor {
  display: grid;
  gap: 11px;
  padding-top: 3px;
}

.image-fixed-ip-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: 92vh;
  overflow: hidden;
  padding: 0;
}

.image-fixed-ip-dialog::backdrop {
  background: rgba(24, 25, 32, 0.5);
  backdrop-filter: blur(3px);
}

.image-fixed-ip-dialog .image-fixed-ip-editor {
  max-height: 92vh;
  overflow-y: auto;
  gap: 15px;
  padding: 24px;
}

.image-fixed-ip-dialog label {
  display: grid;
  gap: 7px;
  color: #353a45;
  font-size: 13px;
  font-weight: 800;
}

.image-fixed-ip-dialog input,
.image-fixed-ip-dialog textarea {
  width: 100%;
  border-color: #e3e6eb;
  color: var(--ink);
  font-weight: 500;
  background: #fbfcfd;
}

.image-fixed-ip-dialog textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.65;
}

.image-fixed-ip-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.image-fixed-ip-dialog-head h2,
.image-fixed-ip-dialog-head p {
  margin: 0;
}

.image-fixed-ip-dialog-head h2 {
  margin-top: 3px;
  color: #252832;
  font-size: 22px;
}

.image-fixed-ip-dialog-head > div > p:last-child {
  max-width: 610px;
  margin-top: 7px;
  color: #777d88;
  font-size: 12px;
  line-height: 1.65;
}

.image-fixed-ip-dialog-head .icon-btn {
  flex: 0 0 auto;
}

.image-ip-creation-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.image-ip-creation-paths > div {
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(105, 82, 181, 0.16);
  border-radius: 12px;
  background: #faf9ff;
}

.image-ip-creation-paths strong,
.image-ip-creation-paths span {
  display: block;
}

.image-ip-creation-paths strong {
  color: #5f49a4;
  font-size: 12px;
}

.image-ip-creation-paths span {
  color: #827b92;
  font-size: 10px;
  line-height: 1.5;
}

.image-fixed-ip-upload strong em {
  margin-left: 5px;
  color: #9993a4;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.image-fixed-ip-fields {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.image-fixed-ip-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.image-fixed-ip-editor-head strong,
.image-fixed-ip-editor-head span {
  display: block;
}

.image-fixed-ip-editor-head span {
  max-width: 520px;
  margin-top: 3px;
  color: #827b92;
  font-size: 10px;
  line-height: 1.55;
}

.image-fixed-ip-upload {
  min-height: 72px;
  place-items: center;
  align-content: center;
  padding: 12px;
  border: 1px dashed rgba(105, 82, 181, 0.35);
  border-radius: 12px;
  color: #6952a9 !important;
  text-align: center;
  background: #fff;
  cursor: pointer;
}

.image-fixed-ip-upload span {
  color: #8a8494;
  font-size: 10px;
  font-weight: 500;
}

.image-fixed-ip-actions {
  justify-content: flex-end;
  gap: 8px;
}

.image-fixed-ip-decision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.image-fixed-ip-decision button {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 11px 13px;
  text-align: left;
}

.image-fixed-ip-decision button strong,
.image-fixed-ip-decision button span {
  display: block;
}

.image-fixed-ip-decision button span {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.78;
}

.image-fixed-ip-review {
  display: grid;
  grid-template-columns: minmax(112px, 150px) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(105, 82, 181, 0.2);
  border-radius: 13px;
  background: #fff;
}

.image-fixed-ip-review[hidden] {
  display: none !important;
}

.image-fixed-ip-preview-button {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #f1eef7;
  cursor: zoom-in;
}

.image-fixed-ip-preview-button img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  background: #f1eef7;
}

.image-fixed-ip-preview-button > span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(20, 22, 30, 0.72);
  font-size: 9px;
  font-weight: 700;
}

.image-fixed-ip-review p {
  margin: 5px 0 12px;
  color: #777084;
  font-size: 11px;
  line-height: 1.55;
}

.image-fixed-ip-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.image-fixed-ip-revision-field {
  margin: 0 0 9px;
}

.image-fixed-ip-revision-field textarea {
  min-height: 78px;
}

.image-fixed-ip-regenerate {
  width: 100%;
  margin-bottom: 9px;
}

.image-fixed-ip-preview-zoom {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  color: #fff;
  background: rgba(13, 15, 21, 0.9);
}

.image-fixed-ip-preview-zoom[hidden] {
  display: none !important;
}

.image-fixed-ip-preview-zoom img {
  width: auto;
  max-width: min(86vw, 760px);
  max-height: 82vh;
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.image-fixed-ip-preview-zoom > span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.image-fixed-ip-preview-zoom-close {
  position: fixed;
  top: 20px;
  right: 22px;
  width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 25px;
  cursor: pointer;
}

.image-fixed-ip-review-actions [hidden] {
  display: none !important;
}

.image-fixed-ip-avatars {
  display: flex;
  flex: 0 0 auto;
}

.image-fixed-ip-avatars img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #eeeaf8;
}

.image-fixed-ip-avatars img + img {
  margin-left: -10px;
}

.image-field-help {
  color: #959aa5;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
}

.image-set-once-note {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #ffd9df;
  border-radius: 11px;
  color: #6f5258;
  background: #fff7f8;
  font-size: 11px;
  line-height: 1.6;
}

.image-set-once-note strong {
  color: #d22742;
}

.image-advanced-details {
  overflow: hidden;
  border: 1px solid #e6e8ed;
  border-radius: 13px;
  background: #fafbfc;
}

.image-advanced-details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: #3e434e;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 800;
}

.image-advanced-details summary::-webkit-details-marker {
  display: none;
}

.image-advanced-details summary::after {
  content: "＋";
  color: var(--red);
  font-size: 18px;
}

.image-advanced-details[open] summary::after {
  content: "－";
}

.image-advanced-details summary small {
  margin-left: auto;
  color: #969ba6;
  font-size: 10px;
  font-weight: 500;
}

.image-advanced-details[open] summary {
  border-bottom: 1px solid #eceef2;
  background: #fff;
}

.image-advanced-details > label {
  padding: 14px;
}

.image-output-rule {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.image-output-rule span {
  padding: 7px 9px;
  border-radius: 9px;
  color: #6c717d;
  background: #f5f6f8;
  font-size: 11px;
}

.image-output-rule strong {
  color: #30343d;
}

.image-generate-button {
  width: 100%;
  min-height: 50px;
  margin-top: 15px;
  font-size: 15px;
}

.image-generate-button:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
}

.image-generation-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.image-generation-status[data-type="error"] {
  color: #c32940;
}

.image-generation-status[data-type="success"],
.image-generation-status[data-type="ready"] {
  color: #187557;
}

.image-generation-status[data-type="warning"] {
  color: #9b6814;
}

.image-generation-status[data-type="loading"]::before {
  content: "";
  width: 8px;
  height: 8px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: image-loading-pulse 1.2s infinite ease-in-out;
}

@keyframes image-loading-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

.image-cost-note {
  margin: 2px 0 0;
  color: #969ba6;
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.image-medical-review-note {
  margin: 4px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  color: #7a6445;
  background: #fff9ed;
  font-size: 10px;
  line-height: 1.55;
  text-align: left;
}

.image-medical-review-note strong {
  color: #81591f;
}

.image-results-panel {
  position: sticky;
  top: 18px;
  min-height: 660px;
  padding: 18px;
}

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

.image-results-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.image-results-head-actions [hidden] {
  display: none !important;
}

.image-results-head span,
.image-results-head strong {
  display: block;
}

.image-results-head span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 11px;
}

.image-results-head strong {
  color: #292d36;
  font-size: 16px;
}

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

.image-results-empty {
  grid-column: 1 / -1;
  min-height: 560px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px dashed #dfe2e8;
  border-radius: 16px;
  color: #656b77;
  text-align: center;
  background: linear-gradient(145deg, #fbfcfd, #f5f6f8);
}

.image-results-empty p {
  max-width: 390px;
  margin: 0;
  color: #959aa5;
  font-size: 12px;
  line-height: 1.65;
}

.image-empty-frame {
  width: 96px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px solid #dcdfe5;
  border-radius: 14px;
  color: #a2a7b0;
  background: #fff;
  box-shadow: 0 12px 32px rgba(36, 40, 52, 0.07);
  transform: rotate(2deg);
}

.image-result-card {
  display: grid;
  gap: 9px;
}

.image-result-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: #eef0f3;
}

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

.image-result-visual span {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 15, 20, 0.72);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.image-download-one {
  width: 100%;
}

.image-partial-notice {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8b5f16;
  background: #fff7e7;
  font-size: 12px;
}

.image-empty-thumbs {
  display: flex;
  gap: 7px;
}

.image-empty-thumbs span {
  width: 32px;
  aspect-ratio: 3 / 4;
  border: 1px solid #e1e3e8;
  border-radius: 5px;
  background: #fff;
}

.image-empty-thumbs span:first-child {
  border-color: rgba(255, 36, 66, 0.35);
  box-shadow: 0 4px 12px rgba(255, 36, 66, 0.08);
}

.image-result-viewer {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  gap: 13px;
}

.image-result-stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 3 / 4;
  justify-self: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #eef0f3;
  box-shadow: 0 18px 42px rgba(25, 29, 40, 0.11);
  cursor: zoom-in;
}

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

.image-result-stage span,
.image-result-stage em {
  position: absolute;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(13, 15, 20, 0.7);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.image-result-stage span {
  top: 10px;
  left: 10px;
}

.image-result-stage em {
  right: 10px;
  bottom: 10px;
}

.image-result-stage[data-preview-state="loading"] em,
.image-result-stage[data-preview-state="slow"] em {
  background: rgba(70, 74, 84, 0.82);
}

.image-result-stage[data-preview-state="slow"] em,
.image-result-stage[data-preview-state="error"] em {
  background: rgba(255, 36, 66, 0.88);
}

.image-result-toolbar {
  display: grid;
  grid-template-columns: auto auto auto minmax(130px, 1fr);
  gap: 8px;
  align-items: center;
}

.image-result-toolbar strong {
  min-width: 52px;
  color: #4c515c;
  font-size: 12px;
  text-align: center;
}

.image-result-thumbs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 3px 2px 8px;
  scroll-snap-type: x proximity;
}

.image-result-thumbs button {
  width: 76px;
  min-width: 76px;
  min-height: 0;
  display: grid;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: #797f8a;
  background: #f4f5f7;
  scroll-snap-align: start;
}

.image-result-thumbs button.active {
  border-color: var(--red);
  color: var(--red);
  background: #fff5f7;
}

.image-result-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: block;
  object-fit: cover;
  border-radius: 6px;
}

.image-result-thumbs span {
  overflow: hidden;
  font-size: 9px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-set-progress-only {
  grid-column: 1 / -1;
  min-height: 520px;
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 28px;
  border: 1px dashed #dfe2e8;
  border-radius: 16px;
  background: linear-gradient(145deg, #fbfcfd, #f7f8fa);
}

.image-set-progress-copy {
  display: grid;
  gap: 6px;
  color: #333843;
  text-align: center;
}

.image-set-progress-copy span {
  color: #8c929d;
  font-size: 11px;
  line-height: 1.6;
}

.image-set-progress-grid {
  justify-content: center;
  flex-wrap: wrap;
  overflow: visible;
}

.image-result-thumbs .image-set-page-state {
  width: 76px;
  min-width: 76px;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px dashed #d9dde4;
  border-radius: 10px;
  color: #8a909b;
  background: #f5f6f8;
  text-align: center;
  scroll-snap-align: start;
}

.image-result-thumbs .image-set-page-state b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #b9bec7;
  font-size: 11px;
}

.image-result-thumbs .image-set-page-state span {
  max-width: 100%;
}

.image-result-thumbs .image-set-page-state em {
  max-width: 100%;
  overflow: hidden;
  color: #9ca1aa;
  font-size: 8px;
  font-style: normal;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-result-thumbs .image-set-page-state.generating {
  border-color: #ff9baa;
  color: var(--red);
  background: #fff5f7;
}

.image-result-thumbs .image-set-page-state.generating b {
  background: var(--red);
  animation: image-loading-pulse 1.2s infinite ease-in-out;
}

.image-result-thumbs .image-set-page-state.waiting {
  border-color: #d9c4ff;
  color: #7652b6;
  background: #f8f4ff;
}

.image-result-thumbs .image-set-page-state.waiting b {
  background: #8060c4;
  animation: image-loading-pulse 1.2s infinite ease-in-out;
}

.image-result-thumbs .image-set-page-state.waiting em {
  color: #7652b6;
  white-space: normal;
}

.image-result-thumbs button.image-set-page-state.failed {
  border-color: #efb8c0;
  color: #bd2940;
  background: #fff3f5;
  cursor: pointer;
}

.image-result-thumbs button.image-set-page-state.failed b {
  background: #d94b61;
}

.image-result-thumbs button.image-set-page-state.failed em {
  color: #bd2940;
  font-weight: 800;
}

.image-result-thumbs .image-set-page-state.exhausted {
  opacity: 0.72;
}

.image-result-lightbox {
  width: min(94vw, 1060px);
  max-height: 94vh;
  overflow: hidden;
  padding: 18px;
  border: 0;
  border-radius: 20px;
  background: #111318;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.image-result-lightbox::backdrop {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(6px);
}

.image-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 38px;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  font-size: 25px;
}

.image-lightbox-stage {
  height: min(78vh, 760px);
  display: grid;
  place-items: center;
}

.image-lightbox-stage img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.image-lightbox-toolbar {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.image-lightbox-toolbar strong {
  color: #fff;
  text-align: center;
}

@media (min-width: 1380px) {
  .image-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .image-studio-layout {
    grid-template-columns: 1fr;
  }

  .image-results-panel {
    position: static;
    min-height: 0;
  }

  .image-results-empty {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .image-page-head {
    align-items: stretch;
  }

  .image-quota-card {
    min-width: 0;
  }

  .image-control-panel,
  .image-results-panel {
    border-radius: 16px;
  }

  .image-mode-switch button {
    min-height: 62px;
    padding: 9px;
  }

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

  .image-fixed-ip-head {
    align-items: flex-start;
  }

  .image-ip-choice-grid,
  .image-fixed-ip-decision,
  .image-fixed-ip-fields,
  .image-ip-creation-paths {
    grid-template-columns: 1fr;
  }

  .image-ip-choice-grid button {
    min-height: 60px;
  }

  .image-fixed-ip-review {
    grid-template-columns: 1fr;
  }

  .image-fixed-ip-review img {
    width: min(170px, 56vw);
    justify-self: center;
  }

  .image-fixed-ip-preview-button {
    width: min(170px, 56vw);
    justify-self: center;
  }

  .image-fixed-ip-preview-button img {
    width: 100%;
  }

  .image-fixed-ip-dialog {
    width: min(94vw, 620px);
    max-height: 90vh;
  }

  .image-fixed-ip-dialog .image-fixed-ip-editor {
    max-height: 90vh;
    padding: 16px;
  }

  .image-fixed-ip-dialog-head h2 {
    font-size: 19px;
  }

  .image-fixed-ip-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .image-results-grid {
    grid-template-columns: 1fr;
  }

  .image-result-stage {
    width: 100%;
  }

  .image-result-toolbar {
    grid-template-columns: 1fr auto 1fr;
  }

  .image-result-toolbar [data-result-download] {
    grid-column: 1 / -1;
  }

  .image-result-lightbox {
    width: 100vw;
    max-width: none;
    max-height: 100vh;
    margin: 0;
    padding: 12px;
    border-radius: 0;
  }

  .image-lightbox-stage {
    height: calc(100vh - 138px);
  }

  .image-lightbox-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .image-lightbox-toolbar strong {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .image-lightbox-toolbar #imageLightboxDownloadBtn {
    grid-column: 1 / -1;
  }

  .image-results-empty {
    min-height: 360px;
  }

  .mobile-tabbar {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.daily-inspiration-evidence > strong,
.daily-inspiration-evidence > p,
.daily-inspiration-evidence a span,
.daily-inspiration-evidence a em {
  display: block;
}

.daily-inspiration-evidence > p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.daily-inspiration-evidence a {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.daily-inspiration-evidence a span {
  font-weight: 800;
}

.daily-inspiration-evidence a em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.admin-topic-candidate-card {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #eadff7;
  border-radius: 20px;
  background: #fff;
}

.admin-topic-candidate-card .table-head {
  align-items: flex-start;
}

.admin-topic-candidate-card .table-head p {
  margin: 6px 0 0;
  color: #6b6474;
}

.admin-topic-candidate-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-topic-candidate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid #eee8f2;
  border-radius: 16px;
  background: #fcfbfd;
}

.admin-topic-candidate-item span,
.admin-topic-candidate-item p {
  color: #746d7d;
}

.admin-topic-candidate-item h4 {
  margin: 5px 0;
}

@media (max-width: 720px) {
  .admin-topic-candidate-card .table-head,
  .admin-topic-candidate-item {
    grid-template-columns: 1fr;
  }

  .admin-topic-candidate-card .button-row,
  .admin-topic-candidate-item .managed-actions {
    width: 100%;
  }

  .admin-topic-candidate-card select,
  .admin-topic-candidate-card button,
  .admin-topic-candidate-item a {
    min-height: 44px;
  }
}
/* 管理员小红书登录采集服务：独立于员工IP卡片，手机端保持单列可点。 */
.admin-xhs-collector {
  margin: 20px 0;
  padding: 22px;
  border: 1px solid rgba(255, 61, 92, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 245, 247, 0.96));
  box-shadow: 0 16px 44px rgba(77, 26, 40, 0.08);
}

.admin-xhs-collector-head,
.collector-actions,
.collector-test-form {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-xhs-collector-head {
  justify-content: space-between;
  align-items: flex-start;
}

.admin-xhs-collector-head h3 {
  margin: 6px 0;
}

.admin-xhs-collector-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.collector-status-badge {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f3f6;
  color: #667085;
  font-weight: 700;
}

.collector-status-badge[data-status="connected"] {
  background: #e9f9f0;
  color: #07864b;
}

.collector-status-badge[data-status="expired"],
.collector-status-badge[data-status="attention"] {
  background: #fff3df;
  color: #a65b00;
}

.collector-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.collector-status-grid > div {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(25, 31, 44, 0.07);
}

.collector-status-grid small,
.collector-status-grid strong {
  display: block;
}

.collector-status-grid small {
  margin-bottom: 6px;
  color: var(--muted);
}

.collector-status-grid strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.collector-actions {
  flex-wrap: wrap;
}

.collector-qr-wrap {
  display: grid;
  grid-template-columns: minmax(240px, 560px) minmax(180px, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px dashed rgba(255, 61, 92, 0.35);
}

.collector-qr-wrap img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
}

.collector-test-form {
  align-items: end;
  margin-top: 18px;
}

.collector-test-form label {
  flex: 1 1 320px;
}

.viral-auto-collect-form label {
  flex-basis: 190px;
}

.viral-auto-collect-form label:nth-child(2) {
  flex-grow: 2;
}

.collector-browser-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(25, 31, 44, 0.09);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.collector-primary-status {
  margin-top: 14px;
}

.collector-api-fallback {
  margin-top: 16px;
  border-top: 1px solid rgba(25, 31, 44, 0.08);
}

.collector-api-fallback > summary {
  padding: 14px 2px 4px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.collector-api-fallback-body {
  padding-top: 6px;
}

.collector-api-fallback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.collector-browser-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.collector-browser-head h4 {
  margin: 5px 0;
  font-size: 18px;
}

.collector-browser-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .mine-period-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .mine-period-bar select {
    width: 100%;
  }

  .admin-xhs-collector {
    margin: 14px 0;
    padding: 16px;
    border-radius: 18px;
  }

  .admin-xhs-collector-head,
  .collector-browser-head,
  .collector-api-fallback-head,
  .collector-test-form,
  .collector-qr-wrap {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .collector-status-grid > div {
    padding: 11px 9px;
    border-radius: 12px;
  }

  .collector-status-grid small,
  .collector-status-grid strong {
    font-size: 11px;
  }

  .collector-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .collector-actions button,
  .collector-test-form button {
    min-height: 48px;
    width: 100%;
  }

  #xhsCollectorStartBtn {
    grid-column: 1 / -1;
  }

  .viral-library-head,
  .viral-library-filters,
  .viral-library-grid,
  .viral-library-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .viral-library-filters select,
  .viral-library-filters input,
  .viral-library-filters button,
  .viral-library-actions a,
  .viral-library-actions button {
    width: 100%;
  }

  .viral-library-actions .primary-btn {
    margin-left: 0;
  }
}

/* Final cascade for the compact workspace skin. */
#planningView > .planning-section-head,
#trainingView > .section-head {
  display: none;
}

#ipView > .section-head {
  justify-content: flex-end;
  margin-bottom: 12px;
}

#ipView > .section-head > div:first-child {
  display: none;
}

@media (min-width: 1051px) {
  .planning-view-tabs {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

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

@media (min-width: 761px) and (max-width: 1050px) {
  .planning-view-tabs {
    grid-template-columns: repeat(3, minmax(112px, 1fr));
  }

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

@media (max-width: 760px) {
  .planning-view-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .viral-library-grid,
  .ip-core-card-grid {
    grid-template-columns: 1fr;
  }

  .viral-library-filters {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .viral-library-filters button {
    width: auto;
  }
}
