:root {
  color-scheme: light;
}

.dark {
  color-scheme: dark;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  width: 100%;
  transition: background-color 180ms ease, color 180ms ease;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

input,
select,
textarea,
button {
  max-width: 100%;
  min-width: 0;
}

main,
section,
article,
div,
form,
table,
.overflow-x-auto,
.grid,
.flex {
  min-width: 0;
}

.overflow-x-auto {
  max-width: 100%;
  overflow-x: hidden !important;
}

table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
}

th,
td {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: normal;
}

a,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span {
  overflow-wrap: anywhere;
}

td .flex,
th .flex {
  min-width: 0;
  flex-wrap: wrap;
}

.rounded-3xl,
.rounded-\[2rem\] {
  border-radius: 0.5rem;
}

.bg-white\/86 {
  background-color: rgba(255, 255, 255, 0.86);
}

.bg-white\/88 {
  background-color: rgba(255, 255, 255, 0.88);
}

.bg-white\/8 {
  background-color: rgba(255, 255, 255, 0.08);
}

.hover\:bg-white\/14:hover {
  background-color: rgba(255, 255, 255, 0.14);
}

.dark .dark\:bg-\[\#211a17\]\/92 {
  background-color: rgba(33, 26, 23, 0.92);
}

.app-shell {
  transition: padding-left 260ms ease;
}

.app-sidebar {
  --nav-bg: #fffdfb;
  --nav-border: #e7d9cf;
  --nav-text: #332c29;
  --nav-text-strong: #241f1d;
  --nav-muted: #5f5650;
  --nav-hover-bg: #f7efe9;
  --nav-hover-border: #ead7ca;
  --nav-active-bg: #2b211d;
  --nav-active-text: #ffffff;
  --nav-icon-bg: #fbf7f4;
  --nav-icon-text: #6b4d3a;
  --nav-icon-border: #ead7ca;
  --nav-profile-bg: #fbf7f4;
  --nav-profile-hover: #f3e8df;
  background:
    linear-gradient(180deg, rgba(251, 247, 244, 0.96), rgba(255, 255, 255, 0.98) 28%, rgba(255, 255, 255, 1));
  border-color: var(--nav-border);
  color: var(--nav-text);
  box-shadow: 0 22px 55px rgba(43, 33, 29, 0.08);
  max-width: calc(100vw - 0.75rem);
  width: min(18rem, calc(100vw - 0.75rem));
  transition: width 260ms ease, max-width 260ms ease, transform 260ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.app-topbar,
.app-topbar > div,
.app-topbar .ml-auto,
.workspace-switch {
  min-width: 0;
  max-width: 100%;
}

.ui-icon {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.avatar-shape {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.avatar-image {
  object-fit: cover;
  background-color: #f3e8df;
}

.avatar-fallback {
  background-color: #7a4f3d;
  color: #ffffff;
  font-weight: 700;
}

.nav-icon-button .ui-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.sidebar-icon .ui-icon {
  width: 1.05rem;
  height: 1.05rem;
}

.topbar-search-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.topbar-search-icon .ui-icon {
  width: 1rem;
  height: 1rem;
}

.sidebar-logo {
  min-width: 0;
}

html:not(.dark) .app-sidebar .sidebar-logo img {
  filter: drop-shadow(0 1px 1px rgba(43, 33, 29, 0.24)) contrast(1.08) saturate(1.02);
}

.sidebar-mini-logo {
  display: none;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  width: 2.75rem;
  border: 1px solid var(--nav-icon-border);
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #2b211d, #7a4f3d);
  color: #fffaf6;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 12px 26px rgba(43, 33, 29, 0.16);
}

.sidebar-collapse-toggle {
  position: absolute;
  top: 5.25rem;
  right: -1.05rem;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  height: 2.1rem;
  width: 2.1rem;
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  background-color: rgba(255, 253, 251, 0.96);
  color: var(--nav-text-strong);
  box-shadow: 0 12px 28px rgba(43, 33, 29, 0.16);
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
  background-color: #2b211d;
  border-color: #2b211d;
  color: #fffaf6;
  box-shadow: 0 16px 32px rgba(43, 33, 29, 0.2);
  transform: scale(1.04);
  outline: none;
}

.sidebar-collapse-toggle [data-sidebar-collapse-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-collapse-toggle .ui-icon {
  width: 1rem;
  height: 1rem;
  transition: transform 220ms ease;
}

.sidebar-collapse-toggle [data-sidebar-collapse-icon].is-collapsed .ui-icon {
  transform: rotate(180deg);
}

.app-sidebar .sidebar-section-label {
  color: var(--nav-muted);
  letter-spacing: 0.16em;
}

html:not(.dark) .app-sidebar .sidebar-section-label {
  color: #5d544f;
}

.app-sidebar .sidebar-link {
  border: 1px solid transparent;
  color: var(--nav-text);
  outline: none;
}

html:not(.dark) .app-sidebar .sidebar-link {
  color: #332c29;
}

.app-sidebar .sidebar-link:hover,
.app-sidebar .sidebar-link:focus-visible {
  background-color: var(--nav-hover-bg);
  border-color: var(--nav-hover-border);
  color: var(--nav-text-strong);
  box-shadow: 0 10px 22px rgba(43, 33, 29, 0.06);
  transform: translateX(2px);
}

.app-sidebar .sidebar-link.is-active {
  background: linear-gradient(135deg, #2b211d, #4f382f);
  border-color: #2b211d;
  color: var(--nav-active-text);
  box-shadow: 0 14px 28px rgba(43, 33, 29, 0.18);
}

html:not(.dark) .app-sidebar .sidebar-link.is-active {
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}

.app-sidebar .sidebar-icon {
  background-color: var(--nav-icon-bg);
  border: 1px solid var(--nav-icon-border);
  color: var(--nav-icon-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.app-sidebar .sidebar-link[data-workspace-item="consultorio"] .sidebar-icon {
  color: #6b4d3a;
}

.app-sidebar .sidebar-link[data-workspace-item="cursos"] .sidebar-icon {
  color: #70563f;
}

.app-sidebar .sidebar-link[data-workspace-item="all"] .sidebar-icon {
  color: #6b4d3a;
}

html:not(.dark) .app-sidebar .sidebar-icon {
  color: #6b4d3a;
}

.app-sidebar .sidebar-link:hover .sidebar-icon,
.app-sidebar .sidebar-link:focus-visible .sidebar-icon {
  background-color: #ffffff;
  border-color: #d9bda8;
  color: #7a4f3d;
}

.app-sidebar .sidebar-link.is-active .sidebar-icon {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-shadow: none;
}

html:not(.dark) .app-sidebar .sidebar-link.is-active .sidebar-icon {
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
}

.app-sidebar .sidebar-profile {
  background-color: var(--nav-profile-bg);
  border: 1px solid var(--nav-hover-border);
  color: var(--nav-text-strong);
}

html:not(.dark) .app-sidebar .sidebar-profile-text span:first-child {
  color: #332c29;
}

html:not(.dark) .app-sidebar .sidebar-profile-text span:last-child {
  color: #5f5650;
}

.app-sidebar .sidebar-profile:hover,
.app-sidebar .sidebar-profile:focus-visible {
  background-color: var(--nav-profile-hover);
  box-shadow: 0 12px 24px rgba(43, 33, 29, 0.08);
}

.app-sidebar .nav-icon-button,
.nav-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--nav-border, #e7d9cf);
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--nav-text, #403a36);
  box-shadow: 0 8px 18px rgba(43, 33, 29, 0.06);
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-icon-button:hover,
.nav-icon-button:focus-visible {
  background-color: #f7efe9;
  border-color: #d9bda8;
  color: #2b211d;
  box-shadow: 0 12px 24px rgba(43, 33, 29, 0.1);
  transform: translateY(-1px);
}

.app-topbar {
  --topbar-bg: rgba(251, 247, 244, 0.92);
  --topbar-border: rgba(231, 217, 207, 0.92);
  --topbar-control-bg: rgba(255, 255, 255, 0.9);
  --topbar-control-border: #e7d9cf;
  --topbar-text: #403a36;
  --topbar-muted: #78716c;
  --topbar-hover-bg: #ffffff;
  --topbar-hover-border: #d6b69f;
  background-color: var(--topbar-bg);
  border-color: var(--topbar-border);
  color: var(--topbar-text);
}

.topbar-search,
.workspace-switch,
.topbar-action {
  background-color: var(--topbar-control-bg);
  border: 1px solid var(--topbar-control-border);
  box-shadow: 0 8px 18px rgba(43, 33, 29, 0.05);
}

.topbar-search {
  color: var(--topbar-text);
}

.topbar-search-icon,
.topbar-search input::placeholder {
  color: var(--topbar-muted);
}

.topbar-search:focus-within {
  border-color: var(--topbar-hover-border);
  box-shadow: 0 0 0 4px rgba(184, 135, 107, 0.12), 0 10px 24px rgba(43, 33, 29, 0.07);
}

.topbar-search input {
  color: var(--topbar-text);
}

.workspace-pill {
  border: 1px solid transparent;
  color: #5f5650;
  white-space: nowrap;
}

.workspace-pill:hover,
.workspace-pill:focus-visible {
  background-color: #f7efe9;
  color: #2b211d;
}

.workspace-pill.is-active {
  background: linear-gradient(135deg, #2b211d, #7a4f3d);
  color: #fffaf6;
  box-shadow: 0 8px 16px rgba(43, 33, 29, 0.18);
}

.topbar-action {
  color: var(--topbar-text);
}

.theme-toggle [data-theme-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle [data-theme-icon].hidden {
  display: none;
}

.is-disabled-field {
  opacity: 0.45;
}

.app-topbar .nav-icon-button {
  background-color: var(--topbar-control-bg);
  border-color: var(--topbar-control-border);
  color: var(--topbar-text);
}

.app-topbar .nav-icon-button:hover,
.app-topbar .nav-icon-button:focus-visible {
  background-color: var(--topbar-hover-bg);
  border-color: var(--topbar-hover-border);
  color: #2b211d;
  box-shadow: 0 12px 24px rgba(43, 33, 29, 0.1);
  transform: translateY(-1px);
}

.topbar-action:hover,
.topbar-action:focus-visible {
  background-color: var(--topbar-hover-bg);
  border-color: var(--topbar-hover-border);
  color: #2b211d;
  box-shadow: 0 12px 24px rgba(43, 33, 29, 0.1);
  transform: translateY(-1px);
}

.dark .app-sidebar {
  --nav-bg: #1c1613;
  --nav-border: rgba(255, 255, 255, 0.1);
  --nav-text: #e7e0dc;
  --nav-text-strong: #ffffff;
  --nav-muted: #a99c95;
  --nav-hover-bg: rgba(255, 255, 255, 0.075);
  --nav-hover-border: rgba(184, 135, 107, 0.24);
  --nav-active-bg: rgba(184, 135, 107, 0.18);
  --nav-active-text: #ffffff;
  --nav-icon-bg: rgba(255, 255, 255, 0.06);
  --nav-icon-text: #e0c1ad;
  --nav-icon-border: rgba(255, 255, 255, 0.1);
  --nav-profile-bg: rgba(255, 255, 255, 0.06);
  --nav-profile-hover: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(43, 33, 29, 0.98), rgba(28, 22, 19, 0.98));
  border-color: var(--nav-border);
  color: var(--nav-text);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.dark .app-sidebar .sidebar-link:hover,
.dark .app-sidebar .sidebar-link:focus-visible {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dark .app-sidebar .sidebar-link.is-active {
  background: linear-gradient(135deg, rgba(184, 135, 107, 0.24), rgba(122, 79, 61, 0.2));
  border-color: rgba(184, 135, 107, 0.42);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #b8876b, 0 12px 28px rgba(0, 0, 0, 0.16);
}

.dark .app-sidebar .sidebar-link[data-workspace-item="consultorio"] .sidebar-icon,
.dark .app-sidebar .sidebar-link[data-workspace-item="cursos"] .sidebar-icon,
.dark .app-sidebar .sidebar-link[data-workspace-item="all"] .sidebar-icon {
  color: #e0c1ad;
}

.dark .app-sidebar .sidebar-link:hover .sidebar-icon,
.dark .app-sidebar .sidebar-link:focus-visible .sidebar-icon {
  background-color: rgba(184, 135, 107, 0.14);
  border-color: rgba(184, 135, 107, 0.36);
  color: #f3e8df;
}

.dark .app-sidebar .sidebar-link.is-active .sidebar-icon {
  background-color: rgba(184, 135, 107, 0.22);
  border-color: rgba(243, 232, 223, 0.26);
  color: #ffffff;
}

.dark .sidebar-mini-logo {
  border-color: rgba(243, 232, 223, 0.18);
  background: linear-gradient(135deg, rgba(184, 135, 107, 0.34), rgba(122, 79, 61, 0.28));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.dark .sidebar-collapse-toggle {
  background-color: rgba(33, 26, 23, 0.98);
  border-color: rgba(184, 135, 107, 0.34);
  color: #f5f0ed;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.dark .sidebar-collapse-toggle:hover,
.dark .sidebar-collapse-toggle:focus-visible {
  background-color: rgba(184, 135, 107, 0.2);
  border-color: rgba(184, 135, 107, 0.48);
  color: #ffffff;
}

.dark .app-topbar {
  --topbar-bg: rgba(23, 19, 17, 0.92);
  --topbar-border: rgba(255, 255, 255, 0.09);
  --topbar-control-bg: rgba(255, 255, 255, 0.055);
  --topbar-control-border: rgba(255, 255, 255, 0.1);
  --topbar-text: #f5f0ed;
  --topbar-muted: #a8a29e;
  --topbar-hover-bg: rgba(255, 255, 255, 0.09);
  --topbar-hover-border: rgba(184, 135, 107, 0.36);
}

.dark input,
.dark select,
.dark textarea {
  color: #f5f0ed;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #a8a29e;
}

.dark select option {
  background-color: #211a17;
  color: #f5f0ed;
}

.dark .workspace-pill {
  color: #d6d3d1;
}

.dark .workspace-pill:hover,
.dark .workspace-pill:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dark .workspace-pill.is-active {
  background: linear-gradient(135deg, rgba(184, 135, 107, 0.24), rgba(122, 79, 61, 0.24));
  border: 1px solid rgba(184, 135, 107, 0.34);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(243, 232, 223, 0.06), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dark .nav-icon-button {
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f5f0ed;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.dark .nav-icon-button:hover,
.dark .nav-icon-button:focus-visible,
.dark .app-topbar .nav-icon-button:hover,
.dark .app-topbar .nav-icon-button:focus-visible,
.dark .topbar-action:hover,
.dark .topbar-action:focus-visible {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: rgba(184, 135, 107, 0.36);
  color: #ffffff;
}

.soft-fade {
  animation: softFade 0.35s ease both;
}

.tour-running {
  scroll-behavior: smooth;
}

.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 19, 17, 0.44);
  backdrop-filter: blur(2px);
}

.tour-overlay.hidden {
  display: none;
}

.tour-highlight {
  position: fixed;
  z-index: 81;
  border: 2px solid #f3e8df;
  border-radius: 0.75rem;
  box-shadow: 0 0 0 9999px rgba(23, 19, 17, 0.42), 0 18px 44px rgba(43, 33, 29, 0.24);
  pointer-events: none;
  transition: top 180ms ease, left 180ms ease, width 180ms ease, height 180ms ease;
}

.tour-card {
  position: fixed;
  z-index: 82;
  width: min(22.5rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  border: 1px solid rgba(231, 217, 207, 0.95);
  border-radius: 0.75rem;
  background: rgba(255, 253, 251, 0.98);
  color: #2b211d;
  padding: 1rem;
  box-shadow: 0 24px 70px rgba(23, 19, 17, 0.28);
}

.tour-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a4f3d;
}

.tour-title {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0;
}

.tour-text {
  margin-top: 0.45rem;
  color: #5f5650;
  font-size: 0.9rem;
  line-height: 1.55;
}

.tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tour-action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tour-button {
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.tour-button:focus-visible {
  outline: 3px solid rgba(184, 135, 107, 0.24);
  outline-offset: 2px;
}

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

.tour-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.tour-button-muted {
  border: 1px solid #e7d9cf;
  background: #fffaf6;
  color: #5f5650;
}

.tour-button-muted:hover:not(:disabled) {
  border-color: #d6b69f;
  background: #f7efe9;
  color: #2b211d;
}

.tour-button-primary {
  border: 1px solid #7a4f3d;
  background: #2b211d;
  color: #fffaf6;
}

.tour-button-primary:hover {
  background: #7a4f3d;
}

.dark .tour-overlay {
  background: rgba(0, 0, 0, 0.52);
}

.dark .tour-highlight {
  border-color: #b8876b;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5), 0 18px 44px rgba(0, 0, 0, 0.34);
}

.dark .tour-card {
  border-color: rgba(184, 135, 107, 0.34);
  background: rgba(33, 26, 23, 0.98);
  color: #f5f0ed;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.dark .tour-kicker {
  color: #e0c1ad;
}

.dark .tour-text {
  color: #d6d3d1;
}

.dark .tour-button-muted {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f5f0ed;
}

.dark .tour-button-muted:hover:not(:disabled) {
  border-color: rgba(184, 135, 107, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.dark .tour-button-primary {
  border-color: rgba(184, 135, 107, 0.48);
  background: #b8876b;
  color: #171311;
}

.dark .tour-button-primary:hover {
  background: #f3e8df;
}

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

[data-workspace="consultorio"] [data-workspace-item="cursos"],
[data-workspace="cursos"] [data-workspace-item="consultorio"] {
  opacity: 0.92;
}

[data-workspace="consultorio"] [data-workspace-item="consultorio"],
[data-workspace="cursos"] [data-workspace-item="cursos"] {
  opacity: 1;
}

@media (min-width: 1024px) {
  .app-shell {
    padding-left: 18rem;
  }

  .sidebar-collapse-toggle {
    display: inline-flex;
  }

  .sidebar-collapsed .app-shell {
    padding-left: 5.75rem;
  }

  .sidebar-collapsed .app-sidebar {
    width: 5.75rem;
    max-width: 5.75rem;
  }

  .sidebar-collapsed .app-sidebar .sidebar-logo {
    width: 100%;
    justify-content: center;
  }

  .sidebar-collapsed .app-sidebar .sidebar-logo img {
    display: none !important;
  }

  .sidebar-collapsed .app-sidebar .sidebar-mini-logo {
    display: inline-flex;
  }

  .sidebar-collapsed .app-sidebar nav {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .sidebar-collapsed .app-sidebar .sidebar-section-label,
  .sidebar-collapsed .app-sidebar .sidebar-link-label,
  .sidebar-collapsed .app-sidebar .sidebar-profile-text {
    width: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    white-space: nowrap;
  }

  .sidebar-collapsed .app-sidebar .sidebar-link {
    justify-content: center;
    gap: 0;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .sidebar-collapsed .app-sidebar .sidebar-link:hover,
  .sidebar-collapsed .app-sidebar .sidebar-link:focus-visible {
    transform: translateX(0) scale(1.03);
  }

  .sidebar-collapsed .app-sidebar .sidebar-icon {
    height: 2.55rem;
    width: 2.55rem;
    flex: none;
  }

  .sidebar-collapsed .app-sidebar .sidebar-icon .ui-icon {
    width: 1.15rem;
    height: 1.15rem;
  }

  .sidebar-collapsed .app-sidebar .sidebar-profile {
    justify-content: center;
    padding: 0.75rem;
  }

  .sidebar-collapsed .app-sidebar .sidebar-profile-avatar {
    height: 2.55rem;
    width: 2.55rem;
    flex: none;
  }
}

@media (max-width: 767px) {
  body {
    position: relative;
  }

  .tour-card {
    width: calc(100vw - 1.5rem);
    padding: 0.95rem;
  }

  .tour-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tour-action-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .tour-button {
    width: 100%;
  }

  .app-topbar > div,
  main {
    max-width: 100vw;
  }

  .workspace-switch {
    flex-shrink: 1;
    overflow: hidden;
  }

  .workspace-pill {
    padding: 0.55rem 0.7rem;
    font-size: 0.75rem;
  }

  .topbar-action {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .nav-icon-button {
    min-height: 2.5rem;
    min-width: 2.5rem;
  }

  main table,
  main thead,
  main tbody,
  main tr,
  main th,
  main td,
  .overflow-x-auto table,
  .overflow-x-auto thead,
  .overflow-x-auto tbody,
  .overflow-x-auto tr,
  .overflow-x-auto th,
  .overflow-x-auto td {
    display: block;
    width: 100%;
  }

  main thead,
  .overflow-x-auto thead {
    display: none;
  }

  main tbody,
  .overflow-x-auto tbody {
    display: grid;
    gap: 0.75rem;
  }

  main tr,
  .overflow-x-auto tr {
    overflow: hidden;
    border: 1px solid #eadbd1;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 22px rgba(43, 33, 29, 0.05);
  }

  main td,
  .overflow-x-auto td {
    border-bottom: 1px solid #f0e4dc;
    padding: 0.85rem 1rem !important;
    text-align: left !important;
    white-space: normal;
  }

  main td:last-child,
  .overflow-x-auto td:last-child {
    border-bottom: 0;
  }

  main td .flex,
  .overflow-x-auto td .flex {
    justify-content: flex-start;
  }

  main td form,
  .overflow-x-auto td form {
    max-width: 100%;
  }

  .dark main tr,
  .dark .overflow-x-auto tr {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.045);
    box-shadow: none;
  }

  .dark main td,
  .dark .overflow-x-auto td {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 380px) {
  .app-topbar > div {
    gap: 0.4rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .workspace-pill {
    padding: 0.45rem 0.5rem;
    font-size: 0.7rem;
  }

  .topbar-action {
    padding: 0.55rem 0.65rem;
    font-size: 0.72rem;
  }

  .nav-icon-button {
    min-height: 2.25rem;
    min-width: 2.25rem;
  }
}

@media print {
  .no-print {
    display: none !important;
  }

  body {
    background: #fff !important;
  }

  .print-page {
    box-shadow: none !important;
    margin: 0 !important;
  }
}
