/* Технический черновик оформления: задача этого файла — не мешать проверять
   работу сервиса. Дизайн делается отдельно. */

:root {
  --bg: #f6f7f9;
  --fg: #16181d;
  --muted: #6b7280;
  --line: #d7dae0;
  --accent: #2f6fed;
  --accent-soft: #e6eefd;
  --ok: #1a7f52;
  --err: #b3261e;
  --panel: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --fg: #e8eaed;
    --muted: #9aa1ab;
    --line: #2c3036;
    --accent: #6f9bff;
    --accent-soft: #1d2637;
    --panel: #1b1e23;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.logo { font-weight: 700; letter-spacing: .18em; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.stage { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.circle {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 2px dashed var(--line);
  background: var(--panel);
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  transition: border-color .15s, background .15s;
}

.circle:hover, .circle.over { border-color: var(--accent); background: var(--accent-soft); }
.circle-title { font-size: 17px; font-weight: 600; }
.circle-sub { color: var(--muted); font-size: 13px; }

.circle-ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.circle-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 0%;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  transition: height .25s ease-out;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 20px;
}

.panel h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.panel h2 + .row { margin-bottom: 14px; }

.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row label { display: inline-flex; align-items: center; gap: 6px; }

input[type=text], input[type=password], textarea {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: inherit;
  font: inherit;
}

textarea { resize: vertical; }

.btn {
  padding: 9px 14px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.btn:hover { filter: brightness(1.05); }
.btn.small { padding: 6px 10px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn[disabled] { opacity: .5; cursor: default; }

.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.file { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.file .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .state { color: var(--muted); font-size: 13px; white-space: nowrap; }
.file .bar { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.file .bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.file.done .bar > i { background: var(--ok); }
.file.failed .state { color: var(--err); }

.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.muted { color: var(--muted); font-weight: 400; }
.error { color: var(--err); margin-top: 16px; }

.result .row { margin-bottom: 10px; }
#link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.drophint {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 3px dashed var(--accent);
  font-size: 22px;
  font-weight: 600;
  pointer-events: none;
}

/* Страница получателя */
.dl-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.dl-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.dl-list a { color: var(--accent); }
.big { font-size: 17px; }
