:root { --be: #f7f2eb; --hong: #f8ebe9; --hong2: #f3dcd9; --line: #e8dfd5; --ink: #000; --mo: #5c5450; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body.bare { padding: 0; background: var(--be); }
a { color: inherit; }
h1 { font-size: 26px; font-weight: 500; margin: 8px 0 14px; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 500; margin: 26px 0 10px; }
p { margin: 0 0 10px; }
main { max-width: 720px; margin: 0 auto; padding: 8px 16px 24px; }
.top { position: sticky; top: 0; z-index: 5; background: #fff; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 56px; padding-inline: 8px; border-bottom: 1px solid var(--line); }
.brand { justify-self: center; display: block; }
.logo { height: 40px; width: auto; display: block; }
.back { font-size: 32px; line-height: 1; text-decoration: none; display: flex; align-items: center; justify-content: center; height: 48px; width: 48px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { display: flex; align-items: center; justify-content: center; min-height: 56px; font-size: 13px; text-decoration: none; }
.tabs a[aria-current] { background: var(--hong); font-weight: 600; }
label, .lb { display: block; font-size: 14px; font-weight: 500; margin: 16px 0 6px; }
input[type=text], input[type=search], input[type=password], input[type=url], input[type=tel], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 16px; color: inherit; padding: 12px; border: 1px solid #b8aea4; border-radius: 0; background: #fff; min-height: 48px; }
textarea { min-height: 110px; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 500; color: #000; background: var(--hong2); border: 0; padding: 10px 16px; min-height: 48px; cursor: pointer; text-decoration: none; }
.btn-line { background: #fff; border: 1px solid #000; }
.btn-danger { background: #fff; border: 1px solid #000; }
.btn-wide { width: 100%; margin-top: 18px; }
.sm { min-height: 44px; padding: 6px 12px; font-size: 14px; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }
.flash { background: var(--hong); padding: 12px; }
.err { background: #fff; border: 1px solid #000; padding: 12px; }
.note { color: var(--mo); font-size: 14px; }
.tam { display: inline-block; background: var(--hong2); font-size: 12px; font-weight: 500; padding: 1px 8px; margin-left: 6px; }
.ok-line { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 6px 0 0; font-size: 14px; min-height: 36px; }
.ok-line input { width: 22px; height: 22px; margin: 0; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { margin: 0; display: flex; align-items: center; gap: 8px; border: 1px solid #b8aea4; padding: 0 14px; min-height: 48px; font-weight: 400; font-size: 16px; }
.checks input { width: 20px; height: 20px; margin: 0; }
.bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 12px; }
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 64px; }
.row img, .ph0 { width: 54px; height: 72px; object-fit: cover; object-position: 50% 15%; background: var(--be); flex: none; display: block; }
.row-main { flex: 1; min-width: 0; }
.row-name { display: block; font-weight: 500; }
.row-sub { display: block; font-size: 14px; color: var(--mo); }
.tag { font-size: 12px; background: var(--be); padding: 1px 8px; margin-left: 4px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { border: 1px solid var(--line); display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 15%; display: block; background: var(--be); }
.tile-main { font-size: 12px; font-weight: 500; background: var(--hong2); text-align: center; padding: 3px; }
.tile-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.tile-acts form { display: contents; }
.tile-acts button { background: #fff; min-height: 44px; padding: 4px; font-size: 14px; font-weight: 400; width: 100%; }
.tile-wide { grid-column: 1 / -1; }
.pick { padding: 0; background: none; display: block; width: 100%; }
.pick img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.upload { display: block; border: 1px dashed #000; padding: 16px; text-align: center; background: var(--be); font-weight: 500; font-size: 16px; margin: 12px 0; cursor: pointer; }
.upload input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload:focus-within { outline: 2px solid #000; outline-offset: 2px; }
.progress { min-height: 24px; font-size: 14px; }
.card { background: #fff; padding: 22px 18px; max-width: 400px; margin: 10vh auto 0; }
.card .logo { height: 54px; margin: 0 auto 8px; }
.danger-zone { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.m0 { margin: 0; } .mt0 { margin-top: 0; } .mt4 { margin-top: 4px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt24 { margin-top: 24px; } .p6 { padding: 6px; } .w100 { width: 100%; }
.pick-line { min-height: 48px; margin: 0; border-bottom: 1px solid var(--line); }
[hidden] { display: none !important; }
.tile-acts > span { background: #fff; }
.undo { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--hong); padding: 8px 12px; margin: 0 0 12px; }
.undo form { margin: 0; }
.tile-a, .tile-mau { display: flex; align-items: center; justify-content: center; min-height: 44px; background: #fff; text-decoration: none; font-size: 14px; }
.tile-mau { border-top: 1px solid var(--line); padding: 4px 8px; text-align: center; text-decoration: underline; }
.confirm-img { width: 60%; max-width: 260px; aspect-ratio: 3 / 4; object-fit: cover; display: block; margin: 0 0 12px; background: var(--be); }
.pick { position: relative; }
.pick .tile-main { position: absolute; left: 0; right: 0; top: 0; }
.bad { color: #000; font-weight: 600; }
.undo button { white-space: nowrap; }
