:root { color-scheme:light; --paper:#fbfaf7; --ink:#183f32; --muted:#68716d; --line:#e4e5df; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif; color:var(--ink); background:var(--paper); font-synthesis:none; }
* { box-sizing:border-box; }
body { margin:0; }
.family-gate { width:min(100%,440px);min-height:100dvh;margin:auto;padding:24px 24px max(20px,env(safe-area-inset-bottom));display:flex;flex-direction:column;background:#F6F4EF;color:#202925; }
.family-top { color:#244D3E;font-weight:700;min-height:48px;display:flex;align-items:center; }
.family-body { padding:36px 0 20px;flex:1; }
.family-body h1 { font-size:32px;letter-spacing:-.7px;margin-bottom:14px; }
.family-body p { color:#68716d;line-height:1.55;margin:0 0 24px;overflow-wrap:anywhere; }
.family-body .primary,.family-body .text-button { min-height:54px;border-radius:999px;margin-top:10px; }
.family-body .primary { background:#244D3E;color:white; }
.family-ages { border:0;padding:0;margin:30px 0 24px; }
.family-ages label { display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;padding:16px;margin:10px 0;border:1px solid #d9ddd7;border-radius:16px;font-size:18px; }
.family-ages label:has(:checked) { background:#DEE8DA;border-color:#244D3E; }
.family-ages input { width:23px;height:23px;accent-color:#244D3E;flex:none; }
.family-body label { display:flex;gap:14px;line-height:1.5; }
.family-body input:not([type=radio]):not([type=checkbox]) { width:100%;min-height:52px;border:1px solid #d9ddd7;background:transparent;padding:12px;margin:8px 0 20px;color:#202925; }
.family-assent { align-items:flex-start;border-top:1px solid #d9ddd7;padding-top:22px;margin:24px 0 12px; }
.family-assent input { flex:none;width:22px;height:22px;accent-color:#244D3E; }
.family-body .family-fine { font-size:13px;margin:16px 0; }
.family-body .family-code { color:#244D3E;font-size:32px;letter-spacing:3px;font-weight:650;text-align:center;margin:24px 0 12px; }
.family-body .family-danger { color:#b52a2a;background:transparent; }
.family-body .primary.family-danger { background:#b52a2a;color:white; }
.family-links { display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;font-size:13px; }
.family-links a,.family-links button { min-height:44px;display:inline-flex;align-items:center; }
.family-controls { display:flex;justify-content:flex-end;max-width:720px;padding:0 20px;margin:0 auto; }
.family-controls button { min-height:44px; }
.family-row { display:flex;justify-content:space-between;align-items:center;gap:18px;text-align:left;width:100%;min-height:68px;padding:16px 0;border-radius:0;border-bottom:1px solid #d9ddd7;background:transparent;color:inherit;font-weight:600; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-height:700px) { .family-body { padding-top:18px; } }
@media(prefers-reduced-motion:reduce) { .family-gate * { scroll-behavior:auto;animation:none;transition:none; } }
button,input,textarea { font:inherit; border-radius:12px; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; border:0; }
a { color:inherit; }
button:disabled { cursor:wait; opacity:.6; }
:focus-visible { outline:3px solid #b55b33; outline-offset:3px; }
[hidden] { display:none!important; }
.skip { position:fixed; top:-70px; left:15px; z-index:100; background:white; padding:12px; }
.skip:focus { top:8px; }
.app-shell { max-width:720px; padding:0 28px; margin:auto; }
.appbar { min-height:108px; padding:27px 0 20px; display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.list-heading { flex:1; min-width:0; }
h1 { font-size:28px; line-height:1.2; letter-spacing:-.8px; font-weight:700; margin:0; overflow-wrap:anywhere; }
.list-heading p { color:var(--muted); font-size:14px; line-height:1.4; margin:7px 0 0; }
.app-actions { display:flex; gap:2px; flex-shrink:0; margin-top:-6px; }
.icon-button { display:grid; place-items:center; min-width:44px; min-height:44px; padding:10px; background:transparent; color:var(--ink); border-radius:50%; }
.icon-button:hover { background:#eceee7; }
.icon-button svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
main { padding:0 0 110px; }
.list-description { margin:0 0 16px; max-width:560px; color:var(--muted); font-size:15px; line-height:1.55; white-space:pre-line; overflow-wrap:anywhere; }
.wish-row { border-bottom:1px solid var(--line); }
.wish-row:last-child { border-bottom:0; }
.row-open { width:100%; display:flex; align-items:center; justify-content:space-between; gap:18px; min-height:78px; padding:15px 0; background:transparent; color:var(--ink); text-align:left; border-radius:0; }
.row-open:hover { background:#183f3204; }
.row-copy { min-width:0; flex:1; }
.row-chevron { width:12px; height:20px; flex-shrink:0; fill:none; stroke:var(--muted); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.row-copy h2 { font-size:17px; line-height:1.35; font-weight:650; letter-spacing:-.2px; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.wish-meta { color:var(--muted); font-size:13px; line-height:1.45; margin:6px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wish-status { display:block; color:var(--muted); font-size:12px; font-weight:600; line-height:1.4; margin-top:5px; }
.wish-status.is-mine { color:#347047; }
.wish-image { width:80px; height:80px; border-radius:12px; object-fit:contain; flex-shrink:0; background:#fff; }
.primary,.secondary { min-height:48px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 18px; border-radius:12px; text-decoration:none; font-weight:650; font-size:15px; }
.primary { color:#fff; background:var(--ink); }
.primary:hover { background:#285a47; }
.secondary { color:var(--ink); background:#edf0e9; }
.secondary:hover { background:#e1e7dc; }
.full { width:100%; }
.add-dock { position:fixed; bottom:0; left:0; right:0; padding:18px 16px max(20px,env(safe-area-inset-bottom)); display:flex; justify-content:center; pointer-events:none; z-index:3; background:linear-gradient(transparent,#fbfaf7ed 30%,var(--paper)); }
.add-dock:empty { display:none; }
.add-dock .primary { pointer-events:auto; width:min(100%,400px); padding:12px 22px; min-height:50px; }
.add-dock .plus { font-size:25px; font-weight:350; line-height:1; }
.empty { min-height:300px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:24px 0; }
.start { gap:10px; }
.start .text-button { display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
.empty p { color:var(--muted); max-width:310px; line-height:1.5; margin:0 0 20px; font-size:15px; }
.empty .open-link-form { width:min(100%,390px); display:grid; gap:12px; }
.loading { min-height:200px; display:grid; place-items:center; color:var(--muted); }
.sheet { padding:0; border:0; border-radius:24px; width:min(480px,calc(100% - 32px)); max-height:min(90dvh,850px); color:var(--ink); background:var(--paper); box-shadow:0 20px 70px #0002; overflow:auto; }
.sheet::backdrop { background:#172d2760; }
.sheet[open]::backdrop { animation:backdrop-in 160ms ease-out; }
.sheet.is-closing::backdrop { animation:backdrop-out 160ms ease-in forwards; }
@keyframes backdrop-in { from { background:#172d2700; } to { background:#172d2760; } }
@keyframes backdrop-out { to { background:#172d2700; } }
.sheet-body { padding:28px; position:relative; }
.sheet-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 23px; }
.sheet h2 { font-size:23px; letter-spacing:-.6px; line-height:1.2; margin:0; overflow-wrap:anywhere; }
.close,.detail-close { font-size:28px; font-weight:350; }
.sheet label { display:block; font-size:14px; font-weight:650; margin:18px 0 8px; }
.sheet label:first-of-type { margin-top:0; }
input,textarea { width:100%; min-height:48px; background:#fff; color:var(--ink); border:1.5px solid #d9ded8; padding:12px 14px; font-size:16px; line-height:1.35; }
input::placeholder,textarea::placeholder { color:#87918a; }
textarea { resize:vertical; min-height:78px; }
input[aria-invalid="true"] { border-color:#a23931; }
.optional { font-weight:400; color:var(--muted); font-size:12px; margin-left:5px; }
.sheet form > .primary { margin-top:25px; }
.extra-fields { margin-top:20px; }
.extra-fields summary,.private-link summary { min-height:48px; padding:14px 0; border-radius:0; font-weight:600; font-size:15px; cursor:pointer; }
.extra-fields[open] summary { margin-bottom:12px; }
.field-error { font-size:14px; color:#992f28; line-height:1.45; margin:10px 0; }
.copy-row { display:flex; gap:8px; align-items:stretch; }
.copy-row input { min-width:0; font-size:14px; }
.copy-row button { flex-shrink:0; font-size:14px; padding:10px 14px; }
.private-link { margin-top:22px; }
.private-link .copy-row { margin-top:12px; }
.small-note { font-size:13px; color:var(--muted); line-height:1.5; margin:10px 0 0; }
.small-note:empty { display:none; }
.import-status { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--muted); line-height:1.45; margin:10px 0 0; }
.import-status.is-loading::before { content:""; width:14px; height:14px; flex-shrink:0; border:1.5px solid #d9ded8; border-top-color:var(--ink); border-radius:50%; animation:import-spin .8s linear infinite; }
@keyframes import-spin { to { transform:rotate(360deg); } }
.import-image { display:flex; align-items:center; gap:12px; margin:20px 0; }
.import-image img { width:88px; height:88px; object-fit:contain; border-radius:12px; background:#fff; }
.import-image .text-button { color:var(--ink); font-size:14px; font-weight:500; }
#price-field label { margin-top:18px; }
.saved-row { min-height:64px; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:15px 0; border-bottom:1px solid var(--line); text-decoration:none; }
.saved-row > span:first-child { min-width:0; }
.saved-row strong { display:block; font-size:17px; font-weight:600; overflow-wrap:anywhere; }
.saved-row small { display:block; color:var(--muted); font-size:13px; margin-top:5px; }
.new-list-link { margin-top:14px; padding-left:0; color:var(--ink); }
button:active:not(:disabled),.saved-row:active { background-color:#e1e7dc; }
.primary:active:not(:disabled) { background-color:#285a47; }
.menu-row { min-height:56px; background:transparent; width:100%; display:flex; justify-content:space-between; align-items:center; text-align:left; color:var(--ink); padding:14px 0; border-bottom:1px solid var(--line); border-radius:0; font-weight:500; }
.menu-row span { font-size:24px; color:var(--muted); }
.detail-close { position:absolute; right:12px; top:12px; z-index:2; background:#fffc; }
.detail-art { display:block; width:100%; height:auto; max-height:300px; object-fit:contain; border-radius:12px; margin:12px 0 22px; }
.detail-content h2 { margin:26px 30px 10px 0; font-size:25px; }
.detail-price { font-size:21px; font-weight:650; margin:10px 0; }
.detail-note { font-size:15px; line-height:1.5; margin:14px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.detail-domain { font-size:14px; color:var(--muted); text-decoration:none; }
.domain-link { display:inline-flex; align-items:center; min-height:44px; color:var(--ink); text-decoration:underline; text-underline-offset:3px; }
.detail-buttons { display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.text-button { min-height:44px; padding:10px; background:transparent; color:var(--muted); font-weight:600; }
.danger { color:#a24336; }
.detail-status { display:block; font-size:13px; font-weight:650; color:#347047; margin-top:16px; }
.toast { position:fixed; bottom:100px; left:50%; transform:translate(-50%,16px); z-index:20; background:#183f32; color:white; box-shadow:0 6px 24px #0002; padding:14px 18px; border-radius:12px; width:max-content; max-width:calc(100% - 32px); font-size:14px; line-height:1.5; opacity:0; pointer-events:none; transition:opacity .16s,transform .16s; display:flex; gap:16px; align-items:center; }
.toast.show { opacity:1; transform:translate(-50%,0); pointer-events:auto; }
.toast button { color:#fff; background:transparent; min-height:44px; padding:4px 2px; text-decoration:underline; font-weight:650; flex-shrink:0; }
@media(max-width:650px) {
  .app-shell { padding:0 16px; } .appbar { min-height:94px; padding-top:25px; } h1 { font-size:26px; } .list-heading p { font-size:13px; }
  .row-open { min-height:76px; padding:12px 0; gap:14px; } .row-copy h2 { font-size:16px; }
  .sheet { width:100%; max-width:none; margin:auto 0 0; max-height:92dvh; border-radius:24px 24px 0 0; } .sheet-body { padding:25px 22px max(28px,env(safe-area-inset-bottom)); }
  .sheet-body::before { content:""; display:block; width:42px; height:5px; background:#d1d4cd; border-radius:4px; margin:-12px auto 22px; } .sheet-heading { margin-bottom:23px; } .sheet h2 { font-size:23px; } .detail-sheet .sheet-body::before { display:none; }
}
@media(max-width:350px) {
  .app-shell { padding:0 12px; } h1 { font-size:24px; } .app-actions { gap:0; } .wish-image { width:72px; height:72px; } .wish-meta { font-size:12px; }
  .copy-row { flex-wrap:wrap; } .copy-row button { width:100%; } .toast { flex-direction:column; gap:0; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
/* Secondary information stays below the one primary create action. */
.start-links { display:flex; justify-content:center; flex-wrap:wrap; gap:8px 20px; padding:20px; font-size:13px; color:#59665f; }
.start-links a { padding:12px 0; text-underline-offset:4px; }

.list-cover{width:100%;height:140px;object-fit:contain;border-radius:24px;margin:0 0 24px;background:#f6f4ef}
.cover-select{position:relative;width:100%;height:120px;border:0;border-radius:20px;overflow:hidden;padding:0;cursor:pointer;background:#f6f4ef}
.cover-select img{width:100%;height:100%;object-fit:contain}.cover-select span{position:absolute;bottom:10px;right:10px;background:white;border-radius:24px;padding:12px 18px;color:#244d3e;font-weight:600}
#cover-panel{max-height:320px;overflow:auto;padding:2px}.cover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cover-grid button{padding:0;overflow:hidden;border:2px solid transparent;border-radius:16px;aspect-ratio:1;cursor:pointer;background:#f6f4ef;min-height:48px}.cover-grid button[aria-pressed=true]{border-color:#244d3e}.cover-grid img{height:100%;width:100%;object-fit:contain}
@media(max-width:360px){.list-cover{height:100px}}
.list-cover.is-photo,.cover-select img.is-photo{object-fit:cover}
.photo-select{margin-bottom:14px;background:transparent;border:1.5px solid var(--ink)}
.photo-preview{display:block;width:100%;aspect-ratio:5/3;object-fit:cover;border-radius:16px;margin:12px 0}
.photo-actions{display:flex;justify-content:flex-end;gap:10px;margin:12px 0 18px;flex-wrap:wrap}
.photo-actions button{flex:1;min-height:48px}
#cover-panel{max-height:min(420px,55dvh);margin-top:12px}

.variant-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.variant-fields>div{min-width:0}@media(max-width:360px){.variant-fields{grid-template-columns:1fr}}

.privacy-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;margin:0;font-weight:500}
.privacy-toggle input[type=checkbox]{width:22px;height:22px;min-width:22px;accent-color:var(--ink);margin:0}
#list-privacy{margin:12px 0 20px}#list-privacy[hidden]{display:none}

#safety-dialog select{width:100%;font:inherit;min-height:48px;border:1px solid #aeb7b0;border-radius:12px;padding:10px;background:#fff;color:var(--ink);margin:4px 0 16px}
.safety-block-row{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;border-bottom:1px solid #dfe3dc}.safety-block-row button{min-height:48px}

.safety-block-row small{display:block;color:#59665f;font-size:13px;margin-top:4px}

.sheet-body .photo-assent { display:flex;align-items:flex-start;gap:12px;font-size:14px;font-weight:400;line-height:1.5;margin:18px 0 8px; }
.sheet-body .photo-assent input { flex:none;width:22px;height:22px;min-height:22px;padding:0;accent-color:#244D3E; }
#photo-terms { display:inline-flex;align-items:center;min-height:44px;font-size:14px;color:var(--ink); }

.wish-thumb{width:64px;height:64px;object-fit:cover;border-radius:12px;flex-shrink:0;background:var(--paper,#f6f4ef)}
