:root { --bg:#0b0c10; --fg:#eaeaea; --muted:#999; --card:#16181d; --primary:#4f8cff; --accent:#25d18a; }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--fg); font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; }
.container { max-width: 1100px; margin: 0 auto; padding: 1rem; }
.site-header { background: #101218; border-bottom: 1px solid #20222a; }
.header-inner { display:flex; align-items:center; justify-content: space-between; }
.brand a { color: var(--fg); text-decoration: none; font-weight: 700; }
.nav a { color: var(--fg); margin-left: 1rem; text-decoration: none; opacity: 0.9; }
.nav a:hover { opacity: 1; }
.site-footer { border-top: 1px solid #20222a; padding: 1.2rem 0; margin-top: 2rem; color: var(--muted); }
.hero { padding: 2rem 0; }
.btn { background: var(--primary); color:#fff; padding: 0.5rem 0.9rem; border:0; border-radius:6px; text-decoration:none; display:inline-block; cursor:pointer; }
.btn.secondary { background: #2c3240; }
.panel { background: var(--card); padding: 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid #222733; }
.grid { display:grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 900px) { .grid { grid-template-columns: 1fr; } }
.form-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:0.8rem; }
label { display:flex; flex-direction: column; font-size: 0.95rem; gap: 0.3rem; }
input, select { background: #0f1117; color:var(--fg); border:1px solid #303547; padding:0.5rem; border-radius:8px; }
.error { color: #ff6b6b; margin-top: .5rem; }
.notice { background: #2c3240; padding:.7rem; border-radius:8px; margin: .5rem 0; }
.auth-form { background: var(--card); padding:1rem; border-radius:10px; max-width: 480px; }
.table { width:100%; border-collapse: collapse; }
.table th, .table td { border: 1px solid #2e3444; padding: .4rem; text-align:left; vertical-align: top; }
.tabs { margin-bottom: .7rem; }
.tab-btn { margin-right: .4rem; }
.draft-grid { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:1rem; }
.pick-slot { margin-bottom: .5rem; }
.chips { display:flex; gap:.4rem; flex-wrap: wrap; }
.chip { background:#1d2230; color:var(--fg); padding:.2rem .5rem; border-radius:999px; border:1px solid #2e3444; display:inline-flex; align-items:center; gap:.4rem; }
.chip button { background:transparent; border:0; color:#bbb; cursor:pointer; }
.typeahead { position:relative; }
.typeahead-list { position:absolute; z-index: 20; background:#0f1117; border:1px solid #2e3444; width:100%; max-height: 220px; overflow:auto; border-radius: 8px; }
.typeahead-item { padding:.4rem .6rem; cursor:pointer; }
.typeahead-item:hover, .typeahead-item.active { background:#1b2230; }
#results pre { white-space: pre-wrap; }

/* Loading indicator */
.loading { display:flex; align-items:center; gap:.6rem; margin-top:.6rem; color: var(--muted); }
.spinner { width:16px; height:16px; border:2px solid #2e3444; border-top-color: var(--primary); border-radius:50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg);} }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
