:root {
  --bg: #0e1013;
  --card: #161a20;
  --line: #242b34;
  --text: #e6e9ef;
  --dim: #8b94a3;
  --accent: #6ea8fe;
  --danger: #ff6b6b;
  --urgent: #ffb35c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
main { max-width: 680px; margin: 0 auto; padding: 28px 16px 64px; }
header { margin-bottom: 20px; }
h1 { margin: 0; font-size: 28px; letter-spacing: .5px; }
.sub { margin: 2px 0 0; color: var(--dim); font-size: 14px; }
header .ghost { margin-top: 8px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
label { display: block; margin-bottom: 6px; color: var(--dim); font-size: 14px; }
input[type="password"], input[type="datetime-local"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 10px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
button {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d232c;
  color: var(--text);
  padding: 8px 14px;
  cursor: pointer;
}
button:hover { border-color: var(--accent); }
button.primary { background: var(--accent); border-color: var(--accent); color: #0b1220; font-weight: 600; }
button.ghost { background: transparent; color: var(--dim); font-size: 13px; }
button.link { background: none; border: none; padding: 0; color: var(--accent); text-decoration: underline; }
.hint { color: var(--dim); font-size: 13px; margin: 8px 0 0; }
.error { color: var(--danger); font-size: 13px; margin: 8px 0 0; }
code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: 12px; }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 26px 12px;
  text-align: center;
  transition: border-color .15s, background .15s;
  margin-bottom: 14px;
}
.dropzone.drag { border-color: var(--accent); background: #10151c; }
.dropzone p { margin: 4px 0; }

.row { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.label { color: var(--dim); font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border-radius: 999px; font-size: 14px; padding: 6px 14px; background: transparent; }
.chip.selected { background: var(--accent); border-color: var(--accent); color: #0b1220; font-weight: 600; }

.progress { height: 6px; background: var(--line); border-radius: 999px; margin-top: 14px; overflow: hidden; }
#bar { height: 100%; width: 0%; background: var(--accent); transition: width .15s; }

#list { list-style: none; margin: 0; padding: 0; }
#list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
#list .name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 500;
}
#list .name:hover { color: var(--accent); }
#list .meta { color: var(--dim); font-size: 13px; white-space: nowrap; }
#list .countdown.urgent { color: var(--urgent); }
#list .countdown.gone { color: var(--danger); }
#list .del { background: none; border: none; color: var(--dim); font-size: 16px; padding: 4px 8px; }
#list .del:hover { color: var(--danger); border: none; }
.kind { width: 34px; text-align: center; font-size: 20px; }

#toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: #232a34;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 10px;
  max-width: 90vw;
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  z-index: 10;
}
#toast.error { border-color: var(--danger); }
