:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#1f2937;background:#fff;font-synthesis:none;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,summary{cursor:pointer}button{border:0;border-radius:10px;padding:.7rem 1rem;color:#fff;background:#1d4ed8;font-weight:600}button:hover{filter:brightness(.94)}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{color:#475569;background:transparent;padding:.4rem;font-size:.8rem}button.icon-button{display:grid;place-items:center;min-width:44px;min-height:44px}.icon-button svg{width:20px;height:20px}a{color:inherit;text-decoration:none}input{width:100%;min-width:0;border:1px solid #d1d5db;border-radius:10px;background:#fff;padding:.75rem;color:inherit}:focus-visible{outline:3px solid #2563eb;outline-offset:3px}h1{margin:0 0 1.5rem;font-size:clamp(1.8rem,3.5vw,2.8rem);letter-spacing:-.04em;overflow-wrap:anywhere}h2{font-size:1rem}.layout{min-height:100dvh}.topbar{display:flex;align-items:center;gap:1rem;padding:.5rem 1rem;border-bottom:1px solid #e5e7eb;background:#fff}.menu-button{display:grid;place-items:center;width:44px;height:44px;padding:.65rem;flex-shrink:0}.hamburger{display:grid;gap:5px;width:21px}.hamburger span{display:block;height:2px;background:currentColor;border-radius:2px}.sidebar{position:fixed;inset:0 auto 0 0;margin:0;width:min(340px,calc(100vw - 2rem));height:100dvh;max-height:100dvh;max-width:none;padding:1.5rem;border:0;border-right:1px solid #e5e7eb;background:#fff;color:inherit;overflow-y:auto}.sidebar::backdrop,.action-modal::backdrop{background:#0f172a59}body:has(dialog[open]){overflow:hidden}.header-title{min-width:0;font-size:1.25rem;line-height:1.4;font-weight:700;letter-spacing:-.02em;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-heading{display:flex;align-items:center;gap:.75rem}.sidebar-heading .close-menu-button{margin-left:auto;min-width:44px;min-height:44px}nav{display:grid;gap:.35rem;margin-bottom:1.5rem}nav a{padding:.75rem;border-radius:9px;overflow-wrap:anywhere}nav a:hover,nav a.active{background:#eff6ff;color:#1e40af}.folder-entry{display:flex;align-items:center;gap:.25rem}.folder-entry a{flex:1;min-width:0}label{font-size:.8rem}main{padding:.75rem 1rem;max-width:1000px;width:100%;margin:0 auto}.list-actions{display:flex;align-items:center;gap:.75rem;margin:.75rem 0}.list-search{position:relative;flex:1;min-width:0}.list-search input{min-height:44px;padding-right:2.75rem}.clear-search{position:absolute;inset:0 0 0 auto;width:44px;padding:0;background:transparent;color:#475569}.add-item-button,.add-folder-button{display:grid;place-items:center;width:44px;height:44px;padding:0;flex-shrink:0;font-size:1.75rem;line-height:1}.state-tabs{display:flex;gap:.5rem;border-bottom:1px solid #d1d5db}.state-tabs button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;gap:.6rem;background:transparent;color:#475569;border-radius:10px 10px 0 0;border-bottom:3px solid transparent;overflow-wrap:anywhere}.state-tabs button[aria-selected=true]{background:#eff6ff;color:#1e40af;border-bottom-color:#1d4ed8}.state-tabs .count{flex-shrink:0}.count{font-size:.7rem;background:#e5e7eb;border-radius:5px;padding:.15rem .4rem}.items{list-style:none;padding:0;display:grid;gap:.6rem;overflow:clip;overflow-clip-margin:6px}.item{display:flex;border:1px solid #e5e7eb;background:#fff;border-radius:12px;align-items:center;padding-right:.5rem}.item-moving.item-leaving{animation:item-move-out .2s ease-in forwards;pointer-events:none}@keyframes item-move-out{to{opacity:0;transform:translate(var(--move-direction))}}@media(prefers-reduced-motion:reduce){.item-moving.item-leaving{animation:none}}button.item-toggle{display:flex;align-items:center;gap:.8rem;padding:1rem;text-align:left;background:transparent;color:inherit;flex:1;min-width:0;font-weight:400;overflow-wrap:anywhere}.item-direction{width:20px;height:20px;flex-shrink:0;color:#475569}.item-direction.points-left{transform:rotate(180deg)}.delete{flex-shrink:0}.item-actions{display:flex;align-items:center;gap:.25rem;padding-right:.25rem;flex-shrink:0}.action-modal{width:min(440px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:1.25rem;border:1px solid #d1d5db;border-radius:16px;color:inherit;background:#fff;overflow-y:auto}.modal-header,.modal-actions{display:flex;align-items:center;gap:.75rem}.modal-header{justify-content:space-between;margin-bottom:1rem}.modal-header h2{margin:0;font-size:1.15rem}.modal-form{display:grid;gap:.6rem}.modal-form p{margin:.25rem 0 .75rem;overflow-wrap:anywhere}.modal-actions{justify-content:flex-end;margin-top:.75rem;flex-wrap:wrap}button.danger{background:#a63d30}.empty-state{padding:2rem 1rem;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center;font-size:.85rem}.hint{color:#64748b;font-size:.8rem;line-height:1.7}.error{padding:.8rem;border-radius:9px;background:#fbe9e5;color:#973a2b;font-size:.85rem;line-height:1.5}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
