:root {
  color-scheme: dark;
  --bg: #0f172a;
  --panel: #111827;
  --panel-soft: #1f2937;
  --line: #374151;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #10a37f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #0b1220;
  border-right: 1px solid var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand {
  margin: -20px -20px 0;
  width: calc(100% + 40px);
}

.brand-logo-full {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: relative;
}

.mobile-topbar,
.mobile-sidebar-panel,
.mobile-menu-overlay {
  display: none;
}

.mobile-topbar {
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0b1220;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}

.mobile-menu-toggle {
  width: 40px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hamburger-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.mobile-brand-logo {
  width: 150px;
  max-width: 65%;
  height: auto;
  object-fit: contain;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 20, 0.55);
  z-index: 30;
}

.mobile-sidebar-panel {
  position: fixed;
  top: 58px;
  left: 12px;
  right: 12px;
  z-index: 40;
  background: #0b1220;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
}

.mobile-brand {
  margin: -14px -14px 0;
  width: calc(100% + 28px);
}

.chat-messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 28px max(24px, calc((100vw - 900px) / 2));
}

.message {
  max-width: 820px;
  margin: 0 auto 18px;
  display: flex;
  gap: 12px;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 12px;
}

.avatar.user {
  background: #334155;
}

.avatar.assistant {
  background: var(--accent);
  color: #06231b;
}

.bubble {
  line-height: 1.45;
  white-space: pre-wrap;
  background: transparent;
}

.recommendation-intro {
  margin: 0 0 10px;
}

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

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 12px;
}

.recommendation-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

.reco-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.reco-card-title-row h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.reco-google-maps-logo {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
  opacity: 0.96;
}

.recommendation-card p {
  margin: 4px 0;
  color: var(--text);
}

.recommendation-card .recommendation-rationale {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px;
}

.recommendation-card--selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.reco-select-btn {
  width: 100%;
  margin-top: 10px;
  height: auto;
  min-height: 40px;
}

.reco-select-btn--on {
  border-color: var(--accent);
  color: var(--accent);
}

.reco-submission-cta {
  width: 100%;
  margin-top: 12px;
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
}

.reco-submission-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--panel-soft);
  color: var(--muted);
}

.reco-submission-cta--active:not(:disabled) {
  opacity: 1;
  cursor: pointer;
}

.reco-submission-cta--done:disabled {
  opacity: 0.35;
}

.submission-contact-wrap {
  white-space: normal;
}

.submission-contact-intro {
  margin: 0 0 12px;
  line-height: 1.45;
}

.submission-contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

.submission-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.submission-field input {
  width: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

.submission-form-actions {
  margin-top: 4px;
}

.submission-contact-error {
  margin: 8px 0 0;
  font-size: 13px;
  color: #c24141;
}

.reco-maps-rating-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 5px;
  row-gap: 4px;
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  color: var(--text);
}

.reco-rating-cluster {
  display: inline-flex;
  align-items: center;
  column-gap: 4px;
  flex-wrap: nowrap;
  min-width: 0;
}

.reco-rating-num {
  color: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.reco-stars {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.reco-star-cell {
  position: relative;
  display: inline-block;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-size: 1.05em;
}

.reco-star-bg,
.reco-star-fg {
  position: absolute;
  left: 0;
  top: 0;
  line-height: 1;
}

.reco-star-bg {
  color: #5f6368;
}

.reco-star-fg {
  color: #fbbc04;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.reco-review-count {
  color: inherit;
  font-weight: 500;
  opacity: 0.92;
  font-variant-numeric: tabular-nums;
}

.reco-no-rating {
  color: var(--muted);
  font-size: 12px;
}

.reco-meta-sep {
  color: inherit;
  opacity: 0.45;
  margin: 0;
  padding: 0 1px;
  user-select: none;
  font-weight: 400;
}

.reco-drive-group {
  display: inline-flex;
  align-items: center;
  column-gap: 4px;
  flex-wrap: nowrap;
  color: inherit;
}

.reco-drive-icon-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: inherit;
  opacity: 0.9;
}

.reco-drive-icon {
  display: block;
}

.reco-drive-text {
  color: inherit;
  font-weight: 500;
  opacity: 0.92;
}

.reco-maps-meta-line {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.reco-rbq-line {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.chat-input-wrap {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  padding: 16px max(24px, calc((100vw - 900px) / 2));
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 10px;
  background: #0b1220;
}

textarea {
  flex: 1;
  resize: none;
  min-height: 46px;
  max-height: 180px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn {
  background: var(--accent);
  color: #07271f;
  height: 40px;
}

.primary-btn:disabled {
  cursor: not-allowed;
}

.secondary-btn {
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 600;
  height: 40px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.secondary-btn:hover {
  border-color: var(--accent);
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--panel);
}

.auth-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 10px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1220;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

input::placeholder {
  color: var(--muted);
  opacity: 1;
}

#signup-form input:not([type="hidden"]) {
  line-height: 1.5;
  min-height: calc(1.5em + 20px);
  box-sizing: border-box;
}

select {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1220;
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
}

details {
  margin-top: 8px;
}

summary {
  cursor: pointer;
  color: var(--muted);
  margin-bottom: 8px;
}

.hidden {
  display: none !important;
}

.portal-link {
  width: 100%;
  border-radius: 10px;
}

.portal-layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.portal-header h1 {
  margin: 0;
}

.portal-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.portal-auth-view {
  display: flex;
  justify-content: center;
}

.auth-shell {
  width: min(560px, 100%);
  padding: 16px;
}

.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.tab-btn {
  width: 100%;
}

.tab-btn.active {
  background: var(--accent);
  color: #07271f;
}

.portal-account-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.portal-account-head .muted {
  margin: 0;
}

.entrepreneur-space-summary {
  align-items: center;
}

.entrepreneur-space-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1;
}

.entrepreneur-space-header-actions #account-summary {
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.entrepreneur-space-logout {
  flex-shrink: 0;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

#entrepreneur-space-section .admin-section-body {
  gap: 12px;
}

#entrepreneur-space-section h3 {
  margin: 0;
}

.upload-results {
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  min-height: 72px;
  background: #0b1220;
}

.signup-services-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b1220;
  overflow: hidden;
  margin-top: 0;
}

.signup-services-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
  margin-bottom: 0;
  line-height: 1.5;
  min-height: calc(1.5em + 20px);
  box-sizing: border-box;
  font: inherit;
}

.signup-services-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.signup-services-summary::-webkit-details-marker {
  display: none;
}

.signup-services-summary::after {
  content: "";
  flex-shrink: 0;
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.signup-services-box[open] > .signup-services-summary::after {
  transform: rotate(-135deg);
}

.signup-services-grid {
  padding: 0 12px 12px;
}

#signup-service-categories-list.service-categories-grid {
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

#signup-service-categories-list .service-category-option {
  padding: 4px 8px;
  gap: 6px;
  font-size: 13px;
  line-height: 1.25;
  border-radius: 8px;
}

#signup-service-categories-list .service-category-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin: 0;
}

.signup-services-hint {
  margin: 0;
  color: var(--muted);
  font: inherit;
  font-weight: inherit;
  opacity: 1;
}

.service-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.service-category-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #0b1220;
}

.history-wrap {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1340px;
}

.history-table th,
.history-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px;
  text-align: left;
  font-size: 13px;
}

.history-table thead th {
  color: var(--muted);
  font-weight: 600;
}

.admin-submissions-link {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 8px;
}

.admin-address-input {
  width: 150px;
  padding: 7px 8px;
  font-size: 12px;
}

.admin-save-address-btn {
  height: 32px;
  padding: 0 10px;
}

.admin-service-select {
  min-width: 190px;
  max-width: 220px;
  min-height: 92px;
  font-size: 12px;
}

.long-cell {
  max-width: 340px;
  white-space: pre-wrap;
}

/* --- Admin portal (accordion + master-detail) --- */
.portal-layout:has(.admin-shell:not(.hidden)),
.portal-layout:has(#admin-ingestion-root:not(.hidden)) {
  max-width: 1280px;
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-panel-title {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-panel-intro {
  margin-top: 0;
}

.admin-section {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  overflow: hidden;
}

.admin-section > summary.admin-section-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 0;
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
  background: #0b1220;
  border-bottom: 1px solid transparent;
}

.admin-section[open] > summary.admin-section-summary {
  border-bottom-color: var(--line);
}

.admin-section > summary.admin-section-summary::-webkit-details-marker {
  display: none;
}

.admin-section-title::before {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  vertical-align: 0.15em;
  transition: transform 0.15s ease;
}

.admin-section[open] > summary .admin-section-title::before {
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

.admin-section-meta {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--panel);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.admin-section-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-subsection {
  margin-top: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 0 10px 10px;
}

.admin-subsection > summary.admin-subsection-summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 4px;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.admin-subsection > summary.admin-subsection-summary::-webkit-details-marker {
  display: none;
}

.admin-subsection[open] > summary .admin-section-title::before {
  transform: rotate(45deg);
  vertical-align: 0.05em;
}

.admin-overview-kpi-wrap {
  margin-bottom: 4px;
}

.history-table.admin-overview-kpi-table {
  /* Colonnes serrées sur le contenu, sans étalement sur toute la largeur */
  min-width: 0;
  width: max-content;
  max-width: 100%;
  table-layout: auto;
}

.history-table.admin-overview-kpi-table thead th {
  white-space: normal;
  vertical-align: bottom;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 5px 10px 5px 0;
}

.history-table.admin-overview-kpi-table tbody td {
  vertical-align: top;
  padding: 4px 10px 4px 0;
}

.history-table.admin-overview-kpi-table thead th:last-child,
.history-table.admin-overview-kpi-table tbody td:last-child {
  padding-right: 0;
}

.history-table.admin-overview-kpi-table thead th:not(:first-child),
.history-table.admin-overview-kpi-table tbody td:not(:first-child) {
  padding-left: 18px;
}

.admin-kpi-table-value {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.admin-kpi-table-hint {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.35;
}

.master-detail {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 14px;
  align-items: start;
  min-height: 320px;
}

.md-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(70vh, 640px);
}

.md-filters {
  flex-shrink: 0;
  margin-bottom: 0;
}

.md-filter-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.md-filter-label span.muted {
  margin-bottom: 0;
}

.md-cards {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.md-card {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--panel);
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.md-card:hover {
  border-color: var(--accent);
  background: #0b1220;
}

.md-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.md-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.md-card-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.status-badge.verified {
  color: #6ee7b7;
  border-color: #047857;
}

.status-badge.pending,
.status-badge.needs_review {
  color: #fcd34d;
  border-color: #b45309;
}

.status-badge.rejected {
  color: #fca5a5;
  border-color: #b91c1c;
}

.md-detail {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  padding: 12px;
  min-height: 280px;
}

.md-empty {
  margin: 0;
  padding: 24px 12px;
  text-align: center;
}

.md-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.md-tab {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  background: #0b1220;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.md-tab.active {
  background: var(--accent);
  color: #07271f;
  border-color: var(--accent);
}

.md-tabpanel {
  min-height: 120px;
}

.admin-profile-readonly {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0b1220;
  font-size: 13px;
  line-height: 1.5;
}

.admin-profile-readonly dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.admin-profile-readonly dt {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
}

.admin-profile-readonly dd {
  margin: 0;
}

.admin-form-heading {
  margin: 0 0 8px;
  font-size: 13px;
}

.history-table.admin-table-compact {
  min-width: 720px;
}

.history-table.admin-table-wide {
  min-width: 1100px;
}

.admin-pending-manual-drawer td {
  background: #0b1220;
  border-top: 1px dashed var(--line);
}

.admin-pending-manual-drawer-content {
  display: grid;
  gap: 8px;
}

.admin-pending-manual-drawer-content p {
  margin: 0;
}

.admin-pending-manual-decision-form {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.admin-pending-manual-decision-form textarea {
  width: 100%;
  min-height: 78px;
}

.admin-pending-manual-decision-form select {
  max-width: 220px;
}

.entrepreneur-readonly {
  display: grid;
  gap: 8px;
}

#entrepreneur-space-section .portal-account-head .muted,
.entrepreneur-readonly .muted {
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
}

.entrepreneur-readonly-grid {
  margin: 0;
  display: grid;
  gap: 6px;
  grid-template-columns: max-content 1fr;
}

.entrepreneur-readonly-grid dt {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
  margin: 0;
}

.entrepreneur-readonly-grid dt::after {
  content: ":";
}

.entrepreneur-readonly-grid dd {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  html:has(.layout) {
    height: 100%;
    overflow: hidden;
  }

  body:has(.layout) {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .layout {
    grid-template-columns: 1fr;
    height: var(--chat-app-height, 100vh);
    height: var(--chat-app-height, 100dvh);
    min-height: 0;
  }

  .chat-shell {
    min-height: 0;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
  }

  .sidebar {
    display: none;
  }
  .mobile-topbar {
    display: flex;
  }
  .mobile-menu-overlay:not(.hidden),
  .mobile-sidebar-panel:not(.hidden) {
    display: block;
  }
  .mobile-sidebar-panel:not(.hidden) {
    display: flex;
  }
  .portal-grid {
    grid-template-columns: 1fr;
  }
  .portal-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .portal-account-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .entrepreneur-space-summary {
    flex-wrap: wrap;
  }

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

  .entrepreneur-space-header-actions #account-summary {
    max-width: 100%;
    white-space: normal;
  }

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

  .md-list {
    max-height: 40vh;
  }
}
