:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{width:100%;overflow-x:hidden}*,*:before,*:after{box-sizing:border-box}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}html,body{width:100%;height:100%;overflow-x:hidden;margin:0;padding:0}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.scenario-title-wrapper{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;width:auto;max-width:50%;gap:.5rem}.scenario-title{margin:0;font-size:1.5rem;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.delete-btn-inline-wrapper{display:block;padding:1rem 1rem .75rem;border-bottom:1px solid rgba(255,255,255,.05)}.delete-btn-inline{background:#ef444426;color:#ef4444;border:1px solid rgba(239,68,68,.3);padding:.5rem .75rem;border-radius:6px;cursor:pointer;font-weight:600;font-size:.875rem;display:flex;align-items:center;justify-content:center;gap:.375rem;width:auto;max-width:200px;transition:all .2s ease}.delete-btn-inline:hover{background:#ef444440}.delete-btn-inline:active{background:#ef44444d;transform:scale(.98)}.delete-btn-inline span{font-size:1.1rem}.meta-items-title-short{display:none}.meta-items-title{font-size:1.3rem}@media(max-width:768px){.delete-btn-inline-wrapper{padding:.5rem 1rem}.delete-btn-inline{font-size:.875rem;width:100%;max-width:none}.delete-btn-inline:hover{background:#ef444426}.meta-items-title-full{display:none}.meta-items-title-short{display:inline}.meta-items-title{font-size:1.1rem}.meta-items-main{padding:0!important}.meta-items-card{border-radius:0!important;border:none!important;background:transparent!important}.meta-items-card>div{padding:.5rem!important}.meta-items-card .items-table th,.meta-items-card .items-table td{padding:8px 4px!important;font-size:.875rem}.meta-items-card .items-table th:first-child,.meta-items-card .items-table td:first-child{padding-left:.5rem!important}.meta-items-card .items-table th:last-child,.meta-items-card .items-table td:last-child{padding-right:.5rem!important}}.status-pill{display:flex;align-items:center;gap:.5rem;padding:4px 8px;border-radius:6px;cursor:pointer;background:transparent!important;transition:all .2s ease;-webkit-user-select:none;user-select:none}.status-pill:hover{background:#ffffff1a!important;transform:scale(1.05)}.status-pill .icon{font-size:1.5rem;line-height:1;width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center}.status-pill .dot{width:14px;height:14px;border-radius:50%;background-color:currentColor!important;box-shadow:0 0 3px #4ade8059}.status-pill .sync-icon{width:18px;height:18px;display:inline-block;color:currentColor}.status-pill.syncing .sync-icon{animation:spin 1s linear infinite;transform-origin:50% 50%}.status-pill .label{font-size:.9rem;font-weight:500;white-space:nowrap}.status-pill.online{color:#4ade80!important}.status-pill.syncing{color:#fbbf24!important}.status-pill.offline{color:#9ca3af!important}.status-pill.error{color:#ef4444!important}.status-pill.warning{color:#f59e0b!important}@media(max-width:600px){.status-pill .label{display:none}}.access-denied-banner{background:linear-gradient(135deg,#f093fb,#f5576c);border-left:4px solid #d32f2f;padding:16px 20px;margin-bottom:20px;border-radius:8px;box-shadow:0 2px 8px #00000026;animation:slideDown .3s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.access-denied-content{display:flex;align-items:flex-start;gap:16px;color:#fff}.access-denied-icon{width:32px;height:32px;flex-shrink:0;opacity:.95}.access-denied-text{flex:1}.access-denied-text strong{display:block;font-size:16px;font-weight:600;margin-bottom:4px}.access-denied-text p{margin:0;font-size:14px;line-height:1.5;opacity:.95}.access-denied-dismiss{background:none;border:none;color:#fff;font-size:28px;line-height:1;cursor:pointer;padding:0 4px;opacity:.8;transition:opacity .2s;flex-shrink:0}.access-denied-dismiss:hover{opacity:1}.access-denied-dismiss:focus{outline:2px solid white;outline-offset:2px;border-radius:4px}.share-modal{max-width:480px;width:90%}.invite-section{margin-bottom:1.5rem}.invite-form{display:flex;gap:.5rem}.invite-form .form-input{flex:1;padding:.625rem .875rem;border:1px solid #d1d5db;border-radius:8px;font-size:.875rem;transition:all .2s ease;background:#fff;color:#1f2937}.invite-form .form-input::placeholder{color:#9ca3af}.invite-form .form-input:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 3px #667eea14}.primary-btn{padding:.625rem 1rem;background:#667eea;color:#fff;border:none;border-radius:8px;font-size:.875rem;font-weight:500;cursor:pointer;transition:background .2s ease;white-space:nowrap}.primary-btn:hover:not(:disabled){background:#5568d3}.primary-btn:active:not(:disabled){background:#4c5cc7}.primary-btn:disabled{opacity:.5;cursor:not-allowed}.users-section h4,.invites-section h4{margin:0 0 .625rem;font-size:.75rem;color:#6b7280;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.invites-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.loading-users,.no-users{text-align:center;padding:1.25rem;color:#9ca3af;font-size:.8125rem}.users-list{display:flex;flex-direction:column;gap:.5rem;max-height:300px;overflow-y:auto}.invites-list{display:flex;flex-direction:column;gap:.5rem;max-height:200px;overflow-y:auto}.user-item,.invite-item{display:flex;align-items:center;gap:.625rem;padding:.5rem .625rem;background:transparent;border:none;border-bottom:1px solid #e5e7eb;border-radius:0;transition:all .2s ease}.user-item:last-child,.invite-item:last-child{border-bottom:none}.user-item:hover,.invite-item:hover{background:#f9fafb;border-color:#d1d5db}.user-avatar{width:32px;height:32px;border-radius:50%;background:#667eea;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:500;font-size:.875rem;flex-shrink:0}.invite-icon{width:32px;height:32px;display:flex;align-items:center;justify-content:center;font-size:1.25rem;flex-shrink:0;color:#9ca3af}.user-details,.invite-details{flex:1;min-width:0}.user-name{font-weight:500;color:#1f2937;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-email,.invite-email{font-size:.8125rem;color:#6b7280;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.125rem}.invite-status{font-size:.75rem;color:#9ca3af;margin-top:.125rem}.user-role{padding:.3125rem .625rem;background:#667eea;color:#fff;border-radius:6px;font-size:.75rem;font-weight:500;white-space:nowrap;text-transform:capitalize}.remove-btn{width:30px;height:30px;border-radius:6px;border:none;background:transparent;color:#9ca3af;font-size:1.125rem;font-weight:400;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;line-height:1;padding:0;flex-shrink:0}.remove-btn:hover{background:#fef2f2;color:#dc2626}.revoke-btn{width:30px;height:30px;border-radius:6px;border:none;background:transparent;color:#9ca3af;font-size:1.125rem;font-weight:400;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .2s ease;line-height:1;padding:0;flex-shrink:0}.revoke-btn:hover{background:#fef3e6;color:#f59e0b}.error-banner{padding:.75rem .875rem;background:#fef2f2;border-left:3px solid #ef4444;border-radius:6px;color:#991b1b;font-size:.8125rem;margin-bottom:1rem;line-height:1.5}@media(max-width:600px){.invite-form{flex-direction:column}.primary-btn{width:100%}.user-item{flex-wrap:wrap}}.access-list-section h4{margin:0 0 .5rem;font-size:.75rem;color:#fff9;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.access-list-section.invites-section{margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid #e5e7eb}.loading-items,.no-items{text-align:center;padding:1rem;color:#ffffff80;font-size:.8125rem}.access-list{display:flex;flex-direction:column;max-height:300px;overflow-y:auto}.access-list-item{display:flex;align-items:center;gap:.625rem;padding:.5rem 0;background:transparent;border:none;border-bottom:1px solid #404040;border-radius:0;transition:all .2s ease}.access-list-item:last-child{border-bottom:none}.access-list-item:hover{background:#ffffff0d}.access-list-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0}.access-list-details{flex:1;min-width:0}.access-list-primary{font-weight:500;color:#ffffffde;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.access-list-secondary{font-size:.75rem;color:#ffffff80;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:.125rem}.user-avatar{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,#667eea,#764ba2);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;cursor:pointer;transition:transform .2s}.user-avatar.clickable:hover{transform:scale(1.1)}.user-avatar.small{width:32px;height:32px;font-size:14px}.user-avatar.medium{width:40px;height:40px;font-size:16px}.user-avatar.large{width:56px;height:56px;font-size:24px}.avatar-image{width:100%;height:100%;border-radius:50%;object-fit:cover;display:block}.avatar-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.leading-actions{display:flex}.leading-actions>*{width:0;overflow-x:hidden}.swipeable-list{flex:1;width:100%;height:100%;overflow-y:auto;-webkit-overflow-scrolling:touch}.swipeable-list-item{position:relative;transition:max-height .5s ease-in-out;max-height:1000px;transform-origin:top;overflow:hidden;width:100%}.swipeable-list-item--remove{max-height:0;transition:max-height .35s ease-out}.swipeable-list-item__content{width:100%;align-items:center;box-sizing:border-box;height:100%;display:flex}.swipeable-list-item__content--return{transition:transform .5s ease-in-out}@keyframes content-return-leading-ms{20%{transform:translate(100%)}to{transform:translate(0)}}.swipeable-list-item__content--return-leading-ms{animation-duration:.5s;animation-name:content-return-leading-ms;animation-timing-function:linear}@keyframes content-return-trailing-ms{20%{transform:translate(-100%)}to{transform:translate(0)}}.swipeable-list-item__content--return-trailing-ms{animation-duration:.5s;animation-name:content-return-trailing-ms;animation-timing-function:linear}.swipeable-list-item__content--remove{transition:transform .5s ease-in-out}.swipeable-list-item__leading-actions{position:absolute;display:flex;width:0px;overflow:hidden;height:100%}.swipeable-list-item__leading-actions--return{transition:width .5s ease-in-out}@keyframes actions-return-ms{20%{width:100%}to{width:0}}.swipeable-list-item__actions--return-ms{animation-duration:.5s;animation-name:actions-return-ms;animation-timing-function:linear}.swipeable-list-item__leading-actions>*{overflow:hidden;display:flex;justify-content:flex-end;transform:scale(1);transform-origin:center left;transition:transform .2s ease-out}.swipeable-list-item__trailing-actions{display:flex;width:0px;position:absolute;right:0;top:0;justify-content:flex-end;overflow:hidden;height:100%}.swipeable-list-item__trailing-actions--return{transition:width .5s ease-in-out}.swipeable-list-item__trailing-actions>*{overflow:hidden;transform:scale(1);transform-origin:center right;transition:transform .2s ease-out}.swipeable-list-item__leading-actions--scaled>*{transform:scale(1.2);transform-origin:center left;transition:transform .2s ease-in}.swipeable-list-item__trailing-actions--scaled>*{transform:scale(1.2);transform-origin:center right;transition:transform .2s ease-in}.swipe-action{display:flex;width:100%;align-items:stretch}.swipe-action>*{flex:1}.swipe-action__grayed>*{background-color:gray!important}.swipe-action__leading>*{justify-content:flex-start}.swipe-action__trailing>*{justify-content:flex-end}.swipe-action__leading--full-swipe-rest,.swipe-action__trailing--full-swipe-rest{width:0;transition:width .2s}.swipe-action__leading--full-swipe-main>*{justify-content:flex-end}.swipe-action__trailing--full-swipe-main>*{justify-content:flex-start}.trailing-actions{display:flex}.trailing-actions>*{width:0;overflow-x:hidden}.header-content{display:flex!important;align-items:center;justify-content:space-between;position:relative;padding:0 1rem}.list-title-wrapper{position:absolute;left:50%;transform:translate(-50%);display:flex;align-items:center;justify-content:center;width:auto;max-width:50%;gap:.5rem}.list-title{margin:0;font-size:1.5rem;font-weight:600;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.header-actions{display:flex;align-items:center;gap:1rem;margin-left:auto}.menu-container{position:relative}.menu-btn{background:#ffffff26;border:1px solid rgba(255,255,255,.2);font-size:1.25rem;color:#fff;cursor:pointer;padding:0;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;width:36px;height:36px;line-height:1}.menu-btn:hover{background:#ffffff40;transform:translateY(-1px);box-shadow:0 2px 5px #0000001a}.menu-dropdown{position:absolute;top:100%;right:0;margin-top:.75rem;background:#fff;border:1px solid rgba(0,0,0,.1);border-radius:12px;box-shadow:0 10px 30px #00000026;min-width:200px;z-index:1000;overflow:hidden;animation:menu-fade-in .2s cubic-bezier(.16,1,.3,1);transform-origin:top right}.menu-dropdown:before{content:"";position:absolute;top:-6px;right:12px;width:12px;height:12px;background:#fff;transform:rotate(45deg);border-left:1px solid rgba(0,0,0,.1);border-top:1px solid rgba(0,0,0,.1)}@keyframes menu-fade-in{0%{opacity:0;transform:translateY(-8px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.menu-item{display:flex;align-items:center;width:100%;padding:12px 16px;text-align:left;background:transparent;border:none;color:#333;cursor:pointer;font-size:.95rem;font-weight:500;transition:all .2s;gap:10px}.menu-item:hover{background:#f5f7fa;color:#667eea}.menu-divider{height:1px;background-color:#eee;margin:4px 0}.menu-item.delete-item{color:#e53e3e}.menu-item.delete-item:hover{background:#fff5f5;color:#c53030}.back-btn{background:#ffffff26;border:1px solid rgba(255,255,255,.2);color:#fff;padding:.5rem 1rem;border-radius:8px;font-weight:500;transition:all .2s;display:flex;align-items:center;gap:.5rem}.back-btn:hover{background:#ffffff40;transform:translate(-2px)}.back-btn-text{font-size:.9rem}.list-content .items-section{margin-top:.5rem}.list-content .items-list{display:flex;flex-direction:column;gap:0}.list-content .active-items,.list-content .completed-items{display:flex;flex-direction:column;gap:.75rem}.list-content .item-card{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:.75rem;margin:0;gap:.75rem;transform:translateY(0) scale(1);transition:all .2s ease,opacity .18s ease,transform .18s cubic-bezier(.2,.9,.3,1);box-shadow:0 1px 3px #00000014}.list-content .item-card.completing{opacity:0;transform:translateY(8px) scale(.99);pointer-events:none}.list-content .item-card:hover{border-color:#007bff;box-shadow:0 2px 8px #007bff26;transform:none}.list-content .item-card.selected{border-color:#007bff;background:#f0f8ff}.list-content .item-checkbox{display:flex;align-items:center;justify-content:center}.list-content .item-checkbox input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:2px solid #ccc;border-radius:4px;cursor:pointer;position:relative;transition:all .2s ease;background:#fff;margin:0;flex-shrink:0}.list-content .item-checkbox input[type=checkbox]:hover{border-color:#007bff}.list-content .item-checkbox input[type=checkbox]:checked{background-color:#007bff;border-color:#007bff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");background-size:14px;background-position:center;background-repeat:no-repeat}.list-content .item-name{flex:1;font-weight:500;font-size:.95rem;color:#333;word-break:break-word;line-height:1.5;transition:color .2s ease,opacity .2s ease,text-decoration-color .2s ease}@keyframes completed-item-enter{0%{opacity:0;transform:translateY(-6px)}to{opacity:.5;transform:translateY(0)}}.list-content .item-delete-btn{visibility:hidden;opacity:0;pointer-events:none;background:transparent;color:#999;transform:none;font-size:1.5rem;width:32px;height:32px;transition:opacity .1s ease,visibility 0s linear .1s;border:none;cursor:pointer;flex-shrink:0}@media(hover:hover){.list-content .item-card:hover .item-delete-btn{visibility:visible;opacity:1;pointer-events:auto;transition:opacity .1s ease,visibility 0s}.list-content .item-delete-btn:hover{color:#dc3545}}.list-content .item-delete-btn:hover{background:#ef44441a;color:#ef4444;transform:none}.desktop-only{display:none!important}@media(pointer:fine){.desktop-only{display:block!important;visibility:hidden}}.list-content .completed-items{margin-top:1rem;border-top:none}.list-content .completed-header{font-size:.85rem;text-transform:uppercase;letter-spacing:1px;color:#fff6;margin:.5rem 1rem;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:.5rem;-webkit-user-select:none;user-select:none;transition:color .2s ease}.list-content .completed-header:hover{color:#ffffffb3}.list-content .completed-header .chevron{display:inline-block;font-size:.6rem;transition:transform .2s ease;opacity:.7}.list-content .completed-header .chevron.expanded{transform:rotate(90deg)}.list-content .item-card.completed{opacity:.6;background:#f8f9fa;border-color:#dee2e6;animation:completed-item-enter .18s cubic-bezier(.2,.9,.3,1);will-change:opacity,transform}.list-content .item-card.completed .item-name{text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#999;color:#666}.list-content .item-card.completed:hover{opacity:.7;border-color:#adb5bd}@media(prefers-reduced-motion:reduce){.list-content .item-card.completing{transition:none;transform:none}.list-content .item-card.completed{animation:none}}.list-content .item-card.add-item-row{border-style:none;border-top:1px solid rgba(255,255,255,.05);margin-top:0;background:transparent;border-radius:0}.list-content .item-card.add-item-row:focus-within{background:#ffffff0d;border-style:solid;border-color:transparent;border-bottom:2px solid #667eea;border-image:none}.item-card{touch-action:pan-y;-webkit-user-select:none;user-select:none;transition:transform .2s cubic-bezier(.2,0,0,1),box-shadow .2s;position:relative;padding-left:.5rem!important}.active-items{touch-action:none}.swipeable-list-root{width:100%}.swipe-action-delete{display:flex;align-items:center;padding:0 2rem;color:#fff;font-weight:700;background-color:#ef4444;height:100%}.sortable-item-wrapper.sortable-placeholder .item-card{background:transparent;border:2px dashed rgba(255,255,255,.2);border-radius:8px;box-shadow:none;opacity:1;z-index:0}.sortable-item-wrapper.sortable-placeholder .item-card>*{opacity:0;visibility:hidden}.item-card.dragging{background:#ffffff0d!important;opacity:.8;box-shadow:0 4px 12px #00000080;z-index:9999}.item-card.sortable-placeholder{background:transparent;border:2px dashed rgba(255,255,255,.2);box-shadow:none;opacity:1}.item-card.sortable-placeholder>*{opacity:0}.item-card.dragging-source{opacity:.3;background:#f8f9fa;border:1px dashed #ccc}.drag-ghost{position:fixed;pointer-events:none;z-index:9999;background:#fff;box-shadow:0 5px 15px #00000026;border-radius:8px;padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between;border:1px solid #eee;width:300px}.drag-placeholder{height:58px;background:#4299e11a;border:2px dashed rgba(66,153,225,.4);border-radius:8px;margin-bottom:.75rem;animation:slideOpen .2s ease-out forwards;box-sizing:border-box}@keyframes slideOpen{0%{height:0;margin-bottom:0;opacity:0}to{height:58px;margin-bottom:.75rem;opacity:1}}.drag-ghost{background:#1e1e1e!important;border:1px solid rgba(255,255,255,.1);color:#fff;box-shadow:0 8px 20px #0006}.drag-ghost .item-name{color:#fff;font-size:1rem}.drag-ghost input[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;border:2px solid rgba(255,255,255,.4);border-radius:50%;margin-right:12px}@media(prefers-color-scheme:dark){.list-page{background:#1a1a1a}.list-page .page-header{background:#2a2a2a;box-shadow:0 2px 4px #0000004d}.list-page .header-content h1{color:#e0e0e0}.subtitle{color:#999}.list-content .item-card{background:#2a2a2a;border-color:#444}.list-content .item-card:hover{border-color:#007bff;box-shadow:0 2px 8px #007bff26}.list-content .item-card.selected{background:#1e3a5f;border-color:#007bff}.list-content .item-name{color:#e0e0e0}.list-content .item-card.completed{background:#1f1f1f;border-color:#333}.list-content .item-card.completed .item-name{color:#666;text-decoration-color:#555}.list-content .item-card.completed:hover{border-color:#444}.list-content .item-delete-btn{color:#666}.list-content .item-delete-btn:hover{color:#ff6b6b}.list-content input[type=checkbox]{border-color:#555;background:#1a1a1a}.list-content input[type=checkbox]:checked{background:#007bff;border-color:#007bff}.completed-header{color:#999}.add-item-section input{background:#2a2a2a;color:#e0e0e0;border-color:#444}.add-item-section input::placeholder{color:#666}.add-item-section .add-item-btn{color:#999}}.list-content .add-item-row{opacity:.7;border-style:none;background:transparent;cursor:text;position:relative;border-top:1px solid rgba(255,255,255,.05)}.list-content .add-item-row:hover{opacity:.9;background:#ffffff05}.list-content .add-item-row:focus-within{opacity:1;background:#ffffff0d;border-bottom:2px solid #667eea}.list-content .add-item-row .item-checkbox.placeholder{display:flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border-radius:50%;background:#ffffff0f}.list-content .add-item-row .plus-icon{width:auto;height:auto;border-radius:0;background:transparent;display:block;font-size:1.1rem;color:#ffffffa6;font-weight:600;line-height:1;transform:none}.item-name-input{flex:1}.item-name-input .item-input{background:transparent;border:none;border-bottom:2px solid rgba(255,255,255,.1);border-radius:0;padding:.25rem 0;color:#fff;width:100%;box-shadow:none}.item-name-input .item-input:focus{box-shadow:none;border-bottom-color:#667eea;outline:none}.item-name-input .item-input::placeholder{color:#fff6}.item-name-input .input-hint{display:none}.add-item-error{color:#fca5a5;font-size:.85rem;margin:.5rem 0 0;padding-left:1rem}.item-name-input .item-suggestions{top:auto;bottom:100%;margin-top:0;margin-bottom:8px;box-shadow:0 -4px 12px #00000026;background:#2a2a2a;border-color:#ffffff1a;color:#fff}.item-name-input .suggestion-item{color:#eee}.item-name-input .suggestion-item:hover,.item-name-input .suggestion-item.selected{background-color:#ffffff1a}.item-name-input .suggestion-item .usage-badge{background:#ffffff26;color:#ddd}.item-name-input .suggestion-item .last-used{color:#aaa}.item-name-input .no-suggestions{color:#aaa;background:#2a2a2a}.item-suggestions{position:absolute;top:100%;left:0;right:0;margin-top:4px;background:#fff;border:1px solid #ddd;border-radius:6px;box-shadow:0 4px 12px #00000026;max-height:200px;overflow-y:auto;z-index:1000}.item-suggestions.position-below{top:100%;bottom:auto;margin-top:4px;margin-bottom:0}.item-suggestions.position-above{top:auto;bottom:100%;margin-top:0;margin-bottom:4px}.suggestions-loading{padding:12px 16px;text-align:center;color:#666;font-size:14px}.suggestions-list{list-style:none;margin:0;padding:4px 0}.suggestion-item{padding:10px 16px;cursor:pointer;transition:background-color .15s ease;border-left:3px solid transparent}.suggestion-item:hover,.suggestion-item.selected{background-color:#f5f5f5;border-left-color:#007bff}.suggestion-item.selected{background-color:#e8f4fd}.suggestion-content{display:flex;align-items:center;justify-content:space-between;gap:12px}.suggestion-name{flex:1;font-size:14px;font-weight:500;color:#333;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.suggestion-meta{display:flex;align-items:center;gap:8px;flex-shrink:0}.usage-badge{display:inline-flex;align-items:center;justify-content:center;background:#e3f2fd;color:#1976d2;font-size:11px;font-weight:600;padding:2px 6px;border-radius:10px;min-width:28px}.last-used{font-size:11px;color:#999;white-space:nowrap}.no-suggestions{padding:16px;text-align:center;color:#999;font-size:13px}@media(prefers-color-scheme:dark){.item-suggestions{background:#2a2a2a;border-color:#444;box-shadow:0 4px 12px #0006}.suggestion-item:hover,.suggestion-item.selected{background-color:#3a3a3a}.suggestion-item.selected{background-color:#2d4a6d}.suggestion-name{color:#e0e0e0}.usage-badge{background:#1e3a5f;color:#64b5f6}.last-used,.no-suggestions,.suggestions-loading{color:#888}}.item-input-container{position:relative;width:100%}.item-input-container.focused{z-index:100}.item-input{width:100%;padding:10px 12px;border:2px solid #ddd;border-radius:6px;font-size:14px;font-family:inherit;transition:border-color .2s ease,box-shadow .2s ease}.item-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.item-input::placeholder{color:#999}.input-hint{margin-top:6px;font-size:11px;color:#666;display:flex;align-items:center;gap:4px;height:18px;min-height:18px;max-height:18px;overflow:hidden}.input-hint kbd{display:inline-block;padding:2px 6px;background:#f5f5f5;border:1px solid #ddd;border-radius:3px;font-size:10px;font-family:Courier New,monospace;font-weight:600;color:#333;box-shadow:0 1px 1px #0000001a}@media(prefers-color-scheme:dark){.item-input{background:#2a2a2a;border-color:#444;color:#e0e0e0}.item-input:focus{border-color:#4a9eff;box-shadow:0 0 0 3px #4a9eff33}.item-input::placeholder{color:#666}.input-hint{color:#888}.input-hint kbd{background:#3a3a3a;border-color:#555;color:#e0e0e0}}.toast{position:fixed;top:32px;left:50%;transform:translate(-50%);min-width:300px;max-width:90vw;background:#1f1f1f;color:#fff;padding:12px 20px;border-radius:50px;box-shadow:0 8px 24px #0006,0 2px 4px #0000001a;font-size:.95rem;z-index:2000;display:flex;align-items:center;gap:12px;cursor:default;-webkit-user-select:none;user-select:none;border:1px solid rgba(255,255,255,.1);transition:transform .3s cubic-bezier(.2,.9,.3,1),opacity .3s ease;animation:toast-slide-down .35s cubic-bezier(.2,.9,.3,1) forwards}@keyframes toast-slide-down{0%{transform:translate(-50%) translateY(-150%);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}@keyframes toast-slide-up{0%{transform:translate(-50%) translateY(150%);opacity:0}to{transform:translate(-50%) translateY(0);opacity:1}}.toast--error{background:#2a1010;border-color:#ef44444d}.toast__message{flex:1;font-weight:500;letter-spacing:.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#ffffffe6}.toast__message strong{color:#fff;font-weight:600}.toast__close{background:transparent;border:none;color:#fff6;font-size:1.25rem;line-height:1;cursor:pointer;width:24px;height:24px;border-radius:50%;display:flex;align-items:center;justify-content:center;padding:0;transition:all .2s;flex-shrink:0;margin-left:4px}.toast__close:hover{color:#fff;background:#ffffff1a}.toast--swiping{opacity:.8;transform:translate(calc(-50% + 50px));transition:none}.toast--dismissed{opacity:0;pointer-events:none;transform:translate(-50%) translateY(-20px) scale(.95)}@media(max-width:640px){.toast{top:auto;bottom:16px;min-width:0;width:calc(100vw - 24px);border-radius:16px;animation:toast-slide-up .35s cubic-bezier(.2,.9,.3,1) forwards}.toast--dismissed{transform:translate(-50%) translateY(20px) scale(.98)}}.toast__action{background:transparent;border:none;color:#818cf8;padding:6px 12px;border-radius:4px;font-size:.85rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;cursor:pointer;margin-left:4px;transition:background .2s ease,transform .1s ease;white-space:nowrap}.toast__action:hover{background:#818cf81a}.toast__action:active{transform:scale(.96)}.toast--error .toast__action{color:#fca5a5}.toast--error .toast__action:hover{background:#fca5a51a}.list-builder-page{min-height:100vh;background:#f5f5f5;padding-bottom:80px}.list-builder-content{max-width:1200px;margin:0 auto;padding:0 1.5rem}.list-name-section{background:#fff;padding:1.5rem;margin:1.5rem 0;border-radius:8px;box-shadow:0 1px 3px #0000001a}.list-name-input{width:100%;padding:.75rem 1rem;font-size:1rem;border:2px solid #ddd;border-radius:6px;transition:border-color .2s}.list-name-input:focus{outline:none;border-color:#007bff}.selection-toolbar{background:#fff;padding:1rem 1.5rem;margin:1.5rem 0;border-radius:8px;box-shadow:0 1px 3px #0000001a;display:flex;justify-content:space-between;align-items:center;gap:1rem}.selection-info{display:flex;align-items:center;gap:.75rem}.sort-controls{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.sort-controls label{color:#666;font-weight:500}.sort-select{padding:.5rem .75rem;border:1px solid #ddd;border-radius:6px;background:#fff;font-size:.9rem;cursor:pointer;transition:border-color .2s}.sort-select:focus{outline:none;border-color:#007bff}.selection-info input[type=checkbox]{width:18px;height:18px;cursor:pointer}.selection-info label{font-weight:500;color:#333;cursor:pointer;-webkit-user-select:none;user-select:none}@media(prefers-color-scheme:dark){.selection-info label{color:#e0e0e0}}.selection-info .count{margin-left:auto;color:#666;font-size:.9rem}.items-grid{display:grid;grid-template-columns:1fr;gap:.75rem}@media(min-width:768px){.items-grid{grid-template-columns:repeat(2,1fr)}}.item-card{background:#fff;border:2px solid #e0e0e0;border-radius:8px;padding:.75rem;display:flex;align-items:center;gap:.75rem;cursor:pointer;transition:all .2s}.item-card:hover{border-color:#007bff;box-shadow:0 2px 8px #007bff26}.item-card.selected{border-color:#007bff;background:#f0f8ff}.item-card.existing{opacity:.6}.item-card.existing.selected{opacity:1}.item-checkbox{width:20px;height:20px;cursor:pointer;flex-shrink:0}.item-name{flex:1;font-weight:500;font-size:.95rem;color:#333;word-break:break-word}.existing-badge{display:inline-block;background:#e3f2fd;color:#1976d2;font-size:.7rem;padding:2px 6px;border-radius:10px;white-space:nowrap;flex-shrink:0}.action-bar{position:fixed;bottom:0;left:0;right:0;background:#fff;box-shadow:0 -2px 8px #0000001a;z-index:100}.action-bar-content{max-width:1200px;margin:0 auto;padding:1rem 1.5rem;display:flex;gap:1rem;justify-content:flex-end}.cancel-btn{padding:.75rem 1.5rem;font-size:1rem;border:2px solid #ddd;background:#fff;color:#666;border-radius:6px;cursor:pointer;transition:all .2s;font-weight:500}.cancel-btn:hover:not(:disabled){border-color:#999;color:#333}.submit-btn{padding:.75rem 1.5rem;font-size:1rem;border:none;background:#007bff;color:#fff;border-radius:6px;cursor:pointer;transition:all .2s;font-weight:500}.submit-btn:hover:not(:disabled){background:#0056b3}.submit-btn:disabled,.cancel-btn:disabled{opacity:.5;cursor:not-allowed}.empty-state{text-align:center;padding:3rem 1rem;color:#666}.loading-spinner{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;gap:1rem}.spinner{width:40px;height:40px;border:3px solid #f3f3f3;border-top:3px solid #007bff;border-radius:50%;animation:spin 1s linear infinite}@media(prefers-color-scheme:dark){.list-builder-page{background:#1a1a1a}.list-builder-page .page-header,.list-name-section,.selection-toolbar,.action-bar{background:#2a2a2a;box-shadow:0 2px 4px #0000004d}.list-builder-page .header-content h1,.item-name{color:#e0e0e0}.subtitle,.selection-info .count,.sort-controls label{color:#999}.sort-select,.list-name-input{background:#333;color:#e0e0e0;border-color:#444}.item-card{background:#2a2a2a;border-color:#444}.item-card:hover{border-color:#007bff}.item-card.selected{background:#1e3a5f}.cancel-btn{background:#2a2a2a;border-color:#444;color:#999}.cancel-btn:hover:not(:disabled){border-color:#666;color:#e0e0e0}}@media(max-width:640px){.list-builder-page{padding-bottom:90px}.list-builder-page .page-header{padding:1rem}.list-builder-page .header-content h1{font-size:1.25rem}.list-builder-page .subtitle{font-size:.85rem}.list-name-section{margin:.75rem;padding:0;background:transparent;box-shadow:none}.list-name-input{font-size:16px;background:#2a2a2a;border-color:#444}.selection-toolbar{margin:0 .75rem .75rem;padding:.75rem 0;flex-wrap:wrap;gap:.75rem;background:transparent;box-shadow:none}.selection-info{width:100%;flex-wrap:wrap;gap:.625rem}.selection-info .count{margin-left:0;font-size:.85rem}.sort-controls{width:100%;gap:.625rem}.sort-controls label{flex-shrink:0}.sort-select{flex:1;font-size:16px}.suggestions-list{padding:0 .75rem}.items-grid{grid-template-columns:1fr;gap:.5rem}.item-card{padding:.75rem;background:transparent;border:1px solid #333;border-radius:6px}.item-card:hover{background:#ffffff05}.item-card.selected{background:#007bff1a;border-color:#007bff}.item-name{font-size:1rem}.action-bar{padding:.875rem;gap:.75rem}.cancel-btn,.submit-btn{flex:1;min-width:0}}@media(min-width:641px)and (max-width:768px){.items-grid{grid-template-columns:repeat(2,1fr)}.action-bar{gap:.875rem}}@media(max-width:640px)and (prefers-color-scheme:dark){.list-name-input{background:#2a2a2a;border-color:#444}}#root{width:100%;min-height:100vh;overflow-x:hidden}.app-container{min-height:100vh;display:flex;flex-direction:column;overflow-x:hidden}.app-header{background:#1e1e1ecc;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-bottom:1px solid rgba(255,255,255,.08);color:#fff;padding:.75rem 0;position:sticky;top:0;z-index:100}.header-content{max-width:1200px;margin:0 auto;padding:0 1rem;display:flex;justify-content:space-between;align-items:center;gap:1rem}.header-right{display:flex;align-items:center;gap:1rem}.connection-status{display:flex;align-items:center;gap:.5rem}.status-dot{width:10px;height:10px;border-radius:50%;cursor:help;transition:all .3s ease;box-shadow:0 0 8px currentColor}.status-dot.online{background:#4ade80;color:#4ade80}.status-dot.api-down{background:#fbbf24;color:#fbbf24}.status-dot.offline{background:#9ca3af;color:#9ca3af}.status-dot:hover{transform:scale(1.2)}.sync-badge{min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:#fbbf24e6;color:#1a1a1a;font-size:.75rem;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.sync-badge:hover{transform:scale(1.1);background:#fbbf24;box-shadow:0 2px 8px #fbbf2466}.sync-alert-badge{min-width:22px;height:22px;padding:0;background:transparent;color:#ef4444;font-size:1.1rem;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease}.sync-alert-badge:hover{transform:scale(1.15);color:#dc2626}.app-title{margin:0;font-size:1.5rem;font-weight:700;background:linear-gradient(45deg,#fff,#f0f0f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.app-logo{height:40px;width:auto;display:block}.user-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#ff6b6b,#4ecdc4);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:1rem;flex-shrink:0;cursor:pointer}.avatar-spinner{width:20px;height:20px;border:2px solid rgba(255,255,255,.3);border-top:2px solid white;border-radius:50%;animation:spin 1s linear infinite}.user-info{display:flex;align-items:center;gap:.5rem;background:#ffffff1a;padding:.4rem .75rem;border-radius:25px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);position:relative}.user-details{position:absolute;top:100%;right:0;background:#fff;color:#333;padding:.75rem;border-radius:8px;box-shadow:0 4px 12px #00000026;min-width:200px;z-index:1000;margin-top:.5rem}.user-details .logout-btn{background-color:#f44336;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem;width:100%;margin-top:.5rem;transition:background-color .3s ease}.user-details .logout-btn:hover{background-color:#d32f2f}.user-name{font-weight:600;font-size:.9rem}.user-email{font-size:.8rem;opacity:.8}.login-btn,.logout-btn{background-color:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);padding:.4rem .85rem;border-radius:20px;cursor:pointer;font-size:.85rem;transition:all .3s ease;white-space:nowrap}.login-btn:hover,.logout-btn:hover{background-color:#ffffff4d;transform:translateY(-1px)}.app-main{flex:1;padding:2rem;max-width:1200px;margin:0 auto;width:100%;box-sizing:border-box;overflow-x:hidden}.hero-section{position:relative;text-align:center;margin-bottom:3rem;padding:clamp(2rem,4vw,3.5rem);border-radius:24px;background:radial-gradient(1200px 600px at 20% -20%,rgba(99,102,241,.25),transparent 60%),radial-gradient(900px 500px at 110% 10%,rgba(16,185,129,.18),transparent 55%),linear-gradient(180deg,#ffffffe6,#ffffffbf);border:1px solid rgba(15,23,42,.08);box-shadow:0 20px 60px #0f172a1f,0 2px 10px #0f172a0f;overflow:hidden}.hero-section:before{content:"";position:absolute;inset:-2px;background:linear-gradient(135deg,#6366f138,#10b9812e,#3b82f62e);filter:blur(40px);opacity:.7;pointer-events:none}.welcome-content{position:relative;max-width:960px;margin:0 auto}.welcome-logo{width:88px;height:88px;margin:0 auto 1.25rem;display:block;filter:drop-shadow(0 10px 20px rgba(15,23,42,.18))}.welcome-title{margin:.25rem 0 .75rem;font-size:clamp(2.2rem,4vw,3.2rem);font-weight:800;letter-spacing:-.03em;color:#0f172a}.welcome-description{margin:0 auto 2.25rem;max-width:70ch;font-size:1.1rem;line-height:1.7;color:#0f172abf}.features-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin:0 auto 2.25rem}.feature-card{text-align:left;padding:1.25rem 1.25rem 1.1rem;border-radius:16px;background:#ffffffb8;border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 30px #0f172a14;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);transition:transform .16s ease,box-shadow .16s ease}.feature-card:hover{transform:translateY(-3px);box-shadow:0 18px 40px #0f172a1f}.feature-icon{width:44px;height:44px;border-radius:12px;display:grid;place-items:center;font-size:1.35rem;background:linear-gradient(135deg,#6366f12e,#10b98129);border:1px solid rgba(15,23,42,.08);margin-bottom:.9rem}.feature-card h3{margin:0 0 .35rem;font-size:1.05rem;font-weight:700;color:#0f172a}.feature-card p{margin:0;font-size:.95rem;line-height:1.55;color:#0f172ab3}.cta-button{appearance:none;border:none;border-radius:999px;padding:.9rem 1.4rem;font-size:1rem;font-weight:700;letter-spacing:.01em;color:#fff;cursor:pointer;background:linear-gradient(135deg,#4f46e5,#2563eb);box-shadow:0 16px 40px #2563eb38;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}.cta-button:hover{transform:translateY(-2px);box-shadow:0 22px 55px #2563eb47;filter:brightness(1.02)}.cta-button:active{transform:translateY(0)}.cta-button:focus-visible{outline:3px solid rgba(99,102,241,.35);outline-offset:3px}@media(max-width:820px){.features-grid{grid-template-columns:1fr}.feature-card{text-align:center}.feature-icon{margin-left:auto;margin-right:auto}}@media(prefers-reduced-motion:reduce){.feature-card,.cta-button{transition:none}.feature-card:hover,.cta-button:hover{transform:none}}.hero-section h2{font-size:2.5rem;margin:1rem 0;color:#333}.hero-description{font-size:1.2rem;color:#666;max-width:600px;margin:0 auto;line-height:1.6}.dashboard-section{margin-bottom:3rem}.card{background:#1e1e1e99;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:12px;padding:2rem;box-shadow:0 4px 20px #0003;border:1px solid rgba(255,255,255,.08);color:#ffffffde}.card h3{margin-top:0;color:#fff;font-size:1.5rem}.logo{height:4em;padding:.5em;will-change:filter;transition:filter .3s}.logo:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.react:hover{filter:drop-shadow(0 0 2em #61dafbaa)}@keyframes logo-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion:no-preference){a:nth-of-type(2) .logo{animation:logo-spin infinite 20s linear}}@media(max-width:768px){.header-content{padding:0 .75rem}.app-logo{height:32px}.user-info{padding:.3rem .6rem;gap:.4rem}.user-avatar{width:32px;height:32px;font-size:.9rem}.user-name{font-size:.85rem}.login-btn,.logout-btn{padding:.35rem .75rem;font-size:.8rem}.app-main{padding:1rem}.hero-section h2{font-size:2rem}.hero-description{font-size:1rem}.scenarios-grid,.lists-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.back-btn{padding:.4rem .65rem;font-size:1rem}}@media(max-width:480px){.app-logo{height:28px}.user-avatar{width:30px;height:30px;font-size:.85rem}.user-info{padding:.25rem .5rem}.login-btn,.logout-btn{padding:.3rem .6rem;font-size:.75rem}.user-name{display:none}.scenarios-grid{grid-template-columns:1fr;padding:0 .75rem;gap:1rem}.lists-grid{grid-template-columns:1fr;gap:1rem}.scenario-tile{padding:1rem}.scenarios-header{flex-direction:column;align-items:flex-start;gap:1rem;padding:0 .75rem}.scenarios-header h2{font-size:1.5rem}.back-btn{padding:.4rem;width:36px;height:36px;display:flex;align-items:center;justify-content:center;font-size:1.2rem}.back-btn-text{display:none}}.scenarios-section{padding:2rem 0}.scenarios-header{display:flex;justify-content:space-between;align-items:center;width:100%;margin:0 auto 2rem;padding:0 1rem;box-sizing:border-box}.scenarios-header h2{margin:0;color:#ffffffde;font-size:2rem;font-weight:600}.create-btn{background:#667eea26;color:#a3b8ff;border:1px solid rgba(102,126,234,.3);padding:.6rem 1.25rem;border-radius:12px;cursor:pointer;font-size:.9rem;font-weight:600;transition:all .2s ease;display:flex;align-items:center;gap:.5rem}.create-btn:hover{background:#667eea40;color:#fff;border-color:#667eea80;transform:translateY(-1px);box-shadow:0 4px 12px #667eea26}.create-btn:hover{transform:translateY(-2px)}.secondary-btn{background:#ffffff1a;color:#ffffffde;border:1px solid rgba(255,255,255,.2);padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;transition:all .2s ease}.secondary-btn:hover{background:#fff3;transform:translateY(-2px)}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:9999;overflow:hidden}.modal-content{background:#2a2a2a;border-radius:12px;box-shadow:0 10px 30px #0000004d;max-width:500px;width:90%;max-height:90vh;display:flex;flex-direction:column;overflow:visible;box-sizing:border-box;color:#ffffffde}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:1.5rem;border-bottom:1px solid #404040}.modal-header h3{margin:0;color:#ffffffde;font-size:1.25rem;font-weight:600}.close-btn{background:none;border:none;font-size:1.5rem;cursor:pointer;color:#fff9;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s ease}.close-btn:hover{background:#ffffff1a;color:#ffffffde}.modal-body{padding:1.5rem}.form-group{margin-bottom:1.5rem;overflow:visible}.form-group label{display:block;margin-bottom:.5rem;color:#ffffffde;font-weight:500}.form-input,.form-textarea{width:100%;padding:.75rem;border:1px solid #555;border-radius:6px;font-size:1rem;font-family:inherit;transition:border-color .2s ease;box-sizing:border-box;background-color:#404040;color:#ffffffde}.form-input:focus,.form-textarea:focus{outline:none;border-color:#667eea;box-shadow:0 0 0 2px #667eea4d}.form-textarea{min-height:100px;resize:vertical}.modal-footer{display:flex;justify-content:flex-end;gap:.75rem;padding:1.5rem;border-top:1px solid #404040}.cancel-btn{background:#6c757d;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s ease}.cancel-btn:hover{background:#5a6268}.submit-btn{background:#28a745;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:.9rem;font-weight:500;transition:background-color .2s ease}.submit-btn:hover:not(:disabled){background:#218838}.submit-btn:disabled{background:#6c757d;cursor:not-allowed}.scenarios-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;width:100%;margin:0 auto;padding:0 1rem;box-sizing:border-box}.scenario-tile{background:#ffffff08;border-radius:16px;padding:1.5rem;box-shadow:0 4px 6px #0003;border:1px solid rgba(255,255,255,.08);transition:all .2s cubic-bezier(.4,0,.2,1);display:flex;flex-direction:column;gap:1rem;position:relative;overflow:hidden}.scenario-tile:hover{transform:translateY(-4px);background:#ffffff0d;border-color:#ffffff26;box-shadow:0 12px 30px #0006}.create-tile{justify-content:center;align-items:center;border:2px dashed rgba(255,255,255,.15);background:transparent;cursor:pointer;min-height:160px}.create-tile:hover{border-color:#667eea;background:#667eea0d}.create-content{display:flex;flex-direction:column;align-items:center;gap:1rem}.plus-icon{width:48px;height:48px;border-radius:50%;background:#ffffff1a;color:#fff;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:300;transition:all .2s ease}.create-tile:hover .plus-icon{background:#667eea;transform:scale(1.1) rotate(90deg)}.create-tile h3{color:#ffffffb3;font-weight:500;font-size:1.1rem}.create-tile:hover h3{color:#667eea}.scenario-content{width:100%;box-sizing:border-box;overflow-x:hidden}.scenario-content.clickable{cursor:pointer}.scenario-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem;gap:1rem}.scenario-tile h3{margin:0;color:#fffffff2;font-size:1.25rem;font-weight:600;flex:1;line-height:1.3}.role-badge{padding:4px 8px;border-radius:6px;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;border:1px solid transparent}.role-badge.owner{background:#28a74526;color:#4ade80;border-color:#28a7454d}.role-badge.collaborator{background:#17a2b826;color:#67e8f9;border-color:#17a2b84d}.scenario-tile p{margin:0;color:#ffffff80;line-height:1.5;font-size:.95rem}.no-scenarios{grid-column:1 / -1;text-align:center;padding:3rem;background:#f8f9fa;border-radius:12px;border:2px dashed #dee2e6}.no-scenarios p{color:#6c757d;font-size:1.1rem;margin:0}.loading-spinner{grid-column:1 / -1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:3rem;gap:1rem}.spinner{width:40px;height:40px;border:4px solid #f3f3f3;border-top:4px solid #667eea;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.loading-spinner p{color:#6c757d;margin:0;font-size:1rem}.back-btn{background:#ffffff1a;color:#ffffffde;border:1px solid rgba(255,255,255,.2);padding:.5rem .85rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:all .2s ease;white-space:nowrap}.back-btn:hover{background:#fff3}.scenario-title-group{display:flex;align-items:center;gap:.75rem}.scenario-title{margin:0;font-size:2rem;font-weight:600;color:#ffffffde}.edit-btn{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#ffffffde;border-radius:6px;padding:.375rem .625rem;font-size:1.125rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center}.edit-btn:hover{background:#fff3;border-color:#ffffff4d;transform:translateY(-1px)}.leave-btn{background:#ef44441a;border:1px solid rgba(239,68,68,.3);color:#ef4444e6;border-radius:6px;padding:.375rem .75rem;font-size:.875rem;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;font-weight:500}.leave-btn:hover{background:#ef444433;border-color:#ef444480;transform:translateY(-1px)}.delete-btn{background:#ef4444e6;color:#fff;border:none;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;border-radius:8px;cursor:pointer;transition:all .2s ease}.delete-btn:hover:not(:disabled){background:#ef4444;transform:translateY(-2px);box-shadow:0 4px 12px #ef444466}.delete-btn:disabled{opacity:.6;cursor:not-allowed}.scenario-description{margin-bottom:1.5rem;padding:0;background:transparent;border-radius:0;border:none}.scenario-description p{margin:0;color:#ffffffb3;font-size:1rem;line-height:1.5}.lists-section,.completed-lists-section{margin-bottom:3rem}.lists-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.lists-header h2{margin:0;color:#ffffffde;font-size:1.5rem;font-weight:600}.header-actions{display:flex;gap:.75rem;align-items:center}.create-btn.secondary{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#ffffffde}.create-btn.secondary:hover{background:#ffffff26;border-color:#ffffff4d}.lists-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1.5rem;width:100%;box-sizing:border-box;overflow-x:hidden}.list-tile{background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:1.5rem;transition:transform .2s ease,box-shadow .2s ease;cursor:pointer}.list-tile:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0003}.list-tile.completed{opacity:.7;border-color:#667eea4d}.list-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:.5rem}.list-header h3{margin:0;color:#ffffffde;font-size:1.2rem;font-weight:600}.completed-badge{background:#667eea;color:#fff;padding:.25rem .5rem;border-radius:12px;font-size:.75rem;font-weight:500}.list-tile p{margin:.5rem 0;color:#ffffffb3;font-size:.9rem}.list-meta{margin-top:1rem;padding-top:.5rem;border-top:1px solid rgba(255,255,255,.1);display:flex;gap:1rem;flex-wrap:wrap;align-items:center}.list-meta span{color:#fff9;font-size:.8rem}.item-count{color:#ffffffbf;font-weight:600;font-size:.85rem}.no-lists{grid-column:1 / -1;text-align:center;padding:3rem;background:#ffffff0d;border:2px dashed rgba(255,255,255,.2);border-radius:12px}.no-lists p{color:#ffffffb3;margin:0;font-size:1.1rem}.completed-lists-section h2{color:#667eea}.invite-status-container{text-align:center;padding:3rem 2rem;max-width:500px;margin:0 auto}.success-icon,.error-icon{width:80px;height:80px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:3rem;margin:0 auto 1.5rem;font-weight:700}.success-icon{background-color:#10b981;color:#fff}.error-icon{background-color:#ef4444;color:#fff}.invite-status-container h2{color:#667eea;margin-bottom:1rem}.invite-status-container p{color:#ffffffd9;font-size:1.1rem;margin-bottom:.5rem}.redirect-message{color:#fff9;font-size:.95rem;font-style:italic;margin-top:1rem}.sync-modal .modal-body{max-height:500px;overflow-y:auto}.sync-items-list{display:flex;flex-direction:column;gap:.25rem}.sync-item{background:#667eea1a;border:none;border-left:3px solid rgba(102,126,234,.3);border-radius:4px;padding:.5rem .75rem;transition:all .2s ease;cursor:pointer;position:relative}.sync-item:hover{background:#667eea26;border-left-color:#667eea99}.sync-item-header{display:flex;align-items:center;gap:.75rem;width:100%}.sync-item-header .status-icon{font-size:1rem;width:1.25rem;text-align:center}.sync-item-header .description{flex:1;font-size:.9rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sync-item-header .chevron{font-size:.75rem;color:#ffffff80;transition:transform .2s ease}.sync-item.expanded .chevron{transform:rotate(180deg)}.sync-item-details{margin-top:.75rem;padding-top:.75rem;border-top:1px solid rgba(255,255,255,.1);animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.detail-row{display:flex;justify-content:space-between;margin-bottom:.25rem;font-size:.8rem;color:#ffffffb3}.detail-row .value.mono{font-family:monospace;font-size:.75rem}.sync-item.pending{border-left-color:#fbbf24}.sync-item.success{border-left-color:#10b981}.sync-item.discarded,.sync-item.failed{border-left-color:#ef4444}.sync-error{margin-top:.5rem;color:#fca5a5;font-size:.8rem;background:#ef44441a;padding:.5rem;border-radius:4px}.sync-item-actions{display:flex;gap:.5rem;margin-top:.75rem;justify-content:flex-end}.retry-btn,.discard-btn{padding:.375rem .75rem;border:none;border-radius:4px;font-size:.8rem;cursor:pointer;transition:all .2s}@media(max-width:600px){.sync-modal{width:95vw;max-height:90vh;padding:1rem;margin-top:1rem}.sync-item-header .description{font-size:.85rem}}.retry-btn{background:#10b981;color:#fff}.retry-btn:hover{background:#059669}.discard-btn{background:#ef4444cc;color:#fff}.discard-btn:hover{background:#ef4444}.discarded-note{color:#ef4444cc;font-style:italic;font-size:.85em}.status-icon{display:inline-block;width:20px;text-align:center;margin-right:.5rem;font-weight:700}.status-icon.success{color:#10b981}.status-icon.discarded,.status-icon.failed{color:#ef4444}.sync-error{margin-top:.5rem;padding:.5rem;background:#ef44441a;border-radius:4px;font-size:.7rem;color:#fca5a5;font-family:monospace}.no-items{text-align:center;color:#fff9;font-style:italic;padding:2rem}.list-content{max-width:800px;margin:0 auto;padding:2rem 1rem}.list-description{margin-bottom:1.5rem;padding:0;background:transparent;border-radius:0;border:none}.list-description p{margin:0;color:#ffffffb3;font-size:.95rem;line-height:1.5}.items-section{margin-top:2rem}.items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.items-header h2{margin:0;font-size:1.5rem;color:#fffffff2}.items-list{display:flex;flex-direction:column;gap:1.5rem}.active-items,.completed-items{display:flex;flex-direction:column;gap:.75rem}.completed-items{margin-top:2rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.1)}.completed-items h3{margin:0 0 1rem;font-size:1.25rem;color:#ffffffb3;font-weight:500}.item-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:#667eea1a;border:1px solid rgba(102,126,234,.3);border-radius:8px;transition:all .2s ease}.item-card:hover{background:#667eea26;border-color:#667eea80;transform:translate(4px)}.item-card.completed{opacity:.6}.item-card.completed .item-name{text-decoration:line-through;color:#ffffff80}.item-checkbox{flex-shrink:0}.item-checkbox input[type=checkbox]{width:20px;height:20px;cursor:pointer;accent-color:#667eea}.item-name{flex:1;font-size:1rem;color:#ffffffe6;word-break:break-word}.item-delete-btn{flex-shrink:0;width:28px;height:28px;border:none;background:#ef444433;color:#ef4444e6;border-radius:4px;font-size:1.5rem;line-height:1;cursor:pointer;transition:all .2s ease;display:flex;align-items:center;justify-content:center;padding:0}.item-delete-btn:hover{background:#ef44444d;transform:scale(1.1)}.sync-notifications{position:fixed;top:80px;right:20px;z-index:10000;max-width:400px;display:flex;flex-direction:column;gap:10px}.sync-notification{background:#fff;border-radius:8px;box-shadow:0 4px 12px #00000026;padding:16px;animation:slideIn .3s ease-out}.sync-notification.error{border-left:4px solid #f44336}.notification-content{display:flex;flex-direction:column;gap:8px}.notification-header{display:flex;justify-content:space-between;align-items:center}.notification-header strong{color:#f44336;font-size:14px}.notification-close{background:none;border:none;font-size:24px;line-height:1;color:#666;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center}.notification-close:hover{color:#f44336}.notification-body{font-size:13px;color:#333}.notification-body p{margin:4px 0}.notification-body em{color:#666;font-style:italic}.notification-reason{font-size:12px;color:#666;margin-top:8px!important}@keyframes slideIn{0%{transform:translate(400px);opacity:0}to{transform:translate(0);opacity:1}}.update-prompt{position:fixed;bottom:24px;left:50%;transform:translate(-50%);background:#222;color:#fff;padding:16px 32px;border-radius:8px;box-shadow:0 2px 8px #0003;z-index:1000;display:flex;align-items:center}.update-prompt__content{display:flex;gap:16px;align-items:center}.update-prompt__reload{background:#4caf50;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer}.update-prompt__reload:hover{background:#388e3c}.update-prompt__dismiss{background:#888;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer}.update-prompt__dismiss:hover{background:#555}
