:root {
  --paper: #FBF7EF; --card: #FFFFFF; --ink: #2B2B33; --ink-sub: #6B6B76; --line: #E6DFD2;
  --shu: #C8372D; --shu-dark: #A12A22; --ok: #2E7D5B; --warn: #B7791F;
  --radius: 12px; --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --font: system-ui, "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; }
button { font: inherit; cursor: pointer; }
.screen { position: relative; min-height: 100vh; padding-bottom: 120px; }
.topbar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 2; }
.topbar h1 { font-size: 24px; margin: 0; flex: 1; letter-spacing: .05em; }
.topbar .count { font-size: 14px; color: var(--ink-sub); }
.icon-btn { min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--ink); border-radius: 50%; }
.band { margin: var(--space-3) var(--space-4) 0; padding: var(--space-3); border-radius: var(--radius); font-size: 14px; display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.band.draft { background: #FFF1E0; border: 1px solid #F0D2A8; }
.band.remind { background: #EEF5F0; border: 1px solid #CFE3D6; color: var(--ok); }
.band .grow { flex: 1; min-width: 140px; }
.btn { min-height: 44px; padding: 0 var(--space-4); border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn.primary { background: var(--shu); border-color: var(--shu); color: #fff; font-weight: 700; }
.btn.primary:active { background: var(--shu-dark); }
.btn.danger { color: var(--shu); border-color: var(--shu); }
.btn.small { min-height: 36px; padding: 0 var(--space-3); font-size: 14px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); padding: var(--space-4); }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.card .cover { aspect-ratio: 1 / 1; background: #F1ECE2; display: flex; align-items: center; justify-content: center; }
.card .cover img { width: 100%; height: 100%; object-fit: cover; }
.card .meta { padding: var(--space-2) var(--space-3); }
.card .name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .name.later { color: var(--warn); font-weight: 400; }
.card .date { font-size: 12px; color: var(--ink-sub); }
.seal { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--shu); color: var(--shu); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; transform: rotate(-8deg); }
.fab { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--shu); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 4px 12px rgba(200,55,45,.4); z-index: 3; }
.fab:active { background: var(--shu-dark); }
.empty { text-align: center; color: var(--ink-sub); padding: 64px var(--space-5); font-size: 14px; }
.empty .seal { margin: 0 auto var(--space-4); width: 96px; height: 96px; font-size: 40px; opacity: .6; }
.form { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.field label { display: block; font-size: 14px; color: var(--ink-sub); margin-bottom: var(--space-1); }
.field input, .field textarea { width: 100%; font: inherit; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--ink-sub); margin-top: var(--space-1); }
.status { font-size: 14px; padding: var(--space-2) var(--space-3); border-radius: 8px; }
.status.looking { background: #F1ECE2; color: var(--ink-sub); }
.status.pending { background: #FFF6E5; color: var(--warn); }
.shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--space-2); }
.shot { min-height: 72px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.shot .ic { font-size: 22px; }
.thumbs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-1); }
.thumb { position: relative; flex: 0 0 88px; height: 88px; border-radius: 8px; overflow: hidden; background: #DDD5C6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; left: 4px; bottom: 4px; font-size: 11px; background: rgba(0,0,0,.6); color: #fff; padding: 0 6px; border-radius: 999px; border: 0; min-height: 22px; }
.thumb .x { position: absolute; right: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 14px; }
.actions { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4) var(--space-4); background: linear-gradient(transparent, var(--paper) 30%); z-index: 3; }
.actions .btn { flex: 1; }
.gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--space-2); padding: var(--space-4) var(--space-4) 0; }
.gallery figure { margin: 0; flex: 0 0 85%; scroll-snap-align: center; position: relative; border-radius: var(--radius); overflow: hidden; background: #DDD5C6; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .tag { position: absolute; left: 8px; top: 8px; font-size: 12px; background: rgba(0,0,0,.6); color: #fff; padding: 0 8px; border-radius: 999px; }
.detail { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.detail h2 { margin: 0; font-size: 20px; }
.detail .sub { font-size: 14px; color: var(--ink-sub); }
.detail .memo { white-space: pre-wrap; background: var(--card); padding: var(--space-3); border-radius: var(--radius); }
.row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.attr { font-size: 11px; color: var(--ink-sub); }
.list { background: var(--card); margin: var(--space-4); border-radius: var(--radius); }
.list .item { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.list .item:last-child { border-bottom: 0; }
.list .k { font-size: 12px; color: var(--ink-sub); }
.list .item a { color: var(--ink); }
.ok { color: var(--ok); } .warn { color: var(--warn); }
.toast { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); background: rgba(43,43,51,.92); color: #fff; padding: var(--space-2) var(--space-4); border-radius: 999px; font-size: 14px; z-index: 5; }
