/* web/css/esoc.css: the ES org chart (offer C owns it: es-website claude/offer-design-c-7c014a @ 1c9f0cc,
   design/offer/tools/esoc_build.py), copied verbatim between its esoc markers. Don't edit here; take a new copy. */
/* esoc:start — the ES org chart, shared component (offer C owns it; offer B and EfficiOS take it). Org chart canon,
   es-product workspace/ORGCHART-CANON.md §Final. Scoped to .esoc. Light by default; dark under .esoc-dark or any
   [data-theme="dark"] ancestor. The host may set --oc-surface to its own background. Calm on purpose (Luba: B's dense
   drawing «выглядит страшно»): one department's chain open at a time, hairlines, one accent. */
.esoc {
  --oc-surface: #fbf9f5; --oc-card: #ffffff; --oc-ink: #171513; --oc-muted: #6a6259;
  --oc-line: rgba(23, 21, 19, .11); --oc-line-2: rgba(23, 21, 19, .24);
  --oc-cos: #171513; --oc-cos-ink: #fbf9f5;
  --oc-seg: color-mix(in srgb, #171513 5%, #fbf9f5); --oc-seg-on: #ffffff;
  --oc-pos: #256b41; --oc-pos-hi: #5fb883; --oc-on-pos: #ffffff; --oc-pos-wash: color-mix(in srgb, #256b41 10%, #ffffff);
  --oc-shadow: 0 1px 2px rgba(23, 21, 19, .05), 0 14px 40px rgba(23, 21, 19, .06);
  --oc-ease: cubic-bezier(.22, 1, .36, 1);
  container-type: inline-size;
  color: var(--oc-ink); font-family: "Satoshi", "Figtree", system-ui, sans-serif; line-height: 1.4; text-align: left;
}
.esoc.esoc-dark, [data-theme="dark"] .esoc {
  --oc-surface: #1b1712; --oc-card: #221d17; --oc-ink: #f2ede0; --oc-muted: #9c9384;
  --oc-line: rgba(242, 237, 224, .10); --oc-line-2: rgba(242, 237, 224, .22);
  --oc-cos: #f2ede0; --oc-cos-ink: #171513;
  --oc-seg: #2b251e; --oc-seg-on: #3a332b;
  --oc-pos: #5fb883; --oc-pos-hi: #7bc98a; --oc-on-pos: #10150f; --oc-pos-wash: rgba(95, 184, 131, .14);
  --oc-shadow: 0 1px 0 rgba(242, 237, 224, .04);
}
.esoc *, .esoc *::before, .esoc *::after { box-sizing: border-box; }
.esoc ul, .esoc ol { list-style: none; margin: 0; padding: 0; }
.esoc p, .esoc h4 { margin: 0; }
.esoc svg.oc-i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.oc-card { position: relative; padding: 20px 14px 18px; border: 1px solid var(--oc-line); border-radius: 18px; background: var(--oc-card); box-shadow: var(--oc-shadow); }

/* the tree: you, your Chief of Staff, the four Chiefs */
.oc-tree { display: grid; justify-items: center; }
.oc-who { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 12px 4px 4px; border: 1px solid var(--oc-line-2); border-radius: 999px; background: var(--oc-card); font-size: 14px; font-weight: 700; line-height: 1.2; }
.oc-av { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; background: var(--oc-surface); color: var(--oc-muted); }
.oc-v { position: relative; width: 1.5px; height: 18px; background: var(--oc-line-2); }
.oc-up { position: absolute; left: -3.5px; bottom: 0; width: 8.5px; height: 8.5px; border-radius: 999px; background: var(--oc-pos); opacity: 0; }
.oc-tree.is-ok .oc-up { animation: oc-up 1.1s var(--oc-ease) both; }
@keyframes oc-up { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { transform: translateY(-18px); opacity: 1; } 100% { transform: translateY(-18px); opacity: 0; } }
.oc-tree.is-ok .oc-who { animation: oc-ping 1.1s var(--oc-ease) .7s both; }
@keyframes oc-ping { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 5px var(--oc-pos-wash); border-color: var(--oc-pos); } }
.oc-cos { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 13px; border-radius: 999px; background: var(--oc-cos); color: var(--oc-cos-ink); font-size: 14px; font-weight: 700; line-height: 1.2; }
.oc-lamp { width: 8px; height: 8px; border-radius: 999px; background: var(--oc-pos-hi); animation: oc-blink 2.4s ease-in-out infinite; }
@keyframes oc-blink { 50% { opacity: .35; } }

/* the four Chiefs: a quiet segmented control, joined to the Chief of Staff by hairlines */
.oc-seg { position: relative; width: 100%; margin-top: 18px; }
.oc-seg::before { content: ""; position: absolute; top: -18px; left: calc(50% - .75px); width: 1.5px; height: 9px; background: var(--oc-line-2); }
.oc-bus { position: absolute; top: -9px; left: calc((100% - 20px) / 8 + 4px); right: calc((100% - 20px) / 8 + 4px); height: 9px; border: 1.5px solid var(--oc-line-2); border-bottom: 0; border-radius: 6px 6px 0 0; }
.oc-bus::before, .oc-bus::after { content: ""; position: absolute; top: -1.5px; width: 1.5px; height: 9px; background: var(--oc-line-2); }
.oc-bus::before { left: calc(33.33% - .75px); } .oc-bus::after { left: calc(66.66% - .75px); }
.oc-tabs { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--oc-seg); }
.oc-tab { all: unset; box-sizing: border-box; position: relative; z-index: 1; display: grid; justify-items: center; gap: 1px; min-width: 0; padding: 8px 2px 9px; border-radius: 12px; text-align: center; color: var(--oc-muted); font-size: 13px; font-weight: 700; line-height: 1.15; cursor: pointer; transition: background .35s var(--oc-ease), color .35s var(--oc-ease), box-shadow .35s var(--oc-ease); }
.oc-tab small { font-size: 11px; font-weight: 600; opacity: .8; }
.oc-tab:hover { color: var(--oc-ink); }
.oc-tab.is-on { background: var(--oc-seg-on); color: var(--oc-ink); box-shadow: 0 1px 2px rgba(23, 21, 19, .08), 0 0 0 1px var(--oc-line); }
.oc-tab.is-on small { color: var(--oc-pos); opacity: 1; }
.oc-tab:focus-visible { outline: 2px solid var(--oc-ink); outline-offset: 2px; }
/* Chiefs talk to each other: one small message gliding along the row */
.oc-talk { position: absolute; z-index: 2; bottom: 5px; left: 12%; width: 5px; height: 5px; border-radius: 999px; background: var(--oc-pos); opacity: 0; animation: oc-talk 9s var(--oc-ease) infinite; }
@keyframes oc-talk { 0% { left: 12%; opacity: 0; } 6% { opacity: .9; } 44% { left: 86%; opacity: .9; } 50% { left: 86%; opacity: 0; } 56% { left: 86%; opacity: .9; } 94% { left: 12%; opacity: .9; } 100% { left: 12%; opacity: 0; } }

/* the open department: its Chief, the person in it, the chain handing off left to right */
.oc-panel { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--oc-line); }
.oc-panel[hidden] { display: none; }
.oc-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.oc-ph h4 { font-family: "Figtree", system-ui, sans-serif; font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.oc-person { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border: 1px solid var(--oc-line); border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--oc-muted); }
.oc-person .oc-av { width: 22px; height: 22px; }
.oc-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: 24px; --p: 0; }
.oc-track::before, .oc-track::after { content: ""; position: absolute; top: 7px; left: calc(50% / var(--n)); height: 2px; border-radius: 2px; }
.oc-track::before { right: calc(50% / var(--n)); background: var(--oc-line); }
.oc-track::after { width: calc((100% - 100% / var(--n)) * var(--p)); background: var(--oc-pos); transition: width 1.2s var(--oc-ease); }
.oc-st { position: relative; z-index: 1; display: grid; justify-items: center; align-content: start; gap: 3px; min-width: 0; padding: 0 3px; text-align: center; }
.oc-st > i { width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--oc-line-2); background: var(--oc-card); transition: background .4s var(--oc-ease), border-color .4s var(--oc-ease), box-shadow .4s var(--oc-ease); }
.oc-st.is-done > i { border-color: var(--oc-pos); background: var(--oc-pos); }
.oc-st.is-at > i { box-shadow: 0 0 0 5px var(--oc-pos-wash); }
.oc-st b { margin-top: 7px; font-size: 13px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.oc-st small { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--oc-muted); }
.oc-ok { display: block; margin-top: 3px; font-size: 11.5px; font-weight: 800; line-height: 1.25; color: var(--oc-pos); text-wrap: balance; }
.oc-ok svg.oc-i { display: inline-block; width: 12px; height: 12px; margin-right: 3px; vertical-align: -2px; }

/* scene 2: two people, two Chiefs */
.oc2 { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); align-items: start; }
.oc-side { display: grid; justify-items: center; min-width: 0; }
.oc-side .oc-who { min-height: 46px; font-size: 13px; }
.oc-side .oc-cos { padding: 8px 13px 8px 11px; font-size: 13px; }
.oc-team { display: flex; gap: 5px; }
.oc-ag, .oc-pp { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.oc-ag { background: var(--oc-pos); color: var(--oc-on-pos); }
.oc-pp { border: 1.5px solid var(--oc-line-2); border-radius: 999px; color: var(--oc-muted); }
.oc-ag svg.oc-i, .oc-pp svg.oc-i { width: 12px; height: 12px; }
.oc-team .is-new { animation: oc-arrive 6s steps(1, end) infinite; }
@keyframes oc-arrive { 0%, 64% { opacity: .2; } 66%, 100% { opacity: 1; } }
.oc-bridge { position: relative; height: 34px; margin-top: 65px; }
.oc-bridge::before, .oc-bridge::after { content: ""; position: absolute; left: -44px; right: -44px; height: 1.5px; background: var(--oc-line-2); }
.oc-side { position: relative; z-index: 1; }
.oc-bridge::before { top: 11px; } .oc-bridge::after { top: 22px; }
.oc-pkt { position: absolute; left: 0; width: 7px; height: 7px; border-radius: 999px; background: var(--oc-pos); animation: oc-fwd 6s var(--oc-ease) infinite; }
.oc-pkt:nth-child(1) { top: 8.5px; }
.oc-pkt:nth-child(2) { top: 19.5px; animation-name: oc-back; animation-delay: -3s; }
@keyframes oc-fwd { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 42% { left: calc(100% - 7px); opacity: 1; } 50%, 100% { left: calc(100% - 7px); opacity: 0; } }
@keyframes oc-back { 0% { left: calc(100% - 7px); opacity: 0; } 8% { opacity: 1; } 42% { left: 0; opacity: 1; } 50%, 100% { left: 0; opacity: 0; } }
.oc-clone { position: absolute; z-index: 2; bottom: 0; left: calc(25% - 11px); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--oc-pos); color: var(--oc-on-pos); outline: 1.5px dashed var(--oc-pos); outline-offset: 3px; opacity: 0; animation: oc-clone 6s var(--oc-ease) infinite; }
.oc-clone svg.oc-i { width: 12px; height: 12px; }
@keyframes oc-clone { 0%, 26% { left: calc(25% - 11px); opacity: 0; } 30% { opacity: 1; } 62% { left: calc(75% + 6px); opacity: 1; } 66%, 100% { left: calc(75% + 6px); opacity: 0; } }
.oc-keys { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--oc-line); font-size: 13px; font-weight: 700; color: var(--oc-muted); }
.oc-keys span { display: inline-flex; align-items: center; gap: 7px; }
.oc-keys svg.oc-i { color: var(--oc-pos); width: 15px; height: 15px; }

@container (max-width: 420px) {
  .oc-side .oc-who { font-size: 12px; }
  .oc-side .oc-cos { gap: 6px; padding: 7px 10px 7px 9px; font-size: 12px; white-space: nowrap; }
}
@container (min-width: 560px) {
  .oc-card { padding: 26px 24px 24px; }
  .oc-tab { font-size: 14px; padding: 10px 4px 11px; }
  .oc-ph h4 { font-size: 24px; }
  .oc-st b { font-size: 14.5px; }
  .oc-st small, .oc-ok { font-size: 12.5px; }
  .oc2 { grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .esoc *, .esoc *::before, .esoc *::after { animation: none !important; transition: none !important; }
}
/* esoc:end */
