.admin-dashboard-page {
  --admin-ink: #1d1a16;
  --admin-muted: rgba(29, 26, 22, 0.6);
  --admin-soft: rgba(29, 26, 22, 0.08);
  --admin-panel: #fffdf9;
  --admin-wash: #f8f0e8;
  --admin-accent: #506e58;
  --admin-action: #bd6544;
  --admin-action-strong: #9e482e;
  --admin-action-soft: #fff0e7;
  min-height: 100vh;
  background: #f7f2ec;
  color: var(--admin-ink);
}

.admin-dashboard-page [hidden] {
  display: none !important;
}

.admin-app-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.28s ease;
}

.admin-dashboard-page.is-sidebar-collapsed .admin-app-shell {
  grid-template-columns: 244px minmax(0, 1fr);
}

.admin-sidebar-toggle {
  position: fixed;
  top: 22px;
  left: 225px;
  z-index: 80;
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(189, 101, 68, 0.22);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--admin-action);
  box-shadow: 0 12px 34px rgba(189, 101, 68, 0.14);
  cursor: pointer;
  transition:
    left 0.28s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.admin-sidebar-toggle:hover {
  border-color: rgba(189, 101, 68, 0.38);
  background: var(--admin-action-soft);
  color: var(--admin-action-strong);
}

.admin-sidebar-toggle .toggle-icon {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateX(2px) rotate(-45deg);
  transition: transform 0.2s ease;
}

.admin-dashboard-page.is-sidebar-collapsed .admin-sidebar-toggle {
  left: 20px;
}

.admin-dashboard-page.is-sidebar-collapsed .admin-sidebar-toggle .toggle-icon {
  transform: translateX(-2px) rotate(135deg);
}

.admin-auth-gate {
  display: grid;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 72px);
  place-items: center;
  background:
    linear-gradient(rgba(247, 246, 243, 0.88), rgba(247, 246, 243, 0.94)),
    url("../assets/hero-dog-paris-2026.webp") center/cover;
}

.admin-dashboard-page.is-auth-checking .admin-auth-gate {
  display: none;
}

.admin-auth-card {
  display: grid;
  gap: 22px;
  width: min(100%, 520px);
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(23, 23, 19, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 80px rgba(23, 23, 19, 0.16);
}

.admin-auth-card h1 {
  margin: 0;
  color: #171713;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
}

.admin-auth-card > p:not(.admin-eyebrow),
.admin-auth-feedback {
  margin: 0;
  color: rgba(23, 23, 19, 0.66);
  font-size: 1.26rem;
  line-height: 1.5;
}

.admin-auth-form {
  display: grid;
  gap: 14px;
}

.admin-auth-form label {
  display: grid;
  gap: 8px;
  color: rgba(23, 23, 19, 0.72);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(23, 23, 19, 0.16);
  border-radius: 8px;
  background: #fbfafa;
  color: #171713;
  font: inherit;
  font-size: 1.28rem;
  letter-spacing: 0;
  text-transform: none;
}

.admin-auth-form input:focus {
  border-color: #656c5c;
  outline: 3px solid rgba(101, 108, 92, 0.16);
}

.admin-auth-form .admin-button {
  width: 100%;
  margin-top: 4px;
}

.admin-auth-feedback {
  min-height: 1.5em;
}

.admin-auth-feedback.is-error {
  color: #84231a;
  font-weight: 650;
}

.admin-auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.admin-auth-links a {
  color: rgba(23, 23, 19, 0.7);
  font-size: 1.16rem;
  font-weight: 700;
}

.admin-sidebar-logout {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(29, 26, 22, 0.12);
  border-radius: 8px;
  background: transparent;
  color: rgba(29, 26, 22, 0.68);
  font: inherit;
  font-size: 1.16rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-sidebar-logout:hover {
  border-color: rgba(189, 101, 68, 0.26);
  background: var(--admin-action-soft);
  color: var(--admin-action);
}

.admin-sidebar {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 244px;
  min-height: 0;
  height: auto;
  max-height: calc(100vh - 32px);
  margin: 16px 0;
  padding: 22px 18px;
  overflow-y: auto;
  border-radius: 0 8px 8px 0;
  border: 1px solid rgba(189, 101, 68, 0.12);
  border-left: 0;
  background: rgba(255, 253, 249, 0.94);
  color: var(--admin-ink);
  box-shadow: 0 18px 54px rgba(189, 101, 68, 0.08);
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.admin-dashboard-page.is-sidebar-collapsed .admin-sidebar {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.admin-brand {
  display: inline-block;
  width: 132px;
  overflow: hidden;
  aspect-ratio: 585 / 260;
  line-height: 0;
}

.admin-brand .official-brand-image {
  display: block;
  width: 106.84%;
  max-inline-size: none;
  max-block-size: none;
  height: auto;
  transform: translate(-3.2%, -19.86%);
}

.admin-nav {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.admin-nav a,
.admin-sidebar-footer a {
  display: flex;
  align-items: center;
  min-height: 38px;
  border-radius: 8px;
  color: rgba(29, 26, 22, 0.68);
  font-size: 1.16rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.admin-nav a {
  padding: 0 12px;
}

.admin-nav a:hover,
.admin-sidebar-footer a:hover {
  background: var(--admin-action-soft);
  color: var(--admin-action);
}

.admin-nav a.is-active {
  background: var(--admin-action);
  color: #fffdf9;
}

.admin-sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
}

.admin-sidebar-footer span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(189, 101, 68, 0.2);
  border-radius: 8px;
  background: var(--admin-action-soft);
  color: var(--admin-action);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-sidebar-footer a {
  padding: 0;
}

.admin-brand-bottom {
  box-sizing: content-box;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(189, 101, 68, 0.12);
}

.admin-main {
  min-width: 0;
  padding: 22px clamp(24px, 4vw, 56px) 48px;
  transition: padding-left 0.28s ease;
}

.admin-dashboard-page.is-sidebar-collapsed .admin-main {
  padding-left: clamp(24px, 4vw, 56px);
}

.admin-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  gap: 18px;
  width: 100%;
  height: auto;
  min-height: 0;
  padding: 0 0 14px;
  overflow: visible;
  background: transparent;
}

.admin-main-header > div:first-child {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-eyebrow {
  margin: 0 0 8px;
  color: rgba(23, 23, 19, 0.52);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-main-header .admin-eyebrow {
  margin: 0;
}

.admin-main-header h1,
.panel-heading h2 {
  margin: 0;
  color: #171713;
  font-size: clamp(2.4rem, 2.4vw, 3.2rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

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

.admin-header-actions span {
  color: rgba(23, 23, 19, 0.56);
  font-size: 1.2rem;
  font-weight: 500;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.admin-button:hover {
  transform: translateY(-1px);
}

.admin-button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.admin-button-primary {
  border: 1px solid var(--admin-action);
  background: var(--admin-action);
  color: #fffdf9;
}

.admin-button-primary:hover {
  border-color: var(--admin-action-strong);
  background: var(--admin-action-strong);
}

.admin-button-ghost {
  border: 1px solid rgba(23, 23, 19, 0.14);
  background: #fff;
  color: #171713;
}

.admin-dashboard-page :is(input, select, textarea, button, a):focus-visible {
  outline: 2px solid #171713;
  outline-offset: 3px;
}

.admin-dashboard-page :is(input, select, textarea)::placeholder {
  color: rgba(23, 23, 19, 0.38);
}

.admin-dashboard-page input[type="number"] {
  -moz-appearance: textfield;
}

.admin-dashboard-page input[type="number"]::-webkit-inner-spin-button,
.admin-dashboard-page input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.filter-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
}

.filter-segments label {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
  letter-spacing: 0;
  text-transform: none;
}

.filter-segments input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.filter-segments span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  width: 100%;
  border: 1px solid rgba(23, 23, 19, 0.12);
  border-radius: 8px;
  background: #fbfafa;
  color: rgba(23, 23, 19, 0.68);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.filter-segments span:hover {
  border-color: rgba(23, 23, 19, 0.32);
}

.filter-segments input:checked + span {
  border-color: #171713;
  background: #171713;
  color: #fbfafa;
}

.filter-segments input:focus-visible + span {
  outline: 2px solid #171713;
  outline-offset: 3px;
}

.admin-auth-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 16px;
  padding: 18px;
  border: 1px solid rgba(132, 35, 26, 0.18);
  border-radius: 8px;
  background: #fff8f6;
  color: #171713;
}

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

.admin-auth-panel strong {
  display: block;
  margin-bottom: 4px;
  color: #84231a;
  font-size: 1.34rem;
  font-weight: 750;
}

.admin-auth-panel p {
  max-width: 680px;
  margin: 0;
  color: rgba(23, 23, 19, 0.66);
  font-size: 1.18rem;
  line-height: 1.45;
}

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

.metric-panel,
.dashboard-panel {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 8px;
  background: #fff;
}

.metric-panel {
  display: grid;
  gap: 10px;
  min-height: 104px;
  padding: 18px;
}

.metric-panel span {
  color: rgba(23, 23, 19, 0.56);
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.metric-panel strong {
  color: #171713;
  font-size: clamp(3.4rem, 4.4vw, 4.8rem);
  font-weight: 650;
  line-height: 0.95;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
}

.daily-actions-panel {
  margin-top: 16px;
}

.daily-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.daily-action {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 8px;
  background: #fbfafa;
  color: #171713;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.daily-action:hover {
  border-color: rgba(23, 23, 19, 0.22);
  transform: translateY(-1px);
}

.daily-action span {
  color: rgba(23, 23, 19, 0.56);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.daily-action strong {
  color: #171713;
  font-size: 1.42rem;
  font-weight: 750;
  line-height: 1.2;
}

.daily-action small {
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.35;
}

.dashboard-side-column {
  display: grid;
  gap: 16px;
  align-content: start;
  min-width: 0;
}

.dashboard-panel {
  min-width: 0;
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
}

.panel-heading > * {
  min-width: 0;
}

.panel-status,
.tool-tag,
.client-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: #e7eee4;
  color: #40503a;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.panel-link:hover {
  color: #171713;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding-top: 22px;
}

.tool-card-main {
  display: grid;
  gap: 10px;
}

.tool-card h3 {
  margin: 0;
  color: #171713;
  font-size: clamp(2.2rem, 2.4vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
}

.tool-card p {
  max-width: 680px;
  margin: 0;
  color: rgba(23, 23, 19, 0.62);
  font-size: 1.34rem;
  font-weight: 300;
  line-height: 1.65;
}

.tool-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-breakdown span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 8px;
  background: #fbfafa;
  color: rgba(23, 23, 19, 0.62);
  font-size: 1.08rem;
  font-weight: 700;
}

.tool-breakdown strong {
  color: #171713;
  font-size: 1.28rem;
}

.tool-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.latest-client-list {
  display: grid;
  gap: 8px;
  padding-top: 10px;
}

.latest-client-card,
.latest-client-empty {
  border: 1px solid rgba(23, 23, 19, 0.08);
  border-radius: 8px;
  background: #fbfafa;
}

.latest-client-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #171713;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.latest-client-card:hover {
  border-color: rgba(23, 23, 19, 0.2);
  transform: translateY(-1px);
}

.latest-client-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.latest-client-name {
  min-width: 0;
}

.latest-client-name strong {
  display: block;
  color: #171713;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
}

.latest-client-name span,
.latest-client-meta {
  color: rgba(23, 23, 19, 0.58);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.35;
}

.client-status-pill {
  min-height: 26px;
  padding: 0 8px;
  font-size: 0.88rem;
}

.client-status-pill.is-prospect {
  background: #f2eee2;
  color: #6b5732;
}

.client-status-pill.is-paused {
  background: #f3e9e7;
  color: #84231a;
}

.client-status-pill.is-archived {
  background: #ececea;
  color: rgba(23, 23, 19, 0.58);
}

.latest-client-meta {
  margin: 0;
}

.latest-client-empty {
  display: grid;
  gap: 12px;
  padding: 18px;
  color: rgba(23, 23, 19, 0.62);
  font-size: 1.16rem;
  font-weight: 500;
  line-height: 1.45;
}

.latest-client-empty p {
  margin: 0;
}

.latest-client-empty .admin-button {
  width: fit-content;
  min-height: 36px;
  padding: 0 12px;
  font-size: 1.08rem;
}

.shortcut-list {
  display: grid;
  padding-top: 8px;
}

.shortcut-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  border-bottom: 1px solid rgba(23, 23, 19, 0.08);
  color: #171713;
}

.shortcut-list a:last-child {
  border-bottom: 0;
}

.shortcut-list span {
  font-size: 1.34rem;
  font-weight: 600;
}

.shortcut-list strong {
  color: rgba(23, 23, 19, 0.5);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.shortcut-list a:hover strong {
  color: #656c5c;
}

@media only screen and (max-width: 980px) {
  .admin-app-shell,
  .admin-dashboard-page.is-sidebar-collapsed .admin-app-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: auto;
    max-height: none;
    margin: 0;
    padding: 13px 72px 13px 20px;
    overflow: visible;
    border: 0;
    border-bottom: 1px solid rgba(189, 101, 68, 0.12);
    border-radius: 0;
    background: rgba(255, 253, 249, 0.97);
    box-shadow: 0 10px 30px rgba(73, 45, 31, 0.07);
    backdrop-filter: blur(16px);
  }

  .admin-dashboard-page.is-sidebar-collapsed .admin-sidebar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .admin-dashboard-page.is-sidebar-collapsed .admin-main {
    padding-left: clamp(24px, 4vw, 56px);
  }

  .admin-sidebar-toggle {
    top: 17px;
    right: 18px;
    left: auto;
    z-index: 90;
    display: inline-grid;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    box-shadow: none;
  }

  .admin-dashboard-page.is-sidebar-collapsed .admin-sidebar-toggle {
    left: auto;
  }

  .admin-sidebar-toggle .toggle-icon,
  .admin-dashboard-page.is-sidebar-collapsed .admin-sidebar-toggle .toggle-icon {
    position: relative;
    width: 20px;
    height: 14px;
    border: 0;
    transform: none;
  }

  .admin-sidebar-toggle .toggle-icon::before,
  .admin-sidebar-toggle .toggle-icon::after {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition:
      top 0.2s ease,
      bottom 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.2s ease;
  }

  .admin-sidebar-toggle .toggle-icon::before {
    top: 1px;
    box-shadow: 0 5px 0 currentColor;
  }

  .admin-sidebar-toggle .toggle-icon::after {
    bottom: 1px;
  }

  .admin-dashboard-page.is-mobile-nav-open .admin-sidebar-toggle .toggle-icon::before {
    top: 6px;
    box-shadow: none;
    transform: rotate(45deg);
  }

  .admin-dashboard-page.is-mobile-nav-open .admin-sidebar-toggle .toggle-icon::after {
    bottom: 6px;
    transform: rotate(-45deg);
  }

  .admin-brand {
    display: inline-block;
    width: 108px;
  }

  .admin-brand-bottom {
    order: -1;
    grid-column: 1;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }

  .admin-nav {
    grid-column: 1 / -1;
    width: 100%;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    visibility: hidden;
    transition:
      max-height 0.28s ease,
      margin 0.28s ease,
      padding 0.28s ease,
      border-color 0.28s ease,
      opacity 0.2s ease,
      transform 0.28s ease,
      visibility 0.28s ease;
  }

  .admin-nav a {
    min-height: 44px;
    padding: 0 14px;
  }

  .admin-sidebar-footer {
    grid-column: 1 / -1;
    display: grid;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
      max-height 0.28s ease,
      margin 0.28s ease,
      padding 0.28s ease,
      opacity 0.2s ease,
      visibility 0.28s ease;
  }

  .admin-dashboard-page.is-mobile-nav-open .admin-nav {
    max-height: 390px;
    margin-top: 12px;
    padding-top: 12px;
    border-top-color: rgba(189, 101, 68, 0.12);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .admin-dashboard-page.is-mobile-nav-open .admin-sidebar-footer {
    max-height: 190px;
    margin-top: 10px;
    padding-top: 10px;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-sidebar-toggle,
  .admin-sidebar-toggle .toggle-icon,
  .admin-sidebar-toggle .toggle-icon::before,
  .admin-sidebar-toggle .toggle-icon::after,
  .admin-nav,
  .admin-sidebar-footer {
    transition: none;
  }
}

@media only screen and (max-width: 1160px) {
  .dashboard-grid,
  .tool-card {
    grid-template-columns: 1fr;
  }

  .tool-card {
    align-items: start;
    gap: 14px;
  }

  .tool-card-actions {
    justify-content: flex-start;
  }
}

@media only screen and (max-width: 720px) {
  .admin-main {
    padding: 22px 14px 42px;
  }

  .admin-main-header,
  .admin-header-actions,
  .tool-card,
  .tool-card-actions,
  .panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-main-header,
  .tool-card,
  .panel-heading {
    display: grid;
  }

  .tool-card {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-header-actions {
    justify-content: flex-start;
  }

  .tool-card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }

  .metric-panel {
    min-height: 98px;
  }

  .dashboard-panel {
    padding: 18px;
  }

  .admin-button {
    width: 100%;
  }

  .panel-link {
    min-height: 44px;
  }
}
