/* Search portal */
.portal-search{max-width:1440px;margin:0 auto;padding:30px 32px 48px;color:#173d32}
body.is-public .nav-group-label{display:none}
body.is-public .feed-mode-tabs button:first-child{display:none}
.portal-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.portal-kicker{font-size:9px;letter-spacing:1.8px;font-weight:750;color:#7a876f}
.portal-heading h1{font-size:32px;font-weight:700;letter-spacing:-1.2px;margin:10px 0}
.portal-heading p{font-size:13px;color:#788370;margin:0;line-height:1.7}
.portal-heading-mark{font-size:50px;font-weight:300;color:#a8b795;padding-right:12px}
.portal-searchbar{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto;align-items:center;background:white;border:1px solid #dce3d5;border-radius:14px;padding:8px;margin-bottom:28px;box-shadow:0 3px 14px #173d3204}
.portal-searchbar label{margin:0;padding:6px 18px;min-width:0}
.portal-searchbar label+label{border-left:1px solid #e5eadf}
.portal-searchbar label>span{font-size:10px;font-weight:650;color:#748269}
.portal-searchbar input{width:100%;min-width:0;border:0!important;outline-offset:0;background:transparent;font-size:14px;padding:7px 0 2px;border-radius:0;box-shadow:none}
.portal-searchbar>button{display:flex;align-items:center;justify-content:center;gap:16px;background:#173d32;color:white;padding:14px 20px;border-radius:9px;min-height:44px;font-size:13px;font-weight:600}
.portal-searchbar svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8}
.portal-workspace{display:grid;grid-template-columns:190px minmax(0,1fr);gap:24px;align-items:start}
.portal-filters{position:sticky;top:24px;padding:4px 0}
.portal-filter-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px;font-size:12px}
.portal-filter-heading button{background:none;font-size:11px;color:#738665;min-height:36px;padding:0 4px}
.portal-filters fieldset{border:0;border-top:1px solid #dde4d6;margin:0;padding:18px 0 16px;min-width:0}
.portal-filters legend{float:left;width:100%;font-size:11px;font-weight:700;margin:0 0 12px;padding:0}
.portal-filters label{display:flex;align-items:center;gap:9px;clear:both;margin:0;min-height:37px;font-size:12px;font-weight:400;cursor:pointer}
.portal-filters input{width:15px;height:15px;min-width:15px;margin:0;accent-color:#173d32}
.portal-filters small{margin-left:auto;color:#849079;font-size:10px}
.portal-filter-note{font-size:11px;color:#8b9781;line-height:1.8;border-top:1px solid #dde4d6;padding-top:18px}
.portal-results{min-width:0}
.portal-results-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;font-size:12px;min-height:39px}
.portal-results-heading strong{font-size:16px}
.portal-results-heading div>span{display:block;color:#8a9581;font-size:10px;margin-top:5px}
.portal-results-heading label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:400;margin:0;color:#7a866f}
.portal-results-heading select{width:auto;max-width:125px;min-height:36px;background:transparent;border:0;padding:4px;font-size:11px;color:#173d32}
.portal-cards{display:grid;gap:12px}
.portal-card{position:relative;background:#fff;border:1px solid #e0e6da;border-radius:15px;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.portal-card:hover{border-color:#a1b18e;box-shadow:0 5px 18px #173d3206}
.portal-card-main{display:block;width:100%;padding:20px 22px 16px;background:transparent;text-align:left;color:inherit}
.portal-card-company{display:flex;align-items:center;gap:9px;padding-right:35px;font-size:11px;color:#738268}
.portal-company-logo{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#edf2e5;color:#173d32;font-size:15px;font-weight:700}
.portal-card h2{font-size:20px;letter-spacing:-.5px;margin:14px 0 7px;padding-right:20px}
.portal-location{font-size:11px;color:#74836b;margin:0 0 12px}
.portal-card-tags{display:flex;gap:6px;flex-wrap:wrap}
.portal-card-tags span{background:#f1f4ec;border-radius:5px;padding:5px 7px;color:#63725a;font-size:10px}
.portal-card-description{font-size:12px;color:#7b8671;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:12px 0}
.portal-pay{font-size:12px;font-weight:650}
.portal-card-footer{border-top:1px solid #eff2e9;display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 22px;padding:4px 0;font-size:10px;color:#8b967f}
.portal-card-footer button{background:none;min-height:36px;font-size:11px;color:#49663b;padding:4px 0}
.portal-card-footer button span{margin-left:7px}
.portal-save{position:absolute;top:16px;right:16px;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:transparent;color:#8b987f}
.portal-save:hover{background:#f1f5e9}.portal-save[aria-pressed=true]{color:#496b37}
.portal-save svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
.portal-save[aria-pressed=true] svg{fill:#d5e8ba}
.portal-empty{padding:55px 24px;text-align:center;border:1px dashed #cbd7c0;border-radius:15px}
.portal-empty>span{font-size:38px;color:#849775}.portal-empty h2{font-size:20px}.portal-empty p{font-size:12px;line-height:1.8;color:#7c8872;max-width:300px;margin:12px auto}
.portal-empty button{font-size:12px;color:#173d32;background:#e4edda;padding:12px 16px;border-radius:8px;margin-top:8px}
.portal-mobile-tools{display:none}
@media(max-width:899px){
 .portal-search{padding:24px 18px 36px}
 .portal-heading h1{font-size:28px;max-width:300px;line-height:1.12}.portal-heading-mark{display:none}
 .portal-kicker{font-size:8px;letter-spacing:1.3px}
 .portal-searchbar{grid-template-columns:minmax(0,1fr) auto;padding:6px;margin-bottom:12px}
 .portal-searchbar label{padding:8px 10px}.portal-searchbar label+label{grid-column:1;border-left:0;border-top:1px solid #e5eadf}
 .portal-searchbar>button{grid-column:2;grid-row:1/3;padding:12px;margin-left:5px;font-size:0;gap:0}.portal-searchbar>button svg{width:20px;height:20px}
 .portal-searchbar input{font-size:16px}.portal-searchbar label>span{font-size:9px}
 .portal-mobile-tools{display:flex;justify-content:space-between;margin:8px 0 18px}
 .portal-mobile-tools button{background:none;min-height:40px;padding:5px 0;color:#4c6840;font-size:12px}
 .portal-mobile-tools span:not(:empty){background:#e0ead4;padding:3px 7px;border-radius:12px;margin-left:4px}
 .portal-workspace{display:block}
 .portal-filters{display:none;position:static;background:#edf2e6;border-radius:12px;padding:16px;margin-bottom:20px}
 .filters-open .portal-filters{display:block}
 .portal-card-main{padding:18px}.portal-card-footer{margin:0 18px}
 .portal-card h2{font-size:19px}.portal-results-heading select{font-size:12px}
}
@media(max-width:600px){#server-status{display:none}.top .role{margin-left:auto}}

/* Search starts with useful controls rather than a large hero. */
.portal-search{padding:24px 28px 40px}.portal-heading{margin-bottom:16px}.portal-heading h1{font-size:25px;letter-spacing:-.8px;margin:4px 0 7px}.portal-kicker{display:none}.portal-heading p{font-size:12px}.portal-searchbar{margin-bottom:12px}.portal-card-main{padding:16px 18px 12px}.portal-card h2{font-size:18px;margin:10px 0 6px}.portal-card-description{margin:9px 0;font-size:12px;-webkit-line-clamp:2}.portal-card-company{font-size:11px}.portal-company-logo{width:24px;height:24px;font-size:13px}.portal-card-footer{margin:0 18px}.portal-workspace{gap:18px}.portal-filters label{min-height:40px}.portal-filters input{width:17px;height:17px;min-width:17px}.portal-filter-note{display:none}.portal-results-heading div>span{display:none}.portal-results-heading select{min-height:40px}.portal-card.is-selected{box-shadow:inset 2px 0 #72915b}
.product-search-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin:6px 0 20px;font-size:12px}.product-search-actions>button{padding:7px 0;background:none;min-height:36px;color:#416337}.product-search-actions>small{color:var(--muted);font-size:10px}.product-search-actions details{position:relative}.product-search-actions summary{cursor:pointer;min-height:36px;display:flex;align-items:center;color:#416337}.product-saved-searches{position:absolute;top:38px;left:0;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 40px #173d3215;min-width:260px;z-index:5;padding:8px}.product-saved-searches>div{display:flex;justify-content:space-between;gap:14px}.product-saved-searches button{background:none;padding:10px;font-size:12px;text-align:left}.product-show-results{display:none}.product-deadline{font-size:11px;color:var(--muted);margin-right:auto;align-self:center}

/* Search is a focused result list; job context belongs to the video workspace. */
.portal-search{max-width:1160px;padding:28px 36px 48px}.portal-workspace{grid-template-columns:210px minmax(0,1fr);gap:32px}.portal-heading h1{font-size:28px;line-height:1.2}.portal-heading p{max-width:650px;line-height:1.7}.portal-searchbar{margin-top:20px}.portal-results-heading{gap:16px;flex-wrap:wrap}.portal-results-heading select{max-width:160px;font-size:12px}.portal-card-main{padding:20px 22px 16px}.portal-card h2{font-size:22px;margin:13px 0 8px}.portal-card-description{max-width:65ch;font-size:13px;line-height:1.7}.portal-card-company{font-size:12px}.portal-card-tags{gap:7px}.portal-card-tags span{font-size:11px}.portal-card-footer{margin:0 22px;min-height:48px}.portal-card-footer>div{display:flex;align-items:center;gap:24px}.portal-card-footer button{min-height:44px;font-size:12px}.portal-save{width:44px;height:44px;top:12px;right:12px}.portal-card.is-selected{border-color:#e0e6da;box-shadow:none}.search-card-facts{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}.search-card-facts>span{font-size:11px;color:var(--muted)}.portal-pay{font-size:13px}.search-applied{margin-left:8px;padding:4px 8px;background:#e7f0dd;border-radius:5px;color:var(--ink);font-size:10px;font-weight:600}.search-active-filters{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.search-active-filters button{display:flex;align-items:center;gap:12px;min-height:38px;padding:8px 12px;background:#e6eddc;border-radius:8px;font-size:12px;color:var(--ink);text-align:left}.search-active-filters button:hover{background:#d8e5c9}.search-active-filters button span{font-size:17px}.search-video-entry{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;background:#e8efde;border:1px solid #d8e3cc;color:var(--ink);border-radius:12px;padding:16px 18px;margin:0 0 16px}.search-video-entry strong,.search-video-entry small{display:block}.search-video-entry strong{font-size:13px}.search-video-entry small{font-size:11px;color:#52664a;margin-top:5px}.search-video-entry:hover{background:#e0ebd3}.portal-empty button{margin:8px 4px 0}.portal-filter-heading button{min-height:44px}.product-search-actions>small{font-size:11px}
@media(min-width:1200px){.portal-workspace{grid-template-columns:210px minmax(0,1fr);gap:32px}}
@media(max-width:899px){.portal-search{padding:24px 18px 36px}.portal-workspace{display:block}.portal-heading h1{font-size:26px;max-width:360px}.portal-card-main{padding:18px}.portal-card h2{font-size:20px}.portal-card-footer{margin:0 18px;gap:12px}.portal-card-footer>div{gap:18px}.portal-card-footer>span{max-width:40%;line-height:1.5}.search-card-facts{align-items:flex-start;flex-direction:column;gap:8px}.portal-mobile-tools{justify-content:flex-start}.search-active-filters button{min-height:44px}.portal-results-heading select{font-size:13px}.portal-searchbar>button{font-size:12px;gap:8px}.search-video-entry{padding:14px 16px}.portal-filters .product-muted{font-size:12px;line-height:1.6}}
@media(max-width:370px){.portal-search{padding-left:12px;padding-right:12px}.portal-results-heading{gap:6px}.portal-card-footer{align-items:flex-start;flex-direction:column;gap:0;padding-top:8px}.portal-card-footer>span{max-width:none}.portal-card-footer>div{justify-content:space-between;width:100%}.portal-searchbar>button{font-size:0;gap:0}}

@media(max-width:899px){.portal-search{padding:20px 18px 30px}.portal-heading h1{font-size:25px;margin:0 0 7px;max-width:none}.portal-heading p{font-size:12px}.portal-searchbar{margin-top:14px}.product-search-actions{gap:12px;margin-bottom:16px}.product-search-actions>small{display:none}.portal-card-description{-webkit-line-clamp:2;font-size:12px}.portal-card h2{font-size:18px}.portal-mobile-tools{margin-bottom:6px}}

@media(max-width:899px){.filters-open .portal-filters{display:block;position:fixed;inset:max(75px,env(safe-area-inset-top)) 12px max(82px,env(safe-area-inset-bottom));z-index:7;overflow:auto;border:1px solid #b9c9aa;background:#f7f9f2;box-shadow:0 0 0 100vmax #102b2360;margin:0;padding:20px;border-radius:18px}}

@media(max-width:899px){.product-show-results{display:block;position:sticky;bottom:0;width:100%;min-height:46px;background:var(--ink);color:white;border-radius:10px;padding:12px;margin-top:16px;font-size:13px;font-weight:600}.portal-filter-heading{font-size:14px}.portal-filters legend{font-size:12px}.portal-filters label{min-height:44px;font-size:14px}}

@media(min-width:900px){.portal-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px}}
@media(max-width:899px){
 .portal-search{padding:18px 16px 36px}
 .portal-heading{margin:0 0 10px}
 .portal-heading h1{font-size:23px;line-height:1.14;margin:0 0 5px;max-width:unset}
 .portal-heading p{font-size:11px;line-height:1.45;max-width:42ch}
 .portal-searchbar{margin-top:10px;margin-bottom:10px}
 .product-search-actions{gap:8px;margin:4px 0 12px}
 .product-search-actions>button,.product-search-actions summary{min-height:40px;padding:8px 11px;border:1px solid #dce5d5;border-radius:9px;background:#eef3e8;font-size:11px}
 .portal-mobile-tools{margin:4px 0 12px}
 .portal-results-heading{margin:0 0 10px}
}
@media(max-width:430px){.portal-heading p{max-width:35ch}.portal-searchbar label{padding:7px 9px}.portal-searchbar label>span{font-size:9px}.portal-searchbar>button{min-width:46px}}

/* Quiet interaction feedback for the search flow. */
@media(prefers-reduced-motion:no-preference){
 .portal-searchbar{transition:border-color .18s ease,box-shadow .18s ease}
 .portal-searchbar:focus-within{border-color:#9caf8b;box-shadow:0 0 0 3px #dce8d2,0 6px 20px #173d3208}
 .portal-searchbar>button,.portal-filter-heading button,.portal-mobile-tools button,.portal-card-footer button,.search-active-filters button,.search-video-entry{transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s cubic-bezier(.22,1,.36,1)}
 .portal-searchbar>button:active,.portal-filter-heading button:active,.portal-mobile-tools button:active,.portal-card-footer button:active,.search-active-filters button:active,.search-video-entry:active{transform:scale(.98)}
 .portal-card{transition:transform .2s cubic-bezier(.22,1,.36,1),border-color .18s ease,box-shadow .18s ease}
 .portal-card:focus-within{border-color:#a1b18e;box-shadow:0 0 0 3px #dfe9d7}
 .portal-card-main:focus-visible{outline:0!important}
 .portal-save{transition:background-color .18s ease,color .18s ease,transform .2s cubic-bezier(.22,1,.36,1)}
 .portal-save:active{transform:scale(.9)}
 .portal-save[aria-pressed=true] svg{animation:jt-save-pop .28s cubic-bezier(.22,1,.36,1)}
 .search-video-entry:hover{box-shadow:0 5px 16px #173d320c;transform:translateY(-1px)}
 .search-video-entry>span:last-child{transition:transform .18s ease}
 .search-video-entry:hover>span:last-child{transform:translateX(3px)}
 .portal-empty button{transition:transform .18s ease,background-color .18s ease}
 .portal-empty button:active{transform:scale(.98)}
 @keyframes jt-save-pop{50%{transform:scale(1.2)}to{transform:scale(1)}}
}
@media(prefers-reduced-motion:reduce){.portal-searchbar,.portal-searchbar>button,.portal-card,.portal-save,.search-video-entry{transition:none!important}.portal-save[aria-pressed=true] svg{animation:none!important}}

.video-empty-state {
 max-width: 36rem;
 margin: clamp(24px, 8vh, 80px) auto;
 padding: 32px 24px;
 text-align: center;
 color: #173d32;
}
.video-empty-state > span {
 display: inline-grid;
 place-items: center;
 width: 52px;
 height: 52px;
 border-radius: 16px;
 background: #e3ecd8;
}
.video-empty-state svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.video-empty-state h1 { margin: 16px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.video-empty-state p { margin: 0 0 20px; color: #516451; }
.video-empty-state button { width: auto; padding-inline: 22px; }
