.oslab-root {
  height: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #1e1e1e;
  color: #d4d4d4;
  /* macOS system font (SF Pro) via system stack */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Segoe UI", sans-serif;
}

.oslab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #2a2a2a;
}

.oslab-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.oslab-title strong {
  font-size: 13px;
  color: #ffffff;
  font-weight: 600;
}

.oslab-subtitle {
  font-size: 11px;
  color: #9cdcfe;
  opacity: 0.95;
}

.oslab-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.oslab-btn {
  border: 1px solid #3e3e42;
  background: #252526;
  color: #d4d4d4;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.oslab-btn:hover { background: #2d2d30; }
.oslab-btn:active { transform: translateY(1px); }
.oslab-btn-primary { border-color: #007acc; }
.oslab-btn-danger { border-color: #c74e39; }

.oslab-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 10px;
  min-height: 0;
  flex: 1;
}

.oslab-panel {
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  background: #1b1b1b;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.oslab-panel-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #252526;
  border-bottom: 1px solid #2a2a2a;
  font-size: 11px;
  color: #c8c8c8;
}

.oslab-panel-body {
  padding: 10px;
  overflow: auto;
  min-height: 0;
}

.oslab-terminal {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.oslab-term-out {
  flex: 1;
  overflow: auto;
  border: 1px solid #2a2a2a;
  background: #111111;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
  line-height: 1.4;
  min-height: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.oslab-term-line { white-space: pre-wrap; word-break: break-word; }
.oslab-term-muted { color: #6e6e6e; }
.oslab-term-ok { color: #4ec9b0; }
.oslab-term-warn { color: #dcdcaa; }
.oslab-term-err { color: #f48771; }

.oslab-term-in {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.oslab-prompt {
  color: #9cdcfe;
  font-size: 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.oslab-input {
  flex: 1;
  border: 1px solid #3e3e42;
  background: #1e1e1e;
  color: #d4d4d4;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  outline: none;
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.oslab-input:focus { border-color: #007acc; }

.oslab-kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 10px;
  font-size: 11px;
  color: #c8c8c8;
}

.oslab-kv .k { color: #9cdcfe; }
.oslab-kv .v { color: #d4d4d4; font-variant-numeric: tabular-nums; }

.oslab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.oslab-table th, .oslab-table td {
  border-bottom: 1px solid #2a2a2a;
  padding: 6px 6px;
  text-align: left;
}
.oslab-table th {
  color: #9cdcfe;
  font-weight: 600;
  background: rgba(255,255,255,0.02);
  position: sticky;
  top: 0;
}

.oslab-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #3e3e42;
  font-size: 10px;
  color: #d4d4d4;
  background: #252526;
}
.oslab-pill.run { border-color: #007acc; }
.oslab-pill.sleep { border-color: #dcdcaa; }
.oslab-pill.zombie { border-color: #c74e39; }

.oslab-trace {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.oslab-trace-item {
  padding: 6px 8px;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  background: #121212;
  font-size: 11px;
  line-height: 1.35;
}
.oslab-trace-item .meta { color: #6e6e6e; font-size: 10px; }
.oslab-trace-item .call { color: #dcdcaa; }
.oslab-trace-item .ret { color: #4ec9b0; }

.oslab-timeline {
  display: grid;
  grid-template-columns: repeat(40, 1fr);
  gap: 2px;
  align-items: center;
}
.oslab-tick {
  height: 10px;
  border-radius: 2px;
  background: #2d2d30;
}

@media (max-width: 900px) {
  .oslab-main { grid-template-columns: 1fr; }
}

.am-win {
  background: rgba(245,245,247,0.92);
  backdrop-filter: blur(42px) saturate(1.8);
  -webkit-backdrop-filter: blur(42px) saturate(1.8);
  border: 1px solid rgba(0,0,0,0.12);
}

.am-root {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(246,246,248,0.8);
  color: #1c1c1e;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.am-toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.55);
}

.am-toolbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.am-toolbar-title {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.85);
}

.am-toolbar-scope {
  font-size: 11px;
  color: rgba(60,60,67,0.7);
}

.am-toolbar-center {
  display: inline-flex;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.65);
  border-radius: 10px;
  overflow: hidden;
}

.am-seg-item {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(0,0,0,0.78);
  cursor: pointer;
}
.am-seg-item + .am-seg-item { border-left: 1px solid rgba(0,0,0,0.10); }
.am-seg-item:hover { background: rgba(0,0,0,0.05); }
.am-seg-active {
  background: rgba(0,0,0,0.10);
  color: rgba(0,0,0,0.92);
  font-weight: 600;
}

.am-toolbar-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.am-search {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.75);
  border-radius: 999px;
  color: rgba(60,60,67,0.7);
}

.am-search input {
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
  width: 160px;
  color: rgba(0,0,0,0.85);
}

.am-pill-btn {
  border: 1px solid rgba(0,0,0,0.14);
  background: rgba(255,255,255,0.70);
  color: rgba(0,0,0,0.85);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
}
.am-pill-btn:hover { background: rgba(0,0,0,0.06); }
.am-pill-btn:active { transform: translateY(1px); }

.am-table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: rgba(255,255,255,0.55);
}

.am-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.am-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(0,0,0,0.68);
  background: rgba(250,250,252,0.88);
  border-bottom: 1px solid rgba(0,0,0,0.10);
}

.am-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.86);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  max-width: 1px;
}

.am-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.02);
}

.am-proc-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.am-proc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}
.am-proc-dot.sleep { background: #ffcc00; }
.am-proc-dot.zombie { background: #ff3b30; }
.am-proc-dot.run { background: #0a84ff; }

.am-muted { color: rgba(60,60,67,0.7); }

.am-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-top: 1px solid rgba(0,0,0,0.10);
  background: rgba(250,250,252,0.88);
  font-size: 11px;
}

.am-footer-left {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.am-foot-k { color: rgba(60,60,67,0.7); }
.am-foot-v { color: rgba(0,0,0,0.86); font-variant-numeric: tabular-nums; }

.am-footer-right {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

