:root {
  --ink: #0b0b0b;
  --surface: #11110f;
  --surface-2: #191815;
  --paper: #f1eee5;
  --gold: #d4af5c;
  --gold-2: #9f7b35;
  --muted: #9d998f;
  --line: rgba(212, 175, 92, .22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body { margin: 0; min-height: 100vh; color: var(--paper); background: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.wordmark { display: inline-flex; align-items: baseline; gap: 10px; color: var(--paper); font: 700 20px/1 Georgia, serif; letter-spacing: .16em; }
.wordmark span { color: var(--gold); font: 600 8px/1 ui-sans-serif, system-ui; letter-spacing: .22em; }
.eyebrow { margin: 0 0 22px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.lead { color: var(--muted); font: 400 16px/1.8 Georgia, serif; }
.access-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.access-intro, .login-panel { padding: clamp(48px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.access-intro { position: relative; overflow: hidden; background: radial-gradient(circle at 18% 18%, rgba(212,175,92,.16), transparent 30%), linear-gradient(145deg, #11110f, #080808 70%); border-right: 1px solid var(--line); }
.access-intro::after { content: ""; position: absolute; width: 430px; height: 430px; right: -230px; bottom: -230px; border: 1px solid var(--line); transform: rotate(45deg); }
.access-intro .wordmark { margin-bottom: clamp(80px, 15vh, 160px); }
.access-intro h1, .login-panel h2, .command-hero h1, .detail-shell h1, .recovery-shell h1 { margin: 0; max-width: 760px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 6.5vw, 92px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.access-intro .lead { max-width: 600px; margin: 32px 0 0; }
.scope-box { margin-top: 42px; padding: 22px 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-box strong, .scope-box span, .domain { font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.scope-box strong { color: var(--gold); }
.scope-box span, .domain { color: var(--muted); }
.domain { margin-top: 22px; }
.login-panel { max-width: 760px; width: 100%; margin: auto; }
.login-panel h2 { font-size: clamp(42px, 5vw, 66px); }
.helper { max-width: 560px; margin: 22px 0 32px; color: var(--muted); font: 14px/1.7 Georgia, serif; }
.alert { margin-bottom: 22px; padding: 14px 16px; color: #ffc5c5; border: 1px solid rgba(255, 91, 91, .3); background: rgba(255, 91, 91, .08); font-size: 13px; }
form label, .field-label { display: block; margin: 0 0 22px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
input { width: 100%; margin-top: 9px; padding: 14px 0; color: var(--paper); background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.22); border-radius: 0; outline: 0; }
input:focus { border-bottom-color: var(--gold); }
input[readonly] { color: var(--muted); }
.primary, .ghost, .button-link { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 50px; padding: 0 24px; border: 0; cursor: pointer; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.primary { color: var(--ink); background: var(--gold); }
.primary:hover { background: #e4c271; }
.ghost { color: var(--paper); background: transparent; border: 1px solid var(--line); }
.login-links { margin-top: 26px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.login-links a:hover { color: var(--gold); }

.control-header { min-height: 78px; padding: 0 38px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); background: rgba(11,11,11,.96); }
.control-header form, .control-header > .button-link { justify-self: end; }
.session-state { color: var(--muted); font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.session-state b { color: var(--paper); }
.live-dot { width: 7px; height: 7px; margin-right: 10px; display: inline-block; border-radius: 50%; background: #76cc87; box-shadow: 0 0 0 4px rgba(118,204,135,.1); }
.control-shell { width: min(1260px, calc(100% - 64px)); margin: 0 auto; padding: 90px 0 120px; }
.command-hero { max-width: 850px; }
.command-hero h1 { font-size: clamp(54px, 7vw, 94px); }
.command-hero > p:last-child { max-width: 620px; margin: 28px 0 0; color: var(--muted); font: 16px/1.8 Georgia, serif; }
.global-actions { margin: 62px 0 90px; display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--line); }
.global-actions button { min-height: 122px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; color: var(--paper); background: var(--surface); border: 1px solid var(--line); border-left: 0; opacity: .72; }
.global-actions button span { font: 22px Georgia, serif; }
.global-actions button small { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.global-actions .danger { color: #e09a9a; }
.working-actions { margin: 62px 0 90px; display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); border-left: 1px solid var(--line); }
.working-actions a { min-height: 142px; padding: 25px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-left: 0; transition: background .18s ease, transform .18s ease; }
.working-actions a:hover { background: rgba(212,175,92,.08); transform: translateY(-2px); }
.working-actions span { font: 22px Georgia, serif; }
.working-actions small { color: var(--muted); font-size: 9px; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; }
.working-actions b { color: var(--gold); font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.section-title { margin-bottom: 18px; display: flex; align-items: baseline; justify-content: space-between; }
.section-title .eyebrow { margin: 0; }
.section-title > span { color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.project-list { border-top: 1px solid var(--line); }
.project-row { min-height: 112px; display: grid; grid-template-columns: 60px 1fr auto 34px; align-items: center; gap: 24px; border-bottom: 1px solid var(--line); transition: background .18s ease, padding .18s ease; }
.project-row:hover { padding-left: 12px; background: rgba(212,175,92,.045); }
.project-index { color: var(--gold); font-size: 9px; letter-spacing: .16em; }
.project-main { display: flex; flex-direction: column; gap: 9px; }
.project-main strong { font: 22px Georgia, serif; font-weight: 400; }
.project-main small { max-width: 670px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.state { padding: 8px 10px; color: var(--muted); border: 1px solid rgba(255,255,255,.12); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.state-production_verified { color: #9ce1a9; border-color: rgba(118,204,135,.28); }
.arrow { color: var(--gold); }
.detail-shell { max-width: 1260px; }
.detail-shell h1 { max-width: 980px; }
.detail-shell .lead { max-width: 760px; margin: 28px 0 0; }
.recognition-gate { margin-top: 64px; display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--line); }
.recognition-gate > div { min-height: 145px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-left: 0; }
.recognition-gate span { color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
.recognition-gate strong { color: var(--gold); font: 18px Georgia,serif; font-weight: 400; }
.link-section { margin-top: 72px; }
.project-link { min-height: 66px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); font: 18px Georgia,serif; }
.project-link:last-child { border-bottom: 1px solid var(--line); }
.project-link span { color: var(--gold); }
.not-bound { padding: 24px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.package-section { margin-top: 72px; }
.package-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.package-list li { min-height: 58px; padding: 17px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.package-list code { color: var(--paper); font-size: 11px; }
.package-list a { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.package-missing { color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }

.recovery-shell { width: min(900px, calc(100% - 48px)); margin: 0 auto; padding: 90px 0; }
.recovery-shell h1 { font-size: clamp(48px, 7vw, 82px); }
.recovery-shell .lead { max-width: 720px; }
.recovery-grid { margin: 44px 0; display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: center; }
.qr { width: 230px; padding: 12px; background: white; }
code { overflow-wrap: anywhere; color: var(--gold); font: 14px ui-monospace, SFMono-Regular, Consolas, monospace; }
.verify-form { max-width: 620px; }
.recovery-codes { max-width: 620px; margin: 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }

@media (max-width: 900px) {
  .access-shell { grid-template-columns: 1fr; }
  .access-intro, .login-panel { padding: 60px 28px; }
  .access-intro .wordmark { margin-bottom: 70px; }
  .control-header { grid-template-columns: 1fr auto; padding: 0 20px; }
  .session-state { display: none; }
  .global-actions { grid-template-columns: 1fr 1fr; }
  .working-actions { grid-template-columns: 1fr 1fr; }
  .project-row { grid-template-columns: 40px 1fr 24px; }
  .project-row .state { grid-column: 2; width: fit-content; margin: -15px 0 15px; }
  .project-row .arrow { grid-column: 3; grid-row: 1 / 3; }
  .recognition-gate { grid-template-columns: 1fr; }
  .recognition-gate > div { border-left: 1px solid var(--line); border-top: 0; }
  .recognition-gate > div:first-child { border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .control-shell { width: min(100% - 36px, 1260px); padding-top: 60px; }
  .global-actions { grid-template-columns: 1fr; }
  .working-actions { grid-template-columns: 1fr; }
  .project-row { min-height: 132px; gap: 14px; }
  .project-main strong { font-size: 19px; }
  .recovery-grid { grid-template-columns: 1fr; }
  .recovery-codes { grid-template-columns: 1fr; }
}

/* BOSS-only GlobalEscort investor lab */
.ge-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 74px 0 120px; }
.ge-hero { min-height: 390px; padding: 56px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; background: radial-gradient(circle at 18% 15%, rgba(212,175,92,.18), transparent 28%), linear-gradient(145deg,#15140f,#070707 70%); border: 1px solid var(--line); }
.ge-hero h1 { margin: 0; font: 500 clamp(58px,9vw,128px)/.86 Georgia,serif; letter-spacing: -.055em; }
.ge-hero div > p:last-child { margin: 22px 0 0; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .35em; }
.ge-kpis { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--line); }
.ge-kpis > div { min-height: 138px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ge-kpis span { color: var(--muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
.ge-kpis strong { color: var(--gold); font: 28px Georgia,serif; font-weight: 400; }
.ge-brand-rules { display: grid; grid-template-columns: repeat(3,1fr); border-left: 1px solid var(--line); }
.ge-brand-rules article { min-height: 124px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ge-brand-rules span { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.ge-brand-rules strong { max-width: 300px; font: 18px/1.35 Georgia,serif; font-weight: 400; }
.ge-notice { margin: 24px 0 78px; padding: 18px 20px; color: #c8c3b8; background: rgba(212,175,92,.055); border: 1px solid var(--line); font-size: 12px; line-height: 1.65; }
.ge-section { margin-top: 86px; }
.ge-sources { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.ge-source { min-height: 205px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.ge-source.source_live { border-top-color: rgba(118,204,135,.8); }
.ge-source.stale_cache { border-top-color: #c98d42; }
.ge-source.source_unavailable { border-top-color: #9c4c4c; }
.ge-source-top, .ge-source-footer { display: flex; justify-content: space-between; gap: 22px; align-items: flex-start; }
.ge-source-top > div { display: flex; flex-direction: column; gap: 7px; }
.ge-source-top strong { font: 20px Georgia,serif; font-weight: 400; }
.ge-source-top div span, .ge-source-footer { color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.ge-source-badge { padding: 7px 9px; color: #9ce1a9; border: 1px solid rgba(118,204,135,.25); font-size: 8px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.stale_cache .ge-source-badge { color: #e4b073; border-color: rgba(228,176,115,.25); }
.source_unavailable .ge-source-badge { color: #e09a9a; border-color: rgba(224,154,154,.25); }
.ge-source.market_signal_only { opacity: .72; }
.ge-source.market_signal_only .ge-source-badge { color: var(--muted); border-color: var(--line); }
.ge-source.reference_source .ge-source-badge { color: #4e80ef; border-color: rgba(35,79,196,.35); }
.ge-source-metrics { margin: 34px 0 28px; display: flex; gap: 34px; flex-wrap: wrap; }
.ge-source-metric { min-width: 72px; display: flex; flex-direction: column; gap: 5px; }
.ge-source-metric strong { font: 28px Georgia,serif; font-weight: 400; }
.ge-source-metric strong.gold { color: var(--gold); }
.ge-source-metric strong.positive { color: #8bd99a; }
.ge-source-metric span { color: var(--muted); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; }
.ge-source-footer a { color: var(--gold); }
.ge-source-error { margin: 18px 0 0; color: #d68d8d; font-size: 10px; }
.ge-source-reason { min-height: 32px; margin: 18px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.ge-profile-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 30px; }
.ge-profile-head h2 { margin: 0; font: 500 clamp(44px,6vw,78px)/1 Georgia,serif; letter-spacing: -.04em; }
.ge-filters { display: flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); }
.ge-filters button { padding: 10px 15px; color: var(--muted); background: transparent; border: 0; cursor: pointer; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ge-filters button.active { color: var(--ink); background: var(--gold); }
.ge-profiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ge-profile-card { overflow: hidden; background: var(--surface); border: 1px solid rgba(212,175,92,.14); }
.ge-profile-visual { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #181713; }
.ge-profile-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.88) contrast(1.02); transition: transform .45s ease; }
.ge-profile-card:hover img { transform: scale(1.025); }
.ge-profile-source { position: absolute; top: 10px; left: 10px; padding: 6px 8px; color: var(--paper); background: rgba(0,0,0,.76); font-size: 7px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ge-profile-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(212,175,92,.25); font: 72px Georgia,serif; }
.ge-profile-body { padding: 19px; }
.ge-profile-title { display: flex; justify-content: space-between; gap: 15px; align-items: baseline; }
.ge-profile-title strong { font: 22px Georgia,serif; font-weight: 400; }
.ge-profile-title span { color: var(--gold); font-size: 13px; }
.ge-profile-meta { min-height: 24px; margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.ge-seal { margin: 14px 0; padding: 9px 10px; font-size: 7px; font-weight: 700; letter-spacing: .1em; text-align: center; }
.ge-seal.pending { color: #c9a65a; background: rgba(212,175,92,.06); border: 1px solid rgba(212,175,92,.16); }
.ge-seal.verified { color: #8bd99a; border: 1px solid rgba(118,204,135,.22); }
.ge-evidence { margin: 0 0 15px; display: flex; flex-wrap: wrap; gap: 5px; }
.ge-evidence span { padding: 5px 6px; border: 1px solid var(--line); color: var(--muted); font-size: 7px; letter-spacing: .06em; text-transform: uppercase; }
.ge-evidence span.pass { color: #147744; border-color: rgba(20,119,68,.28); }
.ge-evidence span.open { color: #9b5a32; border-color: rgba(155,90,50,.24); }
.ge-profile-link { color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.ge-loading, .ge-empty { grid-column: 1/-1; min-height: 220px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
.ge-empty.error { color: #e09a9a; }
.ge-quality { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--line); }
.ge-levels { display: grid; grid-template-columns: repeat(4,1fr); border-left: 1px solid var(--line); }
.ge-levels article { min-height: 150px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); border-left: 0; }
.ge-levels strong { color: var(--gold); font: 18px Georgia,serif; font-weight: 400; }
.ge-levels span { color: var(--muted); font-size: 10px; line-height: 1.55; }

@media (max-width: 1100px) {
  .ge-kpis, .ge-levels { grid-template-columns: 1fr 1fr; }
  .ge-profiles { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .ge-shell { width: min(100% - 30px, 1440px); padding-top: 36px; }
  .ge-hero { min-height: 480px; padding: 28px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .ge-kpis, .ge-brand-rules, .ge-sources, .ge-levels { grid-template-columns: 1fr; }
  .ge-profile-head { align-items: flex-start; flex-direction: column; }
  .ge-filters { width: 100%; overflow-x: auto; }
  .ge-filters button { white-space: nowrap; }
  .ge-profiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .ge-profiles { grid-template-columns: 1fr; }
}

/* FOK MASTER VISUAL SYSTEM - cream / black / cobalt / signal red */
:root {
  --ink: #101318;
  --surface: #fffdfa;
  --surface-2: #f2eee6;
  --paper: #f1ede4;
  --gold: #cf352d;
  --gold-2: #234fc4;
  --muted: #5e6673;
  --line: rgba(16,19,24,.18);
  color-scheme: light;
}
html, body { background: var(--paper); color: var(--ink); }
.eyebrow { color: #cf352d; }
.lead, .helper, .scope-box span, .domain, .session-state, .section-title > span, .project-main small, .not-bound, .package-missing { color: var(--muted); }

.wordmark { min-width: 238px; min-height: 64px; padding: 10px 14px; display: inline-grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; color: #fff; background: #101318; border: 1px solid #cf352d; box-shadow: 5px 5px 0 #cf352d; letter-spacing: 0; }
.fok-logo { padding-right: 14px; border-right: 1px solid rgba(255,255,255,.26); font: 900 30px/1 Arial, sans-serif; letter-spacing: -.07em; }
.fok-claim { display: flex; flex-direction: column; gap: 4px; color: #fff; }
.fok-claim b { color: #ff4b42; font: 800 10px/1 Arial, sans-serif; letter-spacing: .16em; }
.fok-claim small { color: #fff; font: 700 7px/1.2 Arial, sans-serif; letter-spacing: .1em; }

.access-shell { width: min(1500px, calc(100% - 48px)); min-height: calc(100vh - 48px); margin: 24px auto; grid-template-columns: 1fr 1fr; background: transparent; }
.access-intro { margin: 10px 0 10px 10px; background: #101318; border: 1px solid #101318; box-shadow: -9px -9px 0 #234fc4; }
.access-intro::after { width: 520px; height: 520px; right: -250px; bottom: -310px; border-color: rgba(255,255,255,.10); }
.access-intro h1, .access-intro .lead { color: #fff; }
.access-intro .eyebrow { color: #ff4b42; }
.access-intro .wordmark { margin-bottom: clamp(70px, 12vh, 130px); border-color: rgba(255,255,255,.18); box-shadow: 5px 5px 0 #cf352d; }
.access-intro .scope-box { border-color: rgba(255,255,255,.24); }
.access-intro .scope-box strong { color: #ff4b42; }
.access-intro .scope-box span, .access-intro .domain { color: #c8ced8; }
.login-panel { max-width: none; margin: 10px 10px 10px 0; padding: clamp(48px,7vw,108px); color: #101318; background: #f5f1e9; border: 1px solid #101318; border-top: 9px solid #234fc4; box-shadow: 11px 11px 0 #cf352d; }
.login-panel h2 { color: #101318; }
.login-panel input { color: #101318; background: #fffdfa; border: 1px solid rgba(16,19,24,.35); border-radius: 10px; padding: 15px 14px; }
.login-panel input:focus { border-color: #234fc4; box-shadow: 0 0 0 3px rgba(35,79,196,.18); }
.login-panel label, .field-label { color: #5e6673; }
.primary { color: #fff; background: #cf352d; border: 1px solid #101318; box-shadow: 5px 5px 0 #234fc4; }
.primary:hover { background: #101318; }
.ghost { color: #101318; background: #fffdfa; border: 1px solid #101318; box-shadow: 3px 3px 0 #234fc4; }
.login-links a:hover, .project-link span, .package-list a, .arrow { color: #234fc4; }

.control-header { background: #f1ede4; border-bottom: 1px solid #101318; }
.control-header .wordmark { margin: 9px 0; }
.live-dot { background: #18a871; box-shadow: 0 0 0 4px rgba(24,168,113,.13); }
.command-hero h1, .detail-shell h1, .recovery-shell h1 { color: #101318; }
.working-actions, .global-actions, .recognition-gate { border-left-color: #101318; }
.working-actions a { color: #101318; background: #fffdfa; border-color: #101318; border-top: 6px solid #234fc4; box-shadow: 6px 6px 0 #cf352d; margin: 0 10px 12px 0; }
.working-actions a:hover { color: #fff; background: #101318; transform: translate(-2px,-2px); }
.working-actions b { color: #cf352d; }
.working-actions small { color: #5e6673; }
.working-actions a:hover small { color: #c8ced8; }
.project-list { border-top-color: #101318; }
.project-row { margin-bottom: 9px; padding: 0 18px; color: #101318; background: #fffdfa; border: 1px solid #101318; border-left: 7px solid #234fc4; box-shadow: 5px 5px 0 #cf352d; }
.project-row:hover { padding-left: 28px; color: #fff; background: #101318; }
.project-row:hover small { color: #c8ced8; }
.state { color: #101318; border-color: rgba(16,19,24,.34); }
.state-production_verified { color: #147744; border-color: rgba(20,119,68,.36); }
.recognition-gate > div { color: #101318; background: #fffdfa; border-color: #101318; }
.recognition-gate strong { color: #cf352d; }
.project-link { color: #101318; background: #fffdfa; border-color: #101318; }
.project-link:hover { color: #fff; background: #101318; }
.package-list { border-top-color: #101318; }
.package-list li { background: #fffdfa; border-color: #101318; }
.package-list code, code { color: #101318; }
.recovery-shell { padding: 70px 48px; background: #f5f1e9; }
.qr { border: 1px solid #101318; box-shadow: 6px 6px 0 #234fc4; }

.ge-shell { color: #101318; }
.ge-hero { color: #fff; background: #101318; border-color: #101318; box-shadow: 10px 10px 0 #cf352d; }
.ge-hero div > p:last-child { color: #ff4b42; }
.ge-kpis, .ge-levels { border-left-color: #101318; }
.ge-kpis > div, .ge-levels article, .ge-source, .ge-profile-card { color: #101318; background: #fffdfa; border-color: #101318; }
.ge-kpis strong, .ge-levels strong, .ge-source-metric strong.gold, .ge-profile-title span, .ge-profile-link, .ge-source-footer a { color: #cf352d; }
.ge-notice { color: #101318; background: rgba(35,79,196,.06); border-color: #234fc4; }
.ge-filters { background: #fffdfa; border-color: #101318; }
.ge-filters button.active { color: #fff; background: #234fc4; }

/* MASTER CRM + BOSS MAIL/DOMAIN CONTROL */
.crm-shell { padding-bottom: 90px; }
.crm-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin: 34px 0 22px; padding: clamp(28px,5vw,62px); color: #fff; background: #101318; border: 1px solid #101318; border-top: 9px solid #234fc4; box-shadow: 10px 10px 0 #cf352d; }
.crm-hero h1 { margin: 4px 0 12px; color: #fff; font-size: clamp(48px,8vw,112px); line-height: .82; letter-spacing: -.075em; }
.crm-hero p:not(.eyebrow) { max-width: 760px; color: #c8ced8; }
.crm-authority { min-width: 310px; padding: 18px; color: #101318; background: #f1ede4; border-left: 7px solid #cf352d; }
.crm-authority span,.crm-authority small { display: block; color: #5e6673; font: 800 10px/1.35 Arial,sans-serif; letter-spacing: .12em; }
.crm-authority strong { display: block; margin: 7px 0; font: 800 16px/1.2 Arial,sans-serif; }
.crm-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 20px; }
.crm-tab { flex: 0 0 auto; padding: 11px 13px; color: #101318; background: #fffdfa; border: 1px solid #101318; font: 800 10px/1.2 Arial,sans-serif; letter-spacing: .07em; text-decoration: none; }
.crm-tab b { margin-left: 8px; color: #cf352d; }
.crm-tab.active,.crm-tab:hover { color: #fff; background: #234fc4; }
.crm-tab.active b,.crm-tab:hover b { color: #fff; }
.crm-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.crm-kpis article { padding: 20px; background: #fffdfa; border: 1px solid #101318; border-top: 6px solid #234fc4; box-shadow: 5px 5px 0 #cf352d; }
.crm-kpis span,.crm-kpis small { display: block; color: #5e6673; font: 800 9px/1.3 Arial,sans-serif; letter-spacing: .12em; }
.crm-kpis strong { display: block; margin: 8px 0; color: #101318; font: 900 34px/1 Arial,sans-serif; }
.crm-workbench { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 20px; margin: 30px 0; }
.crm-table-panel,.crm-create-panel,.crm-module,.crm-activity { padding: 24px; background: #fffdfa; border: 1px solid #101318; }
.crm-create-panel,.crm-module { border-top: 7px solid #234fc4; box-shadow: 6px 6px 0 #cf352d; }
.crm-table-wrap { overflow-x: auto; }
.crm-table { width: 100%; border-collapse: collapse; color: #101318; }
.crm-table th { padding: 11px; color: #5e6673; border-bottom: 2px solid #101318; font: 800 9px/1.2 Arial,sans-serif; letter-spacing: .12em; text-align: left; }
.crm-table td { padding: 14px 11px; border-bottom: 1px solid rgba(16,19,24,.18); vertical-align: top; }
.crm-table td small { display: block; margin-top: 5px; color: #6d7480; }
.crm-kind,.crm-state { display: inline-block; padding: 5px 7px; color: #fff; background: #101318; font: 800 9px/1 Arial,sans-serif; letter-spacing: .08em; }
.crm-state { color: #101318; background: #f1ede4; border-left: 4px solid #cf352d; }
.crm-form { display: grid; gap: 12px; }
.crm-form label { color: #5e6673; font: 800 10px/1.3 Arial,sans-serif; letter-spacing: .08em; }
.crm-form input,.crm-form select,.crm-form textarea { width: 100%; box-sizing: border-box; margin-top: 5px; padding: 12px; color: #101318; background: #fff; border: 1px solid rgba(16,19,24,.45); border-radius: 0; font: 600 13px/1.3 Arial,sans-serif; }
.crm-form textarea { min-height: 92px; resize: vertical; }
.crm-form input:focus,.crm-form select:focus,.crm-form textarea:focus { outline: 3px solid rgba(35,79,196,.2); border-color: #234fc4; }
.crm-form.compact { margin-top: 18px; padding-top: 18px; border-top: 2px solid #101318; }
.crm-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 30px 0; }
.crm-feed-item { margin-bottom: 10px; padding: 14px; background: #f1ede4; border-left: 5px solid #234fc4; }
.crm-feed-item div { display: flex; justify-content: space-between; gap: 15px; color: #cf352d; }
.crm-feed-item p { margin: 7px 0; color: #353a43; }
.crm-feed-item small { color: #6d7480; }
.crm-activity { margin-top: 30px; border-top: 7px solid #101318; }
.crm-activity ol { list-style: none; margin: 0; padding: 0; }
.crm-activity li { display: grid; grid-template-columns: 180px 230px 1fr; gap: 15px; padding: 12px 0; border-bottom: 1px solid rgba(16,19,24,.18); }
.crm-activity li span { color: #cf352d; font-weight: 800; }
.crm-activity li small { color: #6d7480; }
.crm-empty { padding: 22px !important; color: #6d7480; text-align: center; }
.crm-project-link { border-left: 7px solid #cf352d; }

/* INTEGRATED WEBMAIL */
.mail-workbench { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 20px; margin: 30px 0; align-items: start; }
.mail-inbox,.mail-message { padding: 24px; background: #fffdfa; border: 1px solid #101318; border-top: 7px solid #234fc4; box-shadow: 6px 6px 0 #cf352d; }
.mail-list { border-top: 2px solid #101318; }
.mail-row { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(180px,1.2fr) 120px; gap: 7px 18px; padding: 16px 12px; color: #101318; border-bottom: 1px solid rgba(16,19,24,.2); }
.mail-row:hover { color: #fff; background: #101318; }
.mail-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row small { grid-column: 1 / 3; overflow: hidden; color: #5e6673; text-overflow: ellipsis; white-space: nowrap; }
.mail-row:hover small { color: #c8ced8; }
.mail-row time { grid-column: 3; grid-row: 1 / 3; align-self: center; color: #cf352d; font: 800 9px/1.4 Arial,sans-serif; text-align: right; }
.mail-from { overflow: hidden; color: #234fc4; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.mail-compose h2,.mail-config-panel h2,.mail-message h2 { margin-top: 0; font: 400 34px/1 Georgia,serif; }
.mail-config-panel { margin: 30px 0; }
.mail-config-panel > p:not(.eyebrow) { color: #5e6673; line-height: 1.6; }
.mail-notice { margin-top: 18px; padding: 14px 16px; color: #fff; background: #147744; border-left: 7px solid #8bd99a; font-weight: 800; }
.mail-message dl { display: grid; grid-template-columns: 90px 1fr; gap: 9px 16px; margin: 28px 0; padding: 18px; background: #f1ede4; }
.mail-message dt { color: #cf352d; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.mail-message dd { margin: 0; overflow-wrap: anywhere; }
.mail-body { max-height: 58vh; overflow: auto; margin: 0; padding: 22px; color: #101318; background: #fff; border: 1px solid #101318; font: 14px/1.6 ui-monospace,Consolas,monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.attachment-link { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 11px; color: #fff; background: #234fc4; border: 1px solid #101318; text-decoration: none; font: 800 11px/1.2 Arial,sans-serif; }
.attachment-link:hover { background: #101318; }
.attachment-link small { color: #dce4ff; }
.mail-address-book { max-height: 620px; overflow: auto; }
.address-book-list { display: grid; gap: 7px; margin: 18px 0; }
.address-book-list a { display: grid; gap: 3px; padding: 11px; color: #101318; background: #f1ede4; border-left: 5px solid #234fc4; text-decoration: none; }
.address-book-list a:hover { color: #fff; background: #101318; }
.address-book-list span { color: #5e6673; font: 10px/1.35 Arial,sans-serif; }
.address-book-list a:hover span { color: #c8ced8; }
.mail-settings { margin-top: 36px; }
.mail-compose input[type="file"] { padding: 9px; background: #f1ede4; }
.inline-danger { display: grid; grid-template-columns: minmax(170px,1fr) auto; gap: 7px; min-width: 310px; }
.inline-danger input { min-width: 0; padding: 9px; color: #101318; background: #fff; border: 1px solid #cf352d; font: 600 11px/1.2 Arial,sans-serif; }
.inline-danger button { box-shadow: 3px 3px 0 #cf352d; }
.crm-table-panel summary { cursor: pointer; padding: 4px 0 18px; color: #101318; font: 800 12px/1.3 Arial,sans-serif; letter-spacing: .06em; }
.crm-table-panel .helper { padding: 14px; color: #4f5661; background: #f1ede4; border-left: 5px solid #234fc4; font-size: 12px; line-height: 1.55; }

/* BOSS PROJECT TOOLBAR + SEGREGATED PROJECT SECTIONS */
.project-toolbar { margin: 0 0 62px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: #101318; border: 1px solid #101318; border-top: 7px solid #234fc4; box-shadow: 7px 7px 0 #cf352d; }
.project-toolbar .eyebrow { margin: 0 0 8px; color: #ff4b42; }
.project-toolbar strong { font: 800 12px/1.45 Arial,sans-serif; letter-spacing: .09em; }
.project-toolbar .button-link { flex: 0 0 auto; color: #fff; }
.project-section { margin: 0 0 76px; }
.project-section h2 { margin: 7px 0 0; color: #101318; font: 400 clamp(34px,4vw,54px)/1 Georgia,serif; }
.confidential-project-section { padding-top: 38px; border-top: 2px solid #101318; }
.confidential-project-section .project-row { border-left-color: #cf352d; box-shadow: 5px 5px 0 #101318; }
.secure-project-section { padding: clamp(28px,4vw,54px); color: #fff; background: #101318; border: 1px solid #101318; border-top: 9px solid #234fc4; box-shadow: 10px 10px 0 #cf352d; }
.secure-project-section h2 { color: #fff; }
.secure-project-section .section-title > span { color: #ff7a73; }
.secure-project-intro { max-width: 780px; margin: 20px 0 32px; color: #c8ced8; font: 14px/1.7 Georgia,serif; }
.secure-project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.secure-project-card { min-height: 230px; padding: 27px; display: flex; flex-direction: column; align-items: flex-start; color: #101318; background: #fffdfa; border: 1px solid #fff; box-shadow: 6px 6px 0 #234fc4; transition: transform .18s ease, box-shadow .18s ease; }
.secure-project-card:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 #cf352d; }
.secure-project-card > span,.secure-project-card > b { color: #cf352d; font: 800 9px/1.3 Arial,sans-serif; letter-spacing: .14em; }
.secure-project-card strong { margin: 27px 0 12px; font: 400 clamp(30px,4vw,48px)/1 Georgia,serif; }
.secure-project-card small { max-width: 430px; color: #5e6673; font: 12px/1.6 Arial,sans-serif; }
.secure-project-card b { margin-top: auto; padding-top: 28px; }
.compact-hero { margin-bottom: 42px; }
.admin-card { padding: clamp(22px,4vw,40px); color: #101318; background: #fffdfa; border: 1px solid #101318; border-top: 8px solid #234fc4; box-shadow: 8px 8px 0 #cf352d; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.admin-table th { padding: 13px 12px; color: #5e6673; border-bottom: 2px solid #101318; font: 800 9px/1.2 Arial,sans-serif; letter-spacing: .12em; text-align: left; }
.admin-table td { padding: 17px 12px; border-bottom: 1px solid rgba(16,19,24,.18); vertical-align: middle; }
.admin-table td:first-child strong,.admin-table td:first-child small { display: block; }
.admin-table td:first-child small { margin-top: 5px; color: #6d7480; font: 10px/1.2 ui-monospace,Consolas,monospace; }
.admin-table select,.admin-table .order-input { width: 100%; min-width: 95px; margin: 0; padding: 11px; color: #101318; background: #fff; border: 1px solid rgba(16,19,24,.42); }
.admin-table select:focus,.admin-table .order-input:focus { outline: 3px solid rgba(35,79,196,.18); border-color: #234fc4; }
.admin-table .order-input { max-width: 110px; }
.switch-label { margin: 0; display: inline-flex; align-items: center; gap: 9px; color: #101318; font: 800 10px/1 Arial,sans-serif; letter-spacing: .08em; white-space: nowrap; }
.switch-label input { width: 20px; height: 20px; margin: 0; accent-color: #234fc4; }
.form-actions { margin-top: 26px; display: flex; justify-content: flex-end; }
.secondary-action { margin-top: 15px; display: flex; justify-content: flex-end; }
.notice.success { margin-bottom: 24px; padding: 16px 18px; color: #fff; background: #147744; border-left: 7px solid #8bd99a; font-weight: 800; }

@media (max-width: 900px) {
  .access-shell { width: 100%; min-height: 100vh; margin: 0; }
  .access-intro, .login-panel { margin: 0; box-shadow: none; }
  .login-panel { border-top: 8px solid #234fc4; }
  .wordmark { min-width: 210px; }
  .crm-hero { align-items: stretch; flex-direction: column; }
  .crm-authority { min-width: 0; }
  .crm-kpis { grid-template-columns: 1fr 1fr; }
  .crm-workbench,.crm-columns { grid-template-columns: 1fr; }
  .mail-workbench { grid-template-columns: 1fr; }
  .mail-row { grid-template-columns: 1fr; }
  .mail-row small,.mail-row time { grid-column: 1; grid-row: auto; text-align: left; }
  .crm-activity li { grid-template-columns: 1fr; gap: 5px; }
  .inline-danger { grid-template-columns: 1fr; min-width: 230px; }
  .project-toolbar { align-items: stretch; flex-direction: column; }
  .secure-project-grid { grid-template-columns: 1fr; }
}

/* FOK Apps / Social / Community / BOSS Vault */
.feature-shell{padding-bottom:5rem}.compact-hero{min-height:auto;padding:3rem}.platform-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin:1.5rem 0}.platform-grid article,.social-card,.community-card,.vault-token{background:#fffaf3;border:1px solid #0d1117;border-top:8px solid #2554c7;box-shadow:8px 8px 0 #cf332b;padding:1.5rem}.platform-grid article span,.social-card>div span{color:#cf332b;font:800 .68rem/1.2 system-ui,sans-serif;letter-spacing:.18em}.platform-grid article h2{font-size:1.65rem;margin:.8rem 0}.platform-grid article p{min-height:5rem}.feature-columns{display:grid;grid-template-columns:minmax(18rem,27rem) minmax(0,1fr);gap:1.5rem;align-items:start}.feature-columns>.admin-card{position:sticky;top:1rem}.project-tabs{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin:1.5rem 0}.project-tabs form{display:flex;gap:.75rem;align-items:center}.project-tabs select,.social-card select{min-width:15rem;padding:.75rem;border:1px solid #0d1117;background:#fff}.social-list,.community-feed{display:grid;gap:1rem}.social-card>div{display:flex;justify-content:space-between;gap:1rem}.social-card h3,.community-card h2{font-size:1.65rem;margin:.8rem 0}.social-card form{display:flex;gap:.75rem;align-items:center;margin-top:1rem}.community-card>p{white-space:pre-wrap}.community-card ul{display:grid;gap:.5rem;margin:1rem 0;padding:0}.community-card li{display:grid;grid-template-columns:minmax(10rem,14rem) 1fr;gap:1rem;padding:.75rem;border-top:1px solid #d3cabd}.community-metrics{display:flex;gap:1rem;color:#626b79;font-size:.8rem;margin-top:1rem}.community-actions{display:grid;gap:.75rem}.community-actions form{display:flex;gap:.5rem}.community-actions input{flex:1;border:1px solid #0d1117;padding:.75rem}.vault-token{margin:1.5rem 0;border-top-color:#cf332b}.vault-token code{display:block;overflow-wrap:anywhere;background:#0d1117;color:#fff;padding:1rem;margin:.75rem 0}.vault-upload input[type=file]{padding:.8rem;border:1px dashed #0d1117;background:#fff}.feature-columns h2{margin:2rem 0 1rem}.offline-shell{max-width:48rem;margin:10vh auto;padding:4rem;background:#fffaf3;border:1px solid #0d1117;border-top:10px solid #2554c7;box-shadow:12px 12px 0 #cf332b}.offline-shell h1{font-size:4rem;margin:.75rem 0}.offline-shell p{font-size:1.1rem;margin-bottom:2rem}.helper code{overflow-wrap:anywhere}.admin-card hr{border:0;border-top:1px solid #d3cabd;margin:2rem 0}.social-card p{white-space:pre-wrap}.table-wrap{overflow:auto}
@media(max-width:1100px){.platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-columns{grid-template-columns:1fr}.feature-columns>.admin-card{position:static}}
@media(max-width:700px){.platform-grid{grid-template-columns:1fr}.platform-grid article p{min-height:auto}.project-tabs,.project-tabs form,.community-actions form,.social-card form{align-items:stretch;flex-direction:column}.project-tabs select,.social-card select{min-width:0;width:100%}.community-card li{grid-template-columns:1fr}.offline-shell{margin:1rem;padding:2rem}.offline-shell h1{font-size:2.6rem}}
