/* Hylab Networks — console dialog: stage on top, status bar with icon tools below. */
.console-dialog{width:min(1500px,96vw);height:92dvh;max-width:1500px;padding:0;overflow:hidden;background:#12151a;border:1px solid rgba(255,255,255,.08)}
.console-shell{display:flex;flex-direction:column;height:100%;background:#12151a}
.console-dialog:fullscreen{width:100vw;height:100vh;max-width:none;border-radius:0;border:0}
.console-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px 10px 20px}
.console-title-wrap{min-width:0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.console-title-wrap h2{margin:0;font-size:17px;letter-spacing:-.02em}
.console-meta{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.console-head .icon{width:34px;height:34px;font-size:19px}
.console-stage{position:relative;flex:1 1 auto;min-height:180px;margin:0 14px;border-radius:14px;overflow:hidden;background:#080a0d;border:1px solid rgba(255,255,255,.06)}
#console-screen{position:absolute;inset:0;overflow:hidden;display:flex;align-items:center;justify-content:center}
#console-screen canvas{display:block;max-width:100%;max-height:100%;outline:none}
.console-hint{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);margin:0;padding:7px 15px;border-radius:999px;background:rgba(17,19,24,.88);border:1px solid rgba(255,255,255,.12);font-size:12px;color:var(--text);pointer-events:none}
.console-toast{position:absolute;left:50%;top:14px;transform:translateX(-50%);margin:0;max-width:calc(100% - 28px);padding:8px 16px;border-radius:999px;background:rgba(17,19,24,.92);border:1px solid rgba(138,180,248,.34);font-size:12px;color:#e8f0ff;pointer-events:none;text-align:center}
.console-popover{position:absolute;right:14px;bottom:14px;z-index:3;width:min(360px,calc(100% - 28px));max-height:calc(100% - 28px);overflow:auto;padding:16px;border-radius:18px;background:#1d2128;border:1px solid rgba(255,255,255,.1);box-shadow:0 18px 40px #000c}
.popover-title{margin:0 0 12px;font-size:11.5px;letter-spacing:.08em;color:var(--muted)}
.popover-hint{margin:10px 0 0;font-size:11px;color:var(--muted);line-height:1.5}
.popover-field{display:block;margin:0 0 12px;font-size:12px;color:var(--text)}
.popover-field select{display:block;width:100%;margin-top:6px}
.preset-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:14px}
.preset-row .preset{min-height:34px;border-radius:10px;border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:600;color:var(--text)}
.preset-row .preset:hover{background:rgba(138,180,248,.12);border-color:rgba(138,180,248,.4)}
.modifier-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.modifier-row .modifier{min-width:62px;min-height:34px;padding:5px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.14);font-size:12px;font-weight:600;color:var(--text)}
.modifier-row .modifier.on{background:rgba(138,180,248,.2);border-color:rgba(138,180,248,.6);color:#eaf1ff}
.key-pad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.key-pad .key{min-height:34px;padding:4px 6px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);font-size:11.5px;color:var(--text)}
.key-pad .key:hover{background:rgba(138,180,248,.16);border-color:rgba(138,180,248,.45);color:#eaf1ff}
.popover-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:12px}
.popover-actions button{min-height:32px;padding:6px 4px;border-radius:999px;border:1px solid rgba(255,255,255,.14);font-size:11.5px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.popover-actions button:hover{background:rgba(138,180,248,.12);border-color:rgba(138,180,248,.4)}
.popover-actions button[aria-pressed=true]{background:rgba(138,180,248,.18);border-color:rgba(138,180,248,.55);color:#e8f0ff}
.popover-actions .tool-primary{background:var(--accent);border-color:transparent;color:#002e69}
.switch-row{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
#console-clip-text{width:100%;min-height:96px;margin-top:0;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;resize:vertical}
/* Status bar */
.console-bar{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:10px 14px 12px}
.console-bar-left{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;margin-right:auto}
.bar-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;background:rgba(255,255,255,.05);font-size:12px;color:var(--text);max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar-fps{font-variant-numeric:tabular-nums;color:var(--muted);min-width:66px;justify-content:center}
.console-status{display:inline-flex;align-items:center;gap:7px;padding:6px 13px;border-radius:999px;background:rgba(255,255,255,.05);font-size:12px;font-weight:600;color:var(--text);white-space:nowrap}
.console-status i{width:7px;height:7px;border-radius:50%;background:currentColor;flex:none;opacity:.7}
.console-status[data-state=live]{background:rgba(129,221,177,.14);color:#8fe0b2}
.console-status[data-state=connecting]{background:rgba(213,183,126,.14);color:#d5b77e}
.console-status[data-state=offline]{background:rgba(255,180,171,.12);color:#ffb4ab}
.console-bar-right{display:flex;align-items:center;gap:6px;flex:none}
.bar-icon{min-width:52px;height:auto;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 8px;flex:none;border-radius:12px;border:1px solid transparent;background:transparent;color:var(--text)}
.bar-label{font-size:10.5px;line-height:1.15;color:var(--muted);white-space:nowrap;transition:color .16s ease}
.bar-icon:hover:not(:disabled) .bar-label,.bar-icon[aria-pressed=true] .bar-label,.bar-icon[aria-expanded=true] .bar-label{color:inherit}
.bar-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bar-icon:hover:not(:disabled){background:rgba(138,180,248,.14);color:#eaf1ff}
.bar-icon[aria-pressed=true]{background:rgba(138,180,248,.2);color:#eaf1ff}
.bar-icon[aria-expanded=true]{background:rgba(138,180,248,.2);color:#eaf1ff}
.bar-icon:disabled{opacity:.35;cursor:not-allowed}
.console-message{padding:0 14px 12px;font-size:11.5px;color:var(--muted);min-height:16px}
@media(max-width:768px){
  .console-dialog{width:100vw;height:100dvh;max-width:none;border-radius:0;border:0}
  .console-head{padding:10px 12px 8px 14px}
  .console-stage{margin:0 10px;border-radius:12px}
  .console-bar{padding:8px 10px 10px;overflow-x:auto}
  .console-bar-right{gap:2px}
  /* icon-only on phones: the captions would need a second line.
     Everything else about the phone toolbar lives in mobile.css, which loads later
     and therefore wins — changing sizes here has no effect. */
  .bar-label{display:none}
  .bar-badge{max-width:150px}
  .console-popover{right:10px;left:10px;bottom:10px;width:auto}
  .key-pad{grid-template-columns:repeat(3,minmax(0,1fr))}
}
