:root {
  --ink: #1c1915;
  --ink-soft: #5c564c;
  --paper: #f3ece0;
  --paper-2: #fffaf2;
  --card: #fffdf8;
  --line: #1c1915;
  --ebay-red: #e53238;
  --ebay-blue: #0064d2;
  --ebay-yellow: #f5af02;
  --ebay-green: #86b817;
  --shadow: 5px 5px 0 var(--ink);
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
}

a.btn { text-decoration: none; display: inline-block; }

body {
  font-family: "DM Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, #ffe08a 0%, transparent 28%),
    radial-gradient(circle at 92% 8%, #ffb4b0 0%, transparent 26%),
    radial-gradient(circle at 70% 100%, #b9d4ff 0%, transparent 30%),
    var(--paper);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#1c191512 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.account form { margin: 0; }

.who {
  font-weight: 800;
  color: var(--ink-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 56px;
  height: 56px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.brand h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
  margin: 0 0 4px;
}

.brand p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
  white-space: nowrap;
}

.hero-howto {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 22px;
}

.hero-howto h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 6px;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 70ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.step {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 12px;
  min-height: 148px;
}

.step b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.85rem;
  flex: 0 0 28px;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.guide-block {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 3px dashed #d7cbb6;
}

.guide-block h3 {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.guide-copy p { margin: 0 0 10px; line-height: 1.5; }

.big-ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

.big-ol li {
  margin: 0 0 9px;
  line-height: 1.45;
}

.help kbd, .key {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  background: var(--ink);
  color: #fff;
  padding: 1px 6px;
  border-radius: 5px;
}

.warn {
  background: #ffe7a3;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.mock-caption {
  font-weight: 800;
  margin: 0 0 8px;
}

.ebay-mock {
  border: 3px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.ebay-mock-top {
  background: #f7f7f7;
  border-bottom: 2px solid var(--ink);
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 800;
}

.ebay-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}

.ebay-toolbar span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
}

.html-hit {
  margin-left: auto;
  background: var(--ebay-yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  font-style: normal;
  font-weight: 800;
  box-shadow: 3px 3px 0 var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: translateY(-2px); }
}

.ebay-box {
  min-height: 110px;
  padding: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
  background: repeating-linear-gradient(-45deg, #fff, #fff 8px, #faf6ee 8px, #faf6ee 16px);
}

.arrow-note {
  margin-top: 10px;
  font-weight: 700;
}

.drag-demo {
  border: 3px dashed var(--ink);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: #fff8e8;
}

.fake-files {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 8px;
}

.fake-files i {
  width: 42px;
  height: 52px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: linear-gradient(#fff, #eee);
  box-shadow: 2px 2px 0 var(--ink);
}

.fake-files i:nth-child(2) { height: 60px; background: linear-gradient(#ffe8e8, #ffd0d0); }
.fake-files i:nth-child(3) { height: 48px; background: linear-gradient(#e8f0ff, #c9e0ff); }

.fake-files span {
  display: block;
  width: 100%;
  font-weight: 800;
  margin-top: 6px;
}

.drag-arrow {
  font-weight: 800;
  margin: 10px 0;
  color: var(--ebay-blue);
}

.fake-drop {
  border: 3px dashed var(--ink);
  border-radius: 12px;
  padding: 16px;
  background: var(--ebay-yellow);
  font-weight: 800;
}

.mini-tips {
  margin: 12px 0 0;
  padding-left: 18px;
}

.mini-tips li { margin: 0 0 6px; }

.workspace {
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr;
  gap: 18px;
  align-items: start;
  scroll-margin-top: 16px;
}

.panel, .preview-shell {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.panel { padding: 16px; }

.preview-shell { padding: 14px; position: sticky; top: 12px; }

.section-title {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  margin: 4px 0 10px;
}

.hint {
  margin: -4px 0 10px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.looks, .layouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

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

.look, .layout {
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
}

.look.selected, .layout.selected, .badge.selected {
  outline: 4px solid var(--ebay-blue);
  outline-offset: 1px;
}

.look .swatch {
  height: 28px;
  display: flex;
}

.look .swatch i { flex: 1; display: block; }

.look .meta, .layout .meta {
  padding: 7px 8px 8px;
}

.look .meta strong, .layout .meta strong { display: block; font-size: 0.92rem; }
.look .meta span, .layout .meta span { color: var(--ink-soft); font-size: 0.78rem; }

.layout {
  padding: 8px;
}

.layout .mini {
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 6px;
  background: #f6f3ec;
  position: relative;
  overflow: hidden;
}

.layout .mini b {
  position: absolute;
  background: #cfc6b6;
  border-radius: 2px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.badge {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
}

label.field {
  display: block;
  margin: 0 0 10px;
}

label.field span {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  margin-bottom: 4px;
}

label.field small {
  display: block;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 3px;
}

input[type="text"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 10px;
  padding: 10px 11px;
}

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

.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drop {
  border: 3px dashed var(--ink);
  border-radius: 16px;
  background: #fff8e8;
  padding: 18px 12px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
}

.drop.over, .preview-shell.over {
  background: #d7f5c6;
}

.drop strong { display: block; font-size: 1.05rem; }
.drop em { color: var(--ink-soft); font-style: normal; }

.pic-status { font-size: 0.95rem; margin: 8px 0; }

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.thumb {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 8px;
  align-items: center;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 6px;
  background: #fff;
}

.thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #eee;
}

.thumb .tmeta { min-width: 0; }
.thumb .tmeta b { display: block; font-size: 0.82rem; }
.thumb input { padding: 7px 8px; font-size: 0.85rem; }

.thumb-status {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  margin: 3px 0 4px;
}
.thumb-status.ok { color: #2f6b12; }
.thumb-status.wait { color: #8a6a00; }
.thumb-status.bad { color: #a31414; }

.library-picker, .session-pics {
  margin: 10px 0 16px;
  padding: 10px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: #fff;
}

.library-picker h4, .session-pics h4 {
  margin: 0 0 4px;
  font-family: Fraunces, Georgia, serif;
}

.library-list, .library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.lib-card, .lib-pick {
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lib-card img, .lib-pick img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.lib-meta { padding: 8px; }
.lib-meta b { display: block; font-size: 0.82rem; margin-bottom: 6px; word-break: break-word; }
.lib-pick { cursor: pointer; text-align: left; font: inherit; padding: 0; }
.lib-pick span { display: block; padding: 6px 8px; font-size: 0.78rem; font-weight: 800; }

.auth-wrap { width: min(720px, calc(100% - 32px)); }
.auth-card { max-width: 520px; }
.auth-form { margin-top: 8px; }
small.err { color: #a31414; font-weight: 800; }

.iconbtn {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 800;
}

.iconcol { display: flex; flex-direction: column; gap: 4px; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }

.btn-main { background: var(--ebay-yellow); }
.btn-blue { background: #c9e0ff; }
.btn-ghost { background: #fff; }
.btn-danger { background: #ffd0d0; }

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.fake-ebay {
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.fake-ebay .chrome {
  background: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.dots i:nth-child(1) { background: #e53238; }
.dots i:nth-child(2) { background: #f5af02; }
.dots i:nth-child(3) { background: #86b817; }

#previewFrame {
  width: 100%;
  min-height: 640px;
  border: 0;
  background: #fafafa;
  pointer-events: none;
}

.copybox { margin-top: 10px; }

.copybox textarea {
  min-height: 88px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 40;
  display: none;
}

.toast.show { display: block; }

.modal {
  position: fixed;
  inset: 0;
  background: #1c1915cc;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.show { display: grid; }

.modal-card {
  width: min(620px, 100%);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  max-height: 90vh;
  overflow: auto;
}

.drop-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #f5af02ee;
  display: none;
  place-items: center;
  text-align: center;
  border: 10px dashed var(--ink);
}

.drop-overlay.show {
  display: grid;
}

.drop-overlay strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.2rem;
  display: block;
}

.drop-overlay p {
  font-size: 1.2rem;
  font-weight: 700;
}

.bill-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 6px 0 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.bill-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  padding: 10px 16px;
  cursor: pointer;
}

.bill-btn.is-on {
  background: var(--ebay-yellow);
}

.bill-note { margin: 0 0 8px; }

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.plan-card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 3px 3px 0 var(--ink);
}

.plan-card.current { background: #fff6c8; }

.plan-card h3 {
  font-family: Fraunces, Georgia, serif;
  margin: 0 0 4px;
}

.plan-price {
  font-weight: 800;
  margin: 0 0 10px;
}

.plan-price .price-also {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 4px;
}

.plan-card ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.plan-card li { margin: 4px 0; }

.quota-pill { margin: 0 0 14px; }

@media (max-width: 980px) {
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .steps, .guide-block, .workspace, .looks, .layouts, .row2 { grid-template-columns: 1fr; }
  .preview-shell { position: static; }
  .step { min-height: 0; }
  .pill { white-space: normal; }
  .topbar { flex-direction: column; align-items: flex-start; }
}
