:root {
  --bg: #f6f6f3;
  --panel: #ffffff;
  --rail: #20201f;
  --rail-muted: #9d9b96;
  --text: #242421;
  --muted: #77756f;
  --border: #e8e7e2;
  --border-strong: #d9d8d2;
  --hover: #f2f1ed;
  --selected: #eae9e4;
  --accent: #f1c75b;
  --green: #47a66c;
  --blue: #4a7cbd;
  --code: #f5f4f0;
  --shadow: 0 16px 40px rgba(35, 35, 31, 0.12);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

html, body, #app { height: 100%; margin: 0; }

button, input { font: inherit; }
button { color: inherit; }

body { overflow: hidden; }

.topbar {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #f9f8f4;
  background: var(--rail);
  border-bottom: 1px solid #30302e;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 24px;
  height: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 2px;
  padding: 5px;
  border-radius: 7px;
  background: var(--accent);
}

.brand-mark span { background: #2b2a27; border-radius: 1px; }
.brand-mark span:nth-child(1) { height: 6px; }
.brand-mark span:nth-child(2) { height: 12px; }
.brand-mark span:nth-child(3) { height: 9px; }

.source-picker-button {
  max-width: min(520px, 58vw);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 9px;
  border: 1px solid #44433f;
  border-radius: 8px;
  color: #cac8c0;
  background: #292927;
  cursor: pointer;
  text-align: left;
}
.source-picker-button:hover { border-color: #65635d; background: #30302e; }
.source-picker-label { min-width: 0; display: grid; gap: 1px; }
.source-picker-label small { color: #8f8d86; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.source-picker-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e9e7e0;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 550;
  white-space: nowrap;
}
.source-picker-chevron { margin-left: 2px; color: #8f8d86; font-size: 14px; }

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.status-failed { background: #df6b61; }
.status-dot.status-stopped { background: #d6a544; }
.status-dot.status-running { background: #6b9fe0; box-shadow: 0 0 0 3px rgba(107, 159, 224, 0.14); }
.status-dot.status-unknown { background: #8c8a84; }

.source-dialog {
  width: min(660px, calc(100% - 32px));
  max-height: min(760px, calc(100% - 32px));
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.source-dialog::backdrop { background: rgba(22, 22, 20, 0.42); }
.source-dialog-head { padding: 20px 21px 15px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.source-dialog-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.source-dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.source-dialog-head .dialog-close { position: static; }
.source-list { max-height: min(560px, calc(100vh - 210px)); padding: 9px; overflow: auto; }
.source-list.loading { pointer-events: none; opacity: 0.62; }
.source-option {
  width: 100%;
  min-height: 84px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.source-option:hover { background: var(--hover); }
.source-option.selected { border-color: #d8d5ca; background: #f7f6f2; }
.source-option:disabled { color: inherit; cursor: not-allowed; opacity: 0.58; }
.source-option:disabled:hover { background: transparent; }
.source-option-marker { width: 16px; height: 16px; margin-top: 2px; display: grid; place-items: center; border: 1px solid #b9b7af; border-radius: 50%; }
.source-option.selected .source-option-marker { border-color: #3f7550; }
.source-option.selected .source-option-marker span { width: 8px; height: 8px; border-radius: 50%; background: #3f7550; }
.source-option-main { min-width: 0; display: grid; gap: 5px; }
.source-option-title { display: flex; align-items: center; gap: 8px; }
.source-option-title strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; white-space: nowrap; }
.source-status { padding: 3px 6px; border-radius: 999px; background: #efeee9; color: #66645e; font-size: 8px; font-weight: 750; letter-spacing: 0.05em; text-transform: uppercase; }
.source-status-ready { background: #e5f2e8; color: #35704a; }
.source-status-running { background: #e6effa; color: #3f6897; }
.source-status-failed { background: #f8e8e6; color: #9a4942; }
.source-status-stopped { background: #fbf0d8; color: #826623; }
.source-option-detail { color: #5e5c56; font-size: 10px; line-height: 1.4; }
.source-option code { overflow: hidden; text-overflow: ellipsis; color: #96938b; font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.source-option-error { overflow: hidden; text-overflow: ellipsis; color: #a34f47; font-size: 9px; white-space: nowrap; }
.source-selected-label { align-self: center; color: #3f7550; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.source-dialog-footer { min-height: 50px; padding: 9px 15px 9px 21px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--border); background: #faf9f6; }
.source-dialog-footer span { color: var(--muted); font-size: 10px; }
.source-refresh { padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: #fff; font-size: 10px; font-weight: 650; cursor: pointer; }
.source-refresh:hover { background: var(--hover); }
.source-loading, .source-dialog-error { margin: 8px; padding: 15px; border-radius: 8px; font-size: 11px; }
.source-loading { color: var(--muted); background: #f7f6f2; }
.source-dialog-error { color: #953f38; background: #fbe9e7; }

.app-shell { height: calc(100% - 54px); display: flex; }

.tool-rail {
  width: 92px;
  padding: 15px 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #e4e2dc;
  background: var(--rail);
}

.rail-label {
  margin: 0 8px 6px;
  color: var(--rail-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rail-spacer { flex: 1; }

.tool-button {
  width: 74px;
  padding: 8px 4px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  border-radius: 9px;
  color: #bbb9b2;
  background: transparent;
  cursor: pointer;
}

.tool-button:hover { color: #fff; background: #2c2c2a; }
.tool-button.active { color: #fff; background: #343330; }
.tool-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #f7f6f1;
  color: #252522;
  font-size: 15px;
  font-weight: 750;
}
.tool-icon img { width: 19px; height: 19px; display: block; }
.raw-tool .tool-icon { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.tool-name { max-width: 66px; overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }

.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }

.workspace-tabs {
  height: 46px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 0 22px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.workspace-tab {
  height: 46px;
  padding: 2px 0 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.workspace-tab:hover { color: var(--text); }
.workspace-tab.active { color: var(--text); border-bottom-color: var(--text); }

.pane-layout { min-height: 0; flex: 1; display: flex; }
.pane-layout.cost-mode .tree-pane { display: none; }

.tree-pane {
  width: 290px;
  min-width: 230px;
  overflow: auto;
  background: #fbfbf9;
  border-right: 1px solid var(--border);
}

.tree-content { padding: 17px 12px 28px; }

.tree-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 7px 14px;
}

.tree-eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.08em; }
.tree-title { margin-top: 4px; font-size: 15px; font-weight: 700; }
.tree-count { margin-top: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; }

.tree-filter {
  width: calc(100% - 8px);
  height: 34px;
  margin: 0 4px 12px;
  padding: 0 10px 0 31px;
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23807e78' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat 10px center;
  color: var(--text);
  font-size: 12px;
}
.tree-filter:focus { border-color: #aaa8a0; box-shadow: 0 0 0 3px rgba(40, 40, 35, 0.06); }

.tree-list, .tree-list ul { margin: 0; padding: 0; list-style: none; }
.tree-list ul { margin-left: 16px; padding-left: 8px; border-left: 1px solid #e7e5df; }

.notion-tree-row { display: flex; align-items: center; }
.notion-tree-row .tree-node { flex: 1; min-width: 0; }
.notion-tree-toggle, .notion-tree-spacer { width: 24px; flex: 0 0 24px; }
.notion-tree-toggle { height: 28px; border: 0; border-radius: 4px; background: transparent; color: #5e5d59; cursor: pointer; }
.notion-tree-toggle:hover { background: var(--hover); }

.tree-node, .raw-node {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.tree-node:hover, .raw-node:hover { background: var(--hover); }
.tree-node.active, .raw-node.active { background: var(--selected); }
.node-icon { width: 18px; flex: 0 0 18px; color: #5e5d59; text-align: center; font-size: 13px; }
.node-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.node-meta { margin-left: auto; color: #999791; font-size: 10px; }

.slack-channel-group > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
  color: #5e5d59;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}
.slack-channel-group > summary::-webkit-details-marker { display: none; }
.slack-channel-group > summary::before { content: "›"; width: 14px; flex: 0 0 14px; font-size: 17px; }
.slack-channel-group[open] > summary::before { content: "⌄"; }
.slack-channel-group > summary:hover { background: var(--hover); }
.slack-channel-group > summary small { margin-left: auto; color: #999791; font-size: 10px; font-weight: 400; white-space: nowrap; }
.slack-channel-group > ul { margin-left: 11px; padding-left: 7px; }

.raw-directory { margin: 0; }
.raw-directory > summary {
  height: 32px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 620;
}
.raw-directory > summary::-webkit-details-marker { display: none; }
.raw-directory > summary::before { content: "›"; width: 12px; color: #8a8882; font-size: 16px; transition: transform 120ms ease; }
.raw-directory[open] > summary::before { transform: rotate(90deg); }
.raw-directory > summary:hover { background: var(--hover); }
.raw-children { margin-left: 10px; padding-left: 9px; border-left: 1px solid #e7e5df; }

.detail-pane { min-width: 0; flex: 1; overflow: auto; background: var(--panel); }
.pane-layout.graph-mode .detail-pane { overflow: hidden; background: #f8f8f5; }
.detail-wrap { width: min(920px, calc(100% - 72px)); margin: 0 auto; padding: 44px 0 100px; }
.raw-detail { width: calc(100% - 48px); max-width: 1500px; padding-top: 28px; }

.cost-page { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 30px 0 80px; }
.cost-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cost-head h1 { margin: 5px 0 0; font-size: 30px; letter-spacing: -0.035em; }
.cost-head p { max-width: 720px; margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.cost-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cost-cards > div { min-height: 91px; padding: 15px 16px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.cost-cards span, .cost-cards strong { display: block; }
.cost-cards span { color: var(--muted); font-size: 10px; }
.cost-cards strong { margin-top: 11px; font-size: 24px; letter-spacing: -0.035em; }
.cost-notice { margin-top: 14px; padding: 10px 12px; border: 1px solid #ead7a0; border-radius: 7px; background: #fff8df; color: #705f2a; font-size: 11px; }
.cost-table-wrap { margin-top: 18px; overflow: auto; border: 1px solid var(--border); border-radius: 9px; }
.cost-table { min-width: 1080px; }
.cost-table th:not(:first-child), .cost-table td.numeric { text-align: right; }
.cost-table td:first-child { min-width: 310px; }
.cost-table .strong { font-weight: 700; white-space: nowrap; }
.cost-run-name, .cost-run-meta, .cost-run-stages, .cost-warning { display: block; }
.cost-run-name { font: 650 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.cost-run-meta { margin-top: 5px; color: var(--muted); font-size: 9px; }
.cost-run-stages { margin-top: 7px; color: #55534d; font-size: 9px; line-height: 1.45; }
.cost-warning { margin-top: 6px; color: #9b5e23; font-size: 9px; }
.cost-footnote { margin-top: 13px; color: var(--muted); font-size: 10px; }
.cost-footnote a { color: #326ca8; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 18px; color: var(--muted); font-size: 11px; }
.breadcrumbs span + span::before { content: "/"; margin-right: 5px; color: #bab8b1; }

.page-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  border-radius: 10px;
  background: var(--code);
  font-size: 23px;
}

.page-title { margin: 0; font-size: clamp(27px, 4vw, 40px); line-height: 1.16; letter-spacing: -0.035em; }
.page-subtitle { margin-top: 8px; color: var(--muted); font-size: 12px; }
.path-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.property-grid {
  margin: 28px 0 32px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.property-row { min-height: 35px; display: grid; grid-template-columns: 140px 1fr; align-items: center; gap: 14px; font-size: 12px; }
.property-name { color: var(--muted); }
.property-value { min-width: 0; }
.tag { display: inline-flex; align-items: center; min-height: 21px; padding: 2px 7px; border-radius: 5px; background: #e8f0f8; color: #365f8a; font-size: 11px; }
.person { display: inline-flex; align-items: center; gap: 6px; }
.avatar { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #dfe7d5; color: #416034; font-size: 9px; font-weight: 700; }

.markdown { color: #33332f; font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif; font-size: 16px; line-height: 1.72; }
.detail-wrap > .markdown { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.62; }
.markdown h1, .markdown h2, .markdown h3 { color: var(--text); font-family: inherit; line-height: 1.25; }
.markdown h1 { margin: 1.5em 0 0.5em; font-size: 1.8em; }
.markdown h2 { margin: 1.6em 0 0.5em; font-size: 1.42em; }
.markdown h3 { margin: 1.4em 0 0.4em; font-size: 1.15em; }
.markdown p { margin: 0 0 1.05em; }
.markdown ul, .markdown ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.markdown a { color: #326ca8; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.markdown .notion-internal-link { color: #2f669f; font-weight: 600; }
.markdown code { padding: 2px 5px; border-radius: 4px; background: var(--code); font: 0.86em ui-monospace, SFMono-Regular, Menlo, monospace; }
.markdown pre { overflow: auto; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); }
.markdown pre code { padding: 0; background: transparent; }
.markdown blockquote { margin: 1.1em 0; padding-left: 1em; border-left: 3px solid var(--border-strong); color: var(--muted); }
.markdown-table-wrap { max-width: 100%; margin: 1.2em 0 1.5em; overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.markdown-table-wrap table { width: 100%; border-collapse: collapse; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 0.86em; line-height: 1.45; }
.markdown-table-wrap th, .markdown-table-wrap td { min-width: 110px; padding: 9px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.markdown-table-wrap th { background: #f8f7f4; font-weight: 650; }
.markdown-table-wrap tr:last-child td { border-bottom: 0; }
.markdown-table-wrap th:last-child, .markdown-table-wrap td:last-child { border-right: 0; }
.markdown li.markdown-task { display: flex; gap: 8px; align-items: flex-start; list-style: none; margin-left: -1.4em; }
.markdown-task input { flex: none; margin-top: 0.45em; accent-color: #58745e; }
.notion-embedded-database { margin: 1.3em 0 1.7em; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.notion-embedded-database-title { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 0.85em; font-weight: 650; }
.notion-embedded-database-title small { margin-left: auto; color: var(--muted); font-weight: 400; }
.notion-embedded-database .data-table { margin: 0; }
.notion-child-page { display: flex; align-items: center; gap: 9px; min-height: 28px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.notion-child-page > span { color: var(--muted); font-size: 17px; line-height: 1; }
.notion-child-page .notion-internal-link { color: var(--text); font-weight: 550; text-decoration: underline; text-decoration-color: #c7c7c4; }

.database-card { margin-top: 28px; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; }
.database-scroll, .sqlite-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { position: sticky; top: 0; z-index: 1; padding: 10px 12px; border-bottom: 1px solid var(--border-strong); background: #f8f7f4; color: var(--muted); font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { max-width: 420px; padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr.clickable { cursor: pointer; }
.data-table tbody tr.clickable:hover { background: #faf9f6; }
.title-cell { display: flex; align-items: center; gap: 7px; min-width: 180px; font-weight: 620; }

.schema-pills { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.schema-pill { display: inline-flex; gap: 6px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: #faf9f6; font-size: 11px; }
.schema-pill span { color: var(--muted); }

.raw-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.raw-title { margin: 0; font-size: 24px; letter-spacing: -0.025em; }
.raw-meta { margin-top: 6px; color: var(--muted); font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.download-link { padding: 8px 11px; border: 1px solid var(--border-strong); border-radius: 7px; color: var(--text); text-decoration: none; font-size: 12px; font-weight: 600; white-space: nowrap; }
.download-link:hover { background: var(--hover); }
.cross-service-link { padding: 0; border: 0; background: transparent; color: #305f99; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.cross-service-link:hover { text-decoration: underline; }

.raw-code {
  margin: 0;
  min-height: 320px;
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
  tab-size: 2;
  white-space: pre;
}

.sqlite-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.table-tab { padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-size: 11px; cursor: pointer; }
.table-tab:hover { border-color: var(--border-strong); }
.table-tab.active { border-color: #3e3e39; background: #33332f; color: #fff; }
.table-tab span { margin-left: 5px; opacity: 0.62; }
.sqlite-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 9px; }
.sqlite-panel-head { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #faf9f6; border-bottom: 1px solid var(--border); }
.sqlite-panel-head strong { font: 600 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.schema-details { padding: 0 16px 14px; background: #faf9f6; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.schema-details summary { cursor: pointer; }
.schema-details pre { overflow: auto; white-space: pre-wrap; }
.sqlite-scroll { max-height: calc(100vh - 330px); }
.cell-content { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.null-value { color: #aaa79f; font-style: italic; }
.blob-button { padding: 3px 6px; border: 1px solid #dedbd2; border-radius: 5px; background: #f4f2ea; color: #6f6039; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.table-footer { min-height: 46px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.pager { display: flex; gap: 6px; }
.pager button { padding: 5px 8px; border: 1px solid var(--border); border-radius: 5px; background: #fff; cursor: pointer; }
.pager button:disabled { opacity: 0.4; cursor: default; }

.blob-dialog { width: min(760px, calc(100% - 36px)); max-height: min(720px, calc(100% - 36px)); padding: 24px; border: 0; border-radius: 12px; box-shadow: var(--shadow); }
.blob-dialog::backdrop { background: rgba(22, 22, 20, 0.38); }
.dialog-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; font-size: 22px; cursor: pointer; }
.blob-dialog h2 { margin: 0 40px 14px 0; font-size: 18px; }
.blob-dialog pre { max-height: 560px; overflow: auto; padding: 14px; border-radius: 7px; background: var(--code); white-space: pre-wrap; word-break: break-all; font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }

.empty-state { min-height: 70%; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 12px; border: 2px solid #33332f; border-radius: 6px; color: #33332f; font-family: Georgia, serif; font-size: 30px; font-weight: 800; }
.empty-state h1 { margin: 0; color: var(--text); font-size: 18px; }
.empty-state p { max-width: 360px; margin: 7px 0 0; font-size: 12px; line-height: 1.55; }
.error-box { margin: 30px; padding: 18px; border: 1px solid #e8c8c2; border-radius: 8px; background: #fff5f3; color: #88463b; font-size: 13px; }

.tree-empty { padding: 12px 9px; color: var(--muted); font-size: 12px; }
.slack-tree .node-icon { font-weight: 750; }

.slack-detail { width: min(960px, 100%); min-height: 100%; margin: 0 auto; padding: 0 0 100px; }
.slack-channel-head { position: sticky; top: 0; z-index: 3; padding: 27px 34px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px); }
.slack-channel-head .breadcrumbs { margin-bottom: 9px; }
.slack-channel-title-row { display: flex; align-items: center; gap: 9px; }
.slack-title-icon { color: #5d5b56; font-size: 21px; font-weight: 780; }
.slack-channel-title-row h1 { margin: 0; font-size: 22px; letter-spacing: -0.025em; }
.archive-pill, .bot-pill { display: inline-flex; align-items: center; border-radius: 4px; font-weight: 750; text-transform: uppercase; }
.archive-pill { padding: 4px 6px; background: #efede7; color: #77736b; font-size: 9px; }
.bot-pill { height: 16px; padding: 0 4px; background: #e8e6e0; color: #69665f; font-size: 8px; }
.slack-channel-meta { margin-top: 7px; color: var(--muted); font-size: 11px; }
.slack-topic { margin: 12px 0 0; font-size: 13px; font-weight: 620; }
.slack-purpose { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.slack-truncated { margin: 18px 34px 0; padding: 10px 12px; border-radius: 7px; background: #fff8df; color: #705f2a; font-size: 11px; }
.slack-message-list { padding: 19px 20px; }
.slack-message { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 7px 14px; border-radius: 7px; }
.slack-message:hover { background: #faf9f6; }
.slack-avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; background: #dce8db; color: #31563a; font-size: 13px; font-weight: 760; }
.slack-avatar.bot { background: #e8e3f1; color: #59437d; }
.slack-message-body { min-width: 0; }
.slack-message-head { min-height: 20px; display: flex; align-items: center; gap: 6px; }
.slack-message-head strong { font-size: 12.5px; }
.slack-message-head time, .slack-message-head .edited { color: #99968f; font-size: 9.5px; }
.slack-message-text { color: #34332f; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.slack-message-text a { color: #256ca7; text-underline-offset: 2px; }
.slack-mention { color: #1264a3; background: #e8f2fb; border-radius: 3px; padding: 0 2px; font-weight: 600; }
.slack-message-text p { margin: 0 0 6px; }
.slack-message-text p:last-child { margin-bottom: 0; }
.slack-message-text h1, .slack-message-text h2, .slack-message-text h3 { margin: 9px 0 4px; font: inherit; font-weight: 760; }
.slack-message-text h1 { font-size: 15px; }
.slack-message-text h2 { font-size: 14px; }
.slack-message-text h3 { font-size: 13px; }
.slack-message-text ul, .slack-message-text ol { margin: 4px 0 7px; padding-left: 21px; }
.slack-message-text li { margin: 2px 0; }
.slack-message-text blockquote { margin: 5px 0; padding-left: 9px; border-left: 3px solid #d7d4cc; color: #66635d; }
.slack-message-text code { padding: 1px 4px; border-radius: 4px; background: var(--code); font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; }
.slack-message-text pre { overflow: auto; margin: 6px 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); color: var(--text); }
.slack-message-text pre code { padding: 0; background: transparent; }
.slack-thread { margin: 2px 0 6px 36px; padding-left: 11px; border-left: 2px solid #e7e5df; }
.slack-reply { padding-top: 5px; padding-bottom: 5px; }
.slack-reply .slack-avatar { width: 30px; height: 30px; border-radius: 7px; font-size: 11px; }
.slack-reply { grid-template-columns: 32px minmax(0, 1fr); }
.slack-reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.slack-reaction { padding: 3px 7px; border: 1px solid #dedbd4; border-radius: 999px; background: #faf9f6; font-size: 10px; }
.slack-file { width: min(380px, 100%); margin-top: 8px; padding: 9px 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.slack-file-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #f0eee8; color: #69665d; }
.slack-file strong, .slack-file span { display: block; }
.slack-file strong { font-size: 11px; }
.slack-file div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.empty-channel { padding: 50px 16px; color: var(--muted); text-align: center; font-size: 12px; }

.linear-tree > .linear-team { margin-bottom: 9px; }
.linear-team > details > summary, .linear-project > summary {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
}
.linear-team > details > summary { padding: 0 7px; font-weight: 700; }
.linear-team > details > summary::-webkit-details-marker, .linear-project > summary::-webkit-details-marker { display: none; }
.linear-team > details > summary:hover, .linear-project > summary:hover { background: var(--hover); }
.linear-team summary small { margin-left: auto; color: #999791; font-size: 10px; font-weight: 500; }
.linear-team-key { min-width: 31px; padding: 3px 5px; border-radius: 4px; background: #5e6ad2; color: white; font-size: 9px; text-align: center; }
.linear-projects { margin-left: 10px; padding-left: 8px; border-left: 1px solid #e7e5df; }
.linear-project > summary { padding: 0 8px; color: #67655f; }
.linear-project > summary > span { width: 16px; text-align: center; }
.linear-project ul { margin-left: 11px; }
.linear-issue-node { height: auto; min-height: 34px; padding-top: 6px; padding-bottom: 6px; align-items: flex-start; }
.linear-issue-node .node-label { line-height: 1.35; white-space: normal; }
.linear-issue-node .node-label strong { color: #77756f; font-size: 10px; }
.linear-status-dot, .linear-status-large { display: inline-block; border: 2px solid #d5a82f; border-radius: 50%; background: #fff7d9; }
.linear-status-dot { width: 11px; height: 11px; margin: 3px 4px 0 2px; flex: 0 0 11px; }
.linear-status-large { width: 20px; height: 20px; flex: 0 0 20px; }
.linear-truncated { margin: 0 4px 10px; padding: 8px 9px; border-radius: 6px; background: #fff8df; color: #705f2a; font-size: 10px; }

.linear-detail { width: min(920px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.linear-issue-head { padding: 34px 44px 23px; border-bottom: 1px solid var(--border); }
.linear-title-row { display: flex; align-items: flex-start; gap: 11px; }
.linear-title-row h1 { margin: -4px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.03em; }
.linear-issue-id { margin: 10px 0 0 31px; color: var(--muted); font-size: 11px; }
.linear-body { padding: 25px 44px; }
.linear-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.linear-properties > div { min-height: 43px; padding: 8px 11px; display: grid; grid-template-columns: 80px minmax(0, 1fr); align-items: center; gap: 8px; background: #fff; font-size: 11px; }
.linear-properties span { color: var(--muted); }
.linear-properties strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.linear-labels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.linear-label { padding: 4px 7px; border-radius: 5px; background: #e9e7f7; color: #51468c; font-size: 10px; }
.linear-section { margin-top: 30px; }
.linear-section h2 { margin: 0 0 12px; font-size: 14px; }
.linear-section h2 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.linear-description { min-height: 60px; padding: 15px 17px; border: 1px solid var(--border); border-radius: 8px; color: #373631; font-size: 13px; line-height: 1.6; }
.linear-description.markdown { font-family: inherit; font-size: 13px; line-height: 1.6; }
.linear-description.markdown p:last-child { margin-bottom: 0; }
.linear-relations { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.linear-relation { min-height: 39px; padding: 8px 11px; display: grid; grid-template-columns: 75px 68px minmax(0, 1fr); align-items: center; gap: 8px; border-bottom: 1px solid var(--border); font-size: 11px; }
.linear-relation:last-child { border-bottom: 0; }
.linear-relation > span:first-child { color: var(--muted); }
.linear-comment { padding: 11px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; border-top: 1px solid var(--border); }
.linear-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e3e6f5; color: #4d5687; font-size: 10px; font-weight: 700; }
.linear-comment-head { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.linear-comment-head time { color: var(--muted); font-size: 9px; }
.linear-comment-body { color: #3d3c37; font-family: inherit; font-size: 12px; line-height: 1.5; }
.linear-comment-body p { margin: 4px 0 0; }
.linear-comment-body ul, .linear-comment-body ol { margin: 5px 0 0; padding-left: 17px; }
.linear-mention { color: #2567ad; font-weight: 600; }
.linear-history { margin: 0; padding: 0; list-style: none; }
.linear-history li { min-height: 31px; padding: 6px 0; display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--border); color: #4e4c47; font-size: 10px; line-height: 1.45; }
.linear-history time { color: var(--muted); }
.linear-empty { padding: 18px 0; color: var(--muted); font-size: 11px; }

.calendar-tree > .calendar-group { margin-bottom: 9px; }
.calendar-group > details > summary { height: 34px; padding: 0 7px; display: flex; align-items: center; gap: 7px; border-radius: 6px; cursor: pointer; color: #4a4945; font-size: 11px; font-weight: 700; list-style: none; }
.calendar-group > details > summary::-webkit-details-marker { display: none; }
.calendar-group > details > summary:hover { background: var(--hover); }
.calendar-group summary small { margin-left: auto; color: #999791; font-size: 10px; font-weight: 500; }
.calendar-group ul { margin-left: 10px; padding-left: 8px; border-left: 1px solid #e7e5df; }
.calendar-color { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 3px; background: #7986cb; }
.calendar-color.color-2 { background: #33b679; }
.calendar-color.color-4 { background: #e67c73; }
.calendar-color.color-5 { background: #f6bf26; }
.calendar-color.color-6 { background: #f4511e; }
.calendar-color.color-7 { background: #039be5; }
.calendar-color.color-9 { background: #3f51b5; }
.calendar-color.color-11 { background: #d50000; }
.calendar-event-node { min-height: 36px; height: auto; padding-top: 6px; padding-bottom: 6px; align-items: flex-start; }
.calendar-event-node .node-label { line-height: 1.35; white-space: normal; }
.calendar-time { min-width: 47px; padding-top: 2px; display: flex; flex-direction: column; white-space: nowrap; color: #77756f; font-size: 9px; font-variant-numeric: tabular-nums; }
.calendar-one-to-one { margin-left: auto; padding: 2px 5px; border-radius: 4px; background: #e4e8f6; color: #4b5788; font-size: 8px; font-weight: 700; white-space: nowrap; }
.calendar-one-to-one-detail { margin-top: 2px; font-size: 10px; }
.calendar-cancelled { margin-left: auto; padding: 2px 4px; border-radius: 4px; background: #f4e5e5; color: #984d4d; font-size: 8px; }

.calendar-detail { width: min(920px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.calendar-event-head { padding: 34px 44px 23px; border-bottom: 1px solid var(--border); }
.calendar-title-row { display: flex; align-items: flex-start; gap: 12px; }
.calendar-title-row h1 { margin: -4px 0 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.03em; }
.calendar-event-icon { width: 19px; height: 19px; flex: 0 0 19px; border-radius: 5px; background: #3f51b5; box-shadow: inset 0 0 0 5px #fff, 0 0 0 1px #3f51b5; }
.calendar-event-id { margin: 10px 0 0 31px; color: var(--muted); font-size: 10px; }
.calendar-body { padding: 25px 44px; }
.calendar-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.calendar-schedule > div { min-height: 48px; padding: 8px 11px; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; background: #fff; font-size: 11px; }
.calendar-schedule span { color: var(--muted); }
.calendar-schedule strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.calendar-section { margin-top: 28px; }
.calendar-section h2 { margin: 0 0 10px; font-size: 14px; }
.calendar-section h2 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.calendar-section p, .calendar-description { margin: 0; color: #3d3c37; font-size: 12px; line-height: 1.55; }
.calendar-section a { color: #256ca7; font-size: 12px; }
.calendar-description { min-height: 52px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; }
.calendar-attendees { margin: 0; padding: 0; list-style: none; }
.calendar-attendee { min-height: 44px; padding: 7px 0; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 9px; border-top: 1px solid var(--border); }
.calendar-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #e4e8f6; color: #4b5788; font-size: 10px; font-weight: 700; }
.calendar-attendee strong, .calendar-attendee small { display: block; }
.calendar-attendee strong { font-size: 11px; }
.calendar-attendee small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.calendar-response { padding: 3px 6px; border-radius: 5px; background: #f0efeb; color: #6b6963; font-size: 9px; }
.calendar-response.accepted { background: #e2f3e7; color: #3e774c; }
.calendar-response.declined { background: #f6e5e4; color: #9a4d49; }
.calendar-response.tentative { background: #fff3d7; color: #826525; }
.calendar-recurrence { display: flex; flex-wrap: wrap; gap: 6px; }
.calendar-recurrence code { padding: 5px 7px; border-radius: 5px; background: #f2f1ed; color: #56544e; font-size: 10px; }

.analytics-section { margin-bottom: 13px; }
.analytics-section-title { padding: 6px 9px; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.analytics-section > ul { margin-left: 0; padding-left: 0; border-left: 0; }
.analytics-node-icon { color: #1a73e8; }
.analytics-detail { width: min(1320px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; background: #fff; }
.analytics-head { padding: 18px 30px 20px; border-bottom: 1px solid #dadce0; }
.analytics-context-row { min-height: 38px; display: flex; align-items: center; gap: 9px; }
.analytics-context-row button, .analytics-actions button { height: 30px; padding: 0 11px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #3c4043; font: inherit; font-size: 11px; }
.analytics-context-row button:hover, .analytics-actions button:hover { background: #f8fafd; }
.analytics-chip b { width: 19px; height: 19px; margin-right: 6px; display: inline-grid; place-items: center; border-radius: 50%; background: #d2e3fc; color: #174ea6; font-size: 9px; }
.analytics-add { color: #1a73e8 !important; }
.analytics-spacer { flex: 1; }
.analytics-date { min-width: 190px; text-align: left; }
.analytics-head .breadcrumbs { margin: 13px 0 8px; }
.analytics-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.analytics-title-row h1 { margin: 0; color: #202124; font-size: clamp(22px, 2.5vw, 28px); font-weight: 500; letter-spacing: -0.02em; }
.analytics-title-row p { max-width: 760px; margin: 7px 0 0; color: #5f6368; font-size: 12px; line-height: 1.5; }
.analytics-actions { display: flex; align-items: center; gap: 8px; color: #188038; }
.analytics-actions span { font-size: 13px; }
.analytics-body { padding: 22px 30px; background: #f8f9fa; }
.analytics-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); overflow: hidden; border: 1px solid #dadce0; border-radius: 8px 8px 0 0; background: #fff; }
.analytics-cards > div { position: relative; min-height: 92px; padding: 16px 17px; border-right: 1px solid #e8eaed; background: #fff; }
.analytics-cards > div:last-child { border-right: 0; }
.analytics-cards > div.selected::before { position: absolute; inset: 0 0 auto; height: 3px; background: #1a73e8; content: ""; }
.analytics-cards span, .analytics-cards strong { display: block; }
.analytics-cards span { color: #5f6368; font-size: 11px; }
.analytics-cards span i { width: 13px; height: 13px; display: inline-grid; place-items: center; border: 1px solid #9aa0a6; border-radius: 50%; font-size: 8px; font-style: normal; }
.analytics-cards strong { margin-top: 10px; color: #202124; font-size: 25px; font-weight: 500; letter-spacing: -0.03em; }
.analytics-trend { margin-top: 0; padding: 15px 17px 8px; border: 1px solid #dadce0; border-top: 0; border-radius: 0 0 8px 8px; background: #fff; }
.analytics-body > .analytics-trend:first-child, .analytics-realtime-top .analytics-trend { border-top: 1px solid #dadce0; border-radius: 8px; }
.analytics-trend-head { min-height: 26px; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #5f6368; font-size: 10px; }
.analytics-trend-head strong { color: #3c4043; font-size: 13px; font-weight: 500; }
.analytics-legend { display: flex; gap: 15px; }
.analytics-legend span { display: flex; align-items: center; gap: 5px; }
.analytics-legend i { width: 16px; height: 2px; display: inline-block; }
.analytics-line-chart { width: 100%; height: auto; min-height: 210px; display: block; overflow: visible; }
.analytics-grid line { stroke: #e8eaed; stroke-width: 1; }
.analytics-grid text { fill: #80868b; font-size: 9px; }
.analytics-series polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.analytics-series circle { fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.analytics-table-card { margin-top: 18px; overflow: hidden; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.analytics-table-tools { min-height: 50px; padding: 8px 12px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #dadce0; color: #5f6368; font-size: 10px; }
.analytics-table-tools button { height: 29px; padding: 0 11px; border: 1px solid #dadce0; border-radius: 4px; background: #f8f9fa; color: #9aa0a6; }
.analytics-table-tools label { height: 29px; min-width: 190px; padding: 0 9px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid #9aa0a6; font-size: 16px; }
.analytics-table-tools input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 11px; }
.analytics-table-tools span:nth-last-child(2) { margin-left: auto; }
.analytics-table-scroll { max-height: calc(100vh - 370px); overflow: auto; }
.analytics-data-table th { min-width: 118px; background: #fff; color: #5f6368; font-size: 9px; font-weight: 500; vertical-align: bottom; }
.analytics-data-table th:nth-child(2) { min-width: 220px; text-align: left; }
.analytics-data-table td { color: #3c4043; font-size: 10px; }
.analytics-data-table td:not(:nth-child(2)) { text-align: right; }
.analytics-cell { max-width: 330px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-row-index { width: 28px; color: #80868b !important; text-align: center !important; }
.analytics-total-row td { border-bottom: 2px solid #dadce0; color: #202124; font-weight: 600; }
.analytics-dimension-add { float: right; width: 20px; height: 20px; border: 0; border-radius: 50%; background: #e8f0fe; color: #1a73e8; }
.analytics-empty-state { min-height: 130px; display: grid; place-content: center; gap: 5px; text-align: center; }
.analytics-empty-state span, .analytics-empty { color: #80868b; font-size: 10px; }
.analytics-panel-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.analytics-mini-card { min-height: 265px; padding: 16px 17px 12px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.analytics-mini-card > header { display: flex; justify-content: space-between; color: #3c4043; font-size: 12px; }
.analytics-mini-card > header strong { font-weight: 500; }
.analytics-mini-card > header span { color: #5f6368; }
.analytics-mini-card > header b { color: #188038; }
.analytics-mini-rows { margin-top: 16px; }
.analytics-mini-rows > div { min-height: 29px; display: grid; grid-template-columns: minmax(110px, 1.35fr) minmax(80px, 1fr) 55px; align-items: center; gap: 10px; border-bottom: 1px solid #f1f3f4; font-size: 10px; }
.analytics-mini-rows > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-mini-rows > div > i { height: 3px; display: block; background: #e8f0fe; }
.analytics-mini-rows > div > i u { height: 100%; display: block; background: #1a73e8; text-decoration: none; }
.analytics-mini-rows > div > strong { text-align: right; font-weight: 500; }
.analytics-realtime-summary { display: flex; gap: 34px; padding: 18px 20px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.analytics-realtime-summary div { min-width: 180px; }
.analytics-realtime-summary span, .analytics-realtime-summary strong { display: block; }
.analytics-realtime-summary span { color: #5f6368; font-size: 11px; }
.analytics-realtime-summary strong { margin-top: 8px; color: #202124; font-size: 28px; font-weight: 500; }
.analytics-realtime-top { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.75fr); gap: 14px; }
.analytics-realtime-map { padding: 15px 17px; border: 1px solid #dadce0; border-radius: 8px; background: #fff; }
.analytics-realtime-map header { color: #3c4043; font-size: 12px; }
.analytics-realtime-map header strong { font-weight: 500; }
.analytics-realtime-map header span { color: #5f6368; }
.analytics-map-shape { position: relative; margin-top: 12px; }
.analytics-map-shape svg { width: 100%; height: 150px; }
.analytics-map-shape path { fill: #d2e3fc; stroke: #aecbfa; stroke-width: 2; }
.analytics-country-list { display: grid; gap: 4px; }
.analytics-country-list div { display: flex; justify-content: space-between; color: #5f6368; font-size: 9px; }
.analytics-country-list strong { color: #3c4043; }
.analytics-realtime-note { margin-top: 12px; color: #5f6368; font-size: 10px; }

.stripe-customer-node { min-height: 45px; height: auto; padding-top: 6px; padding-bottom: 6px; }
.stripe-customer-icon, .stripe-logo { display: grid; place-items: center; border-radius: 7px; background: #635bff; color: #fff; font-weight: 800; }
.stripe-customer-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.stripe-customer-node .node-label { display: grid; gap: 2px; }
.stripe-customer-node .node-label strong { overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.stripe-customer-node .node-label small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; font-size: 9px; font-weight: 400; }
.stripe-alert { margin-left: auto; padding: 3px 5px; border-radius: 4px; background: #fff0ed; color: #b54732; font-size: 8px; font-weight: 750; text-transform: uppercase; }
.stripe-alert.large { margin-left: 0; padding: 5px 7px; font-size: 9px; }
.stripe-truncated { margin: 0 4px 10px; padding: 8px 9px; border-radius: 6px; background: #fff8df; color: #705f2a; font-size: 10px; }

.stripe-detail { width: min(1040px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.stripe-customer-head { padding: 34px 44px 26px; border-bottom: 1px solid var(--border); }
.stripe-customer-head .breadcrumbs { margin-bottom: 16px; }
.stripe-title-row { display: flex; align-items: center; gap: 12px; }
.stripe-title-row h1 { margin: 0; font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.03em; }
.stripe-logo { width: 34px; height: 34px; flex: 0 0 34px; font-size: 19px; }
.stripe-customer-head p { max-width: 680px; margin: 12px 0 0 46px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stripe-body { padding: 26px 44px; }
.stripe-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.stripe-properties > div { min-height: 44px; padding: 8px 11px; display: grid; grid-template-columns: 70px minmax(0, 1fr); align-items: center; gap: 8px; background: #fff; font-size: 11px; }
.stripe-properties span { color: var(--muted); }
.stripe-properties strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.stripe-section { margin-top: 30px; }
.stripe-section h2 { margin: 0 0 11px; font-size: 14px; }
.stripe-section h2 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.stripe-table { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.stripe-row { min-height: 55px; padding: 9px 11px; display: grid; grid-template-columns: minmax(190px, 1.5fr) 105px minmax(105px, 0.7fr) minmax(130px, 0.8fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--border); font-size: 11px; }
.stripe-row:last-child { border-bottom: 0; }
.stripe-row > div { min-width: 0; }
.stripe-row > div:first-child, .stripe-row > div:last-child, .stripe-money { display: grid; gap: 3px; }
.stripe-row strong, .stripe-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stripe-row span, .stripe-money small { color: var(--muted); font-size: 9px; }
.stripe-money { font-weight: 650; }
.stripe-status { display: inline-flex; max-width: 100%; padding: 4px 7px; border-radius: 999px; background: #eef0f3; color: #555c68; font-size: 9px; text-transform: capitalize; }
.stripe-status-active, .stripe-status-paid, .stripe-status-succeeded { background: #e7f5ed; color: #27714b; }
.stripe-status-past_due, .stripe-status-open, .stripe-status-requires_payment_method { background: #fff0ed; color: #a44131; }
.stripe-status-trialing, .stripe-status-processing, .stripe-status-requires_confirmation { background: #fff6dc; color: #80641a; }
.stripe-status-canceled, .stripe-status-void, .stripe-status-paused { background: #eeedf2; color: #696674; }
.stripe-empty { padding: 18px; color: var(--muted); font-size: 11px; }

.hubspot-group { margin-bottom: 8px; }
.hubspot-group > details > summary {
  min-height: 32px;
  padding: 0 7px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.hubspot-group > details > summary::-webkit-details-marker { display: none; }
.hubspot-group > details > summary:hover { background: var(--hover); }
.hubspot-group summary small { margin-left: auto; color: #999791; font-size: 10px; font-weight: 500; }
.hubspot-group ul { margin-left: 10px; padding-left: 8px; border-left: 1px solid #e7e5df; }
.hubspot-record-node { height: auto; min-height: 43px; padding-top: 6px; padding-bottom: 6px; }
.hubspot-record-node .node-label { display: grid; gap: 2px; }
.hubspot-record-node .node-label strong { overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
.hubspot-record-node .node-label small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; font-size: 9.5px; }
.hubspot-object-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  flex: 0 0 20px;
  place-items: center;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 800;
}
.hubspot-object-icon.companies { background: #f9e0d0; color: #9b4e1c; }
.hubspot-object-icon.contacts { background: #dcecf8; color: #27668e; }
.hubspot-object-icon.deals { background: #def0e4; color: #2d7745; }
.hubspot-object-icon.leads { background: #ede5fa; color: #6941a5; }
.hubspot-object-icon.large { width: 42px; height: 42px; flex-basis: 42px; border-radius: 10px; font-size: 17px; }

.hubspot-detail { width: min(940px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.hubspot-record-head { padding: 34px 44px 24px; border-bottom: 1px solid var(--border); }
.hubspot-title-row { display: flex; align-items: center; gap: 12px; }
.hubspot-title-row h1 { margin: 1px 0 0; font-size: clamp(25px, 3vw, 35px); line-height: 1.16; letter-spacing: -0.03em; }
.hubspot-type { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase; }
.hubspot-record-meta { margin: 11px 0 0 54px; color: var(--muted); font-size: 10px; }
.hubspot-body { padding: 25px 44px; }
.hubspot-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.hubspot-summary > div { min-height: 43px; padding: 8px 11px; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 8px; background: #fff; font-size: 11px; }
.hubspot-summary span { color: var(--muted); }
.hubspot-summary strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; white-space: nowrap; }
.hubspot-section { margin-top: 28px; }
.hubspot-section h2 { margin: 0 0 11px; font-size: 14px; }
.hubspot-section h2 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.contract-document-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 11px; }
.contract-document-head h2 { margin-bottom: 5px; }
.contract-file-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 9px; }
.contract-document-actions { display: flex; gap: 7px; }
.contract-pdf-frame { display: block; width: 100%; height: min(78vh, 920px); min-height: 620px; border: 1px solid var(--border); border-radius: 8px; background: #f2f3f5; }
.contract-path { margin-left: 0; }
.hubspot-properties { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; }
.hubspot-property-row { min-height: 42px; padding: 8px 11px; display: grid; grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1fr); align-items: center; gap: 16px; border-bottom: 1px solid var(--border); font-size: 11px; }
.hubspot-property-row:last-child { border-bottom: 0; }
.hubspot-property-row > span { color: var(--muted); }
.hubspot-property-row code { display: block; margin-top: 2px; color: #aaa79f; font-size: 8px; }
.hubspot-property-row strong { overflow-wrap: anywhere; font-weight: 550; }
.hubspot-associations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.hubspot-association { min-width: 0; min-height: 44px; padding: 7px 9px; display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; border: 1px solid var(--border); border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.hubspot-association:hover { background: var(--hover); }
.hubspot-association .hubspot-object-icon { grid-row: 1 / 3; }
.hubspot-association strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.hubspot-association small { color: var(--muted); font-size: 8px; }
.hubspot-history { margin: 0; padding: 0; list-style: none; }
.hubspot-history li { min-height: 34px; padding: 7px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr) 70px; gap: 10px; border-top: 1px solid var(--border); color: #4e4c47; font-size: 10px; line-height: 1.45; }
.hubspot-history time, .hubspot-history small { color: var(--muted); }
.hubspot-history small { text-align: right; }

.pane-layout.hubspot-mode .tree-pane { width: 455px; min-width: 390px; background: #fff; }
.pane-layout.hubspot-mode .tree-content { padding: 20px 14px 28px; }
.hubspot-object-tabs { margin: 0 5px 13px; display: flex; gap: 3px; border-bottom: 1px solid #d7d7d2; }
.hubspot-object-tab { padding: 8px 10px 9px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #62615d; font-size: 11px; font-weight: 650; cursor: pointer; }
.hubspot-object-tab:hover { color: #164f52; }
.hubspot-object-tab.active { border-bottom-color: #006f71; color: #005e60; }
.hubspot-object-tab span { margin-left: 3px; color: #8b8984; font-size: 9px; }
.hubspot-truncated { margin: -5px 5px 10px; color: var(--muted); font-size: 9px; }
.hubspot-list-columns, .hubspot-list-row { display: grid; grid-template-columns: minmax(120px, 1.25fr) minmax(90px, 1fr) minmax(75px, .8fr) minmax(80px, .9fr); gap: 8px; align-items: center; }
.hubspot-list-columns { min-height: 30px; padding: 0 8px; border-bottom: 1px solid #d9d8d3; color: #686762; font-size: 9px; font-weight: 700; }
.hubspot-list-row { width: 100%; min-height: 48px; padding: 6px 8px; border: 0; border-bottom: 1px solid #ecebe7; background: #fff; color: #393834; text-align: left; cursor: pointer; }
.hubspot-list-row:hover, .hubspot-list-row.active { background: #eef6f6; }
.hubspot-list-row.enterprise { box-shadow: inset 3px 0 #ff7a59; background: #fffaf7; }
.hubspot-list-row.enterprise:hover, .hubspot-list-row.enterprise.active { background: #fff2ea; }
.hubspot-list-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 9.5px; white-space: nowrap; }
.hubspot-list-name { display: flex; align-items: center; gap: 7px; color: #006f71; }
.hubspot-list-name strong { overflow: hidden; text-overflow: ellipsis; font-size: 10.5px; }
.hubspot-enterprise-badge { padding: 2px 5px; flex: 0 0 auto; border: 1px solid #f4b39f; border-radius: 999px; background: #fff0ea; color: #a54328; font-size: 7px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.hubspot-enterprise-badge.large { margin-left: auto; padding: 4px 8px; font-size: 8px; }
.hubspot-frequent-badge { padding: 2px 5px; flex: 0 0 auto; border: 1px solid #a9d5d2; border-radius: 999px; background: #e9f7f6; color: #006f71; font-size: 7px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }

.hubspot-detail { width: 100%; max-width: none; margin: 0; padding-bottom: 60px; background: #f5f5f3; }
.hubspot-record-head { padding: 18px 24px 17px; background: #fff; }
.hubspot-title-row h1 { font-size: 23px; }
.hubspot-record-meta { margin-top: 7px; font-size: 9px; }
.hubspot-body { padding: 16px; display: grid; grid-template-columns: 225px minmax(360px, 1fr) 320px; align-items: start; gap: 14px; }
.hubspot-left-column, .hubspot-center-column, .hubspot-property-column { min-width: 0; }
.hubspot-panel { margin-bottom: 10px; padding: 14px; border: 1px solid #deddd8; border-radius: 8px; background: #fff; }
.hubspot-panel h2 { margin: 0 0 13px; font-size: 12px; }
.hubspot-panel h2 span { color: var(--muted); font-size: 9px; }
.hubspot-about { display: grid; gap: 12px; }
.hubspot-about > div { display: grid; gap: 3px; }
.hubspot-about span { color: #777570; font-size: 8.5px; }
.hubspot-about strong { overflow-wrap: anywhere; color: #393834; font-size: 10px; font-weight: 550; }
.hubspot-left-column .hubspot-associations { grid-template-columns: 1fr; }
.hubspot-left-column .hubspot-association { min-height: 42px; }

.hubspot-center-column { border: 1px solid #deddd8; border-radius: 8px; background: #fff; }
.hubspot-activity-tabs { padding: 0 13px; display: flex; gap: 14px; overflow-x: auto; border-bottom: 1px solid #deddd8; }
.hubspot-activity-tabs button { padding: 13px 0 11px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #4f4e49; font-size: 10px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.hubspot-activity-tabs button.active { border-bottom-color: #222; color: #111; }
.hubspot-timeline-head { min-height: 48px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #e7e6e2; }
.hubspot-timeline-head strong { font-size: 11px; }
.hubspot-timeline-head span { padding: 5px 8px; border-radius: 5px; background: #f0efec; color: #65635e; font-size: 9px; }
.hubspot-activity-list { padding: 14px; display: grid; gap: 9px; background: #f7f7f5; }
.hubspot-activity-card { padding: 13px 15px 13px 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; border: 1px solid #deddd8; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(39, 38, 34, .04); }
.hubspot-activity-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e9f4f4; color: #006f71; font-size: 10px; font-weight: 800; }
.hubspot-activity-heading { display: flex; justify-content: space-between; gap: 12px; color: #33322f; font-size: 9px; }
.hubspot-activity-heading time { color: #85837d; font-size: 8.5px; font-weight: 400; }
.hubspot-activity-copy h3 { margin: 7px 0 0; color: #006f71; font-size: 11px; }
.hubspot-activity-copy p { margin: 6px 0 0; color: #4c4b46; font-size: 9.5px; line-height: 1.5; }
.hubspot-activity-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #777570; font-size: 8px; }
.hubspot-email-route { display: inline-flex; flex-wrap: wrap; gap: 3px; color: #4c4b46; }
.hubspot-email-route strong { font-weight: 650; }
.hubspot-activity-owner { flex-basis: 100%; color: #99968f; }
.hubspot-empty-activity { padding: 22px; color: var(--muted); font-size: 10px; text-align: center; }
.hubspot-center-column > .hubspot-section { margin: 0; padding: 16px; border-top: 1px solid #deddd8; }
.hubspot-center-column .contract-pdf-frame { min-height: 520px; }

.hubspot-property-column { max-height: calc(100vh - 155px); overflow: auto; border: 1px solid #deddd8; border-radius: 8px; background: #fff; }
.hubspot-properties-head { padding: 14px; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid #deddd8; background: #fff; }
.hubspot-properties-head h2 { margin: 0 0 10px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }
.hubspot-properties-head > input { width: 100%; height: 32px; padding: 0 9px; border: 1px solid #b7b5af; border-radius: 6px; font-size: 10px; outline: none; }
.hubspot-properties-head > input:focus { border-color: #0b79ef; box-shadow: 0 0 0 2px rgba(11, 121, 239, .12); }
.hubspot-properties-head label { margin-top: 9px; display: flex; align-items: center; gap: 6px; color: #65635e; font-size: 9px; }
.hubspot-property-column .hubspot-properties { border: 0; border-radius: 0; }
.hubspot-property-group { border-bottom: 1px solid #deddd8; }
.hubspot-property-group > summary { padding: 13px 14px; display: flex; align-items: center; gap: 6px; list-style: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.hubspot-property-group > summary::-webkit-details-marker { display: none; }
.hubspot-property-group > summary::before { content: "›"; font-size: 15px; transform: rotate(90deg); }
.hubspot-property-group:not([open]) > summary::before { transform: rotate(0); }
.hubspot-property-group > summary span { color: #86847e; font-size: 8px; font-weight: 500; }
.hubspot-property-column .hubspot-property-row { min-height: 49px; padding: 8px 14px 9px 34px; display: block; border-top: 1px solid #efeeeb; border-bottom: 0; }
.hubspot-property-column .hubspot-property-row > span { display: block; margin-bottom: 4px; color: #777570; font-size: 8.5px; }
.hubspot-property-column .hubspot-property-row > strong { display: block; color: #383733; font-size: 10px; font-weight: 500; }

@media (max-width: 1450px) {
  .pane-layout.hubspot-mode .tree-pane { width: 260px; min-width: 240px; }
  .hubspot-list-columns, .hubspot-list-row { grid-template-columns: minmax(105px, 1.2fr) minmax(80px, 1fr); }
  .hubspot-list-columns > :nth-child(n + 3), .hubspot-list-row > :nth-child(n + 3) { display: none; }
  .hubspot-object-tab { padding-right: 6px; padding-left: 6px; }
  .hubspot-object-tab span { display: none; }
  .hubspot-body { padding: 8px; grid-template-columns: 165px minmax(275px, 1fr) 210px; gap: 8px; }
  .hubspot-panel { padding: 11px; }
  .hubspot-property-column { max-height: calc(100vh - 138px); grid-column: auto; }
  .hubspot-property-row { word-break: break-word; }
}

.pane-layout.posthog-mode .tree-pane { width: 330px; min-width: 300px; background: #f8f7f4; border-color: #deddd7; }
.pane-layout.posthog-mode .tree-content { padding: 12px 10px 28px; }
.pane-layout.posthog-mode .detail-pane { background: #f6f5f2; }
.posthog-project-switcher { min-height: 50px; padding: 7px 8px; display: flex; align-items: center; gap: 9px; border: 1px solid #d6d4cc; border-radius: 8px; background: #fff; }
.posthog-project-switcher > span:nth-child(2) { min-width: 0; display: grid; gap: 2px; }
.posthog-project-switcher small { color: #77736c; font-size: 8px; font-weight: 650; text-transform: uppercase; }
.posthog-project-switcher strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.posthog-project-switcher b { margin-left: auto; color: #77736c; }
.posthog-hog { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 7px; background: #f2c94c; color: #3b3526; font-size: 18px; font-weight: 800; }
.posthog-search { width: 100%; margin: 9px 0; }
.posthog-nav { padding-bottom: 10px; border-bottom: 1px solid #deddd7; }
.posthog-nav > small { margin: 13px 8px 5px; display: block; color: #807d76; font-size: 8px; font-weight: 750; letter-spacing: .08em; }
.posthog-nav button { width: 100%; height: 33px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 6px; background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.posthog-nav button:hover { background: #eeece7; }
.posthog-nav button.active { background: #e4e1d9; font-weight: 700; }
.posthog-nav i { width: 19px; color: #514e48; font-style: normal; text-align: center; }
.posthog-nav b { margin-left: auto; color: #96928a; font-size: 9px; font-weight: 550; }
.posthog-list-head { padding: 14px 7px 7px; display: flex; align-items: center; justify-content: space-between; }
.posthog-list-head strong { font-size: 11px; }
.posthog-list-head span { color: #858179; font-size: 9px; }
.posthog-record-list { display: grid; gap: 2px; }
.posthog-record-row { width: 100%; min-height: 48px; padding: 7px 8px; display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 7px; border: 0; border-radius: 6px; background: transparent; text-align: left; cursor: pointer; }
.posthog-record-row:hover { background: #eeece7; }
.posthog-record-row.active { background: #ddd9d0; box-shadow: inset 3px 0 #d35a78; }
.posthog-record-row > span:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.posthog-record-row strong, .posthog-record-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.posthog-record-row strong { font-size: 10.5px; }
.posthog-record-row small { color: #77736c; font-size: 8.5px; }
.posthog-record-icon { width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #d7d3ca; border-radius: 5px; background: #fff; color: #d94e72; font-size: 8px; font-weight: 700; }
.posthog-detail { width: min(1120px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.posthog-head { padding: 28px 36px 21px; border-bottom: 1px solid #deddd7; background: #fff; }
.posthog-head-row { min-height: 30px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.posthog-head-row .breadcrumbs { margin: 7px 0 0; }
.posthog-actions { display: flex; gap: 7px; }
.posthog-actions button, .posthog-controls button { min-height: 30px; padding: 0 10px; border: 1px solid #c9c6bd; border-radius: 6px; background: #fff; font-size: 9.5px; font-weight: 650; cursor: pointer; }
.posthog-actions button:hover, .posthog-controls button:hover { background: #f4f2ed; }
.posthog-actions button.primary { border-color: #272622; background: #272622; color: #fff; }
.posthog-title { margin-top: 14px; display: flex; align-items: center; gap: 10px; }
.posthog-title h1 { margin: 0; font-size: clamp(22px, 2.7vw, 31px); letter-spacing: -0.03em; }
.posthog-event-dot { width: 14px; height: 14px; border: 4px solid #f5b8c5; border-radius: 50%; background: #db3f64; }
.posthog-person-avatar, .posthog-insight-icon, .posthog-flag-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; font-size: 14px; font-weight: 750; }
.posthog-person-avatar { background: #f9d9e0; color: #95324a; }
.posthog-insight-icon { background: #e4e3fa; color: #5750a0; }
.posthog-flag-icon { background: #fff0c9; color: #80651d; }
.source-pill-small { padding: 4px 6px; border-radius: 4px; background: #efede7; color: #77736b; font-size: 9px; text-transform: uppercase; }
.posthog-body { padding: 22px 36px; }
.posthog-body section { margin-bottom: 28px; }
.posthog-body h2 { margin: 0 0 11px; font-size: 14px; }
.posthog-properties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid #deddd7; border-radius: 8px; background: #deddd7; }
.posthog-properties > div { min-height: 46px; padding: 8px 11px; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 8px; background: #fff; font-size: 10.5px; }
.posthog-properties span { color: var(--muted); text-transform: capitalize; }
.posthog-properties strong { overflow-wrap: anywhere; font-weight: 600; }
.posthog-code-list { display: flex; flex-wrap: wrap; gap: 7px; }
.posthog-code-list code { padding: 5px 7px; border-radius: 5px; background: #f1f0ec; font-size: 10px; }
.posthog-json { max-height: 420px; margin: 0; padding: 14px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; background: #faf9f6; color: #3e3c37; font-size: 10px; line-height: 1.55; }
.posthog-controls { margin-bottom: 12px; padding: 9px; display: flex; align-items: center; gap: 7px; border: 1px solid #deddd7; border-radius: 8px; background: #fff; }
.posthog-controls span { margin-left: auto; color: #77736c; font-size: 9px; }
.posthog-metric-cards { margin-bottom: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.posthog-metric-cards > div { min-height: 92px; padding: 16px; display: grid; align-content: space-between; border: 1px solid #deddd7; border-radius: 9px; background: #fff; }
.posthog-metric-cards span { color: #77736c; font-size: 10px; }
.posthog-metric-cards strong { font-size: 28px; letter-spacing: -.03em; }
.posthog-analysis-card { overflow: hidden; border: 1px solid #deddd7; border-radius: 9px; background: #fff; }
.posthog-analysis-card > div:first-child { padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e4e2dc; }
.posthog-analysis-card > div:first-child h2 { margin: 0; }
.posthog-analysis-card > div:first-child span { color: #77736c; font-size: 9px; }
.posthog-chart { min-height: 250px; padding: 22px 18px 14px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 49px, #efede8 50px); }
.posthog-chart svg { width: 100%; height: 220px; overflow: visible; }
.posthog-chart path { fill: none; stroke: #dad7cf; stroke-width: 1; }
.posthog-chart polyline { fill: none; stroke: #d94e72; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.posthog-chart-empty { min-height: 180px; display: grid; place-items: center; color: #77736c; font-size: 11px; }
.posthog-technical { margin-top: 30px; border: 1px solid #deddd7; border-radius: 8px; background: #fff; }
.posthog-technical summary { padding: 12px 14px; color: #66635d; font-size: 10px; font-weight: 650; cursor: pointer; }
.posthog-technical pre { max-height: 400px; margin: 0; padding: 14px; overflow: auto; border-top: 1px solid #deddd7; background: #f4f2ed; font-size: 9px; line-height: 1.5; }
.posthog-history { display: grid; gap: 1px; overflow: hidden; border: 1px solid #deddd7; border-radius: 8px; background: #deddd7; }
.posthog-history > div { min-height: 48px; padding: 8px 12px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; background: #fff; }
.posthog-history > div > span { color: #d94e72; }
.posthog-history strong { font-size: 10.5px; }
.posthog-history small { color: #77736c; font-size: 9px; }

.bigquery-tree > .bigquery-dataset { margin-bottom: 7px; }
.bigquery-dataset > details > summary { list-style: none; }
.bigquery-dataset > details > summary::-webkit-details-marker { display: none; }
.bigquery-dataset-button {
  width: 100%; min-height: 34px; padding: 0 7px; display: flex; align-items: center; gap: 7px;
  border: 0; border-radius: 6px; background: transparent; color: var(--text); cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 650; text-align: left;
}
.bigquery-dataset-button:hover, .bigquery-dataset-button.active { background: var(--hover); }
.bigquery-dataset-button small { margin-left: auto; color: #999791; font-size: 10px; font-weight: 500; }
.bigquery-dataset-icon { color: #4d6f9a; }
.bigquery-dataset ul { margin-left: 10px; padding-left: 9px; border-left: 1px solid #e7e5df; }
.bigquery-table-node .node-icon { color: #557cae; }
.bigquery-description { max-width: 720px; margin: 20px 0 0; color: #464540; font-size: 13px; line-height: 1.6; }
.bigquery-section { margin-top: 31px; }
.bigquery-section h2 { margin: 0 0 12px; font-size: 14px; }
.bigquery-section h2 span { color: var(--muted); font-size: 10px; font-weight: 500; }
.bigquery-section .database-card { margin-top: 0; }
.schema-pill.restricted { border-color: #e4c9c4; background: #fff5f3; color: #88463b; }

.gsc-tree-summary { display: flex; gap: 6px; margin: 0 3px 12px; }
.gsc-tree-summary span { padding: 5px 7px; border-radius: 5px; background: #edf3fe; color: #37649c; font-size: 9px; }
.gsc-record-group { margin: 5px 0 10px; }
.gsc-record-group > summary { min-height: 32px; padding: 0 7px; display: flex; align-items: center; gap: 7px; border-radius: 6px; list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; }
.gsc-record-group > summary::-webkit-details-marker { display: none; }
.gsc-record-group > summary:hover { background: var(--hover); }
.gsc-record-group > summary small { margin-left: auto; color: var(--muted); font-size: 9px; font-weight: 500; }
.gsc-record-node .node-label { font-size: 11px; }

.gsc-detail { width: min(960px, 100%); min-height: 100%; margin: 0 auto; padding-bottom: 100px; }
.gsc-detail-head { padding: 32px 42px 25px; border-bottom: 1px solid var(--border); background: #fff; }
.gsc-title-row { display: flex; align-items: flex-start; gap: 13px; }
.gsc-logo { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: #4285f4; color: #fff; font-size: 17px; font-weight: 750; }
.gsc-title-row h1 { margin: -2px 0 0; font-size: clamp(23px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.03em; }
.gsc-title-row p { max-width: 700px; margin: 7px 0 0; overflow-wrap: anywhere; color: var(--muted); font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.gsc-body { padding: 25px 42px; }
.gsc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: var(--border); }
.gsc-metrics > div { min-height: 89px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.gsc-metrics > div.clicks { border-top: 4px solid #4285f4; }
.gsc-metrics > div.impressions { border-top: 4px solid #7448c8; }
.gsc-metrics span { color: var(--muted); font-size: 10px; }
.gsc-metrics strong { font-size: 25px; letter-spacing: -0.03em; }
.gsc-section { margin-top: 28px; }
.gsc-section > h2, .gsc-section-title h2 { margin: 0; font-size: 14px; }
.gsc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.gsc-section-title > span { color: var(--muted); font-size: 9px; }
.gsc-source { padding: 4px 7px; border-radius: 999px; background: #efeee9; color: #77736b !important; text-transform: capitalize; }
.gsc-source.overlay { background: #fff1ce; color: #795d12 !important; }
.gsc-inspection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--border); }
.gsc-inspection > div { min-height: 51px; padding: 10px 12px; display: grid; grid-template-columns: 94px minmax(0, 1fr); align-items: center; gap: 9px; background: #fff; font-size: 11px; }
.gsc-inspection span { color: var(--muted); }
.gsc-inspection strong { overflow-wrap: anywhere; font-weight: 600; }
.gsc-verdict { width: fit-content; padding: 3px 6px; border-radius: 4px; }
.gsc-verdict.pass { background: #e6f4ea; color: #28763d; }
.gsc-verdict.fail { background: #fce8e6; color: #a33a31; }
.gsc-verdict.neutral { background: #f1f3f4; color: #5f6368; }
.gsc-trend { height: 145px; padding: 14px 12px 0; display: flex; align-items: flex-end; gap: 3px; border: 1px solid var(--border); border-radius: 8px 8px 0 0; background: linear-gradient(to bottom, #fff 0, #fff 32%, #f1f3f8 33%, #fff 34%, #fff 65%, #f1f3f8 66%, #fff 67%); }
.gsc-trend-column { height: 100%; min-width: 2px; flex: 1; display: flex; align-items: flex-end; }
.gsc-trend-column span { width: 100%; min-height: 3px; border-radius: 2px 2px 0 0; background: #8061d1; opacity: 0.78; }
.gsc-trend-column:hover span { background: #4285f4; opacity: 1; }
.gsc-trend-legend { padding: 9px 11px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid var(--border); border-top: 0; border-radius: 0 0 8px 8px; color: var(--muted); font-size: 9px; }

/* Search Console workspace */
.pane-layout.search-console-mode .tree-pane { width: 258px; min-width: 258px; background: #f8fafd; border-color: #dfe3e8; }
.pane-layout.search-console-mode .tree-content { padding: 12px 10px 22px; }
.pane-layout.search-console-mode .detail-pane { background: #f1f3f4; }
.gsc-property-picker { min-height: 54px; padding: 7px 8px; display: grid; grid-template-columns: 27px minmax(0, 1fr) 14px; align-items: center; gap: 9px; border-bottom: 1px solid #e1e5ea; }
.gsc-property-picker img { width: 25px; height: 25px; }
.gsc-property-picker div { min-width: 0; display: grid; gap: 2px; }
.gsc-property-picker strong { overflow: hidden; color: #3c4043; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.gsc-property-picker div span, .gsc-property-picker > span { color: #80868b; font-size: 10px; }
.gsc-url-inspection { min-height: 42px; margin: 10px 4px 15px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; border-radius: 22px; color: #5f6368; background: #e9eef6; font-size: 10px; line-height: 1.3; }
.gsc-url-inspection > span:first-child { color: #1a73e8; font-size: 18px; }
.gsc-nav { display: grid; gap: 3px; }
.gsc-nav-section { display: grid; gap: 2px; padding: 5px 0; border-bottom: 1px solid #e7eaee; }
.gsc-nav-heading { padding: 8px 12px 4px; color: #5f6368; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.gsc-nav-item { min-height: 36px; padding: 0 12px; display: flex; align-items: center; gap: 13px; border: 0; border-radius: 0 18px 18px 0; color: #5f6368; background: transparent; font-size: 12px; text-align: left; cursor: pointer; }
.gsc-nav-item > span { width: 18px; color: #6c737a; font-size: 16px; text-align: center; }
.gsc-nav-item:hover { background: #eef2f7; }
.gsc-nav-item.active { color: #1967d2; background: #d3e3fd; font-weight: 600; }
.gsc-nav-item.active > span { color: #1967d2; }
.gsc-nav-footer { padding: 18px 12px 4px; color: #8a9096; font-size: 9px; line-height: 1.6; }

.gsc-console { width: min(1180px, calc(100% - 48px)); min-height: 100%; margin: 0 auto; padding: 25px 0 80px; color: #3c4043; }
.gsc-console-head { min-height: 52px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.gsc-console-head h1 { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.35; }
.gsc-console-head p { margin: 5px 0 0; color: #80868b; font-size: 11px; }
.gsc-export { padding: 8px 12px; border: 0; border-radius: 4px; color: #1a73e8; background: transparent; font-size: 10px; font-weight: 650; letter-spacing: 0.04em; cursor: pointer; }
.gsc-export:hover { background: #e8f0fe; }
.gsc-filter-row, .gsc-subfilter { margin: 12px 0 18px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.gsc-filter-row button, .gsc-subfilter button { min-height: 32px; padding: 0 12px; border: 1px solid #dadce0; border-radius: 4px; color: #5f6368; background: #fff; font-size: 10px; cursor: pointer; }
.gsc-filter-row button.active { border-color: #1a73e8; color: #1967d2; background: #e8f0fe; }
.gsc-filter-row > span, .gsc-subfilter > span:last-child { margin-left: auto; color: #80868b; font-size: 10px; }

.gsc-performance-card, .gsc-table-card, .gsc-submit-card, .gsc-success-card, .gsc-vitals-card, .gsc-overview-grid button { overflow: hidden; border: 1px solid #dadce0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(60, 64, 67, 0.05); }
.gsc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gsc-kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gsc-kpis > div { min-height: 112px; padding: 18px 20px; display: grid; align-content: start; gap: 10px; border-right: 1px solid #e8eaed; color: #5f6368; background: #fff; }
.gsc-kpis > div:last-child { border-right: 0; }
.gsc-kpis > div.blue { color: #fff; background: #4285f4; }
.gsc-kpis > div.purple { color: #fff; background: #7e57c2; }
.gsc-kpis > div.gray { border-top: 4px solid #9aa0a6; }
.gsc-kpis > div.green { border-top: 4px solid #00897b; }
.gsc-kpis span { font-size: 11px; }
.gsc-kpis strong { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.gsc-kpis small { font-size: 10px; font-weight: 400; }
.gsc-chart-wrap { padding: 22px 24px 13px; border-top: 1px solid #e8eaed; }
.gsc-chart { width: 100%; height: 210px; overflow: visible; }
.gsc-chart line { stroke: #e8eaed; stroke-width: 1; }
.gsc-chart polyline { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.gsc-chart polyline.clicks { stroke: #4285f4; }
.gsc-chart polyline.impressions { stroke: #7e57c2; }
.gsc-chart polyline.indexed { stroke: #00897b; }
.gsc-chart polyline.not-indexed { stroke: #9aa0a6; }
.gsc-chart-dates { display: flex; justify-content: space-between; color: #80868b; font-size: 9px; }

.gsc-table-card { margin-top: 20px; overflow-x: auto; }
.gsc-dimension-tabs { min-width: 720px; padding: 0 14px; display: flex; gap: 20px; border-bottom: 1px solid #e8eaed; }
.gsc-dimension-tabs button { min-height: 48px; padding: 0 5px; border: 0; border-bottom: 3px solid transparent; color: #5f6368; background: transparent; font-size: 9px; font-weight: 650; letter-spacing: 0.04em; cursor: pointer; }
.gsc-dimension-tabs button.active { border-color: #1a73e8; color: #1a73e8; }
.gsc-table-card table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 10px; }
.gsc-table-card th, .gsc-table-card td { height: 43px; padding: 0 18px; border-bottom: 1px solid #e8eaed; text-align: right; white-space: nowrap; }
.gsc-table-card th { color: #5f6368; font-size: 9px; font-weight: 550; }
.gsc-table-card th:first-child, .gsc-table-card td:first-child { max-width: 580px; overflow: hidden; color: #3c4043; text-align: left; text-overflow: ellipsis; }
.gsc-table-card tbody tr:hover { background: #f8fafd; }
.gsc-table-footer { padding: 14px 18px; color: #80868b; font-size: 9px; text-align: right; }
.gsc-card-title { padding: 18px; border-bottom: 1px solid #e8eaed; }
.gsc-card-title h2 { margin: 0; font-size: 15px; font-weight: 500; }
.gsc-card-title p { margin: 5px 0 0; color: #80868b; font-size: 10px; }
.gsc-status-dot { width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: #1a73e8; }
.gsc-success-text { color: #188038; }

.gsc-info-banner { margin-bottom: 14px; padding: 12px 15px; border: 1px solid #aecbfa; border-radius: 5px; color: #3c4043; background: #e8f0fe; font-size: 10px; }
.gsc-success-card { margin-bottom: 18px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.gsc-success-card > span, .gsc-good-job > span { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 39px; border-radius: 50%; color: #fff; background: #188038; font-size: 20px; }
.gsc-success-card h2, .gsc-good-job h2 { margin: 0; font-size: 15px; font-weight: 500; }
.gsc-success-card p, .gsc-good-job p { margin: 5px 0 0; color: #80868b; font-size: 10px; }
.gsc-video-card { padding: 22px; display: grid; grid-template-columns: 155px minmax(0, 1fr); align-items: end; gap: 20px; }
.gsc-video-card > div:first-child { display: grid; gap: 10px; color: #5f6368; font-size: 10px; }
.gsc-video-card strong { color: #3c4043; font-size: 30px; font-weight: 500; }
.gsc-video-bars { height: 100px; display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid #dadce0; }
.gsc-video-bars span { min-width: 2px; flex: 1; background: #4285f4; }
.gsc-submit-card { margin: 12px 0 20px; padding: 22px; }
.gsc-submit-card h2 { margin: 0 0 18px; font-size: 15px; font-weight: 500; }
.gsc-submit-card div { display: flex; align-items: center; gap: 8px; }
.gsc-submit-card span { color: #5f6368; font-size: 11px; }
.gsc-submit-card input { width: min(360px, 45%); height: 34px; padding: 0 10px; border: 1px solid #dadce0; border-radius: 4px; outline: 0; }
.gsc-submit-card button { height: 34px; padding: 0 15px; border: 0; border-radius: 4px; color: #fff; background: #1a73e8; font-size: 10px; font-weight: 650; }

.gsc-vitals-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gsc-vitals-card { padding: 20px; }
.gsc-vitals-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gsc-vitals-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.gsc-vitals-head button { border: 0; color: #1a73e8; background: transparent; font-size: 9px; font-weight: 650; }
.gsc-vitals-numbers { margin: 24px 0; display: grid; gap: 13px; color: #5f6368; font-size: 10px; }
.gsc-vitals-numbers span { display: flex; align-items: center; gap: 8px; }
.gsc-vitals-numbers b { width: 8px; height: 8px; display: block; border-radius: 50%; }
.gsc-vitals-bar { height: 9px; display: flex; overflow: hidden; border-radius: 6px; background: #eee; }
.gsc-vitals-bar i { display: block; }
.gsc-vitals-numbers .poor, .gsc-vitals-bar .poor { background: #d93025; }
.gsc-vitals-numbers .needs, .gsc-vitals-bar .needs { background: #f9ab00; }
.gsc-vitals-numbers .good, .gsc-vitals-bar .good { background: #188038; }
.gsc-good-job { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 16px; border-top: 1px solid #e8eaed; }
.gsc-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gsc-overview-grid button { min-height: 126px; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-content: center; gap: 9px; border: 1px solid #dadce0; text-align: left; cursor: pointer; }
.gsc-overview-grid button:hover { border-color: #aecbfa; box-shadow: 0 2px 8px rgba(60, 64, 67, 0.12); }
.gsc-overview-grid span { color: #1a73e8; font-size: 11px; }
.gsc-overview-grid strong { font-size: 16px; font-weight: 500; }
.gsc-overview-grid i { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #1a73e8; font-size: 24px; font-style: normal; }

@media (max-width: 900px) {
  .pane-layout.search-console-mode .tree-pane { width: 210px; min-width: 210px; }
  .gsc-console { width: calc(100% - 28px); }
  .gsc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsc-vitals-grid, .gsc-overview-grid { grid-template-columns: 1fr; }
}

.graph-sidebar { min-height: 100%; }
.graph-stats { margin: 0 4px 15px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.graph-stats div { min-width: 0; padding: 8px 5px; border: 1px solid var(--border); border-radius: 7px; background: #fff; text-align: center; }
.graph-stats strong, .graph-stats span { display: block; }
.graph-stats strong { overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.graph-stats span { margin-top: 2px; color: var(--muted); font-size: 8px; line-height: 1.2; }
.graph-field { margin: 0 4px 11px; display: grid; gap: 5px; }
.graph-field > span { color: var(--muted); font-size: 9px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; }
.graph-field input, .graph-field select { width: 100%; height: 34px; padding: 0 9px; border: 1px solid var(--border); border-radius: 7px; outline: none; background: #fff; color: var(--text); font-size: 11px; }
.graph-field input:focus, .graph-field select:focus { border-color: #aaa8a0; box-shadow: 0 0 0 3px rgba(40, 40, 35, 0.06); }
.graph-check { margin: 2px 5px 12px; display: flex; align-items: center; gap: 7px; color: #55534e; font-size: 10px; cursor: pointer; }
.graph-check input { accent-color: #a14942; }
.graph-visible-count { margin: 0 4px 13px; padding: 9px; border-radius: 7px; background: #f0efe9; color: #68665f; font-size: 9px; line-height: 1.5; }
.graph-warning { margin: 0 4px 13px; padding: 9px; border: 1px solid #ead7a0; border-radius: 7px; background: #fff8df; color: #705f2a; font-size: 9px; }
.graph-help, .graph-node-card { margin: 17px 4px 0; padding-top: 15px; border-top: 1px solid var(--border); }
.graph-help h3, .graph-node-card h3 { margin: 0; font-size: 14px; line-height: 1.3; }
.graph-help p, .graph-node-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.graph-node-service { margin-bottom: 7px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.graph-node-service span { width: 7px; height: 7px; border-radius: 50%; }
.graph-node-card > code { display: block; margin-top: 7px; overflow-wrap: anywhere; color: #77746d; font-size: 9px; }
.graph-node-meta { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.graph-node-meta span { padding: 3px 5px; border-radius: 4px; background: #efeee9; color: #68665f; font-size: 8px; text-transform: capitalize; }
.graph-node-meta .unresolved { background: #f9e5e3; color: #9a413a; }
.graph-open-record { width: 100%; margin-top: 11px; padding: 7px 9px; border: 1px solid #d3d1ca; border-radius: 6px; background: #fff; font-size: 10px; font-weight: 650; cursor: pointer; }
.graph-open-record:hover { background: var(--hover); }
.graph-node-card h4 { margin: 17px 0 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; }
.graph-relations { display: grid; gap: 4px; }
.graph-relations button { min-width: 0; padding: 7px 8px; display: grid; gap: 3px; border: 1px solid transparent; border-radius: 6px; background: #f4f3ef; text-align: left; cursor: pointer; }
.graph-relations button:hover { border-color: #d8d6cf; background: #fff; }
.graph-relations button span, .graph-relations button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.graph-relations button span { color: var(--muted); font-size: 8px; }
.graph-relations button strong { font-size: 10px; font-weight: 600; }
.graph-relations > p { margin: 0; }
.graph-canvas-wrap { height: 100%; min-height: 0; position: relative; display: flex; flex-direction: column; }
.graph-canvas-head { min-height: 45px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.92); }
.graph-canvas-copy { display: flex; align-items: baseline; gap: 9px; }
.graph-canvas-copy strong { font-size: 11px; }
.graph-canvas-copy span { color: var(--muted); font-size: 9px; }
.graph-zoom-controls { display: flex; align-items: center; gap: 4px; }
.graph-zoom-controls button { height: 27px; min-width: 27px; padding: 0 7px; border: 1px solid #d6d4cd; border-radius: 6px; background: #fff; color: #4b4944; font-size: 13px; line-height: 1; cursor: pointer; }
.graph-zoom-controls button:hover { background: var(--hover); }
.graph-zoom-controls span { min-width: 40px; color: var(--muted); font-size: 9px; text-align: center; font-variant-numeric: tabular-nums; }
.graph-zoom-controls .graph-zoom-reset { min-width: 45px; font-size: 9px; }
.graph-canvas { width: 100%; min-height: 0; flex: 1; background: radial-gradient(circle at center, #fff 0, #fafaf7 58%, #f2f1ec 100%); cursor: grab; touch-action: none; user-select: none; }
.graph-canvas.dragging { cursor: grabbing; }
.graph-edge { stroke: #8f8d87; stroke-width: 1; opacity: 0.18; transition: opacity 120ms ease, stroke-width 120ms ease; }
.graph-edge.containment { stroke: #aaa8a1; opacity: 0.1; }
.graph-edge.cross_service { stroke: #5c5960; stroke-width: 1.4; opacity: 0.34; }
.graph-edge.unresolved { stroke: #c95148; stroke-width: 2; stroke-dasharray: 5 4; opacity: 0.75; }
.graph-edge.muted { opacity: 0.025; }
.graph-edge.selected { stroke-width: 3; opacity: 0.95; }
.graph-node { cursor: pointer; opacity: 0.88; outline: none; transition: opacity 120ms ease; }
.graph-node circle { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.graph-node:hover, .graph-node:focus, .graph-node.selected { opacity: 1; }
.graph-node:hover circle, .graph-node:focus circle, .graph-node.selected circle { stroke: #22221f; stroke-width: 2.5; }
.graph-node.muted { opacity: 0.14; }
.graph-node.missing circle { stroke: #b83e36; stroke-width: 2.5; }
.graph-node.summary circle { fill-opacity: 0.18; stroke-dasharray: 3 2; }
.graph-node text { fill: #4d4c47; font-size: 13px; font-weight: 700; paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }

.skeleton { height: 28px; margin: 8px 6px; border-radius: 6px; background: linear-gradient(90deg, #eeede9, #f7f6f2, #eeede9); background-size: 200% 100%; animation: pulse 1.3s infinite; }
.skeleton-title { width: 60%; height: 16px; margin-bottom: 17px; }
.skeleton.short { width: 72%; }
@keyframes pulse { to { background-position: -200% 0; } }

@media (max-width: 820px) {
  .tool-rail { width: 70px; }
  .tool-button { width: 52px; }
  .tool-name, .rail-label { display: none; }
  .tree-pane { width: 230px; }
  .pane-layout.graph-mode .tree-pane { width: 270px; }
  .detail-wrap { width: calc(100% - 34px); padding-top: 30px; }
  .cost-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-panel-grid, .analytics-realtime-top { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tool-rail { display: none; }
  .pane-layout { position: relative; }
  .tree-pane { width: 42%; min-width: 150px; }
  .workspace-tabs { padding-left: 14px; }
  .cost-page { width: calc(100% - 28px); }
  .cost-head { display: grid; }
  .property-row { grid-template-columns: 100px 1fr; }
  .slack-channel-head { padding-right: 18px; padding-left: 18px; }
  .slack-message-list { padding-right: 5px; padding-left: 5px; }
  .slack-thread { margin-left: 18px; }
  .linear-issue-head { padding-right: 20px; padding-left: 20px; }
  .linear-body { padding-right: 20px; padding-left: 20px; }
  .linear-properties { grid-template-columns: 1fr; }
  .calendar-event-head { padding-right: 20px; padding-left: 20px; }
  .calendar-body { padding-right: 20px; padding-left: 20px; }
  .calendar-schedule { grid-template-columns: 1fr; }
  .analytics-head, .analytics-body { padding-right: 18px; padding-left: 18px; }
  .analytics-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-realtime-summary { display: grid; gap: 14px; }
  .analytics-realtime-summary div { min-width: 0; }
  .stripe-customer-head { padding-right: 20px; padding-left: 20px; }
  .stripe-customer-head p { margin-left: 0; }
  .stripe-body { padding-right: 20px; padding-left: 20px; }
  .stripe-properties { grid-template-columns: 1fr; }
  .stripe-row { grid-template-columns: minmax(150px, 1fr) 100px; }
  .hubspot-record-head { padding-right: 20px; padding-left: 20px; }
  .hubspot-body { padding-right: 20px; padding-left: 20px; }
  .hubspot-summary, .hubspot-associations { grid-template-columns: 1fr; }
  .hubspot-property-row { grid-template-columns: 1fr; gap: 5px; }
  .posthog-head { padding-right: 20px; padding-left: 20px; }
  .posthog-body { padding-right: 20px; padding-left: 20px; }
  .posthog-properties { grid-template-columns: 1fr; }
  .gsc-detail-head, .gsc-body { padding-right: 18px; padding-left: 18px; }
  .gsc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gsc-inspection { grid-template-columns: 1fr; }
  .pane-layout.graph-mode { display: grid; grid-template-columns: minmax(180px, 42%) minmax(0, 1fr); }
  .pane-layout.graph-mode .tree-pane { width: auto; min-width: 0; }
}
