/* Rhythmos Regen pilot: additions to rhythmos-ui.css */
body { overflow: auto; }
.app { grid-template-rows: 84px 1fr auto; min-height: 100vh; height: auto; }
.body { min-width: 0; }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.page { padding: 18px 24px 40px; max-width: 1400px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.small { font-size: 13px; }
.scroll { overflow-x: auto; }
.card { margin-bottom: 16px; }
.card-head .muted { font-weight: 400; margin-inline-start: auto; }
.card-head .btn { margin-inline-start: 8px; }
.kpi.bad .v { color: var(--rh-danger-fg); }
.inp { height: 40px; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-xs); background: var(--rh-input-bg); padding: 0 10px; font-family: inherit; font-size: 15px; }
.inp.sel { height: 32px; min-width: 110px; }
.wide { width: 100%; }
.login { display: flex; justify-content: center; padding: 60px 16px; }
.login-card { width: 360px; max-width: 100%; }
.login-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.login .btn { margin-top: 18px; }
.pw { position: relative; }
.pw .icon-btn { position: absolute; inset-inline-end: 4px; top: 4px; }
.pw .icon-btn svg.ic { width: 22px; height: 22px; }
.err { color: var(--rh-danger-fg); margin-top: 12px; font-size: 14px; }
.drop { display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px dashed var(--rh-border-grid-strong); border-radius: var(--rh-radius-sm); padding: 26px; cursor: pointer; color: var(--rh-text-secondary); background: var(--rh-surface-alt); }
.drop.over { border-color: var(--rh-primary); background: var(--rh-primary-softer); }
.drop input { display: none; }
table.files { margin-top: 12px; }
.actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.actions.sticky { position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--rh-border); }
.warnbox { margin-top: 12px; background: var(--rh-warning-bg); color: var(--rh-warning-fg); border-radius: var(--rh-radius-xs); padding: 10px 14px; }
ol.checks { margin: 0 0 10px; padding-inline-start: 22px; line-height: 1.9; }
.sub { font-weight: 700; margin: 16px 0 6px; }
.trial .what { background: var(--rh-surface-alt); border-radius: var(--rh-radius-xs); padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.statusbar-mini { display: flex; justify-content: space-between; gap: 10px; padding: 6px 24px; font-size: 12px; border-top: 1px solid var(--rh-border); }
.local-flag { display: none; color: var(--rh-warning-fg); background: var(--rh-warning-bg); padding: 0 8px; border-radius: 4px; }
body.local-mode .local-flag { display: inline; }
.busy { position: fixed; inset: 0; background: rgba(255,255,255,.7); z-index: 900; display: flex; align-items: center; justify-content: center; }
.busy-box { background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); box-shadow: var(--rh-shadow-modal); padding: 22px 28px; display: flex; gap: 14px; align-items: center; }
.spin { width: 26px; height: 26px; border: 3px solid var(--rh-primary-soft); border-top-color: var(--rh-primary); border-radius: 50%; animation: sp 0.9s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .topbar { padding: 0 14px; }
  .farm-title { font-size: 20px; }
  .page { padding: 14px 12px 30px; }
  .tab { padding: 10px 12px 9px; font-size: 15px; }
}

/* Build 3: map, plot card, login options */
.mapview { display: grid; grid-template-columns: 380px 1fr; gap: 16px; padding: 16px 24px 24px; direction: rtl; align-items: start; }
.side { position: sticky; top: 12px; max-height: calc(100vh - 140px); overflow: auto; }
.mapcol { min-width: 0; }
.maptools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; margin-bottom: 8px; }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }
.lg i.lg-t { background: #bbb; border: 2px solid #1F2937; }
.lg i.lg-c { background: #e5e5e5; border: 2px dashed #1F2937; }
.mapbox { height: calc((100vh - 230px) * 1.25); min-height: 525px; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); overflow: hidden; background: #f5f5f5; }
.mapbox.fallback { display: flex; align-items: center; justify-content: center; }
.svgmap { width: 100%; height: 100%; }
.svgmap polygon { cursor: pointer; }
.svgmap polygon:hover { fill-opacity: 1; }
.svglbl { font: 700 11px var(--rh-font); fill: #111827; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.8); stroke-width: 2px; }
.mapnote { margin-top: 6px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rh-border); font-size: 14px; }
.kv > span:first-child { color: var(--rh-text-secondary); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.plotcard .card-head .icon-btn { margin-inline-start: auto; }
.trialbox { margin: 12px 0 4px; background: var(--rh-primary-softer, #f4f7f8); border-radius: var(--rh-radius-xs); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.trialbox .ic { width: 16px; height: 16px; vertical-align: -3px; margin-inline-end: 4px; }
.trialbox .btn { align-self: flex-start; }
table.grid tr.cur td { background: var(--rh-surface-alt); font-weight: 600; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--rh-surface-alt); }
.login-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; }
.chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.okmsg { color: var(--rh-success-fg, #166534); background: var(--rh-success-bg, #e7f6ec); border-radius: var(--rh-radius-xs); padding: 8px 10px; margin-top: 12px; font-size: 14px; }
@media (max-width: 1100px) {
  .mapview { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; order: 2; }
  .mapcol { order: 1; }
  .mapbox { height: 75vh; }
}
.plotcard td.nw { white-space: nowrap; }

/* Build 4: transition plan */
table.roadmap td { vertical-align: top; min-width: 120px; }
table.roadmap tr.total td { background: var(--rh-surface-alt); }
#pcard .card-head .btn { margin-inline-start: auto; }
.maptools .inp.sel { height: 36px; }

.svgarm { font: 600 9px var(--rh-font); fill: #111827; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 2px; }
table.grid tr.selrow td { background: var(--rh-primary-softer); }

/* Build 5: plots table beside the plot card, decisions */
.datacol { min-width: 0; }
.datacol .tablebox { max-height: calc(100vh - 330px); min-height: 360px; overflow: auto; border-radius: var(--rh-radius-sm); }
.datacol .tablebox thead th { position: sticky; top: 0; z-index: 1; background: var(--rh-thead-bg); }
.plotcard .card-head .muted { margin-inline-start: 0; }
.plotcard .card-head #cardMap { margin-inline-start: auto; }
.plotcard .card-head #cardMap + .icon-btn { margin-inline-start: 4px; }
table.grid tr.clickable.selrow td { background: var(--rh-primary-soft); }
table.decisions td { vertical-align: top; }
table.decisions td.btns { white-space: nowrap; }
table.decisions td.btns .btn { margin: 2px; }
td.nowrap { white-space: nowrap; }
#deccard .card-head .muted, #logcard .card-head .muted { margin-inline-start: auto; }
.dialog textarea.inp { height: auto; min-height: 80px; padding: 8px 10px; resize: vertical; font-family: inherit; }
@media (max-width: 1100px) { .datacol .tablebox { max-height: none; } }

/* Build 6: EIQ */
.eiqbox { border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.eiqtop { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.eiqtop .big { font-size: 26px; font-weight: 700; }
.ebar { display: inline-block; width: 70px; height: 8px; background: #eef2f7; border-radius: 4px; margin-inline-end: 8px; vertical-align: middle; overflow: hidden; }
.ebar i { display: block; height: 100%; background: #2a78d6; border-radius: 4px; }
.kv.sub2 span:first-child { padding-inline-start: 14px; color: var(--rh-text-secondary); }
table.eiqprod { margin-top: 8px; }
.sub .icon-btn { width: 26px; height: 26px; vertical-align: middle; }
.trial table.grid th { white-space: normal; }
.trial table.grid th .th { min-width: 0; line-height: 1.25; }
.trial table.grid td { white-space: nowrap; }
.trial table.grid td .pill { margin-inline-start: 4px; }

/* Build 7: trial planning; Build 8: export to Rhythmos */
.tpgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .tpgrid { grid-template-columns: 1fr; } }
.tpbox { max-height: 360px; overflow: auto; margin-bottom: 8px; }
.tpbox thead th { position: sticky; top: 0; z-index: 1; }
.tprow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.lbl0 { font-size: 14px; color: var(--rh-text-secondary); min-width: 84px; }
.tphead { margin-bottom: 6px; }
.tpmap { height: 260px; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); background: #f7f7f5; }
.tpmap .svgmap { width: 100%; height: 100%; }
.ck { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 12px; font-weight: 700; margin-inline-end: 6px; flex: none; }
.ck.ok { background: #DCFCE7; color: #166534; } .ck.warn { background: #FEF3C7; color: #92400E; } .ck.fail { background: #FEE2E2; color: #991B1B; } .ck.field { background: #E0E7FF; color: #3730A3; }
ul.cklist { list-style: none; padding: 0; margin: 0 0 6px; } ul.cklist li { display: flex; align-items: flex-start; gap: 2px; padding: 4px 0; font-size: 14px; border-bottom: 1px solid var(--rh-border); }
td.pre { white-space: pre-line; }
#tpcard .card-head .icon-btn { margin-inline-start: auto; } #tpcard .card-head .muted { margin-inline-start: 8px; }
#expcard .card-head .muted { margin-inline-start: auto; }
.fmtbox { border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); padding: 10px 12px; margin-bottom: 10px; }
.fmthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.card-head #fmtBtn { margin-inline-start: auto; }

/* Build 9: crop plan */
.rotview { grid-template-columns: 360px 1fr; }
.rotbox { max-height: calc(100vh - 250px); }
table.rotgrid { table-layout: fixed; width: 100%; }
table.rotgrid th, table.rotgrid td { padding: 5px 6px; font-size: 13px; }
table.rotgrid th:nth-child(1) { width: 64px; } table.rotgrid th:nth-child(2) { width: 56px; }
table.rotgrid td.rc { white-space: normal; line-height: 1.5; }
table.rotgrid td.rc.edit { cursor: pointer; background: #fbfbfa; }
table.rotgrid td.rc.edit:hover { background: var(--rh-primary-softer); }
table.rotgrid td.rc.bad { box-shadow: inset 0 0 0 2px #DC2626; }
table.rotgrid td.rc.warn { box-shadow: inset 0 0 0 2px #F59E0B; }
table.rotgrid th.planh { background: #F3EEF9; }
.cchip { display: inline-flex; align-items: center; gap: 4px; margin-inline-end: 6px; }
.cchip i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); display: inline-block; }
table.rotgrid .ck { width: 16px; height: 16px; font-size: 11px; margin-inline-start: 2px; }
.edited { color: var(--rh-primary); font-weight: 700; margin-inline-start: 2px; }
.wsrc { margin-bottom: 10px; } .wrow { display: grid; grid-template-columns: 92px 1fr 120px; gap: 8px; align-items: center; margin: 3px 0; }
.wbar { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; } .wbar i { display: block; height: 100%; background: #2a78d6; }
.wbar i.near { background: #F59E0B; } .wbar i.over { background: #DC2626; }
ul.cklist li.clickable { cursor: pointer; } ul.cklist li.clickable:hover { background: var(--rh-primary-softer); }

/* Build 10: scenario */
table.sctable td.good { color: #166534; font-weight: 600; } table.sctable td.bad { color: #991B1B; font-weight: 600; }
#sccard .card-head .pill { margin-inline-start: auto; }
input.inp.num { text-align: center; }

/* Build 10.1: labels sit next to their controls; label and value rows without a wide gap */
.tprow { gap: 6px; }
.tprow > .lbl0 { min-width: 0; margin-inline-start: 22px; }
.tprow > .lbl0:first-child { margin-inline-start: 0; }
.tprow > .btn, .tprow > .muted, .tprow > label.chk { margin-inline-start: 12px; }
.tprow > select + select { margin-inline-start: 6px; }
.tprow.stack .lbl0 { min-width: 5.8em; }
.kv { justify-content: flex-start; gap: 14px; }
.kv > span:first-child { flex: 0 0 9.5em; }
.plotcard .kv > span:first-child { flex-basis: 8em; }
.eiqbox .kv > span:first-child { flex-basis: 6.5em; }
.kv.sub2 > span:first-child { flex-basis: calc(6.5em - 14px); }
.pagebar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pagebar p { margin: 0; flex: 1; }
.logbox { max-height: 460px; overflow: auto; }
.logbox thead th { position: sticky; top: 0; z-index: 1; background: var(--rh-thead-bg); }
.num.bad { color: #B91C1C; font-weight: 600; }
.warnbox ol.checks { margin: 4px 0 0; }

/* Build 11: the 2028 plan */
ol.stages { list-style: none; display: flex; padding: 0; margin: 0 0 12px; gap: 4px; flex-wrap: wrap; }
ol.stages li { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #f1f1ee; color: var(--rh-text-secondary); }
ol.stages li.done { background: #DCFCE7; color: #166534; }
ol.stages li.cur { background: var(--rh-primary, #880A0A); color: #fff; font-weight: 600; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
ul.issues { list-style: none; padding: 0; margin: 0; }
ul.issues li { border: 1px solid var(--rh-border); border-inline-start: 4px solid #F59E0B; border-radius: var(--rh-radius-xs); padding: 8px 10px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
ul.issues li.iss-block { border-inline-start-color: #DC2626; }
.optlist { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.optlist .opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-xs); padding: 8px 10px; cursor: pointer; }
.optlist .opt.on { border-color: var(--rh-primary, #880A0A); background: #FBF5F5; }
.optlist .opt input { margin-top: 4px; }
.effect { background: #F4F7F8; border-radius: var(--rh-radius-xs); padding: 8px 10px; margin: 6px 0 10px; line-height: 1.8; }
b.bad { color: #B91C1C; }
.pset { margin-top: 12px; max-height: 60vh; overflow: auto; }
.pset thead th { position: sticky; top: 0; background: var(--rh-thead-bg); }
.plantable td { vertical-align: top; }
#rvSeg { margin-bottom: 10px; }
.dialog-foot .btnrow { margin: 0; }
.dialog.mid { width: 900px; }

/* Build 12: settings menu from the avatar */
.avatar-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: 999px; padding: 4px 10px 4px 6px; font: inherit; font-size: 15px; color: inherit; cursor: pointer; }
.avatar-btn:hover, .avatar-btn.open { background: #f4f4f2; border-color: var(--rh-border); }
.avatar-btn .avatar { width: 30px; height: 30px; border-radius: 50%; background: #EDE7E7; color: #880A0A; display: inline-flex; align-items: center; justify-content: center; }
.avatar-btn .chev { width: 14px; height: 14px; transform: rotate(-90deg); opacity: .6; }
.umenu { position: fixed; z-index: 60; min-width: 250px; background: #fff; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px 0; direction: rtl; }
.umenu-head { padding: 8px 14px 10px; border-bottom: 1px solid var(--rh-border); }
.umenu-ver { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; border-bottom: 1px solid var(--rh-border); color: var(--rh-text-secondary); }
.umenu button { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 9px 14px; font: inherit; font-size: 14px; text-align: start; cursor: pointer; color: inherit; }
.umenu button:hover { background: #f4f4f2; }
.umenu button.danger { color: #B91C1C; }
.umenu .ic { width: 18px; height: 18px; }

/* Build 12: tablet */
@media (max-width: 1100px) {
  .tabs { overflow-x: auto; flex-wrap: nowrap; }
  .tabs .tab { flex: 0 0 auto; }
  .rotview { grid-template-columns: 1fr; }
  .rotview .side { max-height: none; }
  .tpgrid { grid-template-columns: 1fr; }
  .farm-title { font-size: 18px; }
  .dialog.mid { width: 94vw; }
}
@media (max-width: 800px) {
  .avatar-btn #userName { display: none; }
  .brand .tag { display: none; }
  .kpis { flex-wrap: wrap; }
}
@media (max-width: 1100px) {
  table.decisions td.btns { white-space: normal; min-width: 130px; }
  table.decisions td.btns .btn { display: flex; width: 100%; justify-content: center; margin: 0 0 6px; }
  table.decisions td:nth-child(3) { min-width: 160px; }
}

/* Build 13: the community */
.comm .kpis { margin-bottom: 14px; }
.kpis.sm .kpi .v { font-size: 22px; }
.secn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #2F6F3E; color: #fff; font-size: 13px; }
.commgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .commgrid { grid-template-columns: 1fr; } }
svg.cchart { width: 100%; max-width: 620px; height: auto; display: block; }
svg.cchart .cv { font: 600 12px var(--rh-font); fill: #1f2937; }
svg.cchart .cl { font: 11px var(--rh-font); fill: #6b7280; }
.dist { display: flex; border-radius: var(--rh-radius-xs); overflow: hidden; color: #fff; font-size: 13px; font-weight: 600; margin: 6px 0; }
.dist > div { padding: 8px 10px; white-space: nowrap; text-align: center; }
.carbon { display: flex; align-items: center; gap: 10px; background: #F4F7F4; border: 1px solid #d7e6d9; border-radius: var(--rh-radius-sm); padding: 12px 16px; margin: 0 0 16px; color: #1d4d2b; }
.pill.w1 { background: #F1F1EE; color: #4B5563; } .pill.w2 { background: #E0F2E9; color: #166534; } .pill.w3 { background: #1d6b3a; color: #fff; }
.cmpcount { font-size: 15px; margin: 6px 0 10px; }
.cmptable tr.cm-n td { background: #FEF2F2; }
.cmptable tr.cm-p td:last-child { color: #92400E; }
td.good { color: #166534; } td.bad { color: #B91C1C; }

/* ---------- Build 14: planning inputs ---------- */
.pset tr.subtot td { background: var(--rh-surface-alt); font-weight: 600; }
.pset tr.total td { background: var(--rh-surface-alt); font-weight: 700; border-top: 2px solid var(--rh-border-grid-strong); }
.pset tr.grp td { background: var(--rh-thead-bg); font-weight: 700; color: var(--rh-text-secondary); }
ul.issues.solved li { border-inline-start-color: var(--rh-border-grid-strong); background: var(--rh-surface-alt); color: var(--rh-text-secondary); }
ul.issues.solved li b { font-weight: 600; }
ul.issues .reop { color: var(--rh-text-secondary); font-style: italic; }

/* ---------- Build 15: hierarchy and the home screen ---------- */
/* secondary buttons neutral: maroon only for the one main action of an area */
.btn:not(.primary):not(.dark) { border-color: var(--rh-border-grid-strong); color: var(--rh-text); }
.btn:not(.primary):not(.dark):hover { background: var(--rh-surface-alt); border-color: var(--rh-text-secondary); }
.btn:not(.primary):not(.dark) svg.ic { color: var(--rh-text-secondary); }
.tab .tcount { background: var(--rh-primary); color: #fff; border-radius: var(--rh-radius-pill); font-size: 12px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
.saved-at { font-size: 13px; color: var(--rh-text-secondary); margin-inline-end: 12px; white-space: nowrap; }
.saved-at::before { content: "✓ "; color: #166534; }
.home .hhead { display: flex; align-items: baseline; gap: 14px; margin: 4px 0 16px; }
.home .hhead h1 { font-size: 24px; margin: 0; }
.hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .hgrid { grid-template-columns: 1fr; } }
.hcard .card-head { gap: 8px; }
.hcard.due { border-inline-start: 4px solid var(--rh-primary); }
.hcard.hwide { grid-column: 1 / -1; }
.hcard.hwide .card-head { font-size: 18px; }
.hnum { margin-inline-start: auto; background: var(--rh-primary); color: #fff; border-radius: var(--rh-radius-pill); font-weight: 700; min-width: 26px; height: 26px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.hnum.zero { background: #DCFCE7; color: #166534; }
.hlist { list-style: none; padding: 0; margin: 6px 0; }
.hlist li { padding: 6px 0; border-bottom: 1px solid var(--rh-border); font-size: var(--fs-sm); }
.hlist li:last-child { border-bottom: 0; }
details.note { margin-top: 8px; }
details.note summary { cursor: pointer; color: var(--rh-text-secondary); font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 6px; list-style: none; }
details.note summary::-webkit-details-marker { display: none; }
details.note summary svg.ic { width: 16px; height: 16px; }
details.note[open] summary { margin-bottom: 4px; }
.cchip.open { color: var(--rh-text-secondary); font-style: italic; }
.cchip.open i { background: repeating-linear-gradient(45deg, #fff 0 3px, #ddd 3px 5px); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable .sarr { margin-inline-start: 4px; color: var(--rh-text-muted); font-size: 11px; }
th.sortable.sorted .sarr { color: var(--rh-primary); }
.datacol .tablebox table.grid tr > :first-child { position: sticky; right: 0; z-index: 1; background: #fff; box-shadow: -1px 0 0 var(--rh-border); }
.datacol .tablebox table.grid thead tr > :first-child { z-index: 3; background: var(--rh-thead-bg); }
.datacol .tablebox table.grid tr.clickable.selrow > :first-child { background: linear-gradient(var(--rh-primary-soft), var(--rh-primary-soft)), #fff; }
table.tcmp .tv { font-weight: 600; font-size: 15px; }
table.tcmp .cv { color: var(--rh-text-secondary); margin-top: 2px; white-space: nowrap; }
table.tcmp .cv .pill { margin-inline-start: 4px; }
/* the plan stages as a progress bar: a dot per stage on one line, the name under it */
ol.stages { flex-wrap: nowrap; gap: 0; counter-reset: st; margin: 4px 0 14px; }
ol.stages li { flex: 1 1 0; background: none; border-radius: 0; padding: 22px 2px 0; text-align: center; position: relative; font-size: 11.5px; line-height: 1.25; color: var(--rh-text-muted); }
ol.stages li::before { content: ""; position: absolute; top: 5px; inset-inline-start: 50%; transform: translateX(50%); width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--rh-border-grid-strong); z-index: 1; }
ol.stages li::after { content: ""; position: absolute; top: 11px; inset-inline-start: 50%; width: 100%; height: 2px; background: var(--rh-border-grid-strong); }
ol.stages li:last-child::after { display: none; }
ol.stages li.done { background: none; color: #166534; }
ol.stages li.done::before { background: #16a34a; border-color: #16a34a; }
ol.stages li.done::after { background: #16a34a; }
ol.stages li.cur { background: none; color: var(--rh-primary); font-weight: 700; }
ol.stages li.cur::before { background: var(--rh-primary); border-color: var(--rh-primary); box-shadow: 0 0 0 3px var(--rh-primary-soft); }
#pissues { margin-bottom: 14px; }
#pAttn { margin-inline-start: 8px; }
.why { color: var(--rh-warning-fg); background: var(--rh-warning-bg); border-radius: var(--rh-radius-pill); padding: 3px 10px; }
table.tktable { margin-top: 4px; }
.page.home { display: block; max-width: 1360px; }

/* ---------- Build 16 ---------- */
.dialog.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; margin: 0; max-height: 100vh; height: 100vh; width: min(720px, 100vw); border-radius: 0; display: flex; flex-direction: column; }
.dialog.drawer .dialog-body { flex: 1; overflow: auto; }
table.cmlist tr.grp td { background: var(--rh-surface-alt); border-top: 2px solid var(--rh-border-grid-strong); }

/* Build 16: five tabs, the bar under them, windows in place of jumps */
.tab .tl { white-space: nowrap; }
.subtabs { display: flex; align-items: center; gap: 12px; padding: 6px 24px; background: #fafaf8; border-bottom: 1px solid var(--rh-border); flex-wrap: wrap; }
.subtabs.hidden { display: none; }
.subtabs .backlink { order: -1; }
.steps { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; }
.steps li + li::before { content: '←'; color: var(--rh-text-secondary); margin-inline-end: 6px; }
.step { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rh-border); background: #fff; border-radius: var(--rh-radius-sm); padding: 6px 12px 6px 14px; cursor: pointer; font: inherit; text-align: start; color: var(--rh-text-strong); }
.step:hover { border-color: var(--rh-primary); }
.step .sn { width: 24px; height: 24px; border-radius: 50%; background: #ececec; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.step .sl { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.step .ss { font-size: 12px; color: var(--rh-text-secondary); }
.step.due .ss { color: var(--rh-danger-fg); font-weight: 700; }
.step.on { border-color: var(--rh-primary); background: var(--rh-primary-softer, #f4f7f8); box-shadow: inset 0 -3px 0 var(--rh-primary); }
.step.on .sn { background: var(--rh-primary); color: #fff; }
details.sect { border-top: 1px solid var(--rh-border); padding: 8px 0 4px; }
details.sect > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: baseline; gap: 6px; }
details.sect > summary::-webkit-details-marker { display: none; }
details.sect > summary::after { content: '▾'; margin-inline-start: auto; color: var(--rh-text-secondary); }
details.sect[open] > summary::after { content: '▴'; }
details.sect > summary .num { font-weight: 400; }
details.sect[open] > summary { margin-bottom: 8px; }
.trialbox details.sect { border-top: 0; padding: 2px 0 0; }
.trialbox details.sect > summary { font-weight: 400; color: var(--rh-primary); }
table.tmini td .pill { font-size: 12px; }
.pendbox { margin: 10px 0; background: var(--rh-warning-bg); color: var(--rh-warning-fg); border-radius: var(--rh-radius-xs); padding: 8px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.pendbox .btn { margin-inline-start: 6px; }
.dialog.tpdlg { width: 1180px; padding: 0; overflow: auto; }
.dialog.tpdlg > .card { margin: 0; border: 0; box-shadow: none; }
.dialog.plotdlg, .dialog.pdlg { width: 1100px; }
.dialog.pdlg .dialog-body > .card { border: 0; box-shadow: none; margin: 0; }
.pdgrid { display: grid; grid-template-columns: 1fr 380px; gap: 16px; align-items: start; }
.pdgrid .plotcard { margin: 0; }
.minimap { height: 300px; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); background: #f7f7f5; }
.minimap.big { height: 460px; }
.minimap .svgmap { width: 100%; height: 100%; }
.pmap { margin: 8px 0 14px; }
.pmap.hidden { display: none; }
.btn.on { background: var(--rh-primary-softer, #f4f7f8); border-color: var(--rh-primary); }
.umenu-sec { padding: 8px 14px 2px; font-size: 12px; font-weight: 700; color: var(--rh-text-secondary); border-top: 1px solid var(--rh-border); }
.umenu-sec:empty { padding: 0; margin-top: 4px; }
.umenu button .muted { margin-inline-start: auto; }
.nextcard .card-body { padding: 12px 16px; }
table.decisions td.known { max-width: 280px; }
#deccard .card-head .seg { margin-inline-start: 8px; }
@media (max-width: 1000px) { .pdgrid { grid-template-columns: 1fr; } .subtabs { padding: 8px 12px; } }

/* Build 16: phone (narrow screen): viewing and deciding; the bar at the bottom in place of the tabs */
.pnav.hidden { display: none; }
body.phone .app { grid-template-rows: 56px 1fr auto; padding-bottom: 64px; }
body.phone .topbar { padding: 0 10px; }
body.phone .brand img { height: 26px; }
body.phone .brand .tag, body.phone #userName, body.phone .user-box .chev, body.phone .statusbar-mini { display: none; }
body.phone .farm-title { font-size: 18px; }
body.phone #tabs { display: none; }
body.phone #subtabs > :not(.backlink) { display: none; }
body.phone #subtabs:not(:has(.backlink)) { display: none; }
.pnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; height: 64px; background: #fff; border-top: 1px solid var(--rh-border); display: flex; box-shadow: 0 -2px 10px rgba(0,0,0,.06); }
.pnav button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font: inherit; font-size: 12px; color: var(--rh-text-secondary); position: relative; cursor: pointer; }
.pnav button .ic { width: 22px; height: 22px; }
.pnav button.on { color: var(--rh-primary); font-weight: 700; }
.pnav .tcount { position: absolute; top: 6px; inset-inline-start: calc(50% + 6px); background: var(--rh-primary); color: #fff; border-radius: 10px; font-size: 11px; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }
.umenu.fromBar { position: fixed; left: 8px; right: 8px; bottom: 72px; top: auto; }
body.phone .page { padding: 12px 10px 24px; }
body.phone .hgrid { grid-template-columns: 1fr; }
body.phone .hlist li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.phone .hlist li .btn { margin-inline-start: auto; }
body.phone .mapview { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
body.phone .mapview:not(.hassel) .side { display: none; }
body.phone .mapview.hassel .mapcol { display: none; }
body.phone .side { position: static; max-height: none; }
body.phone .maptools { flex-wrap: wrap; gap: 6px; }
body.phone .maptools .seg { overflow-x: auto; max-width: 100%; }
body.phone .mapbox { height: calc(100vh - 230px); min-height: 360px; }
body.phone #layerSel, body.phone #legend { font-size: 12px; }
body.phone #deccard .card-head { flex-wrap: wrap; gap: 6px; }
body.phone #deccard .card-head [data-tolog], body.phone #logcard, body.phone .nextcard, body.phone #deccard .mnote { display: none; }
body.phone table.decisions, body.phone table.decisions tbody { display: block; border: 0; }
body.phone table.decisions thead { display: none; }
body.phone table.decisions tr { display: block; border: 1px solid var(--rh-border); border-radius: var(--rh-radius-sm); margin-bottom: 10px; padding: 8px 10px; }
body.phone table.decisions td { display: block; border: 0; padding: 3px 0; max-width: none; }
body.phone table.decisions td:nth-child(2)::before { content: 'חלקה '; color: var(--rh-text-secondary); }
body.phone table.decisions td.btns { padding-top: 6px; }
body.phone .backdrop { align-items: flex-end; }
body.phone .dialog, body.phone .dialog.mid, body.phone .dialog.wide, body.phone .dialog.narrow { width: 100vw; max-width: 100vw; max-height: 90vh; border-radius: 16px 16px 0 0; }
body.phone .dialog-head { padding: 12px 16px; font-size: 17px; }
body.phone .pdgrid { grid-template-columns: 1fr; }
body.phone .minimap.big { height: 260px; }
body.phone .card-head .btn { margin-inline-start: 4px; }

/* Build 17: pinned tabs, cards that open and close, one look for everything clickable */
:root { --navH: 0px; }
html { scroll-padding-top: calc(var(--navH) + 8px); }
main { overflow: visible; overflow-x: clip; }
.navwrap { position: sticky; top: 0; z-index: 40; background: #fff; }
.navwrap .tabs { padding-inline-end: 140px; }
.nav-saved { position: absolute; inset-inline-end: 24px; top: 18px; }
.top-saved { display: none; }
.card { scroll-margin-top: calc(var(--navH) + 8px); }
.side { top: calc(var(--navH) + 12px); max-height: calc(100vh - var(--navH) - 24px); }
#deccard > .card-body.scroll, #cmList > .card-body, #cmList .scroll { overflow: visible; }
#deccard table.decisions thead th, #cmList table.cmlist thead th { position: sticky; top: var(--navH); z-index: 2; }
body.phone .navwrap { position: static; }
body.phone .nav-saved { display: none; }
body.phone .top-saved { display: inline; }

.card.cc > .card-head { cursor: pointer; user-select: none; }
.card.cc > .card-head:hover { background: var(--rh-surface-alt, #f4f4f2); }
.card.cc > .card-head .carr { color: var(--rh-primary); font-size: 22px; line-height: 1; width: 22px; display: inline-block; text-align: center; margin-inline-end: 2px; }
.card.cc.closed > .card-body { display: none; }
.card.cc.closed { margin-bottom: 10px; }
.card .csum { font-size: 13px; font-weight: 400; color: var(--rh-text-secondary); margin-inline-start: 10px; }
.card.cc:not(.closed) .csum { display: none; }
.hbtns { display: inline-flex; gap: 8px; margin-inline-start: auto; flex-wrap: wrap; }
.hbtns .btn { margin: 0 !important; }

details.sect > summary::after, details.sect[open] > summary::after { content: none; }
details.sect > summary::before, details.note > summary::before, details.warnfold > summary::before { content: '◂'; color: var(--rh-primary); font-size: 20px; line-height: 1; width: 20px; display: inline-block; text-align: center; flex: none; align-self: center; }
details.sect[open] > summary::before, details.note[open] > summary::before { content: '▾'; }
details.sect > summary { justify-content: flex-start; }
details.sect > summary:hover, details.note > summary:hover { color: var(--rh-primary); }
details.note summary { color: var(--rh-primary); }
.trialbox details.trialres > summary { display: inline-flex; border: 1px solid var(--rh-primary); border-radius: var(--rh-radius-xs, 6px); padding: 3px 10px; background: #fff; font-size: 13px; }
.trialbox details.trialres[open] > summary { margin-bottom: 8px; }

main a, .dialog a, .drawer a { color: var(--rh-primary); text-decoration: underline; text-underline-offset: 2px; }
main a:hover, .dialog a:hover { text-decoration-thickness: 2px; }
tr.clickable > td:last-child { position: relative; padding-inline-end: 22px; }
tr.clickable > td:last-child::after { content: '‹'; color: var(--rh-text-secondary); font-weight: 700; position: absolute; inset-inline-end: 7px; top: 50%; transform: translateY(-50%); }
tr.clickable:hover > td:last-child::after { color: var(--rh-primary); }
ul.cklist li.clickable::after, ul.issues li.clickable::after { content: ' ‹'; color: var(--rh-text-secondary); font-weight: 700; }
.tpknown { background: var(--rh-surface-alt, #f4f4f2); border-radius: var(--rh-radius-xs, 6px); padding: 8px 12px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tpknown .btn { margin-inline-start: auto; }

/* Build 18: the decision session */
body.sessopen { overflow: hidden; }
.sessov { position: fixed; inset: 0; z-index: 8000; background: #f7f7f5; overflow: auto; display: flex; flex-direction: column; direction: rtl; }
.seshead { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 20px; padding: 12px 24px; background: #fff; border-bottom: 1px solid var(--rh-border); flex-wrap: wrap; }
.seslogo { height: 30px; }
.sesprog { flex: 1; min-width: 280px; display: flex; flex-direction: column; gap: 6px; }
.sesprog > div:first-child { display: flex; align-items: baseline; gap: 12px; font-size: 18px; }
.sesprog .muted { font-size: 14px; }
.sesbar { display: flex; gap: 5px; }
.sesbar span { flex: 1; height: 7px; border-radius: 4px; background: #e3e3e3; }
.sesbar span.done { background: var(--rh-primary); opacity: .45; }
.sesbar span.skip { background: #e9b949; }
.sesbar span.cur { background: var(--rh-primary); opacity: 1; }
.sesmain { flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 22px; padding: 22px 24px; max-width: 1440px; width: 100%; box-sizing: border-box; margin: 0 auto; align-items: start; }
.sesq { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sesq h1 { margin: 4px 0 2px; font-size: 28px; }
.sesbox .card-body { display: flex; flex-direction: column; gap: 8px; }
.seskn { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.seskn .btn { margin-inline-start: auto; }
.sesopts { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sesopts legend { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.sesopt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--rh-border); border-radius: 10px; background: #fff; cursor: pointer; }
.sesopt:hover { border-color: var(--rh-primary); }
.sesopt.on { border: 2px solid var(--rh-primary); background: #fbf5f5; }
.sesopt input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--rh-primary); }
.sesopt .k { width: 22px; height: 22px; border-radius: 50%; background: #eee; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.sesopt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.sesopt b { font-size: 16px; }
.sesopt .w { font-size: 14px; color: var(--rh-text); }
.sesopt .imp { font-size: 13px; color: var(--rh-text-secondary); }
.sesside { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px; min-width: 0; }
.sesside .card { margin: 0; }
.sesmap { height: 380px; border: 0; border-radius: var(--rh-radius-sm) var(--rh-radius-sm) 0 0; }
.sesside .card-body > div { margin-bottom: 4px; }
.sesfoot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: #fff; border-top: 1px solid var(--rh-border); flex-wrap: wrap; }
.sesfoot #sGo { margin-inline-start: auto; min-width: 180px; }
.sessum { padding: 24px; max-width: 1200px; width: 100%; box-sizing: border-box; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.sessum h1 { margin: 0; font-size: 28px; }
.sessum .kpis { margin: 0; }
body.phone .sesmain { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
body.phone .sesside { position: static; order: -1; }
body.phone .sesmap { height: 170px; }
body.phone .seskeys, body.phone .seslogo { display: none; }
body.phone .seshead { padding: 8px 12px; gap: 8px; }
body.phone .sesq h1 { font-size: 21px; }
body.phone .sesfoot { padding: 10px 12px 16px; }
body.phone .sesfoot #sGo { flex: 1; min-width: 0; }
body.phone .sessum { padding: 12px; }

/* Build 18: the season slider, the transition story and the presentation */
.showbtn { margin: 0 !important; }
.sslider { position: relative; flex: 1; min-width: 480px; display: flex; align-items: flex-start; }
.sstrack { position: absolute; top: 13px; inset-inline: 7%; height: 4px; background: #dcdcdc; border-radius: 2px; }
.sstrack i { display: block; height: 100%; background: var(--rh-primary); border-radius: 2px; }
.sslider button { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; font: inherit; cursor: pointer; min-height: 44px; color: var(--rh-text); padding: 4px 0 0; }
.sslider .dot { width: 16px; height: 16px; border-radius: 50%; background: #bdbdbd; border: 3px solid #fafaf8; box-sizing: content-box; }
.sslider .plan .dot { background: #fff; border: 3px solid #bdbdbd; width: 12px; height: 12px; }
.sslider .yl { font-size: 14px; white-space: nowrap; }
.sslider .yl small { font-size: 11px; color: var(--rh-text-secondary); }
.sslider button.on { color: var(--rh-primary); font-weight: 700; }
.sslider button.on .dot { background: var(--rh-primary); border-color: #fbf5f5; width: 22px; height: 22px; margin-top: -3px; }
.sslider button:disabled { opacity: .35; cursor: default; }
.sslider button:not(:disabled):hover .yl { text-decoration: underline; }
.story .stgrid { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 22px; align-items: start; }
.stpanel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.stpanel > .seg { align-self: flex-start; }
.sthead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stnum { font-size: 60px; font-weight: 700; line-height: 1; color: #7E22CE; }
.sthead > span:last-child { font-size: 17px; color: var(--rh-text); }
.sttext p { margin: 0 0 6px; font-size: 17px; line-height: 1.6; max-width: 760px; }
.stbars { display: flex; gap: 6px; align-items: flex-end; }
.stbar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; font: inherit; cursor: pointer; padding: 4px 0; border-radius: 6px; }
.stbar:hover { background: #f4f0f8; }
.stbar b { font-size: 13px; }
.stbar .col { height: 152px; width: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.stbar .col i { display: block; background: #7E22CE; border-radius: 4px 4px 0 0; }
.stbar .col i.prop { background: none; border: 2px dashed #7E22CE; border-bottom: 0; box-sizing: border-box; }
.stbar .col i.prop + i { border-radius: 0; }
.stbar.plan .col i:not(.prop) { background: repeating-linear-gradient(135deg, #7E22CE 0 6px, #b98ae0 6px 10px); }
.stbar > span:last-child { font-size: 13px; color: var(--rh-text-secondary); }
.stbar.on > span:last-child, .stbar.on b { color: var(--rh-primary); font-weight: 700; }
.stbar.on { background: #fbf5f5; }
.stleg { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.stleg .sw { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-inline-end: 4px; box-sizing: border-box; }
.sw.a, .sw.t { background: #7E22CE; } .sw.t { opacity: .85; }
.sw.pr { background: rgba(126, 34, 206, .28); border: 1.5px solid #b98ae0; }
.sw.p { background: repeating-linear-gradient(135deg, #7E22CE 0 4px, #b98ae0 4px 7px); }
.sw.d { border: 2px dashed #7E22CE; }
.sw.c { border: 2px solid #7E22CE; background: #fff; }
.mapleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.sw.n { background: #e6e6e6; }
.stmapbox { margin: 0; }
.stmap { height: 640px; background: #f7f7f5; }
.stmap .svgmap { width: 100%; height: 100%; }
.stmapbox .stleg { padding: 8px 14px 12px; justify-content: center; }
.showov .seshead .btnrow { margin: 0; }
.showmain { padding: 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.frames { display: flex; gap: 12px; }
.frame { margin: 0; flex: 1; min-width: 0; background: #fff; border: 1px solid var(--rh-border); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.frame.on { border: 2px solid var(--rh-primary); box-shadow: 0 6px 20px rgba(136,10,10,.15); transform: translateY(-4px); }
.fmap { height: 360px; background: #f7f7f5; border-radius: 8px; }
.fmap .svgmap { width: 100%; height: 100%; }
.frame figcaption { display: flex; flex-direction: column; gap: 3px; }
.fy { font-size: 20px; } .fy small { font-size: 12px; font-weight: 400; color: var(--rh-text-secondary); }
.fn { font-size: 16px; font-weight: 700; color: #7E22CE; }
.fs { font-size: 14px; line-height: 1.5; }
.showcap .card-body { font-size: 18px; line-height: 1.6; }
body.phone .sslider { min-width: 0; width: 100%; }
body.phone #subtabs > .sslider { display: flex; }
body.phone #subtabs:has(.sslider) { display: flex; }
body.phone .sslider .yl small { display: none; }
body.phone .story .stgrid { grid-template-columns: 1fr; }
body.phone .stmap { height: 380px; }
body.phone .frames { flex-direction: column; }
.sesopts .optgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sesopts .optgrid .sesopt { flex-direction: column; gap: 6px; }
.sesopts .optgrid .sesopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sesopt { position: relative; }
.sesopt .k { position: absolute; inset-inline-end: 10px; top: 10px; }
.sesopt.on .k { background: var(--rh-primary); color: #fff; }
body.phone .sesopts .optgrid { grid-template-columns: 1fr; }
.stmap text, .fmap text { display: none; }
.sesopt:focus-within { outline: 2px solid var(--rh-primary); outline-offset: 2px; }
.pill.why { margin: 1px 0; }
.btncol { white-space: nowrap; } .btncol .btn { margin: 2px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ask-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid #880A0A; background: #fff; color: #880A0A; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ask-btn:hover { background: #fbf5f5; }
.soon { display: inline-block; font-size: 12px; font-weight: 700; color: #6b4e00; background: #fff1c7; border-radius: 6px; padding: 1px 7px; }
.askbox p { margin: 0 0 12px; line-height: 1.6; }
.askin input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 0 12px; border: 1.5px solid #bdbdbd; border-radius: 10px; font: inherit; background: #f6f6f6; }
.asklist { margin: 0; padding-inline-start: 20px; line-height: 1.8; color: #444; }
body.phone .ask-btn { display: none; }
/* rule editing (Build 22) */
.rform { display: flex; flex-direction: column; gap: 12px; }
.rfld { display: flex; flex-direction: column; gap: 4px; }
.rfld > span:first-child { font-size: 13px; font-weight: 700; color: #555; }
.rfld input, .rfld select, .rfld textarea { font: inherit; min-height: 38px; padding: 4px 10px; border: 1.5px solid #bdbdbd; border-radius: 8px; background: #fff; }
.rfld textarea { min-height: 56px; }
.rrow { display: grid; grid-template-columns: 160px 1fr; gap: 12px; }
.rlinks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dfoot-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.dfoot-row .sp { flex: 1; }
.btn.danger-o { border-color: #a1271b; color: #a1271b; background: #fff; }
/* Build 24: the 2028 column in step 2 is for reference only (planned in step 3); the farm's draft is shown faded */
table.rotgrid td.rc.ro { background: #f6f6f4; }
table.rotgrid td.rc.draft .cchip { opacity: .55; }

/* product build 2: farm picker and admin screen */
.narrowpage { max-width: 560px; margin: 0 auto; }
.farmlist { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.farmpick { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; text-align: start; }
.adminpage .card { padding: 16px 20px; margin-bottom: 16px; }
.adminpage h2 { margin: 0 0 12px; font-size: 18px; }
.adminpage h3 { margin: 20px 0 8px; font-size: 15px; }
.formgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 16px; direction: rtl; }
.formgrid label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.formgrid label.chk { flex-direction: row; align-items: center; gap: 8px; }
.formgrid input[type=text], .formgrid input[type=email], .formgrid select { padding: 7px 9px; border: 1px solid #c9d3d8; border-radius: 6px; font: inherit; }
.btn.small { padding: 3px 10px; font-size: 12px; }
.adminlayer { position: fixed; inset: 0; z-index: 900; overflow: auto; background: #f6f7f8; padding: 24px 16px 48px; }
.adminlayer .adminpage { max-width: 1100px; margin: 0 auto; }
.adminpage .hhead { display: flex; align-items: baseline; gap: 14px; }
.adminpage .hhead .adtop { margin-inline-start: auto; }

/* product build 3: what the user's role may not do is not shown */
.role-hidden { display: none !important; }

/* product build 3.4: the activity log (manager and system admin) */
.logspage .formgrid input[type=date] { padding: 6px 9px; border: 1px solid #c9d3d8; border-radius: 6px; font: inherit; }
.logbar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 8px; flex-wrap: wrap; }
.logtable td.nowrap { white-space: nowrap; }
.logtable tr.logrow { cursor: pointer; }
.logtable tr.logrow:hover, .logtable tr.logrow:focus { background: #eef4f1; outline: none; }
.logkind { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eef1f3; white-space: nowrap; }
.logkind.lk-approval { background: #e3f2e8; }
.logkind.lk-import { background: #e6eef8; }
.logkind.lk-member { background: #f4ecdf; }
.logkind.lk-protocol { background: #efe6f5; }

/* product build 3.5: estimated seasons, quiet */
.sslider small.est { color: #8a959c; font-weight: 400; }
.estnote { margin-top: 2px; }

/* product build 3.6: the mode-of-action code next to a product (code only) */
.eiqprod .moa { color: #6b7780; font-size: 11px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }

/* product build 3.9: protocols */
.protopage .card { margin-bottom: 16px; }
.protopage tr.on td { background: #eef5f1; }
.prtable td { vertical-align: top; }
.prtable tr.cancelled td { color: #9aa5ab; text-decoration: line-through; }
.prtable tr.cancelled td .pill, .prtable tr.cancelled td button { text-decoration: none; }
.protopage .moa, .prtable .moa { color: #6b7780; font-size: 11px; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.warnt { color: #8a5a00; }
.formgrid label.wide { flex-basis: 100%; }
.formgrid .hidden { display: none; }
/* build 3.13: the plot work plan in a side panel; how a trial runs */
.dialog.drawer.ppdrawer { width: min(920px, 100vw); }
/* build 3.17: the protocol panel is wide, its tables have many columns */
#prDrawer .dialog.drawer.ppdrawer { width: min(1400px, 92vw); }
.dialog.drawer.ppdrawer .dialog-head .hbtns { display: flex; gap: 6px; align-items: center; margin-inline-start: auto; }
.dialog.drawer.ppdrawer #ppDetail { box-shadow: none; border: 0; }
.dialog.drawer.ppdrawer #pcard { box-shadow: none; border: 0; }
.formgrid label[hidden] { display: none; }   /* build 3.16: fields that don't apply to the crop */   /* build 3.15: the practice card in its side panel */
.tphow { max-height: 320px; overflow: auto; border: 1px solid var(--rh-border); border-radius: 8px; padding: 6px 10px; background: #fafaf8; }
.howlist { margin: 4px 0 8px; padding-inline-start: 18px; }
.howlist li { margin: 4px 0; }
.dialog.drawer.ppdrawer .dialog-head { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.dialog.drawer.ppdrawer .dialog-head > span:first-child { flex: 1; text-align: start; }
/* build 3.14: the close button sits in the row with "הקודמת" and "הבאה", not on top of them */
.dialog.drawer.ppdrawer .dialog-head .x { position: static; transform: none; }
/* build 3.14: the problem above its plots */
.issbanner { margin: 6px 0 10px; padding: 8px 12px; border: 1px solid var(--rh-border); border-inline-start: 4px solid #d97706; border-radius: 8px; background: #fffaf0; }
/* build 3.14: the "saving" cover sits above dialogs and side panels, so nothing in a panel can be clicked while it saves */
.busy { z-index: 9500; }
