[hidden]{display:none!important}body{font-size:16px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:#9ed5ed;text-decoration:underline}button:focus-visible,a:focus-visible{outline:2px solid #9ed5ed;outline-offset:4px}header{height:auto;min-height:76px;flex-wrap:wrap}nav button{font-size:14px}.brand strong{font-size:19px}.brand small{font-size:12px}#logout,.secondary{border:1px solid #444c58;background:#20262e;color:#e5e7eb;padding:9px 14px;border-radius:8px}.summary{flex-wrap:wrap}.summary small,.heading small,.taskhead small,.modal>small{font-size:12px}.summary b{font-size:15px}.summary>.primary{font-size:15px}.workspace{grid-template-columns:minmax(0,1fr) minmax(310px,390px)}.canvas{min-width:0}.deptname{font-size:14px;line-height:1.3;text-transform:none}.number small{font-size:12px}.stats{font-size:12px;flex-wrap:wrap;gap:6px}.stats b{font-size:14px}.deptgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.heading p,.hint,#sync-status{font-size:13px;color:#adb7c5}.map{height:410px;isolation:isolate}.brain{width:130px;height:72px;animation:none}.brainring,.brain svg,.comms line{animation:none}.map:not(.active) .brainring{display:none}.map.active .brain{animation:brainGlow 3s ease-in-out infinite}.map.active .brainring{animation:ring 2.4s ease-out infinite}.station{background:none;border:0;padding:0;animation:none;transform:translate(-50%,-50%);min-width:72px}.station label{font-size:12px;max-width:150px;white-space:normal;text-align:center;min-width:110px;line-height:1.2;cursor:pointer}.desk-status{position:absolute;top:80px;left:50%;transform:translateX(-50%);font-size:12px;white-space:nowrap;color:#a3adb9}.worker,.worker .body:after,.screen,.signal{animation:none}.station.idle .signal{background:#788492;box-shadow:none}.station.waiting .signal{background:#ddb261;box-shadow:0 0 7px #ddb261}.station.working .worker{animation:typeWork 1.1s ease-in-out infinite}.station.working .worker .body:after{animation:armType .55s ease-in-out infinite}.station.working .screen{animation:screenWork 2.6s steps(1) infinite}.station.working .signal{animation:statusBlink 2s infinite}.station.working .desk-status{color:#89d5b2}.filters{flex-wrap:wrap;overflow:visible}.filters button{font-size:12px;padding:6px 10px}aside{max-height:calc(100vh - 160px);top:160px}.tasks article{padding:0}.task-open{color:inherit;background:none;border:0;padding:16px;width:100%;text-align:left}.tasks h3{font-size:17px;line-height:1.35;overflow-wrap:anywhere}.tasks p{font-size:12px;line-height:1.5;text-transform:none}.tasks article .badge,.badge{display:inline-block;font-size:12px;padding:3px 8px;border:1px solid #525d6b;border-radius:9px}.badge.running{color:#8dd6ee}.badge.review{color:#e6c278}.badge.accepted{color:#91d8b3}.badge.failed,.error{color:#ffa7aa}.empty{padding:20px;font-size:15px;color:#a6b2c2}.login-panel{width:min(480px,calc(100% - 32px));margin:10vh auto;background:#171c23;border:1px solid #333e4b;border-radius:20px;padding:32px}.login-panel .mark{font-family:Georgia,serif;font-size:30px;color:#9ed5ed}.login-panel h1{font:32px Georgia,serif;margin:8px 0}.login-panel p{color:#b4becb}.login-panel form label{display:block}.login-panel input{margin:12px 0;width:100%;background:#0b1017;border:1px solid #465261;border-radius:8px;color:white;padding:12px}.login-panel .primary{width:100%;justify-content:center}#login-error{color:#ffadaf}.notice{margin:12px 24px;padding:12px 16px;border:1px solid #4a6980;border-radius:9px;background:#17222d}.page-panel{max-width:960px;margin:auto;padding:32px 24px 100px}.page-panel p{color:#b9c2ce}.page-panel h1{font:32px Georgia,serif}textarea,select{width:100%;margin:8px 0 20px;padding:12px;background:#0e131b;color:#f1f0eb;border:1px solid #485363;border-radius:8px}textarea{resize:vertical}#knowledge-form label{display:block}dialog{color:#eeece6;background:#141a22;border:1px solid #485361;border-radius:18px;width:min(850px,calc(100% - 28px));max-height:88vh;padding:24px;box-shadow:0 25px 100px #000b}dialog::backdrop{background:#000b;backdrop-filter:blur(6px)}.dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:center}.dialog-head h2{font:26px Georgia,serif}.dialog-head button{background:#28313d;color:#fff;border:0;border-radius:50%;width:36px;height:36px;font-size:24px}dialog label{display:block}.check{display:flex;gap:10px;align-items:center}.check input{width:20px;height:20px}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;border-top:1px solid #394454;margin-top:20px;padding-top:16px}.output{white-space:pre-wrap;overflow-wrap:anywhere;font:15px/1.65 ui-monospace,monospace;background:#0c1118;border:1px solid #2c3643;border-radius:9px;padding:20px;margin-bottom:12px}.activity{font-size:13px;color:#b4becc}#detail-body p{overflow-wrap:anywhere}#connections p{padding:12px;border-bottom:1px solid #34404e}
@media(max-width:900px){.workspace{display:block}aside{position:static;max-height:none;border-left:0;border-top:1px solid #303b4a;padding-bottom:90px}.tasks{max-height:650px}.map{max-width:850px;margin:auto}.summary>div:not(:first-child){display:flex}}@media(max-width:700px){header{padding-bottom:12px}.brand small{display:block}.brand strong{font-size:16px}.brand small{font-size:10px}nav{flex-wrap:wrap;gap:8px}nav button{font-size:14px;min-height:40px}.station{transform:translate(-50%,-50%)}.station label{display:block;min-width:86px;max-width:100px;font-size:12px}.desk-status{font-size:12px}.summary>div:first-child b{font-size:14px}.summary>.primary{font-size:15px}.deptgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.dept{padding:12px}.deptname{font-size:14px}.stats{font-size:11px}.map{height:400px}.page-panel{padding-bottom:110px}}@media(max-width:400px){.deptgrid{grid-template-columns:1fr}.station label{min-width:80px;font-size:11px}.map{height:430px}.brain{width:105px}.brain small{font-size:10px}}@media(prefers-reduced-motion:reduce){.map *,.map *:before,.map *:after{animation:none!important}.brainring{display:none}}

/* v1.1 agent conversation controls */
.reply-box{margin:22px 0 4px;padding:18px;border:1px solid #334154;border-radius:14px;background:#111821}
.reply-box h3{margin-top:0}.reply-box textarea{width:100%;box-sizing:border-box;margin:8px 0 10px;resize:vertical}
.quick-replies{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 8px}.quick-replies button{border:1px solid #46566c;background:#1b2634;color:#eaf2ff;border-radius:999px;padding:8px 12px;cursor:pointer}.quick-replies button:hover{background:#26364a}
.thread-context{border-left:3px solid #435979;padding:10px 14px;margin:14px 0;background:#0f151d;border-radius:0 10px 10px 0}.thread-context small{display:block;opacity:.7;margin-bottom:5px}.owner-reply{white-space:pre-wrap;font-weight:600}
@media(max-width:700px){.quick-replies{display:grid;grid-template-columns:1fr}.quick-replies button{text-align:left}.detail-actions{flex-wrap:wrap}}

.continuation-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:14px 16px;border:1px solid #46566c;border-radius:12px;background:#101822}.continuation-status strong{font-size:16px}.continuation-status small{color:#aeb9c7;flex:1}.continuation-status.running{border-color:#4c8eaa;box-shadow:0 0 22px #4c8eaa22}.continuation-status.queued{border-color:#8b7c51}.continuation-status.review{border-color:#5f9579}.conversation-turn{margin:12px 0;padding:16px;border:1px solid #334154;border-radius:12px;background:#0f151d}.conversation-turn.running{border-color:#4c8eaa}.conversation-turn.review{border-color:#5f9579}.conversation-turn .badge{margin:8px 0}.conversation-turn .output{margin-top:10px}
