* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-size: 12px;
}
.toolbar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: 36px;
  background: #1b1b1b;
  border-top: 1px solid #2e2e2e;
  display: flex;
  align-items: stretch;
  z-index: 99999;
  box-shadow: 0 -2px 8px rgba(0,0,0,.4);
}
.tb-badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px;
  font-weight: 700; font-size: 12px; color: #fff;
  text-decoration: none; height: 100%;
  transition: opacity .15s;
}
.tb-badge:hover { opacity: .85; }
.tb-badge--s-ok       { background: #2e7d32; }
.tb-badge--s-warn     { background: #c0392b; }
.tb-badge--s-error    { background: #c0392b; }
.tb-badge--s-redirect { background: #1565c0; }
.tb-block {
  display: flex; align-items: center; gap: 5px;
  padding: 0 10px; color: #ccc; text-decoration: none;
  height: 100%; white-space: nowrap;
  transition: background .15s; cursor: pointer;
}
.tb-block:hover { background: #252525; color: #fff; }
.tb-icon { color: #888; display: flex; align-items: center; }
.tb-block:hover .tb-icon { color: #aaa; }
.tb-label { font-size: 12px; }
.tb-underline { border-bottom: 2px solid #e74c3c; }
.tb-spacer { flex: 1; }
.tb-brand {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; color: #ccc; text-decoration: none;
  border-left: 1px solid #2e2e2e; height: 100%; font-weight: 500;
}
.tb-brand:hover { background: #252525; }
.tb-brand-icon {
  width: 20px; height: 20px; background: #C87A3C;
  border-radius: 4px; display: flex; align-items: center;
  justify-content: center; font-size: 10px; font-weight: 900;
  color: #fff; flex-shrink: 0;
}
.tb-version {
  display: flex; align-items: center; padding: 0 10px;
  color: #888; font-size: 11px;
  border-left: 1px solid #2e2e2e; height: 100%; white-space: nowrap;
}
.lang-switch--toolbar {
  display: flex; align-items: center; gap: 2px; height: 100%;
  padding: 0 8px; border-left: 1px solid #2e2e2e;
}
.lang-switch--toolbar .lang-switch-item {
  padding: 3px 6px; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  color: #777; border-radius: 3px; text-decoration: none;
  border: none; background: none; cursor: pointer; font-family: inherit;
}
.lang-switch--toolbar .lang-switch-item.active { background: #2e2e2e; color: #FAC68E; }
.lang-switch--toolbar .lang-switch-item:hover:not(.active) { color: #ccc; }
.tb-collapse {
  display: flex; align-items: center; justify-content: center;
  width: 36px; color: #555; cursor: pointer;
  border: none; background: none;
  border-left: 1px solid #2e2e2e; height: 100%;
  font-size: 13px; transition: background .15s, color .15s;
  flex-shrink: 0;
}
.tb-collapse:hover { background: #333; color: #ccc; }
.tb-badge-pill {
  display: inline-flex; align-items: center; justify-content: center;
  background: #c0392b; color: #fff; border-radius: 10px;
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  padding: 0 4px; margin-left: 2px;
}
.tb-badge-pill--warn { background: #e67e22; }
.tb-badge-pill--ok   { background: #2e7d32; }
.tb-time-bar {
  width: 100%; height: 2px; background: #e74c3c;
  position: absolute; bottom: 0; left: 0;
}
/* HTTP requests tooltip */
.tb-http-block { position: relative; }
.tb-http-tooltip {
  display: none;
  position: absolute; bottom: 100%; left: 0;
  background: #1e1e1e; border: 1px solid #333; border-radius: 6px;
  min-width: 500px; z-index: 100000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.7); overflow: hidden;
  /* flush against the trigger block (no gap) so the mouse never leaves the
     hoverable area while moving from the block up into the dropdown —
     a gap here would break :hover before the pointer reaches the content */
  margin-bottom: 0;
}
.tb-http-block:hover .tb-http-tooltip { display: block; }
.tb-tip-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px; background: #161616; border-bottom: 1px solid #333;
  font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: .5px;
}
.tb-tip-viewall { color: #7c98d3; text-decoration: none; font-size: 11px; }
.tb-tip-viewall:hover { text-decoration: underline; }
.tb-tip-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tb-tip-table th {
  text-align: left; padding: 5px 10px;
  color: #666; font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid #2a2a2a; background: #1a1a1a;
}
.tb-tip-table td { padding: 5px 10px; color: #bbb; border-bottom: 1px solid #252525; }
.tb-tip-table tr:last-child td { border-bottom: none; }
.tb-tip-table tr:hover td { background: #262626; }
.tip-current td { background: #1e2a1e !important; }
.tip-method {
  display: inline-block; padding: 1px 6px; border-radius: 3px;
  font-size: 10px; font-weight: 700; min-width: 52px; text-align: center;
}
.tip-m-get     { background: #1565c0; color: #fff; }
.tip-m-post    { background: #e67e22; color: #fff; }
.tip-m-put     { background: #8e44ad; color: #fff; }
.tip-m-patch   { background: #16a085; color: #fff; }
.tip-m-delete  { background: #c0392b; color: #fff; }
.tip-m-head,
.tip-m-options { background: #555; color: #fff; }
.tip-s-ok    { color: #2ecc71; font-weight: 600; }
.tip-s-redir { color: #3498db; font-weight: 600; }
.tip-s-err   { color: #e74c3c; font-weight: 600; }
.tip-dur  { color: #888; white-space: nowrap; }
.tip-url-link { color: #ccc; text-decoration: none; }
.tip-url-link:hover { color: #7c98d3; }

/* ── per-block hover tooltip (status, duration, memory, logs, route, server) ── */
.tb-block-wrap { position: relative; display: flex; align-items: stretch; height: 100%; }
.tb-tooltip {
  display: none;
  position: absolute; bottom: 100%; left: 0;
  background: #1e1e1e; border: 1px solid #333; border-radius: 6px;
  padding: 10px 0 6px; min-width: 240px; z-index: 100000;
  box-shadow: 0 -4px 20px rgba(0,0,0,.7);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  /* flush against the trigger block (no gap) — see .tb-http-tooltip */
  margin-bottom: 0;
}
.tb-block-wrap:hover .tb-tooltip { display: block; }
/* blocks near the toolbar's right edge (Server, version) — anchor from the
   right so the tooltip grows leftward and stays inside the viewport */
.tb-tooltip--right { left: auto; right: 0; }
.tt-row {
  display: flex; align-items: baseline;
  padding: 3px 14px; gap: 8px; line-height: 1.6;
}
.tt-label {
  color: #666; font-size: 11px; white-space: nowrap;
  min-width: 90px; flex-shrink: 0;
}
.tt-val { color: #d4d4d4; font-size: 12px; word-break: break-all; }
.tt-val code {
  background: #111; border: 1px solid #2a2a2a; padding: 1px 5px;
  border-radius: 3px; font-size: 11px; color: #aaa;
}
.tt-badge {
  display: inline-flex; align-items: center;
  padding: 1px 7px; border-radius: 10px;
  font-size: 10px; font-weight: 700; color: #fff;
}
.tt-sep { height: 1px; background: #2a2a2a; margin: 6px 0; }
.tt-link {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 14px; color: #FAC68E; font-size: 12px;
  text-decoration: none; transition: background .1s;
}
.tt-link:hover { background: #252525; color: #FBD4A8; }

/* ── collapsed mini pill (bottom-right) ── */
#wdt-mini {
  position: fixed; bottom: 12px; right: 12px; z-index: 99999;
  display: none; align-items: center;
  background: #1b1b1b; border: 1px solid #333; border-radius: 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.6); overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
}
#wdt-mini-logo {
  display: flex; align-items: center; gap: 7px;
  padding: 0 12px 0 10px; height: 34px;
  border-right: 1px solid #2a2a2a;
  color: #ccc; font-size: 12px; font-weight: 500; text-decoration: none;
}
#wdt-mini-logo-icon {
  width: 22px; height: 22px; background: #FAC68E; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 900; color: #fff; flex-shrink: 0;
}
#wdt-mini-status {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; height: 34px;
  font-size: 12px; font-weight: 700; color: #fff;
  border-right: 1px solid #2a2a2a; min-width: 44px;
  text-decoration: none; transition: opacity .15s;
}
#wdt-mini-status:hover { opacity: .85; }
#wdt-mini-expand {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 34px; color: #555; font-size: 13px;
  border: none; background: none; cursor: pointer; transition: color .15s;
}
#wdt-mini-expand:hover { color: #ccc; }
