:root {
  --bg: #121316;
  --panel: #1b1e24;
  --line: #313746;
  --text: #e9edf8;
  --muted: #aeb6cb;
  --accent: #e8c63a;
  --ok: #2ea043;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Raleway, Segoe UI, sans-serif;
  background: radial-gradient(circle at 20% 0%, #1f2330 0%, #121316 55%);
  color: var(--text);
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 26px 18px 40px;
}

h1 {
  margin: 0 0 10px;
  font-size: 2.2rem;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.1rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

input, button, select {
  font: inherit;
}

input[type="text"], input[type="password"] {
  width: 100%;
  border: 1px solid #40485e;
  background: #10141d;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  background: #30374a;
  color: #fff;
  cursor: pointer;
}

.btn:hover { opacity: 0.92; }
.btn.primary { background: var(--accent); color: #1f1b05; font-weight: 700; }
.btn.success { background: var(--ok); }
.btn.danger { background: #c0392b; }

.status {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #151922;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #3a4153;
  background: #0f1118;
}

.meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #313848;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

.table th { color: var(--muted); font-size: 0.9rem; }

.table input[type="text"] { min-width: 140px; }

.small { font-size: 0.86rem; color: var(--muted); }

.summary-box {
  border: 1px solid #4f5d80;
  border-left: 5px solid var(--accent);
  border-radius: 10px;
  background: #131a27;
  padding: 12px 14px;
  margin: 10px 0 18px;
  font-size: 1.05rem;
}

.howto-list {
  margin: 10px 0 14px 20px;
  padding: 0;
}

.howto-list li {
  margin: 8px 0;
}

.howto-list a {
  color: #79c0ff;
}

.big-list li {
  font-size: 1.08rem;
  line-height: 1.55;
}

.big-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 1.08rem;
  font-weight: 700;
}

.howto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 980px;
}

.howto-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #151922;
  overflow: hidden;
}

.howto-card img {
  width: 100%;
  display: block;
  background: #0f1118;
}

.howto-card figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 1.04rem;
}

@media (max-width: 760px) {
  .table,
  .table thead,
  .table tbody,
  .table tr,
  .table td,
  .table th { display: block; }
  .table thead { display: none; }
  .table tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; padding: 8px; }
  .table td { border: 0; padding: 6px 0; }
}
