:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --panel: #fffdf8;
  --ink: #232d25;
  --muted: #60685e;
  --line: #dedfd3;
  --accent: #305044;
  --accent-ink: #fffdf5;
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.bar { min-height: 68px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px max(24px, calc((100% - 1060px) / 2)); }
.wordmark { color: var(--accent); font: 600 25px Georgia, serif; text-decoration: none; }
#account { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
main { max-width: 1120px; margin: 0 auto; padding: 54px 28px 70px; }
.intro { margin-bottom: 28px; }
h1, h2 { margin: 0; font-family: Georgia, serif; font-weight: 500; line-height: 1.08; }
h1 { font-size: clamp(38px, 7vw, 64px); letter-spacing: -.035em; }
h2 { font-size: 26px; }
h3 { margin: 0; font-size: 1rem; }
p { margin: .65em 0; }
.intro p, .muted { color: var(--muted); }
.studio { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 24px; }
.panel-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.login { max-width: 430px; }
.login h2 { margin-bottom: 20px; }
.login form, #save-form { display: grid; gap: 16px; }
.count { flex-shrink: 0; color: var(--muted); font-size: .85rem; }
label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
input { width: 100%; min-width: 0; padding: 10px 12px; border-radius: 9px; border: 1px solid #bfc7b8; background: white; color: var(--ink); font: inherit; }
button { border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.quiet { background: transparent; border-color: #cbd3c6; color: var(--accent); }
button:hover:not(:disabled) { filter: brightness(.88); }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #6a8e72; outline-offset: 3px; }
.actions, #search-form { display: flex; gap: 8px; flex-wrap: wrap; }
#search-form { flex-wrap: nowrap; margin-bottom: 12px; }
.selection:empty { display: none; }
.piece { display: flex; align-items: center; gap: 10px; min-height: 65px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.piece img, .missing-photo { width: 54px; height: 54px; border-radius: 9px; background: #eaece1; object-fit: cover; flex: none; }
.piece-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.piece-copy small { display: block; color: var(--muted); }
.piece-actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: end; }
.piece-actions button { padding: 5px 8px; font-size: .85rem; }
.notice { padding: 10px 14px; border-radius: 9px; background: #e7efe2; }
.error { background: #f8e1d9; color: #772d22; }
#more { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) {
  main { padding: 32px 16px 48px; }
  .studio { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .bar { padding-inline: 16px; }
}
