* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #e8efff;
  background:
    radial-gradient(900px 560px at 10% -10%, rgba(73, 113, 255, 0.24), transparent 60%),
    radial-gradient(900px 560px at 90% -10%, rgba(45, 212, 191, 0.18), transparent 58%),
    linear-gradient(135deg, #0f1225 0%, #141a34 45%, #0e1328 100%);
  display: flex;
  flex-direction: column;
}
.topbar {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(163, 184, 230, 0.25);
  background: rgba(12, 18, 40, 0.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.brand-wrap .brand {
  font-size: 20px;
  font-weight: 700;
}
.brand-wrap .brand span { color: #6ee7d2; }
.brand-wrap .desc {
  margin-top: 4px;
  color: #a7b6dc;
  font-size: 13px;
}
.hidden-input { display: none; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
button {
  border: 1px solid rgba(110, 231, 210, 0.45);
  background: linear-gradient(135deg, rgba(50, 205, 160, 0.45), rgba(56, 124, 255, 0.32));
  color: #f2f7ff;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
}
button.ghost,
button.ghost-btn {
  background: rgba(31, 45, 84, 0.76);
  border-color: rgba(155, 177, 235, 0.34);
  color: #c9d7fc;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
.toolbar {
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(163, 184, 230, 0.18);
  background: rgba(12, 18, 40, 0.58);
}
label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #9fb0db; }
input {
  background: rgba(27, 38, 74, 0.9);
  border: 1px solid rgba(146, 168, 226, 0.3);
  color: #edf4ff;
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 140px;
}
.search-wrap input { min-width: 220px; }
.filename { color: #7dd3fc; font-size: 12px; }
.status-bar {
  padding: 8px 16px;
  color: #a8b7dc;
  border-bottom: 1px solid rgba(163, 184, 230, 0.14);
}
.summary-grid {
  padding: 10px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}
.summary-card {
  background: rgba(19, 28, 57, 0.8);
  border: 1px solid rgba(140, 162, 218, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.summary-card .k { color: #8fa3d2; font-size: 12px; margin-bottom: 4px; }
.summary-card .v { color: #e9f1ff; font-size: 13px; word-break: break-all; }
.table-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 0 16px 16px;
  border: 1px solid rgba(140, 162, 218, 0.25);
  border-radius: 12px;
  background: rgba(14, 21, 42, 0.82);
}
table {
  width: 1570px;
  border-collapse: collapse;
  min-width: 1570px;
  table-layout: fixed;
}
thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #17264d;
  color: #d2e1ff;
  font-size: 12px;
  text-align: left;
  overflow: visible;
}
th, td {
  border-bottom: 1px solid rgba(133, 153, 209, 0.22);
  padding: 6px 8px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
tr:hover td { background: rgba(43, 63, 112, 0.34); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dim { color: #94a6d5; }

.narrow { width: 60px; }
.kind-col { width: 64px; }
.mark-col { width: 44px; }
.name-col { width: 320px; }
.demangle-col { width: 420px; }
.scope-col { width: 96px; }
.section-col { width: 72px; }
.addr-col { width: 124px; }
.size-col { width: 56px; }
.bind-col { width: 66px; }

.name-col,
.demangle-col {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.clip {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.35;
}

.clip.expanded {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-all;
}

.text-toggle-btn {
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: #7dd3fc;
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
}

.text-toggle-btn:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.filter-toggle-btn {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.filter-toggle-btn.is-on {
  color: #67e8f9;
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(14, 116, 144, 0.35);
}

.filter-toggle-btn.is-off {
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(30, 41, 59, 0.5);
}

.kind-col,
.mark-col {
  text-align: left;
  padding-left: 2px;
  padding-right: 2px;
}

.kind-col .badge {
  min-width: 0;
  padding: 1px 4px;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}

.col-resizer::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 3px;
  width: 2px;
  border-radius: 2px;
  background: rgba(125, 211, 252, 0.35);
}

body.is-col-resizing,
body.is-col-resizing * {
  cursor: col-resize !important;
  user-select: none !important;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.4;
  border: 1px solid transparent;
}

.badge-kind-func {
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.32);
}

.badge-kind-var {
  color: #fde68a;
  background: rgba(250, 204, 21, 0.14);
  border-color: rgba(250, 204, 21, 0.28);
}

.badge-scope-export {
  color: #86efac;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
}

.badge-scope-internal {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-scope-import {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
}
