body.themed{background:var(--bg);color:var(--fg)}:where(.themed) button:where(:not(.nav-link)){font:600 .875rem/1.4 var(--font);border:1px solid var(--border);background:var(--surface);color:var(--fg);cursor:pointer;transition:border-color var(--transition), color var(--transition), box-shadow var(--transition);border-radius:50px;padding:.55rem 1.1rem}:where(.themed button:not(.nav-link):hover:not(:disabled)){border-color:var(--accent);color:var(--accent-fg)}:where(.themed button:not(.nav-link):disabled){cursor:default;opacity:.6}.themed button[type=submit],.toolbar button:first-child{background:linear-gradient(135deg, var(--accent-dark), var(--accent));color:var(--white);border-color:#0000;box-shadow:0 4px 12px #3b82f64d}.themed button[type=submit]:hover:not(:disabled),.toolbar button:first-child:hover:not(:disabled){color:var(--white);box-shadow:0 6px 18px #3b82f673}button[data-action=del-confirm]{background:var(--overdue);color:var(--white);border-color:#0000}button[data-action=del-confirm]:hover:not(:disabled){color:var(--white);opacity:.9}:where(.themed) :is(input,select,textarea){width:100%;font:400 .95rem/1.4 var(--font);border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--fg);padding:.6rem .8rem}:where(.themed) :is(input,select,textarea):focus{outline:2px solid var(--focus);outline-offset:1px}.portal-main h1{letter-spacing:-.03em;font-size:1.75rem;font-weight:800}.portal-main h2{letter-spacing:-.01em;margin-bottom:.75rem;font-size:1.1rem;font-weight:700}.portal-main a{color:var(--accent-fg)}.hint{color:var(--muted);font-size:.85rem}.reading-stats{color:var(--muted);margin-bottom:.75rem;font-size:.85rem}.error{background:var(--error-bg);color:var(--error-fg);border-radius:var(--radius-sm);margin-bottom:1rem;padding:.5rem .75rem;font-size:.9rem}.portal-bar{z-index:900;background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0}.portal-bar-inner{align-items:center;gap:1rem;max-width:1000px;margin:0 auto;padding:0 1.5rem;display:flex}.portal-brand{letter-spacing:-.02em;color:var(--fg);flex-shrink:0;align-items:center;gap:.4rem;font-size:.95rem;font-weight:700;text-decoration:none;display:inline-flex}.portal-tabs{-webkit-overflow-scrolling:touch;scrollbar-width:none;flex:1;gap:.25rem;min-width:0;display:flex;overflow-x:auto}.portal-tabs a{color:var(--muted);transition:color var(--transition), border-color var(--transition);border-bottom:2px solid #0000;flex-shrink:0;align-items:center;gap:.5rem;padding:.9rem .9rem .8rem;font-size:.9rem;font-weight:600;text-decoration:none;display:inline-flex}.portal-tabs a i{font-size:.85rem}.portal-tabs a:hover{color:var(--fg)}.portal-tabs a.active{color:var(--accent-fg);border-bottom-color:var(--accent)}.portal-main{max-width:1000px;margin:2rem auto 4rem;padding:0 1.5rem}#signed-out{color:var(--muted)}.portal-account{flex-shrink:0;align-items:center;gap:.5rem;display:flex}.portal-user{color:var(--muted);align-items:center;gap:.35rem;font-size:.85rem;font-weight:500;display:inline-flex}#portalUserName{text-overflow:ellipsis;white-space:nowrap;max-width:7rem;overflow:hidden}@media (width<=1080px){#portalUserName{display:none}}#portalSignOut{padding:.35rem .85rem;font-size:.8rem}.portal-theme{justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.home-greeting{margin-bottom:1.75rem}.home-greeting h1{margin:0 0 .25rem}.home-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem;list-style:none;display:grid}.home-grid+.home-section-title{margin-top:2.5rem}.home-section-title{margin:0 0 .9rem;font-size:1.1rem}.portal-main .home-card{border:1px solid var(--border);border-radius:var(--radius);height:100%;box-shadow:var(--shadow);color:inherit;background:var(--surface);transition:transform var(--transition), box-shadow var(--transition), border-color var(--transition);flex-direction:column;gap:.35rem;padding:1.4rem;text-decoration:none;display:flex}.portal-main .home-card:hover{box-shadow:var(--shadow-lg);border-color:#3b82f666;transform:translateY(-3px)}.home-card .card-icon{width:42px;height:42px;margin-bottom:.75rem;font-size:1.05rem}.home-card-title{font-size:1.02rem;font-weight:700}.home-card-desc{color:var(--muted);flex:1;font-size:.875rem}.home-card-go{color:var(--accent-fg);margin-top:.5rem;font-size:.8rem;font-weight:600}.themed dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:90vw;max-width:440px;color:var(--fg);box-shadow:var(--shadow-xl);margin:auto;padding:1.75rem}dialog::backdrop{backdrop-filter:blur(2px);background:#0f172a99}dialog h2{letter-spacing:-.02em;margin-top:0;font-size:1.2rem;font-weight:800}dialog form{flex-direction:column;gap:1rem;display:flex}dialog label{color:var(--muted);flex-direction:column;gap:.35rem;font-size:.8rem;font-weight:600;display:flex}.dialog-actions{justify-content:flex-end;gap:.5rem;margin-top:.5rem;display:flex}.dialog-hint{color:var(--muted);margin:-.5rem 0 1rem;font-size:.85rem}dialog form .error{margin:0}.toolbar{flex-wrap:wrap;gap:.5rem;margin-bottom:1.25rem;display:flex}.item-list{flex-direction:column;gap:.5rem;list-style:none;display:flex}.item{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--ok);border-radius:var(--radius-sm);box-shadow:var(--shadow);justify-content:space-between;align-items:center;gap:.5rem;padding:.7rem .9rem;display:flex}.item.due-soon{border-left-color:var(--due-soon)}.item.overdue{border-left-color:var(--overdue)}.item.snoozed{border-left-color:var(--snoozed)}.item.cancelled{border-left-color:var(--border);opacity:.6}.item-main{flex:1;min-width:0}.item-name{font-weight:600}.item-meta{color:var(--muted);font-size:.82rem}.item-actions{flex-wrap:wrap;flex-shrink:0;justify-content:flex-end;gap:.4rem;display:flex}.item-group-heading{text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:1.5rem 0 .1rem;font-size:.75rem;font-weight:700}.item-group-heading:first-child{margin-top:0}.snooze-presets{gap:.5rem;margin-bottom:1rem;display:flex}.snooze-presets button{flex:1;padding:.5rem}.share-presets{grid-template-columns:repeat(auto-fit,minmax(3.75rem,1fr));gap:.4rem;margin-bottom:.5rem;display:grid}.share-presets button{white-space:nowrap;padding:.5rem .3rem;font-size:.8rem}.share-result{margin-bottom:.5rem}.share-link{font-size:.85rem}.share-presets[hidden],.share-result[hidden]{display:none}.breadcrumb{flex-wrap:wrap;align-items:center;gap:.15rem;margin:0 0 1rem;font-size:.95rem;display:flex}.crumb{box-shadow:none;color:var(--accent-fg);background:0 0;border:none;border-radius:6px;padding:.2rem .45rem;font-size:.95rem;font-weight:500}.crumb:disabled{color:var(--fg);opacity:1;font-weight:700}.upload-list,.entry-list{flex-direction:column;gap:.4rem;list-style:none;display:flex}.upload-list{margin:0 0 1rem}.upload-row{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);align-items:center;gap:.75rem;padding:.45rem .75rem;font-size:.85rem;display:flex}.upload-row progress{height:.5rem;accent-color:var(--accent);flex:1}.upload-row.upload-failed{border-color:var(--error-fg);color:var(--error-fg)}.upload-name{flex-shrink:0}.entry{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .75rem;display:flex}.entry.folder:hover{border-color:#3b82f666}.entry-main{min-width:0;color:inherit;text-align:left;background:0 0;border:none;border-radius:0;flex:1;align-items:baseline;gap:.5rem;padding:0;font-size:.95rem;font-weight:400;display:flex}.entry-main:hover:not(:disabled){color:inherit}.entry.folder .entry-main{cursor:pointer}.entry-icon{flex-shrink:0}.entry-name{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.entry-meta{color:var(--muted);flex-shrink:0;font-size:.8rem;font-weight:400}.entry-actions{flex-shrink:0;gap:.35rem;display:flex}.entry-actions button,.item-actions button{padding:.35rem .75rem;font-size:.8rem}.empty-note{color:var(--muted);font-size:.9rem}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:1.5rem}.user-list{flex-direction:column;gap:.5rem;margin:0 0 1rem;list-style:none;display:flex}.user-row{border:1px solid var(--border);border-radius:var(--radius-sm);justify-content:space-between;align-items:center;gap:.5rem;padding:.5rem .8rem;display:flex}.add-user-form{flex-wrap:wrap;gap:.5rem;display:flex}.add-user-form input{flex:1;width:auto;min-width:8rem}@media (width<=560px){.item,.entry{flex-direction:column;align-items:stretch}.item-actions,.entry-actions{flex-wrap:wrap;justify-content:flex-start}.entry-main{flex-wrap:wrap}.portal-main{margin-top:1.5rem;padding:0 1rem}.portal-bar-inner{padding:.5rem .75rem 0}.portal-tabs a{padding:.7rem .6rem .6rem}}@media (width<=900px){.portal-bar-inner{flex-wrap:wrap;gap:.25rem .5rem;padding-top:.5rem}.portal-brand{flex:1}.portal-tabs{flex:100%;order:3}}@media (width<=520px){.portal-tabs{gap:0}.portal-tabs a{padding:.7rem .45rem .6rem;font-size:.85rem}.portal-tabs a i{display:none}}
