/* styles-additions-v5.css — Sprint 2 styles
   Touch modal, touch list, version indicator. */

/* ===== Version pill in masthead ===== */
.mast-version {
  margin-top: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #888780;
  letter-spacing: 0.5px;
  cursor: help;
  user-select: none;
}

/* ===== "Log a touch" masthead button ===== */
.btn-secondary {
  display: inline-block;
  margin-top: 8px;
  margin-right: 6px;
  padding: 8px 14px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d8d6d0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.btn-secondary:hover {
  background: #f7f5f1;
  border-color: #1a1a1a;
}

/* ===== Touch modal ===== */
.touch-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.55);
  z-index: 9000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px 16px;
  overflow-y: auto;
}
.touch-modal-overlay.touch-modal-open {
  display: flex;
}

.touch-modal {
  background: #fdfcf9;
  border-radius: 10px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  overflow: hidden;
  font-family: 'IBM Plex Sans', sans-serif;
}

.touch-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 24px 10px;
  border-bottom: 1px solid #ebe7df;
}
.touch-modal-header h2 {
  margin: 0;
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  color: #1a1a1a;
}
.touch-modal-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #6b6960;
}
.touch-modal-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #888780;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}
.touch-modal-close:hover { color: #1a1a1a; }

.touch-modal-form {
  padding: 16px 24px 20px;
}

.tm-row {
  margin-bottom: 14px;
}
.tm-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) {
  .tm-row-grid { grid-template-columns: 1fr; }
}
.tm-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #888780;
}
.tm-label-hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: #b3b0a6;
  margin-left: 6px;
}

.tm-segmented {
  display: inline-flex;
  background: #f3f0e9;
  border-radius: 6px;
  padding: 3px;
}
.tm-seg-opt {
  cursor: pointer;
}
.tm-seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tm-seg-opt span {
  display: inline-block;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 4px;
  color: #6b6960;
  transition: background 0.12s, color 0.12s;
}
.tm-seg-opt input:checked + span {
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.tm-date-input,
.tm-text-input {
  display: block;
  margin-top: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d6d0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.touch-modal-form select,
.touch-modal-form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d8d6d0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
}
.touch-modal-form textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.45;
  font-family: 'IBM Plex Sans', sans-serif;
}
.touch-modal-form select:focus,
.touch-modal-form textarea:focus,
.touch-modal-form input:focus {
  outline: 2px solid #378ADD;
  outline-offset: -1px;
  border-color: transparent;
}

.tm-error {
  background: #FAECE7;
  color: #993C1D;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

.touch-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid #ebe7df;
}
.tm-btn-cancel,
.tm-btn-submit {
  padding: 9px 18px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid transparent;
}
.tm-btn-cancel {
  background: #fff;
  color: #1a1a1a;
  border-color: #d8d6d0;
}
.tm-btn-cancel:hover { background: #f7f5f1; }
.tm-btn-submit {
  background: #1a1a1a;
  color: #fff;
}
.tm-btn-submit:hover { background: #2a2a2a; }
.tm-btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== Touch list (in account panel) ===== */
.panel-touch-list {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #ebe7df;
}
.panel-touch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.panel-touch-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #888780;
}
.panel-touch-count {
  display: inline-block;
  margin-left: 6px;
  color: #b3b0a6;
  font-weight: 500;
}
.panel-touch-add {
  background: transparent;
  border: 1px solid #d8d6d0;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  padding: 5px 10px;
  cursor: pointer;
  color: #1a1a1a;
}
.panel-touch-add:hover {
  background: #f7f5f1;
  border-color: #1a1a1a;
}

.panel-touch-empty {
  font-size: 13px;
  color: #b3b0a6;
  padding: 16px;
  text-align: center;
  background: #f7f5f1;
  border-radius: 6px;
}

.panel-touch-row {
  display: flex;
  gap: 10px;
  padding: 10px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.1s;
}
.panel-touch-row:hover {
  background: #f7f5f1;
}
.ptr-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ebe7df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b6960;
}
.ptr-meta {
  flex: 1;
  min-width: 0;
}
.ptr-line-1 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b6960;
  margin-bottom: 2px;
}
.ptr-channel {
  font-weight: 500;
  color: #1a1a1a;
}
.ptr-direction {
  color: #b3b0a6;
}
.ptr-date {
  color: #888780;
}
.ptr-line-2 {
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ptr-line-full {
  display: none;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  white-space: pre-wrap;
  margin-top: 4px;
}
.panel-touch-row-expanded .ptr-line-2 { display: none; }
.panel-touch-row-expanded .ptr-line-full { display: block; }

.ptr-empty {
  color: #b3b0a6;
}

.ptr-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.ptr-badge-planned {
  background: #E6F1FB;
  color: #1F5D9D;
}
.ptr-badge-missed {
  background: #FAECE7;
  color: #993C1D;
}
.ptr-badge-cancelled {
  background: #f3f0e9;
  color: #888780;
}
