
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&display=swap');

/* TinyPixels — retro-inspired light theme */

:root{
  --bg: #dff0ff;
  --tile: #d2b48c;
  --tile2:#caa27a;
  --ink:#1b2b3a;
  --muted:#516a7b;
  --card:#ffffff;
  --card2:#f6fbff;
  --line:#b4c9d9;
  --accent:#ff5b9a;
  --accent2:#3ddc97;
  --warn:#ffcc00;
  --danger:#ff4b4b;
  --shadow: rgba(0,0,0,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background: var(--bg);
  font-family: "Trebuchet MS", Tahoma, Arial, sans-serif;
}
img{
  max-width: 100%;
  height: auto;
}
.is-embed .topbar,
.is-embed .sky{
  display:none;
}
.is-embed .wrap{
  max-width: 100%;
  margin: 0;
  padding: 12px;
}
.is-embed .grid{
  display: block;
}
.is-embed .grid > .card{
  width: 100%;
  margin: 0;
}

/* Pixel-ish floor tiles */
.wrap{
  max-width: 1080px;
  margin: 18px auto 40px;
  padding: 0 16px 24px;
}
.wrap::before{
  content:"";
  display:block;
  height:16px;
  border-radius:14px 14px 0 0;
  background: repeating-linear-gradient(
    45deg,
    var(--tile),
    var(--tile) 10px,
    var(--tile2) 10px,
    var(--tile2) 20px
  );
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 14px;
}

/* sky + clouds */
.sky{
  position:fixed;
  inset:0;
  pointer-events:none;
  background: linear-gradient(#bfe6ff 0%, #dff0ff 55%, #f7fbff 100%);
  z-index:-2;
}
.cloud{
  position:absolute;
  top:60px;
  width:240px;
  height:80px;
  background: rgba(255,255,255,.8);
  border-radius: 60px;
  filter: blur(.2px);
  box-shadow: 0 12px 0 rgba(255,255,255,.7), 0 22px 12px rgba(0,0,0,.05);
  opacity:.95;
  animation: floaty 28s linear infinite;
}
.cloud::before,.cloud::after{
  content:"";
  position:absolute;
  background: rgba(255,255,255,.85);
  border-radius: 50%;
}
.cloud::before{ width:90px;height:90px; left:25px; top:-38px;}
.cloud::after{ width:110px;height:110px; left:105px; top:-58px;}
.c1{ left:-260px; top:70px; animation-duration: 55s;}
.c2{ left:-260px; top:150px; width:300px; animation-duration: 72s; opacity:.85;}
.c3{ left:-260px; top:250px; width:220px; animation-duration: 62s; opacity:.75;}
@keyframes floaty{
  from{ transform: translateX(0); }
  to{ transform: translateX(calc(100vw + 520px)); }
}

/* topbar */
.topbar{
  position:sticky;
  top:0;
  z-index:5;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap:14px;
}
.topbar__left{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap: wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.brand__logo{ width:46px; height:46px; image-rendering: pixelated; }
.brand__name{ font-weight:800; letter-spacing:.2px; }
.brand__tag{ color:var(--muted); font-size:12px; margin-top:2px; }
.topbar__right{ display:flex; gap:10px; align-items:center; }
.nav{
  display:flex;
  align-items:flex-start;
  gap:8px;
  flex-wrap: wrap;
}
.nav-toggle{
  display:none;
  align-items:center;
  gap:10px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 20px var(--shadow);
  cursor: pointer;
}
.nav-toggle__icon{
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 999px;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width:20px;
  height:2px;
  background: currentColor;
  border-radius: 999px;
}
.nav-toggle__icon::before{ top:-6px; }
.nav-toggle__icon::after{ top:6px; }
.nav-toggle.is-open .nav-toggle__icon{
  background: transparent;
}
.nav-toggle.is-open .nav-toggle__icon::before{
  top:0;
  transform: rotate(45deg);
}
.nav-toggle.is-open .nav-toggle__icon::after{
  top:0;
  transform: rotate(-45deg);
}
.nav-toggle__label{
  font-size: 13px;
  letter-spacing: .2px;
}
.nav__link{
  text-decoration:none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 8px 20px var(--shadow);
}
.nav__link:hover{ transform: translateY(-1px); }
.nav__link--active{
  background: linear-gradient(180deg, #ff7bb5 0%, #ff5b9a 100%);
  color: #fff;
  border-color: rgba(0,0,0,.12);
}
.nav__group{
  position: relative;
  display:flex;
  flex-direction:column;
  padding-bottom: 10px;
  z-index: 1;
}
.nav__group::after{
  content:"";
  position:absolute;
  left:0;
  top:100%;
  width:100%;
  height: 6px;
}
.nav__link--group{
  cursor: pointer;
  appearance: none;
  font: inherit;
  text-align: left;
  font-weight: 800;
}
.nav__submenu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  flex-direction:column;
  gap:6px;
  padding:8px;
  margin-top: 6px;
  background: rgba(255,255,255,.96);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 14px 30px var(--shadow);
  min-width: 180px;
  z-index: 3;
}
.nav__group:hover .nav__submenu,
.nav__group:focus-within .nav__submenu,
.nav__group.is-open .nav__submenu{
  display:flex;
}
.nav__group.is-open{
  z-index: 3;
}
.nav__sublink{
  text-decoration:none;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-weight: 700;
}
.nav__sublink:hover{ transform: translateY(-1px); }
.nav__sublink--active{
  background: linear-gradient(180deg, #ff7bb5 0%, #ff5b9a 100%);
  color: #fff;
  border-color: rgba(0,0,0,.12);
}

.chip{
  display:flex; align-items:center; gap:8px;
  padding: 8px 10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  box-shadow: 0 6px 14px var(--shadow);
  font-size: 13px;
}
.chip__dot{
  width:10px;height:10px;border-radius:50%;
  background: var(--accent2);
  box-shadow: 0 0 0 3px rgba(61,220,151,.15);
}
.chip__role{
  margin-left:6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,91,154,.12);
  color: #b61f62;
  font-weight:700;
  font-size: 11px;
}

/* cards */
.card{
  border-radius: 16px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card2) 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 14px 35px var(--shadow);
  padding: 16px;
  margin: 12px 0;
}
.card__title{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin: 0 0 10px;
}
.card__title h2{ margin:0; font-size: 18px; }
.badge{
  font-size: 12px;
  font-weight:800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 204, 0, .18);
  color: #7a5a00;
  border: 1px dashed rgba(122, 90, 0, .35);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 860px){
  .grid{ grid-template-columns: 1fr; }
  .nav-toggle{ display:inline-flex; }
  .nav{
    display:none;
    width:100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(0,0,0,.08);
    background: rgba(255,255,255,.92);
    box-shadow: 0 16px 30px var(--shadow);
  }
  .nav.nav--open{ display:flex; }
  .nav__group{
    position: static;
    padding-bottom: 0;
  }
  .nav__link{
    width:100%;
  }
  .nav__submenu{
    position: static;
    margin-top: 8px;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
  }
  .nav__sublink{
    margin-left: 12px;
  }
  .nav__group:focus-within .nav__submenu{ display: none; }
  .nav__group.is-open .nav__submenu{ display: flex; }
}
@media (hover: none) and (pointer: coarse){
  .nav__group:hover .nav__submenu{ display: none; }
  .nav__group.is-open .nav__submenu{ display: flex; }
}

label{
  display:block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
input[type="text"], input[type="email"], input[type="password"], textarea, select{
  width:100%;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  outline:none;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.03);
}
textarea{ min-height: 140px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; }

.row{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.row--end{ justify-content:flex-end; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius: 12px;
  padding: 10px 14px;
  text-decoration:none;
  border: 1px solid rgba(0,0,0,.10);
  background: white;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 22px var(--shadow);
  cursor:pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }
.btn--primary{
  background: linear-gradient(180deg, #ff7bb5 0%, #ff5b9a 100%);
  border-color: rgba(0,0,0,.12);
  color: #fff;
}
.btn--success{
  background: linear-gradient(180deg, #57e6b0 0%, #3ddc97 100%);
  border-color: rgba(0,0,0,.12);
  color: #083824;
}
.btn--danger{
  background: linear-gradient(180deg, #ff7373 0%, #ff4b4b 100%);
  border-color: rgba(0,0,0,.12);
  color: #fff;
}
.btn--ghost{
  background: rgba(255,255,255,.8);
}

.hr{
  height:1px;
  background: rgba(0,0,0,.08);
  margin: 14px 0;
}

.flash{
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px var(--shadow);
}
.flash--success{ background: rgba(61,220,151,.18); }
.flash--error{ background: rgba(255,75,75,.16); }
.flash--info{ background: rgba(255,204,0,.16); }

.table{
  width:100%;
  border-collapse: collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.08);
}
.table th,.table td{
  padding: 10px 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  vertical-align: top;
}
.table th{
  text-align:left;
  font-size:12px;
  letter-spacing:.4px;
  text-transform: uppercase;
  background: rgba(0,0,0,.04);
}
.table tr:last-child td{ border-bottom:none; }
.kbd{
  display:inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.85);
  font-weight:800;
  font-size: 12px;
}
.small{ color:var(--muted); font-size: 12px; line-height: 1.4; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

.preview{
  width:100%;
  height: 260px;
  border-radius: 14px;
  border:1px solid rgba(0,0,0,.10);
  background: #fff;
}

.footer{
  margin-top: 40px;
  padding: 18px 16px 26px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.7);
}
.footer__inner{
  max-width: 1080px;
  margin: 0 auto;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap: wrap;
}
.footer__small{ color: var(--muted); font-size: 12px; max-width: 680px; }

/* retro speech bubble */
.bubble{
  position: relative;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 12px 28px var(--shadow);
}
.bubble::after{
  content:"";
  position:absolute;
  left: 26px;
  bottom:-10px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,.95);
  border-left: 1px solid rgba(0,0,0,.10);
  border-bottom: 1px solid rgba(0,0,0,.10);
  transform: rotate(45deg);
}

.editor-toolbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin: 0 0 8px;
}
.editor-toolbar__group{
  display:flex;
  align-items:center;
  gap:6px;
}
.editor-toolbar .btn{ padding: 8px 10px; }
.editor-select{
  padding: 8px 10px;
  border-radius: 10px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  font-weight: 800;
}
.editor-label{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 6px 8px;
  border-radius: 10px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.editor-toolbar__colors input[type="color"]{
  width: 32px;
  height: 28px;
  padding:0;
  background: transparent;
  border: none;
  cursor: pointer;
}
.editor{
  min-height: 240px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  padding: 12px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.03);
  overflow:auto;
}
.editor:focus{ outline: 2px solid rgba(255,91,154,.25); }
.editor-frame{
  width:100%;
  min-height: 260px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  box-shadow: inset 0 2px 0 rgba(0,0,0,.03);
}
.editor-frame:focus{ outline: 2px solid rgba(255,91,154,.25); }
.editor-code{
  width:100%;
  min-height: 240px;
  border-radius: 12px;
  border:1px dashed var(--line);
  background: rgba(255,255,255,.95);
  padding: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  box-shadow: inset 0 2px 0 rgba(0,0,0,.03);
}
.link{ color: var(--accent); font-weight:800; text-decoration: none; }
.link:hover{ text-decoration: underline; }
.user-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.editor-hints{ margin: 8px 0; }
.chip--btn{
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}
.chip--btn:hover{ transform: translateY(-1px); }
.btn.is-active{ box-shadow: 0 0 0 2px rgba(255,91,154,.28); }
.modal{
  position: fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 20;
}
.modal.is-open{ display:flex; }
.modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(2px);
}
.modal__dialog{
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  width: min(460px, 92vw);
  box-shadow: 0 22px 50px rgba(0,0,0,.24);
  border: 1px solid rgba(0,0,0,.08);
  z-index: 1;
}
.modal__dialog--xl{
  width: min(1100px, 96vw);
  height: min(86vh, 980px);
  padding: 16px 16px 12px;
}
.org-edit-frame{
  width: 100%;
  height: calc(100% - 44px);
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.org-edit-loading{
  position: absolute;
  inset: 56px 16px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.9);
  border-radius: 12px;
  border: 1px dashed rgba(0,0,0,.08);
  z-index: 2;
}
.org-edit-loading.is-hidden{
  display: none;
}
.org-edit-loading svg{
  width: 120px;
  height: 30px;
  fill: var(--org-accent);
}
.org-edit-loading svg circle{
  animation: org-bounce 1.1s infinite ease-in-out both;
}
.org-edit-loading svg circle:nth-child(1){ animation-delay: -0.22s; }
.org-edit-loading svg circle:nth-child(2){ animation-delay: -0.11s; }
.org-edit-loading svg circle:nth-child(3){ animation-delay: 0s; }
.user-dir-loading{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.85);
  z-index: 9999;
}
.user-dir-loading.is-hidden{
  display: none;
}
.user-dir-loading svg{
  width: 120px;
  height: 30px;
  fill: var(--org-accent);
}
.user-dir-loading svg circle{
  animation: org-bounce 1.1s infinite ease-in-out both;
}
.user-dir-loading svg circle:nth-child(1){ animation-delay: -0.22s; }
.user-dir-loading svg circle:nth-child(2){ animation-delay: -0.11s; }
.user-dir-loading svg circle:nth-child(3){ animation-delay: 0s; }
@keyframes org-bounce{
  0%, 80%, 100%{ transform: scale(0.6); opacity: 0.55; }
  40%{ transform: scale(1); opacity: 1; }
}
.modal__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom: 10px;
}
.modal__title{ font-weight:900; font-size: 16px; }
.modal__close{ padding: 8px 10px; }

/* Org chart */
:root{
  --org-bg: #efe6fb;
  --org-bg2: #f5ecff;
  --org-ink: #2f2460;
  --org-muted: #6b5c9a;
  --org-line: rgba(95,70,170,.3);
  --org-glow: rgba(123,90,220,.25);
  --org-card: #ffffff;
  --org-card2: #fbf9ff;
  --org-accent: #6b4fd2;
  --org-accent2: #a889f5;
}
.org-chart__canvas,
.org-card,
.org-tooltip,
.org-chart__controls,
.org-chart__status{
  font-family: "Sora", "Space Grotesk", "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
.org-chart__canvas{
  --org-card-width: 350px;
  --org-card-height: 140px;
  --org-card-gap-x: 48px;
  --org-card-gap-y: 90px;
  --org-card-list-gap-y: 32px;
  --org-chart-margin: 80px;
  height: 70vh;
  min-height: 420px;
  border-radius: 16px;
  border: 1px solid var(--org-line);
  background:
    radial-gradient(circle at 18% 18%, rgba(107,79,210,.12), transparent 55%),
    radial-gradient(circle at 85% 0%, rgba(168,137,245,.15), transparent 45%),
    linear-gradient(180deg, var(--org-bg) 0%, var(--org-bg2) 100%);
  overflow: hidden;
  position: relative;
}
.org-chart__controls{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.org-chart__controls .btn{
  white-space: nowrap;
}
.org-chart__status{
  border: 1px solid rgba(95,70,170,.22);
  background: rgba(255,255,255,.9);
  color: var(--org-ink);
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13px;
}
.org-chart__status--loading{ border-color: rgba(107,79,210,.4); background: rgba(107,79,210,.08); }
.org-chart__status--success{ border-color: rgba(168,137,245,.5); background: rgba(168,137,245,.12); }
.org-chart__status--error{ border-color: rgba(255,75,75,.35); background: rgba(255,75,75,.08); }
.org-chart__status--info{ border-color: rgba(95,70,170,.25); background: rgba(95,70,170,.08); }
.org-link{
  fill: none;
  stroke: rgba(107,79,210,.45);
  stroke-width: 2.5;
}
.org-node{
  cursor: grab;
  animation: org-fade-in .35s ease-out both;
}
.org-card{
  border-radius: 14px;
  border: 1px solid rgba(107,79,210,.35);
  background: linear-gradient(180deg, var(--org-card) 0%, var(--org-card2) 100%);
  box-shadow:
    0 16px 30px rgba(49,30,120,.14),
    0 0 0 1px rgba(107,79,210,.12);
  color: var(--org-ink);
  display:flex;
  flex-direction:column;
  gap:8px;
  padding: 10px;
  touch-action: none;
  width:100%;
  height:100%;
}
.org-card:hover{
  transform: translateY(-2px);
  box-shadow:
    0 22px 50px rgba(49,30,120,.18),
    0 0 0 2px var(--org-glow);
}
.org-card--root{
  background: linear-gradient(130deg, #7b57e7 0%, #5b3fd1 55%, #3c2b9f 100%);
  color: #fff;
  border-color: rgba(255,255,255,.25);
  box-shadow: 0 20px 50px rgba(63,45,150,.35);
}
.org-card__root{
  font-size: 18px;
  letter-spacing: .2px;
  font-weight: 800;
  text-align:center;
  padding-top: 34px;
}
.org-card__header{
  display:flex;
  align-items:center;
  gap:10px;
}
.org-card__avatar{
  width:40px;
  height:40px;
  border-radius: 14px;
  background: rgba(107,79,210,.18);
  border: 1px solid rgba(107,79,210,.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}
.org-card__avatar img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  opacity: 0;
}
.org-card__avatar img.is-loaded{
  opacity: 1;
}
.org-card__avatar img.is-error{
  display:none;
}
.org-card__avatar span{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color: #5b3fd1;
}
.org-card__avatar img.is-loaded + span{
  opacity: 0;
}
.org-card__summary{
  flex:1;
  min-width:0;
}
.org-card__name{
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-card__title{
  color: var(--org-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-card__toggle{
  border-radius: 10px;
  border: 1px solid rgba(107,79,210,.25);
  background: rgba(255,255,255,.9);
  color: var(--org-ink);
  font-weight: 900;
  width: 28px;
  height: 28px;
  cursor: pointer;
}
.org-card__toggle:hover{
  border-color: rgba(107,79,210,.55);
}
.org-card__toggle[disabled]{
  opacity: .4;
  cursor: default;
}
.org-card__meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size: 12px;
}
.org-card__dept{
  color: var(--org-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-card__email{
  font-weight: 700;
  font-size: 11px;
  color: var(--org-ink);
}
.org-card__badge{
  align-self:flex-start;
  padding: 2px 8px;
  background: rgba(107,79,210,.14);
  color: #4b2fb5;
  border: 1px solid rgba(107,79,210,.35);
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}
.org-tooltip{
  position: fixed;
  z-index: 30;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(43,32,90,.96);
  color: #fff;
  font-size: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  display: none;
  max-width: 260px;
}
.org-tooltip__name{
  font-weight: 700;
  margin-bottom: 4px;
}
.org-tooltip__line{
  opacity: .9;
}
.org-tooltip.is-visible{
  display:block;
}
@keyframes org-fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@media (max-width: 720px){
  .card__title{
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .org-chart__controls{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .org-chart__controls .btn{
    width: 100%;
    justify-content: center;
  }
  .org-chart__canvas{
    --org-card-width: 280px;
    --org-card-height: 132px;
    --org-card-gap-x: 24px;
    --org-card-gap-y: 70px;
    --org-card-list-gap-y: 24px;
    --org-chart-margin: 48px;
    height: 75vh;
    min-height: 420px;
  }
  .org-card{
    padding: 8px;
  }
  .org-card__name{
    font-size: 13px;
  }
  .org-card__title{
    font-size: 11px;
  }
  .org-card__meta{
    font-size: 11px;
  }
  .table{
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th,
  .table td{
    white-space: nowrap;
  }
}
.org-chart__svg{
  width:100%;
  height:100%;
  touch-action: none;
}
.org-node.is-dragging{
  cursor: grabbing;
  pointer-events: none;
}
.org-node--root{
  cursor: default;
}
.org-card-wrap{
  width:100%;
  height:100%;
}
