:root{
  --bg:#000;
  --fg:#fff;
  --muted:#bdbdbd;
  --line:#2a2a2a;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--fg);
  font:14px/1.45 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

a{color:var(--fg); text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:980px; margin:0 auto; padding:24px}

.topbar{
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  max-width:980px;
  margin:0 auto;
  padding:16px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.brand{font-weight:800; letter-spacing:.5px}
.right{display:flex; gap:10px; align-items:center}

.pill{
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  color:var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12px;
}

.card{
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px;
}

.h1{margin:0 0 12px; font-size:20px}
.muted{color:var(--muted)}
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}

.form{display:flex; flex-direction:column; gap:10px}
.row{display:flex; gap:10px; align-items:center; flex-wrap:wrap}
.grow{flex:1}

.input,.textarea{
  width:100%;
  background:#000;
  color:var(--fg);
  border:1px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
  outline:none;
}
.input:focus,.textarea:focus{border-color:#fff}

.textarea{min-height:96px; resize:vertical}

.btn{
  background:#fff;
  color:#000;
  border:1px solid #fff;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{opacity:.9}
.btn-ghost{
  background:#000;
  color:#fff;
  border:1px solid var(--line);
}
.btn-danger{
  background:#000;
  color:#fff;
  border:1px solid #fff;
}

.tabs{display:flex; gap:8px; flex-wrap:wrap; margin:0 0 12px}
.tab{
  border:1px solid var(--line);
  padding:7px 10px;
  border-radius:999px;
  color:var(--muted);
  font-size:12px;
}
.tab.active{
  border-color:#fff;
  color:#fff;
}

.list{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.note{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
}
.note-text{white-space:pre-wrap; word-break:break-word}
.note-meta{display:flex; gap:8px; margin-top:8px; color:var(--muted); font-size:12px}
.hr{height:1px; background:var(--line); margin:14px 0}
.alert{
  border:1px solid #fff;
  border-radius:12px;
  padding:10px 12px;
  margin-top:10px;
}

details.note{padding:0}
.note-sum{
  cursor:pointer;
  list-style:none;
  padding:12px;
  display:flex;
  gap:10px;
  align-items:center;
}
.note-sum::-webkit-details-marker{display:none}
.note-open{padding:12px; border-top:1px solid var(--line)}
.note-text{white-space:pre-wrap; word-break:break-word; margin-bottom:12px}
