:root {
  --bg: #071314;
  --panel: #0c1d1f;
  --line: rgba(255,255,255,0.12);
  --text: #eefafa;
  --muted: #94b9bb;
  --accent: #04b8ad;
  --accent2: #00e0d2;
  --danger: #ff6b6b;
  --warn: #ffd166;
  --good: #5cffb1;
  --shadow: 0 22px 70px rgba(0,0,0,0.35);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(circle at 20% 10%, rgba(4,184,173,.16), transparent 34%), var(--bg); color: var(--text); }
body { padding: 22px; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }
.topbar { max-width: 1240px; margin: 0 auto 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logoImg { width: 66px; height: 66px; border-radius: 50%; object-fit: contain; background: rgba(255,255,255,.04); box-shadow: 0 0 0 1px var(--line); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 2px; font-size: clamp(1.5rem, 2vw, 2.1rem); }
h2 { margin-bottom: 6px; }
h3 { margin-bottom: 8px; }
.brand p, .muted { color: var(--muted); }
.normalWeight { font-weight: 500; }
.authPanel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.userStatus { color: var(--muted); font-size: .92rem; }
button { border: 0; border-radius: 999px; padding: 12px 18px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #031314; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(4,184,173,.18); }
button:hover { transform: translateY(-1px); }
button.secondary { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
button.fullBtn { width: 100%; padding: 15px 18px; margin-top: 8px; }
button.smallBtn { padding: 8px 11px; font-size: .82rem; }
button.choiceCard { text-align: left; border-radius: var(--radius); padding: 26px; min-height: 170px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: var(--text); background: linear-gradient(145deg, rgba(4,184,173,.22), rgba(255,255,255,.045)); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.choiceCard span { color: var(--accent2); font-weight: 800; text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; }
.choiceCard strong { font-size: 1.7rem; }
.choiceCard small { color: var(--muted); line-height: 1.4; }
main { max-width: 1240px; margin: 0 auto; }
.card, .notice, .statCard, .captureBox, .detailsBox, .photoTrayBox { background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.028)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card { padding: 24px; }
.notice { padding: 16px 18px; margin-bottom: 18px; color: #d9fffc; }
.signedOut { max-width: 850px; }
.splitIntro { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.introLogo { width: 150px; height: 150px; object-fit: contain; opacity: .9; }
.statsGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.statCard { padding: 18px; }
.statCard span { display: block; font-size: 2rem; font-weight: 900; color: var(--accent2); }
.statCard small { color: var(--muted); }
.choiceGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.modePanel { animation: appear .18s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sectionHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.buttonCluster { display: flex; align-items: center; gap: 10px; }
.wrapButtons { flex-wrap: wrap; margin: 12px 0 16px; }
.intakeCard { padding: 24px; }
.photoStage { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 18px; align-items: start; }
.captureBox, .detailsBox, .photoTrayBox { padding: 20px; }
.detailsBox { margin-top: 18px; }
.videoWrap, .editorWrap { position: relative; width: 100%; max-width: 560px; margin: 0 auto 14px; background: #020809; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.videoWrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.editorWrap canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.editorWrap canvas:active { cursor: grabbing; }
.ovalOverlay { position: absolute; inset: 8% 14%; border: 4px solid rgba(0,224,210,.95); border-radius: 50% / 42%; box-shadow: 0 0 0 999px rgba(0,0,0,.34), 0 0 28px rgba(0,224,210,.25); pointer-events: none; }
.editorOval { inset: 12% 18%; }
.overlayHint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: rgba(2,8,9,.72); border: 1px solid rgba(255,255,255,.16); color: #dffffc; padding: 8px 12px; border-radius: 999px; font-size: .86rem; pointer-events: none; white-space: nowrap; }
.editorHint { bottom: 14px; }
.uploadGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.uploadLabel, label { display: block; color: #dff6f5; font-weight: 700; margin: 14px 0; }
.uploadLabel input, label input, label select, label textarea { margin-top: 7px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 15px; background: rgba(0,0,0,.22); color: var(--text); padding: 13px 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: rgba(0,224,210,.7); box-shadow: 0 0 0 4px rgba(0,224,210,.08); }
textarea { resize: vertical; }
.simpleGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compactDetails label { margin: 10px 0; }
.locationLine { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0; padding: 12px; background: rgba(0,0,0,.15); border: 1px solid var(--line); border-radius: 16px; }
.controlGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: center; }
.rangeLabel { grid-column: 1 / -1; margin: 4px 0 0; }
input[type="range"] { padding: 0; accent-color: var(--accent); }
.qualityInline { display: flex; align-items: center; gap: 12px; margin: 10px 0; }
.qualityBadge { display: inline-flex; align-items: center; border-radius: 999px; padding: 9px 12px; font-weight: 900; border: 1px solid var(--line); }
.scoreInline { color: var(--accent2); font-size: 1.35rem; }
.qualityBadge.neutral, .statusPill.neutral { background: rgba(255,255,255,.08); color: var(--muted); }
.qualityBadge.great, .statusPill.great { background: rgba(92,255,177,.15); color: var(--good); border-color: rgba(92,255,177,.35); }
.qualityBadge.good, .statusPill.good { background: rgba(0,224,210,.13); color: var(--accent2); border-color: rgba(0,224,210,.35); }
.qualityBadge.warn, .statusPill.warn { background: rgba(255,209,102,.15); color: var(--warn); border-color: rgba(255,209,102,.35); }
.qualityBadge.bad, .statusPill.bad { background: rgba(255,107,107,.15); color: var(--danger); border-color: rgba(255,107,107,.35); }
.qualityBreakdown, .adviceBox { background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.compact { margin-top: 10px; }
.miniDl, .record dl { display: grid; grid-template-columns: 120px 1fr; gap: 7px 12px; margin: 0; }
.miniDl dt, .record dt { color: var(--muted); }
.miniDl dd, .record dd { margin: 0; color: #eafffd; overflow-wrap: anywhere; }
.message { min-height: 24px; color: var(--accent2); font-weight: 700; }
.message.error { color: var(--danger); }
.photoTray { display: grid; gap: 10px; max-height: 620px; overflow: auto; padding-right: 4px; }
.trayItem { display: grid; grid-template-columns: 74px 1fr auto; gap: 10px; align-items: center; background: rgba(0,0,0,.18); border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.trayItem img { width: 74px; height: 88px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.trayItem strong, .trayItem small { display: block; }
.trayItem small { color: var(--muted); margin-top: 4px; }
.searchLine { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-bottom: 12px; }
.scrollGallery { max-height: 70vh; overflow: auto; padding-right: 5px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.record { background: rgba(0,0,0,.2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.recordHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.record h3 { margin-bottom: 2px; }
.statusPill { white-space: nowrap; border-radius: 999px; padding: 7px 10px; font-size: .78rem; font-weight: 900; border: 1px solid var(--line); background: rgba(255,255,255,.08); }
.recordPhotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.recordPhotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: #020809; }
.recordNotes { color: #dff6f5; white-space: pre-wrap; }
.warning { border-top: 1px solid var(--line); padding-top: 12px; color: #ffdede; font-size: .88rem; margin-bottom: 0; }
@media (max-width: 900px) {
  body { padding: 14px; }
  .topbar, .sectionHead, .splitIntro { flex-direction: column; align-items: stretch; }
  .authPanel { justify-content: flex-start; }
  .statsGrid, .choiceGrid, .photoStage, .gallery, .simpleGrid, .searchLine, .uploadGrid { grid-template-columns: 1fr; }
  .controlGrid { grid-template-columns: 1fr; }
  .introLogo { width: 110px; height: 110px; }
  .miniDl, .record dl { grid-template-columns: 1fr; }
  .trayItem { grid-template-columns: 60px 1fr; }
  .trayItem button { grid-column: 1 / -1; }
}


.apkLoginBox {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  display: grid;
  gap: 10px;
}
.apkLoginBox h3 { margin: 0; }
.apkLoginBox input { width: 100%; }

/* v5 tighter APK/gallery layout */
.notice { display: none; }
.statsStrip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .86rem;
  flex-wrap: wrap;
}
.miniStat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.miniStat small { color: var(--muted); }
.miniStat span { color: var(--accent2); font-weight: 900; font-size: .98rem; }
.compactChoice { min-height: 124px !important; padding: 20px !important; }
.compactChoice strong { font-size: 1.35rem !important; }
.compactChoice span { font-size: .72rem !important; }
.captureHead p { margin-bottom: 6px; }
.uploadGrid { margin-top: 8px; }
.photoGallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.photoTile {
  position: relative;
  display: block;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  background: #020809;
  box-shadow: none;
  color: var(--text);
}
.photoTile:hover { transform: translateY(-1px); }
.photoTile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photoTileInfo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.82));
  text-align: left;
}
.photoTileInfo strong, .photoTileInfo small { display: block; line-height: 1.25; }
.photoTileInfo strong { font-size: .9rem; }
.photoTileInfo small { color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 600; margin-top: 3px; }
.photoModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
}
.photoModalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}
.photoModalPanel {
  position: relative;
  width: min(940px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: linear-gradient(180deg, rgba(12,29,31,.98), rgba(7,19,20,.98));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.modalHead { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.modalImage {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #020809;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}
.modalDetails {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 7px 12px;
  margin: 14px 0;
}
.modalDetails dt { color: var(--muted); }
.modalDetails dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .photoGallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .statsStrip { font-size: .82rem; }
  .modalDetails { grid-template-columns: 1fr; }
  .photoModalPanel { padding: 12px; }
  .modalHead { flex-direction: column; }
}

/* v6 cleaner intake + web/iPhone camera-ready layout */
.statsStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.miniStat {
  border: 1px solid rgba(4,184,173,.22);
  background: rgba(4,184,173,.055);
  border-radius: 14px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
}
.miniStat span {
  font-size: 1.12rem;
  color: var(--accent2);
  font-weight: 950;
  line-height: 1;
}
.miniStat small {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.cleanIntakeDetails {
  margin-bottom: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
}
.intakePhotosFirst {
  margin-top: 0;
}
.saveBox {
  margin-top: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.13);
}
.captureBox .buttonCluster#cameraTools {
  display: flex;
  margin-bottom: 10px;
}
.videoWrap {
  min-height: 360px;
}
.videoWrap video {
  min-height: 360px;
  object-fit: cover;
}
.ovalOverlay {
  border: 3px solid rgba(4, 238, 223, .88);
  box-shadow: 0 0 0 9999px rgba(0,0,0,.42), 0 0 28px rgba(4,238,223,.28);
}
.uploadGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.uploadLabel {
  text-align: center;
  min-height: 68px;
  align-content: center;
}
.fullBtn {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 760px) {
  .statsStrip { grid-template-columns: 1fr; gap: 8px; }
  .miniStat { justify-content: space-between; }
  .uploadGrid { grid-template-columns: 1fr; }
  .videoWrap, .videoWrap video { min-height: 430px; }
}

/* v7 oval camera flow + cleaner gallery */
.captureBox, .photoTrayBox, .editorPanel, .photoStage, .intakeCard { min-width: 0; }
.videoWrap, .editorWrap {
  width: min(100%, 520px);
  max-width: 100%;
  overflow: hidden;
}
.editorPanel { max-width: 100%; overflow: hidden; }
.overlayHint {
  max-width: calc(100% - 24px);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}
.liveQuality {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: grid;
  gap: 3px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(2,8,9,.76);
  border: 1px solid rgba(255,255,255,.16);
  color: #eafffd;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  pointer-events: none;
  font-size: .84rem;
}
.liveQuality strong { color: var(--accent2); }
.liveQuality.great strong, .liveQuality.good strong { color: var(--good); }
.liveQuality.warn strong { color: var(--warn); }
.liveQuality.bad strong { color: var(--danger); }
.liveQuality span { line-height: 1.25; overflow-wrap: anywhere; }
.singleUpload { grid-template-columns: 1fr; }
.singleUpload .uploadLabel { min-height: 62px; }
.qualityBreakdown.hidden { display: none; }
.adviceBox.compact p { margin-bottom: 0; line-height: 1.45; }
.photoTileInfo { padding: 12px 10px; }
.photoTileInfo strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.statsStrip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.miniStat {
  min-height: 36px;
  padding: 7px 10px;
  background: rgba(4,184,173,.045);
}
.miniStat span { font-size: 1rem; }
.miniStat small { font-size: .68rem; }
@media (max-width: 760px) {
  body { padding: 10px; }
  .card, .intakeCard { padding: 14px; }
  .captureBox, .detailsBox, .photoTrayBox { padding: 14px; }
  .statsStrip { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .miniStat { flex-direction: column; gap: 2px; justify-content: center; text-align: center; }
  .miniStat small { font-size: .58rem; letter-spacing: .02em; }
  .videoWrap, .editorWrap { width: 100%; min-height: auto; aspect-ratio: 3 / 4; }
  .videoWrap video { min-height: auto; }
  .liveQuality { font-size: .78rem; }
}

/* v8 fixes: remove bulky stats cards, tighten capture review, bottom stats */
.bottomStats {
  position: sticky;
  bottom: 8px;
  z-index: 20;
  margin: 18px auto 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(4,184,173,.22);
  border-radius: 999px;
  background: rgba(2, 8, 9, .78);
  backdrop-filter: blur(8px);
  color: var(--muted);
  font-size: .78rem;
  box-shadow: 0 10px 28px rgba(0,0,0,.28);
}
.bottomStats span { white-space: nowrap; }
.bottomStats b { color: var(--accent2); font-size: .95rem; }

.editorPanel.cameraReview .controlGrid,
.editorPanel.cameraReview .editorOval,
.editorPanel.cameraReview .editorHint {
  display: none;
}
.editorPanel.cameraReview .editorWrap {
  max-width: 420px;
  aspect-ratio: 3 / 4;
}
.editorPanel.cameraReview .editorWrap canvas {
  border-radius: 18px;
}
.editorPanel.cameraReview .adviceBox strong::after {
  content: " after capture";
}
.liveQuality.neutral strong { color: var(--accent2); }

@media (max-width: 760px) {
  .bottomStats {
    width: calc(100% - 10px);
    border-radius: 16px;
    font-size: .72rem;
    gap: 8px;
  }
  .bottomStats b { font-size: .86rem; }
  .editorPanel.cameraReview .editorWrap { max-width: 100%; }
}

/* v10 capture controls + locked captured review */
.cameraActionPanel {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 14px;
}
.cameraOpenBtn {
  min-width: min(100%, 280px);
}
.captureMain {
  width: min(100%, 330px);
  min-height: 64px;
  border-radius: 999px;
  font-size: 1.16rem;
  font-weight: 900;
  letter-spacing: .02em;
  box-shadow: 0 18px 42px rgba(4,184,173,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.cameraMiniActions {
  display: flex;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
}
.iconBtn {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.55rem;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--text);
}
.iconBtn.danger {
  color: #ffd9d9;
  border-color: rgba(255, 99, 99, .35);
  background: rgba(255, 99, 99, .08);
}
.editorPanel.lockedReview .editorWrap canvas {
  cursor: default;
  touch-action: auto;
}
.editorPanel.lockedReview .controlGrid {
  display: none;
}
.editorPanel.cameraReview:not(.lockedReview) .controlGrid {
  display: grid;
}
.editorPanel.cameraReview:not(.lockedReview) .editorOval,
.editorPanel.cameraReview:not(.lockedReview) .editorHint {
  display: block;
}
.reviewActions #adjustCapturedBtn:not(.hidden) {
  order: 2;
}
.reviewActions #discardCurrentPhotoBtn {
  order: 3;
}
.reviewActions #addPhotoBtn {
  order: 1;
}
@media (max-width: 760px) {
  .captureMain { min-height: 58px; font-size: 1.08rem; }
  .iconBtn { width: 42px; height: 42px; font-size: 1.35rem; }
}

/* v11 Record detail + existing Record update flow */
.recordDetailPanel {
  width: min(1120px, 97vw);
}
.detailLayout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  align-items: start;
}
.detailHeroImage {
  max-height: 58vh;
}
.detailThumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.detailThumb {
  position: relative;
  padding: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: #020809;
  border: 1px solid var(--line);
  box-shadow: none;
}
.detailThumb.active {
  outline: 3px solid var(--accent2);
  outline-offset: 2px;
}
.detailThumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detailThumb span {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: #fff;
  font-size: .72rem;
}
.detailSide {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.14);
}
.detailMeta {
  margin-top: 12px;
}
.detailActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.dangerText {
  color: #ffd0d0 !important;
  border-color: rgba(255,107,107,.32) !important;
}
@media (max-width: 900px) {
  .detailLayout { grid-template-columns: 1fr; }
  .recordDetailPanel { width: min(97vw, 760px); }
  .detailHeroImage { max-height: 54vh; }
  .detailActions { display: grid; }
}

/* v12 safer structure / sharing */
.compactSelect,
.photoTypeLine {
  max-width: 360px;
}
.photoTypeLine {
  margin: 12px 0 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.14);
}
.detailSmallGrid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.detailSmallGrid label { margin: 8px 0; }
#sharePhotoBtn {
  border-color: rgba(0,224,210,.42);
  color: #dffffc;
}
@media (max-width: 720px) {
  .detailSmallGrid { grid-template-columns: 1fr; }
  .compactSelect, .photoTypeLine { max-width: none; }
}
