body.app-theme {
  --app-text: #f4f8fb;
  --app-muted: rgba(244, 248, 251, 0.82);
  --app-panel: rgba(42, 57, 72, 0.58);
  --app-panel-strong: rgba(21, 31, 42, 0.72);
  --app-panel-soft: rgba(255, 255, 255, 0.12);
  --app-border: rgba(255, 255, 255, 0.16);
  --app-accent: #f6b846;
  --app-accent-2: #69d2e7;
  --app-success: #43d17c;
  --app-shadow: rgba(4, 12, 22, 0.34);
  --app-radius-lg: 28px;
  --app-radius-md: 18px;
  color: var(--app-text);
}

body.app-theme--light-blue-glass {
  background:
    radial-gradient(circle at 88% 8%, rgba(246, 184, 70, 0.18), transparent 18%),
    radial-gradient(circle at 16% 18%, rgba(105, 210, 231, 0.20), transparent 24%),
    linear-gradient(135deg, rgba(38, 57, 75, 0.94), rgba(85, 108, 126, 0.88)),
    #31465a;
}

.app-dashboard-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
}

.app-dashboard-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(150deg, transparent 0 24%, rgba(255, 255, 255, 0.08) 24.2% 28%, transparent 28.2%),
    linear-gradient(28deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 36.2% 40%, transparent 40.2%),
    radial-gradient(circle at 100% 48%, rgba(255, 255, 255, 0.14), transparent 12%);
  opacity: 0.75;
  z-index: 0;
}

.app-dashboard-sidebar,
.app-dashboard-content {
  position: relative;
  z-index: 1;
}

.app-dashboard-sidebar {
  min-height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid var(--app-border);
  background: rgba(20, 32, 46, 0.22);
  backdrop-filter: blur(18px);
}

.app-dashboard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--app-text);
  text-decoration: none;
}

.app-dashboard-brand:hover {
  color: #fff;
}

.app-dashboard-brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: #17313f;
  background: linear-gradient(135deg, var(--app-accent-2), #eefcff);
  box-shadow: 0 16px 34px rgba(105, 210, 231, 0.24);
  font-weight: 900;
}

.app-dashboard-brand strong,
.app-dashboard-brand small {
  display: block;
}

.app-dashboard-brand strong {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-dashboard-brand small {
  color: var(--app-muted);
  font-size: 0.72rem;
}

.app-dashboard-brand__version {
  display: inline-flex;
  width: max-content;
  margin-top: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(105, 210, 231, 0.34);
  border-radius: 999px;
  color: #dff9ff;
  background: rgba(105, 210, 231, 0.10);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
}

.app-dashboard-nav {
  display: grid;
  gap: 8px;
  margin-top: 34px;
}

.app-dashboard-nav__label {
  margin: 22px 6px 6px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-dashboard-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.app-dashboard-nav__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.app-dashboard-nav__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 10px;
  color: #d7faff;
  background: rgba(255, 255, 255, 0.10);
  font-size: 0.68rem;
  font-weight: 900;
}

.app-dashboard-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(12, 18, 32, 0.38);
  backdrop-filter: blur(18px);
}

.app-dashboard-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(560px, 48vw);
  min-height: 31px;
  padding: 0 14px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  color: var(--app-muted);
  background: rgba(10, 14, 26, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-dashboard-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--app-text);
  background: transparent;
}

.app-dashboard-search input::placeholder {
  color: rgba(244, 248, 251, 0.48);
}

.app-dashboard-svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.app-dashboard-icon-link--help {
  color: #17313f;
  border-color: rgba(105, 210, 231, 0.62);
  background: linear-gradient(135deg, var(--app-accent-2), #eefcff);
}

.app-ai-help-modal {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: grid;
  place-items: center;
  padding: 20px;
}

.app-ai-help-modal[hidden] {
  display: none;
}

.app-ai-help-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.72);
  backdrop-filter: blur(12px);
}

.app-ai-help-modal__card {
  position: relative;
  width: min(620px, calc(100vw - 28px));
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 8px;
  color: #f8fafc;
  background: #0f172a;
  box-shadow: 0 30px 90px rgba(2, 6, 23, 0.62);
  overflow: hidden;
}

.app-ai-help-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.app-ai-help-modal__head p {
  margin: 0 0 4px;
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-ai-help-modal__head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
}

.app-ai-help-modal__close,
.app-ai-help-form__prompt button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
}

.app-ai-help-form__prompt button {
  align-self: start;
  width: 52px;
  min-width: 52px;
  height: 52px;
  color: #f8fafc;
  background: rgba(71, 85, 105, 0.86);
  border-color: rgba(203, 213, 225, 0.26);
  font-weight: 850;
}

.app-ai-help-form__prompt button:hover,
.app-ai-help-form__prompt button:focus-visible {
  color: #0f172a;
  background: #f8fafc;
}

.app-ai-help-form {
  display: grid;
  gap: 14px;
  padding: 18px 20px 12px;
}

.app-ai-help-form label {
  display: grid;
  gap: 8px;
}

.app-ai-help-form label > span {
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 850;
}

.app-ai-help-form__prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 8px;
}

.app-ai-help-form__prompt textarea {
  min-height: 82px;
  max-height: 138px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 8px;
  color: #fff;
  background: #162033;
  padding: 10px 12px;
  font: inherit;
  line-height: 1.35;
  resize: vertical;
}

.app-ai-help-form__prompt textarea::placeholder {
  color: #94a3b8;
}

.app-ai-help-form__prompt button.is-listening {
  color: #142536;
  background: linear-gradient(135deg, var(--app-accent), #ffe08c);
}

.app-ai-help-recording {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(248, 113, 113, 0.62);
  border-radius: 999px;
  color: #fff;
  background: rgba(127, 29, 29, 0.82);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.14), 0 10px 28px rgba(15, 23, 42, 0.28);
  font-size: 0.8rem;
  font-weight: 900;
}

.app-ai-help-recording[hidden] {
  display: none;
}

.app-ai-help-recording__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #fca5a5;
  box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.78);
  animation: app-ai-help-recording-pulse 1.1s ease-out infinite;
}

.app-ai-help-recording strong {
  font-variant-numeric: tabular-nums;
  color: #fecaca;
}

@keyframes app-ai-help-recording-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(252, 165, 165, 0.78);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(252, 165, 165, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(252, 165, 165, 0);
  }
}

.app-ai-help-form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-ai-help-form__actions span {
  min-height: 18px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 750;
}

.app-ai-help-form__actions span.is-error {
  color: #ffd1d1;
}

.app-ai-help-form__actions button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(246, 184, 70, 0.58);
  border-radius: 8px;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #475569;
  font-weight: 900;
}

.app-ai-help-form__actions button:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: #334155;
  border-color: rgba(251, 191, 36, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: not-allowed;
  opacity: 1;
}

.app-ai-help-mic-status {
  display: block;
  margin-top: -4px;
  color: #bfdbfe;
  font-size: 0.78rem;
  font-weight: 750;
}

.app-ai-help-mic-status.is-error {
  color: #fecaca;
}

.app-ai-help-result {
  padding: 0 20px 20px;
  color: #dbeafe;
}

.app-ai-help-result p {
  margin: 0;
}

.app-ai-help-result strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
}

.app-ai-help-result ol {
  margin: 0;
  padding-left: 22px;
}

.app-ai-help-result li {
  margin: 6px 0;
}

.app-ai-help-result small {
  display: block;
  margin-top: 10px;
  color: #bfdbfe;
}

.app-ai-help-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.app-ai-help-action button,
.app-ai-help-action a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffc857, #f5a623);
  color: #102332;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(12, 22, 30, 0.24);
}

.app-ai-help-action button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.app-ai-help-action span {
  color: #dbeafe;
  font-size: 0.86rem;
}

.app-ai-help-highlight {
  outline: 3px solid rgba(246, 184, 70, 0.92) !important;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(246, 184, 70, 0.20) !important;
}

.app-dashboard-search__icon {
  display: inline-grid;
  place-items: center;
  color: rgba(244, 248, 251, 0.58);
}

.app-dashboard-active-project {
  display: grid;
  min-width: 220px;
  max-width: min(420px, 32vw);
  padding: 3px 14px 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.05;
}

.app-dashboard-active-project span {
  color: var(--app-accent-2);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-dashboard-active-project strong,
.app-dashboard-active-project select,
.app-dashboard-active-project small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-active-project strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
}

.app-dashboard-active-project select {
  width: 100%;
  min-width: 0;
  padding: 1px 22px 1px 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 900;
}

.app-dashboard-active-project select option {
  color: #101b2a;
}

.app-dashboard-active-project small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.62rem;
}

.app-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-dashboard-chip,
.app-dashboard-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-height: 30px;
  padding: 0;
  border: 1px solid var(--app-border);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.app-dashboard-icon-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.app-dashboard-action-menu {
  position: relative;
  z-index: 1210;
}

.app-dashboard-action-menu.is-open .app-dashboard-icon-link {
  color: #fff;
  border-color: rgba(80, 226, 240, 0.34);
  background: rgba(80, 226, 240, 0.14);
}

.app-dashboard-action-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border: 1px solid rgba(12, 18, 32, 0.72);
  border-radius: 999px;
  color: #112235;
  background: #7ef7ff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
  font-size: 0.58rem;
  font-weight: 950;
  line-height: 1;
}

.app-dashboard-action-badge--alarm {
  color: #2a1808;
  background: #ffc95a;
}

.app-dashboard-action-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1220;
  display: none;
  width: min(310px, calc(100vw - 28px));
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(20, 32, 46, 0.97);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(18px);
}

.app-dashboard-action-panel--wide {
  width: min(340px, calc(100vw - 28px));
}

.app-dashboard-action-menu.is-open .app-dashboard-action-panel {
  display: grid;
  gap: 6px;
}

.app-dashboard-action-panel::before,
.app-dashboard-user-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 32, 46, 0.96);
  transform: rotate(45deg);
}

.app-dashboard-action-panel__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-dashboard-action-panel__head strong {
  color: #fff;
  font-size: 0.62rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.app-dashboard-action-panel__text {
  position: relative;
  z-index: 1;
  margin: 0 6px 6px;
  color: rgba(244, 248, 251, 0.68);
  font-size: 0.75rem;
  line-height: 1.35;
}

.app-dashboard-action-panel__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 37px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 850;
}

.app-dashboard-action-panel__item:hover,
.app-dashboard-action-panel__item:focus-visible {
  color: #fff;
  border-color: rgba(80, 226, 240, 0.24);
  background: rgba(80, 226, 240, 0.11);
  outline: 0;
}

.app-dashboard-action-panel__item.is-disabled {
  color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.035);
  cursor: not-allowed;
}

button.app-dashboard-action-panel__item {
  width: 100%;
  text-align: left;
}

.app-dashboard-action-panel__item--footer {
  margin-top: 4px;
  border-color: rgba(80, 226, 240, 0.18);
  background: rgba(80, 226, 240, 0.09);
}

.app-dashboard-notification-preview {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
}

.app-dashboard-notification-preview__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}

.app-dashboard-notification-preview__item:hover,
.app-dashboard-notification-preview__item:focus-visible {
  color: #fff;
  border-color: rgba(80, 226, 240, 0.26);
  background: rgba(80, 226, 240, 0.10);
  outline: 0;
}

.app-dashboard-notification-preview__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #eaffff;
  background: rgba(19, 143, 132, 0.85);
}

.app-dashboard-notification-preview__icon--alarm {
  color: #2a1808;
  background: #ffc95a;
}

.app-dashboard-notification-preview__body {
  min-width: 0;
}

.app-dashboard-notification-preview__body strong,
.app-dashboard-notification-preview__body small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-notification-preview__body strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.app-dashboard-notification-preview__body small {
  color: rgba(244, 248, 251, 0.58);
  font-size: 0.67rem;
}

.app-dashboard-notification-preview__status {
  justify-self: end;
  max-width: 78px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #eaf4f7;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.app-dashboard-notification-preview__status.is-pending {
  color: #241701;
  background: #ffc95a;
}

.app-dashboard-notification-preview__status.is-accepted {
  color: #05251d;
  background: #5ee3bd;
}

.app-dashboard-notification-preview__status.is-rejected {
  color: #fff1ef;
  background: #d75b4f;
}

.app-dashboard-user-menu {
  position: relative;
  z-index: 1210;
}

.app-dashboard-user {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 10px 0 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  cursor: pointer;
}

.app-dashboard-user--static {
  cursor: default;
}

.app-dashboard-user__avatar {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  color: #172536;
  background: linear-gradient(135deg, #eefcff, var(--app-accent-2));
  font-size: 0.75rem;
  font-weight: 900;
}

.app-dashboard-user__meta {
  display: grid;
  gap: 0;
  line-height: 1.05;
}

.app-dashboard-user__meta strong {
  max-width: 170px;
  overflow: hidden;
  color: #fff;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-user__meta small {
  max-width: 170px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1220;
  display: none;
  min-width: 248px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(20, 32, 46, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.app-dashboard-user-menu.is-open .app-dashboard-user-dropdown {
  display: grid;
  gap: 4px;
}

.app-dashboard-user-dropdown::before {
  right: 24px;
}

.app-dashboard-user-dropdown__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 5px;
  padding: 8px 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.app-dashboard-user-dropdown__head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.app-dashboard-user-dropdown__head strong,
.app-dashboard-user-dropdown__head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-user-dropdown__head strong {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.app-dashboard-user-dropdown__head small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.67rem;
}

.app-dashboard-user-dropdown__item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.app-dashboard-user-dropdown__item:hover,
.app-dashboard-user-dropdown__item:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  outline: 0;
}

.app-dashboard-user-dropdown__item--danger {
  color: #ffd6d6;
}

.app-dashboard-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2000;
  max-width: min(380px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: #fff;
  background: rgba(20, 32, 46, 0.96);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
  font-size: 0.86rem;
  font-weight: 800;
}

.app-dashboard-alarm-modal[hidden],
.app-dashboard-ollama-modal[hidden] {
  display: none;
}

.app-dashboard-alarm-modal,
.app-dashboard-ollama-modal {
  position: fixed;
  inset: 0;
  z-index: 1800;
  display: grid;
  place-items: center;
  padding: 18px;
}

.app-dashboard-ollama-modal .app-dashboard-alarm-modal__body {
  grid-template-columns: minmax(0, 1fr);
}

.app-dashboard-ollama-modal .app-dashboard-ollama-config {
  width: min(100%, 980px);
  justify-self: center;
}

.app-dashboard-alarm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.66);
  backdrop-filter: blur(8px);
}

.app-dashboard-alarm-modal__card {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--app-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 32%),
    rgba(23, 36, 51, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.app-dashboard-alarm-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.app-dashboard-alarm-modal__head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}

.app-dashboard-alarm-modal__head small {
  display: block;
  margin-top: 3px;
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.8rem;
}

.app-dashboard-alarm-modal__eyebrow {
  margin: 0 0 5px;
  color: var(--app-accent-2);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.app-dashboard-alarm-modal__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 900;
}

.app-dashboard-alarm-modal__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.app-dashboard-alarm-modal__body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  overflow: auto;
}

.app-dashboard-alarm-rules,
.app-dashboard-alarm-form,
.app-dashboard-ollama-config {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.app-dashboard-alarm-editor {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.app-dashboard-alarm-rules {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.app-dashboard-alarm-rules__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.app-dashboard-alarm-rules__head button,
.app-dashboard-alarm-rules__head small {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.app-dashboard-alarm-rules__head button {
  padding: 5px 8px;
  border: 1px solid rgba(80, 226, 240, 0.30);
  border-radius: 7px;
  background: rgba(80, 226, 240, 0.10);
}

.app-dashboard-alarm-rules__list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 10px 12px;
  overflow: auto;
}

.app-dashboard-alarm-rule {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(9, 15, 26, 0.32);
  text-align: left;
}

.app-dashboard-alarm-rule:hover,
.app-dashboard-alarm-rule.is-selected {
  border-color: rgba(80, 226, 240, 0.34);
  background: rgba(80, 226, 240, 0.11);
}

.app-dashboard-alarm-rule strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-dashboard-alarm-rule span {
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.7rem;
}

.app-dashboard-alarm-empty {
  margin: 0;
  padding: 14px 10px;
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.8rem;
}

.app-dashboard-alarm-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.app-dashboard-ollama-config {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.app-dashboard-ollama-config.is-sgi-module {
  gap: 14px;
  padding: 16px;
  border-color: rgba(80, 226, 240, 0.32);
  background:
    linear-gradient(135deg, rgba(80, 226, 240, 0.10), transparent 34%),
    rgba(8, 13, 22, 0.32);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.20);
}

.app-dashboard-ollama-config.is-sgi-module .app-dashboard-ollama-config__head strong {
  font-size: 1.2rem;
}

.app-dashboard-ollama-config.is-sgi-module .app-dashboard-ollama-config__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-dashboard-ollama-config__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-dashboard-ollama-config__head div {
  display: grid;
  gap: 3px;
}

.app-dashboard-ollama-config__head span,
.app-dashboard-ollama-config label span {
  color: rgba(244, 248, 251, 0.72);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-dashboard-ollama-config__head strong {
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.app-dashboard-ollama-config__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(90px, 0.5fr) minmax(0, 1fr) minmax(90px, 0.55fr);
  gap: 10px;
}

.app-dashboard-ollama-config label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.app-dashboard-ollama-config input,
.app-dashboard-ollama-config select {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #fff;
  background: rgba(8, 13, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-dashboard-ollama-config select option {
  color: #101b2a;
}

.app-dashboard-ollama-model-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.app-dashboard-ollama-model-refresh {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(80, 226, 240, 0.24);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(80, 226, 240, 0.10);
  font-size: 0.72rem;
  font-weight: 900;
}

.app-dashboard-ollama-model-refresh:hover,
.app-dashboard-ollama-model-refresh:focus-visible {
  color: #fff;
  background: rgba(80, 226, 240, 0.18);
  outline: 0;
}

.app-dashboard-ollama-model-refresh[disabled] {
  opacity: 0.62;
  cursor: progress;
}

.app-dashboard-ollama-config__actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.app-dashboard-ollama-config__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.app-dashboard-ollama-link {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(80, 226, 240, 0.18);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.28);
}

.app-dashboard-ollama-link strong {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 950;
}

.app-dashboard-ollama-link code {
  color: var(--app-accent-2);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: normal;
  word-break: break-word;
}

.app-dashboard-ollama-link span {
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.72rem;
  line-height: 1.35;
}

.app-dashboard-ai-training {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(80, 226, 240, 0.22);
  border-radius: 14px;
  background: rgba(8, 13, 22, 0.30);
}

.app-dashboard-ai-training__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-dashboard-ai-training label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.app-dashboard-ai-training input,
.app-dashboard-ai-training select,
.app-dashboard-ai-training textarea {
  width: 100%;
  min-height: 38px;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #f8fafc;
  background: rgba(8, 13, 22, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-dashboard-ai-training textarea {
  min-height: 112px;
  resize: vertical;
}

.app-dashboard-ai-training textarea[readonly] {
  color: rgba(226, 232, 240, 0.84);
  background: rgba(15, 23, 42, 0.54);
}

.app-dashboard-ai-training input::file-selector-button {
  margin-right: 10px;
  border: 0;
  border-radius: 7px;
  color: #111827;
  background: #fbbf24;
  font-weight: 900;
}

.app-dashboard-ai-training select option {
  color: #101b2a;
}

.app-dashboard-ai-training-form {
  display: grid;
  gap: 10px;
}

.app-dashboard-ai-training-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.app-dashboard-ai-training__grid--catalog {
  align-items: stretch;
}

.app-dashboard-ai-training__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  justify-content: flex-end;
}

.app-dashboard-ai-training__result,
.app-dashboard-ai-training__catalog,
.app-dashboard-ai-training__candidates {
  display: grid;
  gap: 8px;
  min-height: 84px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  color: rgba(226, 232, 240, 0.82);
  background: rgba(15, 23, 42, 0.34);
}

.app-dashboard-ai-training__catalog article,
.app-dashboard-ai-training-candidate {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid rgba(80, 226, 240, 0.14);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.34);
}

.app-dashboard-ai-training-candidate {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.app-dashboard-ai-training__catalog strong,
.app-dashboard-ai-training-candidate strong,
.app-dashboard-ai-training-match strong {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 950;
}

.app-dashboard-ai-training__catalog span,
.app-dashboard-ai-training-candidate span,
.app-dashboard-ai-training-candidate small,
.app-dashboard-ai-training__result p,
.app-dashboard-ai-training-match span {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.78rem;
  line-height: 1.42;
}

.app-dashboard-ai-training-candidate button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(251, 191, 36, 0.52);
  border-radius: 9px;
  color: #111827;
  background: #fbbf24;
  font-size: 0.72rem;
  font-weight: 950;
}

.app-dashboard-ai-training-match {
  display: grid;
  gap: 4px;
}

.app-dashboard-alarm-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.app-dashboard-alarm-form__row--main {
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.46fr) minmax(160px, 0.65fr) minmax(130px, 0.54fr) auto;
}

.app-dashboard-alarm-form label,
.app-dashboard-alarm-form__full {
  display: grid;
  gap: 6px;
  margin: 0;
}

.app-dashboard-alarm-form label span,
.app-dashboard-alarm-form__full span {
  color: rgba(244, 248, 251, 0.74);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-dashboard-alarm-form input,
.app-dashboard-alarm-form select,
.app-dashboard-alarm-form textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #fff;
  background: rgba(8, 13, 22, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-dashboard-alarm-form input,
.app-dashboard-alarm-form select {
  padding: 0 11px;
}

.app-dashboard-alarm-form textarea {
  padding: 10px 11px;
  resize: vertical;
}

.app-dashboard-alarm-form select option {
  color: #101b2a;
}

.app-dashboard-alarm-toggle {
  align-self: end;
  min-height: 40px;
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.app-dashboard-alarm-toggle input {
  width: 16px;
  min-height: 16px;
}

.app-dashboard-rule-builder {
  padding: 10px 12px;
  border: 1px solid rgba(80, 226, 240, 0.20);
  border-radius: 12px;
  color: rgba(244, 248, 251, 0.74);
  background: rgba(80, 226, 240, 0.07);
}

.app-dashboard-rule-builder div {
  display: grid;
  gap: 4px;
}

.app-dashboard-rule-builder strong {
  color: var(--app-accent-2);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.app-dashboard-rule-builder span {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-dashboard-rule-options {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
}

.app-dashboard-rule-options fieldset {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 7px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
  background: rgba(8, 13, 22, 0.22);
}

.app-dashboard-rule-options legend {
  float: none;
  width: auto;
  margin: 0 0 2px;
  padding: 0;
  color: rgba(244, 248, 251, 0.72);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.app-dashboard-rule-options label {
  display: inline-flex !important;
  grid-auto-flow: column;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.74rem;
  font-weight: 900;
}

.app-dashboard-rule-options label:has(input:checked) {
  border-color: rgba(126, 247, 255, 0.42);
  color: #fff;
  background: rgba(80, 226, 240, 0.13);
}

.app-dashboard-rule-options input {
  width: 13px;
  min-height: 13px;
}

.app-dashboard-alarm-recipients {
  display: grid;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(8, 13, 22, 0.24);
}

.app-dashboard-recipient-mode {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(8, 13, 22, 0.36);
}

.app-dashboard-recipient-mode label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 11px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.78rem;
  font-weight: 900;
}

.app-dashboard-recipient-mode label:has(input:checked) {
  color: #112235;
  background: #7ef7ff;
}

.app-dashboard-recipient-mode input {
  width: 14px;
  min-height: 14px;
}

.app-dashboard-actor-picker {
  display: grid;
  gap: 8px;
}

.app-dashboard-actor-picker.is-disabled {
  opacity: 0.52;
  pointer-events: none;
}

.app-dashboard-actor-picker__selected {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.app-dashboard-actor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid rgba(80, 226, 240, 0.20);
  border-radius: 999px;
  color: #fff;
  background: rgba(80, 226, 240, 0.10);
  font-size: 0.75rem;
  font-weight: 850;
}

.app-dashboard-actor-chip button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 999px;
  color: #112235;
  background: #7ef7ff;
  font-size: 0.68rem;
  font-weight: 950;
}

.app-dashboard-actor-picker__list {
  display: grid;
  gap: 6px;
  max-height: 170px;
  overflow: auto;
}

.app-dashboard-actor-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
}

.app-dashboard-actor-option:hover,
.app-dashboard-actor-option.is-selected {
  color: #fff;
  border-color: rgba(80, 226, 240, 0.30);
  background: rgba(80, 226, 240, 0.10);
}

.app-dashboard-actor-option strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 900;
}

.app-dashboard-actor-option small {
  display: block;
  color: rgba(244, 248, 251, 0.58);
  font-size: 0.68rem;
}

.app-dashboard-alarm-status {
  min-height: 20px;
  color: rgba(244, 248, 251, 0.68);
  font-size: 0.78rem;
  font-weight: 750;
}

.app-dashboard-alarm-status.is-error {
  color: #ffd1d1;
}

.app-dashboard-alarm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.app-dashboard-alarm-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 201, 90, 0.55);
  border-radius: 10px;
  color: #152033;
  background: #ffc95a;
  font-weight: 900;
}

.app-dashboard-alarm-button--ghost {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.app-dashboard-alarm-button[disabled] {
  opacity: 0.62;
  cursor: progress;
}

.project-status__ai-feedback {
  display: grid;
  gap: 0.45rem;
  min-width: 180px;
}

.project-status__notification-reaction {
  display: grid;
  gap: 0.4rem;
  min-width: 190px;
}

.project-status__ai-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.project-status__ai-feedback-actions .project-admin__table-button {
  min-height: 28px;
  padding: 0.25rem 0.5rem;
  font-size: 0.76rem;
}

body.app-theme .app-shell {
  width: calc(100% - 28px);
  padding: 0;
}

body.app-theme .app-main {
  padding-bottom: 28px !important;
}

body.app-theme .project-index,
body.app-theme .project-admin-page {
  max-width: 100%;
  min-width: 0;
  color: var(--app-text);
}

body.app-theme .project-index__hero,
body.app-theme .project-index__panel,
body.app-theme .project-admin__card,
body.app-theme .project-admin__body,
body.app-theme .project-permissions__summary,
body.app-theme .demo-panel,
body.app-theme .hero {
  border-color: var(--app-border);
  background: var(--app-panel);
  box-shadow: 0 24px 70px var(--app-shadow);
  backdrop-filter: blur(22px);
}

body.app-theme .project-index__hero,
body.app-theme .project-index__panel,
body.app-theme .project-admin__card,
body.app-theme .project-admin__body,
body.app-theme .project-admin__section-head,
body.app-theme .project-admin__catalog-toolbar,
body.app-theme .project-admin__catalog-form,
body.app-theme .project-admin__catalog-board,
body.app-theme .project-admin__drop-grid,
body.app-theme .project-admin__data-table-shell,
body.app-theme .project-admin__actor-groups {
  max-width: 100%;
  min-width: 0;
}

body.app-theme .project-index__hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
    var(--app-panel);
}

body.app-theme .project-index__hero h1 {
  font-size: clamp(1.7rem, 3vw, 3rem);
}

body.app-theme .project-index__hero .project-index__copy {
  max-width: 86ch;
  margin-bottom: 0;
}

body.app-theme .project-index__hero-actions {
  align-items: center;
}

body.app-theme .project-index__actor {
  min-width: 0;
}

body.app-theme .project-admin__catalog-toolbar {
  grid-template-columns: minmax(min(100%, 280px), 1.15fr) auto minmax(min(100%, 220px), 0.85fr);
}

body.app-theme .project-admin__catalog-form {
  grid-template-columns:
    minmax(min(100%, 130px), 0.8fr)
    minmax(min(100%, 220px), 1.35fr)
    minmax(min(100%, 110px), 0.65fr)
    minmax(min(100%, 170px), 1fr)
    minmax(min(100%, 170px), 1fr)
    minmax(min(100%, 76px), 0.42fr)
    auto;
}

body.app-theme .project-admin__catalog-board {
  grid-template-columns: minmax(220px, 0.95fr) minmax(220px, 0.95fr) minmax(260px, 1.2fr) minmax(220px, 0.95fr);
  overflow-x: auto;
  padding-bottom: 4px;
}

body.app-theme .project-admin__catalog-column,
body.app-theme .project-admin__catalog-list,
body.app-theme .project-admin__active-users-list {
  min-width: 0;
}

body.app-theme .project-admin__active-users-list {
  max-height: min(36vh, 420px);
  overflow: auto;
}

body.app-theme .project-admin__drop-grid {
  grid-template-columns: repeat(3, minmax(min(100%, 260px), 1fr));
}

body.app-theme .project-admin__drop-zone {
  min-width: 0;
}

body.app-theme .project-admin__drop-zone-icon {
  flex: 0 0 auto;
  width: clamp(50px, 6ch, 72px);
  min-height: 76px;
  padding: 0 8px;
  font-size: clamp(0.98rem, 1.4vw, 1.28rem);
}

body.app-theme .project-admin__data-table-shell {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

body.app-theme .project-admin__data-table--users {
  min-width: min(1120px, 240vw);
}

body.app-theme .project-admin__data-table--permissions {
  min-width: min(1320px, 260vw);
}

body.app-theme .project-admin__data-table td strong,
body.app-theme .project-admin__data-table td span:not(.project-admin__state):not(.project-admin__table-badge) {
  max-width: 190px;
}

body.app-theme .project-index__copy,
body.app-theme .project-admin__subtle,
body.app-theme .project-index__actor-meta,
body.app-theme .project-index__empty,
body.app-theme .project-dashboard__metric span,
body.app-theme .project-dashboard__metric small,
body.app-theme .project-admin__summary-main span,
body.app-theme .project-admin__field span,
body.app-theme .project-admin__field label,
body.app-theme .project-admin__field p,
body.app-theme .project-index__count,
body.app-theme .project-index__table td {
  color: var(--app-muted);
}

body.app-theme .eyebrow {
  color: var(--app-accent-2);
}

body.app-theme .project-index h1,
body.app-theme .project-index h2,
body.app-theme .project-index h3,
body.app-theme .project-dashboard__metric strong,
body.app-theme .project-admin__summary-main strong,
body.app-theme .project-index__actor-meta strong {
  color: #fff;
}

body.app-theme .project-dashboard__metric,
body.app-theme .project-dashboard__config label {
  border-color: var(--app-border);
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.09);
}

body.app-theme .project-dashboard__config {
  border-top-color: var(--app-border);
}

body.app-theme .project-admin__badge,
body.app-theme .project-index__secondary,
body.app-theme .project-index__icon-action,
body.app-theme .project-admin__state,
body.app-theme .project-admin__nav-action {
  border-color: var(--app-border);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.10);
}

body.app-theme .project-index__table-shell {
  border-color: var(--app-border);
  background: rgba(10, 20, 32, 0.18);
}

body.app-theme .project-index__table {
  background: rgba(255, 255, 255, 0.05);
}

body.app-theme .project-index__table th,
body.app-theme .project-index__table td {
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

body.app-theme .project-index__table th {
  color: rgba(244, 248, 251, 0.86);
  background: rgba(255, 255, 255, 0.12);
}

body.app-theme .project-index__table td {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}

body.app-theme .project-index__table-project-link,
body.app-theme .project-index__table-schedule strong {
  color: #fff;
}

body.app-theme .project-index__table-project span,
body.app-theme .project-index__table-schedule span {
  color: rgba(244, 248, 251, 0.78);
}

body.app-theme .project-index__primary {
  border-color: rgba(246, 184, 70, 0.58);
  color: #172536;
  background: linear-gradient(135deg, var(--app-accent), #ffe08c);
  box-shadow: 0 16px 32px rgba(246, 184, 70, 0.22);
}

body.app-theme .project-index__secondary:hover,
body.app-theme .project-index__icon-action:hover,
body.app-theme .project-admin__nav-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

body.app-theme .project-admin__field input,
body.app-theme .project-admin__field select,
body.app-theme .project-admin__field textarea,
body.app-theme .project-index input,
body.app-theme .project-index select,
body.app-theme .project-index textarea {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(10, 20, 32, 0.28);
}

body.app-theme .project-admin__field input::placeholder,
body.app-theme .project-admin__field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

body.app-theme .project-admin__permission-item {
  border-color: rgba(12, 45, 53, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(234, 242, 239, 0.72)),
    rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 10px 26px rgba(8, 18, 28, 0.08);
}

body.app-theme .project-admin__permission-item strong {
  color: #15252c;
}

body.app-theme .project-admin__permission-item small,
body.app-theme .project-admin__permission-note {
  color: #5f6d70;
}

body.app-theme .project-admin__permission-group-label {
  color: #3e5962;
}

body.app-theme .project-admin__permission-item label {
  border-color: rgba(15, 118, 110, 0.16);
  color: #203036;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 2px 8px rgba(8, 18, 28, 0.06);
}

body.app-theme .project-admin__permission-pill {
  border-color: rgba(62, 76, 82, 0.28);
  color: #25333a;
  background: rgba(255, 255, 255, 0.88);
}

body.app-theme .project-admin__permission-pill.is-on {
  border-color: rgba(255, 214, 102, 0.86);
  color: #1e2630;
  background: linear-gradient(135deg, #ffe38a, #ffc247);
  box-shadow: 0 8px 20px rgba(255, 194, 71, 0.28);
}

body.app-theme .project-admin__permission-pill::before {
  color: #15202c;
  background: rgba(255, 255, 255, 0.72);
}

body.app-theme .project-admin__permission-pill.is-on::before {
  color: #1e2630;
  background: #fff8df;
}

body.app-theme .project-admin__permission-pill.is-off {
  border-color: rgba(87, 101, 106, 0.28);
  color: #5d686d;
  background: rgba(222, 229, 228, 0.92);
}

body.app-theme .project-admin__permission-empty {
  color: rgba(244, 248, 251, 0.58);
}

body.app-theme .project-admin__data-table .project-admin__name-edit-action {
  border-color: rgba(115, 231, 255, 0.26);
  color: #dff7ff;
  background: rgba(15, 118, 130, 0.22);
}

body.app-theme .project-admin__data-table .project-admin__name-edit-action:hover,
body.app-theme .project-admin__data-table .project-admin__name-edit-action:focus-visible {
  color: #102535;
  border-color: rgba(255, 212, 108, 0.62);
  background: linear-gradient(135deg, #ffe38a, #ffc247);
}

body.app-theme .project-index option {
  color: #172536;
}

body.app-theme .app-footer {
  color: rgba(255, 255, 255, 0.58) !important;
}

@media (max-width: 980px) {
  .app-dashboard-shell {
    grid-template-columns: 1fr;
  }

  .app-dashboard-sidebar {
    min-height: auto;
    display: grid;
    gap: 14px;
    padding: 14px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .app-dashboard-nav {
    display: flex;
    gap: 8px;
    margin-top: 0;
    overflow-x: auto;
  }

  .app-dashboard-nav__label {
    display: none;
  }

  .app-dashboard-nav__item {
    flex: 0 0 auto;
  }

  .app-dashboard-topbar {
    flex-wrap: wrap;
    padding: 10px 12px;
  }

  .app-dashboard-search {
    width: 100%;
  }

  .app-dashboard-active-project {
    flex: 1 1 min(100%, 320px);
    max-width: 100%;
  }

  .app-dashboard-user__meta {
    display: none;
  }

  body.app-theme .app-shell {
    width: calc(100% - 24px);
  }

  body.app-theme .project-index__hero {
    grid-template-columns: 1fr;
  }

  body.app-theme .project-index__hero-actions {
    width: 100%;
    flex-wrap: wrap;
    align-items: stretch;
  }

  body.app-theme .project-index__hero-actions > * {
    flex: 1 1 min(100%, 220px);
  }

  body.app-theme .project-admin__catalog-toolbar,
  body.app-theme .project-admin__catalog-form,
  body.app-theme .project-admin__drop-grid,
  body.app-theme .project-admin__actor-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.app-theme .project-admin__catalog-board {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .app-dashboard-rule-options {
    grid-template-columns: 1fr;
  }

  .app-dashboard-ollama-config__grid,
  .app-dashboard-ollama-config__links,
  .app-dashboard-ai-training__grid {
    grid-template-columns: 1fr;
  }

  .app-dashboard-ai-training-candidate {
    grid-template-columns: 1fr;
  }
}

.project-dashboard__inbox {
  display: grid;
  gap: 18px;
}

.project-dashboard__inbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.project-dashboard__inbox-summary span {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(244, 248, 251, 0.82);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  font-weight: 850;
}

.project-dashboard__inbox-list {
  display: grid;
  gap: 10px;
}

.project-dashboard__inbox-empty {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  color: rgba(244, 248, 251, 0.72);
  background: rgba(255, 255, 255, 0.055);
}

.project-dashboard__inbox-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: center;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-left: 4px solid rgba(80, 226, 240, 0.72);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    rgba(14, 28, 42, 0.46);
}

.project-dashboard__inbox-item.is-pending {
  border-left-color: #ffc95a;
}

.project-dashboard__inbox-item.is-accepted {
  border-left-color: #5ee3bd;
}

.project-dashboard__inbox-item.is-rejected {
  border-left-color: #d75b4f;
}

.project-dashboard__inbox-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.project-dashboard__inbox-title h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 950;
}

.project-dashboard__inbox-main p {
  margin: 7px 0 0;
  color: rgba(244, 248, 251, 0.78);
  font-size: 0.86rem;
  line-height: 1.38;
}

.project-dashboard__inbox-kind,
.project-dashboard__inbox-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #eaffff;
  background: rgba(19, 143, 132, 0.88);
  font-size: 0.66rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.project-dashboard__inbox-kind--alarm {
  color: #2a1808;
  background: #ffc95a;
}

.project-dashboard__inbox-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 9px;
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.76rem;
  font-weight: 750;
}

.project-dashboard__inbox-state {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}

.project-dashboard__inbox-state small {
  color: rgba(244, 248, 251, 0.62);
  font-size: 0.72rem;
  font-weight: 750;
}

.project-dashboard__inbox-state a {
  color: #8be9f5;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
}

.project-dashboard__inbox-state a:hover,
.project-dashboard__inbox-state a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.project-dashboard__inbox-badge.is-pending {
  color: #241701;
  background: #ffc95a;
}

.project-dashboard__inbox-badge.is-accepted {
  color: #05251d;
  background: #5ee3bd;
}

.project-dashboard__inbox-badge.is-rejected {
  color: #fff1ef;
  background: #d75b4f;
}

.project-dashboard__inbox-badge.is-read {
  color: rgba(244, 248, 251, 0.86);
  background: rgba(255, 255, 255, 0.14);
}

@media (max-width: 760px) {
  .project-dashboard__inbox-item {
    grid-template-columns: 1fr;
  }

  .project-dashboard__inbox-state {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .app-dashboard-sidebar {
    padding: 12px;
  }

  .app-dashboard-topbar {
    gap: 8px;
  }

  .app-dashboard-actions {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .app-dashboard-active-project {
    min-width: 0;
    padding-inline: 10px;
  }

  .app-dashboard-chip {
    display: none;
  }

  body.app-theme .app-shell {
    width: calc(100% - 16px);
  }

  body.app-theme .project-index {
    gap: 14px;
    padding-top: 14px;
  }

  body.app-theme .project-index__hero,
  body.app-theme .project-index__panel {
    border-radius: 20px;
  }

  body.app-theme .project-index__hero {
    padding: 14px;
  }

  body.app-theme .project-index__hero h1 {
    font-size: clamp(1.35rem, 8vw, 2rem);
  }

  body.app-theme .project-index__hero-actions,
  body.app-theme .project-admin__section-head {
    flex-direction: column;
    align-items: stretch;
  }

  body.app-theme .project-admin__catalog-toolbar,
  body.app-theme .project-admin__catalog-form,
  body.app-theme .project-admin__drop-grid,
  body.app-theme .project-admin__actor-groups {
    grid-template-columns: 1fr;
  }

  body.app-theme .project-admin__catalog-board {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  body.app-theme .project-admin__drop-zone {
    grid-template-columns: 52px minmax(0, 1fr);
    padding: 12px;
    border-radius: 18px;
  }

  body.app-theme .project-admin__drop-zone-icon {
    width: 52px;
    min-height: 64px;
  }

  body.app-theme .project-admin__data-table--users {
    min-width: 920px;
  }
}
