:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-soft: #f0f5f3;
  --section-tint: #dff2ee;
  --section-tint-strong: #d4ede8;
  --ink: #16211f;
  --muted: #6d7b76;
  --line: #dce4df;
  --teal: #0e8f84;
  --teal-dark: #08665f;
  --amber: #d89424;
  --amber-soft: #fff5df;
  --danger-soft: #fff0ec;
  --shadow: 0 18px 50px rgba(24, 37, 33, 0.08);
  --radius: 8px;
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 18px;
  background: #111b19;
  color: #f8fbfa;
}

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

.brand-avatar {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

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

.brand strong {
  font-size: 15px;
  line-height: 1.35;
}

.brand small {
  margin-top: 2px;
  color: #a9b8b3;
  font-size: 11px;
}

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

.workflow-list > span {
  color: #82948e;
  font-size: 12px;
  font-weight: 800;
}

.workflow-list ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.workflow-list li {
  position: relative;
  min-height: 36px;
  padding: 9px 10px 9px 38px;
  border-radius: var(--radius);
  color: #b9c7c2;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 750;
  counter-increment: flow;
}

.workflow-list li::before {
  content: counter(flow);
  position: absolute;
  left: 10px;
  top: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #263733;
  color: #d8e6e2;
  font-size: 11px;
}

.workflow-list li.done {
  color: #ffffff;
  background: #20302d;
}

.workflow-list li.done::before {
  background: var(--teal);
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-footer span,
.sidebar-footer strong,
.sidebar-footer p {
  display: block;
  margin: 0;
}

.sidebar-footer span {
  color: #a9b8b3;
  font-size: 12px;
}

.sidebar-footer strong {
  margin-top: 6px;
  font-size: 20px;
}

.sidebar-footer p {
  margin-top: 8px;
  color: #a9b8b3;
  font-size: 12px;
  line-height: 1.5;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

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

.member-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.member-state {
  min-width: 184px;
  border: 1px solid #d9e4df;
  border-radius: var(--radius);
  padding: 9px 11px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(24, 37, 33, 0.06);
}

.member-state span,
.member-state strong {
  display: block;
}

.member-state span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.member-state strong {
  margin-top: 2px;
  color: var(--teal-dark);
  font-size: 13px;
  line-height: 1.35;
}

.member-login-button {
  min-height: 40px;
  padding-inline: 16px;
  white-space: nowrap;
}

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

h1 {
  max-width: 620px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  line-height: 1.35;
}

.topbar p,
.panel-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.ip-priority {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid #8dcfc6;
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--section-tint);
  box-shadow: 0 16px 42px rgba(14, 143, 132, 0.14);
}

.ip-priority > div:first-child {
  max-width: none;
}

.ip-priority > div:first-child span {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  background: #fff3d8;
  color: #8b5a05;
  font-size: 12px;
  font-weight: 850;
}

.ip-priority h2 {
  margin-top: 0;
  font-size: 16px;
  line-height: 1.3;
  white-space: nowrap;
}

.ip-priority p {
  margin-top: 7px;
  color: #4d625c;
  font-size: 13px;
  line-height: 1.6;
}

.identity-actions {
  display: grid;
  width: calc(100% - 186px);
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 8px;
  margin-left: 186px;
  justify-self: start;
}

.account-start-button {
  background: #ffffff;
}

.conversion-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(320px, 1.14fr);
  align-items: stretch;
  gap: 14px;
  margin: 16px 0 0;
}

.generate-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.primary-button {
  border-color: var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.generate-button {
  min-width: min(100%, 360px);
  min-height: 58px;
  border-color: #08665f;
  font-size: 17px;
  box-shadow: 0 14px 34px rgba(14, 143, 132, 0.24);
}

.generate-button .icon {
  width: 22px;
  height: 22px;
}

.deal-reasons-panel {
  padding: 0;
  background: transparent;
}

.deal-reasons-button {
  min-width: min(100%, 360px);
}

.ghost-button {
  border-color: #bedad4;
  color: var(--teal-dark);
}

.identity-button {
  border-color: #37b7a7;
  background: #e9fbf8;
  color: var(--teal-dark);
}

.required-button {
  min-height: 46px;
  width: 100%;
  justify-content: center;
  border-width: 1px;
  padding: 0 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 143, 132, 0.1);
}

.required-button .icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: #dff6f1;
}

.required-button .myip-button-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(7, 83, 64, 0.14);
}

.required-button .icon svg {
  width: 22px;
  height: 22px;
}

.required-button span:last-child {
  display: grid;
  gap: 3px;
  text-align: left;
  font-size: 14px;
  line-height: 1.2;
}

.required-button small {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff3d8;
  color: #8b5a05;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
}

.utility-button {
  border-color: #d8cfc0;
  color: #6d5b42;
}

.utility-button:hover {
  background: #fff8ec;
}

.icon-button {
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.88fr);
  gap: 16px;
  align-items: start;
}

.side-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid #b9dbd5;
  background: var(--section-tint-strong);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: inset 5px 0 0 var(--teal);
}

.panel-head h2 {
  color: #073f36;
  font-size: 16px;
  font-weight: 900;
}

.panel-head p {
  color: #425a53;
}

.panel-head.compact {
  align-items: center;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.panel-head.compact span {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--amber-soft);
  color: #8b5a05;
  font-size: 12px;
  font-weight: 800;
}

.setup-panel,
.quality-panel {
  padding-bottom: 16px;
}

.setup-panel {
  box-shadow: 0 10px 28px rgba(24, 37, 33, 0.05);
}

.quality-panel {
  box-shadow: 0 10px 28px rgba(24, 37, 33, 0.05);
}

.status-stack {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.status-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fbfcfb;
}

.status-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  background: #e4f5f2;
  color: var(--teal-dark);
}

.status-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 5px 12px rgba(7, 83, 64, 0.12);
}

.status-card strong,
.book-insight strong {
  display: block;
  font-size: 14px;
  line-height: 1.4;
}

.status-card p,
.book-insight p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.modal label,
.creator-settings label,
.setting-field > span {
  display: block;
  margin: 0;
  color: #34443f;
  font-size: 13px;
  font-weight: 750;
}

.modal label input,
.modal label textarea,
.creator-settings select {
  width: 100%;
  margin-top: 8px;
}

.setting-field {
  display: block;
  min-width: 0;
}

.field-hint {
  margin: 8px 0 0;
  color: #5b6e68;
  font-size: 12px;
  line-height: 1.55;
}

input,
select,
textarea {
  border: 1px solid #cfdbd6;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
}

input,
select {
  height: 38px;
  padding: 0 12px;
}

textarea {
  min-height: 104px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.7;
}

textarea:focus,
select:focus,
input:focus {
  outline: 2px solid rgba(14, 143, 132, 0.18);
  border-color: var(--teal);
}

.book-insight {
  margin: 0 0 16px;
  border-left: 3px solid var(--teal);
  padding: 2px 0 2px 11px;
}

.book-insight span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.book-picker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 42px;
}

.book-picker-row span,
.book-picker-label {
  display: inline;
  color: #34443f;
  font-weight: 750;
}

.book-picker-row select,
.book-name-select,
.book-topic-class-select {
  width: auto;
  min-width: 190px;
  height: 38px;
  margin: 0;
  border-color: #cbdad6;
  background: #f8fffd;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.book-topic-class-select {
  min-width: 210px;
}

.book-topic-button {
  margin-left: auto;
  min-height: 38px;
  padding: 0 16px;
  box-shadow: 0 10px 24px rgba(14, 143, 132, 0.18);
}

.book-source-page {
  margin-top: 6px;
  color: #0b746b;
  font-size: 12px;
  font-weight: 750;
}

.book-flow-hint {
  margin-top: 7px;
  color: #647872;
  font-size: 12px;
}

.mini-button {
  min-height: 30px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

.inspiration-input {
  width: 100%;
  min-height: 92px;
  margin-top: 4px;
  background: #ffffff;
}

.creator-panel {
  overflow: hidden;
  border-color: #c8ddd7;
}

.creator-body {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.creator-settings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.offer-input-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.offer-input {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  background: #ffffff;
}

#copyOfferToTopic {
  align-self: end;
  min-height: 38px;
  white-space: nowrap;
}

.copy-type-detection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
  margin: 12px 0 14px;
  border: 1px solid #d8e2de;
  border-radius: var(--radius);
  padding: 0 14px;
  background: #ffffff;
  color: #50615d;
  font-size: 13px;
  font-weight: 750;
}

.copy-type-detection select {
  min-width: 170px;
  border-color: #cbdad6;
  background-color: #f8fffd;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 850;
}

#copyDurationSelect {
  min-width: 96px;
}

.copy-type-detection strong {
  color: var(--teal-dark);
  font-size: 14px;
}

#topicInput {
  width: 100%;
  min-height: 166px;
  font-size: 14px;
}

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

.result-panel {
  border-bottom: 1px solid var(--line);
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfb;
  color: #41534e;
  font-size: 13px;
  font-weight: 800;
}

.result-toolbar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.result-actions .utility-button {
  min-height: 34px;
}

.skill-route {
  border-bottom: 1px solid var(--line);
  padding: 10px 14px;
  background: #f5fbf9;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.result-card {
  min-height: 420px;
  padding: 20px;
  line-height: 1.75;
}

.result-card section {
  margin-bottom: 16px;
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.35;
}

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

.result-section-head h3 {
  margin-bottom: 8px;
}

.result-card p {
  margin: 0 0 12px;
  color: #30413c;
}

.result-note {
  border: 1px solid #9fd7d0;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 12px 14px;
  background: #edf8f5;
  color: #073f3b;
}

.result-priority-note strong {
  font-size: 17px;
  font-weight: 950;
}

.scene-regenerated-note {
  border: 1px solid #9fd7d0;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
  background: #e8f7f4;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 900;
}

.shoot-copy-box {
  border: 1px solid #9fd7d0;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 14px;
  background: #eef9f6;
}

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

.shoot-copy-head h3 {
  margin: 0 0 2px;
  color: var(--teal-dark);
  font-size: 16px;
}

.shoot-copy-head p {
  margin: 0;
  font-size: 13px;
}

.shoot-copy-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 16px;
}

.shoot-copy-textbox {
  position: relative;
}

.shoot-copy-box pre {
  max-height: 260px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 12px;
  background: #ffffff;
  color: #10231f;
  font: inherit;
  line-height: 1.7;
}

.shoot-word-count {
  position: absolute;
  right: 10px;
  bottom: 8px;
  border: 1px solid #9fd7d0;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.draft-readable-view {
  margin-top: 18px;
}

.draft-reference-title {
  margin-bottom: 10px;
  color: #4c625c;
  font-size: 13px;
  font-weight: 900;
}

.draft-reference-card {
  border: 1px solid #d7e5df;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfdfc;
}

.draft-reference-card + .draft-reference-card {
  margin-top: 10px;
}

.draft-reference-card h3 {
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.result-card section.result-status-section {
  border: 1px solid #b9ded8;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f0faf7;
}

.result-card section.result-status-section.warning {
  border-color: #f4d38b;
  border-left-color: var(--amber);
  background: #fff8e8;
}

.result-card section.result-status-section.danger {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fff1f2;
}

.publish-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 4px 10px;
  background: var(--teal);
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
}

.publish-status.warning {
  background: #f0b429;
  color: #1f1300;
}

.publish-status.danger {
  background: #dc2626;
  color: #ffffff;
}

.viral-summary-head {
  border: 1px solid #9fd7d0;
  border-left: 5px solid var(--teal);
  border-radius: 8px;
  padding: 10px 12px;
  background: #eef9f6;
}

.viral-summary-head span {
  display: block;
  color: #47635d;
  font-size: 12px;
  font-weight: 800;
}

.viral-summary-head strong {
  display: block;
  margin: 2px 0;
  color: var(--teal-dark);
  font-size: 20px;
  line-height: 1.25;
}

.viral-summary-head p {
  margin: 4px 0 0;
  line-height: 1.45;
}

.viral-summary-tip {
  border-radius: 8px;
  padding: 6px 8px;
  background: #ffffff;
  color: #073f3b;
  font-size: 13px;
  font-weight: 850;
}

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

.viral-element-card {
  border: 1px solid var(--line);
  border-left: 4px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 10px;
  background: #ffffff;
}

.viral-element-card.high {
  border-color: #9fd7d0;
  border-left-color: var(--teal);
  background: #f0faf7;
}

.viral-element-card.medium {
  border-color: #f4d38b;
  border-left-color: var(--amber);
  background: #fff8e8;
}

.viral-element-card.low {
  border-color: #fecaca;
  border-left-color: #dc2626;
  background: #fff1f2;
}

.viral-element-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  font-weight: 900;
  line-height: 1.3;
}

.viral-element-top strong {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.viral-element-score {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--teal-dark);
}

.viral-element-score b {
  font-size: 20px;
  line-height: 1;
}

.viral-element-card.low .viral-element-score {
  color: #b91c1c;
}

.viral-element-card.medium .viral-element-score {
  color: #9a6200;
}

.viral-element-card p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.viral-element-card small {
  display: block;
  margin-top: 4px;
  color: #64756f;
  font-size: 12px;
  line-height: 1.35;
}

.result-card section.result-danger {
  border: 1px solid #fecaca;
  border-left: 5px solid #dc2626;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff1f2;
}

.result-card section.result-danger h3 {
  color: #b91c1c;
  font-size: 18px;
  font-weight: 900;
}

.result-card section.result-danger p {
  color: #991b1b;
  font-size: 16px;
  font-weight: 750;
}

.result-card .risk-word {
  color: #dc2626;
  font-size: 18px;
  font-weight: 950;
}

.check-list .risk-word {
  color: #dc2626;
  font-size: 18px;
  font-weight: 950;
}

.danger-fix-button {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #08665f;
  border-radius: 8px;
  padding: 0 13px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(14, 143, 132, 0.22);
  cursor: pointer;
}

.danger-fix-button:hover {
  background: #08665f;
  border-color: #08665f;
}

.result-card .safe-word {
  color: #111827;
  font-size: 17px;
  font-weight: 950;
}

@media (max-width: 720px) {
  .result-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

.quality-content article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
}

.quality-content span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.quality-content strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.3;
}

.quality-content p {
  margin-top: 7px;
  color: #41534e;
  font-size: 13px;
  line-height: 1.6;
}

.score-meter {
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe7;
}

.score-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--amber));
}

.check-list,
.tip-list {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.tip-list li {
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #f7faf9;
  color: #40534d;
  font-size: 12px;
  line-height: 1.5;
}

.check-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 6px 8px;
  align-items: start;
}

.check-list b {
  border-radius: 999px;
  padding: 2px 6px;
  background: #e4f5f2;
  color: var(--teal-dark);
  font-size: 11px;
  text-align: center;
}

.check-list .failed {
  background: var(--danger-soft);
}

.check-list .failed b {
  background: #ffe0d6;
  color: #9b351b;
}

.check-list em {
  grid-column: 2;
  color: #7a4c3e;
  font-style: normal;
}

.quality-content {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.draft-box {
  margin: 2px 16px 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

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

.draft-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #d6dfda;
  border-radius: var(--radius);
  padding: 8px 8px 8px 10px;
  background: #ffffff;
  text-align: left;
}

.draft-item:hover {
  border-color: #a9d8d2;
  background: #f7fcfb;
}

.draft-load {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.draft-load strong {
  font-size: 13px;
}

.draft-load span,
.empty-text {
  color: var(--muted);
  font-size: 12px;
}

.draft-delete {
  min-height: 30px;
  border: 1px solid #f2c7bf;
  border-radius: 7px;
  padding: 0 9px;
  background: #fff7f5;
  color: #b42318;
  font-size: 12px;
  font-weight: 850;
}

.draft-delete:hover {
  border-color: #ef8f84;
  background: #ffe8e3;
}

.icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  flex: 0 0 auto;
}

.icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(17, 27, 25, 0.44);
}

.modal.open {
  display: grid;
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(10, 18, 16, 0.25);
}

.login-modal-card {
  width: min(860px, 100%);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-subtitle {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  padding: 18px;
  background: #fbfdfc;
}

.login-box,
.membership-box {
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 14px;
  background: #ffffff;
}

.member-center-card {
  width: min(620px, 100%);
}

.member-center-content {
  display: grid;
  gap: 12px;
  padding: 18px 24px 4px;
}

.member-center-summary {
  border: 1px solid #b9ddd4;
  border-radius: var(--radius);
  padding: 16px;
  background: #eef9f6;
}

.member-center-summary span,
.member-center-summary strong {
  display: block;
}

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

.member-center-summary strong {
  margin-top: 6px;
  color: var(--teal-dark);
  font-size: 24px;
}

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

.member-center-item {
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

.member-center-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.member-center-item strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 15px;
}

.member-history {
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 12px;
  background: #fff;
}

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

.member-history-head strong {
  font-size: 15px;
}

.member-generation-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.member-generation-card {
  border: 1px solid #e1ebe8;
  border-radius: var(--radius);
  padding: 10px;
  background: #f8fbfa;
}

.member-generation-top,
.member-generation-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.member-generation-card strong {
  color: var(--teal-dark);
}

.member-generation-card span {
  color: var(--muted);
  font-size: 12px;
}

.member-generation-card p {
  margin: 6px 0 0;
  color: #40514d;
  font-size: 13px;
  line-height: 1.55;
}

.member-generation-actions {
  margin-top: 8px;
}

.order-card.paid {
  border-color: #9bd5c9;
  background: #f0fbf8;
}

.order-card.pending {
  border-color: #e4c278;
  background: #fff8e6;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.login-tab {
  min-height: 38px;
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  background: #f7fbfa;
  color: #52645f;
  font-weight: 850;
}

.login-tab.active {
  border-color: var(--teal);
  background: #e8f7f4;
  color: var(--teal-dark);
}

.login-panel {
  display: none;
}

.login-panel.active {
  display: grid;
  gap: 12px;
}

.login-panel label {
  display: grid;
  gap: 7px;
  color: #22332f;
  font-size: 13px;
  font-weight: 850;
}

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

.login-submit {
  width: 100%;
  min-height: 42px;
}

.agreement-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: flex-start;
  color: #5f5a4e;
  font-size: 12px;
  line-height: 1.55;
}

.agreement-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.agreement-check a {
  color: #00786b;
  font-weight: 800;
  text-decoration: none;
}

.wechat-login-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 1px dashed #bcd8d2;
  border-radius: var(--radius);
  padding: 20px 14px;
  background: #f2fbf8;
  text-align: center;
}

.wechat-qr {
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
  border: 8px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 143, 132, 0.16) 50%, transparent 0) 0 0 / 18px 18px,
    linear-gradient(rgba(14, 143, 132, 0.16) 50%, transparent 0) 0 0 / 18px 18px,
    #e3f4ef;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 950;
}

.wechat-login-card strong {
  color: var(--teal-dark);
}

.wechat-login-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.membership-head span,
.membership-head strong {
  display: block;
}

.membership-head span {
  color: var(--amber);
  font-size: 12px;
  font-weight: 900;
}

.membership-head strong {
  margin-top: 4px;
  font-size: 18px;
}

.membership-subtitle {
  margin-top: 8px;
  border: 1px solid #bfe2dc;
  border-radius: var(--radius);
  padding: 9px 10px;
  background: #f0fbf8;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

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

.plan-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 5px;
  min-height: 106px;
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 14px 12px;
  background: #ffffff;
  text-align: center;
}

.plan-card.active {
  border-color: var(--teal);
  background: #eaf8f5;
  box-shadow: 0 12px 28px rgba(14, 143, 132, 0.12);
}

.plan-card.recommended-card {
  position: relative;
  border-color: #e4a93a;
  background: #fff0c7;
  padding-top: 22px;
}

.plan-card.recommended-card.active {
  border-color: #d89424;
  background: #fff0c7;
  box-shadow: 0 12px 28px rgba(216, 148, 36, 0.22);
}

.plan-card.recommended-card::after {
  content: "推荐";
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #d89424;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
}

.plan-card.trial-card strong {
  color: #4d655f;
}

.plan-card span {
  color: #566761;
  font-size: 12px;
  font-weight: 850;
}

.plan-card strong {
  color: var(--teal-dark);
  font-size: 23px;
  line-height: 1.15;
}

.plan-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.member-benefits {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.member-benefits li {
  border-radius: 7px;
  padding: 9px 10px;
  background: #f5f8f7;
  color: #31433e;
  font-size: 13px;
  line-height: 1.45;
}

.payment-pending-box {
  margin-top: 12px;
  border: 1px solid #e0b15b;
  border-radius: var(--radius);
  padding: 11px 12px;
  background: #fff6dc;
}

.payment-pending-box strong {
  display: block;
  color: #7a4b00;
  font-size: 13px;
}

.payment-pending-box p {
  margin: 5px 0 0;
  color: #5f5a4e;
  font-size: 12px;
  line-height: 1.55;
}

.privacy-note {
  margin-top: 12px;
  border: 1px solid #e6d4a8;
  border-radius: var(--radius);
  padding: 10px 11px;
  background: #fff9ea;
}

.privacy-note strong {
  display: block;
  color: #6f5015;
  font-size: 12px;
  font-weight: 900;
}

.privacy-note p {
  margin-top: 5px;
  color: #5f5a4e;
  font-size: 12px;
  line-height: 1.55;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-links a {
  color: #00786b;
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px 16px 270px;
  border-top: 1px solid var(--line);
  background: #edf5f2;
  color: #5f6f6a;
  font-size: 12px;
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: inline-block;
}

.site-footer strong {
  margin-right: 10px;
  color: #263a36;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
}

.site-footer a {
  color: #00786b;
  font-weight: 800;
  text-decoration: none;
}

.ip-track-picker {
  margin: 18px 24px 0;
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 14px;
  background: #f7fbf9;
}

.ip-track-picker h3 {
  margin: 0;
  font-size: 15px;
}

.ip-track-picker p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.track-card {
  display: block;
  min-height: 82px;
  border: 1px solid #cfdbd6;
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

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

.track-card strong {
  font-size: 14px;
}

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

.track-card.active {
  border-color: var(--teal);
  background: #edf8f5;
  box-shadow: inset 0 0 0 1px rgba(10, 142, 124, 0.18);
}

.ip-mining {
  margin: 18px 24px 0;
  border: 1px solid #cfe3dd;
  border-radius: var(--radius);
  padding: 14px;
  background: #f6fbfa;
}

.ip-mining-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  gap: 12px;
  align-items: start;
}

.ip-mining h3 {
  margin: 0;
  font-size: 15px;
}

.ip-mining p,
.clue-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.clue-card {
  margin-top: 12px;
  border-radius: var(--radius);
  padding: 12px;
  background: #ffffff;
}

.clue-card span {
  display: inline-flex;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff3d8;
  color: #8b5a05;
  font-size: 11px;
  font-weight: 800;
}

.clue-card strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.clue-card ol {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding-left: 20px;
  color: #334640;
  font-size: 13px;
  line-height: 1.55;
}

#ipClueAnswer {
  width: 100%;
  min-height: 112px;
}

.clue-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.extract-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 24px 0;
  border: 1px solid #e3d9c8;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fffaf0;
}

.extract-panel strong {
  display: block;
  font-size: 14px;
}

.extract-panel p {
  margin-top: 4px;
  color: #6d5b42;
  font-size: 12px;
  line-height: 1.5;
}

.style-panel {
  margin: 14px 24px 0;
  border: 1px solid #dce4df;
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfcfb;
}

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

.style-panel strong {
  display: block;
  font-size: 14px;
}

.style-panel p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

#styleSampleInput {
  width: 100%;
  min-height: 118px;
}

.style-result {
  margin-top: 10px;
  border-radius: var(--radius);
  padding: 10px;
  background: #ffffff;
  color: #40534d;
  font-size: 12px;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 24px 6px;
}

.form-grid label {
  margin-bottom: 0;
}

.form-grid label:nth-child(n + 3) {
  grid-column: 1 / -1;
}

.form-grid textarea {
  min-height: 88px;
}

.account-form-grid label:nth-child(3),
.account-form-grid label:nth-child(4),
.account-form-grid label:nth-child(5),
.account-form-grid label:nth-child(6) {
  grid-column: auto;
}

.account-preview {
  margin: 12px 24px 0;
  border: 1px solid #d8e4df;
  border-radius: var(--radius);
  padding: 14px;
  background: #f7fbf9;
  color: #31433e;
  font-size: 13px;
  line-height: 1.65;
}

.account-preview h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.account-preview section + section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #d8e4df;
}

.account-preview ol,
.account-preview ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.account-preview li + li {
  margin-top: 7px;
}

.account-preview strong {
  color: var(--teal-dark);
}

.deal-modal-body {
  display: grid;
  gap: 14px;
  padding: 18px 24px 24px;
}

.deal-modal-box {
  border: 1px solid #d7e5df;
  border-radius: var(--radius);
  padding: 14px;
  background: #f7fbf9;
}

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

.deal-modal-box h3 {
  margin: 0;
  font-size: 15px;
}

.deal-modal-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.deal-modal-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-left: 3px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 9px 10px;
  background: #ffffff;
  color: #34443f;
  font-size: 13px;
  line-height: 1.55;
}

.deal-modal-list li span {
  flex: 1;
  min-width: 0;
}

.deal-modal-list strong {
  color: var(--teal-dark);
}

.deal-reason-delete {
  flex: 0 0 auto;
  border: 1px solid #fecaca;
  border-radius: 7px;
  padding: 4px 9px;
  background: #fff1f2;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 850;
}

.deal-reason-delete:hover {
  background: #fee2e2;
}

.deal-modal-add {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.deal-modal-add textarea {
  min-height: 96px;
}

.book-topic-modal-content {
  display: grid;
  gap: 10px;
  max-height: min(62vh, 620px);
  overflow: auto;
  padding: 16px;
  border: 1px solid #d8e7e2;
  border-radius: var(--radius);
  background: #fbfdfc;
}

.book-topic-modal-content p {
  color: #263632;
  font-size: 14px;
  line-height: 1.75;
}

.topic-source-box {
  max-height: 260px;
  overflow: auto;
  padding: 12px 14px;
  border: 1px solid #d4e4df;
  border-radius: var(--radius);
  background: #ffffff;
}

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

.topic-class-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #cfe4df;
  border-radius: var(--radius);
  background: #f6fbf9;
}

.topic-class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

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

.topic-class-card.active {
  grid-column: 1 / -1;
}

.topic-class-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #cbdad6;
  border-radius: 8px;
  background: #ffffff;
  color: #19312c;
  cursor: pointer;
  text-align: left;
}

.topic-class-button strong {
  font-size: 13px;
  line-height: 1.35;
}

.topic-class-button span {
  color: #0b746b;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.topic-class-button.active {
  border-color: var(--teal);
  background: #e8f8f4;
  box-shadow: 0 8px 18px rgba(14, 143, 132, 0.12);
}

.topic-class-content {
  display: none;
}

.topic-class-content.open {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
  border: 1px solid #cfe4df;
  border-radius: var(--radius);
  background: #ffffff;
}

.topic-class-confirm-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.topic-class-confirm-row span {
  color: #0b746b;
  font-size: 13px;
  font-weight: 850;
}

.topic-class-confirm-row .confirmed {
  background: #087f75;
  box-shadow: 0 10px 22px rgba(14, 143, 132, 0.18);
}

#topicChoiceCards {
  display: grid;
  gap: 10px;
}

#topicChoiceCards.confirmed-flash {
  border-radius: var(--radius);
  outline: 3px solid rgba(14, 143, 132, 0.18);
  outline-offset: 4px;
}

.topic-choice-head {
  display: grid;
  gap: 4px;
}

.topic-choice-head strong {
  font-size: 16px;
}

.topic-choice-head span {
  color: var(--muted);
  font-size: 13px;
}

.topic-choice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d4e4df;
  border-radius: var(--radius);
  background: #ffffff;
}

.topic-choice-card.selected {
  border-color: var(--teal);
  background: #eefbf8;
  box-shadow: 0 10px 24px rgba(14, 143, 132, 0.12);
}

.topic-choice-main {
  display: grid;
  gap: 5px;
}

.topic-choice-main span {
  color: #0b746b;
  font-size: 12px;
  font-weight: 800;
}

.topic-choice-main strong {
  line-height: 1.55;
}

.topic-choice-main p {
  color: var(--muted);
  font-size: 13px;
}

.topic-choice-main .topic-choice-excerpt {
  padding: 8px 10px;
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  background: #f3faf7;
  color: #263632;
}

.topic-choice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topic-choice-actions .utility-button {
  white-space: nowrap;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px 22px;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  transform: translateY(18px);
  border: 1px solid #a9d8d2;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #ffffff;
  color: var(--teal-dark);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  font-size: 13px;
  font-weight: 750;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .site-footer {
    padding-left: 106px;
  }

  .brand div,
  .sidebar-footer {
    display: none;
  }

  .workflow-list {
    display: none;
  }
}

@media (max-width: 1100px) {
  .ip-priority {
    grid-template-columns: 1fr;
  }

  .ip-priority h2 {
    white-space: normal;
  }

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

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .creator-panel {
    order: 1;
  }

  .side-stack {
    order: 2;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    align-items: center;
    padding: 12px;
    overflow-x: auto;
  }

  .brand {
    flex: 0 0 auto;
  }

  .workflow-list,
  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 16px;
  }

  .topbar,
  .member-entry {
    align-items: stretch;
    flex-direction: column;
  }

  .member-state,
  .member-login-button {
    width: 100%;
  }

  .login-layout,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .code-row {
    grid-template-columns: 1fr;
  }

  .ip-priority {
    padding: 14px;
  }

  .ip-priority h2 {
    font-size: 18px;
  }

  .identity-actions {
    grid-template-columns: 1fr;
    width: 100%;
    margin-left: 0;
  }

  .creator-settings {
    grid-template-columns: 1fr;
  }

  .offer-input-wrap {
    grid-template-columns: 1fr;
  }

  #copyOfferToTopic {
    width: 100%;
  }

  .copy-type-detection {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 10px 12px;
  }

  .copy-type-detection select {
    width: 100%;
  }

  .result-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 14px;
  }

  .result-toolbar > div {
    justify-content: flex-start;
  }

  .result-actions .utility-button {
    flex: 1 1 138px;
  }

  .conversion-row {
    grid-template-columns: 1fr;
  }

  .deal-modal-box-head {
    display: grid;
  }

  .deal-modal-box-head .ghost-button {
    width: 100%;
  }

  .shoot-copy-head {
    align-items: stretch;
    flex-direction: column;
  }

  .shoot-copy-button {
    width: 100%;
  }

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

  .ip-mining-head {
    grid-template-columns: 1fr;
  }

  .ip-track-actions {
    grid-template-columns: 1fr;
  }

  .extract-panel {
    display: grid;
  }

  .extract-panel .ghost-button {
    width: 100%;
  }

  .style-panel-head {
    display: grid;
  }

  .style-panel-head .ghost-button {
    width: 100%;
  }

  .required-button {
    min-height: 68px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .member-center-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 22px;
  }
}

@media (max-width: 560px) {
  .workspace {
    padding: 12px;
  }

  .brand-avatar {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    font-size: 10px;
  }

  .topbar {
    margin-bottom: 10px;
  }

  h1 {
    font-size: 20px;
  }

  .ip-priority,
  .creator-panel,
  .setup-panel,
  .quality-panel {
    border-radius: 8px;
  }

  .identity-button {
    justify-content: flex-start;
    min-height: 62px;
  }

  .result-card {
    min-height: 360px;
    padding: 14px;
  }

  .shoot-copy-box {
    padding: 12px;
  }

  .modal-card {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .viral-element-grid {
    grid-template-columns: 1fr;
  }
}
