:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: rgba(10, 18, 33, 0.74);
  --panel: rgba(11, 20, 38, 0.82);
  --panel-strong: rgba(16, 26, 46, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f7fb;
  --muted: #a5b0c2;
  --muted-2: #7d8799;
  --amber: #f1b85b;
  --amber-2: #e2a43d;
  --mint: #4dd4b4;
  --blue: #5ea3ff;
  --danger: #ff6b6b;
  --success: #4dd4b4;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden],
.auth-screen[hidden],
.app-shell[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.14), transparent 28%),
    radial-gradient(circle at 14% 15%, rgba(94, 163, 255, 0.14), transparent 18%),
    radial-gradient(circle at 86% 15%, rgba(241, 184, 91, 0.12), transparent 18%),
    radial-gradient(circle at 70% 84%, rgba(77, 212, 180, 0.12), transparent 26%),
    linear-gradient(180deg, #020305 0%, #050915 38%, #070b16 100%);
  color: var(--text);
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.96), rgba(8, 14, 28, 0.9));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-copy {
  padding: 12px 8px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.35));
}

.brand-logo-square {
  width: clamp(180px, 24vw, 280px);
  max-width: 100%;
}

.brand-logo-horizontal {
  width: min(100%, 760px);
  max-width: 100%;
}

.brand-logo-session {
  width: min(100%, 340px);
}

.brand-logo-small {
  width: 72px;
  flex: 0 0 auto;
}

.auth-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.auth-copy .brand-logo-horizontal {
  width: min(100%, 420px);
}

.auth-hints {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.auth-hints div {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-hints strong {
  display: block;
  margin-bottom: 6px;
}

.auth-hints span {
  color: var(--muted);
}

.auth-form {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  align-content: center;
  gap: 14px;
}

.auth-button {
  width: 100%;
  justify-content: center;
}

.auth-error {
  min-height: 1.2em;
  margin: 0;
  color: #ffb6b6;
  font-size: 0.94rem;
}

.session-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.88), rgba(8, 14, 28, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.session-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.session-bar h2 {
  margin: 2px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.15rem, 1.65vw, 1.55rem);
  line-height: 1;
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-self: end;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.sidebar-collapsed .dashboard-layout {
  grid-template-columns: 68px minmax(0, 1fr);
}

.dashboard-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 20px;
  padding: 10px 6px 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(5, 8, 15, 0.94));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.sidebar-toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(94, 163, 255, 0.8), rgba(241, 184, 91, 0.72), transparent);
  opacity: 0.95;
  pointer-events: none;
}

.sidebar-brand {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 1px 2px 10px 4px;
  margin-bottom: 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

.sidebar-brand-copy {
  min-width: 0;
}

.sidebar-kicker {
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--amber);
  font-size: 0.64rem;
  font-weight: 800;
}

.sidebar-brand strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.sidebar-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.sidebar-nav {
  display: grid;
  gap: 1px;
  max-height: calc(100vh - 108px);
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.sidebar-quick-links {
  display: grid;
  grid-column: 1 / -1;
  gap: 8px;
  padding: 10px 8px 12px;
  margin: 8px 0 10px;
  border: 1px solid rgba(94, 163, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.sidebar-section-label-prominent {
  display: block;
  margin: 0 0 2px;
  color: var(--amber);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  padding-bottom: 2px;
}

.sidebar-quick-item {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border-color: rgba(94, 163, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(94, 163, 255, 0.03));
}

.sidebar-quick-item .sidebar-icon {
  color: var(--amber);
}

.sidebar-quick-item:hover,
.sidebar-quick-item.active {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 9px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font: inherit;
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease,
    transform 160ms ease, box-shadow 160ms ease;
}

.sidebar-item:hover {
  color: var(--text);
  transform: translateX(1px);
  background: rgba(255, 255, 255, 0.035);
}

.sidebar-item.active {
  color: var(--text);
  border-color: rgba(94, 163, 255, 0.22);
  background: linear-gradient(90deg, rgba(94, 163, 255, 0.15), rgba(94, 163, 255, 0.04));
  box-shadow:
    inset 2px 0 0 rgba(94, 163, 255, 0.92),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.sidebar-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 0.68rem;
  line-height: 1;
}

.sidebar-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-item.active .sidebar-icon {
  color: #eaf3ff;
}

.sidebar-item span:last-child {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sidebar-toggle {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  align-self: start;
  justify-self: end;
  margin-left: auto;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.sidebar-toggle svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.sidebar-collapsed .sidebar {
  padding-inline: 3px;
}

body.sidebar-collapsed .sidebar-item span:last-child {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

body.sidebar-collapsed .sidebar-toggle {
  justify-self: center;
  margin-left: 0;
}

body.sidebar-collapsed .sidebar-nav {
  gap: 3px;
}

body.sidebar-collapsed .sidebar-item {
  justify-content: center;
  padding-inline: 3px;
}

body.sidebar-collapsed .sidebar-item .sidebar-icon {
  margin: 0;
}

.public-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  position: relative;
  z-index: 1;
}

.public-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 22px;
  margin-bottom: 20px;
  padding: 22px 24px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.92), rgba(8, 14, 28, 0.84));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.public-header-copy {
  display: grid;
  justify-items: start;
  gap: 9px;
  max-width: 940px;
}

.public-header-copy .brand-logo-horizontal {
  width: min(100%, 900px);
}

.public-header h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.public-header-actions,
.public-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-self: end;
  justify-self: end;
  padding-bottom: 8px;
}

.screen {
  display: grid;
  gap: 20px;
}

.screen-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.screen-hero h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

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

.bar-slab-list,
.finance-list {
  display: grid;
  gap: 12px;
}

.bar-slab {
  padding: 14px 16px 15px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.bar-slab-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.bar-slab-head strong {
  display: block;
}

.bar-slab-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(94, 163, 255, 0.85), rgba(241, 184, 91, 0.9));
}

.finance-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.finance-row-main strong,
.finance-row-side strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.finance-row-main span,
.finance-row-main small,
.finance-row-side span {
  color: var(--muted);
}

.finance-row-main small {
  display: block;
  margin-top: 4px;
}

.finance-row-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.finance-summary-grid,
.messages-stats {
  margin-bottom: 20px;
}

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

.quick-card {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  text-align: left;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.quick-card strong {
  font-size: 1rem;
}

.quick-card span {
  color: var(--muted);
  line-height: 1.5;
}

.report-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-secondary-grid {
  margin-top: 20px;
}

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

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.status-row strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.status-row span,
.status-row small {
  color: var(--muted);
}

.status-row small {
  display: block;
  margin-top: 4px;
}

.message-highlight-list {
  display: grid;
  gap: 12px;
}

.message-compact {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.message-compact strong {
  font-size: 0.98rem;
}

.message-compact span,
.message-compact small {
  color: var(--muted);
}

.channel-chip {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.channel-chip strong {
  font-family: "Space Grotesk", sans-serif;
}

.channel-chip span,
.channel-chip small {
  color: var(--muted);
}

.channel-chip small {
  font-size: 1rem;
  color: var(--amber);
  font-weight: 800;
}

.brand-stage {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 14px 22px 13px;
  margin-bottom: 12px;
  text-align: center;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(94, 163, 255, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(12, 18, 31, 0.98), rgba(6, 10, 18, 0.96));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.brand-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0%, rgba(94, 163, 255, 0.12) 18%, transparent 36%),
    linear-gradient(270deg, transparent 0%, rgba(241, 184, 91, 0.1) 18%, transparent 36%);
  opacity: 0.6;
  pointer-events: none;
}

.brand-stage > * {
  position: relative;
  z-index: 1;
}

.system-stage {
  margin-bottom: 12px;
}

.brand-logo-stage {
  width: min(100%, 720px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.46));
}

.system-stage h1 {
  margin: 0;
  max-width: 18ch;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.3rem, 2.1vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.system-stage .hero-text {
  max-width: 46ch;
  margin-top: 0;
  color: var(--muted);
}

.feature-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.feature-tile {
  --tile-accent: var(--blue);
  --tile-glow: rgba(94, 163, 255, 0.2);
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 210px;
  padding: 20px 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at 50% 0%, var(--tile-glow), transparent 58%),
    linear-gradient(180deg, rgba(13, 20, 34, 0.98), rgba(7, 11, 20, 0.96));
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.feature-tile::after {
  content: "";
  position: absolute;
  inset: auto 18px 16px 18px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--tile-accent), transparent);
  opacity: 0.75;
  pointer-events: none;
}

.tile-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  line-height: 1;
  color: var(--tile-accent);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.tile-icon svg {
  width: 31px;
  height: 31px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tile-accent);
}

.feature-tile h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.feature-tile p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.feature-blue {
  --tile-accent: #5ea3ff;
  --tile-glow: rgba(94, 163, 255, 0.22);
}

.feature-green {
  --tile-accent: #4dd4b4;
  --tile-glow: rgba(77, 212, 180, 0.2);
}

.feature-orange {
  --tile-accent: #f1b85b;
  --tile-glow: rgba(241, 184, 91, 0.22);
}

.feature-cyan {
  --tile-accent: #93d7ff;
  --tile-glow: rgba(147, 215, 255, 0.18);
}

.public-wall {
  margin-bottom: 22px;
}

.system-wall {
  margin-bottom: 18px;
}

.public-wall .feature-tile {
  min-height: 206px;
}

.public-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 20px;
}

.public-panel {
  min-height: 100%;
}

.public-steps {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.public-step {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.public-step strong {
  display: block;
  margin-bottom: 4px;
}

.public-step span {
  color: var(--muted);
}

.public-form {
  margin-top: 4px;
}

.public-success {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(77, 212, 180, 0.18);
  background: rgba(77, 212, 180, 0.08);
}

.public-success h3 {
  margin: 0 0 8px;
  font-family: "Space Grotesk", sans-serif;
}

.public-success p {
  color: var(--text);
  margin: 0 0 14px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 90%);
  pointer-events: none;
  opacity: 0.28;
}

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

button {
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(120deg, rgba(241, 184, 91, 0.08), rgba(94, 163, 255, 0.04));
}

.app-shell {
  width: min(1440px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 18px 0 40px;
  position: relative;
  z-index: 1;
}

body.windowed-view .app-shell {
  display: grid;
  grid-template-columns: 194px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

body.windowed-view .brand-stage,
body.windowed-view .session-bar {
  grid-column: 1 / -1;
}

body.windowed-view #dashboardView,
body.windowed-view .dashboard-layout {
  display: contents;
}

body.windowed-view .sidebar {
  grid-column: 1;
  position: sticky;
  top: 20px;
}

body.windowed-view .app-view {
  grid-column: 2;
}

body.windowed-app-view .dashboard-main {
  display: none;
}

body.windowed-dashboard-panel .dashboard-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

body.windowed-dashboard-panel .dashboard-main > * {
  display: none;
}

body.windowed-dashboard-panel .dashboard-main .content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

body.windowed-dashboard-panel .dashboard-main .content-grid > * {
  display: none;
}

body.windowed-dashboard-panel[data-screen="clientes"] .dashboard-main .content-grid,
body.windowed-dashboard-panel[data-screen="agendamentos"] .dashboard-main .content-grid {
  display: grid;
}

body.windowed-dashboard-panel[data-screen="clientes"] #clientsPanel,
body.windowed-dashboard-panel[data-screen="agendamentos"] #bookingPanel,
body.windowed-dashboard-panel[data-screen="profissionais"] #barberPanel,
body.windowed-dashboard-panel[data-screen="notificacoes"] #notificationsPanel {
  display: block;
}

body.dashboard-home #notificationsPanel,
body.dashboard-home #barberPanel,
body.dashboard-home .dashboard-main > .content-grid {
  display: none;
}

body.windowed-view .brand-stage {
  margin-bottom: 8px;
}

body.windowed-view .session-bar {
  margin-bottom: 14px;
}

.hero,
.stats-grid,
.content-grid,
.wide-panel {
  margin-bottom: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.dashboard-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  margin-bottom: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(94, 163, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(16, 26, 46, 0.94), rgba(8, 14, 28, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.dashboard-command h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.dashboard-command .hero-text {
  margin-top: 10px;
}

.dashboard-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hero-copy,
.hero-panel,
.stat-card,
.panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 26, 46, 0.94), rgba(8, 14, 28, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  border-radius: 34px;
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.hero-copy::after {
  content: "";
  position: absolute;
  inset: auto -20% -35% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(241, 184, 91, 0.22), transparent 70%);
  filter: blur(4px);
}

.eyebrow,
.section-kicker,
.panel-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: var(--amber);
  font-weight: 800;
}

.hero-copy h1,
.panel h2 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.hero-text {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-actions,
.actions-row,
.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 26px;
}

.btn,
.text-btn,
.input {
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease,
    box-shadow 160ms ease;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 700;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

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

.primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #1d1407;
  box-shadow: 0 14px 32px rgba(241, 184, 91, 0.24);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.1);
}

.ghost {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.hero-panel {
  border-radius: 30px;
  padding: 24px;
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-metric {
  padding: 18px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-metric strong,
.stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1;
}

.hero-metric span,
.stat-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--blue);
}

.stat-card-blue::before {
  background: var(--blue);
}

.stat-card-green::before {
  background: var(--success);
}

.stat-card-orange::before {
  background: var(--amber);
}

.stat-card-cyan::before {
  background: var(--mint);
}

.stat-card span {
  color: var(--muted-2);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.stat-card strong {
  margin: 8px 0 8px;
}

.stat-card b {
  color: var(--text);
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-timeline,
.dashboard-side-panel {
  min-width: 0;
}

.dashboard-list {
  display: grid;
  gap: 10px;
}

.dashboard-list.compact {
  margin-bottom: 12px;
}

.dashboard-appointment {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.dashboard-appointment.compact {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 11px 12px;
}

.dashboard-appointment strong,
.dashboard-appointment span {
  display: block;
}

.dashboard-appointment strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-appointment span:not(.badge) {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-time {
  display: grid;
  place-items: center;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(94, 163, 255, 0.22);
  background: rgba(94, 163, 255, 0.09);
  color: #d7e8ff;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 800;
}

.dashboard-note {
  display: grid;
  gap: 5px;
  margin: 10px 0 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(77, 212, 180, 0.18);
  background: linear-gradient(135deg, rgba(77, 212, 180, 0.12), rgba(94, 163, 255, 0.06));
}

.dashboard-note span {
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
}

.dashboard-note strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.dashboard-note p {
  margin: 0;
  color: var(--muted);
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.security-form {
  margin-top: 18px;
}

.security-hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.master-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
  position: relative;
  z-index: 1;
}

.master-login {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 24px;
  align-items: start;
  margin-top: min(12vh, 96px);
}

.master-login h1 {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.master-app {
  display: grid;
  gap: 18px;
}

.master-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.tenant-list {
  display: grid;
  gap: 12px;
}

.tenant-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.tenant-logo-preview {
  width: 86px;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.34));
}

.tenant-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tenant-card strong,
.tenant-card span,
.tenant-card small {
  display: block;
}

.tenant-card strong {
  font-family: "Space Grotesk", "Manrope", sans-serif;
}

.tenant-card span,
.tenant-card small {
  margin-top: 4px;
  color: var(--muted);
}

.tenant-card small {
  word-break: break-all;
}

.color-input {
  min-height: 50px;
  padding: 6px;
}

.file-input {
  padding: 11px;
}

.master-next {
  margin-top: 2px;
}

.master-command {
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid rgba(94, 163, 255, 0.16);
  background: rgba(3, 8, 16, 0.6);
  color: #d7e8ff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  overflow-x: auto;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.notification-panel {
  margin-bottom: 20px;
}

.barber-panel {
  margin-bottom: 20px;
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
  border-color: rgba(241, 184, 91, 0.25);
  background: rgba(241, 184, 91, 0.08);
}

.notification-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.notification-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.notification-copy small {
  color: var(--muted-2);
}

.notification-actions-inline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.notification-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.barber-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
}

.barber-form {
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  align-self: start;
}

.barber-success {
  margin: 0;
  min-height: 1.2em;
  color: #aef4e4;
  font-size: 0.94rem;
}

.barber-list-wrap {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
}

.barber-list {
  display: grid;
  gap: 12px;
}

.barber-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.barber-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1rem;
}

.barber-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.barber-card small {
  display: block;
  color: var(--muted-2);
  margin-top: 2px;
}

.panel,
.wide-panel {
  border-radius: 28px;
  padding: 24px;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel h2 {
  font-size: 1.55rem;
}

.search-wrap {
  min-width: min(100%, 320px);
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(77, 212, 180, 0.2);
  color: #aef4e4;
  background: rgba(77, 212, 180, 0.08);
  font-size: 0.9rem;
  white-space: nowrap;
}

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

.service-card {
  display: grid;
  gap: 18px;
}

.service-card .panel-header {
  margin-bottom: 0;
}

.service-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.service-card-meta strong {
  color: var(--amber);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.service-card-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.checkbox-row span {
  margin: 0;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--amber);
}

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

.input {
  width: 100%;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.input:focus {
  outline: none;
  border-color: rgba(241, 184, 91, 0.45);
  box-shadow: 0 0 0 3px rgba(241, 184, 91, 0.13);
}

label span {
  display: block;
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
}

.textarea {
  resize: vertical;
  min-height: 92px;
}

.table-card {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 0.85fr;
  gap: 12px;
  align-items: center;
}

.table-head {
  padding: 14px 16px;
  color: var(--muted-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.025);
}

.table-body {
  display: grid;
}

.table-row {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.table-row strong,
.appointment-title {
  display: block;
  font-weight: 700;
}

.table-row small,
.meta,
.appointment-subtitle,
.appointment-time {
  color: var(--muted);
}

.row-actions,
.chip-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tiny-btn,
.text-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.88rem;
}

.tiny-btn.destructive {
  color: #ffd1d1;
  border-color: rgba(255, 107, 107, 0.2);
  background: rgba(255, 107, 107, 0.08);
}

.tiny-btn.whatsapp,
.btn.whatsapp {
  color: #dfffea;
  border-color: rgba(37, 211, 102, 0.22);
  background: rgba(37, 211, 102, 0.12);
}

.notification-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  min-width: min(92vw, 360px);
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(37, 211, 102, 0.26);
  background: rgba(8, 18, 14, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.notification-toast strong {
  display: block;
  margin-bottom: 4px;
}

.notification-toast p {
  margin: 0;
  color: var(--muted);
}

.booking-form {
  padding-bottom: 4px;
}

.availability {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

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

.agenda-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.agenda-head h3,
.wide-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.slot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.slot-chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(77, 212, 180, 0.08);
  border: 1px solid rgba(77, 212, 180, 0.15);
  color: #c7fff2;
  font-size: 0.9rem;
}

.wide-panel {
  margin-bottom: 0;
}

.appointment-list {
  display: grid;
  gap: 14px;
}

.appointment-card {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
}

.appointment-card[data-status="cancelado"] {
  opacity: 0.68;
}

.appointment-card[data-status="concluido"] {
  background: rgba(77, 212, 180, 0.06);
}

.appointment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.badge {
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.badge.agendado {
  background: rgba(94, 163, 255, 0.12);
  color: #cbe0ff;
}

.badge.confirmado {
  background: rgba(241, 184, 91, 0.14);
  color: #ffe1ac;
}

.badge.concluido {
  background: rgba(77, 212, 180, 0.14);
  color: #c7fff2;
}

.badge.cancelado {
  background: rgba(255, 107, 107, 0.14);
  color: #ffd1d1;
}

.appointment-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.appointment-side {
  justify-self: end;
  text-align: right;
}

.appointment-time {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  color: var(--text);
}

.empty-state {
  padding: 28px 18px;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: relative;
    top: 0;
  }

  .barber-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .auth-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .brand-logo-square {
    width: min(72vw, 240px);
  }

  .brand-logo-horizontal {
    width: min(100%, 360px);
  }

  .brand-logo-session {
    width: min(100%, 180px);
  }

  .sidebar-brand {
    grid-template-columns: 46px minmax(0, 1fr) auto;
  }

  .sidebar-logo {
    width: 46px;
    height: 46px;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
  }

  .sidebar-item {
    min-height: 46px;
    padding: 10px;
  }

  .sidebar-item span:last-child {
    font-size: 0.86rem;
  }

  .screen-hero,
  .finance-row,
  .dashboard-command {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-command {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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

  .master-login,
  .master-grid {
    grid-template-columns: 1fr;
  }

  .tenant-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

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

  .master-shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 12px;
  }

  .screen-actions,
  .finance-row-side {
    justify-content: flex-start;
    justify-items: start;
    text-align: left;
  }

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

  .session-bar {
    align-items: flex-start;
    gap: 12px 16px;
    padding: 12px 14px;
  }

  .session-brand {
    width: 100%;
  }

  .public-header,
  .public-grid {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .public-header {
    gap: 14px;
    padding: 16px 14px 14px;
    margin-bottom: 14px;
  }

  .public-header-copy {
    gap: 10px;
  }

  .public-header-copy .brand-logo-horizontal {
    width: min(100%, 280px);
  }

  .public-header-actions {
    justify-self: start;
    width: 100%;
  }

  .public-header-actions .btn {
    flex: 1 1 160px;
  }

  .brand-stage {
    padding: 14px 14px 13px;
    border-radius: 20px;
    gap: 7px;
  }

  .brand-logo-stage {
    width: min(100%, 320px);
  }

  .system-stage h1 {
    max-width: 18ch;
    font-size: clamp(1.35rem, 6vw, 2rem);
  }

  .feature-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .feature-tile {
    min-height: 186px;
    padding: 18px;
    border-radius: 22px;
  }

  .tile-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  .app-shell {
    width: min(100vw - 20px, 100vw);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-panel,
  .panel,
  .wide-panel {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

  .session-brand {
    gap: 8px;
  }

  .session-bar {
    padding: 10px 12px;
  }

  .brand-logo-session {
    width: min(100%, 150px);
  }

  .form-grid,
  .table-head,
  .table-row,
  .appointment-card {
    grid-template-columns: 1fr;
  }

  .table-head {
    display: none;
  }

  .table-row {
    gap: 10px;
  }

  .appointment-card {
    text-align: left;
  }

  .appointment-side {
    justify-self: start;
    text-align: left;
  }

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

  .dashboard-appointment,
  .dashboard-appointment.compact {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .dashboard-appointment .badge {
    grid-column: 2;
    justify-self: start;
  }

  .panel-header,
  .agenda-head {
    align-items: stretch;
    flex-direction: column;
  }

  .public-header-actions,
  .auth-actions,
  .public-actions {
    width: 100%;
  }

  .search-wrap,
  .filters-row {
    width: 100%;
  }

  .filters-row .input {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .feature-wall {
    grid-template-columns: 1fr;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .report-channels {
    grid-template-columns: 1fr;
  }

  .screen-hero {
    gap: 12px;
  }
}
