﻿/* 营销任务产品界面：复用内容工厂的品牌变量，范围限定在营销模块。 */
.marketing-admin,
.mkt-modal,
.mkt-preview-panel {
  --mkt-bg: var(--bg, #001010);
  --mkt-panel: #0a1b1b;
  --mkt-line: rgba(159, 202, 196, 0.15);
  --mkt-text: var(--ink, #fff);
  --mkt-muted: #91b0ad;
  --mkt-accent: var(--accent, #50e0b0);
  color: var(--mkt-text);
  font-family: inherit;
}
.marketing-admin *,
.mkt-modal *,
.mkt-preview-panel * {
  box-sizing: border-box;
}
.marketing-admin {
  padding: 0 0 48px;
}
.mkt-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 20px;
}
.mkt-eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--mkt-accent);
  letter-spacing: 0.15em;
}
.mkt-heading h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.04em;
}
.mkt-heading .mkt-create {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-pill, 999px);
  padding: 0 24px;
  min-height: 48px;
  font-size: 14px;
  box-shadow: 0 8px 28px rgba(48, 192, 192, 0.12);
}
.mkt-create > span {
  font-size: 23px;
  font-weight: 400;
}
.mkt-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.mkt-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 12px;
  color: var(--mkt-muted);
}
.mkt-stat > strong {
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #d6efec;
}
.mkt-stat .accent {
  color: var(--mkt-accent);
}
.mkt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 22px;
}
.mkt-filters {
  display: flex;
  gap: 6px;
}
.mkt-filters button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mkt-muted);
  padding: 10px 18px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mkt-filters button.active {
  background: rgba(80, 224, 176, 0.12);
  color: var(--mkt-accent);
}
.mkt-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 230px;
  padding: 10px 14px;
  border: 1px solid var(--mkt-line);
  border-radius: 999px;
  background: rgba(2, 14, 14, 0.45);
  color: var(--mkt-muted);
}
.mkt-search svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.marketing-admin .mkt-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--mkt-text);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.mkt-search:focus-within {
  border-color: var(--mkt-accent);
}
.mkt-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.mkt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--mkt-line);
  border-radius: var(--radius-preview, 24px);
  background: rgba(7, 22, 22, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.mkt-card:hover {
  border-color: rgba(80, 224, 176, 0.3);
  transform: translateY(-3px);
}
.mkt-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mkt-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 17px;
  border: 1px solid var(--mkt-line, rgba(159, 202, 196, 0.15));
  border-radius: var(--radius-input, 14px);
  background: rgba(255, 255, 255, 0.025);
  color: var(--mkt-text, #fff);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: border-color 0.15s;
}
.mkt-btn:hover {
  background: rgba(80, 224, 176, 0.06);
  border-color: rgba(80, 224, 176, 0.4);
}
.mkt-btn.primary {
  background: var(--brand-gradient, linear-gradient(135deg, #50e0b0, #30c0c0));
  color: #002c25;
  border-color: transparent;
  font-weight: 650;
  box-shadow: 0 4px 16px rgba(48, 192, 192, 0.08);
}
.mkt-btn.primary:hover {
  background: #76ebcb;
}
.mkt-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mkt-btn .mkt-icon {
  width: 17px;
  height: 17px;
}
.mkt-btn.danger {
  color: #f6a5ad;
}
.mkt-btn.text {
  border: 0;
  background: transparent;
}
.mkt-btn:focus-visible,
.mkt-filters button:focus-visible,
.mkt-step:focus-visible,
.mkt-more summary:focus-visible {
  outline: 2px solid var(--mkt-accent, #50e0b0);
  outline-offset: 3px;
}
.mkt-work-card:focus-within {
  outline: 2px solid var(--mkt-accent);
  outline-offset: 3px;
}
.mkt-btn.mkt-task-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: calc(100% - 16px);
  aspect-ratio: 16 / 10;
  margin: 8px 8px 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #153e39, #071d20);
}
.mkt-task-visual:hover {
  background: #153e39;
}
.mkt-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mkt-task-visual > .mkt-icon {
  width: 36px;
  height: 36px;
  color: #699f94;
}
.mkt-task-visual::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(0, 12, 14, 0.9));
  pointer-events: none;
}
.mkt-cover-count {
  position: absolute;
  bottom: 14px;
  left: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #f3fffc;
}
.mkt-cover-count .mkt-icon {
  width: 16px;
  height: 16px;
}
.mkt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 10px;
  color: #b6cbc8;
  background: #17302e;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}
.mkt-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.mkt-chip.ok {
  color: #8ff0c9;
  background: #13382f;
}
.mkt-chip.wait {
  color: #e6c28c;
  background: #302c23;
}
.mkt-task-visual > .mkt-chip {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  backdrop-filter: blur(10px);
}
.mkt-card-content {
  padding: 16px 16px 0;
  min-width: 0;
  flex: 1;
}
.mkt-card-head > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mkt-card .topic {
  height: 40px;
  margin: 10px 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  color: var(--mkt-muted);
}
.mkt-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #6f9590;
  font-size: 11px;
}
.mkt-card .meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mkt-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--mkt-muted);
  margin-top: 22px;
}
.mkt-progress-label strong {
  color: #cae5df;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mkt-progress {
  height: 3px;
  border-radius: 8px;
  margin-top: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.07);
}
.mkt-progress > span {
  display: block;
  height: 100%;
  background: var(--brand-gradient, linear-gradient(90deg, #50e0b0, #30c0c0));
  border-radius: inherit;
}
.mkt-card .ops {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
}
.mkt-card .ops > .mkt-btn {
  flex: 1;
  border-radius: 999px;
  padding: 9px 8px;
  font-size: 12px;
  white-space: nowrap;
}
.mkt-card .ops > .mkt-btn .mkt-icon {
  width: 15px;
  height: 15px;
}
.mkt-card .ops > .mkt-btn.primary {
  flex: 1.3;
}
.mkt-more {
  position: relative;
  flex: 0 0 40px;
}
.mkt-more summary {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  color: var(--mkt-muted);
  list-style: none;
}
.mkt-more summary::-webkit-details-marker {
  display: none;
}
.mkt-more summary:hover,
.mkt-more[open] summary {
  color: var(--mkt-text);
  background: rgba(255, 255, 255, 0.06);
}
.mkt-minor-actions {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 5;
  display: grid;
  min-width: 128px;
  padding: 6px;
  border: 1px solid var(--mkt-line);
  border-radius: 14px;
  background: #102b28;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.mkt-minor-actions .mkt-btn {
  justify-content: flex-start;
  border-radius: 8px;
}
.mkt-empty {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 340px;
  border-radius: 24px;
  background: rgba(7, 22, 22, 0.65);
  padding: 32px;
  text-align: center;
}
.mkt-empty > .mkt-icon {
  width: 48px;
  height: 48px;
  color: var(--mkt-accent);
}
.mkt-empty h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}
.mkt-empty p {
  max-width: 420px;
  margin: 0;
  color: var(--mkt-muted);
  font-size: 13px;
}
.mkt-empty p:empty {
  display: none;
}
.mkt-empty .mkt-btn {
  border-radius: 999px;
  padding: 11px 24px;
}
.mkt-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1800;
  padding: 28px;
  background: rgba(0, 8, 9, 0.7);
  backdrop-filter: blur(12px);
}
.mkt-modal {
  display: flex;
  flex-direction: column;
  width: 960px;
  max-width: 100%;
  max-height: calc(100dvh - 56px);
  overflow: hidden;
  border: 1px solid rgba(139, 242, 208, 0.16);
  border-radius: var(--radius-panel, 24px);
  background: linear-gradient(145deg, #102624, #071817 62%);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.6);
}
.mkt-modal-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px 18px;
}
.mkt-modal-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.4;
}
.mkt-btn.mkt-close {
  border: 1px solid var(--mkt-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  padding: 0;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  color: var(--mkt-muted);
}
.mkt-dialog-subtitle {
  margin: 8px 0 0;
  color: var(--mkt-muted);
  font-size: 13px;
  line-height: 1.5;
}
.mkt-wizard {
  height: min(760px, calc(100dvh - 56px));
}
.mkt-wizard-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.mkt-steps {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 176px;
  flex-shrink: 0;
  padding: 26px 16px;
  border-right: 1px solid var(--mkt-line);
}
.mkt-step {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #73928c;
  font: inherit;
  font-size: 12px;
}
.mkt-step::after {
  content: "";
  position: absolute;
  top: calc(100% + 1px);
  left: 23px;
  width: 1px;
  height: 18px;
  background: var(--mkt-line);
}
.mkt-step:last-child::after {
  display: none;
}
.mkt-step:not(:disabled) {
  cursor: pointer;
}
.mkt-step:not(:disabled):hover {
  color: var(--mkt-accent);
}
.mkt-step:disabled {
  opacity: 1;
}
.mkt-step > b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--mkt-line);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
}
.mkt-step.on {
  color: var(--mkt-text);
  background: rgba(80, 224, 176, 0.055);
  border-color: rgba(80, 224, 176, 0.14);
}
.mkt-step.on > b {
  background: var(--mkt-accent);
  border-color: var(--mkt-accent);
  color: #07352a;
  box-shadow: 0 0 18px rgba(80, 224, 176, 0.15);
}
.mkt-step.done {
  color: var(--mkt-accent);
}
.mkt-step.done > b {
  border-color: rgba(80, 224, 176, 0.35);
  background: rgba(80, 224, 176, 0.05);
}
.mkt-wizard-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}
.mkt-step-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 28px 36px;
}
.mkt-step-body[data-step="0"],
.mkt-step-body[data-step="2"],
.mkt-step-body[data-step="3"] {
  padding-left: max(36px, calc((100% - 640px) / 2));
  padding-right: max(36px, calc((100% - 640px) / 2));
}
.mkt-step-title {
  margin: 0 0 25px;
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1.4;
  outline: none;
}
.mkt-wizard-foot,
.mkt-modal > .foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  padding: 18px 32px;
  border-top: 1px solid var(--mkt-line);
  background: rgba(3, 16, 15, 0.7);
}
.mkt-wizard-foot > .mkt-btn,
.mkt-modal > .foot > .mkt-btn {
  border-radius: 999px;
  padding: 10px 24px;
  min-height: 42px;
}
.mkt-modal > .foot > .mkt-btn:only-child {
  margin-left: auto;
}
.mkt-foot-hint {
  margin-left: auto;
  margin-right: 12px;
  font-size: 12px;
  color: var(--mkt-muted);
}
.mkt-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.mkt-field > span,
.mkt-field > label {
  color: #bad2ca;
  font-size: 13px;
  font-weight: 500;
}
.mkt-modal input,
.mkt-modal textarea {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--mkt-line);
  border-radius: var(--radius-input, 14px);
  background: rgba(2, 14, 14, 0.5);
  color: var(--mkt-text);
  font: inherit;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
}
.mkt-modal textarea {
  resize: vertical;
}
.mkt-modal input:focus,
.mkt-modal textarea:focus {
  border-color: rgba(80, 224, 176, 0.6);
  box-shadow: 0 0 0 3px rgba(80, 224, 176, 0.055);
}
.mkt-modal input::placeholder,
.mkt-modal textarea::placeholder,
.marketing-admin input::placeholder {
  color: #64857e;
}
.mkt-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 16px;
  background: rgba(2, 14, 14, 0.5);
  text-align: left;
  font-size: 14px;
  font-weight: 400;
}
.mkt-date-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--mkt-muted);
}
.mkt-inline-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--mkt-muted);
}
.mkt-step-error {
  padding: 10px 12px;
  border: 1px solid rgba(237, 151, 133, 0.2);
  border-radius: 10px;
  color: #efb3a7;
  background: rgba(198, 91, 67, 0.06);
}
.mkt-step-error:empty,
.mkt-ai-feedback:empty {
  display: none;
}
.mkt-picker-bar {
  display: flex;
  gap: 10px;
}
.mkt-picker-bar input {
  flex: 1;
  padding: 10px 14px;
}
.mkt-picker-bar .mkt-btn {
  border-radius: 999px;
}
.mkt-work-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.mkt-work-categories .mkt-btn {
  padding: 8px 15px;
  min-height: 36px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: var(--mkt-muted);
  font-size: 12px;
}
.mkt-work-categories .mkt-btn.active {
  background: rgba(80, 224, 176, 0.12);
  color: var(--mkt-accent);
}
.mkt-picker-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 14px;
  font-size: 11px;
  color: var(--mkt-muted);
}
.mkt-picker-meta > strong {
  font-weight: 500;
  color: var(--mkt-accent);
}
.mkt-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.mkt-work-card {
  min-width: 0;
  border: 1px solid var(--mkt-line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: border-color 0.15s;
}
.mkt-work-card.on {
  border-color: var(--mkt-accent);
  background: rgba(80, 224, 176, 0.05);
}
.mkt-work-card > strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 12px 13px 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
}
.mkt-work-card > small {
  display: block;
  padding: 0 13px 13px;
  color: var(--mkt-muted);
  font-size: 11px;
}
.mkt-work-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, #183b34, #0c211f);
}
.mkt-work-thumb > .mkt-icon {
  width: 30px;
  height: 30px;
  color: #538575;
}
.mkt-work-thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mkt-work-check {
  position: absolute;
  top: 11px;
  right: 11px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  font-size: 12px;
  color: transparent;
}
.mkt-modal .mkt-work-select {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 30px;
  height: 30px;
  opacity: 0;
  padding: 0;
  cursor: pointer;
}
.mkt-work-card.on .mkt-work-check {
  color: #07352a;
  background: var(--mkt-accent);
  border-color: var(--mkt-accent);
}
.mkt-preview-button {
  position: absolute;
  bottom: 10px;
  left: 10px;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 10, 8, 0.7);
  color: #edfff7;
  font-size: 11px;
  backdrop-filter: blur(6px);
}
.mkt-preview-button:hover {
  background: rgba(0, 25, 20, 0.9);
}
.mkt-picker-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  grid-column: 1/-1;
  min-height: 200px;
  text-align: center;
  color: var(--mkt-muted);
  font-size: 13px;
}
.mkt-picker-empty .mkt-icon {
  width: 36px;
  height: 36px;
}
.mkt-picker-empty p {
  max-width: 300px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.mkt-skeleton {
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(100deg, #102e26 20%, #153d32 50%, #102e26 80%);
  background-size: 250% 100%;
  animation: mkt-loading 1.5s infinite;
}
@keyframes mkt-loading {
  to {
    background-position: -200% 0;
  }
}
.mkt-selected-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(80, 224, 176, 0.055);
  color: var(--mkt-muted);
  font-size: 13px;
}
.mkt-selected-summary .mkt-icon {
  color: var(--mkt-accent);
}
.mkt-character-count {
  align-self: flex-end;
  font-size: 11px;
  color: var(--mkt-muted);
}
.mkt-ai-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}
.mkt-ai-row > span {
  display: none;
}
.mkt-ai-row .mkt-btn {
  color: var(--mkt-accent);
  border-radius: 999px;
  background: rgba(80, 224, 176, 0.06);
}
.mkt-confirm-summary {
  margin-bottom: 22px;
  padding: 5px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}
.mkt-confirm-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--mkt-line);
  font-size: 13px;
}
.mkt-confirm-summary > div:last-child {
  border: 0;
}
.mkt-confirm-summary span {
  flex-shrink: 0;
  color: var(--mkt-muted);
}
.mkt-confirm-summary strong {
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}
.mkt-step-body h4 {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mkt-muted);
}
.mkt-summary {
  padding: 15px 18px;
  border: 1px solid var(--mkt-line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mkt-confirm-works {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 95px;
  overflow: auto;
}
.mkt-confirm-works > span {
  padding: 6px 11px;
  border: 1px solid var(--mkt-line);
  border-radius: 999px;
  font-size: 11px;
  color: #aec9bd;
}
.mkt-qr-box {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  padding: 20px 32px 32px;
  overflow: auto;
}
.mkt-share-modal {
  width: 840px;
}
.mkt-qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 18px;
  border-radius: 20px;
  padding: 20px 16px;
  background: rgba(80, 224, 176, 0.045);
}
.mkt-qr-card .qr {
  box-sizing: content-box;
  position: relative;
  padding: 12px;
  width: 200px;
  height: 200px;
  border-radius: 14px;
  background: #fff;
  border: 0;
  cursor: zoom-in;
}
.mkt-qr-card .qr:focus-visible {
  outline: 2px solid var(--mkt-accent);
  outline-offset: 4px;
}
.mkt-qr-card .qr img {
  display: block;
}
.mkt-qr-card .qr canvas {
  display: block;
  width: 200px;
  height: 200px;
}
.mkt-qr-card > strong {
  max-width: 220px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  overflow-wrap: anywhere;
  text-align: center;
}
.mkt-qr-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.mkt-qr-side h3,
.mkt-qr-side > .mkt-muted {
  display: none;
}
.mkt-label {
  font-size: 12px;
  color: var(--mkt-muted);
}
.mkt-qr-side .link {
  padding: 12px 14px;
  border: 1px solid var(--mkt-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.12);
  color: #b3cec2;
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.mkt-qr-side textarea {
  min-height: 110px;
  resize: vertical;
  font-size: 12px;
}
.mkt-qr-side .mkt-btn {
  align-self: flex-start;
  border-radius: 999px;
  font-size: 12px;
}
.mkt-qr-side label:not(:first-child) {
  margin-top: 14px;
}
.mkt-share-state {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: 30px;
}
.mkt-share-state p {
  margin: 0;
  color: var(--mkt-muted);
}
.mkt-share-state[hidden] {
  display: none;
}
.mkt-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mkt-detail-content {
  padding: 12px 32px 28px;
  overflow: auto;
}
.mkt-muted {
  color: var(--mkt-muted);
  font-size: 12px;
  line-height: 1.7;
}
.mkt-detail-topic {
  color: #b3cec2;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.mkt-detail-content > .mkt-summary {
  display: inline-flex;
  margin-left: 12px;
  padding: 6px 12px;
  font-size: 12px;
}
.mkt-section-title {
  margin: 25px 0 12px;
  font-size: 14px;
  font-weight: 500;
}
.mkt-table-wrap {
  max-height: 250px;
  overflow: auto;
  border: 1px solid var(--mkt-line);
  border-radius: 14px;
}
.mkt-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.mkt-table th,
.mkt-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--mkt-line);
  line-height: 1.6;
}
.mkt-table th {
  position: sticky;
  top: 0;
  background: #102c25;
  color: var(--mkt-muted);
  font-weight: 500;
  white-space: nowrap;
}
.mkt-table td:first-child {
  min-width: 120px;
}
.mkt-table td:last-child {
  white-space: nowrap;
}
.mkt-table-empty {
  text-align: center !important;
  color: var(--mkt-muted);
}
.mkt-preview {
  z-index: 2300;
}
.mkt-preview-panel {
  width: 700px;
  max-width: 100%;
  padding: 24px;
  border: 1px solid var(--mkt-line);
  border-radius: 24px;
  background: #0b211e;
}
.mkt-qr-enlarged {
  width: 560px;
}
.mkt-qr-enlarged > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.mkt-qr-enlarged > header > h3 {
  margin: 0;
}
.mkt-qr-enlarged > header > .mkt-close {
  margin: 0;
}
.mkt-qr-enlarged > img {
  display: block;
  width: min(100%, 56dvh);
  margin: 0 auto;
  border-radius: 12px;
  image-rendering: pixelated;
}
.mkt-preview-panel h3 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 500;
}
.mkt-preview-panel video {
  display: block;
  width: 100%;
  max-height: 65vh;
  border-radius: 16px;
  background: #000;
}
.mkt-preview-panel .mkt-btn {
  margin-top: 18px;
  width: 100%;
  border-radius: 999px;
}
.mkt-toast {
  position: fixed;
  z-index: 2600;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 13px 22px;
  border: 1px solid rgba(114, 212, 177, 0.3);
  border-radius: 999px;
  background: #12372d;
  color: #dcf3e7;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.mkt-toast.show {
  opacity: 1;
}
@media (max-width: 1279px) {
  .mkt-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1023px) {
  .mkt-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .mkt-wizard-layout {
    flex-direction: column;
  }
  .mkt-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    padding: 0 20px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--mkt-line);
  }
  .mkt-step {
    justify-content: center;
    padding: 10px 4px;
    gap: 8px;
  }
  .mkt-step::after {
    top: 50%;
    left: auto;
    right: -10px;
    width: 20px;
    height: 1px;
  }
}
@media (max-width: 760px) {
  .mkt-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mkt-heading {
    padding: 0 0 20px;
    gap: 14px;
  }
  .mkt-heading h2 {
    font-size: 28px;
  }
  .mkt-stats {
    gap: 12px;
  }
  .mkt-stat {
    gap: 4px;
    font-size: 11px;
  }
  .mkt-list {
    gap: 16px;
  }
  .mkt-card-content {
    padding: 18px 18px 0;
  }
  .mkt-card .ops {
    padding: 18px;
    gap: 6px;
  }
  .mkt-card .ops > .mkt-btn {
    padding: 9px 10px;
    font-size: 12px;
  }
  .mkt-card-head > strong {
    font-size: 15px;
  }
  .mkt-qr-box {
    gap: 24px;
    padding: 20px;
  }
}
@media (max-width: 600px) {
  body:has(#page-social-marketing.active) .demo-mode-badge {
    position: static;
    min-width: 0;
    margin: 0 20px 20px
      calc(var(--side-nav-width, 66px) + var(--nav-content-gap, 20px) + 16px);
  }
  .marketing-admin {
    padding-bottom: 32px;
  }
  .mkt-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    padding: 0 0 20px;
  }
  .mkt-heading > div {
    width: 100%;
  }
  .mkt-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }
  .mkt-heading h2 {
    font-size: 27px;
  }
  .mkt-heading .mkt-create {
    width: 100%;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    font-size: 12px;
    gap: 5px;
    margin-top: 0;
    white-space: nowrap;
  }
  .mkt-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    max-width: 280px;
  }
  .mkt-stat {
    font-size: 10px;
    white-space: nowrap;
  }
  .mkt-stat > strong {
    font-size: 12px;
  }
  .mkt-toolbar {
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 18px;
  }
  .mkt-filters {
    width: 100%;
    justify-content: space-between;
    gap: 2px;
  }
  .mkt-filters button {
    flex: 1;
    padding: 9px 6px;
    font-size: 11px;
    white-space: nowrap;
  }
  .mkt-search {
    width: 100%;
    padding: 11px 14px;
  }
  .mkt-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .mkt-btn.mkt-task-visual {
    aspect-ratio: 16 / 10;
  }
  .mkt-card-head > strong {
    font-size: 18px;
  }
  .mkt-card .topic {
    height: auto;
    min-height: 20px;
  }
  .mkt-card .ops {
    padding: 16px 12px;
  }
  .mkt-card .ops > .mkt-btn {
    font-size: 13px;
    padding: 10px 8px;
  }
  .mkt-overlay {
    padding: 12px;
  }
  .mkt-modal {
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .mkt-modal-head {
    padding: 18px 18px 14px;
  }
  .mkt-modal-head h2 {
    font-size: 16px;
  }
  .mkt-wizard {
    height: calc(100dvh - 24px);
  }
  .mkt-steps {
    padding: 0 12px 14px;
  }
  .mkt-step {
    flex-direction: column;
    gap: 7px;
    padding: 8px 2px;
    font-size: 10px;
  }
  .mkt-step::after {
    top: 21px;
    right: -10px;
    width: 20px;
  }
  .mkt-step > b {
    width: 24px;
    height: 24px;
  }
  .mkt-step-title {
    font-size: 21px;
    margin-bottom: 22px;
  }
  .mkt-step-body,
  .mkt-step-body[data-step] {
    padding: 24px 18px;
  }
  .mkt-wizard-foot,
  .mkt-modal > .foot {
    padding: 14px 18px;
  }
  .mkt-wizard-foot > .mkt-btn,
  .mkt-modal > .foot > .mkt-btn {
    min-height: 40px;
    padding: 9px 18px;
  }
  .mkt-foot-hint {
    font-size: 11px;
    margin-right: 2px;
  }
  .mkt-field {
    margin-bottom: 22px;
  }
  .mkt-modal input {
    font-size: 16px;
    padding: 12px;
  }
  .mkt-date-trigger {
    font-size: 13px;
    padding: 13px;
  }
  .mkt-work-categories {
    gap: 4px;
  }
  .mkt-work-categories .mkt-btn {
    padding: 7px 11px;
    font-size: 11px;
    min-height: 34px;
  }
  .mkt-works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .mkt-work-card > strong {
    font-size: 11px;
    padding: 10px 10px 4px;
  }
  .mkt-work-card > small {
    padding: 0 10px 10px;
    font-size: 10px;
  }
  .mkt-work-check {
    width: 21px;
    height: 21px;
    top: 9px;
    right: 9px;
  }
  .mkt-preview-button {
    min-height: 26px;
    left: 7px;
    bottom: 7px;
    padding: 3px 8px;
    font-size: 10px;
  }
  .mkt-qr-box {
    grid-template-columns: 1fr;
    padding: 16px 20px 24px;
  }
  .mkt-qr-card {
    justify-self: center;
    width: 100%;
  }
  .mkt-qr-side .mkt-btn {
    align-self: stretch;
  }
  .mkt-share-actions > * {
    flex: 1;
  }
  .mkt-detail-content {
    padding: 12px 18px 20px;
  }
  .mkt-detail-content > .mkt-summary {
    display: block;
    margin: 12px 0;
  }
  .mkt-confirm-summary {
    padding: 4px 14px;
  }
  .mkt-confirm-summary > div {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mkt-confirm-summary strong {
    text-align: left;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mkt-skeleton {
    animation: none;
  }
  .mkt-btn,
  .mkt-card,
  .mkt-toast {
    transition: none;
  }
  .mkt-card:hover {
    transform: none;
  }
}
