:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #111827;
  --muted: #637083;
  --line: #dce4ee;
  --nav: #07111f;
  --nav-2: #13223a;
  --cyan: #16c7d9;
  --cyan-2: #e7fbfd;
  --coral: #ff695f;
  --green: #20b486;
  --amber: #f5a623;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  background: #07111f;
}

.login-art {
  position: relative;
  padding: 56px;
  color: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(22, 199, 217, 0.24), transparent 38%),
    radial-gradient(circle at 78% 22%, rgba(255, 105, 95, 0.26), transparent 30%),
    linear-gradient(180deg, #07111f, #0b1a2e);
}

.login-art > * {
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--cyan);
  color: #06111f;
  font-weight: 900;
}

.login-art h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.login-art p {
  max-width: 600px;
  color: #c9d5e5;
  font-size: 18px;
  line-height: 1.6;
}

.login-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 780px;
}

.login-point {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 18px;
  color: #dbe7f5;
}

.login-form-wrap {
  min-height: 100vh;
  background: var(--surface);
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.login-card p {
  margin: 0 0 26px;
  color: var(--muted);
}

.login-contact {
  margin-top: 22px;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(22, 199, 217, 0.22);
  border-radius: 8px;
  background: #f0fbfd;
}

.login-contact strong {
  color: var(--ink);
}

.login-contact span,
.login-contact a {
  color: #405166;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.login-contact a {
  color: #087b88;
  font-weight: 900;
}

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

.sidebar {
  background: var(--nav);
  color: #d7e2f0;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  padding: 4px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: grid;
  gap: 4px;
  overflow: auto;
  padding-right: 2px;
}

.nav-button {
  border: 0;
  color: #b7c4d7;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  text-align: left;
}

.nav-button:hover,
.nav-button.active {
  background: linear-gradient(90deg, rgba(22, 199, 217, 0.16), rgba(19, 34, 58, 0.9));
  color: white;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.82;
}

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

.sidebar-footer strong {
  display: block;
  color: white;
  margin-bottom: 4px;
}

.sidebar-footer span {
  display: block;
  font-size: 12px;
  color: #9fb0c8;
  overflow-wrap: anywhere;
}

.support-card {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: rgba(22, 199, 217, 0.09);
  border: 1px solid rgba(22, 199, 217, 0.16);
  border-radius: var(--radius);
}

.support-card strong {
  color: #ffffff;
}

.support-card span,
.support-card a {
  color: #bfeaf1;
  font-size: 12px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.main {
  min-width: 0;
  overflow-x: hidden;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  align-items: center;
  padding: 0 28px;
  background: rgba(245, 247, 251, 0.88);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  z-index: 10;
  gap: 16px;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
}

.topbar-actions:last-child {
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.content {
  padding: 28px 32px 46px;
  display: grid;
  gap: 22px;
}

.section {
  display: none;
}

.section.active {
  display: grid;
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.7fr);
  gap: 22px;
}

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

.panel,
.metric,
.step-card,
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06);
}

.panel {
  padding: 24px;
}

.project-switcher {
  display: grid;
  grid-template-columns: minmax(220px, 340px) auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  min-width: 0;
  max-width: 100%;
}

.project-switcher .input {
  height: 40px;
  border: 0;
  background: #f8fafc;
  font-weight: 800;
  min-width: 0;
}

.project-switcher .button {
  height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

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

.panel-title {
  margin: 0;
  font-size: 18px;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.mission-hero {
  background:
    linear-gradient(135deg, #07111f 0%, #102033 72%),
    #07111f;
  color: white;
  border: 0;
  overflow: hidden;
  position: relative;
}

.mission-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 260px;
  height: 260px;
  border: 34px solid rgba(22, 199, 217, 0.2);
  transform: rotate(22deg);
}

.mission-hero h2 {
  position: relative;
  margin: 0;
  max-width: 780px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.mission-hero p {
  position: relative;
  color: #c9d5e5;
  max-width: 820px;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.mission-hero .tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.metric {
  padding: 18px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
}

.progress {
  height: 8px;
  background: #e7edf5;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 12px;
}

.progress > i {
  display: block;
  height: 100%;
  width: var(--value, 0%);
  background: linear-gradient(90deg, var(--cyan), var(--green));
}

.page-progress {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border-color: rgba(22, 199, 217, 0.24);
  background:
    linear-gradient(180deg, rgba(231, 251, 253, 0.74), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.progress-summary {
  display: grid;
  align-content: center;
  gap: 7px;
}

.eyebrow {
  color: #087b88;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-summary strong {
  font-size: 24px;
  line-height: 1.1;
}

.progress-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.roadmap-mini {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.roadmap-step {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 10px;
  text-align: left;
}

.roadmap-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8eef6;
  color: #42526b;
  font-size: 11px;
  font-weight: 900;
}

.roadmap-step strong {
  font-size: 12px;
  line-height: 1.2;
}

.roadmap-step small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.roadmap-step.done {
  border-color: rgba(32, 180, 134, 0.34);
  background: linear-gradient(180deg, #ffffff, #effdf8);
}

.roadmap-step.done span {
  background: var(--green);
  color: #ffffff;
}

.roadmap-step.current {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 199, 217, 0.13);
}

.roadmap-board {
  overflow: hidden;
}

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

.flow-node {
  position: relative;
  min-height: 94px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.flow-node:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 199, 217, 0.12);
}

.flow-node.done {
  border-color: rgba(32, 180, 134, 0.4);
  background: linear-gradient(180deg, #ffffff, #f0fdf8);
}

.flow-letter {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--nav);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.flow-node.done .flow-letter {
  background: var(--green);
}

.flow-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.flow-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.flow-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.flow-node i {
  position: absolute;
  right: -13px;
  top: 50%;
  z-index: 2;
  width: 14px;
  height: 1px;
  background: var(--line);
}

.mentor-guide {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-color: rgba(255, 105, 95, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 246, 244, 0.74), rgba(255, 255, 255, 0.94)),
    var(--surface);
}

.guide-column,
.mentor-note,
.segment-snapshot,
.glossary-panel {
  min-width: 0;
}

.guide-column {
  display: grid;
  gap: 9px;
}

.guide-column strong,
.mentor-note strong,
.segment-snapshot strong {
  font-size: 13px;
}

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

.mini-list li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.mini-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--cyan);
}

.mentor-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(22, 199, 217, 0.18);
  border-radius: 8px;
  background: #f0fbfd;
}

.setup-smart-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.82fr);
  align-items: start;
}

.setup-block {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  margin-top: 16px;
}

.setup-block:first-of-type {
  margin-top: 0;
}

.setup-block.muted-block {
  background: #f8fafc;
}

.setup-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.setup-block-title span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #07111f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.setup-block-title strong {
  font-size: 14px;
  letter-spacing: 0;
}

.research-guide {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.guide-head strong {
  display: block;
  margin-top: 5px;
}

.guide-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0 0;
}

.source-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.source-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.source-card > span {
  grid-row: span 3;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9fbfd;
  color: #087b88;
  font-size: 12px;
  font-weight: 900;
}

.source-card strong {
  font-size: 13px;
}

.source-card p,
.source-card small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.source-card small {
  color: #405166;
  font-weight: 700;
}

.quality-gate {
  margin-top: 14px;
  padding: 14px;
  border-radius: 8px;
  background: #07111f;
  color: #ffffff;
}

.quality-gate .mini-list li {
  color: #d7e2ef;
}

.mentor-note p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.lens-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.lens-grid span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #087b88;
  font-size: 12px;
  font-weight: 800;
}

.segment-snapshot {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.glossary-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

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

.glossary-item {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.glossary-item strong {
  font-size: 13px;
}

.glossary-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.38;
}

.module-checklist {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.module-checklist-head,
.mini-check {
  display: flex;
  align-items: center;
  gap: 9px;
}

.module-checklist-head {
  justify-content: space-between;
  font-size: 13px;
}

.module-checklist-head span {
  color: #087b88;
  font-weight: 900;
}

.mini-check {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.mini-check i {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: #ffffff;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.mini-check.done {
  color: var(--ink);
}

.mini-check.done i {
  background: var(--green);
  border-color: var(--green);
}

.support-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.support-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.support-actions strong {
  margin-right: 4px;
}

.step-card {
  padding: 18px;
  display: grid;
  gap: 12px;
}

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

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

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

.quality.good {
  color: var(--green);
}

.quality.warn {
  color: var(--amber);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 2px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 13px;
  font-weight: 800;
}

.field small {
  color: var(--muted);
  line-height: 1.45;
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 12px 13px;
  outline: none;
  font-size: 14px;
}

.textarea {
  min-height: 126px;
  resize: vertical;
  line-height: 1.55;
}

.textarea.compact {
  min-height: 88px;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(22, 199, 217, 0.12);
}

.button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
}

.button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.button.cyan {
  background: var(--cyan);
  color: #06111f;
  border-color: var(--cyan);
}

.button.danger {
  background: #fff0ef;
  color: #b5241b;
  border-color: #ffd0cc;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.feedback-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feedback-list li {
  color: var(--muted);
  display: flex;
  gap: 8px;
  line-height: 1.45;
  font-size: 14px;
}

.feedback-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--coral);
  margin-top: 7px;
}

.prompt-box {
  background: #07111f;
  color: #dceaff;
  border-radius: var(--radius);
  padding: 16px;
  min-height: 220px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 13px;
  overflow: auto;
  max-height: 460px;
}

.content-audit-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.audit-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.72fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, #07111f 0%, #102033 64%, #0f3a42 100%),
    #07111f;
  color: #ffffff;
  border: 0;
}

.audit-hero .panel-title,
.audit-hero .panel-subtitle {
  color: #ffffff;
}

.audit-hero .panel-subtitle {
  color: #c9d5e5;
}

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

.audit-metric {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.audit-metric span,
.audit-metric small {
  display: block;
  color: #c9d5e5;
  font-size: 11px;
  font-weight: 900;
}

.audit-metric strong {
  display: block;
  margin: 5px 0 2px;
  color: #ffffff;
  font-size: 28px;
}

.audit-metric .progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.14);
}

.audit-results,
.seo-audit-results,
.social-audit-editor,
.seo-audit-editor {
  min-width: 0;
}

.audit-editor-grid,
.audit-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.platform-picker-panel {
  padding-bottom: 18px;
}

.compact-grid {
  gap: 12px;
}

.content-audit-shell .media-panel,
.content-audit-shell .seo-audit-results {
  grid-column: 1 / -1;
}

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

.platform-guide > div {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.platform-guide strong {
  font-size: 13px;
}

.platform-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.platform-choice input {
  accent-color: var(--cyan);
}

.platform-choice.active {
  border-color: rgba(22, 199, 217, 0.72);
  background: #e9fbfd;
  color: #062f38;
}

.platform-audit-card {
  border-color: rgba(22, 199, 217, 0.18);
}

.platform-score-badge {
  min-width: 94px;
  display: grid;
  justify-items: end;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.platform-score-badge strong {
  font-size: 26px;
}

.platform-score-badge span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.hidden-platform-panel {
  display: none;
}

.danger-tag {
  background: #fff0ef;
  border-color: #ffd0cc;
  color: #b5241b;
}

.audit-check-groups {
  display: grid;
  gap: 12px;
}

.audit-check-group {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.audit-check-group h3,
.seo-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.audit-check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.audit-check:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.audit-check span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.audit-check.pass span {
  background: #e9f9ef;
  color: #0f8a3f;
}

.audit-check.fail span {
  background: #fff0ef;
  color: #b5241b;
}

.audit-check p {
  margin: 0;
  font-weight: 800;
  line-height: 1.35;
}

.audit-check small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.audit-check em {
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.audit-check.pass em {
  background: #e9f9ef;
  border-color: #bbf7d0;
  color: #0f8a3f;
}

.audit-check.fail em {
  background: #fff0ef;
  border-color: #ffd0cc;
  color: #b5241b;
}

.audit-seo-summary {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(22, 199, 217, 0.16);
  border-radius: 8px;
  background: #f0fbfd;
  margin-bottom: 16px;
}

.audit-seo-summary span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.audit-seo-summary strong {
  color: var(--ink);
}

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

.template-lab {
  display: grid;
  gap: 20px;
}

.template-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.7fr);
  gap: 20px;
  align-items: center;
  background:
    linear-gradient(135deg, #07111f 0%, #102033 64%, #173b3d 100%),
    #07111f;
  color: #ffffff;
  border: 0;
}

.template-hero .panel-title,
.template-hero .panel-subtitle {
  color: #ffffff;
}

.template-hero .panel-subtitle {
  color: #c9d5e5;
}

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

.template-card {
  display: grid;
  gap: 9px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.template-card > span {
  color: #087b88;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.template-card strong {
  font-size: 15px;
}

.template-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.template-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.template-columns i {
  padding: 5px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #405166;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.forecast-grid .audit-metric {
  border-color: var(--line);
  background: #f8fafc;
}

.forecast-grid .audit-metric span,
.forecast-grid .audit-metric small {
  color: var(--muted);
}

.forecast-grid .audit-metric strong {
  color: var(--ink);
  font-size: 22px;
}

.template-builder-panel {
  display: grid;
  gap: 14px;
}

.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 16px;
  align-items: stretch;
}

.download-card,
.download-steps {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 16px;
}

.download-card {
  display: grid;
  gap: 10px;
}

.download-card strong,
.download-steps strong {
  font-size: 16px;
}

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

.download-steps ol {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.template-table-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.template-table-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

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

.template-table-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.template-table-textarea {
  min-height: 170px;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  white-space: pre;
  overflow: auto;
}

.prompt-workspace {
  display: grid;
  gap: 20px;
  align-items: start;
}

.prompt-main-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.76fr) minmax(620px, 1.24fr);
  gap: 20px;
  align-items: start;
}

.prompt-library,
.prompt-preview {
  min-height: 680px;
}

.prompt-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: start;
  background:
    linear-gradient(135deg, #07111f 0%, #0d2a38 58%, #103842 100%),
    #07111f;
  color: #ffffff;
  border: 0;
  overflow: hidden;
  position: relative;
}

.prompt-hero::after {
  content: "";
  position: absolute;
  right: -72px;
  top: -88px;
  width: 220px;
  height: 220px;
  border: 30px solid rgba(22, 199, 217, 0.18);
  transform: rotate(18deg);
}

.prompt-hero > * {
  position: relative;
  z-index: 1;
}

.prompt-hero .panel-title,
.prompt-hero .panel-subtitle {
  color: #ffffff;
}

.prompt-hero .panel-subtitle {
  color: #c7d7e8;
  max-width: 860px;
}

.prompt-hero-stats {
  display: grid;
  gap: 3px;
  justify-items: end;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.prompt-hero-stats strong {
  font-size: 28px;
}

.prompt-hero-stats span {
  color: #c7d7e8;
  font-size: 12px;
  font-weight: 800;
}

.prompt-hero-stats small {
  color: #9fb8cc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.prompt-controls {
  display: grid;
  gap: 12px;
}

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

.prompt-hero .prompt-paths {
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 0;
}

.prompt-path {
  text-align: left;
  display: grid;
  gap: 4px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.prompt-hero .prompt-path {
  min-height: 78px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.prompt-path strong {
  font-size: 13px;
}

.prompt-path small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.prompt-hero .prompt-path small {
  color: #b9d2e2;
}

.prompt-path.active {
  border-color: rgba(22, 199, 217, 0.75);
  background: #e9fbfd;
}

.prompt-hero .prompt-path.active {
  background: var(--cyan);
  color: #06111f;
  border-color: var(--cyan);
}

.prompt-hero .prompt-path.active small {
  color: #0c4050;
}

.prompt-searchbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.prompt-searchbar .input {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.96);
}

.prompt-searchbar span {
  color: #c7d7e8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.prompt-categories,
.prompt-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-categories button,
.prompt-levels button {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 900;
}

.prompt-levels {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.prompt-levels button {
  border-radius: 8px;
}

.prompt-categories button.active,
.prompt-levels button.active {
  background: #07111f;
  color: #ffffff;
  border-color: #07111f;
}

.prompt-memory {
  display: grid;
  gap: 12px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.prompt-memory > div {
  display: grid;
  gap: 8px;
}

.prompt-memory strong {
  font-size: 12px;
}

.empty-memory {
  color: var(--muted);
  font-size: 13px;
}

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

.prompt-mini {
  display: grid;
  gap: 3px;
  min-width: min(100%, 190px);
  max-width: 260px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.prompt-mini.favorite {
  border-color: rgba(22, 199, 217, 0.55);
  background: #effcff;
}

.prompt-mini span {
  color: #087b88;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-mini strong {
  font-size: 12px;
  line-height: 1.25;
}

.prompt-card-grid {
  display: grid;
  gap: 9px;
  max-height: 620px;
  overflow: auto;
  padding-right: 4px;
  margin-top: 16px;
}

.prompt-card {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: 8px;
  background: #ffffff;
  padding: 13px 13px 13px 12px;
  color: var(--ink);
}

.prompt-card:hover,
.prompt-card.active {
  border-color: rgba(22, 199, 217, 0.72);
  border-left-color: var(--cyan);
  background: linear-gradient(180deg, #ffffff, #f0fbfd);
}

.prompt-card span {
  color: #087b88;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.prompt-card small {
  color: var(--muted);
  line-height: 1.35;
}

.prompt-card em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.prompt-summary-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(22, 199, 217, 0.16);
  border-radius: 8px;
  background: #f0fbfd;
  margin-bottom: 14px;
}

.prompt-summary-card span {
  color: #087b88;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.prompt-summary-card p {
  margin: 0;
  color: #213044;
  line-height: 1.45;
  font-size: 14px;
}

.prompt-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.prompt-meta-row i {
  padding: 6px 8px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #405166;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.prompt-preview .prompt-box {
  min-height: 500px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  line-height: 1.6;
  background: #0b1220;
  color: #dbeafe;
  border-color: #172033;
  max-height: none;
}

.prompt-helper {
  background:
    linear-gradient(180deg, #ffffff, #f8fbff),
    #ffffff;
}

.prompt-output-panel {
  grid-column: 1 / -1;
}

.ai-output-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

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

.smart-prompt {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.smart-prompt:hover {
  border-color: rgba(22, 199, 217, 0.7);
  background: #f0fbfd;
}

.smart-prompt span {
  color: #087b88;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smart-prompt strong {
  font-size: 14px;
  line-height: 1.25;
}

.smart-prompt small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

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

.history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  gap: 20px;
  align-items: start;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.history-item.active {
  border-color: rgba(22, 199, 217, 0.75);
  box-shadow: 0 0 0 3px rgba(22, 199, 217, 0.1);
}

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

.history-item > div:first-child span,
.history-item > div:first-child small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.history-item > div:first-child small {
  color: #087b88;
}

.history-scores {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.history-scores span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0f4c81;
  font-size: 12px;
  font-weight: 900;
}

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

.history-preview {
  position: sticky;
  top: 92px;
}

.history-current {
  grid-column: 1 / -1;
}

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

.snapshot-grid div,
.snapshot-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.snapshot-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.snapshot-grid strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.snapshot-block {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.snapshot-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.short-url {
  font-weight: 800;
  color: #087b88;
  overflow-wrap: anywhere;
}

.qr {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}

.empty {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  background: var(--ink);
  color: white;
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

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

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

.student-row strong {
  display: block;
}

.student-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.wp-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.wp-main,
.wp-sidebar {
  display: grid;
  gap: 16px;
}

.wp-title {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  padding: 18px 20px;
  outline: 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.permalink-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 13px;
}

.permalink-row strong {
  color: #087b88;
  overflow-wrap: anywhere;
}

.permalink-input {
  width: min(300px, 100%);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  outline: 0;
}

.permalink-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(22, 199, 217, 0.12);
}

.classic-editor {
  padding: 0;
  overflow: hidden;
}

.classic-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.wp-content {
  width: 100%;
  min-height: 540px;
  border: 0;
  resize: vertical;
  outline: 0;
  padding: 22px;
  color: var(--ink);
  font: 16px/1.75 Georgia, "Times New Roman", serif;
  background: #ffffff;
}

.editor-status {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  background: #f8fafc;
}

.publish-box {
  display: grid;
  gap: 12px;
}

.publish-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.publish-row strong {
  color: var(--ink);
}

.rankmath {
  position: sticky;
  top: 16px;
}

.panel-header.compact {
  align-items: center;
}

.score-ring {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  background:
    radial-gradient(circle at center, #fff 58%, transparent 59%),
    conic-gradient(#22c55e var(--score), #e5e7eb 0);
}

.rank-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 14px;
}

.rank-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: #f8fafc;
  padding: 10px 8px;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.rank-tabs button:last-child {
  border-right: 0;
}

.rank-tabs button.active {
  color: #ffffff;
  background: #111827;
}

.snippet-preview {
  display: grid;
  gap: 4px;
  padding: 13px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #ffffff;
}

.snippet-preview span {
  color: #087b88;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.snippet-preview strong {
  color: #1d4ed8;
  font-size: 16px;
  line-height: 1.35;
}

.snippet-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.snippet-preview.social strong {
  color: var(--ink);
}

.seo-groups {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.seo-group h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.seo-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f7;
}

.seo-check span {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.seo-check.pass span {
  background: #16a34a;
}

.seo-check.warn span {
  background: #f59e0b;
}

.seo-check.fail span {
  background: #ef4444;
}

.seo-check p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.seo-check small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.checkline {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 700;
}

.media-panel {
  overflow: hidden;
}

.media-panel .panel-header {
  align-items: flex-start;
}

.media-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

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

.wp-sidebar .media-grid {
  grid-template-columns: 1fr;
}

.media-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.wp-sidebar .media-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.media-card img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.wp-sidebar .media-card img {
  width: 96px;
  height: 96px;
}

.media-fields {
  display: grid;
  gap: 7px;
}

.media-fields label {
  margin: 0;
  font-size: 12px;
}

.media-fields small {
  color: var(--muted);
  line-height: 1.35;
}

.seo-checks-panel .seo-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.seo-checks-panel .seo-group {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.mobile-menu {
  display: none;
}

.sidebar-close {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 980px) {
  .login-shell,
  .app-shell,
  .grid-2,
  .setup-smart-grid,
  .grid-3,
  .page-progress,
  .mentor-guide,
  .glossary-panel,
  .content-audit-shell,
  .audit-editor-grid,
  .audit-result-grid,
  .audit-hero,
  .platform-guide,
  .audit-seo-groups,
  .template-hero,
  .template-card-grid,
  .forecast-grid,
  .download-layout,
  .prompt-workspace,
  .prompt-main-grid,
  .ai-output-grid,
  .history-layout,
  .wp-editor-layout,
  .media-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .flow-node i {
    display: none;
  }

  .module-checklist {
    padding-left: 0;
    border-left: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .login-art {
    min-height: 420px;
    padding: 32px;
  }

  .login-form-wrap {
    min-height: auto;
    padding: 32px;
  }

  .login-points {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 276px;
    z-index: 30;
    transform: translateX(-102%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar.open + .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(15, 23, 42, 0.42);
    cursor: pointer;
  }

  .sidebar .brand {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .sidebar-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #e5edf7;
    border-radius: 8px;
    padding: 8px 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .topbar {
    grid-template-columns: 1fr;
    padding: 0 16px;
    align-items: flex-start;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .topbar-actions:last-child {
    justify-content: flex-start;
    width: 100%;
  }

  .project-switcher {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .prompt-library,
  .prompt-preview {
    min-height: auto;
  }

  .prompt-card-grid {
    max-height: 360px;
  }

  .prompt-paths,
  .prompt-hero .prompt-paths,
  .smart-prompt-list {
    grid-template-columns: 1fr;
  }

  .prompt-hero {
    grid-template-columns: 1fr;
  }

  .prompt-hero-stats {
    justify-items: start;
  }

  .prompt-hero-stats small {
    text-align: left;
  }

  .prompt-searchbar {
    grid-template-columns: 1fr;
  }

  .prompt-searchbar span {
    white-space: normal;
  }

  .content {
    padding: 16px;
  }

  .rankmath {
    position: static;
  }

  .history-preview {
    position: static;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-scores,
  .history-actions {
    justify-content: flex-start;
  }

  .seo-checks-panel .seo-groups {
    grid-template-columns: 1fr;
  }

  .support-panel,
  .support-actions {
    display: grid;
    justify-content: stretch;
  }

  .media-card {
    grid-template-columns: 1fr;
  }

  .media-card img {
    width: 100%;
    height: 220px;
  }

  .wp-sidebar .media-card img {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 620px) {
  .topbar h1 {
    font-size: 16px;
  }

  .mission-hero h2 {
    font-size: 30px;
  }

  .panel {
    padding: 16px;
  }

  .wp-title {
    font-size: 24px;
  }

  .editor-status,
  .permalink-row {
    display: grid;
  }

  .roadmap-mini {
    grid-template-columns: 1fr;
  }

  .roadmap-flow {
    grid-template-columns: 1fr;
  }

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

  th,
  td {
    padding: 10px;
  }
}
