﻿.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  background: var(--panel);
  color: var(--text);
}
.button .icon {
  width: 16px;
  height: 16px;
}
.button:hover:not(:disabled) {
  background: var(--hover);
  border-color: var(--faint);
}
.button-primary {
  background: var(--accent-fill);
  border-color: var(--accent-fill);
  color: var(--accent-ink);
}
.button-primary:hover:not(:disabled) {
  background: var(--accent);
  border-color: var(--accent);
}
.button-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  padding: 6px;
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.icon-button:hover {
  background: var(--hover);
  color: var(--text);
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 23px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 21px;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.panel-heading > .icon {
  color: var(--faint);
  width: 19px;
  height: 19px;
}
.text-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.text-link .icon {
  width: 14px;
  height: 14px;
}
.text-link:hover {
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  border-radius: 5px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--hover);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-violet {
  color: var(--accent);
  background: var(--violet-bg);
  border-color: transparent;
}
.badge-blue {
  color: var(--blue);
  background: var(--blue-bg);
  border-color: transparent;
}
.badge-teal {
  color: var(--teal);
  background: var(--teal-bg);
  border-color: transparent;
}
.badge-amber {
  color: var(--amber);
  background: var(--amber-bg);
  border-color: transparent;
}
.badge-rose {
  color: var(--rose);
  background: var(--rose-bg);
  border-color: transparent;
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.icon-tile .icon {
  width: 18px;
  height: 18px;
}
.icon-tile-lg {
  width: 45px;
  height: 45px;
  border-radius: 12px;
}
.icon-tile-lg .icon {
  width: 22px;
  height: 22px;
}
.icon-tile-xl {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}
.icon-tile-xl .icon {
  width: 29px;
  height: 29px;
}
.tone-violet {
  color: var(--accent);
  background: var(--violet-bg);
}
.tone-blue {
  color: var(--blue);
  background: var(--blue-bg);
}
.tone-teal {
  color: var(--teal);
  background: var(--teal-bg);
}
.tone-amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.tone-rose {
  color: var(--rose);
  background: var(--rose-bg);
}
.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--faint);
}
.dot.violet {
  background: var(--accent);
}
.dot.blue {
  background: var(--blue);
}
.dot.teal {
  background: var(--teal);
}
.dot.amber {
  background: var(--amber);
}
.empty-state {
  text-align: center;
  padding: 53px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--panel-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--faint);
  margin-bottom: 17px;
  box-shadow: 0 4px 12px #00000008;
}
.empty-icon .icon {
  width: 22px;
  height: 22px;
}
.empty-state h3 {
  font-weight: 550;
  font-size: 15px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  max-width: 400px;
  margin-top: 8px;
}
.empty-state > .button {
  margin-top: 22px;
}
.empty-compact {
  padding: 22px 14px;
}
.empty-compact .empty-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 13px;
  border-radius: 11px;
}
.empty-compact h3 {
  font-size: 13px;
}
.empty-compact p {
  font-size: 12px;
  max-width: 290px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 23px;
}
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.kpi-top > span:first-child {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.kpi-value {
  font-size: 33px;
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 600;
  margin: 12px 0 10px;
}
.kpi-foot {
  font-size: 11px;
  color: var(--faint);
  line-height: 1.5;
}
.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 17px 18px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}
.notice > .icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: 1px;
}
.notice strong {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
  font-size: 13px;
}
.notice p {
  line-height: 1.75;
}
.notice-violet {
  background: var(--violet-bg);
  border-color: transparent;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin: 24px 0 20px;
}
.search-field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  width: min(380px, 100%);
}
.search-field .icon {
  color: var(--faint);
  width: 17px;
  height: 17px;
}
.search-field input {
  background: transparent;
  border: 0;
  width: 100%;
  padding: 11px 0;
  font-size: 12px;
}
.search-field:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.search-field input:focus-visible {
  outline: none;
}
.filter-controls {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.filter-controls select {
  font-size: 12px;
  min-height: 40px;
  padding: 9px 30px 9px 12px;
  background: var(--panel);
}
.filter-feedback {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0;
  overflow-x: auto;
}
.tabs a,
.tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  padding: 10px 0 13px;
  color: var(--muted);
  font-size: 13px;
}
.tabs a.active,
.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tabs a:hover,
.tabs button:hover {
  color: var(--text);
}
.segmented {
  display: inline-flex;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 4px;
  border-radius: 9px;
  gap: 3px;
}
.segmented a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 6px;
}
.segmented .icon {
  width: 15px;
  height: 15px;
}
.segmented a.active {
  background: var(--hover);
  color: var(--text);
  box-shadow: 0 2px 3px #0000000a;
}
.view-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.table-wrap {
  overflow: auto;
  border-radius: var(--radius);
  scrollbar-width: thin;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.table-wrap th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel-raised);
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
}
.table-wrap td {
  padding: 25px;
  color: var(--muted);
}
.panel-table {
  padding: 0;
}
.table-wrap .empty-state {
  white-space: normal;
  padding: 70px 20px;
}
.chip {
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  color: var(--muted);
}
.chip.active {
  background: var(--violet-bg);
  border-color: var(--accent);
  color: var(--accent);
}
.supporting-note {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.75;
  margin-top: 20px;
}
.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 22px;
}
.back-link .icon {
  width: 14px;
  height: 14px;
}
.back-link:hover {
  color: var(--accent);
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.inline-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-grid label {
  margin: 0;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 70;
  background: var(--panel-raised);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-dialog);
  padding: 17px 21px;
  max-width: min(440px, calc(100vw - 32px));
  font-size: 13px;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 0;
  box-shadow: var(--shadow-dialog);
}
dialog::backdrop {
  background: #070812ad;
  backdrop-filter: blur(3px);
}
.detail-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 520px;
  max-width: calc(100vw - 16px);
  margin: 0;
  border-width: 0 0 0 1px;
  border-radius: 0;
  overflow-y: auto;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 29px 28px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 7px;
}
.dialog-heading h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.dialog-content {
  padding: 26px 28px;
}
.dialog-content > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 22px;
}
.dialog-content > h3 {
  margin: 22px 0 10px;
}
.dialog-content form > label,
.dialog-content > label {
  margin: 0 0 18px;
}
.dialog-content form .form-grid {
  margin-bottom: 18px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.dialog-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.dialog-note .icon {
  width: 17px;
  height: 17px;
}
.detail-list {
  margin: 22px 0;
  display: grid;
  gap: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12px;
}
.detail-list dt {
  color: var(--muted);
}
.detail-list dd {
  margin: 0;
  text-align: right;
  max-width: 55%;
}
.detail-subheading {
  margin-top: 24px;
}
.command-dialog {
  width: 600px;
  max-width: calc(100vw - 32px);
  border-radius: 14px;
  max-height: 75dvh;
  margin: 14vh auto auto;
}
.command-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.command-heading > .icon {
  color: var(--muted);
}
.command-heading input {
  border: 0;
  background: transparent;
  padding: 4px 0;
  flex: 1;
  min-width: 0;
}
.command-heading input:focus-visible {
  outline: none;
}
.key-button {
  font-size: 10px;
  border: 1px solid var(--line);
  background: var(--hover);
  padding: 4px 6px;
  color: var(--muted);
  border-radius: 5px;
}
.command-caption {
  font-size: 11px;
  color: var(--faint);
  padding: 15px 21px 8px;
}
#command-results {
  padding: 0 10px 12px;
  max-height: 55dvh;
  overflow: auto;
}
.command-result {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  padding: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  border-radius: 7px;
  font-size: 13px;
}
.command-result > .icon:first-child {
  color: var(--muted);
  width: 18px;
  height: 18px;
}
.command-result > .icon:last-child,
.command-result small {
  margin-left: auto;
  color: var(--faint);
  font-size: 11px;
}
.command-result:hover,
.command-result:focus {
  background: var(--hover);
}
.command-result:focus-visible {
  outline-offset: -2px;
}
.mobile-menu {
  max-width: 320px;
  width: calc(100vw - 40px);
  height: 100dvh;
  max-height: 100dvh;
  inset: 0 auto 0 0;
  margin: 0;
  padding: 22px 15px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}
.mobile-menu-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.mobile-menu .primary-nav {
  max-height: calc(100dvh - 180px);
  overflow: auto;
}
.mobile-menu .sidebar-coordinator {
  margin-top: 22px;
  font-size: 12px;
}
.mobile-menu .brand strong {
  font-size: 14px;
}
.mobile-menu .brand {
  gap: 8px;
  padding: 0;
}
.mobile-menu .brand > svg {
  width: 30px;
  height: 30px;
}
