:root {
  --bg: #081018;
  --panel: #132236;
  --panel-soft: #1d3553;
  --text: #f8fafc;
  --muted: #9fb5cd;
  --accent: #ff5d2e;
  --danger: #dc2626;
  --line: #325174;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at 15% 20%, #183153 0%, var(--bg) 50%);
  color: var(--text);
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.card {
  background: linear-gradient(180deg, var(--panel) 0%, #0f1b2b 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.hidden { display: none; }

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 12px;
}

@media (min-width: 900px) {
  .layout { grid-template-columns: 1fr 1fr; }
}

.block {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.grid {
  display: grid;
  gap: 8px;
}

input, textarea, button {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 14px;
}

input, textarea {
  background: #0b1624;
  color: var(--text);
}

button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button.danger { background: var(--danger); }
button.secondary { background: #475569; }

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

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

.muted { color: var(--muted); }

.message {
  min-height: 20px;
  margin: 8px 0 0;
  color: #ffe082;
}

.status {
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  border: 1px solid transparent;
}

.status[data-tone="ok"] {
  color: #c7f9cc;
  background: #0f2c1a;
  border-color: #1f7a45;
}

.status[data-tone="warn"] {
  color: #ffe082;
  background: #2a2308;
  border-color: #8f7a1a;
}

.status[data-tone="error"] {
  color: #fecaca;
  background: #2d0b0b;
  border-color: #b91c1c;
}

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

.list li {
  background: #0b1624;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #0b1624;
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff5d2e, #f59e0b);
  transition: width 0.2s ease;
}
