/* ============================================================
   iTONA — Coordinator PWA Styles
   File: canwyf-app/public/app/css/app.css
   Optimised for: Android phones, Tecno Spark 20, 720×1600px
   Design: Dark green — legible in bright outdoor Nigerian sunlight
   ============================================================ */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:       #1A6B3C;
  --green-dark:  #145a31;
  --green-light: #D6EFE0;
  --gold:        #B8860B;
  --gold-light:  #FDF3D0;
  --earth:       #5C3A1E;
  --blue:        #1B4F8A;
  --red:         #8B1A1A;
  --red-light:   #FAE0E0;
  --bg:          #0f1e14;
  --bg-card:     #1a2e1f;
  --bg-input:    #0d1a10;
  --border:      #2a4a30;
  --text:        #e8f5e9;
  --text-muted:  #7a9a7a;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 2px 12px rgba(0,0,0,0.4);
  --font:        -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:      var(--font);
  background-color: var(--bg);
  color:            var(--text);
  min-height:       100vh;
  min-height:       100dvh;
  overflow-x:       hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Screen System ────────────────────────────────────────────────────────── */
.screen {
  display:    none;
  min-height: 100vh;
  min-height: 100dvh;
}
.screen.active { display: flex; flex-direction: column; }

/* ─── Login Screen ─────────────────────────────────────────────────────────── */
.login-wrap {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  min-height:      100vh;
  min-height:      100dvh;
  padding:         24px 20px;
  gap:             24px;
}

.login-logo {
  text-align: center;
}
.login-wordmark {
  display: block;
  margin: 0 auto 10px;
  max-width: 280px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}
.logo-mark {
  font-size: 56px;
  line-height: 1;
  margin-bottom: 8px;
}
.login-logo h1 {
  font-size:      2.2rem;
  font-weight:    900;
  color:          var(--green);
  letter-spacing: 2px;
  line-height:    1.1;
}
.login-tagline {
  font-size:  0.9rem;
  color:      var(--gold);
  font-style: italic;
  margin-top: 4px;
}
.login-org {
  font-size:   0.75rem;
  color:       var(--text-muted);
  margin-top:  4px;
}

/* ── PWA Install Banner ────────────────────────────────────────── */
.install-banner {
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}
.install-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(26,107,60,.1);
  border: 1.5px solid var(--green);
  border-radius: 10px;
  padding: 10px 12px;
}
.install-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}
.install-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.install-text strong {
  font-size: .85rem;
  color: var(--green);
  font-weight: 700;
}
.install-text span {
  font-size: .72rem;
  color: var(--text-muted);
}
.btn-install-now {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 7px;
  padding: 8px 14px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.install-manual-hint {
  margin-top: 8px;
  font-size: .78rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 12px;
  background: rgba(184,134,11,.08);
  border-radius: 7px;
  border: 1px solid rgba(184,134,11,.2);
  line-height: 1.5;
}

.login-form {
  width:     100%;
  max-width: 400px;
}
.login-form h2 {
  font-size:     1.1rem;
  color:         var(--text);
  margin-bottom: 20px;
}

.login-footer {
  font-size: 0.72rem;
  color:     var(--text-muted);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius);
  padding:       20px;
}

/* ─── Form fields ──────────────────────────────────────────────────────────── */
.field-group {
  margin-bottom: 16px;
}
.field-row {
  display: flex;
  gap:     12px;
}
.field-group.half { flex: 1; }

label {
  display:       block;
  font-size:     0.78rem;
  font-weight:   600;
  color:         var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width:         100%;
  background:    var(--bg-input);
  border:        1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color:         var(--text);
  padding:       13px 14px;
  font-size:     1rem;
  font-family:   var(--font);
  outline:       none;
  transition:    border-color 0.2s;
  -webkit-appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green);
}
input::placeholder { color: #3a5a3a; }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

.field-hint {
  font-size:  0.72rem;
  color:      var(--text-muted);
  margin-top: 4px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display:         inline-flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  padding:         14px 20px;
  border:          none;
  border-radius:   var(--radius-sm);
  font-size:       1rem;
  font-weight:     700;
  cursor:          pointer;
  transition:      background 0.15s, transform 0.1s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--green);
  color:      var(--white);
}
.btn-primary:hover { background: var(--green-dark); }
.btn-primary:disabled { background: #2a4a2a; color: #4a7a4a; cursor: not-allowed; }

.btn-secondary {
  background:    var(--bg-card);
  border:        1.5px solid var(--border);
  color:         var(--text);
}
.btn-secondary:hover { background: #1f3a25; border-color: var(--green); }

.btn-full { width: 100%; }

.btn-bottom {
  margin-top:    24px;
  margin-bottom: 32px;
}

/* ─── Alerts ───────────────────────────────────────────────────────────────── */
.alert {
  padding:       12px 14px;
  border-radius: var(--radius-sm);
  font-size:     0.88rem;
  margin-top:    12px;
  line-height:   1.4;
}
.alert-error {
  background: var(--red-light);
  color:      var(--red);
  border:     1px solid var(--red);
}
.alert-success {
  background: var(--green-light);
  color:      var(--green-dark);
  border:     1px solid var(--green);
}

/* ─── Top bar ──────────────────────────────────────────────────────────────── */
.topbar {
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  padding:          14px 16px;
  background:       var(--bg-card);
  border-bottom:    2px solid var(--green);
  position:         sticky;
  top:              0;
  z-index:          100;
}
.topbar-title {
  font-size:      1rem;
  font-weight:    800;
  color:          var(--green);
  letter-spacing: 1px;
}
.topbar-right {
  display:     flex;
  align-items: center;
  gap:         12px;
}
.online-dot {
  width:         10px;
  height:        10px;
  border-radius: 50%;
  background:    #4CAF50;
  transition:    background 0.3s;
}
.online-dot.offline { background: var(--red); }

.sync-btn {
  position:         relative;
  background:       var(--green);
  border:           none;
  border-radius:    var(--radius-sm);
  color:            white;
  padding:          8px 16px;
  font-size:        0.9rem;
  font-weight:      700;
  cursor:           pointer;
  -webkit-tap-highlight-color: transparent;
}
.sync-btn-secondary {
  background: #fff;
  color: var(--green);
  border: 1px solid var(--green);
}
.sync-btn-secondary:hover,
.sync-btn-secondary:focus {
  background: #f3faf6;
}
.sync-badge {
  position:      absolute;
  top:           -6px;
  right:         -6px;
  background:    var(--gold);
  color:         white;
  font-size:     0.65rem;
  font-weight:   700;
  padding:       2px 5px;
  border-radius: 10px;
  min-width:     18px;
  text-align:    center;
}
.sync-badge-danger {
  background: var(--red);
}

/* ─── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-greeting {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         20px 16px 12px;
}
.greeting-sub {
  font-size: 0.8rem;
  color:     var(--text-muted);
}
.dashboard-greeting h2 {
  font-size: 1.3rem;
  color:     var(--text);
}
.greeting-community {
  font-size: 0.82rem;
  color:     var(--green);
  margin-top: 2px;
}
.greeting-streak {
  text-align: center;
  background: var(--bg-card);
  border:     1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:    10px 16px;
}
.greeting-streak span:first-child {
  display:     block;
  font-size:   1.6rem;
  font-weight: 900;
  color:       var(--gold);
}
.streak-label {
  font-size: 0.68rem;
  color:     var(--text-muted);
}

/* Sync bar */
.sync-bar {
  background: var(--bg-card);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding:       10px 16px;
}
.sync-bar-inner { display: flex; flex-direction: column; gap: 6px; }
#sync-bar-text { font-size: 0.82rem; color: var(--text-muted); }
.sync-progress {
  height:        4px;
  background:    var(--border);
  border-radius: 2px;
  overflow:      hidden;
}
.sync-progress-fill {
  height:     100%;
  background: var(--green);
  width:      0%;
  transition: width 0.3s;
  border-radius: 2px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap:     1px;
  margin:  12px 16px;
  background: var(--border);
  border:    1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.stat-card {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  padding:         14px 8px;
  background:      var(--bg-card);
}
.stat-number {
  font-size:   1.5rem;
  font-weight: 900;
  color:       var(--green);
}
.stat-label {
  font-size:  0.68rem;
  color:      var(--text-muted);
  margin-top: 2px;
  text-align: center;
}

/* Action grid */
.action-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   10px;
  padding:               12px 16px;
}
.action-card {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             6px;
  padding:         18px 8px;
  background:      var(--bg-card);
  border:          1.5px solid var(--border);
  border-radius:   var(--radius);
  color:           var(--text);
  font-size:       0.78rem;
  font-weight:     600;
  cursor:          pointer;
  text-align:      center;
  line-height:     1.3;
  transition:      border-color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.action-card:active { background: #1f3a25; border-color: var(--green); }
.action-icon { font-size: 1.8rem; }
.action-label { font-size: 0.72rem; }

.action-enroll    { border-color: #2a5a3a; }
.action-plot      { border-color: #2a4a5a; }
.action-visit     { border-color: #3a5a2a; }
.action-planting  { border-color: #2a4a3a; }
.action-harvest   { border-color: #5a4a2a; }
.action-farmers   { border-color: #3a5a4a; }
.action-agroshield{ border-color: #1a5a4a; }
.action-logout    { border-color: #3a2a2a; }

/* Secondary 2-column action row */
.action-grid-secondary {
  grid-template-columns: repeat(2, 1fr);
  padding-top: 0;
}

.last-sync-note {
  text-align: center;
  font-size:  0.72rem;
  color:      var(--text-muted);
  padding:    8px 16px 24px;
}

/* ─── Screen header ────────────────────────────────────────────────────────── */
.screen-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         14px 16px;
  background:      var(--bg-card);
  border-bottom:   2px solid var(--green);
  position:        sticky;
  top:             0;
  z-index:         100;
}
.screen-header h2 {
  font-size:  1rem;
  font-weight: 700;
  color:      var(--text);
}
.back-btn {
  background:  transparent;
  border:      none;
  color:       var(--green);
  font-size:   0.9rem;
  font-weight: 600;
  cursor:      pointer;
  padding:     4px 0;
}

.screen-body {
  flex:       1;
  padding:    16px;
  padding-bottom: 80px; /* room for toast / offline banner */
  overflow-y: auto;
}

.section-label {
  font-size:     0.75rem;
  font-weight:   700;
  color:         var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin:        20px 0 10px;
}
.section-hint {
  font-weight:   400;
  text-transform: none;
  letter-spacing: 0;
  color:         #4a7a4a;
  display:       block;
  margin-top:    2px;
}

/* ─── Crop icon grid ───────────────────────────────────────────────────────── */
.crop-grid {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   8px;
  margin-bottom:         4px;
}
.crop-btn {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             4px;
  padding:         14px 6px;
  background:      var(--bg-card);
  border:          1.5px solid var(--border);
  border-radius:   var(--radius-sm);
  color:           var(--text);
  font-size:       0.72rem;
  font-weight:     600;
  cursor:          pointer;
  text-align:      center;
  transition:      all 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.crop-btn span { font-size: 1.6rem; line-height: 1; }
.crop-btn.selected {
  background:   var(--green-light);
  border-color: var(--green);
  color:        var(--green-dark);
}
.crop-btn:active { opacity: 0.7; }

/* ─── Visit type grid ──────────────────────────────────────────────────────── */
.visit-type-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   8px;
  margin-bottom:         4px;
}
.visit-type-btn {
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  gap:             4px;
  padding:         12px 4px;
  background:      var(--bg-card);
  border:          1.5px solid var(--border);
  border-radius:   var(--radius-sm);
  color:           var(--text);
  font-size:       0.68rem;
  font-weight:     600;
  cursor:          pointer;
  text-align:      center;
  -webkit-tap-highlight-color: transparent;
}
.visit-type-btn span { font-size: 1.4rem; }
.visit-type-btn.selected {
  background:   var(--green-light);
  border-color: var(--green);
  color:        var(--green-dark);
}

/* ─── Audio recorder ───────────────────────────────────────────────────────── */
.audio-recorder {
  background:    var(--bg-card);
  border:        1.5px solid var(--border);
  border-radius: var(--radius);
  padding:       16px;
  margin-bottom: 4px;
}
.audio-prompt {
  font-size:     0.82rem;
  color:         var(--text-muted);
  margin-bottom: 12px;
  line-height:   1.4;
}
.audio-prompt em {
  color:      var(--gold);
  font-style: normal;
}
.audio-controls {
  display:     flex;
  align-items: center;
  gap:         12px;
}
.btn-record {
  display:         flex;
  align-items:     center;
  gap:             8px;
  background:      var(--green);
  border:          none;
  border-radius:   50px;
  color:           white;
  padding:         12px 20px;
  font-size:       0.9rem;
  font-weight:     700;
  cursor:          pointer;
  transition:      background 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-record.recording {
  background: var(--red);
  animation:  pulse 1s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}
.record-icon { font-size: 1.1rem; }
.recording-timer {
  display:     flex;
  align-items: center;
  gap:         6px;
  color:       var(--red);
  font-weight: 700;
  font-size:   0.9rem;
}
.timer-dot { animation: pulse 1s infinite; }
.audio-preview {
  margin-top:  12px;
  display:     flex;
  align-items: center;
  gap:         10px;
  flex-wrap:   wrap;
}
.audio-preview audio { flex: 1; min-width: 0; height: 36px; }
.btn-rerecord {
  background:    transparent;
  border:        1px solid var(--border);
  border-radius: var(--radius-sm);
  color:         var(--text-muted);
  padding:       6px 12px;
  font-size:     0.78rem;
  cursor:        pointer;
}

/* ─── GPS ──────────────────────────────────────────────────────────────────── */
.gps-capture {
  margin-bottom: 4px;
}
.btn-gps {
  display:         flex;
  align-items:     center;
  justify-content: center;
  gap:             8px;
  width:           100%;
  padding:         14px;
  background:      var(--bg-card);
  border:          1.5px solid var(--blue);
  border-radius:   var(--radius-sm);
  color:           #7abaff;
  font-size:       0.95rem;
  font-weight:     600;
  cursor:          pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn-gps-large { padding: 18px; font-size: 1rem; }
.btn-gps:active { background: #0d1a2a; }
.btn-gps.captured {
  border-color: var(--green);
  color:        var(--green);
  background:   #0d1a10;
}
.gps-status {
  font-size:  0.8rem;
  color:      var(--text-muted);
  margin-top: 8px;
  min-height: 20px;
  line-height: 1.4;
}
.gps-status.good  { color: var(--green); }
.gps-status.warn  { color: var(--gold);  }
.gps-status.error { color: var(--red);   }

/* ─── Farmers list ─────────────────────────────────────────────────────────── */
.farmer-card {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  border-radius: var(--radius-sm);
  padding:       14px;
  margin-bottom: 10px;
  display:       flex;
  align-items:   center;
  gap:           12px;
}
.farmer-avatar {
  width:           44px;
  height:          44px;
  border-radius:   50%;
  background:      var(--green);
  display:         flex;
  align-items:     center;
  justify-content: center;
  font-size:       1.2rem;
  flex-shrink:     0;
}
.farmer-info {
  flex:      1;
  min-width: 0;
}
.farmer-info h3 {
  font-size:     0.95rem;
  font-weight:   700;
  color:         var(--text);
  overflow:      hidden;
  text-overflow: ellipsis;
  white-space:   nowrap;
}
.farmer-info p {
  font-size: 0.75rem;
  color:     var(--text-muted);
  margin-top: 2px;
}
.farmer-type-label {
  font-size:   0.7rem;
  color:       var(--text-muted);
  font-weight: 600;
  margin-top:  1px;
  margin-bottom: 2px;
}
.farmer-card-right {
  display:        flex;
  flex-direction: column;
  align-items:    flex-end;
  gap:            6px;
  margin-left:    auto;
  flex-shrink:    0;
}
.farmer-badge {
  margin-left:   auto;
  font-size:     0.68rem;
  padding:       3px 8px;
  border-radius: 10px;
  font-weight:   700;
}
.badge-pending  { background: #2a2a0a; color: var(--gold);  border: 1px solid var(--gold); }
.badge-approved { background: #0a1a0a; color: var(--green); border: 1px solid var(--green); }

.empty-state {
  text-align: center;
  color:      var(--text-muted);
  padding:    40px 20px;
  font-size:  0.9rem;
}

/* ─── Info Box ─────────────────────────────────────────────────────────────── */
.info-box {
  background:    var(--green-light);
  border:        1px solid var(--green);
  border-radius: var(--radius-sm);
  padding:       12px 14px;
  font-size:     0.8rem;
  color:         var(--green-dark);
  margin-bottom: 12px;
  line-height:   1.5;
}

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.toast {
  position:      fixed;
  bottom:        calc(56px + env(safe-area-inset-bottom, 0px));
  left:          16px;
  right:         16px;
  background:    #1a3a2a;
  border:        1px solid var(--green);
  border-radius: var(--radius-sm);
  padding:       14px 16px;
  font-size:     0.88rem;
  color:         var(--text);
  z-index:       1000;
  box-shadow:    var(--shadow);
  animation:     slideUp 0.3s ease;
}
.toast.error { background: #2a1a1a; border-color: var(--red); }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Offline banner — shown at bottom to avoid notch clash ───────────────── */
.offline-banner {
  position:      fixed;
  bottom:        0;
  left:          0;
  right:         0;
  background:    var(--gold);
  color:         #1a0a00;
  text-align:    center;
  padding:       10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  font-size:     0.82rem;
  font-weight:   700;
  z-index:       999;
}

/* ─── Safe area for notched phones ────────────────────────────────────────── */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar, .screen-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }
  .login-wrap {
    padding-top:    calc(24px + env(safe-area-inset-top));
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* ─── Scrollbar — thin on mobile ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ── wallet interest box ─────────────────────────────────────────── */
.wallet-interest-box {
  background:    var(--green-light);
  border-radius: var(--radius-sm);
  padding:       12px;
}
.wallet-interest-label {
  display:     flex;
  align-items: center;
  gap:         10px;
  cursor:      pointer;
  font-size:   0.82rem;
  color:       var(--green-dark);
  text-transform: none;
  font-weight: 400;
  letter-spacing: 0;
}
.wallet-checkbox {
  width:  20px !important;
  height: 20px !important;
  flex-shrink: 0;
  accent-color: var(--green);
}



/* ── field-textarea ──────────────────────────────────────────────── */
.field-textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  resize: vertical;
  font-family: var(--font);
  background: var(--bg-input);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.field-textarea:focus { border-color: var(--green); }

/* ── Select custom arrow (fix Android blank arrow) ───────────────── */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a9a7a' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px !important;
}

/* ── Audio player — bigger touch target ─────────────────────────── */
.audio-preview audio {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: var(--radius-sm);
}

/* ── Visit type grid — 2×2 on small phones ───────────────────────── */
@media (max-width: 380px) {
  .visit-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── OBA DIGITAL CERTIFICATE ─────────────────────────────────────── */
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CERTIFICATE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cert-screen-body {
  padding: 12px;
  background: #e8ede8;
}

/* ── Card wrapper ─────────────────────────────────────────────────── */
.cert-screen-body{padding:12px;background:#e8ede8}

/* ── Card ────────────────────────────────────────────────────────── */
.cert-card{background:#fff;border:1.5px solid #B8860B;border-radius:12px;
  overflow:hidden;margin-bottom:16px;
  box-shadow:0 4px 24px rgba(0,0,0,.14),0 0 0 3px #fff,0 0 0 4.5px rgba(184,134,11,.2);
  max-width:500px;margin-left:auto;margin-right:auto}

/* ── Top band ─────────────────────────────────────────────────────── */
.cert-top-band{background:linear-gradient(135deg,#0a2e18 0%,#0f4525 55%,#1A6B3C 100%);padding:14px 16px 0}
.cert-org-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding-bottom:12px}
.cert-canwyf-name{font-size:1.5rem;font-weight:900;color:#fff;letter-spacing:4px;line-height:1}
.cert-canwyf-sub{font-size:.55rem;color:rgba(255,255,255,.65);letter-spacing:.7px;line-height:1.5;margin-top:3px}
.cert-cac{font-size:.5rem;color:#B8860B;letter-spacing:.7px;margin-top:4px;font-weight:600}
.cert-wordmark-wrap{flex:1;max-width:190px;display:flex;align-items:center;justify-content:flex-end}
.cert-wordmark-wrap svg{width:100%;height:auto;max-height:56px}
.cert-acn-band{background:rgba(0,0,0,.25);margin:0 -16px;padding:5px 16px;
  font-size:.56rem;color:rgba(255,255,255,.65);letter-spacing:.7px;
  text-transform:uppercase;font-weight:600;border-top:1px solid rgba(184,134,11,.3)}

/* ── Medallion row ───────────────────────────────────────────────── */
.cert-medallion-row{display:flex;align-items:flex-start;gap:12px;
  padding:16px 16px 12px;border-bottom:1px solid #e8f0e8;background:#fafcfa}
.cert-medallion{flex-shrink:0;filter:drop-shadow(0 3px 8px rgba(0,0,0,.18))}
.cert-title-block{flex:1;min-width:0}
.cert-type-label{font-size:.9rem;font-weight:800;color:#0a2e18;line-height:1.2;margin-bottom:6px}
.cert-status-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;
  border-radius:20px;font-size:.66rem;font-weight:700;margin-bottom:8px;
  background:#fff3cd;color:#7a5500;border:1px solid #e8c840}
.cert-status-chip.sealed{background:#d6efe0;color:#0a2e18;border-color:#1A6B3C}
.cert-subtitle-text{font-size:.63rem;color:#666;line-height:1.5}

/* ── Body fields ─────────────────────────────────────────────────── */
.cert-body-section{padding:12px 16px}
.cert-name-banner{font-size:1.1rem;font-weight:900;color:#0a2e18;text-align:center;
  padding:8px 0 10px;border-bottom:2px solid #d6efe0;margin-bottom:10px;letter-spacing:.3px}
.cert-fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:0}
.cert-field{padding:6px 8px 6px 0;border-bottom:1px dotted #e8ede8}
.cert-field:nth-child(even){padding-left:8px;border-left:1px dotted #e8ede8}
.cert-field-label{font-size:.55rem;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px}
.cert-field-val{font-size:.78rem;font-weight:600;color:#1a1a1a;line-height:1.3}
.cert-field-gold{color:#7a5500;font-weight:700}

/* ── Seal section ────────────────────────────────────────────────── */
.cert-seal-fields{margin-top:10px}
.cert-seal-divider{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.cert-seal-divider::before,.cert-seal-divider::after{content:'';flex:1;height:1px;
  background:linear-gradient(to right,#d6efe0,#B8860B,#d6efe0)}
.cert-seal-divider span{font-size:.58rem;font-weight:700;color:#B8860B;
  text-transform:uppercase;letter-spacing:1px;white-space:nowrap}

/* ── Reference strip ─────────────────────────────────────────────── */
.cert-ref-strip{background:linear-gradient(135deg,#0a2e18,#0f4525);
  padding:10px 16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.cert-ref-label{font-size:.5rem;color:rgba(255,255,255,.5);font-weight:700;
  letter-spacing:1px;text-transform:uppercase;margin-bottom:3px}
.cert-ref-value{font-family:'Courier New',monospace;font-size:.85rem;
  font-weight:900;color:#F0C040;letter-spacing:1.5px}
.cert-ref-verify{font-size:.75rem;font-weight:700;color:#5fff9a;letter-spacing:.5px}

/* ── Hash strip ──────────────────────────────────────────────────── */
.cert-hash-strip{background:#f0f8f0;border-top:1px solid #d6efe0;border-bottom:1px solid #d6efe0;
  padding:5px 16px;display:flex;align-items:center;gap:8px}
.cert-hash-label{font-size:.5rem;font-weight:800;color:#1A6B3C;text-transform:uppercase;
  letter-spacing:1px;flex-shrink:0}
.cert-hash-val{font-family:'Courier New',monospace;font-size:.55rem;color:#888;
  word-break:break-all;line-height:1.3}

/* ── Signatures ──────────────────────────────────────────────────── */
.cert-signatures{display:flex;justify-content:space-between;align-items:flex-end;
  padding:14px 16px 10px;gap:10px}
.cert-sig{flex:1;text-align:center}
.cert-sig-line{border-top:1.5px solid #333;margin-bottom:5px}
.cert-sig-name{font-size:.65rem;font-weight:800;color:#1a1a1a}
.cert-sig-title{font-size:.54rem;color:#999;margin-top:1px;line-height:1.4}
.cert-sig-centre{flex-shrink:0;text-align:center}
.cert-sig-canwyf-logo{font-size:.9rem;font-weight:900;color:#1A6B3C;letter-spacing:2px;
  border:2px solid #1A6B3C;padding:4px 8px;border-radius:5px;line-height:1}
.cert-sig-canwyf-sub{font-size:.48rem;color:#B8860B;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;margin-top:4px}

/* ── Footer ──────────────────────────────────────────────────────── */
.cert-footer{background:#f4f7f4;border-top:1px solid #e0e8e0;padding:7px 16px;
  font-size:.52rem;color:#aaa;text-align:center;line-height:1.6}

/* ── Actions ─────────────────────────────────────────────────────── */
.cert-actions{display:flex;flex-direction:column;gap:10px;max-width:500px;margin:0 auto}
.btn-sm-icon{background:none;border:none;font-size:1.2rem;cursor:pointer;padding:4px}
.btn-sm-cert{background:#fdf3d0;border:1px solid #e8d080;border-radius:6px;padding:4px 8px;
  font-size:.8rem;cursor:pointer;color:#B8860B;transition:.2s}
.btn-sm-cert:hover{background:#B8860B;color:#fff}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ID CARD ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.idcard-section{max-width:500px;margin:0 auto 16px}
.idcard-label{font-size:.72rem;font-weight:700;color:var(--muted);
  text-transform:uppercase;letter-spacing:.5px;margin-bottom:8px;padding-left:2px}
.idcard{border-radius:14px!important;max-width:340px!important;
  border:2px solid #B8860B!important}
.idcard-header{background:linear-gradient(135deg,#0a2e18,#1A6B3C);
  padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.idcard-org{font-size:1.1rem;font-weight:900;color:#fff;letter-spacing:3px;line-height:1}
.idcard-programme{font-size:.52rem;color:#B8860B;letter-spacing:1px;
  font-weight:700;text-transform:uppercase;margin-top:2px}
.idcard-header-svg{flex:1;max-width:120px;display:flex;justify-content:flex-end}
.idcard-header-svg svg{width:100%;height:auto;max-height:36px}
.idcard-photo-row{display:flex;gap:12px;padding:12px 12px 8px;align-items:flex-start}
.idcard-photo{width:72px;height:72px;border-radius:8px;flex-shrink:0;
  background:linear-gradient(135deg,#d6efe0,#f0f8f0);
  border:2px solid #1A6B3C;display:flex;align-items:center;justify-content:center;
  overflow:hidden;font-size:2.2rem}
.idcard-photo img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.idcard-details{flex:1;min-width:0}
.idcard-name{font-size:.92rem;font-weight:900;color:#0a2e18;line-height:1.2;margin-bottom:4px}
.idcard-type{font-size:.62rem;font-weight:700;color:#1A6B3C;margin-bottom:2px}
.idcard-community{font-size:.6rem;color:#666;margin-bottom:2px}
.idcard-chapter{font-size:.58rem;font-family:monospace;color:#888;margin-bottom:5px}
.idcard-status{display:inline-flex;padding:3px 8px;border-radius:10px;
  font-size:.6rem;font-weight:700;background:#fff3cd;color:#7a5500;border:1px solid #e8c840}
.idcard-status.sealed{background:#d6efe0;color:#0a2e18;border-color:#1A6B3C}
.idcard-ref-row{display:flex;align-items:center;gap:8px;
  padding:6px 12px;background:#f8faf8;border-top:1px dotted #d6efe0}
.idcard-ref-label{font-size:.5rem;font-weight:700;color:#999;text-transform:uppercase;letter-spacing:.5px}
.idcard-ref{font-family:monospace;font-size:.7rem;font-weight:700;color:#1A6B3C}
.idcard-footer-strip{background:linear-gradient(135deg,#0a2e18,#0f4525);
  padding:5px 12px;display:flex;justify-content:space-between;align-items:center}
.idcard-footer-strip span{font-size:.56rem;color:rgba(255,255,255,.65);letter-spacing:.5px}

/* ── Print ────────────────────────────────────────────────────────── */
@media print {
  .no-print,.no-print-cert,.topbar,#toast,#offline-banner{display:none!important}
  .screen{display:block!important;position:static!important}
  .screen-body{padding:0!important;overflow:visible!important}
  .cert-screen-body{background:#fff!important;padding:0!important}
  body,html{background:#fff!important}
  .cert-card{box-shadow:none!important;border-radius:0!important;
    max-width:100%!important;margin:0!important;break-inside:avoid}
  .idcard-section{page-break-before:always}
  .idcard{max-width:85mm!important;border-radius:8px!important}
}


/* photo styles are in css/photo.css — loaded separately */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━ SYNC LOG SCREEN ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sync-summary-bar{
  display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;align-items:center
}
.sync-stat-chip{
  display:inline-flex;align-items:center;padding:5px 12px;
  border-radius:20px;font-size:.75rem;font-weight:700;white-space:nowrap
}
.sync-chip-pending{background:#fff3cd;color:#7a5500;border:1px solid #e8c840}
.sync-chip-failed{background:var(--red-l,#fde8e8);color:var(--red,#8B1A1A);border:1px solid #e8a0a0}
.sync-chip-ok{background:var(--green-l,#D6EFE0);color:#0f4525;border:1px solid #86c68b}

.sync-tabs{
  display:flex;gap:0;margin-bottom:12px;
  background:#f0f4f0;border-radius:8px;padding:3px
}
.sync-tab{
  flex:1;padding:8px 4px;font-size:.78rem;font-weight:700;
  border:none;background:transparent;cursor:pointer;border-radius:6px;
  color:var(--muted,#5a7a5a);transition:all .15s
}
.sync-tab.active{
  background:#fff;color:var(--green,#1A6B3C);
  box-shadow:0 1px 4px rgba(0,0,0,.1)
}

.sync-log-list{display:flex;flex-direction:column;gap:10px}
.sync-log-empty{
  text-align:center;padding:32px 16px;color:var(--muted);font-size:.88rem
}
.sync-log-empty .sync-empty-icon{font-size:2.5rem;display:block;margin-bottom:10px}

.sync-record-card{
  background:#fff;border-radius:10px;overflow:hidden;
  box-shadow:0 1px 4px rgba(0,0,0,.07);
  border-left:4px solid var(--border,#d4e0d4)
}
.sync-record-card.status-failed{border-left-color:var(--red,#8B1A1A)}
.sync-record-card.status-pending{border-left-color:#e8c840}
.sync-record-card.status-synced{border-left-color:var(--green,#1A6B3C)}

.sync-card-header{
  display:flex;align-items:flex-start;gap:10px;padding:12px 12px 8px
}
.sync-type-icon{font-size:1.4rem;flex-shrink:0;margin-top:2px}
.sync-card-main{flex:1;min-width:0}
.sync-card-title{
  font-weight:700;font-size:.88rem;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.sync-card-sub{font-size:.74rem;color:var(--muted);margin-top:2px}
.sync-status-pill{
  flex-shrink:0;display:inline-flex;padding:3px 8px;
  border-radius:10px;font-size:.64rem;font-weight:700;align-self:flex-start
}
.pill-status-failed{background:var(--red-l);color:var(--red)}
.pill-status-pending{background:#fff3cd;color:#7a5500}
.pill-status-synced{background:var(--green-l);color:#0f4525}

.sync-error-box{
  margin:0 12px 10px;padding:9px 11px;
  background:#fff5f5;border:1px solid #fcc;border-radius:7px;
  font-size:.76rem;color:var(--red,#8B1A1A);line-height:1.5;
  word-break:break-word
}
.sync-error-label{
  font-size:.64rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.5px;margin-bottom:3px;opacity:.7
}
.sync-card-actions{
  display:flex;gap:8px;padding:0 12px 12px;flex-wrap:wrap
}
.btn-retry-one{
  background:var(--green-l);color:#0f4525;border:1px solid #86c68b;
  border-radius:7px;padding:7px 14px;font-size:.76rem;font-weight:700;
  cursor:pointer;touch-action:manipulation
}
.btn-discard-one{
  background:#f5f5f5;color:var(--muted);border:1px solid #ccc;
  border-radius:7px;padding:7px 14px;font-size:.76rem;font-weight:700;
  cursor:pointer;touch-action:manipulation
}
.sync-card-meta{
  padding:0 12px 10px;font-size:.7rem;color:var(--muted);
  display:flex;gap:12px;flex-wrap:wrap
}
.sync-card-meta span::before{content:'';margin-right:2px}

/* ── Crop batch / harvest form helpers ─────────────────────────────────────── */
.row-2 { display: flex; gap: 12px; }
.half  { flex: 1; min-width: 0; }
.btn-full { width: 100%; justify-content: center; margin-top: 8px; }
.field-textarea { min-height: 72px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 14px;
  font-size: .84rem; line-height: 1.5; }
.alert-error   { background: #fde8e8; color: #8B1A1A; border: 1px solid #e8a0a0; }
.alert-success { background: #d6efe0; color: #0a2e18; border: 1px solid #86c68b; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━ SPRINT 11: COORDINATOR UX ━━━━━━━━━━━━━━━━━━━━━ */

/* Connection quality indicator */
.conn-indicator {
  font-size: 1.1rem;
  line-height: 1;
  cursor: default;
  flex-shrink: 0;
  transition: color .3s;
}

/* Visit GPS map */
.visit-map-wrap {
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid #d0e8d0;
  background: #f0f8f0;
}
.visit-map-label {
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 600;
  background: #f0f8f0;
  border-bottom: 1px solid #d0e8d0;
}
.visit-map-container {
  height: 200px;
  width: 100%;
}
.visit-map-legend {
  padding: 6px 12px;
  display: flex;
  gap: 16px;
  font-size: .7rem;
  color: #555;
  background: #f0f8f0;
  border-top: 1px solid #d0e8d0;
}
.vml-plot, .vml-you { display: flex; align-items: center; gap: 4px; }

/* Plot GPS note for large farms */
.gps-plot-note {
  font-size: .78rem;
  color: #555;
  background: #f0f8f0;
  border: 1px solid #c8e6c8;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  line-height: 1.6;
}

/* ── Onboarding overlay ──────────────────────────────────────────────────── */
.onboarding-overlay {
  position: fixed; inset: 0;
  background: rgba(10,46,24,.82);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: ob-fade-in .3s ease;
}
@keyframes ob-fade-in { from { opacity:0 } to { opacity:1 } }

.onboarding-card {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 380px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
}

/* Progress dots */
.ob-dots-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 18px 24px 0;
}
.ob-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ddd; transition: all .25s;
}
.ob-dot-active {
  background: #1A6B3C;
  width: 20px;
  border-radius: 3px;
}

/* Step container */
.ob-step { animation: ob-step-in .3s ease; }
@keyframes ob-step-in {
  from { opacity:0; transform:translateX(20px) }
  to   { opacity:1; transform:translateX(0) }
}

/* Visual area */
.ob-visual {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
}
.ob-visual-welcome { background: linear-gradient(135deg, #0a2e18, #1A6B3C); }
.ob-visual-dashboard { background: linear-gradient(135deg, #0d1a2e, #1b4f8a); }
.ob-visual-enroll   { background: linear-gradient(135deg, #1a1a0a, #3a3a10); }
.ob-visual-gps      { background: linear-gradient(135deg, #0a2030, #0f4060); }
.ob-visual-offline  { background: linear-gradient(135deg, #1a0a2e, #3a1a5a); }
.ob-visual-practice { background: linear-gradient(135deg, #2e1a00, #7a5800); }

/* Welcome animation — pulsing rings */
.ob-anim-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  animation: ob-ring-pulse 2s infinite;
}
.ob-ring-1 { width:60px; height:60px; animation-delay:0s }
.ob-ring-2 { width:100px; height:100px; animation-delay:.4s }
.ob-ring-3 { width:140px; height:140px; animation-delay:.8s }
@keyframes ob-ring-pulse {
  0%,100% { opacity:.2; transform:scale(1) }
  50%      { opacity:.6; transform:scale(1.05) }
}
.ob-center-icon {
  font-size: 2.8rem;
  z-index: 1;
  animation: ob-icon-bounce 2s infinite;
}
@keyframes ob-icon-bounce {
  0%,100% { transform: translateY(0) }
  50%      { transform: translateY(-6px) }
}

/* Dashboard mockup */
.ob-mock-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
}
.ob-mock-btn {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 10px;
  padding: 10px 8px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}
.ob-mock-pulse {
  animation: ob-btn-pulse 1.5s infinite;
  background: rgba(184,134,11,.5);
  border-color: rgba(184,134,11,.7);
}
@keyframes ob-btn-pulse {
  0%,100% { box-shadow:0 0 0 0 rgba(184,134,11,.4) }
  50%      { box-shadow:0 0 0 8px rgba(184,134,11,0) }
}

/* Enrollment form mockup */
.ob-mock-form { display:flex; flex-direction:column; gap:6px; padding:12px; width:85% }
.ob-mock-field {
  background: rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  animation: ob-field-appear .4s ease forwards;
}
.ob-field-anim-1 { animation-delay:.2s }
.ob-field-anim-2 { animation-delay:.5s }
.ob-field-anim-3 { animation-delay:.8s }
.ob-field-anim-4 { animation-delay:1.1s }
@keyframes ob-field-appear {
  from { opacity:0; transform:translateX(-10px) }
  to   { opacity:1; transform:translateX(0) }
}
.ob-field-label { font-size:.62rem; color:rgba(255,255,255,.5); }
.ob-field-val   { font-size:.75rem; color:#fff; font-weight:600; }
.ob-mock-audio {
  background: rgba(26,107,60,.4);
  border: 1px solid rgba(26,200,100,.3);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: .72rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: ob-field-appear .4s ease .4s forwards;
}

/* GPS map mockup */
.ob-mock-map {
  width: 140px; height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.ob-map-pin { position:absolute; font-size:1rem; }
.ob-pin-plot { top:40%; left:42%; }
.ob-pin-you  { top:55%; left:50%; }
.ob-pin-pulse { animation: ob-pin-move 2s ease-in-out infinite; }
@keyframes ob-pin-move {
  0%,100% { top:58%; left:52% }
  50%      { top:48%; left:46% }
}
.ob-map-circle {
  position:absolute; top:30%; left:28%;
  width:60px; height:60px;
  border-radius:50%;
  border: 1.5px solid rgba(22,163,74,.6);
  background: rgba(22,163,74,.1);
}
.ob-map-dist {
  position:absolute; bottom:6px; left:50%; transform:translateX(-50%);
  background: rgba(22,163,74,.8);
  color:#fff; font-size:.62rem; font-weight:700;
  padding: 3px 8px; border-radius:10px;
  white-space: nowrap;
}

/* Offline flow demo */
.ob-offline-demo {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}
.ob-offline-icon { font-size:2rem }
.ob-offline-label { font-size:.72rem; color:rgba(255,255,255,.5) }
.ob-offline-arrow { font-size:1rem; color:rgba(255,255,255,.4) }
.ob-saved-chip {
  background: rgba(22,163,74,.3);
  border: 1px solid rgba(22,163,74,.5);
  color:#fff; font-size:.72rem; font-weight:700;
  padding:4px 12px; border-radius:10px;
}
.ob-sync-chip {
  background: rgba(184,134,11,.3);
  border: 1px solid rgba(184,134,11,.5);
  color:#fff; font-size:.72rem; font-weight:700;
  padding:4px 12px; border-radius:10px;
}
.ob-sync-pulse { animation: ob-btn-pulse 1.5s infinite; }

/* Practice step */
.ob-practice-demo {
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:8px;
}
.ob-practice-badge {
  background: rgba(184,134,11,.8);
  color:#fff; font-size:.78rem; font-weight:900;
  padding:5px 14px; border-radius:20px; letter-spacing:1px;
  animation: ob-btn-pulse 2s infinite;
}
.ob-practice-text { font-size:.72rem; color:rgba(255,255,255,.7); text-align:center; max-width:200px; }
.ob-practice-fields { display:flex; flex-direction:column; gap:4px; margin-top:4px; }
.ob-pf { font-size:.7rem; color:rgba(255,255,255,.6); }

/* Text area */
.ob-title {
  font-size: 1.05rem; font-weight: 800;
  color: #0a2e18; margin: 16px 24px 8px;
}
.ob-body {
  font-size: .84rem; color: #444;
  line-height: 1.7; margin: 0 24px 8px;
}
.ob-tip {
  font-size: .76rem; color: #888;
  background: #f8f8f8; border-left: 3px solid #1A6B3C;
  padding: 8px 12px; margin: 4px 24px 16px;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

/* Actions */
.ob-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid #f0f0f0;
  margin-top: auto;
}
.ob-btn-skip {
  background: none; border: none;
  color: #bbb; font-size: .78rem;
  cursor: pointer; padding: 8px 4px;
  flex-shrink: 0;
}
.ob-btn-skip:hover { color: #888; }
.ob-btn-next {
  background: linear-gradient(135deg, #1A6B3C, #2a8a50);
  color: #fff; border: none; border-radius: 10px;
  padding: 12px 24px; font-size: .9rem;
  font-weight: 700; cursor: pointer; flex: 1;
  transition: opacity .15s;
}
.ob-btn-next:hover { opacity: .9; }

/* Practice mode banner */
.practice-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: linear-gradient(135deg, #92400e, #B8860B);
  color: #fff;
  text-align: center;
  padding: 11px 16px;
  font-size: .84rem;
  z-index: 8000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}

/* Optional GPS button style */
.btn-gps-optional {
  opacity: .8;
  border-style: dashed !important;
}
.btn-gps-optional:hover { opacity: 1; }
