:root {
  --at-navy: #0f2744;
  --at-navy-2: #163555;
  --at-navy-3: #1d446c;
  --at-gold: #d4a038;
  --at-gold-2: #b98826;
  --at-cream: #f7f1e6;
  --at-surface: rgba(255, 255, 255, 0.9);
  --at-surface-strong: #ffffff;
  --at-panel-bg: #edf2f7;
  --at-border: rgba(15, 39, 68, 0.1);
  --at-border-strong: rgba(15, 39, 68, 0.16);
  --at-text: #1f2f41;
  --at-text-soft: #5f7188;
  --at-muted: #5f7188;
  --at-success: #15803d;
  --at-danger: #dc2626;
  --at-warning: #d97706;
  --at-radius-sm: 12px;
  --at-radius: 20px;
  --at-radius-lg: 28px;
  --at-shadow-sm: 0 16px 34px rgba(15, 39, 68, 0.08);
  --at-shadow: 0 24px 60px rgba(15, 39, 68, 0.12);
  --at-shadow-lg: 0 34px 90px rgba(15, 39, 68, 0.16);
  --at-topbar-h: 78px;
  --at-sidebar-w: 288px;
  --at-transition: 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes atGlow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.44;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.62;
  }
}

body.at-panel-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 16%, rgba(212, 160, 56, 0.16), transparent 0 28%),
    radial-gradient(circle at 88% 12%, rgba(15, 39, 68, 0.18), transparent 0 32%),
    linear-gradient(180deg, #f7fafc 0%, #edf2f7 44%, #e6edf5 100%);
  color: var(--at-text);
}

body.at-panel-page::before,
body.at-panel-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(18px);
  animation: atGlow 12s ease-in-out infinite;
}

body.at-panel-page::before {
  top: 118px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(212, 160, 56, 0.16);
}

body.at-panel-page::after {
  right: -90px;
  bottom: 42px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.14);
}

#at-shell-root {
  position: relative;
  z-index: 1;
}

.at-topbar,
.at-panel-root,
.at-topbar * ,
.at-panel-root * {
  box-sizing: border-box;
}

.at-topbar {
  position: fixed;
  top: 14px;
  left: 18px;
  right: 18px;
  z-index: 99999;
  height: var(--at-topbar-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(11, 31, 53, 0.96), rgba(22, 53, 85, 0.92));
  box-shadow: 0 26px 70px rgba(9, 23, 39, 0.28);
  backdrop-filter: blur(18px);
}

.at-topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
}

.at-topbar__brand::before {
  content: "";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--at-gold), var(--at-gold-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 10px 24px rgba(212, 160, 56, 0.32);
}

.at-topbar__brand span {
  color: var(--at-gold);
}

.at-topbar__user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Lato", sans-serif;
  font-size: 0.92rem;
}

.at-topbar__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.at-topbar__lang a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.at-topbar__lang a:hover,
.at-topbar__lang a.is-active {
  color: #fff;
}

.at-topbar__admin-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.at-topbar__admin-switch a {
  color: rgba(255, 255, 255, 0.74);
  text-decoration: none;
}

.at-topbar__admin-switch a:hover,
.at-topbar__admin-switch a.is-active {
  color: #fff;
}

.at-topbar__name {
  color: #fff;
  font-weight: 700;
}

.at-topbar__role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.at-topbar__role-badge--pm {
  background: rgba(212, 160, 56, 0.2);
  color: #f7dfaa;
}

.at-topbar__role-badge--traductor {
  background: rgba(21, 128, 61, 0.18);
  color: #bbf7d0;
}

.at-topbar__logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  transition: transform var(--at-transition), background var(--at-transition), border-color var(--at-transition);
}

.at-topbar__logout:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.at-panel-layout {
  display: flex;
  min-height: 100vh;
  padding: calc(var(--at-topbar-h) + 42px) 18px 18px;
}

.at-sidebar {
  position: fixed;
  z-index: 99998;
  top: calc(var(--at-topbar-h) + 28px);
  left: 18px;
  bottom: 18px;
  width: var(--at-sidebar-w);
  display: flex;
  flex-direction: column;
  padding: 20px 16px 16px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(15, 39, 68, 0.98), rgba(21, 52, 83, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--at-shadow-lg);
  overflow: hidden auto;
}

.at-sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(212, 160, 56, 0.18), transparent 58%);
  pointer-events: none;
}

.at-sidebar__section {
  position: relative;
  margin: 16px 8px 8px;
  padding-left: 12px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.44);
}

.at-sidebar__nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.at-sidebar__nav li + li {
  margin-top: 6px;
}

.at-sidebar__nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.74);
  font-family: "Lato", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  transition:
    transform var(--at-transition),
    color var(--at-transition),
    background var(--at-transition),
    box-shadow var(--at-transition);
}

.at-sidebar__nav a .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  color: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 18px rgba(2, 8, 23, 0.16);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  word-break: keep-all;
  flex: 0 0 34px;
  transition:
    transform var(--at-transition),
    border-color var(--at-transition),
    background var(--at-transition),
    box-shadow var(--at-transition),
    color var(--at-transition);
}

.at-sidebar__nav a:hover {
  transform: translateX(3px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.at-sidebar__nav a:hover .icon {
  transform: translateY(-1px);
  border-color: rgba(212, 160, 56, 0.44);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(212, 160, 56, 0.14));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 10px 22px rgba(2, 8, 23, 0.22);
}

.at-sidebar__nav a.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(212, 160, 56, 0.94), rgba(185, 136, 38, 0.94));
  box-shadow: 0 16px 28px rgba(212, 160, 56, 0.24);
}

.at-sidebar__nav a.active .icon {
  border-color: rgba(255, 255, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    0 10px 20px rgba(15, 39, 68, 0.18);
}

.at-sidebar__nav a.at-sidebar__external {
  gap: 10px;
}

.at-sidebar__link-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.at-sidebar__nav a.at-sidebar__external:hover .at-sidebar__link-pill,
.at-sidebar__nav a.at-sidebar__external.active .at-sidebar__link-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.at-sidebar__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.at-sidebar__footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--at-transition), color var(--at-transition);
}

.at-sidebar__footer a .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  color: rgba(255, 255, 255, 0.9);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(2, 8, 23, 0.15);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  flex: 0 0 32px;
}

.at-sidebar__footer a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.at-sidebar__footer a:hover .icon {
  border-color: rgba(212, 160, 56, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(212, 160, 56, 0.13));
}

.at-main {
  width: 100%;
  min-width: 0;
  margin-left: calc(var(--at-sidebar-w) + 24px);
  padding: 18px 12px 32px;
}

.at-main__header,
.at-card,
.at-stat-card,
.at-proy-card,
.at-proyecto-card,
.at-translator-card,
.at-chat {
  animation: atFadeUp 0.48s var(--at-transition) both;
}

.at-main__header {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.at-main__title {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.04;
  color: var(--at-navy);
}

.at-main__subtitle {
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--at-text-soft);
}

.at-stats-grid,
.at-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.at-stat-card,
.at-stat {
  position: relative;
  overflow: hidden;
  padding: 22px 22px;
  border-radius: 24px;
  border: 1px solid var(--at-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.92));
  box-shadow: var(--at-shadow-sm);
}

.at-stat-card::before,
.at-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--at-navy), var(--at-gold));
}

.at-stat-card:hover,
.at-translator-card:hover,
.at-card:hover,
.at-proy-card:hover,
.at-proyecto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--at-shadow);
}

.at-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--at-transition), box-shadow var(--at-transition);
}

.at-stat-card > div:not(.at-stat-card__icon) {
  min-width: 0;
  flex: 1 1 auto;
}

.at-stat-card__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.at-stat-card__icon--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(15, 39, 68, 0.08));
}

.at-stat-card__icon--green {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.18), rgba(15, 39, 68, 0.08));
}

.at-stat-card__icon--orange {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(212, 160, 56, 0.1));
}

.at-stat-card__icon--purple {
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.18), rgba(15, 39, 68, 0.08));
}

.at-stat-card__icon--gold {
  background: linear-gradient(135deg, rgba(212, 160, 56, 0.24), rgba(185, 136, 38, 0.12));
}

.at-stat-card__num,
.at-stat-num {
  display: block;
  margin-bottom: 4px;
  max-width: 100%;
  font-size: clamp(1.45rem, 1.85vw, 2.05rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  color: var(--at-navy);
  white-space: nowrap;
}

.at-stat-card__label,
.at-stat-label {
  color: var(--at-text-soft);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
}

#at-shell-root .at-fiscal-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

#at-shell-root .at-fiscal-kpi-card {
  box-sizing: border-box;
  min-width: 0;
  min-height: 142px;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 8px;
}

#at-shell-root .at-fiscal-kpi-card .at-stat-card__icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

#at-shell-root .at-fiscal-kpi-card__content {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

#at-shell-root .at-fiscal-kpi-card .at-stat-card__num {
  max-width: 100%;
  margin-bottom: 7px;
  font-size: 1.85rem;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#at-shell-root .at-fiscal-kpi-card .at-stat-card__label {
  line-height: 1.35;
}

#at-shell-root .at-fiscal-kpi-card__meta {
  margin-top: 5px;
  color: var(--at-muted);
  font-size: 11px;
  line-height: 1.35;
}

.at-card,
.at-proy-card,
.at-proyecto-card,
.at-translator-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--at-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 252, 0.94));
  box-shadow: var(--at-shadow-sm);
  transition: transform var(--at-transition), box-shadow var(--at-transition), border-color var(--at-transition);
}

.at-card::before,
.at-proy-card::before,
.at-proyecto-card::before,
.at-translator-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(15, 39, 68, 0.94), rgba(212, 160, 56, 0.88));
}

.at-card__head,
.at-card__body {
  position: relative;
  z-index: 1;
}

.at-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.at-card__head h3 {
  margin: 0;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--at-navy);
}

.at-card__body {
  padding: 24px 26px 26px;
}

.at-main > .at-card + .at-card,
.at-main > .at-card + .at-chat,
.at-main > .at-chat + .at-card {
  margin-top: 24px;
}

.at-card__body p:last-child {
  margin-bottom: 0;
}

.at-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Lato", sans-serif;
}

.at-table th {
  padding: 14px 14px;
  text-align: left;
  color: var(--at-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  background: rgba(15, 39, 68, 0.04);
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.at-table td {
  padding: 14px 14px;
  border-bottom: 1px solid rgba(15, 39, 68, 0.06);
  vertical-align: top;
}

.at-table tr:last-child td {
  border-bottom: none;
}

.at-table tr:hover td {
  background: rgba(212, 160, 56, 0.04);
}

.at-btn,
.at-upload-btn,
.at-upload-area .at-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: "Lato", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
  transition:
    transform var(--at-transition),
    box-shadow var(--at-transition),
    background var(--at-transition),
    border-color var(--at-transition),
    color var(--at-transition);
}

.at-btn:hover,
.at-upload-btn:hover {
  transform: translateY(-1px);
}

.at-btn--primary,
.at-btn--gold,
.at-upload-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--at-navy), var(--at-navy-3));
  box-shadow: 0 18px 30px rgba(15, 39, 68, 0.16);
}

.at-btn--gold {
  background: linear-gradient(135deg, var(--at-gold), var(--at-gold-2));
  box-shadow: 0 18px 30px rgba(212, 160, 56, 0.22);
}

.at-btn--success {
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.at-btn--danger {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

.at-btn--ghost,
.at-btn--outline {
  color: var(--at-navy);
  border-color: rgba(15, 39, 68, 0.14);
  background: rgba(255, 255, 255, 0.72);
}

.at-btn--ghost:hover,
.at-btn--outline:hover {
  background: rgba(15, 39, 68, 0.08);
}

.at-btn--sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.8rem;
}

.at-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.at-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.at-badge--borrador { background: rgba(148, 163, 184, 0.16); color: #64748b; }
.at-badge--abierto,
.at-badge--blue { background: rgba(59, 130, 246, 0.14); color: #1d4ed8; }
.at-badge--en_negociacion,
.at-badge--pendiente_validacion_encargo,
.at-badge--orange { background: rgba(217, 119, 6, 0.16); color: #b45309; }
.at-badge--asignado,
.at-badge--verde,
.at-badge--green { background: rgba(21, 128, 61, 0.14); color: #166534; }
.at-badge--en_progreso,
.at-badge--purple { background: rgba(109, 40, 217, 0.14); color: #6d28d9; }
.at-badge--entregado,
.at-badge--completado { background: rgba(14, 165, 233, 0.14); color: #0369a1; }
.at-badge--pendiente_pago { background: rgba(217, 119, 6, 0.16); color: #92400e; }
.at-badge--pagado { background: rgba(21, 128, 61, 0.14); color: #166534; }
.at-badge--cerrado { background: rgba(100, 116, 139, 0.14); color: #475569; }
.at-badge--cancelado,
.at-badge--rojo { background: rgba(220, 38, 38, 0.12); color: #b91c1c; }

.at-project-filters {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 28px rgba(15, 39, 68, 0.06);
}

.at-project-filters__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 14px;
}

.at-project-filters .at-field {
  margin-bottom: 0;
}

.at-project-filters__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.at-table tr.at-project-row--deadline-alert td {
  background: rgba(220, 38, 38, 0.07);
  border-bottom-color: rgba(220, 38, 38, 0.16);
}

.at-table tr.at-project-row--deadline-alert:hover td {
  background: rgba(220, 38, 38, 0.11);
}

.at-table tr.at-project-row--deadline-alert td:first-child {
  box-shadow: inset 4px 0 0 #dc2626;
}

.at-table tr.at-project-row--deadline-alert td:nth-child(2) a {
  color: #991b1b;
}

.at-deadline-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-left: 8px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #991b1b;
  background: rgba(220, 38, 38, 0.14);
  white-space: nowrap;
}

.at-deadline-chip--urgent {
  color: #b45309;
  background: rgba(217, 119, 6, 0.16);
}

@media (max-width: 1180px) {
  .at-project-filters__grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 720px) {
  .at-project-filters__grid {
    grid-template-columns: 1fr;
  }
}

.at-form-grid,
.at-form-grid--3 {
  display: grid;
  gap: 18px;
}

.at-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.at-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.at-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.at-field label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--at-text-soft);
}

.at-field--full {
  grid-column: 1 / -1;
}

.at-field input,
.at-field select,
.at-field textarea,
.at-chat__input,
.at-panel-root input:not([type="checkbox"]):not([type="radio"]),
.at-panel-root select,
.at-panel-root textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 39, 68, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--at-text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
  transition: border-color var(--at-transition), box-shadow var(--at-transition), background var(--at-transition);
}

.at-field textarea,
.at-panel-root textarea {
  min-height: 132px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}

.at-field input:focus,
.at-field select:focus,
.at-field textarea:focus,
.at-chat__input:focus,
.at-panel-root input:not([type="checkbox"]):not([type="radio"]):focus,
.at-panel-root select:focus,
.at-panel-root textarea:focus {
  outline: none;
  border-color: rgba(212, 160, 56, 0.74);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 160, 56, 0.12);
}

.at-finance-analysis {
  margin-top: 4px;
  padding: 14px;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 8px;
  background: #f8fafc;
}

.at-finance-suggestion-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff8eb 100%);
}

.at-finance-suggestion-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.at-finance-suggestion-card__head span {
  color: var(--at-text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.at-finance-suggestion-card__head strong {
  color: var(--at-navy);
  font-size: 1.05rem;
  text-align: right;
}

.at-finance-range-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.at-finance-range-strip span {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(15, 39, 68, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--at-navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.at-finance-suggestion-card small {
  color: var(--at-text-soft);
  font-size: 0.76rem;
}

.at-finance-analysis__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.at-finance-analysis__head strong {
  color: var(--at-navy);
  font-size: 0.92rem;
}

.at-finance-analysis__head span,
.at-finance-analysis__hint {
  color: var(--at-text-soft);
  font-size: 0.76rem;
}

.at-finance-analysis__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.at-finance-analysis__grid .at-field {
  margin-bottom: 0;
}

.at-finance-analysis__hint {
  display: block;
  margin-top: 10px;
}

.at-finance-net-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 700;
}

.at-finance-net-warning strong {
  display: block;
  margin-bottom: 3px;
}

.at-finance-net-warning span {
  display: block;
  font-weight: 600;
}

.at-finance-negative {
  color: #b91c1c !important;
  border-color: #fecaca !important;
  background: #fff1f2 !important;
}

.at-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.at-form-msg {
  font-size: 0.88rem;
  font-weight: 700;
}

.at-form-msg--success {
  color: var(--at-success);
}

.at-form-msg--error {
  color: var(--at-danger);
}

.at-chat {
  overflow: hidden;
  border-radius: 28px;
}

.at-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 22px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--at-navy), var(--at-navy-3));
}

.at-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 380px;
  max-height: 480px;
  overflow-y: auto;
  padding: 20px 20px 10px;
  background:
    radial-gradient(circle at top right, rgba(212, 160, 56, 0.08), transparent 0 30%),
    linear-gradient(180deg, rgba(247, 249, 252, 0.88), rgba(255, 255, 255, 0.98));
}

.at-chat__msg {
  max-width: min(78%, 520px);
}

.at-chat__msg--out {
  align-self: flex-end;
}

.at-chat__msg--in {
  align-self: flex-start;
}

.at-chat__bubble {
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.6;
  box-shadow: 0 12px 24px rgba(15, 39, 68, 0.08);
}

.at-chat__msg--out .at-chat__bubble {
  color: #fff;
  background: linear-gradient(135deg, var(--at-navy), var(--at-navy-3));
  border-bottom-right-radius: 8px;
}

.at-chat__msg--in .at-chat__bubble {
  background: #fff;
  border: 1px solid rgba(15, 39, 68, 0.08);
  border-bottom-left-radius: 8px;
}

.at-chat__meta {
  margin-top: 6px;
  color: var(--at-text-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.at-chat__msg--out .at-chat__meta {
  text-align: right;
}

.at-chat__input-wrap {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid rgba(15, 39, 68, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.at-chat__input {
  min-height: 48px;
  max-height: 140px;
  padding-top: 12px;
  resize: vertical;
}

.at-translator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.at-translator-card {
  padding: 22px;
}

.at-translator-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.at-translator-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--at-navy), var(--at-navy-3));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 24px rgba(15, 39, 68, 0.16);
}

.at-translator-card__name {
  color: var(--at-navy);
  font-size: 1rem;
  font-weight: 800;
}

.at-translator-card__email {
  color: var(--at-text-soft);
  font-size: 0.86rem;
}

.at-translator-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.at-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.06);
  color: var(--at-text-soft);
  font-size: 0.74rem;
  font-weight: 700;
}

.at-empty {
  padding: 42px 28px;
  border-radius: 28px;
  border: 1px dashed rgba(15, 39, 68, 0.16);
  background: rgba(255, 255, 255, 0.76);
  text-align: center;
  color: var(--at-text-soft);
}

.at-empty__icon {
  margin-bottom: 10px;
  font-size: 2.6rem;
}

.at-panel-root .at-proy-card,
.at-panel-root .at-proyecto-card {
  padding: 24px;
}

.at-panel-root .at-proy-card__head,
.at-panel-root .at-proyecto-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.at-panel-root .at-proy-card__titulo,
.at-panel-root .at-proyecto-card-title h3 {
  margin: 0;
  color: var(--at-navy);
  font-size: 1.16rem;
  font-weight: 900;
  line-height: 1.2;
}

.at-panel-root .at-proy-card__meta,
.at-panel-root .at-proyecto-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  color: var(--at-text-soft);
  font-size: 0.86rem;
}

.at-panel-root .at-proy-card__meta span,
.at-panel-root .at-proyecto-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.05);
}

.at-panel-root .at-proy-estado-badge,
.at-panel-root .at-proyecto-badges .at-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.at-panel-root .at-proy-card__desc,
.at-panel-root .at-proyecto-descripcion {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(15, 39, 68, 0.04);
  color: var(--at-text);
  line-height: 1.75;
}

.at-panel-root .at-proy-card__archivos,
.at-panel-root .at-archivos-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(247, 249, 252, 0.9);
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.at-panel-root .at-proy-arch-label,
.at-panel-root .at-archivos-title {
  margin-bottom: 10px;
  color: var(--at-navy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.at-panel-root .at-progress-bar,
.at-panel-root .at-progress-bar-wrap {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 39, 68, 0.08);
}

.at-panel-root .at-progress-fill {
  background: linear-gradient(90deg, var(--at-gold), var(--at-navy-3));
}

.at-panel-root .at-notas-pm,
.at-panel-root .at-pm-offer-box,
.at-panel-root .at-oferta-panel,
.at-panel-root .at-counter-panel,
.at-panel-root .at-archivos-section {
  border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.at-panel-root .at-pm-offer-box,
.at-panel-root .at-counter-panel,
.at-panel-root .at-archivos-section {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 39, 68, 0.08);
}

.at-panel-root .at-notas-pm {
  background: rgba(212, 160, 56, 0.12);
  border: 1px solid rgba(212, 160, 56, 0.26);
}

.at-panel-root .at-stars-input {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.at-panel-root .at-star {
  font-size: 1.48rem;
  color: rgba(15, 39, 68, 0.18);
  cursor: pointer;
  transition: color var(--at-transition), transform var(--at-transition);
}

.at-panel-root .at-star:hover,
.at-panel-root .at-star--on {
  color: var(--at-gold);
  transform: translateY(-1px);
}

.at-panel-root .at-stars--locked .at-star {
  cursor: default;
}

.at-sidebar-toggle {
  border-radius: 14px;
}

#at-shell-root .at-topbar .at-sidebar-toggle {
  position: static !important;
  inset: auto !important;
  background: transparent !important;
  color: #fff !important;
  border: none !important;
  box-shadow: none !important;
}

.at-page-count-field { display: none; }

.at-pm-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.at-pm-comment {
  border: 1px solid var(--at-border);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.at-pm-comment summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  cursor: pointer;
  background: #f8fafc;
  color: var(--at-navy);
  font-size: 13px;
}

.at-pm-comment summary span {
  color: var(--at-muted);
  white-space: nowrap;
  font-size: 12px;
}

.at-pm-comment div {
  padding: 12px 14px;
  color: var(--at-text);
  line-height: 1.55;
  font-size: 13px;
}

.at-pm-comments-empty {
  padding: 12px 14px;
  border: 1px dashed var(--at-border);
  border-radius: 8px;
  color: var(--at-muted);
  background: #f8fafc;
  font-size: 13px;
}

@media (min-width: 941px) {
  #at-shell-root .at-sidebar-toggle {
    display: none !important;
  }
}

@media (max-width: 1180px) {
  .at-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .at-panel-layout {
    padding-left: 12px;
    padding-right: 12px;
  }

  .at-sidebar {
    left: 12px;
    bottom: 12px;
  }

  .at-main {
    margin-left: calc(var(--at-sidebar-w) + 18px);
  }
}

@media (max-width: 940px) {
  .at-topbar {
    height: 72px;
    padding: 0 16px;
  }

  .at-topbar__user {
    gap: 8px;
  }

  .at-topbar__name {
    display: none;
  }

  .at-topbar__admin-switch {
    display: none;
  }

  .at-panel-layout {
    padding-top: calc(var(--at-topbar-h) + 30px);
  }

  .at-sidebar {
    top: calc(var(--at-topbar-h) + 18px);
    z-index: 100002;
    transform: translateX(-112%);
    transition: transform var(--at-transition);
  }

  .at-sidebar.open {
    transform: translateX(0);
  }

  #at-sidebar-overlay {
    z-index: 100001 !important;
  }

  .at-topbar {
    z-index: 100003;
  }

  .at-main {
    margin-left: 0;
    padding: 10px 0 22px;
  }

  .at-form-grid,
  .at-form-grid--3,
  .at-panel-root .at-archivos-panel,
  .at-panel-root .at-proy-card__archivos > div,
  .at-translator-grid {
    grid-template-columns: 1fr;
  }

  .at-panel-root .at-proy-card__head,
  .at-panel-root .at-proyecto-card-head,
  .at-card__head {
    flex-direction: column;
    align-items: stretch;
  }

  .at-panel-root .at-card {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .at-panel-root .at-table {
    min-width: 640px;
  }

  .at-panel-root .at-card__body[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  .at-panel-root .at-card__body[style*="display:flex"],
  .at-panel-root .at-form-actions {
    flex-wrap: wrap !important;
  }
}

@media (max-width: 640px) {
  .at-topbar {
    border-radius: 20px;
  }

  .at-topbar__role-badge {
    display: none;
  }

  .at-main__title {
    font-size: 1.9rem;
  }

  .at-card__head,
  .at-card__body,
  .at-panel-root .at-proy-card,
  .at-panel-root .at-proyecto-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .at-finance-suggestion-card__head {
    display: grid;
  }

  .at-finance-suggestion-card__head strong {
    text-align: left;
  }

  .at-finance-range-strip {
    grid-template-columns: 1fr;
  }

  .at-chat__input-wrap,
  .at-form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .at-chat__msg {
    max-width: 88%;
  }

  .at-panel-layout {
    padding-left: 10px;
    padding-right: 10px;
  }

  .at-card__head h3,
  .at-main__title,
  .at-stat-card__label {
    overflow-wrap: anywhere;
  }

  .at-form-actions .at-btn,
  .at-card__body > .at-btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
  }

  .at-toast-panel {
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   Albera — Panel additions v1.6.x
   ═══════════════════════════════════════════════════════ */

/* ── Soporte / Incidencias ────────────────────────────── */
.at-soporte-form-wrap {
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,249,252,.94));
    border: 1px solid var(--at-border);
    box-shadow: var(--at-shadow-sm);
    padding: 28px 30px;
}

.at-form-label {
    display: block;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    color: var(--at-text-soft);
    margin-bottom: 6px;
}

.at-form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid rgba(15,39,68,.12);
    border-radius: 14px;
    font-family: 'Lato', sans-serif;
    font-size: .9rem;
    color: var(--at-text);
    background: rgba(255,255,255,.9);
    outline: none;
    transition: border-color var(--at-transition), box-shadow var(--at-transition);
    box-sizing: border-box;
}

.at-form-input:focus {
    border-color: rgba(212,160,56,.7);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(212,160,56,.1);
}

.at-inc-row {
    background: #fff;
    border: 1px solid var(--at-border);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 12px;
    transition: box-shadow var(--at-transition), transform var(--at-transition);
}

.at-inc-row:hover {
    box-shadow: var(--at-shadow-sm);
    transform: translateY(-2px);
}

.at-inc-row.abierta    { border-left: 4px solid #3b82f6; }
.at-inc-row.respondida { border-left: 4px solid #16a34a; }
.at-inc-row.cerrada    { border-left: 4px solid #d1d5db; opacity: .76; }

.at-inc-prioridad-urgente { color: #dc2626; font-weight: 800; }
.at-inc-prioridad-alta    { color: #d97706; font-weight: 700; }
.at-inc-prioridad-normal  { color: #6b7280; }
.at-inc-prioridad-baja    { color: #9ca3af; }

/* ── Archivos disponibles (card de proyectos disponibles) */
.at-arch-available {
    background: linear-gradient(135deg, rgba(14,165,233,.07), rgba(15,39,68,.04));
    border: 1px solid rgba(14,165,233,.22);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.at-arch-available-title {
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
    color: #0369a1;
    margin-bottom: 10px;
}

.at-arch-available-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    color: #0369a1;
    text-decoration: none;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid rgba(14,165,233,.25);
    border-radius: 10px;
    width: fit-content;
    max-width: 100%;
    transition: background var(--at-transition), box-shadow var(--at-transition), transform var(--at-transition);
}

.at-arch-available-link:hover {
    background: rgba(14,165,233,.06);
    box-shadow: 0 4px 12px rgba(14,165,233,.12);
    transform: translateY(-1px);
}

/* ── Polling indicator ────────────────────────────────── */
#at-polling-indicator {
    position: fixed;
    bottom: 14px; left: 14px;
    font-size: 11px;
    color: var(--at-text-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 9998;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    pointer-events: none;
}

#at-polling-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: at-pulse-dot 2s infinite;
}

@keyframes at-pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
    50%       { opacity: .4; box-shadow: 0 0 0 4px rgba(34,197,94,.0); }
}

/* ── File download button (archivos en proyectos) ────── */
.at-file-dl-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--at-navy);
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(255,255,255,.88);
    border: 1px solid var(--at-border-strong);
    border-radius: 10px;
    font-weight: 700;
    transition: background var(--at-transition), transform var(--at-transition), box-shadow var(--at-transition);
}

.at-file-dl-btn:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(15,39,68,.1);
    transform: translateY(-1px);
}

/* ── Toast notifications (panel traductor) ───────────── */
.at-toast-panel {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 99999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--at-navy), var(--at-navy-3));
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: .86rem;
    font-weight: 700;
    box-shadow: var(--at-shadow-lg);
    animation: atFadeUp .3s var(--at-transition) both;
    max-width: 340px;
    border: 1px solid rgba(255,255,255,.1);
}

.at-toast-panel.success { background: linear-gradient(135deg, #15803d, #166534); }
.at-toast-panel.error   { background: linear-gradient(135deg, #dc2626, #991b1b); }

@media (max-width: 640px) {
    .at-toast-panel {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Mobile operability hardening */
@media (max-width: 940px) {
  #at-shell-root,
  #at-shell-root .at-panel-layout,
  #at-shell-root .at-main,
  #at-shell-root .at-card,
  #at-shell-root .at-proy-card,
  #at-shell-root .at-proyecto-card,
  #at-shell-root .at-translator-card,
  #at-shell-root .at-chat {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  #at-shell-root .at-main__header,
  #at-shell-root .at-card__head,
  #at-shell-root .at-proy-card__head,
  #at-shell-root .at-proyecto-card-head,
  #at-shell-root .at-finance-analysis__head,
  #at-shell-root .at-pm-offer-actions,
  #at-shell-root .at-offer-actions,
  #at-shell-root .at-form-actions {
    flex-wrap: wrap !important;
    align-items: stretch !important;
  }

  #at-shell-root .at-card__body[style*="grid-template-columns"],
  #at-shell-root .at-card[style*="grid-template-columns"],
  #at-shell-root [style*="grid-template-columns:1fr 300px"],
  #at-shell-root [style*="grid-template-columns: 1fr 300px"],
  #at-shell-root [style*="grid-template-columns:2fr 1fr"],
  #at-shell-root [style*="grid-template-columns: 2fr 1fr"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #at-shell-root .at-finance-analysis__grid,
  #at-shell-root .at-stats-grid,
  #at-shell-root .at-stats-bar,
  #at-shell-root .at-translator-grid {
    grid-template-columns: 1fr !important;
  }

  #at-shell-root .at-card__body,
  #at-shell-root .at-card > div,
  #at-shell-root .at-proy-card,
  #at-shell-root .at-proyecto-card {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #at-shell-root table,
  #at-shell-root .at-table {
    min-width: 620px;
  }

  #at-shell-root .at-arch-available-link,
  #at-shell-root .at-file-dl-btn {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  #at-shell-root .at-chat__messages {
    min-height: 300px;
    max-height: 58vh;
  }

  #at-shell-root .at-chat__bubble,
  #at-shell-root .at-offer-note,
  #at-shell-root .at-main__subtitle {
    overflow-wrap: anywhere;
  }

  #at-counter-modal {
    padding: 14px !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #at-counter-modal > div,
  #at-counter-modal .at-modal-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 !important;
    max-height: calc(100vh - 36px) !important;
    overflow-y: auto !important;
  }
}

#at-shell-root .at-client-payment-row {
  --at-payment-state-color: #d58b16;
}

#at-shell-root .at-client-payment-row--paid {
  --at-payment-state-color: #15803d;
}

#at-shell-root .at-client-payment-row--partial {
  --at-payment-state-color: #2563eb;
}

#at-shell-root .at-client-payment-row--overdue {
  --at-payment-state-color: #c24156;
}

#at-shell-root .at-client-payment-row > td:first-child {
  box-shadow: inset 4px 0 0 var(--at-payment-state-color);
}

#at-shell-root .at-client-payment-status-cell {
  min-width: 160px;
}

#at-shell-root .at-client-payment-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid #f1d49a;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5a09;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#at-shell-root .at-client-payment-state-badge::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.06);
}

#at-shell-root .at-client-payment-state-badge--paid {
  border-color: #b8dfc5;
  background: #edf9f1;
  color: #166534;
}

#at-shell-root .at-client-payment-state-badge--partial {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#at-shell-root .at-client-payment-state-badge--overdue {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

#at-shell-root .at-client-payment-status {
  display: block;
  width: 100%;
  min-width: 145px;
}

#at-shell-root .at-invoice-status-cell {
  min-width: 170px;
}

#at-shell-root .at-invoice-state-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 28px;
  margin-bottom: 8px;
  padding: 5px 9px;
  border: 1px solid #f1d49a;
  border-radius: 999px;
  background: #fff8e8;
  color: #8a5a09;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

#at-shell-root .at-invoice-state-badge::before {
  content: "";
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.06);
}

#at-shell-root .at-invoice-state-badge--approved {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

#at-shell-root .at-invoice-state-badge--paid {
  border-color: #b8dfc5;
  background: #edf9f1;
  color: #166534;
}

#at-shell-root .at-invoice-state-badge--rejected {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}

#at-shell-root .at-invoice-status {
  display: block;
  width: 100%;
  min-width: 145px;
}

#at-shell-root .at-client-payment-balance {
  display: block;
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

#at-shell-root .at-client-payment-balance.is-settled {
  color: #15803d;
}

#at-shell-root .at-client-payment-balance-label {
  display: block;
  margin-top: 4px;
  color: var(--at-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}

#at-shell-root .at-invoice-filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-top: 1px solid var(--at-border);
  border-bottom: 1px solid var(--at-border);
  background: #f6f8fb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

#at-shell-root .at-invoice-filters__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--at-navy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

#at-shell-root .at-invoice-filters__label::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--at-gold);
}

#at-shell-root .at-invoice-filters__options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#at-shell-root .at-invoice-filter {
  --at-filter-accent: #64748b;
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 40px;
  margin: 0 !important;
  padding: 8px 13px !important;
  border: 1px solid #d6dee8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  color: #31455d !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.05), 0 4px 12px rgba(15, 39, 68, 0.04) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color var(--at-transition), background-color var(--at-transition), box-shadow var(--at-transition), color var(--at-transition), transform var(--at-transition);
}

#at-shell-root .at-invoice-filter:hover:not(.is-active) {
  border-color: rgba(212, 160, 56, 0.72) !important;
  background: #fffcf5 !important;
  color: var(--at-navy) !important;
  box-shadow: 0 2px 4px rgba(15, 39, 68, 0.06), 0 8px 18px rgba(15, 39, 68, 0.08) !important;
  transform: translateY(-1px);
}

#at-shell-root .at-invoice-filter:focus-visible {
  outline: 3px solid rgba(212, 160, 56, 0.3) !important;
  outline-offset: 2px;
}

#at-shell-root .at-invoice-filter.is-active {
  border-color: var(--at-navy) !important;
  background: var(--at-navy) !important;
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--at-gold), 0 7px 16px rgba(15, 39, 68, 0.2) !important;
}

#at-shell-root .at-invoice-filter--pending { --at-filter-accent: #d58b16; }
#at-shell-root .at-invoice-filter--approved { --at-filter-accent: #2563eb; }
#at-shell-root .at-invoice-filter--paid { --at-filter-accent: #15803d; }
#at-shell-root .at-invoice-filter--rejected { --at-filter-accent: #7c3aed; }
#at-shell-root .at-invoice-filter--overdue { --at-filter-accent: #c24156; }
#at-shell-root .at-fiscal-filter--red { --at-filter-accent: #c24156; }
#at-shell-root .at-fiscal-filter--yellow { --at-filter-accent: #d58b16; }
#at-shell-root .at-fiscal-filter--green { --at-filter-accent: #15803d; }

#at-shell-root .at-invoice-filter__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--at-filter-accent) !important;
  box-shadow: 0 0 0 3px rgba(15, 39, 68, 0.06);
}

#at-shell-root .at-invoice-filter.is-active .at-invoice-filter__dot {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

#at-shell-root .at-invoice-filter__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid rgba(15, 39, 68, 0.06);
  border-radius: 999px;
  background: #edf2f7 !important;
  color: #52657b !important;
  font-size: 10px !important;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

#at-shell-root .at-invoice-filter.is-active .at-invoice-filter__count {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--at-gold) !important;
  color: var(--at-navy) !important;
}

#at-shell-root .at-invoice-filters__result {
  margin-left: auto;
  color: var(--at-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

#at-shell-root .at-table-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 14px 18px;
  border-top: 1px solid var(--at-border);
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

#at-shell-root .at-table-pagination__size {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--at-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  white-space: nowrap;
}

#at-shell-root .at-table-pagination__size select {
  box-sizing: border-box;
  width: 72px !important;
  min-width: 72px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 5px 10px !important;
  border: 1px solid #d6dee8 !important;
  border-radius: 8px !important;
  background-color: #fff !important;
  color: var(--at-navy) !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.05), 0 4px 12px rgba(15, 39, 68, 0.04) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: border-color var(--at-transition), box-shadow var(--at-transition);
}

#at-shell-root .at-table-pagination__size select:hover {
  border-color: rgba(212, 160, 56, 0.72) !important;
}

#at-shell-root .at-table-pagination__size select:focus {
  border-color: var(--at-gold) !important;
  outline: 3px solid rgba(212, 160, 56, 0.22) !important;
  outline-offset: 1px;
}

#at-shell-root .at-table-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

#at-shell-root .at-table-pagination__button {
  appearance: none;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #d6dee8 !important;
  border-radius: 8px !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--at-navy) !important;
  box-shadow: 0 1px 2px rgba(15, 39, 68, 0.06), 0 4px 12px rgba(15, 39, 68, 0.05) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  text-transform: none !important;
  cursor: pointer;
  transition: border-color var(--at-transition), background-color var(--at-transition), box-shadow var(--at-transition), color var(--at-transition), transform var(--at-transition);
}

#at-shell-root .at-table-pagination__button[data-pagination-action] {
  font-size: 20px !important;
  font-weight: 500 !important;
}

#at-shell-root .at-table-pagination__button:hover:not(:disabled):not(.is-active) {
  border-color: rgba(212, 160, 56, 0.78) !important;
  background: #fffcf5 !important;
  color: #8a6011 !important;
  box-shadow: 0 2px 4px rgba(15, 39, 68, 0.06), 0 8px 18px rgba(15, 39, 68, 0.09) !important;
  transform: translateY(-1px);
}

#at-shell-root .at-table-pagination__button:focus-visible {
  outline: 3px solid rgba(212, 160, 56, 0.3) !important;
  outline-offset: 2px;
}

#at-shell-root .at-table-pagination__button.is-active {
  border-color: var(--at-navy) !important;
  background: var(--at-navy) !important;
  color: #fff !important;
  box-shadow: inset 0 -2px 0 var(--at-gold), 0 7px 16px rgba(15, 39, 68, 0.22) !important;
}

#at-shell-root .at-table-pagination__button:disabled {
  border-color: #e3e8ef !important;
  background: #f1f4f7 !important;
  color: #aab5c2 !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}

#at-shell-root .at-table-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 40px;
  color: var(--at-muted);
  font-size: 14px;
  font-weight: 700;
}

#at-shell-root .at-table-pagination__summary {
  color: var(--at-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  #at-shell-root .at-invoice-filters {
    align-items: flex-start;
  }

  #at-shell-root .at-invoice-filters__label,
  #at-shell-root .at-invoice-filters__options,
  #at-shell-root .at-invoice-filters__result {
    width: 100%;
  }

  #at-shell-root .at-invoice-filters__result {
    margin-left: 0;
  }

  #at-shell-root .at-table-pagination {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #at-shell-root .at-table-pagination__size,
  #at-shell-root .at-table-pagination__summary {
    justify-self: center;
  }

  #at-shell-root .at-table-pagination__pages {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  #at-shell-root .at-card__head,
  #at-shell-root .at-card__body,
  #at-shell-root .at-proy-card,
  #at-shell-root .at-proyecto-card,
  #at-shell-root .at-translator-card {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #at-shell-root .at-btn,
  #at-shell-root .at-upload-btn,
  #at-shell-root button[type="submit"],
  #at-shell-root button[type="button"] {
    min-height: 44px;
    white-space: normal !important;
    line-height: 1.25 !important;
  }

  #at-shell-root input,
  #at-shell-root select,
  #at-shell-root textarea {
    font-size: 16px !important;
  }

  #at-shell-root .at-topbar__logout {
    padding-left: 9px !important;
    padding-right: 9px !important;
  }

  #at-shell-root .at-badge {
    white-space: normal;
    text-align: center;
  }

  #at-shell-root .at-invoice-filters {
    padding: 14px;
  }

  #at-shell-root button.at-invoice-filter[type="button"] {
    flex: 1 1 calc(50% - 4px);
    width: calc(50% - 4px) !important;
    min-height: 42px !important;
    padding: 8px 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #at-shell-root .at-table-pagination {
    padding: 14px 10px;
  }

  #at-shell-root .at-table-pagination__pages {
    gap: 4px;
  }

  #at-shell-root button.at-table-pagination__button[type="button"] {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  #at-shell-root .at-table-pagination__ellipsis {
    width: 20px;
    height: 36px;
  }
}
