* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--harbor-navy);
  font-family: var(--font-body);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* ─── Login ─────────────────────────────────────────────────────────── */

.t-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.t-login-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: var(--radius-frame);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-login-logo {
  font: 700 22px var(--font-display);
  color: var(--harbor-navy);
  text-align: center;
}

.t-login-sub {
  font: 500 13px var(--font-body);
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 10px;
}

.t-login-card input {
  height: 52px;
  border: 1.5px solid var(--card-border-alt);
  border-radius: var(--radius-control);
  padding: 0 15px;
  font-size: 15px;
  color: var(--text-body);
}

.t-login-card input:focus {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(15,140,130,.15);
  outline: none;
}

.t-login-error {
  color: var(--red-text);
  font: 500 13px var(--font-body);
  text-align: center;
  min-height: 16px;
}

.t-login-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-faint-alt, #93A0AC);
  font: 600 12px var(--font-body);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.t-login-divider::before,
.t-login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--card-border-alt);
}

.t-google-button {
  height: 52px;
  border-radius: 15px;
  background: #fff;
  border: 1.5px solid var(--card-border-alt);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 15px var(--font-body);
}

.t-google-button:active {
  background: var(--app-bg);
}

/* ─── App shell ─────────────────────────────────────────────────────── */

.t-app-screen {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--app-bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

.t-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--app-bg);
}

.t-header {
  background: var(--harbor-navy);
  color: #fff;
  padding: 14px 20px 18px;
  flex-shrink: 0;
}

.t-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-header-date {
  font: 500 12.5px var(--font-body);
  color: #8FB0C9;
}

.t-header-title {
  font: 700 22px var(--font-display);
  margin-top: 1px;
}

.t-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1B4A6B;
  color: #9FD8E8;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 14px var(--font-body);
  flex-shrink: 0;
}

.t-avatar-small {
  width: 22px;
  height: 22px;
  font-size: 9px;
}

.t-lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 5px 7px;
}

.t-lang-pill {
  font: 600 11px var(--font-body);
  color: #8FB0C9;
  padding: 3px 7px;
  border-radius: 999px;
}

.t-lang-pill.t-lang-active {
  background: var(--seafoam);
  color: #fff;
  font-weight: 700;
}

.t-stat-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.t-stat {
  flex: 1;
  background: rgba(255,255,255,.08);
  border-radius: 11px;
  padding: 9px 11px;
}

.t-stat-value {
  font: 700 18px var(--font-mono);
  color: #fff;
}

.t-stat-label {
  font: 500 10.5px var(--font-body);
  color: #8FB0C9;
}

.t-conditions-row {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.t-condition-pill {
  font: 600 11px var(--font-body);
  color: #fff;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  padding: 4px 10px;
  border-radius: 999px;
}
.t-condition-pill.t-condition-tide { background: rgba(95,208,196,.16); border-color: rgba(95,208,196,.3); color: var(--mist); }

.t-next-move-card {
  margin: 14px 16px 0;
  background: #fff;
  border: 2px solid var(--seafoam);
  border-radius: 14px;
  padding: 13px 15px;
  box-shadow: 0 10px 26px rgba(15,140,130,.12);
}
.t-next-move-top { display: flex; align-items: center; gap: 8px; }
.t-next-move-tag {
  font: 700 9.5px var(--font-body);
  color: #fff;
  background: #1462B8;
  padding: 2px 7px;
  border-radius: 4px;
}
.t-next-move-tag.t-tag-haul { background: #B7791F; }
.t-next-move-boat { font: 700 14px var(--font-body); color: var(--harbor-navy); }
.t-next-move-time { margin-left: auto; font: 700 12px var(--font-mono); color: var(--seafoam); }
.t-next-move-sub { font: 500 11.5px var(--font-body); color: #8A98A6; margin-top: 4px; }

.t-unassigned-nudge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 16px 0;
  background: #FBEFD8;
  border-radius: 12px;
  padding: 11px 14px;
  font: 600 11.5px var(--font-body);
  color: #B5790C;
  cursor: pointer;
}

.t-offline-banner {
  background: #FBEFD8;
  border-bottom: 1px solid #F0DBA8;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 12.5px var(--font-body);
  color: #946008;
}

.t-offline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

.t-offline-text { flex: 1; }

/* ─── Today job list ────────────────────────────────────────────────── */

.t-job-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 15px 16px 90px;
  overflow-y: auto;
}

.t-job-card {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: 15px;
  padding: 14px;
}

.t-job-card-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
}

.t-job-card-tag {
  font: 600 10.5px var(--font-body);
  padding: 3px 10px;
  border-radius: 999px;
}

.t-job-card-boat {
  font: 700 17px var(--font-display);
  color: var(--harbor-navy);
}

.t-job-card-task {
  font: 500 13px var(--font-body);
  color: #5A6B7B;
  margin-top: 1px;
}

.t-job-card-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  font: 600 12px var(--font-body);
  color: var(--text-faint);
}

.t-job-card-loc img { opacity: .5; }

.t-tappable {
  cursor: pointer;
  transition: background .1s ease;
}
.t-tappable:active {
  background: #F5F7FA;
}

.t-customer-boats-detail {
  margin-bottom: 4px;
}

.t-job-start-button {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  min-height: 44px;
  font: 700 14px var(--font-body);
  color: #fff;
  background: var(--seafoam);
  border: none;
  border-radius: 11px;
  cursor: pointer;
}

.t-job-start-button:active {
  background: #0c7a71;
}

.t-job-start-button:disabled {
  opacity: .6;
}

.t-empty-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.t-empty-check {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(15,140,130,.12);
  color: var(--seafoam);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 700 38px var(--font-body);
  margin-bottom: 20px;
}

.t-empty-title {
  font: 700 21px var(--font-display);
  color: var(--harbor-navy);
}

.t-empty-detail {
  font: 500 14px var(--font-body);
  color: var(--text-muted);
  margin-top: 7px;
  max-width: 260px;
}

/* ─── Bottom nav ────────────────────────────────────────────────────── */

.t-navbar {
  height: 64px;
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 4px;
  position: sticky;
  bottom: 0;
}

.t-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  opacity: .55;
  flex: 1;
  min-width: 0;
}

.t-nav-item img { width: 20px; height: 20px; }

.t-nav-item span {
  font: 600 9px var(--font-body);
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.t-nav-active { opacity: 1; }

.t-nav-active span { color: var(--seafoam); font-weight: 700; }

/* ─── Job detail ────────────────────────────────────────────────────── */

.t-header-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 16px;
}

.t-back-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  padding: 0;
}

.t-detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.t-current-op-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
}

.t-current-op-desc {
  font: 500 12.5px var(--font-body);
  color: var(--text-muted);
}

.t-current-op-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
}

.t-pill {
  display: inline-block;
  font: 600 11.5px var(--font-body);
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.t-mono-muted {
  font: 600 13px var(--font-mono);
  color: #5A6B7B;
}

.t-section-label {
  font: 700 11px var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-left: 2px;
}

.t-ops-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-bottom: 16px;
}

.t-op-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 13px 14px;
}

.t-op-row-active {
  background: rgba(15,140,130,.05);
  border: 1.5px solid rgba(15,140,130,.4);
}

.t-op-check {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid #CDD6DF;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.t-op-check-done {
  background: var(--green);
  border-color: var(--green);
}

.t-op-row-name {
  flex: 1;
  font: 600 14px var(--font-body);
  color: var(--text-body);
}

.t-op-row-hours {
  font: 600 12.5px var(--font-mono);
  color: var(--text-faint-alt);
}

.t-op-row-add {
  background: none;
  border: 1.5px dashed var(--card-border-alt);
  color: var(--text-faint);
  font: 600 14px var(--font-body);
  justify-content: center;
  cursor: pointer;
}

/* Shown only while Spanish is selected and a field's Claude translation
   hasn't landed yet (see isPendingTranslation(), techs.js) — English text is
   still what's displayed, this just flags why it isn't Spanish. */
.t-pending-translation::after {
  content: ' (sin traducir)';
  font-size: 0.85em;
  font-style: italic;
  color: var(--text-faint);
}

.t-detail-actions {
  flex-shrink: 0;
  padding: 12px 16px 16px;
  background: var(--app-bg);
  display: flex;
  gap: 10px;
}

.t-icon-button {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  background: #fff;
  border: 1.5px solid #D5DEE7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.t-primary-button {
  height: 56px;
  border-radius: 15px;
  background: var(--seafoam);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 700 16px var(--font-body);
  box-shadow: 0 6px 16px rgba(15,140,130,.3);
}

.t-primary-button:disabled {
  opacity: .5;
  box-shadow: none;
}

.t-flex1 { flex: 1; }
.t-full-width { width: 100%; }

/* ─── Bottom sheets ─────────────────────────────────────────────────── */

.t-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12,44,73,.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2000;
}

.t-sheet {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 26px 26px 0 0;
  padding: 18px 20px 22px;
}

.t-sheet-no-pad {
  background: none;
  padding: 0 12px 14px;
}

.t-sheet-handle {
  width: 42px;
  height: 5px;
  border-radius: 99px;
  background: #DCE3EB;
  margin: 0 auto 16px;
}

.t-sheet-title {
  font: 700 20px var(--font-display);
  color: var(--harbor-navy);
}

.t-sheet-sub {
  font: 500 13px var(--font-body);
  color: var(--text-faint);
  margin-top: 2px;
}

.t-stepper-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 22px 0;
}

.t-stepper-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid #D5DEE7;
  background: #fff;
  font: 600 26px var(--font-body);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-stepper-button-primary {
  background: var(--seafoam);
  border: none;
  color: #fff;
}

.t-stepper-display { text-align: center; }

.t-stepper-value {
  font: 700 46px var(--font-mono);
  color: var(--harbor-navy);
  line-height: 1;
}

.t-stepper-label {
  font: 500 12px var(--font-body);
  color: var(--text-faint-alt);
}

.t-chip-row {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.t-chip {
  flex: 1;
  text-align: center;
  font: 600 13px var(--font-body);
  color: var(--text-muted);
  background: var(--app-bg);
  border: 1px solid var(--card-border);
  padding: 11px 0;
  border-radius: 11px;
}

.t-chip-active {
  color: #0E7C73;
  background: rgba(15,140,130,.1);
  border-color: rgba(15,140,130,.3);
}

.t-status-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 10px;
}

.t-status-card-title {
  padding: 15px;
  text-align: center;
  font: 600 12.5px var(--font-body);
  color: var(--text-faint);
  border-bottom: 1px solid #F0F3F6;
}

.t-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #F2F5F8;
}

.t-status-row:last-child { border-bottom: none; }

.t-status-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t-status-row-label {
  flex: 1;
  font: 600 16px var(--font-body);
  color: var(--text-body);
}

.t-status-check {
  font: 700 16px var(--font-body);
  color: var(--signal-blue);
}

.t-status-cancel {
  background: #fff;
  border-radius: 18px;
  padding: 17px;
  text-align: center;
  font: 700 16px var(--font-body);
  color: var(--red-text);
}

.t-note-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  max-width: 480px;
  margin: 0 auto;
}

.t-note-textarea {
  width: 100%;
  min-height: 96px;
  border: 1.5px solid var(--card-border-alt);
  border-radius: 13px;
  padding: 13px;
  font: 500 14px var(--font-body);
  color: var(--text-body);
  resize: vertical;
}

.t-photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.t-photo-grid-view {
  grid-template-columns: repeat(3, 1fr);
}

.t-photo-thumb, .t-photo-add {
  aspect-ratio: 1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-photo-thumb {
  background-size: cover;
  background-position: center;
  position: relative;
}

.t-photo-add {
  border: 1.5px dashed #C2CCD6;
  flex-direction: column;
  gap: 5px;
  color: #9AA8B5;
  font: 600 11px var(--font-body);
  cursor: pointer;
}

.t-dictate-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: rgba(15,140,130,.07);
  border: none;
  border-radius: 11px;
  width: 100%;
  text-align: left;
}

.t-dictate-button.t-dictate-active {
  background: rgba(15,140,130,.18);
}

#dictate-label {
  font: 600 13px var(--font-body);
  color: #0E7C73;
}

/* ─── Tone classes (shared across job cards, pills, status rows) ──────── */

.t-tone-blue  { background: var(--pill-in-progress-bg); color: var(--pill-in-progress-fg); }
.t-tone-green { background: var(--pill-ready-to-bill-bg); color: var(--pill-ready-to-bill-fg); }
.t-tone-navy  { background: var(--pill-hauled-bg); color: var(--pill-hauled-fg); }
.t-tone-red   { background: var(--pill-on-hold-bg); color: var(--pill-on-hold-fg); }
.t-tone-slate { background: var(--pill-scheduled-bg); color: var(--pill-scheduled-fg); }

.t-status-dot.t-tone-blue  { background: var(--signal-blue); }
.t-status-dot.t-tone-green { background: var(--green); }
.t-status-dot.t-tone-navy  { background: var(--pill-hauled-fg); }
.t-status-dot.t-tone-red   { background: var(--red); }
.t-status-dot.t-tone-slate { background: #9AA8B5; }

.t-toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--harbor-navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font: 600 13px var(--font-body);
  z-index: 3000;
  box-shadow: 0 10px 24px rgba(10,33,53,.3);
}

/* ─── Jobs / Yard / Me tabs ─────────────────────────────────────────── */

.t-jobs-search {
  width: 100%;
  height: 42px;
  margin-top: 12px;
  border: none;
  border-radius: 11px;
  padding: 0 14px;
  font: 500 14px var(--font-body);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.t-jobs-search::placeholder { color: #8FB0C9; }

.t-screen-yard { padding: 0; }

.t-yard-iframe {
  flex: 1;
  width: 100%;
  border: none;
}

.t-me-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 0;
  gap: 6px;
}

.t-me-avatar {
  width: 64px;
  height: 64px;
  font-size: 20px;
  margin-bottom: 6px;
}

.t-me-name {
  font: 700 18px var(--font-display);
  color: var(--harbor-navy);
}

.t-me-email {
  font: 500 13px var(--font-body);
  color: var(--text-faint);
}

.t-lang-toggle-full {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 11px;
  padding: 4px;
  display: flex;
  gap: 4px;
  margin: 10px 0 24px;
}

.t-lang-toggle-full .t-lang-pill {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  color: var(--text-muted);
  font: 600 13px var(--font-body);
}

.t-lang-toggle-full .t-lang-pill.t-lang-active {
  background: var(--seafoam);
  color: #fff;
}

.t-logout-button {
  width: 100%;
  height: 50px;
  border-radius: 13px;
  border: 1.5px solid rgba(194,58,58,.3);
  background: #fff;
  color: var(--red-text);
  font: 700 14px var(--font-body);
}

.t-results-count {
  font: 500 12px var(--font-body);
  color: #9AA8B5;
  margin-top: 6px;
  padding-left: 2px;
}

.t-sync-status-card {
  padding: 12px 14px;
  font: 600 13px var(--font-body);
  color: var(--green, #0F8C73);
}
.t-sync-status-card.t-sync-status-pending {
  color: var(--amber);
}

.t-secondary-button {
  width: 100%;
  height: 50px;
  border-radius: 13px;
  border: 1.5px solid rgba(98,116,138,.3);
  background: #fff;
  color: #62748A;
  font: 700 14px var(--font-body);
  margin-bottom: 10px;
}

/* ─── Add Part sheet ────────────────────────────────────────────────── */

.t-form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.t-form-field label {
  font: 600 11.5px var(--font-body);
  color: var(--text-faint);
}

.t-form-field input,
.t-form-field select {
  height: 46px;
  border: 1.5px solid var(--card-border-alt);
  border-radius: 11px;
  padding: 0 13px;
  font-size: 15px;
  color: var(--text-body);
  background: #fff;
}

.t-form-field input:focus,
.t-form-field select:focus {
  border-color: var(--seafoam);
  box-shadow: 0 0 0 3px rgba(15,140,130,.15);
  outline: none;
}

.t-added-parts-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.t-added-part-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--app-bg);
  border-radius: 10px;
  padding: 9px 12px;
  font: 600 13px var(--font-body);
  color: var(--text-body);
}

.t-added-part-qty { color: var(--text-faint-alt); }

/* ─── Customers tab ─────────────────────────────────────────────────── */

.t-customer-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.t-contact-link {
  font: 600 12.5px var(--font-body);
  color: var(--seafoam);
  text-decoration: none;
}

.t-customer-boats {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 11px;
}

.t-customer-boat-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  background: var(--app-bg);
  border-radius: 10px;
  padding: 9px 12px;
}

.t-customer-boat-name {
  font: 700 13.5px var(--font-body);
  color: var(--harbor-navy);
  flex: 1;
}

.t-customer-boat-meta {
  font: 500 12px var(--font-body);
  color: var(--text-faint);
}

.t-combo-pill {
  font: 700 12px var(--font-mono);
  color: var(--amber);
  background: rgba(217,164,6,.12);
  padding: 3px 9px;
  border-radius: 999px;
}

.t-boat-row-chevron {
  color: var(--text-faint);
  font-size: 18px;
  line-height: 1;
}

/* ─── Boat/customer detail: fact cards, engines, notes ─────────────────── */

.t-fact-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  overflow: hidden;
}

.t-fact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--card-border);
}
.t-fact-row:last-child { border-bottom: none; }

.t-fact-label {
  font: 500 13px var(--font-body);
  color: var(--text-faint);
}

.t-fact-value {
  font: 600 13px var(--font-body);
  color: var(--text-body);
  text-align: right;
}

.t-combo-hero {
  font: 700 20px var(--font-mono);
  color: var(--amber);
  background: rgba(217,164,6,.1);
  padding: 14px;
  text-align: center;
  letter-spacing: .5px;
}

.t-engine-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-engine-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 12px 14px;
}

.t-engine-title {
  font: 700 14px var(--font-body);
  color: var(--harbor-navy);
}

.t-engine-sub {
  font: 500 12.5px var(--font-mono);
  color: var(--text-faint);
  margin-top: 2px;
}

.t-engine-extras {
  font: 500 12px var(--font-body);
  color: var(--text-faint-alt);
  margin-top: 4px;
}

.t-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-note-entry {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 10px 14px;
}

.t-note-entry-meta {
  font: 600 11px var(--font-body);
  color: var(--text-faint);
  margin-bottom: 3px;
}

.t-note-entry-body {
  font: 500 13.5px var(--font-body);
  color: var(--text-body);
  white-space: pre-wrap;
}

.t-op-row-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.t-op-row-body .t-op-row-name { flex: none; }

.t-op-row-sub {
  font: 500 12px var(--font-body);
  color: var(--text-faint);
}

/* ─── Equipment list (read-optimized mobile view) ──────────────────────── */

.t-section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.t-text-button {
  background: none;
  border: none;
  padding: 0;
  font: 700 12px var(--font-body);
  color: var(--teal, #0F8C82);
}

.t-equipment-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.t-equipment-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 13px;
  padding: 10px 12px;
}

.t-equipment-swatch {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-equipment-text {
  flex: 1;
  min-width: 0;
}

.t-equipment-label {
  font: 700 13.5px var(--font-body);
  color: var(--text-body);
}

.t-equipment-spec {
  font: 500 12px var(--font-body);
  color: var(--text-faint);
  margin-top: 1px;
}

.t-equipment-photo-flag {
  flex-shrink: 0;
  opacity: .55;
}

.t-equipment-level-heading {
  font: 700 11px var(--font-body);
  color: var(--text-faint-alt);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 6px 0 -2px 2px;
}

.t-equipment-map-container {
  flex: 1;
  overflow: auto;
  background: #fff;
}

/* ─── Photo lightbox ─────────────────────────────────────────────────── */

.t-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,20,30,.92);
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.t-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 10px;
}

.t-lightbox-caption {
  color: #fff;
  font: 500 13px var(--font-body);
  margin-top: 12px;
  text-align: center;
}

.t-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}
