:root{--green:#0F9563;--dark:#1F402D;--yellow:#F8D549;--slate:#5D7480;--bg:#F3F5F7;--text:#212121;--muted:#646464}
*{box-sizing:border-box}body{margin:0;font-family:"Avenir Next","Avenir","Segoe UI","DejaVu Sans",Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{color:var(--green)}.muted{color:var(--muted)}.small{font-size:12px}code{background:#eef1f3;padding:1px 5px;border-radius:4px}
header{display:flex;align-items:center;gap:20px;padding:14px 28px;background:#fff;border-bottom:4px solid var(--green)}
header .logo{height:60px}header .title{flex:1;text-align:center}header h1{margin:0;color:var(--dark);font-size:30px;letter-spacing:.5px}
header .sub{color:var(--slate);font-size:14px}.hright{text-align:right;font-size:14px;color:var(--dark);font-weight:600}.hright .muted{font-weight:400}
.banner{margin:12px 28px 0;padding:8px 14px;background:#FFF8DC;border:1px solid #EBD27A;border-radius:8px;font-size:13px}
.stats{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin:12px 28px;font-size:14px;color:var(--dark)}
.stats span{display:flex;align-items:center;gap:6px;background:#fff;padding:6px 12px;border-radius:20px;box-shadow:0 1px 2px #0001}
.stats .brain{margin-left:auto;background:var(--dark);color:#fff}
.light{display:inline-block;width:14px;height:14px;border-radius:50%;flex:none;box-shadow:0 0 0 2px #fff,0 0 0 3px #0002}
.light.green{background:#22C55E;box-shadow:0 0 0 2px #fff,0 0 8px #22C55E}.light.yellow{background:#F5C518}.light.red{background:#E5484D}.light.grey{background:#B8C0C6}
.hub{position:relative;display:grid;grid-template-columns:1fr 340px 1fr;gap:24px;align-items:center;margin:8px 28px 18px;padding:22px;
 background:linear-gradient(180deg,#fff,#f7faf8);border-radius:16px;box-shadow:0 2px 8px #0000000f;min-height:560px}
#wires{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.col{display:flex;flex-direction:column;gap:16px;z-index:1;align-self:stretch;justify-content:space-evenly}
.center{position:relative;display:flex;flex-direction:column;align-items:center;z-index:1}
.glow{position:absolute;top:30px;width:330px;height:330px;border-radius:50%;background:radial-gradient(circle,#FCE98Acc 0%,#F8D54966 45%,#F8D54900 70%);z-index:-1}
.bee{height:400px;filter:drop-shadow(0 6px 10px #0003)}
.beelabel{margin-top:-6px;background:#fff;border:3px solid var(--green);border-radius:12px;padding:8px 18px;text-align:center;box-shadow:0 2px 6px #0002}
.beelabel b{display:block;font-size:20px;color:var(--dark)}.beelabel span{font-size:12px;color:var(--muted)}
.card{background:#fff;border:2px solid var(--c);border-top-width:6px;border-radius:12px;padding:12px 14px;box-shadow:0 2px 6px #0000001a;min-height:150px}
.card.planned{opacity:.7;border-style:dashed;border-top-style:solid}
.cardhead{display:flex;justify-content:space-between;align-items:flex-start}.bname{font-weight:700;font-size:18px;color:var(--dark)}
.owner{font-size:12px;color:var(--muted)}.role{font-size:13px;color:var(--slate);margin:4px 0 6px}
.statusline{display:flex;justify-content:space-between;gap:8px;font-size:12px;border-top:1px solid #eee;padding-top:6px}
.lbl{font-weight:700}.lbl.green{color:#15803D}.lbl.yellow{color:#A16207}.lbl.red{color:#C62828}.lbl.grey{color:#7B868D}.when{color:var(--muted)}
.tasks{margin:6px 0 0;padding-left:18px;font-size:13px;line-height:1.35}.needs{font-size:12px;color:#C62828;margin:6px 0 0}
.demo{display:inline-block;font-size:10px;font-weight:700;letter-spacing:.5px;color:#7A5B00;background:#FFF1B8;border:1px solid #E9C949;border-radius:4px;padding:1px 6px;margin-top:6px}
.lower{display:grid;grid-template-columns:1.6fr 1fr;gap:20px;margin:0 28px 30px}
.panel{background:#fff;border-radius:14px;padding:16px 20px;box-shadow:0 2px 8px #0000000f;margin-bottom:20px}
.panel h2{margin:0 0 10px;font-size:18px;color:var(--dark);border-bottom:2px solid var(--yellow);padding-bottom:6px}
.day{font-size:14px;color:var(--slate);margin:14px 0 6px;text-transform:uppercase;letter-spacing:.5px}
.fitem{border-left:4px solid var(--c);padding:6px 12px;margin:8px 0;background:#FAFBFC;border-radius:0 8px 8px 0}
.fhead{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px}.fhead .demo{margin-top:0}
.dot{width:10px;height:10px;border-radius:50%;background:var(--c)}
.pill{font-size:11px;padding:1px 8px;border-radius:10px;background:#E7F6EE;color:#15803D;text-transform:capitalize}.pill.blocked{background:#FDE7E7;color:#C62828}.pill.idle{background:#EEF1F3;color:#5D7480}
.fsec{display:flex;gap:8px;font-size:13px;margin-top:4px}.fsec ul{margin:0;padding-left:16px;line-height:1.4}
.ftag{flex:none;width:62px;font-size:11px;font-weight:700;text-transform:uppercase;color:var(--slate);padding-top:2px}.ftag.learned{color:var(--green)}.ftag.needs{color:#C62828}
#askf{display:flex;gap:8px}#askf input{flex:1;padding:9px 10px;border:1px solid #ccd3d8;border-radius:8px;font-size:14px}
button{background:var(--green);color:#fff;border:0;border-radius:8px;padding:9px 16px;font-weight:700;cursor:pointer}
#ans .hit{border-top:1px solid #eee;padding:8px 0;font-size:13px;white-space:pre-wrap}#ans .src{font-size:11px;color:var(--green);font-weight:700}
.blk{margin:0;padding-left:18px;font-size:13px;line-height:1.5}.legend p{margin:4px 0;font-size:13px;display:flex;align-items:center;gap:8px}
body.login{display:flex;align-items:center;justify-content:center;min-height:100vh;background:linear-gradient(160deg,#1F402D,#0F9563)}
.loginbox{background:#fff;padding:28px 34px;border-radius:16px;width:340px;display:flex;flex-direction:column;gap:10px;text-align:center;box-shadow:0 10px 30px #0004}
.loginlogo{height:44px;object-fit:contain}.loginbee{height:150px;object-fit:contain}.loginbox h1{margin:0;color:var(--dark)}.loginbox p{margin:0}
.loginbox input{padding:10px;border:1px solid #ccd3d8;border-radius:8px;font-size:14px}.err{color:#C62828}
@media (max-width:700px){header{flex-wrap:wrap;padding:10px 14px;gap:8px}header .logo{height:40px}header .title{text-align:right}header h1{font-size:24px}header .sub{display:none}.hright{width:100%;text-align:left;font-size:12px;display:flex;gap:8px}.stats,.banner,.hub,.lower{margin-left:10px;margin-right:10px}.hub{padding:12px}.stats .brain{margin-left:0}.ftag{width:52px}}
@media (max-width:1100px){.hub{grid-template-columns:1fr}.center{order:-1}.bee{height:260px}.glow{width:240px;height:240px}#wires{display:none}.lower{grid-template-columns:1fr}}
.worknote{display:inline-block;margin-top:4px;font-size:12px;font-weight:600;color:var(--dark);background:#E7F6EE;border:1px solid #BfE3CF;border-radius:10px;padding:1px 10px}
.legend .worknote2{margin-top:10px;padding-top:8px;border-top:1px solid #eee;font-size:12px;color:var(--slate);display:block}
@media (max-width:700px){header .worknote{display:none}}
.pending h2 .count{background:#E5484D;color:#fff;border-radius:10px;font-size:12px;padding:1px 8px;vertical-align:middle}
.waitchip{background:#FDE7E7;color:#C62828;font-weight:700;padding:6px 12px;border-radius:20px;text-decoration:none}
.preg{border:1px solid #F0D58A;background:#FFFBEB;border-radius:10px;padding:10px 12px;margin-bottom:10px}
.phead{display:flex;justify-content:space-between;align-items:baseline}.preg dl{margin:6px 0;font-size:12px;display:grid;grid-template-columns:150px 1fr;gap:2px 8px}
.preg dt{color:var(--slate);font-weight:700}.preg dd{margin:0}.pfoot{display:flex;justify-content:space-between;align-items:center;gap:8px}
.btns{display:flex;gap:6px}.btns form{margin:0}.btns button{padding:6px 12px;font-size:13px}button.reject{background:#fff;color:#C62828;border:1px solid #E5A3A5}
.ok{color:#0F9563}.qr svg{width:200px;height:200px}.loginbox form{display:flex;flex-direction:column;gap:8px}.loginbox code{word-break:break-all}
