/* YeojuDrone one-page workflow dashboard. Existing admin screens and handlers remain intact. */
#yd-flow-hub[hidden],#yd-flow-detail-heading[hidden]{display:none!important}
#yd-flow-hub{min-width:0;max-width:100%;margin:0 0 22px;color:#17334e;font-family:-apple-system,BlinkMacSystemFont,'Apple SD Gothic Neo',system-ui,sans-serif}
#yd-flow-hub *{box-sizing:border-box;min-width:0}
#yd-flow-hub .yd-flow-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}
#yd-flow-hub .yd-flow-eyebrow{font-size:11px;letter-spacing:.09em;color:#148b83;font-weight:900;margin:0 0 4px}
#yd-flow-hub h2{font-size:clamp(20px,2vw,28px);line-height:1.35;letter-spacing:-.04em;margin:0 0 3px}
#yd-flow-hub .yd-flow-heading p:not(.yd-flow-eyebrow){color:#526a80;margin:0;font-size:13px}
#yd-flow-hub .yd-flow-refresh,#yd-flow-hub .yd-flow-main-action,#yd-flow-hub .yd-flow-sub-action,#yd-flow-hub .yd-flow-note button{border:1px solid #c9dceb;border-radius:10px;background:#fff;color:#17466d;padding:10px 14px;min-height:44px;cursor:pointer;font-size:13px;font-weight:800}
#yd-flow-hub .yd-flow-scope{font-size:12px;color:#657e94;margin:0 0 12px;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-steps{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:0 0 14px}
#yd-flow-hub .yd-flow-step{border:1px solid #d9e5f0;border-radius:14px;background:#fff;color:#1c3b5b;padding:12px;min-height:115px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:3px;cursor:pointer;box-shadow:0 2px 8px rgba(25,65,110,.035);overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-step .yd-flow-num{font-size:12px;font-weight:850;color:#168d83}
#yd-flow-hub .yd-flow-step strong{font-size:15px;line-height:1.32;font-weight:850}
#yd-flow-hub .yd-flow-step small{color:#657c91;font-size:11px;line-height:1.35}
#yd-flow-hub .yd-flow-step .yd-flow-count{font-size:11px;font-weight:800;margin-top:auto;color:#286799;line-height:1.35}
#yd-flow-hub .yd-flow-step[aria-pressed="true"]{border:2px solid #2269c8;padding:11px;background:#eaf3ff;box-shadow:0 0 0 1px rgba(35,102,200,.04)}
#yd-flow-hub .yd-flow-step:focus-visible,#yd-flow-hub button:focus-visible,#yd-flow-hub a:focus-visible{outline:3px solid #139b9c;outline-offset:2px}
#yd-flow-hub .yd-flow-board{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(220px,.85fr);gap:12px}
#yd-flow-hub .yd-flow-board-main,#yd-flow-hub .yd-flow-board-aside{background:#fff;border:1px solid #dce7f2;border-radius:16px;padding:18px;min-width:0}
#yd-flow-hub .yd-flow-board-title{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #e5edf6;padding-bottom:13px;margin-bottom:12px}
#yd-flow-hub .yd-flow-board-kicker{color:#15877e;font-size:11px;font-weight:850}
#yd-flow-hub .yd-flow-board-title h3{font-size:19px;margin:3px 0;font-weight:900}
#yd-flow-hub .yd-flow-board-title p{font-size:12px;color:#60768a;line-height:1.5;margin:0}
#yd-flow-hub .yd-flow-main-action{background:#1966d2;color:white;border-color:#1966d2;flex-shrink:0;font-size:14px}
#yd-flow-hub .yd-flow-task{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e0eaf4;border-radius:11px;padding:11px 12px;margin-bottom:8px;background:#fafcff}
#yd-flow-hub .yd-flow-task-text{flex:1;min-width:0}
#yd-flow-hub .yd-flow-task strong{font-size:13px;line-height:1.45;display:block;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-task small{display:block;color:#648096;font-size:11px;line-height:1.65;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-task button{background:white;border:1px solid #cdddea;border-radius:9px;color:#1a5988;padding:8px 11px;min-height:44px;font-size:12px;font-weight:800;cursor:pointer;flex-shrink:0}
#yd-flow-hub .yd-flow-note{padding:12px 14px;border:1px solid #d9e8f4;border-radius:10px;background:#f3f8ff;margin-bottom:10px;line-height:1.6;font-size:12px;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-note p{margin:4px 0 7px;color:#5c7084}
#yd-flow-hub .yd-flow-empty{background:#f7f9fc;border:1px dashed #d7e3ee;border-radius:11px;padding:16px;color:#587086;font-size:13px;line-height:1.55}
#yd-flow-hub .yd-flow-extra,#yd-flow-hub .yd-flow-safety,#yd-flow-hub .yd-flow-footnote{font-size:11px;color:#667e93;line-height:1.55;margin:12px 0 0}
#yd-flow-hub .yd-flow-board-aside h3{font-size:16px;margin:0 0 6px}
#yd-flow-hub .yd-flow-board-aside>p{margin:0 0 10px;color:#62798e;font-size:12px;line-height:1.65}
#yd-flow-hub .yd-flow-done-item{border-bottom:1px solid #e4ebf3;padding:8px 0;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-done-item strong{display:block;font-size:12px}
#yd-flow-hub .yd-flow-done-item small{color:#687f95;font-size:11px}
#yd-flow-hub .yd-flow-done>p{font-size:12px;color:#62798e}
#yd-flow-hub .yd-flow-sub-action{width:100%;margin-top:12px}
#yd-flow-hub .yd-flow-sms-link{display:block;color:#1d639d;font-weight:800;font-size:12px;margin-top:12px;text-decoration:underline;min-height:32px}
#yd-flow-hub .yd-flow-detail-heading{margin:16px 0 0;display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;padding:13px;background:#e8f1fc;border:1px solid #cbdff4;border-radius:11px}
#yd-flow-hub .yd-flow-detail-heading strong{font-size:15px}
#yd-flow-hub #yd-flow-close{background:#fff;color:#174a75;border:1px solid #b7cee2;border-radius:9px;min-height:44px;padding:9px 13px;font-size:13px;font-weight:800;cursor:pointer}
/* Default overview focuses on the next action, not the old 23-parcel table and full map. */
#dashboard.yd-flow-active>.metrics,#dashboard.yd-flow-active>.layout,#dashboard.yd-flow-active>#yd-pin-manager{display:none!important}
#dashboard.yd-flow-active.yd-flow-show-list>.layout{display:grid!important}
#dashboard.yd-flow-active.yd-flow-show-pin>#yd-pin-manager{display:block!important}
/* Legacy report and settlement panels are left intact; shown only by their original handlers. */
@media(max-width:1300px){#yd-flow-hub .yd-flow-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#yd-flow-hub .yd-flow-board{grid-template-columns:minmax(0,1fr)}#yd-flow-hub .yd-flow-board-main,#yd-flow-hub .yd-flow-board-aside{padding:14px}}
@media(max-width:620px){#yd-flow-hub .yd-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}#yd-flow-hub .yd-flow-step{padding:11px;min-height:102px}#yd-flow-hub .yd-flow-step[aria-pressed="true"]{padding:10px}#yd-flow-hub .yd-flow-board-title{align-items:stretch;flex-direction:column}#yd-flow-hub .yd-flow-main-action{width:100%}#yd-flow-hub .yd-flow-task{align-items:stretch;flex-direction:column}#yd-flow-hub .yd-flow-task button{align-self:stretch}#yd-flow-hub .yd-flow-board{gap:9px}}
@media(max-width:390px){#yd-flow-hub .yd-flow-heading{flex-direction:column;align-items:stretch}#yd-flow-hub .yd-flow-refresh{width:100%}}
/* Enlarged system text may wrap to new lines; no forced fixed heights or horizontal scroll. */
@media(max-width:700px){#yd-flow-hub .yd-flow-board-title h3{font-size:clamp(18px,5vw,23px)}#yd-flow-hub .yd-flow-step strong{overflow-wrap:anywhere}#yd-flow-hub .yd-flow-steps>*{min-width:0}}

/* 2026-11-21: in-grid accordion, selected green outline, no duplicate below-board.
   The original server-backed task renderer and action handlers are reused unchanged. */
#yd-flow-hub .yd-flow-steps>.yd-flow-board{grid-column:1/-1;min-width:0;margin:0 0 10px;animation:yd-flow-reveal .2s ease-out}
#yd-flow-hub .yd-flow-step{transition:border-color .2s ease,box-shadow .2s ease,background .2s ease;min-width:0}
#yd-flow-hub .yd-flow-step[aria-pressed="true"]{border:2px solid #158f67!important;background:#f5fffa!important;box-shadow:0 0 0 1px rgba(21,143,103,.08),0 8px 22px rgba(17,100,75,.09)!important}
#yd-flow-hub .yd-flow-step[aria-pressed="true"] .yd-flow-num{color:#07885a}
#yd-flow-hub .yd-flow-steps>.yd-flow-board .yd-flow-board-main{border:2px solid #15916a;background:#fff;border-radius:19px;min-width:0}
#yd-flow-hub .yd-flow-steps>.yd-flow-board .yd-flow-board-aside{display:none!important}
#yd-flow-hub .yd-flow-steps>.yd-flow-board{grid-template-columns:minmax(0,1fr)!important}
#yd-flow-hub .yd-flow-steps>.yd-flow-board .yd-flow-task{border-radius:12px}
#yd-flow-hub .yd-flow-steps>.yd-flow-board .yd-flow-task button{border:1px solid #a4d8c7}
@keyframes yd-flow-reveal{from{opacity:.7;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#yd-flow-hub .yd-flow-steps>.yd-flow-board{animation:none}#yd-flow-hub .yd-flow-step{transition:none}}
/* Explicitly outrank workspace-shell's desktop two-column grid override. */
html.yd-admin #yd-flow-hub .yd-flow-steps>.yd-flow-board{grid-template-columns:minmax(0,1fr)!important}

/* 2026-11-21 v2: the board is a true descendant of the opened card, not a sibling. */
#yd-flow-hub .yd-flow-steps>.yd-flow-card{min-width:0;display:flex;flex-direction:column;gap:0}
#yd-flow-hub .yd-flow-card>.yd-flow-step{width:100%;height:100%;min-height:115px;border-radius:17px;flex:0 0 auto}
#yd-flow-hub .yd-flow-card.is-open{grid-column:1/-1;border:2px solid #15916a;border-radius:20px;background:#f5fffa;overflow:hidden;box-shadow:0 6px 24px rgba(14,116,78,.11)}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step{border:0!important;border-radius:0;padding:16px!important;min-height:90px;box-shadow:none!important;background:#f5fffa!important}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{display:grid;grid-template-columns:minmax(0,1fr)!important;width:100%;padding:12px;border-top:1px solid #bee3d4;margin:0;animation:yd-flow-reveal .2s ease-out}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board .yd-flow-board-aside{display:none!important}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board .yd-flow-board-main{border:1px solid #d1e8dd;border-radius:12px;padding:14px;box-shadow:none}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board .yd-flow-task{background:#fff}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step:after{content:'상세 현황 열림 ▲';display:block;color:#0f865e;font-size:11px;font-weight:800;margin-top:5px}
#yd-flow-hub .yd-flow-step[aria-expanded="false"]:after{content:'펼쳐보기 ▼';display:block;color:#72879a;font-size:11px;font-weight:700;margin-top:5px}
@media(min-width:801px){#yd-flow-hub .yd-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){#yd-flow-hub .yd-flow-card>.yd-flow-step{min-height:107px}#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step{min-height:88px}#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{padding:8px}#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board .yd-flow-board-main{padding:12px}}
@media(prefers-reduced-motion:reduce){#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{animation:none}}

/* Whole-site unified workflow: two-step nested green cards. */
#yd-flow-hub .yd-flow-subgroups{display:grid;gap:8px;margin:0 0 12px}
#yd-flow-hub .yd-flow-sub-card{border:1px solid #c9ded6;border-radius:13px;background:#fff;overflow:hidden}
#yd-flow-hub .yd-flow-sub-card.is-open{border:2px solid #158f67;background:#f3fcf6}
#yd-flow-hub .yd-flow-sub-trigger{border:0;background:transparent;min-height:52px;padding:12px 14px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:#183b32;font-size:clamp(13px,1.3vw,16px);font-weight:800;cursor:pointer}
#yd-flow-hub .yd-flow-sub-trigger small{font-size:11px;color:#50716a;display:inline}
#yd-flow-hub .yd-flow-sub-body{padding:12px 14px;border-top:1px solid #cfe8db;overflow-wrap:anywhere;background:#fff}
#yd-flow-hub .yd-flow-sub-body p{font-size:13px;color:#456455;line-height:1.6;margin:0 0 12px}
#yd-flow-hub .yd-flow-sub-detail{border:1px solid #12734e;background:#117e5a;color:#fff;font-size:14px;font-weight:800;border-radius:10px;padding:12px;min-height:44px;width:100%;cursor:pointer}
#yd-flow-hub .yd-flow-sub-empty{color:#5a6d64}
#yd-flow-hub .yd-flow-card.is-open{border-color:#15916a!important}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step[aria-pressed="true"]{background:#f2fcf5!important}
/* Prevent a vertically expanded card header from stretching to the entire body height. */
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step{height:auto!important;flex:0 0 auto!important;align-self:stretch}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{flex:0 0 auto}

/* 200% browser zoom on a 390px handset leaves ~195 CSS px: use one column rather than unreadable 86px cards. */
@media(max-width:359px){#yd-flow-hub .yd-flow-steps{grid-template-columns:minmax(0,1fr)!important}#yd-flow-hub .yd-flow-card.is-open{grid-column:1/-1}#yd-flow-hub .yd-flow-step{min-height:90px}#yd-flow-hub .yd-flow-sub-trigger{flex-wrap:wrap}}

/* v4: authenticated inline admin details, without changing existing finance/SMS forms. */
#yd-flow-hub .yd-flow-remote-content{display:grid;gap:10px;min-width:0}
#yd-flow-hub .yd-flow-remote-row{position:relative;display:flex;flex-direction:column;gap:5px;border:1px solid #d8e8dd;background:#fff;border-radius:11px;padding:11px;min-width:0;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-remote-row strong{font-size:13px;line-height:1.5;color:#234939}
#yd-flow-hub .yd-flow-remote-row small,#yd-flow-hub .yd-flow-remote-meta{font-size:12px;color:#576f63;line-height:1.6;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-remote-badge{display:inline-block;color:#9d4e06;font-size:11px;font-weight:800}
#yd-flow-hub .yd-flow-candidate{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:5px 0;border-top:1px dashed #e1eae4;font-size:12px;color:#234939}
#yd-flow-hub .yd-flow-amount-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#yd-flow-hub .yd-flow-amount-summary>div{display:flex;flex-direction:column;gap:4px;background:#ecf7f0;border:1px solid #cae5d4;border-radius:10px;padding:10px;min-width:0}
#yd-flow-hub .yd-flow-amount-summary small{font-size:11px;color:#466959}
#yd-flow-hub .yd-flow-amount-summary strong{font-size:clamp(12px,2vw,16px);overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-pagination{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px}
#yd-flow-hub .yd-flow-pagination button,#yd-flow-hub .yd-flow-remote-refresh{min-height:44px;background:#fff;border:1px solid #b6d8c2;border-radius:9px;padding:9px 13px;font-weight:700;color:#226448;cursor:pointer}
#yd-flow-hub .yd-flow-pagination button:disabled{opacity:.4;cursor:default}
#yd-flow-hub .yd-flow-remote-error{color:#a32b2b;font-size:13px}
@media(max-width:430px){#yd-flow-hub .yd-flow-amount-summary{grid-template-columns:minmax(0,1fr)}}

/* v5: no duplicate dashboard underneath the selected 2-level workflow cards.
   Keep original handlers/DOM for protected actions and direct navigation. */
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{padding:7px 9px 9px!important;background:#f5fffa!important}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board>.yd-flow-board-main{padding:8px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#yd-flow-hub .yd-flow-board-title,#yd-flow-hub .yd-flow-board-aside,#yd-flow-hub #yd-flow-tasks,#yd-flow-hub .yd-flow-footnote,#yd-flow-hub .yd-flow-scope{display:none!important}
#yd-flow-hub .yd-flow-subgroups{margin:0!important;gap:8px}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step:after{content:'세부 업무를 선택하세요 ▼';}
#yd-flow-hub .yd-flow-card.is-open>.yd-flow-step{border-bottom:1px solid #c3e3d4!important}
#yd-flow-hub .yd-flow-sub-body{max-width:100%;overflow-wrap:anywhere}
@media(max-width:600px){#yd-flow-hub .yd-flow-card.is-open>.yd-flow-board{padding:7px!important}}

/* Direct-to-protected-review shortcut: no destructive action on summary cards. */
#yd-flow-hub .yd-flow-review-shortcut{margin-top:6px;width:100%;min-height:44px;border:1px solid #b4d8c6;border-radius:10px;background:#f0faf5;color:#116e4e;font-size:14px;font-weight:750;cursor:pointer;padding:10px 12px;text-align:center}
#yd-flow-hub .yd-flow-review-shortcut:hover,#yd-flow-hub .yd-flow-review-shortcut:focus-visible{outline:2px solid #168458;outline-offset:2px;background:#e3f5eb}

/* 2026-11-22: Direct, confirmed administrator archive from a pilot review card. */
#yd-flow-hub .yd-flow-pilot-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:6px}
#yd-flow-hub .yd-flow-pilot-actions button{min-width:0;min-height:44px;margin-top:0;white-space:normal;overflow-wrap:anywhere}
#yd-flow-hub .yd-flow-archive-pilot{border:1px solid #d5a3a3;border-radius:10px;background:#fff4f4;color:#8c2222;font-size:14px;font-weight:750;cursor:pointer;padding:10px 12px;text-align:center}
#yd-flow-hub .yd-flow-archive-pilot:hover,#yd-flow-hub .yd-flow-archive-pilot:focus-visible{outline:2px solid #b85050;outline-offset:2px;background:#ffe9e9}
#yd-flow-hub .yd-flow-archive-pilot:disabled{opacity:.6;cursor:wait}
@media(max-width:420px){#yd-flow-hub .yd-flow-pilot-actions{grid-template-columns:1fr}}

/* 2026-11-22: reuse the existing farmer assignment workbench INSIDE the selected
   request card. No duplicate form, no second SMS pathway. */
#yd-flow-farmer-inline-slot{min-width:0;max-width:100%;}
#yd-flow-farmer-inline-slot #yd-farmer-requests{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;max-width:100%;min-width:0;}
#yd-flow-farmer-inline-slot #yd-farmer-requests>.sectionhead{display:none!important}
#yd-flow-farmer-inline-slot .yd-farmer-slim-grid{grid-template-columns:repeat(auto-fit,minmax(110px,1fr));max-width:100%;gap:7px}
#yd-flow-farmer-inline-slot .yd-farmer-slim{min-height:48px;max-width:100%;font-size:15px}
#yd-flow-farmer-inline-slot .yd-farmer-slim strong{font-size:15px}
#yd-flow-farmer-inline-slot .yd-farmer-slim[aria-pressed="true"]{border:2px solid #15916a!important;background:#e9f9ee!important}
#yd-flow-farmer-inline-slot .yd-farmer-rows-panel{margin:8px 0 10px!important;min-width:0}
#yd-flow-farmer-inline-slot .yd-farmer-row-list{max-height:min(42vh,460px);overflow-y:auto;overscroll-behavior:contain}
#yd-flow-farmer-inline-slot #yd-jobs-archive,#yd-flow-farmer-inline-slot #yd-parcel-archive,#yd-flow-farmer-inline-slot #yd-pilot-archive{display:none!important}
#yd-flow-farmer-inline-slot .yd-unified-actions{position:sticky;bottom:0;z-index:2;background:#f3fcf6;padding:10px 4px;margin:8px 0;border-top:1px solid #b9dfcc;display:flex;flex-wrap:wrap;align-items:center;gap:10px}
#yd-flow-farmer-inline-slot .yd-unified-actions #yd-unified-assign{min-height:46px;flex:1 1 180px}
#yd-flow-farmer-inline-slot .yd-batch-panel{border:2px solid #16996a;background:#f5fff8;margin:10px 0;border-radius:13px;padding:12px;max-width:100%}
#yd-flow-farmer-inline-slot .yd-candidate-checks{max-height:260px;overflow-y:auto}
#yd-inline-farmer-search-tools{border:1px solid #d6e6df;border-radius:10px;padding:8px;margin-bottom:12px;background:#fff}
#yd-inline-farmer-search-tools>summary{min-height:42px;display:flex;align-items:center;font-weight:750;cursor:pointer;color:#23644d;padding:4px 6px}
#yd-inline-farmer-search-tools[open]>.yd-unified-tools{margin-top:8px}
#yd-flow-hub .yd-flow-farmer-help{font-size:13px;line-height:1.55;color:#295d4d;padding:8px 10px;background:#f2faf5;border-radius:9px;margin-bottom:10px}
@media(max-width:450px){#yd-flow-farmer-inline-slot .yd-farmer-slim-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#yd-flow-farmer-inline-slot .yd-farmer-row-list{max-height:38vh}#yd-flow-farmer-inline-slot #yd-farmer-requests .yd-unified-tools{gap:6px}#yd-flow-farmer-inline-slot .yd-unified-actions{padding:7px 3px}}


/* 2026-11-22 final: one farmer -> parcels -> candidates workflow; no duplicate
   receipt listing or scrolling through unrelated server-wide indexes. */
#yd-flow-hub .yd-flow-card[data-flow-card="request"].is-open>.yd-flow-board{background:#f5fffa}
#yd-flow-farmer-inline-slot{min-width:0}
#yd-flow-farmer-inline-slot #yd-farmer-requests>.yd-unified-tools:not(.yd-inline-farmer-search){margin-bottom:8px}
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools{margin:0 0 10px}
#yd-flow-farmer-inline-slot #yd-farmer-request-cards{margin:0 0 8px}
#yd-flow-farmer-inline-slot #yd-farmer-request-cards .yd-farmer-rows-panel:not(:has(.yd-farmer-rows-heading)){display:none}
#yd-flow-farmer-inline-slot .yd-farmer-delete-note{display:none}
#yd-flow-farmer-inline-slot #yd-farmer-requests>.hint[style*="font-size:11px"]{display:none}
#yd-flow-farmer-inline-slot .yd-farmer-rows-heading h3{font-size:clamp(14px,2vw,18px)}
#yd-flow-farmer-inline-slot .yd-farmer-slim{min-height:52px;touch-action:manipulation}
#yd-flow-farmer-inline-slot .yd-inline-select-controls{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 7px}
#yd-flow-farmer-inline-slot .yd-inline-select-controls .btn{flex:1 1 145px;min-height:44px;font-size:13px;padding:9px 11px}
#yd-flow-farmer-inline-slot .yd-inline-farmer-search{margin-bottom:8px}
#yd-flow-farmer-inline-slot .yd-inline-farmer-search input{flex:1 1 170px;min-width:0}
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools .yd-inline-archive-group{display:grid;gap:8px;margin:12px 0 0}
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools .yd-inline-archive-group>details{margin:0!important;padding:10px!important}
#yd-flow-farmer-inline-slot .yd-unified-actions{box-shadow:0 -3px 12px rgba(16,80,56,.08)}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure{margin:12px 0 0;border:1px solid #c9dded;border-radius:12px;min-width:0;max-width:100%;background:#fff}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure>summary{cursor:pointer;color:#1b5074;font-weight:800;font-size:15px;padding:13px;min-height:46px;display:list-item;list-style-position:inside}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure[open]>summary{border-bottom:1px solid #dbe7f0}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure #mapsection{border:0!important;margin:0!important;padding:10px!important;position:static!important;max-height:none!important;width:100%;min-width:0;box-shadow:none!important}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure .map{height:clamp(220px,35dvh,350px)!important;min-height:220px}
#yd-flow-farmer-inline-slot .yd-inline-map-disclosure #mapnote{font-size:12px;line-height:1.5}
/* The homepage overview is intentionally short; original backend/history DOM remains
   available from the protected detailed screens, never removed from source. */
#dashboard.yd-flow-active:not(.yd-flow-detail-open)>.yd-hero,
#dashboard.yd-flow-active:not(.yd-flow-detail-open)>#notices,
#dashboard.yd-flow-active:not(.yd-flow-detail-open)>#yd-global-totals{display:none!important}
@media(max-width:450px){
 #yd-flow-farmer-inline-slot .yd-inline-select-controls{gap:6px}
 #yd-flow-farmer-inline-slot .yd-inline-select-controls .btn{flex:1 1 100%;white-space:normal}
 #yd-flow-farmer-inline-slot #yd-farmer-requests .yd-unified-actions{position:sticky;bottom:0}
 #yd-flow-farmer-inline-slot .yd-inline-map-disclosure .map{height:250px!important}
}
@media(max-width:359px){#yd-flow-farmer-inline-slot .yd-farmer-slim-grid{grid-template-columns:minmax(0,1fr)!important}}

/* Archives remain functional inside the deliberately collapsed advanced menu. */
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools #yd-jobs-archive,
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools #yd-parcel-archive,
#yd-flow-farmer-inline-slot #yd-inline-farmer-search-tools #yd-pilot-archive{display:block!important}


/* 2026-11-22 role-first one-position admin console. Light, high-contrast theme. */
#yd-flow-hub .yd-flow-steps{display:block!important;margin:0;min-width:0}
#yd-flow-hub .yd-flow-steps>.yd-flow-card{display:none!important}
#yd-flow-hub .yd-role-station{display:block;min-width:0;max-width:100%;padding:12px;border:2px solid #15916a;border-radius:23px;background:#f7fefa}
#yd-flow-hub .yd-role-station [hidden]{display:none!important}
#yd-flow-hub .yd-role-hint{font-size:clamp(16px,2vw,21px);font-weight:850;color:#1b3a35;margin:4px 4px 13px}
#yd-flow-hub .yd-role-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#yd-flow-hub .yd-role-choice{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:7px;text-align:left;border:1px solid #d5e3ed;border-radius:18px;background:#fff;min-height:175px;padding:20px 18px;cursor:pointer;color:#1a3755}
#yd-flow-hub .yd-role-choice:first-child{border-color:#a8cbe8}#yd-flow-hub .yd-role-choice:nth-child(2){border-color:#a6d5c0}
#yd-flow-hub .yd-role-choice strong{font-size:clamp(19px,2.3vw,25px);line-height:1.25}
#yd-flow-hub .yd-role-choice small{font-size:13px;color:#566f82;line-height:1.4;padding-right:10px}
#yd-flow-hub .yd-role-icon{display:inline-flex;align-items:center;justify-content:center;color:#263d50}
#yd-flow-hub .yd-role-icon .yd-role-outline{display:block;width:30px;height:30px;stroke:currentColor;flex:none}
#yd-flow-hub .yd-role-count{font-size:13px;font-weight:850;color:#156e53;margin-top:auto}
#yd-flow-hub .yd-role-arrow{position:absolute;right:16px;top:17px;font-size:29px;color:#2b6676}
#yd-flow-hub .yd-role-nav{display:flex;flex-wrap:wrap;align-items:center;gap:12px;justify-content:space-between;border-bottom:1px solid #d7e6df;padding:4px 2px 14px;margin-bottom:12px;min-height:50px}
#yd-flow-hub .yd-role-nav strong{font-size:clamp(16px,2.1vw,21px);color:#183a32;overflow-wrap:anywhere;flex:1;text-align:center}
#yd-flow-hub .yd-role-nav button{background:#fff;border:1px solid #d1e2e0;color:#1a4f4d;border-radius:11px;min-height:44px;padding:8px 12px;font-size:13px;font-weight:800;cursor:pointer}
#yd-flow-hub .yd-role-menu-rows{display:grid;grid-template-columns:1fr;gap:8px}
#yd-flow-hub .yd-role-task{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:54px;text-align:left;background:#fff;color:#234252;border:1px solid #d5e5e3;border-radius:12px;padding:12px 14px;cursor:pointer;font-size:clamp(14px,1.7vw,17px);font-weight:800;overflow-wrap:anywhere}
#yd-flow-hub .yd-role-task>span:first-child{flex:1;min-width:0}
#yd-flow-hub .yd-role-task-count{color:#bf343f;font-size:13px;white-space:nowrap}
#yd-flow-hub .yd-role-task>span:last-child{font-size:24px;color:#188465}
#yd-flow-hub .yd-role-board-slot>.yd-flow-board{display:block!important;margin:0!important;max-width:100%}
#yd-flow-hub .yd-role-board-slot>.yd-flow-board .yd-flow-board-main{border:1px solid #d6e7df;border-radius:14px;padding:12px;background:#fff;box-shadow:none}
#yd-flow-hub .yd-role-board-slot>.yd-flow-board .yd-flow-board-aside{display:none!important}
#yd-flow-hub #yd-role-board-slot>.yd-flow-board{display:block!important}
#yd-flow-hub #yd-role-board-slot .yd-flow-board-aside{display:none!important}
#yd-flow-hub #yd-role-board-slot .yd-flow-board-title{border:0;margin:0 0 8px;padding:0;gap:10px}
#yd-flow-hub #yd-role-board-slot .yd-flow-board-title p{display:none}
#yd-flow-hub #yd-role-board-slot .yd-flow-safety{display:none}
#yd-flow-hub .yd-flow-scope,#yd-flow-hub .yd-flow-heading p:not(.yd-flow-eyebrow){display:none!important}
#yd-flow-hub .yd-flow-heading{margin:0 0 12px}
#yd-flow-hub .yd-flow-heading h2{font-size:20px}
#yd-flow-hub #yd-role-legacy-slot{min-width:0;max-width:100%}
#yd-flow-hub #yd-role-legacy-slot>section{position:static!important;max-width:100%;overflow:visible}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-headline{display:none}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-grid{grid-template-columns:minmax(0,1fr)}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-metrics{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-metric{min-height:92px;padding:12px}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-metric b{font-size:24px}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-head{flex-wrap:wrap}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-head input{width:100%;max-width:100%}
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-side{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
#yd-flow-hub .yd-role-choice:focus-visible,#yd-flow-hub .yd-role-task:focus-visible{outline:3px solid #16976c;outline-offset:2px}
@media(max-width:620px){#yd-flow-hub .yd-role-choices{gap:8px}#yd-flow-hub .yd-role-choice{min-height:158px;padding:15px 11px}#yd-flow-hub .yd-role-choice strong{font-size:18px}#yd-flow-hub .yd-role-choice small{font-size:12px}#yd-flow-hub .yd-role-station{padding:9px}#yd-flow-hub .yd-role-nav strong{font-size:15px}#yd-flow-hub #yd-role-board-slot .yd-flow-board-title{flex-direction:column;align-items:stretch}}
@media(max-width:320px){#yd-flow-hub .yd-role-choices{grid-template-columns:1fr}#yd-flow-hub .yd-role-choice{min-height:110px}#yd-flow-hub .yd-role-nav{gap:6px}#yd-flow-hub .yd-role-nav button{font-size:11px;padding:6px}}

/* Keep long work-allocation tables inside the chosen card instead of growing the entire page. */
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-grid .scroll{max-height:min(53dvh,520px);overflow-y:auto!important;overflow-x:auto!important;overscroll-behavior:contain} 
#yd-flow-hub #yd-role-legacy-slot #step7-screen .yd7-grid>.panel{min-width:0;max-width:100%}

/* 2026-11-22: live two-level administrator alert badges (no new SMS calls). */
#yd-flow-hub .yd-role-count{display:inline-flex;align-items:center;align-self:flex-start;border:1px solid #d3e3de;border-radius:999px;padding:6px 10px;min-height:32px;font-weight:800;line-height:1.3;font-size:clamp(11px,1.6vw,14px);background:#f3faf6;color:#1e6b52;max-width:100%;white-space:normal;overflow-wrap:anywhere}
#yd-flow-hub .yd-role-count.yd-actionable{border-color:#f0a5af;background:#fff1f2;color:#a51c2c;font-weight:900}
#yd-flow-hub .yd-role-count.yd-count-unknown{border-color:#e5d4a2;background:#fff9ea;color:#7e631e}
#yd-flow-hub .yd-role-task-count{display:inline-flex;align-items:center;justify-content:center;max-width:42%;min-width:0;white-space:normal;overflow-wrap:anywhere;text-align:center;font-size:clamp(12px,1.5vw,15px);line-height:1.3;font-weight:900}
#yd-flow-hub .yd-role-task-count[hidden]{display:none!important}
#yd-flow-hub .yd-role-task-count.yd-actionable{border-radius:999px;border:1px solid #f3a1ab;padding:5px 10px;background:#fff0f1;color:#a32032}
#yd-flow-hub .yd-role-task-count.yd-informational{border-radius:999px;border:1px solid #bad5e9;padding:5px 9px;background:#eef7ff;color:#25577e}
#yd-flow-hub .yd-role-task-count.yd-count-unknown{color:#7e631e;font-size:11px}
#yd-flow-hub .yd-role-task{gap:8px;min-width:0}
#yd-flow-hub .yd-role-task>span:last-child{flex:none}
@media(max-width:390px){#yd-flow-hub .yd-role-choice{padding:14px 10px}#yd-flow-hub .yd-role-count{font-size:11px;padding:6px 8px}#yd-flow-hub .yd-role-task{padding:11px 9px}}

/* V5 admin: show accepted pilot first; make one final-selection action dominant. */
#step7-screen.yd-v5-priority .yd7-metrics{margin-top:20px;opacity:.9}
#step7-screen.yd-v5-priority .yd7-pick-toolbar .btn.blue{background:#fff;color:#426273;border:1px solid #bfccd7}
#yd-offer-review:has(.yd-v5-awaiting-choice){border:2px solid #17926b!important;background:#fff!important;box-shadow:0 5px 18px rgba(17,78,58,.09)}
.yd-v5-awaiting-choice{border:2px solid #b9dec9!important;border-radius:14px;padding:14px!important;display:grid;gap:9px;background:#fff!important}
.yd-v5-accept-banner{background:#f0faf4;border-radius:12px;padding:12px 14px;border:1px solid #c6e6d3}
.yd-v5-accept-banner strong{font-size:clamp(18px,3vw,23px);line-height:1.4;color:#15563b}
.yd-v5-accept-banner p{font-size:14px;margin:6px 0 0;color:#50685a}
.yd-v5-accepted-candidate{background:#f7fcf9;border:1px solid #9ed3b8!important;border-radius:11px;padding:12px;display:flex!important;align-items:center;flex-wrap:wrap;gap:12px}
.yd-v5-accepted-candidate span{font-size:clamp(17px,2.9vw,21px);font-weight:800;color:#173b30;flex:1 1 180px}
.yd-v5-accepted-candidate .yd-v5-final-choice{font-size:clamp(16px,2.6vw,19px);font-weight:850;min-height:54px;white-space:normal;border-radius:12px;background:#1365c8;color:#fff;flex:1 1 230px}
@media(max-width:640px){.yd-v5-accepted-candidate .yd-v5-final-choice{width:100%;flex-basis:100%}}
