/* Личный кабинет MineRoute — мир сайта «Маршрут» (mineroute-site/DESIGN.md): лаймовый маршрут на почти чёрном. */
:root {
  --lime: #c8f04a; --lime-h: #d6f86c; --ink-on-lime: #0b0d08;
  --ground: #08090b; --ground-2: #0c0f13; --card: #0f1216; --card-2: #13171c;
  --line: #1b1f25; --line-2: #232a33; --fog: #f3f5f7; --steel: #959daa; --dim: #7f8794;
  --red: #ff5a4e; --amber: #ffb340; --blue: #5aa9ff; --green: #3ddc84;
  --font: Onest, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ground); color: var(--fog); font: 16px/1.55 var(--font); }
a { color: var(--lime); text-decoration: none; }
a:hover { color: var(--lime-h); text-decoration: underline; }
h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
h2 { font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 12px; }
.lead { color: var(--steel); margin: 0 0 28px; }
.muted { color: var(--steel); }
.small { font-size: 13px; }
.num { font-feature-settings: "tnum"; white-space: nowrap; }

/* каркас */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ground-2); border-right: 1px solid var(--line); padding: 22px 14px; display: flex;
  flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fog); font-weight: 600; font-size: 17px;
  padding: 2px 10px 18px; }
.brand svg { flex: none; }
.brand small { display: block; color: var(--dim); font-weight: 400; font-size: 12.5px; }
.side a.nav { color: var(--steel); padding: 9px 12px; border-radius: 10px; font-size: 15px; }
.side a.nav:hover { color: var(--fog); background: var(--card); text-decoration: none; }
.side a.nav.on { color: var(--ink-on-lime); background: var(--lime); font-weight: 600; }
.side .who { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13px; color: var(--steel); }
.side .who b { color: var(--fog); font-weight: 600; display: block; font-size: 14px; }
.side .who form { margin-top: 10px; display: flex; gap: 12px; align-items: center; }
main { padding: 36px 44px 60px; max-width: 1180px; }

/* карточки и плитки */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.card + .card { margin-top: 16px; }
.tile .k { color: var(--steel); font-size: 13px; }
.tile .v { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; font-feature-settings: "tnum"; }
.tile .s { color: var(--dim); font-size: 13px; margin-top: 2px; }
.ok { color: var(--green); } .warn { color: var(--amber); } .bad { color: var(--red); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line-2);
  color: var(--steel); white-space: nowrap; }
.badge.ok { border-color: rgba(61, 220, 132, .35); color: var(--green); }
.badge.warn { border-color: rgba(255, 179, 64, .4); color: var(--amber); }
.badge.bad { border-color: rgba(255, 90, 78, .4); color: var(--red); }

/* таблицы */
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t th { text-align: left; color: var(--dim); font-weight: 400; font-size: 12.5px; padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t .r { text-align: right; }
.empty { color: var(--steel); padding: 18px 0 4px; }

/* формы */
label { display: block; color: var(--steel); font-size: 13px; margin: 0 0 6px; }
input[type=email], input[type=text], input[type=password], select {
  width: 100%; background: var(--ground-2); color: var(--fog); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 11px 13px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--lime); outline-offset: 1px; border-color: transparent; }
.field { margin-bottom: 16px; }
.row { display: grid; gap: 12px; grid-template-columns: 2fr 2fr 1.3fr auto; align-items: end; }
button, .btn { background: var(--lime); color: var(--ink-on-lime); border: 0; border-radius: 12px; padding: 11px 20px;
  font: 600 15px var(--font); cursor: pointer; display: inline-block; }
button:hover, .btn:hover { background: var(--lime-h); text-decoration: none; color: var(--ink-on-lime); }
button.ghost { background: transparent; color: var(--steel); border: 1px solid var(--line-2); padding: 6px 12px;
  font-weight: 400; font-size: 13px; }
button.ghost:hover { color: var(--fog); border-color: var(--steel); background: transparent; }
button.link { background: none; color: var(--steel); padding: 0; font: 13px var(--font); text-decoration: underline; }
.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.inline select { width: auto; padding: 6px 10px; font-size: 13px; }
.msg { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-size: 14.5px; }
.msg.err { background: rgba(255, 90, 78, .1); border: 1px solid rgba(255, 90, 78, .35); }
.msg.good { background: rgba(200, 240, 74, .08); border: 1px solid rgba(200, 240, 74, .35); }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 13.5px; word-break: break-all; background: var(--ground-2);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; margin-top: 8px; user-select: all; }
pre.req { white-space: pre-wrap; font: 14px/1.6 var(--font); margin: 0; color: var(--fog); }

/* полосы расходов */
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; min-width: 120px; }
.bar i { display: block; height: 100%; background: var(--lime); border-radius: 99px; }

/* вход */
.solo { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.solo .card { width: 100%; max-width: 420px; padding: 32px; }
.solo .brand { padding: 0 0 22px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .brand { width: 100%; padding-bottom: 8px; }
  .side .who { width: 100%; margin-top: 8px; }
  main { padding: 24px 16px 48px; }
  .row { grid-template-columns: 1fr; }
  table.t { font-size: 13.5px; }
}
.narrow { max-width: 460px; }
.note { margin: 22px 0 0; }
.split { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.bar i.w0 { width: 2%; }
.bar i.w5 { width: 5%; }
.bar i.w10 { width: 10%; }
.bar i.w15 { width: 15%; }
.bar i.w20 { width: 20%; }
.bar i.w25 { width: 25%; }
.bar i.w30 { width: 30%; }
.bar i.w35 { width: 35%; }
.bar i.w40 { width: 40%; }
.bar i.w45 { width: 45%; }
.bar i.w50 { width: 50%; }
.bar i.w55 { width: 55%; }
.bar i.w60 { width: 60%; }
.bar i.w65 { width: 65%; }
.bar i.w70 { width: 70%; }
.bar i.w75 { width: 75%; }
.bar i.w80 { width: 80%; }
.bar i.w85 { width: 85%; }
.bar i.w90 { width: 90%; }
.bar i.w95 { width: 95%; }
.bar i.w100 { width: 100%; }
.grid .card + .card { margin-top: 0; }
.bar { margin-top: 7px; }
.card { overflow-x: auto; }
