:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#08090d;color:#f6f7fb;--blue:#1520a6;--line:#292d3a;--panel:#11141b;--muted:#aeb4c3}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at top right,#121947 0,transparent 32rem),#08090d;color:#f6f7fb}a{color:inherit}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));background:rgba(8,9,13,.9);position:sticky;top:0;z-index:5;backdrop-filter:blur(14px)}.brand{text-decoration:none;display:flex;flex-direction:column}.brand span,.eyebrow{letter-spacing:.16em;font-size:.7rem;color:#9ea8d8}.brand strong{font-size:1.05rem}.topbar nav{display:flex;gap:22px}.topbar nav a{text-decoration:none;color:#c9ceda;font-size:.92rem}.shell{max-width:1180px;margin:auto;padding:42px 24px 80px}.page-head{display:flex;justify-content:space-between;gap:24px;align-items:end;margin-bottom:24px}.page-head h1,.auth-card h1{font-size:clamp(2rem,5vw,3.5rem);margin:.15em 0}.muted,.hint{color:var(--muted)}.hint{display:block;font-size:.78rem;font-weight:400;margin-top:4px}.card{border:1px solid var(--line);border-radius:20px;padding:26px;background:rgba(17,20,27,.94);box-shadow:0 18px 50px rgba(0,0,0,.18)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:11px;border:1px solid #3b4050;background:#191d27;color:#fff;text-decoration:none;font-weight:700;cursor:pointer}.button.primary{background:var(--blue);border-color:#3340d4}.auth-wrap{min-height:70vh;display:grid;place-items:center}.auth-card{width:min(460px,100%)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.form-grid.one{grid-template-columns:1fr}.form-grid label{font-weight:700;font-size:.9rem}.form-grid input,.form-grid select,.form-grid textarea{width:100%;margin-top:8px;background:#0a0d13;color:#fff;border:1px solid #343949;border-radius:11px;padding:13px 14px;font:inherit}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{outline:2px solid #4250dd;border-color:transparent}.full{grid-column:1/-1}.actions{display:flex;justify-content:flex-end;gap:12px}.conditional[hidden]{display:none!important}.flash{border-radius:12px;padding:14px 16px;margin-bottom:20px}.flash.error{background:#331519;border:1px solid #6f2932}.flash.success{background:#12301f;border:1px solid #286a43}.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:20px}.stat{padding:20px;border:1px solid var(--line);border-radius:16px;background:#0e1118}.stat strong{font-size:2rem;display:block}.stat span{color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center}.grow-list{display:grid;gap:10px;margin-top:14px}.grow-row{display:flex;justify-content:space-between;gap:20px;padding:17px;border:1px solid #292f3c;border-radius:14px;text-decoration:none;background:#0b0e14}.grow-row:hover{border-color:#4653dc}.grow-row div{display:flex;flex-direction:column;gap:4px}.grow-row span{font-size:.84rem;color:var(--muted)}.grow-row.new{border-style:dashed}.empty{text-align:center;padding:42px 20px}.step-list{display:grid;gap:10px}.step{display:flex;gap:14px;padding:14px;border:1px solid #292f3c;border-radius:13px}.step>span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#202532;font-weight:800}.step div{display:flex;flex-direction:column;gap:4px}.step small{color:var(--muted)}.step.done>span{background:var(--blue)}@media(max-width:720px){.topbar nav a:not(:last-child){display:none}.form-grid,.stats{grid-template-columns:1fr}.page-head{align-items:stretch;flex-direction:column}.actions{flex-direction:column}.grow-row{flex-direction:column}}.step-link{text-decoration:none;color:inherit}.step-link:hover{border-color:#4653dc}.grow-row.static{cursor:default}.status-pill{align-self:center;border:1px solid #343949;border-radius:999px;padding:6px 10px!important;color:#cbd1df!important;font-size:.72rem!important;white-space:nowrap}.plant-summary{margin-bottom:0}
.review-stack{display:grid;gap:18px}.review-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:14px 0 20px}.review-grid>div{display:flex;flex-direction:column;gap:4px;padding:12px;border:1px solid var(--border,#d9d9df);border-radius:10px}.review-grid small,.review-grid span{color:var(--muted,#6b7280)}.review-choice{display:flex;gap:18px;flex-wrap:wrap;margin:10px 0 4px}.review-choice label{display:flex;align-items:center;gap:7px;font-weight:600}
.check-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.check-card,.confirm-box{display:flex;gap:10px;align-items:flex-start;padding:14px;border:1px solid var(--line,#d7dbe2);border-radius:12px;background:var(--card,#fff)}.check-card input,.confirm-box input{margin-top:4px}.check-card span{display:flex;flex-direction:column;gap:3px}.check-card small{opacity:.7}.required{font-size:.72rem;font-weight:800;letter-spacing:.05em}.conditional{display:none}
/* Build 9 structured alerts */
.persistent-alert{border:1px solid #8b6b21;background:#2d250f;border-radius:12px;padding:14px 16px;margin:12px 0}.persistent-alert.flashing{border-color:#b43a45;background:#351519;animation:dfc-alert-flash 1.15s infinite}.persistent-alert strong{display:block;margin-bottom:4px}@keyframes dfc-alert-flash{0%,100%{opacity:1}50%{opacity:.48}}
.alert-severity{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.05em;padding:3px 8px;border:1px solid currentColor;border-radius:999px;margin-right:8px}.severity-critical{font-weight:800}.severity-critical .alert-severity{animation:dfcPulse 1.1s infinite}.severity-high .alert-severity,.severity-moderate .alert-severity,.severity-monitor .alert-severity{animation:none}@keyframes dfcPulse{50%{opacity:.35}}


/* DFC mobile layout baseline — 2026-10-11.
   Scope page layout adjustments away from the approved image-based login. */
html { -webkit-text-size-adjust: 100%; }
img, video, canvas, svg { max-width: 100%; height: auto; }
.shell { min-width: 0; }
.shell > *, .card, .form-grid > *, .page-head > *, .grow-row > * { min-width: 0; }
.form-grid input, .form-grid select, .form-grid textarea { min-width: 0; max-width: 100%; }
textarea { resize: vertical; }
.card, .grow-row, .step, .flash { overflow-wrap: anywhere; }
/* Tables remain readable without forcing the entire page wider than the phone. */
.shell table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shell table th, .shell table td { overflow-wrap: normal; }
/* Keep every existing navigation link available on phones. */
@media (max-width: 720px) {
  .topbar nav a:not(:last-child) { display: inline-flex; }
  body:not(:has(.auth-wrap)) .topbar {
    position: relative;
    height: auto;
    min-height: 76px;
    padding: 12px 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  body:not(:has(.auth-wrap)) .topbar .brand { max-width: 100%; }
  body:not(:has(.auth-wrap)) .topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }
  body:not(:has(.auth-wrap)) .topbar nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #11141b;
  }
  body:not(:has(.auth-wrap)) .shell { width: 100%; padding: 20px 14px 56px; }
  body:not(:has(.auth-wrap)) .card { padding: 18px 14px; border-radius: 15px; }
  body:not(:has(.auth-wrap)) .page-head { gap: 12px; margin-bottom: 18px; }
  body:not(:has(.auth-wrap)) .page-head h1 { font-size: clamp(1.65rem, 7vw, 2.4rem); }
  body:not(:has(.auth-wrap)) .form-grid,
  body:not(:has(.auth-wrap)) .stats,
  body:not(:has(.auth-wrap)) .check-grid,
  body:not(:has(.auth-wrap)) .review-grid { grid-template-columns: minmax(0, 1fr); }
  body:not(:has(.auth-wrap)) .actions { align-items: stretch; }
  body:not(:has(.auth-wrap)) .actions .button { width: 100%; }
  body:not(:has(.auth-wrap)) .grow-row { padding: 14px; gap: 10px; }
  body:not(:has(.auth-wrap)) .section-title { align-items: flex-start; flex-wrap: wrap; gap: 10px; }
  body:not(:has(.auth-wrap)) .step { gap: 10px; }
  body:not(:has(.auth-wrap)) .step > span { flex: 0 0 34px; }
  body:not(:has(.auth-wrap)) .form-grid input,
  body:not(:has(.auth-wrap)) .form-grid select,
  body:not(:has(.auth-wrap)) .form-grid textarea { font-size: 16px; }
}
@media (max-width: 380px) {
  body:not(:has(.auth-wrap)) .topbar nav a { padding-inline: 9px; font-size: .82rem; }
  body:not(:has(.auth-wrap)) .shell { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .persistent-alert.flashing, .severity-critical .alert-severity { animation-duration: 3s; }
}

/* DFC shared header: all authenticated pages, not the image login. */
body:not(:has(.dfc-picture-login)) .topbar { min-height:116px; height:auto; padding:12px clamp(18px,4vw,64px); background:#05080f; border-bottom:1px solid #1742a2; gap:18px; }
body:not(:has(.dfc-picture-login)) .topbar .brand { width:auto; max-width:520px; min-height:92px; padding-left:128px; position:relative; justify-content:center; flex-shrink:1; }
body:not(:has(.dfc-picture-login)) .topbar .brand::before { content:""; position:absolute; left:0; top:50%; transform:translateY(-50%); width:118px; height:88px; background:url('dfc-logo.jpg') center/contain no-repeat; }
body:not(:has(.dfc-picture-login)) .topbar .brand span { font-size:clamp(12px,1.1vw,15px); letter-spacing:.08em; color:#e9f1ff; }
body:not(:has(.dfc-picture-login)) .topbar .brand strong { font-size:clamp(21px,1.8vw,27px); color:#3a83ff; }
body:not(:has(.dfc-picture-login)) .topbar nav { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
body:not(:has(.dfc-picture-login)) .topbar nav a { display:inline-flex; align-items:center; min-height:44px; padding:11px 16px; border-radius:9px; text-decoration:none; }
body:not(:has(.dfc-picture-login)) .topbar nav a.nav-active { background:#103cf2; color:#fff; }
@media(max-width:720px) {
 body:not(:has(.dfc-picture-login)) .topbar { min-height:0; padding:12px 16px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand { min-height:76px; padding-left:102px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand::before { width:94px; height:72px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand span { font-size:11px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand strong { font-size:20px; }
 body:not(:has(.dfc-picture-login)) .topbar nav { width:100%; }
}

/* Update 03: clearly larger shared header branding. Login artwork remains untouched. */
body:not(:has(.dfc-picture-login)) .topbar { min-height:146px; padding:14px clamp(18px,4vw,64px); }
body:not(:has(.dfc-picture-login)) .topbar .brand { min-height:116px; padding-left:190px; max-width:none; }
body:not(:has(.dfc-picture-login)) .topbar .brand::before { width:178px; height:116px; }
body:not(:has(.dfc-picture-login)) .topbar .brand span { font-size:clamp(15px,1.5vw,20px); letter-spacing:.06em; }
body:not(:has(.dfc-picture-login)) .topbar .brand strong { font-size:clamp(27px,2.5vw,35px); }
@media(max-width:720px) {
 body:not(:has(.dfc-picture-login)) .topbar { min-height:0; padding:12px 16px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand { min-height:92px; padding-left:136px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand::before { width:126px; height:88px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand span { font-size:12px; }
 body:not(:has(.dfc-picture-login)) .topbar .brand strong { font-size:23px; }
}

/* Approved desktop header compact height (current live setting) */
@media(min-width:721px){body:not(:has(.dfc-picture-login)) .topbar{min-height:116px;height:116px;padding-top:4px;padding-bottom:4px}}

/* Mobile-only navigation and branding; desktop and login unchanged. */
@media(max-width:720px){
 body:not(:has(.dfc-picture-login)) .topbar {position:sticky;flex-wrap:nowrap;align-items:center;gap:8px;padding:12px 12px;min-height:104px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand {min-width:0;flex:1 1 auto;padding-left:143px;min-height:92px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand::before {width:135px;height:94px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand span {font-size:12px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand strong {font-size:23px;}
 body:not(:has(.dfc-picture-login)) .topbar > nav {display:none!important;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu {display:block;flex:0 0 auto;position:relative;z-index:20;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu summary {display:grid;place-items:center;width:44px;height:44px;cursor:pointer;color:#fff;border:1px solid #3158a3;border-radius:10px;background:#0a1730;list-style:none;font-size:27px;line-height:1;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu summary::-webkit-details-marker {display:none;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu summary:focus-visible {outline:2px solid #73a5ff;outline-offset:3px;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu nav {position:absolute;right:0;top:calc(100% + 8px);width:190px;display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:8px;background:#071122;border:1px solid #2853a2;border-radius:12px;box-shadow:0 14px 35px #000a;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu nav a {display:block;padding:12px 14px;min-height:44px;border-radius:8px;white-space:nowrap;text-decoration:none;}
 body:not(:has(.dfc-picture-login)) .dfc-mobile-menu nav a.nav-active {background:#103cf2;color:#fff;}
}
@media(max-width:390px){
 body:not(:has(.dfc-picture-login)) .topbar .brand {padding-left:116px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand::before {width:110px;height:85px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand span {font-size:10px;}
 body:not(:has(.dfc-picture-login)) .topbar .brand strong {font-size:20px;}
}
@media(min-width:721px){.dfc-mobile-menu{display:none!important}}

/* Mobile navigation correction: desktop layout and login are unchanged. */
@media (max-width:720px) {
 body:not(:has(.dfc-picture-login)) header.topbar {display:flex;flex-wrap:nowrap;align-items:center;gap:8px;min-width:0;}
 body:not(:has(.dfc-picture-login)) header.topbar > nav[aria-label="Main navigation"] {display:none!important;visibility:hidden!important;}
 body:not(:has(.dfc-picture-login)) header.topbar > .brand {min-width:0;flex:1 1 auto;padding-left:150px;max-width:calc(100% - 54px);}
 body:not(:has(.dfc-picture-login)) header.topbar > .brand::before {width:145px;height:98px;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu {display:block!important;flex:0 0 46px;position:relative;z-index:100;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > summary {display:flex;align-items:center;justify-content:center;width:46px;height:46px;padding:0;list-style:none!important;font-size:28px;white-space:nowrap;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > summary::marker {content:"";font-size:0;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > summary::-webkit-details-marker {display:none!important;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > summary > span {display:block;line-height:1;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > nav[aria-label="Mobile navigation"] {position:absolute!important;top:calc(100% + 8px);right:0;width:190px;display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:4px!important;padding:8px;background:#071122;border:1px solid #2853a2;border-radius:12px;box-shadow:0 14px 35px #000a;z-index:101;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu:not([open]) > nav {display:none!important;}
 body:not(:has(.dfc-picture-login)) header.topbar > .dfc-mobile-menu > nav > a {display:block!important;width:100%;min-height:44px;padding:12px 14px!important;white-space:nowrap!important;overflow-wrap:normal!important;text-align:left;}
}
@media (max-width:390px) {
 body:not(:has(.dfc-picture-login)) header.topbar > .brand {padding-left:119px;}
 body:not(:has(.dfc-picture-login)) header.topbar > .brand::before {width:115px;height:90px;}
}
/* Keep DFC Grow Tracker header visible while scrolling */
body:not(:has(.dfc-picture-login)) .topbar {
    position: sticky !important;
    top: 0;
    z-index: 1000;
}
/* Fixed header on mobile only */
@media (max-width: 720px) {
    body:not(:has(.dfc-picture-login)) header.topbar {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1000;
    }

    body:not(:has(.dfc-picture-login)) {
        padding-top: 104px;
    }
}
/* Show conditional fields when JavaScript activates them */
.form-grid .conditional:not([hidden]) {
    display: block;
}
/* Start New Grow — conditional field spacing */
.form-grid:has(select[name="plant_count"]) .conditional:not([hidden]) {
    display: block;
    margin-top: 18px;
}

.form-grid:has(select[name="plant_count"]) .conditional:not([hidden]) input {
    margin-top: 10px;
}