@import url('./theme.css');

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 13px; color: var(--text); background: var(--background); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { color: inherit; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; background: var(--sidebar); border-right: 1px solid var(--border); padding: 32px 16px 18px; display: flex; flex-direction: column; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 25px; font-weight: 700; letter-spacing: -.8px; padding: 0 10px 46px; }
.brand-icon { width: 39px; height: 39px; border-radius: 12px; corner-shape: squircle; background: #c1ef79; color: #192312; font-size: 35px; line-height: 34px; text-align: center; font-weight: 800; }
.brand-subtitle { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2.3px; margin-top: 2px; color: var(--muted); }
.sidebar-label { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); padding: 0 10px; margin-bottom: 22px; }
.project-label { padding: 0 10px; font-size: 11px; color: var(--muted); margin-bottom: 9px; }
select { min-height: 34px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px; corner-shape: squircle; padding: 6px 28px 6px 10px; }
#project { width: 100%; margin-bottom: 26px; font-size: 12px; }
.nav-item { display: flex; align-items: center; gap: 9px; min-height: 39px; padding: 8px 10px; font-size: 12px; border-radius: 6px; corner-shape: squircle; }
.nav-item.active { background: var(--selected); color: var(--accent); }
.nav-item > span:first-child { font-size: 20px; }
.nav-count { margin-left: auto; color: var(--accent); font-size: 10px; }
.sidebar-bottom { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 8px 0; color: var(--muted); font-size: 11px; border-top: 1px solid var(--border); }
.connection-dot, .tiny-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: inline-block; }
.text-button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 11px; text-decoration: underline; margin-left: auto; }
.workspace { margin-left: 232px; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 65px; padding: 0 36px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; gap: 16px; }
.breadcrumb, .separator { color: var(--muted); }
.separator { margin: 0 13px; opacity: .5; }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.environment { font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; border: 1px solid var(--border); padding: 5px 7px; border-radius: 4px; corner-shape: squircle; color: var(--muted); }
.quiet-link { color: var(--muted); }
.quiet-link:hover, .bottom-bar a:hover { color: var(--text); }
main { padding: 39px 36px 40px; flex: 1; min-width: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.eyebrow { font-size: 9px; letter-spacing: 1.6px; color: var(--muted); font-weight: 600; }
h1 { font-size: 27px; font-weight: 500; letter-spacing: -.9px; margin: 10px 0; }
.page-heading p { color: var(--muted); margin: 0; line-height: 1.5; font-size: 13px; }
.heading-actions { display: flex; gap: 18px; align-items: center; }
.readonly { color: var(--muted); font-size: 11px; white-space: nowrap; }
.readonly span { font-size: 16px; vertical-align: middle; margin-right: 4px; }
.button { min-height: 33px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 11px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; corner-shape: squircle; font-size: 12px; white-space: nowrap; }
.button:hover { background: var(--hover); }
.button.primary { color: var(--accent-text); background: var(--accent); border-color: var(--accent); font-weight: 600; }
.button.primary:hover { filter: brightness(.95); }
.tabbar { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 25px; }
.tab { display: inline-flex; gap: 9px; align-items: center; padding: 0 0 15px; border-bottom: 2px solid var(--accent); margin-bottom: -1px; font-size: 12px; }
.tab span { font-size: 10px; color: var(--muted); background: var(--surface); padding: 2px 5px; border-radius: 4px; corner-shape: squircle; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.filters select { font-size: 11px; min-height: 33px; }
.search { height: 33px; width: 238px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 1px solid var(--border); border-radius: 6px; corner-shape: squircle; background: var(--surface); color: var(--muted); }
.search input { width: 100%; min-width: 0; background: none; border: none; outline: none; color: var(--text); font-size: 11px; }
.search:focus-within { border-color: var(--accent); }
.search input:focus-visible { outline: 0; }
.search input::placeholder { color: var(--muted); }
kbd { border: 1px solid var(--border); padding: 0 4px; border-radius: 3px; corner-shape: squircle; font: 10px ui-monospace, monospace; line-height: 16px; }
.refresh { font-size: 11px; }
.refresh-icon { display: inline-block; font-size: 18px; line-height: 14px; }
.schema-group { border: 1px solid var(--border); border-radius: 8px; corner-shape: squircle; margin-bottom: 20px; overflow: hidden; }
.schema-heading { min-height: 51px; padding: 12px 17px; display: flex; align-items: center; gap: 9px; background: var(--surface); border-bottom: 1px solid var(--border); }
.schema-mark { font-size: 19px; color: var(--muted); }
.schema-heading h2 { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; margin: 0; }
.schema-total { color: var(--muted); font-size: 10px; margin-left: auto; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { height: 39px; font-size: 10px; font-weight: 400; color: var(--muted); background: var(--table-head); border-bottom: 1px solid var(--border); }
th, td { padding: 10px 16px; }
td { height: 58px; font-size: 11px; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--row-hover); }
.hook-name { display: flex; align-items: center; gap: 10px; }
.type-icon { width: 29px; height: 29px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 6px; corner-shape: squircle; flex-shrink: 0; }
.type-icon.worker { color: #e9af76; background: #bd7a2610; border-color: #bd7a262a; }
.type-icon.http { color: #78b6f4; background: #4072ac12; }
.hook-link { text-align: left; padding: 0; background: none; border: 0; color: var(--text); font-size: 11px; }
.hook-link:hover { color: var(--accent); }
.table-name { color: var(--secondary); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.event-list { display: flex; gap: 5px; }
.event-badge { font: 8px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 3px 5px; border: 1px solid var(--border); border-radius: 4px; corner-shape: squircle; color: var(--secondary); }
.event-badge.insert { color: var(--green); border-color: var(--green-border); background: var(--green-surface); }
.event-badge.update { color: var(--blue); border-color: var(--blue-border); background: var(--blue-surface); }
.event-badge.delete { color: #e29499; border-color: #e2949940; background: #e2949910; }
.destination { display: flex; gap: 7px; align-items: center; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--secondary); }
.destination > span:last-child { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.method { font: 8px ui-monospace, monospace; color: var(--muted); border: 1px solid var(--border); border-radius: 3px; corner-shape: squircle; padding: 2px 4px; }
.status { font-size: 10px; display: flex; align-items: center; gap: 6px; color: var(--secondary); }
.status > span { width: 4px; height: 4px; background: var(--muted); border-radius: 50%; }
.status.enabled > span { background: var(--green); }
.row-detail, .icon-button { background: none; border: 0; color: var(--muted); padding: 4px; font-size: 17px; }
.row-detail:hover { color: var(--accent); }
.results-footer { display: flex; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: 10px; }
.info-note { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); border-top: 1px solid var(--border); margin-top: 29px; padding-top: 18px; }
.info-note svg { flex-shrink: 0; margin-top: 1px; }
.info-note p { font-size: 11px; line-height: 1.6; margin: 0; }
.bottom-bar { margin-top: auto; padding: 16px 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; gap: 20px; }
.tiny-dot { margin-right: 5px; background: var(--muted); width: 4px; height: 4px; }
.empty { min-height: 330px; border: 1px solid var(--border); border-radius: 8px; corner-shape: squircle; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 36px 20px; }
.empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; corner-shape: squircle; color: var(--accent); font-size: 27px; margin-bottom: 19px; }
.empty h2 { font-size: 17px; font-weight: 500; letter-spacing: -.3px; margin: 0; }
.empty p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 24px; }
.empty-hint { font-size: 11px; color: var(--muted); }
.notice { border: 1px solid var(--border); border-radius: 6px; corner-shape: squircle; padding: 12px 15px; background: var(--surface); font-size: 12px; line-height: 1.7; }
.notice.error { color: var(--error); border-color: #bd65654a; background: #bd656510; }
dialog { position: fixed; top: 0; right: 0; left: auto; margin: 0; height: 100dvh; max-height: 100dvh; width: 480px; max-width: 100vw; border: 0; border-left: 1px solid var(--border); background: var(--sidebar); color: var(--text); padding: 30px 26px; box-shadow: -15px 0 80px #0003; }
dialog::backdrop { background: #0006; }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--border); padding-bottom: 25px; }
.detail-heading h2 { font-size: 18px; font-weight: 500; letter-spacing: -.4px; margin: 12px 0 0; overflow-wrap: anywhere; }
.icon-button { font-size: 25px; line-height: 22px; }
.detail-type { display: flex; gap: 12px; align-items: center; margin: 26px 0; }
.detail-type strong { font-size: 12px; font-weight: 500; display: block; margin-bottom: 5px; }
.detail-type div > span { font-size: 11px; color: var(--muted); }
.detail-target { padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 7px; corner-shape: squircle; }
.detail-target p { font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; margin: 10px 0 0; overflow-wrap: anywhere; user-select: all; }
dl { margin: 25px 0; }
dl > div { display: grid; grid-template-columns: 115px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
.detail-note { line-height: 1.8; color: var(--muted); font-size: 11px; margin-bottom: 25px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.spinning .refresh-icon { animation: rotate 1s linear infinite; }
.pulse { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes pulse { to { opacity: .4; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }
@media (min-width: 1600px) { main { padding-left: 48px; padding-right: 48px; } .destination > span:last-child { max-width: 350px; } }
@media (max-width: 1100px) { .sidebar { width: 195px; padding-inline: 12px; } .workspace { margin-left: 195px; } main { padding: 30px 24px; } .topbar { padding-inline: 24px; } .toolbar { align-items: flex-start; } .search { width: 210px; } .tab-caption { display: none; } }
@media (max-width: 720px) { .sidebar { position: static; width: 100%; padding: 16px 20px; flex-direction: row; align-items: center; gap: 20px; border-right: 0; border-bottom: 1px solid var(--border); } .brand { padding: 0; font-size: 22px; gap: 9px; flex-shrink: 0; } .brand-icon { width: 33px; height: 33px; font-size: 29px; line-height: 29px; border-radius: 9px; corner-shape: squircle; } .brand-subtitle { font-size: 7px; } .sidebar-label, .project-label, .sidebar nav, .sidebar-bottom { display: none; } #project { width: auto; max-width: 190px; margin: 0 0 0 auto; } .workspace { margin-left: 0; } .topbar { min-height: 50px; padding: 0 20px; } .topbar-right { gap: 10px; } .environment { display: none; } main { padding: 27px 20px; } .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 27px; gap: 16px; } h1 { font-size: 25px; } .heading-actions { justify-content: space-between; width: 100%; } .toolbar { flex-wrap: wrap; gap: 12px; } .filters { width: 100%; } .search { width: 100%; } .filters select { flex: 1; min-width: 0; max-width: 100%; } .refresh { margin-left: auto; } .bottom-bar { padding: 15px 20px; font-size: 9px; } .empty { min-height: 290px; } }
