:root { color-scheme: light; --ink: #4e342e; --teal: #00a99a; --line: #eadfd6; --bg: #f7f3ee; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input, textarea, select { font: inherit; color: inherit; }
.top, .savebar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 0.8rem 1rem; background: #fff; }
.top { position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); }
.top strong { display: block; }
.top span, .muted, .help { color: #7a655e; font-size: 0.92rem; }
.top a { color: var(--teal); font-weight: 700; }
.tabs { display: flex; gap: 0.4rem; overflow: auto; padding: 0.7rem 1rem 0; }
.tabs button, .savebar button, .row button, .primary { border: 0; border-radius: 999px; padding: 0.55rem 0.9rem; background: #fff; min-height: 44px; }
.tabs button.on, .primary, .savebar button { background: var(--teal); color: #fff; font-weight: 700; }
.danger { background: #fde8e6; color: #9f1d14; }
main { padding: 1rem 1rem 6.5rem; max-width: 860px; margin: 0 auto; }
.card, details { background: #fff; border-radius: 16px; padding: 0.9rem; margin: 0 0 0.8rem; border: 1px solid var(--line); }
.card h2, summary { margin: 0 0 0.7rem; }
summary { cursor: pointer; font-weight: 700; }
label { display: block; margin: 0.55rem 0; }
label span { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 0.25rem; }
input, textarea, select { width: 100%; border: 1px solid #e4d5cb; border-radius: 10px; padding: 0.6rem 0.7rem; background: #fff; }
textarea { min-height: 5.5rem; resize: vertical; }
.row { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.7rem; }
.shot { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #f3ebe4; }
.preview { width: 100%; height: 70vh; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.savebar { position: sticky; bottom: 0; border-top: 1px solid var(--line); }
.savebar button { flex: 0 0 auto; }
#status { margin: 0; }
.local-note { margin: 0; padding: 0 1rem 1rem; color: #7a655e; font-size: 0.85rem; }
.err { color: #9f1d14; }
@media (max-width: 640px) {
  .top, .savebar { align-items: stretch; }
  .savebar { flex-direction: column; }
  .savebar button { width: 100%; }
}
