@import "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap";
:root{--font-mono:"IBM Plex Mono",monospace;--bg:#fff;--fg:#000;--border:#000;--muted:#666;--hover:#f5f5f5;--radius:0}[data-theme=dark]{--bg:#0a0a0a;--fg:#fff;--border:#333;--muted:#888;--hover:#111}*{box-sizing:border-box;margin:0;padding:0}html,body{font-family:var(--font-mono);background:var(--bg);color:var(--fg);-webkit-font-smoothing:antialiased;font-size:15px;line-height:1.5}.app{max-width:720px;padding:1rem;padding-bottom:calc(4rem + env(safe-area-inset-bottom));margin:0 auto}.header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem 0;display:flex}.header h1{letter-spacing:-.02em;font-size:.9rem;font-weight:600}.header-actions{gap:.5rem;display:flex}button,.btn{font-family:var(--font-mono);border:1px solid var(--border);color:var(--fg);cursor:pointer;background:0 0;padding:.4rem .6rem;font-size:.75rem;transition:background .1s}button:hover,.btn:hover{background:var(--hover)}button:disabled{opacity:.4;cursor:not-allowed}.btn-primary{background:var(--fg);color:var(--bg)}.btn-primary:hover{opacity:.85}.btn-icon{justify-content:center;align-items:center;width:32px;height:32px;padding:0;font-size:1rem;display:flex}input,textarea{font-family:var(--font-mono);border:1px solid var(--border);color:var(--fg);background:0 0;width:100%;padding:.5rem;font-size:.85rem}input:focus,textarea:focus{border-color:var(--fg);outline:none}input::placeholder{color:var(--muted)}.capture{gap:.5rem;margin-bottom:1.5rem;display:flex}.capture input{flex:1}.capture button{flex-shrink:0}.filters{flex-wrap:wrap;gap:.35rem;margin-bottom:1rem;display:flex}.filter{border:1px solid var(--border);color:var(--muted);cursor:pointer;background:0 0;padding:.25rem .5rem;font-size:.7rem;transition:all .1s}.filter:hover{color:var(--fg)}.filter.active{background:var(--fg);color:var(--bg);border-color:var(--fg)}.filter-count{opacity:.6;margin-left:.25rem}.links{flex-direction:column;display:flex}.link{border-bottom:1px solid var(--border);align-items:flex-start;gap:.75rem;padding:.75rem 0;display:flex;position:relative}.link:hover{background:var(--hover);margin:0 -.5rem;padding-left:.5rem;padding-right:.5rem}.link-checkbox{width:14px;height:14px;accent-color:var(--fg);flex-shrink:0;margin-top:.2rem}.link-content{flex:1;min-width:0}.link-title{color:var(--fg);text-overflow:ellipsis;white-space:nowrap;font-size:.85rem;font-weight:500;text-decoration:none;display:block;overflow:hidden}.link-title:hover{text-decoration:underline}.link-meta{color:var(--muted);flex-wrap:wrap;gap:.5rem;margin-top:.25rem;font-size:.7rem;display:flex}.link-domain{opacity:.7}.link-tags{gap:.25rem;display:flex}.link-tag{border:1px solid var(--border);cursor:pointer;background:0 0;padding:0 .25rem;font-size:.6rem}.link-tag:hover{border-color:var(--fg)}.link-bucket{border:1px solid var(--border);cursor:pointer;color:var(--muted);white-space:nowrap;background:0 0;padding:.15rem .35rem;font-size:.65rem}.link-bucket:hover{border-color:var(--fg);color:var(--fg)}.link-actions{opacity:0;gap:.25rem;transition:opacity .1s;display:flex}.link:hover .link-actions{opacity:1}.link-action{width:24px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border:1px solid #0000;justify-content:center;align-items:center;padding:0;font-size:.8rem;display:flex}.link-action:hover{border-color:var(--border);color:var(--fg)}.link-action.delete:hover{color:#c00;border-color:#c00}.empty{text-align:center;color:var(--muted);padding:3rem 1rem;font-size:.8rem}.bulk-bar{background:var(--bg);border-top:1px solid var(--border);padding:.75rem 1rem;padding-bottom:calc(.75rem + env(safe-area-inset-bottom));z-index:100;justify-content:space-between;align-items:center;gap:.5rem;display:flex;position:fixed;bottom:0;left:0;right:0}.bulk-count{color:var(--muted);font-size:.75rem}.bulk-actions{gap:.5rem;display:flex}.assign-menu{background:var(--bg);border:1px solid var(--border);z-index:50;min-width:160px;margin-top:.25rem;position:absolute;top:100%;right:0}.assign-section{border-bottom:1px solid var(--border)}.assign-section:last-child{border-bottom:none}.assign-label{color:var(--muted);text-transform:uppercase;letter-spacing:.05em;padding:.5rem;font-size:.6rem}.assign-option{text-align:left;width:100%;color:var(--fg);cursor:pointer;background:0 0;border:none;padding:.5rem;font-size:.75rem;display:block}.assign-option:hover{background:var(--hover)}.assign-option.active{font-weight:600}.modal-overlay{z-index:200;background:#00000080;justify-content:center;align-items:flex-end;padding:0;display:flex;position:fixed;inset:0}.modal{background:var(--bg);border:1px solid var(--border);width:100%;max-width:400px;max-height:80vh;overflow-y:auto}.modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:.75rem;display:flex}.modal-title{font-size:.85rem;font-weight:600}.modal-close{cursor:pointer;color:var(--muted);background:0 0;border:none;width:24px;height:24px;padding:0;font-size:1.25rem}.modal-body{padding:.75rem}.settings-tabs{border-bottom:1px solid var(--border);display:flex}.settings-tab{cursor:pointer;color:var(--muted);background:0 0;border:none;flex:1;padding:.5rem;font-size:.75rem}.settings-tab.active{color:var(--fg);font-weight:600}.settings-list{padding:.5rem 0}.settings-item{border:1px solid #0000;align-items:center;gap:.5rem;padding:.5rem;display:flex}.settings-item:hover{border-color:var(--border)}.settings-emoji{font-size:1rem}.settings-name{flex:1;font-size:.8rem}.settings-btn{opacity:0;width:20px;height:20px;padding:0;font-size:.75rem}.settings-item:hover .settings-btn{opacity:1}.settings-add{gap:.5rem;padding:.5rem;display:flex}.settings-add input{flex:1}.toast{background:var(--fg);color:var(--bg);z-index:300;padding:.5rem 1rem;font-size:.75rem;position:fixed;bottom:1rem;left:50%;transform:translate(-50%)}.loading{color:var(--muted);justify-content:center;align-items:center;padding:2rem;font-size:.8rem;display:flex}.kbd{border:1px solid var(--border);background:var(--hover);font-size:.6rem;font-family:var(--font-mono);padding:.1rem .3rem}@media (max-width:640px){html,body{font-size:16px}.app{padding:1rem}.header h1{font-size:1rem}.capture input{padding:.75rem;font-size:16px}.capture button{padding:.75rem 1rem;font-size:1rem}.filter{padding:.5rem .75rem;font-size:.8rem}.link{padding:1rem 0}.link-title{font-size:1rem}.link-meta{gap:.75rem;font-size:.8rem}.link-bucket{padding:.25rem .5rem;font-size:.75rem}.link-tag{padding:.15rem .4rem;font-size:.7rem}.link-actions{opacity:1}.link-action{width:36px;height:36px;font-size:1.1rem}.link-checkbox{width:18px;height:18px}.settings-btn{opacity:1}.bulk-bar{padding:1rem}.assign-menu{min-width:200px}.assign-option{padding:.75rem;font-size:.9rem}}@media (hover:none){.link-actions{opacity:1}.link:hover{background:0 0;margin:0;padding-left:0;padding-right:0}.link-action{width:40px;height:40px;font-size:1.2rem}.settings-btn{opacity:1}button,.btn{min-height:44px}.filter{min-height:40px}}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fade-in{animation:.15s fadeIn}:focus-visible{outline:2px solid var(--fg);outline-offset:2px}::selection{background:var(--fg);color:var(--bg)}
