/* Benchmark view (mockup), classes bm-. On style.css and pages.css tokens: --ink, --green, --line, --muted, --blue. */
.bm { --hive: #9cc9b9; --hive-dark: #2f8a6d; --min: #132b37; --you: #c2410c; }
.bm-mock { margin: 1.2rem 2rem 0; padding: .9rem 1.2rem; background: #fff6e5; border-left: 3px solid #dc980c; font-size: .9rem; }
.bm section { padding: 2.4rem 2rem; }
.bm-top { padding-top: 2rem !important; }
.bm-top .lead { max-width: 760px; }
.bm-pick { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; margin: 1.4rem 0 .4rem; }
.bm-pick label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 650; color: var(--muted); }
.bm-pick select { min-width: 12rem; }
.bm-sec h2 { font-size: 1.7rem; margin-top: 0; }
.bm-h3 { margin-top: 2rem; }
.bm-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-size: .82rem; color: var(--muted); margin: .6rem 0 1rem; }
.bm-legend i { display: inline-block; width: 22px; height: 12px; margin-right: .4rem; vertical-align: -1px; border-radius: 2px; font-style: normal; text-align: center; line-height: 12px; }
.lg-band { background: var(--hive); opacity: .55; } .lg-mid { background: var(--hive-dark); opacity: .55; box-shadow: inset 0 0 0 1px var(--hive-dark); }
.lg-min { color: var(--min); } .lg-you { color: var(--you); font-weight: 700; } .lg-bar { background: #b9cfd6; }
.bm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1rem; }
.bm-card { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem .6rem; background: #fff; }
.bm-card[data-k="gm"] { border-color: var(--green); box-shadow: inset 0 3px 0 var(--green); }
.bm-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }
.bm-card h3 { margin: 0; }
.bm-vals { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: .8rem; margin: .7rem 0 .2rem; align-items: start; }
.bm-vals > div { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; min-width: 0; }
.bm-vals b { font-size: 1.15rem; }
.bm-vals input { width: 100%; padding: .4rem .5rem; border: 1px solid #a0b4bd; border-radius: 4px; font: inherit; color: var(--you); font-weight: 650; }
.bm-vals input::placeholder { color: #8aa0a9; font-weight: 400; font-size: .8rem; }
.bm-out { font-size: 1.15rem; font-weight: 700; color: var(--you); }
.bm-empty { color: var(--muted); font-size: .82rem; font-style: italic; }
.bm-strip { width: 100%; height: auto; display: block; margin: .3rem 0; }
.bm-strip .ax, .bm-bridge .ax, .bm-months .ax { stroke: #c9d6db; stroke-width: 1; }
.bm-strip .band { fill: var(--hive); opacity: .45; } .bm-strip .mid { fill: var(--hive-dark); opacity: .45; }
.bm-strip .med { stroke: var(--hive-dark); stroke-width: 3; }
.bm-strip .min { fill: var(--min); } .bm-strip .ext { fill: #8a6d1d; }
.bm-strip .you, .bm-months .you { fill: #fff; stroke: var(--you); stroke-width: 3; }
.bm-verdict { margin: .2rem 0 .4rem; font-size: .88rem; color: var(--you); font-weight: 600; min-height: 1.2em; }
.bm-ext { margin: 0; }
.bm-bridge { width: 100%; max-width: 760px; height: auto; display: block; }
.bm-bridge .lab, .bm-months .lab { font-size: 13px; fill: var(--ink); }
.bm-bridge .val { font-size: 12px; fill: var(--muted); }
.bm-bridge .base { fill: var(--min); } .bm-bridge .youbar { fill: var(--you); } .bm-bridge .up { fill: #2f7a3e; } .bm-bridge .down { fill: #a33a2f; }
.bm-month { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.1rem; background: #fbfcfd; }
.bm-month-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: .8rem; }
.bm-month-head label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 650; color: var(--muted); }
.bm-months { width: 100%; max-width: 820px; height: auto; display: block; }
.bm-months .minbar { fill: #b9cfd6; } .bm-months .youline { stroke: var(--you); stroke-width: 2; }
.bm-small { background: #fff; color: var(--green); border: 1px solid #b7cec6; padding: .45rem .8rem; font-size: .875rem; }
.bm-mgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.bm-mgrid label { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); }
.bm-mgrid input { width: 100%; padding: .35rem .4rem; border: 1px solid #a0b4bd; border-radius: 4px; font: inherit; color: var(--you); }
.bm-share { margin: 0 2rem 1rem; padding: 1.1rem 1.3rem; background: #fff; border: 2px solid var(--green); border-radius: 8px; box-shadow: 0 4px 16px #132b371a; }
.bm-share h2 { font-size: 1.25rem; margin: 0 0 .3rem; font-family: inherit; font-weight: 700; }
.bm-share p { margin: .3rem 0 .6rem; font-size: .92rem; }
.bm-check { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; margin: .5rem 0; }
.bm-share pre { max-height: 180px; overflow: auto; background: #f3f6f7; padding: .7rem; font-size: .78rem; }
.bm-share input#bmNick { display: block; margin-top: .3rem; padding: .35rem .5rem; border: 1px solid #a0b4bd; border-radius: 4px; font: inherit; }
.bm-share button:disabled { opacity: .5; cursor: default; }
.bm-replaces ul { columns: 2; }
@media (max-width: 600px) {
  .bm-mock, .bm-share { margin-left: 1rem; margin-right: 1rem; }
  .bm section { padding: 2rem 1rem; }
  .bm-cards { grid-template-columns: 1fr; }
  .bm-vals { grid-template-columns: 1fr 1fr; } .bm-vals > div:nth-child(2) { grid-column: 1 / -1; order: 3; }
  .bm-mgrid { grid-template-columns: repeat(4, 1fr); }
  .bm-replaces ul { columns: 1; }
  .bm-pick select { min-width: 0; width: 100%; } .bm-pick label { flex: 1 1 100%; }
}

/* recording applications (16 Nov 2026) */
.bm-rec { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.2rem; margin: .4rem 0 .6rem; }
.bm-rec p { margin: 0; flex: 1 1 320px; }
.bm-k-in { color: #c2410c; font-weight: 700; } .bm-k-out { color: #c2410c; }
.bm-exbar { background: #fff6e5; border-left: 3px solid #dc980c; padding: .55rem .9rem; font-size: .88rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; }
.bm-exbar[hidden] { display: none; }
.bm-extag { font: 600 .72rem/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; background: #fff6e5; color: #8a5a00; border: 1px solid #e8c77a; border-radius: 3px; padding: .2rem .4rem; vertical-align: middle; }
.bm-cmp td, .bm-cmp th { padding: .55rem .7rem; font-size: .86rem; }
.bm-cmp td:first-child { font-weight: 600; }
.bm-cmp th .fine { color: #c9d6db; font-weight: 400; }
.bm-form-back { position: fixed; inset: 0; background: #132b3759; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bm-form-back[hidden] { display: none; }
.bm-form { background: #fff; border-radius: 8px; padding: 1.1rem 1.3rem 1rem; width: 100%; max-width: 480px; max-height: calc(100vh - 2rem); overflow: auto; box-shadow: 0 10px 40px #132b3740; display: flex; flex-direction: column; gap: .45rem; }
.bm-form h3 { margin: 0 0 .2rem; }
.bm-form label { display: flex; flex-direction: column; gap: .2rem; font-size: .82rem; font-weight: 650; color: var(--muted); }
.bm-form label.bm-check { flex-direction: row; font-weight: 400; color: var(--ink); }
.bm-form input:not([type=checkbox]), .bm-form select { padding: .45rem .55rem; border: 1px solid #a0b4bd; border-radius: 4px; font: inherit; color: var(--ink); width: 100%; }
.bm-form .fine { margin: 0; }
.bm-form-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.bm-form-row[hidden] { display: none; }
#fRepRow { grid-template-columns: 1fr 1fr; }
.bm-form-btns { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }
.bm-del { color: #a33a2f !important; border-color: #e0b4ae !important; margin-left: auto; }
.bm-form-err { color: #a33a2f; font-size: .85rem; margin: 0; min-height: 0; }
@media (max-width: 600px) { .bm-form-row { grid-template-columns: 1fr 1fr; } .bm-form-back { align-items: flex-end; padding: 0; } .bm-form { border-radius: 10px 10px 0 0; max-height: 92vh; } }

/* the log table (16 Nov 2026) */
.bm-log { border: 1px solid var(--line); border-radius: 6px; padding: .9rem 1rem; margin: .4rem 0 1rem; background: #fbfcfd; }
.bm-log[hidden] { display: none; }
.bm-log h3 { margin: 0 0 .2rem; }
.bm-logt { min-width: 820px; } .bm-logt th { padding: .45rem .5rem; font-size: .78rem; } .bm-logt td { padding: .25rem .3rem; border-bottom: 1px solid var(--line); }
.bm-logt td:first-child { width: 2rem; text-align: center; font-weight: 400; }
.bm-logt input, .bm-logt select { width: 100%; padding: .35rem .4rem; border: 1px solid #c3d0d6; border-radius: 3px; font: inherit; font-size: .86rem; color: var(--ink); background: #fff; }
.bm-logt .lg-date { width: 7.5rem; } .bm-logt .lg-rate, .bm-logt .lg-price { width: 6.5rem; } .bm-logt .lg-unit { width: 4.5rem; } .bm-logt select { max-width: 15rem; }
.bm-logt .bad { border-color: #a33a2f; background: #fdf0ee; }
.bm-logt .lg-x { padding: .2rem .5rem; }
.bm-nut { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-inline-end: .3rem; }
.bm-log .table-wrap { position: relative; }

/* colours (16 Nov 2026, the PI): green and white instead of grey, blue and orange in the "You" boxes and the forms */
.bm-vals input { background: var(--green); border: 1px solid var(--green); color: #fff; font-weight: 700; }
.bm-vals input::placeholder { color: #ffffffcc; font-weight: 400; }
.bm-vals input:focus { outline: 2px solid #04463a; outline-offset: 2px; }
.bm-out { display: inline-block; align-self: flex-start; background: var(--green); color: #fff; border-radius: 4px; padding: .25rem .55rem; }
.bm-verdict { color: var(--green); }
.bm input[type=checkbox] { accent-color: var(--green); width: 1.05rem; height: 1.05rem; }
.bm-form-back { background: #063c30a8; }
.bm-form input:not([type=checkbox]), .bm-form select, .bm-logt input, .bm-logt select { border: 1px solid #a9cbbd; background-color: #fff; color: var(--ink); }
.bm-form input:focus, .bm-form select:focus, .bm-logt input:focus, .bm-logt select:focus, .bm-share input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.bm-form select, .bm-logt select { -webkit-appearance: none; appearance: none; padding-right: 1.8rem;
  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' fill='none' stroke='%23086a56' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .6rem center; }
html[dir="rtl"] .bm-form select, html[dir="rtl"] .bm-logt select { padding-right: .55rem; padding-left: 1.8rem; background-position: left .6rem center; }
.bm-form input[type=date]::-webkit-datetime-edit-day-field:focus, .bm-form input[type=date]::-webkit-datetime-edit-month-field:focus, .bm-form input[type=date]::-webkit-datetime-edit-year-field:focus { background: var(--green); color: #fff; }
.bm-form input[type=date]::-webkit-calendar-picker-indicator { filter: invert(27%) sepia(64%) saturate(600%) hue-rotate(125deg); }
.bm-logt th { background: var(--green); color: #fff; }
.bm-log { background: #f4faf7; border-color: #cfe5db; }
.bm-logt .bad { border-color: #a33a2f; background: #fdf0ee; }

/* the opening: introduction and crop picker (16 Nov 2026) */
.bm-land { padding-top: 2rem !important; }
.bm-land .lead { max-width: 780px; }
.bm-find { display: flex; flex-direction: column; gap: .35rem; max-width: 520px; margin: 1.4rem 0 .9rem; }
.bm-find label { font-weight: 650; font-size: .9rem; }
.bm-find input { padding: .7rem .9rem; border: 1px solid #a9cbbd; border-radius: 6px; font: inherit; font-size: 1.05rem; }
.bm-find input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.bm-groups { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .8rem; }
.bm-chip { background: #fff; color: var(--green); border: 1px solid #b7cec6; border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; font-weight: 600; }
.bm-chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.bm-badgekey { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0 0 1rem; }
.bm-badges { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .4rem; }
.bm-badge { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .02em; border-radius: 3px; padding: .15rem .45rem; }
.bm-badge.hive { background: #e3f4ee; color: #075843; } .bm-badge.tl { background: #efe9f8; color: #5b3d8f; } .bm-badge.mk { background: #fdf3e1; color: #8a5a06; }
.bm-badge.only { background: #fff6e5; color: #8a5a06; border: 1px solid #e8c77a; align-self: flex-start; }
.bm-crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .7rem; }
.bm-crop, .bm-var { display: flex; flex-direction: column; gap: .15rem; border: 1px solid var(--line); border-radius: 8px; padding: .8rem .9rem; text-decoration: none; color: var(--ink); background: #fff; }
.bm-crop:hover, .bm-var:hover, .bm-crop:focus-visible, .bm-var:focus-visible { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.bm-crop b { font-size: 1.05rem; } .bm-crop[hidden] { display: none; }
.bm-crumb { margin: 0 0 .6rem; font-size: .9rem; color: var(--muted); } .bm-crumb a { color: var(--green); }
#bmVarList h2 { font-size: 1.6rem; margin: 0 0 1rem; }
.bm-vars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.bm-var b { font-size: 1rem; }
.bm-only { background: #fff6e5; border-left: 3px solid #dc980c; padding: .6rem .9rem; font-size: .9rem; max-width: 820px; }
html[dir="rtl"] .bm-only { border-left: 0; border-right: 3px solid #dc980c; }
#bmAgeWrap[hidden] { display: none; }
.bm-form-err.ok { color: var(--green); }
#bmRecTimed[hidden], #bmRecSteps[hidden] { display: none; }

/* gross margin as two columns and arrows (16 Nov 2026, the PI, after the poster); the strips start at zero */
.bm-bridge { max-width: 720px; }
.bm-bridge .zero { stroke: #8fa3ad; stroke-width: 1.2; } .bm-bridge .tick, .bm-strip .tick { font-size: 13px; fill: var(--muted); }
.bm-bridge .min { fill: var(--green); } .bm-bridge .youcol { fill: #9cc9b9; stroke: #2f8a6d; stroke-width: 1.5; }
.bm-bridge .num { font-size: 14px; font-weight: 700; fill: var(--ink); } .bm-bridge .lab { font-size: 14px; fill: var(--ink); } .bm-bridge .note { font-size: 11.5px; fill: var(--muted); }
.bm-bridge .link { stroke: #a9bfb6; stroke-width: 1.2; stroke-dasharray: 4 4; }
.bm-bridge .up { stroke: var(--green); stroke-width: 6; } .bm-bridge .dn { stroke: #7fb5a3; stroke-width: 6; }
.bm-bridge .ar-up { fill: var(--green); } .bm-bridge .ar-dn { fill: #7fb5a3; } .bm-bridge .flat { fill: #a9bfb6; }
.bm-strip .tk { stroke: #c9d6db; } .bm-strip .tick { font-size: 15px; }
.bm-prev-h { font-weight: 650; margin: .8rem 0 .3rem; }
.bm-preview { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; background: #f4faf7; border: 1px solid #cfe5db; border-radius: 6px; padding: .7rem .9rem; font-size: .9rem; margin: 0 0 .6rem; }
.bm-preview dt { color: var(--muted); font-weight: 600; } .bm-preview dd { margin: 0; text-align: start; font-weight: 400; } .bm-preview ul { margin: 0; padding-inline-start: 1.1rem; } .bm-preview li { margin: 0 0 .15rem; }
.bm-preview div { display: contents; }
@media (max-width: 600px) { .bm-preview { grid-template-columns: 1fr; } .bm-preview dd { margin-bottom: .4rem; } }
html[dir="rtl"] .bm-preview dd { text-align: right; }
.bm-bridge .num, .bm-bridge .tick, .bm-strip .tick { direction: ltr; unicode-bidi: plaintext; }
