/* Grower link pages. Loaded after crm.css. */
body.grower { background: var(--cream); }
.g-wrap { max-width: 900px; margin: 0 auto; padding: 0 16px; }
.g-top { background: var(--navy); color: var(--white); border-bottom: 4px solid var(--red); padding: calc(12px + var(--safe-t)) 0 12px; }
.g-top .g-wrap { display: flex; align-items: center; gap: 12px; }
.g-top img { width: 56px; height: 56px; }
.g-top img.lockup { width: auto; height: 64px; }
@media (max-width: 480px) { .g-top img.lockup { height: 54px; } }
.g-top strong { display: block; font: 700 18px/1.2 var(--head); }
.g-top span { display: block; font: 700 11px/1.4 var(--head); letter-spacing: .08em; }
.g-top span b { color: var(--white); font-weight: 700; }
.g-top span i { color: var(--gold); font-style: normal; }
.g-main { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 16px; }
.g-h1 { font: 700 26px/1.2 var(--head); margin: 0 0 4px; }
.g-lead { color: var(--ink-2); margin: 0; }
.g-foot { background: var(--navy); color: rgba(255,255,255,.8); padding: 18px 0 calc(18px + var(--safe-b)); font-size: 14px; }
.g-foot a { color: var(--white); }
.g-foot p { margin: 4px 0; }
.g-sign { display: grid; gap: 12px; }
.agreement-body { white-space: pre-line; line-height: 1.6; }
.signed-stamp { border: 2px solid var(--navy); border-radius: 12px; padding: 12px 14px; }
.g-main .panel h2 { margin-bottom: 10px; }
.doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.doc-lines td:last-child, .doc-lines th:last-child { text-align: right; white-space: nowrap; }
.doc-total td { font-weight: 700; font-size: 16px; }
.dl-sub { display: none; }
@media (max-width: 560px) {
  .doc-lines .dl-wide { display: none; }
  .doc-lines .dl-sub { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2, #4a5568); }
  .doc-lines td:first-child { width: 100%; }
}
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.photo-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.photo-grid span { display: block; padding: 6px 8px; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media print {
  .g-top, .g-foot, .no-print { display: none !important; }
  body.grower { background: #fff; }
}

/* ---------- App on the home screen ---------- */
.g-offline { background: var(--gold, #C8960C); color: #1a1400; font-weight: 600; text-align: center; padding: 8px 16px; font-size: 14px; }
.g-offline[hidden] { display: none; }
.install-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; gap: 12px; max-width: 560px; margin: 0 auto;
  background: var(--white, #fff); color: var(--navy, #0F1F3D); border: 1px solid rgba(15,31,61,.14); border-radius: 16px;
  padding: 12px 12px 12px 14px; box-shadow: 0 14px 34px rgba(15,31,61,.28);
}
.install-bar[hidden] { display: none; }
.install-bar > img { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto; background: var(--navy, #0F1F3D); }
.install-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.install-txt strong { font-size: 15px; }
.install-how { font-size: 13px; color: rgba(15,31,61,.72); line-height: 1.35; }
.install-how em { font-style: normal; font-weight: 700; color: var(--navy, #0F1F3D); }
.install-btns { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
@media (max-width: 380px) { .install-how[data-for="android"] { display: none; } .install-bar { flex-wrap: wrap; } .install-bar .install-txt { flex-basis: calc(100% - 60px); } }
body.has-bar { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.g-nosignal { margin: 8px 0 0; font-size: 14px; color: var(--navy, #0F1F3D); background: rgba(200,150,12,.16); border-radius: 8px; padding: 8px 12px; }

/* Mission card (2.12, held) */
.g-mission { border-left: 4px solid var(--gold); }
.g-mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 14px; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.g-mission-grid .k { display: block; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.g-mission-grid .v { font: 700 17px var(--head); color: var(--navy); }
