.tr-body { background: #f1f2f4; color: #16181a; font-family: "Manrope", system-ui, sans-serif; }
.tr-wrap { max-width: 1040px; margin: 0 auto; padding: 1.6rem 1rem 4rem; }
.tr-kicker { margin: 0; font: 600 0.75rem/1 "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; color: #a50d26; }
.tr-h1 { margin: 0.35rem 0 0.5rem; font: 700 clamp(1.9rem, 4vw, 2.6rem)/1.1 "Oswald", sans-serif; color: #111316; }
.tr-h2 { margin: 2rem 0 0.8rem; font: 600 1.25rem/1.2 "Oswald", sans-serif; color: #111316; }
.tr-lead { margin: 0 0 1.2rem; max-width: 46rem; color: #2c3136; line-height: 1.55; }
.tr-muted { color: #464c53; font-size: 0.88rem; margin: 0; }
.tr-muted a, .tr-lead a { color: #0b4f9c; font-weight: 600; }
.tr-err { color: #a50d26; font-weight: 600; margin: 0.6rem 0 0; }
.tr-empty { background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; padding: 1.1rem; color: #2c3136; }

.tr-btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 1.3rem; border: 0; border-radius: 8px; background: #c8102e; color: #fff; font: 700 0.95rem/1 "Manrope", sans-serif; text-decoration: none; cursor: pointer; }
.tr-btn:hover { background: #a50d26; color: #fff; }
.tr-body a.tr-btn, .tr-body a.tr-btn:hover { color: #fff; }
.tr-btn.ghost { background: #fff; color: #16181a; border: 1px solid #9aa2ab; }
.tr-btn.ghost:hover { border-color: #16181a; }
.tr-link { border: 0; background: none; padding: 0.3rem 0; color: #0b4f9c; font: 600 0.95rem "Manrope", sans-serif; cursor: pointer; }

/* Academy hub */
.ac-page { position: relative; }
.ac-page::before { content: ""; position: absolute; top: 0; right: 0; width: 400px; height: 400px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(200, 16, 46, 0.35); transform: rotate(45deg); pointer-events: none; }
.ac-page .tr-kicker { color: #c8102e; }
.ac-page .tr-h1 { font-size: clamp(2.4rem, 5vw, 3.3rem); }
.ac-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.ac-card { position: relative; display: flex; flex-direction: column; gap: 0.7rem; min-height: 360px; padding: 1.5rem 1.4rem 1.3rem; border-radius: 16px; text-decoration: none; line-height: 1.5; overflow: hidden; transition: transform 0.15s, box-shadow 0.15s; }
.ac-card::before { content: ""; position: absolute; top: 10px; right: 0; width: 210px; height: 210px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(232, 17, 45, 0.6); transform: rotate(45deg); pointer-events: none; }
.ac-card strong { position: relative; margin-top: 0.3rem; font: 700 clamp(1.8rem, 2.6vw, 2.2rem)/1.05 "Oswald", sans-serif; letter-spacing: 0.01em; }
.ac-num { position: relative; font: 600 0.9rem/1 "IBM Plex Mono", monospace; }
.ac-ico { position: relative; display: grid; place-items: center; width: 104px; height: 88px; border-radius: 12px; }
.ac-ico svg { width: 60px; height: 52px; }
.ac-desc { position: relative; font-size: 0.98rem; }
.ac-pills { position: relative; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.2rem; }
.ac-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1.1rem 0.45rem 0.8rem; border-radius: 999px; font-size: 0.9rem; font-weight: 600; }
.ac-pill svg { width: 16px; height: 16px; }
.ac-foot { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: auto; padding-top: 0.6rem; }
.ac-go { font: 700 1.05rem "Manrope", sans-serif; }
.ac-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; transition: transform 0.15s; }
.ac-arrow svg { width: 20px; height: 20px; }
.ac-card:hover .ac-arrow { transform: translateX(3px); }

.tr-body a.ac-card--live { background: #16181a; color: #fff; }
.ac-card--live .ac-ico { background: #26292d; }
.ac-card--live .ac-pill { border: 1px solid #4a4f56; color: #fff; }
.ac-card--live .ac-arrow { background: #e8112d; color: #fff; }

.tr-body a.ac-card--train { background: #c8102e; color: #fff; }
.ac-card--train::before { border-top-color: rgba(255, 255, 255, 0.5); }
.ac-card--train .ac-ico { background: rgba(255, 255, 255, 0.14); }
.ac-card--train .ac-pill { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.ac-card--train .ac-arrow { background: #fbf3e4; color: #c8102e; }
.tr-body a.ac-card--live:hover, .tr-body a.ac-card--train:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2); color: #fff; }

.ac-card--soon { background: #fbf6ea; color: #16181a; border: 1px solid #e3dac6; }
.ac-card--soon .ac-ico { background: #efe5cf; }
.ac-card--soon .ac-desc { color: #2c3136; }
.ac-soon { display: inline-block; margin-left: 0.5rem; padding: 0.25rem 0.75rem; border-radius: 999px; background: #16181a; color: #fff; font: 700 0.8rem/1.2 "Manrope", sans-serif; font-style: normal; vertical-align: middle; }
.ac-foot--btn { width: 100%; border: 0; background: none; padding-left: 0; padding-right: 0; color: #16181a; text-align: left; cursor: pointer; }
.ac-card--soon .ac-arrow { background: #16181a; color: #fff; }
.ac-foot--btn:hover .ac-arrow { transform: translateX(3px); }
@media (max-width: 520px) { .ac-card { min-height: 0; } .ac-page::before { display: none; } }

/* Stats + privacy */
.tr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.tr-stat { background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; padding: 0.9rem 1rem; }
.tr-stat b { display: block; font: 700 1.7rem/1 "Oswald", sans-serif; color: #111316; }
.tr-stat span { font-size: 0.8rem; color: #464c53; }
.tr-privacy { margin-top: 0.8rem; padding: 0.8rem 1rem; background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; display: grid; gap: 0.35rem; }
.tr-switch { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; cursor: pointer; }
.tr-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tr-switch span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #8b939c; flex: none; transition: background 0.15s; }
.tr-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.tr-switch input:checked + span { background: #1f6b3a; }
.tr-switch input:checked + span::after { transform: translateX(18px); }
.tr-switch input:focus-visible + span { outline: 2px solid #16181a; outline-offset: 2px; }

/* Hero */
.tr-hero { position: relative; min-height: 190px; margin: -0.4rem 0 1rem; display: flex; align-items: center; }
.tr-hero::before { content: ""; position: absolute; top: -0.6rem; right: 0; width: 400px; height: 400px; border-radius: 50%; border: 1.5px solid transparent; border-top-color: rgba(200, 16, 46, 0.35); transform: rotate(45deg); pointer-events: none; }
.tr-hero ~ * { position: relative; z-index: 1; }
.tr-hero-copy { position: relative; max-width: 34rem; }
.tr-hero .tr-h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.tr-hero .tr-lead { font-size: 1.1rem; margin: 0; }
.tr-gate-ico { width: 40px; height: 40px; border-radius: 50%; background: #fde8eb; color: #c8102e; display: grid; place-items: center; flex: none; }
.tr-gate-ico svg { width: 20px; height: 20px; }
.tr-gate { position: relative; box-shadow: 0 6px 20px rgba(22, 24, 26, 0.08); }
.tr-h2--row { display: flex; align-items: baseline; gap: 0.8rem; font-size: 1.7rem; }
.tr-h2--row span { font: 500 0.9rem "Manrope", sans-serif; color: #464c53; }
.tr-body .site-nav a[href="academy.html"] { box-shadow: inset 0 -2px 0 #c8102e; padding-bottom: 0.3rem; }
.tr-switch-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; margin: 0 -6rem 0.9rem; }
@media (max-width: 900px) { .tr-switch-row { margin: 0 0 0.9rem; } }
.tr-sw { flex: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem 0.3rem 0.3rem; border: 1px solid #c9ced4; border-radius: 999px; background: #fff; color: #16181a; font: 600 0.8rem "Manrope", sans-serif; cursor: pointer; white-space: nowrap; }
.tr-sw .tr-icon { width: 24px; height: 24px; padding: 2px; border-radius: 50%; background: #16181a; }
.tr-sw:hover { border-color: #16181a; }
.tr-sw.is-on { background: #16181a; border-color: #16181a; color: #fff; }
.tr-sw.is-on .tr-icon { background: #3a3f45; }
.tr-guest { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 999px; background: #e4e7eb; color: #2c3136; font-size: 0.75rem; font-weight: 700; }
.tr-rule { margin: 1rem 0 0; padding: 0.8rem 1rem; background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; color: #2c3136; font-size: 0.88rem; line-height: 1.5; }

/* Drill cards (макет) */
.tr-card { position: relative; display: flex; flex-direction: column; min-height: 270px; padding: 0.9rem 1rem 0.9rem; border: 1px solid #e3dccb; border-radius: 12px; background: #fffaf1; color: #16181a; font: inherit; text-align: left; cursor: pointer; overflow: hidden; box-shadow: 0 4px 14px rgba(22, 24, 26, 0.06); transition: transform 0.15s, box-shadow 0.15s; }
.tr-card::before { content: ""; position: absolute; left: -60px; top: 40px; width: 180px; height: 180px; border-radius: 50%; border: 1.5px solid rgba(200, 16, 46, 0.22); pointer-events: none; }
.tr-card:hover, .tr-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 24, 26, 0.16); outline: none; }
.tr-card:focus-visible { outline: 3px solid #16181a; outline-offset: 2px; }
.tr-body a.tr-card { text-decoration: none; color: #16181a; }
.tr-card-mark { position: absolute; right: 0.5rem; top: 1.2rem; font: 700 4.6rem/1 "Oswald", sans-serif; color: rgba(22, 24, 26, 0.07); pointer-events: none; }
.tr-card-tag { position: relative; align-self: flex-start; padding: 0.2rem 0.6rem; border-radius: 999px; background: #eee7d8; color: #16181a; font: 700 0.66rem/1.3 "IBM Plex Mono", monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.tr-card-art { position: relative; display: flex; justify-content: center; margin: 0.2rem 0 0.4rem; height: 110px; }
.tr-art { height: 100%; width: auto; max-width: 100%; overflow: visible; transition: transform 0.25s ease; }
.tr-card:hover .tr-art { transform: scale(1.05); }
.tr-card-title { position: relative; font: 700 1.3rem/1.15 "Oswald", sans-serif; color: #111316; }
.tr-card-desc { position: relative; margin-top: 0.25rem; font-size: 0.86rem; color: #2c3136; }
.tr-card-foot { position: relative; display: flex; align-items: center; gap: 0.6rem; margin-top: auto; padding-top: 0.8rem; }
.tr-card-pill { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.7rem; border: 1px solid #d8d0bf; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: #16181a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-card-pill svg { width: 16px; height: 16px; flex: none; color: #c8102e; }
.tr-card-go { width: 40px; height: 40px; border-radius: 50%; background: #c8102e; color: #fff; display: grid; place-items: center; flex: none; transition: transform 0.15s; }
.tr-card-go svg { width: 18px; height: 18px; }
.tr-card:hover .tr-card-go { transform: translateX(3px); }

.tr-card--red { background: #c8102e; border-color: #c8102e; }
.tr-card--red::before { border-color: rgba(255, 255, 255, 0.25); }
.tr-card--red .tr-card-mark { color: rgba(255, 255, 255, 0.16); }
.tr-card--red .tr-card-tag { background: rgba(0, 0, 0, 0.28); color: #fff; }
.tr-card--red .tr-card-title, .tr-card--red .tr-card-desc { color: #fff; }
.tr-card--red .tr-card-pill { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.tr-card--red .tr-card-pill svg { color: #fff; }
.tr-card--red .tr-card-go { background: #fff; color: #c8102e; }

.tr-card--dark { background: #16181a; border-color: #16181a; }
.tr-card--dark::before { border-color: rgba(224, 20, 47, 0.4); }
.tr-card--dark .tr-card-mark { color: rgba(255, 255, 255, 0.08); }
.tr-card--dark .tr-card-tag { background: #3a3f45; color: #fff; }
.tr-card--dark .tr-card-title, .tr-card--dark .tr-card-desc { color: #fff; }
.tr-card--dark .tr-card-pill { border-color: #5a6068; color: #fff; }
.tr-card--dark .tr-card-pill svg { color: #ff5a6e; }

/* Drill cards (хуучин) */
.tr-drills { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 980px) { .tr-drills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tr-drills { grid-template-columns: 1fr; } .tr-hero::before { display: none; } }
.tr-drill { position: relative; display: flex; flex-direction: column; gap: 0.6rem; padding: 1.05rem 1.05rem 0.9rem; border: 1px solid #c9ced4; border-radius: 14px; background: #fff; color: #2c3136; font: inherit; font-size: 0.85rem; line-height: 1.45; text-align: left; cursor: pointer; overflow: hidden; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.tr-drill::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: #16181a; }
.tr-drill:hover, .tr-drill:focus-visible { border-color: #c8102e; box-shadow: 0 10px 24px rgba(22, 24, 26, 0.14); transform: translateY(-2px); outline: none; }
.tr-drill:hover::before, .tr-drill:focus-visible::before { background: #c8102e; }
.tr-drill.is-locked { cursor: default; }
.tr-drill.is-locked:hover { transform: none; box-shadow: none; border-color: #c9ced4; }
.tr-drill-head { display: flex; align-items: center; gap: 0.8rem; }
.tr-icon-wrap { flex: none; width: 64px; height: 64px; padding: 5px; border-radius: 16px; background: #16181a; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.tr-icon { width: 100%; height: 100%; display: block; }
.tr-drill:hover .tr-icon { transform: rotate(-9deg); }
.tr-icon { transition: transform 0.25s ease; }
.tr-drill-title { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.tr-drill-title strong { font: 600 1.15rem/1.15 "Oswald", sans-serif; color: #111316; }
.tr-tag { align-self: flex-start; padding: 0.1rem 0.5rem; border-radius: 999px; background: #eceef1; color: #2c3136; font: 600 0.68rem/1.4 "IBM Plex Mono", monospace; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.tr-drill-desc { color: #3a3f45; }
.tr-drill-foot { margin-top: auto; padding-top: 0.6rem; border-top: 1px solid #e4e7eb; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; color: #2c3136; }
.tr-play-cta { margin-left: auto; color: #a50d26; font-weight: 700; }
.tr-play-name { display: inline-flex; align-items: center; gap: 0.45rem; }
.tr-play-name .tr-icon { width: 30px; height: 30px; padding: 2px; border-radius: 8px; background: #16181a; }
.tr-drill-foot b { color: #111316; }
.tr-drill-foot em { color: #464c53; }
.tr-spark { width: 90px; height: 24px; margin-left: auto; }
.tr-spark polyline { fill: none; stroke: #c8102e; stroke-width: 2; stroke-linejoin: round; }
.tr-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid #d3d7dc; border-radius: 12px; }
.tr-gate p { margin: 0; flex: 1 1 260px; }

/* History */
.tr-table { background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; overflow: hidden; }
.tr-tr { display: grid; grid-template-columns: 150px 1fr 120px 60px 40px; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-top: 1px solid #e4e7eb; font-size: 0.9rem; color: #16181a; }
.tr-th { border-top: 0; background: #16181a; color: #fff; font: 600 0.72rem/1.2 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.tr-tr .num { text-align: right; }
.tr-x { width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: #464c53; font-size: 1.1rem; cursor: pointer; }
.tr-x:hover { background: #fde8eb; color: #a50d26; }

/* Play */
.tr-play { max-width: 560px; margin: 0 auto; }
.tr-play-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.tr-play-top strong { font: 600 1.15rem "Oswald", sans-serif; }
.tr-board { background: #16181a; color: #fff; border-radius: 16px; padding: 1.3rem 1rem 1.1rem; text-align: center; }
.tr-target { font: 700 clamp(3.6rem, 16vw, 5.5rem)/1 "Oswald", sans-serif; letter-spacing: 0.02em; }
.tr-sub { margin-top: 0.3rem; color: #e1e4e8; font-size: 0.95rem; }
.tr-pips { display: flex; justify-content: center; gap: 0.6rem; margin: 1rem 0 0.4rem; }
.tr-pip { width: 54px; height: 54px; border-radius: 12px; border: 2px dashed #7d858e; display: grid; place-items: center; font: 700 1.2rem "Oswald", sans-serif; color: #fff; }
.tr-pip.is-hit { border: 2px solid #fff; background: #1f6b3a; }
.tr-pip.is-miss { border: 2px solid #7d858e; background: #3a3f45; }
.tr-entry { margin: 0.9rem auto 0.3rem; max-width: 220px; padding: 0.4rem; border-radius: 10px; background: #fff; color: #111316; font: 700 2.6rem/1 "Oswald", sans-serif; }
.tr-score { margin-top: 0.5rem; color: #e1e4e8; }
.tr-score b { color: #fff; font-size: 1.2rem; }

.tr-pad { display: grid; gap: 0.55rem; margin-top: 0.9rem; }
.tr-pad--2 { grid-template-columns: 1fr 1fr; }
.tr-pad--3 { grid-template-columns: repeat(3, 1fr); }
.tr-pad--4 { grid-template-columns: repeat(4, 1fr); }
.tr-pad--num { grid-template-columns: repeat(3, 1fr); }
.tr-key { min-height: 68px; border: 1px solid #aeb5bd; border-radius: 12px; background: #fff; color: #111316; font: 700 1.15rem "Manrope", sans-serif; cursor: pointer; touch-action: manipulation; user-select: none; }
.tr-key:active { transform: scale(0.97); }
.tr-key.hot { background: #c8102e; border-color: #c8102e; color: #fff; }
.tr-key.miss { background: #e4e7eb; color: #111316; }
.tr-key.undo { grid-column: 1 / -1; min-height: 48px; background: #fff; color: #16181a; font-size: 0.95rem; }
.tr-pad--num .tr-key.undo { grid-column: auto; min-height: 68px; }
.tr-key.wide { grid-column: 1 / -1; min-height: 48px; font-size: 0.95rem; }
.tr-quick { display: grid; grid-template-columns: repeat(9, 1fr); gap: 0.35rem; margin-top: 0.9rem; }
.tr-qk { min-height: 40px; border: 1px solid #aeb5bd; border-radius: 8px; background: #fff; color: #111316; font: 700 0.85rem "Manrope", sans-serif; cursor: pointer; }
.tr-qk:hover { border-color: #16181a; }

/* Result */
.tr-result { max-width: 560px; margin: 0 auto; text-align: center; }
.tr-result-score { margin: 0.6rem 0 0.4rem; font: 700 4.2rem/1 "Oswald", sans-serif; color: #111316; }
.tr-result-score small { font-size: 1.2rem; color: #464c53; }
.tr-pb { display: inline-block; padding: 0.3rem 0.8rem; border-radius: 999px; background: #1f6b3a; color: #fff; font-weight: 700; }
.tr-result-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; margin: 1.2rem 0; text-align: left; }
.tr-result-stats div { background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; padding: 0.6rem 0.8rem; }
.tr-result-stats span { display: block; font-size: 0.78rem; color: #464c53; }
.tr-result-stats b { font-size: 1.15rem; color: #111316; }
.tr-result-act { display: flex; justify-content: center; gap: 0.6rem; }

/* Profile section */
.pt-sec .pt-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-bottom: 0.8rem; }
.pt-sec .pt-stats div { background: #fff; border: 1px solid #d3d7dc; border-radius: 10px; padding: 0.7rem 0.9rem; }
.pt-sec .pt-stats b { display: block; font: 700 1.5rem/1 "Oswald", sans-serif; color: #111316; }
.pt-sec .pt-stats span { font-size: 0.78rem; color: #464c53; }
.pt-row { display: grid; grid-template-columns: 1fr 90px 120px 110px; gap: 0.5rem; align-items: center; padding: 0.55rem 1rem; border-top: 1px solid #e4e7eb; font-size: 0.9rem; color: #16181a; }
.pt-row.pt-head { border-top: 0; background: #16181a; color: #fff; font: 600 0.7rem/1.2 "IBM Plex Mono", monospace; letter-spacing: 0.08em; }
.pt-row .num { text-align: right; }
.pt-owner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; margin-top: 0.7rem; font-size: 0.88rem; color: #2c3136; }
.pt-owner a { color: #0b4f9c; font-weight: 600; }
.pt-badge { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: #fff; background: #464c53; }
.pt-badge.on { background: #1f6b3a; }

/* Дутуу явц, чиг хандлага */
.tr-card-extra { position: relative; display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.tr-card-resume { display: inline-block; padding: 0.2rem 0.55rem; border-radius: 6px; background: #16181a; color: #fff; font-size: 0.74rem; font-weight: 700; }
.tr-card--dark .tr-card-resume { background: #fff; color: #16181a; }
.tr-card--red .tr-card-resume { background: #fff; color: #a00d25; }
.tr-trend { display: inline-block; padding: 0.2rem 0.5rem; border-radius: 6px; font-size: 0.74rem; font-weight: 700; white-space: nowrap; }
.tr-trend--up { background: #e1f2e6; color: #155c2d; }
.tr-trend--down { background: #fbe4e7; color: #9c1026; }
.tr-trend--flat { background: #eceef1; color: #30353b; }
.tr-draft-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin: 0 0 0.7rem; padding: 0.5rem 0.8rem; border-radius: 10px; background: #fff; border: 1px solid #d3d7dc; font-size: 0.84rem; color: #2c3136; }
.tr-draft-note .tr-link { font-weight: 700; color: #a00d25; }

/* Ахиц */
.tr-prog { margin-top: 0.4rem; }
.tr-prog-tabs { justify-content: flex-start; margin: 0 0 0.9rem; }
.tr-pers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.tr-per { background: #fff; border: 1px solid #d3d7dc; border-radius: 12px; padding: 0.9rem 1rem; }
.tr-per-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; font: 600 0.72rem/1.2 "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; color: #30353b; }
.tr-per-val { display: block; margin: 0.45rem 0 0.2rem; font: 700 2rem/1 "Oswald", sans-serif; color: #111316; }
.tr-per-val small { font: 600 0.8rem "Manrope", sans-serif; color: #464c53; }
.tr-per-val--none { color: #464c53; }
.tr-per p { margin: 0.15rem 0 0; font-size: 0.84rem; color: #2c3136; }
.tr-per .tr-per-prev { margin-top: 0.45rem; padding-top: 0.45rem; border-top: 1px solid #e4e7eb; color: #464c53; }
.tr-chart-wrap { margin-top: 0.7rem; background: #fff; border: 1px solid #d3d7dc; border-radius: 12px; padding: 0.8rem 1rem 0.5rem; }
.tr-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem; font-size: 0.88rem; color: #16181a; }
.tr-legend { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; color: #464c53; }
.tr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.tr-legend i.bar { background: #c8102e; }
.tr-legend i.best { border-radius: 50%; background: #16181a; margin-left: 0.4rem; }
.tr-chart { display: block; width: 100%; height: auto; margin-top: 0.4rem; }
.tr-chart .bar { fill: #c8102e; }
.tr-chart .best { fill: #16181a; stroke: #fff; stroke-width: 1.2; }
.tr-chart .ax { stroke: #8a929b; stroke-width: 1; }
.tr-chart .grid { stroke: #d3d7dc; stroke-dasharray: 3 4; }
.tr-chart text { font: 600 10px "IBM Plex Mono", monospace; fill: #464c53; }
.tr-daytable { margin-top: 0.7rem; }
.tr-daytable .tr-tr { grid-template-columns: 1fr 70px 90px 90px 70px; }

@media (max-width: 640px) {
	.tr-pers { grid-template-columns: 1fr; }
	.tr-daytable .tr-tr { grid-template-columns: 1fr 60px 70px 70px; }
	.tr-daytable .tr-tr > :nth-child(1) { display: block; }
	.tr-daytable .tr-tr > :nth-child(4) { display: block; }
	.tr-daytable .tr-tr > :nth-child(5) { display: none; }
	.tr-stats, .pt-sec .pt-stats { grid-template-columns: repeat(2, 1fr); }
	.tr-tr { grid-template-columns: 1fr 90px 36px; }
	.tr-tr > :nth-child(1), .tr-tr > :nth-child(4) { display: none; }
	.tr-quick { grid-template-columns: repeat(5, 1fr); }
	.pt-row { grid-template-columns: 1fr 70px 90px; }
	.pt-row > :nth-child(4) { display: none; }
}
