/* ==========================================================================
   UI-2: farmer POP page, print leaflet, custom-crop editor, languages page
   ========================================================================== */

/* ---------- Farmer page shell (mobile-first, no portal chrome) ---------- */
.fp-page { min-height: 100vh; background: #e9eee6; padding: 0; }
.fp {
  --brand: #1f7a3a; --on-brand: #fff;
  --brand-soft: color-mix(in srgb, var(--brand) 10%, #fff);
  --brand-line: color-mix(in srgb, var(--brand) 25%, #fff);
  max-width: 640px; margin: 0 auto; background: #fbfcf9; min-height: 100vh;
  font-size: 17px; line-height: 1.6; color: #14201a;
  box-shadow: 0 0 0 1px rgba(16, 32, 20, .06), 0 20px 60px -30px rgba(16, 32, 20, .35);
}
@media (min-width: 700px) { .fp-page { padding: 24px 0 40px; } .fp { min-height: 0; border-radius: 18px; overflow: hidden; } }
.fp :is(h1, h2) { letter-spacing: 0; }
.fp [lang]:not([lang="en"]) { line-height: 1.7; }

/* header */
.fp-top { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.fp-logo { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; flex-shrink: 0; }
.fp-logo-txt { display: grid; place-items: center; font-weight: 800; font-size: 1rem; color: var(--brand); }
.fp-top-txt { flex: 1; min-width: 0; }
.fp-top-name { font-weight: 800; font-size: 1.05rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-top-sub { font-size: .8rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-lang-pill { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid currentColor; background: rgba(255, 255, 255, .14); color: inherit; border-radius: 999px; padding: 7px 12px; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; max-width: 46%; }
.fp-lang-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fp-ribbon { background: #fff4d6; color: #5b4000; border-bottom: 1px solid #f0dca0; padding: 10px 16px; font-size: .9rem; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fp-ribbon-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.fp-body { padding: 0 16px 8px; }
.fp-h2 { font-size: 1.15rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; color: #10301c; }

/* hero */
.fp-hero { display: flex; gap: 16px; align-items: center; padding: 22px 2px 14px; }
.fp-emoji { font-size: 3.2rem; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; background: var(--brand-soft); border: 1px solid var(--brand-line); flex-shrink: 0; line-height: 1; }
.fp-hero-txt { min-width: 0; }
.fp-kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.fp-crop { font-size: 2rem; line-height: 1.25; margin: 2px 0 2px; font-weight: 800; word-break: break-word; }
.fp-crop-en { color: #56645a; font-size: .95rem; }
.fp-product { background: #fff; border: 1px solid #e1e7dc; border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.fp-product-name { font-weight: 800; font-size: 1.08rem; }
.fp-product-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .92rem; color: #3f4d43; margin-top: 2px; }
.fp-tag { background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 0 10px; font-size: .8rem; font-weight: 700; line-height: 1.8; }

/* notices */
.fp-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: .95rem; }
.fp-note .icon { margin-top: 3px; }
.fp-note-custom { background: #eef4ff; color: #173e6b; }
.fp-note-warn { background: #fff3da; color: #6b4500; }
.fp-note-mt { background: #f1f4ef; color: #3f4d43; flex-direction: column; gap: 6px; font-size: .88rem; }
.fp-mt-badge { display: inline-flex; align-items: center; gap: 6px; background: #1f2d24; color: #fff; border-radius: 999px; padding: 2px 10px; font-weight: 700; font-size: .78rem; align-self: flex-start; }

/* language picker */
.fp-langs { background: #fff; border: 1px solid #e1e7dc; border-radius: 16px; padding: 14px; margin-bottom: 14px; transition: box-shadow .3s; }
.fp-langs.flash { box-shadow: 0 0 0 4px var(--brand-line); }
.fp-lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 380px) { .fp-lang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fp-lang {
  min-height: 64px; border: 1.5px solid #dbe3d6; background: #fff; border-radius: 12px; padding: 8px 6px; cursor: pointer; font: inherit; color: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; text-align: center; transition: border-color .12s, background .12s;
}
.fp-lang:hover { border-color: var(--brand); }
.fp-lang.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.fp-lang-native { font-size: 1.12rem; font-weight: 700; line-height: 1.35; overflow-wrap: normal; max-width: 100%; }
.fp-lang-native.long { font-size: .9rem; }
.fp-lang-en { font-size: .74rem; opacity: .75; line-height: 1.2; }
.fp-lang-more { border-style: dashed; color: var(--brand); gap: 2px; }
.fp-lang-more .fp-lang-native { font-size: .92rem; }

/* action buttons */
.fp-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 18px; }
.fp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 14px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; border: 1.5px solid transparent; text-decoration: none !important; text-align: center; line-height: 1.25;
}
.fp-btn-wa { background: #1fa855; color: #fff; }
.fp-btn-call { background: var(--brand); color: var(--on-brand); }
.fp-btn-speak { background: #fff; color: #10301c; border-color: #cfd9ca; }
.fp-btn-speak.on { background: #10301c; color: #fff; }
.fp-btn-ghost { background: #fff; color: #10301c; border-color: #cfd9ca; }
.fp-btn:hover { filter: brightness(.96); }

/* key facts */
.fp-facts { margin-bottom: 20px; }
.fp-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fp-fact { background: #fff; border: 1px solid #e1e7dc; border-radius: 14px; padding: 12px; min-width: 0; }
.fp-fact-ico { font-size: 1.5rem; line-height: 1; }
.fp-fact-lbl { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--brand); margin-top: 6px; }
.fp-fact [lang]:not([lang="en"]) .fp-fact-lbl, .fp-body:not([lang="en"]) .fp-fact-lbl { text-transform: none; letter-spacing: 0; font-size: .88rem; }
.fp-fact-val { font-weight: 650; font-size: .98rem; line-height: 1.45; margin-top: 2px; word-break: break-word; }
.fp-seasons { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.fp-seasons-lbl { font-weight: 700; font-size: .9rem; margin-inline-end: 4px; }
.fp-season { background: var(--brand-soft); border: 1px solid var(--brand-line); color: #10301c; border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 600; }

/* seed label */
.fp-label, .fp-company-note { background: #fff; border: 1px solid #e1e7dc; border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.fp-label dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0; }
.fp-label dt { font-size: .8rem; color: #56645a; font-weight: 700; }
.fp-label dd { margin: 0; font-weight: 700; }
.fp-company-note { background: #fffaf0; border-color: #f0dfb5; }
.fp-company-note p { margin: 0 0 6px; }
.fp-company-note p:last-child { margin: 0; }

/* sections */
.fp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.fp-link { background: none; border: 0; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 0; font-size: .95rem; }
.fp-secs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.fp-sec { background: #fff; border: 1px solid #e1e7dc; border-radius: 14px; overflow: hidden; }
.fp-sec summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; min-height: 60px; user-select: none; }
.fp-sec summary::-webkit-details-marker { display: none; }
.fp-sec-ico { font-size: 1.45rem; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; flex-shrink: 0; }
.fp-sec-title { flex: 1; font-weight: 800; font-size: 1.08rem; line-height: 1.3; }
.fp-chev { width: 12px; height: 12px; border-right: 2.5px solid #7a877e; border-bottom: 2.5px solid #7a877e; transform: rotate(45deg); transition: transform .15s; margin: 0 6px 4px; flex-shrink: 0; }
.fp-sec[open] .fp-chev { transform: rotate(225deg); margin-bottom: -4px; }
.fp-sec[open] summary { border-bottom: 1px solid #edf1ea; }
.fp-sec ul { margin: 0; padding: 12px 16px 14px 36px; }
[dir="rtl"] .fp-sec ul { padding: 12px 36px 14px 16px; }
.fp-sec li { margin: 0 0 10px; }
.fp-sec li:last-child { margin-bottom: 0; }
.fp-sec li::marker { color: var(--brand); }

/* trust */
.fp-trust { font-size: .9rem; color: #3f4d43; margin-bottom: 18px; }
.fp-disclaimer { display: flex; gap: 10px; background: #f1f4ef; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.fp-disclaimer .icon { color: var(--brand); margin-top: 2px; }
.fp-disclaimer p { margin: 0 0 6px; }
.fp-disclaimer p:last-child { margin: 0; }
.fp-sources ul { margin: 4px 0 8px; padding-inline-start: 20px; }
.fp-sources a { word-break: break-word; }
.fp-updated { color: #56645a; margin-bottom: 6px; }

.fp-contact-wrap { margin-bottom: 18px; }
.fp-contact { background: #fff; border: 1px solid #e1e7dc; border-radius: 14px; padding: 14px; text-align: start; }
.fp-contact-name { font-weight: 800; }
.fp-contact-line { color: #56645a; font-size: .92rem; }
.fp-contact-actions { display: grid; gap: 8px; margin-top: 10px; }
.fp-contact-actions .fp-btn span { overflow: hidden; text-overflow: ellipsis; }

.fp-foot { padding: 16px; background: #f1f4ef; border-top: 1px solid #e1e7dc; font-size: .82rem; color: #56645a; }
.fp-foot-co { margin-bottom: 8px; }
.fp-powered { font-weight: 700; color: #7a877e; }

/* state pages (paused / unknown) */
.fp-state { padding: 44px 20px 30px; text-align: center; }
.fp-state-icon { font-size: 3.4rem; line-height: 1; margin-bottom: 12px; }
.fp-state h1 { font-size: 1.6rem; margin-bottom: 8px; }
.fp-state p { color: #3f4d43; max-width: 440px; margin: 0 auto 18px; }
.fp-code { display: table; margin-left: auto; margin-right: auto; font-family: ui-monospace, Consolas, monospace; background: #f1f4ef; border: 1px dashed #cfd9ca; border-radius: 8px; padding: 6px 14px; margin-bottom: 18px; letter-spacing: .12em; }

/* translation progress overlay */
.fp-progress { position: fixed; inset: 72px 0 auto 0; z-index: 90; padding: 12px; display: flex; justify-content: center; pointer-events: none; }
.fp-progress-in { pointer-events: auto; width: min(560px, 100%); background: #10301c; color: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); animation: pop .2s; }
.fp-progress-txt { font-weight: 800; margin-bottom: 8px; }
.fp-progress .progress { background: rgba(255, 255, 255, .2); height: 10px; }
.fp-progress .progress > span { background: #7ee29a; }
.fp-progress-note { font-size: .82rem; opacity: .85; margin-top: 8px; }

/* language search modal (shared) */
.ls-modal { height: min(640px, calc(100vh - 32px)); }
.ls-modal .modal-body { display: flex; flex-direction: column; padding: 14px 16px; min-height: 0; flex: 1; }
.ls { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ls-input { font-size: 1.05rem !important; padding-top: 12px !important; padding-bottom: 12px !important; }
.ls-list { overflow-y: auto; margin-top: 10px; flex: 1; min-height: 0; border-top: 1px solid var(--line); }
.ls-group { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 12px 4px 6px; position: sticky; top: 0; background: var(--surface); }
.ls-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 6px; font: inherit; cursor: pointer; color: var(--text); min-height: 54px; }
.ls-item:hover, .ls-item:focus { background: var(--primary-soft); outline: none; }
.ls-native { font-size: 1.08rem; font-weight: 700; }
.ls-name { color: var(--muted); font-size: .9rem; flex: 1; }
.ls-check { color: var(--primary); }
.ls-empty { padding: 30px; text-align: center; color: var(--muted); }
@media (max-width: 620px) {
  .modal-bg:has(.ls-modal) { align-items: end; padding: 0; }
  .ls-modal { width: 100%; border-radius: 18px 18px 0 0; height: 86vh; max-height: 86vh; }
}

/* ==========================================================================
   Print leaflet (A4)
   ========================================================================== */
.lf-page { background: #d9ddd6; min-height: 100vh; padding: 0 0 40px; }
.lf-toolbar { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 16px; }
.lf-toolbar-in { max-width: 210mm; margin: 0 auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lf-hint { max-width: 210mm; margin: 6px auto 0; font-size: .8rem; color: var(--muted); }
.lf-ctl { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; }
.lf-ctl select { width: auto; max-width: 240px; padding: 6px 10px; }
.lf-loading { padding: 80px 20px; text-align: center; color: var(--muted); display: flex; gap: 10px; justify-content: center; align-items: center; }
.lf-sheet {
  width: 210mm; min-height: 297mm; margin: 20px auto; background: #fff; color: #000; padding: 12mm 12mm 10mm;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, .35); font-size: 9.6pt; line-height: 1.42;
}
@media (max-width: 830px) { .lf-sheet { width: auto; min-height: 0; margin: 12px; padding: 16px; } }
.lf-head { display: flex; gap: 14px; align-items: flex-start; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 8px; }
.lf-head-main { flex: 1; min-width: 0; }
.lf-co { display: flex; align-items: center; gap: 8px; }
.lf-logo { width: 34px; height: 34px; object-fit: contain; }
.lf-co-name { font-weight: 800; font-size: 11pt; }
.lf-co-sub { font-size: 8pt; }
.lf-kicker { margin-top: 6px; font-size: 8.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.lf-title { font-size: 20pt; margin: 2px 0 0; line-height: 1.2; }
.lf-title-en { font-size: 12pt; font-weight: 600; }
.lf-emoji { font-size: 18pt; }
.lf-sci { font-size: 9pt; }
.lf-product { margin-top: 4px; font-size: 10pt; }
.lf-label { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 8.5pt; margin-top: 4px; border: 1px solid #000; padding: 3px 6px; }
.lf-qr { width: 34mm; flex-shrink: 0; text-align: center; }
.lf-qr svg { width: 34mm; height: 34mm; display: block; }
.lf-qr-txt { font-size: 7.5pt; line-height: 1.25; margin-top: 2px; }
.lf-qr-url { font-size: 6.2pt; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.lf-facts { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 9pt; }
.lf-facts th, .lf-facts td { border: 1px solid #000; padding: 3px 6px; text-align: start; vertical-align: top; }
.lf-facts th { width: 26%; background: #eee; font-weight: 700; }
.lf-notes { border: 1px dashed #000; padding: 4px 6px; margin-bottom: 8px; }
.lf-cols { column-count: 2; column-gap: 7mm; column-rule: 1px solid #bbb; }
.lf-sec { break-inside: auto; margin-bottom: 6px; }
.lf-sec h2 { font-size: 10.5pt; margin: 0 0 2px; padding: 2px 0; border-bottom: 1px solid #000; break-after: avoid; break-inside: avoid; }
.lf-sec ul { margin: 2px 0 0; padding-inline-start: 13px; }
.lf-sec li { margin: 0 0 2px; break-inside: avoid; }
.lf-en { display: block; font-size: .86em; color: #444; font-style: italic; }
.lf-kicker .lf-en, .lf-facts th .lf-en, .lf-sec h2 .lf-en { display: inline; font-weight: 500; }
.lf-kicker .lf-en::before, .lf-facts th .lf-en::before, .lf-sec h2 .lf-en::before { content: " / "; }
.lf-foot { border-top: 2px solid #000; margin-top: 8px; padding-top: 5px; font-size: 8pt; }
.lf-foot p { margin: 0 0 3px; }
.lf-foot-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.lf-small { font-size: 7.5pt; color: #333; }
.lf-keep { font-weight: 700; text-align: center; margin-top: 4px !important; }

@media print {
  @page { size: A4; margin: 10mm; }
  html, body { background: #fff !important; }
  .lf-page { background: #fff; padding: 0; min-height: 0; }
  .lf-sheet { width: auto; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .fp-progress, .fp-ribbon, .fp-lang-pill, .fp-langs, .fp-actions, .fp-link { display: none !important; }
  .fp-page { background: #fff; padding: 0; }
  .fp { box-shadow: none; max-width: none; }
  .fp-top { position: static; box-shadow: none; }
  .fp-sec { break-inside: avoid; }
  .fp-sec:not([open]) ul { display: block; }
  a { color: #000; }
}

/* ==========================================================================
   Portal pages (UI-2): custom crops + languages
   ========================================================================== */
.mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; }

/* list */
.cc-emoji { font-size: 1.6rem; width: 42px; height: 42px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 10px; flex-shrink: 0; }
.cc-langdots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; max-width: 260px; }
.cc-dot { font-size: .66rem; font-weight: 700; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: #9aa39c; text-transform: uppercase; line-height: 1.6; }
.cc-dot.ok { background: var(--primary-soft); color: var(--primary); }
.cc-dot.stale { background: var(--warn-soft); color: var(--warn); }

/* editor */
.cc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
@media (max-width: 1080px) { .cc-layout { grid-template-columns: 1fr; } .cc-side { position: static !important; max-height: none; overflow: visible; } }
.cc-side { position: sticky; top: 78px; display: flex; flex-direction: column; gap: 16px; max-height: calc(100vh - 94px); overflow: auto; }
.cc-req { color: var(--danger); font-weight: 700; }
.cc-template-ctl select { width: auto; min-width: 200px; max-width: 100%; }
@media (max-width: 620px) { .cc-template-ctl { width: 100%; } .cc-template-ctl select { flex: 1; min-width: 0; } }
.cc-emojis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cc-emo { width: 42px; height: 42px; font-size: 1.35rem; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; cursor: pointer; display: grid; place-items: center; padding: 0; }
.cc-emo:hover { border-color: var(--primary); }
.cc-emo.on { border: 2px solid var(--primary); background: var(--primary-soft); }
input.cc-emo-custom { width: 64px; text-align: center; font-size: 1.2rem; padding: 7px; }
.cc-names summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: 4px 0 10px; }
.cc-sec { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; background: #fcfdfb; }
.cc-sec.off { background: var(--surface-2); }
.cc-sec.off textarea, .cc-sec.off .cc-sec-count { display: none; }
.cc-sec.off .cc-sec-head { margin-bottom: 0; opacity: .75; }
.cc-sec-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.cc-sec-ico { font-size: 1.3rem; width: 34px; height: 34px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 9px; flex-shrink: 0; }
.cc-toggle { display: inline-flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cc-toggle input { accent-color: var(--primary); }
.cc-sec textarea { min-height: 76px; line-height: 1.5; }
.cc-sec-count { text-align: right; margin-top: 2px; min-height: 1em; }
.cc-src { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 620px) { .cc-src { grid-template-columns: 1fr auto; } .cc-src input[data-srcu] { grid-row: 2; } }
.cc-del { color: var(--danger); justify-content: center; padding: 8px 0; }
.cc-errs { margin: 4px 0 0; padding-left: 18px; }
.cc-tr-row { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.cc-tr-row:last-child { border-bottom: 0; }
.cc-tr-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.cc-tr-name { font-weight: 700; font-size: .95rem; line-height: 1.3; }
.cc-tr-status { margin-top: 2px; }
.cc-tr-btns { display: flex; gap: 4px; align-items: center; }
.cc-tr-list { max-height: 420px; overflow: auto; }
/* review modal */
.cc-rv-modal { width: min(1040px, 100%); height: calc(100vh - 32px); }
.cc-rv-modal .modal-body { flex: 1; }
.cc-rv-head, .cc-rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-rv-head { position: sticky; top: -20px; background: var(--surface); padding: 8px 0; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 1px solid var(--line); z-index: 1; }
.cc-rv-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.cc-rv-src { font-size: .92rem; }
.cc-rv-lbl { font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.cc-rv-dst textarea { min-height: 0; font-size: .95rem; line-height: 1.55; resize: vertical; }
.cc-rv-dst textarea.cc-rv-same { border-color: #e7c36a; background: #fffaf0; }
.cc-rv-dst textarea.cc-rv-edited { border-color: var(--info); background: #f5f9ff; }
@media (max-width: 700px) { .cc-rv-head { display: none; } .cc-rv-row { grid-template-columns: 1fr; gap: 6px; } }

/* languages page */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.lg-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lg-tile-top { display: flex; justify-content: space-between; gap: 8px; width: 100%; }
.lg-native { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
.lg-cov { display: flex; flex-direction: column; gap: 4px; width: 100%; min-width: 140px; }
.lg-results { max-height: 420px; overflow: auto; margin-top: 10px; border-top: 1px solid var(--line); }
.lg-jobcard { border-color: var(--primary); background: var(--primary-soft); }
.fp-langs, .fp-sec, .fp-facts { scroll-margin-top: 84px; }
@media (max-width: 1080px) { .cc-side { position: static; max-height: none; overflow: visible; } .cc-tr-list { max-height: none; } }
