:root {
  --bg: #f5f1e8;
  --bg-strong: #ece4cf;
  --surface: rgba(255, 250, 232, 0.88);
  --surface-strong: #fffdf4;
  --ink: #23201a;
  --muted: #726851;
  --line: rgba(35, 32, 26, 0.12);
  --accent: #f0c915;
  --accent-strong: #e4b600;
  --accent-deep: #c89400;
  --accent-soft: rgba(240, 201, 21, 0.2);
  --success: #5b7a28;
  --danger: #a44c31;
  --shadow: 0 24px 70px rgba(82, 67, 20, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI Variable", "Aptos", "Trebuchet MS", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(240, 201, 21, 0.24), transparent 30%),
    radial-gradient(circle at bottom right, rgba(232, 185, 34, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f4e8 0%, #f3eddf 42%, #ece5d6 100%);
  color: var(--ink);
}

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

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-kicker,
.section-kicker,
.meta-label {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.panel h2,
.subsection h3 {
  margin: 0;
  font-family: "Arial Nova", "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.panel,
.result-card,
.toggle-card,
.destination-card,
.media-card,
.button-row {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.brandmark {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0.28));
  box-shadow: 0 16px 30px rgba(82, 67, 20, 0.1);
}

.brandmark-core {
  position: absolute;
  inset: 6px 10px 8px;
  border-radius: 22px 22px 18px 18px;
  background: linear-gradient(180deg, #ffe14c, var(--accent) 42%, #f2c90c 100%);
}

.brandmark-core::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 16px;
  width: 14px;
  height: 16px;
  border-radius: 10px 10px 2px 2px;
  background: #ffe14c;
}

.brandmark-eye {
  position: absolute;
  top: 18px;
  width: 12px;
  height: 16px;
  border-radius: 50%;
  background: #49474e;
}

.brandmark-eye-left {
  left: 14px;
}

.brandmark-eye-right {
  right: 14px;
}

.brandmark-smile {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 22px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  border-bottom: 6px solid #f28b1d;
}

.brandcopy {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brandcopy strong {
  font-size: 1.55rem;
  letter-spacing: -0.05em;
}

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

.panel-header {
  margin-bottom: 18px;
}

.subsection {
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span {
  font-size: 0.92rem;
  font-weight: 600;
}

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

.field.compact {
  gap: 8px;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--ink);
  padding: 14px 16px;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

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

textarea:focus,
input:focus,
select:focus,
.dropzone:focus-within {
  outline: none;
  border-color: rgba(240, 201, 21, 0.56);
  box-shadow: 0 0 0 4px rgba(240, 201, 21, 0.18);
}

.dropzone {
  display: block;
  border: 1.5px dashed rgba(200, 148, 0, 0.45);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(240, 201, 21, 0.16), rgba(255, 255, 255, 0.74)),
    var(--surface-strong);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.dropzone:hover,
.dropzone.dragover {
  transform: translateY(-1px);
  border-color: var(--accent-deep);
  box-shadow: 0 18px 45px rgba(228, 182, 0, 0.16);
}

.dropzone-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dropzone-copy strong {
  font-size: 1.15rem;
}

.dropzone-copy span,
.dropzone-copy small,
.hint-row,
.summary-list,
.empty-state,
.status-pill,
.counter {
  color: var(--muted);
}

.hint-row {
  margin-top: 12px;
  font-size: 0.92rem;
}

.media-grid {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.media-card {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
}

.media-card.dragging {
  opacity: 0.45;
}

.media-card.drag-target {
  outline: 2px solid rgba(198, 95, 43, 0.45);
}

.media-preview {
  background: linear-gradient(135deg, #ead98a, #f6efd3);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-fallback {
  font-size: 0.95rem;
  color: var(--muted);
}

.media-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.media-kind,
.drag-badge,
.platform-chip,
.destination-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  background: var(--accent-soft);
}

.media-card-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.button-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.button-row {
  border-radius: 18px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: end;
}

.grow {
  flex: 1 1 auto;
}

.destination-stack {
  display: grid;
  gap: 14px;
}

.destination-card {
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.platform-header,
.destination-item,
.platform-mode {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.platform-header {
  align-items: start;
}

.platform-name {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.platform-controls,
.explicit-destinations {
  display: grid;
  gap: 10px;
}

.checkbox-row,
.toggle-card,
.destination-item {
  position: relative;
}

.checkbox-row input,
.toggle-card input,
.destination-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-row label,
.toggle-card span,
.destination-item label {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.7);
}

.checkbox-row input:checked + label,
.toggle-card input:checked + span,
.destination-item input:checked + label {
  border-color: rgba(240, 201, 21, 0.58);
  background: rgba(240, 201, 21, 0.18);
}

.destination-chip.default {
  background: rgba(37, 99, 75, 0.12);
  color: var(--success);
}

.summary-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  line-height: 1.45;
}

.action-stack {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.primary-button,
.secondary-button,
.ghost-button {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  background: linear-gradient(135deg, #f6d82f, #efc10c);
  color: #3a2e12;
  box-shadow: 0 14px 34px rgba(216, 176, 16, 0.26);
}

.secondary-button {
  background: #4f4a42;
  color: #fbf6ef;
}

.ghost-button {
  background: rgba(35, 32, 26, 0.06);
  color: var(--ink);
}

.ghost-button.wide {
  width: 100%;
}

.danger-link {
  border: 0;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 0;
}

.result-card {
  border-radius: 18px;
  padding: 16px;
  min-height: 120px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.result-card.success {
  border-color: rgba(37, 99, 75, 0.28);
  background: rgba(37, 99, 75, 0.08);
}

.result-card.error {
  border-color: rgba(163, 61, 53, 0.28);
  background: rgba(163, 61, 53, 0.08);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.55);
}

.empty-state.compact {
  padding: 14px;
}

@media (max-width: 1120px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    padding: 20px 14px 32px;
  }

  .panel {
    padding: 18px;
    border-radius: 22px;
  }

  .media-card,
  .button-row {
    grid-template-columns: 1fr;
    display: grid;
  }
}
