:root {
color-scheme: light;
--bg: #f6f7f9;
--surface: #ffffff;
--surface-2: #eef2f5;
--line: #d9e0e7;
--line-strong: #b5c1cc;
--text: #17202a;
--muted: #657483;
--accent: #0f766e;
--accent-light: #f0fdfa;
--accent-2: #2563eb;
--danger: #b42318;
--warning: #b54708;
--success: #067647;
--font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
--op-select: #0284c7;
--op-insert: #16a34a;
--op-update: #d97706;
--op-delete: #dc2626;
--op-upsert: #7c3aed;
--shadow: 0 1px 2px rgba(16, 24, 40, 0.08);
}
* {
box-sizing: border-box;
}
html {
height: 100%;
overflow: hidden;
}
body {
margin: 0;
min-width: 1120px;
height: 100%;
overflow: hidden;
background: var(--bg);
color: var(--text);
font-family:
Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
sans-serif;
font-size: 14px;
}
button,
input,
select {
font: inherit;
}
button {
cursor: pointer;
}
button:disabled {
cursor: not-allowed;
}
.app-shell {
display: grid;
grid-template-columns: var(--rail-width, 240px) 6px 1fr;
height: 100vh;
min-height: 0;
overflow: hidden;
transition: grid-template-columns 0.22s ease;
}
.app-shell.rail-hidden {
grid-template-columns: 0 8px 1fr;
}
.app-shell.rail-hidden .mode-rail {
overflow: hidden;
padding: 0;
border: 0;
width: 0;
min-width: 0;
visibility: hidden;
opacity: 0;
pointer-events: none;
}
.app-shell.rail-hidden .rail-resizer {
cursor: pointer;
background: #17202a;
border-right: 1px solid rgba(255, 255, 255, 0.12);
}
.mode-rail {
display: flex;
flex-direction: column;
gap: 8px;
min-height: 0;
padding: 16px;
border-right: 1px solid var(--line);
background: #17202a;
color: #f8fafc;
overflow-y: auto;
overflow-x: hidden;
scrollbar-width: thin;
scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
transition: padding 0.22s ease;
}
.mode-rail::-webkit-scrollbar {
width: 4px;
}
.mode-rail::-webkit-scrollbar-track {
background: transparent;
}
.mode-rail::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.15);
border-radius: 4px;
}
.mode-rail::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
}
.resizer {
position: relative;
z-index: 10;
background: var(--line);
transition: background 0.15s ease;
user-select: none;
}
.resizer::after {
content: "";
position: absolute;
inset: -2px -4px;
}
.rail-resizer,
.results-resizer,
.detail-resizer {
cursor: col-resize;
}
.resizer:hover,
.resizer.dragging {
background: var(--accent-2);
}
/* Collapsed expand indicator tabs on resizers */
.app-shell.rail-hidden .rail-resizer,
.content-grid.results-hidden .results-resizer,
.content-grid.detail-hidden .detail-resizer {
cursor: pointer;
}
.app-shell.rail-hidden .rail-resizer::before,
.content-grid.results-hidden .results-resizer::before,
.content-grid.detail-hidden .detail-resizer::before {
content: "›";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
justify-content: center;
width: 14px;
height: 32px;
font-size: 13px;
font-weight: 800;
line-height: 1;
border-radius: 4px;
pointer-events: none;
transition: all 0.15s ease;
z-index: 11;
}
.app-shell.rail-hidden .rail-resizer::before {
color: #94a3b8;
background: #1e293b;
border: 1px solid #334155;
box-shadow: 2px 0 6px rgba(0, 0, 0, 0.25);
}
.app-shell.rail-hidden .rail-resizer:hover::before {
color: #ffffff;
background: var(--accent-2);
border-color: var(--accent-2);
}
.content-grid.results-hidden .results-resizer::before {
color: #64748b;
background: #ffffff;
border: 1px solid var(--line-strong);
box-shadow: 2px 0 6px rgba(0, 0, 0, 0.08);
}
.content-grid.results-hidden .results-resizer:hover::before {
color: #ffffff;
background: var(--accent-2);
border-color: var(--accent-2);
}
.content-grid.detail-hidden .detail-resizer::before {
content: "‹";
color: #64748b;
background: #ffffff;
border: 1px solid var(--line-strong);
box-shadow: -2px 0 6px rgba(0, 0, 0, 0.08);
}
.content-grid.detail-hidden .detail-resizer:hover::before {
color: #ffffff;
background: var(--accent-2);
border-color: var(--accent-2);
}
.brand {
display: flex;
align-items: center;
gap: 10px;
min-height: 44px;
margin-bottom: 10px;
flex-shrink: 0;
}
.brand-text {
flex: 1;
min-width: 0;
}
.pane-collapse-btn {
width: 26px;
height: 26px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.15);
background: rgba(255, 255, 255, 0.05);
color: #94a3b8;
display: inline-flex;
align-items: center;
justify-content: center;
cursor: pointer;
padding: 0;
flex-shrink: 0;
transition: all 0.15s ease;
}
.pane-collapse-btn:hover {
background: rgba(255, 255, 255, 0.15);
color: #ffffff;
border-color: rgba(255, 255, 255, 0.3);
}
.results-top-row .pane-collapse-btn {
border: 1px solid var(--line-strong);
background: #ffffff;
color: #64748b;
}
.results-top-row .pane-collapse-btn:hover {
background: #f1f5f9;
color: #0f172a;
border-color: var(--line-strong);
}
.brand-mark {
display: grid;
width: 36px;
height: 36px;
place-items: center;
border-radius: 8px;
background: #0f172a;
box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
overflow: hidden;
}
.brand-mark img {
width: 100%;
height: 100%;
display: block;
}
.brand-text {
min-width: 0;
overflow-wrap: anywhere;
font-weight: 700;
}
.mode-button {
width: 100%;
min-height: 38px;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
background: rgba(255, 255, 255, 0.05);
color: #e5edf5;
text-align: left;
padding: 8px 10px;
flex-shrink: 0;
}
.mode-button.active {
border-color: rgba(255, 255, 255, 0.18);
background: #ffffff;
color: #17202a;
}
.mode-button:disabled {
opacity: 0.48;
}
.meta-box {
margin-top: auto;
flex-shrink: 0;
padding: 8px 10px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: #cdd8e3;
font-size: 12px;
line-height: 1.45;
background: rgba(15, 23, 42, 0.4);
transition: all 0.2s ease;
}
.meta-box-header {
display: flex;
align-items: center;
justify-content: space-between;
cursor: pointer;
user-select: none;
padding: 2px 0;
border-radius: 4px;
}
.meta-box-header:hover .meta-box-title {
color: #ffffff;
}
.meta-box-title {
display: inline-flex;
align-items: center;
gap: 6px;
font-weight: 700;
font-size: 12px;
color: #94a3b8;
transition: color 0.15s ease;
}
.meta-box-title svg {
color: #38bdf8;
flex-shrink: 0;
}
.meta-box-header-actions {
display: flex;
align-items: center;
gap: 6px;
}
.meta-box-badge {
font-size: 10px;
font-weight: 700;
color: #38bdf8;
background: rgba(56, 189, 248, 0.12);
padding: 1px 6px;
border-radius: 4px;
font-variant-numeric: tabular-nums;
border: 1px solid rgba(56, 189, 248, 0.2);
}
.meta-box-toggle-btn {
background: transparent;
border: none;
color: #94a3b8;
cursor: pointer;
padding: 3px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 4px;
transition: transform 0.2s ease, color 0.15s ease, background 0.15s ease;
}
.meta-box-toggle-btn:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
}
.meta-box.collapsed .meta-box-toggle-btn {
transform: rotate(-90deg);
}
.meta-box-body {
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.meta-box.collapsed .meta-box-body {
display: none;
}
.index-status {
display: grid;
gap: 8px;
}
.app-version {
display: flex;
justify-content: space-between;
gap: 8px;
margin-top: 8px;
padding-top: 8px;
border-top: 1px solid rgba(255, 255, 255, 0.1);
color: #cdd8e3;
}
.app-version strong {
color: #ffffff;
font-variant-numeric: tabular-nums;
}
.status-group {
display: grid;
gap: 2px;
padding-bottom: 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.status-group:last-child {
padding-bottom: 0;
border-bottom: 0;
}
.status-access {
color: #fde68a;
}
.status-access .status-title {
color: #fbbf24;
}
.status-title {
color: #ffffff;
font-weight: 750;
}
.status-row {
display: flex;
justify-content: space-between;
gap: 8px;
}
.status-row span:last-child {
color: #ffffff;
font-variant-numeric: tabular-nums;
}
.status-warning {
border: 1px solid rgba(245, 158, 11, 0.45);
border-radius: 8px;
background: rgba(245, 158, 11, 0.12);
color: #ffdf9b;
padding: 8px;
}
.status-instruction {
display: grid;
gap: 6px;
border: 1px solid rgba(245, 158, 11, 0.45);
border-radius: 8px;
background: rgba(245, 158, 11, 0.12);
color: #ffdf9b;
padding: 8px;
}
.status-instruction ol {
margin: 0;
padding-left: 18px;
}
.status-instruction li + li {
margin-top: 4px;
}
.status-instruction code {
display: inline-block;
max-width: 100%;
border-radius: 4px;
background: rgba(255, 255, 255, 0.12);
color: #ffffff;
padding: 1px 4px;
overflow-wrap: anywhere;
}
.rebuild-button {
width: 100%;
min-height: 32px;
margin-top: 10px;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 8px;
background: #ffffff;
color: #17202a;
font-size: 12px;
font-weight: 700;
}
.rebuild-button:disabled {
opacity: 0.65;
}
.workspace {
display: grid;
grid-template-rows: 64px 1fr;
min-width: 0;
min-height: 0;
overflow: hidden;
}
.toolbar {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
border-bottom: 1px solid var(--line);
background: var(--surface);
}
.pane-toggles {
display: inline-flex;
gap: 4px;
min-width: max-content;
}
.pane-toggle,
.toolbar-button {
height: 34px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: #ffffff;
color: var(--muted);
padding: 0 10px;
font-size: 12px;
}
.pane-toggle.active {
border-color: var(--accent);
color: var(--accent);
background: #ecfdf8;
}
.toolbar-button {
color: var(--text);
}
.search-group {
flex: 1;
}
#searchInput {
width: 100%;
height: 40px;
border: 1px solid var(--line-strong);
border-radius: 8px;
padding: 0 12px;
color: var(--text);
background: #ffffff;
}
#searchInput:focus,
#searchScope:focus {
border-color: var(--accent-2);
outline: 2px solid rgba(37, 99, 235, 0.16);
}
#searchScope {
height: 40px;
min-width: 132px;
border: 1px solid var(--line-strong);
border-radius: 8px;
padding: 0 10px;
background: #ffffff;
}
.segmented {
display: inline-flex;
height: 40px;
padding: 3px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: var(--surface-2);
}
.segment {
min-width: 86px;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--muted);
}
.segment.active {
background: #ffffff;
color: var(--text);
box-shadow: var(--shadow);
}
.content-grid {
display: grid;
grid-template-columns: var(--results-width, 340px) 6px minmax(0, 1fr) 6px var(--detail-width, 420px);
min-height: 0;
overflow: hidden;
transition: grid-template-columns 0.22s ease;
}
.content-grid.results-hidden {
grid-template-columns: 0 8px minmax(0, 1fr) 6px var(--detail-width, 420px);
}
.content-grid.diagram-hidden {
grid-template-columns: var(--results-width, 340px) 6px 0 6px var(--detail-width, 420px);
}
.content-grid.detail-hidden {
grid-template-columns: var(--results-width, 340px) 6px minmax(0, 1fr) 8px 0;
}
.content-grid.results-hidden.detail-hidden {
grid-template-columns: 0 8px minmax(0, 1fr) 8px 0;
}
.content-grid.results-hidden.diagram-hidden {
grid-template-columns: 0 8px 0 6px var(--detail-width, 420px);
}
.content-grid.diagram-hidden.detail-hidden {
grid-template-columns: var(--results-width, 340px) 6px 0 8px 0;
}
.content-grid.results-hidden .results-pane {
overflow: hidden;
border: 0;
width: 0;
min-width: 0;
padding: 0;
visibility: hidden;
opacity: 0;
pointer-events: none;
}
.content-grid.results-hidden .results-resizer {
cursor: pointer;
background: var(--line);
border-right: 1px solid var(--line-strong);
}
.content-grid.diagram-hidden .diagram-pane,
.content-grid.detail-hidden .detail-pane {
overflow: hidden;
border: 0;
width: 0;
min-width: 0;
padding: 0;
visibility: hidden;
opacity: 0;
pointer-events: none;
}
.content-grid.detail-hidden .detail-resizer {
cursor: pointer;
background: var(--line);
border-left: 1px solid var(--line-strong);
}
.results-pane,
.diagram-pane,
.detail-pane {
min-height: 0;
min-width: 0;
border-right: 1px solid var(--line);
background: var(--surface);
overflow: hidden;
}
.results-pane {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
}
.detail-pane {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
border-right: 0;
}
.pane-header,
.diagram-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
min-height: 70px;
padding: 14px 16px;
border-bottom: 1px solid var(--line);
}
.pane-header h1,
.diagram-header h2 {
margin: 0;
font-size: 16px;
line-height: 1.2;
}
.results-title-row {
display: flex;
min-width: 0;
align-items: center;
flex-wrap: wrap;
gap: 10px;
}
.match-filter {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: nowrap;
}
.match-filter-chip {
padding: 2px 7px;
font-size: 11px;
font-weight: 600;
min-height: auto;
height: 22px;
border-radius: 4px;
border: 1px solid var(--line);
background: #ffffff;
color: #475569;
cursor: pointer;
transition: all 0.12s ease;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
}
.match-filter-chip:hover {
background: #f1f5f9;
color: #0f172a;
}
.match-filter-chip.active {
background: #0f766e;
color: #ffffff;
border-color: #0f766e;
font-weight: 600;
}
.match-filter-chip[data-match-op="select"].active { background: #0284c7; border-color: #0284c7; }
.match-filter-chip[data-match-op="insert"].active { background: #16a34a; border-color: #16a34a; }
.match-filter-chip[data-match-op="update"].active { background: #d97706; border-color: #d97706; }
.match-filter-chip[data-match-op="delete"].active { background: #dc2626; border-color: #dc2626; }
.match-filter-chip[data-match-op="upsert"].active { background: #7c3aed; border-color: #7c3aed; }
/* CRUD Map Controls & Standalone Toggle Switch */
.crud-tabs {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
border-bottom: 1px solid var(--line);
padding-bottom: 10px;
flex-wrap: wrap;
}
.crud-view-group {
display: inline-flex;
align-items: center;
gap: 4px;
background: var(--surface-2);
padding: 3px;
border-radius: 999px;
border: 1px solid var(--line);
}
.crud-view-btn {
min-height: 24px;
border: none;
border-radius: 999px;
background: transparent;
color: var(--muted);
padding: 0 12px;
font-size: 11px;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
}
.crud-view-btn:hover {
color: var(--text);
}
.crud-view-btn.active {
background: #ffffff;
color: var(--accent);
font-weight: 650;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.crud-toggle-switch-btn {
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 28px;
padding: 3px 12px 3px 6px;
border-radius: 999px;
border: 1px solid var(--line-strong);
background: #ffffff;
color: var(--muted);
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
user-select: none;
}
.crud-toggle-switch-btn:hover {
border-color: var(--accent);
color: var(--text);
background: #fafafa;
}
.crud-toggle-switch-btn.active {
border-color: rgba(13, 148, 136, 0.4);
background: rgba(13, 148, 136, 0.08);
color: var(--accent);
}
.crud-toggle-switch-btn .switch-track {
position: relative;
display: inline-block;
width: 28px;
height: 16px;
background: #cbd5e1;
border-radius: 999px;
transition: background-color 0.2s ease;
flex-shrink: 0;
}
.crud-toggle-switch-btn.active .switch-track {
background: var(--accent, #0d9488);
}
.crud-toggle-switch-btn .switch-knob {
position: absolute;
top: 2px;
left: 2px;
width: 12px;
height: 12px;
background: #ffffff;
border-radius: 50%;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.crud-toggle-switch-btn.active .switch-knob {
transform: translateX(12px);
}
.crud-toggle-switch-btn .switch-label {
display: inline-flex;
align-items: center;
gap: 4px;
}
.diagram-header p {
margin: 5px 0 0;
color: var(--muted);
font-size: 12px;
}
#resultCount {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 700;
padding: 1px 7px;
min-width: auto;
height: auto;
border-radius: 999px;
background: #e2e8f0;
color: #334155;
font-family: var(--font-mono, ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace);
}
.results-list {
min-height: 0;
height: auto;
overflow-x: hidden;
overflow-y: auto;
padding: 8px;
background: #f8fafc;
}
.result-actions {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
}
.result-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 5px;
border: 1px solid var(--line);
background: #ffffff;
cursor: pointer;
color: #475569;
position: relative;
padding: 0;
transition: all 0.12s ease;
}
.result-toggle:hover {
background: #f1f5f9;
color: #0f172a;
border-color: #94a3b8;
}
.result-toggle input[type="checkbox"],
.result-toggle input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
margin: 0;
pointer-events: none;
}
.result-toggle:has(input:checked),
.result-toggle.is-active {
background: #f0fdfa;
color: #0f766e;
border-color: #0f766e;
box-shadow: 0 0 0 1px #0f766e;
}
/* ========================================================
OPTION 2: COMPACT IDE CARD (Standard across all modes)
======================================================== */
.compact-card,
.result-item {
display: block;
width: 100%;
min-width: 0;
margin-bottom: 5px;
border: 1px solid #e2e8f0;
border-radius: 5px;
background: #ffffff;
padding: 0;
text-align: left;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
transition: border-color 0.1s ease, box-shadow 0.1s ease;
contain: content;
cursor: pointer;
overflow: hidden;
font-family: inherit;
font-size: inherit;
line-height: inherit;
color: inherit;
box-sizing: border-box;
}
.compact-card:hover,
.result-item:hover {
border-color: #94a3b8;
box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.compact-card.active,
.result-item.active {
border-color: #0f766e;
border-left: 3.5px solid #0f766e;
box-shadow: 0 2px 6px rgba(15, 118, 110, 0.08);
}
/* Card Head (Single Compact Bar) */
.compact-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 7px 9px;
gap: 8px;
background: #ffffff;
width: 100%;
box-sizing: border-box;
}
.compact-card.active .compact-head,
.result-item.active .compact-head {
background: linear-gradient(90deg, #f0fdfa 0%, #ffffff 50%);
}
.compact-left {
display: flex;
align-items: center;
gap: 6px;
min-width: 0;
overflow: hidden;
}
.tree-connector {
display: inline-block;
white-space: pre;
flex-shrink: 0;
color: #94a3b8;
font-family: var(--font-mono, ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace);
font-weight: 700;
font-size: 11px;
line-height: 1;
}
.compact-icon {
width: 14px;
height: 14px;
flex-shrink: 0;
color: #64748b;
}
.compact-card.active .compact-icon,
.result-item.active .compact-icon {
color: #0f766e;
}
.compact-name,
.result-title,
.result-title-text {
font-family: var(--font-mono, ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace);
font-size: 11.5px;
font-weight: 650;
color: #0f172a;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.35;
}
.compact-card.active .compact-name,
.result-item.active .compact-name,
.compact-card.active .result-title,
.result-item.active .result-title,
.compact-card.active .result-title-text,
.result-item.active .result-title-text {
color: #0f766e;
font-weight: 750;
}
.compact-right,
.result-meta {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
margin: 0;
padding: 0;
}
/* Micro badges */
.mbadge,
.badge {
display: inline-flex;
align-items: center;
font-size: 9.5px;
font-weight: 600;
padding: 1px 4.5px;
border-radius: 3px;
line-height: 1.3;
white-space: nowrap;
background: #f1f5f9;
color: #64748b;
border: 1px solid #e2e8f0;
}
.mbadge.dim { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }
.mbadge.pk, .badge.pk, .badge.success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.mbadge.fk, .badge.fk, .badge.accent { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.mbadge.trg, .badge.trg, .badge.warning { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
.mbadge.child, .badge.child { background: #f0fdf4; color: #0284c7; border: 1px solid #bae6fd; }
.mbadge.view, .badge.view { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; font-weight: 750; }
.result-limit {
margin: 8px 6px 12px;
color: var(--muted);
font-size: 12px;
line-height: 1.4;
}
.result-empty {
display: grid;
gap: 4px;
margin: 8px;
border: 1px dashed var(--line-strong);
border-radius: 8px;
background: #ffffff;
color: var(--muted);
padding: 14px;
}
.result-empty strong {
color: var(--text);
}
.db-binding {
margin: 2px 0;
line-height: 1.5;
white-space: nowrap;
}
/* Table Usage Inspection Box (When toggled on) */
.compact-usage-box,
.result-db-ops {
padding: 5px 9px 7px 9px;
background: #f8fafc;
border-top: 1px solid #f1f5f9;
width: 100%;
margin: 0;
box-sizing: border-box;
}
.compact-card.active .compact-usage-box,
.result-item.active .result-db-ops {
background: #fcfefe;
border-top-color: #ccfbf1;
}
.usage-header-lbl,
.result-db-caption {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 3px;
color: #94a3b8;
font-size: 9px;
font-weight: 750;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.usage-row,
.result-db-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
padding: 2px 0;
font-size: 10.5px;
line-height: 1.4;
}
.usage-row:not(:last-child),
.result-db-row:not(:last-child) {
border-bottom: 1px dashed #e2e8f0;
}
.usage-row .db-op:first-of-type,
.result-db-row .db-op:first-of-type,
.usage-row .op-pill:first-of-type {
margin-left: auto;
}
.usage-tbl-name,
.db-op-table {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-family: var(--font-mono, ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace);
font-size: 10.5px;
font-weight: 600;
color: #1e293b;
display: flex;
align-items: center;
gap: 4px;
}
.db-op-table-jump {
cursor: zoom-in;
text-decoration: underline;
text-decoration-color: transparent;
text-decoration-style: dotted;
text-underline-offset: 2px;
}
.db-op-table-jump:hover {
color: var(--accent, #0f766e);
text-decoration-color: currentColor;
}
.usage-ops {
display: flex;
align-items: center;
gap: 3px;
flex-shrink: 0;
}
.op-pill,
.db-op {
display: inline-flex;
align-items: center;
height: auto;
line-height: 1.3;
border-radius: 2.5px;
padding: 0.5px 3.5px;
font-size: 8.5px;
font-weight: 700;
letter-spacing: 0.02em;
text-transform: uppercase;
}
.via-indicator,
.db-op-via-icon {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 9.5px;
font-weight: 600;
padding: 0 3px;
border-radius: 2px;
background: #e0f2fe;
color: #0284c7;
line-height: 1.2;
}
.via-indicator.subprocess {
background: #e0f2fe;
color: #0284c7;
}
.db-op-via-icon.via-parallel {
background: #ffedd5;
color: #c2410c;
}
.via-indicator.parallel {
background: #ede9fe;
color: #7c3aed;
}
.db-op-via-icon.via-bre {
background: #fce7f3;
color: #db2777;
}
.via-indicator.bre {
background: #fef3c7;
color: #d97706;
}
.db-op-via {
display: inline-flex;
align-items: center;
min-height: 16px;
border-radius: 3px;
padding: 0 5px;
background: #eef2ff;
color: #4f46e5;
font-size: 9.5px;
font-weight: 700;
}
.zbo-trace-summary {
flex-basis: 100%;
color: var(--muted);
font-size: 11px;
line-height: 1.35;
overflow-wrap: anywhere;
}
.op-pill.select, .db-op.op-select { background: #e0f2fe; color: #0369a1; }
.op-pill.insert, .db-op.op-insert { background: #dcfce7; color: #15803d; }
.op-pill.update, .db-op.op-update { background: #fef3c7; color: #b45309; }
.op-pill.delete, .db-op.op-delete { background: #fee2e2; color: #b91c1c; }
.op-pill.upsert, .db-op.op-upsert { background: #f3e8ff; color: #7e22ce; }
.op-pill.call, .db-op.op-call { background: #f1f5f9; color: #475569; }
.db-op.op-mutation { background: var(--surface-2); color: var(--muted); }
.badge.child {
background: rgba(14, 165, 233, 0.12);
color: #0ea5e9;
font-weight: 600;
}
.diagram-actions {
display: inline-flex;
align-items: center;
gap: 8px;
}
.diagram-actions button {
height: 34px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: #ffffff;
padding: 0 12px;
}
.zoom-controls {
display: inline-flex;
align-items: center;
gap: 2px;
height: 34px;
padding: 0 4px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: #ffffff;
}
.diagram-actions .zoom-controls button {
width: 26px;
height: 26px;
padding: 0;
border: 0;
border-radius: 6px;
background: transparent;
color: var(--text);
font-size: 16px;
line-height: 1;
}
.diagram-actions .zoom-controls button:hover {
background: var(--surface-2);
}
#zoomLabel {
min-width: 42px;
text-align: center;
color: var(--muted);
font-size: 12px;
font-variant-numeric: tabular-nums;
}
.inline-check {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 34px;
color: var(--muted);
font-size: 12px;
}
.diagram-pane {
position: relative;
}
/* Floating Diagram Toolbar (Search + Quick Toggles) */
.diagram-floating-toolbar {
position: absolute;
top: 82px;
left: 14px;
z-index: 40;
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
max-width: calc(100% - 28px);
pointer-events: none;
}
.diagram-floating-toolbar > * {
pointer-events: auto;
}
/* Floating Diagram Search Controls Overlay */
.diagram-search-overlay {
display: flex;
align-items: center;
gap: 6px;
background: #ffffff;
border: 1px solid var(--line-strong, #cbd5e1);
border-radius: 8px;
padding: 5px 8px;
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
font-family: inherit;
font-size: 12px;
user-select: none;
}
/* Floating Diagram Toggles Bar */
.diagram-floating-toggles {
display: flex;
align-items: center;
gap: 5px;
flex-wrap: wrap;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(8px);
border: 1px solid var(--line-strong, #cbd5e1);
border-radius: 8px;
padding: 5px 7px;
box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.diagram-floating-toggles:empty {
display: none !important;
}
.diagram-toggle-chip {
display: inline-flex;
align-items: center;
gap: 4px;
height: 24px;
padding: 0 9px;
border-radius: 999px;
border: 1px solid var(--line, #e2e8f0);
background: var(--surface-2, #f8fafc);
color: var(--muted, #64748b);
font-size: 11px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s ease;
user-select: none;
white-space: nowrap;
}
.diagram-toggle-chip:hover {
border-color: #94a3b8;
color: #1e293b;
background: #ffffff;
}
.diagram-toggle-chip.active {
border-color: var(--accent, #0d9488);
background: #e6f4f1;
color: var(--accent, #0d9488);
font-weight: 650;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.diagram-toggle-chip[data-toggle="showBreNodesZoral"].active {
border-color: #ec4899;
background: #fdf2f8;
color: #be185d;
}
.diagram-toggle-chip[data-toggle="showParallelNodesZoral"].active {
border-color: #f59e0b;
background: #fef3c7;
color: #b45309;
}
.diagram-search-select {
border: 1px solid #cbd5e1;
border-radius: 5px;
background: #f8fafc;
padding: 4px 8px;
font-size: 12px;
font-weight: 700;
color: #334155;
cursor: pointer;
outline: none;
height: 28px;
}
.diagram-search-select:hover,
.diagram-search-select:focus {
background: #ffffff;
border-color: #94a3b8;
}
.diagram-search-input-wrapper {
position: relative;
display: flex;
align-items: center;
}
.diagram-search-icon {
position: absolute;
left: 9px;
font-size: 12px;
color: #64748b;
pointer-events: none;
z-index: 2;
line-height: 1;
}
.diagram-search-input {
box-sizing: border-box;
border: 1px solid #cbd5e1;
border-radius: 5px;
padding: 4px 22px 4px 28px;
font-size: 12px;
color: #0f172a;
width: 175px;
height: 28px;
outline: none;
transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.diagram-search-input:focus {
width: 220px;
border-color: #2563eb;
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.diagram-search-clear {
position: absolute;
right: 4px;
background: none;
border: none;
color: #94a3b8;
cursor: pointer;
font-size: 12px;
padding: 2px 4px;
line-height: 1;
border-radius: 4px;
}
.diagram-search-clear:hover {
color: #ef4444;
background: #fee2e2;
}
.diagram-match-badge {
font-size: 11px;
font-weight: 700;
padding: 3px 8px;
border-radius: 12px;
background: #e0e7ff;
color: #3730a3;
white-space: nowrap;
}
.diagram-match-badge.no-match {
background: #f1f5f9;
color: #64748b;
}
.diagram-search-nav {
display: flex;
align-items: center;
gap: 3px;
margin-left: 2px;
}
.diagram-search-nav button {
min-width: 22px;
height: 24px;
border: 1px solid #cbd5e1;
border-radius: 4px;
background: #f8fafc;
color: #334155;
font-size: 11px;
font-weight: 700;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 4px;
}
.diagram-search-nav button:hover:not(:disabled) {
background: #ffffff;
border-color: #2563eb;
color: #2563eb;
}
.diagram-search-nav button:disabled {
opacity: 0.4;
cursor: default;
}
.diagram-search-counter {
font-size: 11px;
font-weight: 600;
color: #475569;
min-width: 28px;
text-align: center;
}
/* Diagram Searching Visual Dimming & Highlighting */
.diagram-canvas.diagram-searching .node-group,
.diagram-canvas.diagram-searching .zbo-flow-node,
.diagram-canvas.diagram-searching .er-table-node,
.diagram-canvas.diagram-searching .diagram-edge,
.diagram-canvas.diagram-searching .zbo-flow-edge,
.diagram-canvas.diagram-searching path.edge-path,
.diagram-canvas.diagram-searching g.edge-group {
opacity: 0.35 !important;
filter: grayscale(40%) !important;
transition: opacity 0.2s ease, filter 0.2s ease;
}
/* Matched Nodes Stay 100% Opacity & Glowing Highlight */
.diagram-canvas.diagram-searching .node-group.diagram-node-matched,
.diagram-canvas.diagram-searching .zbo-flow-node.diagram-node-matched,
.diagram-canvas.diagram-searching .er-table-node.diagram-node-matched {
opacity: 1 !important;
filter: none !important;
}
.diagram-canvas.diagram-searching .node-group.diagram-node-matched .node-shape,
.diagram-canvas.diagram-searching .zbo-flow-node.diagram-node-matched rect,
.diagram-canvas.diagram-searching .zbo-flow-node.diagram-node-matched polygon,
.diagram-canvas.diagram-searching .er-table-node.diagram-node-matched rect {
stroke: #2563eb !important;
stroke-width: 3.2px !important;
filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.7)) !important;
}
/* Active Nav Node Focus Pulse */
.diagram-canvas.diagram-searching .node-group.diagram-node-focused .node-shape,
.diagram-canvas.diagram-searching .zbo-flow-node.diagram-node-focused rect,
.diagram-canvas.diagram-searching .zbo-flow-node.diagram-node-focused polygon,
.diagram-canvas.diagram-searching .er-table-node.diagram-node-focused rect {
stroke: #d97706 !important;
stroke-width: 4px !important;
filter: drop-shadow(0 0 14px rgba(217, 119, 6, 0.95)) !important;
}
/* Connected edges to matched nodes keep higher visibility */
.diagram-canvas.diagram-searching .diagram-edge.diagram-edge-connected,
.diagram-canvas.diagram-searching .zbo-flow-edge.diagram-edge-connected,
.diagram-canvas.diagram-searching g.edge-group.diagram-edge-connected {
opacity: 0.85 !important;
filter: none !important;
}
.diagram-canvas {
position: relative;
height: calc(100vh - 135px);
overflow: auto;
cursor: grab;
background:
linear-gradient(#edf1f4 1px, transparent 1px),
linear-gradient(90deg, #edf1f4 1px, transparent 1px);
background-color: #fbfcfd;
background-size: 24px 24px;
}
.diagram-canvas.panning {
cursor: grabbing;
user-select: none;
}
.diagram-canvas.panning * {
cursor: grabbing;
}
body.diagram-panning,
body.diagram-panning * {
user-select: none;
}
body.diagram-panning {
cursor: grabbing;
}
.diagram-svg {
display: block;
min-width: 100%;
min-height: 100%;
}
.diagram-selectable,
.diagram-selectable * {
user-select: text;
}
.diagram-code-panel {
position: relative;
width: max-content;
min-width: 100%;
min-height: 100%;
background: #0f172a;
}
.diagram-copy-btn {
position: sticky;
top: 12px;
float: right;
z-index: 2;
min-width: 64px;
min-height: 30px;
margin: 12px 14px 0 0;
border: 1px solid rgba(203, 213, 225, 0.35);
border-radius: 8px;
background: rgba(15, 23, 42, 0.92);
color: #e6edf5;
font-size: 12px;
}
.diagram-code-block {
width: max-content;
min-width: 100%;
max-height: none;
min-height: 100%;
margin: 0;
overflow: visible;
border: 0;
border-radius: 0;
background: #0f172a;
color: #e6edf5;
padding: 80px 26px 22px;
white-space: pre;
word-break: normal;
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 12px;
line-height: 1.55;
}
.sql-keyword {
color: #7dd3fc;
font-weight: 750;
}
.sql-string {
color: #86efac;
}
.sql-number {
color: #fbbf24;
}
.sql-comment {
color: #94a3b8;
font-style: italic;
}
.enum-diagram-table {
display: grid;
grid-template-rows: auto minmax(0, 1fr);
height: 100%;
min-height: 100%;
background: var(--surface);
}
.enum-table-toolbar {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
padding: 12px 14px;
border-bottom: 1px solid var(--line);
background: rgba(255, 255, 255, 0.92);
}
#enumTableFilter {
flex: 1;
min-width: 180px;
height: 34px;
border: 1px solid var(--line-strong);
border-radius: 8px;
padding: 0 10px;
}
.enum-export-btn {
display: inline-flex;
align-items: center;
gap: 5px;
min-height: 32px;
padding: 0 12px;
border: 1px solid #10b981;
border-radius: 8px;
background: #ecfdf5;
color: #047857;
font-size: 11.5px;
font-weight: 650;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s ease;
}
.enum-export-btn:hover {
background: #10b981;
color: #ffffff;
border-color: #059669;
box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}
.enum-pagination {
display: inline-flex;
align-items: center;
gap: 8px;
color: var(--muted);
font-size: 12px;
white-space: nowrap;
}
.enum-pagination button {
min-width: 34px;
min-height: 30px;
border: 1px solid var(--line-strong);
border-radius: 8px;
background: var(--surface);
color: var(--text);
}
.enum-pagination button:disabled {
opacity: 0.45;
}
.enum-table-scroll {
min-height: 0;
overflow: auto;
}
.enum-data-table {
width: 100%;
border-collapse: collapse;
background: var(--surface);
font-size: 12px;
}
.enum-data-table th,
.enum-data-table td {
border-bottom: 1px solid var(--line);
padding: 8px 10px;
text-align: left;
vertical-align: top;
white-space: nowrap;
}
.enum-data-table .enum-row-number {
position: sticky;
left: 0;
z-index: 1;
width: 54px;
min-width: 54px;
background: #f8fafc;
color: var(--muted);
text-align: right;
font-variant-numeric: tabular-nums;
}
.enum-data-table th {
position: sticky;
top: 0;
z-index: 1;
background: #f8fafc;
color: var(--muted);
font-weight: 700;
}
.enum-data-table th.enum-row-number {
z-index: 2;
}
.enum-data-table th button {
border: 0;
background: transparent;
color: inherit;
font: inherit;
font-weight: inherit;
padding: 0;
text-align: left;
}
.empty-state {
display: grid;
height: 100%;
place-items: center;
color: var(--muted);
}
.zbo-map {
display: grid;
gap: 12px;
min-height: 100%;
padding: 16px;
cursor: default;
}
.zbo-map-section {
border: 1px solid var(--line);
border-radius: 8px;
background: #ffffff;
padding: 14px;
box-shadow: var(--shadow);
}
.zbo-map-section h3 {
margin: 0 0 10px;
font-size: 14px;
}
.zbo-stat-grid {
display: grid;
grid-template-columns: repeat(4, minmax(96px, 1fr));
gap: 8px;
}
.zbo-stat {
display: grid;
gap: 4px;
min-height: 58px;
border: 1px solid var(--line);
border-radius: 8px;
background: var(--surface-2);
padding: 9px;
}
.zbo-stat span {
color: var(--muted);
font-size: 12px;
}
.zbo-stat strong {
font-size: 20px;
line-height: 1;
}
.zbo-chip-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.zbo-chip {
display: inline-flex;
max-width: 100%;
min-height: 24px;
align-items: center;
border: 1px solid var(--line);
border-radius: 999px;
background: #f8fafc;
color: var(--text);
padding: 3px 8px;
font-size: 12px;
overflow-wrap: anywhere;
}
.zbo-chip-link {
color: var(--accent-2);
text-decoration: underline;
}
.zbo-map-table {
background: #ffffff;
}
.zbo-flow-svg {
background:
linear-gradient(#edf1f4 1px, transparent 1px),
linear-gradient(90deg, #edf1f4 1px, transparent 1px);
background-color: #fbfcfd;
background-size: 24px 24px;
}
.zbo-flow-edge {
cursor: pointer;
}
.zbo-flow-edge .zbo-edge-line {
fill: none;
stroke: #8090a0;
stroke-width: 1.8;
pointer-events: none;
}
.zbo-flow-edge.is-trigger .zbo-edge-line {
stroke-dasharray: 4, 4;
}
.zbo-flow-edge .zbo-edge-hit {
fill: none;
stroke: transparent;
stroke-width: 14;
pointer-events: stroke;
}
.zbo-flow-edge:hover .zbo-edge-line {
stroke: var(--accent-2);
}
.zbo-flow-edge.edge-outbound .zbo-edge-line {
stroke: #2563eb;
stroke-width: 3.4;
}
.zbo-flow-edge.edge-inbound .zbo-edge-line {
stroke: #0f766e;
stroke-width: 3.4;
}
.zbo-flow-edge.selected .zbo-edge-line {
stroke: var(--accent-2);
stroke-width: 3.4;
}
.zbo-flow-edge text {
fill: #475467;
font-size: 10px;
font-weight: 700;
paint-order: stroke;
stroke: #ffffff;
stroke-width: 4px;
}
.zbo-flow-node rect {
fill: #ffffff;
stroke: #748295;
stroke-width: 1.4;
filter: drop-shadow(0 1px 1px rgba(16, 24, 40, 0.08));
}
.zbo-flow-start rect {
fill: #16a34a;
stroke: #15803d;
}
.zbo-flow-start .zbo-flow-label {
fill: #ffffff;
}
.zbo-flow-trigger rect {
fill: #fff7e8;
stroke: var(--warning);
}
.zbo-flow-gql rect {
fill: #f3effd;
stroke: #7c3aed;
}
.zbo-flow-zbo-caller rect {
fill: #f8f5ff;
stroke: #4c1d95;
stroke-width: 2.4;
filter: drop-shadow(0 2px 4px rgba(76, 29, 149, 0.18));
}
.zbo-flow-workflow rect {
fill: #eaf2ff;
stroke: var(--accent-2);
}
.zbo-flow-condition polygon {
fill: #fef3c7;
stroke: #d97706;
stroke-width: 1.4;
filter: drop-shadow(0 1px 1px rgba(16, 24, 40, 0.08));
}
.zbo-flow-navigate rect {
fill: #e6f7f4;
stroke: var(--accent);
}
.zbo-screen-icon rect {
fill: none;
stroke: var(--accent);
stroke-width: 1.4;
}
.zbo-screen-icon path {
fill: none;
stroke: var(--accent);
stroke-width: 1.4;
stroke-linecap: round;
}
.zbo-edge-condition-in .zbo-edge-line {
stroke: #d97706;
stroke-dasharray: 5 3;
}
.zbo-edge-navigate .zbo-edge-line {
stroke: var(--accent);
}
.zbo-flow-node {
cursor: pointer;
}
.diagram-drag-enabled .zbo-flow-node,
.diagram-drag-enabled .node-group {
cursor: grab;
}
.zbo-flow-node.dragging,
.node-group.dragging {
cursor: grabbing;
opacity: 0.85;
}
.zbo-flow-node:hover rect,
.zbo-flow-node:hover polygon,
.zbo-flow-node.active rect,
.zbo-flow-node.active polygon {
stroke: var(--accent-2);
stroke-width: 2.6;
}
.db-more {
fill: var(--muted);
font-style: italic;
}
.zbo-flow-label {
fill: var(--text);
font-size: 12px;
font-weight: 700;
pointer-events: none;
}
.zbo-flow-subtitle {
fill: var(--muted);
font-size: 10px;
pointer-events: none;
}
.zbo-flow-event {
fill: var(--accent-2);
font-size: 9px;
font-weight: 800;
text-transform: uppercase;
pointer-events: none;
}
.zbo-user-icon circle {
fill: var(--warning);
}
.zbo-user-icon path {
fill: none;
stroke: var(--warning);
stroke-width: 2;
stroke-linecap: round;
}
.artifact-list {
display: grid;
gap: 6px;
}
.artifact-row {
display: grid;
grid-template-columns: 68px 1fr;
gap: 8px;
align-items: start;
min-width: 0;
padding: 6px 0;
border-bottom: 1px solid #eef1f4;
overflow-wrap: anywhere;
}
.edge-group {
cursor: pointer;
}
.edge-hit {
fill: none;
stroke: transparent;
stroke-width: 14;
pointer-events: stroke;
}
.edge-line {
stroke: #8090a0;
stroke-width: 2;
fill: none;
pointer-events: none;
}
.edge-source-dot {
fill: #506070;
stroke: #ffffff;
stroke-width: 1.5;
pointer-events: none;
}
.edge-overlay.edge-outbound .edge-source-dot,
.edge-overlay.edge-selected .edge-source-dot {
fill: var(--accent-2);
}
.edge-overlay.edge-inbound .edge-source-dot {
fill: #0f766e;
}
.edge-arrow {
fill: #8090a0;
pointer-events: none;
}
.edge-overlay.edge-outbound .edge-arrow,
.edge-overlay.edge-selected .edge-arrow {
fill: var(--accent-2);
}
.edge-overlay.edge-inbound .edge-arrow {
fill: #0f766e;
}
.edge-group:hover .edge-line {
stroke: var(--accent-2);
}
.edge-inbound,
.edge-outbound {
stroke-width: 4;
}
.edge-inbound {
stroke: #0f766e;
}
.edge-outbound {
stroke: #2563eb;
}
.edge-selected {
stroke: var(--accent-2);
stroke-width: 3.5;
}
.edge-async {
stroke-dasharray: 7 5;
}
.edge-label-group {
pointer-events: none;
}
.edge-label-layer {
pointer-events: none;
}
.edge-overlay-layer {
pointer-events: none;
}
.edge-label-bg {
fill: #ffffff;
stroke: var(--line-strong);
stroke-width: 1;
pointer-events: all;
cursor: pointer;
}
.edge-label-bg.selected {
fill: #eef4ff;
stroke: var(--accent-2);
}
.edge-label {
fill: #344054;
font-size: 11px;
font-weight: 600;
pointer-events: none;
}
.node-shape {
fill: #ffffff;
stroke: #748295;
stroke-width: 1.5;
filter: drop-shadow(0 1px 1px rgba(16, 24, 40, 0.08));
}
.node-group {
cursor: pointer;
}
.node-group:hover .node-shape,
.node-group.active .node-shape {
stroke: var(--accent-2);
stroke-width: 2.5;
}
.node-start .node-shape {
fill: #e7f8ef;
stroke: var(--success);
}
.node-end .node-shape {
fill: #fff1f0;
stroke: var(--danger);
}
.node-condition .node-shape {
fill: #fff7e8;
stroke: var(--warning);
}
.node-parameters .node-shape {
fill: #eff6ff;
stroke: var(--accent-2);
}
.node-async .node-shape {
stroke-dasharray: 5 3;
}
/* BPMN-style event nodes (event/gateway, event/process, event/process/failed).
Neutral by design — the success/failed colour comes from selection / live-API
highlighting, not from the static node. The ✓ / ✗ glyph distinguishes them. */
.node-event-gateway .node-shape,
.node-event-process .node-shape,
.node-event-failed .node-shape {
fill: #ffffff;
stroke: #748295;
}
.node-event-icon {
stroke: #475569;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}
.node-event-caption {
font-size: 11px;
font-weight: 600;
}
.node-async-tag {
fill: var(--accent-2);
font-size: 9px;
font-weight: 700;
letter-spacing: 0.06em;
pointer-events: none;
}
.node-label {
fill: var(--text);
font-size: 12px;
font-weight: 650;
pointer-events: none;
}
.node-type {
fill: var(--muted);
font-size: 10px;
pointer-events: none;
}
.node-db-icon-group {
cursor: pointer;
}
.node-db-connector {
fill: none;
stroke: var(--accent);
stroke-width: 1.2;
stroke-dasharray: 2 2;
}
.node-db-cyl-body {
fill: #d3ece7;
stroke: var(--accent);
stroke-width: 1;
}
.node-db-cyl-top {
fill: #b7e0d8;
stroke: var(--accent);
stroke-width: 1;
}
.node-db-cyl-band {
fill: none;
stroke: var(--accent);
stroke-width: 0.8;
opacity: 0.6;
}
.node-db-icon-group:hover .node-db-cyl-body {
fill: #c2e4dd;
}
.node-db-cyl-body.indirect {
fill: #e0e7ff;
stroke: #4f46e5;
}
.node-db-cyl-top.indirect {
fill: #c7d2fe;
stroke: #4f46e5;
}
.node-db-cyl-band.indirect {
stroke: #4f46e5;
}
.node-db-icon-group:hover .node-db-cyl-body.indirect {
fill: #c7d2fe;
}
.node-db-jump-arrow {
stroke: #4f46e5;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}
.node-db-list {
font-size: 10px;
font-weight: 600;
pointer-events: none;
}
.db-table-name {
fill: #334155;
}
.db-op-code {
font-weight: 800;
}
.db-via-marker {
fill: #4f46e5;
font-weight: 900;
}
.db-op-code.op-select {
fill: #2547c2;
}
.db-op-code.op-insert {
fill: var(--success);
}
.db-op-code.op-update {
fill: var(--warning);
}
.db-op-code.op-delete {
fill: var(--danger);
}
.db-op-code.op-upsert {
fill: var(--accent);
}
.db-op-code.op-mutation {
fill: var(--muted);
}
.node-blob-icon-group {
cursor: pointer;
}
.node-blob-connector {
fill: none;
stroke: #2563eb;
stroke-width: 1.2;
stroke-dasharray: 2 2;
}
.node-blob-cloud-body {
fill: #eff6ff;
stroke: #2563eb;
stroke-width: 1.2;
transition: fill 0.15s ease;
}
.node-blob-icon-group:hover .node-blob-cloud-body {
fill: #dbeafe;
}
.node-blob-list {
font-size: 10px;
font-weight: 600;
pointer-events: none;
}
.blob-op-name {
fill: #1e3a8a;
}
.tabs {
display: flex;
min-height: 44px;
border-bottom: 1px solid var(--line);
}
.tab {
flex: 1;
border: 0;
border-right: 1px solid var(--line);
background: #ffffff;
color: var(--muted);
text-align: center;
white-space: nowrap;
}
.tab:last-child {
border-right: 0;
}
.tab.active {
color: var(--text);
box-shadow: inset 0 -2px 0 var(--accent);
}
.detail-content {
min-height: 0;
height: auto;
overflow: auto;
padding: 14px;
}
.loading-overlay {
position: fixed;
inset: 0;
z-index: 20;
display: grid;
place-items: center;
background: rgba(15, 23, 42, 0.42);
}
.loading-overlay[hidden] {
display: none !important;
}
.loading-panel {
display: grid;
justify-items: center;
gap: 10px;
width: min(360px, calc(100vw - 32px));
border-radius: 8px;
background: #ffffff;
padding: 22px;
box-shadow: 0 18px 44px rgba(16, 24, 40, 0.22);
text-align: center;
}
.loading-panel p {
margin: 0;
color: var(--muted);
line-height: 1.45;
}
/* Live fetch progress bars (per page, stacked for Load all) */
.loading-progress {
width: 100%;
display: flex;
flex-direction: column;
gap: 6px;
max-height: 200px;
overflow-y: auto;
margin-top: 2px;
}
.loading-progress[hidden] { display: none; }
.loading-progress .lp-row {
display: flex;
align-items: center;
gap: 8px;
}
.loading-progress .lp-label {
font-size: 10px;
font-weight: 700;
color: #475569;
min-width: 48px;
text-align: left;
white-space: nowrap;
}
.loading-progress .lp-bar {
flex: 1;
height: 8px;
background: #e2e8f0;
border-radius: 999px;
overflow: hidden;
}
.loading-progress .lp-bar-fill {
height: 100%;
background: linear-gradient(90deg, #2563eb, #3b82f6);
border-radius: 999px;
transition: width 0.25s ease;
}
.loading-progress .lp-pct {
font-size: 10px;
color: #475569;
font-variant-numeric: tabular-nums;
min-width: 64px;
text-align: right;
white-space: nowrap;
}
.loading-progress .lp-meta {
font-size: 10px;
color: #64748b;
text-align: center;
margin-top: 2px;
}
.spinner {
width: 32px;
height: 32px;
border: 3px solid var(--line);
border-top-color: var(--accent-2);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.detail-section {
margin-bottom: 18px;
}
.detail-section h3 {
margin: 0 0 8px;
font-size: 14px;
}
.kv {
display: grid;
grid-template-columns: 120px 1fr;
gap: 8px;
padding: 6px 0;
border-bottom: 1px solid #eef1f4;
}
.kv span:first-child {
color: var(--muted);
}
.code-block {
max-height: 360px;
overflow: auto;
border: 1px solid var(--line);
border-radius: 8px;
background: #101828;
color: #e6edf5;
padding: 12px;
white-space: pre-wrap;
word-break: break-word;
font-family: "Cascadia Mono", Consolas, monospace;
font-size: 12px;
line-height: 1.45;
}
.table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
}
.table-scroll {
max-width: 100%;
overflow-x: auto;
}
.table th,
.table td {
border-bottom: 1px solid var(--line);
padding: 7px 6px;
text-align: left;
vertical-align: top;
}
.table th {
color: var(--muted);
font-weight: 650;
}
.operation-row-indirect {
background: #f8faff;
}
.op-usage-badge {
display: inline-flex;
align-items: center;
height: 20px;
border-radius: 999px;
padding: 0 8px;
font-size: 11px;
font-weight: 700;
}
.op-usage-badge.direct {
background: #eef8f5;
color: var(--accent);
}
.op-usage-badge.indirect {
background: #eef2ff;
color: #4f46e5;
}
.op-usage-badge.parallel {
background: #ffedd5;
color: #c2410c;
}
.op-usage-badge.bre {
background: #fce7f3;
color: #be185d;
}
.operation-via {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 4px;
min-width: 150px;
}
.link-button {
border: 0;
background: transparent;
color: var(--accent-2);
padding: 0;
text-align: left;
text-decoration: underline;
}
.workflow-link {
color: var(--accent-2);
text-decoration: underline;
}
.small-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.muted {
color: var(--muted);
}
.warning-text {
color: var(--warning);
}
.sr-only {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
}
.db-submode-container {
display: flex;
align-items: center;
gap: 4px;
height: auto;
background: transparent;
padding: 0;
border: 0;
}
.db-submode-btn {
padding: 3px 8px;
font-size: 11px;
font-weight: 600;
border-radius: 4px;
border: 1px solid var(--line);
background: #ffffff;
color: #475569;
cursor: pointer;
transition: all 0.12s ease;
white-space: nowrap;
height: 22px;
min-width: auto;
display: inline-flex;
align-items: center;
justify-content: center;
}
.db-submode-btn.active {
background: #0f172a;
color: #ffffff;
border-color: #0f172a;
box-shadow: none;
}
.db-submode-btn:hover:not(.active) {
background: #f1f5f9;
color: #0f172a;
}
.db-er-card {
transition: border-color 0.15s ease, background-color 0.15s ease;
}
.table-select:focus {
border-color: var(--accent-2);
outline: none;
}
/* Floating Pane Toggles Dock */
.floating-toggles {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
display: flex;
gap: 8px;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(12px);
border: 1px solid var(--line-strong);
padding: 6px 8px;
border-radius: 999px;
box-shadow: 0 8px 32px rgba(16, 24, 40, 0.12);
z-index: 1000;
pointer-events: auto;
}
.floating-toggle {
position: relative;
width: 40px;
height: 40px;
border: none;
background: transparent;
color: #64748b;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s ease;
padding: 0;
top: auto;
left: auto;
right: auto;
bottom: auto;
transform: none;
box-shadow: none;
}
.floating-toggle:hover {
background: #f1f5f9;
color: #334155;
transform: translateY(-2px);
}
.floating-toggle.active {
background: #e0e7ff;
color: #4f46e5;
}
/* ZBO Callers in Zoral */
.zbo-caller-node rect {
fill: #f8f5ff;
stroke: #4c1d95;
stroke-width: 2.4px;
filter: drop-shadow(0 2px 4px rgba(76, 29, 149, 0.18));
}
.zbo-caller-node text {
fill: var(--text);
font-weight: bold;
}
/* Parallel Child Workflow Nodes in Zoral */
.parallel-child-node {
cursor: pointer;
}
.parallel-child-node rect.node-shape {
fill: #fffdf5;
stroke: #d97706;
stroke-width: 1.8px;
stroke-dasharray: 5 2.5;
filter: drop-shadow(0 2px 5px rgba(217, 119, 6, 0.15));
transition: stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}
.parallel-child-node:hover rect.node-shape {
stroke: #b45309;
stroke-width: 2.2px;
filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.28));
}
.parallel-child-node.active rect.node-shape {
stroke: #b45309;
stroke-width: 2.5px;
stroke-dasharray: none;
fill: #fef3c7;
filter: drop-shadow(0 4px 10px rgba(180, 83, 9, 0.35));
}
.parallel-child-node text.node-label {
fill: #78350f;
font-size: 11px;
font-weight: 600;
}
.edge-parallel {
stroke: #d97706 !important;
stroke-dasharray: 4 3;
stroke-width: 1.6px !important;
}
.edge-parallel:hover {
stroke: #b45309 !important;
stroke-width: 2.2px !important;
}
/* BRE Sub-workflow Nodes in Zoral */
.bre-child-node {
cursor: pointer;
}
.bre-child-node rect.node-shape {
fill: #fff5f7;
stroke: #f472b6;
stroke-width: 1.8px;
stroke-dasharray: 5 2.5;
filter: drop-shadow(0 2px 5px rgba(236, 72, 153, 0.16));
transition: stroke 0.15s ease, stroke-width 0.15s ease, filter 0.15s ease;
}
.bre-child-node:hover rect.node-shape {
stroke: #db2777;
stroke-width: 2.2px;
filter: drop-shadow(0 4px 8px rgba(219, 39, 119, 0.28));
}
.bre-child-node.active rect.node-shape {
stroke: #be185d;
stroke-width: 2.5px;
stroke-dasharray: none;
fill: #fce7f3;
filter: drop-shadow(0 4px 10px rgba(190, 24, 93, 0.35));
}
.bre-child-node text.node-label {
fill: #9d174d;
font-size: 11px;
font-weight: 600;
}
.edge-bre {
stroke: #ec4899 !important;
stroke-dasharray: 4 3;
stroke-width: 1.6px !important;
}
.edge-bre:hover {
stroke: #be185d !important;
stroke-width: 2.2px !important;
}
/* Glassmorphic Settings Modal */
.modal-overlay {
position: fixed;
inset: 0;
z-index: 1050;
display: flex;
align-items: center;
justify-content: center;
background: rgba(15, 23, 42, 0.45);
backdrop-filter: blur(8px);
opacity: 0;
pointer-events: none;
transition: opacity 0.2s ease;
}
.modal-overlay.active {
opacity: 1;
pointer-events: auto;
}
.modal-dialog {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.5);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
width: min(420px, calc(100vw - 32px));
border-radius: 16px;
padding: 24px;
transform: translateY(20px);
transition: transform 0.2s ease;
}
.modal-overlay.active .modal-dialog {
transform: translateY(0);
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 18px;
}
.modal-title {
font-size: 16px;
font-weight: 700;
color: var(--text);
margin: 0;
}
.modal-close {
border: none;
background: transparent;
font-size: 20px;
cursor: pointer;
color: var(--muted);
padding: 0;
line-height: 1;
transition: color 0.15s ease;
}
.modal-close:hover {
color: var(--text);
}
.settings-grid {
display: grid;
gap: 12px;
margin-bottom: 20px;
}
.settings-group-title {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--muted);
font-weight: 700;
margin-top: 8px;
margin-bottom: 4px;
}
.btn-copy-list {
background: var(--surface-2);
border: 1px solid var(--line);
color: var(--text);
padding: 4px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 600;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 4px;
transition: all 0.2s ease;
user-select: none;
}
.btn-copy-list:hover {
background: var(--surface-3);
border-color: var(--line-strong);
}
.btn-copy-list:active {
transform: scale(0.96);
}
.node-group.match-code .node-shape,
.zbo-flow-node.match-code rect,
.zbo-flow-node.match-code polygon {
stroke: #ff8f00 !important;
stroke-width: 5px !important;
filter: drop-shadow(0 0 10px rgba(255, 143, 0, 0.95)) !important;
animation: match-code-pulse 1.6s ease-in-out infinite;
}
@keyframes match-code-pulse {
0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 143, 0, 0.85)) !important; }
50% { filter: drop-shadow(0 0 14px rgba(255, 143, 0, 1)) !important; }
}
/* Search-hit highlight inside artifact code (schema/grid/query/plugin) */
.code-block mark.search-hit {
background: #ff8f00;
color: #0f172a;
border-radius: 2px;
padding: 0 1px;
font-weight: 700;
}
.artifact-details.artifact-hit {
box-shadow: 0 0 0 1px #ff8f00, 0 0 8px rgba(255, 143, 0, 0.45);
}
.artifact-code-wrap {
position: relative;
}
.artifact-code-wrap .code-block {
padding-top: 22px !important;
}
.artifact-copy-btn {
position: absolute;
top: 7px;
right: 10px;
z-index: 1;
border: 0;
background: rgba(15, 23, 42, 0.88);
color: #60a5fa;
cursor: pointer;
font-family: inherit;
font-size: 10px;
font-weight: 700;
line-height: 1.2;
padding: 3px 5px;
border-radius: 4px;
}
.artifact-copy-btn:hover {
color: #bfdbfe;
text-decoration: underline;
}
.artifact-copy-btn:disabled {
cursor: default;
opacity: 0.75;
text-decoration: none;
}
:root {
--gate-bg: #eef3f8;
}
body.index-locked {
overflow-y: auto;
}
body.index-locked > :not(.index-gate):not(script) {
visibility: hidden;
}
.index-gate {
position: fixed;
inset: 0;
z-index: 10000;
display: flex;
justify-content: center;
align-items: center;
padding: 24px 16px;
box-sizing: border-box;
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
background:
radial-gradient(circle at top left, rgba(37, 99, 235, 0.13), transparent 38%),
var(--gate-bg);
}
.index-gate[hidden] {
display: none;
}
.index-gate-card {
margin: auto;
width: min(460px, 100%);
max-width: 100%;
box-sizing: border-box;
padding: 32px;
border: 1px solid #cbd5e1;
border-radius: 18px;
background: #fff;
box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
}
.index-gate-mark {
width: 44px;
height: 44px;
}
.index-gate-kicker {
margin: 18px 0 4px;
color: #2563eb;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.index-gate h1 {
margin: 0;
color: #0f172a;
font-size: 26px;
}
.index-gate-copy,
.index-gate-note {
color: #64748b;
line-height: 1.55;
}
.index-gate-privacy {
display: grid;
gap: 4px;
margin-top: 16px;
padding: 12px 14px;
border: 1px solid #bbf7d0;
border-radius: 10px;
background: #f0fdf4;
color: #166534;
font-size: 13px;
line-height: 1.5;
}
.index-gate-privacy strong {
color: #14532d;
}
.index-gate-field {
display: grid;
gap: 7px;
margin-top: 18px;
color: #334155;
font-size: 13px;
font-weight: 700;
}
.index-gate-field input {
width: 100%;
min-height: 42px;
padding: 9px 11px;
border: 1px solid #cbd5e1;
border-radius: 9px;
background: #fff;
color: #0f172a;
}
.index-file-name {
margin-top: 7px;
color: #64748b;
font-size: 12px;
overflow-wrap: anywhere;
}
.index-gate-remember {
display: flex;
align-items: center;
gap: 8px;
margin: 14px 0;
color: #475569;
font-size: 13px;
}
.index-unlock {
width: 100%;
min-height: 43px;
border: 0;
border-radius: 9px;
background: #2563eb;
color: #fff;
font-weight: 800;
cursor: pointer;
}
.index-unlock:disabled {
cursor: wait;
opacity: 0.65;
}
.index-gate-status {
min-height: 20px;
margin-top: 12px;
color: #475569;
font-size: 13px;
}
.index-gate-status.error {
color: #b91c1c;
}
.index-gate-status.success {
color: #15803d;
}
@keyframes match-code-pulse {
0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 143, 0, 0.85)) !important; }
50% { filter: drop-shadow(0 0 14px rgba(255, 143, 0, 1)) !important; }
}
/* Search-hit highlight inside artifact code (schema/grid/query/plugin) */
.code-block mark.search-hit {
background: #ff8f00;
color: #0f172a;
border-radius: 2px;
padding: 0 1px;
font-weight: 700;
}
.artifact-details.artifact-hit {
box-shadow: 0 0 0 1px #ff8f00, 0 0 8px rgba(255, 143, 0, 0.45);
}
.artifact-code-wrap {
position: relative;
}
.artifact-code-wrap .code-block {
padding-top: 22px !important;
}
.artifact-copy-btn {
position: absolute;
top: 7px;
right: 10px;
z-index: 1;
border: 0;
background: rgba(15, 23, 42, 0.88);
color: #60a5fa;
cursor: pointer;
font-family: inherit;
font-size: 10px;
font-weight: 700;
line-height: 1.2;
padding: 3px 5px;
border-radius: 4px;
}
.artifact-copy-btn:hover {
color: #bfdbfe;
text-decoration: underline;
}
.artifact-copy-btn:disabled {
cursor: default;
opacity: 0.75;
text-decoration: none;
}
/* Small spinner inside buttons */
.spinner-small {
display: inline-block;
width: 14px;
height: 14px;
border: 2px solid rgba(255, 255, 255, 0.3);
border-top-color: #fff;
border-radius: 50%;
animation: spin 0.8s linear infinite;
vertical-align: middle;
margin-right: 6px;
}
/* SQL Code Blocks with Line Numbers */
.sql-code-block {
padding-left: 0 !important;
}
.code-line {
display: block;
position: relative;
padding-left: 3.8em;
min-height: 1.5em;
line-height: 1.5;
white-space: pre;
margin: 0;
}
.code-line::before {
content: attr(data-line-number);
position: absolute;
left: 0;
top: 0;
width: 2.8em;
text-align: right;
color: #64748b;
border-right: 1px solid #334155;
padding-right: 0.6em;
margin-right: 0.6em;
user-select: none;
pointer-events: none;
font-family: monospace;
}
/* Custom results header layout (2-row stack matching mockup) */
.results-pane .pane-header,
.results-header-custom {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;
min-height: auto;
padding: 10px 12px 8px 12px;
background: #f8fafc;
border-bottom: 1px solid var(--line);
user-select: none;
}
.results-top-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
width: 100%;
}
.results-title-group {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.results-title-group h1,
#resultsTitle {
margin: 0;
font-size: 13.5px;
font-weight: 750;
color: #0f172a;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.results-bottom-row {
display: flex;
align-items: center;
gap: 6px;
overflow-x: auto;
padding-bottom: 2px;
width: 100%;
}
.results-bottom-row::-webkit-scrollbar {
height: 3px;
}
.results-bottom-row::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 2px;
}
.results-pane .result-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border-radius: 5px;
border: 1px solid var(--line);
background: #ffffff;
cursor: pointer;
color: #475569;
position: relative;
padding: 0;
transition: all 0.12s ease;
}
.results-pane .result-toggle:hover {
background: #f1f5f9;
color: #0f172a;
border-color: #94a3b8;
}
.results-pane .result-toggle input[type="checkbox"],
.results-pane .result-toggle input {
position: absolute;
opacity: 0;
width: 0;
height: 0;
margin: 0;
pointer-events: none;
}
.results-pane .result-toggle:has(input:checked),
.results-pane .result-toggle.is-active {
background: #f0fdfa;
color: #0f766e;
border-color: #0f766e;
box-shadow: 0 0 0 1px #0f766e;
}
.btn-copy-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
border: 1px solid var(--line);
border-radius: 5px;
background: #ffffff;
color: #475569;
cursor: pointer;
padding: 0;
transition: all 0.12s ease;
flex-shrink: 0;
}
.btn-copy-icon:hover {
background: #f1f5f9;
border-color: #94a3b8;
color: #0f172a;
}
/* ==========================================================================
ADW Mode & Component Styles
========================================================================== */
.badge-adw-obj {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 6px;
font-size: 11px;
font-weight: 600;
border-radius: 4px;
background: #ecfdf5;
color: #047857;
border: 1px solid #a7f3d0;
}
.badge-adw-arr {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 6px;
font-size: 11px;
font-weight: 600;
border-radius: 4px;
background: #eff6ff;
color: #1d4ed8;
border: 1px solid #bfdbfe;
}
.badge-adw-perm {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 6px;
font-size: 11px;
font-weight: 600;
border-radius: 4px;
background: #fef3c7;
color: #b45309;
border: 1px solid #fde68a;
}
.badge-adw-action {
display: inline-flex;
align-items: center;
padding: 1px 6px;
font-size: 10px;
font-weight: 700;
text-transform: uppercase;
border-radius: 4px;
background: #f1f5f9;
color: #475569;
border: 1px solid #cbd5e1;
}
.badge-adw-action.create {
background: #f0fdf4;
color: #15803d;
border-color: #bbf7d0;
}
.badge-adw-action.alter {
background: #fffbeb;
color: #b45309;
border-color: #fde68a;
}
.badge-adw-action.insert {
background: #eff6ff;
color: #1d4ed8;
border-color: #bfdbfe;
}
.badge-adw-action.drop {
background: #fef2f2;
color: #b91c1c;
border-color: #fecaca;
}
.adw-migration-card {
border: 1px solid var(--line);
border-radius: 8px;
background: #ffffff;
padding: 12px;
margin-bottom: 12px;
transition: all 0.15s ease;
}
.adw-migration-card:hover {
border-color: var(--accent-2);
box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.adw-sql-viewer {
background: #0f172a;
color: #f8fafc;
padding: 12px;
border-radius: 6px;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 12px;
line-height: 1.5;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-all;
max-height: 350px;
overflow-y: auto;
}
.adw-rel-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
margin-top: 8px;
}
.adw-rel-table th,
.adw-rel-table td {
padding: 6px 10px;
border: 1px solid var(--line);
text-align: left;
}
.adw-rel-table th {
background: var(--surface-2);
font-weight: 600;
color: var(--text);
}
.adw-mapping-chip {
display: inline-block;
padding: 1px 6px;
background: #f1f5f9;
border: 1px solid #cbd5e1;
border-radius: 4px;
font-family: monospace;
font-size: 11px;
}
.adw-date-input {
height: 24px;
max-width: 115px;
padding: 0 4px;
font-size: 11px;
font-family: inherit;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--surface);
color: var(--text);
outline: none;
cursor: pointer;
}
.adw-date-input:focus {
border-color: var(--accent-2);
}
.adw-date-clear {
height: 24px;
width: 22px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 11px;
border: 1px solid var(--line);
border-radius: 4px;
background: var(--surface-2);
color: var(--muted);
cursor: pointer;
}
.adw-date-clear:hover {
background: #fee2e2;
color: #ef4444;
border-color: #fca5a5;
}
/* ==========================================================================
ADW Intelligence & Impact Analysis Features (v0.9.0)
========================================================================== */
/* 1. Hybrid Graph Legend & Edges */
.canvas-legend-overlay {
position: absolute;
top: 10px;
right: 14px;
z-index: 15;
display: flex;
align-items: center;
gap: 10px;
background: rgba(15, 23, 42, 0.82);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
padding: 5px 12px;
border-radius: 20px;
border: 1px solid rgba(255, 255, 255, 0.14);
font-size: 11px;
color: #cbd5e1;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.canvas-legend-item {
display: inline-flex;
align-items: center;
gap: 5px;
}
.canvas-legend-line-solid {
width: 16px;
height: 2px;
background: #3b82f6;
border-radius: 1px;
}
.canvas-legend-line-dashed {
width: 16px;
height: 0;
border-top: 2px dashed #06b6d4;
}
.canvas-legend-select {
height: 22px;
padding: 0 6px;
font-size: 11px;
border-radius: 10px;
background: rgba(30, 41, 59, 0.8);
color: #e2e8f0;
border: 1px solid rgba(255, 255, 255, 0.15);
outline: none;
cursor: pointer;
}
/* 2. Impact & Blast Radius Analysis */
.impact-container {
display: flex;
flex-direction: column;
gap: 12px;
}
.impact-header-box {
background: var(--surface-2);
border: 1px solid var(--line);
border-radius: 8px;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.impact-col-select {
height: 28px;
padding: 0 8px;
font-size: 12px;
font-family: inherit;
border: 1px solid var(--line);
border-radius: 6px;
background: var(--surface);
color: var(--text);
outline: none;
width: 100%;
}
.impact-metrics-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
}
.impact-metric-card {
background: var(--surface);
border: 1px solid var(--line);
border-radius: 6px;
padding: 8px;
text-align: center;
}
.impact-metric-val {
font-size: 18px;
font-weight: 800;
font-family: monospace;
color: var(--text);
}
.impact-metric-lbl {
font-size: 10px;
color: var(--muted);
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 2px;
}
.risk-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 12px;
font-size: 11px;
font-weight: 750;
text-transform: uppercase;
}
.risk-low { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.risk-med { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.risk-high { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }
.risk-crit { background: #fdf2f8; color: #be185d; border: 1px solid #fbcfe8; }
.impact-btn-canvas {
width: 100%;
padding: 6px 12px;
border-radius: 6px;
border: 1px solid rgba(59, 130, 246, 0.4);
background: rgba(59, 130, 246, 0.1);
color: #3b82f6;
font-size: 12px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition: all 0.15s ease;
}
.impact-btn-canvas:hover {
background: rgba(59, 130, 246, 0.18);
border-color: #3b82f6;
}
/* 3. RBAC & Security Matrix */
.perms-matrix-container {
display: flex;
flex-direction: column;
gap: 10px;
}
.perms-matrix-table {
width: 100%;
border-collapse: collapse;
font-size: 11px;
}
.perms-matrix-table th {
background: var(--surface-2);
padding: 6px 8px;
border-bottom: 1px solid var(--line);
text-align: left;
font-weight: 700;
color: var(--muted);
position: sticky;
top: 0;
z-index: 2;
}
.perms-matrix-table td {
padding: 6px 8px;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.perm-pill {
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
font-size: 10px;
font-weight: 700;
font-family: monospace;
}
.perm-pill-allow { background: #dcfce7; color: #15803d; }
.perm-pill-deny { background: #fee2e2; color: #b91c1c; }
.perm-pill-filter { background: #fef3c7; color: #b45309; }
.pii-warning-pill {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 5px;
border-radius: 4px;
background: rgba(239, 68, 68, 0.12);
color: #ef4444;
font-size: 10px;
font-weight: 700;
border: 1px solid rgba(239, 68, 68, 0.3);
}
/* 4. Migration Evolution Timeline Stepper */
.timeline-stepper {
position: relative;
margin: 12px 0 12px 14px;
padding-left: 20px;
border-left: 2px solid var(--line);
display: flex;
flex-direction: column;
gap: 16px;
}
.timeline-step {
position: relative;
}
.timeline-dot {
position: absolute;
left: -27px;
top: 2px;
width: 12px;
height: 12px;
border-radius: 50%;
background: #3b82f6;
border: 2px solid var(--surface);
box-shadow: 0 0 0 2px var(--line);
}
.timeline-step-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 12px;
}
.timeline-ticket-link {
font-family: monospace;
font-weight: 700;
color: #3b82f6;
text-decoration: none;
}
.timeline-ticket-link:hover {
text-decoration: underline;
}
.timeline-date {
font-size: 11px;
color: var(--muted);
}
.timeline-op-badge {
display: inline-block;
padding: 1px 6px;
border-radius: 4px;
font-size: 10px;
font-weight: 750;
font-family: monospace;
text-transform: uppercase;
}
.op-create { background: #dcfce7; color: #15803d; }
.op-alter { background: #dbeafe; color: #1d4ed8; }
.op-drop { background: #fee2e2; color: #b91c1c; }
.op-rel { background: #e0e7ff; color: #4338ca; }
/* Timeline Filter Chips & Diff Code Block */
.timeline-filter-group {
display: flex;
align-items: center;
gap: 6px;
margin: 8px 0 12px 0;
flex-wrap: wrap;
}
.timeline-filter-chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 26px;
border: 1px solid var(--line-strong);
border-radius: 999px;
background: #ffffff;
color: var(--muted);
padding: 0 10px;
font-size: 11px;
line-height: 1;
cursor: pointer;
font-family: inherit;
font-weight: 500;
transition: all 0.15s ease;
user-select: none;
}
.timeline-filter-chip:hover {
border-color: var(--accent);
color: var(--text);
}
.timeline-filter-chip.active {
border-color: var(--accent);
background: #e6f4f1;
color: var(--accent);
font-weight: 650;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.timeline-filter-chip .toggle-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #94a3b8;
display: inline-block;
transition: background 0.15s ease;
}
.timeline-filter-chip.active .toggle-dot {
background: var(--accent);
}
.timeline-diff-block {
margin-top: 6px;
border-radius: 6px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.12);
background: #0f172a;
}
.timeline-diff-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 4px 10px;
background: rgba(30, 41, 59, 0.85);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.timeline-diff-title {
font-size: 10px;
color: #94a3b8;
font-family: monospace;
font-weight: 600;
}
.timeline-copy-diff-btn {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 8px;
font-size: 10px;
font-weight: 600;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.2);
background: rgba(15, 23, 42, 0.8);
color: #93c5fd;
cursor: pointer;
transition: all 0.15s ease;
}
.timeline-copy-diff-btn:hover {
background: rgba(30, 41, 59, 0.95);
color: #bfdbfe;
border-color: rgba(255, 255, 255, 0.35);
}
.timeline-copy-diff-btn.copied {
color: #10b981;
border-color: #10b981;
}
.timeline-diff-code {
margin: 0;
max-height: 220px;
overflow: auto;
font-size: 10px;
padding: 8px;
background: #0f172a;
color: #cbd5e1;
border: none;
font-family: monospace;
line-height: 1.4;
}
/* 5. Health & Performance Audit Card */
.audit-card {
background: rgba(245, 158, 11, 0.05);
border: 1px solid rgba(245, 158, 11, 0.3);
border-radius: 8px;
padding: 10px 12px;
margin-bottom: 12px;
display: flex;
flex-direction: column;
gap: 6px;
}
.audit-card.audit-clean {
background: rgba(16, 185, 129, 0.05);
border-color: rgba(16, 185, 129, 0.3);
}
.audit-header {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 12px;
font-weight: 750;
}
details.audit-card summary {
list-style: none;
cursor: pointer;
user-select: none;
outline: none;
}
details.audit-card summary::-webkit-details-marker {
display: none;
}
details.audit-card summary:focus-visible {
outline: 2px solid #d97706;
outline-offset: 2px;
border-radius: 4px;
}
.audit-toggle-badge {
font-size: 11px;
font-weight: 600;
padding: 2px 8px;
border-radius: 999px;
background: rgba(245, 158, 11, 0.15);
color: #b45309;
border: 1px solid rgba(245, 158, 11, 0.3);
display: inline-flex;
align-items: center;
transition: all 0.15s ease;
}
details.audit-card[open] .audit-toggle-badge::after {
content: "Collapse ▴";
}
details.audit-card:not([open]) .audit-toggle-badge::after {
content: "Expand ▾";
}
details.audit-card summary:hover .audit-toggle-badge {
background: rgba(245, 158, 11, 0.25);
}
.audit-list {
scrollbar-width: thin;
scrollbar-color: rgba(245, 158, 11, 0.3) transparent;
}
.audit-list::-webkit-scrollbar {
width: 6px;
}
.audit-list::-webkit-scrollbar-thumb {
background: rgba(245, 158, 11, 0.3);
border-radius: 3px;
}
.audit-header.warn { color: #d97706; }
.audit-header.clean { color: #059669; }
.audit-item {
display: flex;
align-items: flex-start;
gap: 6px;
font-size: 11px;
line-height: 1.4;
color: var(--text);
padding: 4px 0;
border-top: 1px solid rgba(0, 0, 0, 0.06);
}
/* ==========================================================================
ZBO Live Screen Mockup & X-Ray Inspector Styles
========================================================================== */
#diagramSearchInput {
box-sizing: border-box;
border: 1px solid #cbd5e1;
border-radius: 5px;
padding: 4px 22px 4px 28px;
font-size: 12px;
color: #0f172a;
width: 175px;
height: 28px;
outline: none;
transition: width 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
#diagramSearchInput:focus {
width: 220px;
border-color: #2563eb;
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}
.diagram-pane.zbo-mode-active,
.diagram-pane:has(.zbo-ui-mockup-root) {
display: flex;
flex-direction: column;
}
.diagram-pane.zbo-mode-active .diagram-floating-toolbar,
.diagram-pane:has(.zbo-ui-mockup-root) .diagram-floating-toolbar {
position: static;
flex-shrink: 0;
width: 100%;
max-width: 100%;
padding: 7px 16px;
background: #ffffff;
border-bottom: 1px solid #cbd5e1;
box-sizing: border-box;
justify-content: space-between;
z-index: 25;
}
.diagram-pane.zbo-mode-active .diagram-canvas,
.diagram-pane:has(.zbo-ui-mockup-root) .diagram-canvas {
flex: 1 1 auto;
height: auto;
min-height: 0;
}
/* When docked inside .diagram-pane, hide the duplicate view-switcher / xray buttons inside .zbo-ui-StickyHeader */
.diagram-pane .zbo-ui-StickyHeader .zbo-ui-view-switcher,
.diagram-pane .zbo-ui-StickyHeader .zbo-ui-top-actions,
.diagram-pane .zbo-flow-top-bar {
display: none !important;
}
.diagram-pane .zbo-ui-StickyHeader .zbo-ui-top-row:not(:has(.zbo-ui-module-bar)) {
display: none !important;
}
.zbo-ui-mockup-root {
display: flex;
flex-direction: column;
min-height: 100%;
background: #f9fafa;
color: #2f3846;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", "Thonburi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
box-sizing: border-box;
}
.zbo-ui-StickyHeader,
.zbo-ui-topbar {
position: sticky;
top: 0;
z-index: 20;
display: flex;
flex-direction: column;
gap: 8px;
padding: 10px 16px;
background: rgba(255, 255, 255, 0.96);
backdrop-filter: blur(10px);
border-bottom: 1px solid #cbd5e1;
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.zbo-ui-top-row,
.zbo-ui-topbar-left,
.zbo-ui-topbar-right {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.zbo-ui-view-switcher {
display: inline-flex;
background: #dbe0e7;
padding: 2px;
border-radius: 8px;
gap: 2px;
}
.zbo-view-mode-btn,
.zbo-ui-view-btn {
border: 0;
background: transparent;
color: #475569;
font-size: 11.5px;
font-weight: 700;
padding: 5px 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
}
.zbo-view-mode-btn:hover,
.zbo-ui-view-btn:hover {
color: #0f172a;
}
.zbo-view-mode-btn.active,
.zbo-ui-view-btn.active {
background: #5b21b6;
color: #ffffff;
box-shadow: 0 1px 4px rgba(91, 33, 182, 0.3);
}
.zbo-ui-module-bar,
.zbo-ui-module-filter {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11.5px;
font-weight: 600;
color: #475569;
}
.zbo-ui-module-select,
.zbo-ui-module-filter select {
padding: 4px 10px;
border-radius: 6px;
border: 1px solid #bec4cd;
background: #fff;
font-size: 11.5px;
font-weight: 600;
color: #0f172a;
cursor: pointer;
}
.zbo-xray-toggle-btn,
.zbo-ui-xray-toggle {
border: 1px solid #bec4cd;
background: #ffffff;
color: #374151;
font-size: 11px;
font-weight: 700;
padding: 5px 10px;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
}
.zbo-xray-toggle-btn.active,
.zbo-ui-xray-toggle.active {
background: #ede8fc;
border-color: #7c3aed;
color: #431487;
}
.zbo-ui-screen-tabs-row,
.zbo-ui-screen-tabs {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 0;
overflow-x: auto;
}
.zbo-ui-screen-tab {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 14px;
border-radius: 6px;
border: 1px solid #bec4cd;
background: #eef1f5;
color: #1e293b;
font-size: 13px;
font-weight: 600;
cursor: pointer;
white-space: nowrap;
transition: all 0.15s ease;
}
.zbo-ui-screen-tab:hover {
background: #e2e6eb;
border-color: #9ca3af;
}
.zbo-ui-screen-tab.active {
background: #4c1d95;
color: #ffffff;
border-color: #4c1d95;
box-shadow: 0 2px 6px rgba(76, 29, 149, 0.28);
}
.zbo-ui-tab-meta {
font-size: 11px;
opacity: 0.82;
font-family: var(--mono, monospace);
}
.zbo-ui-screen-tab.has-hits,
.zbo-ui-screen-tab.has-search-hit {
border-color: #f59e0b;
box-shadow: 0 0 0 1.5px #f59e0b;
}
.zbo-ui-tab-hit-badge,
.zbo-screen-hit-badge {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 18px;
height: 18px;
padding: 0 5px;
border-radius: 999px;
background: #f59e0b;
color: #fff;
font-size: 11px;
font-weight: 800;
}
.zbo-ui-artifact-crumb,
.zbo-ui-screen-meta {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
padding-top: 6px;
border-top: 1px solid #e2e5e9;
font-size: 12px;
color: #475569;
}
.zbo-ui-artifact-crumb code {
background: #e2e8f0;
padding: 2px 6px;
border-radius: 4px;
color: #0f172a;
font-size: 12px;
}
.zbo-ui-stage-frame,
.zbo-ui-viewport {
padding: 24px;
flex: 1;
background: #ebedf2;
box-sizing: border-box;
}
.zbo-ui-stage-frame.is-modal-stage {
max-width: 820px;
margin: 24px auto;
width: calc(100% - 40px);
background: #ffffff;
border-radius: 12px;
border: 1px solid #94a3b8;
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
padding: 0;
overflow: hidden;
}
.zbo-ui-modal-ChromeHeader {
padding: 12px 18px;
background: #1e293b;
color: #ffffff;
font-size: 13px;
font-weight: 700;
display: flex;
align-items: center;
justify-content: space-between;
}
.zbo-ui-stage-frame.is-modal-stage .zbo-ui-stage-body {
padding: 20px;
}
.zbo-mock-grid-container,
.zbo-ui-grid {
display: grid;
grid-template-columns: repeat(12, minmax(0, 1fr));
gap: 16px;
align-items: start;
width: 100%;
box-sizing: border-box;
grid-column: 1 / -1;
}
.zbo-mock-grid-item {
min-width: 0;
box-sizing: border-box;
width: 100%;
display: flex;
flex-direction: column;
}
.zbo-mock-grid-spacer {
min-height: 4px;
}
.zbo-mock-paper {
box-sizing: border-box;
margin-bottom: 16px;
transition: all 0.15s ease;
width: 100%;
}
.zbo-mock-paper-card,
.zbo-mock-section-card {
background: #ffffff;
border: 1px solid #cfd4dc;
border-radius: 4px;
padding: 16px;
box-shadow: 0 1px 4px rgba(47, 56, 70, 0.08);
}
.zbo-mock-paper-breadcrumbs {
background: #4c1d95;
color: #ffffff;
border: none;
border-radius: 4px;
padding: 10px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.zbo-mock-paper-breadcrumbs a,
.zbo-mock-paper-breadcrumbs button,
.zbo-mock-paper-breadcrumbs span {
color: #ffffff;
font-weight: 700;
}
.zbo-mock-paper-footer {
background: #ffffff;
border-top: 1px solid #cfd4dc;
border-radius: 0;
padding: 12px 16px;
margin-top: 16px;
}
.zbo-mock-accordion {
background: #ffffff;
border: 1px solid #cfd4dc;
border-radius: 4px;
margin-bottom: 16px;
overflow: hidden;
box-shadow: 0 1px 3px rgba(47, 56, 70, 0.06);
}
.zbo-mock-accordion-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 16px;
background: #eae4fc;
border-bottom: 1px solid #d4cbf8;
cursor: pointer;
font-weight: 700;
font-size: 13.5px;
color: #431487;
}
.zbo-mock-accordion-body {
padding: 16px;
background: #ffffff;
}
.zbo-mock-tabstrip {
background: #ffffff;
border: 1px solid #cfd4dc;
border-radius: 4px;
padding: 14px;
margin-bottom: 16px;
}
.zbo-mock-tabstrip-bar {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
border-bottom: 2px solid #cfd4dc;
padding-bottom: 8px;
margin-bottom: 12px;
}
.zbo-mock-tab-pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 4px;
background: #e4e7eb;
color: #374151;
font-size: 12.5px;
font-weight: 700;
cursor: pointer;
transition: all 0.12s ease;
}
.zbo-mock-tab-pill.active {
background: #5b21b6;
color: #ffffff;
}
.zbo-tab-route {
font-family: var(--mono, monospace);
font-size: 10px;
opacity: 0.85;
}
.zbo-mock-repeater {
border: 1.5px dashed #94a3b8;
border-radius: 10px;
background: #f8fafc;
padding: 12px;
margin-bottom: 12px;
}
.zbo-mock-repeater-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
font-size: 12px;
color: #334155;
margin-bottom: 10px;
padding-bottom: 6px;
border-bottom: 1px dashed #cbd5e1;
}
.zbo-mock-bucket {
border: 1.5px dashed #6366f1;
border-radius: 10px;
background: #eef2ff;
padding: 12px 14px;
margin-bottom: 10px;
cursor: pointer;
}
.zbo-mock-bucket-inner {
display: flex;
align-items: center;
gap: 10px;
}
.zbo-mock-bucket-icon {
font-size: 18px;
}
.zbo-mock-bucket-title {
font-size: 12.5px;
font-weight: 700;
color: #312e81;
}
.zbo-mock-bucket-sub {
font-size: 11px;
color: #4338ca;
}
.zbo-mock-notification {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 10px 14px;
border-radius: 8px;
background: #fef3c7;
border: 1px solid #f59e0b;
color: #92400e;
font-size: 12px;
margin-bottom: 10px;
cursor: pointer;
}
.zbo-mock-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
font-size: 15px;
font-weight: 800;
color: #0f172a;
padding: 6px 8px;
border-radius: 6px;
cursor: pointer;
}
.zbo-mock-heading.is-white-banner {
color: #ffffff;
}
.zbo-mock-typography {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 4px 8px;
border-radius: 6px;
font-size: 12.5px;
color: #334155;
cursor: pointer;
}
.zbo-mock-typography:hover,
.zbo-mock-heading:hover {
background: rgba(59, 130, 246, 0.06);
}
.zbo-mock-readonly-field {
background: #eaedef;
border: 1px solid #cfd4dc;
border-radius: 4px;
padding: 8px 10px;
cursor: pointer;
}
.zbo-mock-readonly-val code {
font-family: var(--mono, monospace);
font-size: 11.5px;
color: #431487;
font-weight: 600;
}
.zbo-mock-layout {
display: flex;
gap: 12px;
box-sizing: border-box;
}
.zbo-mock-layout.is-row {
flex-direction: row;
align-items: center;
flex-wrap: wrap;
}
.zbo-mock-layout.is-col {
flex-direction: column;
}
.zbo-mock-layout.is-primary-banner {
background: #4c1d95;
color: #ffffff;
padding: 10px 16px;
border-radius: 4px;
}
.zbo-mock-field,
.zbo-mock-field-card {
background: transparent;
border: none;
border-radius: 0;
padding: 0;
margin-bottom: 6px;
width: 100%;
box-sizing: border-box;
display: flex;
flex-direction: column;
cursor: pointer;
transition: none;
}
.zbo-mock-field:hover .zbo-mock-input-box,
.zbo-mock-field-card:hover .zbo-mock-input-box {
border-color: #7c3aed;
}
.zbo-mock-field.is-disabled {
opacity: 0.7;
}
.zbo-mock-field.is-disabled .zbo-mock-input-box {
background: #e9ecef;
border-color: #dee2e6;
color: #76808b;
}
.zbo-mock-field-header,
.zbo-mock-field-top {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 6px;
margin-bottom: 4px;
}
.zbo-mock-field-label {
font-size: 14px;
font-weight: 600;
color: #374151;
line-height: 1.25rem;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", sans-serif;
}
.zbo-req-star {
color: #ef4444;
font-weight: 700;
margin-left: 2px;
}
.zbo-mock-field-type-tag,
.zbo-mock-widget-tag {
font-size: 10.5px;
font-weight: 600;
color: #4b5563;
background: #e5e7eb;
padding: 1px 5px;
border-radius: 3px;
font-family: var(--mono, monospace);
}
.zbo-mock-input-box {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 38px;
padding: 8px 10px;
border-radius: 4px;
border: 1px solid #bec3cb;
background: #ffffff;
color: #1e293b;
font-size: 14px;
box-sizing: border-box;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", sans-serif;
transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.zbo-mock-input-box:hover {
border-color: #7c3aed;
}
.zbo-mock-input-placeholder,
.zbo-mock-placeholder {
color: #737b86;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 14px;
}
.zbo-mock-input-icon {
font-size: 14px;
color: #4b5563;
margin-left: 6px;
display: inline-flex;
align-items: center;
}
.zbo-mock-check-row {
display: flex;
align-items: center;
gap: 8px;
min-height: 36px;
font-size: 14px;
font-weight: 600;
color: #1e293b;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", sans-serif;
}
.zbo-mock-check-box {
width: 18px;
height: 18px;
border-radius: 3px;
border: 1.5px solid #6b7280;
background: #ffffff;
color: #7c3aed;
font-size: 12px;
font-weight: 900;
display: inline-flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.zbo-mock-check-box.checked {
border-color: #6d28d9;
background: #eae4fc;
color: #5b21b6;
}
.zbo-mock-radio-list {
display: flex;
align-items: center;
gap: 16px;
flex-wrap: wrap;
margin-top: 4px;
}
.zbo-mock-radio-item {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 14px;
color: #374151;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", sans-serif;
}
.zbo-radio-dot {
width: 16px;
height: 16px;
border-radius: 50%;
border: 1.5px solid #6b7280;
background: #ffffff;
display: inline-block;
box-sizing: border-box;
}
.zbo-radio-dot.checked {
border-color: #6d28d9;
background: radial-gradient(circle, #5b21b6 45%, transparent 50%);
}
.zbo-mock-btn-wrap,
.zbo-mock-button-wrap {
display: inline-flex;
flex-direction: column;
gap: 4px;
padding: 2px;
border-radius: 4px;
cursor: pointer;
}
.zbo-mock-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 36px;
padding: 8px 16px;
border-radius: 4px;
font-size: 14px;
font-weight: 600;
line-height: 1.25rem;
cursor: pointer;
border: 1px solid transparent;
text-transform: none;
font-family: "Noto Sans Thai Looped", "Noto Sans Thai", "Sarabun", sans-serif;
transition: all 0.15s ease;
}
.zbo-btn-primary {
background: #5b21b6;
color: #ffffff;
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.zbo-btn-primary:hover {
background: #ffffff;
color: #5b21b6;
box-shadow: inset 0 0 0 1px #5b21b6;
}
.zbo-btn-outlined,
.zbo-btn-outline,
.zbo-btn-secondary {
background: #ffffff;
color: #5b21b6;
border: 1px solid #bec3cb;
font-weight: 600;
}
.zbo-btn-outlined:hover,
.zbo-btn-outline:hover,
.zbo-btn-secondary:hover {
background: #eae4fc;
border-color: #7c3aed;
}
.zbo-btn-danger,
.zbo-btn-primaryError {
background: #ef4444;
color: #ffffff;
}
.zbo-btn-danger:hover,
.zbo-btn-primaryError:hover {
background: #ffffff;
color: #ef4444;
box-shadow: inset 0 0 0 1px #ef4444;
}
.zbo-btn-link,
.zbo-btn-href {
background: transparent;
color: #5b21b6;
text-decoration: underline;
padding: 2px 4px;
}
.zbo-btn-link:hover,
.zbo-btn-href:hover {
background: transparent;
color: #431487;
}
.zbo-mock-datagrid-wrap,
.zbo-mock-datagrid-card {
background: #ffffff;
border: 1px solid #cfd4dc;
border-radius: 4px;
overflow: hidden;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
margin-bottom: 16px;
}
.zbo-mock-datagrid-bar,
.zbo-mock-datagrid-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
padding: 8px 16px;
background: #eae4fc;
color: #431487;
border-bottom: 1px solid #d4cbf8;
cursor: pointer;
}
.zbo-mock-datagrid-title {
display: flex;
align-items: center;
gap: 8px;
font-size: 14px;
font-weight: 700;
color: #431487;
}
.zbo-mock-table-scroll,
.zbo-mock-grid-table-scroll {
overflow-x: auto;
}
.zbo-mock-table,
.zbo-mock-grid-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
}
.zbo-mock-th,
.zbo-mock-grid-th {
background: #eaedef;
border-bottom: 1px solid #c7ccd4;
border-right: 1px solid #dcdfe4;
padding: 10px 12px;
text-align: left;
vertical-align: top;
cursor: pointer;
min-width: 110px;
font-weight: 700;
color: #1e2530;
}
.zbo-mock-th:hover,
.zbo-mock-grid-th:hover {
background: #eae4fc;
color: #431487;
}
.zbo-mock-th-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
font-weight: 700;
color: #1e2530;
margin-bottom: 2px;
}
.zbo-sort-arrow {
font-size: 11px;
color: #6b7280;
}
.zbo-mock-td,
.zbo-mock-grid-td {
padding: 8px 10px;
border-bottom: 1px solid #dde1e6;
border-right: 1px solid #edf0f3;
color: #1e2530;
cursor: pointer;
}
.zbo-mock-td a,
.zbo-mock-grid-td a {
color: #5b21b6;
text-decoration: underline;
}
.zbo-mock-cell-code {
font-family: var(--mono, monospace);
font-size: 12px;
color: #431487;
background: #eae4fc;
padding: 2px 6px;
border-radius: 3px;
font-weight: 600;
}
.zbo-mock-status-pill {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
background: #dcfce7;
color: #14532d;
border: 1px solid #86efac;
font-size: 12px;
font-weight: 700;
}
.zbo-mock-row-action-btn {
display: inline-block;
padding: 4px 10px;
border-radius: 4px;
border: 1px solid #bec3cb;
background: #ffffff;
color: #5b21b6;
font-size: 12px;
font-weight: 600;
cursor: pointer;
}
.zbo-mock-row-action-btn:hover {
background: #eae4fc;
border-color: #8b5cf6;
}
.zbo-mock-external {
padding: 10px 12px;
border-radius: 4px;
border: 1px dashed #bec3cb;
background: #eef1f5;
font-size: 13.5px;
cursor: pointer;
}
/* X-Ray Badges */
.zbo-xray-strip,
.zbo-xray-pills {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
margin-top: 4px;
max-width: 100%;
box-sizing: border-box;
}
.zbo-xray-pill {
display: inline-flex;
align-items: center;
padding: 1px 6px;
border-radius: 3px;
font-size: 10.5px;
font-weight: 700;
font-family: var(--mono, monospace);
line-height: 1.35;
max-width: 100%;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
.zbo-xray-pill.xray-db,
.zbo-xray-pill.pill-db {
background: #dcfce7;
color: #14532d;
border: 1px solid #86efac;
}
.zbo-xray-pill.xray-field {
background: #dbeafe;
color: #1e40af;
border: 1px solid #93c5fd;
}
.zbo-xray-pill.xray-wf,
.zbo-xray-pill.pill-wf {
background: #eae4fc;
color: #431487;
border: 1px solid #c4b5fd;
}
.zbo-xray-pill.xray-action,
.zbo-xray-pill.pill-act {
background: #f3e8ff;
color: #581c87;
border: 1px solid #d8b4fe;
}
.zbo-xray-pill.xray-rule,
.zbo-xray-pill.pill-val,
.zbo-xray-pill.pill-rule {
background: #fef08a;
color: #713f12;
border: 1px solid #fde047;
}
.zbo-xray-pill.xray-hc,
.zbo-xray-pill.pill-hc {
background: #fee2e2;
color: #9f1239;
border: 1px solid #fca5a5;
}
.zbo-xray-pill.xray-plugin,
.zbo-xray-pill.pill-plg {
background: #e2e8f0;
color: #1e293b;
border: 1px solid #cbd5e1;
}
/* Selected & Spotlight States */
.zbo-ui-selected,
.zbo-ui-elem-selected {
outline: 2px solid #5b21b6 !important;
outline-offset: 1px;
box-shadow: 0 0 0 3px rgba(91, 33, 182, 0.25) !important;
z-index: 5;
}
.diagram-searching .zbo-ui-mockup-root [data-node-id]:not(.zbo-ui-elem-matched):not(:has(.zbo-ui-elem-matched)) {
opacity: 0.42;
transition: opacity 0.2s ease;
}
.zbo-ui-elem-matched {
opacity: 1 !important;
outline: 2px solid #f59e0b !important;
outline-offset: 1px;
box-shadow: 0 0 12px rgba(245, 158, 11, 0.45) !important;
z-index: 6;
}
.zbo-ui-elem-focused {
opacity: 1 !important;
outline: 3px solid #ea580c !important;
outline-offset: 2px;
box-shadow: 0 0 0 5px rgba(234, 88, 12, 0.32), 0 8px 24px rgba(234, 88, 12, 0.45) !important;
animation: zbo-spotlight-pulse 1.4s ease-in-out infinite;
z-index: 10;
}
@keyframes zbo-spotlight-pulse {
0%, 100% {
box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.28), 0 4px 16px rgba(234, 88, 12, 0.4);
}
50% {
box-shadow: 0 0 0 8px rgba(234, 88, 12, 0.45), 0 8px 28px rgba(234, 88, 12, 0.65);
}
}
