/* Calm, readable operating UI in the approved SVARATEL navy/orange theme. */
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;--muted:#bfd0df}body{line-height:1.55;background:#081d31}button,input,textarea,select{font-family:inherit}h1,h2,h3,p{overflow-wrap:anywhere}header h2{font-weight:700}.card{box-shadow:none;border-color:#365069}.thread-card{background:#0d263c}.thread-heading h3{font-size:22px;font-weight:700}.thread-policy{border-left:3px solid #62b8e5;font-size:13px}.conversation-item{padding:15px 14px}.conversation-preview{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b6c8d7;font-size:13px;margin:7px 0}.pending-dot{color:#ffd29c;font-weight:650}.messages{align-items:flex-start;gap:14px;padding:18px 8px;background:#081e32;border:1px solid #2b465e;border-radius:12px;max-height:570px}.bubble{align-self:flex-start;flex-shrink:0;max-width:80%;width:fit-content;min-width:min(220px,100%);padding:14px 17px;background:#14364f;border:1px solid #42708c;border-left:4px solid #60b8dd;border-radius:4px 14px 14px 14px}.bubble.outgoing{align-self:flex-end;max-width:80%;background:#2e352e;border:1px solid #8c7049;border-right:4px solid #ffa652;border-radius:14px 4px 14px 14px}.message-author{color:#a2e0fc;font-size:12px;letter-spacing:.015em;line-height:1.4;margin-bottom:7px}.outgoing .message-author{color:#ffd09b}.message-text{font-size:15px;line-height:1.65;font-weight:400;color:#f4f7fb}.bubble footer{font-size:11px;color:#bfd0df;margin-top:10px;padding-top:8px;gap:16px}.message-details{font-size:11px;font-weight:500}.contact-identity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0 4px}.identity-chip{display:flex;flex-direction:column;padding:7px 10px;border:1px solid #395871;border-radius:7px;background:#102f47}.identity-chip small{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:#abc3d6}.identity-chip b{font-size:13px;font-weight:600;color:#edf6fe}.identity-link{font-size:12px;padding:8px}.human-reply{border-top:0;margin-top:18px;background:#102d43;padding:20px;border:1px solid #4f6d84;border-radius:12px}.human-reply h3{margin:0;font-size:18px}.human-reply textarea{background:#081e31;border-color:#54728b;font-size:15px;line-height:1.65;min-height:130px}.human-reply>p.muted{font-size:12px;margin:0}.assistant-panel{padding:15px;background:#0c2236;border-radius:9px;border:1px solid #41617a}.assistant-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.assistant-top b{font-size:14px}.assist-label{font-size:10px;font-weight:750;letter-spacing:.06em;color:#ffcc94}.assist-manual{font-size:11px;color:#ade4c3;border:1px solid #33694f;padding:3px 7px;border-radius:5px;margin-left:auto}.assistant-panel p,.assistant-panel li{font-size:13px;line-height:1.6}.assistant-panel ul{margin:6px 0 12px;padding-left:20px}.assist-subheading{font-weight:700;color:#cde3f3;margin-bottom:0}.assist-decisions{border-left:3px solid #efa354;padding:8px 12px;background:#302b22;border-radius:4px;color:#ffe1b9;font-size:13px}.assist-source{font-size:11px!important;color:#9db7ca}.assist-notes-label{font-size:12px;font-weight:500;margin:12px 0}.assist-notes-label textarea{min-height:65px!important;font-size:13px!important}.assistant-panel .toolbar button{font-size:12px;min-height:34px;padding:7px 10px}#assist-progress{color:#c5dded}.overview-hero{display:flex;align-items:center;justify-content:space-between;gap:25px;flex-wrap:wrap}.overview-hero h3{font-size:24px;line-height:1.3;margin:6px 0}.overview-hero p{font-size:14px;color:#bfd1df;margin:8px 0}.overview-hero .toolbar{align-items:end}.work-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.channel-work-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.channel-work{padding:18px;min-width:0}.channel-work .card-head h3{font-size:18px}.channel-work .badge{font-size:10px}.work-primary{display:flex;align-items:baseline;gap:10px;text-decoration:none;color:#fff;margin:18px 0}.work-primary strong{font-size:40px;line-height:1}.work-primary span{font-size:13px;color:#b9d4e7}.channel-work-counts{display:grid;gap:8px;margin-bottom:16px}.channel-work-counts div{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #ffffff0c;padding:5px 0}.channel-work-counts dt{font-size:12px;color:#b8cddd}.channel-work-counts dd{margin:0;font-size:14px;font-weight:650}.channel-work .muted{font-size:11px}.pending-work-row{display:grid;grid-template-columns:90px minmax(120px,1fr) 170px 110px;align-items:center;gap:12px;text-decoration:none;padding:13px 4px;border-bottom:1px solid #ffffff12;color:#dce9f3;font-size:12px}.pending-work-row b{font-size:14px;overflow-wrap:anywhere}.channel-tag{font-size:11px;color:#ffd1a1}.overview-hero select{min-width:150px}.card+.card{margin-top:20px}
@media(max-width:1500px){.channel-work-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:1050px){.pending-work-row{grid-template-columns:70px minmax(0,1fr)}.pending-work-row>span:nth-last-child(-n+2){font-size:11px}.bubble,.bubble.outgoing{max-width:88%}.work-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:680px){.channel-work-grid{grid-template-columns:1fr}.bubble,.bubble.outgoing{max-width:94%;min-width:0}.human-reply{padding:14px}.message-text{font-size:14px}.overview-hero h3{font-size:21px}.assistant-top b{width:100%}.assist-manual{margin-left:0}.messages{max-height:55vh}}

.assist-explanation,.assist-instructions{font-size:12px;margin:10px 0;color:#c6dce9}.assist-explanation summary,.assist-instructions summary{cursor:pointer;padding:6px 0;font-weight:600}.assistant-panel>.toolbar{margin-top:10px}.human-reply>label{font-size:13px}

.publishing-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:1050px){.publishing-grid{grid-template-columns:1fr}}

/* Align sibling cards and keep dashboard actions compact. */
.channel-work-grid>.card{margin-top:0}.overview-hero>.toolbar{display:flex;flex-direction:row;align-items:flex-end;flex-wrap:wrap;gap:10px;width:auto;max-width:530px}.overview-hero>.toolbar>a{width:auto;min-height:46px;justify-content:center}.overview-hero>.toolbar>button{width:auto;min-height:46px}.overview-hero>.toolbar>label{min-width:150px}
