html, body { margin: 0; padding: 0; background: var(--color-bg); }
[data-mode="dark"] {
  --color-bg: #16151a;
  --color-surface: #201f26;
  --color-text: #edeae4;
  --color-accent: #3ab7dd;
  --color-accent-2: #ff5c9b;
  --color-divider: color-mix(in srgb, #edeae4 20%, transparent);
  --color-neutral-100: #232228;
  --color-neutral-200: #2b2a31;
  --color-neutral-300: #3a3941;
  --color-neutral-400: #4e4d56;
  --color-neutral-500: #6d6c76;
  --color-neutral-600: #8d8c95;
  --color-neutral-700: #adacb4;
  --color-neutral-800: #cbcad0;
  --color-neutral-900: #eae9ee;
  --color-accent-100: #10262e;
  --color-accent-200: #133544;
  --color-accent-800: #9fdcf1;
  --color-accent-2-100: #2c1220;
  --color-accent-2-800: #ffbcd3;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flowUp { to { background-position: 0 -14px; } }
@keyframes backdropIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.org-page a { color: var(--color-accent-700); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.org-page a:hover { color: var(--color-accent-600); border-bottom-color: currentColor; }
[data-mode="dark"] .org-page a { color: var(--color-accent-400); }
.org-page :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.org-page { min-height: 100vh; overflow-x: hidden; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); transition: background .4s ease, color .4s ease; }
.org-shell { max-width: 1420px; margin: 0 auto; padding: 26px 44px 40px; }
.org-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.org-eyebrow { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--color-accent); }
.org-title { font-family: var(--font-heading); font-weight: 600; font-size: 40px; line-height: 1.02; letter-spacing: -0.015em; display: flex; align-items: center; gap: 14px; }
.org-title img { width: 42px; height: 42px; object-fit: contain; border: 1px solid var(--color-divider); background: var(--color-surface); }
.org-rule { height: 3px; background: var(--color-text); margin: 16px 0 0; }
.org-meta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 9px 0; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-neutral-700); }
.org-rule-thin { height: 1px; background: var(--color-text); margin: 0 0 22px; }
.org-toolbar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.org-toolbar h2 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.org-list-row { display: flex; align-items: stretch; min-height: 46px; cursor: pointer; animation: rowIn .34s cubic-bezier(.2,.7,.2,1) both; }
.org-list-row:hover { background: var(--color-accent-100); }
.org-guide { width: 30px; flex: none; display: flex; justify-content: center; }
.org-guide span { width: 1px; background: var(--color-neutral-400); opacity: .8; }
.org-elbow { width: 30px; flex: none; position: relative; }
.org-elbow i, .org-elbow b { position: absolute; left: 14px; background: var(--color-neutral-400); }
.org-elbow i { top: 0; width: 1px; }
.org-elbow b { top: 23px; width: 10px; height: 1px; }
.org-elbow em { position: absolute; left: 24px; top: 19px; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--color-accent); }
.org-row-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 6px; }
.org-toggle { width: 22px; height: 22px; flex: none; padding: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md); color: var(--color-accent); font-size: 14px; cursor: pointer; }
.org-leaf { width: 22px; height: 22px; flex: none; display: grid; place-items: center; color: var(--color-neutral-500); font-size: 11px; }
.org-row-name { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
.org-row-sector { font-size: 12px; color: var(--color-neutral-600); letter-spacing: 0.04em; }
.org-row-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; flex: none; padding-left: 12px; font-size: 12px; color: var(--color-neutral-600); }
.org-fit {
  --org-card-w: 156px;
  --org-card-root-w: 200px;
  --org-gap: 10px;
  display: block;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 8px 56px 24px;
  box-sizing: border-box;
}
#org-chart[hidden],
#org-list[hidden],
#org-empty[hidden] {
  display: none !important;
}
.org-fit-inner {
  display: block;
  width: 100%;
}
.org-top-level,
.org-fit-inner > .org-col {
  display: block;
  position: relative;
  width: 100%;
  min-width: 0;
  flex: none;
  margin: 0 0 40px;
  overflow: visible;
}
.org-top-level:last-child {
  margin-bottom: 0;
}
.org-about,
.org-about .org-expand,
.org-about p,
.org-expand,
.org-expand-text {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.org-about { margin: 0 0 28px; }
.org-about h2 { font-family: var(--font-heading); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 10px; }
.org-expand-text { margin: 0; font-size: 16.5px; line-height: 1.62; white-space: pre-wrap; color: var(--color-neutral-800); }
[data-mode="dark"] .org-expand-text { color: var(--color-neutral-700); }
.org-expand-toggle { margin-top: 10px; padding: 0; background: none; border: 0; color: var(--color-accent); font-size: 14px; cursor: pointer; }
.org-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 0 0 32px; }
.org-doc { padding: 18px 18px 16px; background: var(--color-surface); border-top: 3px solid var(--level-1, var(--color-accent)); border-radius: 9px; box-shadow: var(--shadow-sm); }
.org-doc h3 { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 0 0 10px; }
.org-doc-files { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.org-doc-file { display: inline-flex; font-size: 14px; }
.org-col { display: flex; flex-direction: column; align-items: center; flex: none; position: relative; width: var(--org-card-w); }
.org-col.is-root { width: var(--org-card-root-w); }
.org-card { width: var(--org-card-w); box-sizing: border-box; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 9px 11px 10px; background: var(--color-surface); border-top: 3px solid var(--level-0); border-radius: 9px; overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; animation: panelIn .38s cubic-bezier(.2,.7,.2,1) both; }
.org-card.is-root { width: var(--org-card-root-w); padding: 14px 16px 15px; }
.org-card.is-root .org-card-name { font-size: 16px; -webkit-line-clamp: 3; }
.org-card:hover { box-shadow: var(--shadow-md); }
.org-card.is-onpath { box-shadow: var(--shadow-md); }
.org-card.is-sel { box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-md); }
.org-logo { width: 26px; height: 26px; border: 1px solid var(--color-divider); background: var(--color-bg); display: grid; place-items: center; overflow: hidden; flex: none; }
.org-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-initials { font-family: var(--font-heading); font-weight: 600; font-size: 10px; letter-spacing: 0.04em; line-height: 1; }
.org-list-logo { width: 28px; height: 28px; }
.org-card-name { font-family: var(--font-heading); font-weight: 600; font-size: 13.5px; line-height: 1.25; width: 100%; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.org-card-sector { font-size: 10.5px; color: var(--color-neutral-600); width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-card-toggle { margin-top: 3px; align-self: flex-start; font-size: 11px; color: var(--color-accent); background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 1px 7px; cursor: pointer; }
.org-down { width: 1px; height: 18px; background: var(--color-neutral-400); }
.org-down.is-live { width: 2px; background: repeating-linear-gradient(180deg, var(--color-accent) 0 7px, transparent 7px 14px); background-size: 14px 14px; animation: flowUp .5s linear infinite; }
.org-kids {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--org-gap);
  z-index: 1;
}
.org-branch { width: calc(100% + var(--org-gap)); margin: 0 calc(var(--org-gap) / -2); height: 24px; position: relative; display: flex; }
.org-branch span { flex: 1; height: 1px; background: var(--color-neutral-400); }
.org-branch span.empty { background: transparent; }
.org-branch i { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; margin-left: 0; background: var(--color-neutral-400); }
.org-branch em { position: absolute; left: 50%; bottom: 0; margin-left: -4px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 6px solid var(--color-accent); }
.org-legend { margin-top: 46px; display: flex; gap: 44px; flex-wrap: wrap; font-size: 13px; color: var(--color-neutral-700); }
.org-empty { padding: 48px 0; color: var(--color-neutral-600); font-size: 18px; }
.org-modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 26px; background: color-mix(in srgb, var(--color-neutral-900) 58%, transparent); animation: backdropIn .2s ease both; }
.org-modal.is-open { display: grid; }
.org-dialog { width: min(780px, 100%); max-height: calc(100vh - 52px); overflow-y: auto; padding: 30px 34px 34px; background: var(--color-bg); color: var(--color-text); box-shadow: var(--shadow-lg); animation: dialogIn .34s cubic-bezier(.2,.7,.2,1) both; display: flex; flex-direction: column; gap: 20px; }
.org-dialog-top { display: flex; align-items: flex-start; gap: 20px; }
.org-dialog-logo { width: 68px; height: 68px; flex: none; border: 1px solid var(--color-divider); background: var(--color-surface); display: grid; place-items: center; overflow: hidden; font-family: var(--font-heading); }
.org-dialog-logo img { width: 100%; height: 100%; object-fit: contain; }
.org-dialog h3 { font-family: var(--font-heading); font-weight: 600; font-size: 34px; line-height: 1.08; margin: 7px 0; }
.org-dialog-desc { margin: 0; width: 100%; max-width: none; font-size: 16.5px; line-height: 1.62; }
.org-close { flex: none; width: 34px; height: 34px; padding: 0; display: grid; place-items: center; font-size: 20px; color: var(--color-text); background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md); cursor: pointer; }
.org-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.org-fact label { display: block; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-neutral-600); }
.org-history { margin: 0; padding-left: 18px; }
.org-history li { margin: 6px 0; font-size: 15px; line-height: 1.45; }
.org-gallery { display: flex; flex-direction: column; gap: 12px; }
.org-gallery-stage { position: relative; background: var(--color-neutral-100); border: 1px solid var(--color-divider); min-height: 200px; display: flex; align-items: center; justify-content: center; cursor: zoom-in; }
.org-gallery-stage img { max-width: 100%; max-height: min(62vh, 560px); width: auto; height: auto; object-fit: contain; display: block; }
.org-gallery-stage video, .org-gallery-stage iframe { width: 100%; max-height: min(62vh, 560px); aspect-ratio: 16 / 9; object-fit: contain; background: #111; border: 0; }
.org-gallery-caption { font-size: 13.5px; color: var(--color-neutral-700); line-height: 1.4; }
.org-gallery-expand { position: absolute; top: 8px; right: 8px; z-index: 2; width: 34px; height: 34px; padding: 0; border: 1px solid var(--color-divider); background: color-mix(in srgb, var(--color-bg) 86%, transparent); color: var(--color-text); cursor: pointer; }
.org-lightbox { position: fixed; inset: 0; z-index: 120; display: none; place-items: center; padding: 24px 72px; background: color-mix(in srgb, #000 86%, transparent); }
.org-lightbox.is-open { display: grid; }
.org-lightbox-frame { width: min(1100px, 100%); display: flex; flex-direction: column; gap: 12px; }
.org-lightbox-stage { width: 100%; min-height: 40vh; max-height: calc(100vh - 120px); display: grid; place-items: center; }
.org-lightbox-stage img { max-width: min(1100px, 92vw); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; display: block; }
.org-lightbox-stage video, .org-lightbox-stage iframe { width: min(1100px, 92vw); max-height: calc(100vh - 140px); aspect-ratio: 16 / 9; object-fit: contain; background: #000; border: 0; }
.org-lightbox-caption { color: #fff; text-align: center; font-size: 15px; }
.org-lightbox-close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; padding: 0; font-size: 24px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer; }
.org-lightbox-nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0; font-size: 28px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer; }
.org-lightbox-prev { left: 18px; }
.org-lightbox-next { right: 18px; }
body.org-lightbox-open { overflow: hidden; }
.org-gallery-nav { display: flex; gap: 8px; }
.org-gallery-nav button { width: 36px; height: 36px; padding: 0; font-size: 22px; line-height: 1; color: var(--color-text); background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md); cursor: pointer; }
.org-gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.org-gallery-thumb { position: relative; width: 64px; height: 48px; padding: 0; border: 1px solid var(--color-divider); background: var(--color-neutral-100); overflow: hidden; cursor: pointer; display: grid; place-items: center; }
.org-gallery-thumb .org-gallery-play { position: absolute; }
.org-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.org-gallery-thumb.is-on { box-shadow: 0 0 0 2px var(--color-accent); }
.org-gallery-play { color: var(--color-accent); font-size: 14px; }
.org-kids-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.org-kids-btns button { font-size: 13.5px; color: var(--color-text); background: transparent; border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: 6px 12px; cursor: pointer; }
.seg a.seg-opt { display: inline-flex; align-items: center; border-bottom: 0; text-decoration: none; }
.seg a.seg-opt.is-on, .seg .seg-opt[aria-pressed="true"] { background: var(--color-accent-100); color: var(--color-accent-700); }
body.org-modal-open { overflow: hidden; }
@media (max-width: 720px) {
  .org-fit { padding-left: 28px; padding-right: 28px; }
  .org-shell { padding-left: 18px; padding-right: 18px; }
  .org-head { align-items: flex-start; gap: 18px; }
  .org-toolbar { flex-wrap: wrap; gap: 10px; }
  .org-row-meta { display: none; }
  .org-title { font-size: 28px; }
  .org-card { padding: 8px 9px 9px; }
  .org-facts { grid-template-columns: 1fr; }
  .org-dialog { padding: 22px 18px 24px; }
  .org-dialog h3 { font-size: 26px; }
  .org-legend { gap: 16px; margin-top: 28px; }
}
.org-gate { max-width: 460px; padding-top: 80px; }
.org-gate-lead { margin: 18px 0 22px; font-size: 16px; line-height: 1.5; color: var(--color-neutral-700); }
.org-gate-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.org-gate-label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-600); }
.org-gate-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--color-divider); border-radius: 8px; background: var(--color-surface); color: var(--color-text); font-size: 16px; }
.org-gate-error { color: #c0392b; font-size: 14px; }
