:root {
  --shell-bg: #f4f5f1;
  --shell-panel: #fffef9;
  --shell-border: #d6ddd5;
  --shell-text: #1c2430;
  --shell-muted: #66737a;
  --shell-soft: #edf2ee;
  --shell-soft-strong: #e5ece7;
  --shell-teal: #0f766e;
  --shell-aqua: #14b8a6;
  --shell-blue: #134a7c;
  --shell-blue-soft: #eaf2fb;
  --shell-danger: #b94b52;
  --shell-backdrop: rgba(19, 23, 29, 0.42);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 115, 122, 0.35) rgba(214, 221, 213, 0.55);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-button {
  width: 0;
  height: 0;
  display: none;
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-track {
  background: rgba(214, 221, 213, 0.55);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(102, 115, 122, 0.35);
  border-radius: 999px;
  border: 2px solid rgba(214, 221, 213, 0.55);
}

body {
  color: var(--shell-text);
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.1), transparent 26%),
    radial-gradient(circle at top right, rgba(19, 74, 124, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfcfa 0%, #f2f4ef 100%);
}

body.modal-open {
  overflow: hidden;
}

html.modal-open {
  overflow: hidden;
}

.app-shell {
  min-height: 100vh;
  transition: padding-left 180ms ease;
}

@media (min-width: 1024px) {
  .app-shell {
    padding-left: 64px;
  }
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 40;
  width: 64px;
  overflow: hidden;
  border-right: 1px solid rgba(214, 221, 213, 0.95);
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(16px);
  transition: width 180ms ease;
}

.app-sidebar:hover {
  width: 250px;
}

.app-sidebar-inner {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 22px;
  padding: 16px 10px;
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px;
}

.app-sidebar-brand-mark {
  display: flex;
  height: 40px;
  width: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.app-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.app-brand-logo-lg {
  width: 56px;
  height: 56px;
}

.app-sidebar-kicker,
.app-sidebar-heading,
.app-sidebar-item-label {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.app-sidebar:hover .app-sidebar-kicker,
.app-sidebar:hover .app-sidebar-heading,
.app-sidebar:hover .app-sidebar-item-label {
  opacity: 1;
  transform: translateX(0);
}

.app-sidebar-kicker {
  color: var(--shell-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-sidebar-heading {
  color: var(--shell-text);
  font-size: 0.98rem;
  font-weight: 600;
}

.app-sidebar-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
}

.app-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 11px 12px;
  color: var(--shell-muted);
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.app-sidebar-item:hover {
  background: rgba(19, 74, 124, 0.08);
  color: var(--shell-blue);
}

.app-sidebar-item[data-active="true"] {
  background: var(--shell-blue-soft);
  color: var(--shell-blue);
}

.app-sidebar-icon {
  display: inline-flex;
  height: 20px;
  width: 20px;
  min-width: 20px;
  align-items: center;
  justify-content: center;
}

.app-sidebar-icon svg {
  height: 20px;
  width: 20px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(214, 221, 213, 0.88);
  background: rgba(255, 254, 249, 0.86);
  backdrop-filter: blur(16px);
}

.app-topbar-main {
  margin: 0 auto;
  display: flex;
  max-width: 1760px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.app-topbar-context {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.app-context-copy {
  min-width: 0;
}

.app-context-eyebrow {
  color: var(--shell-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-context-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--shell-text);
  font-size: 1rem;
  font-weight: 600;
}

.app-nav-toggle {
  display: inline-flex;
}

@media (min-width: 1024px) {
  .app-topbar-main {
    padding-left: 24px;
    padding-right: 24px;
  }

  .app-nav-toggle {
    display: none;
  }
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-session-badge {
  display: none;
}

@media (min-width: 768px) {
  .app-session-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--shell-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    font-size: 0.82rem;
    color: var(--shell-muted);
  }
}

.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--shell-text);
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease;
}

.app-icon-button:hover {
  color: var(--shell-blue);
  border-color: rgba(19, 74, 124, 0.35);
}

.app-icon-button svg {
  width: 18px;
  height: 18px;
}

.scroll-top-button {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 34;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(214, 221, 213, 0.95);
  border-radius: 18px;
  background: rgba(255, 254, 249, 0.94);
  color: var(--shell-blue);
  box-shadow: 0 18px 34px rgba(19, 23, 29, 0.14);
  backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 150ms ease, background-color 150ms ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-button:hover {
  border-color: rgba(19, 74, 124, 0.3);
  background: rgba(244, 250, 255, 0.96);
}

.scroll-top-button svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 1024px) {
  .scroll-top-button {
    right: 28px;
    bottom: 26px;
  }
}

.app-icon-button-sm {
  width: 40px;
  height: 40px;
  border-radius: 14px;
}

.results-toolbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(255, 254, 249, 0.92);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
}

.login-kicker {
  color: var(--shell-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.login-title {
  margin-top: 8px;
  color: var(--shell-text);
  font-size: 2rem;
  font-weight: 600;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: rgba(255, 255, 255, 0.94);
  color: var(--shell-text);
  padding: 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  outline: none;
  border-color: rgba(19, 74, 124, 0.48);
  box-shadow: 0 0 0 4px rgba(19, 74, 124, 0.1);
}

.admin-input-lg {
  font-size: 1rem;
  padding: 14px 16px;
}

.search-input-shell {
  position: relative;
}

.search-input-field {
  padding-left: 52px;
}

.search-input-clear {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--shell-muted);
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease;
}

.search-input-clear:hover {
  color: var(--shell-blue);
  background: rgba(225, 233, 228, 0.72);
}

.search-input-clear svg {
  width: 14px;
  height: 14px;
}

.admin-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 8L10 13L15 8' stroke='%2366737A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 12px;
  padding-right: 38px;
}

.admin-date-shell {
  position: relative;
  display: block;
}

.stack.is-calendar-open {
  position: relative;
  z-index: 120;
}

.stack.is-multiselect-open {
  position: relative;
  z-index: 118;
}

.admin-date-shell .flatpickr-wrapper {
  width: 100%;
}

.admin-date-shell.is-calendar-open {
  z-index: 90;
}

.admin-date-input {
    padding-right: 74px;
    cursor: pointer;
  }

  .admin-date-clear {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    color: rgba(95, 107, 102, 0.78);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
  }

  .admin-date-clear:hover {
    background: rgba(229, 231, 235, 0.72);
    color: var(--shell-text);
  }

  .admin-date-clear svg {
    width: 12px;
    height: 12px;
  }

  .admin-date-icon {
    pointer-events: none;
    position: absolute;
    right: 14px;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shell-muted);
  transform: translateY(-50%);
}

.admin-date-icon svg {
  width: 16px;
  height: 16px;
}

.flatpickr-calendar {
  width: 308px;
  padding: 4px 0 8px;
  border: 1px solid rgba(214, 221, 213, 0.98);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.98);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
  font-family: "Fira Sans", ui-sans-serif, system-ui, sans-serif;
  overflow: hidden;
}

.flatpickr-calendar.static {
  top: calc(100% + 8px);
  left: 0;
}

.flatpickr-months {
  padding: 10px 10px 6px;
}

.flatpickr-current-month {
  padding-top: 2px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--shell-text);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  font-weight: 600;
  color: var(--shell-text);
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 10px;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 12px;
  color: var(--shell-muted);
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
  background: rgba(234, 242, 251, 0.72);
  color: var(--shell-blue);
}

.flatpickr-weekdays {
  padding: 0 10px;
  background: transparent;
}

span.flatpickr-weekday {
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flatpickr-days {
  padding: 8px 10px 12px;
  width: 288px;
}

.flatpickr-rContainer,
.dayContainer {
  width: 288px;
  min-width: 288px;
  max-width: 288px;
}

.flatpickr-day {
  max-width: 39px;
  line-height: 39px;
  border-radius: 14px;
  color: var(--shell-text);
  font-weight: 500;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: rgba(234, 242, 251, 0.88);
  border-color: rgba(19, 74, 124, 0.08);
}

.flatpickr-day.today {
  border-color: rgba(15, 118, 110, 0.32);
  color: var(--shell-teal);
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.96), rgba(20, 184, 166, 0.94));
  border-color: transparent;
  color: white;
}

.flatpickr-day.inRange {
  background: rgba(20, 184, 166, 0.12);
  border-color: transparent;
  box-shadow: -5px 0 0 rgba(20, 184, 166, 0.12), 5px 0 0 rgba(20, 184, 166, 0.12);
}

.admin-select-native {
  display: none;
}

.admin-combobox {
  position: relative;
}

.admin-combobox-field {
  position: relative;
}

.admin-combobox-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--shell-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 248, 0.94));
  color: var(--shell-text);
  padding: 12px 74px 12px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.admin-combobox-input:focus {
  outline: none;
  border-color: rgba(19, 74, 124, 0.48);
  box-shadow: 0 0 0 4px rgba(19, 74, 124, 0.1);
}

.admin-combobox-clear,
.admin-combobox-toggle {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--shell-muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.admin-combobox-clear {
  right: 40px;
}

.admin-combobox-toggle {
  right: 10px;
}

.admin-combobox.is-open .admin-combobox-toggle {
  color: var(--shell-blue);
  transform: translateY(-50%) rotate(180deg);
}

.admin-combobox-clear:hover,
.admin-combobox-toggle:hover {
  background: rgba(234, 242, 251, 0.72);
}

.admin-combobox-clear svg,
.admin-combobox-toggle svg {
  width: 16px;
  height: 16px;
}

.admin-combobox-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 240px;
  overflow: hidden;
  overscroll-behavior: contain;
  border: 1px solid rgba(214, 221, 213, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 247, 0.96));
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 8px 6px 8px 8px;
  background-clip: padding-box;
}

.admin-combobox-viewport {
  max-height: 224px;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-combobox-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-combobox-scrollbar {
  position: absolute;
  top: 10px;
  right: 6px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 236, 231, 0.92), rgba(240, 244, 240, 0.88));
}

.admin-combobox-scrollbar-thumb {
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(19, 74, 124, 0.78), rgba(20, 184, 166, 0.74));
  box-shadow: 0 2px 8px rgba(19, 74, 124, 0.16);
  transition: background-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.admin-combobox:hover .admin-combobox-scrollbar-thumb,
.admin-combobox-menu:hover .admin-combobox-scrollbar-thumb {
  box-shadow: 0 4px 12px rgba(19, 74, 124, 0.22);
}

.admin-combobox-option,
.admin-combobox-empty {
  width: 100%;
  text-align: left;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.94rem;
}

.admin-combobox-option {
  color: var(--shell-text);
  transition: background-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.admin-combobox-option:hover,
.admin-combobox-option.is-selected {
  background: rgba(234, 242, 251, 0.72);
  color: var(--shell-blue);
}

.admin-combobox-option:active {
  transform: translateY(1px);
}

.admin-combobox-empty {
  color: var(--shell-muted);
}

.import-dropzone {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 144px;
  align-content: center;
  justify-items: start;
  border: 1px dashed rgba(19, 74, 124, 0.28);
  border-radius: 22px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 248, 0.94));
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.import-dropzone:hover,
.import-dropzone:focus-visible,
.import-dropzone.is-dragover {
  border-color: rgba(19, 74, 124, 0.42);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 0 0 0 4px rgba(19, 74, 124, 0.08);
  transform: translateY(-1px);
}

.import-dropzone:focus-visible {
  outline: none;
}

.import-dropzone.has-file {
  border-style: solid;
  border-color: rgba(20, 184, 166, 0.34);
}

.import-dropzone-icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(234, 242, 251, 0.86);
  color: var(--shell-blue);
}

.import-dropzone-icon svg {
  width: 20px;
  height: 20px;
}

.import-dropzone-title {
  color: var(--shell-text);
  font-size: 1rem;
  font-weight: 600;
}

.import-dropzone-meta,
.import-dropzone-file {
  color: var(--shell-muted);
  font-size: 0.94rem;
}

.import-dropzone-file {
  color: var(--shell-blue);
  font-weight: 600;
}

.import-file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.import-file-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(19, 74, 124, 0.08);
  color: var(--shell-blue);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.import-file-chip-muted {
  background: rgba(15, 23, 42, 0.06);
  color: var(--shell-muted);
}

.import-stack {
  max-width: 720px;
}

.toolbar .admin-button svg {
  width: 16px;
  height: 16px;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 11px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  transition: transform 160ms ease, filter 160ms ease, border-color 160ms ease, color 160ms ease, background-color 160ms ease;
  cursor: pointer;
}

.admin-button:hover {
  filter: brightness(1.02);
}

.admin-button:active {
  transform: translateY(1px);
}

.admin-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  filter: none;
}

.admin-button-primary {
  background: linear-gradient(135deg, var(--shell-blue), var(--shell-teal));
  color: white;
}

.admin-button-secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--shell-text);
  border: 1px solid var(--shell-border);
}

.admin-button-danger {
  background: linear-gradient(135deg, var(--shell-danger), #d05c63);
  color: white;
}

.workspace-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--shell-border);
  border-radius: 24px;
  background: rgba(255, 254, 249, 0.92);
  padding: 14px;
}

@media (min-width: 1024px) {
  .toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.toolbar-main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.toolbar-search {
  flex: 1;
  min-width: 0;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toolbar-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-action-bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 42px;
  padding: 5px 8px;
  border: 1px solid rgba(19, 74, 124, 0.12);
  border-radius: 16px;
  background: rgba(234, 242, 251, 0.72);
  transition: opacity 150ms ease, transform 150ms ease;
}

.bulk-action-bar.is-idle {
  opacity: 0;
  pointer-events: none;
}

.bulk-action-bar.is-active {
  opacity: 1;
}

.bulk-action-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--shell-text);
  font-size: 0.84rem;
  font-weight: 600;
}

.bulk-selection-count {
  color: var(--shell-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.bulk-status-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toolbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--shell-teal);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 600;
}

.metric-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.metric-card {
  border: 1px solid var(--shell-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 16px;
}

.metric-label {
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 10px;
  color: var(--shell-text);
  font-size: 1.65rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.metric-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-stack-primary {
  color: var(--shell-text);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
}

.metric-stack-secondary {
  color: rgba(94, 109, 128, 0.72);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.2;
}

.metric-meta {
  margin-top: 6px;
  color: var(--shell-muted);
  font-size: 0.85rem;
}

.content-panel {
  border: 1px solid var(--shell-border);
  border-radius: 26px;
  background: rgba(255, 254, 249, 0.92);
  padding: 14px;
}

.analytics-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.chart-card {
  position: relative;
  overflow: hidden;
  min-height: 412px;
  display: flex;
  flex-direction: column;
}

.chart-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.92), rgba(20, 184, 166, 0.2));
}

.chart-card[data-accent="blue"]::before {
  background: linear-gradient(90deg, rgba(19, 74, 124, 0.92), rgba(19, 74, 124, 0.2));
}

.chart-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.chart-card-wide {
  grid-column: 1 / -1;
}

.chart-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  color: var(--shell-muted);
  border-radius: 20px;
  border: 1px dashed rgba(19, 74, 124, 0.18);
  background: linear-gradient(180deg, rgba(234, 242, 251, 0.45), rgba(255, 255, 255, 0.82));
}

.donut-layout {
  display: grid;
  gap: 18px;
  min-height: 264px;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .donut-layout {
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: center;
  }
}

.donut-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  align-self: center;
}

.chart-donut-shell {
  position: relative;
  width: 240px;
  height: 240px;
  margin-inline: auto;
}

.chart-donut-canvas-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 254, 249, 0.98) 0 34%, transparent 34.5%),
    radial-gradient(circle at center, rgba(20, 184, 166, 0.08), transparent 68%);
}

.chart-donut-canvas {
  width: 240px !important;
  height: 240px !important;
  display: block;
}

.donut-shell {
  position: relative;
  width: 210px;
  height: 210px;
}

.donut-svg {
  width: 210px;
  height: 210px;
  overflow: visible;
}

.donut-track {
  fill: none;
  stroke: rgba(214, 221, 213, 0.9);
  stroke-width: 28;
}

.dashboard-donut-segment {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  animation: dashboardDonutSegmentIn 680ms cubic-bezier(0.2, 0.85, 0.25, 1) forwards;
}

.dashboard-donut-label {
  opacity: 0;
  pointer-events: none;
  fill: var(--shell-text);
  font-size: 0.88rem;
  font-weight: 700;
  transition: transform 180ms ease, filter 180ms ease, opacity 180ms ease;
  animation: dashboardDonutLabelIn 360ms ease-out forwards;
}

.donut-center-hit {
  fill: rgba(255, 255, 255, 0.001);
  cursor: pointer;
  transform-origin: center;
}

.donut-center-fill {
  fill: rgba(255, 254, 249, 0.98);
  stroke: rgba(214, 221, 213, 0.92);
  stroke-width: 1.2;
  filter: drop-shadow(0 12px 30px rgba(15, 23, 42, 0.08));
}

.dashboard-donut-total {
  opacity: 0;
  fill: var(--shell-text);
  font-size: 1.75rem;
  line-height: 1;
  font-weight: 700;
  transform: translateY(4px);
  transition: transform 180ms ease, filter 180ms ease;
  animation: dashboardDonutTotalIn 420ms ease-out forwards;
}

.dashboard-donut-total-sub {
  opacity: 0;
  fill: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: dashboardDonutLabelIn 360ms ease-out forwards;
  animation-delay: 120ms;
}

.donut-orbit-ring {
  fill: none;
  stroke: rgba(15, 118, 110, 0.36);
  stroke-width: 1.2;
  stroke-dasharray: 18 14;
  opacity: 0;
  transition: opacity 220ms ease;
}

.dashboard-donut-orbit-active {
  opacity: 0.9;
  animation:
    dashboardDonutOrbitSpin 1400ms linear infinite,
    dashboardDonutOrbitPulse 900ms ease-in-out infinite;
}

.donut-particles {
  opacity: 0;
  transform-origin: center;
  transition: opacity 180ms ease;
}

.dashboard-donut-particles-active {
  opacity: 1;
  animation: dashboardDonutParticlesPulse 680ms ease-out;
}

.donut-particles circle {
  fill: rgba(20, 184, 166, 0.82);
  transition: transform 220ms ease;
}

.donut-legend {
  display: grid;
  gap: 10px;
  align-content: center;
  min-height: 240px;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(214, 221, 213, 0.8);
  opacity: 0;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
  animation: dashboardDonutLabelIn 420ms ease-out forwards;
}

.legend-item-active {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.32);
  background: linear-gradient(180deg, rgba(236, 253, 250, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 26px rgba(15, 118, 110, 0.12);
}

.legend-item-active .legend-title {
  color: var(--shell-blue);
}

.legend-item-active .legend-meta {
  color: var(--shell-text);
}

.legend-item-dimmed {
  opacity: 0.48 !important;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.legend-copy {
  min-width: 0;
}

.legend-title {
  color: var(--shell-text);
  font-weight: 600;
}

.legend-meta {
  color: var(--shell-muted);
  font-size: 0.84rem;
}

.rank-bars {
  display: grid;
  gap: 12px;
}

.rank-row {
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(250, 252, 249, 0.94));
  border: 1px solid rgba(214, 221, 213, 0.8);
}

.rank-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.rank-title {
  color: var(--shell-text);
  font-weight: 600;
}

.rank-value {
  color: var(--shell-blue);
  font-size: 0.92rem;
  font-family: "Fira Code", ui-monospace, monospace;
}

.rank-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(214, 221, 213, 0.78);
}

.rank-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--shell-blue), var(--shell-aqua));
  box-shadow: 0 0 18px rgba(20, 184, 166, 0.18);
}

.rank-meta {
  margin-top: 8px;
  color: var(--shell-muted);
  font-size: 0.84rem;
}

.dashboard-footnote {
  margin-top: 4px;
}

.dashboard-footnote-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.donut-legend .legend-item:nth-child(1) { animation-delay: 90ms; }
.donut-legend .legend-item:nth-child(2) { animation-delay: 140ms; }
.donut-legend .legend-item:nth-child(3) { animation-delay: 190ms; }
.donut-legend .legend-item:nth-child(4) { animation-delay: 240ms; }
.donut-legend .legend-item:nth-child(5) { animation-delay: 290ms; }
.donut-legend .legend-item:nth-child(6) { animation-delay: 340ms; }

@media (prefers-reduced-motion: reduce) {
  .dashboard-donut-segment,
  .dashboard-donut-label,
  .dashboard-donut-total,
  .dashboard-donut-total-sub,
  .dashboard-donut-orbit-active,
  .dashboard-donut-particles-active,
  .legend-item {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes dashboardDonutSegmentIn {
  from {
    opacity: 0;
    transform: scale(0.96);
    filter: saturate(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }
}

@keyframes dashboardDonutLabelIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardDonutTotalIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dashboardDonutOrbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes dashboardDonutOrbitPulse {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
  100% {
    opacity: 0.3;
  }
}

@keyframes dashboardDonutParticlesPulse {
  0% {
    opacity: 0;
    transform: scale(0.96);
  }
  35% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.02);
  }
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .skeleton-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .skeleton-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.skeleton-card,
.skeleton-line,
.skeleton-cell,
.skeleton-panel,
.skeleton-input,
.skeleton-button,
.skeleton-chip,
.skeleton-donut,
.skeleton-list-card,
.skeleton-bar {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(229, 236, 231, 0.9) 25%, rgba(248, 250, 248, 1) 50%, rgba(229, 236, 231, 0.9) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-card {
  min-height: 116px;
  border-radius: 22px;
  border: 1px solid var(--shell-border);
}

.skeleton-panel {
  min-height: 380px;
  border-radius: 26px;
  border: 1px solid var(--shell-border);
}

.skeleton-line {
  height: 12px;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 28%;
}

.skeleton-line.medium {
  width: 54%;
}

.skeleton-line.long {
  width: 84%;
}

.skeleton-table {
  display: grid;
  gap: 10px;
  border: 1px solid var(--shell-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}

.skeleton-row {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 10px;
}

.skeleton-cell {
  height: 38px;
  border-radius: 14px;
}

.skeleton-input {
  height: 54px;
  border-radius: 18px;
  border: 1px solid var(--shell-border);
}

.skeleton-button {
  width: 116px;
  height: 48px;
  border-radius: 16px;
}

.skeleton-button-secondary {
  width: 104px;
}

.skeleton-chip {
  width: 132px;
  height: 34px;
  border-radius: 999px;
}

.dashboard-donut-skeleton {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .dashboard-donut-skeleton {
    grid-template-columns: minmax(180px, 220px) 1fr;
    align-items: center;
  }
}

.skeleton-donut {
  width: 220px;
  height: 220px;
  border-radius: 999px;
  justify-self: center;
}

.skeleton-legend {
  display: grid;
  gap: 12px;
}

.skeleton-bars {
  display: grid;
  gap: 12px;
}

.skeleton-bar {
  width: var(--bar-width, 72%);
  height: 18px;
  border-radius: 999px;
}

.skeleton-list-card {
  min-height: 96px;
  border-radius: 20px;
  border: 1px solid var(--shell-border);
}

.sort-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.sort-button:hover {
  color: var(--shell-blue);
}

.sort-indicator {
  display: inline-flex;
  width: 12px;
  justify-content: center;
  color: var(--shell-muted);
}

.sort-indicator.active {
  color: var(--shell-blue);
}

.infinite-status {
  display: flex;
  justify-content: center;
  padding: 14px 0 4px 0;
}

.infinite-loader {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--shell-muted);
  font-size: 0.88rem;
}

.infinite-loader-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--shell-aqua);
  box-shadow: 18px 0 0 rgba(20, 184, 166, 0.55), -18px 0 0 rgba(20, 184, 166, 0.3);
  animation: pulse 1.1s ease-in-out infinite;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--shell-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7faf8;
  color: var(--shell-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(214, 221, 213, 0.88);
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  overflow: hidden;
}

.data-table th {
  white-space: nowrap;
}

.data-table td .row-primary,
.data-table td .row-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background-color 150ms ease;
}

.data-table tbody tr.row-cascade td {
  opacity: 0;
  transform: translateY(-16px);
  will-change: opacity, transform;
  animation: rowCascadeIn 340ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--row-delay, 0ms);
}

@keyframes rowCascadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-card-enter {
  opacity: 0;
  transform: translateY(16px) scale(0.992);
}

.modal-card-enter.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 240ms ease var(--modal-card-delay, 0ms),
    transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--modal-card-delay, 0ms);
}

.data-table tbody tr:hover {
  background: rgba(234, 242, 251, 0.48);
}

.row-primary {
  color: var(--shell-text);
  font-weight: 600;
}

.row-secondary {
  color: var(--shell-muted);
  font-size: 0.86rem;
  margin-top: 4px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--shell-teal);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.workflow-pill-new {
  background: rgba(94, 109, 128, 0.12);
  color: #516171;
}

.workflow-pill-requested {
  background: rgba(15, 118, 110, 0.11);
  color: var(--shell-teal);
}

.settings-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.settings-status-note {
  flex: 1 1 280px;
  min-height: 22px;
  color: var(--shell-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.settings-status-note.is-busy {
  color: var(--shell-teal);
}

.settings-status-note.is-error {
  color: #b45309;
}

.table-settings-grid {
  display: grid;
  gap: 10px;
}

@media (min-width: 640px) {
  .table-settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.table-settings-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--shell-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 180ms ease;
}

.table-settings-option:hover {
  border-color: rgba(19, 74, 124, 0.24);
  background: rgba(244, 250, 255, 0.92);
}

.table-settings-option input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--shell-blue);
}

.table-settings-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.table-settings-option-title {
  color: var(--shell-text);
  font-weight: 600;
}

.table-settings-option-meta {
  color: var(--shell-muted);
  font-size: 0.82rem;
}

.workflow-pill-skipped {
  background: rgba(212, 168, 79, 0.18);
  color: #8d6a1d;
}

.workflow-pill-blacklisted {
  background: rgba(185, 75, 82, 0.14);
  color: #9a4046;
}

.mono {
  font-family: "Fira Code", ui-monospace, monospace;
}

.empty-state {
  border: 1px dashed var(--shell-border);
  border-radius: 24px;
  background: rgba(237, 242, 238, 0.75);
  padding: 22px;
  text-align: center;
  color: var(--shell-muted);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--shell-backdrop);
  opacity: 1;
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100dvh - 32px);
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  background: rgba(255, 254, 249, 0.98);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-panel-wide {
  width: min(100%, 1100px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 0 18px;
}

.modal-head-copy {
  min-width: 0;
}

.modal-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modal-eyebrow {
  color: var(--shell-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.modal-title {
  margin-top: 6px;
  color: var(--shell-text);
  font-size: 1.6rem;
  font-weight: 600;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--shell-border);
  background: white;
  color: var(--shell-text);
  border-radius: 14px;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.modal-close:hover {
  color: var(--shell-blue);
  border-color: rgba(19, 74, 124, 0.32);
  background: rgba(234, 242, 251, 0.65);
}

.modal-close:active {
  transform: translateY(1px);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  padding-right: 18px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(102, 115, 122, 0.35) rgba(214, 221, 213, 0.22);
  overscroll-behavior: contain;
}

.modal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.modal-body::-webkit-scrollbar-track {
  background: rgba(214, 221, 213, 0.22);
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(19, 74, 124, 0.58), rgba(20, 184, 166, 0.54));
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(19, 74, 124, 0.72), rgba(20, 184, 166, 0.66));
}


.modal-shell.is-open .modal-backdrop {
  animation: modalBackdropIn 180ms ease both;
}

.modal-shell.is-open .modal-panel {
  animation: modalPanelIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-body > * {
  opacity: 1;
  transform: translateY(0);
}

.modal-shell.is-open .modal-body > * {
  animation: modalAssembleIn 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.modal-shell.is-open .modal-body > *:nth-child(1) { animation-delay: 20ms; }
.modal-shell.is-open .modal-body > *:nth-child(2) { animation-delay: 48ms; }
.modal-shell.is-open .modal-body > *:nth-child(3) { animation-delay: 76ms; }
.modal-shell.is-open .modal-body > *:nth-child(4) { animation-delay: 104ms; }
.modal-shell.is-open .modal-body > *:nth-child(5) { animation-delay: 132ms; }
.modal-shell.is-open .modal-body > *:nth-child(6) { animation-delay: 160ms; }

.selection-cell {
  width: 52px;
  text-align: center;
}

.table-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--shell-teal);
  cursor: pointer;
}

.workflow-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

@keyframes modalAssembleIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalPanelIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-panel {
  border: 1px solid rgba(185, 75, 82, 0.18);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96), rgba(255, 252, 251, 0.98));
  padding: 16px;
}

.confirm-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.confirm-item {
  display: flex;
  gap: 10px;
  color: var(--shell-text);
  font-size: 0.94rem;
}

.confirm-item::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(185, 75, 82, 0.14);
  color: var(--shell-danger);
  font-weight: 700;
  flex: 0 0 auto;
}

.confirm-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.export-static-field {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--shell-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0 16px;
  color: var(--shell-text);
  font-weight: 600;
}

.export-limit-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.export-columns-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .export-columns-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.export-column-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--shell-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.export-column-option:hover {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(245, 251, 248, 0.98);
}

.export-column-option:has(.export-column-checkbox:checked) {
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(244, 251, 248, 0.98);
}

.export-column-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--shell-teal);
  flex: 0 0 auto;
}

.export-column-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.filter-checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-multiselect {
  position: relative;
}

.admin-multiselect-trigger {
  width: 100%;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 248, 0.94));
  color: var(--shell-text);
  padding: 12px 14px;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.admin-multiselect-trigger:hover,
.admin-multiselect.is-open .admin-multiselect-trigger {
  border-color: rgba(19, 74, 124, 0.48);
  box-shadow: 0 0 0 4px rgba(19, 74, 124, 0.08);
}

.admin-multiselect-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-multiselect-value.is-placeholder {
  color: var(--shell-muted);
}

.admin-multiselect-toggle {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--shell-muted);
}

.admin-multiselect-toggle svg {
  width: 16px;
  height: 16px;
}

.admin-multiselect.is-open .admin-multiselect-toggle {
  color: var(--shell-blue);
}

.admin-multiselect-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 240px;
  overflow: hidden;
  border: 1px solid rgba(214, 221, 213, 0.95);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 247, 0.96));
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  padding: 8px 6px 8px 8px;
}

.admin-multiselect-search {
  padding: 2px 4px 10px 0;
}

.admin-multiselect-search-input {
  min-height: 40px;
}

.admin-multiselect-viewport {
  max-height: 224px;
  overflow: auto;
  padding-right: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-multiselect-viewport::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.admin-multiselect-scrollbar {
  position: absolute;
  top: 10px;
  right: 6px;
  bottom: 10px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(229, 236, 231, 0.92), rgba(240, 244, 240, 0.88));
}

.admin-multiselect-scrollbar-thumb {
  width: 100%;
  min-height: 34px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(19, 74, 124, 0.78), rgba(20, 184, 166, 0.74));
  box-shadow: 0 2px 8px rgba(19, 74, 124, 0.16);
}

.filter-checkbox-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  padding: 0 10px;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.filter-checkbox-option:hover {
  background: rgba(234, 242, 251, 0.72);
}

.filter-checkbox-option:has(.filter-checkbox-input:checked) {
  background: rgba(234, 242, 251, 0.78);
}

.filter-checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: var(--shell-teal);
  flex: 0 0 auto;
}

.filter-checkbox-label {
  color: var(--shell-text);
  font-weight: 500;
}

.filter-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 768px) {
  .filter-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 768px) {
  .detail-grid.columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.detail-card {
  border: 1px solid var(--shell-border);
  border-radius: 22px;
  background: white;
  padding: 14px;
}

.detail-label {
  color: var(--shell-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-value {
  margin-top: 8px;
  color: var(--shell-text);
  font-size: 0.96rem;
  line-height: 1.55;
}

.section-title {
  color: var(--shell-text);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--shell-muted);
  font-size: 0.84rem;
}

.list-card {
  border: 1px solid var(--shell-border);
  border-radius: 18px;
  background: white;
  padding: 12px;
}

.quick-card {
  width: 100%;
  cursor: pointer;
  text-align: left;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.quick-card:hover {
  transform: translateY(-1px);
  border-color: rgba(19, 74, 124, 0.24);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.quick-card:focus-visible {
  outline: 2px solid rgba(19, 74, 124, 0.35);
  outline-offset: 2px;
}

.list-card + .list-card {
  margin-top: 10px;
}

.admin-index-guide-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 1024px) {
  .admin-index-guide-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.admin-index-card {
  padding: 14px;
}

.admin-index-card-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 1024px) {
  .admin-index-card-head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.admin-index-pill-row,
.admin-index-stale-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-index-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

@media (min-width: 900px) {
  .admin-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.admin-index-block {
  border: 1px solid rgba(186, 206, 197, 0.85);
  border-radius: 16px;
  background: rgba(251, 252, 249, 0.92);
  padding: 12px 14px;
}

.admin-index-stale {
  margin-top: 14px;
}

.admin-index-pill-active {
  background: rgba(15, 118, 110, 0.12);
  color: var(--shell-teal);
}

.admin-index-pill-backup {
  background: rgba(19, 74, 124, 0.1);
  color: var(--shell-blue);
}

.admin-index-pill-cleanup {
  background: rgba(212, 168, 79, 0.14);
  color: #8a6210;
}

.admin-index-pill-muted {
  background: rgba(100, 116, 139, 0.12);
  color: #5f6f82;
}

.hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  .app-sidebar {
    width: 280px;
    transform: translateX(-108%);
    transition: transform 220ms ease;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  }

  body.nav-open .app-sidebar {
    transform: translateX(0);
  }

  .app-sidebar .app-sidebar-kicker,
  .app-sidebar .app-sidebar-heading,
  .app-sidebar .app-sidebar-item-label {
    opacity: 1;
    transform: translateX(0);
  }

  .app-sidebar:hover {
    width: 280px;
  }

  .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(3px);
  }

  .app-topbar-main {
    gap: 10px;
  }

  .app-search-trigger {
    padding-inline: 12px;
  }

  .app-search-trigger-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .app-shell {
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .app-topbar-main {
    padding: 10px 12px;
  }

  .app-search-shortcut,
  .app-session-badge {
    display: none;
  }

  .app-search-trigger-label {
    font-size: 0.95rem;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
