:root {
  color-scheme: light;
  font: 16px/1.5 system-ui, sans-serif;
  color: #23323a;
  background: #f5f7f8;
  --accent: #6639b6;
  --border: #d8e0e4;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #4a2d86; }
a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid #6639b6;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.wrap { width: min(1200px, calc(100% - 32px)); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--border); background: white; }
.head-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { color: #23323a; font-size: 1.35rem; font-weight: 750; text-decoration: none; }
.brand span { color: var(--accent); margin-left: .2em; }
main { padding-block: 36px 64px; }
h1 { margin: 0 0 8px; line-height: 1.15; font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin: 0 0 12px; font-size: 1.45rem; }
.intro { max-width: 62ch; margin: 0 0 25px; color: #475b65; }
.workspace { display: grid; grid-template-columns: minmax(270px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { padding: clamp(16px, 3vw, 24px); background: white; border: 1px solid var(--border); border-radius: 12px; }
.upload { display: grid; gap: 4px; background: #f8f5fe; border: 2px dashed #aa94cd; border-radius: 8px; padding: 22px 10px; text-align: center; cursor: pointer; }
.upload:has(+ input:focus-visible), .camera:has(+ input:focus-visible) { outline: 3px solid var(--accent); }
.camera { display: inline-block; color: #4a2d86; margin: 12px 0; cursor: pointer; text-decoration: underline; }
small, .privacy, #empty, #feed-date { color: #475b65; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
canvas { display: block; width: 100%; max-height: 55vh; object-fit: fill; border-radius: 8px; touch-action: none; cursor: crosshair; }
#preview p, .privacy, #feed-date { font-size: .875rem; }
.category { display: grid; gap: 4px; margin-block: 16px 12px; }
select, button { font: inherit; border-radius: 6px; min-height: 44px; padding: 8px 12px; }
select, .secondary { border: 1px solid var(--border); background: white; color: inherit; }
button:not(:disabled) { cursor: pointer; }
.primary { width: 100%; border: 1px solid transparent; background: var(--accent); color: white; font-weight: 650; }
.primary:disabled { background: #e6deef; color: #524261; }
#status:empty { display: none; }
.privacy { margin-bottom: 0; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 12px; }
.product { display: flex; flex-direction: column; gap: 5px; border: 1px solid var(--border); border-radius: 8px; padding: 10px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.product:hover strong { text-decoration: underline; }
.product img { width: 100%; aspect-ratio: 1; background: #f5f7f8; object-fit: contain; border-radius: 4px; }
.product .price { color: #4a2d86; font-weight: 700; }
@media (max-width: 720px) { .workspace { grid-template-columns: 1fr; } }
