:root {
  --ink: #0d0f14;
  --surface: #161920;
  --line: #242833;
  --fg: #e8e9ed;
  --muted: #8b90a0;
  --accent: #f59e42;
  --r: 12px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  color: var(--fg);
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 420;
}
h1, h2, h3 { margin: 0 0 8px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
p { margin: 0 0 12px; color: var(--muted); }
p:last-child { margin-bottom: 0; }
a { color: var(--accent); }

.wrap { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: 1fr 1fr 1fr; } }
.muted { color: var(--muted); font-size: 14px; }
.accent { color: var(--accent); font-weight: 600; }
.spacer { flex: 1; }
[hidden] { display: none !important; }

button, .btn {
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  border-radius: var(--r);
  padding: 10px 18px;
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  transition: opacity .2s, border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
button:hover, .btn:hover { opacity: .9; }
button:disabled { opacity: .45; cursor: default; }
button.ghost, .btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line);
}
button.ghost:hover { border-color: var(--muted); background: var(--surface); opacity: 1; }
button.sm { padding: 7px 13px; font-size: 13px; }

label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--fg); }
.val { float: right; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }

input[type=range] {
  width: 100%;
  accent-color: var(--accent);
  height: 22px;
  cursor: pointer;
}
input[type=number], input[type=text], input[type=color], select, textarea {
  font: inherit;
  font-size: 15px;
  width: 100%;
  background: var(--ink);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}
input[type=color] { padding: 4px; height: 42px; cursor: pointer; }
textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
select { cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: var(--muted); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; margin: 0; }

.drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--surface); }
.drop strong { display: block; color: var(--fg); font-weight: 600; }
.drop .muted { margin-top: 6px; }

.thumb { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.thumb img, .thumb canvas, .thumb video { width: 100%; display: block; }
.thumb .meta { padding: 10px 12px; font-size: 13px; }

canvas, video { max-width: 100%; border-radius: 8px; display: block; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
}
.tab.on { color: var(--fg); border-bottom-color: var(--accent); }

.note { background: var(--surface); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

html,body{overflow:hidden;height:auto}
