/* DK component theme. Reference decisions and source evidence: ../DESIGN.md */
:root {
  color-scheme: dark;
  --background: #111113;
  --foreground: #f4f4f5;
  --card: #18181b;
  --popover: #1c1c20;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --border: #303034;
  --input: #3f3f46;
  --ring: #a1a1aa;
  --destructive: #f0a0a4;
  --brand: #b84c50;
  --sidebar: #151517;
  --chart-1: #8cb5e5;
  --chart-2: #87bfa9;
  --chart-3: #d7b680;
  --chart-4: #b7a4df;
  --radius: 10px;
  --radius-control: 7px;
  --bg: var(--background);
  --text: var(--foreground);
  --panel: var(--card);
  --panel2: var(--secondary);
  --line: var(--border);
  /* Legacy --muted is a foreground, unlike shadcn's surface token. */
  --muted: var(--muted-foreground);
  --blue: var(--chart-1);
  --teal: var(--chart-2);
  --amber: var(--chart-3);
  --violet: var(--chart-4);
}
body {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
}
.sidebar {
  background: var(--sidebar);
  border-color: var(--border);
  padding-top: 20px;
}
.brand {
  padding-bottom: 20px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 0.25px;
}
.portal-label,
.navlabel {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2px;
}
.portal-label {
  padding: 16px 12px 8px;
}
.navlabel {
  margin-top: 24px;
}
.navitem {
  border-radius: var(--radius-control);
  min-height: 38px;
  padding: 8px 12px;
}
.navitem:hover,
.navitem.active {
  background: var(--accent);
  color: var(--foreground);
}
.navitem.active {
  box-shadow: none;
  font-weight: 550;
}
.navitem.active .icon {
  color: #dd8588;
}
.topbar {
  background: var(--background);
  border-color: var(--border);
}
.crumb,
.subtitle,
.panel-sub,
.table-secondary,
.task-text small,
.guide-panel span,
.plain-count,
.table-foot,
.footer,
.connection-mini,
.section-toolbar p,
.group-title p,
.chart-context small {
  color: var(--muted);
}
.role-preview {
  background: var(--secondary);
  padding: 3px;
  border-radius: 8px;
}
.role-preview > span {
  padding-left: 7px;
}
.role-preview button {
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
}
.role-preview button.selected {
  background: #3b3b40;
  color: var(--foreground);
  border-color: #49494f;
  box-shadow: 0 1px 2px #0003;
}
.btn {
  background: var(--card);
  border-color: var(--input);
  border-radius: var(--radius-control);
  min-height: 36px;
  font-size: 13px;
  padding: 7px 13px;
  box-shadow: 0 1px 2px #0003;
}
.btn:hover:not(:disabled) {
  background: var(--secondary);
  border-color: #52525b;
}
.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
  font-weight: 600;
}
.btn.primary:hover:not(:disabled) {
  background: #dedee2;
  border-color: #dedee2;
}
.btn.danger {
  background: #3a2025;
  color: var(--destructive);
  border-color: #68343d;
}
.btn.danger:hover:not(:disabled) {
  background: #4c2930;
}
.iconbtn {
  border-radius: var(--radius-control);
}
.iconbtn:hover,
.textbtn:hover {
  background: var(--accent);
}
.textbtn {
  color: var(--foreground);
  border-radius: 5px;
}
.textbtn:disabled {
  color: var(--muted);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
input,
select,
textarea,
.form-field input,
.form-field select,
.toolbar input,
.toolbar select,
.search input {
  background: var(--card);
  border-color: var(--input);
  border-radius: var(--radius-control);
  font: inherit;
  color: var(--foreground);
}
input:not([type="checkbox"]):not([type="radio"]),
select {
  min-height: 36px;
}
input::placeholder {
  color: #909099;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: #dedee2;
}
.form-field,
.condition input,
.condition select {
  font-size: 13px;
}
.form-field {
  gap: 8px;
}
.demo-strip {
  color: var(--muted);
}
.demo-strip > span {
  border-radius: 5px;
}
.summary-strip > div > span,
.summary-strip small {
  color: var(--muted);
}
.summary-strip strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
.panel,
.rule-card,
.group-card {
  background: var(--card);
  border-color: var(--border);
  border-radius: var(--radius);
}
.panel-head {
  padding: 20px 20px 0;
}
.panel-body {
  padding: 20px;
}
.panel-head.list-head {
  padding-bottom: 16px;
}
.panel-sub {
  font-size: 12px;
}
.task-row {
  padding: 16px 20px;
  border-color: var(--border);
}
.task-row:hover,
tbody tr:hover {
  background: #222225;
}
.task-cta {
  color: #d4d4d8;
}
.panel-note {
  background: #161618;
  border-color: var(--border);
  color: var(--muted);
  border-radius: 0 0 var(--radius) var(--radius);
}
.guide-panel strong {
  font-size: 14px;
}
.guide-panel > a:hover strong,
.guide-panel > button:hover strong {
  color: var(--foreground);
}
th {
  background: #1e1e21;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2px;
  border-color: var(--border);
}
td {
  border-color: var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}
.table-secondary {
  font-size: 12px;
}
.type-label {
  color: #c2c2c9;
}
.badge {
  border-radius: 5px;
  font-size: 11px;
  padding: 2px 7px;
}
.badge.gray {
  border-color: var(--input);
  color: #c2c2c9;
}
.detail-tabs {
  gap: 24px;
}
.detail-tabs button {
  color: var(--muted);
}
.detail-tabs button.selected {
  color: var(--foreground);
  border-color: var(--foreground);
}
.detail-tabs span,
.avatar {
  background: var(--secondary);
  color: #d4d4d8;
  border-radius: 5px;
}
.chart text {
  fill: var(--muted);
  font-family: inherit;
}
.chart .grid {
  stroke: var(--border);
}
dialog {
  background: var(--popover);
  border-color: var(--input);
  border-radius: 12px;
  box-shadow: 0 20px 60px #0008;
}
dialog::backdrop {
  background: #0009;
  backdrop-filter: none;
}
.modal-head,
.modal-body {
  padding: 24px;
}
.modal-foot {
  background: var(--card);
  padding: 16px 24px;
}
.modal-body p {
  font-size: 13px;
}
.code {
  background: var(--background);
  color: #c2c2c9;
}
.toast {
  background: var(--popover);
  border-color: #476252;
  font-size: 13px;
  border-radius: var(--radius);
}
.toast.error {
  background: var(--popover);
  border-color: #85434b;
}
.welcome h2 {
  font-size: 26px;
  letter-spacing: -0.5px;
}
@media (max-width: 640px) {
  h1 {
    font-size: 25px;
  }
  .btn {
    min-height: 40px;
  }
  .navitem {
    min-height: 42px;
  }
  .panel-head,
  .panel-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .modal-head,
  .modal-body,
  .modal-foot {
    padding: 20px;
  }
  .form-field input:not([type="checkbox"]):not([type="radio"]),
  .form-field select {
    font-size: 16px;
  }
}

/* Workspace composition — task-first directory and contextual detail views. */
.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;
}
.layout {
  grid-template-columns: 244px minmax(0, 1fr);
}
.sidebar {
  width: 244px;
  padding: 24px 16px 16px;
  overflow-y: auto;
}
.brand {
  gap: 11px;
  padding: 0 8px 26px;
}
.brand img {
  width: 36px;
  height: 48px;
}
.brand strong {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
.brand span {
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #8e8e99;
}
.sidebar-search {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  background: #1b1b1e;
  text-align: left;
}
.sidebar-search:hover {
  border-color: #52525b;
  color: var(--text);
}
.sidebar-search .icon {
  width: 16px;
  height: 16px;
}
.sidebar-search kbd {
  margin-left: auto;
  font: 10px inherit;
  border: 1px solid #38383e;
  border-radius: 3px;
  padding: 0 4px;
  white-space: nowrap;
}
.portal-label {
  border: 0;
  padding: 26px 11px 9px;
  text-transform: none;
  font-size: 11px;
  color: #82828b;
}
.navlabel {
  text-transform: none;
  font-size: 11px;
  font-weight: 400;
  color: #82828b;
  margin-top: 26px;
  padding-bottom: 9px;
}
.navitem {
  font-size: 13px;
  min-height: 39px;
  gap: 10px;
  color: #b6b6bf;
}
.navitem.active {
  background: #29292e;
  color: #fafafa;
  box-shadow: inset 0 1px #ffffff06;
}
.navitem.active .icon {
  color: #e09a9d;
}
.sidebar-system {
  margin-top: 24px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}
.sidebar-bottom {
  padding-top: 36px;
}
.connection-mini {
  font-size: 11px;
  padding: 12px 8px 18px;
}
.connection-mini > div {
  font-size: 10px;
  margin-top: 6px;
  color: #7d7d88;
}
.account {
  border-radius: 0;
  padding: 17px 4px 0;
}
.account strong {
  font-size: 12px;
}
.account small {
  font-size: 11px;
}
.topbar {
  height: 60px;
  padding: 0 32px;
  background: #141416;
}
.crumb {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}
.crumb .icon {
  width: 12px;
  height: 12px;
  color: #666670;
}
.crumb > a:last-child,
.crumb > span {
  color: #d4d4dc;
}
.crumb > span {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-preview {
  background: transparent;
  border: 1px solid var(--border);
}
.role-preview button {
  font-size: 11px;
  padding: 4px 9px;
}
.role-preview > span {
  font-size: 10px;
  margin-right: 3px;
}
main {
  padding: 32px;
  max-width: 1680px;
  margin: 0 auto;
}
.page-heading {
  margin-bottom: 20px;
  gap: 20px;
  align-items: center;
}
.page-eyebrow {
  color: #94949f;
  font-size: 11px;
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}
h1 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -0.9px;
}
.subtitle {
  margin-top: 9px;
  line-height: 1.6;
}
.demo-strip {
  border: 1px solid #39342b;
  background: #211e1880;
  padding: 9px 12px;
  margin-bottom: 24px;
  border-radius: 7px;
  font-size: 11px;
  color: #bab4a8;
  gap: 9px;
}
.demo-strip > span {
  border: 0;
  padding: 0;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.6px;
}
.btn {
  gap: 7px;
  min-height: 36px;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn.primary {
  box-shadow:
    inset 0 1px #fff,
    0 1px 2px #0004;
}
.panel {
  border-radius: 12px;
  background: #18181b;
  box-shadow: 0 2px 4px #0000000a;
  overflow: hidden;
}
.panel-head h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.15px;
}
.panel-sub {
  font-size: 12px;
  line-height: 1.5;
}
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 24px;
}
.overview-metrics > * {
  padding: 20px 24px;
  position: relative;
  text-align: left;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.overview-metrics > *:last-child {
  border-right: 0;
}
.overview-metrics > *:hover {
  background: #ffffff03;
}
.overview-metrics span {
  font-size: 12px;
  color: #b0b0bb;
  display: block;
  padding-right: 22px;
}
.overview-metrics strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}
.overview-metrics small {
  display: block;
  font-size: 11px;
  color: #91919d;
  line-height: 1.5;
}
.overview-metrics > * > .icon {
  position: absolute;
  top: 21px;
  right: 22px;
  color: #74747f;
  width: 17px;
  height: 17px;
}
.overview-main,
.overview-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.trend-panel .panel-head {
  align-items: flex-start;
  gap: 12px;
}
.trend-panel .chart {
  height: 200px;
  margin-top: 10px;
}
.chart-context strong {
  font-size: 27px;
}
.chart-context {
  margin-bottom: 12px;
}
.chart-context small {
  margin-left: 7px;
}
.chart .grid {
  stroke: #323238;
  opacity: 0.6;
  stroke-dasharray: 3 4;
}
.chart-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #777783;
  font-size: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.chart-footer .legend {
  gap: 16px;
  font-size: 11px;
  margin: 0;
}
.segmented {
  background: #222226;
  border: 1px solid #303036;
  border-radius: 7px;
  padding: 3px;
  display: flex;
  flex-shrink: 0;
}
.segmented button {
  color: #9898a5;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
}
.segmented button.selected {
  background: #3b3b42;
  color: #fafafa;
  box-shadow: 0 1px 3px #0003;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-icon {
  display: inline-grid;
  place-items: center;
  background: #242429;
  border: 1px solid #34343b;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  color: #a5a5b3;
  flex-shrink: 0;
}
.section-icon .icon {
  width: 17px;
  height: 17px;
}
.section-icon.warning {
  color: #d7b680;
  background: #302a20;
  border-color: #463c2b;
}
.review-panel {
  display: flex;
  flex-direction: column;
}
.review-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: left;
  border-top: 1px solid var(--border);
}
.review-item:hover {
  background: #ffffff03;
}
.review-item strong {
  display: block;
  font-weight: 500;
  font-size: 13px;
}
.review-item small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #c4a97a;
}
.review-item > .icon {
  width: 16px;
  height: 16px;
  color: #777783;
}
.review-foot {
  padding: 16px 20px;
  margin-top: auto;
  background: #151518;
  border-top: 1px solid var(--border);
}
.review-foot p {
  color: #8e8e9a;
  font-size: 11px;
  margin-bottom: 12px;
  line-height: 1.6;
}
.review-foot .textbtn {
  font-size: 12px;
}
.empty.compact {
  padding: 30px 20px;
}
.next-steps > a,
.next-steps > button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  text-align: left;
  width: 100%;
}
.next-steps > a:hover,
.next-steps > button:hover {
  background: #ffffff03;
}
.next-steps > a > .icon,
.next-steps > button > .icon {
  margin-left: auto;
  width: 14px;
  color: #74747f;
}
.next-steps strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.next-steps small {
  display: block;
  color: #8e8e9a;
  font-size: 11px;
  margin-top: 4px;
}
.distribution {
  border-top: 1px solid var(--border);
  padding: 18px 20px;
  margin-top: 5px;
}
.distribution h3 {
  color: #91919f;
  font-size: 11px;
  margin-bottom: 12px;
  font-weight: 500;
}
.distribution > div {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  color: #b0b0bc;
}
.distribution strong {
  font-size: 12px;
  display: flex;
  gap: 16px;
  font-variant-numeric: tabular-nums;
}
.distribution small {
  font-size: 11px;
  margin: 0;
  min-width: 34px;
  text-align: right;
}
.directory-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  margin: 4px 0 20px;
  overflow-x: auto;
}
.directory-tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 14px;
  border-bottom: 2px solid transparent;
  color: #9898a5;
  white-space: nowrap;
  font-size: 13px;
}
.directory-tabs button.selected {
  color: #f4f4f5;
  border-color: #f4f4f5;
}
.directory-tabs button span {
  border: 1px solid #38383e;
  background: #202024;
  border-radius: 5px;
  padding: 0 6px;
  font-size: 10px;
  color: #a1a1ad;
}
.directory-tabs button.selected span {
  color: #e4e4e7;
  background: #333339;
}
.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
}
.directory-toolbar .search {
  max-width: 410px;
  flex: 1;
  min-width: 170px;
}
.directory-controls {
  display: flex;
  gap: 8px;
}
.directory-toolbar input,
.directory-toolbar select,
.member-toolbar input {
  min-height: 36px;
  height: 36px;
  font-size: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
  background: #202023;
}
.search .icon {
  width: 16px;
  height: 16px;
  top: 10px;
  left: 11px;
  color: #8b8b97;
}
.search input {
  padding-left: 34px;
  width: 100%;
}
.active-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 14px;
  gap: 12px;
  color: #9e9eaa;
  font-size: 12px;
}
.active-filters .textbtn {
  font-size: 11px;
}
.directory-name {
  display: flex;
  gap: 12px;
  align-items: center;
}
.directory-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #374256;
  color: #91b4df;
  background: #202935;
  border-radius: 8px;
}
.directory-icon.entra {
  background: #2b2436;
  border-color: #443752;
  color: #b5a0d7;
}
.directory-icon.assigned {
  background: #202e29;
  border-color: #35483f;
  color: #94bca7;
}
.directory-icon.readonly {
  background: #29282a;
  color: #b0b0b8;
  border-color: #3b3b40;
}
.directory-icon .icon {
  width: 17px;
  height: 17px;
}
.name-link {
  padding: 0;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
}
.name-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.table-secondary {
  color: #8e8e9c;
  font-size: 11px;
}
.method-name {
  font-size: 12px;
  color: #d2d2da;
}
.directory-table th {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  background: #1f1f23;
  height: 42px;
}
.directory-table td {
  height: 77px;
  padding: 14px 20px;
}
.number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.directory-table .number {
  padding-right: 28px;
}
.directory-table td:last-child {
  width: 52px;
  padding-left: 0;
}
.badge {
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge:not(.gray):not(.amber):not(.red):not(.blue):not(.violet) {
  color: #9bcab0;
  background: #26372c60;
  border-color: #354c3d;
}
.badge.red {
  color: #e0a5ab;
  background: #3b252980;
  border-color: #654047;
}
.pagination {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  background: #161619;
  font-size: 11px;
}
.pagination > div {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pagination > div > span {
  margin-right: 10px;
  color: #91919e;
}
.pagination .iconbtn {
  width: 28px;
  height: 28px;
  border: 1px solid #38383f;
  background: #202024;
  border-radius: 6px;
}
.pagination .icon {
  width: 14px;
  height: 14px;
}
.flip {
  display: flex;
  transform: rotate(180deg);
}
.directory-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 2px;
  max-width: 720px;
  color: #8e8e9c;
  font-size: 12px;
  line-height: 1.7;
}
.directory-hint > .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
}
.directory-hint strong {
  font-weight: 500;
  color: #b9b9c4;
}
.detail-back {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #a5a5b1;
  padding: 0;
  margin-bottom: 13px;
}
.detail-back .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}
.group-facts {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 24px;
  font-size: 12px;
  color: #9b9ba7;
}
.group-facts strong {
  color: #dfdfe5;
  font-weight: 500;
}
.fact-chip {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #3b3b43;
  border-radius: 6px;
  background: #202024;
  padding: 5px 9px;
  color: #c5c5d0;
}
.fact-chip .icon {
  width: 14px;
  height: 14px;
}
.group-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  align-items: start;
}
.members-panel .detail-tabs {
  margin: 0;
  padding: 0 20px;
  gap: 24px;
}
.detail-tabs button {
  padding: 16px 0;
  font-size: 12px;
}
.member-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}
.member-toolbar .search {
  max-width: 340px;
  flex: 1;
}
.member-toolbar > span {
  white-space: nowrap;
  color: #8e8e9c;
  font-size: 11px;
}
.person strong {
  font-size: 13px;
  font-weight: 500;
}
.person small {
  color: #8e8e9c;
  font-size: 11px;
}
.avatar.round {
  border-radius: 50%;
  background: #2b2b32;
  color: #b8b8c7;
  width: 32px;
  height: 32px;
}
.members-panel td {
  height: 68px;
}
.remove-link {
  color: #a9a9b6;
  font-size: 11px;
}
.remove-link:hover {
  color: #eda4ab;
}
.group-context .panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.group-context .panel-head h2 {
  font-size: 14px;
}
.group-context .panel-body > p {
  color: #a0a0ad;
  font-size: 12px;
  line-height: 1.75;
}
.group-context .btn {
  width: 100%;
  margin-top: 20px;
  font-size: 12px;
}
.rule-summary {
  border: 1px solid #333339;
  background: #141417;
  border-radius: 8px;
  margin-top: 20px;
  overflow: hidden;
}
.rule-summary > span {
  display: block;
  padding: 10px 12px;
  color: #9696a3;
  font-size: 10px;
  border-bottom: 1px solid #333339;
}
.rule-summary > div {
  padding: 12px;
}
.rule-summary > div + div {
  border-top: 1px dashed #303036;
}
.rule-summary small {
  display: block;
  font-size: 11px;
  color: #8f8f9b;
  margin-bottom: 5px;
}
.rule-summary strong {
  font-size: 12px;
  font-weight: 500;
  color: #d2d2dc;
  word-break: break-word;
}
.context-hint {
  margin-top: 16px;
}
.native-rule {
  margin-top: 20px;
  font-size: 11px;
  color: #8e8e9c;
}
.native-rule summary {
  cursor: pointer;
}
.native-rule pre {
  margin-top: 12px;
  font-size: 10px;
}
.context-foot {
  display: flex;
  gap: 10px;
  padding: 20px 4px;
  color: #7f7f8c;
}
.context-foot > .icon {
  width: 16px;
  margin-top: 1px;
}
.context-foot strong {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: #b2b2c0;
}
.context-foot span {
  font-size: 11px;
  display: block;
  margin-top: 5px;
}
.context-foot p {
  font-size: 11px;
  line-height: 1.6;
  margin-top: 8px;
}
.context-rights {
  padding: 0 4px;
}
.comparison-note {
  display: flex;
  gap: 9px;
  padding: 16px 20px;
  color: #a6a6b3;
  font-size: 12px;
  line-height: 1.6;
  background: #202024;
}
.comparison-note .icon {
  width: 16px;
  flex-shrink: 0;
}
.object-note {
  padding: 0 20px 16px;
  font-size: 11px;
  color: #9b9ba7;
}
.employee-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 28px 0;
  gap: 20px;
}
.employee-intro h2 {
  font-size: 22px;
  letter-spacing: -0.5px;
}
.employee-intro p {
  color: #9b9ba9;
  font-size: 13px;
  margin-top: 8px;
}
.access-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #9696a3;
}
.access-indicator .icon {
  width: 15px;
}
.module-entry {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #1d1d22;
  border: 1px solid #3b3b44;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 28px;
}
.module-entry:hover {
  border-color: #646473;
  background: #222228;
}
.module-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  color: #c2b1df;
  background: #302a3c;
  border: 1px solid #494057;
  border-radius: 14px;
  flex-shrink: 0;
}
.module-icon .icon {
  width: 27px;
  height: 27px;
}
.module-entry h2 {
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.module-entry p {
  color: #a6a6b5;
  font-size: 13px;
}
.module-entry .btn {
  margin-left: auto;
  white-space: nowrap;
}
.module-count {
  display: inline-block;
  margin-top: 14px;
  color: #bdbdca;
  font-size: 11px;
}
.employee-help-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #8f8f9e;
  margin: 22px 0;
}
.employee-help-line .icon {
  width: 16px;
}
.command-search {
  margin-bottom: 14px;
}
.command-search input {
  min-height: 42px;
  font-size: 14px;
}
.command-search .icon {
  top: 13px;
}
#command-results {
  max-height: 45vh;
  overflow-y: auto;
}
.command-label {
  font-size: 10px !important;
  margin: 17px 8px 6px !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.command-result {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 12px 10px;
  border-radius: 7px;
}
.command-result:hover,
.command-result:focus-visible {
  background: #303038;
}
.command-result > .icon {
  width: 16px;
  height: 16px;
  color: #9d9dab;
}
.command-result > .icon:last-child {
  margin-left: auto;
}
.command-result strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.command-result small {
  display: block;
  font-size: 11px;
  color: #8e8e9c;
  margin-top: 3px;
}
.command-hint {
  font-size: 10px !important;
  color: #858594 !important;
  margin: 15px 0 0 !important;
  border-top: 1px solid var(--border);
  padding-top: 13px;
}
.type-choices {
  border: 0;
  padding: 0;
  margin: 24px 0;
}
.type-choices legend {
  font-size: 13px;
  margin-bottom: 10px;
}
.type-choices > label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #3b3b43;
  border-radius: 8px;
  padding: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #19191d;
}
.type-choices > label:has(input:checked) {
  border-color: #8c8c9b;
  background: #292930;
}
.type-choices input {
  margin: 3px 0 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.type-choices strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
}
.type-choices small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: #9e9eae;
}
.field-hint {
  font-size: 11px !important;
  color: #9292a2;
  line-height: 1.6;
}
.creation-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin: 0 0 12px;
  background: #202025;
}
.creation-note > .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: #a7a7b9;
}
.creation-note p {
  margin: 0;
  font-size: 11px;
}
.nav-scrim {
  display: none;
}
.sidebar-close {
  display: none;
}
.directory-tabs {
  scrollbar-width: thin;
  scrollbar-color: #45454f transparent;
}
.notice.neutral,
.rule-pill,
.technical-details,
.preview-counts div {
  background: #222227;
  border-color: #3b3b43;
  color: #c6c6d1;
}
.login-story {
  background: var(--card);
}
.footer {
  margin-top: 30px;
  font-size: 10px;
  color: #777785;
}
@media (min-width: 1700px) {
  main {
    padding: 40px;
  }
  .trend-panel .chart {
    height: 225px;
  }
}
@media (max-width: 1250px) {
  .layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .sidebar {
    width: 220px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand strong {
    font-size: 15px;
  }
  .brand span {
    font-size: 8px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .overview-main,
  .overview-bottom {
    grid-template-columns: minmax(0, 1.4fr) minmax(275px, 1fr);
    gap: 18px;
  }
  .overview-metrics > * {
    padding: 18px;
  }
  .overview-metrics small {
    font-size: 10px;
  }
  .group-workspace {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 18px;
  }
  .directory-table td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .directory-icon {
    display: none;
  }
}
@media (max-width: 1050px) {
  .overview-main,
  .overview-bottom {
    grid-template-columns: 1fr;
  }
  .group-workspace {
    grid-template-columns: 1fr;
  }
  .group-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
  }
  .directory-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }
  .directory-toolbar .search {
    max-width: none;
  }
  .overview-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-metrics > *:nth-child(2) {
    border-right: 0;
  }
  .overview-metrics > *:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }
  .page-heading {
    align-items: flex-start;
  }
}
@media (max-width: 760px) and (min-width: 641px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    width: 190px;
  }
  .brand img {
    width: 30px;
  }
  .brand strong {
    font-size: 13px;
  }
  .brand span {
    font-size: 7px;
  }
  .sidebar-search kbd {
    display: none;
  }
  .navitem {
    font-size: 12px;
    padding-left: 9px;
  }
  .group-context {
    display: block;
  }
  .directory-tabs {
    gap: 16px;
  }
  .directory-controls {
    width: 100%;
  }
  .directory-controls label {
    flex: 1;
  }
  .directory-controls select {
    width: 100%;
  }
  .module-entry {
    flex-wrap: wrap;
    padding: 20px;
  }
  .access-indicator {
    display: none;
  }
}
@media (max-width: 640px) {
  .layout {
    display: block;
  }
  .sidebar {
    width: 244px;
    z-index: 40;
    visibility: hidden;
  }
  .sidebar.open {
    visibility: visible;
  }
  .sidebar-close {
    display: grid;
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
  }
  .sidebar.open + .nav-scrim.visible {
    display: block;
    position: fixed;
    inset: 0;
    left: 244px;
    background: #0009;
    z-index: 30;
  }
  main {
    padding: 24px 16px;
  }
  .topbar {
    padding: 0 16px;
    height: 56px;
  }
  .crumb {
    display: none;
  }
  .role-preview > span {
    display: none;
  }
  .role-preview button {
    min-height: 30px;
  }
  .page-heading {
    flex-direction: column;
    gap: 18px;
  }
  h1 {
    font-size: 26px;
  }
  .subtitle {
    font-size: 12px;
  }
  .page-heading .actions {
    width: 100%;
    gap: 8px;
  }
  .page-heading .btn {
    font-size: 12px;
    min-height: 40px;
  }
  .page-eyebrow {
    font-size: 10px;
  }
  .demo-strip {
    font-size: 10px;
    padding: 9px 10px;
    margin-bottom: 20px;
  }
  .overview-metrics {
    margin-bottom: 20px;
  }
  .overview-metrics > * {
    padding: 16px;
  }
  .overview-metrics span {
    font-size: 11px;
  }
  .overview-metrics > * > .icon {
    top: 16px;
    right: 14px;
    width: 14px;
  }
  .overview-metrics strong {
    font-size: 28px;
    margin: 10px 0 5px;
  }
  .overview-metrics small {
    font-size: 10px;
  }
  .overview-main,
  .overview-bottom {
    gap: 20px;
    margin-bottom: 20px;
  }
  .trend-panel .panel-head {
    flex-direction: column;
    gap: 14px;
  }
  .trend-panel .chart {
    height: 175px;
  }
  .chart-footer {
    flex-direction: column;
    gap: 8px;
  }
  .chart-context strong {
    font-size: 24px;
  }
  .chart-context > span {
    font-size: 11px;
  }
  .chart-context small {
    display: block;
    text-align: right;
  }
  .directory-tabs {
    gap: 20px;
    margin-bottom: 16px;
  }
  .directory-tabs button {
    font-size: 12px;
    padding-bottom: 12px;
  }
  .directory-toolbar {
    display: block;
    padding: 16px;
  }
  .directory-controls {
    display: flex;
    margin-top: 12px;
    gap: 8px;
  }
  .directory-controls label {
    width: 50%;
  }
  .directory-controls select {
    width: 100%;
    font-size: 11px;
    padding-left: 8px;
  }
  .directory-toolbar input,
  .member-toolbar input {
    min-height: 40px;
    font-size: 16px;
  }
  .directory-toolbar input::placeholder,
  .member-toolbar input::placeholder {
    font-size: 12px;
  }
  .directory-toolbar .search .icon,
  .member-toolbar .search .icon {
    top: 12px;
  }
  .active-filters {
    padding: 0 16px 14px;
    font-size: 11px;
  }
  .directory-table table,
  .directory-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
  .directory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .directory-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    padding: 15px 16px;
    gap: 10px 16px;
    border-top: 1px solid var(--border);
  }
  .directory-table td {
    display: block;
    height: auto;
    padding: 0;
    border: 0;
    font-size: 12px;
  }
  .directory-table td:first-child {
    grid-column: 1/-1;
    padding-right: 30px;
  }
  .directory-table td:nth-last-child(2) {
    grid-column: 1/-1;
  }
  .directory-table td:last-child {
    position: absolute;
    top: 17px;
    right: 12px;
    width: auto;
    padding: 0;
  }
  .directory-table .number {
    text-align: right;
    padding: 0;
  }
  .directory-table td.number::before {
    content: "Mitglieder: ";
    color: var(--muted);
    font-size: 11px;
  }
  .directory-table .table-secondary {
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .directory-icon {
    display: grid;
    width: 32px;
    height: 32px;
  }
  .directory-name {
    gap: 10px;
  }
  .directory-name > div {
    min-width: 0;
  }
  .directory-table .rights-label {
    white-space: normal;
    font-size: 11px;
  }
  .pagination {
    padding: 12px 16px;
    gap: 12px;
  }
  .pagination > div > span {
    display: none;
  }
  .pagination .iconbtn {
    width: 34px;
    height: 34px;
  }
  .group-facts {
    gap: 10px 16px;
    font-size: 11px;
  }
  .group-facts > span:last-child {
    width: 100%;
  }
  .group-context {
    display: block;
  }
  .member-toolbar {
    padding: 16px;
  }
  .member-toolbar > span {
    display: none;
  }
  .members-panel .detail-tabs {
    padding: 0 16px;
    gap: 20px;
  }
  .detail-tabs button {
    font-size: 12px;
  }
  .members-panel table {
    min-width: 410px;
  }
  .person small {
    font-size: 11px;
  }
  .members-panel td {
    padding: 12px 16px;
  }
  .employee-intro {
    margin: 22px 0;
  }
  .employee-intro h2 {
    font-size: 21px;
  }
  .access-indicator {
    display: none;
  }
  .module-entry {
    padding: 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .module-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .module-entry > div {
    flex: 1;
    min-width: 180px;
  }
  .module-entry .btn {
    width: 100%;
    margin: 2px 0 0;
  }
  .module-entry p {
    font-size: 12px;
  }
  .module-entry h2 {
    font-size: 18px;
  }
  .employee-help-line {
    align-items: flex-start;
    line-height: 1.6;
    font-size: 11px;
  }
  .footer {
    gap: 6px;
    font-size: 9px;
  }
  .command-hint {
    line-height: 1.7;
  }
}

/* Shared workspace: tools are independent of the administrative overview. */
.workspace-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.workspace-welcome h2 {
  font-size: 32px;
  letter-spacing: -0.8px;
  margin: 8px 0;
}
.workspace-welcome p,
.workspace-section-heading p,
.workspace-admin p {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 6px;
}
.workspace-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.workspace-tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 960px;
}
.workspace-tool {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  min-width: 0;
  max-width: 600px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.workspace-tool:hover {
  background: var(--popover);
  border-color: var(--input);
}
.workspace-tool-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted-foreground);
}
.workspace-tool-top .section-icon {
  color: var(--blue);
  background: var(--secondary);
  border: 1px solid var(--border);
}
.workspace-tool h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 9px;
}
.workspace-tool p {
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
  max-width: 350px;
  margin-bottom: 24px;
}
.workspace-tool-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
  font-size: 12px;
  color: var(--muted-foreground);
}
.workspace-tool-footer strong {
  color: var(--foreground);
  font-weight: 500;
}
.workspace-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.workspace-admin h2 {
  margin-top: 8px;
}
.workspace-admin > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.workspace-admin a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  font-size: 12px;
}
.workspace-admin a:hover {
  background: var(--accent);
}
.workspace-admin a .icon {
  width: 16px;
}
@media (max-width: 1100px) {
  .workspace-admin {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 640px) {
  .workspace-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0;
    margin-bottom: 24px;
  }
  .workspace-welcome h2 {
    font-size: 27px;
  }
  .workspace-tools {
    grid-template-columns: 1fr;
  }
  .workspace-tool {
    padding: 20px;
    max-width: none;
  }
  .workspace-admin {
    padding: 20px;
    margin-top: 28px;
  }
  .workspace-admin > div:last-child {
    width: 100%;
    flex-direction: column;
  }
  .workspace-admin a .icon:last-child {
    margin-left: auto;
  }
}
