/* v0.35 Garmin import on the movement page: file choice, preview table (cards on a phone), save. */
.gi-help ol { padding-left: 20px; margin: 4px 0 8px; }
.gi-help li { line-height: 1.55; margin-block: 6px; }
.gi-form { margin-block: 8px; }
.gi-file { display: block; font-size: 15px; cursor: pointer; }
.gi-file-title { display: block; font-weight: 600; }
.gi-file-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 6px; padding: 8px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--elevated); }
.daily-view .gi-file input.gi-file-input[type=file] { position: absolute; left: 8px; top: 8px; min-width: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; opacity: 0; overflow: hidden; }
.gi-file-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 600; }
.gi-file:hover .gi-file-button { border-color: var(--blue); color: var(--blue); }
.gi-file-input:focus-visible + .gi-file-button { outline: 2px solid var(--blue); outline-offset: 2px; }
.gi-file-input:disabled + .gi-file-button { opacity: .6; }
.gi-file-name { color: var(--ink-2); overflow-wrap: anywhere; min-width: 0; }
.gi-summary { margin: 12px 0 4px; }
.gi-skipped ul { padding-left: 20px; margin: 4px 0; }
.gi-skipped li { margin-block: 4px; line-height: 1.5; }
.gi-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px; }
.gi-wrap { margin-block: 8px; }
.gi-table td { vertical-align: top; }
.gi-table td.gi-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gi-table td.gi-when { white-space: nowrap; }
.gi-table .gi-type-name { font-weight: 600; }
.gi-origin { display: block; color: var(--ink-2); font-size: 12px; overflow-wrap: anywhere; max-width: 280px; }
.gi-badge { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 10px; font-size: 11px; line-height: 18px; color: var(--ink-2); background: var(--canvas-alt, var(--elevated)); border: 1px solid var(--line); }
.gi-table tr.gi-dup td { color: var(--ink-2); }
.gi-check { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin: -10px -6px; cursor: pointer; }
.daily-view .gi-table select { min-height: 36px; margin-top: 0; font-size: 14px; min-width: 120px; }
.gi-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

@media (max-width: 640px) {
  .gi-wrap { overflow-x: visible; }
  .gi-table, .gi-table tbody, .gi-table tr, .gi-table td { display: block; }
  .gi-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .gi-table tr { display: grid; grid-template-columns: 44px repeat(2, minmax(0, 1fr)); column-gap: 8px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 10px; }
  .gi-table tr.gi-dup { background: var(--elevated); }
  .gi-table td, table.params.gi-table td { border: 0; padding: 3px 0; white-space: normal; }
  .gi-table td.gi-pick { grid-row: 1 / span 4; align-self: start; }
  .gi-table td.gi-type, .gi-table td.gi-when, .gi-table td.gi-int { grid-column: 2 / -1; }
  .gi-table td[data-label]::before { content: attr(data-label); display: block; color: var(--ink-2); font-size: 11px; }
  .gi-table td.gi-type::before, .gi-table td.gi-when::before { display: none; }
  .gi-table td.gi-when { color: var(--ink-2); font-size: 13px; }
  .gi-check { margin: 0; }
  .daily-view .gi-table select { width: 100%; min-height: 44px; font-size: 16px; }
  .gi-origin { max-width: none; }
  .gi-actions .primary { width: 100%; }
}
