/* Tone pills, driving session button, rest stop card, grouped list rows */

/* Apple Segmented Control Style for Tone Pills */
.tone-pills {
  display: inline-flex;
  background: var(--ios-card-secondary);
  padding: 2px;
  border-radius: 9px;
  gap: 2px;
}
.tone-pill {
  padding: 4px 10px;
  border-radius: 7px;
  border: none;
  background: transparent;
  color: var(--ios-subtext);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}
.tone-pill.selected {
  background: var(--ios-card);
  color: var(--ios-text);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Primary Driving Session CTA Button */
.btn-arrived {
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border-radius: 16px;
  border: none;
  background: rgba(52, 199, 89, 0.15);
  color: var(--ios-green);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, opacity 0.2s ease;
}
.btn-arrived:active { transform: scale(0.98); }
.btn-arrived.btn-start {
  background: var(--ios-blue);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(var(--drifts-rgb), 0.28);
}

/* Apple Maps Style Rest Stop Card */
.rest-info-row { display: flex; justify-content: space-between; align-items: flex-start; }
.rest-name { font-size: 15px; font-weight: 700; color: var(--ios-text); letter-spacing: -0.2px; }
.rest-meta { font-size: 12px; color: var(--ios-subtext); margin-top: 2px; }
.rest-dist { font-size: 17px; font-weight: 800; color: var(--ios-blue); text-align: right; }
.rest-eta { font-size: 11px; color: var(--ios-subtext); text-align: right; }
.rest-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-primary {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--ios-blue);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-primary:active { transform: scale(0.98); }
.btn-sos {
  width: 44px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 59, 48, 0.14);
  color: var(--ios-red);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.btn-sos:active { transform: scale(0.95); }

/* Grouped List Rows */
.trip-item, .device-item, .setting-row, .contact-item {
  background: var(--ios-card);
  border-radius: 16px;
  padding: 13px 16px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02), 0 0 0 0.5px var(--ios-sep);
  cursor: pointer;
}
.trip-left, .device-left { display: flex; align-items: center; gap: 12px; }
.trip-route, .device-name, .setting-label, .contact-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ios-text);
}
.trip-date, .device-status, .setting-sub, .contact-rel {
  font-size: 11.5px;
  color: var(--ios-subtext);
  margin-top: 2px;
}

.log-feed {
  background: var(--ios-card);
  border-radius: 18px;
  padding: 12px 14px;
  max-height: 165px;
  overflow-y: auto;
  font-size: 11px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.02), 0 0 0 0.5px var(--ios-sep);
}
.log-entry {
  padding: 6px 0;
  border-bottom: 0.5px solid var(--ios-sep);
  color: var(--ios-subtext);
  line-height: 1.4;
}
.log-entry:last-child { border-bottom: none; }
.log-entry.warn { color: var(--ios-orange); font-weight: 600; }
.log-entry.danger { color: var(--ios-red); font-weight: 700; }
