:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1e222b;
  --line: #2a2f3a;
  --text: #e6e8ec;
  --muted: #8b93a1;
  --accent: #7c9cff;
  --accent-ink: #0f1115;
  --error: #ff7a7a;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

body.centered {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

h1 { margin: 0 0 .25rem; font-size: 1.9rem; letter-spacing: -.02em; }
.dot { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.login { width: min(360px, 100%); text-align: center; }
.login input, .login button { width: 100%; margin-top: 1rem; }

input[type="password"], input[type="text"] {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  padding: .7rem .9rem;
  font-size: 1rem;
  font-family: var(--font);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: .7rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-ink);
}
button:hover { filter: brightness(1.08); }
button.link {
  background: none;
  color: var(--accent);
  padding: 0;
  font-weight: 500;
  text-decoration: underline;
}
button.danger { background: none; color: var(--error); text-decoration: underline; padding: 0; font-weight: 500; }

.error { color: var(--error); margin: .5rem 0 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.topbar form { margin: 0; }
.brand { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }

main { max-width: 860px; margin: 0 auto; padding: 2rem 1.5rem; }

.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone.drag { border-color: var(--accent); background: var(--panel); }
.big { font-size: 1.25rem; margin: 0 0 .25rem; }
.custom { margin-top: 1.5rem; text-align: left; max-width: 360px; margin-inline: auto; }
.custom summary { cursor: pointer; color: var(--muted); }
.custom input { display: block; width: 100%; margin: .6rem 0 .3rem; }

.result {
  margin-top: 1.5rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.result.err { border-color: var(--error); color: var(--error); }
.result .row { display: flex; gap: .5rem; align-items: center; }
.result code { font-family: var(--mono); background: var(--panel-2); padding: .4rem .6rem; border-radius: 8px; flex: 1; overflow-x: auto; }

table.shares { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .95rem; }
.shares th, .shares td { text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line); }
.shares th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.shares a { color: var(--accent); text-decoration: none; font-family: var(--mono); }
.shares a:hover { text-decoration: underline; }
.empty { text-align: center; margin-top: 2rem; }
.copy { font-size: .8rem; }
