@import url(/engine/base.css);
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 100vh; }
.stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding-bottom: 22px; }
.drop-veil { position: absolute; inset: 16px; border: 2px dashed var(--accent); border-radius: 18px; display: none; place-items: center;
  font: 600 34px/1 Caveat, cursive; color: var(--accent); background: color-mix(in srgb, var(--bg) 80%, transparent); pointer-events: none; }
.drop-veil[data-on] { display: grid; }
.panel { background: var(--panel); border-left: 1px solid var(--line); padding: 28px 26px 40px; overflow-y: auto; }
.panel header h1 { font: 700 40px/1 Caveat, cursive; margin: 0 0 6px; letter-spacing: .3px; }
.panel header p { color: var(--muted); margin: 0 0 8px; }
.panel section { padding: 18px 0; border-top: 1px solid var(--line); }
.panel header + section { border-top: 0; }
h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: 14px 0 8px; }
.n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 11.5px; }
.sub { color: var(--muted); font-weight: 400; }
.note { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }
.surprise { margin-left: auto; display: inline-flex; gap: 5px; align-items: center; font-weight: 400; font-size: 13px; text-decoration: none; color: var(--muted); }
.surprise:hover { color: var(--ink); }
.picture { display: flex; gap: 14px; align-items: center; }
.thumb { flex: none; width: 82px; height: 82px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); padding: 4px; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.thumb canvas { max-width: 100%; max-height: 100%; border-radius: 4px; }
.thumb[data-picking] { cursor: crosshair; box-shadow: 0 0 0 2px var(--accent); }
.picked { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.slider { display: grid; gap: 6px; margin-top: 14px; font-size: 13.5px; }
.slider input { width: 100%; accent-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
textarea, input[type="text"], .link-out input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 10px 12px; }
textarea { font: 500 22px/1.2 Caveat, cursive; resize: vertical; min-height: 104px; }
input[type="text"] { margin-top: 8px; }
.primary { width: 100%; border: 0; border-radius: 12px; padding: 13px 16px; background: var(--ink); color: var(--bg); font-weight: 600; cursor: pointer; }
.primary:disabled { opacity: .6; cursor: progress; }
.link-out { display: flex; gap: 8px; margin-top: 10px; }
.link-out button { border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 0 14px; cursor: pointer; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .studio { grid-template-columns: 1fr; }
  .stage { position: relative; height: 62vh; min-height: 380px; }
  .panel { border-left: 0; border-top: 1px solid var(--line); padding: 22px 16px 40px; }
}

/* The design collection: a scrolling row of finished card fronts */
.collection-filter select { width: 100%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 10px; font: 500 14px/20px inherit; }
.collection { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 10px; overflow-x: auto; padding: 10px 2px 12px; scroll-snap-type: x proximity; }
.collection button { scroll-snap-align: start; padding: 0; border: 0; background: none; cursor: pointer; display: grid; gap: 6px; text-align: left; color: var(--muted); font-size: 11.5px; line-height: 14px; }
.collection img { width: 84px; height: 118px; object-fit: cover; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 6px 14px -6px rgba(0,0,0,.25); transition: transform .16s; }
.collection button:hover img { transform: translateY(-3px); }
.collection button[aria-checked="true"] img { outline: 2px solid var(--ink); outline-offset: 3px; }
.collection button[aria-checked="true"] { color: var(--ink); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Group card option */
.group-fields { display: grid; gap: 10px; margin: 4px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.group-fields .field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.group-fields .field em { font-style: normal; font-weight: 400; color: var(--muted); }
.group-fields input { width: 100%; border: 1px solid var(--line); background: var(--bg); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 400; color: var(--ink); }
.share .check { margin: 0 0 12px; }
