:root {
  --bg: #faf8f4;
  --bg-elev: #ffffff;
  --ink: #1a1714;
  --ink-soft: #5b534b;
  --ink-mute: #8a8278;
  --line: #e8e2d8;
  --accent: #8b6b3d;
  --accent-deep: #6b4e26;
  --shadow-sm: 0 1px 2px rgba(20,16,10,.04), 0 2px 8px rgba(20,16,10,.06);
  --shadow-md: 0 8px 24px rgba(20,16,10,.10);
  --shadow-lg: 0 24px 60px rgba(20,16,10,.20);
  --radius: 4px;
  --maxw: 1240px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 244, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
}
.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; }
.site-nav { display: flex; gap: 32px; }
.site-nav a {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 90% 10%, rgba(139,107,61,.10), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(139,107,61,.06), transparent 60%),
    var(--bg);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  font-weight: 500;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--ink);
}
.hero-sub {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink-soft);
  font-style: italic;
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .25s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.hero-image-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: var(--shadow-lg);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s ease;
}
.hero-image-wrap:hover .hero-image { transform: scale(1.04); }

/* Sections */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 3.5vw, 44px);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  margin: 0 0 40px;
}

/* About */
.about {
  padding: 90px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 36px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.about-col p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

/* Gallery */
.gallery { padding: 100px 0; }

.filters {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 50px;
  padding: 22px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin-right: 6px;
}
.chip {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  letter-spacing: .02em;
}
.chip:hover { color: var(--ink); border-color: var(--ink-mute); }
.chip.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Art wall — masonry via CSS columns */
.art-wall {
  column-count: 4;
  column-gap: 18px;
}
@media (max-width: 1100px) { .art-wall { column-count: 3; } }
@media (max-width: 720px)  { .art-wall { column-count: 2; column-gap: 12px; } }
@media (max-width: 440px)  { .art-wall { column-count: 1; } }

.art-card {
  position: relative;
  break-inside: avoid;
  margin: 0 0 18px;
  background: var(--bg-elev);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
.art-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.art-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.art-card:hover img { transform: scale(1.03); }

.art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,16,10,.85) 0%, rgba(20,16,10,.25) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.art-card:hover .art-overlay { opacity: 1; }
.art-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.2;
}
.art-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.art-meta .pill {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.art-meta .pill.status-sale     { background: rgba(118, 168, 88, .85); }
.art-meta .pill.status-private  { background: rgba(150, 110, 80, .85); }
.art-meta .pill.status-notforsale { background: rgba(255,255,255,.22); }

.empty-state {
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
  padding: 60px 0;
  font-family: var(--serif);
  font-size: 18px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  text-align: center;
}
.contact-inner p {
  max-width: 560px;
  margin: 14px auto 0;
  color: var(--ink-soft);
}
.contact-links { margin-top: 18px !important; }
.contact-links a { font-weight: 500; }
.dot { color: var(--ink-mute); margin: 0 10px; }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, .94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox-figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#lightbox-img {
  max-width: 92vw;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
#lightbox-caption {
  color: #f3ede0;
  font-family: var(--serif);
  font-size: 18px;
  text-align: center;
  max-width: 70ch;
}
#lightbox-caption .lb-meta {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #c8bda6;
}

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover {
  background: rgba(255,255,255,.18);
  transform: scale(1.05);
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev  { left: 22px;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-prev:hover { transform: translateY(-50%) scale(1.05); }
.lightbox-next:hover { transform: translateY(-50%) scale(1.05); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 56px 0 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { max-width: 460px; margin: 0 auto; }
  .about { padding: 64px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .gallery { padding: 64px 0; }
  .filters { gap: 18px; padding: 18px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 12px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .header-inner { padding: 14px 18px; }
  .brand-logo { height: 36px; }
  .filter-label { width: 100%; text-align: center; margin-bottom: 4px; }
  .filter-group { justify-content: center; }
}

/* Fade-in for cards */
.art-card { opacity: 0; transform: translateY(8px); }
.art-card.in { opacity: 1; transform: translateY(0); transition: opacity .5s ease, transform .5s ease; }

/* Lightbox description */
#lightbox-caption .lb-desc {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  font-style: italic;
  color: #e6dcc7;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

/* ---------- Auth pages ---------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  background:
    radial-gradient(800px 500px at 20% 0%, rgba(139,107,61,.10), transparent 60%),
    radial-gradient(800px 500px at 80% 100%, rgba(139,107,61,.06), transparent 60%),
    var(--bg);
}
.auth-shell {
  margin: auto;
  width: 100%;
  max-width: 440px;
  padding: 60px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}
.auth-shell .brand-logo { height: 56px; }
.auth-card {
  width: 100%;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}
.auth-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 36px;
  margin: 0 0 8px;
}
.auth-sub { color: var(--ink-soft); margin: 0 0 28px; font-size: 15px; }
.auth-foot {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13px;
}
.auth-foot a { color: var(--ink-mute); }
.auth-foot a:hover { color: var(--ink); }

/* ---------- Form fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 18px;
}
.field > span {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(139,107,61,.15);
}
.field textarea { resize: vertical; min-height: 90px; font-family: var(--sans); }

/* Input with trailing action button (eg. password reveal) */
.input-with-action { position: relative; display: flex; }
.input-with-action input { flex: 1; padding-right: 44px; }
.input-action {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  cursor: pointer;
  border-radius: 4px;
  transition: color .15s ease, background .15s ease;
}
.input-action:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.input-action svg { width: 20px; height: 20px; display: block; }
.input-action .icon-eye-off { display: none; }
.input-action.is-revealed .icon-eye { display: none; }
.input-action.is-revealed .icon-eye-off { display: block; color: var(--accent-deep); }

.form-error {
  color: #b03a3a;
  background: #f8eaea;
  border: 1px solid #e9c5c5;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 14px;
  margin: 0 0 16px;
}

#login-form .btn { width: 100%; margin-top: 8px; }

/* ---------- Admin ---------- */
.admin { padding: 56px 0 100px; min-height: calc(100vh - 90px); }
.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.admin-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.admin-sub { margin: 0; color: var(--ink-mute); font-size: 14px; }

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.admin-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
}
.admin-row:hover { box-shadow: var(--shadow-md); }
.admin-thumb {
  width: 110px; height: 110px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-meta h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--ink);
}
.admin-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-pills .pill {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--line);
  color: var(--ink-soft);
  border-radius: 999px;
  font-weight: 500;
}
.admin-pills .pill.status-sale     { background: #e0efce; color: #2f5113; }
.admin-pills .pill.status-private  { background: #ecdcce; color: #6b3e1d; }
.admin-pills .pill.status-notforsale { background: var(--line); color: var(--ink-soft); }
.admin-desc {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.admin-actions { display: flex; gap: 8px; }

.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-danger {
  background: #c44545;
  color: #fff;
  border: 1px solid #c44545;
}
.btn-danger:hover { background: #a83737; border-color: #a83737; }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20,16,10,.55);
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-elev);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  animation: slideUp .25s cubic-bezier(.2,.7,.2,1);
}
.modal-card-sm { max-width: 440px; padding: 32px; text-align: center; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  margin: 0;
}
.modal-x {
  background: transparent; border: none;
  font-size: 28px;
  color: var(--ink-mute);
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.modal-x:hover { background: var(--line); color: var(--ink); }

.confirm-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 0 0 10px;
}
.confirm-msg {
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
  padding: 24px 28px 28px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-actions {
  display: flex; gap: 10px; justify-content: flex-end;
  margin-top: 8px;
}

.img-preview {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px dashed var(--line);
  border-radius: 4px;
  min-height: 80px;
  max-height: 280px;
  overflow: hidden;
  margin: 0 0 14px;
  transition: min-height .2s ease;
}
.img-preview:has(img) { min-height: 180px; }
.img-preview img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}
.img-preview-placeholder {
  color: var(--ink-mute);
  font-size: 13px;
  font-style: italic;
  padding: 8px 0;
}

/* ---------- Editor form: numbered, larger, friendlier ---------- */
.editor-form .step .step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.editor-form .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--sans);
}
.editor-form .step-opt {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-mute);
}
.editor-form .step input,
.editor-form .step select,
.editor-form .step textarea {
  font-size: 16px;          /* prevents iOS zoom on focus + better readability */
  padding: 14px 16px;
  min-height: 50px;
}
.editor-form .step textarea { min-height: 110px; }

/* Big, obvious upload button */
.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 15px;
  letter-spacing: .04em;
}
.btn-upload svg { flex-shrink: 0; }
.upload-zone .hint {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ink-mute);
  text-align: center;
}

/* Collapsible URL field for advanced users */
.url-details {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}
.url-details > summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-mute);
  padding: 6px 0;
  list-style: none;
  display: inline-block;
  user-select: none;
}
.url-details > summary::-webkit-details-marker { display: none; }
.url-details > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform .15s ease;
}
.url-details[open] > summary::before { content: "▾ "; }
.url-details[open] > summary:hover { color: var(--ink); }
.url-details input { margin-top: 8px; font-size: 14px; padding: 10px 12px; min-height: 40px; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .admin-row {
    grid-template-columns: 80px 1fr;
    grid-template-areas: "thumb meta" "actions actions";
    gap: 14px;
  }
  .admin-thumb { width: 80px; height: 80px; grid-area: thumb; }
  .admin-meta { grid-area: meta; }
  .admin-actions { grid-area: actions; justify-content: flex-end; }

  /* Full-screen modal on mobile */
  .modal { padding: 0; align-items: stretch; }
  .modal-card {
    max-width: 100%;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }
  .modal-card-sm {
    max-height: none;
    height: auto;
    margin: auto;
    border-radius: 8px;
    max-width: 92vw;
  }
  .modal-head { padding: 18px; position: sticky; top: 0; background: var(--bg-elev); z-index: 1; border-bottom: 1px solid var(--line); }
  .modal-head h2 { font-size: 22px; }
  .form-grid {
    padding: 18px;
    overflow-y: auto;
    flex: 1;
  }
  .editor-form .step input,
  .editor-form .step select,
  .editor-form .step textarea { padding: 14px; }
  .form-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .form-actions .btn { width: 100%; padding: 16px 24px; }
  .btn-sm { padding: 10px 14px; font-size: 13px; min-height: 40px; }
}

/* ---------- Upload zone ---------- */
.upload-zone {
  position: relative;
  border: 1.5px dashed var(--line);
  border-radius: 6px;
  padding: 28px 20px;
  background: var(--bg);
  text-align: center;
  transition: background .15s ease, border-color .15s ease;
}
.upload-zone.drag {
  background: rgba(139,107,61,.08);
  border-color: var(--accent);
}
.upload-idle p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.upload-idle .hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-mute);
}
.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent-deep);
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}
.link-btn:hover { color: var(--ink); }
.upload-busy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.upload-busy[hidden] { display: none; }
.upload-zone.is-uploading .upload-idle { display: none; }
.upload-busy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Banner ---------- */
.banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: 14px;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  flex-wrap: wrap;
}
.banner[hidden] { display: none; }
.banner-bottom { margin: 40px 0 0; }
.banner-ok { background: #eaf3df; border-color: #c9deb0; color: #2d4d12; }
.banner-warn { background: #fdf3df; border-color: #ead9a8; color: #6e4a07; }
.banner-info { background: #f0eee8; border-color: #d8d3c5; color: #4a4538; }
.banner-dot {
  width: 9px; height: 9px;
  background: #4d8a25;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(77,138,37,.18);
}
.banner code {
  background: rgba(0,0,0,.06);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}
.banner-action {
  margin-left: auto;
  padding: 7px 14px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(0,0,0,.05);
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease;
}
.banner-action:hover { background: rgba(0,0,0,.10); color: inherit; }
