:root {
  --bg: #f0f2f5;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --warn-bg: #fffbeb;
  --warn-border: #fcd34d;
  --warn-text: #92400e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgb(15 23 42 / 0.06);
  --shadow-md: 0 4px 14px rgb(15 23 42 / 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.top-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow: hidden;
  background: rgb(37 99 235 / 0.12);
}

.top-loader.active {
  opacity: 1;
}

.top-loader-bar {
  display: block;
  height: 100%;
  width: 42%;
  background: linear-gradient(90deg, var(--accent), #93c5fd, var(--accent));
  background-size: 200% 100%;
  animation: top-loader-indeterminate 0.9s ease-in-out infinite;
}

@keyframes top-loader-indeterminate {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(320%);
  }
}

.top {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.top-title h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sub {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.35;
}

.top .btn {
  padding: 0.38rem 0.7rem;
  font-size: 0.78rem;
}

.alert {
  flex-shrink: 0;
  margin: 0;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

.alert.warn {
  background: var(--warn-bg);
  color: var(--warn-text);
  border-bottom: 1px solid var(--warn-border);
}

.alert.bad {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}

.layout {
  flex: 1;
  min-height: 0;
  display: flex;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  overflow: hidden;
}

.sidebar {
  flex-shrink: 0;
  width: 100%;
  max-width: 22rem;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.filters {
  flex-shrink: 0;
  padding: 0.45rem 0.55rem 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filters-search-row {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
}

.filters-search-input {
  flex: 1;
  min-width: 0;
}

.filters-search-btn {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.filters-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.4rem;
}

.filters-grid-span-2 {
  grid-column: 1 / -1;
}

.filters input[type="search"],
.filters select {
  width: 100%;
  padding: 0.32rem 0.45rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
  background: #f8fafc;
  transition: border-color 0.15s, background 0.15s;
}

.filters input[type="search"]:focus,
.filters select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.15);
}

.row {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.row-label-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.filter-icon {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0.9;
}

.row-filter-read .row-label-with-icon {
  text-transform: uppercase;
}

.filter-hint {
  margin: 0;
  padding: 0 0.05rem;
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.3;
  opacity: 0.92;
}

.chat-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.chat-list ul {
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.chat-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}

.chat-item:hover {
  background: #f8fafc;
}

.chat-item.active {
  background: var(--accent-soft);
}

.chat-item.active:hover {
  background: #e0edff;
}

.chat-row-main {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.65rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  align-items: center;
}

.avatar-wrap {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: visible;
  background: #475569;
}

.avatar-wrap .avatar-img,
.avatar-wrap .avatar-skeleton,
.avatar-wrap .avatar-fallback {
  border-radius: 999px;
}

.avatar-wrap .avatar-img,
.avatar-wrap .avatar-skeleton {
  overflow: hidden;
}

.unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px rgb(37 99 235 / 0.25);
  animation: unread-pulse 2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes unread-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.88;
  }
}

.chat-item-unread .contact-name-unread {
  font-weight: 700;
  color: var(--text);
}

.avatar-wrap.linkedin {
  background: linear-gradient(145deg, #0a66c2, #004182);
}

.avatar-wrap.whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.avatar-wrap.other {
  background: #475569;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-img.avatar-broken {
  display: none;
}

.avatar-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.avatar-fallback.has-img {
  display: none;
}

.avatar-fallback.has-img.show {
  display: flex;
}

.avatar-skeleton {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    100deg,
    rgb(255 255 255 / 0) 0%,
    rgb(255 255 255 / 0.4) 45%,
    rgb(255 255 255 / 0) 90%
  );
  background-size: 220% 100%;
  animation: avatar-shimmer 1.15s ease-in-out infinite;
}

@keyframes avatar-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.chat-profile-btn {
  flex-shrink: 0;
  width: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
  border-left: 1px solid #f1f5f9;
  transition: color 0.15s, background 0.15s;
}

.chat-profile-btn:hover {
  color: var(--accent);
  background: rgb(37 99 235 / 0.06);
}

.meta {
  min-width: 0;
  flex: 1;
}

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.name-block {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}

.name-block .contact-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 11rem;
}

.profile-hover {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s, transform 0.15s;
  pointer-events: none;
  white-space: nowrap;
}

.chat-item:hover .profile-hover,
.name-block:hover .profile-hover {
  opacity: 1;
  transform: translateY(0);
}

.title-row time {
  font-size: 0.7rem;
  color: #94a3b8;
  white-space: nowrap;
  margin-top: 0.1rem;
}

.empty {
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.more {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 0.45rem 0.55rem;
  margin: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgb(15 23 42 / 0.05);
}

.chat-load-more {
  padding: 0.4rem 0.65rem;
  font-size: 0.78rem;
}

.main {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, #e8ecf1 0%, var(--bg) 32%);
}

.thread-load-overlay {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 25;
  flex-direction: column;
  background: linear-gradient(180deg, #e8ecf1 0%, var(--bg) 32%);
  pointer-events: none;
}

.thread-load-overlay.is-active {
  display: flex;
}

.thread-load-overlay-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.thread-skel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 -1rem;
  padding: 1.1rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.thread-skel-head-lines {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.thread-skel-messages {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skel-row {
  display: flex;
}

.skel-row--in {
  justify-content: flex-start;
}

.skel-row--out {
  justify-content: flex-end;
}

.skel {
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    #e2e8f0 0%,
    #f8fafc 45%,
    #e2e8f0 90%
  );
  background-size: 220% 100%;
  animation: thread-skel-shimmer 1.15s ease-in-out infinite;
}

@keyframes thread-skel-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.skel-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  flex-shrink: 0;
}

.skel-line {
  height: 0.68rem;
  border-radius: 6px;
}

.skel-line--lg {
  width: min(12rem, 72%);
}

.skel-line--sm {
  width: min(6.5rem, 42%);
}

.skel-bubble {
  height: 3.1rem;
  border-radius: 1.1rem;
}

.skel-bubble--in {
  width: min(14rem, 78%);
  border-bottom-left-radius: 0.35rem;
}

.skel-bubble--out {
  width: min(11rem, 62%);
  border-bottom-right-radius: 0.35rem;
  opacity: 0.92;
}

.skel-bubble--short {
  width: min(9rem, 52%);
}

.thread-skel-composer {
  flex-shrink: 0;
  margin: 0 -1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgb(15 23 42 / 0.04);
}

.skel-composer {
  height: 4.35rem;
  width: 100%;
  border-radius: var(--radius);
}

.placeholder {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-align: center;
  padding: 2.5rem;
}

.placeholder h2 {
  margin: 0 0 0.5rem;
  color: var(--text);
  font-weight: 600;
  animation: placeholder-soft 2.4s ease-in-out infinite;
}

@keyframes placeholder-soft {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.78;
  }
}

.thread-head {
  flex-shrink: 0;
  background: var(--surface);
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.thread-title-block {
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}

.thread-head-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.thread-avatar-cell {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: #475569;
}

.thread-avatar-cell.linkedin {
  background: linear-gradient(145deg, #0a66c2, #004182);
}

.thread-avatar-cell.whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
}

.thread-avatar-cell.other {
  background: #475569;
}

.thread-avatar-cell .thread-avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border);
  box-sizing: border-box;
}

.thread-avatar-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

.thread-avatar-cell .thread-avatar-fallback.has-img {
  display: none;
}

.thread-head-text {
  min-width: 0;
  flex: 1;
}

.thread-name-wrap {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.thread-name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.thread-profile-hover {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.thread-name-wrap:hover .thread-profile-hover {
  opacity: 1;
}

.thread-profile-hover:hover {
  text-decoration: underline;
}

.meta-line {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.platform-pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #f1f5f9;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.meta-profile-link {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.meta-profile-link:hover {
  text-decoration: underline;
}

.messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
}

.msg {
  display: flex;
}

.msg.in {
  justify-content: flex-start;
}

.msg.out {
  justify-content: flex-end;
}

.bubble {
  max-width: min(85%, 36rem);
  padding: 0.65rem 1rem;
  border-radius: 1.1rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  line-height: 1.5;
}

.msg.in .bubble {
  background: var(--surface);
  border-bottom-left-radius: 0.3rem;
  border: 1px solid var(--border);
}

.msg.out .bubble {
  background: linear-gradient(145deg, #3b82f6, var(--accent));
  color: #fff;
  border-bottom-right-radius: 0.3rem;
}

.bubble p {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.bubble .muted {
  font-style: italic;
  opacity: 0.85;
}

.bubble time {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.68rem;
  opacity: 0.72;
}

.composer {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
  max-width: 52rem;
  margin: 0 auto;
  width: 100%;
  box-shadow: 0 -4px 20px rgb(15 23 42 / 0.04);
}

.composer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.composer-attach-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.composer-file-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}

.composer-file-label input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.composer-hint {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
}

.send-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.send-spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid #e2e8f0;
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: send-spin 0.7s linear infinite;
}

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

.composer textarea {
  flex: 1;
  resize: vertical;
  min-height: 3.25rem;
  max-height: min(12rem, 35vh);
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.composer textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.primary:hover {
  background: var(--accent-hover);
}

.btn.secondary {
  background: var(--surface);
  color: #334155;
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  background: #f8fafc;
}

.btn.wide {
  width: 100%;
}

code {
  font-size: 0.8em;
  background: #f1f5f9;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.hub-strip {
  flex-shrink: 0;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.8125rem;
}

.hub-strip-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.35rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.hub-strip-project {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.hub-strip-sep {
  color: #64748b;
  font-weight: 500;
}

.hub-strip-module {
  color: #94a3b8;
  font-weight: 500;
}

.hub-strip-spacer {
  flex: 1;
  min-width: 0.5rem;
}

.hub-strip-link {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.hub-strip-link:hover {
  text-decoration: underline;
  color: #bfdbfe;
}

.login-page {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 38%, var(--bg) 38%);
}

.login-shell {
  width: 100%;
  max-width: 420px;
}

.login-hub-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.login-hub-brand {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.login-hub-tagline {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.login-module-pill {
  margin: 0 0 0.75rem;
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.login-lead {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.login-alert {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.login-label input {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  background: #f8fafc;
}

.login-label input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.12);
}

.login-submit {
  margin-top: 0.25rem;
}

.login-footnote {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    overflow: auto;
    min-height: 0;
  }
  .sidebar {
    max-width: none;
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex: 0 1 auto;
    max-height: 42vh;
    min-height: 12rem;
  }
  .main {
    flex: 1;
    min-height: 50vh;
  }
}
