:root {
  color-scheme: light;
  --paper: #f7f3e8;
  --ink: #111111;
  --blue: #1c58d9;
  --gray: #d8d8d8;
  --line: #111111;
  --pink: #ff3f96;
  --cyan: #43d7ff;
  --lime: #d7ff2f;
  --yellow: #ffd229;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(45deg, rgba(28, 88, 217, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 63, 150, 0.08) 25%, transparent 25%),
    var(--paper);
  background-size: 28px 28px;
}

button,
input {
  font: inherit;
}

.desktop {
  width: min(1260px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 28px;
}

.menu-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: #efefef;
  box-shadow: 5px 5px 0 #111;
}

.app-title {
  display: flex;
  gap: 9px;
  align-items: center;
}

.app-title span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  background: conic-gradient(var(--pink), var(--cyan), var(--lime), var(--yellow), var(--pink));
}

.copy-ca {
  min-height: 32px;
  border: 2px solid var(--line);
  background: white;
  cursor: pointer;
  padding: 0 10px;
  box-shadow: 3px 3px 0 #111;
}

.canvas-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(320px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.paint-window,
.brief,
.bottom-strip article {
  border: 3px solid var(--line);
  background: white;
  box-shadow: 8px 8px 0 #111;
}

.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  color: white;
  background: var(--blue);
}

.titlebar div {
  display: flex;
  gap: 6px;
}

.titlebar span {
  width: 18px;
  height: 18px;
  border: 2px solid white;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 10px;
  border-bottom: 3px solid var(--line);
  background: var(--gray);
}

.toolbar button {
  min-height: 32px;
  border: 2px solid var(--line);
  background: #f9f9f9;
  cursor: default;
  box-shadow: 2px 2px 0 #777;
}

.workbench {
  display: grid;
  grid-template-columns: 56px 1fr;
  min-height: 620px;
}

.palette {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-right: 3px solid var(--line);
  background: #eeeeee;
}

.palette span {
  width: 32px;
  height: 32px;
  border: 2px solid var(--line);
}

.artboard {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background:
    linear-gradient(#ffffff 23px, #e9e9e9 24px),
    linear-gradient(90deg, #ffffff 23px, #e9e9e9 24px);
  background-size: 24px 24px;
}

.photo {
  position: absolute;
  width: 235px;
  height: 185px;
  border: 8px solid #111;
  background:
    linear-gradient(135deg, var(--cyan) 0 38%, var(--lime) 38% 62%, var(--pink) 62%);
  transform: rotate(-7deg);
}

.photo i {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 46px;
  height: 46px;
  border: 7px solid #111;
  border-radius: 50%;
  background: var(--yellow);
}

.photo b {
  position: absolute;
  left: 56px;
  bottom: 34px;
  width: 100px;
  height: 46px;
  border: 7px solid #111;
  background: #fff7dc;
}

.p1 {
  left: 9%;
  top: 9%;
}

.p2 {
  right: 10%;
  top: 20%;
  transform: rotate(6deg);
}

.p3 {
  left: 31%;
  bottom: 13%;
  transform: rotate(-2deg);
}

.sticker {
  position: absolute;
  z-index: 2;
  border: 3px solid #111;
  padding: 8px 10px;
  font-family: "Courier New", monospace;
  font-weight: 900;
  background: var(--yellow);
  transform: rotate(-6deg);
}

.s1 {
  left: 32%;
  top: 7%;
}

.s2 {
  right: 7%;
  bottom: 18%;
  background: var(--lime);
  transform: rotate(5deg);
}

.s3 {
  left: 11%;
  bottom: 24%;
  background: var(--pink);
}

.cursor {
  position: absolute;
  right: 8%;
  top: 48%;
  border: 4px solid #111;
  padding: 12px 14px;
  color: white;
  font-weight: 900;
  background: var(--blue);
  box-shadow: 6px 6px 0 #111;
  transform: rotate(-3deg);
}

.brief {
  padding: clamp(18px, 3vw, 34px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.9rem, 5.6vw, 6.3rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.brief > p {
  font-size: 1.08rem;
  line-height: 1.5;
}

.prompt-card {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: 16px;
  border: 3px dashed #111;
  background: #fff7dc;
}

label {
  display: grid;
  gap: 7px;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

input[type="text"],
input:not([type]) {
  min-height: 42px;
  border: 2px solid #111;
  padding: 0 10px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--pink);
}

.prompt-card button {
  min-height: 46px;
  border: 3px solid #111;
  color: #111;
  cursor: pointer;
  font-weight: 900;
  background: var(--lime);
  box-shadow: 5px 5px 0 #111;
}

.receipt {
  margin-top: 18px;
  border: 3px solid #111;
  padding: 15px;
  background: #f4f4f4;
  font-family: "Courier New", monospace;
}

.receipt h2 {
  margin-bottom: 8px;
}

.receipt p {
  margin-bottom: 0;
  line-height: 1.45;
}

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

.bottom-strip article {
  min-height: 130px;
  padding: 16px;
  background: #fff7dc;
}

.bottom-strip span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 16px;
  border: 2px solid #111;
  color: white;
  font-weight: 900;
  background: var(--blue);
}

.bottom-strip p {
  margin-bottom: 0;
  line-height: 1.42;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.admin-shell {
  width: min(680px, calc(100% - 32px));
}

.admin-panel {
  border: 3px solid #111;
  padding: 30px;
  background: white;
  box-shadow: 8px 8px 0 #111;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

#admin-ca {
  min-height: 46px;
  border: 2px solid #111;
  padding: 0 12px;
}

.button {
  min-height: 46px;
  border: 3px solid #111;
  color: #111;
  cursor: pointer;
  font-weight: 900;
  background: var(--lime);
}

.button.full {
  width: 100%;
}

.admin-status {
  min-height: 24px;
  margin: 18px 0 0;
  font-family: "Courier New", monospace;
  overflow-wrap: anywhere;
}

@media (max-width: 920px) {
  .canvas-layout,
  .bottom-strip {
    grid-template-columns: 1fr;
  }

  .workbench {
    min-height: 480px;
  }

  .artboard {
    min-height: 480px;
  }
}

@media (max-width: 560px) {
  .desktop {
    width: min(100% - 16px, 480px);
  }

  .menu-bar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .palette {
    grid-template-columns: repeat(6, 32px);
    border-right: 0;
    border-bottom: 3px solid var(--line);
  }

  h1 {
    font-size: 3rem;
  }
}
