
body.abotrix-v12-ui #appView {
  min-height: 100vh;
  background: #f5f7fb;
}

body.abotrix-v12-ui #appView > aside.v12-sidebar {
  width: 270px;
  padding: 22px 16px 18px;
  background:
    radial-gradient(circle at 15% 5%, rgba(249, 115, 22, 0.14), transparent 23%),
    linear-gradient(180deg, #101827 0%, #111827 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 12px 0 38px rgba(15, 23, 42, 0.12);
}

body.abotrix-v12-ui .v12-sidebar .brand {
  position: relative;
  margin: 0 4px 22px;
  padding: 7px 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.abotrix-v12-ui .v12-sidebar .brand img {
  display: block;
  max-width: 182px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}

body.abotrix-v12-ui .v12-sidebar .brand small {
  display: none;
}

body.abotrix-v12-ui .v12-edition-badge {
  display: inline-flex;
  margin-top: 11px;
  padding: 5px 9px;
  border: 1px solid rgba(249, 115, 22, 0.38);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: #fdba74;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body.abotrix-v12-ui #nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}

body.abotrix-v12-ui #nav .v12-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #aeb9cb;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

body.abotrix-v12-ui #nav .v12-nav-item:hover {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: none;
}

body.abotrix-v12-ui #nav .v12-nav-item.active,
body.abotrix-v12-ui #nav .v12-nav-item[aria-current="page"] {
  border-color: rgba(249, 115, 22, 0.25);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.24), rgba(249, 115, 22, 0.1));
  color: #ffffff;
  box-shadow: inset 3px 0 0 #f97316;
}

body.abotrix-v12-ui .v12-nav-icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.055);
  color: #cbd5e1;
  font-size: 15px;
}

body.abotrix-v12-ui #nav .active .v12-nav-icon,
body.abotrix-v12-ui #nav [aria-current="page"] .v12-nav-icon {
  background: #f97316;
  color: #ffffff;
}

body.abotrix-v12-ui .v12-sidebar .logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
}

body.abotrix-v12-ui #appView > main {
  min-width: 0;
  padding: 0 26px 38px;
  background:
    radial-gradient(circle at 95% 0%, rgba(59, 130, 246, 0.055), transparent 28%),
    #f5f7fb;
}

.v12-topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
  margin: 0 -26px 24px;
  padding: 14px 28px;
  border-bottom: 1px solid #e5eaf2;
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.v12-command-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 540px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #dde4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.v12-command-search:focus-within {
  border-color: #fb923c;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.v12-command-search input {
  flex: 1;
  min-width: 0;
  min-height: 0 !important;
  height: 42px;
  padding: 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}

.v12-search-icon {
  color: #64748b;
  font-size: 21px;
}

.v12-command-search kbd,
.v12-command-dialog kbd {
  padding: 4px 7px;
  border: 1px solid #d8dee8;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #ffffff;
  color: #64748b;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
}

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

.v12-system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid #dcfce7;
  border-radius: 11px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
}

.v12-system-status.offline {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.v12-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}

.v12-system-status.offline .v12-status-dot {
  background: #f97316;
}

.v12-icon-button {
  position: relative;
  display: grid;
  width: 43px;
  min-height: 43px !important;
  place-items: center;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  box-shadow: none;
}

.v12-notification-dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #f97316;
}

.v12-user-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px !important;
  padding: 5px 9px 5px 5px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #172033;
  box-shadow: none;
}

.v12-avatar {
  display: grid;
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.v12-avatar.large {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}

.v12-user-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.v12-user-copy strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-user-copy small {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.v12-chevron {
  color: #94a3b8;
}

.v12-user-menu {
  position: fixed;
  top: 68px;
  right: 27px;
  z-index: 10000;
  width: 240px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.18);
}

.v12-user-menu-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: #f8fafc;
}

.v12-user-menu-header div {
  display: flex;
  flex-direction: column;
}

.v12-user-menu-header strong {
  font-size: 12px;
}

.v12-user-menu-header small {
  font-size: 9px;
}

.v12-user-menu button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #334155;
  text-align: left;
  box-shadow: none;
}

.v12-user-menu button:hover {
  background: #f1f5f9;
  transform: none;
}

.v12-user-menu button.danger {
  color: #dc2626;
}

.v12-user-menu hr {
  border: 0;
  border-top: 1px solid #edf1f5;
}

.v12-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 5px 0 22px;
  background: transparent !important;
}

.v12-page-header > div:first-child {
  max-width: 750px;
}

.v12-page-header h1 {
  margin: 4px 0 5px;
  font-size: clamp(25px, 3vw, 34px);
}

.v12-page-header p {
  margin: 0;
}

.v12-page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.v12-secondary-button,
.v12-primary-button {
  min-height: 42px !important;
  padding: 8px 14px;
}

.v12-secondary-button {
  border: 1px solid #dbe2ea;
  background: #ffffff;
  color: #334155;
}

.v12-primary-button {
  border: 1px solid #f97316;
  background: linear-gradient(135deg, #fb923c, #ea580c);
  color: #ffffff;
}

.v12-command-overlay {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(6px);
}

.v12-command-dialog {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 19px;
  background: #ffffff;
  box-shadow: 0 28px 85px rgba(15, 23, 42, 0.3);
}

.v12-command-dialog-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid #e5eaf1;
}

.v12-command-dialog-header input {
  flex: 1;
  min-height: 38px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 15px;
}

.v12-command-results {
  max-height: 390px;
  overflow-y: auto;
  padding: 8px;
}

.v12-command-results button {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 8px 11px;
  border: 0;
  background: transparent;
  color: #1e293b;
  text-align: left;
  box-shadow: none;
}

.v12-command-results button:hover {
  background: #fff7ed;
  transform: none;
}

.v12-command-results button small {
  color: #94a3b8;
  font-size: 10px;
}

.v12-command-item-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: #f1f5f9;
}

.v12-empty-command {
  padding: 28px;
  color: #64748b;
  text-align: center;
}

.v12-toast-container {
  position: fixed;
  right: 20px;
  bottom: 74px;
  z-index: 30000;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.v12-toast {
  width: min(340px, calc(100vw - 30px));
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #f97316;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  animation: v12ToastIn 180ms ease-out;
}

.v12-toast strong {
  font-size: 13px;
}

.v12-toast p {
  margin: 4px 0 0;
  font-size: 11px;
}

.v12-toast.leaving {
  opacity: 0;
  transform: translateY(8px);
  transition: 200ms ease;
}

@keyframes v12ToastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1050px) {
  body.abotrix-v12-ui #appView > aside.v12-sidebar {
    width: 224px;
  }

  .v12-system-status,
  .v12-user-copy,
  .v12-chevron {
    display: none;
  }
}

@media (max-width: 760px) {
  body.abotrix-v12-ui #appView {
    display: block;
  }

  body.abotrix-v12-ui #appView > aside.v12-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  body.abotrix-v12-ui #appView > main {
    padding: 0 14px 30px;
  }

  .v12-topbar {
    margin: 0 -14px 18px;
    padding: 11px 14px;
  }

  .v12-command-search kbd {
    display: none;
  }

  .v12-page-header {
    flex-direction: column;
  }

  .v12-page-actions {
    width: 100%;
  }

  .v12-page-actions button {
    flex: 1;
  }
}
