:root { --bg:#0b1020; --card:#111a33; --muted:#a9b3d1; --text:#e9ecf5; --accent:#7aa2ff; --danger:#ff6b6b; --border:rgba(255,255,255,.12); }
* { box-sizing: border-box; }
body { margin:0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; background: radial-gradient(1200px 800px at 30% 10%, #1a2a6c 0%, var(--bg) 45%); color: var(--text); }
header { padding: 22px 18px 6px; max-width: 1200px; margin: 0 auto; text-align: center; }
h1 { margin: 0 0 10px; font-size: 30px; letter-spacing: .2px; }
.sub { color: var(--muted); font-size: 13px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 14px 18px 28px; display: flex; gap: 14px; align-items: stretch; }
.wrap.panel-open { max-width: 1600px; }

.toolbar { max-width: 1200px; margin: 0 auto; padding: 12px 18px; display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; background: rgba(17,26,51,.65); border: 1px solid var(--border); border-radius: 14px; backdrop-filter: blur(8px); }
.field { display:flex; flex-direction:column; gap:6px; }
label { font-size: 12px; color: var(--muted); }
input, select { background: rgba(0,0,0,.2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; min-width: 210px; outline: none; }
input:focus, select:focus { border-color: rgba(122,162,255,.7); box-shadow: 0 0 0 3px rgba(122,162,255,.15); }
button { cursor:pointer; background: linear-gradient(135deg, rgba(122,162,255,.95), rgba(122,162,255,.65)); color:#0b1020; border: 0; border-radius: 10px; padding: 9px 12px; font-weight: 700; }
button.secondary { background: rgba(255,255,255,.08); color: var(--text); border: 1px solid var(--border); }
.status { margin-left:auto; color: var(--muted); font-size: 12px; }

#content { flex: 1; min-width: 0; }

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 14px; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: rgba(17,26,51,.65); }
th, td { padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
th { text-align: left; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.03); position: sticky; top: 0; backdrop-filter: blur(10px); }
tr:hover td { background: rgba(255,255,255,.03); }
tr.selected td { background: rgba(122,162,255,.08); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }
.pill { display:inline-flex; align-items:center; padding: 3px 8px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); background: rgba(0,0,0,.12); }
.pill.danger { border-color: rgba(255,107,107,.45); color: #ffd6d6; }
.pill.accent { border-color: rgba(122,162,255,.45); color: #d8e3ff; }
details { max-width: 560px; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
pre { margin: 8px 0 0; padding: 10px 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; overflow: auto; max-height: 240px; }
.empty { padding: 18px; border: 1px dashed rgba(255,255,255,.2); border-radius: 14px; color: var(--muted); margin-top: 14px; background: rgba(17,26,51,.35); }
a { color: var(--accent); }

#detailPanel { width: 0; min-width: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--border); background: rgba(17,26,51,.65); backdrop-filter: blur(8px); transition: width 200ms ease, opacity 200ms ease; opacity: 0; }
.wrap.panel-open #detailPanel { width: 520px; opacity: 1; }
.panelHeader { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); }
.panelTitle { font-weight: 800; }
.panelBody { padding: 12px; }
.panelSectionTitle { color: var(--muted); font-size: 12px; margin: 10px 0 6px; }
