:root { color-scheme: light; --ink: #172c23; --green: #132820; --accent: #215f45; --accent-dark: #174a35; --paper: #f3f5ef; --line: #d9e1d8; --muted: #4b6154; --white: #fff; }
* { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.55 system-ui, sans-serif; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.35rem; letter-spacing: -.025em; }
p + p { margin-top: .5rem; }
a { color: var(--accent-dark); }
a, button, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #a6480d; outline-offset: 3px; }
button { min-height: 44px; max-width: 100%; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; background: var(--accent); color: white; font: inherit; font-weight: 680; cursor: pointer; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .75; }
fieldset { display: grid; gap: .85rem; margin: 0; padding: 0; border: 0; min-width: 0; }
fieldset > button { justify-self: start; }
label { display: grid; gap: .35rem; color: var(--ink); font-weight: 630; min-width: 0; }
input, select { font: inherit; min-height: 46px; width: 100%; min-width: 0; color: var(--ink); background: white; border: 1px solid #91a496; border-radius: .55rem; padding: .5rem .65rem; }
small { color: var(--muted); }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.brand strong { color: inherit; font-weight: 450; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: #132820; background: #d7edb8; border-radius: 10px; font-size: 1.2rem; font-weight: 850; }
.eyebrow { color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .13em; }
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(310px, 5fr) minmax(350px, 6fr); }
.login-brand { background: var(--green); color: #f6faef; padding: clamp(1.4rem, 6vw, 5rem); display: grid; align-content: space-between; gap: 2rem; min-height: 300px; }
.login-brand .eyebrow, .login-brand p, .login-brand > span { color: #caddc5; }
.login-brand h1 { margin-block: .6rem .9rem; font-size: clamp(2.8rem, 7vw, 6rem); }
.login-brand p { max-width: 31ch; }
.login-panel { display: grid; place-items: center; padding: clamp(1.2rem, 6vw, 5rem); }
.sign-in { max-width: 390px; width: 100%; }
.sign-in h2 { font-size: 2rem; }
.sign-in > p, .panel header > p, .topbar p { color: var(--muted); }
.sign-in form { margin-top: 1.35rem; }
.sign-in fieldset > button { justify-self: stretch; }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.sidebar { color: #f6faef; background: var(--green); padding: 1.45rem 1rem; }
.sidebar .brand { margin: .2rem .55rem 1.5rem; }
.sidebar nav { display: flex; flex-direction: column; gap: .25rem; }
.sidebar a { display: flex; align-items: center; min-height: 44px; padding: .55rem .7rem; border-radius: .55rem; color: #f1f7ec; text-decoration: none; }
.sidebar a:hover, .sidebar a:focus-visible { background: #244537; }
.workspace { width: min(100%, 1330px); padding: clamp(1rem, 4vw, 3.6rem); display: grid; align-content: start; gap: 1.3rem; }
.topbar { display: flex; justify-content: space-between; gap: .8rem; align-items: flex-start; }
.topbar h1 { margin-block: .25rem .35rem; }
.logout button { background: white; color: var(--ink); border-color: var(--line); }
.logout button:hover { background: var(--line); }
.overview { padding: 1.15rem; background: #e5efdf; border: 1px solid #c9dfc8; border-radius: .95rem; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-top: .75rem; }
.metrics a { background: white; border: 1px solid var(--line); border-radius: .7rem; padding: .8rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.metrics a:hover { border-color: var(--accent); }
.metrics strong { display: block; font-size: 1.7rem; }
.panel { background: white; border: 1px solid var(--line); border-radius: .95rem; padding: clamp(.9rem, 2.5vw, 1.45rem); min-width: 0; }
.panel header { margin-bottom: .8rem; }
.panel > .logout { margin-top: .8rem; }
.empty { margin-block: .7rem; padding: .9rem; border: 1px dashed #a9bbab; border-radius: .6rem; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
details { margin-top: .8rem; }
summary { display: list-item; min-height: 44px; padding: .55rem 0; color: var(--accent-dark); font-weight: 720; cursor: pointer; }
details form { margin: .3rem 0 .2rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .62rem .55rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
thead th { background: #edf3ea; font-size: .87rem; }
tbody th { font-weight: 600; }
.titlecase { text-transform: capitalize; }
.error-message, .success-message { padding: .6rem .75rem; border-radius: .5rem; margin-top: .6rem; }
.error-message { color: #7f251a; background: #fff0ec; }
.success-message { color: #19462c; background: #e3f2e4; }
.offline-note { padding: .55rem 1rem; color: #55330d; background: #ffe9b5; font-weight: 630; }
.farm-switch { padding: clamp(1rem, 5vw, 4rem); display: grid; gap: 1rem; justify-items: start; }
.visually-hidden, .skip-link:not(:focus) { width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); position: absolute; }
.skip-link:focus { position: fixed; top: .5rem; left: .5rem; background: white; padding: 1rem; z-index: 1; }
@media (max-width: 760px) {
  .login, .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: .65rem .8rem; }
  .sidebar .brand { margin: .15rem .35rem .45rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .sidebar a { padding-inline: .5rem; }
  .login-brand { min-height: 0; gap: .85rem; }
  .login-brand h1 { font-size: 2.6rem; }
  .login-panel { padding-top: 1.25rem; place-items: start center; }
}
@media (max-width: 420px) {
  .fields, .metrics { grid-template-columns: minmax(0, 1fr); }
  .metrics a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
  .topbar { align-items: flex-start; }
}
.record-list { list-style: none; margin: 0; padding: 0; }
.record-list li { padding: .75rem 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.period-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .7rem; margin-bottom: .8rem; }
@media print {
  .duties-shell, .duties-shell .workspace { display: block; width: 100%; padding: 0; background: white; }
  .duties-shell .sidebar, .duties-shell .hide-print, .duties-shell .logout, .skip-link, .offline-note { display: none !important; }
  .duties-shell .panel { border: 0; padding: .8rem 0; }
  .duties-shell .record-list li { break-inside: avoid; }
}

[hidden] { display: none !important; }
:root {
  --ink: #182a22;
  --green: #142b22;
  --accent: #286044;
  --accent-dark: #18452f;
  --paper: #f4f5ed;
  --line: #dde5d8;
  --muted: #4c6255;
  --lime: #ddefac;
  --sand: #f0ebd9;
  --serif: Georgia, "Times New Roman", serif;
}
h1, .cover-title { font-family: var(--serif); font-weight: 500; letter-spacing: -.052em; }
body { background: radial-gradient(ellipse at 95% 0%, #e6ecda, transparent 44rem), var(--paper); }
.brand { gap: .65rem; }
.brand-mark { width: 38px; height: 38px; font-size: 0; position: relative; color: var(--green); }
.brand-mark::before, .brand-mark::after {
  content: ""; display: block; position: absolute; width: 12px; height: 17px;
  border-radius: 100% 0 100% 0; background: currentColor;
}
.brand-mark::before { transform: rotate(-69deg); left: 9px; top: 12px; }
.brand-mark::after { transform: rotate(7deg); left: 18px; top: 8px; }
.brand strong { font-weight: 500; }
.eyebrow { letter-spacing: .15em; }
.login { grid-template-columns: minmax(0, 1.38fr) minmax(350px, 1fr); }
.login-brand, .farm-cover {
  position: relative; isolation: isolate; overflow: hidden;
  background-color: #1e3c2c; color: #fcfff6;
}
.login-brand::before, .farm-cover::before {
  content: ""; position: absolute; inset: -2%; z-index: -2; pointer-events: none;
  background: url("/field-lines.svg") center 64% / cover no-repeat;
  animation: wind-pan 25s ease-in-out infinite alternate;
}
.login-brand::after, .farm-cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(112deg, rgba(11,36,24,.93), rgba(13,39,25,.78) 49%, rgba(13,35,21,.25) 100%),
    linear-gradient(0deg, rgba(11,32,21,.85), transparent 60%);
}
.login-brand { min-height: 100svh; padding: clamp(1.65rem, 6vw, 5.4rem); }
.login-brand .brand, .login-brand > span, .login-brand .cover-copy { animation: rise-in .65s both; }
.login-brand .cover-copy { animation-delay: .12s; padding-block: 1.4rem; }
.login-brand .eyebrow, .farm-cover .eyebrow { color: var(--lime); }
.login-brand h1 { margin: .55rem 0 1rem; font-size: clamp(3.35rem, 8vw, 7.9rem); line-height: .94; }
.login-brand p:not(.eyebrow) { color: #edf6e6; max-width: 37ch; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.login-panel { background: #f8f9f1; }
.sign-in { animation: rise-in .75s .08s both; }
.sign-in h2 { font: 500 clamp(2rem, 4vw, 3.1rem)/1.13 var(--serif); letter-spacing: -.05em; margin-bottom: .65rem; }
.sign-in form { margin-top: 1.55rem; }
.sign-in .fields { grid-template-columns: minmax(0, 1fr); gap: .95rem; margin-bottom: .25rem; }
.sign-in input { min-height: 50px; }
.sign-in .primary-link { width: 100%; justify-content: center; margin-top: 1.35rem; }
.primary-link {
  display: inline-flex; align-items: center; min-height: 46px; padding: .63rem 1.1rem; background: var(--accent);
  color: #fff; font-weight: 700; border-radius: .65rem; text-decoration: none; transition: background .18s ease, transform .18s ease;
}
.primary-link:hover { background: var(--accent-dark); transform: translateY(-2px); }
.shell { grid-template-columns: 235px minmax(0,1fr); }
.sidebar {
  background: radial-gradient(ellipse at 2% 100%, #274b37 0, transparent 69%), #132820;
  padding: 1.7rem 1rem; border-right: 1px solid #223e31;
}
.sidebar .brand { margin: .1rem .54rem 2rem; }
.sidebar nav { gap: .36rem; }
.sidebar nav a { gap: .75rem; color: #d8e6d9; font-size: .94rem; transition: color .18s ease, background .18s ease; }
.sidebar a[aria-current="page"] { background: #294938; color: white; box-shadow: inset 3px 0 0 #c9e890; }
.sidebar a:hover { color: #fff; }
.nav-glyph { display: inline-grid; place-items: center; flex: 0 0 auto; width: 1.25rem; color: #c3dca3; font-size: 1rem; }
.sidebar nav .signout { margin-top: 1rem; border-top: 1px solid #294738; border-radius: 0; }
.workspace { max-width: 1400px; padding: clamp(1rem, 3.7vw, 3.5rem); gap: 1.1rem; }
.workspace > .panel, .workspace > .overview { animation: rise-in .49s both; }
.workspace > :nth-child(3) { animation-delay: .04s; }
.workspace > :nth-child(4) { animation-delay: .08s; }
.workspace > :nth-child(5) { animation-delay: .12s; }
.farm-cover { min-height: 244px; display: flex; align-items: end; border-radius: 1.2rem; padding: clamp(1.1rem, 3.5vw, 2.55rem); }
.farm-cover h1 { margin: .33rem 0 .6rem; font-size: clamp(2.65rem, 6vw, 5.4rem); }
.farm-cover .cover-meta { color: #eef5e8; font-size: .94rem; }
.farm-cover .cover-copy { animation: rise-in .58s both; }
.farm-cover.cover-compact { min-height: 168px; }
.farm-cover.cover-compact h1 { font-size: clamp(2.25rem, 5vw, 4.1rem); }
.overview, .panel { background: #fffefa; border-color: var(--line); border-radius: 1.05rem; }
.overview { padding: clamp(.9rem, 2.5vw, 1.45rem); }
h2 { font-size: 1.28rem; }
.metrics { gap: .7rem; }
.metrics a {
  position: relative; min-height: 91px; background: #f2f6ec; border: 1px solid #dce7d7; padding: .75rem .95rem;
  transition: transform .2s ease, background .2s ease, border-color .2s ease; border-radius: .75rem;
}
.metrics a:hover { transform: translateY(-3px); background: #e9f2df; }
.metrics a span { color: #385446; font-size: .88rem; font-weight: 650; }
.metrics strong { font-family: var(--serif); font-weight: 500; font-size: 2.05rem; line-height: 1.15; margin-top: .25rem; }
.quick-links { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .85rem; }
.quick-links a { text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: .65rem; padding: .5rem .8rem; min-height: 44px; background: #fffefa; font-size: .9rem; font-weight: 660; }
.quick-links a:hover { background: #e9f2df; }
.empty { background: #f6f7f0; border-color: #d6e0d2; color: #4c6255; }
table thead th { background: #eef3e9; }
button { transition: background .18s ease, transform .18s ease; }
button:hover { transform: translateY(-1px); }
:focus-visible { outline: 3px solid #974b19; }
@keyframes rise-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes wind-pan { from { transform: scale(1.02) translateX(0); } to { transform: scale(1.10) translateX(-1.35%); } }
@media (max-width: 800px) {
  .login, .shell { grid-template-columns: minmax(0,1fr); }
  .login-brand { min-height: 285px; padding: 1.4rem 1.2rem; gap: .65rem; }
  .login-brand h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .login-brand .cover-copy { padding-block: .45rem; }
  .login-panel { padding: 1.5rem 1.1rem 2.4rem; }
  .sidebar { padding: .65rem .7rem; }
  .sidebar .brand { margin: .1rem .4rem .45rem; }
  .sidebar nav { flex-direction: row; flex-wrap: wrap; gap: .15rem; }
  .sidebar nav a { gap: .35rem; padding-inline: .42rem; min-height: 42px; }
  .sidebar nav .signout { margin-top: 0; border: none; }
  .workspace { padding: .95rem; }
  .farm-cover { min-height: 185px; }
  .farm-cover.cover-compact { min-height: 140px; }
}
@media (max-width: 420px) {
  .metrics a { min-height: 60px; }
  .metrics strong { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce), print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .duties-shell .farm-cover { min-height: 0; background: white; color: black; padding: 0; }
  .duties-shell .farm-cover::before, .duties-shell .farm-cover::after { display: none; }
  .duties-shell .farm-cover .cover-meta, .duties-shell .farm-cover .eyebrow { color: #294339; }
}


/* The signed-in workspace concentrates on today’s work. */
.app-shell { background: #eef3ed; }
.app-shell .sidebar { background: #142b23; }
.app-shell .sidebar nav { position: sticky; top: 1.4rem; }
.nav-label { color: #a9c2ae; margin: 1.25rem .6rem .27rem; font-size: .69rem; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; }
.app-shell .workspace { gap: 1.15rem; padding-top: clamp(1.25rem,4vw,3.1rem); }
.workspace-top {
  display: flex; justify-content: space-between; align-items: end; gap: 1rem;
  background: linear-gradient(90deg,#f7faf2 42%, #f7faf2ec 66%, #f7faf260), url("/field-lines.svg") right 58% / cover;
  border: 1px solid #d6e3d5; border-radius: 1.15rem; padding: clamp(1rem, 3vw, 2.1rem); min-height: 132px;
}
.workspace-top h1 { font: 770 clamp(1.9rem,3.9vw,3.15rem)/1.09 system-ui,sans-serif; letter-spacing: -.058em; }
.workspace-top .eyebrow { font-size: .75rem; margin-bottom: .4rem; }
.farm-context { margin: 0; font-size: .83rem; font-weight: 700; background: #eaf2e5; color: #234435; padding: .34rem .64rem; border-radius: .48rem; }
.view-date { font-size: .9rem; color: #4b6154; }
.portal-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,170px),1fr)); gap: .72rem; }
.portal-metric {
  display: grid; align-content: start; gap: .35rem; padding: 1.02rem; min-width: 0; min-height: 130px;
  color: #183d2a; background: #fffefa; border: 1px solid #d8e4d6; border-radius: .9rem; text-decoration: none;
  box-shadow: 0 3px 12px #14362308; transition: box-shadow .2s, transform .2s; animation: rise-in .4s both;
}
.portal-metric:hover { transform: translateY(-3px); box-shadow: 0 8px 17px #14362312; }
.portal-metric:nth-child(2) { animation-delay: .05s; }
.portal-metric:nth-child(3) { animation-delay: .1s; }
.portal-metric:nth-child(4) { animation-delay: .15s; }
.portal-metric span { font-weight: 700; font-size: .87rem; }
.portal-metric strong { font-size: 1.95rem; line-height: 1.05; letter-spacing: -.055em; }
.portal-metric small, .action-grid small { color: #506457; font-size: .81rem; }
.portal-columns { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: .9rem; align-items: start; }
.portal-columns .panel { animation: rise-in .45s both; }
.action-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); gap: .64rem; }
.action-grid a { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: .2rem .6rem; padding: .76rem; color: #193f2c; text-decoration: none; background: #f1f6ed; border: 1px solid #dee8dc; border-radius: .65rem; }
.action-grid a:hover { background: #e6f1e1; }
.action-grid a small { grid-column: 1; }
.action-grid a span { grid-column: 2; grid-row: 1 / 3; align-self: center; font-size: 1.25rem; }
.attention-list { padding-inline-start: 1.15rem; }
.attention-list li + li { margin-top: .7rem; }
.back-link { color: #255c3e; font-weight: 660; }
.animal-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,128px),1fr)); gap: .55rem; margin: 0; }
.animal-summary div { background: #f2f6ef; padding: .68rem; border-radius: .55rem; }
.animal-summary dt { font-size: .8rem; color: #4b6255; }
.animal-summary dd { margin: .22rem 0 0; font-weight: 700; overflow-wrap: anywhere; }
.checkline { display:flex; align-items:center; gap:.5rem; }
.checkline input { width:1.22rem; min-height:1.22rem; flex:0 0 auto; }
@media(max-width:900px) { .portal-columns { grid-template-columns: minmax(0,1fr); } }
@media(max-width:800px) {
  .app-shell .sidebar nav { position: static; overflow-x: auto; flex-wrap: nowrap; }
  .app-shell .sidebar nav a { flex: 0 0 auto; }
  .nav-label { display: none; }
}
@media(max-width:450px) {
  .portal-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portal-metric { min-height: 111px; padding: .73rem; }
  .farm-context { display: none; }
}
@media(prefers-reduced-motion:reduce),print {
 .portal-metric, .portal-columns .panel { animation:none; transition:none; }
}
@media print {
 .duties-shell .workspace-top { background:white; border:0; min-height:0; padding:.3rem 0; }
}

.report-tabs { display:flex; flex-wrap:wrap; gap:.5rem; }
.report-tabs a { display:inline-flex; align-items:center; min-height:44px; padding:.5rem .76rem; border:1px solid #d1e1d2; border-radius:.55rem; color:#234435; text-decoration:none; background:#fffefa; }
.report-tabs a[aria-current="page"] { background:#24503a; color:#fff; border-color:#24503a; }
.report-export { display:flex; justify-content:space-between; gap:.75rem; align-items:center; flex-wrap:wrap; }
.report-export p { flex:1 1 14rem; color:var(--muted); }
.report-chart { list-style:none; padding:0; margin:0; display:grid; gap:.6rem; }
.report-chart li { display:grid; grid-template-columns:minmax(7rem,1fr) minmax(3rem,3fr) 2.5rem; align-items:center; gap:.55rem; }
.report-chart meter { width:100%; height:1.15rem; accent-color:#2b6948; }
.report-chart li strong { text-align:right; font-variant-numeric:tabular-nums; }
.report-table td,.report-table th { min-width:5.5rem; }
.report-table td:last-child { white-space:nowrap; }
.record-list li:target, tr:target { background:#e5f0df; }

.workspace-top.command-cover {
  min-height: clamp(11rem,20vw,17rem); align-items: end;
  background: linear-gradient(90deg,#0f3024f5,#133824d9 43%,#162f2340),url("/field-lines.svg") center 58%/cover;
  color: #fff; padding: clamp(1.35rem,4vw,3rem);
}
.command-cover h1 { color:#fff; font:500 clamp(2.4rem,5vw,4.75rem)/1.02 var(--serif); max-width:13ch; }
.command-cover .eyebrow { color:#e3f4bd; }
.command-links { display:flex; gap:.55rem; flex-wrap:wrap; margin-bottom:.85rem; }
.command-links a { display:inline-flex; align-items:center; min-height:44px; border-radius:.6rem; padding:.5rem .9rem; background:#213f30; color:white; text-decoration:none; }
.command-links a:hover { background:#355e43; }
.login-brand .cover-copy h1 { max-width:12ch; font-size:clamp(2.6rem,7vw,6.7rem); }

@media(max-width:800px) {
  .app-shell .sidebar { padding:.85rem; }
  .app-shell .sidebar .brand { margin:0 .35rem .65rem; }
  .app-shell .sidebar nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; gap:.25rem; }
  .app-shell .sidebar nav a { min-height:44px; font-size:.86rem; line-height:1.15; padding:.35rem .45rem; gap:.35rem; overflow-wrap:anywhere; }
  .app-shell .sidebar .nav-label { display:block; grid-column:1/-1; margin:.35rem .4rem .1rem; }
  .app-shell .sidebar .signout { margin:0; }
}

/* Overseer workspace */
.app-shell {
  --ink:#182923; --accent:#2c6249; --accent-dark:#214b37;
  --line:#e0e7df; --muted:#526159;
  background:#f3f6f1;
  grid-template-columns:244px minmax(0,1fr);
}
.app-shell .sidebar {
  background:#112820;
  padding:1.3rem .9rem;
  position:sticky; top:0; align-self:start; height:100dvh; overflow-y:auto;
}
.app-shell .sidebar .brand { margin:.25rem .65rem 1.5rem; }
.app-shell .sidebar nav { gap:.17rem; }
.app-shell .sidebar .nav-label { color:#adc5b6; letter-spacing:.11em; font-size:.72rem; margin:.9rem .68rem .22rem; }
.app-shell .sidebar nav a { font-size:.9rem; padding:.54rem .68rem; min-height:44px; }
.app-shell .sidebar a[aria-current="page"] { background:#254634; color:#f8fff3; box-shadow:inset 3px 0 0 #c5e99e; }
.app-shell .workspace { max-width:1580px; padding:clamp(1.12rem,2.8vw,2.7rem); gap:1rem; }
.app-shell .panel { background:#fff; border-radius:1.05rem; box-shadow:0 3px 15px #17362806; }
.app-shell .workspace-top:not(.command-cover) { background:#e9f0e6; min-height:118px; align-items:end; }
.app-shell .workspace-top.command-cover {
  min-height:clamp(12rem,19vw,16.8rem); border:0; position:relative; isolation:isolate; overflow:hidden;
  background:#17382b; align-items:end;
}
.command-cover::before {
  content:""; position:absolute; inset:0; z-index:-2;
  background:url("/field-lines.svg") 69% 62%/cover no-repeat;
  animation:wind-pan 29s ease-in-out infinite alternate;
}
.command-cover::after {
  content:""; position:absolute; inset:0; z-index:-1;
  background:linear-gradient(94deg,#122d22f5 2%,#122d22e6 34%,#173b2d64 78%),linear-gradient(0deg,#122d229c,transparent);
}
.app-shell .command-cover h1 { max-width:22ch; font-size:clamp(2.3rem,4.6vw,4.4rem); line-height:1.03; }
.command-cover .farm-context { background:#183a2a; color:#e5f3d9; border:1px solid #bad4b45c; }
.command-shell .view-date { font-weight:650; align-self:center; padding:.1rem 0; }
.command-shell .command-links { gap:.45rem; margin:0; }
.command-shell .command-links a { background:#e3eee0; color:#224633; border:1px solid #d7e6d5; font-size:.88rem; font-weight:650; }
.command-shell .command-links a:hover { background:#cfe3cd; }
.command-shell .portal-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.65rem; }
.command-shell .portal-metric { min-height:6.4rem; background:#fff; padding:.9rem .95rem; border-radius:.85rem; border-color:#e1e9df; }
.command-shell .portal-metric strong { font-size:1.8rem; }
.command-shell .portal-metric span { color:#315445; }
.command-layout { display:grid; grid-template-columns:minmax(0,1.65fr) minmax(16rem,1fr); align-items:start; gap:1rem; }
.command-primary,.command-secondary { display:grid; gap:1rem; min-width:0; align-content:start; }
.command-primary .portal-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
.command-secondary .action-grid { grid-template-columns:minmax(0,1fr); }
.command-secondary .panel > .empty { margin-bottom:0; }
.command-secondary h2,.command-primary h2 { color:#183a2a; line-height:1.2; }
.command-secondary .attention-list { margin:.25rem 0 .75rem; padding-left:1.2rem; }
.command-secondary .attention-list a { text-underline-offset:3px; }
.dashboard-panel-head { display:flex; flex-wrap:wrap; align-items:start; justify-content:space-between; gap:.65rem; }
.dashboard-panel-head p { font-size:.88rem; color:var(--muted); margin-top:.38rem; }
.dashboard-tabs { display:flex; flex-wrap:wrap; gap:.23rem; padding:.18rem; width:max-content; max-width:100%; border-radius:.63rem; background:#edf2ec; }
.dashboard-tabs a { display:inline-flex; align-items:center; justify-content:center; padding:.36rem .6rem; min-height:44px; color:#385446; font-weight:650; font-size:.83rem; text-decoration:none; border-radius:.48rem; }
.dashboard-tabs a[aria-current="true"] { color:#fff; background:#284c3b; }
.dashboard-chart { display:flex; gap:clamp(2px,.65vw,9px); height:148px; padding:0 .15rem; margin-top:.75rem; align-items:end; border-bottom:1px solid #dfe9df; background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#e8eee7 calc(25% - 1px),#e8eee7 25%); }
.dashboard-chart a { flex:1; min-width:0; height:100%; display:grid; align-items:end; padding-inline:1px; }
.dashboard-chart svg { display:block; width:100%; height:100%; fill:#548465; transition:fill .18s; }
.dashboard-chart a:hover svg,.dashboard-chart a:focus-visible svg { fill:#2b5540; }
.dashboard-chart .zero-bar { fill:#c2d1c4; }
.dashboard-panel-foot { display:flex; flex-wrap:wrap; align-items:center; gap:.35rem 1rem; justify-content:space-between; margin-top:.8rem; font-size:.87rem; color:var(--muted); }
.dashboard-panel-foot a,.dashboard-link { font-weight:690; text-underline-offset:3px; min-height:44px; display:inline-flex; align-items:center; }
.dashboard-queue { list-style:none; margin:0; padding:0; }
.dashboard-queue a { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.18rem .6rem; padding:.57rem 0; text-decoration:none; align-items:start; border-top:1px solid var(--line); }
.dashboard-queue a:hover strong { text-decoration:underline; text-underline-offset:3px; }
.dashboard-queue strong { overflow-wrap:anywhere; font-size:.9rem; }
.dashboard-queue small { grid-column:2; overflow-wrap:anywhere; font-size:.79rem; }
.queue-type { background:#eaf1e6; color:#365445; border-radius:.3rem; padding:.11rem .35rem; font-size:.72rem; font-weight:700; }
.dashboard-balances { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:0; gap:.6rem; }
.dashboard-balances div { padding:.65rem .8rem; border-radius:.6rem; background:#eef4ed; }
.dashboard-balances dt { color:#3e594a; font-size:.85rem; }
.dashboard-balances dd { font-size:1.4rem; font-weight:690; margin:.25rem 0 0; overflow-wrap:anywhere; }
.menu-toggle { background:#264737; color:#f1f9ec; border-color:#426151; border-radius:.55rem; font-size:.9rem; padding:.5rem .85rem; }
@media(max-width:1120px) {
  .command-primary .portal-columns { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:900px) {
  .command-layout { grid-template-columns:minmax(0,1fr); }
  .command-primary,.command-secondary { display:contents; }
  .command-secondary > :first-child { order:-1; }
}
@media(max-width:800px) {
  .app-shell { grid-template-columns:minmax(0,1fr); }
  .app-shell .sidebar { position:relative; height:auto; top:auto; overflow:visible; padding:.65rem .95rem; }
  .app-shell .sidebar-head { display:flex; justify-content:space-between; align-items:center; gap:.5rem; }
  .app-shell .sidebar .brand { margin:0; }
  .app-shell .sidebar nav { margin-top:.48rem; }
  .app-shell .sidebar .nav-label { margin:.48rem .39rem .1rem; }
  .app-shell .sidebar nav a { padding:.35rem .4rem; gap:.27rem; }
  .app-shell .workspace { padding:.9rem; }
}
@media(max-width:520px) {
  .command-shell .portal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .command-shell .portal-metric { min-height:6rem; padding:.68rem .72rem; }
  .command-shell .portal-metric strong { font-size:1.52rem; }
  .dashboard-chart { height:116px; }
  .dashboard-chart a { padding:0; }
}

.purchase-links { display:flex; flex-wrap:wrap; gap:.4rem 1rem; font-weight:650; text-underline-offset:3px; }
.purchase-links a { display:inline-flex; min-height:44px; align-items:center; }
.purchase-state { display:inline-flex; padding:.18rem .6rem; background:#e4eee0; color:#284735; border-radius:1rem; font-size:.9rem; font-weight:700; }
.purchase-purpose { color:var(--muted); margin:.55rem 0 1rem; }
.purchase-steps { list-style:none; padding:0; margin:0 0 1rem; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; }
.purchase-steps li { display:grid; grid-template-columns:auto minmax(0,1fr); gap:.12rem .45rem; padding:.6rem; background:#f2f5f1; border:1px solid #e3eae0; border-radius:.55rem; align-items:center; }
.purchase-steps li[aria-current="step"] { background:#e2efe0; border-color:#b6d1b8; }
.purchase-steps li span { grid-row:span 2; display:grid; place-items:center; width:1.65rem; height:1.65rem; border-radius:50%; color:#fff; background:#355c46; font-size:.86rem; }
.purchase-steps li small { font-size:.77rem; }
.purchase-steps li strong { font-size:.86rem; overflow-wrap:anywhere; }
@media(max-width:620px) { .purchase-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }

.command-shell .command-links .priority-shortcut { background:#26503b; color:#fff; border-color:#26503b; }
.command-shell .command-links .priority-shortcut:hover { background:#1c3c2c; }
@media(max-width:800px) {
  .app-shell .sidebar nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell .sidebar nav a { overflow-wrap:normal; gap:.5rem; }
}
@media(max-width:520px) {
  .command-shell .portal-metric { min-height:5.25rem; }
  .command-shell .portal-metric small { display:none; }
}

@media(min-width:1180px) {
  .app-shell .workspace-top.command-cover { min-height:12rem; }
  .command-shell .portal-metrics { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .app-shell .sidebar { scrollbar-width:thin; scrollbar-color:#436451 #112820; }
}

.app-shell .sidebar .nav-group { display:grid; gap:.15rem; min-width:0; }
.app-shell .sidebar .nav-search {
  display:flex; justify-content:space-between; align-items:center; gap:.35rem;
  background:#203b2d; border:1px solid #3a5445; font-size:.85rem; text-align:left;
}
.nav-search kbd { padding:.04rem .25rem; font-size:.72rem; border:1px solid #5c7165; border-radius:.23rem; }
.mobile-dock { display:none; }
#workspace-search {
  width:min(34rem,calc(100vw - 1.5rem)); max-height:min(80dvh,52rem);
  color:var(--ink); border:1px solid #cbd8ca; border-radius:1rem; padding:1.2rem; box-shadow:0 14px 50px #10241949;
}
#workspace-search::backdrop { background:#172a23a0; }
#workspace-search header { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:1rem; }
#workspace-search [data-nav-results] { display:grid; grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); gap:.4rem; margin-top:.7rem; }
#workspace-search [data-nav-results] a { display:flex; align-items:center; min-height:44px; border-radius:.5rem; padding:.32rem .55rem; background:#edf4ec; }
#workspace-search [data-nav-status] { color:var(--muted); font-size:.88rem; margin-top:.6rem; }
.feed-spread { grid-column:1/-1; }
.feed-ingredients { margin:.45rem 0; padding-left:1.4rem; font-size:.91rem; }
.record-list .feed-ingredients li { border:0; padding:.23rem 0; }
.feed-note { font-size:.91rem; color:var(--muted); margin-top:.75rem; }
.pin-device { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; margin-bottom:.8rem; }
.pin-device [role=status] { font-size:.9rem; color:var(--muted); }
.orchard-photo-controls,.orchard-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); gap:.7rem; }
.orchard-photo-controls form { display:grid; gap:.7rem; }
.orchard-gallery { margin-top:1rem; align-items:start; }
.orchard-gallery figure { margin:0; min-width:0; overflow:hidden; background:#f0f5ee; border:1px solid var(--line); border-radius:.65rem; }
.orchard-gallery img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.orchard-gallery figcaption { padding:.55rem .7rem; overflow-wrap:anywhere; }
.orchard-gallery figcaption small { display:block; }
.report-csv { display:inline-flex; align-items:center; min-height:44px; font-weight:650; }

@media(max-width:800px) {
  .app-shell .sidebar nav { display:block; }
  .app-shell .sidebar .nav-group { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-shell .sidebar .nav-search { width:100%; margin:.5rem 0; }
  .app-shell:has(.mobile-dock button:not([hidden])) .workspace { padding-bottom:5rem; }
  .app-shell .mobile-dock:has(button:not([hidden])) {
    display:flex; position:fixed; inset:auto 0 0; justify-content:space-evenly; background:#112820; color:#eef7ef;
    padding:.21rem .38rem calc(.21rem + env(safe-area-inset-bottom)); border-top:1px solid #486650; z-index:3;
  }
  .mobile-dock a,.mobile-dock button {
    flex:1; max-width:11em; text-decoration:none; display:grid; justify-items:center; align-content:center;
    min-height:49px; padding:.15rem; font-size:.79rem; line-height:1.2; color:#edf7ec; border-radius:.45rem; background:transparent;
  }
  .mobile-dock a[aria-current=page] { background:#294b38; color:#fff; font-weight:680; }
}
@media print { .app-shell .mobile-dock { display:none !important; } }
.ration-line { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); gap:.45rem; min-width:0; }
details > .ration-line + .ration-line { margin-top:.5rem; }

.feed-reconciliation { margin:.75rem 0 0; padding:.7rem .85rem; background:#edf4ec; border-radius:.65rem; border:1px solid var(--line); }
.feed-allocation { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:.5rem .6rem .7rem; gap:.6rem; border:1px solid var(--line); border-radius:.55rem; }
.feed-allocation legend { font-weight:680; padding-inline:.25rem; overflow-wrap:anywhere; }
@media(max-width:580px) { .feed-allocation { grid-template-columns:minmax(0,1fr); } }

.orchard-camera { display:grid; justify-items:start; gap:.5rem; }
.orchard-camera video,.orchard-camera img { display:block; width:100%; max-height:26rem; border-radius:.6rem; background:#152922; object-fit:contain; }
.camera-actions { display:flex; flex-wrap:wrap; gap:.45rem; }
.scan-result { margin-top:.6rem; padding:.55rem; border-radius:.45rem; background:#e3efe2; }
.scan-result ul { margin:.35rem 0; padding-left:1.2rem; }

.farm-map-canvas { height:clamp(19rem,54vh,36rem); margin:.65rem 0; border-radius:.75rem; overflow:hidden; background:#e8efe6; }
.farm-map-inner { width:100%; height:100%; }
.map-tools,.map-legacy-search { display:flex; flex-wrap:wrap; align-items:end; gap:.5rem; margin-bottom:.5rem; }
.map-legacy-search label,.map-place-search { flex:1 1 14rem; }
.map-place-search gmp-place-autocomplete { width:100%; }
.map-selection { grid-column:1/-1; }
.map-selection output { margin-left:.3rem; }
.map-coordinates { grid-column:1/-1; }
.map-coordinate-fields { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,11rem),1fr)); gap:.55rem; }
.farm-ai-answer { border-left:4px solid #44765b; background:#edf4ec; margin:.25rem 0 .95rem; border-radius:.55rem; padding:.8rem 1rem; }
.farm-ai-answer p { overflow-wrap:anywhere; white-space:pre-line; }

.device-page { max-width: 54rem; }
.device-page > header, .device-page > .panel { margin-block-end: 1rem; }
.device-page [data-offline-content] { min-width: 0; }
.device-page [data-offline-content] > h3 { margin-top: 1rem; }
[data-offline-save] { margin-block: .8rem; }
[data-workspace-content] { display: contents; }
.device-queue { max-height: min(40vh, 19rem); overflow: auto; }
.device-queue ul { padding-inline-start: .5rem; list-style: none; }
.device-queue li { padding-block: .5rem; overflow-wrap: anywhere; }
.install-action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .5rem .85rem; border: 1px solid currentColor;
  border-radius: .55rem; font-weight: 700; text-align: center;
}
.install-action[aria-busy="true"] { cursor: progress; }
.entry-install { margin-top: 1rem; }
#device-steps { scroll-margin-top: 1rem; }
#device-steps > .panel { margin-block-end: 1rem; }
.entry-install .install-action, .command-cover .install-action {
  color: #eef8e5; background: #193b2c; border-color: #a9cb9e;
}
.install-action:focus-visible { outline: 3px solid #b88e2a; outline-offset: 3px; }

body:has(.operations-shell) { background:#071411; }
.app-shell.operations-shell {
  --ink:#edf8f2;
  --muted:#a4bdb4;
  --line:#28463c;
  --paper:#0b1b17;
  --accent:#95f1c7;
  --accent-dark:#b2f7d7;
  --green:#10231c;
  --lime:#b7f7d2;
  color:var(--ink);
  background:radial-gradient(ellipse at 75% 0,#123127,#071411 55%);
  grid-template-columns:224px minmax(0,1fr);
}
.operations-shell a { color:var(--accent); }
.operations-shell :focus-visible { outline-color:#b4f6d1; outline-offset:3px; }
.operations-shell .sidebar { background:#091a15; border-color:#29453c; scrollbar-color:#426e5e #091a15; overflow-x:hidden; }
.operations-shell .sidebar nav { position:static; }
.operations-shell .sidebar nav a { color:#c6ddd4; }
.operations-shell .sidebar a[aria-current="page"] { background:#1b3b30; color:#eaffe9; box-shadow:inset 3px 0 #84edbd; }
.operations-shell .sidebar nav .signout { border-color:var(--line); }
.operations-shell .mukupa-brand { align-items:center; gap:.7rem; }
.mukupa-brand strong { display:block; font-size:1.32rem; letter-spacing:-.035em; line-height:1.15; font-weight:770; }
.mukupa-brand small,.operator-credit small { display:block; color:#b3cec2; font-size:.6rem; font-weight:700; letter-spacing:.11em; }
.mukupa-mark {
  display:grid; place-items:center; width:2.5rem; height:2.5rem; flex:none; border-radius:10px;
  border:1px solid #79ba9e; background:#183b30;
  color:#aaf4d1; font:650 1.35rem/1 system-ui,sans-serif; box-shadow:0 0 1rem #76e9bc24;
}
.operator-credit { border-left:2px solid #a48959; padding:.1rem .6rem; margin:0 .65rem .95rem; }
.operations-shell .sidebar .nav-search kbd { white-space:nowrap; flex-shrink:0; }
.operator-credit strong { display:block; margin-top:.2rem; color:#ebd4a6; font-size:.84rem; }
.app-shell.operations-shell .workspace { width:100%; padding:clamp(1rem,2vw,2rem); }
.app-shell.operations-shell .workspace-top {
  border:1px solid var(--line); border-radius:.8rem; min-height:7rem; background:#10251e; color:var(--ink);
}
.app-shell.operations-shell .command-cover {
  min-height:clamp(9rem,14vw,12rem);
  background:#0c2219;
}
.operations-shell .command-cover::before { opacity:.54; }
.operations-shell .command-cover::after {
  background:linear-gradient(90deg,#0b211ae8 4%,#0b211a8a 70%),repeating-linear-gradient(90deg,#a0dabe1c 0 1px, transparent 1px 70px);
}
.app-shell.operations-shell .command-cover h1 { font-size:clamp(2rem,4vw,3.8rem); }
.operations-shell .eyebrow { color:#a1eac6; }
.workspace-tools { display:flex; gap:.6rem; flex-wrap:wrap; justify-content:flex-end; align-items:center; }
.operations-shell .farm-context,.operations-shell .sound-control { color:#e0f3e9; background:#142d25; border:1px solid #355c4c; }
.operations-shell .sound-control { font-size:.84rem; }
.operations-shell .sound-control[aria-pressed="true"] { color:#97f5c6; border-color:#6ec3a0; }
.operations-shell .panel,.operations-shell .overview {
  color:var(--ink); background:#0e211c; border-color:var(--line); border-radius:.8rem; box-shadow:0 10px 27px #03130d5c;
}
.operations-shell h2,.operations-shell h3,.operations-shell h4 { color:var(--ink); }
.operations-shell .portal-metric,.operations-shell .action-grid a,
.operations-shell .metrics a,.operations-shell .quick-links a,
.operations-shell .dashboard-balances div,.operations-shell .command-links a {
  background:#142c24; border-color:#305447; color:var(--ink);
}
.operations-shell .portal-metric:hover,.operations-shell .action-grid a:hover,
.operations-shell .command-links a:hover,.operations-shell .metrics a:hover,
.operations-shell .quick-links a:hover { background:#1b392f; border-color:#69a48d; }
.operations-shell .portal-metric span,.operations-shell .metrics a span,.operations-shell .dashboard-balances dt { color:#c1ded2; }
.operations-shell .portal-metric strong { color:#a8fad4; font-variant-numeric:tabular-nums; font-size:clamp(1.34rem,2vw,1.85rem); }
.operations-shell .portal-metric small { color:var(--muted); }
.operations-shell .command-links a.priority-shortcut { color:#ffe2a9; border-color:#896e3f; }
.operations-shell .empty,.operations-shell .feed-reconciliation,.operations-shell .animal-summary div,
.operations-shell .scan-result,.operations-shell .farm-ai-answer,.operations-shell .orchard-gallery figure,
.operations-shell .notice,.operations-shell .purchase-steps a,.operations-shell .queue-type {
  background:#142e25; border-color:#36584c; color:#d6ece1;
}
.operations-shell .success-message { background:#163629; color:#baf7d8; border-color:#6f9d84; }
.operations-shell .record-list li:target { background:#1d3e30; }
.operations-shell .dashboard-tabs,.operations-shell .report-tabs,.operations-shell .report-tabs a {
  background:#102a22; color:#c0dfd4; border-color:#355648;
}
.operations-shell .dashboard-tabs a { color:#bcd9cd; }
.operations-shell .dashboard-tabs a[aria-current="true"],.operations-shell .report-tabs a[aria-current] {
  color:#e5fff0; background:#27604a;
}
.operations-shell .dashboard-chart {
  border-color:#3e6c5a;
  background:repeating-linear-gradient(to top,transparent 0,transparent calc(25% - 1px),#25483a calc(25% - 1px),#25483a 25%);
}
.operations-shell .dashboard-chart svg { fill:#69d9a9; }
.operations-shell .dashboard-chart a:hover svg,.operations-shell .dashboard-chart a:focus-visible svg { fill:#b4f9d8; }
.operations-shell .dashboard-chart .zero-bar { fill:#46675b; }
.operations-shell select,.operations-shell textarea,.operations-shell input:not([type="checkbox"]):not([type="radio"]) {
  color:var(--ink); background:#0b1a16; border-color:#426657; color-scheme:dark;
}
.operations-shell input[type="checkbox"],.operations-shell input[type="radio"] { accent-color:#82e6b8; }
.operations-shell input::placeholder,.operations-shell textarea::placeholder { color:#94aba2; }
.operations-shell button:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out) { background:#1a4a37; color:#ecfff5; border-color:#417b61; }
.operations-shell button:hover:not(:disabled) { background:#27644b; }
.operations-shell button:disabled { opacity:.58; }
.operations-shell table thead th { background:#17352a; color:#deeee5; }
.operations-shell .table-wrap,.operations-shell td,.operations-shell th { border-color:#294b3e; }
.operations-shell #workspace-search { background:#0d211b; color:var(--ink); border-color:#426f5c; }
.operations-shell #workspace-search [data-nav-results] a { background:#18372b; }
.operations-shell #workspace-search::backdrop { background:#06110ec9; }
.operations-shell .command-layout { grid-template-columns:minmax(0,1.75fr) minmax(15rem,1fr); }
.atlas-header { display:flex; align-items:start; justify-content:space-between; gap:.75rem; }
.atlas-header h2 { margin-bottom:.23rem; }
.atlas-header p { color:var(--muted); font-size:.86rem; }
.atlas-header a { min-height:44px; display:inline-flex; align-items:center; white-space:nowrap; }
.atlas-stats {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin:.6rem 0; padding:0;
}
.atlas-stats div { min-width:0; background:#132d24; border:1px solid #2d5042; border-radius:.45rem; padding:.56rem .65rem; }
.atlas-stats dt { color:#bbd4c9; font-size:.78rem; }
.atlas-stats dd { margin:.22rem 0 0; color:#a9f7d3; font-weight:730; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.atlas-empty {
  display:grid; align-content:center; min-height:11rem; gap:.35rem; padding:1.25rem; border:1px dashed #436b5b; border-radius:.57rem;
  background:repeating-linear-gradient(90deg,#28483b44 0 1px,transparent 1px 30px),repeating-linear-gradient(#28483b44 0 1px,transparent 1px 30px),#091a15;
}
.atlas-empty p { color:var(--muted); }
.atlas-panel .farm-map-canvas { height:clamp(19rem,34vw,32rem); }
.operations-shell .farm-map-canvas { border:1px solid #456452; background:#203d34; }
.operations-shell .leaflet-container a,.operations-shell .map-popup a { color:#185843; }
.operations-shell .map-popup { color:#142822; }
.operations-shell .farm-map-canvas button { color:#182622; background:#f6fff9; }
.atlas-legend { display:flex; flex-wrap:wrap; gap:.48rem; }
.atlas-legend button { display:grid; justify-items:start; text-align:left; padding:.37rem .65rem; border:1px solid #417b61; }
.atlas-legend small { color:#c2e4d5; }
#boundary-editor { border:1px solid #467860; padding:.7rem; margin-top:.7rem; border-radius:.5rem; }
#boundary-editor output { line-height:2; color:#a9f7d3; }
.ops-gauges { display:grid; gap:.5rem; }
.ops-gauge {
  display:grid; grid-template-columns:3.1rem minmax(0,1fr); align-items:center; gap:.65rem; padding:.5rem .65rem;
  text-decoration:none; background:#142d24; border-radius:.48rem; border:1px solid #2d5042;
}
.ops-gauge strong,.ops-gauge small { display:block; }
.ops-gauge span { color:#c3fae0; font-weight:780; font-size:1.25rem; font-variant-numeric:tabular-nums; }
.ops-gauge small { color:var(--muted); }
.ops-gauge circle { fill:none; stroke-width:3; }
.gauge-track { stroke:#32584a; }
.gauge-fill { stroke:#90edc2; stroke-linecap:round; }
.ops-gauge:hover { border-color:#7db6a1; }
.nav-loader { position:fixed; inset:0 100% auto 0; height:3px; z-index:1001; pointer-events:none; }
.nav-loader.is-navigating { background:#90edc2; box-shadow:0 0 12px #90edc2; width:45%; animation:os-transfer .95s infinite ease-in-out alternate; }
@keyframes os-transfer { from { transform:translateX(-95%); } to { transform:translateX(225%); } }
@media (max-width:1080px) {
  .operations-shell .command-layout { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:800px) {
  .app-shell.operations-shell { grid-template-columns:minmax(0,1fr); }
  .operations-shell .sidebar { border-bottom:1px solid #28463c; overflow-x:visible; }
  .operations-shell .operator-credit { margin:.45rem 0 .1rem; }
  .app-shell.operations-shell:has(.mobile-dock button:not([hidden])) .workspace { padding-bottom:calc(4.4rem + env(safe-area-inset-bottom)); }
  .app-shell.operations-shell .sidebar .nav-group { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .operations-shell .nav-group .nav-label { grid-column:1/-1; }
  .operations-shell .workspace-tools { justify-content:flex-start; }
  .app-shell.operations-shell .workspace-top { justify-content:space-between; flex-wrap:wrap; gap:.5rem; }
  .operations-shell .portal-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .operations-shell .portal-metric { padding:.65rem; min-height:5.6rem; }
  .operations-shell .command-primary .portal-columns { grid-template-columns:minmax(0,1fr); }
  .app-shell.operations-shell .mobile-dock:has(button:not([hidden])) { z-index:500; background:#0b2018; }
  .operations-shell .atlas-stats div { padding:.47rem; }
  .operations-shell .atlas-panel .farm-map-canvas { height:19.5rem; }
}
@media (prefers-reduced-motion:reduce) {
  .operations-shell *,.operations-shell *::before,.operations-shell *::after { animation:none !important; transition:none !important; }
  .nav-loader.is-navigating { animation:none; }
}
@media print {
  body:has(.operations-shell),.app-shell.operations-shell { color:#142822; background:white; }
  .operations-shell .workspace { color:#142822; }
  .operations-shell .panel,.operations-shell .workspace-top,.operations-shell .workspace-top * {
    background:white !important; color:#142822 !important; box-shadow:none;
  }
  .operations-shell th,.operations-shell td,.operations-shell a,.operations-shell h2,.operations-shell h3,.operations-shell .empty { color:#142822 !important; }
  .operations-shell .sound-control,.nav-loader { display:none !important; }
}

/* Workspace shell */
.app-shell.operations-shell {
  --masthead-height:69px;
  --sidebar-width:238px;
  --shell-line:#2a423b;
  --icon-surface:#11201c;
  grid-template-columns:var(--sidebar-width) minmax(0,1fr);
  grid-template-rows:auto 1fr;
  background:radial-gradient(ellipse at 74% 1%,#152922,#0b1714 59%,#0a1513);
}
.workspace-icon { display:block; flex:none; width:1.19rem; height:1.19rem; }
.app-masthead {
  grid-column:1/-1;
  position:sticky; top:0; z-index:750;
  display:grid; grid-template-columns:var(--sidebar-width) minmax(100px,1fr) auto;
  align-items:center; gap:0; min-height:var(--masthead-height);
  padding-right:clamp(.9rem,2vw,2rem); background:#0c1816f7; border-bottom:1px solid var(--shell-line);
  box-shadow:0 7px 20px #030c0a38;
}
.app-home { display:flex; min-width:0; width:fit-content; margin-left:1.15rem; text-decoration:none; }
.operations-shell .app-home .brand { color:#f1f9f4; }
.app-home .mukupa-brand small { margin-top:.16rem; }
.app-home .mukupa-mark {
  width:2.45rem; height:2.45rem; border-radius:.62rem; border-color:#567d6c;
  background:linear-gradient(147deg,#214639,#122920 80%); box-shadow:inset 0 0 0 3px #0d201a70;
}
.section-path,.masthead-controls { display:flex; align-items:center; min-width:0; }
.section-path { gap:.48rem; margin:0 1.2rem; font-size:.83rem; color:#e2f0e8; }
.section-path a { color:#a9beb5; text-decoration:none; }
.section-path a:hover { color:#d8f7e5; }
.section-path .workspace-icon { width:.79rem; height:.79rem; color:#719587; }
.section-path > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.masthead-controls { gap:.68rem; justify-content:flex-end; }
.operations-shell .masthead-controls button.nav-search {
  display:inline-flex; gap:.48rem; align-items:center; justify-content:center; min-height:44px;
  background:#131f1c; border:1px solid #354a43; color:#c5d9cf; padding:.33rem .64rem;
  font-size:.8rem; font-weight:620;
}
.operations-shell .masthead-controls button.nav-search:hover { background:#1a3027; }
.masthead-controls .nav-search kbd { color:#afc7bb; white-space:nowrap; margin-left:.45rem; }
.connection-indicator {
  display:inline-flex; align-items:center; gap:.44rem; color:#abc4b9; background:#15231f;
  font-size:.75rem; font-weight:700; border:1px solid #344941; border-radius:2rem; padding:.36rem .55rem; white-space:nowrap;
}
.connection-dot { width:.43rem; height:.43rem; border-radius:50%; background:#b3c3ba; }
.connection-indicator[data-connection=online] { color:#b5f1d1; background:#152b22; border-color:#365f4e; }
.connection-indicator[data-connection=online] .connection-dot { background:#83e9b5; box-shadow:0 0 0 2px #82e9b57a; }
.connection-indicator:is([data-connection=offline],[data-connection=unavailable]) { color:#fee1ab; border-color:#65553b; background:#2b2419; }
.connection-indicator:is([data-connection=offline],[data-connection=unavailable]) .connection-dot { background:#efba74; }
.sync-queue-count { color:#ffdfa7; font-size:.74em; font-weight:750; }
.sync-queue-count[data-state=attention] { color:#ffb0a8; }
.offline-form-status { padding:.65rem .75rem; border:1px solid #647957; border-radius:.58rem; color:#edf3e5; background:#203126; }
.account-menu { position:relative; margin:0; min-width:0; }
.account-menu summary {
  list-style:none; display:flex; align-items:center; gap:.5rem; min-height:44px; padding:.24rem .28rem;
  border-radius:.45rem; color:#edf8f1; cursor:pointer;
}
.account-menu summary::-webkit-details-marker { display:none; }
.account-menu summary:hover,.account-menu[open] summary { background:#192c25; }
.account-initial {
  border:1px solid #635b43; background:#302c21; color:#f4daa7;
  width:2.04rem; height:2.04rem; flex:none; display:grid; place-items:center; border-radius:.46rem; font-size:.88rem; font-weight:740;
}
.account-summary { display:grid; gap:.08rem; line-height:1.11; min-width:0; }
.account-summary small { color:#9db8ac; font-size:.67rem; }
.account-summary strong { font-size:.8rem; }
.account-menu summary .workspace-icon { width:.82rem; height:.82rem; color:#aac3b6; transition:transform .16s; }
.account-menu[open] summary .workspace-icon { transform:rotate(180deg); }
.account-panel {
  position:absolute; top:calc(100% + .53rem); right:0; width:min(18rem,calc(100vw - 1.3rem));
  padding:.8rem; border:1px solid #3b574b; border-radius:.68rem; background:#10221c;
  box-shadow:0 16px 32px #040b08b3; animation:workspace-reveal .15s ease-out both;
}
.account-email { color:#e5f3eb; font-size:.9rem; overflow-wrap:anywhere; }
.account-panel ul { display:flex; flex-wrap:wrap; gap:.31rem; padding:0; margin:.46rem 0 .6rem; list-style:none; }
.account-panel li { font-size:.75rem; color:#bfd6ca; border:1px solid #375348; border-radius:.3rem; padding:.19rem .36rem; }
.operations-shell .account-panel :is(a,button) {
  display:flex; width:100%; align-items:center; gap:.55rem; text-align:left;
  color:#dcece4; background:transparent; text-decoration:none; padding:.5rem .35rem; font-size:.84rem;
}
.operations-shell .account-panel :is(a,button):hover { background:#223a31; }
.operations-shell .sidebar { grid-column:1; grid-row:2; top:var(--masthead-height); height:calc(100dvh - var(--masthead-height)); scrollbar-color:#344f44 #0d1b18; }
.app-shell.operations-shell .sidebar { padding:.82rem .75rem 1.2rem; background:#0d1b18; }
.operations-shell .workspace { grid-column:2; grid-row:2; }
.operations-shell .sidebar nav a,.operations-shell #section-drawer nav a {
  display:flex; position:relative; align-items:center; gap:.63rem; min-height:42px; padding:.44rem .58rem;
  color:#c8dcd2; font-size:.86rem; font-weight:590; text-decoration:none; border:1px solid transparent; border-radius:.5rem;
  transition:background-color .18s,border-color .18s,color .18s;
}
.operations-shell .sidebar .nav-label,.operations-shell #section-drawer .nav-label {
  margin:.94rem .58rem .28rem; font-size:.64rem; color:#90aca0; font-weight:740; text-transform:uppercase; letter-spacing:.12em;
}
.operations-shell .sidebar .nav-group:first-child .nav-label { margin-top:.15rem; }
.operations-shell :is(.sidebar,#section-drawer) nav .workspace-icon { color:#8eb6a5; }
.operations-shell :is(.sidebar,#section-drawer) nav a:hover { background:#162a22; color:#edf9f3; }
.operations-shell :is(.sidebar,#section-drawer) a[aria-current="page"] {
  background:linear-gradient(90deg,#224537,#182d25); border-color:#3b6754; color:#f0fff8;
  box-shadow:inset 3px 0 #83e7b7; font-weight:700;
}
.operations-shell :is(.sidebar,#section-drawer) a[aria-current="page"] .workspace-icon { color:#a2efc9; }
.operations-shell .operator-credit { margin:1.2rem .54rem 0; padding:.17rem .55rem; }
.operations-shell .workspace-top .view-date { margin:.58rem 0 0; color:#c3d9ce; font-size:.85rem; letter-spacing:.01em; }
.app-shell.operations-shell .command-cover::before { animation:none; }
.app-shell.operations-shell .command-cover::after {
  background:linear-gradient(90deg,#0b201af4 4%,#0c211aa6 59%,#0f281d60),
    repeating-linear-gradient(90deg,#93ccae20 0 1px,transparent 1px 82px),
    repeating-linear-gradient(0deg,#93ccae18 0 1px,transparent 1px 48px);
}
.operations-shell .workspace > .panel,.operations-shell .workspace > .overview,.operations-shell .portal-metric { animation:none; }
.operations-shell .dashboard-chart svg { transition:fill .17s ease; }
.operations-shell .portal-metric { transition:border-color .17s ease,background-color .17s ease; }
.operations-shell .portal-metric:hover { transform:none; }
.app-shell.operations-shell .workspace-top.command-cover h1 {
  font-family:system-ui,sans-serif; font-weight:730; letter-spacing:-.052em;
}
.command-shell.operations-shell .command-links { gap:.35rem; padding:.23rem; border-bottom:1px solid var(--shell-line); }
.command-shell.operations-shell .command-links a {
  gap:.45rem; padding-inline:.64rem; color:#cfe1d7; background:transparent; border-color:transparent;
}
.command-shell.operations-shell .command-links a:hover { background:#193027; border-color:#355349; }
.command-shell.operations-shell .command-links a.priority-shortcut { color:#fae2b6; background:#282a21; border-color:#504831; }
.command-links .workspace-icon { width:1.02rem; height:1.02rem; color:#98bcaa; }
.priority-shortcut .workspace-icon { color:#e4c38a; }
.command-shell.operations-shell .portal-metric {
  display:grid; grid-template-rows:minmax(2.55em,auto) auto 1fr; align-content:start;
}
.command-shell.operations-shell .portal-metric strong { margin-top:.12rem; }
@media(max-width:520px) {
  .command-shell.operations-shell .portal-metric { grid-template-rows:minmax(2.4em,auto) auto; }
}
.operations-shell :is(#workspace-search,#section-drawer) {
  box-sizing:border-box; background:#10211c; color:#ebf7f1; border:1px solid #39594b;
  border-radius:.78rem; padding:1rem; box-shadow:0 24px 64px #01080680;
}
.operations-shell :is(#workspace-search,#section-drawer)[open] { animation:workspace-reveal .18s ease-out both; }
.operations-shell :is(#workspace-search,#section-drawer)::backdrop { background:#040d0bd4; }
.operations-shell #workspace-search { width:min(40rem, calc(100% - 1.25rem)); }
.operations-shell #workspace-search header { margin-bottom:.65rem; }
.operations-shell #workspace-search .section-query {
  display:flex; gap:.48rem; align-items:center; padding:0 .6rem; border:1px solid #3e5f53; border-radius:.45rem; background:#0a1814;
}
.operations-shell .section-query input[type="search"] { padding-inline:.2rem; width:100%; border:0; min-width:0; box-shadow:none; background:none; }
.operations-shell #workspace-search [data-nav-results] a { gap:.45rem; }
.operations-shell #workspace-search [data-nav-results] a:hover { background:#244838; }
.operations-shell :is(#workspace-search,#section-drawer) header button { min-width:44px; padding:.55rem; display:grid; place-items:center; }
#section-drawer header { display:flex; align-items:center; justify-content:space-between; gap:.5rem; }
.operations-shell :is(#main,.panel,[id]) { scroll-margin-top:calc(var(--masthead-height) + .65rem); }
.operations-shell .sr-only { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes workspace-reveal {
  from { opacity:0; transform:translateY(5px); }
  to { opacity:1; transform:translateY(0); }
}
.nav-loader.is-navigating { height:2px; box-shadow:none; }
@media(max-width:1040px) { .masthead-controls .nav-search kbd { display:none; } }
@media(max-width:800px) {
  .app-shell.operations-shell { --masthead-height:62px; grid-template-columns:minmax(0,1fr); grid-template-rows:auto auto 1fr; }
  .app-masthead { grid-template-columns:minmax(0,1fr) auto; padding:.38rem .65rem; gap:.38rem; }
  .app-home { margin:0; }
  .app-home .mukupa-brand { gap:.39rem; }
  .app-home .mukupa-brand strong { font-size:1rem; }
  .app-home .mukupa-brand small { font-size:.49rem; letter-spacing:.08em; white-space:nowrap; }
  .app-home .mukupa-mark { width:1.94rem; height:1.94rem; font-size:1.03rem; }
  .section-path { display:none; }
  .masthead-controls { gap:.21rem; }
  .masthead-controls .nav-search span,.account-summary small,.account-menu summary .workspace-icon { display:none; }
  .operations-shell .masthead-controls button.nav-search { min-width:44px; padding:.36rem; }
  .connection-indicator { gap:.28rem; padding:.25rem .35rem; min-height:1.63rem; font-size:.69rem; max-width:5.4rem; white-space:normal; line-height:1.1; }
  .connection-dot { flex:none; width:.34rem; height:.34rem; }
  .account-menu summary { min-width:44px; gap:.22rem; justify-content:center; padding-inline:.19rem; flex-direction:column; }
  .account-summary strong { font-size:.65rem; }
  .account-initial { width:1.42rem; height:1.42rem; font-size:.72rem; }
  .operations-shell .sidebar { grid-row:2; position:static; height:auto; }
  .operations-shell .workspace { grid-column:1; grid-row:3; }
  .operations-shell .mobile-dock a,.operations-shell .mobile-dock button[data-menu-toggle] { font-weight:650; color:#a8c2b5; min-height:50px; gap:.24rem; background:transparent; }
  .operations-shell .mobile-dock a[aria-current=page] { color:#cbf5df; background:#1d3d31; box-shadow:inset 0 2px #8ce9bc; }
  .operations-shell .mobile-dock .workspace-icon { width:1.15rem; height:1.15rem; }
  .operations-shell #section-drawer { inset:auto 0 0; width:min(100%, 35rem); margin:0 auto; max-width:100%; max-height:86dvh; overflow:auto; padding-bottom:calc(1rem + env(safe-area-inset-bottom)); border-radius:.82rem .82rem 0 0; }
  .operations-shell #section-drawer[open] { animation:workspace-drawer-in .22s cubic-bezier(.2,.7,.2,1) both; }
  .operations-shell #section-drawer .nav-group { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.2rem .4rem; }
  .operations-shell #section-drawer .nav-label { grid-column:1/-1; }
  .operations-shell #section-drawer nav a { min-height:44px; }
}
@keyframes workspace-drawer-in {
  from { opacity:.6; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}
@media(max-width:355px) {
  .app-home .mukupa-brand strong { font-size:.93rem; }
  .app-home .mukupa-brand small { letter-spacing:0; }
  .app-home .mukupa-mark { width:1.52rem; height:1.64rem; font-size:.9rem; }
  .connection-indicator { max-width:4.4rem; }
}
@media print {
  .app-masthead,.operations-shell #section-drawer { display:none !important; }
  .operations-shell .workspace { grid-column:1/-1; grid-row:auto; }
}

.audit-filters .fields,
.audit-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 1rem;
}
.audit-timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.audit-entry {
  border: 1px solid var(--line, #466554);
  border-radius: .9rem;
  padding: clamp(1rem, 3vw, 1.5rem);
}
.audit-entry header, .audit-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 1rem;
  align-items: baseline;
}
.audit-links {
  justify-content: flex-start;
  align-items: center;
  margin-top: 1rem;
}
.audit-links a, .account-audit-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}
.audit-entry h2, .audit-type { margin: 0; }
.audit-type, .audit-entry time, .audit-meta dt { font-size: .9rem; }
.audit-meta dt { font-weight: 700; }
.audit-meta dd { margin: .25rem 0 0; }
.audit-meta dd, .audit-reason { overflow-wrap: anywhere; }
.audit-reason { border-inline-start: .2rem solid var(--line, #719780); padding-inline-start: .8rem; }

.plant-camera-frame { position:relative; overflow:hidden; border-radius:.65rem; }
.plant-camera-frame video { width:100%; display:block; }
.plant-camera-frame span {
  display:block; position:absolute; inset:14%; border:2px solid #a0fed4; border-radius:1rem;
  box-shadow:0 0 0 100vmax rgb(5 12 8 / .26); pointer-events:none;
}
.plant-analysis dl { display:grid; grid-template-columns:minmax(5rem, .42fr) minmax(0, 1fr); gap:.5rem .8rem; }
.plant-analysis dt { font-weight:700; }
.plant-analysis dd { margin:0; min-width:0; }
.plant-analysis .primary-link { margin-block:.6rem; }
@media(max-width:470px) {
  .plant-analysis dl { grid-template-columns:1fr; gap:.2rem; }
  .plant-analysis dd { margin-bottom:.45rem; }
}

.lab-shortcuts,.lab-history-nav { display:flex; flex-wrap:wrap; gap:.65rem; margin-block:0 1rem; }
.lab-history-nav { margin-block:1rem 0; }
.lab-button {
  display:inline-flex; justify-content:center; align-items:center; min-height:2.75rem;
  padding:.45rem .9rem; border:1px solid #9bcdaa; border-radius:.58rem;
  background:#cbe9cf; color:#122d1e; font-weight:700; text-decoration:none; white-space:nowrap;
}
.lab-button:hover { background:#e5f6e7; color:#122d1e; }
.lab-button.secondary { background:transparent; color:inherit; border-color:currentColor; }
.lab-button.secondary:hover { background:rgb(137 199 152 / .15); }
.lab-capture-options { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; gap:.8rem; margin-top:1rem; }
.lab-capture-options > details { margin:0; min-width:0; }
.lab-capture-options > details > summary { min-height:3rem; padding:.7rem; }
.lab-history-filters {
  display:grid; grid-template-columns:minmax(10rem,1fr) minmax(9rem,.6fr) auto auto;
  gap:.65rem; align-items:end; margin:1rem 0;
}
.lab-history-filters label { margin:0; }
.lab-history-filters button { min-height:2.75rem; margin:0; }
.lab-scan-list { display:grid; gap:.55rem; margin:0; padding:0; list-style:none; }
.lab-scan-row {
  display:grid; grid-template-columns:3.5rem minmax(0,1fr) 9rem 8.2rem; align-items:center;
  gap:.85rem; border:1px solid rgb(159 203 172 / .32); padding:.65rem; border-radius:.7rem;
}
.lab-scan-thumb { display:block; height:3.5rem; border-radius:.42rem; overflow:hidden; background:rgb(84 120 109 / .3); }
.lab-scan-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.lab-scan-title { display:grid; gap:.15rem; overflow-wrap:anywhere; }
.lab-scan-title span,.lab-scan-title small { font-size:.86rem; }
.lab-scan-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.38rem; }
.lab-scan-actions .lab-button { padding-inline:.35rem; }
.lab-status { display:inline-block; padding:.14rem .5rem; border:1px solid currentColor; border-radius:1rem; font-size:.85rem; }
.lab-status-confirmed { color:#b7efc5; background:#254b32; }
.lab-status-review { color:#ffe6a7; background:#483a1d; }
.lab-detail .orchard-gallery { grid-template-columns:minmax(0,44rem); }
@media(max-width:690px) {
  .lab-history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; }
  .lab-history-filters label:first-child { grid-column:1/-1; }
  .lab-scan-row { grid-template-columns:3rem minmax(0,1fr) auto; gap:.5rem; }
  .lab-scan-thumb { height:3rem; }
  .lab-scan-actions { grid-column:2/-1; justify-self:end; min-width:8.2rem; }
}
@media(max-width:430px) {
  .lab-capture-options { grid-template-columns:1fr; }
  .lab-scan-row { grid-template-columns:3rem minmax(0,1fr); }
  .lab-scan-status { grid-column:2; }
  .lab-scan-actions { grid-column:2; justify-self:stretch; }
}

.lab-scan-status small { display:block; margin-top:.3rem; }

.farm-brief-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.farm-brief-metrics > div {
  padding: .85rem 1rem;
  border: 1px solid currentColor;
  border-radius: .65rem;
}
.farm-brief-metrics dd { margin: .2rem 0 0; font-size: 1.6rem; font-weight: 700; }
.farm-brief-chart { display: grid; gap: .5rem; list-style: none; padding: 0; }
.farm-brief-chart li { display: grid; grid-template-columns: max-content minmax(1.5rem, 1fr) minmax(0, max-content); align-items: center; gap: .55rem; }
.farm-brief-chart meter { width: 100%; }
.farm-brief-downloads { display: flex; flex-wrap: wrap; gap: 1rem; }

.intelligence-workspace { display: grid; gap: 1rem; max-inline-size: 68rem; }
.intelligence-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .3rem;
  padding: .35rem;
  border: 1px solid var(--line, currentColor);
  border-radius: .75rem;
}
.intelligence-nav a {
  display: grid;
  align-items: center;
  min-block-size: 2.75rem;
  padding: .35rem .6rem;
  border-radius: .45rem;
  text-decoration: none;
  text-align: center;
}
.intelligence-nav a[aria-current="page"] {
  background: var(--panel-2, rgba(127, 157, 122, .16));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .25em;
}
.intelligence-extra summary { cursor: pointer; font-weight: 700; }
.intelligence-record-form { align-items: end; }
.intelligence-record-form label { min-inline-size: 0; }
.intelligence-workspace textarea { inline-size: 100%; resize: vertical; }
.overview-report-values { margin: 0; }
.overview-report-values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  padding-block: .35rem;
}
.overview-report-values dd { margin: 0; font-weight: 700; white-space: nowrap; }
@media (max-width: 35rem) {
  .intelligence-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intelligence-record-form label, .intelligence-record-form select { inline-size: 100%; }
}

/* Shared forecast display used beside the satellite atlas and in Weather. */
.farm-geography {
  display:grid; grid-template-columns:minmax(0,1.85fr) minmax(19rem,1fr);
  gap:.9rem; align-items:start; margin-bottom:.9rem;
}
.operations-shell .atlas-panel .farm-map-canvas { height:clamp(23rem,49vh,37rem); }
.operations-shell .atlas-panel { min-width:0; }
.operations-shell .atlas-stats dd { font-size:clamp(1.05rem,2vw,1.55rem); }
.operations-shell .weather-display {
  position:relative; isolation:isolate; min-width:0; overflow:hidden;
  padding:clamp(1rem,2vw,1.5rem); margin-bottom:.9rem; border:1px solid #406b64; border-radius:.8rem;
  background:radial-gradient(ellipse at 3% 0%,#214c49,transparent 50%),linear-gradient(145deg,#112f2e,#10221d 76%);
  color:#eefaf1;
}
.farm-geography .weather-display { margin:0; }
.weather-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; }
.weather-head h2 { margin:0; font-size:clamp(1.1rem,2vw,1.55rem); }
.weather-status {
  padding:.25rem .55rem; border:1px solid #7f7a57; border-radius:999px;
  font-size:.77rem; font-weight:650; line-height:1.35; color:#f4e6ad; background:#303329;
}
.weather-status.is-current { border-color:#4e8178; color:#b5f6df; background:#173d36; }
.weather-current {
  display:flex; flex-wrap:wrap; gap:clamp(.7rem,3vw,1.6rem); align-items:center;
  padding:.9rem 0; border-bottom:1px solid #45645b;
}
.weather-current p { margin:.2rem 0 0; font-size:.83rem; color:#c0d7cf; }
.weather-temperature { display:block; font-size:clamp(2rem,5vw,4rem); line-height:1.06; font-variant-numeric:tabular-nums; letter-spacing:-.05em; }
.weather-compact .weather-temperature { font-size:clamp(2rem,4vw,3.1rem); }
.weather-instrument {
  width:clamp(3rem,8vw,5.3rem); aspect-ratio:1; border:1px solid #679c91; border-radius:50%;
  position:relative; overflow:hidden; flex:none;
  background:repeating-radial-gradient(circle,transparent 0 22%,#8beed14a 23% 24%),
    linear-gradient(90deg,transparent 49%,#72a799 50%,transparent 51%),
    linear-gradient(0deg,transparent 49%,#72a799 50%,transparent 51%),#173d39;
}
.weather-instrument::after {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:conic-gradient(from -70deg,transparent 0 82%,#8aeacf55 98%,#bdf6e0 100%);
  animation:weather-sweep 4.5s linear;
}
@keyframes weather-sweep { to { transform:rotate(1turn); } }
.weather-metrics {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.45rem; margin:.75rem 0;
}
.weather-metrics div { padding:.52rem; background:#142f2c; border:1px solid #40665f; border-radius:.46rem; min-width:0; }
.weather-metrics dt { color:#bdd4cc; font-size:.77rem; line-height:1.35; }
.weather-metrics dd { margin:.2rem 0 0; color:#ccfae7; font-weight:700; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.weather-outlook h3,.weather-assessment h3 { font-size:.88rem; color:#c3e6d7; margin:.82rem 0 .43rem; }
.weather-trend {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(6.5rem,1fr)); gap:.4rem;
  padding:0; margin:0; list-style:none;
}
.weather-trend li {
  display:grid; align-content:start; gap:.28rem; padding:.55rem; border:1px solid #416963;
  border-radius:.48rem; background:#142f2d; font-size:.8rem; min-width:0;
  animation:weather-enter .62s ease-out both;
}
.weather-trend li:nth-child(2n) { animation-delay:75ms; }
.weather-trend li:nth-child(3n) { animation-delay:150ms; }
@keyframes weather-enter { from { opacity:.3; transform:translateY(.3rem); } }
.weather-trend time { color:#c7dfd7; font-weight:650; }
.weather-range,.weather-rain { font-variant-numeric:tabular-nums; }
.weather-range { color:#f7e4b6; }
.weather-rain { color:#c3f2fc; }
.weather-trend meter,.weather-missing { display:block; width:100%; height:.5rem; }
.weather-missing { border-bottom:1px dashed #7f9c94; }
.weather-trend meter::-webkit-meter-bar { background:#244747; border:0; }
.weather-trend meter::-webkit-meter-optimum-value { background:#81cbdc; }
.weather-trend meter::-moz-meter-bar { background:#81cbdc; }
.weather-assessment { border-left:2px solid #9ccb9e; padding:.02rem 0 .02rem .68rem; margin:.83rem 0; }
.weather-assessment h3 { margin:.2rem 0 .32rem; }
.weather-assessment p { margin:.2rem 0; font-size:.86rem; }
.weather-assessment .weather-evidence { color:#c1d8ce; font-size:.8rem; }
.weather-links { display:flex; gap:.8rem; flex-wrap:wrap; }
.weather-links a { min-height:44px; display:inline-flex; align-items:center; }
@media(max-width:1120px) {
  .farm-geography { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:600px) {
  .operations-shell .atlas-panel .farm-map-canvas { height:clamp(18rem,46dvh,26rem); }
  .weather-trend { grid-template-columns:repeat(auto-fit,minmax(5.4rem,1fr)); }
}
@media print {
  .weather-instrument { display:none; }
  .weather-trend li { animation:none; }
}

.weather-history-readout {
  margin:.75rem 0; padding:.7rem; border:1px solid #416b5d; border-radius:.55rem; background:#152f28;
}
.weather-history-readout p { margin:0; }
.weather-history-readout .weather-metrics { margin-bottom:0; }

.weather-refresh-time { color:#c5e9dc; font-size:.82rem; font-variant-numeric:tabular-nums; }
.weather-day {
  border:1px solid #41685e; border-radius:.6rem; margin:.55rem 0; padding:.65rem .8rem; background:#142f28;
}
.weather-day summary {
  display:grid; grid-template-columns:1fr 1fr minmax(6rem,1.25fr) auto; gap:.55rem;
  align-items:center; min-height:44px; cursor:pointer; color:#e7f7ee;
}
.weather-day summary strong::before { content:"+"; display:inline-block; width:1.15em; color:#b3edd3; }
.weather-day[open] summary strong::before { content:"−"; }
.weather-day-state { color:#b4e4e9; }
.weather-day > p { color:#bfd7cc; font-size:.87rem; }
.weather-day .weather-metrics { grid-template-columns:repeat(auto-fit,minmax(8rem,1fr)); }
@media(max-width:540px) {
  .weather-day summary { grid-template-columns:1fr auto; gap:.25rem .5rem; }
  .weather-day summary span:nth-child(even) { text-align:right; }
}

.farm-os-brand { gap:.62rem; align-items:center; }
.farm-os-brand .brand-emblem { display:block; width:2.66rem; height:2.66rem; flex:none; }
.farm-os-brand strong { display:block; font:800 1.29rem/1 system-ui,sans-serif; letter-spacing:.055em; }
.farm-os-brand small { display:block; margin-top:.27rem; color:#b9c6af; font-size:.62rem; font-weight:700; letter-spacing:.13em; }
.app-masthead .farm-os-brand strong { color:#f4f7ed; }
.entry-grid.login { min-height:100svh; color:#eaf0df; background:#16231a; grid-template-columns:minmax(0,1.38fr) minmax(335px,1fr); }
.entry-grid .login-brand { padding:clamp(1.4rem,4vw,4rem); }
.entry-grid .login-brand::before { animation:auth-landscape-drift 22s ease-in-out infinite alternate; background-position:52% 60%; }
.entry-grid .login-brand::after {
  background:linear-gradient(108deg,#19291dee 3%,#17291b9e 56%,#25352438),
    linear-gradient(0deg,#152219e8,transparent 49%);
}
.entry-grid .login-brand h1 { font:730 clamp(2.4rem,6vw,6rem)/.98 system-ui,sans-serif; letter-spacing:-.065em; max-width:9em; }
.entry-grid .login-brand .cover-copy { align-self:center; align-content:center; padding:0; }
.entry-grid .login-panel {
  background:radial-gradient(ellipse at 84% 6%,#354136 0%,transparent 58%),#17241c; border-left:1px solid #495a43;
  min-height:100svh; display:grid; place-items:center; padding:clamp(1rem,4vw,3.4rem);
}
.entry-grid .sign-in {
  width:100%; max-width:31rem;
  padding:clamp(1.1rem,3.2vw,2.35rem); background:#16241cf2; border:1px solid #52644a;
  border-radius:1.07rem; box-shadow:0 17px 55px #07110c57;
}
.entry-grid.account-request-layout .sign-in { width:100%; max-width:46rem; }
.entry-grid .sign-in .provider-auth { gap:1.15rem; margin-top:1.4rem; }
.entry-grid .provider-auth label { display:grid; grid-template-rows:auto; gap:.5rem; font-weight:650; line-height:1.4; }
.entry-grid .provider-auth :is(input,select,textarea) { box-sizing:border-box; width:100%; min-width:0; min-height:48px; font-size:1rem; font-weight:450; }
.entry-grid .provider-auth textarea { padding:.72rem .8rem; resize:vertical; }
.entry-grid .auth-password,.entry-grid .auth-federated-methods,.entry-grid .auth-secure-options,
.entry-grid .provider-auth [data-email-code-panel],.entry-grid .password-recovery { gap:.9rem; }
.entry-grid .auth-entry-links { row-gap:.8rem; }
.entry-grid .sign-in h2 { color:#f1f5e9; font:730 clamp(1.65rem,3vw,2.22rem)/1.08 system-ui,sans-serif; letter-spacing:-.04em; }
.entry-grid .sign-in p { color:#c5d1bb; margin:.6rem 0 0; font-size:.93rem; }
.entry-grid .primary-link { justify-content:space-between; color:#161f15; background:#cbd9a6; padding:.72rem .9rem; }
.entry-grid .primary-link:hover { background:#e1edb9; transform:none; }
.entry-help { border-top:1px solid #465844; margin-top:1.35rem; padding-top:.73rem; }
.entry-help summary { min-height:42px; color:#e2e9d5; cursor:pointer; font-size:.88rem; font-weight:650; }
.entry-grid :is(.entry-help,.entry-account) a { display:inline-flex; align-items:center; min-height:44px; font-size:.85rem; color:#d9e8ba; }
.entry-grid .entry-account { padding:.65rem; margin:.9rem 0; display:flex; align-items:center; flex-wrap:wrap; gap:.4rem .7rem; border-radius:.5rem; border:1px solid #52634b; }
.entry-account > div { flex:1 1 10rem; min-width:0; }
.entry-account span,.entry-account strong { display:block; overflow-wrap:anywhere; }
.entry-account span { color:#c2cbb4; font-size:.75rem; }
.entry-account strong { color:#e8efdc; font-size:.87rem; }
.entry-grid label { color:#f2f6ea; }
.entry-grid input { color:#ecf4e4; background:#0f1e16; border-color:#556851; }
.entry-grid button { background:#cbd9a6; color:#161f15; }
.entry-farms { list-style:none; padding:0; margin:0; display:grid; gap:.5rem; }
.entry-farms a { display:flex; align-items:center; gap:.6rem; padding:.65rem; text-decoration:none; background:#253628; color:#eff6e6; border-radius:.47rem; }
.entry-farms a:hover { background:#354936; }
.entry-farms a span { flex:1; overflow-wrap:anywhere; }
.entry-farms small { display:block; color:#bacdb6; }
.entry-grid :focus-visible { outline-color:#e6d69f; outline-offset:3px; }
/* The welcome uses the same landscape, emblems and labels as the homepage. */
.public-entrance .entry-farm-name {
  margin:0 0 .8rem; color:#e1edb6; font-size:.85rem; font-weight:750; letter-spacing:.11em; text-transform:uppercase;
}
.entry-capabilities {
  display:grid; gap:.76rem; list-style:none; margin:clamp(1rem,3vw,2rem) 0 0; padding:0; max-width:31rem;
}
.entry-capabilities li {
  display:grid; grid-template-columns:2.3rem 1fr; align-items:center; gap:.65rem;
}
.entry-capabilities svg {
  width:2.3rem; height:2.3rem; padding:.5rem; border:1px solid #d1efb273; border-radius:.6rem;
  color:#e1edb6; background:#0c271cbd;
}
.entry-capabilities strong,.entry-capabilities small { display:block; }
.entry-capabilities strong { color:#f5f8ed; font-size:.92rem; }
.entry-capabilities small { color:#d9e5d3; font-size:.82rem; line-height:1.35; margin-top:.18rem; }

.auth-boot[hidden] { display:none !important; }
.auth-boot {
  position:fixed; z-index:1000; inset:0; display:grid; place-content:center; gap:clamp(1rem,4vw,3rem);
  overflow:auto; padding:clamp(1.25rem,5vw,5rem); isolation:isolate; color:#edf6e8; opacity:1;
  background:#07140f url("/farm-rolling-hills.webp") center 56%/cover no-repeat;
  transition:opacity .38s ease;
}
.auth-boot::before,.auth-boot::after { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; }
.auth-boot::before {
  background:radial-gradient(ellipse at 69% 48%,#477b3654,transparent 39%),
    linear-gradient(109deg,#081710fa,#11261bd9 60%,#05150ce6),linear-gradient(0deg,#05130f,transparent 64%);
}
.auth-boot::after {
  background:repeating-linear-gradient(0deg,transparent 0 62px,#b7df9f1c 62px 63px),
    repeating-linear-gradient(90deg,transparent 0 62px,#b7df9f15 62px 63px);
  mask-image:radial-gradient(ellipse at 72% 52%,#000,transparent 68%);
}
.auth-boot.is-ending { opacity:0; pointer-events:none; }
.auth-boot-layout { width:min(81rem,calc(100vw - clamp(2.5rem,10vw,10rem))); display:grid; grid-template-columns:1.1fr 1fr; gap:clamp(1rem,4vw,4rem); align-items:center; }
.auth-boot-core { display:grid; justify-items:start; align-content:center; }
.auth-boot-label {
  margin:0 0 .6rem; color:#dfeeb5; font-size:.83rem; font-weight:760; letter-spacing:.16em; text-transform:uppercase;
}
.auth-boot-wordmark {
  font-size:clamp(3.2rem,9vw,9.4rem); line-height:.85; letter-spacing:-.075em;
  text-shadow:0 0 48px #98d99255; white-space:nowrap;
}
.auth-boot-story { min-height:8.1rem; padding-top:clamp(.9rem,3vw,2.1rem); }
.auth-boot-intro-title { display:block; color:#f2f7eb; font-size:clamp(1.35rem,3.4vw,2.8rem); font-weight:730; line-height:1.06; letter-spacing:-.035em; }
.auth-boot-copy { max-width:42ch; color:#d5e5d4; margin:.64rem 0 0; font-size:clamp(.97rem,1.5vw,1.2rem); line-height:1.48; }
.auth-boot-instrument { display:grid; justify-items:center; gap:1.25rem; }
.auth-boot-radar {
  position:relative; isolation:isolate; display:grid; place-items:center; width:min(100%,23rem,45svh); aspect-ratio:1;
  border:1px solid #d5edb780; border-radius:50%; overflow:hidden;
  background:repeating-radial-gradient(circle,#abcfa026 0 1px,transparent 1px 15%),radial-gradient(circle,#5e9c4c4d,#0a211c84 61%);
  box-shadow:0 0 4rem #97d78b20,inset 0 0 2rem #b0e49b2c;
}
.auth-boot-sweep {
  position:absolute; inset:0; z-index:-1; border-radius:50%;
  background:conic-gradient(from 0deg,transparent 0deg 282deg,#aadd7e08 295deg,#aadd7e60 358deg,transparent 360deg);
  animation:orb-orbit 3.6s linear infinite;
}
.auth-boot-orb {
  display:grid; place-items:center; width:47%; aspect-ratio:1; border-radius:50%;
  border:1px solid #e6f4bc; background:radial-gradient(circle at 34% 27%,#d8f7a47a,#2c795da6 34%,#08221cfa 76%);
  box-shadow:0 0 3rem #b1ec9880,inset 0 0 2rem #a5ecb65c; animation:auth-orb-breathe 2s ease-in-out infinite alternate;
}
.auth-boot-orb img { width:65%; height:auto; filter:drop-shadow(0 0 8px #d9ffdfb5); }
.auth-boot-nodes {
  display:flex; justify-content:center; flex-wrap:wrap; gap:.45rem; padding:0; margin:0; list-style:none;
}
.auth-boot-nodes li {
  display:flex; align-items:center; gap:.35rem; min-height:2.35rem; padding:.36rem .62rem;
  border:1px solid #7b9c7557; border-radius:.5rem; color:#c2d3bc; background:#0b2419dc;
  font-size:.76rem; font-weight:650; transition:background .3s,color .3s,border-color .3s,box-shadow .3s;
}
.auth-boot-nodes li.is-lit { background:#29422b; border-color:#c9ed99; color:#f1f8da; box-shadow:0 0 1rem #bded964d; }
.auth-boot-nodes svg { width:1rem; height:1rem; }
.auth-boot-caption {
  display:flex; align-items:center; gap:.65rem; margin:0; color:#d8e6cd; font-size:.83rem; letter-spacing:.03em;
}
.auth-boot-caption::before {
  content:""; width:.5rem; aspect-ratio:1; border-radius:50%; background:#d4f5a5;
  box-shadow:0 0 1rem #d4f5a5; animation:auth-orb-breathe 1.4s ease-in-out infinite alternate;
}
@media (max-width: 720px) {
  .auth-boot { gap:1.1rem; }
  .auth-boot-layout { max-width:33rem; grid-template-columns:1fr; gap:1rem; }
  .auth-boot-core { justify-items:center; text-align:center; }
  .auth-boot-wordmark { font-size:clamp(3.3rem,14vw,5.5rem); }
  .auth-boot-story { min-height:7rem; }
  .auth-boot-radar { width:min(53vw,25svh,14rem); }
  .auth-boot-instrument { gap:.85rem; }
  .auth-boot-caption { justify-content:center; }
  .entry-capabilities { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.5rem; margin-top:.95rem; }
  .entry-capabilities li { display:flex; align-items:flex-start; flex-direction:column; gap:.35rem; }
  .entry-capabilities svg { width:1.85rem; height:1.85rem; padding:.36rem; }
  .entry-capabilities strong { font-size:.75rem; }
  .entry-capabilities small { display:none; }
}
@media (max-height: 475px) {
  .auth-boot { align-content:start; }
}

.app-shell.operations-shell { background:radial-gradient(ellipse at 73% 1%,#263627,#111d17 58%,#101a15); }
.app-shell.operations-shell .sidebar { background:#141f18; }
.operations-shell { --plate:#1c2a21; --edge:#455847; }
.map-workspace,.map-lower { display:grid; grid-template-columns:minmax(0,1fr) minmax(15rem,23rem); gap:1rem; align-items:start; }
.map-lower { grid-template-columns:repeat(2,minmax(0,1fr)); }
.operations-shell .map-display,.operations-shell .map-location { background:var(--plate); border-color:var(--edge); }
.map-display > p:first-of-type { color:#c5d2bf; margin:0 0 .58rem; font-size:.88rem; }
.map-display #map-picker { min-width:0; }
.map-controls { display:flex; justify-content:space-between; flex-wrap:wrap; gap:.52rem; margin-bottom:.55rem; }
.map-layers,.map-tools { display:flex; align-items:center; flex-wrap:wrap; gap:.26rem; margin:0; }
.map-layers:has(button:not([hidden])) { background:#121e16; border:1px solid #4c604d; padding:.16rem; border-radius:.55rem; }
.operations-shell .map-layers button,.operations-shell .map-tools button {
  display:inline-flex; align-items:center; gap:.31rem; min-height:44px; padding:.28rem .55rem;
  font-size:.79rem; background:#253a2b; color:#e5ecda; border-color:#4d6550; border-radius:.37rem;
}
.operations-shell .map-layers button { min-width:3.45rem; justify-content:center; border:0; background:transparent; }
.operations-shell .map-layers button[aria-pressed="true"],
.operations-shell .map-tools button[aria-pressed="true"] { background:#c4d1a1; color:#1b2b1e; }
.map-controls .workspace-icon { width:.95rem; height:.95rem; }
.map-display .farm-map-canvas { height:clamp(22rem,56vh,38rem); margin:.4rem 0; }
.map-caption { color:#bfceb8; font-size:.84rem; min-height:1.15rem; }
.map-caption p:empty { display:none; }
.map-provider-note { margin-top:.73rem; padding:.52rem .65rem; border-left:2px solid #93855e; color:#d1d9c3; font-size:.81rem; }
.map-zone { display:flex; align-items:end; gap:.4rem; }
.map-zone label { flex:1; min-width:0; }
.map-zone button { font-size:.82rem; padding-inline:.5rem; }
.map-location .saved-pin { font-size:.85rem; margin:.78rem 0; padding:.56rem; color:#cbd8c5; border:1px solid #4a614e; border-radius:.45rem; }
.saved-pin strong,.map-selection strong { display:block; font-size:.75rem; color:#c2d0b6; }
.map-location .fields { grid-template-columns:minmax(0,1fr); }
.map-coordinate-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
.map-coordinate-fields input { font-variant-numeric:tabular-nums; }
.map-selection { background:#12251b; color:#e3eedc; border-radius:.46rem; padding:.52rem .61rem; font-size:.86rem; }
.map-selection output { margin:0; font-variant-numeric:tabular-nums; }
.map-location form[method=post] button { width:100%; }
.mapped-points { list-style:none; padding:0; margin:0; display:grid; gap:.42rem; max-height:25rem; overflow:auto; }
.mapped-points li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.32rem .65rem; border:1px solid var(--edge); padding:.24rem .56rem; border-radius:.4rem; }
.operations-shell .mapped-points button { display:flex; align-items:center; gap:.5rem; font-size:.82rem; padding:.35rem .34rem; text-align:left; }
.mapped-points small { display:block; color:#c1d1bb; font-size:.74rem; }
.mapped-points a { display:inline-flex; align-items:center; min-height:44px; font-size:.8rem; }
@media(max-width:1100px) {
  .map-workspace { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:800px) {
  .entry-grid.login { grid-template-columns:minmax(0,1fr); grid-template-rows:auto 1fr; }
  .entry-grid .login-panel { min-height:0; }
  .entry-grid .sign-in { max-height:none; overflow:visible; }
  .entry-grid .login-brand { min-height:0; padding:1.08rem; gap:.9rem; }
  .entry-grid .login-brand h1 { font-size:clamp(2.15rem,8vw,3.32rem); margin:.26rem 0 .42rem; }
  .entry-grid .login-brand .cover-copy { padding:0; }
  .entry-grid .login-brand p { font-size:.88rem; }
  .entry-grid .login-panel { border-top:1px solid #4f6047; border-left:0; align-content:start; }
  .app-home .farm-os-brand { gap:.38rem; }
  .app-home .farm-os-brand .brand-emblem { width:1.88rem; height:1.88rem; }
  .app-home .farm-os-brand strong { font-size:.94rem; }
  .app-home .farm-os-brand small { font-size:.46rem; white-space:nowrap; letter-spacing:.05em; }
  .map-lower { grid-template-columns:minmax(0,1fr); }
  .map-display .farm-map-canvas { height:clamp(17.5rem,47dvh,25rem); }
  .app-shell.operations-shell .workspace:has(.map-workspace) .workspace-top { min-height:5.6rem; }
}
@media(max-width:355px) {
  .app-home .farm-os-brand .brand-emblem { width:1.58rem; height:1.58rem; }
}
@media print { .app-shell.operations-shell { background:white; } }
.map-location .map-preview-link,.map-coordinate-jump { display:none; }
@media(max-width:1100px) {
  .map-location .map-preview-link { display:inline-flex; align-items:center; min-height:44px; font-size:.84rem; }
  .map-coordinate-jump { display:inline-flex; align-items:center; min-height:44px; padding-inline:.46rem; font-size:.79rem; }
}

.brand-orb {
  --orb-size:2.63rem;
  display:grid; position:relative; isolation:isolate; place-items:center; flex:none;
  width:var(--orb-size); height:var(--orb-size); border-radius:50%;
  background:radial-gradient(circle at 35% 29%,#c3edb977 0,#41715b 23%,#162d27 51%,#081512 82%);
  border:1px solid #90c1a4; box-shadow:0 0 17px #8ee7b04a,inset 0 0 10px #6eae84a0;
}
.farm-os-brand .brand-orb .brand-emblem { width:70%; height:70%; filter:drop-shadow(0 0 .2rem #a7edbd90); }
.brand-orb::after {
  content:""; position:absolute; inset:-.17rem; border:1px solid #98d9b0; border-radius:50%;
  border-right-color:transparent; border-bottom-color:#72a79045; animation:orb-orbit 7s linear infinite;
}
.entry-grid .brand-orb { --orb-size:3.15rem; }
.entry-grid .login-brand::before,.app-shell.operations-shell .command-cover::before {
  background-image:url("/farm-rolling-hills.webp"); background-position:center 57%; background-size:cover;
}
.entry-grid .login-brand::after {
  background:linear-gradient(130deg,#0a201adc,#0e2f226f 67%,#10291d46),
    repeating-linear-gradient(0deg,transparent 0 61px,#94c8aa1c 61px 62px),
    repeating-linear-gradient(90deg,transparent 0 85px,#94c8aa14 85px 86px),linear-gradient(0deg,#06170dc7,transparent 62%);
}
.entry-grid .login-brand { grid-template-rows:auto 1fr; }
.app-shell.operations-shell .command-cover::before { opacity:.65; }
.provider-auth { display:grid; gap:.75rem; }
.provider-auth [data-auth-login-step][hidden],.provider-auth [data-email-code-panel][hidden] { display:none !important; }
.provider-auth [data-email-code-panel] { display:grid; gap:.68rem; }
.auth-code-step h3 { margin:.05rem 0 -.24rem; color:#f1f5e9; font-size:1.2rem; }
.auth-code-step > p { margin:.05rem 0 !important; font-size:.86rem !important; line-height:1.45; }
.auth-code-identity { display:grid; gap:.18rem; padding:.58rem .7rem; border:1px solid #4a6048; border-radius:.58rem; background:#203126; }
.auth-code-identity span { color:#b9c7b1; font-size:.76rem; }
.auth-code-identity strong { color:#f1f5e9; overflow-wrap:anywhere; font-size:.91rem; }
.auth-code-help { color:#c8d5bf !important; }
.entry-grid .auth-back-button { min-height:42px; background:transparent; border-color:#53664d; color:#e9f0e2; }
.entry-grid .auth-back-button:hover { background:#24392a; }
.provider-auth :is(button,input):disabled { opacity:.62; cursor:wait; }
.provider-auth .password-recovery[hidden],.provider-auth [data-recovery-fields][hidden] { display:none; }
.auth-utility { display:flex; justify-content:flex-end; margin:-.38rem 0 0; }
.entry-grid .auth-utility button { min-height:40px; padding:.2rem .08rem; border:0; background:transparent; color:#d8e8ba; font-size:.83rem; text-decoration:underline; text-underline-offset:.2em; }
.entry-grid .auth-utility button:hover { color:#f0f5df; background:transparent; }
.password-recovery { display:grid; gap:.65rem; padding:.85rem; border:1px solid #53684f; border-radius:.72rem; background:#102016; }
.password-recovery h3 { margin:0; color:#eff5e6; font-size:1.02rem; }
.password-recovery p { margin:-.2rem 0 0 !important; font-size:.82rem !important; }
.password-recovery label { display:grid; gap:.32rem; }
.password-recovery input { width:100%; }
.password-recovery button { width:100%; min-height:44px; }
.password-recovery [data-recovery-fields] { display:grid; gap:.62rem; }
.auth-password { display:grid; gap:.56rem; }
.entry-grid .auth-password-submit { width:100%; margin-top:.05rem; background:#cbd9a6; color:#161f15; }
.auth-secure-options { display:grid; gap:.58rem; padding:.72rem; border:1px solid #495e49; border-radius:.72rem; background:#112219; }
.auth-code-fields[hidden] { display:none !important; }
.auth-request-status:empty { display:none; }
.account-name-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.1rem 1.3rem; }
.account-name-grid label { min-width:0; }
.account-name-grid label small { color:#bacdb6; font-size:.85em; font-weight:500; }
.request-section { gap:1.05rem; padding:.95rem 0 0; border-top:1px solid #52644a; }
.request-section legend { padding-right:.75rem; font-weight:700; color:#e3edce; }
.request-submit { display:grid; justify-items:start; gap:.9rem; padding-top:.6rem; min-width:0; }
.request-actions { display:flex; align-items:center; gap:.7rem 1.2rem; flex-wrap:wrap; }
.request-actions a { color:#dceac5; display:inline-flex; align-items:center; min-height:44px; }
.entry-grid .auth-request-status[data-state="error"] { border:1px solid #e0a691; color:#ffe0d1; padding:.75rem; border-radius:.55rem; }
.operations-shell .fields { gap:1rem 1.15rem; }
.operations-shell .fields label { min-width:0; }
.provider-auth [data-username-hint] { color:#bacdb6; font-size:.78rem; line-height:1.35; }
.provider-auth select { width:100%; min-height:44px; padding:.68rem .78rem; border:1px solid #56694f; border-radius:.55rem; color:#f1f5e9; background:#10231a; font:inherit; }
.auth-secure-options h3 { margin:0; color:#cbd9a6; font-size:.78rem; font-weight:750; letter-spacing:.055em; text-transform:uppercase; }
.auth-federated-methods { display:grid; grid-template-columns:repeat(auto-fit,minmax(10rem,1fr)); gap:.5rem; }
.auth-federated-methods button { min-height:44px; background:#233c2e; border-color:#546d54; color:#eef2e5; }
.entry-grid .auth-email-code-action { width:100%; min-height:44px; background:#1a2d22; border:1px solid #687c5b; color:#f0f4e8; }
.entry-grid .auth-email-code-action:hover,.auth-federated-methods button:hover { background:#2b4533; }
.provider-auth [data-passkey-status]:empty,.account-panel [data-passkey-status]:empty { display:none; }
.provider-auth .auth-method-status { margin:.12rem 0; padding:.68rem .78rem; border:1px solid #647957; border-radius:.58rem; background:#203126; color:#edf3e5; font-size:.875rem; line-height:1.45; }
.account-panel [data-passkey-status]{font-size:.76rem;color:#ddeddc}
.account-panel form { margin:0; }
.account-panel form button { border:0; }
.command-shell .dashboard-chart svg {
  transform-origin:50% 100%; animation:chart-arrival .59s cubic-bezier(.2,.61,.28,1) both;
}
.command-shell .dashboard-chart a:nth-child(3n+2) svg { animation-delay:.045s; }
.command-shell .dashboard-chart a:nth-child(3n) svg { animation-delay:.09s; }
.command-shell .portal-metric { font-variant-numeric:tabular-nums; }
@keyframes chart-arrival { from { transform:scaleY(.12); opacity:.5; } to { transform:scaleY(1); opacity:1; } }
@keyframes orb-orbit { to { transform:rotate(1turn); } }
@keyframes auth-progress { from { transform:translateX(-115%); } to { transform:translateX(245%); } }
@keyframes auth-orb-breathe { from { transform:scale(.96); filter:brightness(.85); } to { transform:scale(1.045); filter:brightness(1.18); } }
@keyframes auth-landscape-drift { from { transform:scale(1.015); filter:saturate(.88); } to { transform:scale(1.075); filter:saturate(1.12); } }
@media(max-width:800px) {
 .app-home .brand-orb { --orb-size:1.89rem; }
 .entry-grid .brand-orb { --orb-size:2.47rem; }
 .entry-grid.account-request-layout { grid-template-columns:1fr; }
 .entry-grid.account-request-layout .login-panel { min-height:0; }
 .entry-grid.account-request-layout .login-brand .cover-copy { margin-top:0; }
}
@media(max-width:540px) {
 .account-name-grid { grid-template-columns:1fr; }
 .entry-grid.account-request-layout .login-brand .cover-copy { display:none; }
 .entry-grid.account-request-layout .login-brand { padding-block:1rem; }
}
@media(max-width:380px) {
 .app-home .brand-orb { --orb-size:1.58rem; }
 .entry-grid .g-recaptcha { zoom:.81; }
}
@media(prefers-reduced-motion:reduce),print {
 .brand-orb::after,.command-shell .dashboard-chart svg,.auth-boot *,.entry-grid .login-brand::before { animation:none !important; }
 .auth-boot { transition:none; }
}
.entry-grid a.auth-back-button { display:flex; align-items:center; justify-content:center; min-height:44px; padding:.55rem .75rem; border:1px solid #53664d; border-radius:.52rem; color:#e9f0e2; text-decoration:none; }
.auth-entry-links { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.4rem 1rem; padding-top:.2rem; }
.auth-entry-links a { display:inline-flex; align-items:center; min-height:42px; color:#d9e8ba; font-size:.88rem; text-underline-offset:.18em; }
.entry-grid textarea { width:100%; min-height:5rem; resize:vertical; color:#ecf4e4; background:#0f1e16; border:1px solid #556851; border-radius:.45rem; padding:.55rem .65rem; font:inherit; }
.request-received { display:grid; gap:.35rem; margin-top:1rem; padding:1rem; border:1px solid #6e855f; border-radius:.7rem; background:#203328; }
.request-received h3 { margin:0; color:#eaf3de; }
.request-received a { display:inline-flex; align-items:center; min-height:44px; color:#d9e8ba; }
.account-request-list { display:grid; gap:.75rem; margin-block:.7rem; }
.account-request { padding:.85rem; border:1px solid var(--edge); border-radius:.7rem; background:var(--plate); }
.account-request header { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; }
.account-request h3 { margin:0; font-size:1rem; }
.account-request header span { color:#d9e8ba; font-size:.82rem; }
.account-request dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(11rem,1fr)); gap:.55rem; margin:.7rem 0; }
.account-request dl div { min-width:0; }
.account-request dt { color:#bacdb6; font-size:.78rem; }
.account-request dd { margin:.12rem 0 0; color:#f0f4e8; overflow-wrap:anywhere; }
.account-request form { display:grid; gap:.55rem; }
.account-request-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.account-request-actions button { min-height:44px; }
.account-request-actions .secondary { background:#253a2b; color:#edf3e5; border:1px solid #56694f; }
.request-stage { display:grid; gap:1.3rem; min-width:0; }
.request-stage h3 { margin:0; font-size:1.3rem; }
.entry-grid .request-stage p { margin:0; overflow-wrap:anywhere; }
.request-actions .secondary { background:transparent; color:#e9f0e2; border:1px solid #697b61; }
.entry-grid [data-registration-sign-in] { color:#e3efbb; }
.entry-grid .application-label { margin:0 0 .75rem; color:#d9e8ba; font-weight:700; }
.application-details { display:grid; grid-template-columns:auto 1fr; gap:.58rem 1.25rem; padding:1rem 0; border-block:1px solid #52644a; }
.application-details dt { color:#c5d1bb; }
.application-details dd { margin:0; overflow-wrap:anywhere; }
.application-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem; margin-top:1.25rem; }
.application-actions form { margin:0; }
.application-actions > a { color:#e3efbb; }
.entry-grid .application-actions .primary-link { color:#161f15; }
.access-table th,.access-table td { vertical-align:top; }
.access-table th small,.access-table td small { display:block; margin-top:.3rem; overflow-wrap:anywhere; }
.access-table th[scope="row"] { min-width:12rem; }
.access-table td:last-child { min-width:13rem; }
.access-table details { margin-top:.35rem; }
.access-table details .fields { grid-template-columns:1fr; }
.access-table details form+form { margin-top:.7rem; }

.map-display .map-zone { margin: 0 0 .9rem; max-inline-size: 34rem; }
.map-display .map-zone button { min-block-size: 44px; }
.map-review { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.map-review a { padding-block: .65rem; }
.map-save-error { border-inline-start: .25rem solid #dba879; }
.map-embed { margin-block-start: .75rem; }
.map-embed iframe { width: 100%; min-height: 16rem; height: clamp(16rem, 46dvh, 32rem); border: 0; }
#map-coordinate-feedback:empty { display: none; }
@media (max-width: 480px) {
  .map-display .map-zone { align-items: stretch; flex-direction: column; }
  .map-display .map-zone button { align-self: flex-start; }
}

/* Public entry keeps the landscape and scanner in place while the right panel scrolls. */
html:has(body > .entry-grid),body:has(> .entry-grid) { min-height:0; overflow:hidden; }
.entry-grid.login {
  height:100vh;
  height:100dvh;
  min-height:0;
  overflow:hidden;
  grid-template-rows:minmax(0,1fr);
}
.entry-grid .login-brand {
  min-height:0;
  grid-template-rows:auto minmax(0,1fr);
  gap:clamp(.65rem,2.5dvh,1.5rem);
  padding:clamp(1.35rem,3.9vw,3.7rem);
}
.entry-grid .login-brand::before { animation:none; }
.entry-grid :is(.login-brand .brand,.login-brand .cover-copy) { animation:none; }
.entry-grid .login-brand .cover-copy { min-width:0; margin:0; align-self:center; }
.entry-grid .login-brand .entry-title {
  margin:.28em 0 .24em;
  color:#f5f8ec;
  font:750 clamp(2.2rem,min(5.45vw,10dvh),5.35rem)/.98 system-ui,sans-serif;
  letter-spacing:-.065em;
  max-width:none;
}
.entry-grid .login-brand .entry-farm-name {
  margin:0; color:#dff1b9; font-size:.81rem;
  font-weight:750; letter-spacing:.1em; text-transform:uppercase;
}
.entry-grid .login-brand .entry-description { margin:0; font-size:clamp(.92rem,1.35vw,1.15rem); }
.entry-grid .entry-capabilities { margin-top:clamp(.7rem,2.6dvh,1.55rem); }
.entry-grid .login-panel {
  position:relative; isolation:isolate; display:block;
  min-width:0; min-height:0; padding:0;
  background:radial-gradient(ellipse at 84% 4%,#293e2f,transparent 63%),#0d1c16;
}
.entry-scan {
  position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none;
  background:
    linear-gradient(90deg,#a4d18b0e 1px,transparent 1px) 0 0/38px 38px,
    linear-gradient(#a4d18b10 1px,transparent 1px) 0 0/38px 38px;
  mask-image:linear-gradient(#000 0 75%,#0008);
}
.entry-sweep {
  position:absolute; inset:0;
  background:linear-gradient(0deg,#b4eb9e66 0 1px,#93e0a32e 1px,transparent 83%) 0 0/100% 15% no-repeat;
  animation:entry-scan-pass 8s linear infinite;
}
.entry-radar {
  position:absolute; inset:auto -16% -12% auto;
  width:min(75%,29rem); aspect-ratio:1; border-radius:50%;
  border:1px solid #abdf9552;
  background:repeating-radial-gradient(circle,transparent 0 21px,#91cf873e 22px 23px);
}
.entry-radar::after {
  content:""; position:absolute; inset:0; border-radius:inherit;
  background:conic-gradient(transparent 0 75%,#a0d88c10 80%,#a0d88c6b 99%,transparent);
  animation:orb-orbit 12s linear infinite;
}
.entry-pulse {
  position:absolute; width:7px; aspect-ratio:1; right:9%; top:24%;
  border-radius:50%; background:#c0e89a; box-shadow:0 0 1rem #c0e89a;
  animation:entry-signal 3.2s ease-in-out infinite;
}
@keyframes entry-scan-pass { from { transform:translateY(-15%); } to { transform:translateY(100%); } }
@keyframes entry-signal { 0%,100% { opacity:.35; } 50% { opacity:1; } }
.entry-scroll {
  position:relative; height:100%; min-height:0; overflow:auto;
  overscroll-behavior-y:contain; scrollbar-color:#668765 #14271d;
  padding:clamp(.9rem,3dvh,1.8rem) clamp(.8rem,3.4vw,3.2rem);
}
.entry-scroll:focus-visible { outline-offset:-3px; }
.entry-inner { width:min(100%,31.5rem); margin-inline:auto; }
.account-request-layout .entry-inner,.entry-information .entry-inner { width:min(100%,43rem); }
.entry-nav {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.35rem;
  padding:.28rem; margin-bottom:clamp(.6rem,1.6dvh,1rem);
  border:1px solid #5f7c61; border-radius:.8rem; background:#13251e;
}
.entry-nav a {
  display:flex; align-items:center; justify-content:center;
  min-height:44px; min-width:0; padding:.34rem .35rem;
  border:1px solid transparent; border-radius:.52rem; color:#e5f3dc;
  text-align:center; text-decoration:none; font-size:clamp(.8rem,1.1vw,.93rem); font-weight:700;
}
.entry-nav a:hover { background:#2d4937; text-decoration:underline; }
.entry-nav a[aria-current="page"] { border-color:#85ad7d; background:#294633; color:#f0f8e7; }
.entry-nav a[data-install-app] { border-color:#bdd797; color:#162318; background:#cbe5a3; }
.entry-nav a[data-install-app]:hover { background:#deefc4; }
.entry-grid .sign-in {
  max-width:none; margin:0;
  padding:clamp(1rem,2.55dvh,1.9rem) clamp(1rem,2.4vw,2rem);
  border-color:#658364; background:#10231cfa;
  box-shadow:0 12px 40px #07170faa, inset 0 2px #a8d89237;
}
.entry-grid .sign-in .provider-auth { margin-top:clamp(.75rem,2dvh,1.25rem); gap:.65rem; }
.entry-grid .provider-auth label { gap:.32rem; }
.entry-grid .auth-password { gap:.62rem; }
.entry-grid .auth-entry-links { gap:.12rem .75rem; }
.entry-grid .auth-method-status:empty { display:none; }
.entry-information :is(.sign-in h1,.sign-in h2) { margin:0; color:#f0f6e8; }
.entry-information .sign-in h1 {
  margin-bottom:.55rem;
  font:730 clamp(1.7rem,3.7vw,2.6rem)/1.08 system-ui,sans-serif;
  letter-spacing:-.04em;
}
.entry-information .sign-in .panel {
  margin-top:.85rem; padding:.85rem 1rem;
  border-color:#536e55; color:#dcebd8; background:#172d23;
}
.entry-information .sign-in .panel h2 { font-size:1.09rem; letter-spacing:normal; }
.entry-information .sign-in .panel ul { padding-inline-start:1.15rem; margin:.65rem 0 0; }
.entry-information .sign-in :is(a,.install-action) { color:#ddf0bd; }
.entry-information .sign-in .install-action { margin-top:.85rem; color:#142419; background:#cbe5a3; text-decoration:none; }
@media (min-width:801px) and (max-height:745px) {
  .entry-grid .login-brand { padding-block:clamp(1rem,4dvh,1.9rem); }
  .entry-grid .entry-capabilities { gap:.53rem; }
  .entry-capabilities svg { width:2rem; height:2rem; padding:.39rem; }
  .entry-grid .provider-auth :is(input,select) { min-height:44px; }
}
@media (min-width:801px) and (max-height:510px) {
  .entry-grid .entry-capabilities small { display:none; }
}
@media (min-width:801px) and (max-height:390px) {
  .entry-grid .entry-capabilities { display:none; }
}
@media (max-width:800px) {
  .entry-grid.login,.entry-grid.account-request-layout {
    grid-template-columns:minmax(0,1fr); grid-template-rows:auto minmax(0,1fr);
  }
  .entry-grid .login-brand {
    display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
    gap:.46rem 1rem; padding:.68rem clamp(.86rem,4vw,1.25rem);
  }
  .entry-grid.account-request-layout .login-brand .cover-copy { display:block; }
  .entry-grid .login-brand :is(.entry-description,.entry-capabilities) { display:none; }
  .entry-grid .login-brand .entry-farm-name { font-size:.64rem; }
  .entry-grid .entry-title-break { display:none; }
  .entry-nav { grid-template-columns:1fr 1fr 1.25fr; }
  .entry-nav a { padding-inline:.16rem; }
  .entry-grid .login-brand .entry-title {
    max-width:none; margin:.18rem 0 0; font-size:clamp(.98rem,4.2vw,1.5rem); letter-spacing:-.045em;
  }
  .entry-scroll { padding:.72rem clamp(.55rem,3vw,1.15rem) max(1rem,env(safe-area-inset-bottom)); }
  .entry-grid .sign-in { padding:clamp(.87rem,4vw,1.2rem); }
  .entry-radar { right:-12%; bottom:-5%; }
}
@media (prefers-reduced-motion:reduce), print {
  .entry-sweep,.entry-radar::after,.entry-pulse { animation:none !important; }
  .entry-sweep { display:none; }
}

.map-feature-symbol {
  display:inline-grid; place-items:center; inline-size:1.53rem; block-size:1.53rem;
  border:1px solid #d7eab8; border-radius:35%; background:#183c31; color:#fff6c4;
  font:750 .94rem/1 system-ui,sans-serif; box-shadow:0 2px 7px #071712ab;
}
.map-popup .map-feature-symbol { margin-inline-end:.4rem; }
#map-follow[aria-pressed="true"] { background:#c4d1a1; color:#1b2b1e; }
#landmarks form { margin-block:.7rem; }

.command-shell .command-cover { isolation:isolate; }
.command-scan {
  position:absolute; inset:0; overflow:hidden; pointer-events:none;
  opacity:.67; z-index:0;
  background:linear-gradient(#b9f0c021 1px,transparent 1px) 0 0/42px 42px,
    linear-gradient(90deg,#b9f0c017 1px,transparent 1px) 0 0/42px 42px;
  mask-image:linear-gradient(90deg,#0002,#000);
}
.command-scan .entry-radar { width:min(26rem,78%); right:2%; bottom:-56%; }
.command-scan .entry-sweep { animation-duration:7.2s; }
.command-scan .entry-pulse { right:19%; top:30%; }
.command-shell .command-status {
  display:grid; gap:.85rem; min-width:0; padding:.75rem;
  border:1px solid #4f7260; border-radius:.85rem;
  background:linear-gradient(111deg,#122820,#192f25 62%,#14281f);
}
.command-shell .portal-metric { overflow:hidden; position:relative; border-top-color:#91c8a5; }
.command-shell .portal-metric::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(108deg,transparent 20%,#9adfb922 50%,transparent 78%);
  transform:translateX(-110%); animation:command-metric-scan 1.4s .16s ease-out both;
}
.command-shell .gauge-fill { animation:command-gauge-reveal .85s ease-out both; }
@keyframes command-metric-scan { to { transform:translateX(110%); } }
@keyframes command-gauge-reveal { from { stroke-dasharray:0 100; } }
@media (max-width:800px) {
  .command-shell .command-status { padding:.52rem; gap:.58rem; }
  .command-scan .entry-radar { right:-12%; bottom:-25%; }
}
@media (prefers-reduced-motion:reduce),print {
  .command-shell .portal-metric::before,.command-shell .gauge-fill { animation:none; }
}
.command-shell .command-cover > :not(.command-scan) { position:relative; z-index:1; }

.operations-shell .map-feature-editor {
  background:#182c23; border:1px solid #587761; border-radius:.65rem; padding:.7rem .85rem;
}
.operations-shell .map-feature-editor > summary { font-weight:700; cursor:pointer; }
.operations-shell .map-feature-editor[open] > summary { margin-bottom:.55rem; }
.map-feature-editor p { color:#c1d7c7; margin:.35rem 0 .6rem; font-size:.88rem; }
.map-feature-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(10rem,.8fr); gap:.65rem; }
.operations-shell .map-feature-editor .fields { grid-template-columns:minmax(0,1fr); }
.operations-shell .map-feature-editor button { justify-self:start; }
@media(max-width:520px) { .map-feature-fields { grid-template-columns:minmax(0,1fr); } }

.map-popup a { display:block; margin-top:.3rem; }
.map-feature-marker.is-editing { cursor:grab; box-shadow:0 0 0 .23rem #c4f7d4; }
.map-feature-actions { display:flex; flex-wrap:wrap; align-items:baseline; gap:.75rem; margin-top:.7rem; }
.map-feature-actions details[open] { flex-basis:100%; }
