/* R81 — shared Lite parity layer. Compact V16 controls + Beautiful UI affordances. */
[data-hyos-host] .window-body :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app){font-size:13px}
[data-hyos-host] .window-body :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app) :is(button,input,select,textarea){font-size:11px}
[data-hyos-host] .window-body :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app) button{min-height:28px;padding:4px 8px;border-radius:9px}
[data-hyos-host] .window-body :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app) :is(input,select,textarea){min-height:30px;padding:6px 8px}
[data-hyos-host] .hyhub-title-wrap{display:flex;flex-direction:column;min-width:0}
[data-hyos-host] .hyhub-kicker{font-size:8px;letter-spacing:.18em;color:#80cfe8}
[data-hyos-host] .hyhub-live{font-size:8px;letter-spacing:.13em;border:1px solid #4ce4a866;color:#83f0c0;border-radius:99px;padding:3px 6px;background:#07352680}
[data-hyos-host] .hyhub-badge{font-size:9px;text-transform:uppercase;letter-spacing:.08em;border-radius:99px;padding:3px 6px;background:#17354b;color:#bfeaff}
[data-hyos-host] .hyhub-badge[data-status=running],[data-hyos-host] .hyhub-badge[data-status=queued]{background:#463b127f;color:#ffe498}
[data-hyos-host] .hyhub-badge[data-status=complete],[data-hyos-host] .hyhub-badge[data-status=done]{background:#0d4b387f;color:#a7ffd2}
[data-hyos-host] .hyhub-badge[data-status=error],[data-hyos-host] .hyhub-badge[data-status=failed]{background:#591f2c80;color:#ffb6c4}
[data-hyos-host] .hyhub-actions{display:flex;gap:6px;flex-wrap:wrap}
[data-hyos-host] .hyhub-summary{margin:0;color:#d4e7f3;line-height:1.5}
[data-hyos-host] .hyhub-meta{color:#92afc1;font-size:10px}
[data-hyos-host] .hyhub-ai-card{border:1px solid #836cff66;border-radius:12px;padding:10px;background:linear-gradient(135deg,#1c2744cc,#10263bcc);box-shadow:0 10px 28px #0005}
[data-hyos-host] .hyhub-ai-card>strong{background:linear-gradient(90deg,#7ff0ff,#d18cff);background-clip:text;color:transparent}
[data-hyos-host] .hyhub-ai-card p{white-space:pre-wrap}
[data-hyos-host] .hyhub-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}
[data-hyos-host] .hyhub-terminal{margin:0;white-space:pre-wrap;overflow:auto;min-height:110px;max-height:48%;border:1px solid #3cccef55;border-radius:10px;padding:10px;background:#03080d;color:#aef7ce;font:11px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
[data-hyos-host] .hyhub-loader,[data-hyos-host] .hy-ui-loader{display:flex;align-items:center;gap:8px;border:1px solid #5ccff144;border-radius:11px;padding:8px;background:#0b1a2b99}
[data-hyos-host] .hy-ui-pixel-grid{display:grid;grid-template-columns:repeat(3,3px);gap:2px}
[data-hyos-host] .hy-ui-pixel-grid i{width:3px;height:3px;border-radius:1px;background:#77eaff;animation:hyos-pixel-pulse .9s ease-in-out infinite alternate;animation-delay:var(--hy-pixel-delay)}
[data-hyos-host] .hy-ui-shimmer{background:linear-gradient(90deg,#9bd8e6,#fff,#b296ff,#9bd8e6);background-size:220% 100%;background-clip:text;color:transparent;animation:hyos-shimmer 1.6s linear infinite}
[data-hyos-host] .hy-ui-elapsed{margin-left:auto;color:#8ca9ba;font-size:9px}
[data-hyos-host] .hy-ui-trace{border:1px solid #6579ff4c;border-radius:11px;background:#0c1730aa;overflow:hidden}
[data-hyos-host] .hy-ui-trace summary{display:flex;align-items:center;gap:8px;padding:8px;cursor:pointer}
[data-hyos-host] .hy-ui-trace-rows{padding:0 8px 8px;display:grid;gap:5px}
[data-hyos-host] .hy-ui-trace-row{display:grid;grid-template-columns:10px 1fr auto;gap:6px;align-items:center;padding:5px;border-radius:8px;background:#10233a}
[data-hyos-host] .hy-ui-tool-chips{display:flex;gap:5px;flex-wrap:wrap}
[data-hyos-host] .hy-ui-tool-chip{display:inline-flex;align-items:center;gap:5px;border:1px solid #58d0e85c;border-radius:99px;padding:4px 7px;background:#11263c;font-size:9px}
[data-hyos-host] .hy-ui-approval{border:1px solid #f6c86177;border-radius:12px;padding:9px;background:#352a1170}
[data-hyos-host] .hy-ui-approval-actions{display:flex;gap:6px;flex-wrap:wrap}
[data-hyos-host] .hy-code-block{border:1px solid #5778945c;border-radius:12px;overflow:hidden;background:#06101b}
[data-hyos-host] .hy-code-head{display:flex;justify-content:space-between;gap:8px;padding:7px 9px;background:#102238;font-size:10px}
[data-hyos-host] .hy-ui-code-body{margin:0;max-height:320px;overflow:auto;padding:9px;font-size:10px}
@keyframes hyos-pixel-pulse{from{opacity:.2;transform:scale(.65)}to{opacity:1;transform:scale(1.15)}}
@keyframes hyos-shimmer{to{background-position:-220% 0}}
@container hyos-window (max-width:620px){
 [data-hyos-host] .hyhub-app{padding:7px!important;gap:6px!important}
 [data-hyos-host] .hyhub-header{padding-bottom:6px!important}
 [data-hyos-host] .hyhub-header h2{font-size:17px!important}
 [data-hyos-host] .hyhub-layout{grid-template-columns:1fr!important;grid-template-rows:minmax(86px,28%) minmax(0,1fr)!important;gap:6px!important}
 [data-hyos-host] .hyhub-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:5px!important}
 [data-hyos-host] .hyhub-bar>*{min-width:0}
 [data-hyos-host] .hyhub-detail{padding:8px!important;border-radius:10px!important}
 [data-hyos-host] .hyhub-composer{grid-template-columns:1fr}
 [data-hyos-host] .hyhub-composer button{justify-self:end}
}

/* R86 light parity sweep across every native Lite app. */
[data-hyos-host][data-theme=light] :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app,.hyos-native-chat,.hyvox-os-shell,.hydd-app){color:#17273f!important;background:linear-gradient(160deg,rgba(255,255,255,.96),rgba(239,246,255,.92))!important}
[data-hyos-host][data-theme=light] :is(.hyhub-header,.hyhub-bar,.hyhub-list,.hyhub-detail,.hycrm-panel,.hywh-panel,.hycal-panel,.hytm-panel,.hytk-panel,.hyof-panel,.hydr-panel,.hyedit-side,.hymedia-panel,.hytvl-panel,.hyos-chat-top,.hyos-chat-sidebar,.hyos-chat-center){background:rgba(255,255,255,.74)!important;border-color:rgba(73,126,174,.22)!important;color:#1a2a43!important}
[data-hyos-host][data-theme=light] :is(.hyhub-item,.hyhub-ai-card,.hyhub-msg,.hycrm-card,.hywh-card,.hycal-event,.hytm-member,.hytk-ticket,.hyof-card,.hydr-card,.hyedit-media-item,.hyos-chat-messages .hy-bubble){background:linear-gradient(145deg,#ffffff,#edf4ff)!important;border-color:rgba(70,130,184,.24)!important;color:#17273f!important;box-shadow:0 8px 22px rgba(64,88,124,.09)!important}
[data-hyos-host][data-theme=light] .hyos-chat-messages .hy-message.user .hy-bubble{background:linear-gradient(145deg,#e8f4ff,#e9ecff)!important}
[data-hyos-host][data-theme=light] .hyos-chat-messages :is(.hy-prose,.hy-user-text,.hy-bubble p,.hy-bubble li){color:#1d304a!important}
[data-hyos-host][data-theme=light] :is(.hyhub-terminal,.hy-code-block,.hy-ui-code-body){background:#f3f7fc!important;color:#173a49!important;border-color:#b7cadb!important}
[data-hyos-host][data-theme=light] :is(.hyhub-btn,.hyedit-btn,.hyos-chat-tool,.hyos-chat-mode,.hyos-chat-send,.hyos-chat-stop){background:linear-gradient(145deg,#ffffff,#e9f3ff)!important;color:#213852!important;border-color:rgba(47,136,182,.28)!important}
[data-hyos-host][data-theme=light] :is(.hyhub-btn,.hyedit-btn,.hyos-chat-tool,.hyos-chat-mode):hover{background:linear-gradient(145deg,#f7fcff,#dfeeff)!important;border-color:#2aa6c8!important}
[data-hyos-host][data-theme=light] :is(.hy-ui-loader,.hy-ui-trace,.hy-ui-approval){background:rgba(244,249,255,.94)!important;color:#1d304a!important;border-color:rgba(78,126,172,.24)!important}
[data-hyos-host][data-theme=light] .hy-ui-trace-row{background:#edf4fb!important;color:#213752!important}
[data-hyos-host][data-theme=light] .hy-ui-tool-chip{background:#eef6ff!important;color:#29415b!important}

/* R96 Lite-app contrast guarantees. */
[data-hyos-host][data-theme=light] :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app,.hyos-native-chat,.hyvox-os-shell,.hydd-app){
  --ink:#102238!important;
  --muted:#334d66!important;
  color:#102238!important
}
[data-hyos-host][data-theme=light] :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app,.hyos-native-chat,.hyvox-os-shell,.hydd-app) :is(p,small,label,.muted,.hyhub-meta,.hyedit-hint){
  color:#334d66!important;
  opacity:1!important
}
[data-hyos-host][data-theme=light] :is(.hyhub-app,.hycrm-os,.hywh-os,.hycal-lite,.hytm-app,.hytk-app,.hyof-app,.hydr-app,.hyedit,.hymedia-lite,.hytvl-app,.hyos-native-chat,.hyvox-os-shell,.hydd-app) :is(h1,h2,h3,h4,strong){
  color:#102238!important
}
[data-hyos-host][data-theme=light] :is(.hyhub-btn,.hyedit-btn,.hyos-chat-tool,.hyos-chat-mode,.hyos-chat-send,.hyos-chat-stop){
  color:#17324d!important;
  font-weight:650!important
}
[data-hyos-host][data-theme=light] .hyos-chat-mode[data-active=true]{
  color:#f7fcff!important;
  background:linear-gradient(120deg,#0b5d72,#554080)!important
}
