﻿/* ── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--rs);
  border: 1px solid var(--line2); background: var(--bg2);
  color: var(--text); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s; white-space: nowrap;
  font-family: var(--font);
}
.btn:hover { background: var(--bg3); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: var(--accent); border-color: var(--accent);
  color: #fff; font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-btn); border-color: var(--accent-btn);
}
.btn-sm    { padding: 5px 10px; font-size: 12px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--bg2); color: var(--text); border-color: var(--line); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(220,38,38,.06); }

/* ── TAGS / BADGES ───────────────────────────── */
.tag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 10px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.tg-login   { background: #dbeafe; color: #1d4ed8; }
.tg-payment { background: #fef3c7; color: #92400e; }
.tg-profile { background: #ede9fe; color: #6d28d9; }
.tg-cart    { background: #dcfce7; color: #15803d; }
.tg-pos     { background: #dcfce7; color: #15803d; }
.tg-neg     { background: #fee2e2; color: #b91c1c; }
.tg-bnd     { background: #fef3c7; color: #92400e; }
.tg-edge    { background: #ede9fe; color: #6d28d9; }
.tg-happy   { background: #dbeafe; color: #1d4ed8; }
.sev { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 9px; letter-spacing: .3px; }
.sev-c { background: #fee2e2; color: #b91c1c; }
.sev-m { background: #fef3c7; color: #92400e; }
.sev-n { background: #ede9fe; color: #6d28d9; }
.prio-high   { background: #fee2e2; color: #b91c1c; }
.prio-medium { background: #fef3c7; color: #92400e; }
.prio-low    { background: #dcfce7; color: #15803d; }

/* ── TABLE ───────────────────────────────────── */
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 9px 14px; text-align: left; font-size: 11px;
  font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
  background: var(--bg); position: sticky; top: 0; z-index: 1;
}
tbody td {
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
.push-btn {
  font-size: 11px; padding: 3px 8px; border-radius: 4px;
  border: 1px solid var(--line2); background: transparent;
  color: var(--muted); cursor: pointer; font-family: var(--font); transition: all .2s;
}
.push-btn:hover { border-color: var(--accent); color: var(--accent); }
.push-btn.pushed { border-color: var(--ok); color: var(--ok); }

/* Shimmer */
.shim { height: 11px; border-radius: 4px; background: var(--bg3); display: inline-block; }
@keyframes sh { 0%,100%{opacity:.3} 50%{opacity:.65} }
.shimmer td .shim { animation: sh 1.4s infinite; }

/* ── TEST DATA ───────────────────────────────── */
.data-workspace { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.data-config {
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  display: flex; gap: 12px; align-items: flex-end; flex-shrink: 0; flex-wrap: wrap;
}
.field-group { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .3px; }
.field-input, .field-select {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--rs); padding: 7px 10px;
  color: var(--text); font-size: 13px; outline: none; transition: border-color .2s;
}
.field-input:focus, .field-select:focus { border-color: rgba(var(--accent-rgb),.4); }
.field-select option { background: var(--bg1); }
.schema-builder {
  padding: 10px 20px; border-bottom: 1px solid var(--line);
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-shrink: 0;
}
.schema-chip {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; padding: 4px 10px; font-size: 12px;
}
.chip-type { color: var(--muted); font-size: 11px; }
.chip-del { color: var(--muted2); cursor: pointer; font-size: 14px; line-height: 1; transition: color .15s; }
.chip-del:hover { color: var(--danger); }
.schema-chip { cursor: pointer; }
.schema-chip.editing { border-color: var(--accent); background: rgba(var(--accent-rgb),.04); }

/* ── CHIP EDIT POPOVER ───────────────────────── */
.chip-popover {
  position: fixed; z-index: 9999;
  background: var(--bg1); border: 1px solid var(--line2);
  border-radius: var(--r); padding: 14px 16px;
  width: 240px; box-shadow: var(--shadow-panel, 0 8px 28px rgba(0,0,0,.18));
  display: flex; flex-direction: column; gap: 11px;
}
.chip-popover-title { font-size: 12px; font-weight: 600; color: var(--text); }
.chip-popover-field { display: flex; flex-direction: column; gap: 4px; }
.chip-popover-label {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted);
}
.chip-popover select, .chip-popover input[type="text"] {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--rs); padding: 6px 9px;
  color: var(--text); font-size: 12px; outline: none;
  transition: border-color .15s; width: 100%; font-family: var(--font);
}
.chip-popover input[type="text"].mono { font-family: var(--mono); }
.chip-popover select:focus, .chip-popover input[type="text"]:focus { border-color: rgba(var(--accent-rgb),.4); }
.chip-popover-hint { font-size: 10px; color: var(--muted2); line-height: 1.5; }
.chip-popover-check {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 12px;
}
.chip-popover-check input { accent-color: var(--accent); width: 13px; height: 13px; cursor: pointer; }
.chip-popover-check-sub { font-size: 10px; color: var(--muted2); margin-top: 1px; }
.add-field-btn {
  display: flex; align-items: center; gap: 5px; padding: 4px 10px;
  border-radius: 20px; border: 1px dashed var(--line2);
  background: transparent; color: var(--muted); font-size: 12px;
  cursor: pointer; font-family: var(--font); transition: all .2s;
}
.add-field-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Add field inline form */
.add-field-form {
  display: none; align-items: center; gap: 8px; padding: 8px 20px;
  border-bottom: 1px solid var(--line); background: var(--bg2); flex-shrink: 0;
}
.add-field-form.open { display: flex; }
.add-field-form input, .add-field-form select {
  padding: 5px 9px; border: 1px solid var(--line2);
  border-radius: var(--rs); font-size: 12px; background: var(--bg1);
  color: var(--text); outline: none;
}
.add-field-form input:focus { border-color: rgba(var(--accent-rgb),.4); }

/* ── MOBILE WIZARD SIDEBAR TITLE ────────────────── */
.apk-wizard-title {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px;
  color: var(--accent); border-bottom: 1px solid var(--line);
  flex-shrink: 0; user-select: none;
}
.apk-wizard-title svg { opacity: .8; flex-shrink: 0; }

/* ── SHORTCUTS BAR (Full Control mode) ──────────── */
.apk-shortcuts-bar {
  display: none; align-items: center; flex-wrap: wrap;
  gap: 4px 14px; padding: 5px 14px; flex-shrink: 0;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.apk-shortcuts-bar.visible { display: flex; }
.apk-sc-label {
  font-size: 9px; font-weight: 700; letter-spacing: .6px;
  color: var(--accent); opacity: .7; margin-right: 2px;
}
.apk-sc-group { display: flex; align-items: center; gap: 10px; }
.apk-sc-sep   { width: 1px; height: 14px; background: var(--line2); flex-shrink: 0; }
.apk-sc-item  {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--muted); white-space: nowrap;
}
.apk-kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  padding: 1px 5px; min-width: 20px; line-height: 1.5;
  border-radius: 4px; background: var(--bg3);
  border: 1px solid var(--line2); border-bottom: 2px solid var(--line2);
  color: var(--text);
}
.apk-kbd-accent {
  background: rgba(var(--accent-rgb),.1);
  border-color: rgba(var(--accent-rgb),.3);
  border-bottom-color: rgba(var(--accent-rgb),.5);
  color: var(--accent);
}

/* ── MOBILE WIZARD ────────────────────────────── */

/* Agent offline banner - full-width strip */
.apk-agent-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding: 14px 20px;
  background: linear-gradient(90deg, rgba(23,114,109,0.08), rgba(205,170,54,0.05));
  border-bottom: 1px solid rgba(23,114,109,0.2); font-size: 13px;
}
.apk-agent-banner-left { display: flex; align-items: center; gap: 14px; }
.apk-agent-banner-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: rgba(23,114,109,0.15); border: 1px solid rgba(23,114,109,0.25);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.apk-agent-banner-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.apk-agent-banner-sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.apk-agent-banner-sub code {
  font-family: var(--mono); font-size: 11px;
  background: rgba(255,255,255,0.07); padding: 1px 5px; border-radius: 4px; color: #22a89f;
}
.apk-agent-banner-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.apk-banner-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; border: none; text-decoration: none; transition: all .18s; font-family: inherit;
}
.apk-banner-btn-primary {
  background: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(23,114,109,0.35);
}
.apk-banner-btn-primary:hover { background: #1a8a84; box-shadow: 0 0 24px rgba(23,114,109,0.5); }
.apk-banner-btn-ghost {
  background: rgba(255,255,255,0.06); color: var(--muted); border: 1px solid rgba(255,255,255,0.1);
}
.apk-banner-btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text); }

/* APK drop zone */
.apk-dropzone {
  border: 2px dashed var(--line2); border-radius: var(--r);
  padding: 14px 12px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.apk-dropzone:hover, .apk-dropzone.drag-over {
  border-color: var(--accent); background: rgba(var(--accent-rgb),.04);
}
.apk-dropzone.has-apk {
  border-style: solid; border-color: rgba(var(--accent-rgb),.4);
  background: rgba(var(--accent-rgb),.03);
}

/* APK upload/install progress */
.apk-progress {
  display: none; flex-direction: column; gap: 7px;
  padding: 11px 13px; background: var(--bg2);
  border: 1px solid var(--line); border-radius: var(--r);
}
.apk-progress.visible { display: flex; }
.apk-progress-header { display: flex; align-items: center; justify-content: space-between; }
.apk-progress-label {
  font-size: 11px; font-weight: 400; color: var(--text); display: flex; align-items: center; gap: 7px;
}
.apk-progress-label .spin {
  width: 13px; height: 13px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid var(--bg4); border-top-color: var(--accent);
  animation: apkSpin .7s linear infinite;
}
.apk-progress-pct { font-size: 11px; color: var(--muted); font-family: var(--mono); }
@keyframes apkSpin { to { transform: rotate(360deg); } }
.apk-progress-track { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.apk-progress-fill {
  height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .25s ease;
}
.apk-progress-fill.indeterminate { animation: apkIndeterminate 1.4s ease-in-out infinite; }
@keyframes apkIndeterminate {
  0%   { width: 0%;  margin-left: 0%;   }
  50%  { width: 60%; margin-left: 20%;  }
  100% { width: 0%;  margin-left: 100%; }
}
.apk-progress-sub { font-size: 10px; color: var(--muted2); }

/* AI quality picker */
.apk-quality-wrap {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r);
}
/* sidebar context: flat section, no card border */
.apk-left .apk-quality-wrap {
  border-radius: 0; border: none; border-bottom: 1px solid var(--line);
  padding: 12px 14px 12px; background: transparent;
}
.apk-quality-label {
  font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; justify-content: space-between;
}
.apk-quality-label span { font-weight: 500; color: var(--accent); text-transform: none; letter-spacing: 0; }

/* Modern range slider */
.apk-quality-slider {
  width: 100%; height: 20px; margin: 2px 0 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; outline: none; cursor: pointer;
}
.apk-quality-slider::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) calc(var(--pct, 0.667) * 100%),
    var(--bg4) calc(var(--pct, 0.667) * 100%)
  );
}
.apk-quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px;
  border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg1); box-shadow: 0 0 0 1px var(--accent);
  cursor: pointer; transition: box-shadow .15s;
}
.apk-quality-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),.25);
}
.apk-quality-slider::-moz-range-track {
  height: 4px; border-radius: 2px; background: var(--bg4);
}
.apk-quality-slider::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent); }
.apk-quality-slider::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg1); cursor: pointer;
}
.apk-quality-ticks {
  display: flex; justify-content: space-between;
  font-size: 10px; color: var(--muted2); margin-top: -2px;
}
.apk-quality-ticks span.active { color: var(--accent); font-weight: 600; }
.apk-quality-hint { font-size: 10px; color: var(--muted2); line-height: 1.5; }

/* Navigation grid */
.apk-nav-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; }
.apk-nav-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  padding: 7px 4px; font-size: 11px; border-radius: 7px;
  border: 1px solid var(--line2); background: var(--bg2);
  cursor: pointer; color: var(--text); font-family: var(--font);
  transition: background .15s, border-color .15s;
}
.apk-nav-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(var(--accent-rgb),.07); }
.apk-nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.apk-nav-btn.active-btn { background: rgba(var(--accent-rgb),.12); border-color: var(--accent); color: var(--accent); }
.apk-nav-wide { grid-column: span 3; }

.apk-screen-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.apk-side-action {
  width: 100%; min-height: 32px; flex-direction: column;
  padding: 7px 6px; gap: 3px; font-size: 10px; font-weight: 700;
  background: var(--bg1);
}
.apk-side-action-primary {
  background: rgba(var(--accent-rgb),.1); border-color: rgba(var(--accent-rgb),.28);
  color: var(--accent);
}
.apk-side-action-primary:hover:not(:disabled) {
  background: rgba(var(--accent-rgb),.16);
}
.apk-phone-nav-dock {
  position: absolute; left: calc(100% - 8px); top: 50%; z-index: 1;
  transform: translateY(-50%);
  display: flex; align-items: center; gap: 5px;
  padding: 5px; border: none; border-radius: 10px;
  background: transparent; box-shadow: none;
}
.apk-phone-nav-toggle {
  width: 24px; height: 72px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.08); border-radius: 7px; background: rgba(255,255,255,.72);
  color: var(--muted); cursor: pointer;
  box-shadow: 0 8px 18px rgba(26,31,46,.12); backdrop-filter: blur(8px);
  transition: border-color .15s, color .15s, height .15s;
}
.apk-phone-nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.apk-phone-nav-toggle svg { transition: transform .15s; }
.apk-phone-nav-body {
  display: flex; flex-direction: column; gap: 5px;
  width: 62px;
}
.apk-phone-nav-body .apk-nav-btn {
  width: 62px; height: 30px; min-height: 30px; padding: 0 7px;
  justify-content: flex-start; gap: 5px; background: rgba(255,255,255,.72);
  font-size: 9px; font-weight: 500; line-height: 1;
  letter-spacing: 0; color: rgba(26,31,46,.68);
  box-shadow: 0 8px 18px rgba(26,31,46,.12); backdrop-filter: blur(8px);
}
.apk-phone-nav-body .apk-nav-btn svg { width: 13px; height: 13px; }
.apk-phone-nav-body .apk-nav-btn span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.apk-phone-nav-body #navLaunch { width: 62px; }
.apk-phone-nav-dock.collapsed { align-items: center; }
.apk-phone-nav-dock.collapsed .apk-phone-nav-body { display: none; }
.apk-phone-nav-dock.collapsed .apk-phone-nav-toggle { height: 38px; }
.apk-phone-nav-dock.collapsed .apk-phone-nav-toggle svg { transform: rotate(180deg); }

.apk-phone-device-dock {
  position: absolute; right: calc(100% - 8px); top: 50%; z-index: 1;
  transform: translateY(-50%);
  display: flex; flex-direction: row; align-items: center; gap: 5px;
  padding: 5px; border: none; background: transparent; box-shadow: none;
}
.apk-device-dock-body {
  display: flex; flex-direction: column; gap: 5px;
  width: 140px;
}
.apk-device-dock-toggle {
  width: 24px; height: 72px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(0,0,0,.08); border-radius: 7px;
  background: rgba(255,255,255,.72); color: var(--muted); cursor: pointer;
  box-shadow: 0 8px 18px rgba(26,31,46,.12); backdrop-filter: blur(8px);
  transition: border-color .15s, color .15s, height .15s;
}
.apk-device-dock-toggle:hover { border-color: var(--accent); color: var(--accent); }
.apk-device-dock-toggle svg { transition: transform .15s; }
.apk-phone-device-dock.collapsed .apk-device-dock-body { display: none; }
.apk-phone-device-dock.collapsed .apk-device-dock-toggle { height: 38px; }
.apk-phone-device-dock.collapsed .apk-device-dock-toggle svg { transform: rotate(180deg); }
.apk-phone-device-dock #apkDeviceBar {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 6px 7px; border-radius: 7px;
  border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,.72);
  box-shadow: 0 8px 18px rgba(26,31,46,.12); backdrop-filter: blur(8px);
}
.apk-phone-device-dock .apk-device-chips {
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.apk-phone-device-dock .device-chip {
  width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  border-color: rgba(0,0,0,.08); background: rgba(255,255,255,.50);
  color: rgba(26,31,46,.76); border-radius: 6px;
}
.apk-phone-device-dock .apk-device-status {
  margin-top: 0; font-size: 11px; font-weight: 700; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apk-phone-device-dock .apk-device-status.connected { color: #15803d; }
.apk-phone-device-dock .apk-disconnect-btn {
  width: 100%; justify-content: center; min-height: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(0,0,0,.08); border-radius: 7px;
  box-shadow: 0 8px 18px rgba(26,31,46,.12); backdrop-filter: blur(8px);
}

/* Inspector panel */
#inspectorPanel {
  display: none; flex: 1; flex-direction: column; overflow-y: auto; gap: 0; min-height: 0;
}
.insp-empty { font-size: 12px; color: var(--muted); padding: 16px 14px; line-height: 1.7; }
.insp-row {
  display: flex; align-items: flex-start;
  border-bottom: 1px solid var(--line); font-size: 11px;
}
.insp-key {
  width: 100px; flex-shrink: 0; padding: 6px 10px;
  color: var(--muted); font-family: var(--mono); background: var(--bg2);
  border-right: 1px solid var(--line); word-break: break-all; line-height: 1.5;
}
.insp-val {
  flex: 1; padding: 6px 10px; color: var(--text);
  font-family: var(--mono); word-break: break-all; line-height: 1.5;
}
.insp-val-copy { cursor: pointer; transition: background .12s, color .12s; }
.insp-val-copy:hover { background: rgba(var(--accent-rgb),.1); color: var(--accent); }
.insp-val-copy:active { opacity: .7; }
.insp-section {
  padding: 5px 10px; font-size: 10px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted); background: var(--bg);
  border-bottom: 1px solid var(--line); flex-shrink: 0;
}
.insp-badge {
  display: inline-block; font-size: 9px; padding: 1px 5px; border-radius: 3px;
  font-weight: 600; margin-left: 4px; vertical-align: middle;
}
.insp-badge.yes { background: rgba(0,200,100,.15); color: #0c6; }
.insp-badge.no  { background: rgba(180,180,180,.08); color: var(--muted2); }
.locator-card {
  margin: 8px; padding: 11px; border: 1px solid var(--line2); border-radius: 8px;
  background: var(--bg2); display: flex; flex-direction: column; gap: 8px;
}
.locator-card-head,
.locator-actions,
.locator-row,
.locator-row-meta,
.locator-row-actions {
  display: flex; align-items: center; gap: 6px;
}
.locator-card-head,
.locator-row { justify-content: space-between; }
.locator-title {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; letter-spacing: 0; color: var(--text); font-weight: 700;
}
.locator-subtitle {
  margin-top: 2px; font-size: 10px; color: var(--muted);
}
.locator-strategy {
  font-size: 10px; color: var(--accent); font-weight: 700;
  overflow-wrap: anywhere;
}
.locator-value {
  font-family: var(--mono); font-size: 11px; line-height: 1.45;
  color: var(--text); overflow-wrap: anywhere; background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 7px;
}
.locator-copy-mode {
  min-width: 0; flex: 1; height: 26px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg); color: var(--text); font-size: 11px; padding: 0 8px;
}
.locator-btn,
.locator-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 26px; border: 1px solid var(--line2); border-radius: 6px;
  background: var(--bg); color: var(--text); cursor: pointer; font-size: 11px;
  padding: 0 9px; font-family: var(--font);
}
.locator-btn:hover,
.locator-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.locator-btn.primary {
  background: rgba(var(--accent-rgb),.12); border-color: var(--accent); color: var(--accent);
  font-weight: 700;
}
.inspector-refresh-bar {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border-bottom: 1px solid var(--line); background: var(--bg);
}
.inspector-refresh-bar span {
  min-width: 0; color: var(--muted); font-size: 10px; line-height: 1.35;
}
.locator-row {
  padding: 8px 10px; border-bottom: 1px solid var(--line); align-items: flex-start;
}
.locator-row-main { min-width: 0; flex: 1; }
.locator-row .locator-value { margin-top: 4px; padding: 5px 6px; }
.locator-row-actions { flex-shrink: 0; }
.locator-status {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px;
  gap: 4px;
  border-radius: 999px; font-size: 9px; font-weight: 700; text-transform: none;
  background: rgba(180,180,180,.12); color: var(--muted);
}
.locator-status.unique { background: rgba(0,200,100,.15); color: #0c6; }
.locator-status.multiple,
.locator-status.fragile { background: rgba(245,158,11,.16); color: #f59e0b; }
.locator-status.not-found { background: rgba(239,68,68,.16); color: #ef4444; }
.locator-status.fallback { background: rgba(99,102,241,.16); color: #818cf8; }
.locator-match,
.locator-warning {
  margin-top: 4px; font-size: 10px; color: var(--muted); line-height: 1.4;
}
.locator-warning {
  display: flex; align-items: flex-start; gap: 5px; color: #f59e0b;
}
.locator-svg {
  flex: 0 0 auto; width: 13px; height: 13px;
}

/* Screenshot thumbnails - vertical list */
.apk-thumb {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 8px; cursor: pointer; border-radius: var(--rs);
  border: 1.5px solid transparent; transition: all .15s;
  background: var(--bg2); margin-bottom: 3px;
}
.apk-thumb:hover { background: var(--bg3); }
.apk-thumb.active { border-color: var(--accent); background: rgba(var(--accent-rgb),.06); }
.apk-thumb img { width: 26px; height: 44px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.apk-thumb-label {
  font-size: 11px; color: var(--text); flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.apk-thumb-actions {
  display: flex; align-items: center; gap: 3px; flex-shrink: 0;
}
.apk-thumb-action {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); border-radius: 6px;
  background: var(--bg1); color: var(--muted);
  cursor: pointer; padding: 0; transition: border-color .15s, color .15s, background .15s;
}
.apk-thumb-action:hover {
  border-color: var(--accent); color: var(--accent);
  background: rgba(var(--accent-rgb),.08);
}
.apk-thumb-action-danger:hover {
  border-color: #ef4444; color: #ef4444;
  background: rgba(239,68,68,.08);
}
.apk-thumb-action .ico { width: 13px; height: 13px; }

/* Device section header row */
.apk-device-section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
}
.apk-disconnect-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 8px; border-radius: var(--rs); font-size: 11px; font-weight: 500;
  border: 1px solid var(--line2); background: var(--bg2);
  color: var(--muted); cursor: pointer; font-family: var(--font);
  transition: all .15s; white-space: nowrap;
}
.apk-disconnect-btn:hover:not(:disabled) { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,.06); }
.apk-disconnect-btn:disabled { opacity: .35; cursor: not-allowed; }

/* Device sidebar info */
.apk-device-model { font-size: 13px; font-weight: 600; color: var(--text); }
.apk-device-meta  { font-size: 11px; color: var(--muted); }
.apk-device-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--muted); margin-top: 2px;
}
.apk-device-status.connected { color: #22c55e; }
.apk-status-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: dotpulse 2s infinite;
}
.apk-status-dot.offline { background: var(--muted); box-shadow: none; animation: none; }

/* Topbar action buttons */
.apk-topbar-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 12px; font-size: 12px; font-weight: 500;
  border-radius: var(--rs); white-space: nowrap;
  grid-column: unset; width: auto;
}
.apk-topbar-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.apk-topbar-primary:hover:not(:disabled) {
  background: #1a8f89; border-color: #1a8f89; color: #fff;
}
.apk-topbar-primary.active-btn {
  background: #b84a30; border-color: #b84a30; color: #fff;
}
.apk-topbar-inspector.active-btn {
  background: rgba(var(--accent-rgb),.12); border-color: var(--accent); color: var(--accent);
}

/* Right panel tabs and body */
.apk-panel-tab {
  padding: 8px 9px; font-size: 11px; font-weight: 500; white-space: nowrap;
  border: none; background: none; cursor: pointer;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.apk-panel-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.apk-panel-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 104px; height: 26px; padding: 0 9px;
  border: 1px solid var(--line2); border-radius: var(--rs);
  background: var(--bg1); color: var(--accent);
  font-family: var(--font); font-size: 10px; font-weight: 700;
  line-height: 1; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.apk-panel-action:hover:not(:disabled) {
  border-color: var(--accent); background: rgba(var(--accent-rgb),.07);
}
.apk-panel-action:disabled { opacity: .35; cursor: not-allowed; }
.apk-panel-action.active-btn {
  background: #fee2e2; border-color: rgba(185,28,28,.24); color: #b91c1c;
}
.apk-panel-body { flex: 1; overflow-y: auto; padding: 10px 12px; }

/* Browser API capture */
.net-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  min-width: 0;
}
.net-summary-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  white-space: nowrap;
}
.net-summary-pill.warn {
  color: #b91c1c;
  background: #fee2e2;
  border-color: rgba(185,28,28,.18);
}
.net-live-hint {
  display: none;
  min-width: 120px;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted2);
  font-family: var(--mono);
  font-size: 10px;
}
.net-row {
  display: grid;
  grid-template-columns: 42px 52px minmax(0, 1fr) minmax(54px, auto) minmax(0, 96px);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.net-row:hover { background: var(--bg2); }
.net-row.expanded { background: rgba(var(--accent-rgb), .045); border-bottom-color: rgba(var(--accent-rgb), .18); }
.net-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.net-method {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 22px; border-radius: 4px;
  background: var(--bg2); border: 1px solid var(--line);
  font-weight: 700; font-size: 10px;
}
.net-endpoint { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.net-host, .net-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.net-host { color: var(--text); }
.net-path { color: var(--muted2); }
.net-chip {
  display: inline-flex; align-items: center; justify-content: center;
  height: 22px; padding: 0 7px; border: 1px solid var(--line);
  border-radius: 4px; background: var(--bg2); color: var(--muted);
  font-size: 9px; white-space: nowrap; max-width: 110px;
  overflow: hidden; text-overflow: ellipsis;
}
.net-chip.hot { color: var(--accent); background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .24); }
.net-chip.err { color: #b91c1c; background: #fee2e2; border-color: rgba(185,28,28,.18); }
.net-source { opacity: .7; text-transform: uppercase; letter-spacing: .3px; }
.net-target { max-width: 150px; color: var(--accent); border-color: rgba(var(--accent-rgb), .22); background: rgba(var(--accent-rgb), .06); }
.net-target.inactive { opacity: .55; color: var(--muted); border-color: var(--line); background: var(--bg2); }
.net-detail {
  padding: 10px 12px 12px 74px; background: var(--bg2);
  border-bottom: 1px solid var(--line); color: var(--muted2);
  font-family: var(--mono); font-size: 10px; line-height: 1.55; user-select: text;
}
.net-detail-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 8px;
}
.net-detail-title {
  min-width: 0; color: var(--text); font-family: var(--font);
  font-size: 12px; font-weight: 700; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.net-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.net-action-btn {
  height: 24px; padding: 0 8px; border-radius: 4px;
  border: 1px solid var(--line2); background: var(--bg1);
  color: var(--muted); cursor: pointer; font-family: var(--font); font-size: 10px;
}
.net-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.net-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.net-block {
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--bg1); overflow: hidden;
}
.net-block-title {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 8px; border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--font); font-size: 10px; font-weight: 700;
}
.net-block.collapsible .net-block-title { cursor: pointer; user-select: none; }
.net-block-title span:last-child { color: var(--muted); font-family: var(--mono); font-weight: 500; }
.net-caret {
  display: inline-flex; width: 12px; margin-right: 4px;
  color: var(--muted); transition: transform .12s;
}
.net-block.collapsed .net-caret { transform: rotate(-90deg); }
.net-pre {
  margin: 0; max-height: 240px; overflow: auto; padding: 7px 8px;
  white-space: pre-wrap; word-break: break-word;
  color: var(--muted2); background: var(--bg);
}
.net-json { color: var(--text); tab-size: 2; }
.net-json-tree {
  font-family: var(--mono);
  color: var(--text);
}
.net-json-line {
  min-height: 20px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  column-gap: 6px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
}
.net-json-node-head {
  min-height: 20px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: baseline;
  column-gap: 6px;
}
.net-json-node-head {
  cursor: pointer;
  user-select: none;
}
.net-json-node-head:hover { background: rgba(var(--accent-rgb), .05); }
.net-json-children {
  margin-left: 28px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.net-json-node.collapsed > .net-json-children { display: none; }
.net-json-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 3px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  transition: transform .12s;
  vertical-align: text-bottom;
}
.net-json-node-head:hover .net-json-caret { background: var(--bg3); color: var(--text); }
.net-json-node.collapsed > .net-json-node-head .net-json-caret { transform: rotate(-90deg); }
.net-json-keyslot { display: inline-flex; justify-content: flex-start; min-width: 0; overflow: hidden; }
.net-json-key { color: #1d4ed8; font-weight: 600; white-space: nowrap; }
.net-json-value { min-width: 0; }
.net-json-node-head .net-json-value { display: inline-flex; align-items: center; gap: 3px; }
.net-json-value.block {
  display: block;
  grid-column: 2;
  margin-bottom: 5px;
  line-height: 1.55;
}
.net-json-string { color: #15803d; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; }
.net-json-string.block {
  display: inline;
  line-height: 1.55;
}
.net-json-number { color: #b45309; }
.net-json-bool { color: #7c3aed; font-weight: 600; }
.net-json-null { color: #64748b; font-style: italic; }
.net-json-punc { color: var(--muted); }
.net-json-brace,
.net-json-tail {
  color: #0f766e;
  font-weight: 800;
  font-size: 13px;
}
.net-json-tail {
  margin-left: 28px;
  min-height: 18px;
  display: flex;
  align-items: center;
}
.net-json-node.collapsed > .net-json-tail { display: none; }
.net-json-comma { color: var(--muted); font-weight: 700; margin-left: 1px; }
.net-json-tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  background: rgba(var(--accent-rgb), .08);
  border: 1px solid rgba(var(--accent-rgb), .22);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}
.net-block.collapsed .net-pre { display: none; }
.net-empty { color: var(--muted2); font-style: italic; }

/* Inject-on-click table cells */
.td-inject { cursor: pointer; transition: background .1s, color .1s; }
.td-inject:hover { background: var(--bg3); color: var(--accent); }

/* ── MODAL ───────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.3);
  backdrop-filter: blur(3px); z-index: 200;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg1); border: 1px solid var(--line2);
  border-radius: var(--r); padding: 22px; width: 420px; max-width: 94vw;
  transform: translateY(8px); transition: transform .2s;
  max-height: 90vh; overflow-y: auto;
}
.overlay.open .modal { transform: translateY(0); }
.modal-head { font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.mfield { margin-bottom: 12px; }
.mlabel {
  font-size: 11px; color: var(--muted); font-weight: 500;
  margin-bottom: 4px; letter-spacing: .3px; display: block;
}
.minput, .mselect {
  width: 100%; background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--rs); padding: 8px 11px; color: var(--text);
  font-size: 13px; outline: none; transition: border-color .2s;
  font-family: var(--font);
}
.minput:focus, .mselect:focus { border-color: rgba(var(--accent-rgb),.4); }
.mselect option { background: var(--bg1); }
.minput.error { border-color: var(--danger); }
.minput-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.minput-hint.success { color: var(--ok); }
.minput-hint.error   { color: var(--danger); }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.modal-divider { height: 1px; background: var(--line); margin: 14px 0; }

/* Connection status pill inside modal */
.conn-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 3px 8px; border-radius: 20px; margin-top: 8px;
}
.conn-status.ok   { background: #dcfce7; color: #15803d; }
.conn-status.err  { background: #fee2e2; color: #b91c1c; }
.conn-status.testing { background: var(--bg3); color: var(--muted); }
.conn-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── INTEGRATION MODAL ───────────────────────── */
.int-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: -22px -22px 18px; padding: 16px 18px;
  border-radius: var(--r) var(--r) 0 0;
}
.int-header.jira { background: linear-gradient(135deg,#0052cc18,#0052cc08); border-bottom: 1px solid #0052cc30; }
.int-header.ado  { background: linear-gradient(135deg,#0078d418,#0078d408); border-bottom: 1px solid #0078d430; }
.int-brand { display: flex; align-items: center; gap: 10px; }
.int-logo {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.int-header.jira .int-logo { background: #0052cc; }
.int-header.ado  .int-logo { background: #0078d4; }
.int-logo svg { display: block; }
.int-name  { font-size: 14px; font-weight: 600; }
.int-sub   { font-size: 11px; color: var(--muted); margin-top: 1px; }
.int-badge {
  font-size: 10px; font-weight: 600; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: 5px;
}
.int-badge.configured { background: #dcfce7; color: #15803d; }
.int-badge.notset     { background: var(--bg3); color: var(--muted); }
.int-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Password field with show/hide eye */
.minput-row { position: relative; display: flex; align-items: center; }
.minput-row .minput { padding-right: 36px; }
.minput-eye {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 34px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; color: var(--muted);
  border-radius: 0 var(--rs) var(--rs) 0; transition: color .15s;
}
.minput-eye:hover { color: var(--text); }

/* Test row */
.int-test-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }


/* Push button */
.push-btn { display: flex; align-items: center; gap: 5px; }

/* ── NOTIFICATIONS ───────────────────────────── */
.noti-wrap { position: relative; }
.noti-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 20px;
  background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none; border: 2px solid #17726d;
}
.noti-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 320px; background: var(--bg1);
  border: 1px solid var(--line2); border-radius: var(--r);
  box-shadow: 0 8px 28px rgba(0,0,0,.18); z-index: 300;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity .15s, transform .15s;
  overflow: hidden;
}
.noti-panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.noti-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.noti-title { font-size: 13px; font-weight: 600; }
.noti-clear {
  font-size: 11px; color: var(--muted); background: none; border: none;
  cursor: pointer; padding: 2px 6px; border-radius: var(--rs);
  transition: color .15s;
}
.noti-clear:hover { color: var(--text); }
.noti-body { max-height: 360px; overflow-y: auto; }
.noti-empty {
  padding: 32px 14px; text-align: center;
  font-size: 13px; color: var(--muted);
}
.noti-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  transition: background .1s;
}
.noti-item:last-child { border-bottom: none; }
.noti-item:hover { background: var(--bg2); }
.noti-item.read { opacity: .55; }
.noti-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.noti-text { flex: 1; min-width: 0; }
.noti-msg  { font-size: 12px; line-height: 1.4; color: var(--text); }
.noti-time { font-size: 11px; color: var(--muted); margin-top: 3px; }

/* ── PRODUCT UPDATES ─────────────────────────── */
.updates-wrap { position: relative; }
.updates-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 16px; height: 16px; border-radius: 20px;
  background: #f59e0b; color: #1a1202;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; pointer-events: none; border: 2px solid #17726d;
}
.updates-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: min(456px, calc(100vw - 24px)); background: rgba(255,255,255,.96);
  border: 1px solid rgba(12,58,55,.13); border-radius: 14px;
  box-shadow: 0 18px 54px rgba(5,25,23,.22); z-index: 300;
  opacity: 0; pointer-events: none;
  transform: translateY(-6px); transition: opacity .15s, transform .15s;
  overflow: hidden;
  backdrop-filter: blur(18px);
}
.updates-panel.open { opacity: 1; pointer-events: all; transform: translateY(0); }
.updates-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid rgba(12,58,55,.1);
  background:
    radial-gradient(circle at 8% 0%, rgba(var(--accent-rgb),.16), transparent 34%),
    linear-gradient(135deg, rgba(var(--accent-rgb),.09), rgba(255,255,255,.88) 58%);
}
.updates-head-icon {
  width: 38px; height: 38px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: rgba(var(--accent-rgb),.1);
  border: 1px solid rgba(var(--accent-rgb),.17);
  flex-shrink: 0;
}
.updates-head-copy { min-width: 0; flex: 1; }
.updates-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.updates-title { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: 0; }
.updates-count {
  min-height: 20px; padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 800; color: var(--accent);
  background: rgba(var(--accent-rgb),.1);
  white-space: nowrap;
}
.updates-count:empty { display: none; }
.updates-subtitle { font-size: 11px; color: var(--muted); margin-top: 3px; }
.updates-body {
  max-height: min(520px, calc(100vh - 116px));
  overflow-y: auto;
  background: linear-gradient(180deg, #f8faf9, #fff);
}
.updates-empty {
  min-height: 170px; padding: 34px 16px; text-align: center;
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.updates-empty-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb),.1);
}
.updates-empty-dot.muted {
  background: var(--muted);
  box-shadow: 0 0 0 5px rgba(100,116,139,.08);
}
.updates-feed {
  position: relative;
  padding: 14px 14px 16px;
}
.updates-group + .updates-group { margin-top: 14px; }
.updates-group-label {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 8px 30px;
  color: var(--muted);
  font-size: 10px; font-weight: 900; letter-spacing: .5px;
  text-transform: uppercase;
}
.updates-group-label::after {
  content: "";
  height: 1px; flex: 1;
  background: rgba(12,58,55,.08);
}
.updates-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0,1fr);
  gap: 0;
}
.updates-item:not(:last-child) { padding-bottom: 10px; }
.updates-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 14px; top: 34px; bottom: -1px;
  width: 1px;
  background: linear-gradient(180deg, rgba(var(--accent-rgb),.2), rgba(12,58,55,.06));
}
.updates-rail { position: relative; padding-top: 5px; z-index: 1; }
.updates-node {
  width: 28px; height: 28px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid rgba(12,58,55,.12);
  box-shadow: 0 4px 12px rgba(5,25,23,.08);
}
.updates-node .updates-cat-icon { width: 14px; height: 14px; }
.updates-node-feature { color: #17726d; }
.updates-node-fix { color: #15803d; }
.updates-node-improvement { color: #1d4ed8; }
.updates-node-announcement { color: #8a6c0d; }
.updates-card {
  padding: 13px 14px 12px;
  border: 1px solid rgba(12,58,55,.09);
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 20px rgba(5,25,23,.06);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.updates-item.latest .updates-card {
  border-color: rgba(var(--accent-rgb),.22);
  box-shadow: 0 8px 24px rgba(5,25,23,.08);
}
.updates-item.unread .updates-card {
  background: linear-gradient(180deg, #fff, rgba(var(--accent-rgb),.035));
}
.updates-item:hover .updates-card {
  border-color: rgba(var(--accent-rgb),.26);
  box-shadow: 0 10px 28px rgba(5,25,23,.1);
  transform: translateY(-1px);
}
.updates-item-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 7px;
}
.updates-cat {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  text-transform: uppercase; border-radius: 999px; padding: 4px 8px;
}
.updates-cat-icon { width: 12px; height: 12px; flex-shrink: 0; }
.updates-cat-feature { background: rgba(23,114,109,.12); color: #17726d; }
.updates-cat-fix { background: rgba(22,163,74,.13); color: #15803d; }
.updates-cat-improvement { background: rgba(37,99,235,.1); color: #1d4ed8; }
.updates-cat-announcement { background: rgba(205,170,54,.14); color: #8a6c0d; }
.updates-item-meta { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.updates-new {
  font-size: 9px; font-weight: 900; letter-spacing: .35px;
  color: #8a5b05; background: rgba(245,158,11,.16);
  border: 1px solid rgba(245,158,11,.24);
  border-radius: 999px; padding: 2px 6px; text-transform: uppercase;
}
.updates-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.updates-item-title {
  margin: 0; color: var(--text);
  font-size: 14px; line-height: 1.35; font-weight: 800;
}
.updates-summary {
  margin: 6px 0 0; color: var(--text);
  font-size: 12.5px; line-height: 1.55;
}
.updates-more {
  margin-top: 9px;
  border-top: 1px solid rgba(12,58,55,.08);
  padding-top: 8px;
}
.updates-more summary {
  width: fit-content;
  list-style: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}
.updates-more summary::-webkit-details-marker { display: none; }
.updates-more summary::after { content: " +"; }
.updates-more[open] summary::after { content: " -"; }
.updates-more div {
  margin-top: 7px; color: var(--muted);
  font-size: 12px; line-height: 1.55; white-space: pre-wrap;
}
.updates-credit {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
  color: var(--accent); background: rgba(var(--accent-rgb),.08);
  border: 1px solid rgba(var(--accent-rgb),.16);
  border-radius: 20px; padding: 3px 9px;
  font-size: 11px; font-weight: 600;
}
.updates-credit-icon { width: 12px; height: 12px; flex-shrink: 0; }

/* ── TOAST ───────────────────────────────────── */
.toast {
  position: fixed; bottom: 18px; right: 18px; z-index: 999;
  background: var(--bg1); border: 1px solid var(--line2);
  border-radius: var(--r); padding: 11px 16px; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  transform: translateY(12px); opacity: 0;
  transition: all .25s; pointer-events: none;
  max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast a { color: var(--accent); text-decoration: none; font-weight: 500; }
.toast a:hover { text-decoration: underline; }
