/* ══════════════════════════════════════════
   SECTIONS — achievements, eddington, monthly,
   best efforts, gear, photos, segments
══════════════════════════════════════════ */

/* Achievement badges */
.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.ach-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, transform .2s;
}

.ach-badge.unlocked { border-color: var(--ach-color, var(--orange)); }
.ach-badge.unlocked:hover { transform: translateY(-2px); }
.ach-badge:not(.unlocked) { opacity: .28; }

.ach-badge-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ach-color, var(--orange));
  border-radius: 3px 3px 0 0;
}

.ach-badge-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  flex-shrink: 0;
}

.ach-badge-val { font-size: 20px; font-weight: 800; line-height: 1; }
.ach-badge-unit { font-size: 10px; color: var(--muted); }
.ach-badge-name { font-size: 11px; font-weight: 700; color: var(--text); }

.kom-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}

.kom-item {
  background: var(--surface);
  border: 1px solid rgba(255, 215, 0, .14);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color .15s;
}

.kom-item:hover { border-color: rgba(255, 215, 0, .32); }

.kom-crown {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 215, 0, .08);
  border: 1.5px solid #ffd700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Eddington */
.eddy-wrap { display: flex; align-items: center; gap: 28px; }

.eddy-num {
  font-size: 80px;
  font-weight: 900;
  letter-spacing: -5px;
  color: var(--orange);
  line-height: 1;
  text-shadow: 0 0 48px var(--orange-glow);
  flex-shrink: 0;
}

.eddy-info { flex: 1; }
.eddy-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.eddy-desc { font-size: 12px; color: var(--muted); line-height: 1.6; }
.eddy-next { margin-top: 12px; font-size: 12px; color: var(--muted); }
.eddy-next strong { color: var(--text); }

/* Monthly table */
.month-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.month-table th {
  text-align: left;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.month-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.month-table tr:last-child td { border-bottom: none; }
.month-table tr:hover td { background: var(--surface2); }
.month-table .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.month-table .dim { color: var(--muted); font-size: 11px; }

/* Best efforts */
.best-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}

.best-card-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.best-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.best-row:last-child { border-bottom: none; }
.best-rank { width: 20px; font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.best-rank.gold { color: #f5c518; }
.best-rank.silver { color: #aaa; }
.best-rank.bronze { color: #cd7f32; }

.best-name {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}

.best-val { font-size: 14px; font-weight: 800; color: var(--text); flex-shrink: 0; }

/* Gear */
.gear-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  transition: border-color .15s;
}

.gear-card:hover { border-color: var(--border-hover); }

.gear-primary {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  background: var(--orange-dim);
  color: var(--orange);
  border-radius: 4px;
  padding: 2px 7px;
  text-transform: uppercase;
  margin-left: 8px;
}

.gear-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; }
.gear-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.gear-stat-val { font-size: 20px; font-weight: 800; color: var(--text); }

.gear-stat-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* Photos */
.photo-tile {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--surface2);
  cursor: pointer;
}

.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.photo-tile:hover img { transform: scale(1.05); }
.photo-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px; pointer-events: none;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  box-shadow: 0 2px 12px rgba(0,0,0,.5);
}
.photo-count {
  position: absolute; top: 6px; right: 6px; z-index: 1;
  font-size: 10px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.55); border-radius: 6px; padding: 2px 7px;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); pointer-events: none;
}
.photo-skel {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--surface2) 30%, var(--surface3) 50%, var(--surface2) 70%);
  background-size: 200% 100%; animation: photoShimmer 1.2s ease-in-out infinite;
}
@keyframes photoShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.photo-failed .photo-skel { animation: none; opacity: .35; }

.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 6px 8px 8px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity .2s;
}

.photo-tile:hover .photo-caption { opacity: 1; }

.photo-caption span {
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Segments — sleek dark/minimal ── */
/* Summary record tiles */
.seg-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}
.seg-sum { background: var(--surface); padding: 15px 18px; }
.seg-sum-top { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 9px; }
.seg-sum-val { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1; letter-spacing: -.5px; }
.seg-sum-val span { font-size: 11px; font-weight: 600; opacity: .45; margin-left: 4px; }
.seg-sum-name { font-size: 10px; color: var(--muted); margin-top: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Filter + sort controls */
.seg-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.seg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-chip-btn { background: var(--surface2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 20px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.seg-chip-btn:hover { border-color: var(--border-hover); color: var(--text); }
.seg-chip-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.seg-chip-n { font-size: 10px; opacity: .6; font-weight: 800; margin-left: 2px; }
.seg-sort { background: var(--surface2); border: 1px solid var(--border); color: var(--text); font-size: 12px; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; outline: none; }
.seg-tools { display: flex; gap: 8px; align-items: center; }
.seg-scan { background: var(--surface2); border: 1px solid var(--border); color: var(--text-2); font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: var(--radius-sm); cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s; }
.seg-scan:hover { border-color: var(--border-hover); color: var(--text); }
.seg-scan:disabled { opacity: .6; cursor: default; }
.seg-scan-title { font-size: 12px; font-weight: 700; color: var(--text-2); margin: 24px 0 10px; }

/* Card grid */
.seg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.seg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .18s;
}
.seg-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 34px rgba(0,0,0,.45);
  transform: translateY(-3px);
}
.seg-card.is-kom { border-color: rgba(255, 215, 0, .3); }
.seg-card.is-kom:hover { border-color: rgba(255, 215, 0, .6); box-shadow: 0 12px 34px rgba(255,215,0,.1); }

/* Map hero */
.seg-map-wrap { position: relative; height: 180px; background: var(--surface2); flex-shrink: 0; overflow: hidden; }
.seg-map { position: absolute; inset: 0; background: var(--surface2); }

.seg-badges {
  position: absolute; top: 10px; left: 10px; right: 10px; z-index: 500;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 6px;
  pointer-events: none;
}
.seg-chip {
  font-size: 11px; font-weight: 800; color: #000;
  padding: 3px 9px; border-radius: 20px; line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0,0,0,.45);
}
.seg-chip.seg-kom {
  background: #ffd700; font-size: 9px; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 6px;
}

.seg-overlay {
  position: absolute; inset: auto 0 0 0; z-index: 500;
  padding: 42px 14px 12px;
  background: linear-gradient(to top, rgba(0,0,0,.93) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
}
.seg-name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 800; color: #fff; text-decoration: none; line-height: 1.3;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); transition: color .15s;
}
.seg-name:hover { color: var(--orange); }
.seg-loc { font-size: 10px; color: rgba(255,255,255,.55); margin-top: 3px; }

/* Expand-to-big-map button */
.seg-expand {
  position: absolute; top: 10px; right: 10px; z-index: 600;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.55); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background .15s, border-color .15s;
}
.seg-card.is-kom .seg-expand { top: 46px; }
.seg-expand:hover { background: var(--orange); border-color: var(--orange); }

/* Body */
.seg-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.seg-pr { display: flex; align-items: baseline; gap: 9px; }
.seg-pr-lbl { font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); align-self: center; }
.seg-pr-time { font-size: 28px; font-weight: 900; color: var(--orange); letter-spacing: -1px; line-height: 1; }
.seg-pr-speed { font-size: 12px; color: var(--text-2); font-weight: 600; }
.seg-pr-empty { font-size: 12px; color: var(--text-3); font-weight: 600; }

.seg-metrics {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 8px;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.seg-m { display: flex; flex-direction: column; gap: 3px; }
.seg-m-lbl { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg-m-val { font-size: 13px; font-weight: 700; color: var(--text); }
.seg-m-val.kom { color: #ffd700; }

/* Footer */
.seg-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 16px; background: var(--surface2); border-top: 1px solid var(--border);
  font-size: 10px; color: var(--muted); flex-shrink: 0;
}
.seg-link { color: var(--orange); font-weight: 700; text-decoration: none; font-size: 10px; }
.seg-link:hover { text-decoration: underline; }

/* ── Milestones — runner / cyclist ── */
.ms-modebar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.ms-switch { display: inline-flex; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ms-switch button { background: transparent; border: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 8px 16px; cursor: pointer; transition: background .15s, color .15s; }
.ms-switch button.active { background: var(--orange); color: #fff; }
.ms-switch button:not(.active):hover { color: var(--text); }

.mst-banner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.mst-cell { background: var(--surface); padding: 20px 18px; text-align: center; }
.mst-cv { font-size: 30px; font-weight: 900; color: var(--text); line-height: 1; letter-spacing: -1px; }
.mst-cl { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.mst-cs { font-size: 11px; font-weight: 700; color: var(--orange); margin-top: 4px; }

.mst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mst-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; transition: border-color .2s, transform .18s, box-shadow .2s; }
.mst-card:hover { border-color: var(--border-hover); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.mst-ic { flex-shrink: 0; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.mst-ic svg { width: 22px; height: 22px; }
.mst-info { min-width: 0; }
.mst-lbl { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mst-val { font-size: 26px; font-weight: 900; color: var(--text); line-height: 1.1; letter-spacing: -.5px; }
.mst-val span { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.mst-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) { .mst-banner { grid-template-columns: repeat(2, 1fr); } }

/* ── Cycling / Running — layout spacing ── */
#cyclingSection > .card, #runningSection > .card { display: flex; flex-direction: column; gap: 24px; }
#cyclingSection .cycling-hero, #runningSection .cycling-hero { margin-bottom: 2px; }
#cyclingSection .g2, #runningSection .g2 { gap: 20px; }

/* ── Cycling — Top 5 fastest leaderboard ── */
.ctop-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--text-2); margin: 4px 0 10px; }
.ctop-list { display: flex; flex-direction: column; gap: 6px; }
.ctop-row {
  display: grid; grid-template-columns: 28px minmax(0,1fr) 90px auto; align-items: center; gap: 14px;
  padding: 10px 14px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); text-decoration: none;
  transition: border-color .15s, background .15s, transform .15s;
}
.ctop-row:hover { border-color: var(--border-hover); background: var(--surface3); transform: translateX(2px); }
.ctop-rank { font-size: 15px; font-weight: 900; color: var(--muted); text-align: center; }
.ctop-row:first-child .ctop-rank { color: var(--orange); }
.ctop-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ctop-name { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctop-meta { font-size: 10px; color: var(--muted); }
.ctop-bar { height: 6px; background: var(--surface4); border-radius: 3px; overflow: hidden; }
.ctop-bar-fill { display: block; height: 100%; background: var(--orange); border-radius: 3px; }
.ctop-val { font-size: 17px; font-weight: 900; color: var(--text); letter-spacing: -.5px; white-space: nowrap; }
.ctop-val i { font-size: 10px; font-weight: 600; font-style: normal; color: var(--muted); margin-left: 3px; }

@media (max-width: 560px) {
  .ctop-row { grid-template-columns: 24px minmax(0,1fr) auto; gap: 10px; }
  .ctop-bar { display: none; }
}

/* ── Rewind — year-over-year comparison ── */
.ryc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.ryc-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr .9fr; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 14px; }
.ryc-row:last-child { border-bottom: none; }
.ryc-head { background: var(--surface2); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ryc-head span { text-align: right; }
.ryc-head span:first-child { text-align: left; }
.ryc-head span:nth-child(2) { color: var(--orange); }
.ryc-l { color: var(--muted); font-weight: 600; }
.ryc-a, .ryc-b, .ryc-d { text-align: right; }
.ryc-a { color: var(--text); font-weight: 800; }
.ryc-b { color: var(--text-2); font-weight: 700; }
.ryc-d { font-weight: 800; font-size: 12px; color: var(--muted); }
.ryc-d.up { color: #4ade80; }
.ryc-d.down { color: #f87171; }
@media (max-width: 560px) { .ryc-row { grid-template-columns: 1.2fr 1fr 1fr .8fr; padding: 11px 12px; font-size: 12px; gap: 6px; } }

/* ── Help & Data ── */
.help-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; max-width: 920px; }
.help-card h3 { font-size: 15px; font-weight: 800; color: var(--text); margin: 0 0 14px; }
.help-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.help-list li { font-size: 13px; line-height: 1.6; color: var(--text-2); }
.help-list b, .help-gloss b { color: var(--text); font-weight: 700; }
.help-card code { background: var(--surface3); color: var(--orange); font-size: 12px; padding: 1px 6px; border-radius: 4px; }
.help-gloss { margin: 0; display: flex; flex-direction: column; }
.help-gloss > div { padding: 13px 0; border-bottom: 1px solid var(--border); }
.help-gloss > div:last-child { border-bottom: none; }
.help-gloss dt { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.help-gloss dd { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text-2); }
.help-muted { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── Photo lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.92); backdrop-filter: blur(6px);
  padding: 60px 20px;
}
.lightbox.open { display: flex; }
.lb-img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.15); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; width: 42px; height: 42px; font-size: 26px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lb-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 22px; background: linear-gradient(transparent, rgba(0,0,0,.85));
}
.lb-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-name { font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-date { font-size: 11px; color: rgba(255,255,255,.6); }
.lb-download {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff; border: none; cursor: pointer;
  font-size: 13px; font-weight: 700; padding: 10px 18px; border-radius: 8px;
  transition: filter .15s, transform .15s;
}
.lb-download:hover { filter: brightness(1.1); transform: translateY(-1px); }

@media (max-width: 560px) {
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 26px; }
  .lb-download { padding: 9px 14px; font-size: 12px; }
}

/* ── Gear reassign (bulk edit) ── */
.gr-panel { margin-top: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.gr-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 14px; }
.gr-sub { font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.gr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.gr-selall { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.gr-selall input, .gr-cb { accent-color: var(--orange); }
.gr-search { flex: 1; min-width: 140px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 12px; padding: 8px 12px; outline: none; }
.gr-search:focus { border-color: var(--border-hover); }
.gr-apply { display: flex; align-items: center; gap: 8px; }
.gr-to { font-size: 12px; color: var(--muted); }
.gr-select { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 12px; padding: 8px 10px; outline: none; }
.gr-status { font-size: 12px; min-height: 16px; margin-bottom: 8px; color: var(--muted); }
.gr-status.ok { color: #4ade80; }
.gr-status.warn { color: #facc15; }
.gr-status.err { color: #f87171; }
.gr-list { max-height: 380px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.gr-row { display: grid; grid-template-columns: 22px 78px 1fr auto auto; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--border); font-size: 12px; cursor: pointer; }
.gr-row:last-child { border-bottom: none; }
.gr-row:hover { background: var(--surface2); }
.gr-date { color: var(--muted); font-size: 11px; }
.gr-name { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-cur { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.gr-dist { color: var(--muted); white-space: nowrap; }
@media (max-width: 560px) {
  .gr-row { grid-template-columns: 22px 1fr auto; }
  .gr-date, .gr-dist { display: none; }
}
