/* track.html — только эта страница. Цвета и шрифты из переменных style.css. */
.tr-form { grid-template-columns: minmax(0, 1fr) 180px; max-width: 720px; margin-top: 28px; }
.tr-go { height: 58px; }
.tr-hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.tr-body { padding-top: 16px; }

.tr-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tr-tips li { display: grid; grid-template-rows: auto auto 1fr; padding: 24px; border-radius: 20px; background: linear-gradient(160deg, var(--cream), var(--soft)); color: var(--slate); line-height: 1.55; }
.tr-tips .hp-ico { width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px; }
.tr-tips b { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 17px; font-weight: var(--w-semi, 600); color: var(--ink); }
.tr-tips a { color: var(--coral-text); }

.tr-card { padding: 32px; border-radius: 24px; background: #fff; box-shadow: var(--sh-ui), 0 0 0 1px var(--line); }
.tr-load { display: flex; align-items: center; gap: 10px; color: var(--slate); }
.motion .tr-load .hp-dot { animation: dot 1s var(--ease-io) infinite alternate; }
.tr-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px dashed var(--line); }
.tr-id { font-size: 24px; font-weight: var(--w-bold, 700); color: var(--ink); }
.tr-id span { font-family: var(--font-body); font-weight: var(--w-semi, 600); color: var(--slate); font-size: 18px; margin-left: 8px; }
.tr-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.tr-logo { height: 15px; width: auto; }
.tr-status { min-width: 260px; padding: 14px 18px; border-radius: 16px; background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--peach-2); }
.tr-status__t { font-family: var(--font-head); font-size: 26px; font-weight: var(--w-bold, 700); color: var(--ink); line-height: 1.2; }
.tr-status__s { font-size: 14px; color: var(--slate); }
.tr-status.is-ok { background: var(--ok-bg); box-shadow: none; }
.tr-status.is-ok .tr-status__t { color: var(--ok); }
.tr-status.is-warn { background: #fff4e6; box-shadow: inset 0 0 0 1.5px #f3b36b; }
.tr-status.is-warn .tr-status__t { color: #9a4a0e; }
.tr-alert { margin-top: 20px; padding: 14px 18px; border-radius: 14px; background: #fff4e6; box-shadow: inset 3px 0 0 #e8892b; color: var(--ink); line-height: 1.5; }

.tr-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 28px; }
/* шкала этапов: серая линия, поверх неё заливка до текущего этапа (::after) */
.tr-steps { position: relative; display: grid; gap: 22px; padding-left: 40px; }
.tr-steps::before, .tr-steps::after { content: ""; position: absolute; left: 11px; top: 14px; height: var(--rail-h, 0px); width: 3px; border-radius: 3px; background: var(--line); }
.tr-steps::after { background: linear-gradient(180deg, var(--coral-hi), var(--coral-dot)); transform-origin: 50% 0; transform: scaleY(var(--k, 0)); }
.tr-steps li { position: relative; display: grid; gap: 2px; color: var(--muted); }
.tr-steps li::before { content: ""; position: absolute; z-index: 1; left: -40px; top: 2px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.tr-steps b { font-size: 16px; font-weight: var(--w-semi, 600); color: var(--muted); }
.tr-steps span { font-size: 14px; line-height: 1.5; }
.tr-steps li.is-done b, .tr-steps li.is-cur b { color: var(--ink); }
.tr-steps li.is-done span, .tr-steps li.is-cur span { color: var(--slate); }
.tr-steps li.is-done::before { background: var(--coral-dot); box-shadow: inset 0 0 0 7px var(--coral-dot); }
.tr-steps li.is-cur::before { background: var(--coral); box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px var(--coral-dot), 0 0 0 7px rgba(var(--btn-rgb), .2); }
.tr-steps li.is-warn::before { background: #e8892b; box-shadow: inset 0 0 0 5px #fff, 0 0 0 2px #e8892b, 0 0 0 7px rgba(232, 137, 43, .2); }
.tr-steps li.is-warn b { color: #9a4a0e; }

.tr-side { padding: 22px; border-radius: 18px; background: var(--soft); }
.tr-side__t { font-size: 13px; font-weight: var(--w-bold, 700); color: var(--muted); margin-bottom: 12px; }
.tr-hist { display: grid; gap: 14px; }
.tr-hist li { display: grid; gap: 2px; padding-left: 14px; border-left: 2px solid var(--line); }
.tr-hist li:first-child { border-left-color: var(--coral-dot); }
.tr-hist b { font-size: 14px; font-weight: var(--w-semi, 600); color: var(--ink); }
.tr-hist small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tr-links { margin-top: 18px; font-size: 14px; }
.tr-links a, .tr-guest a { color: var(--coral-text); font-weight: var(--w-semi, 600); }
.tr-guest { margin-top: 10px; font-size: 13px; color: var(--muted); }

.tr-sub-form { margin-top: 28px; padding-top: 24px; border-top: 1px dashed var(--line); }
.tr-sub-form__t { font-weight: var(--w-semi, 600); margin-bottom: 10px; }
.tr-sub-form__row { display: flex; gap: 8px; max-width: 520px; }
.tr-sub-form input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 10px; background: var(--soft); padding: 0 14px; font-size: 15px; }
.tr-sub-form input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--coral-head); }
.tr-sub-form input[aria-invalid="true"] { background: #fff; box-shadow: inset 0 0 0 2px var(--err); }
.tr-ok { margin-top: 10px; font-size: 14px; font-weight: var(--w-semi, 600); color: var(--ok); }

@media (max-width: 980px) {
  .tr-grid { grid-template-columns: 1fr; }
  .tr-tips { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tr-form { grid-template-columns: 1fr; }
  .tr-card { padding: 18px 14px; border-radius: 20px; }
  .tr-status { min-width: 0; width: 100%; }
  .tr-id { font-size: 20px; }
  .tr-id span { display: block; margin: 2px 0 0; font-size: 15px; }
  .tr-sub-form__row { flex-direction: column; }
}
