:root {
  --bg: #090a0d;
  --surface: #111319;
  --surface-2: #171a21;
  --surface-3: #20242d;
  --line: #282d38;
  --line-soft: #1d2129;
  --text: #f4f5f7;
  --muted: #8f98a8;
  --accent: #b7ff4a;
  --accent-2: #8fd529;
  --red: #ff667d;
  --yellow: #ffc857;
  --blue: #70a7ff;
  --radius: 16px;
  --shadow: 0 18px 60px rgba(0,0,0,.25);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 75% -20%, rgba(183,255,74,.08), transparent 34%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, .button { border: 1px solid var(--line); border-radius: 9px; padding: .64rem .85rem; background: var(--surface-3); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; display: inline-flex; justify-content: center; align-items: center; gap: .4rem; }
button:hover, .button:hover { border-color: #505867; background: #292e39; }
button:active, .button:active { transform: translateY(1px); }
button.primary, .primary { color: #0a0c08; background: var(--accent); border-color: var(--accent); font-weight: 750; }
button.primary:hover, .primary:hover { background: #c5ff6f; border-color: #c5ff6f; }
button.danger { color: #ff97a7; }
button.subtle, .button.subtle { background: transparent; }
.link-button { padding: 0; border: 0; background: none; color: var(--muted); }
.link-button:hover { color: var(--text); background: none; }
code, pre, textarea { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
code { font-size: .9em; }
.sidebar { width: 224px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 26px 18px; border-right: 1px solid var(--line-soft); background: rgba(9,10,13,.93); backdrop-filter: blur(18px); z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.02em; }
.brand.large { font-size: 1.2rem; margin-bottom: 1rem; }
.brand-mark { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; color: #0a0c08; background: var(--accent); font-weight: 900; box-shadow: 0 0 24px rgba(183,255,74,.18); }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; margin-top: 40px; }
.sidebar nav a { padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: .93rem; font-weight: 550; }
.sidebar nav a:hover { color: var(--text); background: var(--surface); }
.sidebar nav a.active { color: var(--accent); background: rgba(183,255,74,.08); }
.logout { margin-top: auto; padding: 10px 12px; }
.shell { margin-left: 224px; padding: 0 34px 60px; max-width: 1780px; }
.topbar { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar h1 { margin: 3px 0 0; font-size: clamp(1.55rem, 2vw, 2.1rem); letter-spacing: -.04em; }
.eyebrow { display: block; text-transform: uppercase; color: var(--muted); font-size: .68rem; font-weight: 760; letter-spacing: .14em; }
.user-pill { padding: 7px 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; color: var(--muted); font-size: .82rem; }
.menu { display: none; }
.alert { margin: 0 0 18px; border: 1px solid; padding: 12px 15px; border-radius: 11px; display: flex; align-items: center; justify-content: space-between; font-size: .9rem; }
.alert.success { color: #c9ff81; border-color: rgba(183,255,74,.3); background: rgba(183,255,74,.08); }
.alert.error { color: #ffabb8; border-color: rgba(255,102,125,.3); background: rgba(255,102,125,.08); }
.alert button { border: 0; padding: 0; background: transparent; color: inherit; font-size: 1.2rem; }
.hero { min-height: 250px; padding: 38px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(130deg, rgba(183,255,74,.08), transparent 45%), var(--surface); display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; box-shadow: var(--shadow); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(183,255,74,.12); border-radius: 50%; right: -70px; top: -100px; box-shadow: 0 0 0 32px rgba(183,255,74,.025), 0 0 0 64px rgba(183,255,74,.018); }
.hero h2 { margin: 10px 0 8px; font-size: clamp(2rem, 4.2vw, 4rem); letter-spacing: -.065em; line-height: .98; max-width: 680px; }
.hero p { color: var(--muted); max-width: 620px; margin: 0; }
.quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; position: relative; z-index: 2; }
.quick-actions a { padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: .83rem; }
.quick-actions a:hover { border-color: var(--accent); color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 18px 0; }
.stats article { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 13px; padding: 17px; }
.stats span, .stats small { display: block; color: var(--muted); font-size: .73rem; }
.stats strong { display: block; margin: 8px 0 5px; font-size: 1.65rem; letter-spacing: -.04em; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: minmax(320px, .72fr) minmax(520px, 1.28fr); align-items: start; }
.grid.two.equal { grid-template-columns: 1fr 1fr; }
.dashboard-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; }
.dashboard-grid .wide { grid-column: 1 / -1; }
.panel { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.panel-head h2 { margin: 3px 0 0; font-size: 1.2rem; letter-spacing: -.025em; }
.panel-head > a { color: var(--accent); font-size: .82rem; }
.sticky-card { position: sticky; top: 18px; }
.stack { display: flex; flex-direction: column; gap: 15px; }
label { display: flex; flex-direction: column; gap: 7px; color: #cdd1d8; font-size: .82rem; font-weight: 620; }
.hint { color: var(--muted); font-weight: 400; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: .72rem .8rem; background: #0c0e12; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { border-color: rgba(183,255,74,.65); box-shadow: 0 0 0 3px rgba(183,255,74,.07); }
textarea { resize: vertical; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { flex-direction: row; align-items: center; }
.check input { width: auto; accent-color: var(--accent); }
.inline-form { display: flex; gap: 9px; margin-bottom: 18px; }
.inline-form input { flex: 1; }
.search input { width: 180px; padding: .55rem .7rem; }
.input-prefix { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #0c0e12; overflow: hidden; }
.input-prefix span { padding-left: .75rem; color: var(--muted); }
.input-prefix input { border: 0; box-shadow: none; }
.dropzone { min-height: 155px; align-items: center; justify-content: center; text-align: center; border: 1px dashed #39404d; border-radius: 12px; background: #0c0e12; cursor: pointer; transition: .2s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--accent); background: rgba(183,255,74,.04); }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone span { color: var(--muted); font-size: .76rem; font-weight: 400; }
.dropzone .drop-icon { font-size: 1.8rem; color: var(--accent); }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.list-row:first-child { border-top: 0; }
.list-row.disabled, .monitor-card.disabled { opacity: .52; }
.object-icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); font-size: .76rem; font-weight: 800; }
.grow { flex: 1; min-width: 0; }
.grow strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.meta { color: var(--muted); font-size: .72rem; margin-top: 4px; line-height: 1.45; }
.destination { color: var(--muted); font-size: .76rem; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin-top: 3px; }
.actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.actions form { display: inline-flex; }
.actions button, .actions .button, .icon-button { font-size: .73rem; padding: .48rem .62rem; }
.qr { width: 42px; height: 42px; border-radius: 6px; background: white; }
.visit-history { margin-top: 9px; color: var(--muted); font-size: .7rem; }
.visit-history summary { cursor: pointer; color: #c4cad3; }
.visit-history > div { display: grid; grid-template-columns: 145px 110px minmax(90px, 1fr) minmax(120px, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.empty-mini { padding: 42px 15px; color: var(--muted); text-align: center; border: 1px dashed var(--line); border-radius: 11px; font-size: .85rem; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-top: 18px; color: var(--muted); font-size: .76rem; }
.pager a:last-child { justify-self: end; }
.empty-state { max-width: 520px; margin: 18vh auto; text-align: center; }
.empty-state .code { color: var(--accent); font-size: 4rem; font-weight: 850; }
.empty-state h2 { font-size: 2rem; margin: 5px; }
.empty-state p { color: var(--muted); }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255,200,87,.08); }
.status-dot.up { background: var(--accent); box-shadow: 0 0 0 4px rgba(183,255,74,.08); }
.status-dot.down { background: var(--red); box-shadow: 0 0 0 4px rgba(255,102,125,.08); }
.state { border: 1px solid; border-radius: 999px; padding: 4px 8px; font-size: .65rem; text-transform: uppercase; font-weight: 760; letter-spacing: .08em; }
.state.up { color: var(--accent); border-color: rgba(183,255,74,.2); background: rgba(183,255,74,.06); }
.state.down { color: var(--red); border-color: rgba(255,102,125,.2); background: rgba(255,102,125,.06); }
.state.pending { color: var(--yellow); border-color: rgba(255,200,87,.2); background: rgba(255,200,87,.06); }
.monitor-list { display: flex; flex-direction: column; gap: 12px; }
.monitor-card { border: 1px solid var(--line); border-radius: 12px; background: #0d0f14; padding: 16px; }
.monitor-card header, .monitor-card footer { display: flex; align-items: center; gap: 12px; }
.monitor-card footer { justify-content: space-between; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.metric-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 15px 0; }
.metric-row > div { background: var(--surface); padding: 9px; border-radius: 8px; }
.metric-row span, .metric-row strong { display: block; }
.metric-row span { color: var(--muted); font-size: .64rem; }
.metric-row strong { margin-top: 4px; font-size: .78rem; }
.check-strip { height: 28px; display: flex; align-items: stretch; gap: 2px; overflow: hidden; }
.check-strip span { flex: 1; min-width: 3px; max-width: 10px; border-radius: 2px; background: var(--accent); opacity: .7; }
.check-strip span.down { background: var(--red); }
.delivery-list { border-top: 1px solid var(--line-soft); margin-top: 12px; padding-top: 10px; }
.delivery-list > div { display: grid; grid-template-columns: 10px 145px 1fr; gap: 8px; align-items: center; color: var(--muted); font-size: .7rem; padding: 3px 0; }
.callout, .curl-box { margin-top: 20px; background: #0a0c10; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.callout p { color: var(--muted); font-size: .75rem; line-height: 1.5; }
pre { max-width: 100%; overflow: auto; font-size: .74rem; line-height: 1.55; }
.curl-box { position: relative; }
.curl-box button { position: absolute; top: 7px; right: 7px; font-size: .67rem; }
.endpoint { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; }
.secret-banner { border: 1px solid rgba(183,255,74,.32); background: rgba(183,255,74,.07); border-radius: var(--radius); padding: 19px; margin-bottom: 18px; }
.secret-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.secret-row code { flex: 1; padding: 12px; border-radius: 8px; background: #070806; color: var(--accent); overflow-wrap: anywhere; }
.secret-banner p { margin: 10px 0 0; color: var(--muted); font-size: .75rem; }
.api-docs { margin-top: 18px; }
.api-docs > p { color: var(--muted); font-size: .82rem; }
.docs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.docs-grid > div { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; }
.docs-grid h3 { margin: 0; font-size: .85rem; }
.tabs-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tabs-summary h3 { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.summary-row { padding: 8px 0; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; }
.summary-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.summary-row small { color: var(--muted); white-space: nowrap; }
.public-shell { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.auth-card { width: min(100%, 420px); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.muted { color: var(--muted); }
.public-paste { width: min(1200px, 100%); align-self: start; margin-top: 5vh; }
.public-paste > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.public-paste h1 { margin: 24px 0 5px; font-size: 2rem; letter-spacing: -.04em; }
.highlight { background: #101218; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow: auto; color: #f8f8f2; }
.highlight table { border-spacing: 0; width: 100%; }
.highlight td:first-child { user-select: none; color: #5d6574; padding-right: 14px; text-align: right; width: 1%; }
.highlight .k, .highlight .kd, .highlight .kn { color: #ff79c6; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #f1fa8c; }
.highlight .c, .highlight .c1, .highlight .cm { color: #6272a4; }
.highlight .nf, .highlight .nx { color: #50fa7b; }
.highlight .mi, .highlight .mf { color: #bd93f9; }
.highlight .o { color: #ff79c6; }
@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid .wide { grid-column: auto; }
}
@media (max-width: 760px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .shell { margin-left: 0; padding: 0 16px 40px; }
  .topbar { min-height: 88px; justify-content: flex-start; }
  .menu { display: inline-flex; }
  .user-pill { margin-left: auto; }
  .hero { min-height: 300px; padding: 25px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .quick-actions { justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.two.equal, .docs-grid, .tabs-summary { grid-template-columns: 1fr; }
  .panel { padding: 17px; }
  .panel-head { align-items: flex-start; }
  .search input { width: 130px; }
  .list-row { align-items: flex-start; flex-wrap: wrap; }
  .list-row .actions { width: 100%; justify-content: flex-start; padding-left: 46px; }
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .monitor-card footer { align-items: flex-start; flex-direction: column; }
  .monitor-card footer .actions { justify-content: flex-start; }
  .form-grid { grid-template-columns: 1fr; }
  .public-paste > header { align-items: flex-start; flex-direction: column; }
}
