.pub-org-nav-link { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; border-radius: 9px; padding: 9px 11px; background: transparent; color: #54545c; font: inherit; font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.pub-org-nav-link .app-nav-icon { width: 18px; flex-shrink: 0; text-align: center; font-size: 13px; opacity: .9; }
.pub-org-nav-link .app-nav-label { flex: 1; }
.pub-org-nav-link:hover { background: #f0f0f3; }
.pub-org-nav-link.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 620; }
.pub-org-nav-link:disabled { color: #bcbcc4; cursor: not-allowed; background: transparent; }
.pub-org-nav-link:focus-visible { outline: 2px solid #7c9cce; outline-offset: 2px; }
.public-org { max-width: 1560px; margin: 0 auto; padding: 24px 24px 64px; color: #191e29; }
.public-org.pub-embedded { max-width: none; padding: 0; }
.pub-embedded .pub-overview { grid-template-columns: minmax(0, 1fr); padding: 18px; }
.pub-embedded .pub-filters { padding: 0; border: 0; background: transparent; }
.pub-members-heading { display: flex; align-items: baseline; gap: 10px; }
.pub-members-heading h2 { font-size: 19px; }
.pub-members-heading span { font-size: 13px; color: #8792a7; }
.public-org *, .pub-dialog * { box-sizing: border-box; }
.public-org h1, .public-org h2, .public-org h3, .public-org p, .pub-dialog h2 { margin: 0; }
.pub-viewbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.pub-segment { display: inline-flex; padding: 4px; background: #eeeef1; border-radius: 12px; gap: 3px; }
.pub-segment button { border: 0; border-radius: 9px; background: transparent; color: #85858f; font: inherit; font-size: 14px; font-weight: 650; padding: 10px 17px; white-space: nowrap; cursor: pointer; }
.pub-segment button.active { background: #fff; color: #24242b; box-shadow: 0 1px 5px #11182712; }
.pub-segment.small button { font-size: 13px; padding: 9px 13px; }
.pub-company-note { font-size: 12px; color: #8993a6; }
.pub-overview, .pub-supervisor, .pub-business, .pub-table-panel { background: #fff; border: 1px solid #dfe6f0; border-radius: 19px; box-shadow: 0 12px 28px #26334f04; }
.pub-overview { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(330px, 1fr); gap: 22px; padding: 22px; }
.pub-overview-main { min-width: 0; }
.pub-title-row { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.pub-dept-icon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 15px; background: #bd2040; color: #fff; display: grid; place-items: center; font-size: 21px; font-weight: 750; box-shadow: 0 8px 18px #bd204020; }
.pub-title-row h1 { font-size: 26px; line-height: 1.25; font-weight: 750; letter-spacing: -.7px; }
.pub-title-row p { color: #778399; font-size: 13px; margin-top: 7px; }
.pub-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.pub-stat { padding: 14px 11px; background: #fafbfe; border: 1px solid #e4eaf4; border-radius: 15px; min-width: 0; }
.pub-stat > span { display: block; font-size: 12px; font-weight: 650; color: #798397; white-space: nowrap; }
.pub-stat strong { display: block; font-size: 28px; line-height: 1.3; font-weight: 750; margin: 3px 0; }
.pub-stat small { color: #98a3b9; font-size: 10px; }
.pub-filters { padding: 15px; border: 1px solid #e2e9f4; border-radius: 16px; background: #f8f9fc; }
.pub-filter-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.pub-filter-top h2 { font-size: 13px; font-weight: 700; }
.pub-button { background: #fff; border: 1px solid #d8dfeb; border-radius: 9px; color: #4c576b; font: inherit; font-size: 13px; font-weight: 650; padding: 9px 13px; cursor: pointer; }
.pub-button.primary { background: #bd2040; color: #fff; border-color: #bd2040; box-shadow: 0 5px 13px #bd204017; }
.pub-button:disabled { opacity: .55; cursor: wait; }
.pub-search { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid #dce4f0; border-radius: 12px; padding: 11px 12px; margin-bottom: 10px; }
.pub-search > span { font-size: 20px; line-height: 18px; color: #9aa6be; }
.pub-search input { border: 0; background: transparent; min-width: 0; width: 100%; outline: none; color: #343e50; font: inherit; font-size: 14px; }
.pub-search:focus-within { outline: 2px solid #b9c8e9; }
.pub-filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.pub-filter-grid select, .pub-field input, .pub-field select { width: 100%; min-width: 0; border: 1px solid #dfe3eb; background: #fff; border-radius: 9px; padding: 9px 11px; color: #4d5261; font: inherit; font-size: 13px; }
.pub-supervisor { margin-top: 18px; padding: 17px 20px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; }
.pub-kicker { color: #8b96aa; font-size: 12px; font-weight: 700; }
.pub-supervisor h2 { font-size: 20px; margin: 3px 0 5px; }
.pub-supervisor p { color: #7c879c; font-size: 13px; }
.pub-supervisor .pub-member { background: #fafbfe; padding: 14px; }
.pub-supervisor .pub-avatar { width: 43px; height: 43px; flex-basis: 43px; font-size: 19px; }
.pub-supervisor .pub-member-name { font-size: 17px; }
.pub-business, .pub-table-panel { margin-top: 18px; overflow: hidden; }
.pub-business-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #e9edf5; background: #fbfcfe; }
.pub-business-heading h2 { font-size: 18px; font-weight: 700; }
.pub-business-heading p { font-size: 12px; color: #8590a5; margin-top: 5px; }
.pub-business-heading > span { flex-shrink: 0; color: #929eb3; font-size: 13px; }
.pub-groups { padding: 16px; display: grid; gap: 14px; }
.pub-group { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid #e2e8f4; border-radius: 17px; overflow: hidden; box-shadow: 0 6px 14px #34496603; }
.pub-group-summary { border-left: 5px solid var(--group-color); border-right: 1px solid #eaf0f7; background: #f9fafc; display: flex; align-items: center; gap: 12px; padding: 19px 16px; }
.pub-group-icon { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 14px; display: grid; place-items: center; background: var(--group-color); color: #fff; font-size: 16px; font-weight: 750; }
.pub-group-info { min-width: 0; flex: 1; }
.pub-group-info h3 { font-size: 17px; font-weight: 750; white-space: nowrap; }
.pub-group-info p { color: #8792a7; font-size: 11px; margin-top: 6px; white-space: nowrap; }
.pub-group-count { text-align: center; min-width: 40px; }
.pub-group-count strong { display: block; color: var(--group-color); font-size: 23px; line-height: 1.3; }
.pub-group-count small { font-size: 10px; color: #94a0b5; }
.pub-member-grid { padding: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; }
.pub-group-summary-split { flex-direction: column; align-items: stretch; justify-content: center; gap: 18px; }
.pub-group-summary-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pub-position-groups { min-width: 0; padding: 0 14px; }
.pub-position-group { display: grid; grid-template-columns: 138px minmax(0, 1fr); align-items: center; gap: 14px; padding: 14px 0; }
.pub-position-group + .pub-position-group { border-top: 1px solid #eaf0f7; }
.pub-position-heading { min-width: 0; border-left: 3px solid var(--group-color); padding-left: 11px; }
.pub-position-heading h4 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.6; color: #364258; }
.pub-position-heading > span { display: block; margin-top: 4px; color: #8792a7; font-size: 12px; }
.pub-position-group .pub-member-grid { padding: 0; min-width: 0; }
.pub-member { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; border: 1px solid #e4e9f3; border-radius: 13px; background: #fff; padding: 12px; text-align: left; font: inherit; color: #20252e; cursor: pointer; box-shadow: 0 2px 3px #26395902; transition: border-color .15s, box-shadow .15s; }
.pub-member:hover { border-color: #bac8df; box-shadow: 0 4px 12px #26395908; }
.pub-member[draggable=true] { cursor: grab; }
.pub-member[draggable=true]:active { cursor: grabbing; }
.pub-avatar { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; display: grid; place-items: center; background: var(--group-color); color: #fff; font-size: 16px; font-weight: 700; }
.pub-member-copy { min-width: 0; flex: 1; }
.pub-member-name { display: flex; gap: 6px; align-items: center; font-size: 14px; font-weight: 750; }
.pub-member-meta { display: block; color: #9299a8; font-size: 11px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pub-role { font-style: normal; font-size: 9px; font-weight: 600; color: #008a84; background: #e8f8f5; border-radius: 4px; padding: 1px 5px; flex-shrink: 0; }
.pub-role.part-time { color: #93630c; background: #fff4da; margin-left: 3px; }
.pub-part-time-field { display: flex; align-items: center; gap: 7px; grid-column: 1 / -1; color: #737c8e; font-size: 12px; }
.pub-status { font-size: 11px; color: #16875b; font-weight: 650; border-radius: 12px; background: #e8f6ed; padding: 3px 9px; }
.pub-status-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: #19a358; }
.pub-status-dot.pending { background: #b6bcc8; }
.pub-member.is-placeholder { border-style: dashed; background: #fcfdfd; }
.pub-member.is-placeholder .pub-avatar { background: #edf3f1; color: #86a599; }
.pub-member.is-placeholder .pub-member-name { color: #818e8d; }
.pub-empty, .pub-loading { padding: 40px 16px; text-align: center; color: #929aab; font-size: 14px; }
.pub-empty .pub-button { margin-top: 15px; }
.pub-table-scroll { overflow-x: auto; }
.pub-table-scroll table { border-collapse: collapse; width: 100%; min-width: 580px; font-size: 13px; }
.pub-table-scroll th { background: #f8f9fc; font-weight: 600; color: #8791a5; }
.pub-table-scroll th, .pub-table-scroll td { padding: 14px 20px; text-align: left; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
.pub-table-scroll tbody tr:last-child td { border-bottom: none; }
.pub-table-scroll tbody tr:hover { background: #fcfcfe; }
.pub-link-button { color: #ac1c3b; border: 0; background: transparent; font: inherit; padding: 0; cursor: pointer; }
.pub-dialog { width: 520px; max-width: calc(100vw - 32px); border: 1px solid #e1e6ef; border-radius: 19px; padding: 22px; color: #252b38; box-shadow: 0 20px 80px #18213930; }
.pub-dialog::backdrop { background: #17203155; backdrop-filter: blur(2px); }
.pub-dialog-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.pub-dialog-heading h2 { font-size: 20px; }
.pub-dialog-heading button { background: #f3f4f6; border: 0; border-radius: 7px; font-size: 20px; color: #798394; cursor: pointer; width: 30px; height: 30px; }
.pub-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.pub-field { display: grid; gap: 7px; font-size: 12px; color: #737c8e; }
.pub-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.pub-error { color: #b52644; font-size: 13px; margin-top: 12px; }
.public-org button:focus-visible, .public-org select:focus-visible, .pub-dialog button:focus-visible, .pub-dialog input:focus-visible, .pub-dialog select:focus-visible { outline: 2px solid #7c9cce; outline-offset: 3px; }
@media (max-width: 1160px) {
  .pub-overview { grid-template-columns: minmax(0, 1fr); }
  .pub-stat small { font-size: 11px; }
  .pub-group { grid-template-columns: 205px minmax(0, 1fr); }
  .pub-group-summary { padding: 16px 11px; gap: 9px; }
  .pub-member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-group-summary-heading { gap: 9px; }
  .pub-position-group { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pub-position-heading { display: flex; align-items: center; gap: 10px; }
  .pub-position-heading > span { margin-top: 0; }
}
@media (max-width: 760px) {
  .public-org { padding: 18px 14px 60px; }
  .pub-viewbar { flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
  .pub-segment button { font-size: 12px; padding: 9px 12px; }
  .pub-overview { padding: 16px; gap: 16px; }
  .pub-title-row h1 { font-size: 23px; }
  .pub-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pub-supervisor { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .pub-group { grid-template-columns: minmax(0, 1fr); }
  .pub-group-summary { padding: 14px; border-right: 0; border-bottom: 1px solid #eaf0f7; }
  .pub-group-summary-split { gap: 12px; }
  .pub-group-count { margin-left: auto; }
  .pub-business-heading { padding: 16px; }
  .pub-business-heading p { max-width: 230px; line-height: 1.5; }
  .pub-groups { padding: 12px; }
}
@media (max-width: 440px) {
  .pub-title-row p { font-size: 11px; }
  .pub-member-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pub-filter-grid { gap: 7px; }
  .pub-filter-grid select { padding: 9px 6px; font-size: 12px; }
  .pub-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .pub-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .pub-member { transition: none; } }
@media (max-width: 620px) {
  .local-org { padding: 16px 12px 60px !important; }
  .local-org section { min-width: 0; }
  .local-org [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  .local-org [style*="minmax(130px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .local-org [style*="display: flex"] { flex-wrap: wrap; }
  .local-org [style*="font-size: 24px"] { font-size: 20px !important; }
  .local-org select { width: 100%; min-width: 0; }
  .local-org input { max-width: 100%; }
  .local-org div { overflow-wrap: anywhere; }
  #local-environment { font-size: 10px; right: 5px; bottom: 5px; max-width: calc(100vw - 76px); }
}
