/* track.quadrocicle.ru — своя гамма и раскладка поверх общих стилей */
:root { --accent: #1f6f43; --accent-ink: #ffffff; --accent-soft: #d6eadc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --accent: #4cc38a; --accent-ink: #062113; --accent-soft: #1d3a2b; } }
:root[data-theme="dark"] { --accent: #4cc38a; --accent-ink: #062113; --accent-soft: #1d3a2b; }

.brand-logo { border-radius: 9px; }
.brand-dim { color: var(--muted); font-weight: 400; }
.me-link { display: inline-flex; align-items: center; gap: 8px; max-width: 220px; }
.me-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-ava { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 700 13px var(--f-body); flex-shrink: 0; }
.me-ava.lg { width: 56px; height: 56px; font-size: 24px; }
@media (max-width: 560px) { .me-name { display: none; } }

.plan-head { align-items: flex-start; }
.plan-head .sub { max-width: 70ch; }
.draft-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.plan-map { display: grid; gap: 10px; min-width: 0; }
.plan-mapbox { height: min(70vh, 680px); min-height: 380px; }
.plan-side { position: sticky; top: 76px; display: grid; gap: 4px; }
.plan-save { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.plan-save .btn.primary { flex: 1 1 100%; justify-content: center; }
.small-note { font-size: 12px; margin: 6px 0 0; }
.locate-btn { width: 30px; height: 30px; display: grid !important; place-items: center; background: var(--surface); color: var(--ink); }
.locate-btn:hover { color: var(--accent); }
@media (max-width: 980px) {
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-side { position: static; }
  .plan-mapbox { height: 62vh; min-height: 320px; }
}

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; color: var(--muted); }
.check input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.auth-links a { color: var(--accent); }
.ok-msg { margin: 0; color: var(--ok); font-weight: 600; }
.narrow { max-width: 480px; margin: 24px auto; }
.narrow .form { display: grid; gap: 12px; }

.my-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.my-profile { display: grid; gap: 14px; position: sticky; top: 76px; }
.me-big { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.me-big div { display: grid; min-width: 0; }
.me-big b { font-size: 17px; overflow-wrap: anywhere; }
.me-big .muted { font-size: 13px; overflow-wrap: anywhere; }
.my-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.my-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.my-tools input[type="search"] { flex: 1 1 220px; width: auto; }
.my-tools select { width: auto; }
.route-list { display: grid; gap: 12px; }
.route-card { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c, var(--accent)); border-radius: var(--r-lg); padding: 12px 14px; box-shadow: var(--shadow); }
.rc-thumb { display: block; background: var(--surface-2); border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; }
.rc-thumb svg { width: 100%; height: 100%; display: block; }
.rc-body { display: grid; gap: 6px; min-width: 0; }
.rc-body h3 { margin: 0; font: 700 17px/1.3 var(--f-body); }
.rc-body h3 a { color: var(--ink); text-decoration: none; }
.rc-body h3 a:hover { color: var(--accent); }
.rc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.rc-desc { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rc-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 900px) { .my-grid { grid-template-columns: minmax(0, 1fr); } .my-profile { position: static; } }
@media (max-width: 620px) {
  .route-card { grid-template-columns: 110px minmax(0, 1fr); }
  .rc-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
}
.brand-logo { width: 36px; height: 36px; background: none; box-shadow: none; }
.plan-side .diff-pick { grid-template-columns: 1fr; } .plan-side .diff-pick button { display: grid; grid-template-columns: auto auto minmax(0,1fr); align-items: center; gap: 4px 8px; } .plan-side .diff-pick small { grid-column: 1 / -1; }
