/* ─────────────────────────────────────────────
   Reset & Base
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0b1a0d;
  --surface:     #122114;
  --surface2:    #1a2e1c;
  --border:      #2a422c;
  --accent:      #4ade80;
  --accent-dim:  #22c55e;
  --accent-muted:#166534;
  --text:        #f0fdf4;
  --text-muted:  #86efac;
  --text-faint:  #4ade8055;
  --error:       #f87171;
  --radius:      12px;
  --radius-sm:   8px;

  /* CI fill colors */
  --ci-95: rgba(74, 222, 128, 0.08);
  --ci-50: rgba(74, 222, 128, 0.22);
  --ci-line: #22c55e;
}

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   Header
───────────────────────────────────────────── */
.site-header {
  background: linear-gradient(160deg, #0f2b12 0%, #0b1a0d 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1rem 2rem;
  text-align: center;
}

.header-inner { max-width: 640px; margin: 0 auto; }

.header-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

h1 {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}

.header-accent { color: var(--accent); }

.header-sub {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────────────────────────────────────────
   Layout
───────────────────────────────────────────── */
#app {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section { display: flex; flex-direction: column; gap: 1.25rem; }
.hidden  { display: none !important; }

/* ─────────────────────────────────────────────
   Cards
───────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* ─────────────────────────────────────────────
   Loading
───────────────────────────────────────────── */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 4rem 1rem;
  color: var(--text-muted);
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--surface2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────
   Observation Rows
───────────────────────────────────────────── */
.observations-container { display: flex; flex-direction: column; gap: 0.75rem; }

.obs-row {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.obs-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.obs-row-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.remove-obs-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.remove-obs-btn:hover { border-color: var(--error); color: var(--error); }

.obs-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 480px) {
  .obs-inputs { grid-template-columns: 1fr 1fr; }
  .obs-inputs .day-group { grid-column: 1 / -1; }
}

.input-group { display: flex; flex-direction: column; gap: 0.3rem; }

.input-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

select, input[type="time"] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

select:focus, input[type="time"]:focus {
  border-color: var(--accent-dim);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386efac' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
}

/* Day select — compact */
.day-select { min-width: 90px; }

/* Time dropdowns */
.time-dropdowns {
  display: flex;
  gap: 0.3rem;
}
.time-dropdowns select { width: auto; }

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1;
  -webkit-appearance: none;
}

.btn-primary {
  background: var(--accent);
  color: #052e16;
  border-color: var(--accent);
}
.btn-primary:hover { background: #86efac; border-color: #86efac; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-dim); color: var(--text); }

#input-section .card { display: flex; flex-direction: column; }
.add-obs-btn { font-size: 0.85rem; padding: 0.75rem 1rem; margin-top: 1.5rem; }

.predict-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
}

.reset-btn { align-self: flex-start; }

/* ─────────────────────────────────────────────
   Error Banner
───────────────────────────────────────────── */
.error-banner {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: var(--error);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

/* ─────────────────────────────────────────────
   Next Station Card
───────────────────────────────────────────── */
.next-card {
  border-color: var(--accent-muted);
  background: linear-gradient(135deg, #0f2b12 0%, var(--surface) 100%);
}

.next-card-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 0.5rem;
}

.next-card h2 {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.next-card h2 .station-name { color: var(--accent); }

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 400px) {
  .time-grid { grid-template-columns: 1fr 1fr; }
}

.time-cell {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.time-cell-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.time-cell-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.time-cell-value .day-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.time-cell.highlight {
  border-color: var(--accent-dim);
  background: rgba(34, 197, 94, 0.08);
}
.time-cell.highlight .time-cell-value { color: var(--accent); }

.confidence-bar-wrapper {
  margin-top: 0.75rem;
}

.confidence-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.confidence-bar-track {
  height: 8px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.confidence-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-muted), var(--accent));
  position: absolute;
}

/* ─────────────────────────────────────────────
   Chart
───────────────────────────────────────────── */
.chart-card { }

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.chart-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.chart-wrap {
  position: relative;
  height: 240px;
}

.chart-legend {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.swatch-80   { background: rgba(74, 222, 128, 0.2); border: 1px solid rgba(74, 222, 128, 0.4); }
.swatch-50   { background: rgba(74, 222, 128, 0.45); border: 1px solid rgba(74, 222, 128, 0.7); }
.swatch-line { background: #22c55e; border-radius: 99px; height: 3px; margin: auto 0; width: 16px; }
.swatch-night { background: rgba(10, 15, 50, 0.55); border: 1px solid rgba(100, 110, 200, 0.35); }

/* ─────────────────────────────────────────────
   Table
───────────────────────────────────────────── */
.table-card .section-title { margin-bottom: 0.25rem; }

.table-scroll { overflow-x: auto; margin-top: 1rem; }

.pred-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  white-space: nowrap;
}

.pred-table th {
  text-align: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.pred-table th:first-child { text-align: left; }

.pred-table td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid rgba(42, 66, 44, 0.5);
  color: var(--text);
  text-align: center;
}

.pred-table tr:last-child td { border-bottom: none; }
.pred-table tr:hover td { background: var(--surface2); }

.text-right { text-align: right; }

.td-station { font-weight: 500; }
.td-median  { font-weight: 600; color: var(--accent); }
.td-range   { color: var(--text-muted); font-size: 0.82rem; }

.pred-table tr.next-row td { background: rgba(34,197,94,0.06); }
.pred-table tr.next-row .td-station { color: var(--accent); }

.day-tag-inline {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.results-footer { display: flex; flex-direction: column; gap: 0.5rem; }

.data-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   Explore page — stat cards
───────────────────────────────────────────── */
#explore-app {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chart-wrap-tall { height: 340px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-wrap-tall { height: 280px; }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-value {
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.4;
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────
   Explore page — scrubber
───────────────────────────────────────────── */
.scrubber-card { }

.scrubber-time {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
  min-height: 1.5em;
}

.race-scrubber {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 99px;
  background: var(--surface2);
  outline: none;
  cursor: pointer;
  margin-bottom: 1.25rem;
}
.race-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #052e16;
}
.race-scrubber::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #052e16;
}

.scrubber-positions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scrubber-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.scrubber-runner-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scrubber-mile {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.scrubber-after {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: right;
}

/* ─────────────────────────────────────────────
   Explore page — survival table
───────────────────────────────────────────── */
.survival-table th, .survival-table td { text-align: center; }
.survival-table th:first-child, .survival-table td:first-child { text-align: left; }
.survival-table .attrition-row td { color: var(--text-muted); }
.survival-table .attrition-row .td-station { color: var(--error); }

.finish-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 80px;
}
.finish-bar {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-muted), var(--accent));
  flex-shrink: 0;
  max-width: 60px;
}
.finish-bar-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

/* ─────────────────────────────────────────────
   Back link
───────────────────────────────────────────── */
.back-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.back-link:hover { color: var(--accent); }

/* ─────────────────────────────────────────────
   Landing page
───────────────────────────────────────────── */
.landing-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.path-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem 1.25rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.path-card:hover, .path-card:active {
  border-color: var(--accent-dim);
  background: var(--surface2);
}

.path-card-minor {
  border-color: transparent;
  background: transparent;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.path-card-minor:hover { background: var(--surface); border-color: var(--border); }

.path-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.path-icon svg { width: 26px; height: 26px; }

.path-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: transparent;
  border-color: var(--border);
  color: var(--text-muted);
}
.path-icon-sm svg { width: 20px; height: 20px; }

.path-content { flex: 1; min-width: 0; }

.path-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.path-card-minor .path-title { font-size: 0.95rem; color: var(--text-muted); }

.path-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.path-card-minor .path-desc { font-size: 0.78rem; }

.path-arrow {
  font-size: 1.1rem;
  color: var(--text-faint);
  flex-shrink: 0;
}
.path-card:hover .path-arrow { color: var(--accent-dim); }

/* ─────────────────────────────────────────────
   Runner lookup page
───────────────────────────────────────────── */
#lookup-app {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.search-card { position: relative; }

.search-wrap { margin-top: 0.75rem; }

.search-input {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color: var(--accent-dim); }
.search-input::placeholder { color: var(--text-faint); }

.search-results {
  margin-top: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface2);
  max-height: 320px;
  overflow-y: auto;
}

.search-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(42, 66, 44, 0.4);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  text-align: left;
  gap: 1rem;
  transition: background 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.search-result-row:last-child { border-bottom: none; }
.search-result-row:hover, .search-result-row:active { background: rgba(74,222,128,0.06); }

.result-name { font-weight: 500; }
.result-years { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }

.search-empty {
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.runner-header-card { padding: 1.25rem 1.5rem; }

.runner-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.runner-name {
  font-size: clamp(1.1rem, 4vw, 1.4rem);
  font-weight: 700;
  color: var(--accent);
}

.year-tabs { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.year-tab {
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: inherit;
  transition: all 0.15s;
}
.year-tab.active, .year-tab:hover {
  background: var(--accent-muted);
  border-color: var(--accent-dim);
  color: var(--text);
}

.year-single {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.history-table td { text-align: center; }
.history-table td.td-station { text-align: left; }
.history-table .seg-cell { color: var(--text-muted); font-size: 0.82rem; }
.history-table .dns-row td { opacity: 0.4; }

.runner-finish {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.finish-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  flex-shrink: 0;
}
.finish-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.runner-finish.dnf {
  background: rgba(248, 113, 113, 0.07);
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-top: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.875rem;
  margin-top: 1rem;
}
.runner-finish.dnf .finish-label {
  color: var(--error);
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: none;
}

/* ─────────────────────────────────────────────
   About page
───────────────────────────────────────────── */
.about-main {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-section { }

.about-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-section p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.about-section p:last-child { margin-bottom: 0; }

.about-section strong { color: var(--text); }
.about-section em { color: var(--text); font-style: italic; }

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}
.about-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}
.about-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent-dim);
  font-weight: 700;
}

.about-cta {
  text-align: center;
  padding: 0.5rem 0;
}
