[data-r22-tone],[data-r22-state]{--r22-color:#9b5800;--r22-soft:#fff3d6;--r22-text:#704000}
[data-r22-tone]{border-left:4px solid var(--r22-color)!important;background:#fff!important}
[data-r22-tone=blue],[data-r22-state=blue]{--r22-color:#245e9b;--r22-soft:#eaf3ff;--r22-text:#174475}
[data-r22-tone=purple],[data-r22-state=purple]{--r22-color:#7550a2;--r22-soft:#f1ebfa;--r22-text:#5c377f}
[data-r22-tone=red],[data-r22-state=red]{--r22-color:#ac303c;--r22-soft:#fff0f1;--r22-text:#8d2030}
[data-r22-tone=green],[data-r22-state=green]{--r22-color:#26764b;--r22-soft:#e8f5ee;--r22-text:#205b3c}
[data-r22-tone=gray],[data-r22-state=gray]{--r22-color:#5c6572;--r22-soft:#edf0f3;--r22-text:#424b58}
[data-r22-tone] .r22-status,[data-r22-tone].hq-card h3+p,[data-r22-state]{background:var(--r22-soft)!important;color:var(--r22-text)!important;border:1px solid var(--r22-color);border-radius:20px;padding:4px 10px;display:inline-block;font-size:13px;font-weight:600}
[data-r22-tone] .co-next-card{background:var(--r22-soft)!important}
#app [data-r22-tone] button[data-en=next],#app [data-r22-tone] button[data-hq=open],#app [data-r22-tone] button[data-en=task],#app [data-r22-tone] button[data-msg=open],[data-r22-tone] button[data-en=next],[data-r22-tone] button[data-hq=open],[data-r22-tone] button[data-en=task],[data-r22-tone] button[data-msg=open]{background:var(--r22-color)!important;color:white!important;border-color:var(--r22-color)!important}
[data-r22-tone] button:focus-visible{outline:3px solid #122f50;outline-offset:3px}
.r20-unit select{width:100%;min-width:0}
#r22-handoff{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;border:1px solid #adbed0;border-radius:12px;padding:22px;box-shadow:0 12px 60px #0004;color:#17324f}
#r22-handoff::backdrop{background:#10243988}
#r22-handoff label{display:block;margin:12px 0}#r22-handoff textarea{width:100%;box-sizing:border-box}#r22-handoff input{max-width:100%}
#r22-handoff [role=alert]{white-space:pre-wrap}#r22-handoff .row{display:flex;flex-wrap:wrap;gap:8px}
#r22-files-list li{overflow-wrap:anywhere;margin:6px 0}#r22-files-list button{padding:4px 8px}
.r22-internal{padding:12px;border:1px solid #ccd7e5;background:#f5f8fc;border-radius:8px;margin:10px 0}.r22-internal ul{overflow-wrap:anywhere}
@media(max-width:700px){#r22-handoff{padding:14px}#r22-handoff button{min-height:44px}.r22-status{max-width:100%;box-sizing:border-box}}
