/* Brand tokens — kept in sync with the main site's styles.css (:root),
   not a shared import (separate Hosting target, separate static tree,
   same convention as every other copied-not-shared file in this repo).
   If the main site's palette/fonts ever change, update this file (and
   scratch-site/styles.css) to match. */
:root {
  --blue:        #2E6BE6;
  --blue-deep:   #2A3FB8;
  --blue-700:    #214FB0;
  --orange:      #F7931E;
  --ink:         #1B2333;
  --body-color:  #5A6172;
  --muted:       #8a93a5;
  --line:        #E4EAF1;
  --bg:          #F4F8FC;
  --surface:     #FFFFFF;
  --sky-2:       #EAF7FD;

  --r-sm:   10px;
  --r-md:   16px;
  --r-pill: 999px;

  --shadow-sm: 0 4px 14px -8px rgba(27,35,51,.22);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
}
body.center-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
  width: 100%;
  max-width: 400px;
}
.brand-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.brand-logo img { height: 48px; width: auto; }
.card h1 { font-family: var(--font-display); font-size: 20px; margin: 0 0 20px; text-align: center; color: var(--blue-deep); font-weight: 700; }
.form-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.form-row label { font-weight: 700; font-size: 13px; line-height: 1.5; padding-top: 2px; }
.form-row input, .form-row textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 14px;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row small { color: var(--muted); font-size: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(46,107,230,.5);
  transition: transform .18s, filter .18s;
}
.btn:hover { background: var(--blue-700); transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: #fff; color: var(--blue-deep); border: 2px solid var(--blue); }
.btn-ghost:hover { background: var(--sky-2); }
.msg { padding: 10px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; }
.msg-error { background: #fee2e2; color: #991b1b; }
.msg-success { background: #dcfce7; color: #166534; }
.signout-link { text-align: center; margin-top: 14px; font-size: 12px; }
.signout-link a { color: var(--muted); }
[hidden] { display: none !important; }

.autocomplete-wrap { position: relative; }
.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin: 2px 0 0;
  padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
  max-height: 180px;
  overflow-y: auto;
}
.autocomplete-list li {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}
.autocomplete-list li:hover,
.autocomplete-list li.active { background: var(--bg); }

/* ── Studio / gallery pages (not the centered login card) ──────── */
.studio-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}
.studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.studio-header__brand { display: flex; align-items: center; gap: 10px; }
.studio-header__brand img { height: 32px; width: auto; }
.studio-header h1 { font-family: var(--font-display); font-size: 18px; margin: 0; color: var(--blue-deep); font-weight: 700; }
.studio-header .who { color: var(--muted); font-size: 13px; }
.studio-nav { display: flex; gap: 14px; font-size: 13px; margin-bottom: 18px; }
.studio-nav a { color: var(--muted); font-weight: 600; }
.studio-nav a.active { color: var(--blue-deep); font-weight: 700; }

.resume-banner {
  background: var(--sky-2);
  border: 1px solid var(--blue);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.resume-banner .actions { display: flex; gap: 8px; }
.resume-banner .btn, .resume-banner .btn-ghost { width: auto; padding: 8px 14px; font-size: 13px; }

.image-frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
}
.image-frame img { max-width: 100%; border-radius: var(--r-sm); }
.image-frame .placeholder { color: var(--muted); font-size: 14px; padding: 60px 0; }

.char-counter { font-size: 12px; color: var(--muted); text-align: right; margin-top: 2px; }

.upload-row { text-align: center; margin-bottom: 18px; }
.char-counter.ok { color: #166534; }

.studio-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.studio-actions .btn, .studio-actions .btn-ghost { width: auto; flex: 1 1 160px; }

.journey-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  margin-bottom: 18px;
}
.journey-strip .step { flex: 0 0 auto; width: 110px; text-align: center; }
.journey-strip img { width: 110px; height: 110px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.journey-strip .step-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

.creation-list { list-style: none; margin: 0; padding: 0; }
.creation-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.creation-row__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.creation-row__head .meta { font-size: 13px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; font-family: var(--font-display); }
.tag-accepted { background: #dcfce7; color: #166534; }
.tag-in_progress { background: #fff3e6; color: var(--orange); }
