:root {
  --page-bg: #070b12;
  --ink: #f8fbff;
  --muted: #98a5b8;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f3c84d;
  --gold-soft: #ffe594;
  --panel: rgba(13, 22, 34, 0.78);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(243, 200, 77, 0.18), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(135deg, #05070c 0%, #0b1422 48%, #06111f 100%);
}

button,
a {
  font: inherit;
}

.poster-tool {
  width: min(1420px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.poster-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(8, 14, 24, 0.72);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(22px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.poster-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.poster-copy p:last-child {
  max-width: 700px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.tool-actions {
  display: flex;
  gap: 12px;
}

.primary-button,
.ghost-button {
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.primary-button {
  color: #101318;
  background: linear-gradient(135deg, #fff0a6, #e2ae26 56%, #ffd96a);
  box-shadow: 0 16px 34px rgba(226, 174, 38, 0.28);
}

.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(320px, 1080px) 320px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.canvas-shell {
  position: relative;
  width: 100%;
  border-radius: 34px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 30px 110px rgba(0, 0, 0, 0.45);
}

canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  background: #06101d;
}

.status-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 18px;
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-panel strong {
  font-size: 18px;
}

.status-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 980px) {
  .poster-hero,
  .workspace {
    grid-template-columns: 1fr;
  }

  .tool-actions {
    flex-wrap: wrap;
  }

  .status-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .poster-tool {
    width: min(100% - 18px, 1420px);
    padding-top: 12px;
  }

  .poster-hero,
  .status-panel {
    border-radius: 22px;
  }

  .tool-actions,
  .primary-button,
  .ghost-button {
    width: 100%;
  }
}
