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

/* Оформление снято с mesh.soloviev.group: тёмно-серый фон, серые карточки
   с мягкой тенью, кремовые поля ввода. Тема одна — фон задан жёстко, и
   знак нарисован именно под него: его собственная подложка того же цвета,
   поэтому на странице он ложится без шва. */
:root {
  --bg: #3c3c3c;

  /* Текст поверх фона — того же цвета, что заливка карточек: страница
     собирается из двух тонов, и лишних оттенков в ней нет. */
  --on-bg: #979797;
  --on-bg-muted: #979797;

  /* Карточка и всё, что внутри неё. */
  --panel: #979797;
  --panel-hover: #a6a6a6;
  --fg: #0e1013;
  --muted: #2c3138;
  --line: #7a7a7a;
  --field: #fff8cc;

  --accent: #1e56d6;
  --ok: #14633f;
  --err: #8f1d16;
  /* Синий надписи СОЛОВЬЁВ — он же читается на тёмном фоне. */
  --logo-blue: #4d8cff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--on-bg);
  font: 16px/1.55 "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

/* Подписи бывают в двух средах. По умолчанию считаем, что подпись лежит
   на градиенте, и красим её светлым; внутри карточки — обратно тёмным. */
.hint { color: var(--on-bg-muted); }
.panel .hint, .panel .muted { color: var(--muted); }

.logo { font-weight: 700; letter-spacing: .18em; font-size: 24px; }
.logo-tail { color: var(--logo-blue); }

/* Подпись автора внизу страницы. */
.author { margin: 56px 0 36px; text-align: center; }
.author p { margin: 0 0 12px; color: var(--on-bg-muted); font-size: 14px; }
.author a { display: inline-block; line-height: 0; }

/* Знак — файл с mesh как есть, без правок: его подложка совпадает с фоном
   страницы, так что вырезать её не нужно. */
.author img { width: 144px; height: auto; opacity: .92; transition: opacity .15s; }
.author a:hover img { opacity: 1; }

.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);
  box-shadow: 1px 1px 4px rgba(0, 0, 0, .55);
  color: var(--fg);
  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(--panel-hover); }
.circle-title { font-size: 19px; font-weight: 600; }
.circle-sub { color: var(--muted); font-size: 14px; }

.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: 0;
  border-radius: 16px;
  box-shadow: 1px 1px 4px rgba(0, 0, 0, .55);
  padding: 16px 18px;
  margin-top: 20px;
  color: var(--fg);
}

.panel h2 { font-size: 14px; 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; }
/* display у метки перебивает обычное правило для hidden, возвращаем. */
.row label[hidden] { display: none; }

input[type=text], input[type=password], textarea {
  flex: 1 1 220px;
  min-width: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 4px;
  background: var(--field);
  color: var(--fg);
  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: 7px 11px; font-size: 14px; }
.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: 14px; 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 { font-size: 14px; margin: 6px 0 0; }
.muted { color: var(--muted); font-weight: 400; }
/* Ошибка печатается на градиенте, а не в карточке. */
.error { color: #ffb3ab; margin-top: 16px; }

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

/* Подсветка всего окна, пока файлы тащат: текста здесь нет, о том, что
   делать, уже сказано в самом круге. */
.drophint {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 3px dashed var(--accent);
  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: 19px; }

/* Телефон: круг ужимаем под ширину экрана, шапку и подвал поджимаем. */
@media (max-width: 520px) {
  .head { padding: 14px 16px; }
  .logo { font-size: 21px; }
  .wrap { padding: 20px 14px 48px; }
  .circle { width: min(78vw, 260px); height: min(78vw, 260px); }
  .circle-title { font-size: 17px; }
  .panel { padding: 14px; border-radius: 14px; }
  .row { gap: 8px 12px; }
  input[type=text], input[type=password], textarea { flex-basis: 100%; }
  .btn { flex: 1 1 auto; }
  .author { margin: 40px 0 28px; }
  .author img { width: 120px; }
  #link { word-break: break-all; }
}
