*{box-sizing:border-box}body{margin:0;background:#f6f2e9;color:#293d58;font:16px system-ui,sans-serif}header{display:flex;align-items:center;gap:14px;padding:24px max(20px,calc((100% - 680px)/2));background:#e5eaf0}header img{width:58px}h1,h2,h3{font-family:Georgia,serif;margin:0 0 12px}header h1{margin:0;font-size:30px}main{max-width:680px;margin:auto;padding:20px}section{margin-bottom:20px}form{display:grid;gap:10px;margin:16px 0}input,textarea,button{font:inherit;border-radius:12px;padding:12px;border:1px solid #aeb9c4;width:100%}input,textarea{background:#fff;color:#293d58}button{background:#293d58;color:white;cursor:pointer;border:0;margin:4px 0}button.secondary{background:#e0e7ed;color:#293d58}button:disabled{opacity:.6}article{background:#fffdf8;border:1px solid #dedbd2;border-radius:18px;padding:16px;margin:12px 0;overflow-wrap:anywhere}article img{width:100%;max-height:240px;object-fit:contain;border-radius:10px;background:#f0eee8}a{color:#345d83}footer,#hint,#status{font-size:14px;color:#52677b} [hidden]{display:none!important}.reserved h3{text-decoration:line-through} .reserved{background:#e7edf1}
.recipient{border:1px solid #c6d2d7;border-radius:16px;padding:14px;margin:16px 0;background:#e8eee9}.recipient summary{font:bold 22px Georgia,serif;cursor:pointer;margin-bottom:12px}select{font:inherit;width:100%;padding:10px;border-radius:10px;background:white;color:#293d58}dialog{border:0;border-radius:18px;color:#293d58;width:min(90%,420px);background:#f6f2e9}dialog::backdrop{background:#0007}dialog input[type=radio]{width:auto}article a{display:block;margin:10px 0}#status{white-space:pre-wrap}

.listHead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.listHead h3{flex:1;min-width:0}.listMenu{position:relative}.listMenu summary{cursor:pointer;list-style:none;font-size:26px;padding:0 12px}.listMenu summary::-webkit-details-marker{display:none}.listMenu[open]{flex:1}.listMenu button{font-size:14px}.listMenu button.danger{color:#a32222}
/* Accessible, mobile-first 2.2 */
body{font-size:18px;line-height:1.5;background:#f5f2ea;color:#263b53}header{background:#fffdf8;border-bottom:1px solid #dedbd2;padding:18px max(16px,calc((100% - 680px)/2))}header img{width:48px}header h1{font-size:32px}header small{font-size:14px}main{padding:18px}h2{font-size:30px;line-height:1.2}h3{font-size:23px;line-height:1.25}button,input,select,textarea{min-height:52px;font-size:18px}button{font-weight:600}button.secondary{background:#e8eef3}button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #a36a24;outline-offset:3px}#profileButton,#back{width:auto;font-size:16px;padding:10px 16px}#ownerTools{display:grid;gap:8px;margin:18px 0}#share{background:#fff;color:#263b53;border:1px solid #aeb9c4}#recipientForm,#giftForm,#newList{background:#fff;padding:16px;border:1px solid #dedbd2;border-radius:16px}#recipientForm label,#giftForm label{font-weight:600}#giftForm label input,#giftForm label textarea{margin-top:5px}.recipient{background:#fff;border:1px solid #d5d9d8;padding:14px;border-radius:20px;box-shadow:0 3px 12px #263b5309}.recipient>summary{display:flex;align-items:center;gap:12px;list-style:none;font:inherit;margin:0;min-height:56px}.recipient>summary::-webkit-details-marker{display:none}.recipient>summary:after{content:'⌄';margin-left:auto;font-size:26px}.recipient[open]>summary:after{content:'⌃'}.recipient>summary strong{display:block;font-size:21px;line-height:1.25}.recipient>summary small{display:block;font-size:15px;color:#526579}.avatar{display:grid;place-items:center;flex:0 0 46px;height:46px;background:#e1e9ed;border-radius:50%;font-weight:700;font-size:23px}.recipientSettings{margin:12px 0;color:#526579}.recipientSettings summary{font:600 16px system-ui;margin:0;padding:10px 0}.recipient article{background:#faf9f5;border-radius:14px;margin:12px 0}.reserved h3{text-decoration:none}.offer{background:#e3efe5;color:#245a38;padding:10px;border-radius:10px;font-weight:600}.listMenu summary{font-size:16px;border:1px solid #cbd2d7;border-radius:10px;padding:10px;min-height:48px}.listMenu button{font-size:16px}.listHead{flex-wrap:wrap}#status:not(:empty){background:#fff1df;color:#743c12;padding:12px;border-radius:10px;font-size:16px}footer{margin-top:24px}dialog input[type=radio]{min-height:24px;width:24px;vertical-align:middle}dialog label{padding:8px 0} @media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.task{border-bottom:1px solid #d6d3ca;padding:12px 0}.task label{display:flex;align-items:center;gap:12px}.task input[type=checkbox],#aiResults input[type=checkbox]{width:24px;height:24px;flex:none}#aiDialog{max-height:85vh;overflow:auto;width:min(92vw,640px)}#aiResults label{display:block}#aiResults img{max-height:180px;object-fit:contain}button{min-height:48px}input,select,textarea{font-size:18px}#shared article{margin-top:16px}

/* Reserved gift: explicit state, independent of color */
.recipient article.reserved{background:#e8ebee;border:2px solid #87939e}.recipient article.reserved h3,.recipient article.reserved .giftPrice{text-decoration:line-through;color:#52606d}.recipient article.reserved img{filter:grayscale(1);opacity:.65}.reservedBadge{background:#315c43;color:white;font-weight:800;text-align:center;padding:10px;border-radius:10px;margin-bottom:12px}.reservedNotice{font-weight:700;color:#354657;text-align:center;border:1px solid #87939e;border-radius:10px;padding:10px}

.avatar{overflow:hidden;width:46px;padding:0;color:#293d58;margin:0;border:0;min-height:46px}.avatar img{width:100%;height:100%;object-fit:cover;margin:0;border-radius:50%}button.avatar{outline:2px solid #8094a6;cursor:pointer}.taskDone{background:#e8eee8;border-radius:12px;padding:10px}.taskDone p{color:#285b3c;font-weight:600}
/* 4.0 visual preview */
:root{--navy:#203547;--cream:#f8f1e5;--sage:#788e70}body{background:var(--cream);color:var(--navy)}header{background:var(--navy);color:var(--cream);border:0;border-radius:0 0 28px 28px;padding:24px max(18px,calc((100% - 680px)/2));box-shadow:0 4px 16px #20354720}header img{background:#f8f1e5;border-radius:14px;padding:4px}header small{font:italic 17px Georgia,serif}main{padding-bottom:115px}h2{font-size:27px}#categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0 28px}.category{display:flex;align-items:center;text-align:left;gap:8px;color:var(--navy);background:#f4ddca;border:2px solid #fff9;border-radius:20px;box-shadow:0 3px 8px #20354715;padding:12px 9px;margin:0;min-height:110px}.categoryIcon{font-size:34px;flex:none}.category strong{display:block;font: bold 18px Georgia,serif}.category small{display:block;font:14px system-ui;line-height:1.3;margin-top:5px}.category.meals,.category.expenses{background:#e0e5cd}.category.checklist,.category.polls{background:#dce7ed}.category.shopping{background:#f5e4c8}article,.recipient{box-shadow:0 4px 12px #20354712;border:1px solid #e8dfd1;background:#fffaf2}button{background:var(--navy)}#share{background:var(--sage);color:white;border:0}#bottomNav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,720px);display:flex;gap:4px;background:var(--navy);border-radius:26px 26px 0 0;padding:10px 8px max(10px,env(safe-area-inset-bottom));z-index:5;box-shadow:0 -4px 20px #20354722}#bottomNav button{flex:1;min-width:0;background:transparent;color:#fff;font-size:26px;line-height:1.2;padding:8px 2px;margin:0}#bottomNav span{display:block;font-size:12px;margin-top:4px}#bottomNav .active{background:#f8e8d2;color:var(--navy)}@media(max-width:360px){.category{flex-direction:column;align-items:flex-start}.category strong{font-size:16px}}
.categoryIcon{width:48px;height:48px;object-fit:contain;margin:0}.category{min-height:112px}.category strong{font-family:Georgia,serif}.category small{color:#344b58}#bottomNav[hidden],#categories[hidden]{display:none!important}#shared small{display:block;margin:6px 0}#shared article{padding:18px}button:focus-visible,a:focus-visible{outline:3px solid #b77c48;outline-offset:3px}
