[hidden] { display: none !important; }
:root {
  --bg: #faf8f5;
  --card: #ffffff;
  --soft: #f1eee8;
  --text: #1f2a37;
  --muted: #5b6573;
  --line: #e7e2da;
  --accent: #c24a20;
  --accent-dark: #9a3815;
  --accent-soft: #fbe9e1;
  --warn: #fdf1d8;
  --warn-text: #6b4600;
  --warn-line: #e6c06a;
  --blue-soft: #e6eef6;
  --blue-text: #24496e;
  --ok: #2f6b4f;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(31,42,55,.05), 0 6px 16px rgba(31,42,55,.06);
  --round: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", -apple-system, sans-serif;
  --tabbar-h: calc(68px + env(safe-area-inset-bottom));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
body.has-tabs { padding-bottom: var(--tabbar-h); }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
main { max-width: 720px; margin: 0 auto; padding: 8px 20px 24px; }
img { max-width: 100%; display: block; }
.ic { flex: none; }

/* ---------- 上の帯 ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  max-width: 720px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) 20px 6px; background: var(--bg);
}
.brand { font-family: var(--round); font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.brand.big { font-size: 24px; }
.home-top { max-width: 720px; margin: 0 auto; padding: calc(20px + env(safe-area-inset-top)) 20px 6px; display: grid; gap: 12px; }
.home-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-row .sub { font-size: 12px; color: var(--muted); }
.home-btns { display: flex; gap: 8px; }
.round {
  width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; padding: 0;
}
.round.on { color: var(--accent); border-color: var(--accent); }
.round.glass { border: 0; background: rgba(255,255,255,.94); box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.round.glass.on { color: var(--accent); }

.searchbar {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; margin: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; color: var(--muted);
  box-shadow: 0 1px 2px rgba(31,42,55,.04);
}
.searchbar input { border: 0; outline: 0; padding: 0; background: transparent; font-size: 15px; height: 100%; }
.searchbar:focus-within { border-color: var(--text); }

/* ---------- 下のタブ ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
  padding: 8px max(8px, calc(50% - 360px)) env(safe-area-inset-bottom);
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px;
  color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none;
}
.tabbar a.on { color: var(--accent); font-weight: 700; }
.tabbar a.send { color: var(--text); font-weight: 700; margin-top: -26px; }
.tabbar a.send b {
  width: 56px; height: 56px; border-radius: 28px; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(194,74,32,.35);
}
.tabbar a.send.on b { background: var(--accent-dark); }

.foot { text-align: center; padding: 16px 16px 24px; font-size: 12px; }
.foot a { color: var(--muted); }

/* ---------- 文字・共通 ---------- */
.page-title { font-family: var(--round); font-weight: 800; font-size: 22px; margin: 8px 0 14px; }
h2 { font-size: 17px; margin: 24px 0 10px; }
h2 small { font-weight: normal; color: var(--muted); font-size: 12px; }
.hint { color: var(--muted); font-size: 13px; }
.count { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; grid-column: 1 / -1; }

.banner {
  display: block; padding: 12px 14px; border-radius: 14px; margin: 0 0 12px;
  text-decoration: none; color: var(--text); background: var(--soft);
}
.banner.new { background: #e3f0e8; }
.banner.warn { background: var(--warn); color: var(--warn-text); }
.banner small { display: block; color: var(--muted); }
.banner a { color: inherit; }
.notice {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 14px;
  background: var(--soft); border-radius: 14px; color: var(--text); font-size: 13px; line-height: 1.6; text-decoration: none;
}
.notice > span { flex: 1; }
.notice.warn { background: var(--warn); color: var(--warn-text); }
.notice a { color: inherit; font-weight: 700; }
a.notice:hover { color: var(--warn-text); filter: brightness(.98); }

input, select, textarea, button { font: inherit; color: inherit; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
}
.search { display: flex; gap: 8px; margin: 4px 0 10px; }
.search button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; min-height: 44px;
  padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); text-decoration: none; cursor: pointer; font-weight: 500;
}
.search button, .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.small { padding: 6px 12px; font-size: 14px; min-height: 36px; }
.btn.danger { color: #b3261e; }
.btn:disabled { opacity: .45; }

/* ---------- 絞り込み ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500;
}
.chips.small .chip { height: 30px; font-size: 12px; padding: 0 11px; color: var(--muted); }
.chip.on, .chips.small .chip.on { background: var(--text); border-color: var(--text); color: #fff; font-weight: 700; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip.on:hover { color: #fff; }
.chip.clear { color: var(--muted); }

/* ---------- レシピのカード ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rcard {
  display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 18px; overflow: hidden;
  color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease;
}
.rcard:hover { color: var(--text); }
.rcard:active { transform: scale(.98); }
.rcard.row { flex-direction: row; padding: 4px 0; }
.pic { position: relative; height: 112px; display: flex; align-items: center; justify-content: center; color: rgba(31,42,55,.35); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.big { height: 100%; width: 100%; }
.g0 { background: #eadbc8; } .g1 { background: #dce5d3; } .g2 { background: #f0d9cc; } .g3 { background: #e8dccf; }
.pic .fav {
  position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 14px;
  background: rgba(255,255,255,.92); color: var(--accent); display: flex; align-items: center; justify-content: center;
}
.rcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.rcard .t { font-size: 14px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.b {
  display: inline-block; font-size: 11px; font-weight: 500; padding: 2px 9px; border-radius: 10px;
  background: var(--soft); color: #4a5462; text-decoration: none;
}
.b.light { background: var(--soft); color: #4a5462; }
.b.blue { background: var(--blue-soft); color: var(--blue-text); }
.b.warn { background: var(--warn); color: var(--warn-text); }
.b.fav { background: var(--accent-soft); color: var(--accent); }
.b.new { background: #e3f0e8; color: var(--ok); }

/* 前の一覧の形（ほかの画面で使う） */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cards a {
  display: flex; gap: 12px; align-items: center; padding: 8px; background: var(--card);
  border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
}
.cards img, .cards .ph { width: 72px; height: 72px; flex: none; border-radius: 10px; object-fit: cover; }
.cards .t { font-weight: 700; line-height: 1.4; }
.ph { display: flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 34px; }

/* ---------- レシピの画面 ---------- */
.recipe-page main { padding-top: 0; }
.hero { position: relative; height: 280px; max-width: 720px; margin: 0 auto; background: #eadbc8; }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero .back { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; }
.hero-btns { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: 16px; display: flex; gap: 8px; }
.hero-btns form { margin: 0; }
.hero-edit {
  position: absolute; right: 16px; bottom: 36px; display: inline-flex; align-items: center; gap: 4px;
  background: rgba(31,42,55,.6); color: #fff; padding: 4px 12px; border-radius: 14px; text-decoration: none; font-size: 12px;
}
.hero-edit:hover { color: #fff; }
.sheet { position: relative; margin: -24px -20px 0; padding: 22px 20px 0; background: var(--bg); border-radius: 24px 24px 0 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 10px; }
.r-title { font-family: var(--round); font-weight: 800; font-size: 23px; line-height: 1.4; margin: 0 0 6px; }
.src { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; min-height: 32px; margin-bottom: 8px; }
.notes { white-space: pre-wrap; font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; }

.servings-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 10px;
  padding: 8px 8px 8px 16px; min-height: 62px; background: var(--card); border: 1px solid var(--line); border-radius: 16px;
}
.servings-card .lbl { font-size: 13px; color: var(--muted); }
.servings { display: flex; align-items: center; gap: 6px; }
.servings .n { min-width: 64px; text-align: center; font-size: 13px; }
.servings .n b { font-family: var(--round); font-weight: 800; font-size: 19px; }
.pm {
  width: 44px; height: 44px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: 20px;
}
.pm.main { background: var(--accent); border-color: var(--accent); color: #fff; }
.pm:hover { color: var(--text); } .pm.main:hover { color: #fff; background: var(--accent-dark); }

.seg { display: flex; gap: 4px; padding: 4px; margin: 14px 0 6px; background: var(--soft); border-radius: 14px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { flex: 1; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg input:checked + label { background: var(--card); color: var(--text); box-shadow: 0 1px 3px rgba(31,42,55,.12); }
.seg input:focus-visible + label { outline: 2px solid var(--text); }
body:has(#p-ing:checked) .pane-steps, body:has(#p-steps:checked) .pane-ing { display: none; }

.ings { list-style: none; margin: 0 0 6px; padding: 0; }
.ings li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 2px; border-bottom: 1px dashed #e2dcd2; font-size: 15px; }
.ings .glabel { font-weight: 700; color: var(--accent); padding: 14px 2px 4px; font-size: 12px; border-bottom: 0; }
.ings .q { text-align: right; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.ings .q b { color: var(--accent); }
.review { background: var(--warn) !important; border-radius: 8px; }
.ings li.review { padding-left: 8px; padding-right: 8px; }
.steps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.75; padding: 2px; }
.steps .no {
  flex: none; width: 28px; height: 28px; border-radius: 14px; margin-top: 1px; background: var(--text); color: #fff;
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.site { font-style: normal; font-size: 12px; }
.memo { display: grid; gap: 8px; }
.memo button { justify-self: end; }
.shots { display: flex; gap: 8px; overflow-x: auto; }
.shots img { height: 220px; width: auto; max-width: none; border-radius: 10px; border: 1px solid var(--line); }

.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px;
  padding: 12px max(20px, calc(50% - 340px)) calc(14px + env(safe-area-inset-bottom));
  background: rgba(250,248,245,.96); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.actionbar form { flex: 1; margin: 0; display: flex; }
body.recipe-page { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.pill {
  flex: 1; height: 50px; border-radius: 25px; border: 1px solid var(--line); background: var(--card); color: var(--text);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; padding: 0 12px;
}
.pill.dark { background: var(--text); border-color: var(--text); color: #fff; }
.pill:hover { color: var(--text); } .pill.dark:hover { color: #fff; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.actions form { margin: 0; }
.actions.sticky { position: sticky; bottom: 0; background: var(--bg); padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.has-tabs .actions.sticky { bottom: var(--tabbar-h); }

/* ---------- 送る ---------- */
.send-form { display: grid; gap: 14px; }
.kinds { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kinds legend { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 8px; padding: 0; }
.kind {
  position: relative; height: 104px; border-radius: 18px; border: 1px solid var(--line); background: var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 8px; text-align: center;
}
.kind span { font-size: 13px; font-weight: 700; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind:has(input:checked) { border: 2px solid var(--accent); background: #fff6f2; color: var(--accent); }
.kind:has(input:checked) span { color: var(--text); }
.kind:has(input:focus-visible) { outline: 2px solid var(--text); }
#khint { margin: -4px 0 0; line-height: 1.6; }
.picker { display: block; cursor: pointer; }
.picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.picker .drop {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px;
  border: 1.5px dashed #cfc7ba; border-radius: 16px; background: var(--card); color: var(--muted); font-weight: 700; font-size: 14px;
}
.picker:focus-within .drop { border-color: var(--text); }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.thumbs:empty { display: none; }
.thumbs div { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs b {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 11px; background: var(--accent); color: #fff;
  font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field input { color: var(--text); }
.meter { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; }
.meter-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.meter-row span:last-child { color: var(--text); }
.meter-row b { font-size: 15px; }
.meter .hint:empty { display: none; }
.bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar i.indeterminate { width: 40%; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sendbar { position: sticky; bottom: var(--tabbar-h); padding: 10px 0 8px; background: linear-gradient(to top, var(--bg) 80%, rgba(250,248,245,0)); }
.sendbar .hint:empty { display: none; }
button.primary.big { width: 100%; height: 54px; border-radius: 27px; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.joblist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.joblist a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-radius: 14px;
  color: var(--text); text-decoration: none; font-size: 14px; box-shadow: 0 1px 2px rgba(31,42,55,.05);
}
.joblist .when { color: var(--muted); font-variant-numeric: tabular-nums; }
.joblist .st { margin-left: auto; font-weight: 700; }
.joblist .st.error { color: #b3261e; }

/* 読み取り中 */
.progress-card { margin: 12px 0 18px; padding: 20px; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.pc-head { display: flex; gap: 14px; align-items: flex-start; }
.pc-head h1 { font-size: 17px; margin: 2px 0 2px; }
.pc-head .hint { margin: 0; line-height: 1.6; }
.pc-icon {
  flex: none; width: 44px; height: 44px; border-radius: 22px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px;
}
.pc-icon.ok { background: #e3f0e8; color: var(--ok); }
.pc-icon.ng { background: var(--warn); color: var(--warn-text); }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#list.grid:empty { display: none; }
#list .rcard.row .body { padding: 12px 14px; flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
#list:has(.rcard.row) { grid-template-columns: 1fr; gap: 8px; }

/* わたし */
.menu { list-style: none; padding: 0; margin: 0 0 8px; background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(31,42,55,.05); overflow: hidden; }
.menu li + li { border-top: 1px solid var(--line); }
.menu a, .menu button {
  width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px;
  color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 15px; text-align: left;
}
.menu span { flex: 1; }
.menu form { margin: 0; }
.menu .ic:last-child { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- 編集 ---------- */
.edit { display: grid; gap: 12px; }
.edit label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.edit .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ing-row { display: grid; grid-template-columns: 44px 1fr 96px 36px 32px; gap: 6px; align-items: center; margin-bottom: 6px; padding: 2px; border-radius: 10px; }
.ing-row input { padding: 8px; }
.ing-row .g { text-align: center; }
.step-row { display: grid; grid-template-columns: 1fr 36px 32px; gap: 6px; align-items: start; margin-bottom: 6px; padding: 2px; border-radius: 10px; }
.rv { display: flex !important; flex-direction: column; align-items: center; font-size: 12px; }
.rv input { width: auto; }
.del { border: none; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }

.photo-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.photo-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.photo-grid li.cover { border: 2px solid var(--accent); }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ptag { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px 8px 0; }
.pbtns { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 8px 8px; }
.pbtns form { margin: 0; }
.shot-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.shot-list li { display: flex; gap: 10px; align-items: flex-start; }
.shot-list img { width: 110px; border-radius: 8px; border: 1px solid var(--line); }
.shot-list .pbtns { flex-direction: column; padding: 0; }
.upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.upload.big .btn { padding: 16px 22px; font-size: 18px; }
.upload.busy { opacity: .5; pointer-events: none; }
.check { display: flex; gap: 6px; align-items: center; font-size: 14px; }
.check input { width: auto; }

.crop-wrap { position: relative; touch-action: none; user-select: none; -webkit-user-select: none; max-width: 420px; margin: 0 auto; }
.crop-wrap img { width: 100%; pointer-events: none; }
#sel { position: absolute; border: 2px solid #fff; outline: 2px solid var(--accent); box-shadow: 0 0 0 9999px rgba(0,0,0,.45); }

.trash { list-style: none; padding: 0; display: grid; gap: 8px; }
.trash li { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.trash li.hint { background: none; border: none; }
.trash img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.trash span { flex: 1; }
.trash small { display: block; color: var(--muted); font-size: 12px; }
.trash form { margin: 0; }

/* ---------- 販売版で足したもの ---------- */
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.stack { display: grid; gap: 14px; max-width: 420px; margin: 16px 0; }
.stack label { display: grid; gap: 6px; font-weight: 600; }
.stack input { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 12px; width: 100%; min-width: 0; }
button.primary { font: inherit; font-weight: 700; padding: 12px; min-height: 48px; border: 0; border-radius: 24px; background: var(--accent); color: #fff; cursor: pointer; }
button.primary:hover { background: var(--accent-dark); }
button.primary:disabled { opacity: .5; }
.jobs { padding-left: 1.2em; }
/* 要確認の直し：広い画面では、元のスクショと横に並べる */
.fix { display: grid; gap: 16px; }
@media (min-width: 900px) { main.wide { max-width: 1180px; } .fix { grid-template-columns: 420px 1fr; align-items: start; } .fix .ref { position: sticky; top: 64px; max-height: calc(100vh - 80px); overflow: auto; } }
.fix .ref img { width: 100%; border-radius: 8px; border: 1px solid var(--line); margin-bottom: 8px; }
.review-note { display: grid; gap: 6px; }
.review-note textarea { font: inherit; padding: 8px; border: 1px solid var(--warn-line); border-radius: 8px; background: #fff; }
.review-note .check { display: flex !important; gap: 6px; align-items: center; color: var(--text) !important; font-weight: 600; }
@media (max-width: 899px) {
  .fix .ref { display: flex; gap: 8px; overflow-x: auto; align-items: flex-start; }
  .fix .ref .hint { flex: 0 0 auto; writing-mode: vertical-rl; margin: 0; }
  .fix .ref img { height: 260px; width: auto; max-width: none; margin: 0; }
}
.to-shop { margin: 8px 0 0; text-align: right; }
.shop { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.shop li { display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 8px; align-items: center; background: var(--card); border-radius: 14px; padding: 10px; box-shadow: 0 1px 2px rgba(31,42,55,.05); }
.shop li.done .nm, .shop li.done .qt { text-decoration: line-through; color: var(--muted); }
.shop .from { grid-column: 2 / 4; color: var(--muted); font-size: 12px; }
.shop form { margin: 0; }
.tick { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); background: #fff; color: var(--accent); font-weight: 700; cursor: pointer; }
.plans-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; font-size: 14px; }
.plan-mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--card); }
.plan-mini.main { border: 2px solid var(--accent); }
.legal { line-height: 1.8; } .legal h2 { margin-top: 24px; } .legal li { margin: 4px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; background: var(--card); }
.legal-table th, .legal-table td { border: 1px solid var(--line); padding: 8px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--soft); width: 32%; font-weight: 600; }
.legal-links { padding-top: 0; font-size: 12px; }
.consent-points li { margin: 8px 0; }
.check-line { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.check-line input { margin-top: 6px; width: auto !important; }
.confirm { margin: 16px 0; }
.danger-zone { margin-top: 28px; padding: 14px; border: 2px solid #e8b4ae; border-radius: var(--radius); background: #fff8f6; }
