/* App shell for logged-in tabs: greeting, scan CTA, bottom nav, history, profile.
   Re-uses the teal palette from style.css. */

body.app-tab {
  padding-bottom: calc(88px + env(safe-area-inset-bottom)); /* reserve space for bottom nav + home indicator */
  background:
    radial-gradient(1200px 300px at 50% -80px, rgba(245, 183, 74, 0.12), transparent 60%),
    linear-gradient(180deg, var(--primary-lighter) 0%, var(--bg) 260px);
}

/* ───── Greeting ───── */
.greeting {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 110% -20%, rgba(255, 255, 255, 0.28), transparent 55%),
    radial-gradient(circle at -10% 120%, rgba(245, 183, 74, 0.35), transparent 55%),
    linear-gradient(135deg, #5DD2BE 0%, #3BA696 55%, #2E8C7E 100%);
  color: white;
  padding: 30px 22px 64px;
  margin: 0 -20px 0;
}
.greeting::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.greeting::after {
  content: "";
  position: absolute;
  left: -50px; bottom: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,183,74,0.18), transparent 70%);
  pointer-events: none;
}
.greeting > * { position: relative; z-index: 1; }
.greeting .hello {
  font-size: 22px;
  opacity: 0.95;
  font-weight: 500;
}
.greeting .name {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.greeting .date {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.95;
}

/* ───── Big Scan CTA ───── */
.scan-cta {
  position: relative;
  margin: -40px 0 24px;
  background: white;
  border-radius: 22px;
  padding: 34px 24px 30px;
  text-align: center;
  box-shadow:
    0 1px 0 rgba(245, 183, 74, 0.35),    /* thin gold accent line */
    0 16px 36px -14px rgba(46, 140, 126, 0.35),
    0 2px 6px rgba(46, 140, 126, 0.08);
  border: 1px solid rgba(79, 195, 176, 0.3);
}
.scan-cta::before {
  /* warm accent ribbon on top edge */
  content: "";
  position: absolute;
  top: -1px; left: 22px; right: 22px;
  height: 4px;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, var(--primary-light), #F5B74A 55%, var(--primary-light));
  opacity: 0.8;
}
.scan-cta .scan-icon {
  width: 148px; height: 148px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.9), transparent 55%),
    radial-gradient(circle at 60% 70%, var(--primary-lighter), var(--primary-light) 70%);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-darker);
  position: relative;
  animation: scan-pulse 2.4s ease-in-out infinite;
}
.scan-cta .scan-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: 0.35;
  animation: scan-ring 2.4s ease-out infinite;
}
@keyframes scan-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 195, 176, 0.35); }
  50%      { box-shadow: 0 0 0 14px rgba(79, 195, 176, 0); }
}
@keyframes scan-ring {
  0%   { transform: scale(1);    opacity: 0.5; }
  100% { transform: scale(1.12); opacity: 0;   }
}
.scan-cta .scan-icon svg {
  width: 80px; height: 80px;
  stroke: currentColor; fill: none; stroke-width: 2;
  filter: drop-shadow(0 2px 4px rgba(46, 140, 126, 0.2));
}
.scan-cta .scan-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-darker);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.scan-cta .scan-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.55;
}
.scan-cta button, .scan-cta a.btn {
  margin-top: 22px;
  width: 100%;
  font-size: 22px;
  padding: 18px;
  background: linear-gradient(135deg, #4FC3B0 0%, #2E8C7E 100%);
  color: white;
  border-radius: 14px;
  border: none;
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 8px 18px -6px rgba(46, 140, 126, 0.6);
  cursor: pointer;
  min-height: 64px;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.scan-cta button:active, .scan-cta a.btn:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 4px 10px -4px rgba(46, 140, 126, 0.6);
}

/* ───── Bottom nav ───── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 8px calc(4px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(4px + env(safe-area-inset-left));
  z-index: 100;
  max-width: 560px;
  margin: 0 auto;
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  min-height: 0;
}
.bottom-nav .nav-item.active { color: var(--primary-dark); }
.bottom-nav .nav-item svg {
  width: 30px; height: 30px;
  stroke: currentColor; fill: none; stroke-width: 2;
}

/* ───── Inline scanner (activated by Scan CTA button) ───── */
.scan-live {
  position: fixed;
  inset: 0;
  background: #0C0C14;
  color: white;
  z-index: 200;
  display: flex;
  flex-direction: column;
}
.scan-live-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10; /* above .scan-live-overlay (z-index:1) */
  padding: env(safe-area-inset-top, 0) 20px 0;
  padding-top: calc(env(safe-area-inset-top, 0) + 14px);
  padding-bottom: 14px;
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
  pointer-events: auto;
}
.scan-live-header .back {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  border: none;
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  min-height: 0;
  padding: 0;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
}
.scan-live-header .back:active { background: rgba(255, 255, 255, 0.3); }
.scan-live-header .title { font-size: 21px; font-weight: 700; }
.scan-live video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.scan-live-overlay {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(circle at center, transparent 35%, rgba(0,0,0,0.65) 85%);
}
.scan-live-overlay .instruction {
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.4;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}
.scan-live-overlay .sub {
  font-size: 15px;
  opacity: 0.9;
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.qr-viewfinder {
  width: 240px; height: 240px;
  position: relative;
}
.qr-viewfinder::before,
.qr-viewfinder::after,
.qr-viewfinder > .bl,
.qr-viewfinder > .br {
  content: "";
  position: absolute;
  width: 38px; height: 38px;
  border: 4px solid var(--primary);
}
.qr-viewfinder::before { top: 0; left: 0; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.qr-viewfinder::after  { top: 0; right: 0; border-left:  none; border-bottom: none; border-top-right-radius: 8px; }
.qr-viewfinder > .bl   { bottom: 0; left: 0; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.qr-viewfinder > .br   { bottom: 0; right: 0; border-left:  none; border-top: none; border-bottom-right-radius: 8px; }
.qr-viewfinder .sweep {
  position: absolute;
  left: 8px; right: 8px;
  height: 2px;
  top: 50%;
  background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
  box-shadow: 0 0 14px var(--primary);
  animation: viewfinder-sweep 2.2s ease-in-out infinite alternate;
}
@keyframes viewfinder-sweep {
  from { top: 20%; } to { top: 80%; }
}

/* ───── History list ───── */
.history-head {
  background: white;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  margin: 0 -20px 16px;
}
.history-head h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
}

.history-item {
  background: white;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.history-item .date-block {
  min-width: 52px;
  text-align: center;
  flex-shrink: 0;
}
.history-item .date-block .day {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-darker);
  line-height: 1;
}
.history-item .date-block .month {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}
.history-item .detail { flex: 1; min-width: 0; }
.history-item .service {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 2px;
}
.history-item .worker {
  font-size: 16px;
  color: var(--text-2);
  margin-bottom: 6px;
}
.history-item .rating {
  color: var(--star-filled);
  font-size: 18px;
  letter-spacing: 1px;
}
.history-item .rating-empty { color: var(--star-empty); }
.history-item .photo-thumbs {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.history-item .photo-thumbs img {
  width: 54px; height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.section-sub {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
  margin: 16px 0 12px;
}

/* ───── Profile ───── */
.profile-head {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 110% -20%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at -10% 120%, rgba(245, 183, 74, 0.32), transparent 55%),
    linear-gradient(135deg, #5DD2BE 0%, #3BA696 55%, #2E8C7E 100%);
  margin: 0 -20px 20px;
  padding: 30px 20px 60px;
  color: white;
  text-align: center;
}
.profile-head::before {
  content: "";
  position: absolute;
  right: -50px; top: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 70%);
  pointer-events: none;
}
.profile-head::after {
  content: "";
  position: absolute;
  left: -60px; bottom: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,183,74,0.2), transparent 70%);
  pointer-events: none;
}
.profile-head > * { position: relative; z-index: 1; }
.profile-head .avatar-lg {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800;
  border: 4px solid rgba(255, 255, 255, 0.3);
  color: white;
}
.profile-head .name {
  font-size: 28px;
  font-weight: 800;
}
.profile-head .sub {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 6px;
}

.stats-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: -44px;
  margin-bottom: 18px;
}
.stat-card {
  background: white;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px -6px rgba(46, 140, 126, 0.3);
}
.stat-card .value {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary-darker);
  line-height: 1;
}
.stat-card .label {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 6px;
}

.menu-list {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 19px;
  font-weight: 600;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  min-height: 64px;
}
.menu-item:last-child { border-bottom: none; }
.menu-item .icon-circle {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--primary-lighter);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-item .icon-circle svg {
  width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2;
}
.menu-item .label-main { flex: 1; }
.menu-item .chevron {
  color: var(--text-muted);
  font-size: 26px;
}
.menu-item.danger { color: var(--danger); }
.menu-item.danger .icon-circle { background: #FCE8E7; color: var(--danger); }

/* ───── Photo upload (rating page) ───── */
.photo-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.photo-cell {
  width: 96px; height: 96px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.photo-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.photo-cell .x {
  position: absolute;
  top: 4px; right: 4px;
  width: 28px; height: 28px;
  background: rgba(0,0,0,0.7);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  min-height: 0;
  padding: 0;
}
.photo-add {
  width: 96px; height: 96px;
  border-radius: 14px;
  background: white;
  border: 2px dashed var(--primary-light);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 34px;
  font-weight: 300;
  min-height: 0;
  padding: 0;
}
.photo-add input { display: none; }
.photo-cell.loading::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.6);
  border-radius: 12px;
}

/* ───── Profile info list ───── */
.info-header {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--primary-lighter);
  border-bottom: 1px solid var(--border);
}
.avatar-md {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.info-name { font-size: 24px; font-weight: 800; }
.info-sub { font-size: 16px; color: var(--text-2); margin-top: 2px; }

.info-list { padding: 0; }
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}
.info-row:last-child { border-bottom: none; }
.info-k { color: var(--text-2); font-weight: 600; min-width: 100px; }
.info-v { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

.help-note {
  background: #FCF2E3;
  color: #6B4E08;
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  margin-top: 14px;
}
.help-note-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: #F4B93A;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

/* ───── Help page ───── */
.help-step {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.help-step:first-of-type { border-top: none; padding-top: 0; }
.help-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
}
.help-step-title { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.help-step-body { font-size: 17px; color: var(--text-2); line-height: 1.55; }

.faq {
  border-top: 1px solid var(--border);
  padding: 12px 0;
}
.faq:first-of-type { border-top: none; padding-top: 0; }
.faq summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  padding: 6px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary-dark);
  font-weight: 300;
}
.faq[open] summary::after { content: "−"; }
.faq p {
  margin: 8px 0 6px;
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ───── Compact identity row (rating page, returning user) ─────
   Shows "您好，<nickname>  [不是我?]" inline — avoids pushing the
   PIN numpad below the fold. */
.identity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--primary-lighter);
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}
.identity-row .identity-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.identity-row .identity-text {
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}
.identity-row .identity-hello {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}
.identity-row .identity-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identity-row .identity-switch {
  flex-shrink: 0;
  min-height: auto;
  padding: 6px 10px;
  font-size: 14px;
}

/* "您正在為以下服務員評分" caption shown above the worker-card */
.rate-caption {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 600;
  margin: 4px 2px 8px;
  letter-spacing: 0.02em;
}

/* Horizontal compact variant of .worker-card — avatar beside name, not above */
.worker-card.worker-card-sm {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.worker-card.worker-card-sm .avatar {
  width: 56px; height: 56px;
  font-size: 22px;
  margin: 0;
  flex-shrink: 0;
}
.worker-card.worker-card-sm .worker-card-text { flex: 1; min-width: 0; }
.worker-card.worker-card-sm .name { font-size: 22px; margin: 0; }
.worker-card.worker-card-sm .role { font-size: 15px; margin-top: 2px; }

/* ───── Pre-filled login hero (confirm-who-you-are) ───── */
.prefilled-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 110% -20%, rgba(255, 255, 255, 0.22), transparent 55%),
    radial-gradient(circle at -10% 120%, rgba(245, 183, 74, 0.32), transparent 55%),
    linear-gradient(135deg, #5DD2BE 0%, #3BA696 55%, #2E8C7E 100%);
  color: white;
  padding: 30px 20px 28px;
  text-align: center;
}
.prefilled-hero::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  pointer-events: none;
}
.prefilled-hero::after {
  content: "";
  position: absolute;
  left: -50px; bottom: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,183,74,0.22), transparent 70%);
  pointer-events: none;
}
.prefilled-hero > * { position: relative; z-index: 1; }
.prefilled-hero .hello-small {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.avatar-xl {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; font-weight: 800;
  margin: 0 auto 14px;
  border: 4px solid rgba(255, 255, 255, 0.3);
}
.big-name {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.big-sub {
  font-size: 16px;
  opacity: 0.9;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Compact prefilled hero on short viewports — saves ~130px vs default. */
@media (max-height: 700px) {
  .prefilled-hero { padding: 18px 16px 14px; }
  .prefilled-hero .hello-small { font-size: 14px; margin-bottom: 6px; }
  .avatar-xl {
    width: 72px; height: 72px;
    font-size: 34px;
    margin: 0 auto 8px;
    border-width: 3px;
  }
  .big-name { font-size: 28px; }
  .big-sub { font-size: 13px; margin-top: 4px; }
}

/* ───── Photo lightbox ───── */
.photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lightbox-fade 0.15s ease;
}
@keyframes lightbox-fade {
  from { opacity: 0; } to { opacity: 1; }
}
.photo-lightbox img {
  max-width: 96vw;
  max-height: 86vh;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.photo-lightbox .close {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0) + 16px);
  right: 16px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 26px;
  font-weight: 300;
  -webkit-tap-highlight-color: rgba(255,255,255,0.2);
}
.photo-lightbox .close:active { background: rgba(255,255,255,0.3); }

/* make thumbnails hint they are tappable */
.history-item .photo-thumbs img {
  cursor: pointer;
  transition: transform 0.12s ease;
}
.history-item .photo-thumbs img:active { transform: scale(0.94); }
