﻿@charset "UTF-8";
:root {
  --bs-code-color: #db6ca3;
}

.text-right {
  text-align: right;
}

.aim-btm-section-sep {
  border-top: 1px solid var(--aim-border, #2a2d45);
  margin-top: 14px;
  padding-top: 10px;
}

.aim-filter-hidden {
  display: none !important;
}

.is-hidden {
  display: none;
}

.aim-plus-minus {
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.aim-plus-minus-btn {
  background: none;
  border: 1px solid var(--aim-border, #2a2d45);
  color: var(--aim-text, #e0e0e8);
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.15s;
}
.aim-plus-minus-btn:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-plus-minus-btn:last-child {
  border-radius: 0 6px 6px 0;
}
.aim-plus-minus-btn:hover {
  background: var(--aim-hover-bg, rgba(255, 255, 255, 0.08));
}
.aim-plus-minus-input {
  width: 48px;
  text-align: center;
  border: 1px solid var(--aim-border, #2a2d45);
  border-left: none;
  border-right: none;
  background: none;
  color: var(--aim-text, #e0e0e8);
  font-size: 0.9rem;
  height: 28px;
  padding: 0 4px;
}
.aim-plus-minus-input::-webkit-outer-spin-button, .aim-plus-minus-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

/*.aim-section {
    &-heading {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        font-weight: 600;
        color: var(--aim-text-dim, #8b8fa3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;

        &-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1; // This span grows to fill all space not taken by the button

            &::after {
                content: '';
                flex: 1; // This line grows to fill all space not taken by the text/badge
                height: 1px;
                border-top: dotted 1px var(--aim-border, #2a2d45);
            }
        }

        &-btn {
            flex-shrink: 0; // Ensures the button doesn't squish

            &:hover{
                color: $accent !important;
                border-color: $accent;
            }
        }
    }
}*/
/*.aim-section {
    &-heading, &-heading-with-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 11px;
        font-weight: 600;
        color: var(--aim-text-dim, #8b8fa3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 8px;
    }

    &-heading::after {
        content: '';
        flex: 1;
        height: 1px;
        border-top: dotted 1px var(--aim-border, #2a2d45);
    }

    &-heading-with-actions {
        &-content {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;

            &::after {
                content: '';
                flex: 1;
                height: 1px;
                border-top: dotted 1px var(--aim-border, #2a2d45);
                margin-left: 10px;
            }
        }
    }
}
*/
.aim-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.aim-section-heading-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.aim-section-heading-content::after {
  content: "";
  flex: 1;
  height: 1px;
  border-top: dotted 1px var(--aim-border, #2a2d45);
  margin-left: 10px;
}
.aim-section-heading-btn {
  flex-shrink: 0;
  border-style: dashed !important;
}
.aim-section-heading-btn:hover {
  color: #6366f1 !important;
  border-color: #6366f1 !important;
  border-style: solid !important;
  background-color: var(--aim-accent-dim, rgba(99, 102, 241, 0.3)) !important;
}

.aim-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--aim-text-dim, #8b8fa3);
  gap: 16px;
  font-size: 15px;
}
.aim-empty-state i {
  opacity: 0.3;
}

.aim-inline-sep {
  color: var(--aim-text-dim, #8b8fa3);
  margin: 0 2px;
  font-weight: 300;
}

.aim-tab-badge {
  display: inline-block;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  background: var(--aim-accent-dim, rgba(99, 102, 241, 0.3));
  color: var(--aim-accent-hover, #818cf8);
  border-radius: 8px;
  padding: 0 4px;
  margin-left: 4px;
}
.aim-tab-badge .fa-check {
  position: relative;
  left: -1px;
}
.aim-tab-check {
  font-size: 10px;
  color: var(--aim-text-dim, #8b8fa3);
  margin-left: 3px;
  opacity: 0.7;
}
.aim-tab-sep {
  padding: 0 0.5rem;
}

.aim-aicost-loading {
  color: var(--aim-text-dim, #8b8fa3);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 2px;
}
.aim-aicost-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.03));
  padding: 16px 14px;
  margin: 8px 0 14px;
}
.aim-aicost-total-icon {
  color: var(--aim-green, #22c55e);
  font-size: 20px;
}
.aim-aicost-total {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--aim-text-bright, #ffffff);
}
.aim-aicost-total-label {
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aim-aicost-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.aim-aicost-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--aim-text-dim, #8b8fa3);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.aim-aicost-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--aim-bg-card, #1c1f2e);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 8px;
  overflow: hidden;
}
.aim-aicost-table th,
.aim-aicost-table td {
  padding: 7px 9px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
  text-align: right;
  font-size: 12px;
}
.aim-aicost-table tbody td {
  color: var(--aim-text, #e0e0e8);
}
.aim-aicost-table th:first-child,
.aim-aicost-table td:first-child {
  text-align: left;
  width: 45%;
}
.aim-aicost-table thead th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--aim-text-dim, #8b8fa3);
  background: var(--aim-bg-hover, #252840);
}
.aim-aicost-table tbody tr:last-child td {
  border-bottom: 0;
}
.aim-aicost-table tbody tr:hover td {
  background: var(--aim-bg-hover, #252840);
}

.aim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--aim-radius, 6px);
  border: 1px solid var(--aim-border, #2a2d45);
  background: var(--aim-bg-card, #1c1f2e);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--aim-transition, 0.2s ease);
  white-space: nowrap;
}
.aim-btn:hover {
  background: var(--aim-bg-hover, #252840);
  border-color: var(--aim-border-light, #363a54);
}
.aim-btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}
.aim-btn-xs {
  padding: 3px 8px;
  font-size: 11px;
  gap: 4px;
}
.aim-btn-primary {
  background: var(--aim-accent, #6366f1);
  border-color: var(--aim-accent, #6366f1);
  color: var(--aim-white, #fff);
}
.aim-btn-primary:hover {
  background: var(--aim-accent-hover, #818cf8);
  border-color: var(--aim-accent-hover, #818cf8);
}
.aim-btn-accent {
  background: var(--aim-cyan, #06b6d4);
  border-color: var(--aim-cyan, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-accent:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-success {
  background: var(--aim-green, #22c55e);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-white, #fff);
}
.aim-btn-success:hover {
  background: var(--aim-green-light, #86efac);
  border-color: var(--aim-green-light, #86efac);
}
.aim-btn-danger {
  background: var(--aim-red, #ef4444);
  border-color: var(--aim-red, #ef4444);
  color: var(--aim-white, #fff);
}
.aim-btn-danger:hover {
  background: var(--aim-red-hover, #f87171);
  border-color: var(--aim-red-hover, #f87171);
}
.aim-btn-warning {
  background: var(--aim-yellow, #eab308);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-text-dark, #1a1a1a);
}
.aim-btn-warning:hover {
  background: #f59e0b;
  border-color: #f59e0b;
}
.aim-btn-info {
  background: var(--aim-info, #06b6d4);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-info:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-question {
  background: var(--aim-info, #06b6d4);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-white, #fff);
}
.aim-btn-question:hover {
  background: var(--aim-cyan-hover, #22d3ee);
  border-color: var(--aim-cyan-hover, #22d3ee);
}
.aim-btn-ghost {
  border: dashed 1px #2a2d45;
  background: transparent;
}
.aim-btn-ghost:hover {
  border-style: solid;
}
.aim-btn-secondary {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  color: var(--aim-brand-hover, #818cf8);
  border: 1px solid rgba(99, 102, 241, 0.3);
}
.aim-btn-secondary:hover {
  background: rgba(99, 102, 241, 0.25);
}
.aim-btn-block, .aim-btn-full {
  display: flex;
  width: 100%;
  justify-content: center;
}
.aim-btn-outline {
  background: transparent;
  border-color: var(--aim-border-light, #363a54);
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-btn-outline:hover {
  background: var(--aim-bg-hover, #252840);
  color: var(--aim-text, #e0e0e8);
}
.aim-btn-outline.aim-btn-success {
  color: var(--aim-green, #22c55e);
  border-color: rgba(34, 197, 94, 0.4);
}
.aim-btn-outline.aim-btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-green, #22c55e);
}
.aim-btn-outline.aim-btn-danger {
  color: var(--aim-red, #ef4444);
  border-color: rgba(239, 68, 68, 0.4);
}
.aim-btn-outline.aim-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--aim-red, #ef4444);
}
.aim-btn-outline.aim-btn-warning {
  color: var(--aim-yellow, #eab308);
  border-color: rgba(234, 179, 8, 0.4);
}
.aim-btn-outline.aim-btn-warning:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-yellow, #eab308);
}
.aim-btn-outline.aim-btn-info {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline.aim-btn-info:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
}
.aim-btn-outline.aim-btn-question {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline.aim-btn-question:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
}
.aim-btn-outline.aim-btn-primary {
  color: var(--aim-accent, #6366f1);
  border-color: rgba(99, 102, 241, 0.4);
}
.aim-btn-outline.aim-btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--aim-accent, #6366f1);
}
.aim-btn-outline .aim-btn {
  background: transparent;
}
.aim-btn-outline .aim-btn.aim-btn-success {
  color: var(--aim-green, #22c55e);
  border-color: rgba(34, 197, 94, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-success:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--aim-green, #22c55e);
  color: var(--aim-green, #22c55e);
}
.aim-btn-outline .aim-btn.aim-btn-danger {
  color: var(--aim-red, #ef4444);
  border-color: rgba(239, 68, 68, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: var(--aim-red, #ef4444);
  color: var(--aim-red, #ef4444);
}
.aim-btn-outline .aim-btn.aim-btn-warning {
  color: var(--aim-yellow, #eab308);
  border-color: rgba(234, 179, 8, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-warning:hover {
  background: rgba(234, 179, 8, 0.2);
  border-color: var(--aim-yellow, #eab308);
  color: var(--aim-yellow, #eab308);
}
.aim-btn-outline .aim-btn.aim-btn-info {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-info:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-info, #06b6d4);
}
.aim-btn-outline .aim-btn.aim-btn-question {
  color: var(--aim-info, #06b6d4);
  border-color: rgba(6, 182, 212, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-question:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: var(--aim-info, #06b6d4);
  color: var(--aim-info, #06b6d4);
}
.aim-btn-outline .aim-btn.aim-btn-primary {
  color: var(--aim-accent, #6366f1);
  border-color: rgba(99, 102, 241, 0.4);
}
.aim-btn-outline .aim-btn.aim-btn-primary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--aim-accent, #6366f1);
  color: var(--aim-accent, #6366f1);
}
.aim-btn.disabled, .aim-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.aim-btn.disabled:hover, .aim-btn[disabled]:hover {
  filter: none;
}

.aim-select {
  padding: 6px 12px;
  background: var(--aim-bg-input, #1a1d2b);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius, 6px);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  outline: none;
}
.aim-select:focus {
  border-color: var(--aim-accent, #6366f1);
}
.aim-select option {
  background: var(--aim-bg-card, #1c1f2e);
  color: var(--aim-text, #e0e0e8);
}

.aim-input {
  width: 100%;
  padding: 8px 12px;
  background: var(--aim-bg-input, #1a1d2b);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius, 6px);
  color: var(--aim-text, #e0e0e8);
  font-size: 13px;
  outline: none;
  transition: border-color var(--aim-transition, 0.2s ease);
}
.aim-input:focus {
  border-color: var(--aim-accent, #6366f1);
}
.aim-input.aim-input-error {
  border-color: var(--aim-danger, #ef4444);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

textarea.aim-input {
  resize: vertical;
  min-height: 60px;
  font-family: var(--aim-font, Segoe UI, -apple-system, BlinkMacSystemFont, sans-serif);
}

input[type=number].aim-input {
  -moz-appearance: textfield;
}
input[type=number].aim-input::-webkit-outer-spin-button, input[type=number].aim-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.aim-user-avatar-wrap {
  position: relative;
}

.aim-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aim-brand, #6366f1);
  color: var(--aim-white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 2px solid var(--aim-white-20, rgba(255, 255, 255, 0.2));
  transition: border-color 0.15s;
  overflow: hidden;
}
.aim-user-avatar:hover {
  border-color: var(--aim-brand-hover, #818cf8);
}

.aim-user-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.aim-user-initials {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  user-select: none;
}

.aim-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  min-width: 260px;
  z-index: 9999;
  overflow: hidden;
}
.aim-user-menu.open {
  display: block;
}

.aim-user-menu-header {
  padding: 16px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}

.aim-user-menu-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--aim-white, #fff);
}

.aim-user-menu-email {
  font-size: 0.8rem;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-user-menu-org {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  border-radius: 6px;
  font-size: 0.8rem;
}

.aim-user-menu-org-label {
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aim-user-menu-org-name {
  font-weight: 600;
  color: var(--aim-brand-hover, #818cf8);
  display: flex;
  align-items: center;
  gap: 6px;
}

.aim-user-menu-org-switch {
  font-size: 0.75rem;
  color: var(--aim-brand-hover, #818cf8);
  cursor: pointer;
  text-decoration: underline;
  margin-top: 2px;
}

.aim-user-menu-items {
  padding: 6px 0;
}

.aim-user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--aim-text, #e0e0e8);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
}
.aim-user-menu-item:hover {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  color: var(--aim-brand-hover, #818cf8);
}
.aim-user-menu-item:hover i {
  color: var(--aim-brand-hover, #818cf8);
}
.aim-user-menu-item i {
  width: 18px;
  text-align: center;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-navbar-inner .aim-user-menu-item {
  font-size: 0.88rem;
}

.aim-user-menu-signout {
  color: var(--aim-red, #ef4444);
}
.aim-user-menu-signout i {
  color: var(--aim-red, #ef4444) !important;
}
.aim-user-menu-signout:hover {
  color: var(--aim-red-hover, #f87171);
  background: var(--aim-red-dim, rgba(239, 68, 68, 0.15)) !important;
}
.aim-user-menu-signout:hover i {
  color: var(--aim-red-hover, #f87171) !important;
}

.aim-user-menu-version {
  text-align: right;
  padding: 4px 14px 6px;
  font-size: 0.7rem;
  color: var(--aim-text-dim, #8b8fa3);
  opacity: 0.5;
}

.aim-user-menu-divider {
  height: 1px;
  background: var(--aim-border, #2a2d45);
  margin: 4px 0;
}

.aim-user-menu-section-label {
  padding: 6px 16px 2px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-input,
.aim-select {
  display: block;
  width: 100%;
  padding: 9px 12px;
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: 8px;
  color: var(--aim-text, #e0e0e8);
  font-size: 0.9rem;
  transition: border-color 0.15s;
}
.aim-input:focus,
.aim-select:focus {
  outline: none;
  border-color: var(--aim-brand, #6366f1);
  box-shadow: 0 0 0 3px var(--aim-brand-dim, rgba(99, 102, 241, 0.2));
}
.aim-input::placeholder,
.aim-select::placeholder {
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-input:-webkit-autofill,
.aim-input:-webkit-autofill:hover,
.aim-input:-webkit-autofill:focus,
.aim-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--aim-dark-card, #1c2137) inset !important;
  -webkit-text-fill-color: var(--aim-text, #e0e0e8) !important;
  caret-color: var(--aim-text, #e0e0e8);
  transition: background-color 5000s ease-in-out 0s;
}

.aim-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8fa3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.aim-form-group {
  margin-bottom: 16px;
}
.aim-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.aim-form-group label.aim-checkbox, .aim-form-group label.aim-radio-label {
  text-transform: none;
  font-size: 0.9rem;
  font-weight: normal;
  color: var(--aim-text, #e0e0e8);
  letter-spacing: normal;
}

.aim-form-error {
  display: block;
  font-size: 0.8rem;
  color: var(--aim-red, #ef4444);
  margin-top: 4px;
}

.aim-form-hint {
  font-size: 0.8rem;
  color: var(--aim-text-dim, #8b8fa3);
  font-weight: 400;
}

/*.aim-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;

    i { margin-top: 1px; flex-shrink: 0; }
}

.aim-alert--success {
    background: var(--aim-green-dim, rgba(34, 197, 94, 0.15));
    border: 1px solid var(--aim-green-dim, rgba(34, 197, 94, 0.15));
    color: var(--aim-green-light, #86efac);
}

.aim-alert--danger {
    background: var(--aim-red-dim, rgba(239, 68, 68, 0.15));
    border: 1px solid var(--aim-red-dim, rgba(239, 68, 68, 0.15));
    color: var(--aim-red, #ef4444);
}

.aim-alert--info {
    background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--aim-brand-hover, #818cf8);
}
*/
.aim-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.aim-table th,
.aim-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}
.aim-table th {
  font-weight: 600;
  color: var(--aim-text-dim, #8b8fa3);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.aim-table td {
  color: var(--aim-text, #e0e0e8);
}
.aim-table tr:last-child td {
  border-bottom: none;
}

.aim-inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.aim-inline-form .aim-input {
  flex: 1;
}

.aim-form-group-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.aim-form-group-inline label {
  margin-bottom: 0;
}

.aim-radio-option,
.aim-chk-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
}
.aim-radio-option input,
.aim-chk-option input {
  margin-top: 3px;
}

.aim-radio-label {
  display: block;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--aim-text, #e0e0e8);
  margin-bottom: 6px;
}
.aim-radio-label input[type=radio] {
  accent-color: var(--aim-brand, #6366f1);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
}

.aim-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--aim-text, #e0e0e8);
  white-space: nowrap;
}
.aim-checkbox input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--aim-border, #2a2d45);
  border-radius: 4px;
  background: var(--aim-card-bg, #1c2137);
  cursor: pointer;
  position: relative;
  top: 4px;
  margin-right: 0.2rem;
  top: 2px;
  transition: all 0.15s;
  flex-shrink: 0;
}
.aim-checkbox input[type=checkbox]:checked {
  background: var(--aim-brand, #6366f1);
  border-color: var(--aim-brand, #6366f1);
}
.aim-checkbox input[type=checkbox]:checked::after {
  content: "✓";
  position: absolute;
  top: -3px;
  left: 2px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.aim-checkbox input[type=checkbox]:hover {
  border-color: var(--aim-brand, #6366f1);
}

.aim-auth-tagline {
  font-size: 1.1rem;
  color: var(--aim-brand, #6366f1);
  margin: 4px 0 20px 0;
  color: var(--aim-white-65, rgba(255, 255, 255, 0.65));
  padding: 9px 15px;
  border-left: solid 3px var(--aim-brand, #6366f1);
  background: var(--aim-accent-dim, rgba(99, 102, 241, 0.3));
  font-weight: 200;
  border-radius: 5px;
}
.aim-auth-tagline .fa-solid {
  font-size: 1.5rem;
  margin-right: 0.3rem;
}

.aim-detail-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
  gap: 0;
  flex-shrink: 0;
  margin-bottom: 15px;
}

.aim-detail-tab {
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--aim-text-dim, #8b8fa3);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.aim-detail-tab:hover {
  color: var(--aim-text, #e0e0e8);
}
.aim-detail-tab.active {
  color: var(--aim-brand-hover, #818cf8);
  border-bottom-color: var(--aim-brand, #6366f1);
}
.aim-detail-tab.aim-detail-tab-chk {
  padding-right: 22px;
}
.aim-detail-tab.aim-detail-tab-chk input {
  position: relative;
  top: 5px;
  left: 8px;
}

.aim-detail-tab-pane {
  display: none;
}
.aim-detail-tab-pane.active {
  display: block;
}

.aim-settings-btn-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.aim-avatar-center-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 24px;
  gap: 12px;
}

.aim-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  border: 2px dashed var(--aim-border, #2a2d45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 2.2rem;
}

.aim-file-picker input[type=file] {
  display: none;
}

.aim-file-picker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.15));
  color: var(--aim-brand-hover, #818cf8);
  border: 1px solid rgba(99, 102, 241, 0.3);
  transition: background 0.15s;
}
.aim-file-picker-label:hover {
  background: rgba(99, 102, 241, 0.25);
}

.aim-file-picker-name {
  font-size: 0.82rem;
  color: var(--aim-text-dim, #8b8fa3);
  margin-left: 4px;
}

.aim-email-progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 20px;
}

.aim-email-progress-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-email-progress-step.done {
  color: #86efac;
}
.aim-email-progress-step.done .aim-email-progress-icon {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.aim-email-progress-step.pending {
  color: var(--aim-brand-hover, #818cf8);
}
.aim-email-progress-step.pending .aim-email-progress-icon {
  background: var(--aim-brand-dim, rgba(99, 102, 241, 0.12));
  color: var(--aim-brand-hover, #818cf8);
}

.aim-email-progress-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  color: var(--aim-text-dim, #8b8fa3);
}

.aim-org-logo-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}

.aim-org-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 1px solid var(--aim-border, rgba(255, 255, 255, 0.08));
  background: var(--aim-input-bg, rgba(255, 255, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 1.4rem;
}
.aim-org-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#toastContainer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
}

.aim-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--aim-white, #fff);
  box-shadow: 0 4px 16px var(--aim-black-50, rgba(0, 0, 0, 0.5));
  animation: aimToastIn 0.3s ease;
  max-width: 360px;
}

.aim-toast-info {
  background: var(--aim-brand, #6366f1);
}

.aim-toast-success {
  background: var(--aim-green, #22c55e);
}

.aim-toast-error {
  background: var(--aim-red, #ef4444);
}

.aim-toast-warn {
  background: var(--aim-orange, #f97316);
}

.aim-toast-note {
  background: var(--aim-yellow-note, #f7eb09);
}

@keyframes aimToastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.fa-spin {
  animation: fa-spin 1s linear infinite !important;
}

.aim-md-preview {
  overflow-y: auto;
  scroll-behavior: smooth;
}
.aim-md-preview:has(textarea) {
  overflow: visible;
}

.aim-btn-bar {
  border-top: solid 1px var(--aim-border, #2a2d45);
  padding-top: 1rem;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.aim-save-cancel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.aim-modal {
  background: var(--aim-dark-card, #1c2137);
  border: 1px solid var(--aim-border, #2a2d45);
  border-radius: var(--aim-radius-lg, 10px);
  width: 480px;
  max-width: 95vw;
  box-shadow: var(--aim-shadow, 0 2px 8px rgba(0, 0, 0, 0.3));
}
.aim-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--aim-black-70, rgba(0, 0, 0, 0.7));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.aim-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--aim-border, #2a2d45);
}
.aim-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--aim-text-bright, #ffffff);
}
.aim-modal-close {
  background: none;
  border: none;
  color: var(--aim-text-dim, #8b8fa3);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}
.aim-modal-close:hover {
  color: var(--aim-text, #e0e0e8);
}
.aim-modal-body {
  padding: 20px;
  color: var(--aim-text, #e0e0e8);
}
.aim-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--aim-border, #2a2d45);
}
.aim-modal-text-panel {
  margin: -10px -10px 0 -10px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.3);
  padding-bottom: 5px;
}

.aim-btn-group {
  display: inline-flex;
  gap: 0;
}
.aim-btn-group button {
  margin: 0;
  border-radius: 0;
}
.aim-btn-group button:not(:first-child) {
  margin-left: -1px;
}
.aim-btn-group button:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}
.aim-btn-group button:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.aim-dialog-icon {
  font-size: 15px;
  vertical-align: -1px;
}
.aim-dialog-icon--default {
  color: var(--aim-text-dim, #8b8fa3);
}
.aim-dialog-icon--primary {
  color: var(--aim-brand, #6366f1);
}
.aim-dialog-icon--success {
  color: var(--aim-green, #22c55e);
}
.aim-dialog-icon--warning {
  color: var(--aim-yellow, #eab308);
}
.aim-dialog-icon--danger {
  color: var(--aim-red, #ef4444);
}
.aim-dialog-icon--info {
  color: var(--aim-info, #06b6d4);
}
.aim-dialog-icon--question {
  color: var(--aim-info, #06b6d4);
}
.aim-dialog--default .aim-dialog-header {
  border-top: 3px solid var(--aim-text-dim, #8b8fa3);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--primary .aim-dialog-header {
  border-top: 3px solid var(--aim-brand, #6366f1);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--success .aim-dialog-header {
  border-top: 3px solid var(--aim-green, #22c55e);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--warning .aim-dialog-header {
  border-top: 3px solid var(--aim-yellow, #eab308);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--danger .aim-dialog-header {
  border-top: 3px solid var(--aim-red, #ef4444);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--info .aim-dialog-header {
  border-top: 3px solid var(--aim-info, #06b6d4);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--question .aim-dialog-header {
  border-top: 3px solid var(--aim-info, #06b6d4);
  border-radius: var(--aim-radius-lg, 10px) var(--aim-radius-lg, 10px) 0 0;
}
.aim-dialog--lg {
  width: 620px;
}
.aim-dialog-overlay {
  cursor: default;
}

.aim-side-detail-card {
  display: flex;
  min-height: 0;
}

.aim-side-detail-tabs {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.aim-side-detail-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0;
}

.aim-filter-highlight {
  outline: 2px solid #6366f1;
  outline-offset: -2px;
  background: rgba(99, 102, 241, 0.12) !important;
}

.pulse-highlight {
  /* All CSS custom properties are set inline by JavaScript */
  background-color: rgba(var(--pulse-color, 255, 255, 0), var(--min-opacity, 0.2));
  animation: pulse var(--pulse-duration, 0.75s) var(--pulse-easing, ease-in-out);
  animation-iteration-count: var(--pulse-count, 4);
  animation-fill-mode: forwards;
}

.pulse-highlight-fade-out {
  background-color: transparent !important;
}

@keyframes pulse {
  0%, 100% {
    background-color: rgba(var(--pulse-color, 255, 255, 0), var(--min-opacity, 0.2));
  }
  50% {
    background-color: rgba(var(--pulse-color, 255, 255, 0), var(--max-opacity, 0.6));
  }
}
.info-corner {
  --size: 24px;
  --bg-color: #f97316;
  --icon-color: #fff;
  --fa-icon: "";
  --radius: 6px;
  --icon-ratio: 0.4;
  --icon-size: calc(var(--size) * var(--icon-ratio));
  width: var(--size);
  height: var(--size);
  background: var(--bg-color);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
  border-top-right-radius: var(--radius);
  position: absolute;
  top: 0;
  right: 0;
}
.info-corner::before {
  content: var(--fa-icon);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 30%;
  right: 30%;
  transform: translate(50%, -50%);
  color: var(--icon-color);
  font-size: var(--icon-size);
}

.aim-input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 8px;
}
.aim-input-group > * {
  border-radius: 0;
}
.aim-input-group > *:first-child {
  border-radius: 6px 0 0 6px;
}
.aim-input-group > *:last-child {
  border-radius: 0 6px 6px 0;
}
.aim-input-group > *:focus, .aim-input-group > *:focus-within {
  position: relative;
  z-index: 1;
}
.aim-input-group > .aim-filter {
  flex: 1;
}
.aim-input-group.last-two-mutual > *:last-child, .aim-input-group.last-two-mutual > *:nth-last-child(2) {
  border-radius: 0 6px 6px 0;
}
.aim-input-group.last-two-mutual > *:last-child {
  border-radius: 0 6px 6px 0;
}

.aim-btn-toggle.active {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
}

.aim-alert {
  display: flex;
  align-items: start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 12px;
  border: 1px solid #2a2d45;
  background: #1c1f2e;
  color: #8b8fa3;
}
.aim-alert-bigger {
  font-size: 15px;
}
.aim-alert-bigger.aim-alert-icon {
  font-size: 16px;
}
.aim-alert-icon {
  flex-shrink: 0;
}
.aim-alert-icon:empty::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.aim-alert-icon-lg, .aim-alert-icon-lg:empty::before {
  font-size: 2.2rem;
  position: relative;
  top: -3px;
  left: 0;
}
.aim-alert-text {
  flex: 1;
  position: relative;
  top: 3px;
}
.aim-alert-actions {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  float: right;
}
.aim-alert--default {
  background: #1c1f2e;
  border-color: #2a2d45;
  color: #8b8fa3;
}
.aim-alert--default .aim-alert-icon {
  color: #8b8fa3;
}
.aim-alert--default .aim-alert-icon:empty::before {
  content: "\f059";
}
.aim-alert--primary, .aim-alert--question {
  background: rgba(99, 102, 241, 0.3);
  border-color: #6366f1;
  color: #818cf8;
}
.aim-alert--primary .aim-alert-icon, .aim-alert--question .aim-alert-icon {
  color: #818cf8;
}
.aim-alert--primary .aim-alert-icon:empty::before, .aim-alert--question .aim-alert-icon:empty::before {
  content: "\f075";
}
.aim-alert--primary .aim-btn, .aim-alert--question .aim-btn {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
.aim-alert--primary .aim-btn:hover, .aim-alert--question .aim-btn:hover {
  background: #818cf8;
  border-color: #818cf8;
}
.aim-alert--info {
  background: rgba(6, 182, 212, 0.15);
  border-color: #06b6d4;
  color: #06b6d4;
}
.aim-alert--info .aim-alert-icon {
  color: #06b6d4;
}
.aim-alert--info .aim-alert-icon:empty::before {
  content: "\f05a";
}
.aim-alert--info .aim-btn {
  background: #06b6d4;
  border-color: #06b6d4;
  color: #fff;
}
.aim-alert--info .aim-btn:hover {
  background: #06b6d4;
  border-color: #06b6d4;
}
.aim-alert--info a {
  color: rgb(93, 227, 204);
}
.aim-alert--info a:hover {
  color: rgb(173, 237, 226);
}
.aim-alert--success {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}
.aim-alert--success .aim-alert-icon {
  color: #22c55e;
}
.aim-alert--success .aim-alert-icon:empty::before {
  content: "\f058";
}
.aim-alert--success .aim-btn {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}
.aim-alert--success .aim-btn:hover {
  filter: brightness(1.1);
}
.aim-alert--warning {
  background: rgba(234, 179, 8, 0.15);
  border-color: #eab308;
  color: #eab308;
}
.aim-alert--warning .aim-alert-icon {
  color: #eab308;
}
.aim-alert--warning .aim-alert-icon:empty::before {
  content: "\f071";
}
.aim-alert--warning .aim-btn {
  background: #eab308;
  border-color: #eab308;
  color: #1a1a1a;
}
.aim-alert--warning .aim-btn:hover {
  filter: brightness(1.05);
}
.aim-alert--danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}
.aim-alert--danger .aim-alert-icon {
  color: #ef4444;
}
.aim-alert--danger .aim-alert-icon:empty::before {
  content: "\f06a";
}
.aim-alert--danger .aim-btn {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}
.aim-alert--danger .aim-btn:hover {
  filter: brightness(1.1);
}
.aim-alert--note {
  background: #fef9c3;
  border-color: #eab308;
  color: #713f12;
  /*.aim-alert-text{
    font-family: 'Caveat', 'Comic Sans MS', cursive;
    font-size: 1.6rem;
  }*/
}
.aim-alert--note .aim-alert-icon {
  color: var(--aim-yellow-accent, #b45309);
}
.aim-alert--note .aim-alert-icon:empty::before {
  content: "\f08d";
  transform: rotate(30deg);
}
.aim-alert--note .aim-btn {
  background: #eab308;
  border-color: #eab308;
  color: #1a1a1a;
}
.aim-alert--note .aim-btn:hover {
  filter: brightness(1.05);
}
.aim-alert-text-container {
  flex-grow: 1;
}
.aim-alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  font-size: 14px;
  align-self: flex-start;
  margin-top: 2px;
}
.aim-alert-close:hover {
  opacity: 1;
}

.hgl {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
  border-radius: 2px;
  padding: 0 1px;
}

.aim-copyable {
  cursor: pointer;
}

.aim-accent-chk {
  appearance: none;
  width: 15px;
  height: 15px;
  border: 1.5px solid #8b8fa3;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.aim-accent-chk:checked {
  background: #6366f1;
  border-color: #6366f1;
}
.aim-accent-chk:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 10px;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.aim-accent-chk:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.aim-badge-x {
  padding: 2px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.3);
  font-size: 0.8rem;
  min-width: 20px;
  height: 18px;
  text-align: center;
  display: inline-block;
  margin-right: 0.5rem;
}

/* ── Screenshots page hero ─────────────────────────────────────── */
.aim-screenshots-hero {
  text-align: center;
  padding: 48px 20px 32px;
  position: relative;
}
.aim-screenshots-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.aim-screenshots-hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #fff;
  position: relative;
}
.aim-screenshots-hero .subtitle {
  color: var(--aim-text-dim);
  font-size: 0.95rem;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.aim-screenshots-hero .aim-screenshots-hero-icon {
  font-size: 3rem;
  color: var(--aim-brand);
  opacity: 0.3;
  margin-bottom: 12px;
  display: block;
}

/* ── Section descriptions (under each section h2) ──────────────── */
/* Scoped under .aim-gallery-item to override the generic site.scss
   .aim-section-desc (centered, max-width) with left-aligned variant. */
.aim-gallery-item .aim-section-desc {
  color: var(--aim-text-dim);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
  max-width: none;
  margin-left: 0;
}

/* ── Gallery section wrapper ───────────────────────────────────── */
.aim-gallery-item {
  padding-top: 40px;
  padding-bottom: 40px;
  border-top: 1px solid var(--aim-border);
}
.aim-gallery-item .aim-section-title {
  text-align: left;
}

/* ── Gallery image frame ──────────────────────────────────────── */
.aim-gallery-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--aim-border);
  background: var(--aim-card-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15), 0 10px 32px rgba(0, 0, 0, 0.25);
  margin-bottom: 24px;
}
.aim-gallery-image img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  transition: transform 0.2s;
}
.aim-gallery-image img:hover {
  transform: scale(1.01);
}
.aim-gallery-image.aim-gallery-dragging {
  opacity: 0.4;
}
.aim-gallery-image.aim-gallery-highlighted {
  border-color: var(--aim-brand);
  box-shadow: 0 0 0 2px var(--aim-brand), 0 0 20px var(--aim-brand-dim, rgba(99, 102, 241, 0.35)), 0 10px 32px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s, border-color 0.3s;
}

/* ── Caption: name + description, view mode (default) ──────────── */
.aim-gallery-caption {
  padding: 14px 18px 18px;
  text-align: left;
}

.aim-caption-view {
  display: block;
}

.aim-caption-edit {
  display: none;
}

body.aim-edit-mode .aim-caption-view {
  display: none;
}
body.aim-edit-mode .aim-caption-edit {
  display: block;
}

.aim-gallery-caption-name {
  font-weight: 600;
  color: var(--aim-text-dim);
  font-size: 0.95rem;
}

.aim-gallery-caption-desc {
  color: var(--aim-text-dim);
  opacity: 0.75;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 4px;
}

.aim-gallery-caption-name-input,
.aim-gallery-caption-desc-input {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 2px 4px;
  font-family: inherit;
  color: var(--aim-text);
  resize: vertical;
}
.aim-gallery-caption-name-input + .aim-gallery-caption-name-input,
.aim-gallery-caption-name-input + .aim-gallery-caption-desc-input,
.aim-gallery-caption-desc-input + .aim-gallery-caption-name-input,
.aim-gallery-caption-desc-input + .aim-gallery-caption-desc-input {
  margin-top: 15px;
}
.aim-gallery-caption-name-input:hover, .aim-gallery-caption-name-input:focus,
.aim-gallery-caption-desc-input:hover,
.aim-gallery-caption-desc-input:focus {
  border-color: var(--aim-border);
  outline: none;
}

.aim-gallery-caption-desc-input {
  min-height: 44px;
}

/* ── Empty-state placeholder ───────────────────────────────────── */
.aim-gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 180px;
  color: var(--aim-text-dim);
  opacity: 0.6;
  font-size: 0.85rem;
}
.aim-gallery-placeholder i {
  font-size: 2rem;
}

/* ── Edit-mode only elements (hidden until body.aim-edit-mode) ── */
.aim-gallery-edit-only {
  display: none;
}

body.aim-edit-mode .aim-gallery-edit-only {
  display: flex;
}

body.aim-edit-mode .aim-gallery-add-btn {
  display: inline-flex;
}

/* ── Edit mode toggle toolbar ──────────────────────────────────── */
.aim-screenshots-toolbar {
  max-width: 1000px;
  margin: 0 auto 8px;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.aim-edit-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--aim-border);
  background: var(--aim-card-bg);
  color: var(--aim-text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.aim-edit-mode-toggle:hover {
  border-color: var(--aim-brand);
  color: #fff;
}

body.aim-edit-mode .aim-edit-mode-toggle {
  border-color: var(--aim-brand);
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
}

/* ── Drag handle, delete, browse, add ──────────────────────────── */
.aim-gallery-drag-handle {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: grab;
}

.aim-gallery-delete-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ef4444;
  cursor: pointer;
}
.aim-gallery-delete-btn:hover {
  background: #ef4444;
  color: #fff;
}

.aim-gallery-browse-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 118px;
  z-index: 2;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}
.aim-gallery-browse-btn:hover {
  background: var(--aim-brand);
}
.aim-gallery-browse-btn input[type=file] {
  display: none;
}

.aim-gallery-add-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 18px;
  border-radius: 12px;
  border: 1px dashed var(--aim-border);
  background: transparent;
  color: var(--aim-text-dim);
  cursor: pointer;
}
.aim-gallery-add-btn:hover {
  border-color: var(--aim-brand);
  color: #fff;
}

/* ── Sticky sidebar layout ─────────────────────────────────────── */
.aim-screenshots-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.aim-gallery-sidebar {
  flex: 0 0 220px;
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  /* Dark slim scrollbars matching lightbox and other Aisman scrollbars */
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.aim-gallery-sidebar::-webkit-scrollbar {
  width: 6px;
}
.aim-gallery-sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.aim-gallery-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.aim-gallery-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
.aim-gallery-sidebar::-webkit-scrollbar-corner {
  background: transparent;
}

.aim-gallery-nav-section {
  border-bottom: 1px solid var(--aim-border);
}

.aim-gallery-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 4px;
  background: transparent;
  border: none;
  color: var(--aim-text-dim);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.aim-gallery-nav-header i {
  transition: transform 0.15s;
  font-size: 0.7rem;
}
.aim-gallery-nav-header:hover {
  color: #fff;
}

.aim-gallery-nav-section.expanded .aim-gallery-nav-header i {
  transform: rotate(180deg);
}

.aim-gallery-nav-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: none;
}

.aim-gallery-nav-section.expanded .aim-gallery-nav-list {
  display: block;
}

.aim-gallery-nav-link {
  display: block;
  padding: 6px 8px 6px 14px;
  font-size: 0.8rem;
  color: var(--aim-text-dim);
  opacity: 0.75;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: opacity 0.2s, color 0.2s, border-left-color 0.2s, background 0.2s;
}
.aim-gallery-nav-link:hover {
  opacity: 1;
  color: #fff;
  border-left-color: var(--aim-brand);
}
.aim-gallery-nav-link.active {
  opacity: 1;
  color: #fff;
  border-left-color: var(--aim-brand);
  background: rgba(255, 255, 255, 0.06);
}

/* ── Sidebar drag-and-drop states ──────────────────────────────── */
.aim-gallery-nav-item {
  transition: opacity 0.15s;
}
.aim-gallery-nav-item.aim-gallery-nav-dragging {
  opacity: 0.4;
}
.aim-gallery-nav-item.aim-gallery-nav-drag-over {
  border-top: 2px solid var(--aim-brand);
}

/* ── Sidebar tooltip ───────────────────────────────────────────── */
.aim-gallery-tooltip {
  position: fixed;
  z-index: 200;
  max-width: 280px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1c2137;
  border: 1px solid var(--aim-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  color: var(--aim-text-dim);
  font-size: 0.8rem;
  line-height: 1.5;
  pointer-events: none;
  display: none;
}
.aim-gallery-tooltip.visible {
  display: block;
}
.aim-gallery-tooltip p {
  margin: 0 0 6px;
}
.aim-gallery-tooltip p:last-child {
  margin-bottom: 0;
}

.aim-gallery-main {
  flex: 1 1 auto;
  min-width: 0;
}

/* ── Responsive: sidebar collapses on mobile ───────────────────── */
@media (max-width: 900px) {
  .aim-screenshots-layout {
    flex-direction: column;
  }
  .aim-gallery-sidebar {
    position: static;
    max-height: none;
    width: 100%;
  }
}
/* ── Screenshots lightbox: split-pane layout ───────────────────── */
.aim-lightbox-caption {
  display: none;
}

/* ── Split-pane image lightbox ─────────────────────────────────── */
.aim-lightbox-body {
  display: flex;
  gap: 0;
  width: 95vw;
  height: 88vh;
  position: relative;
  z-index: 1;
  background: rgba(15, 17, 23, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  /* Override site.scss .aim-lightbox-close (top:-44px) which positions
     the button outside the body. Place it inside the top-right corner. */
  /* Dark slim scrollbars for all scrollable children */
  /* Firefox */
}
.aim-lightbox-body .aim-lightbox-close {
  top: 12px;
  right: 12px;
  z-index: 10;
}
.aim-lightbox-body ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.aim-lightbox-body ::-webkit-scrollbar-track {
  background: transparent;
}
.aim-lightbox-body ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}
.aim-lightbox-body ::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
}
.aim-lightbox-body ::-webkit-scrollbar-corner {
  background: transparent;
}
.aim-lightbox-body * {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

/* ── Left panel: name + markdown description ───────────────────── */
.aim-lightbox-info {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  overflow-y: auto;
  border-right: 1px solid var(--aim-border);
}

.aim-lightbox-info-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.35;
}

.aim-lightbox-info-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--aim-text-dim);
  flex: 1;
  overflow-y: auto;
}
.aim-lightbox-info-desc p {
  margin: 0 0 10px;
}
.aim-lightbox-info-desc p:last-child {
  margin-bottom: 0;
}
.aim-lightbox-info-desc code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.82em;
}
.aim-lightbox-info-desc ul,
.aim-lightbox-info-desc ol {
  padding-left: 1.3em;
  margin: 0 0 10px;
}

.aim-lightbox-info-empty {
  font-style: italic;
  opacity: 0.5;
}

/* ── Right panel: image viewer ─────────────────────────────────── */
.aim-lightbox-image-pane {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.aim-lightbox-image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.aim-lightbox-image-wrap.aim-lightbox-true-size {
  overflow: auto;
  max-width: 100%;
  max-height: 100%;
  cursor: grab;
  align-items: flex-start;
  justify-content: flex-start;
}
.aim-lightbox-image-wrap.aim-lightbox-true-size.aim-lightbox-grabbing {
  cursor: grabbing;
}

.aim-lightbox-main-img {
  display: block;
  max-width: 100%;
  max-height: calc(88vh - 20px);
  object-fit: contain;
  border-radius: 4px;
  user-select: none;
  -webkit-user-drag: none;
}
.aim-lightbox-true-size .aim-lightbox-main-img {
  max-width: none;
  max-height: none;
}

/* ── Zoom indicator badge ──────────────────────────────────────── */
.aim-lightbox-zoom-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--aim-text-dim);
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.aim-lightbox-zoom-badge.visible {
  opacity: 1;
}

/* ── Bounding box for hold-to-zoom ─────────────────────────────── */
.aim-lightbox-bbox {
  position: fixed;
  z-index: 1010;
  border: 2px solid #6366f1;
  background: rgba(99, 102, 241, 0.08);
  pointer-events: none;
  display: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

/* ── Image lightbox nav buttons ────────────────────────────────── */
.aim-image-lightbox-prev,
.aim-image-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s;
  z-index: 2;
}
.aim-image-lightbox-prev:hover,
.aim-image-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.aim-image-lightbox-prev {
  left: 16px;
}

.aim-image-lightbox-next {
  right: 16px;
}

/* ── Crop & Annotate button (edit mode) ────────────────────────── */
.aim-gallery-crop-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 82px;
  z-index: 2;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: var(--aim-brand);
  cursor: pointer;
}
.aim-gallery-crop-btn:hover {
  background: var(--aim-brand);
  color: #fff;
}

body.aim-edit-mode .aim-gallery-crop-btn {
  display: flex;
}

/* ── Visibility eye button ──────────────────────────────────────── */
.aim-gallery-visibility-btn {
  display: none;
  position: absolute;
  top: 10px;
  right: 46px;
  z-index: 2;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
}
.aim-gallery-visibility-btn:hover {
  background: var(--aim-brand);
}
.aim-gallery-visibility-btn[data-is-public=false] {
  color: #ef4444;
}

body.aim-edit-mode .aim-gallery-visibility-btn {
  display: flex;
}

/* ── Filter buttons ─────────────────────────────────────────────── */
.aim-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--aim-border);
  background: var(--aim-card-bg);
  color: var(--aim-text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.aim-filter-btn:hover {
  border-color: var(--aim-brand);
  color: #fff;
}
.aim-filter-btn.active {
  border-color: var(--aim-brand);
  color: #fff;
  background: rgba(99, 102, 241, 0.12);
}

/* Filter: hide non-public screenshots when visible-only is active */
body.aim-filter-visible .aim-gallery-image[data-is-public=false] {
  display: none;
}

/* Filter: hide screenshots without crops when has-crops is active */
body.aim-filter-crops .aim-gallery-image[data-has-crops=false] {
  display: none;
}

/* ── Sidebar nav icons (hidden/crops indicators) ────────────────── */
.aim-gallery-nav-hidden-icon, .aim-gallery-nav-crop-icon {
  font-size: 0.65rem;
  color: var(--aim-brand);
  margin-right: 4px;
  flex-shrink: 0;
  float: right;
  position: relative;
  top: 12px;
}

.aim-gallery-nav-hidden-icon {
  color: #ef4444;
}
