:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.5;color:#111;background:#fff}body{margin:0}a{color:#0645ad}main.auth,main:not(.content){max-width:32rem;margin:3rem auto;padding:0 1rem}h1{font-size:1.5rem;margin:.25rem 0}h2{font-size:1.15rem;margin:0}input,select,textarea{font:inherit;box-sizing:border-box;padding:.5rem;min-height:40px;border:1px solid #888;border-radius:6px;background:#fff;color:#111}textarea{width:100%;resize:vertical}button{font:inherit;min-height:36px;min-width:36px;padding:.4rem .9rem;border-radius:6px;border:1px solid #555;background:#fff;color:#111;cursor:pointer}button.primary{background:#111;color:#fff;min-height:44px;margin-top:1rem}button:disabled{opacity:.5;cursor:default}button.danger{border-color:#a00;color:#a00}.link-button{border:none;background:none;color:#0645ad;padding:.4rem 0}[role=alert]{color:#a00}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}:focus-visible{outline:3px solid #1a73e8;outline-offset:2px}.app{min-height:100vh}.app-header{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:.5rem;padding:.5rem .75rem;background:#f6f6f6;border-bottom:1px solid #ddd}.tab-bar{display:flex;gap:.35rem;overflow-x:auto;flex:1;scrollbar-width:thin;align-items:center}.tab-bar>button{white-space:nowrap;border-color:#bbb;position:relative}.tab-bar>button[aria-current=page],.header-actions>button[aria-current=page]{background:#111;color:#fff;border-color:#111}.header-actions{display:flex;gap:.35rem}.badge{display:inline-block;margin-left:.4rem;min-width:1.3rem;padding:0 .35rem;border-radius:999px;background:#b00020;color:#fff;font-size:.8rem;font-weight:700;line-height:1.3rem;text-align:center}.content{max-width:56rem;margin:0 auto;padding:.75rem 1rem 4rem}.app.has-details .content{margin-right:26rem}.toast{position:fixed;bottom:1rem;left:50%;transform:translate(-50%);z-index:20;background:#fff4f4;border:1px solid #a00;border-radius:8px;padding:.5rem .75rem;display:flex;gap:.5rem;align-items:center}.empty,.intro{color:#555}.tab-header,.list-header{display:flex;align-items:center;gap:.5rem;justify-content:space-between}.list{margin:1.25rem 0;padding:.75rem;border:1px solid #ddd;border-radius:10px}.add-list{margin-top:1.25rem}.menu{position:relative}.menu>summary{list-style:none;cursor:pointer;min-width:36px;min-height:36px;display:grid;place-items:center;border:1px solid #bbb;border-radius:6px;font-weight:700}.menu>summary::-webkit-details-marker{display:none}.menu-body{position:absolute;right:0;z-index:10;display:flex;flex-direction:column;gap:.35rem;min-width:12rem;padding:.5rem;background:#fff;border:1px solid #bbb;border-radius:8px;box-shadow:0 4px 16px #0000001f}.menu-body button,.menu-body label{text-align:left;display:flex;flex-direction:column;gap:.25rem}.inline-add{display:flex;gap:.4rem;margin:.4rem 0;align-items:center}.inline-add .field{flex:1}.inline-add input{width:100%}.rows,.children ul{list-style:none;margin:.25rem 0;padding:0}.children{margin-left:1.6rem;border-left:2px solid #eee;padding-left:.5rem}.row-main{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;padding:.25rem;border-radius:6px}.row-main.selected{background:#eef4ff}.row.project>.row-main .title{font-weight:700}.disclosure,.disclosure-spacer{width:28px;min-width:28px;min-height:28px;padding:0;border:none;background:none;font-size:1rem}.done-box{width:24px;height:24px;min-height:24px;margin:0;accent-color:#111}.title{border:none;background:none;padding:.2rem .1rem;text-align:left;min-height:28px;flex:1 1 12rem}.title.static{cursor:default}.is-done>.row-main .title{text-decoration:line-through;color:#666}.tags{display:inline-flex;gap:.3rem;flex-wrap:wrap}.tag{font-size:.8rem;padding:.05rem .45rem;border-radius:999px;border:1px solid #999;color:#333;white-space:nowrap}.tag.progress{border-color:#1a5fb4;color:#1a5fb4}.tag.overdue{border-color:#b00020;color:#b00020;font-weight:600}.tag.high{border-color:#8a4b00;color:#8a4b00}.summary{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:#444}.bar{display:inline-block;width:4rem;height:.5rem;background:#e5e5e5;border-radius:999px;overflow:hidden}.bar>span{display:block;height:100%;background:#2e7d32}.path{flex-basis:100%;margin-left:2.2rem;font-size:.8rem;color:#555}.flat .path{margin-left:2.2rem}.details{position:fixed;top:0;right:0;bottom:0;width:25rem;z-index:15;overflow-y:auto;padding:1rem;background:#fff;border-left:1px solid #ccc;box-shadow:-4px 0 16px #00000014;display:flex;flex-direction:column;gap:.9rem}.details-top{display:flex;justify-content:space-between;align-items:center}.details .kind{font-weight:700;text-transform:uppercase;font-size:.8rem;letter-spacing:.05em;color:#555}.details .path{margin:0}.stack{display:flex;flex-direction:column;gap:.25rem}.stack>span,.stack>.label{font-weight:600;font-size:.9rem}fieldset{border:1px solid #ddd;border-radius:8px;padding:.5rem .75rem .75rem;margin:0;display:flex;flex-direction:column;gap:.5rem}legend{font-weight:600;font-size:.9rem}.status-group{flex-direction:row;flex-wrap:wrap}.status-group label{display:flex;align-items:center;gap:.35rem;padding:.3rem .6rem;border:1px solid #bbb;border-radius:6px;min-height:32px}.status-group label.chosen{border-color:#111;background:#f0f0f0;font-weight:600}.field-row{display:flex;gap:.5rem;align-items:flex-end}.button-row{display:flex;gap:.5rem}.meta{color:#555;font-size:.85rem;margin:0}@media(max-width:900px){.app.has-details .content{margin-right:auto}.details{width:auto;left:0;border-left:none}.header-actions button{padding:.4rem .6rem}.children{margin-left:.9rem}}
