:root {
  --bg: #0f172a;
  --panel: #111827;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #22c55e;
  --primary-hover: #34d399;
  --danger: #ef4444;
  --border: #1f2937;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif; line-height: 1.5; }

.container { max-width: 1080px; margin: 0 auto; padding: 16px; }

header { border-bottom: 1px solid var(--border); }
.header { display: flex; align-items: center; gap: 16px; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; }
.search-form { margin-left: auto; display: flex; gap: 8px; }

input[type="text"], textarea, input[type="file"] { width: 100%; padding: 10px 12px; background: #0b1220; color: var(--text); border: 1px solid var(--border); border-radius: 8px; }
input[type="text"]::placeholder, textarea::placeholder { color: #64748b; }
input[type="text"]:focus, textarea:focus, input[type="file"]:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }

button, .button { background: var(--primary); color: #00110a; border: none; border-radius: 8px; padding: 10px 14px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; transition: background-color .15s ease, transform .05s ease; }
button:hover, .button:hover { background: var(--primary-hover); }
button:active, .button:active { transform: translateY(1px); }
button:disabled, .button.disabled { opacity: .6; cursor: not-allowed; }
.button.outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.button.outline:hover { border-color: var(--primary); color: var(--text); }
button.danger, .danger { background: var(--danger); color: #1a0002; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.card > h2 { margin: 0 0 8px; }
.stack { display: grid; gap: 12px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.col.actions { display: flex; gap: 8px; align-items: center; }
.code { background: #0b1220; border: 1px solid var(--border); padding: 12px; border-radius: 8px; overflow: auto; white-space: pre-wrap; }
.breadcrumbs { margin: 12px 0; color: var(--muted); }

.flash { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.flash li { padding: 8px 10px; border-radius: 8px; }
.flash li.success { background: #052e1a; color: #b1f1c5; border: 1px solid #0b5a32; }
.flash li.error { background: #3b0a0a; color: #f3b6b6; border: 1px solid #7a1e1e; }

footer { border-top: 1px solid var(--border); margin-top: 32px; }

label { display: grid; gap: 6px; }

.empty-state { border: 1px dashed var(--border); color: var(--muted); background: #0b1220; padding: 16px; border-radius: 12px; text-align: center; }



