:root {
  --bg-page: #eff5fb;
  --bg-soft: #f8fbff;
  --bg-card: #ffffff;
  --bg-sidebar: #0a1526;
  --text-main: #102338;
  --text-soft: #5f7084;
  --line: #d5e2f0;
  --primary: #1463ff;
  --primary-2: #00a7b3;
  --ok: #119b68;
  --warn: #d69f02;
  --danger: #dc4b57;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-1: 0 18px 42px rgba(7, 35, 73, 0.12);
  --shadow-2: 0 8px 26px rgba(9, 35, 66, 0.08);
  --focus-ring: rgba(20, 99, 255, 0.24);
  --content-max: 1460px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
  color: var(--text-main);
  background: radial-gradient(circle at 10% -5%, #d9eaff 0, var(--bg-page) 38%, #e8f0f6 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--focus-ring);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: 12px;
  z-index: 60;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  transition: top 0.2s ease;
}

.skip-link:focus-visible {
  top: 12px;
}

.app-shell {
  min-height: 100vh;
  display: flex;
}

.sidebar {
  width: 278px;
  background: linear-gradient(170deg, #081321 0, #0f1f37 60%, #07111c 100%);
  color: #dce9f8;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s ease;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(8, 17, 30, 0.58);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sidebar-backdrop.open {
  opacity: 1;
  visibility: visible;
}

body.sidebar-open {
  overflow: hidden;
}

.sidebar-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: #8fa3bb;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: conic-gradient(from 220deg, #13d3b4, #1379ff, #13d3b4);
  box-shadow: 0 0 0 4px rgba(14, 98, 255, 0.24), 0 14px 28px rgba(13, 63, 143, 0.45);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: conic-gradient(from 220deg, #13d3b4, #1379ff, #13d3b4);
  box-shadow: 0 0 0 4px rgba(14, 98, 255, 0.24), 0 14px 28px rgba(13, 63, 143, 0.45);
}

.brand-title {
  font-family: "Sora", sans-serif;
  font-weight: 600;
  font-size: 16px;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98abc3;
}

.nav-menu {
  display: grid;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(173, 198, 228, 0.22);
  color: #d2e4f7;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  transition: 0.2s ease;
}

.nav-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(173, 198, 228, 0.18);
  background: rgba(10, 21, 38, 0.55);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
  color: #cfe2f7;
}

.nav-text {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 600;
}

.nav-end-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid rgba(8, 17, 30, 0.9);
  background: rgba(152, 171, 195, 0.5);
  box-shadow: 0 0 0 4px rgba(152, 171, 195, 0.12);
  flex: 0 0 auto;
}

.nav-item[aria-current="page"] {
  font-weight: 600;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(120deg, rgba(20, 99, 255, 0.36), rgba(0, 167, 179, 0.22));
  border-color: rgba(124, 167, 225, 0.68);
  transform: translateY(-1px);
}

.nav-item.active .nav-icon,
.nav-item[aria-current="page"] .nav-icon {
  background: rgba(20, 99, 255, 0.18);
  border-color: rgba(124, 167, 225, 0.48);
}

.nav-item.active .nav-end-dot,
.nav-item[aria-current="page"] .nav-end-dot {
  background: #2ecc71;
  box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.18);
}

.sidebar-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(13, 30, 53, 0.65);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0d7cff, #0eb5b4);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.foot-name {
  font-size: 13px;
}

.foot-role {
  font-size: 11px;
  color: #a7bfd8;
}

.main-wrap {
  flex: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: static;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right form {
  margin: 0;
  display: inline-flex;
}

.crumb {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-soft);
}

.live-pill {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #2a5e43;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid #bce6d4;
  background: #ebfff5;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 100%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(17, 155, 104, 0.15);
}

.content-wrap {
  display: grid;
  gap: 16px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.page-kicker {
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.page-title {
  margin: 3px 0;
  font-family: "Sora", sans-serif;
  font-size: 29px;
}

.page-subtitle {
  margin: 0;
  color: var(--text-soft);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-primary,
.btn-outline,
.btn-link {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  white-space: nowrap;
}

.btn-primary {
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(125deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 26px rgba(15, 98, 193, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  padding: 9px 14px;
  color: #2f445b;
  background: #fff;
  border: 1px solid #bdd0e5;
}

.btn-outline:hover {
  border-color: #8ba8c7;
  background: #f5faff;
}

.btn-link {
  padding: 6px 10px;
  color: var(--primary);
  border: 1px solid #c6ddff;
  background: #eef5ff;
}

.btn-link:hover {
  background: #e6f1ff;
  border-color: #aacbff;
}

.btn-full {
  width: 100%;
}

.card {
  background: linear-gradient(170deg, #fff, #f8fcff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  padding: 18px;
}

.card-title {
  margin-bottom: 12px;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  color: #27405b;
  line-height: 1.35;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.metrics-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
  box-shadow: var(--shadow-2);
  transition: 0.22s ease;
  min-height: 96px;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.metric-label {
  font-size: 12px;
  color: var(--text-soft);
}

.metric-value {
  margin-top: 4px;
  font-family: "Sora", sans-serif;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

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

.status-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  align-items: center;
}

.status-name {
  font-size: 13px;
  color: #233f5b;
}

.status-total {
  font-weight: 700;
  color: #1c3f62;
}

.status-bar {
  grid-column: 1 / -1;
  height: 8px;
  background: #e7eff7;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 1px;
}

.status-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2284ff, #0fc9b1);
  transition: width 0.3s ease;
}

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

.filters-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  justify-content: flex-end;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.field {
  display: block;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: #4f6072;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c9dae9;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  min-height: 44px;
  color: #1d344b;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #61a0ff;
  box-shadow: 0 0 0 4px rgba(20, 99, 255, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #7e91a7;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #d7e4f0;
  border-radius: 12px;
  background: #fff;
  scrollbar-gutter: stable both-edges;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 740px;
}

th,
td {
  text-align: left;
  padding: 10px 11px;
  border-bottom: 1px solid #e7eff7;
  vertical-align: top;
  font-size: 13px;
}

th {
  font-family: "Sora", sans-serif;
  font-size: 12px;
  color: #49617a;
  background: #f4f9ff;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover {
  background: #f7fbff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.sub {
  font-size: 11px;
  color: #69819a;
}

.empty {
  padding: 16px;
  color: #68819a;
  font-size: 13px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
}

.badge-pending {
  color: #7b2028;
  background: #ffe8eb;
  border: 1px solid #f4c3ca;
}

.badge-manage {
  color: #7a4d00;
  background: #fff2cf;
  border: 1px solid #efd99f;
}

.badge-review {
  color: #06456b;
  background: #dff3ff;
  border: 1px solid #b2deef;
}

.badge-liquidation {
  color: #004864;
  background: #d7fbfb;
  border: 1px solid #9ee1e1;
}

.badge-closed {
  color: #095139;
  background: #dcfaeb;
  border: 1px solid #b0e9d1;
}

.badge-reopened {
  color: #5f365f;
  background: #f4e5f4;
  border: 1px solid #dfbde0;
}

.badge-truncated {
  color: #5e3b04;
  background: #ffe9c7;
  border: 1px solid #f0c785;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

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

.info-grid .k {
  display: block;
  font-size: 11px;
  color: #6c8094;
}

.info-grid strong {
  display: block;
  margin-top: 2px;
}

.stack-form {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.tabs-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tab-btn {
  border: 1px solid #c4d7ea;
  background: #f8fbff;
  color: #35536f;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
}

.tab-btn.active {
  background: linear-gradient(120deg, #1767ff, #0cb8b4);
  border-color: transparent;
  color: white;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

.tab-panel[hidden] {
  display: none !important;
}

.timeline {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.timeline-item {
  border: 1px solid #d6e4f1;
  border-radius: 12px;
  padding: 10px;
  background: #fbfeff;
}

.timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 12px;
  color: #4d647a;
}

.note-block {
  margin-top: 14px;
  border: 1px dashed #bbd3ea;
  border-radius: 10px;
  padding: 10px;
  color: #465d73;
  background: #f5faff;
}

.note-block-compact {
  margin-bottom: 12px;
}

.info-grid-compact {
  margin-top: 8px;
}

.progress-track {
  margin-top: 8px;
  height: 10px;
  border-radius: 999px;
  background: #e7eff7;
  overflow: hidden;
}

.progress-value {
  height: 100%;
  background: linear-gradient(90deg, #2284ff, #0fc9b1);
  transition: width 0.3s ease;
}

.status-note {
  margin-top: 8px;
  color: #0c5e3e;
}

.btn-primary.is-loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.form-grid {
  display: grid;
  gap: 10px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.show-action-btn {
  min-height: 46px;
  padding: 11px 18px;
}

.stack-form .show-action-btn {
  width: 100%;
}

.form-grid.cols-2 .show-action-btn {
  width: 100%;
  grid-column: 1 / 2;
  margin-top: 6px;
}

.payments-table {
  margin-top: 14px;
}

.tab-panel .form-grid + .table-wrap {
  margin-top: 14px;
}

.flash {
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid;
  font-size: 13px;
}

.flash + .flash {
  margin-top: 8px;
}

.flash-success {
  background: #edfff6;
  border-color: #b7e8cf;
  color: #0c5e3e;
}

.flash-error {
  background: #fff0f2;
  border-color: #efc2c7;
  color: #7d222a;
}

.flash-info {
  background: #eef6ff;
  border-color: #c4daf7;
  color: #17497a;
}

/* Alertas Profesionales */
.alert-professional {
  display: flex;
  gap: 16px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-warning {
  background-color: #fff9db;
  border-color: #ffe066;
  color: #856404;
}

.alert-info {
  background-color: #e7f5ff;
  border-color: #a5d8ff;
  color: #0c85d0;
}

.alert-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-content {
  flex-grow: 1;
}

.alert-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 1rem;
}

.alert-message {
  opacity: 0.9;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.auth-body {
  min-height: 100vh;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.auth-layout {
  height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #ffffff;
}

.auth-panel {
  display: flex;
  background: #ffffff;
}

.auth-panel-inner {
  height: 100vh;
  width: 100%;
  padding: clamp(24px, 3.1vw, 36px) clamp(22px, 4vw, 48px) clamp(30px, 3.8vw, 40px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.auth-brand {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.auth-brand .brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.18), 0 8px 14px rgba(13, 63, 143, 0.18);
}

.auth-brand .brand-title {
  font-size: 16px;
  line-height: 1;
  font-weight: 600;
  color: #102338;
}

.auth-main {
  width: min(360px, 100%);
  margin-top: clamp(64px, 12vh, 126px);
  margin-left: clamp(60px, 8.2vw, 132px);
  display: grid;
  gap: 12px;
}

.auth-title {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: #4e6278;
}

.auth-heading {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(34px, 2.65vw, 40px);
  line-height: 1.1;
  color: #1a2637;
}

.auth-field {
  position: relative;
  gap: 0;
}

.auth-field-label {
  position: absolute;
  top: -7px;
  left: 12px;
  z-index: 1;
  display: inline-block;
  padding: 0 5px;
  font-size: 11px;
  color: #8392a3;
  background: #ffffff;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap input {
  min-height: 52px;
  border-radius: 12px;
  border-color: #cad3df;
  padding: 14px 52px 14px 13px;
  font-size: 15px;
  background: #fff;
}

.auth-input-wrap input::placeholder {
  color: #9aa8b8;
}

.auth-input-icon {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #a4b0be;
  pointer-events: none;
}

.auth-input-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.auth-pass-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #c9dae9;
  border-radius: 10px;
  padding: 0;
  background: #f5f9ff;
  color: #2d567c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.auth-pass-toggle:hover {
  background: #ebf4ff;
  border-color: #b4cdea;
}

.auth-pass-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(20, 99, 255, 0.15);
}

.auth-pass-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.auth-pass-toggle .icon-eye-off {
  display: none;
}

.auth-pass-toggle.is-visible .icon-eye {
  display: none;
}

.auth-pass-toggle.is-visible .icon-eye-off {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-field:focus-within .auth-field-label {
  color: #3f79ea;
}

.auth-form {
  margin-top: 8px;
  gap: 13px;
}

.auth-submit {
  min-height: 50px;
  margin-top: 4px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: #3f79ea;
  box-shadow: none;
}

.auth-submit:hover {
  transform: none;
  filter: brightness(1.05);
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 2.2vw, 28px);
  overflow: hidden;
  border-left: 1px solid #d4deef;
  background: #dce7fb;
}

.auth-hero img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center center;
  border-radius: 28px;
  display: block;
}

.mobile-only {
  display: none;
}

.animate-fade {
  animation: fadeIn 0.25s ease;
}

.animate-pop {
  animation: popIn 0.25s ease;
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .metrics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .auth-body {
    height: auto;
    overflow-y: auto;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    height: auto;
  }

  .auth-panel-inner {
    height: auto;
    min-height: 100vh;
    padding: 22px 18px 28px;
  }

  .auth-main {
    width: min(360px, 100%);
    margin-top: 36px;
    margin-left: 0;
  }

  .auth-brand .brand-dot {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    box-shadow: 0 0 0 3px rgba(14, 98, 255, 0.16), 0 8px 14px rgba(13, 63, 143, 0.18);
  }

  .auth-brand .brand-title {
    font-size: 16px;
  }

  .auth-heading {
    font-size: clamp(32px, 9vw, 40px);
  }

  .auth-hero {
    display: none;
  }
}

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    z-index: 30;
    height: 100vh;
    transform: translateX(-104%);
  }

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

  .mobile-only {
    display: inline-flex;
  }

  .main-wrap {
    padding: 14px;
  }

  .topbar {
    position: static;
    backdrop-filter: none;
    background: transparent;
    padding-top: 0;
  }

  .metrics-grid,
  .detail-grid,
  .two-col,
  .filters-grid,
  .form-grid.cols-2,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-title {
    font-size: 32px;
    line-height: 1.15;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .header-actions .btn-primary,
  .header-actions .btn-outline,
  .filters-actions .btn-primary,
  .filters-actions .btn-outline {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
