@import url("/platform-theme.css");
:root {
  font: 14px/1.55 var(--pp-font);
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button,
a {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
a {
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
strong {
  font-weight: 600;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
  vertical-align: middle;
}
.boot {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
}
.sidebar {
  background: var(--side);
  color: var(--pp-muted);
  padding: 30px 17px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pp-text);
  padding: 0 12px 38px;
  font-size: 17px;
  letter-spacing: 0.4px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--pp-field);
  color: white;
}
.side-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  padding: 10px 15px;
  color: var(--pp-subtle);
}
.side-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13px;
  margin: 3px 0;
}
.side-link.active {
  background: var(--pp-selected);
  color: var(--pp-accent);
}
.side-link:hover {
  background: var(--pp-raised);
}
.side-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid var(--pp-hairline);
  font-size: 11px;
  color: var(--pp-muted);
}
.side-bottom strong {
  display: block;
  font-size: 13px;
  color: var(--pp-text);
  margin-bottom: 4px;
}
.main {
  min-width: 0;
  padding: 27px 34px 40px;
  max-width: 1700px;
  width: 100%;
  margin: 0 auto;
}
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  gap: 15px;
}
.topline > span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity button {
  font-size: 12px;
  color: var(--muted);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 27px 0 23px;
}
.page-heading h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 37px;
  border-radius: 9px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}
.btn.primary {
  background: var(--pp-primary);
  border-color: transparent;
  color: white;
  box-shadow: none;
}
.btn.danger {
  color: var(--danger);
}
.btn.small {
  padding: 5px 9px;
  min-height: 30px;
  font-size: 11px;
}
.btn.text {
  border: 0;
  background: transparent;
  color: var(--brand);
  box-shadow: none;
  padding: 4px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: var(--paper);
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.stat .tile {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--soft);
}
.stat:nth-child(2) .tile {
  color: var(--pp-blue);
  background: var(--pp-field);
}
.stat:nth-child(4) .tile {
  color: var(--warn);
  background: var(--pp-field);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stat strong {
  display: block;
  font-size: 25px;
  font-weight: 600;
  margin-top: 1px;
  line-height: 1.2;
}
.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 21px;
  overflow: auto;
}
.tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 10px 1px 14px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  color: var(--brand);
  font-weight: 600;
}
.tabs button[aria-selected="true"]:after {
  content: "";
  position: absolute;
  bottom: -1px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  left: 0;
  right: 0;
}
.people-grid {
  display: grid;
  grid-template-columns: 247px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  min-width: 0;
  box-shadow: 0 3px 15px var(--shadow);
}
.tree-card {
  padding: 18px 12px;
  position: sticky;
  top: 18px;
}
.tree-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5px 12px;
}
.tree-title h2 {
  font-size: 13px;
  font-weight: 600;
}
.icon-btn {
  width: 29px;
  height: 29px;
  padding: 5px;
  border-radius: 7px;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.icon-btn .icon {
  width: 16px;
  height: 16px;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--brand);
}
.icon-btn.danger:hover {
  color: var(--danger);
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--paper);
  color: var(--muted);
  min-height: 36px;
  min-width: 0;
}
.search input {
  background: none;
  border: 0;
  outline: 0;
  width: 100%;
  min-width: 0;
  padding: 8px 0;
  font-size: 12px;
  color: var(--ink);
}
.tree-search {
  margin: 0 5px 14px;
}
.tree {
  max-height: calc(100vh - 405px);
  min-height: 180px;
  overflow: auto;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 7px;
  border-radius: 8px;
  color: var(--muted);
  margin: 2px 0;
  position: relative;
}
.tree-row.selected {
  background: var(--soft);
  color: var(--brand);
}
.tree-row:hover {
  background: var(--soft);
}
.tree-select {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: 0;
  font-size: 12px;
}
.tree-select > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.tree-select small {
  font-size: 10px;
  opacity: 0.8;
}
.tree-row .icon-btn {
  width: 19px;
  height: 23px;
  padding: 2px;
}
.tree-symbol {
  width: 23px;
  height: 23px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand);
  flex: none;
}
.tree-symbol .icon {
  width: 14px;
  height: 14px;
}
.tree-count {
  font-size: 10px;
  color: var(--muted);
  padding-right: 4px;
}
.content-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filters .search {
  flex: 1;
  min-width: 200px;
}
.field-control,
select,
input[type="date"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  min-height: 36px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
}
.filters select {
  max-width: 160px;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
input[type="checkbox"] {
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  flex: none;
}
.filter-caption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
  min-height: 27px;
}
.filter-caption strong {
  color: var(--ink);
  font-weight: 500;
}
.filter-caption .btn {
  margin-left: auto;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  font-size: 11px;
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  background: var(--pp-field);
  padding: 13px 15px;
  white-space: nowrap;
}
td {
  padding: 15px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
tbody tr:hover {
  background: var(--pp-raised);
}
.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}
.person-name {
  padding: 0;
  text-align: left;
  font-weight: 500;
  color: var(--ink);
}
.org-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.org-label .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 10px;
  white-space: nowrap;
  background: var(--soft);
  color: var(--brand);
}
.pill.gray {
  background: var(--pp-field);
  color: var(--muted);
}
.pill.warn {
  color: var(--warn);
  background: color-mix(in srgb, var(--pp-warning) 12%, var(--pp-surface));
}
.pill .icon {
  width: 11px;
  height: 11px;
}
.operations {
  display: flex;
  gap: 2px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.pagination .actions {
  gap: 7px;
}
.empty {
  padding: 60px 25px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.empty > .icon {
  width: 33px;
  height: 33px;
  color: var(--brand);
  margin-bottom: 12px;
}
.batch-bar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  border: 1px solid var(--brand);
  border-radius: 9px;
  background: var(--soft);
  font-size: 12px;
  color: var(--brand);
}
.batch-bar > span {
  margin-right: auto;
}
.org-toolbar {
  padding: 17px 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.org-toolbar h2 {
  font-size: 14px;
  font-weight: 600;
}
.org-toolbar p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.org-tree {
  padding: 12px 20px 20px;
  overflow-x: auto;
}
.org-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 9px;
  min-width: 600px;
  min-height: 61px;
  margin: 3px 0;
}
.org-node:hover {
  background: var(--pp-raised);
}
.org-node .node-copy {
  flex: 1;
  min-width: 160px;
}
.org-node .node-copy strong {
  font-size: 13px;
  font-weight: 500;
}
.org-node .node-copy small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}
.org-type {
  font-size: 10px;
  background: var(--soft);
  color: var(--brand);
  padding: 3px 7px;
  border-radius: 6px;
}
.org-node .member-button {
  font-size: 11px;
  color: var(--brand);
  min-width: 75px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.org-node .member-button .icon {
  width: 13px;
  height: 13px;
}
.grip {
  cursor: grab;
  touch-action: none;
  color: var(--muted);
  padding: 4px;
  width: 24px;
  flex: none;
}
.grip:active {
  cursor: grabbing;
}
.node-icon {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--soft);
  color: var(--brand);
  flex: none;
}
.org-node .operations {
  width: 152px;
  justify-content: flex-end;
}
.org-node[data-drop="before"]:before,
.org-node[data-drop="after"]:after {
  content: "";
  position: absolute;
  height: 3px;
  background: var(--brand);
  left: 0;
  right: 0;
  z-index: 2;
  border-radius: 3px;
}
.org-node[data-drop="before"]:before {
  top: -3px;
}
.org-node[data-drop="after"]:after {
  bottom: -3px;
}
.org-node[data-drop="inside"] {
  border: 1px dashed var(--brand);
  background: var(--soft);
}
.org-node[data-drop="invalid"] {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--pp-danger) 12%, var(--pp-surface));
}
.org-node.drag-source {
  opacity: 0.35;
}
.root-drop {
  border: 1px dashed var(--brand);
  border-radius: 9px;
  margin: 10px 0;
  padding: 14px;
  text-align: center;
  color: var(--brand);
  font-size: 12px;
}
.root-drop[data-drop="root"] {
  background: var(--soft);
  outline: 2px solid var(--brand);
}
.drag-ghost {
  position: fixed;
  z-index: 1100;
  pointer-events: none;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
  box-shadow: 0 12px 35px var(--shadow);
  font-size: 13px;
  max-width: 320px;
}
.dragging {
  user-select: none;
  cursor: grabbing;
}
.toast {
  position: fixed;
  z-index: 2000;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90%, 700px);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 20px;
  border-radius: 11px;
  box-shadow: 0 10px 35px #183b4925;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.toast.error {
  color: var(--danger);
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 16px;
  width: min(650px, calc(100vw - 32px));
  max-height: 90vh;
  box-shadow: 0 25px 90px #102c4033;
}
dialog::backdrop {
  background: var(--pp-overlay);
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  font-size: 18px;
  font-weight: 600;
}
.modal-body {
  padding: 23px 25px;
  max-height: calc(90vh - 145px);
  overflow: auto;
}
.modal-foot {
  padding: 16px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid label,
.full-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea,
.full-label textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 10px 11px;
  border-radius: 8px;
  min-height: 40px;
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
}
.form-grid textarea {
  min-height: 76px;
  resize: vertical;
}
.span-two {
  grid-column: 1/-1;
}
.form-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.option-checks {
  max-height: 150px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  background: var(--bg);
}
.option-checks label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  font-size: 11px;
}
.option-checks:disabled {
  opacity: 0.4;
}
.field-error {
  padding: 10px 13px;
  color: var(--danger);
  background: color-mix(in srgb, var(--pp-danger) 12%, var(--pp-surface));
  font-size: 12px;
  border-radius: 8px;
  margin-top: 16px;
}
.drawer {
  margin: 0 0 0 auto;
  min-height: 100vh;
  max-height: 100vh;
  width: min(540px, 100vw);
  border-radius: 17px 0 0 17px;
}
.drawer .modal-body {
  max-height: calc(100vh - 155px);
}
.detail-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.detail-hero .avatar {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 20px;
}
.detail-hero h3 {
  font-size: 19px;
}
.detail-hero p {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}
.detail-section {
  font-size: 13px;
  padding: 18px 0 9px;
  border-top: 1px solid var(--line);
  margin-top: 13px;
  font-weight: 600;
}
.detail-pair {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  padding: 10px 0;
  font-size: 12px;
}
.detail-pair > span {
  color: var(--muted);
}
.detail-pair > strong {
  font-weight: 400;
  overflow-wrap: anywhere;
}
.timeline-item {
  border-left: 1px solid var(--line);
  padding: 0 0 16px 17px;
  margin-left: 5px;
  font-size: 12px;
}
.timeline-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 10px;
}
.token {
  font:
    12px/1.6 ui-monospace,
    monospace;
  word-break: break-all;
  min-height: 100px;
  resize: none;
}
.import-preview {
  max-height: 260px;
  overflow: auto;
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.import-preview table {
  font-size: 11px;
}
.import-preview td,
.import-preview th {
  padding: 9px 11px;
}
.import-error {
  color: var(--danger);
}
.login-card {
  max-width: 400px;
  margin: 12vh auto;
  padding: 32px;
}
.login-card h1 {
  font-size: 22px;
  margin-bottom: 12px;
}
.login-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 23px;
}
.login-card label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.login-card input {
  width: 100%;
  margin: 6px 0 2px;
}
.login-card .btn {
  margin-top: 20px;
  width: 100%;
}
.back-console {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
.list-error {
  padding: 16px;
  border: 1px solid var(--danger);
  border-radius: 10px;
  color: var(--danger);
  font-size: 12px;
}
.count-text {
  font-size: 11px;
  color: var(--muted);
}
.client-scope {
  max-width: 220px;
  white-space: normal;
  font-size: 11px;
  color: var(--muted);
}
.session-mode {
  font-size: 10px;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1550px) {
  .main {
    padding: 32px 48px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    font-size: 15px;
    padding-left: 6px;
    gap: 7px;
  }
  .main {
    padding: 24px 22px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px 13px;
    gap: 10px;
  }
  .people-grid {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .stat .tile {
    width: 34px;
    height: 34px;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 10px 16px;
    gap: 12px;
    overflow: auto;
  }
  .brand {
    padding: 0;
    font-size: 14px;
    white-space: nowrap;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .side-label,
  .side-bottom {
    display: none;
  }
  .side-link {
    white-space: nowrap;
    padding: 8px 10px;
    font-size: 11px;
    gap: 6px;
  }
  .main {
    padding: 19px 18px;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .tree-card {
    position: static;
  }
  .tree {
    max-height: 200px;
    min-height: 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    max-width: 330px;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  .stat {
    padding: 13px 10px;
    gap: 6px;
  }
  .stat .tile {
    display: none;
  }
  .stat strong {
    font-size: 22px;
  }
  .tabs {
    gap: 22px;
  }
  .org-tree {
    padding: 10px;
    min-width: 0;
  }
  .topline {
    font-size: 11px;
  }
}
@media (max-width: 520px) {
  .main {
    padding: 16px 12px;
  }
  .page-heading {
    flex-direction: column;
    gap: 15px;
    margin: 22px 0;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    border-radius: 9px;
    padding: 12px 9px;
  }
  .stat span {
    font-size: 10px;
  }
  .stat strong {
    font-size: 21px;
  }
  .tabs {
    gap: 19px;
  }
  .tabs button {
    font-size: 12px;
    gap: 5px;
  }
  .topline > span {
    display: none;
  }
  .identity {
    margin-left: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-two {
    grid-column: auto;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding: 18px;
  }
  .filters .search {
    flex-basis: 100%;
  }
  .sidebar .side-link:last-of-type {
    display: none;
  }
  .pagination {
    padding: 12px 10px;
    flex-wrap: wrap;
  }
  .page-heading .actions {
    width: 100%;
  }
  .detail-pair {
    grid-template-columns: 80px 1fr;
  }
  .org-toolbar {
    padding: 15px;
    flex-wrap: wrap;
  }
}

/* OceanWatch / WMS shell and dense data components. */
.layout {
  grid-template-columns: var(--pp-sidebar-width) minmax(0, 1fr);
}
.sidebar {
  padding: 12px 10px;
  border-right: 1px solid var(--pp-hairline);
  gap: 2px;
}
.brand {
  padding: 4px 6px 16px;
  min-height: 60px;
  font-size: 15px;
  font-weight: 600;
  align-items: center;
}
.brand-mark {
  border: 1px solid var(--pp-accent);
  color: var(--pp-accent);
  border-radius: 8px;
  background: var(--pp-field);
  width: 34px;
  height: 34px;
}
.brand-copy {
  display: flex;
  flex-direction: column;
}
.brand-copy small {
  font-size: 10px;
  font-weight: 400;
  color: var(--pp-subtle);
  letter-spacing: 1.2px;
  margin-top: 2px;
}
.side-link {
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 10px;
  font-size: 13px;
}
.side-link.active {
  box-shadow: inset 2px 0 var(--pp-accent);
}
.side-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 12px 10px 7px;
}
.side-bottom {
  padding: 13px 8px 4px;
  font-size: 12px;
}
.side-bottom strong {
  font-size: 12px;
}
.main {
  max-width: none;
  padding: 20px 26px 28px;
  margin: 0 auto;
}
.topline {
  min-height: var(--pp-header-height);
  margin: -20px -26px 20px;
  padding: 0 26px;
  background: var(--pp-sidebar);
  border-bottom: 1px solid var(--pp-hairline);
  position: sticky;
  top: 0;
  z-index: 20;
  font-size: 13px;
}
.topline .icon {
  width: 16px;
  height: 16px;
}
.identity {
  font-size: 12px;
}
.identity > span:has(.icon) {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--pp-text);
}
.page-heading {
  margin: 0 0 18px;
}
.page-heading h1 {
  font-size: 24px;
  font-weight: 650;
  line-height: 1.35;
}
.page-heading p {
  font-size: 13px;
  color: var(--pp-muted);
}
.stats {
  gap: 12px;
  margin-bottom: 20px;
}
.stat {
  border-radius: 10px;
  border-color: var(--pp-border);
  padding: 17px 18px;
  background: linear-gradient(135deg, var(--pp-raised), var(--pp-surface) 85%);
  box-shadow: none;
}
.stat .tile {
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  background: var(--pp-field);
  color: var(--pp-accent);
  width: 38px;
  height: 38px;
}
.stat:nth-child(2) .tile {
  color: var(--pp-blue);
}
.stat:nth-child(3) .tile {
  color: var(--pp-success);
}
.stat span {
  font-size: 12px;
  color: var(--pp-muted);
}
.stat strong {
  font-size: 28px;
  color: var(--pp-accent);
}
.stat:nth-child(2) strong {
  color: var(--pp-blue);
}
.stat:nth-child(3) strong {
  color: var(--pp-success);
}
.stat:nth-child(4) strong {
  color: var(--pp-warning);
}
.tabs {
  gap: 24px;
  margin-bottom: 18px;
}
.tabs button {
  padding: 9px 1px 12px;
  font-size: 13px;
}
.tabs button[aria-selected="true"]:after {
  height: 2px;
}
.people-grid {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
}
.card {
  border-radius: 10px;
  border-color: var(--pp-border);
  box-shadow: none;
}
.tree-card {
  padding: 15px 10px;
}
.tree-symbol,
.node-icon {
  background: var(--pp-field);
  color: var(--pp-accent);
  border: 1px solid var(--pp-hairline);
  border-radius: 6px;
}
.tree-row {
  border-radius: 6px;
  min-height: 36px;
}
.tree-select {
  font-size: 13px;
}
.tree-select small,
.tree-count {
  font-size: 11px;
}
.tree-row.selected {
  box-shadow: inset 2px 0 var(--pp-accent);
}
.btn,
.search,
.field-control,
select,
input[type="date"],
.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea {
  border-radius: 6px;
  border-color: var(--pp-border);
  background: var(--pp-field);
}
.btn {
  font-size: 13px;
  min-height: 36px;
  padding: 7px 12px;
}
.btn.primary {
  background: var(--pp-primary);
  color: white;
  border: 1px solid var(--pp-primary);
}
.btn:not(:disabled):hover {
  filter: brightness(1.07);
  border-color: var(--pp-accent);
}
.btn.text {
  background: transparent;
}
.search input {
  font-size: 13px;
}
.filters select {
  font-size: 12px;
}
.icon-btn {
  border-radius: 6px;
  min-width: 30px;
  min-height: 30px;
}
.icon-btn:hover {
  background: var(--pp-selected);
}
.org-type,
.pill {
  font-size: 11px;
  border-radius: 5px;
  line-height: 1.5;
}
.pill:not(.gray):not(.warn) {
  color: var(--pp-success);
  background: color-mix(in srgb, var(--pp-success) 12%, var(--pp-surface));
}
.org-node {
  border-radius: 6px;
  min-height: 58px;
}
.org-node .operations {
  width: 160px;
}
.org-node .node-copy strong {
  font-size: 14px;
}
.org-node .node-copy small {
  font-size: 11px;
}
.member-button .icon {
  width: 14px;
}
.org-node .member-button {
  font-size: 12px;
}
.avatar {
  border-radius: 7px;
  background: var(--pp-selected);
  color: var(--pp-accent);
  font-size: 13px;
}
.person-name {
  font-size: 13px;
}
.table-scroll table {
  font-size: 13px;
}
th {
  font-size: 12px;
  padding: 11px 12px;
}
td {
  padding: 12px;
  border-color: var(--pp-hairline);
}
td small {
  font-size: 11px;
}
.pagination {
  font-size: 12px;
}
.pagination .btn {
  min-height: 28px;
  font-size: 12px;
}
.org-toolbar {
  padding: 15px 18px;
}
.org-toolbar h2 {
  font-size: 15px;
}
.org-toolbar p {
  font-size: 12px;
}
.org-tree {
  padding: 10px 16px 18px;
}
.org-type {
  background: var(--pp-field);
  color: var(--pp-muted);
  border: 1px solid var(--pp-border);
}
.modal-head {
  padding: 19px 22px;
}
.modal-head h2 {
  font-size: 18px;
}
.modal-body {
  padding: 22px;
}
.modal-foot {
  padding: 15px 22px;
}
dialog {
  border-radius: 12px;
  border-color: var(--pp-border);
  box-shadow: var(--pp-shadow);
}
.drawer {
  border-radius: 12px 0 0 12px;
}
.form-grid input:not([type="checkbox"]),
.form-grid select,
.form-grid textarea,
.full-label textarea {
  background: var(--pp-field);
}
.form-note,
.detail-hero p,
.detail-pair,
.filter-caption,
.count-text {
  font-size: 12px;
}
.toast {
  border-radius: 8px;
  border-color: var(--pp-border);
  box-shadow: var(--pp-shadow);
}
.option-checks {
  border-color: var(--pp-border);
  background: var(--pp-field);
  border-radius: 6px;
}
.option-checks label {
  font-size: 12px;
}
.root-drop {
  border-color: var(--pp-border);
  color: var(--pp-muted);
  font-size: 12px;
  border-radius: 6px;
}
.drag-ghost {
  box-shadow: var(--pp-shadow);
  border-radius: 8px;
}
.login-card {
  background: linear-gradient(135deg, var(--pp-raised), var(--pp-surface) 80%);
  border-color: var(--pp-border);
  position: relative;
}
.login-theme {
  position: absolute;
  right: 20px;
  top: 20px;
}
.login-card input {
  background: var(--pp-field);
}
.session-mode {
  font-size: 11px;
  color: var(--pp-warning);
  border-color: var(--pp-border);
}
@media (min-width: 1550px) {
  .main {
    padding: 20px 26px 28px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .main {
    padding: 20px;
  }
  .topline {
    margin: -20px -20px 20px;
    padding: 0 20px;
  }
  .people-grid {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .stat {
    padding: 15px 13px;
  }
  .sidebar {
    padding: 12px 9px;
  }
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    border-bottom: 1px solid var(--pp-hairline);
    border-right: 0;
    padding: 8px 12px;
  }
  .brand {
    min-height: 36px;
    padding: 0;
    font-size: 13px;
  }
  .brand-copy small {
    display: none;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .side-link {
    font-size: 12px;
    min-height: 32px;
    padding: 7px 9px;
  }
  .main {
    padding: 16px;
  }
  .topline {
    margin: -16px -16px 18px;
    padding: 0 16px;
    min-height: 56px;
    flex-wrap: wrap;
  }
  .people-grid {
    grid-template-columns: 1fr;
  }
  .stat .tile {
    display: none;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 13px 10px;
  }
  .stat strong {
    font-size: 25px;
  }
}
@media (max-width: 520px) {
  .main {
    padding: 12px 10px 24px;
  }
  .topline {
    margin: -12px -10px 18px;
    padding: 0 10px;
  }
  .topline > span {
    display: none;
  }
  .identity {
    gap: 8px;
  }
  .identity > span:has(.icon) {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .session-mode {
    font-size: 10px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading {
    margin: 0 0 16px;
    gap: 12px;
  }
  .stats {
    gap: 6px;
  }
  .stat {
    padding: 12px 9px;
  }
  .stat span {
    font-size: 11px;
  }
  .stat strong {
    font-size: 23px;
  }
  .btn {
    font-size: 12px;
    padding: 7px 10px;
  }
  .tabs {
    gap: 18px;
  }
  .tabs button {
    font-size: 12px;
  }
  .pagination .btn {
    min-height: 30px;
  }
  .org-tree {
    padding: 10px;
  }
  .modal-body,
  .modal-head,
  .modal-foot {
    padding: 17px;
  }
}
