/* BTPL RINEX Studio online. Every rule is under .rinex-app, so the page can sit inside the BTPL website's own layout
   (site.css) without either changing the other; the standalone index.html wraps its content the same way. */
.rinex-app {
  --rx-navy: #14365C; --rx-blue: #2B6CB8; --rx-green: #3E9C35; --rx-ink: #1d2733; --rx-muted: #5b6878;
  --rx-line: #d8e0ea; --rx-bad: #b3261e; --rx-warn: #8a5a00;
  color: var(--rx-ink); font-size: 15px; line-height: 1.5;
}
.rinex-app * { box-sizing: border-box; }
.rinex-app .rx-hero { background: linear-gradient(135deg, var(--rx-navy), var(--rx-blue)); color: #fff; padding: 30px 0 22px; }
.rinex-app .rx-hero h1 { margin: 0 0 6px; font-size: 30px; color: #fff; }
.rinex-app .rx-lead { margin: 0 0 10px; color: #dce8f6; max-width: 760px; }
.rinex-app .rx-wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.rinex-app .rx-private { margin: 0 0 14px; display: inline-flex; align-items: center; gap: 8px; background: #edf7ea; color: #24561d; padding: 6px 12px; border-radius: 20px; font-size: 14px; }
.rinex-app .rx-hero .rx-private { background: rgba(255,255,255,.12); color: #fff; }
.rinex-app .rx-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fbf4f; display: inline-block; }
.rinex-app .rx-card { background: #fff; border: 1px solid var(--rx-line); border-radius: 10px; padding: 18px 20px; margin: 0 0 16px; }
.rinex-app .rx-card h2 { margin: 0 0 12px; font-size: 18px; color: var(--rx-navy); }
.rinex-app .rx-card h3 { margin: 0 0 10px; font-size: 16px; color: var(--rx-navy); }
.rinex-app .rx-note { background: #f9fbf7; }
.rinex-app .small, .rinex-app small { color: var(--rx-muted); font-size: 12.5px; }
.rinex-app .hint { color: var(--rx-muted); font-size: 13px; margin: 8px 0 0; }
.rinex-app .drop { display: block; border: 2px dashed #9fb6cf; border-radius: 10px; padding: 26px 18px; text-align: center; cursor: pointer; background: #f8fbff; }
.rinex-app .drop.over { border-color: var(--rx-blue); background: #eaf2fc; }
.rinex-app .drop input { display: none; }
.rinex-app .drop span { display: block; font-size: 16px; margin-bottom: 6px; }
.rinex-app .tablewrap { overflow: auto; }
.rinex-app table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.rinex-app th, .rinex-app td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--rx-line); vertical-align: top; white-space: nowrap; }
.rinex-app th { color: var(--rx-muted); font-weight: 600; background: #f6f8fb; }
.rinex-app td.name a { color: var(--rx-blue); cursor: pointer; text-decoration: underline; }
.rinex-app td.status { white-space: normal; min-width: 180px; }
.rinex-app .ok { color: var(--rx-green); font-weight: 600; }
.rinex-app .bad { color: var(--rx-bad); }
.rinex-app .warn { color: var(--rx-warn); }
.rinex-app .x { border: 0; background: none; color: var(--rx-muted); cursor: pointer; font-size: 16px; }
.rinex-app .grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 16px; }
.rinex-app label { display: block; font-size: 13px; color: var(--rx-muted); font-weight: 400; margin: 0; }
.rinex-app .grid4 input, .rinex-app .grid4 select { display: block; width: 100%; margin-top: 4px; padding: 7px 8px; border: 1px solid #b9c6d6; border-radius: 6px; font: inherit; color: var(--rx-ink); background: #fff; }
.rinex-app .grid4 small { display: block; margin-top: 2px; }
.rinex-app fieldset.systems { border: 1px solid var(--rx-line); border-radius: 8px; margin: 14px 0 8px; padding: 8px 12px; }
.rinex-app fieldset.systems legend { font-size: 13px; color: var(--rx-muted); padding: 0 4px; }
.rinex-app fieldset.systems label, .rinex-app .checks label { display: inline-flex; align-items: center; gap: 5px; margin: 4px 14px 4px 0; color: var(--rx-ink); font-size: 14px; }
.rinex-app .checks input:not([type=checkbox]) { padding: 4px 6px; border: 1px solid #b9c6d6; border-radius: 5px; width: 4.5em; }
.rinex-app .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.rinex-app .btn { background: var(--rx-green); color: #fff; border: 0; border-radius: 7px; padding: 9px 18px; font: 600 14.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.rinex-app .btn:disabled { opacity: .55; cursor: default; }
.rinex-app .btn.ghost { background: #fff; color: var(--rx-navy); border: 1px solid #b9c6d6; }
.rinex-app .bar { height: 8px; background: #e5ebf2; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.rinex-app .bar span { display: block; height: 100%; width: 0; background: var(--rx-blue); transition: width .2s; }
.rinex-app .station { margin-top: 14px; padding: 14px; border: 1px solid #c7d6e6; border-radius: 8px; background: #f7faff; }
.rinex-app .station .btn { margin-top: 12px; }
.rinex-app .result { border-top: 1px solid var(--rx-line); padding: 10px 0; }
.rinex-app .result:first-child { border-top: 0; }
.rinex-app .result .files a { display: inline-block; margin: 4px 12px 0 0; color: var(--rx-blue); }
.rinex-app .result ul { margin: 6px 0 0 18px; padding: 0; color: var(--rx-muted); font-size: 13px; }
.rinex-app #status { color: var(--rx-muted); font-size: 14px; }
.rinex-app [hidden] { display: none !important; }
@media (max-width: 640px) {
  .rinex-app .rx-hero h1 { font-size: 24px; }
  .rinex-app th:nth-child(4), .rinex-app td:nth-child(4), .rinex-app th:nth-child(6), .rinex-app td:nth-child(6) { display: none; }
}
