:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #5f6b73;
  --line: #d8dee3;
  --soft: #f5f7f8;
  --accent: #0f766e;
  --accent-soft: #e5f3ef;
  --gold: #b7791f;
  --rose: #b4535a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f8f7f3;
}

.hidden {
  display: none !important;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 15px 24px;
}

.topbar > div {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.brand,
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

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

.brand img {
  border-radius: 6px;
  display: block;
}

.topnav {
  display: flex;
  gap: 14px;
  align-items: center;
}

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

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px 24px 64px;
}

.page-heading {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.guidance-heading {
  margin-bottom: 20px;
}

.page-heading p {
  max-width: 760px;
  margin: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.panel.narrow {
  max-width: 460px;
}

.login-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.login-brand img {
  border-radius: 10px;
  flex: 0 0 auto;
}

.login-brand h1 {
  margin: 0;
}

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

.public-hero {
  display: grid;
  gap: 14px;
  padding: 34px 0 28px;
}

.public-hero img {
  border-radius: 18px;
}

.public-hero h1 {
  font-size: 44px;
  letter-spacing: 0;
}

.public-hero p {
  max-width: 680px;
}

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

.public-band > div {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}

.public-band h2 {
  margin-bottom: 8px;
}

.legal-panel {
  display: grid;
  gap: 16px;
}

.legal-panel h2 {
  margin-bottom: 6px;
}

.compact-panel {
  max-width: 680px;
}

.error-panel {
  margin-top: 24px;
}

.subpanel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  margin: 18px 0;
}

.subpanel.no-margin {
  margin: 0;
}

.subpanel.tinted {
  background: var(--accent-soft);
  border-color: #badbd3;
}

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

.setup-form {
  display: grid;
  gap: 18px;
}

.setup-section {
  border-bottom: 1px solid var(--line);
  padding: 0 0 18px;
}

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

.connect-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
}

.connect-strip div {
  display: grid;
  gap: 3px;
}

.connect-strip span {
  color: var(--muted);
}

.template-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 0;
}

.template-strip div {
  display: grid;
  gap: 3px;
}

.template-strip span {
  color: var(--muted);
}

.template-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.template-action-select {
  min-width: min(420px, 100%);
}

.template-action-select select {
  margin-top: 6px;
}

.required-panel {
  border-color: #d7862c;
  box-shadow: 0 0 0 3px rgba(215, 134, 44, 0.16);
}

.required-copy {
  color: #8a4f13;
  font-weight: 750;
}

.required-note {
  color: #9f2a2a;
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-left: 6px;
}

.plan-note {
  color: var(--gold);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-left: 6px;
}

.required-notice {
  background: #fff4f4;
  border-color: #efb8b8;
  color: #8a1f1f;
}

.field-missing {
  background: #fff7f7;
  border-color: #efb8b8;
  box-shadow: 0 0 0 3px rgba(239, 184, 184, 0.22);
}

.field-missing-control,
input:required:invalid,
textarea:required:invalid,
select:required:invalid {
  background: #fff7f7;
  border-color: #e8a5a5;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

.link-button:hover {
  color: var(--ink);
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.choice input {
  width: auto;
  margin-top: 3px;
}

.choice span {
  display: grid;
  gap: 4px;
}

.choice small {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
}

.choice.muted {
  color: var(--muted);
  background: var(--soft);
}

.choice em {
  color: var(--muted);
  font-style: normal;
  margin-left: 8px;
}

.social-choice {
  align-items: stretch;
}

.social-output {
  width: 100%;
}

.phase-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 7px;
  width: 100%;
}

.phase-segment {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.phase-fill {
  background: #d8dee3;
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 100%;
}

.phase-segment.active .phase-fill {
  background: var(--accent);
}

.phase-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.phase-segment.active .phase-label {
  color: var(--ink);
}

.workflow {
  align-items: center;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 0 0 22px;
}

.workflow-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  padding: 9px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-step.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.workflow-arrow {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.5;
}

form {
  margin: 0;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.fixed-choice {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: var(--ink);
  min-height: 41px;
  padding: 10px 11px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.build-copy {
  color: var(--ink);
  font-weight: 700;
  margin: 0;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

textarea.tall-editor {
  min-height: 180px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
}

.review-form label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.review-form input,
.review-form textarea {
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
}

.review-panel {
  padding: 18px;
}

.review-grid {
  gap: 14px;
}

.product-description-editor {
  color: #2f3b42;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  min-height: 165px;
}

.blog-description-editor {
  color: #2f3b42;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

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

.section-title h2 {
  margin: 0 0 4px;
}

.section-title p,
.section-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

.clean-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.5;
}

.guidance-editor {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  font-weight: 600;
}

.advanced-preferences {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
}

.advanced-preferences summary {
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.advanced-preferences .detail-grid {
  margin-top: 14px;
}

.guidance-editor textarea {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  min-height: 170px;
  background: #fff;
  border-color: #bdc8ce;
  padding: 14px;
}

.guidance-editor small {
  color: var(--muted);
  font-weight: 600;
}

.guidance-editor textarea.preference-textarea {
  min-height: 104px;
}

.workflow-form {
  display: grid;
  gap: 16px;
}

.language-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
}

.language-panel.product-panel {
  border-top: 4px solid var(--accent);
}

.language-panel.blog-panel {
  border-top: 4px solid var(--rose);
}

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

.detail-grid label {
  gap: 6px;
}

.detail-grid label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid input {
  min-height: 40px;
}

.guidance-actions {
  margin-top: 4px;
}

.usage-strip {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 13px 14px;
}

.usage-strip span,
.usage-strip small {
  color: var(--muted);
}

.usage-strip span {
  font-weight: 800;
}

.usage-strip small {
  flex: 0 0 100%;
  font-size: 12px;
  line-height: 1.35;
}

.upload-actions {
  align-items: end;
  border: 1px solid transparent;
  scroll-margin-top: 24px;
}

.category-confirm {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.category-confirm span {
  color: var(--muted);
  line-height: 1.4;
}

.upload-actions:target {
  background: var(--accent-soft);
  border: 1px solid #badbd3;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
  padding: 12px;
}

.upload-zone {
  border: 1px dashed #aebbc2;
  border-radius: 8px;
  background: #fcfcfb;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.upload-notes {
  display: grid;
  gap: 4px;
  color: var(--muted);
}

.upload-notes strong {
  color: var(--ink);
}

.retained-upload {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  margin-bottom: 16px;
}

.retained-upload img {
  width: 76px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  background: #fff;
}

.retained-upload div {
  display: grid;
  gap: 4px;
}

.retained-upload span {
  color: var(--muted);
}

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

.confirm-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: end;
}

.upload-thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 96px;
  height: 72px;
  overflow: hidden;
  position: relative;
}

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

.upload-thumb span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  border-radius: 999px;
  background: rgba(23, 32, 38, 0.82);
  color: #fff;
  padding: 3px 7px;
  font-size: 13px;
  font-weight: 800;
}

.file-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

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

.draft-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  text-decoration: none;
}

.draft-row span:first-child {
  display: grid;
  gap: 3px;
}

.draft-row small {
  color: var(--muted);
}

.status-pill {
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
  white-space: nowrap;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.status-card strong {
  color: var(--ink);
}

.status-card span {
  color: var(--muted);
}

.status-card.completed {
  background: var(--accent-soft);
  border-color: #badbd3;
}

.progress-shell {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 10px;
  margin-top: 14px;
  overflow: hidden;
}

.progress-bar {
  animation: progress-slide 1.5s ease-in-out infinite;
  background: var(--accent);
  border-radius: inherit;
  height: 100%;
  width: 42%;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(65%);
  }

  100% {
    transform: translateX(245%);
  }
}

.template-search {
  display: grid;
  gap: 12px;
}

.inline-actions {
  margin-top: 0;
}

.table-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

.product-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

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

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

.product-table td:first-child {
  min-width: 260px;
}

.product-table td:first-child span {
  color: var(--muted);
  display: block;
  margin-top: 3px;
}

.product-table button {
  background: #fff;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 7px 9px;
  white-space: nowrap;
}

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

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.pricing-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.14);
}

.pricing-card h2,
.pricing-card p {
  margin: 0;
}

.pricing-card p {
  color: var(--muted);
  font-weight: 800;
}

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

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 5px;
  padding: 16px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

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

.metrics-table {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
}

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

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

.muted-text {
  color: var(--muted);
}

.notice,
.placeholder {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 14px;
  margin: 16px 0;
}

.success-notice {
  border-color: #badbd3;
  color: #25564d;
}

.success-notice strong,
.success-notice span,
.success-notice a {
  display: block;
}

.success-notice span {
  color: var(--muted);
  margin-top: 5px;
}

.success-notice a {
  margin-top: 10px;
}

.success-note {
  border-color: #badbd3;
  background: var(--accent-soft);
}

.placeholder span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: white;
  color: var(--accent);
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 18px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
}

.status-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.status-icon::before {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.status-icon.ok {
  background: var(--accent);
}

.status-icon.ok::before {
  content: "✓";
}

.status-icon.bad {
  background: #b42318;
}

.status-icon.bad::before {
  content: "×";
}

.preview {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 16px;
}

@media (max-width: 720px) {
  .field-group,
  .form-grid,
  .detail-grid,
  .confirm-grid,
  .confirm-summary {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .connect-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .retained-upload {
    grid-template-columns: 1fr;
  }

  .template-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .template-actions {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .metrics-grid,
  .metrics-columns,
  .public-band {
    grid-template-columns: 1fr;
  }

  .phase-track {
    grid-template-columns: repeat(5, minmax(46px, 1fr));
    gap: 4px;
  }

  .phase-label {
    font-size: 10px;
  }
}
