/* Nov 2026: portrait plant photos, the project palette (zones, drag to reorder, combinations), native/exotic insight,
   editing the plant schedule in place, planting boards (whiteboard), Library Health duplicates and multi-site checks. */
.pc-photo.pc-portrait { aspect-ratio: 4 / 5; }
/* every card photo fills its frame and is cropped to it: a tall or wide photo must never stretch the card
   (with aspect-ratio, the photo's own size would otherwise push the box taller). Plant Library, project palette, Materials. */
.pc-photo { overflow: hidden; min-height: 0; }
.pc-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pal-card { cursor: grab; } .pal-card.dragging { opacity: .4; }
.pal-card.drop-before { box-shadow: -4px 0 0 0 var(--accent); } .pal-card.drop-after { box-shadow: 4px 0 0 0 var(--accent); }
.pal-grip { position: absolute; top: 6px; right: 8px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); font-size: 13px; letter-spacing: -2px; opacity: .85; pointer-events: none; }
.pal-zone { width: 100%; margin-top: 6px; padding: 3px 8px; font-size: 12px; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 12px; }
.combo-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.combo-strip { display: flex; gap: 2px; background: var(--surface-2); min-height: 90px; align-items: stretch; justify-content: center; }
.combo-strip .combo-ph { flex: 1; aspect-ratio: 4 / 5; max-width: 33%; }
.combo-ph { overflow: hidden; background: var(--surface-2); display: block; } .combo-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.combo-body { padding: 10px 12px; flex: 1; }
.combo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; }
.combo-opt { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; cursor: pointer; }
.combo-opt .combo-ph { width: 36px; height: 45px; flex: none; border-radius: 4px; } .combo-opt i { display: block; font-size: 13px; } .combo-opt small { display: block; }
.combo-opt:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }

/* Palette insights: native and exotic */
.ins-origin { display: flex; gap: 12px; flex-wrap: wrap; }
.ins-big { flex: 1; min-width: 120px; border-radius: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--good, #4f8a3c) 14%, transparent); }
.ins-big.ex { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ins-big b { display: block; font-size: 30px; line-height: 1.1; } .ins-big span { font-size: 13px; color: var(--ink-2); }
.ins-split { display: flex; height: 14px; border-radius: 9999px; overflow: hidden; background: var(--surface-2); } .ins-split i { display: block; height: 100%; }
.ins-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; font-size: 12.5px; } .ins-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Plant schedule: edit in place (a green corner = a plant detail, saved in the Plant Library) */
.sch-ed { cursor: text; } .sch-ed:hover { background-color: var(--surface-2); outline: 1px dashed var(--line-2); outline-offset: -2px; }
td.sch-pl { background-image: linear-gradient(225deg, var(--good, #4f8a3c) 5px, transparent 5px); }
.sch-origin { cursor: pointer; }
.sch-in { min-width: 70px; width: 100%; padding: 3px 6px; font-size: 13px; }

/* Planting boards (whiteboard) */
.wb-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 100%; height: 100%; } .wb-prev span { background: var(--surface-2); overflow: hidden; } .wb-prev img { width: 100%; height: 100%; object-fit: cover; display: block; } .wb-prev em { grid-column: 1 / -1; align-self: center; text-align: center; }
.modal.wb-modal { width: min(1600px, 100%); height: calc(100vh - 32px); max-height: none; }
.modal.wb-modal .modal-body { padding: 0; flex: 1; min-height: 0; display: flex; overflow: hidden; }
.wb { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.wb-bar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
.wb-selbar { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; } .wb-selbar[hidden], .wb-fmt[hidden], .wb-cols[hidden], .wb-capl[hidden] { display: none; }
.wb-fmt, .wb-cols { display: inline-flex; gap: 3px; align-items: center; } .wb-capl { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
.wb-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; } .wb-grow { flex: 1; }
.wb-sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); margin-right: 4px; vertical-align: -2px; }
.btn-sw { width: 22px; height: 22px; cursor: pointer; margin: 0; padding: 0; }
.wb-zoom { min-width: 44px; text-align: center; font-size: 12.5px; color: var(--ink-2); }
.wb-main { flex: 1; min-height: 0; display: flex; position: relative; }
.wb-side { width: 250px; flex: none; border-right: 1px solid var(--line); padding: 10px; overflow: auto; background: var(--surface); } .wb-side[hidden] { display: none; }
.wb-side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wb-pli { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 5px; margin-bottom: 5px; cursor: pointer; font: inherit; color: inherit; }
.wb-pli:hover { border-color: var(--accent); } .wb-plt { width: 36px; height: 45px; flex: none; border-radius: 4px; overflow: hidden; background: var(--surface-2); } .wb-plt img { width: 100%; height: 100%; object-fit: cover; }
.wb-cat { margin-bottom: 10px; } .wb-cat-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin: 4px 2px 5px; } .wb-cat-h span { font-weight: 400; color: var(--ink-3); }
.wb-pli i { display: block; font-size: 12.5px; } .wb-pli small { display: block; color: var(--ink-3); font-size: 11.5px; }
.wb-view { position: relative; flex: 1; min-width: 0; overflow: hidden; outline: none; cursor: grab; touch-action: none; background-color: #f6f4ef; background-image: radial-gradient(circle, rgba(0,0,0,.16) 1px, transparent 1.2px); }
.wb-view.panning { cursor: grabbing; }
.wb-canvas { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
.wb-hint { position: absolute; left: 0; right: 0; bottom: 40%; text-align: center; color: #777; font-size: 14px; pointer-events: none; padding: 0 20px; }
.wb-it { position: absolute; cursor: move; user-select: none; touch-action: none; box-sizing: border-box; }
.wb-it.on { outline: 2px solid var(--accent); outline-offset: 2px; }
.wb-h { position: absolute; right: -7px; bottom: -7px; width: 14px; height: 14px; border-radius: 3px; background: #fff; border: 2px solid var(--accent); cursor: nwse-resize; display: none; } .wb-it.on .wb-h { display: block; }
.wb-plant, .wb-img { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.18); display: flex; flex-direction: column; }
.wb-plant { padding: 6px 6px 0; }
.wb-ph { flex: 1; min-height: 0; overflow: hidden; background: #eee; display: grid; place-items: center; color: #999; font-size: 13px; } .wb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.wb-cap { padding: 5px 2px 6px; color: #222; font-size: 13px; line-height: 1.25; } .wb-cap i { display: block; font-weight: 600; } .wb-cap span { color: #666; font-size: 12px; }
.wb-cap .wb-size { display: block; margin-top: 2px; color: #444; font-size: 12px; font-weight: 600; }
.wb-text .wb-txt { color: #222; line-height: 1.2; font-weight: 500; min-height: 1em; white-space: pre-wrap; word-break: break-word; }
.wb-note { box-shadow: 0 3px 8px rgba(0,0,0,.18); padding: 14px; } .wb-note .wb-txt { color: #222; line-height: 1.3; white-space: pre-wrap; word-break: break-word; height: 100%; overflow: hidden; }
.wb-txt[contenteditable="true"] { cursor: text; user-select: text; outline: none; }
/* frames (A4 to A1): a white sheet behind everything; only its name label takes the mouse, so you can box-select inside it */
.wb-frame { background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.16); pointer-events: none; cursor: default; }
.wb-frame .wb-fl { position: absolute; left: 0; bottom: 100%; margin-bottom: calc(4px / var(--wbz, 1)); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: auto; cursor: move;
  font-size: calc(13px / var(--wbz, 1)); line-height: 1.3; color: #555; font-weight: 600; padding: 0 calc(2px / var(--wbz, 1)); }
.wb-frame.on { outline-width: calc(2px / var(--wbz, 1)); } .wb-frame.on .wb-fl { color: var(--accent); }
.wb-fico { display: inline-block; width: 13px; height: 10px; border: 1.6px solid currentColor; border-radius: 1px; margin-right: 5px; vertical-align: -1px; }
.wb-fmenu { display: inline-flex; gap: 3px; align-items: center; } .wb-fmenu[hidden], .wb-frm[hidden], .wb-cnt[hidden], .wb-zb[hidden] { display: none; }
.wb-frm, .wb-zb { display: inline-flex; gap: 6px; align-items: center; }
.wb-bar .wb-fname { width: 130px; padding: 4px 8px; font-size: 13px; } .wb-bar .wb-fpaper { width: auto; padding: 4px 26px 4px 8px; font-size: 13px; }
.wb-cnt { font-size: 13px; font-weight: 600; color: var(--accent); margin-right: 2px; }
/* the selection box drawn on the empty board */
.wb-marq { position: absolute; z-index: 3; border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); pointer-events: none; }
.wb-view.grab { cursor: grab; } .wb-view { cursor: default; } .wb-view.panning { cursor: grabbing; }
/* several picked: one dashed box with one corner handle that resizes them all (the cards' own handles are hidden) */
.wb-gbox { position: absolute; z-index: 5000; pointer-events: none; outline: calc(1.5px / var(--wbz, 1)) dashed var(--accent); outline-offset: calc(6px / var(--wbz, 1)); }
.wb-gh2 { position: absolute; right: calc(-14px / var(--wbz, 1)); bottom: calc(-14px / var(--wbz, 1)); width: calc(16px / var(--wbz, 1)); height: calc(16px / var(--wbz, 1)); box-sizing: border-box;
  background: #fff; border: calc(2px / var(--wbz, 1)) solid var(--accent); border-radius: calc(3px / var(--wbz, 1)); cursor: nwse-resize; pointer-events: auto; touch-action: none; }
.wb-canvas.many .wb-it.on .wb-h { display: none; }
/* drawings: only the line (or a filled inside) takes clicks, so cards under a drawn box stay easy to pick */
.wb-shape { pointer-events: none; } .wb-shape .wb-h { pointer-events: auto; }
.wb-shape svg { display: block; width: 100%; height: 100%; overflow: visible; }
.wb-shape .wb-ink { pointer-events: none; } .wb-shape .wb-hit { pointer-events: stroke; cursor: move; } .wb-shape .wb-hit.wb-hitfill { pointer-events: all; }
.wb-view.drawing, .wb-view.drawing .wb-it, .wb-view.drawing .wb-hit, .wb-view.drawing .wb-fl { cursor: crosshair; }
.wb-dbar, .wb-sty, .wb-inks, .wb-widths { display: inline-flex; gap: 3px; align-items: center; } .wb-dbar[hidden], .wb-sty[hidden], .wb-fillc[hidden] { display: none; }
.wb-dbar { gap: 4px; padding: 2px 4px; border: 1px solid var(--line); border-radius: 10px; }
.wb-dbar .btn[aria-pressed="true"], .wb-widths .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.wb-inks .wb-sw { width: 18px; height: 18px; border-radius: 50%; margin: 0; padding: 0; cursor: pointer; } .wb-inks .wb-sw[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.wb-wd { display: block; width: 18px; background: currentColor; border-radius: 3px; }
.wb-fillc { font-size: 13px; display: inline-flex; gap: 4px; align-items: center; }
/* snapping guide lines while dragging */
.wb-guides { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.wb-gv, .wb-gh { position: absolute; display: block; } .wb-gv { top: 0; bottom: 0; border-left: 1px solid #e0457b; } .wb-gh { left: 0; right: 0; border-top: 1px solid #e0457b; }
.wb-many { display: inline-flex; } .wb-many[hidden] { display: none; }
/* full screen */
.modal.wb-modal.wb-full { position: fixed; inset: 0; z-index: 200; width: 100vw; height: 100vh; max-width: none; max-height: none; border-radius: 0; margin: 0; }
.modal.wb-modal:fullscreen { width: 100vw; height: 100vh; max-width: none; border-radius: 0; }
@media (max-width: 700px) { .wb-side { position: absolute; z-index: 5; height: 100%; box-shadow: var(--shadow-pop); } }

/* Library Health: duplicates and checks on several websites */
.dup-tbl td { vertical-align: top; } .dup-tbl label { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; cursor: pointer; } .dup-tbl td:first-child { font-weight: 600; white-space: nowrap; color: var(--ink-2); font-size: 12.5px; }
.dup-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 12px; }
.dup-pick { display: flex; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; } .dup-pick:has(input:checked) { border-color: var(--accent); background: var(--surface-2); }
.lh-sites { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0; } .lh-sites label { font-size: 13px; display: inline-flex; gap: 5px; align-items: center; }

/* Client relationship and project site details (clientsite.js) */
.cr-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-pill.tag { background: color-mix(in srgb, var(--good, #4f8a3c) 16%, transparent); color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 11.5px; }
.cr-notes { margin: 10px 0 0; white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); }
.site-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin-top: 10px; }
.site-row { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; min-width: 0; }
.site-row small { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.site-row div { white-space: pre-wrap; word-break: break-word; font-size: 13.5px; }
.site-row.safety { border-color: color-mix(in srgb, var(--warn, #c08a2b) 55%, transparent); }
.st-h { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin: 16px 0 6px; }

/* Materials: "you may already have this" after a pasted product link */
.pf-dup { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn, #c08a2b) 16%, transparent); border: 1px solid color-mix(in srgb, var(--warn, #c08a2b) 45%, transparent); font-size: 13.5px; }

/* Materials schedule fields (materials.js, matschedule.js) */
.mc-code { font-size: 11px; font-weight: 700; letter-spacing: .03em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; margin-right: 2px; vertical-align: 1px; }
.mf-sched { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); }
.mf-sched summary { cursor: pointer; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mf-sched[open] summary { margin-bottom: 8px; }
.mf-sh { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.pp-tile .pre, span.pre { white-space: pre-wrap; }
tr.co-con td:first-child { box-shadow: inset 4px 0 0 #2f4fb3; } tr.co-int td:first-child { box-shadow: inset 4px 0 0 #2e8b57; }
.co-key { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; } .co-key::before { content: ''; width: 10px; height: 10px; border-radius: 2px; background: #2e8b57; } .co-key.co-con::before { background: #2f4fb3; }
/* Plant Schedule: movable columns, this project's own headings, ticking and dragging several plants (js/schedule.js) */
.sch-first { display: flex; align-items: flex-start; gap: 6px; } .sch-first .namecell { flex: 1; min-width: 0; }
.sch-grip { width: 10px; height: 20px; display: grid; place-items: center; color: var(--ink-3); cursor: grab; opacity: .35; flex: none; } .sch-grip svg { width: 8px; height: 14px; }
.sch-table tbody tr:hover .sch-grip { opacity: 1; }
@media (hover: none) { .sch-grip { display: none; } }
.sch-ck, .sch-ckall { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; } .sch-ckgap { width: 16px; flex: none; }
.sch-table tbody tr.sel td, .sch-table tbody tr.sel td.stick { background-color: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.sch-bandin { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .sch-band { cursor: grab; }
.sch-bandbtns { display: inline-flex; gap: 2px; opacity: .45; } .sch-band:hover .sch-bandbtns, .sch-bandbtns:focus-within { opacity: 1; }
@media (hover: none) { .sch-bandbtns { opacity: 1; } }
.sch-ib { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; cursor: pointer; }
.sch-ib:hover:not(:disabled) { background: var(--surface); } .sch-ib:disabled { opacity: .3; cursor: default; } .sch-ib svg { width: 14px; height: 14px; }
.sch-th { cursor: grab; user-select: none; } .sch-th.sch-dragging, tr.sch-dragging td { opacity: .45; }
.sch-th.sch-drop-l { box-shadow: inset 3px 0 0 var(--accent); } .sch-th.sch-drop-r { box-shadow: inset -3px 0 0 var(--accent); }
.sch-table tr.sch-drop-a td { box-shadow: inset 0 3px 0 var(--accent); } .sch-table tr.sch-drop-b td { box-shadow: inset 0 -3px 0 var(--accent); }
.sch-table tr.band.sch-drop-in td { box-shadow: inset 0 0 0 2px var(--accent); }
.pick-bar .sch-moveto { width: auto; flex: 0 1 auto; min-width: 150px; padding-top: 5px; padding-bottom: 5px; }
.sch-crow { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px solid var(--line); cursor: grab; }
