:root{color-scheme:light;--bg:#f7f6f2;--paper:#fffefa;--ink:#32392f;--muted:#73796b;--line:#eeeee7;--accent:#db795b;--accent-dark:#be6044;--green:#708563;--font:"Avenir Next",Avenir,"Segoe UI",sans-serif;font-family:var(--font);color:var(--ink);background:var(--bg);font-synthesis:none;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}body{margin:0;min-width:320px}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button{touch-action:manipulation}button,button svg,a,input{transition:background .2s,color .2s,box-shadow .2s,border-color .2s,transform .25s,opacity .2s}button:focus-visible,a:focus-visible{outline:3px solid #db795b80;outline-offset:4px}input:focus-visible{outline:none}[hidden]{display:none!important}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.main{min-height:calc(100svh - 116px);display:flex;justify-content:center;align-items:center;padding:72px 24px 40px}.welcome{display:flex;justify-content:center;align-items:center;min-height:400px;animation:rise .65s both}.primary-button{display:flex;align-items:center;justify-content:center;gap:14px;border:0;border-radius:12px;background:var(--ink);color:#fffefa;min-height:54px;padding:15px 22px;font-size:14px;font-weight:600;letter-spacing:.1px;box-shadow:0 4px 0 #32392f0a}.primary-button:hover{background:#444d40;transform:translateY(-2px);box-shadow:0 7px 15px #32392f16}.primary-button:active{transform:translateY(1px)}.create-button{gap:20px;padding:19px 24px;min-height:62px;border-radius:14px}.button-plus{color:#e6a18a;font-size:26px;font-weight:400;line-height:1}.button-arrow{width:18px;height:18px;opacity:.65}.primary-button:hover .button-arrow{transform:translateX(3px)}
.room{width:100%;max-width:680px;animation:rise .65s cubic-bezier(.2,.7,.2,1) both}.list-card{position:relative;background:var(--paper);border:1px solid #e9e9e0;border-radius:20px;box-shadow:0 2px 2px #45453802,0 12px 35px -15px #4545380f,0 32px 80px -30px #45453809;overflow:hidden}.card-header{padding:28px 30px 24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:18px}.tabs{background:#f3f3ec;padding:5px;border-radius:11px;display:flex;gap:3px;width:365px}.tab{border:0;background:transparent;color:#707768;min-height:40px;padding:9px 13px;border-radius:7px;display:flex;align-items:center;justify-content:center;gap:8px;flex:1;font-size:13px;font-weight:500;white-space:nowrap}.tab:hover{color:var(--ink);background:#ffffff70}.tab.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 4px #32392f12;font-weight:600}.tab-count{display:inline-flex;align-items:center;justify-content:center;font-size:10px;min-width:18px;height:18px;background:#e9ebe2;border-radius:5px;color:#7d8472;font-weight:600}.tab.active .tab-count{background:#f8e7df;color:#bc7253}.list-panel{padding:28px 30px 32px;min-height:365px}.list-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:19px}h1{font-size:17px;font-weight:600;letter-spacing:-.35px;margin:0}.item-summary{font-size:11px;color:#77806b;white-space:nowrap;letter-spacing:.1px}.items{list-style:none;padding:0;margin:0 0 21px}.item{position:relative;display:flex;align-items:center;min-height:62px;gap:15px;border-bottom:1px solid var(--line)}.item:last-child{border-bottom-color:transparent}.checkbox{width:23px;height:23px;min-width:23px;padding:0;background:transparent;border:1.5px solid #d5d8cb;border-radius:8px;display:grid;place-items:center;position:relative}.checkbox:hover{border-color:var(--green);background:#f1f4eb;transform:scale(1.08)}.checkbox svg{width:14px;height:14px;stroke-width:2.4;opacity:0;transform:scale(.3)}.completed .checkbox{background:#eaf0e3;border-color:#dfe8d4;color:#788e67}.completed .checkbox svg{opacity:1;transform:scale(1)}.item-text{border:0;background:transparent;flex:1;padding:17px 0;text-align:left;min-width:0;color:#4d5346;font-size:14px;line-height:1.5;overflow-wrap:anywhere;font-weight:450}.item-text>span{position:relative;background-image:linear-gradient(#a5ad99,#a5ad99);background-repeat:no-repeat;background-position:0 55%;background-size:0 1px;transition:background-size .3s,color .3s}.completed .item-text>span{color:#858d7b;background-size:100% 1px}.item-text:hover{color:var(--accent)}.delete-item{border:0;background:transparent;color:#b5b6ab;width:32px;height:32px;display:grid;place-items:center;border-radius:7px;opacity:0;transform:translateX(-3px)}.delete-item svg{width:16px;height:16px}.item:hover .delete-item,.item:focus-within .delete-item{opacity:1;transform:translateX(0)}.delete-item:hover{background:#fcf0e9;color:var(--accent-dark)}.edit-form{display:flex;flex:1;min-width:0;gap:8px;align-items:center}.edit-input{border:0;border-bottom:1px solid var(--accent);background:#faf7f1;min-width:0;flex:1;padding:9px 8px;color:var(--ink);font-size:14px;border-radius:4px 4px 0 0}.edit-save{width:30px;height:30px;display:grid;place-items:center;border:0;background:#f0f3e9;color:var(--green);border-radius:6px}.edit-save svg{width:16px;height:16px}.add-form{border:1px dashed #dcded1;border-radius:10px;min-height:53px;display:flex;align-items:center;gap:12px;padding:0 15px;background:#fdfdf8;transition:border-color .2s,box-shadow .2s,background .2s}.add-form:focus-within{border-color:#c68e73;background:#fffefa;box-shadow:0 0 0 3px #e6a18a10}.add-plus{font-size:25px;font-weight:300;color:#bc886e;line-height:1}.add-form input{border:0;background:transparent;min-width:0;flex:1;outline:none;font-size:13px;padding:17px 0;color:var(--ink)}.add-form input::placeholder{color:#767e6a;opacity:1}.enter-hint{color:#b1b3a6;font-family:var(--font);font-size:17px;line-height:1}.add-submit{border:0;background:#f4e5dc;color:#bd7758;border-radius:6px;display:none;align-items:center;justify-content:center;width:28px;height:28px;padding:4px}.add-form:has(input:not(:placeholder-shown)) .add-submit{display:flex}.add-form:has(input:not(:placeholder-shown)) .enter-hint{display:none}.add-submit:hover{background:#ecd3c5}.add-submit svg{width:16px;height:16px}
.card-footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 30px;background:#fdfdf8;color:#747c67;font-size:10px;letter-spacing:.05px}.retention{display:flex;align-items:center;gap:7px}.retention svg{width:13px;height:13px;stroke-width:1.5}.save-status{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:9px;color:#758466}.saved-dot{width:4px;height:4px;border-radius:50%;background:#a5b78e}.save-status.error{color:#bc7253}.save-status.error .saved-dot{background:#bc7253}.empty-state{text-align:center;padding:10px 0 25px;animation:rise .4s both}.empty-illustration{width:130px;height:117px;stroke:none;display:block;margin:0 auto 13px}.sprig{transform-origin:120px 35px;animation:sprig-sway 5s ease-in-out infinite}.empty-state h2{font-size:15px;font-weight:500;letter-spacing:-.2px;margin:0 0 9px;color:#6d7660}.empty-state p{font-size:12px;color:#7c846e;line-height:1.9;margin:0}.site-footer{height:116px;display:flex;align-items:center;justify-content:center;gap:20px;padding:20px 24px 32px}
.room-dialog{position:fixed;inset:0;border:1px solid #e9e9e0;border-radius:20px;background:var(--paper);color:var(--ink);width:calc(100% - 40px);max-width:420px;padding:38px;box-shadow:0 30px 100px #32392f25;overflow:visible}.room-dialog[open]{animation:dialog-in .3s cubic-bezier(.2,.7,.2,1)}.room-dialog::backdrop{background:#35392e30;backdrop-filter:blur(5px);animation:fade-in .25s}.close-dialog{position:absolute;right:15px;top:15px;border:0;background:transparent;border-radius:7px;width:30px;height:30px;color:#a5a99a;display:grid;place-items:center}.close-dialog:hover{background:#efefe6;color:var(--ink)}.close-dialog svg{width:17px;height:17px}.dialog-icon{width:48px;height:48px;border-radius:15px;background:#f7e9df;color:#be8463;display:grid;place-items:center;margin-bottom:24px;transform:rotate(-5deg)}.dialog-icon svg{width:24px;height:24px;transform:rotate(5deg);stroke-width:1.4}.room-dialog h2{font-size:26px;letter-spacing:-1px;font-weight:600;margin:0 0 12px}.room-dialog>p:not(.dialog-footnote){font-size:13px;line-height:1.8;color:#747e65;margin:0 0 26px}.room-dialog label{display:block;font-size:12px;font-weight:500;margin-bottom:10px;color:#767e6a}.password-field{display:flex;align-items:center;border:1px solid #dbdfd2;border-radius:9px;background:#fffefa;transition:border-color .2s,box-shadow .2s}.password-field:focus-within{border-color:#c68e73;box-shadow:0 0 0 3px #e6a18a15}.password-field input{border:0;background:transparent;color:var(--ink);font-size:13px;padding:14px;flex:1;min-width:0;outline:none}.password-field input::placeholder{color:#7a856b}.password-field button{border:0;background:transparent;color:#a5a999;width:42px;height:42px;display:grid;place-items:center}.password-field button svg{width:18px;height:18px;stroke-width:1.4}.password-hint{font-size:10px;line-height:1.6;color:#778367;margin:10px 0 23px}.room-dialog .primary-button{width:100%;justify-content:space-between;font-size:13px;min-height:50px}.dialog-footnote{display:flex;align-items:center;justify-content:center;gap:6px;color:#778367;font-size:10px;margin:23px 0 0}.dialog-footnote svg{width:12px;height:12px;stroke-width:1.7}.form-error{font-size:12px;color:#b05c43;line-height:1.6;margin:0 0 18px}.toast{position:fixed;z-index:10;bottom:30px;left:50%;transform:translateX(-50%);background:#373f32;color:#fffef8;padding:14px 19px;display:flex;align-items:center;gap:10px;border-radius:12px;box-shadow:0 5px 30px #32392f20;font-size:12px;white-space:nowrap;animation:toast-in .25s both;max-width:calc(100% - 32px)}#toast-icon{color:#b7c7a4;font-size:15px}.toast button{border:0;background:transparent;color:#edb69d;padding:0 0 0 12px;font-size:12px;font-weight:600}.toast button:hover{color:#fff}.toast #toast-text{white-space:normal}.loading{min-height:400px;display:grid;place-items:center}.loading-spinner{width:26px;height:26px;border:2px solid #e6e8db;border-top-color:#afbf9b;border-radius:50%;animation:spin .8s linear infinite}.noscript{position:fixed;left:0;right:0;top:20px;text-align:center;color:var(--ink);font-size:14px}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes dialog-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes toast-in{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes spin{to{transform:rotate(360deg)}}@keyframes sprig-sway{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(6deg)}}
@media(min-width:1500px){.main{padding-top:90px}.room{max-width:720px}.list-panel{min-height:390px}}
@media(max-width:600px){.main{padding:40px 18px 24px;min-height:calc(100svh - 100px)}.card-header{padding:20px;gap:10px}.tabs{flex:1;width:auto;max-width:365px}.tab{padding:9px 8px;font-size:12px;gap:5px;min-height:39px}.list-card{border-radius:15px}.list-panel{padding:24px 20px;min-height:350px}.list-heading{margin-bottom:14px}h1{font-size:15px}.item-summary{font-size:10px}.item{min-height:61px;gap:12px}.item-text{font-size:13px}.delete-item{opacity:.6;transform:none;width:26px;min-width:26px}.card-footer{padding:16px 20px;flex-wrap:wrap;gap:10px;font-size:9px}.save-status{font-size:8px}.site-footer{height:100px;padding-bottom:30px}.room-dialog{padding:32px 28px}.room-dialog h2{font-size:24px}.empty-state{padding-top:16px}.empty-illustration{width:120px;height:108px}.toast{bottom:22px;font-size:11px}.add-form input{font-size:12px}.checkbox{width:22px;height:22px;min-width:22px}}
@media(max-width:380px){.card-header,.list-panel{padding-left:16px;padding-right:16px}.card-footer{padding-left:16px;padding-right:16px}.save-status{display:none}.item-summary{font-size:9px}.tab-count{min-width:15px;height:15px;font-size:9px}}
/* One shared selection surface travels beneath the fixed tab labels. */
.card-header{justify-content:center}
.tabs{position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.tabs::before{content:"";position:absolute;z-index:-1;top:5px;bottom:5px;left:5px;width:calc((100% - 16px)/3);border-radius:7px;background:var(--paper);box-shadow:0 1px 4px #32392f12;transform:translateX(calc(var(--active-tab,0) * (100% + 3px)));transition:transform 300ms cubic-bezier(.22,.75,.25,1);pointer-events:none}
.tab:hover,.tab.active{background:transparent;box-shadow:none}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* The viewport owns the shell. Only the list region scrolls. */
html,body{height:100%;overflow:hidden;min-width:0}
body{height:100dvh;display:flex;flex-direction:column}
.main{min-height:0;flex:1;padding:28px 24px 0;overflow:hidden}
.welcome,.loading{min-height:0;height:100%;width:100%}
.room{height:min(700px,100%);max-width:680px;min-height:0;display:flex;flex-direction:column;gap:22px}
.room-brand{display:block;flex-shrink:0;color:#5f6856;text-decoration:none;text-align:center;font-size:21px;font-weight:600;letter-spacing:-.8px;line-height:28px}
.room-brand:hover{color:var(--ink)}
.room-header{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0;min-width:0}
.room-header .room-brand{text-align:left}
.room-path{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--muted);font-size:13px;letter-spacing:.1px}
.list-card{flex:1;min-height:0;display:flex;flex-direction:column;width:100%}
.card-header{flex-shrink:0;min-height:95px;padding:22px 30px;gap:16px}
.list-panel{padding:25px 20px 25px 30px;min-height:0;flex:1;display:flex;flex-direction:column;overflow:hidden}
.list-heading{flex-shrink:0;padding-right:10px;margin-bottom:14px}
.list-scroll{position:relative;min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#a9b09b #f0f1e9;padding-right:10px;margin-right:-2px;outline:none}
.list-scroll:focus-visible{outline:2px solid #db795b70;outline-offset:-2px;border-radius:5px}
.list-scroll::-webkit-scrollbar{width:8px}
.list-scroll::-webkit-scrollbar-track{background:#f0f1e9;border-radius:8px}
.list-scroll::-webkit-scrollbar-thumb{background:#a9b09b;border:2px solid #f0f1e9;border-radius:8px}
.list-scroll::-webkit-scrollbar-thumb:hover{background:#858f75}
.items{margin:0;padding-bottom:8px}
.empty-state{min-height:100%;display:flex;flex-direction:column;justify-content:center;padding:16px 0 22px}
.add-form{flex-shrink:0;margin:16px 10px 0 0}
.card-footer{flex-shrink:0;min-height:49px}
.site-footer{height:94px;min-height:94px;flex-shrink:0;padding:15px 24px 21px}
.room-actions{display:flex;align-items:center;justify-content:center;gap:18px}
.footer-action{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#818875;min-height:42px;padding:10px 13px;border-radius:9px;font-size:11px}
.footer-action svg{width:17px;height:17px;stroke-width:1.5}
@media(hover:hover) and (pointer:fine){.footer-action:hover{color:var(--ink)}.footer-action:hover svg{transform:translateY(-2px)}}
.footer-action[aria-pressed=true]{background:#e9ecdf;color:#566346}



.history-item{gap:14px;min-height:76px}
.history-symbol{display:grid;place-items:center;flex-shrink:0;width:24px;height:24px;border-radius:7px;background:#edf0e6;color:#83936f}
.history-symbol svg{width:14px;height:14px}
.history-item.in-bin .history-symbol{background:#f3e9e2;color:#b28e76}
.history-copy{flex:1;min-width:0;padding:15px 0}
.history-text{font-size:13px;color:#646e56;line-height:1.5;overflow-wrap:anywhere}
.history-meta{font-size:10px;color:#8b927f;line-height:1.6;margin-top:4px}
.restore-item{display:flex;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#859075;padding:9px 7px;border-radius:7px;font-size:10px}
.restore-item svg{width:15px;height:15px}
.restore-item:hover{background:#edf0e5;color:#566346}
.room-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
@media(min-width:1500px){.main{padding-top:32px}.room{max-width:720px}.list-panel{min-height:0}}
@media(max-width:600px){.main{padding:20px 16px 0;min-height:0}.room{height:100%;gap:16px}.room-brand{font-size:20px}.card-header{padding:17px 20px;min-height:84px}.list-panel{min-height:0;padding:21px 12px 20px 20px}.card-footer{min-height:48px;flex-wrap:nowrap;gap:8px;padding:14px 20px}.list-heading{gap:8px}.site-footer{height:80px;min-height:80px;padding:9px 16px max(12px,env(safe-area-inset-bottom))}.room-actions{gap:13px}.footer-action{font-size:11px;padding:10px 12px}.empty-state{padding-top:12px}.history-meta{font-size:9px}.restore-item span{display:none}.restore-item{width:34px;height:38px}}
@media(max-width:380px){.card-header{padding-left:16px;padding-right:16px}.list-panel{padding-left:16px;padding-right:8px}.card-footer{padding-left:16px;padding-right:16px}.room-actions{gap:8px}}
@media(max-height:550px){.main{padding-top:10px}.room{gap:8px}.room-brand{font-size:18px;line-height:24px}.card-header{min-height:64px;padding-top:8px;padding-bottom:8px}.list-panel{padding-top:12px;padding-bottom:12px}.list-heading{margin-bottom:5px}.add-form{margin-top:8px;min-height:44px}.add-form input{padding-top:12px;padding-bottom:12px}.site-footer{height:60px;min-height:60px;padding-top:5px;padding-bottom:5px}.card-footer{min-height:36px;padding-top:9px;padding-bottom:9px}.empty-illustration{display:none}.empty-state{padding:8px 0}.empty-state h2{font-size:13px}.empty-state p{font-size:10px}}
/* A persistent, draggable indicator independent of OS overlay scrollbar settings. */
.scroll-viewport{position:relative;display:flex;min-height:0;flex:1;gap:7px}
.list-scroll{scrollbar-width:none;scrollbar-gutter:auto;padding-right:3px;margin-right:0}
.list-scroll::-webkit-scrollbar{display:none}
.list-scrollbar{position:relative;flex-shrink:0;width:8px;margin-right:2px;background:#eeefe6;border-radius:8px;touch-action:none;cursor:pointer}
.scrollbar-thumb{position:absolute;top:0;left:1px;right:1px;min-height:28px;background:#a8b099;border-radius:8px;cursor:grab;transition:background .2s}
.list-scrollbar:hover .scrollbar-thumb,.list-scrollbar.dragging .scrollbar-thumb{background:#81916c}
.list-scrollbar.dragging .scrollbar-thumb{cursor:grabbing}
.list-scrollbar:focus-visible{outline:2px solid #db795b80;outline-offset:3px}
.empty-state{animation:fade-in .3s both}

/* Action motion is started once in app.js and survives background saves. */
.item{transform-origin:center center}
.checkbox:hover{transform:none}
.checkbox{isolation:isolate;z-index:1}
.item button:disabled{opacity:1;cursor:default}
.motion-layer{position:fixed;inset:0;z-index:20;pointer-events:none;overflow:visible}
.motion-card{position:absolute;background:var(--paper);border-radius:12px;transform-origin:center center;backface-visibility:hidden;will-change:transform,opacity,box-shadow;pointer-events:none}
.motion-card>.item{width:100%;height:100%;min-height:0;padding:0 12px;margin:0;border-color:transparent;background:transparent;pointer-events:none}
.motion-source{visibility:hidden!important}
.arrival-sparkle{position:absolute;pointer-events:none;opacity:0;clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.room-name-group{margin-bottom:22px}
.room-name-field input{font-size:12px}
.room-url-preview{font-size:10px;line-height:1.5;color:#89917e;overflow-wrap:anywhere;margin:9px 0 4px}
.room-name-status{font-size:10px;line-height:1.5;min-height:15px;color:#89917e;margin:0}
.room-name-status[data-state=available]{color:#708563}
.room-name-status[data-state=taken],.room-name-status[data-state=invalid]{color:#b05c43}
.room-name-field button:hover{color:var(--accent-dark)}
@media(prefers-reduced-motion:reduce){.motion-layer{display:none}}
