/* MyOps presentation for the directory and contract board only. */
body.ops-directory, body.ops-contracts {
 --ops-bg:#0b1119; --ops-panel:#0e1823; --ops-field:#14212e; --ops-line:#26323e;
 --ops-text:#e7edf3; --ops-muted:#a1adba; --ops-gold:#d6ae58;
 --profile-glass:var(--ops-panel); --profile-glass-strong:var(--ops-field);
 --profile-inset:var(--ops-field); --profile-line:var(--ops-line); --profile-accent:var(--ops-gold);
 --profile-shadow:none; --profile-soft-shadow:none;
 --bg:var(--ops-bg); --panel:var(--ops-panel); --panel-2:var(--ops-field);
 --text:var(--ops-text); --muted:var(--ops-muted); --border:var(--ops-line); --cyan:var(--ops-gold);
 color:var(--ops-text);
}
html body:is(.ops-directory,.ops-contracts) { background:var(--ops-bg) !important; background-image:none !important; }
body.ops-directory::before { display:none; }
html[data-theme="light"] body:is(.ops-directory,.ops-contracts) {
 --ops-bg:#f2f5f8; --ops-panel:#fff; --ops-field:#edf2f6; --ops-line:#ced7e0;
 --ops-text:#182737; --ops-muted:#526376; --ops-gold:#87651f;
}
body.ops-directory .main { padding:38px 32px 28px; }
body.ops-directory .dir-wrap { width:100%; max-width:1840px; min-width:0; gap:24px; }
.ops-page-heading { margin-bottom:2px; }
.ops-page-heading small { color:var(--ops-gold); font-size:11px; font-weight:700; letter-spacing:1.5px; }
.ops-page-heading h1 { font-size:clamp(27px,2.5vw,38px); margin:9px 0 8px; font-weight:700; letter-spacing:-1px; }
.ops-page-heading p { color:var(--ops-muted); margin:0; font-size:14px; }
html body.ops-directory .dir-wrap :is(.panel,.p-left,.p-right,.panel-card,.results-pop,.tile) {
 background:var(--ops-panel) !important; border:1px solid var(--ops-line) !important;
 border-radius:12px; box-shadow:none !important; backdrop-filter:none; -webkit-backdrop-filter:none;
}
body.ops-directory .top-search { padding:22px 24px; }
body.ops-directory .top-search-title h2 { font-size:17px; font-weight:600; margin:0 0 4px; }
body.ops-directory .top-search-title .sub { padding:0; color:var(--ops-muted); font-weight:500; }
body.ops-directory .top-search-input input { border-radius:6px; box-shadow:none; color:var(--ops-text); }
body.ops-directory :is(.btn-soft,.theme-toggle-btn,.badge-pill,.pill) { border-radius:6px; box-shadow:none; }
body.ops-directory .profile-wrap { padding:24px; min-width:0; }
body.ops-directory :is(.p-left,.p-right,.hero,.bottom-panels) { min-width:0; }
body.ops-directory .p-left { flex-shrink:0; }
body.ops-directory .p-right { flex:1; }
body.ops-directory :is(input,button,a):focus-visible { outline:2px solid var(--ops-gold); outline-offset:3px; }
body.ops-contracts .cl-contract-page { background:transparent; padding:38px 32px 28px; }
body.ops-contracts .cl-contract-topbar { background:transparent; border:0; box-shadow:none; padding:0; margin-bottom:26px; }
body.ops-contracts .cl-brand-icon { display:none; }
body.ops-contracts .cl-brand h1 { font-size:clamp(27px,2.5vw,38px); font-weight:700; letter-spacing:-1px; margin:9px 0 8px; }
body.ops-contracts .cl-kicker { color:var(--ops-gold); font-size:11px; font-weight:700; letter-spacing:1.5px; }
body.ops-contracts :is(.cl-contract-hero article,.cc-board,.cc-generator,.cc-modal-panel) { background:var(--ops-panel); border:1px solid var(--ops-line); border-radius:12px; box-shadow:none; }
body.ops-contracts .cl-contract-hero { gap:20px; margin-bottom:24px; }
body.ops-contracts .cl-contract-hero article { padding:22px 24px; }
body.ops-contracts .cl-contract-hero strong { font-weight:600; }
body.ops-contracts .cc-board { padding:24px; }
body.ops-contracts .cc-card { background:var(--ops-panel); border:1px solid var(--ops-line); border-radius:12px; padding:22px; }
body.ops-contracts .cc-card:hover { transform:none; background:var(--ops-panel); border-color:var(--ops-gold); }
body.ops-contracts .cc-card h3 { font-weight:600; font-size:17px; }
body.ops-contracts :is(.cc-route,.cc-detail-tabs button.active) { color:var(--ops-gold); }
html body.ops-contracts :is(.cl-primary-action,.cl-secondary-action,.cl-danger-action,.cl-top-link,.cc-tabs button,.cc-detail-tabs button) {
 border:1px solid var(--ops-line); border-radius:6px; background:var(--ops-field); color:var(--ops-text);
 padding:11px 16px; min-height:42px; font-size:13px; font-weight:600; box-shadow:none; text-shadow:none;
}
html body.ops-contracts .cl-primary-action:not(:disabled) { background:#d6ae58; border-color:#d6ae58; color:#111820; }
html body.ops-contracts .cl-danger-action { background:#6b2c32; border-color:#be606a; color:#fff; }
html body.ops-contracts .cc-tabs button.active { background:#d6ae5810; color:var(--ops-gold); border-color:#d6ae5855; }
body.ops-contracts :is(input,select,textarea) { background:var(--ops-field); color:var(--ops-text); border:1px solid var(--ops-line); border-radius:6px; }
body.ops-contracts :is(button,a,input,select,textarea):focus-visible { outline:2px solid var(--ops-gold); outline-offset:3px; }
body.ops-contracts .cc-status { border-radius:6px; font-weight:600; }
body.ops-contracts .cc-card-stats small { font-weight:600; color:var(--ops-muted); }
@media(max-width:760px) {
 body.ops-directory .main, body.ops-contracts .cl-contract-page { padding:24px 16px; }
 body.ops-directory .top-search, body.ops-directory .top-search-left { flex-direction:column; align-items:stretch; gap:16px; }
 body.ops-directory .top-search-input { width:100%; min-width:0; }
 body.ops-directory .top-search-right { flex-wrap:wrap; }
 body.ops-directory .p-left { width:100%; }
 body.ops-contracts .cl-contract-topbar { align-items:flex-start; flex-direction:column; }
 body.ops-contracts .cl-contract-hero { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
 body.ops-contracts :is(.cc-board,.cc-card) { padding:16px; }
 body.ops-contracts .cc-card-stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 body.ops-contracts .cc-section-head { flex-wrap:wrap; }
}
/* The portal's legacy global rules use !important; keep these overrides page-scoped. */
#ops-directory-page .dir-wrap :is(.panel,.p-left,.p-right,.panel-card,.results-pop,.tile) { background:var(--ops-panel)!important; border-color:var(--ops-line)!important; box-shadow:none!important; border-radius:12px!important; }
#ops-directory-page .ops-page-heading small { color:var(--ops-gold)!important; }
#ops-directory-page .top-search-input input { background:var(--ops-field)!important; color:var(--ops-text)!important; border-radius:6px!important; }
#ops-contracts-page :is(.cc-board,.cc-card,.cl-contract-hero article,.cc-modal-panel) { background:var(--ops-panel)!important; border-color:var(--ops-line)!important; box-shadow:none!important; }
#ops-contracts-page .cl-kicker { color:var(--ops-gold)!important; }
#ops-contracts-page .cl-contract-topbar { background:transparent!important; border:0!important; box-shadow:none!important; }
#ops-contracts-page :is(.cl-primary-action,.cl-secondary-action,.cl-danger-action,.cl-top-link,.cc-tabs button,.cc-detail-tabs button) { border-radius:6px!important; box-shadow:none!important; background-image:none!important; }
#ops-contracts-page .cl-primary-action:not(:disabled) { background:#d6ae58!important; border-color:#d6ae58!important; color:#111820!important; }
#ops-contracts-page .cl-top-link span { background:none!important; border:0!important; padding:0!important; }
@media(max-width:760px) {
 #ops-directory-page .top-search-left { min-width:0; width:100%; flex:none; }
 #ops-directory-page .top-search-input { flex:none; min-width:0; width:100%; }
 #ops-directory-page .top-search-right { justify-content:flex-start; }
}
