.masthead .language{width:auto;max-width:6.5rem;min-height:32px;padding:.25rem .4rem}.masthead:has(.env){flex-wrap:wrap}.split .panel{min-width:0}.map svg{touch-action:pan-y}#editor{touch-action:none;cursor:crosshair}#editor .editor-base{fill:#d4dfcb;stroke:#a0b397;cursor:inherit}#editor .editor-outline{fill:#597941;fill-opacity:.32;stroke:#25512e;stroke-width:2;vector-effect:non-scaling-stroke;cursor:inherit}#editor .editor-point{fill:#fff;stroke:#174229;stroke-width:2.5;cursor:grab}

.map.boundary-map {
    position: relative;
    isolation: isolate;
    margin-bottom: .45rem;
    background: #f3f6ee;
}

.panel.joined-panel { padding: 0; }
.joined-panel > .panel-part { padding: 1.25rem; }
.joined-panel > .panel-part + .panel-part { border-top: 2px solid #d5dfd2; }
.master-panels { align-items: start; }
.master-registration > form { margin-top: 0; }
.planning-actions { display: flex; gap: .4rem; }
.planning-actions button { white-space: nowrap; }
.planning-actions .planning-delete { color: #942d27; border-color: #b1645f; }
.planning-panel #targets-edit:not([hidden]) { margin-top: 1rem; }
.cycle-targets .targets-toolbar { display: flex; justify-content: flex-end; }
.cycle-targets .list-size:not([hidden]) { margin-bottom: .6rem; }
.cycle-targets td { width: 50%; }
.cycle-targets input[readonly] { background: #f3f6ef; }
#daily-areas input[type=number] { min-width: 5.5rem; }
/* The quantity column sits immediately before Notes and is needed only for rows using material. */
#daily-areas table:not(:has(.usage-quantities:not([hidden]))) :is(th:nth-last-child(2), td:has(> .usage-quantities)) { display: none; }
#daily-areas details { min-width: 6rem; }
#daily-areas details[open] { min-width: 13rem; }
#daily-areas summary { cursor: pointer; }
.master-edit h3 { overflow-wrap: anywhere; }
.master-edit .formgrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); }
.master-edit label { min-width: 0; }
.master-edit-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .6rem; }
.team-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.team-actions button { white-space: nowrap; }
#team th, #team td:nth-last-child(3), #team td:nth-last-child(2) { white-space: nowrap; }
#team-edit-form .inline { align-self: center; }
#invite-form label { min-width: 0; }
@media (max-width: 780px) {
    .joined-panel > .panel-part { padding: 1rem; }
    #plantings table { min-width: 40rem; }
}

.list-size { display: flex; align-items: center; gap: .5rem; }
.list-size select { width: auto; }
.planting-header { flex-wrap: wrap; }
#planting-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
#delete-plantings { color: #942d27; border-color: #b1645f; }
#plantings th:first-child, #plantings td:first-child { width: 2.75rem; text-align: center; }
#plantings input[type="checkbox"] { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: #205941; vertical-align: middle; }
.row-limited-list { overflow: auto; }
.row-limited-list.list-scrollable { overflow-y: scroll; }
.row-limited-list > .tablewrap { overflow: visible; }
.row-limited-list th { position: sticky; top: 0; z-index: 1; background: white; }
#boundaries td:nth-child(-n+2) { overflow-wrap: anywhere; }

.boundary-map #editor {
    position: relative;
    z-index: 1;
    height: clamp(280px, 36vh, 420px);
}
#editor:is([data-mode="view"], [data-mode="grid"], [data-mode="pick-area"]) { cursor: grab; }
#editor:is([data-mode="view"], [data-mode="grid"], [data-mode="pick-area"]):active { cursor: grabbing; }
#editor[data-mode="grid"] path { cursor: inherit; }

.boundary-background { max-width: 13rem; }
.boundary-locations { padding: .4rem 0; margin: 0 0 .4rem; }
#boundary-location-message { margin: .5rem 0; }
#street-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
#street-layer img { position: absolute; top: 0; left: 0; max-width: none; pointer-events: none; user-select: none; }
#street-attribution {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: #fffffff2;
    padding: 2px 6px;
    font-size: 12px;
}
.boundary-map:has(#street-layer[data-loaded="true"]) .editor-graticule { opacity: .24; }
.boundary-map:has(#street-layer[data-loaded="true"]) .editor-base { fill-opacity: .18; stroke: #32583b; stroke-width: 2px; }
#street-message { color: #655118; margin: .5rem 0 0; font-size: .88rem; }

#editor .editor-grid { pointer-events: none; }
#editor .editor-grid-line { stroke: #c4d2c0; stroke-width: 1; }
#editor .editor-grid-label,
#editor .editor-scale-label,
#editor .editor-north {
    font: 12px "Segoe UI", sans-serif;
    fill: #314b3b;
    paint-order: stroke;
    stroke: #f7f9f3;
    stroke-width: 3px;
    stroke-linejoin: round;
}

#editor .editor-scale,
#editor .editor-crosshair { stroke: #36563f; stroke-width: 1.5; pointer-events: none; }
#editor .editor-base { fill-opacity: .55; }
#editor .editor-zone {
    fill: #c8dce6;
    stroke: #275473;
    stroke-width: 2;
    stroke-dasharray: 5 3;
}
.boundary-map:has(#street-layer[data-loaded="true"]) .editor-zone { stroke: #204766; }
#editor[data-mode="view"] .editor-zone { cursor: pointer; }
#editor[data-mode="view"] .editor-farm-outline { pointer-events: none; }
#editor[data-mode="view"] .editor-zone[aria-pressed="true"] {
    fill: #1765ab;
    fill-opacity: .6;
    stroke: #113f71;
    stroke-width: 3;
    stroke-dasharray: none;
}
#editor .editor-zone:focus-visible { outline: 3px solid #173c68; outline-offset: 2px; }
.boundary-map-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .35rem 1.25rem;
    color: #526653;
    font-size: .85rem;
}

#boundary-status { margin: .65rem 0 0; font-weight: 600; }
#area-methods {
    margin: 1rem 0 0;
    padding: 0 0 .8rem;
    border: 0;
    border-bottom: 2px solid #d5dfd2;
    border-radius: 0;
}
#area-methods legend { margin-bottom: .4rem; padding: 0; font-size: .88rem; }
#area-methods button { margin: .15rem .2rem .15rem 0; }
#area-methods button[aria-pressed="true"] { background: #205941; color: white; border-color: #205941; }
#grid-outline-help { margin: .45rem 0 0; }
#grid-preview:not(:empty), #cancel-grid-edit { margin-top: .8rem; }
#delete-boundary { margin-top: .85rem; background: white; color: #942d27; border-color: #b1645f; }
#delete-boundary[hidden] { display: none; }
#boundary-form label[hidden] { display: none; }
#edit-farm-outline, #leave-farm-outline { margin-bottom: .75rem; }
#editor .editor-farm-outline { stroke: #8a4417; stroke-width: 3; fill: none; vector-effect: non-scaling-stroke; }
#editor .editor-farm-draft { stroke: #8a4417; fill: #bd7d39; }
#farm-outline-key::before {
    content: "";
    display: inline-block;
    width: 1.5rem;
    margin-right: .4rem;
    vertical-align: middle;
    border-top: 3px solid #8a4417;
}
