:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5e584f;
  --line: #e4ddd2;
  --paper: #f4f1ea;
  --card: #fffdf9;
  --accent: #0f6e56;
  --accent-ink: #ffffff;
  --danger: #9f2d2d;
  --ok: #0f6e56;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
}

.wrap {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.mark {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 32px;
  line-height: 1.2;
}

h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.lead {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.5;
}

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

form,
.drop,
.files {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}

input[type='email'],
input[type='password'] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

button {
  padding: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.45;
  cursor: default;
}

.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.session-row,
.actions,
.file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.session-row p {
  margin: 0;
}

.actions {
  justify-content: flex-start;
  margin-top: 14px;
}

.drop {
  margin-top: 16px;
  padding: 28px 16px;
  border: 1px dashed #c9bfb1;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
}

.drop.hot {
  border-color: var(--accent);
  background: #f3faf7;
}

.drop input {
  display: none;
}

.drop small,
.meta {
  color: var(--muted);
  font-weight: 400;
}

.error {
  margin: 0;
  color: var(--danger);
  font-size: 14px;
}

.files {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.file {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.file strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #ece6dc;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status.ok {
  color: var(--ok);
}

.status.bad {
  color: var(--danger);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.row-actions button {
  padding: 8px 10px;
  font-size: 13px;
}
