:root {
  --bg: #0b0c12; --panel: #14161f; --panel2: #1a1d29; --border: #262a3a;
  --text: #d8dcea; --dim: #8089a3; --accent: #ffb321; --accent2: #5eead4;
  --red: #ff5e6c; --green: #7ee787;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 179, 33, .35); }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* slim dark scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2e3346 transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: #2e3346; border-radius: 6px; }
*::-webkit-scrollbar-thumb:hover { background: #3c4257; }
*::-webkit-scrollbar-track { background: transparent; }
header.bar {
  display: flex; align-items: center; gap: 14px; padding: 10px 18px;
  background: var(--panel); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10; flex-wrap: wrap;
}
.logo { font-size: 19px; font-weight: 800; letter-spacing: 3px; color: var(--accent); white-space: nowrap; }
.logo span { color: var(--accent2); }
.tagline { color: var(--dim); font-size: 11px; }
.spacer { flex: 1; }
button, .btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 14px; font: inherit; font-size: 13px; cursor: pointer;
  display: inline-block;
  transition: border-color .15s, transform .1s, box-shadow .15s, filter .15s;
}
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent2); outline-offset: 2px;
}
button.primary, .btn.primary {
  background: linear-gradient(180deg, #ffc24a, var(--accent));
  color: #1a1200; font-weight: 700; border: none;
  box-shadow: 0 2px 10px rgba(255, 179, 33, .25);
}
button.primary:hover, .btn.primary:hover { filter: brightness(1.07); box-shadow: 0 4px 16px rgba(255, 179, 33, .35); }
button.danger { background: #3a1418; color: var(--red); border-color: #5d2027; }
.btn.heart {
  border-color: rgba(255, 110, 140, .35); color: var(--text); padding: 6px 12px;
  font-size: 12px; letter-spacing: .3px;
}
.btn.heart::before { content: "\2665"; color: #ff6e8c; margin-right: 5px; }
.btn.heart:hover { border-color: #ff6e8c; box-shadow: 0 0 0 3px rgba(255, 110, 140, .12); }
input, textarea, select {
  background: var(--panel2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; font: inherit; font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
  caret-color: var(--accent);
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(94, 234, 212, .12);
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px;
}
.chip { font-size: 11px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--border); }
.chip.published { color: var(--green); border-color: #2c4a33; }
.chip.draft { color: var(--dim); }
.chip.flagged { color: var(--accent); border-color: #5d4a16; }
.chip.rejected, .chip.suspended { color: var(--red); border-color: #5d2027; }
.muted { color: var(--dim); font-size: 12px; }
.err { color: var(--red); }
.ok { color: var(--green); }
.modal-bg {
  position: fixed; inset: 0; background: rgba(4, 5, 10, .7); display: none;
  align-items: center; justify-content: center; z-index: 50;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.modal-bg.open { display: flex; animation: fadeIn .15s ease; }
.modal { width: min(420px, 92vw); max-height: 90vh; overflow: auto; animation: popIn .18s ease; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
canvas.stage {
  max-width: 100%; height: auto; border-radius: 10px; background: #000;
  box-shadow: 0 0 0 1px var(--border), 0 0 60px rgba(94,234,212,.08), 0 20px 50px rgba(0,0,0,.5);
}
table { border-collapse: collapse; width: 100%; font-size: 12px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--panel2); }
kbd { background: var(--panel2); border: 1px solid var(--border); border-radius: 4px; padding: 0 5px; font-size: 11px; }
.logo { text-shadow: 0 0 18px rgba(255, 179, 33, .35); transition: text-shadow .2s; }
.logo:hover { text-shadow: 0 0 26px rgba(255, 179, 33, .6); text-decoration: none; }
header.bar { box-shadow: 0 1px 0 rgba(94, 234, 212, .07), 0 6px 20px rgba(0, 0, 0, .25); }
@media (max-width: 760px) {
  header.bar { gap: 8px; padding: 8px 10px; }
  .tagline { display: none; }
}
/* SenSym brand footer (every page) */
.sensym-footer {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px 20px; border-top: 1px solid var(--border);
  color: var(--dim); font-size: 11px; flex-wrap: wrap; text-align: center;
}
.sensym-footer .sm-logo {
  display: inline-flex; background: #fff; border-radius: 8px;
  padding: 4px 8px; line-height: 0;
}
.sensym-footer .sm-logo img { height: 28px; width: auto; display: block; }
.sensym-footer a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.sensym-footer a:hover { color: var(--text); }
