/* ════════════════════════════════════════════════════════════════
   SeaTurtlesJa — "CURRENT" design system (production port)
   Modern coastal-editorial: navy→teal gradient heroes with a wave
   contour fingerprint, glassy tab bars, white rounded cards, DM Serif
   Display numerals, DM Mono kickers, bright cyan accents.

   Ported from the Claude Design handoff (redesign/ds/tokens.css +
   current.css). Adapted for the real responsive PWA: the 390px phone
   artboard, the mock status bar, and the home indicator are dropped;
   widths are fluid and capped for larger screens.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Ocean — anchored to the logo medallion */
  --ink:      #06243B;
  --navy:     #082A45;
  --navy-900: #061F35;
  --navy-700: #103a5c;
  --sea-900:  #0B4A5A;
  --sea-800:  #0E7490;
  --sea-700:  #0E8BA8;
  --sea-600:  #16A6C4;
  --cyan:     #2BBFD4;
  --cyan-200: #8FE0EC;
  --aqua-200: #B9EBF1;
  --aqua-100: #DEF6F9;
  --aqua-50:  #EFFAFB;

  --paper-chart: #F4EEE1;
  --sand-200: #E8DCC2;
  --sand-100: #F3EAD6;
  --sand-50:  #FBF6EB;

  --amber:    #E8A13C;
  --amber-700:#B26A12;
  --amber-soft:#FBEFD6;
  --coral:    #F2724B;
  --coral-700:#CC4F2C;
  --coral-soft:#FBE6DD;
  --moss:     #4E8C5A;

  --white:    #ffffff;
  --paper:    #FBFCFC;

  --cur-gray-800: #233438;
  --cur-gray-700: #3A4A4E;
  --cur-gray-600: #4B5563;
  --cur-gray-500: #6E8085;
  --cur-gray-400: #93A4A8;
  --cur-gray-300: #C6D2D4;
  --cur-gray-100: #EEF2F2;
  --line:     #E4ECEC;

  --cur-success:  #1F9E6E;
  --cur-error:    #DC2626;

  --f-sans:  'DM Sans', system-ui, sans-serif;
  --f-mono:  'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --f-curr:  'DM Serif Display', Georgia, serif;
}

/* ── Theme base ─────────────────────────────────────────────────────
   `.cur` is applied to each screen root. Fluid width, capped on large
   screens so the phone-first layout reads well on desktop too. */
.cur {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  font-family: var(--f-sans);
  color: var(--ink);
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: linear-gradient(180deg, var(--aqua-50) 0%, #fff 30%, var(--aqua-50) 100%);
  min-height: 100%;
}
.cur * { box-sizing: border-box; }
.cur p { margin: 0; }
.cur h1, .cur h2, .cur h3, .cur h4 { margin: 0; font-weight: 700; line-height: 1.1; }
.cur h1, .cur h2, .cur h3 { font-family: var(--f-curr); font-weight: 400; }

.ic { display: inline-block; vertical-align: middle; flex: none; }

/* hero gradient + wave fingerprint. Top padding clears the device
   status bar / notch via the safe-area inset. */
.cur-hero {
  position: relative; color: #fff;
  padding-top: calc(env(safe-area-inset-top, 0px) + 14px);
  background:
    var(--ripple-cyan) right -70px top -100px / 280px 280px no-repeat,
    var(--contour-light),
    radial-gradient(130% 80% at 70% -10%, rgba(43,191,212,0.45) 0%, transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--sea-900) 65%, var(--sea-800) 120%);
  border-radius: 0 0 30px 30px;
}
.cur-card { background: #fff; border-radius: 22px; box-shadow: 0 24px 50px -28px rgba(6,36,59,0.55), 0 2px 8px rgba(6,36,59,0.05); }
.cur-glass { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cur-kick { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }

.cur-btn { height: 54px; border-radius: 16px; border: none; width: 100%; cursor: pointer;
  background: linear-gradient(180deg, var(--sea-600), var(--sea-800)); color: #fff;
  font: 600 15.5px var(--f-sans); letter-spacing: 0.01em; display:flex; align-items:center; justify-content:center; gap: 9px;
  box-shadow: 0 16px 30px -12px rgba(14,116,144,0.75); }
.cur-btn.cyan { background: linear-gradient(180deg, var(--cyan), var(--sea-700)); }
.cur-btn:disabled { opacity: 0.55; box-shadow: none; }
.cur-l { display:block; font-size: 12.5px; font-weight: 600; color: var(--cur-gray-700); margin-bottom: 7px; }
.cur-inp { display:flex; align-items:center; gap: 11px; border: 1.6px solid transparent; border-radius: 14px; background: var(--aqua-50); padding: 0 15px; height: 52px; font-size: 15px; color: var(--ink); width:100%; }
.cur-inp svg { color: var(--sea-700); flex:none; }
.cur-inp input { border:none; background:transparent; outline:none; flex:1; font: inherit; color: var(--ink); min-width:0; }
.cur-inp input::placeholder { color: var(--cur-gray-400); }
.cur-inp .ph { color: var(--cur-gray-400); }
.cur-inp.focus, .cur-inp:focus-within { background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(43,191,212,0.18); }
.cur-inp .eye { margin-left:auto; color: var(--cur-gray-400); display:flex; background:none; border:none; cursor:pointer; }
.cur-stack { display:flex; flex-direction:column; gap: 16px; }

/* ── LOGIN ──────────────────────────────────────────────────────── */
.cur-login { display:flex; flex-direction:column; min-height: 100vh; }
.cur-login .hero { padding: 6px 28px 78px; text-align:center; }
.cur-login .hero .topline { display:flex; justify-content:space-between; align-items:center; padding: 6px 0 18px; }
.cur-login .hero .topline .cur-kick { color: var(--cyan-200); }
.cur-medal { width: 92px; height: 92px; margin: 14px auto 14px; display:block; filter: drop-shadow(0 12px 26px rgba(0,0,0,0.4)); }
.cur-login h1 { font-size: 38px; color:#fff; letter-spacing: -0.01em; line-height: 1; }
.cur-login .sub { margin-top: 12px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-200); }
.cur-body { padding: 0 22px 24px; margin-top: -56px; position: relative; z-index: 3; display:flex; flex-direction:column; flex:1; }
.cur-login .card { padding: 26px 22px 26px; }
.cur-login .card .ttl { font-family: var(--f-curr); font-size: 22px; margin-bottom: 20px; color: var(--ink); }
.cur-publiclbl { margin: 22px 0 0; text-align:center; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cur-gray-600); position:relative; }
.cur-publiclbl::before, .cur-publiclbl::after { content:""; position:absolute; top:50%; width: 22%; height:1px; background: var(--cur-gray-300, #d6dee0); }
.cur-publiclbl::before { left:0; } .cur-publiclbl::after { right:0; }
.cur-guest { margin-top: 12px; padding: 18px; display:flex; align-items:center; gap: 14px; border-radius: 20px; cursor:pointer; text-decoration:none;
  background: linear-gradient(135deg, var(--cyan), var(--sea-700)); border: none; box-shadow: 0 12px 26px -12px rgba(14,116,144,0.75); }
.cur-guest .ico { width: 46px; height: 46px; border-radius: 14px; flex:none; background: rgba(255,255,255,0.22); color:#fff; display:flex; align-items:center; justify-content:center; }
.cur-guest h3 { font-family: var(--f-sans); font-weight: 800; font-size: 15px; color: #fff; }
.cur-guest p { font-size: 12px; color: rgba(255,255,255,0.92); margin-top: 3px; line-height: 1.45; }
.cur-guest .go { margin-left:auto; color: #fff; flex:none; }
.cur-demo { margin-top: 10px; padding: 13px 18px; display:flex; align-items:center; gap: 12px; width:100%; box-sizing:border-box;
  border-radius: 16px; cursor:pointer; text-decoration:none; background:#fff; border:1.5px solid var(--cur-gray-300, #d6dee0);
  font-family: var(--f-sans); font-weight: 700; font-size: 13.5px; color: var(--ink); }
.cur-demo:hover { border-color: var(--sea-700); }
.cur-demo .ico { width: 34px; height: 34px; border-radius: 10px; flex:none; background: var(--aqua-100, #def6f9); color: var(--sea-800, #0e7490); display:flex; align-items:center; justify-content:center; }
.cur-demo .go { margin-left:auto; color: var(--cur-gray-600); flex:none; }
.cur-demo small { display:block; font-weight:500; font-size:11.5px; color: var(--cur-gray-600); margin-top:2px; }
.cur-foot { margin-top:auto; padding-top: 24px; text-align:center; }
.cur-conn { display:inline-flex; align-items:center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--coral-soft); color: var(--coral-700); }
.cur-conn.online { background: rgba(31,158,110,0.12); color: var(--cur-success); }
.cur-conn .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cur-foot .org { margin-top: 11px; font-size: 12px; color: var(--cur-gray-500); }

/* ── DASHBOARD ──────────────────────────────────────────────────── */
.cur-dash { display:flex; flex-direction:column; min-height: 100vh; overflow-x: hidden; }
.cur-dhero { padding: 2px 18px 26px; }
.cur-drow1 { display:flex; align-items:center; gap: 11px; padding: 4px 0 14px; }
.cur-drow1 img { width: 36px; height: 36px; flex:none; }
.cur-drow1 .nm { font-family: var(--f-curr); font-size: 22px; color:#fff; }
.cur-drow1 .right { margin-left:auto; display:flex; align-items:center; gap: 10px; }
.cur-drow1 .who { font-size: 12px; color: var(--cyan-200); font-weight: 600; }
.cur-drow1 .av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.3); flex:none; color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; }
.cur-hbtns { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 12px; }
.cur-hbtn { padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight:600; color:#fff; cursor:pointer;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); display:inline-flex; gap:6px; align-items:center; }
.cur-tabs { display:flex; flex-wrap: wrap; gap: 5px; padding: 4px; border-radius: 14px; }
.cur-tabs .tb { flex:1 1 auto; min-width: 0; text-align:center; padding: 9px 8px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.7); border-radius: 10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; cursor:pointer; }
.cur-tabs .tb.on { background: #fff; color: var(--sea-900); }
.cur-dbody { padding: 18px; display:flex; flex-direction:column; gap: 16px; flex:1; margin-top: -8px; }
.cur-score { display:grid; grid-template-columns: repeat(4, 1fr); padding: 4px 0 6px; }
.cur-score .s { text-align:center; border-right: 1px solid var(--line); padding: 4px 2px; }
.cur-score .s:nth-child(4) { border-right:none; }
.cur-score .s .n { font-family: var(--f-curr); font-size: 26px; line-height: 1; }
.cur-score .s .l { font-size: 10px; color: var(--cur-gray-500); margin-top: 5px; font-weight: 600; letter-spacing: 0.02em; }
.cur-score .s.act .n { color: var(--cur-success); } .cur-score .s.inc .n { color: var(--sea-700); }
.cur-score .s.ovd .n { color: var(--coral-700); } .cur-score .s.app .n { color: var(--amber-700); }
.cur-score-season { border-top: 1px dashed var(--line); margin-top: 6px; padding: 11px 6px 4px; display:flex; align-items:center; gap: 12px; }
.cur-score-season .lab { flex:1; display:flex; flex-direction:column; }
.cur-score-season .lab .t { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cur-gray-400); }
.cur-score-season .lab .v { font-family: var(--f-sans); font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 3px; }
.cur-score-season .num { font-family: var(--f-curr); font-size: 32px; color: var(--sea-800); line-height: 1; }
.cur-score-season .num .pct { font-family: var(--f-mono); font-size: 11px; color: var(--cur-gray-500); margin-left: 6px; letter-spacing: 0.08em; }
.cur-scorewrap { padding: 14px 12px 8px; }
.cur-unconf-warn { border-top: 1px solid #fde68a; background: #fffbeb; color: #92400e; font-size: 13px; font-weight: 600; padding: 7px 12px; display: flex; align-items: center; gap: 6px; margin: 0 -12px; }
.cur-score-cum { border-top: 1px dashed var(--line); margin-top: 8px; padding: 10px 4px 2px; }
.cum-head { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cur-gray-400); margin-bottom: 6px; }
.cum-row { display: grid; grid-template-columns: repeat(3,1fr); }
.cum-item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2px 0; border-right: 1px solid var(--line); }
.cum-item:last-child { border-right: none; }
.cum-n { font-family: var(--f-curr); font-size: 22px; line-height: 1; color: var(--sea-800); }
.cum-l { font-size: 10px; color: var(--cur-gray-500); margin-top: 4px; font-weight: 600; letter-spacing: 0.02em; }
.cur-filt { display:flex; flex-wrap:wrap; gap: 8px; align-items:center; }
.cur-fchip { padding: 8px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; border: 1.5px solid var(--line); background:#fff; color: var(--cur-gray-700); display:inline-flex; gap: 6px; align-items:center; cursor:pointer; }
.cur-fchip.on, .cur-fchip.active { background: linear-gradient(180deg,var(--sea-600),var(--sea-800)); border-color: transparent; color:#fff; }
.cur-nest { position:relative; padding: 16px 16px 16px 20px; overflow:hidden; cursor:pointer; }
.cur-nest::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background: linear-gradient(180deg,var(--cyan),var(--cur-success)); }
.cur-nest.complete::before { background: var(--cur-gray-300); }
.cur-nest.draft::before { background: linear-gradient(180deg,var(--cur-gray-300),var(--cur-gray-400)); }
.cur-nest .id { font-family: var(--f-mono); font-size: 11px; color: var(--cur-gray-400); }
.cur-nest .row { display:flex; align-items:flex-start; justify-content:space-between; gap: 12px; margin-top: 4px; }
.cur-nest .zone { font-family: var(--f-curr); font-size: 22px; color: var(--ink); }
.cur-nest .sp { font-size: 13px; color: var(--cur-gray-500); margin-top: 2px; }
.cur-nest .days { text-align:right; flex:none; }
.cur-nest .days .n { font-family: var(--f-curr); font-size: 34px; line-height: 1; color: var(--cur-success); }
.cur-nest .days .u { font-size: 11px; color: var(--cur-gray-500); }
.cur-nest .tags { display:flex; flex-wrap:wrap; gap: 8px; align-items:center; margin-top: 14px; }
.cur-ntag { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; }
.cur-ntag.relo { background: var(--coral-soft); color: var(--coral-700); }
.cur-ntag.hatch { background: var(--aqua-100); color: var(--sea-800); }
.cur-ntag.incub { background: var(--cur-gray-100); color: var(--cur-gray-500); }
.cur-ntag.ok { background: rgba(31,158,110,0.12); color: var(--cur-success); }
.cur-ntag.warn { background: var(--amber-soft); color: var(--amber-700); }
.cur-marklost { margin-left:auto; font-size: 11.5px; font-weight: 600; color: var(--coral-700); border: 1.4px solid rgba(204,79,44,0.4); border-radius: 999px; padding: 5px 12px; background:none; cursor:pointer; }
.cur-fab { position:fixed; right: 18px; bottom: 24px; width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(180deg,var(--cyan),var(--sea-800)); color:#fff; display:flex; align-items:center; justify-content:center; box-shadow: 0 18px 32px -10px rgba(14,116,144,0.8); border:none; cursor:pointer; z-index: 50; }

/* Guest report queue card — speaks the same language as the nest card
   (white rounded card + colored left accent + serif location), so the
   admin Guest Reports section and the surveyor guest dashboard read
   consistently with the rest of the reskin. --gr-accent is set per row
   from the status colour. Self-contained (border, not heavy shadow) so it
   nests cleanly inside the admin accordion card too. */
.cur-greportcard { position:relative; background:#fff; border:1px solid var(--line);
  border-radius:14px; padding:12px 14px 13px 18px; margin-bottom:10px; overflow:hidden;
  cursor:pointer; box-shadow:0 10px 24px -20px rgba(6,36,59,0.5);
  transition:transform .12s ease, box-shadow .12s ease; }
.cur-greportcard:hover { transform:translateY(-1px); box-shadow:0 16px 30px -18px rgba(6,36,59,0.55); }
.cur-greportcard::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px;
  background:var(--gr-accent, var(--cur-gray-300)); }
.cur-greportcard .gr-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.cur-greportcard .gr-pill { padding:2px 9px; border-radius:999px; font-size:10.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:0.03em; }
.cur-greportcard .gr-when { font-family:var(--f-mono); font-size:11px; color:var(--cur-gray-500); margin-left:auto; }
.cur-greportcard .gr-where { font-family:var(--f-curr); font-size:18px; color:var(--ink); line-height:1.2; margin-top:5px; }
.cur-greportcard .gr-meta { font-size:12px; color:var(--cur-gray-500); line-height:1.4; margin-top:3px; }
.cur-greportcard .gr-notes { font-size:12px; color:var(--cur-gray-600,#4B5563); margin-top:9px; padding:7px 10px;
  background:var(--aqua-50); border-radius:10px; line-height:1.4; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ── REPORT / FORM ──────────────────────────────────────────────── */
.cur-rep { min-height: 100vh; display:flex; flex-direction:column; }
.cur-rhero { padding: 2px 18px 24px; }
.cur-rrow { display:flex; align-items:center; gap: 12px; padding: 4px 0; }
.cur-rback { width: 40px; height: 40px; border-radius: 13px; flex:none; display:flex; align-items:center; justify-content:center; color:#fff; cursor:pointer; }
.cur-rhero .rt { flex:1; }
.cur-rhero .rt h2 { font-size: 24px; color:#fff; }
.cur-rhero .rt .cur-kick { color: var(--cyan-200); margin-top: 3px; display:block; }
.cur-prog { display:flex; gap: 6px; margin-top: 14px; }
.cur-prog i { flex:1; height: 4px; border-radius: 3px; background: rgba(255,255,255,0.22); }
.cur-prog i.on { background: var(--cyan); }
.cur-rbody { padding: 18px; display:flex; flex-direction:column; gap: 16px; margin-top: -8px; }
.cur-intro { display:flex; gap: 12px; padding: 16px 17px; align-items:flex-start; font-size: 12.5px; line-height: 1.5; color: var(--cur-gray-700);
  background: linear-gradient(135deg, rgba(43,191,212,0.1), rgba(255,255,255,0)); }
.cur-intro .ico { color: var(--sea-700); flex:none; margin-top: 1px; }
.cur-intro b { color: var(--sea-800); }
.cur-sec { padding: 20px 18px; }
.cur-sech { display:flex; align-items:center; gap: 11px; margin-bottom: 18px; }
.cur-sech .n { width: 30px; height: 30px; border-radius: 10px; flex:none; background: linear-gradient(180deg,var(--cyan),var(--sea-700)); color:#fff; font-family: var(--f-sans); font-weight: 700; font-size: 14px; display:flex; align-items:center; justify-content:center; }
.cur-sech h3 { font-family: var(--f-curr); font-size: 19px; color: var(--ink); }
.cur-fgrid { display:flex; flex-direction:column; gap: 16px; }
.cur-frow { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cur-fl { display:flex; align-items:center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--cur-gray-700); margin-bottom: 7px; }
.cur-fbox { border: none; border-radius: 14px; background: var(--aqua-50); padding: 0 14px; min-height: 50px; display:flex; align-items:center; gap: 9px; font-size: 14.5px; color: var(--cur-gray-400); width:100%; }
.cur-fbox.filled { color: var(--ink); }
.cur-fbox svg { color: var(--sea-700); flex:none; }
/* native controls themed to the fbox look */
.cur-field input, .cur-field select, .cur-field textarea {
  border: none; border-radius: 14px; background: var(--aqua-50); padding: 0 14px; height: 50px;
  font: 14.5px var(--f-sans); color: var(--ink); width:100%; outline:none; -webkit-appearance:none; appearance:none;
}
.cur-field textarea { height:auto; min-height: 90px; padding: 13px 14px; line-height:1.5; resize:vertical; }
.cur-field input:focus, .cur-field select:focus, .cur-field textarea:focus { box-shadow: 0 0 0 4px rgba(43,191,212,0.18); background:#fff; }
.cur-req { font-size: 9px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.cur-req.y { background: var(--coral-soft); color: var(--coral-700); }
.cur-req.n { background: var(--cur-gray-100); color: var(--cur-gray-500); }
.cur-chips { display:flex; flex-wrap:wrap; gap: 8px; }
.cur-chip { padding: 9px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--aqua-50); color: var(--cur-gray-700); cursor:pointer; display:inline-flex; gap:6px; align-items:center; }
.cur-chip.on { background: linear-gradient(180deg,var(--cyan),var(--sea-700)); color:#fff; font-weight: 600; }
.cur-gps { min-height: 50px; border-radius: 14px; border: 1.6px dashed var(--cyan); background: rgba(43,191,212,0.07); color: var(--sea-800); font: 600 13.5px var(--f-sans); display:flex; align-items:center; justify-content:center; gap: 9px; width:100%; cursor:pointer; padding: 8px 14px; }
.cur-submit { margin-top: 4px; padding: 16px 18px; background: rgba(255,255,255,0.92); border-top: 1px solid var(--line); backdrop-filter: blur(8px); position:sticky; bottom:0; z-index: 20; }

/* ── GUEST REPORTING queue ──────────────────────────────────────── */
.cur-guestscr { display:flex; flex-direction:column; min-height: 100vh; }
.cur-gbody { padding: 18px; display:flex; flex-direction:column; gap: 16px; margin-top: -8px; }
.cur-gcard { padding: 20px 18px; }
.cur-gcard h2 { font-family: var(--f-curr); font-size: 26px; color: var(--ink); }
.cur-gcard .gsub { font-size: 12.5px; color: var(--cur-gray-500); margin: 4px 0 16px; }
.cur-gpills { display:flex; flex-wrap:wrap; gap: 8px; margin-bottom: 15px; }
.cur-gpill { padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--line); background:#fff; color: var(--cur-gray-600); cursor:pointer; }
.cur-gpill.on { border-color: var(--amber); background: var(--amber-soft); color: var(--amber-700); }
.cur-gsearch { display:flex; align-items:center; gap: 9px; border-radius: 999px; padding: 0 16px; height: 48px; background: var(--aqua-50); color: var(--cur-gray-400); font-size: 14px; margin-bottom: 12px; }
.cur-gsearch svg { color: var(--sea-700); }
.cur-gsearch input { border:none; background:transparent; outline:none; flex:1; font: inherit; color: var(--ink); min-width:0; }
.cur-gddrow { display:flex; gap: 10px; margin-bottom: 10px; }
.cur-gdd { flex:1; min-height: 46px; border-radius: 13px; background: var(--aqua-50); display:flex; align-items:center; justify-content:space-between; padding: 0 15px; font-size: 13.5px; color: var(--cur-gray-500); cursor:pointer; gap:8px; }
.cur-gdd.full { width:100%; }
.cur-gactions { display:flex; gap: 10px; align-items:center; flex-wrap:wrap; }
.cur-gbtn-ghost { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background:#fff; font-size: 13px; font-weight: 600; color: var(--cur-gray-700); display:inline-flex; gap:7px; align-items:center; cursor:pointer; }
.cur-gbtn-solid { margin-left:auto; padding: 11px 18px; border-radius: 999px; background: linear-gradient(180deg,var(--sea-600),var(--sea-800)); color:#fff; font-size: 13px; font-weight: 600; display:inline-flex; gap:8px; align-items:center; cursor:pointer; border:none; }
.cur-greport { position:relative; padding: 16px 17px; overflow:hidden; cursor:pointer; }
.cur-greport.new::before { content:''; position:absolute; left:0; top:0; bottom:0; width:5px; background: var(--amber); }
.cur-gr-top { display:flex; align-items:center; gap: 9px; flex-wrap:wrap; }
.cur-gr-new { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--amber-700); background: var(--amber-soft); padding: 4px 10px; border-radius: 999px; text-transform:uppercase; }
.cur-gr-status { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 999px; text-transform:uppercase; }
.cur-gr-match { font-size: 12px; font-weight: 600; color: #fff; background: var(--sea-800); padding: 4px 10px; border-radius: 999px; }
.cur-gr-unm { font-size: 12px; font-weight: 600; color: var(--cur-gray-500); background: var(--cur-gray-100); padding: 4px 10px; border-radius: 999px; }
.cur-gr-cam { margin-left:auto; display:inline-flex; align-items:center; gap: 5px; font-size: 12.5px; color: var(--cur-gray-500); }
.cur-gr-time { font-family: var(--f-mono); font-size: 11px; color: var(--cur-gray-400); margin: 9px 0 6px; }
.cur-gr-name { font-family: var(--f-curr); font-size: 19px; color: var(--ink); }
.cur-gr-contact { font-size: 12.5px; color: var(--cur-gray-500); margin-top: 4px; line-height: 1.45; }
.cur-gr-note { margin-top: 10px; background: var(--aqua-50); border-radius: 12px; padding: 9px 13px; font-size: 12.5px; color: var(--cur-gray-700); }

/* ── ADMIN PANEL ────────────────────────────────────────────────── */
.cur-admin { display:flex; flex-direction:column; min-height: 100vh; }
.cur-ahero { padding: 4px 18px 24px; }
.cur-arow { display:flex; align-items:center; gap: 12px; padding: 4px 0; }
.cur-arow h1 { font-family: var(--f-curr); font-size: 26px; line-height: 1; color:#fff; flex:1; }
.cur-asel { max-width: 195px; display:flex; align-items:center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color:#fff; cursor:pointer; }
.cur-asel .t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cur-asel select { background:transparent; border:none; color:#fff; font: 600 11.5px var(--f-sans); outline:none; }
.cur-asel select option { color: var(--ink); }
.cur-abody { padding: 18px; display:flex; flex-direction:column; gap: 13px; margin-top: -8px; }
.cur-acc { padding: 16px 17px; display:flex; align-items:center; gap: 12px; cursor:pointer; }
.cur-acc .dis { color: var(--sea-700); flex:none; transition: transform 0.15s; }
.cur-acc.open .dis { transform: rotate(90deg); }
.cur-acc .at { font-weight: 700; font-size: 15px; color: var(--ink); display:flex; align-items:center; gap: 9px; }
.cur-acc .badge { background: var(--coral); color:#fff; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 999px; display:inline-flex; align-items:center; justify-content:center; padding: 0 5px; }
.cur-acc .right { margin-left:auto; display:flex; align-items:center; gap: 8px; flex:none; }
.cur-acc-body { padding: 0 4px 4px; }
.cur-acc-btn { padding: 9px 13px; border-radius: 999px; background: linear-gradient(180deg,var(--sea-600),var(--sea-800)); color:#fff; font-size: 12.5px; font-weight: 600; display:inline-flex; gap: 6px; align-items:center; cursor:pointer; border:none; }
.cur-acc-btn.ghost { background:#fff; color: var(--sea-800); border: 1.5px solid var(--aqua-200); }
.cur-acc-dd { padding: 9px 13px; border-radius: 12px; background: var(--aqua-50); font-size: 12.5px; color: var(--cur-gray-600); display:inline-flex; gap: 6px; align-items:center; }
.cur-asech { display:flex; align-items:center; justify-content:space-between; margin: 8px 2px 0; gap: 10px; }
.cur-asech h2 { font-family: var(--f-curr); font-size: 24px; color: var(--ink); }
.cur-yr { padding: 9px 14px; border-radius: 12px; background: var(--aqua-50); font-size: 13px; font-weight: 600; color: var(--cur-gray-700); display:inline-flex; gap: 8px; align-items:center; }
.cur-scards { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cur-scard { padding: 22px 16px; text-align:center; }
.cur-scard .n { font-family: var(--f-curr); font-size: 40px; line-height: 1; color: var(--sea-800); }
.cur-scard .n.ok { color: var(--cur-success); }
.cur-scard .l { font-size: 12px; color: var(--cur-gray-500); margin-top: 10px; line-height: 1.35; }
.cur-pct { padding: 22px 16px; display:flex; gap: 12px; }
.cur-pct .c { flex:1; text-align:center; }
.cur-pct .pn { font-family: var(--f-curr); font-size: 30px; color: var(--sea-800); }
.cur-pct .pl { font-size: 11.5px; color: var(--cur-gray-500); margin-top: 5px; }
.cur-list { padding: 6px 18px; }
.cur-lrow { display:flex; align-items:center; justify-content:space-between; padding: 15px 2px; font-size: 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.cur-lrow:last-child { border-bottom:none; }
.cur-lrow b { font-family: var(--f-curr); font-size: 18px; color: var(--sea-800); }
.cur-seg { display:inline-flex; gap: 5px; background: var(--aqua-50); border-radius: 999px; padding: 4px; flex-wrap:wrap; }
.cur-seg .s { padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--cur-gray-600); cursor:pointer; }
.cur-seg .s.on { background: linear-gradient(180deg,var(--sea-600),var(--sea-800)); color:#fff; }
.cur-reccard { padding: 16px 18px; }
.cur-recnest { background: var(--aqua-50); border-radius: 16px; padding: 14px 15px; margin-bottom: 10px; }
.cur-recnest:last-child { margin-bottom: 0; }
.cur-recnest .rh { display:flex; align-items:flex-start; justify-content:space-between; gap: 10px; }
.cur-recnest .rbtns { display:flex; flex-direction:column; gap: 7px; align-items:flex-end; flex:none; }
.cur-rbtn-rev { padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg,var(--sea-600),var(--sea-800)); color:#fff; font-size: 12.5px; font-weight: 600; cursor:pointer; border:none; }
.cur-rbtn-del { padding: 7px 16px; border-radius: 999px; border: 1.4px solid rgba(204,79,44,0.4); color: var(--coral-700); font-size: 12.5px; font-weight: 600; cursor:pointer; background:none; }

/* ── Nest detail ────────────────────────────────────────────────── */
.cur-nd { display:flex; flex-direction:column; min-height: 100vh; }
.cur-ndhero { padding: 2px 18px 22px; }
.cur-ndrow { display:flex; align-items:center; gap: 12px; padding: 4px 0; }
.cur-ndrow h1 { font-family: var(--f-curr); font-size: 22px; color:#fff; line-height: 1.1; flex:1; }
.cur-ndmono { font-family: var(--f-mono); font-size: 10px; color: var(--cyan-200); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; display:block; }
.cur-ndzone { display:flex; align-items:flex-end; justify-content:space-between; margin-top: 14px; color:#fff; gap: 12px; }
.cur-ndzone .z { font-family: var(--f-curr); font-size: 34px; line-height: 1; }
.cur-ndzone .sp { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--cyan-200); margin-top: 6px; display:block; text-transform: uppercase; }
.cur-ndzone .days { text-align:right; flex:none; }
.cur-ndzone .days .n { font-family: var(--f-curr); font-size: 46px; line-height: 1; color:#fff; }
.cur-ndzone .days .u { font-size: 11px; color: var(--cyan-200); font-family: var(--f-mono); letter-spacing: 0.1em; }
.cur-ndbody { padding: 0 18px 22px; display:flex; flex-direction:column; gap: 14px; margin-top: -10px; }
.cur-ndmeta { display:grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px 0; }
.cur-ndmeta .m { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cur-ndmeta .m:nth-child(even) { border-right: none; }
.cur-ndmeta .m:nth-last-child(-n+2) { border-bottom: none; }
.cur-ndmeta .k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cur-gray-400); }
.cur-ndmeta .v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.cur-ndtl { padding: 16px 17px; }
.cur-ndtl h3 { font-family: var(--f-curr); font-size: 18px; color: var(--ink); margin-bottom: 12px; }
.cur-nd-actions { display:flex; gap: 10px; }
.cur-nd-actions .cur-btn { flex:1; height: 50px; font-size: 14.5px; border-radius: 14px; }
.cur-nd-actions .cur-btn.ghost { background:#fff; color: var(--sea-800); border: 1.5px solid var(--aqua-200); box-shadow: 0 8px 18px -10px rgba(6,36,59,0.18); }
.cur-nd-cta { padding: 4px 18px 22px; }

/* ── Hatchling counters ─────────────────────────────────────────── */
.cur-hatch { display:flex; flex-direction:column; min-height: 100vh; }
.cur-hcounter { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cur-counter { background: var(--aqua-50); border-radius: 16px; padding: 14px; text-align:center; }
.cur-counter .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cur-gray-500); }
.cur-counter .v { font-family: var(--f-curr); font-size: 38px; line-height: 1; color: var(--sea-800); margin: 8px 0; }
.cur-counter .ctrls { display:flex; gap: 8px; justify-content:center; }
.cur-counter .ctrls .b { width: 36px; height: 36px; border-radius: 50%; background:#fff; border: 1.5px solid var(--aqua-200); color: var(--sea-700); display:flex; align-items:center; justify-content:center; font-weight: 700; cursor:pointer; }

/* ── Report flow (public) ───────────────────────────────────────── */
.cur-flow { display:flex; flex-direction:column; min-height: 100vh; }
.cur-flowhero { padding: 2px 18px 22px; }
.cur-flowhero .top { display:flex; justify-content:space-between; align-items:center; padding: 6px 0 12px; color: var(--cyan-200); }
.cur-flowhero .top .right { display:inline-flex; align-items:center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.cur-flowhero .top .right .dot { width:6px; height:6px; border-radius:50%; background: var(--coral); }
.cur-flowhero h1 { font-family: var(--f-curr); font-size: 28px; color:#fff; letter-spacing: -0.01em; line-height: 1.05; }
.cur-flowhero .lede { font-size: 14px; color: rgba(255,255,255,0.86); line-height: 1.5; margin-top: 12px; }
.cur-flowhero .medal { width: 64px; height: 64px; margin: 8px 0 14px; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.4)); }
.cur-flowbody { padding: 18px; display:flex; flex-direction:column; gap: 14px; margin-top: -6px; flex:1; }
.cur-flowpoint { display:flex; gap: 12px; padding: 14px 16px; align-items:flex-start; }
.cur-flowpoint .ic { width: 38px; height: 38px; border-radius: 12px; flex:none; background: linear-gradient(180deg,var(--cyan),var(--sea-700)); color:#fff; display:flex; align-items:center; justify-content:center; }
.cur-flowpoint h4 { font-family: var(--f-sans); font-weight: 700; font-size: 14px; color: var(--ink); }
.cur-flowpoint p { font-size: 12.5px; color: var(--cur-gray-600); margin-top: 4px; line-height: 1.45; }
.cur-flowfoot { padding: 16px 18px 20px; }
.cur-flow-stephead { padding: 4px 18px 18px; }
.cur-flow-stephead .row { display:flex; align-items:center; gap: 12px; padding: 4px 0; }
.cur-flow-stephead h2 { font-family: var(--f-curr); font-size: 22px; color:#fff; line-height: 1.1; flex:1; }
.cur-flow-stephead .pill { font-family: var(--f-mono); font-size: 11px; color:#fff; background: rgba(255,255,255,0.15); padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.2); flex:none; }
.cur-flow-nav { display:flex; gap: 10px; padding: 14px 18px 18px; position:sticky; bottom:0; background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.95) 30%); }
.cur-flow-nav .cur-btn.ghost { flex:none; width: 54px; background:#fff; color: var(--sea-800); border: 1.5px solid var(--aqua-200); box-shadow: none; padding: 0; }
.cur-flow-nav .cur-btn { flex:1; }

/* photo evidence */
.cur-photos { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cur-photo { aspect-ratio: 1; border-radius: 14px; border: 1.6px dashed var(--cyan); background: rgba(43,191,212,0.07); color: var(--sea-800); display:flex; flex-direction:column; align-items:center; justify-content:center; gap: 4px; font-size: 11.5px; font-weight: 600; cursor:pointer; overflow:hidden; }
.cur-photo.filled { border-style: solid; background: linear-gradient(135deg, var(--aqua-100), var(--aqua-200)); }
.cur-photo img { width:100%; height:100%; object-fit:cover; }
.cur-photo .num { font-family: var(--f-mono); font-size: 10px; color: var(--cur-gray-500); }

/* textarea (standalone) */
.cur-area { border: none; border-radius: 14px; background: var(--aqua-50); padding: 14px; min-height: 90px; font-size: 14px; color: var(--ink); font-family: var(--f-sans); width:100%; resize: vertical; line-height: 1.5; outline:none; }
.cur-area:focus { box-shadow: 0 0 0 4px rgba(43,191,212,0.18); background:#fff; }

/* review rows */
.cur-rev { display:flex; flex-direction:column; }
.cur-revrow { display:grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items:center; }
.cur-revrow:last-child { border-bottom:none; }
.cur-revrow .k { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cur-gray-400); }
.cur-revrow .v { font-size: 13.5px; color: var(--ink); font-weight: 500; }

/* success */
.cur-success { display:flex; flex-direction:column; min-height: 100vh; }
.cur-success .cur-hero { padding: 2px 28px 56px; text-align:center; }
.cur-success .tick { width: 96px; height: 96px; border-radius: 50%; margin: 28px auto 16px; background: rgba(255,255,255,0.16); border: 2px solid rgba(255,255,255,0.4); display:flex; align-items:center; justify-content:center; color:#fff; }
.cur-success h1 { font-family: var(--f-curr); font-size: 30px; color:#fff; letter-spacing: -0.01em; }
.cur-success .lede { font-size: 14px; color: rgba(255,255,255,0.86); line-height: 1.5; margin-top: 10px; }
.cur-success .body { padding: 0 22px 22px; margin-top: -36px; display:flex; flex-direction:column; gap: 14px; flex:1; }
.cur-success .ref { padding: 16px 18px; text-align:center; }
.cur-success .ref .l { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cur-gray-500); }
.cur-success .ref .v { font-family: var(--f-mono); font-size: 16px; color: var(--ink); margin-top: 6px; }
.cur-success .actions { margin-top:auto; display:flex; gap: 10px; padding-top: 8px; }
.cur-success .actions .cur-btn.ghost { background:#fff; color: var(--sea-800); border: 1.5px solid var(--aqua-200); box-shadow: none; flex:none; width: auto; padding: 0 22px; }
.cur-success .actions .cur-btn { flex:1; }

/* ── Guest report detail ────────────────────────────────────────── */
.cur-gd { display:flex; flex-direction:column; min-height: 100vh; }
.cur-gdbody { padding: 18px; display:flex; flex-direction:column; gap: 14px; margin-top: -8px; }
.cur-gdhead { padding: 18px; }
.cur-gdhead .pills { display:flex; gap: 8px; margin-bottom: 12px; flex-wrap:wrap; }
.cur-gdhead .pill { font-size: 10px; font-weight: 800; letter-spacing: 0.06em; color: var(--amber-700); background: var(--amber-soft); padding: 4px 10px; border-radius: 999px; text-transform:uppercase; }
.cur-gdhead .pill.gray { color: var(--cur-gray-500); background: var(--cur-gray-100); }
.cur-gdhead .time { font-family: var(--f-mono); font-size: 11px; color: var(--cur-gray-400); }
.cur-gdhead h2 { font-family: var(--f-curr); font-size: 24px; color: var(--ink); margin-top: 6px; }
.cur-gdhead .meta { font-size: 12.5px; color: var(--cur-gray-600); margin-top: 6px; line-height: 1.45; }
.cur-gd-tile { display:grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cur-gd-tile .t { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cur-gd-tile .t:nth-child(even) { border-right:none; }
.cur-gd-tile .k { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cur-gray-400); }
.cur-gd-tile .v { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 5px; word-break:break-word; }
.cur-gd-note { padding: 14px 16px; }
.cur-gd-note .k { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cur-gray-500); margin-bottom: 8px; }
.cur-gd-note p { font-size: 13.5px; line-height: 1.5; color: var(--cur-gray-700); }
.cur-gd-actions { display:flex; gap: 10px; padding: 6px 0 0; flex-wrap:wrap; }
.cur-gd-actions .cur-btn { flex:1; height: 50px; border-radius: 14px; }
.cur-gd-actions .cur-btn.ghost { background:#fff; color: var(--cur-gray-700); border: 1.5px solid var(--line); box-shadow: none; }

/* shared photo strip */
.cur-photostrip { display:flex; gap: 8px; padding: 14px 16px; overflow-x:auto; }
.cur-photostrip .ph { aspect-ratio: 1; flex:0 0 88px; border-radius: 12px; background: linear-gradient(135deg, var(--aqua-100), var(--aqua-200)); display:flex; align-items:center; justify-content:center; color: var(--sea-700); font-size: 12px; font-weight: 600; overflow:hidden; cursor:pointer; }
.cur-photostrip .ph img { width:100%; height:100%; object-fit:cover; }

/* generic detail review section reused across nest/hatchling review */
.cur-detail { display:flex; flex-direction:column; min-height: 100vh; }
.cur-dethero { padding: 2px 18px 22px; }

/* ════════════════════════════════════════════════════════════════
   NEST ENTRY FORM (#nestFormPage) — built by nestForm.js as inline +
   .form-input/.btn template strings keyed off app.css tokens. We remap
   those tokens locally so every inline style and app.css component rule
   inside the form re-skins to the Current palette without touching the
   3k-line template or app.css globals. Then a few scoped overrides add
   the cyan focus ring, gradient primary button, and softer fields.
   ════════════════════════════════════════════════════════════════ */
#nestFormPage {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-600: #16A6C4;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-300: #DBE6E6;
  --gray-100: #EEF2F2;
  --dark:     #06243B;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(6,36,59,0.06);
  --font-display: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
}
#nestFormPage .form-label { color: var(--cur-gray-700, #3A4A4E); font-weight: 600; }
#nestFormPage .form-input {
  border: 1.6px solid transparent;
  background: var(--aqua-50);
  border-radius: 14px;
  color: var(--ink);
}
#nestFormPage .form-input:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}
#nestFormPage select.form-input { cursor: pointer; }
#nestFormPage .btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--sea-700));
  box-shadow: 0 16px 30px -14px rgba(14,116,144,0.75);
  border-radius: 16px;
}
#nestFormPage .btn-secondary {
  background: #fff;
  color: var(--sea-800);
  border: 1.5px solid var(--aqua-200);
  border-radius: 16px;
}
/* Vegetation tiles/chips toggle their own inline --teal-* styles on select,
   which the token remap above already recolors — no extra rule needed. */

/* ════════════════════════════════════════════════════════════════
   NEST RECORD REVIEW (#nestReviewPage) — same token-remap strategy as
   the entry form: inline + .btn template strings keyed off app.css
   tokens, recolored locally to the Current palette. openNestReview()
   in app.js builds the markup; reviewSection() renders the rows.
   ════════════════════════════════════════════════════════════════ */
#nestReviewPage {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-600: #16A6C4;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-300: #DBE6E6;
  --gray-100: #EEF2F2;
  --dark:     #06243B;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(6,36,59,0.06);
  --font-display: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
}
#nestReviewPage .btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--sea-700));
  box-shadow: 0 16px 30px -14px rgba(14,116,144,0.75);
  border-radius: 16px;
}
#nestReviewPage .btn-secondary {
  background: #fff;
  color: var(--sea-800);
  border: 1.5px solid var(--aqua-200);
  border-radius: 16px;
}
#nestReviewPage #editReasonText:focus {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}

/* ════════════════════════════════════════════════════════════════
   HATCHLING ENTRY (#hatchlingFormPage) + REVIEW (#hatchlingReviewPage)
   — identical token-remap strategy. hatchlingForm.js builds the entry
   form (hSection/hFormField/eggCountRow counters/release batches);
   openHatchlingReview() in app.js reuses reviewSection().
   ════════════════════════════════════════════════════════════════ */
#hatchlingFormPage, #hatchlingReviewPage {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-600: #16A6C4;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-300: #DBE6E6;
  --gray-100: #EEF2F2;
  --gray-50:  #F4F8F8;
  --dark:     #06243B;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(6,36,59,0.06);
  --font-display: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
}
#hatchlingFormPage .form-label { color: var(--cur-gray-700, #3A4A4E); font-weight: 600; }
#hatchlingFormPage .form-input {
  border: 1.6px solid transparent;
  background: var(--aqua-50);
  border-radius: 14px;
  color: var(--ink);
}
#hatchlingFormPage .form-input:focus {
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}
#hatchlingFormPage .btn-primary, #hatchlingReviewPage .btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--sea-700));
  box-shadow: 0 16px 30px -14px rgba(14,116,144,0.75);
  border-radius: 16px;
}
#hatchlingFormPage .btn-secondary, #hatchlingReviewPage .btn-secondary {
  background: #fff;
  color: var(--sea-800);
  border: 1.5px solid var(--aqua-200);
  border-radius: 16px;
}

/* ════════════════════════════════════════════════════════════════
   GUEST REPORT DETAIL (#guestReportDetail) — full-page review modal
   from openGuestReportDetail()/renderGuestReportDetail() in app.js.
   The queue rows live inside the admin panel and are recolored by the
   admin remap below. All markup is token-driven inline styles.
   ════════════════════════════════════════════════════════════════ */
#guestReportDetail {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-300: #DBE6E6;
  --gray-200: #E4ECEC;
  --gray-100: #EEF2F2;
  --dark:     #06243B;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-sm: 0 2px 10px rgba(6,36,59,0.06);
  --font-display: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
}
#guestReportDetail #guestReportReviewerNotes:focus {
  outline: none;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}

/* ════════════════════════════════════════════════════════════════
   ADMIN PANEL (#adminPanel) + TURTLE PROFILE DETAIL
   (#turtleProfileDetail) — showAdminPanel() builds collapsible
   adminCardShell() cards; loadAdminData() fills them (users, drafts,
   guest-report queue rows, orgs, reference photos/points, turtle
   profiles, season summary). All token-driven, recolored locally.
   ════════════════════════════════════════════════════════════════ */
#adminPanel, #turtleProfileDetail {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-600: #16A6C4;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-300: #DBE6E6;
  --gray-200: #E4ECEC;
  --gray-100: #EEF2F2;
  --gray-50:  #F4F8F8;
  --dark:     #06243B;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-sm: 0 6px 20px -12px rgba(6,36,59,0.3);
  --font-display: 'DM Serif Display', Georgia, serif;
  color: var(--ink);
}
#adminPanel .btn-primary, #turtleProfileDetail .btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--sea-700));
  box-shadow: 0 16px 30px -14px rgba(14,116,144,0.75);
  border-radius: 16px;
}
#adminPanel .btn-secondary, #turtleProfileDetail .btn-secondary {
  background: #fff;
  color: var(--sea-800);
  border: 1.5px solid var(--aqua-200);
  border-radius: 16px;
}
#adminPanel .form-input:focus, #turtleProfileDetail .form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}

/* ── Overflow safety net — prevents controls from forcing horizontal
   overflow and getting clipped behind a card (the "hidden behind the
   container" bug). Selects/inputs/textareas never exceed their column;
   flex children are allowed to shrink. Scoped to admin + engine form so
   it can't disturb the legacy nest/hatchling layouts. */
#adminPanel select, #adminPanel input, #adminPanel textarea,
#engineFormOverlay select, #engineFormOverlay input, #engineFormOverlay textarea {
  max-width: 100%;
  box-sizing: border-box;
}
#adminPanel select { text-overflow: ellipsis; }
/* Let flex items inside the hub shrink below their content width so siblings
   (e.g. the Assign button) stay on-screen and wrap instead of clipping. */
#orgSetupSection [style*="display:flex"] > select,
#orgSetupSection [style*="display:flex"] > input { min-width: 0; }

/* ════════════════════════════════════════════════════════════════
   GLOBAL LEGACY-PALETTE REMAP — final sweep.
   Every full screen above remaps the app.css tokens locally. This
   block promotes the same remap to :root so the remaining body-level
   surfaces that were never wrapped in one of those containers — modals
   (add-user, mark-lost, share requests, discard-changes), toasts,
   photo lightboxes, PIN entry, the offline sync banner — also pick up
   the Current palette and the DM Serif Display heading face (the
   approved replacement for Playfair). The .cur login/dashboard never
   reference these legacy tokens (they use --sea-*/--ink/--cur-gray-*),
   so they are unaffected. report.html has its own token set and does
   not load this file. The per-screen blocks above are now redundant
   but harmless — identical values at higher specificity.
   ════════════════════════════════════════════════════════════════ */
:root {
  --teal-900: #061F35;
  --teal-800: #0E7490;
  --teal-700: #0E8BA8;
  --teal-600: #16A6C4;
  --teal-200: #B9EBF1;
  --teal-100: #DEF6F9;
  --teal-50:  #EFFAFB;
  --gray-700: #3A4A4E;
  --gray-500: #6E8085;
  --gray-300: #DBE6E6;
  --gray-200: #E4ECEC;
  --gray-100: #EEF2F2;
  --gray-50:  #F4F8F8;
  --dark:     #06243B;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(6,36,59,0.06);
  --shadow-md: 0 18px 40px -24px rgba(6,36,59,0.4);
  --font-display: 'DM Serif Display', Georgia, serif;
}
/* Legacy primary/secondary buttons and inputs anywhere in the app. */
.btn-primary {
  background: linear-gradient(180deg, var(--cyan), var(--sea-700));
  box-shadow: 0 16px 30px -14px rgba(14,116,144,0.75);
}
.btn-secondary {
  color: var(--sea-800);
  border-color: var(--aqua-200);
}
.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(43,191,212,0.18);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE PASS (handoff #16)
   Phone-first stays the baseline. On tablet/desktop the capped column
   widens and the dashboard header collapses to a single row. An app-wide
   overflow safety net stops controls being clipped behind cards.
   ════════════════════════════════════════════════════════════════ */

/* Overflow safety net — controls/media never force horizontal overflow.
   Covers the dashboard (.cur), admin/engine overlays, and the legacy
   full-screen pages (nest/hatchling forms + review screens). */
.cur input, .cur select, .cur textarea,
#adminPanel input, #adminPanel select, #adminPanel textarea,
#engineFormOverlay input, #engineFormOverlay select, #engineFormOverlay textarea,
#nestFormPage input, #nestFormPage select, #nestFormPage textarea,
#hatchlingFormPage input, #hatchlingFormPage select, #hatchlingFormPage textarea,
#nestReviewPage input, #nestReviewPage select, #nestReviewPage textarea,
#hatchlingReviewPage input, #hatchlingReviewPage select, #hatchlingReviewPage textarea {
  max-width: 100%;
  box-sizing: border-box;
}
.cur img, #adminPanel img, #engineFormOverlay img,
#nestFormPage img, #hatchlingFormPage img,
#nestReviewPage img, #hatchlingReviewPage img { max-width: 100%; }

/* Dashboard header — two rows on phone (logo row over action buttons) */
.cur-htop { display: block; }

/* ── Tablet (≥768px): use more of the screen; header on one row ── */
@media (min-width: 768px) {
  .cur { max-width: 640px; }
  /* Keep the FAB hugging the centred content column, not the viewport edge. */
  .cur-fab { right: calc(50% - 320px + 18px); }
  .cur-htop {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
  }
  .cur-htop .cur-drow1 { flex: 1 1 auto; padding-bottom: 0; }
  .cur-htop .cur-hbtns { flex: 0 0 auto; margin-bottom: 0; }
  /* Centre the admin + engine-form content instead of edge-to-edge */
  #engineFormOverlay > div { max-width: 720px; margin-left: auto; margin-right: auto; }
}

/* ── Larger screens (≥1100px): a touch wider for comfortable reading ── */
@media (min-width: 1100px) {
  .cur { max-width: 720px; }
  .cur-fab { right: calc(50% - 360px + 18px); }
}
