.menu-hamburger-mark {
  font-size: 22px;
  font-weight: 650;
  line-height: 1;
  transform: translateY(-1px);
}

#homeLeftMenu.drawer {
  position: fixed;
  z-index: 43;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(84%, 365px);
  max-width: 100vw;
  box-sizing: border-box;
  padding: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  transform: translateX(-100%);
}

/* Chat-style navigation: the panel stays deliberately quiet so its content,
   rather than cards and chrome, carries the hierarchy. */
#homeLeftMenu.drawer {
  background: #f7f7f5;
  color: #1a1d1b;
}

.home-left-scroll {
  padding: calc(var(--safe-top) + 14px) 12px 16px;
}

.home-left-header {
  min-height: 48px;
  padding: 0 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.home-left-header strong {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.035em;
}

.home-left-search-button,
.home-left-six-button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.home-left-search-button:hover,
.home-left-search-button:active,
.home-left-six-button:hover,
.home-left-six-button:active,
.home-left-row:hover,
.home-left-row:active { background: #e9e9e6; }

.home-left-search-button svg { width: 21px; height: 21px; }
.home-left-main-list { display: grid; gap: 2px; }

.home-left-row {
  min-height: 46px;
  padding: 0 8px;
  border-radius: 10px;
  justify-content: flex-start;
  gap: 13px;
  color: inherit;
  font-size: 16px;
  font-weight: 500;
}

.home-left-row-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 22px;
}

.home-left-row-icon svg { width: 20px; height: 20px; }
.home-left-row > span:not(.home-left-row-icon):not(.home-left-requests-badge) { min-width: 0; }
.home-left-row .home-left-requests-badge { margin-left: auto; }

.home-left-row strong,
.home-left-row small,
.home-left-row-chevron { font: inherit; color: inherit; }

.home-left-recents {
  margin: 20px 8px 0;
  padding-top: 16px;
  border-top: 1px solid #ddddd9;
}

#homeLeftRecent {
  min-height: 0;
}

.home-left-recents h2 {
  margin: 0 0 7px;
  font-size: 14px;
  font-weight: 650;
  color: #73736e;
}

.home-left-recents .home-left-row {
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  line-height: 42px;
}

.home-left-see-all {
  width: 100%;
  min-height: 42px;
  padding: 0 8px;
  border: 0;
  border-radius: 10px;
  color: #73736e;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.home-left-see-all:hover,
.home-left-see-all:active { background: #e9e9e6; }

.home-left-bottom-bar {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 10px 20px calc(var(--safe-bottom, 0px) + 10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ddddd9;
  background: #f7f7f5;
}

.home-left-six-button [data-agent-avatar],
.home-left-six-button .home-left-row-avatar { width: 30px; height: 30px; }

.home-left-new-chat-button {
  min-height: 40px;
  padding: 0 17px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #20211f;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.home-left-new-chat-button:active { transform: scale(.97); }

html[data-profile-theme="dark"] #homeLeftMenu.drawer,
html[data-profile-theme="dark"] .home-left-bottom-bar { background: #20211f; color: #f5f5f1; }
html[data-profile-theme="dark"] .home-left-search-button:hover,
html[data-profile-theme="dark"] .home-left-search-button:active,
html[data-profile-theme="dark"] .home-left-six-button:hover,
html[data-profile-theme="dark"] .home-left-six-button:active,
html[data-profile-theme="dark"] .home-left-row:hover,
html[data-profile-theme="dark"] .home-left-row:active,
html[data-profile-theme="dark"] .home-left-see-all:hover,
html[data-profile-theme="dark"] .home-left-see-all:active { background: #30312e; }
html[data-profile-theme="dark"] .home-left-recents,
html[data-profile-theme="dark"] .home-left-bottom-bar { border-color: #3c3d39; }
html[data-profile-theme="dark"] .home-left-recents h2,
html[data-profile-theme="dark"] .home-left-see-all { color: #aaa9a2; }

.home-left-scroll {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 12px) 20px 16px;
}

#homeLeftMenu.drawer {
  display: flex;
  flex-direction: column;
}

#homeLeftMenu.drawer.show {
  transform: translateX(0);
}

#homeLeftMenu.drawer.is-left-panel-slide {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  touch-action: pan-y;
}

#homeLeftMenu.drawer.is-left-panel-slide.is-dragging {
  transition: none;
}

html.home-left-menu-open .overlay {
  position: fixed;
  inset: 0;
}

.plus-menu .plus-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 6px;
}

.plus-menu .plus-page-shortcuts {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plus-menu .plus-menu-list {
  margin-top: 14px;
  padding-bottom: 10px;
}

.home-requests-sheet {
  position: fixed;
  z-index: 44;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 12px);
  width: min(92vw, 420px);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

.home-requests-sheet.show {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.home-requests-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  border-bottom: 1px solid #ececec;
}

.home-requests-head h2 {
  margin: 0;
  font-size: 18px;
}

.home-requests-head button {
  border: 0;
  background: transparent;
  color: #198cff;
  font-weight: 700;
  cursor: pointer;
}

.home-requests-body {
  padding: 12px 18px 18px;
  overflow-y: auto;
}

.home-requests-section h3 {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8f96;
}

.home-requests-section + .home-requests-section {
  margin-top: 16px;
}

.home-requests-card {
  padding: 12px;
  border: 1px solid #e8eaed;
  border-radius: 14px;
  background: #fafbfc;
}

.home-requests-card + .home-requests-card {
  margin-top: 8px;
}

.home-requests-card-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.home-requests-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #eef1f5;
  color: #3a4048;
  font-size: 13px;
  font-weight: 800;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}

.home-requests-card-copy strong {
  display: block;
  font-size: 15px;
}

.home-requests-card-copy time {
  display: block;
  margin-top: 2px;
  color: #8a8f96;
  font-size: 11px;
}

.home-requests-note {
  margin: 8px 0 0;
  color: #3a4048;
  font-size: 13px;
  line-height: 1.45;
}

.home-requests-profile-link {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 600;
  color: #3f4248;
  text-decoration: underline;
  cursor: pointer;
}

.home-requests-reply {
  display: block;
  margin: 10px 0 0;
}

.home-requests-reply-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8f96;
  margin-bottom: 4px;
}

.home-requests-reply textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e3e5ea;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 52px;
}

.home-requests-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.home-requests-card-actions button {
  flex: 1;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d8dcda;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.home-requests-card-actions .is-primary {
  border-color: #1a1d1b;
  background: #1a1d1b;
  color: #fff;
}

.home-requests-report-link {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #727a84;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.home-requests-empty,
.home-requests-loading {
  margin: 0;
  color: #8a8f96;
  font-size: 13px;
  line-height: 1.45;
}

.home-requests-report-panel {
  margin: 0;
  padding: 14px 18px 18px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.home-requests-report-panel label {
  display: block;
  margin-top: 10px;
}

.home-requests-report-panel label span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #727a84;
}

.home-requests-report-panel select,
.home-requests-report-panel textarea {
  width: 100%;
  border: 1px solid #d8dcda;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

.home-requests-report-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.home-requests-report-actions button {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d8dcda;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.home-requests-report-actions .is-primary {
  border-color: #1a1d1b;
  background: #1a1d1b;
  color: #fff;
}

.home-left-section {
  margin-bottom: 22px;
}

.home-left-section > small {
  display: block;
  margin: 0 4px 8px;
  color: #8a8f96;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-left-row {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.home-left-compose-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #3e4650;
  flex: 0 0 auto;
}

.home-left-compose-icon svg { width: 19px; height: 19px; }

.home-left-six-footer {
  flex: 0 0 auto;
  width: 100%;
  min-height: 66px;
  padding: 10px 20px calc(var(--safe-bottom, 0px) + 10px);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-top: 1px solid #e8eaed;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.home-left-six-footer:hover { background: #f7f8f9; }
.home-left-six-footer-avatar { display: grid; flex: 0 0 auto; }
.home-left-six-footer .home-left-row-avatar { width: 34px; height: 34px; }
.home-left-six-footer-copy { flex: 1; min-width: 0; }
.home-left-six-footer-copy strong, .home-left-six-footer-copy small { display: block; }
.home-left-six-footer-copy strong { font-size: 14px; color: #1a1d21; }
.home-left-six-footer-copy small { margin-top: 1px; color: #8a8f96; font-size: 12px; }

.home-left-row-copy {
  flex: 1;
  min-width: 0;
}

.home-left-row:hover,
.home-left-row:active {
  background: #f3f4f6;
}

.home-left-row strong {
  display: block;
  font-size: 15px;
  color: #1a1d21;
}

.home-left-row small {
  display: block;
  margin-top: 2px;
  color: #727a84;
  font-size: 12px;
}

.home-left-purpose-label {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1a1d21;
}

.home-left-purpose-count {
  flex: 0 0 auto;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef0f2;
  color: #727a84;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

.home-left-page-item {
  min-height: 44px;
  padding: 10px 12px 10px 16px;
  align-items: center;
  gap: 8px;
}

.home-page-item-name {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 500;
  color: #1a1d21;
}

.home-page-item-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-page-item-status-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b0b5bc;
}

.home-page-item-status-dot.is-searchable {
  background: #1f9d55;
}

.home-page-item-status-dot.is-live {
  background: #e3a008;
}

.home-page-item-status-dot.is-hidden {
  background: #b0b5bc;
}

.home-page-purpose-hint {
  margin: 6px 0 8px 16px;
  padding: 0;
  color: #8a8f96;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}

.home-page-purpose-hint:hover {
  color: #5c636b;
}

.home-left-row.is-disabled {
  opacity: 0.55;
  cursor: default;
}

.home-left-row.is-disabled:hover {
  background: transparent;
}

.home-left-row-chevron {
  color: #b0b5bc;
  font-size: 20px;
}

.home-left-requests-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: auto;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #4a515b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.home-left-requests-badge.is-zero {
  visibility: hidden;
}

.home-left-empty {
  margin: 0 4px;
  color: #8a8f96;
  font-size: 13px;
  line-height: 1.45;
}

.home-communities-sheet,
.home-matches-sheet {
  position: fixed;
  z-index: 44;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 12px);
  width: min(92vw, 420px);
  max-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, 110%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
  overflow: hidden;
}

.home-communities-sheet.show,
.home-matches-sheet.show {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.home-communities-body,
.home-matches-body {
  padding: 12px 18px 18px;
  overflow-y: auto;
}

.home-communities-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  margin-bottom: 10px;
}

.home-communities-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.home-communities-row strong {
  display: block;
  font-size: 14px;
}

.home-communities-row small {
  color: #727a84;
  font-size: 12px;
}

.home-communities-join,
.home-communities-leave {
  border: 1px solid #ddd;
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.home-communities-join.is-joined {
  opacity: 0.5;
}

.home-communities-empty,
.home-communities-loading,
.home-matches-empty,
.home-matches-loading {
  color: #727a84;
  font-size: 14px;
  line-height: 1.5;
}

.home-communities-note {
  margin: 0 0 12px;
  color: #727a84;
  font-size: 13px;
  line-height: 1.45;
}

.home-search-card {
  border: 1px solid #ececec;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fafafa;
}

.home-search-card-main {
  display: flex;
  gap: 10px;
}

.home-search-card-photo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #dfe3e8;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

.home-search-card-copy {
  flex: 1;
  min-width: 0;
}

.home-search-card-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.home-search-card-purpose {
  color: #8a8f96;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.home-search-card-intro,
.home-search-card-why {
  margin: 6px 0 0;
  font-size: 13px;
  color: #444;
  line-height: 1.4;
}

.home-search-card-why {
  color: #198cff;
}

.home-search-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.home-search-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eee;
}

.home-search-card-tag.is-match {
  background: #dff3e8;
}

.home-search-card-actions {
  margin-top: 10px;
}

.home-search-card-request {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  background: #1a1d1b;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.home-search-card-request-sent {
  display: block;
  text-align: center;
  font-size: 13px;
  color: #727a84;
  padding: 8px;
}

.home-matches-note-panel {
  padding: 12px 18px 18px;
  border-top: 1px solid #ececec;
}

.home-matches-note-panel textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
}

.home-matches-note-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
}

.home-matches-note-actions .is-primary {
  background: #1a1d1b;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
}

.home-page-explainer {
  position: fixed;
  z-index: 44;
  left: 50%;
  bottom: calc(var(--safe-bottom, 0px) + 16px);
  width: min(92%, 380px);
  transform: translate(-50%, 110%);
  padding: max(18px, env(safe-area-inset-top)) 18px max(16px, env(safe-area-inset-bottom));
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.home-page-explainer.show {
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.home-page-explainer h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.home-page-explainer p {
  margin: 0 0 12px;
  color: #5c636b;
  line-height: 1.5;
  font-size: 14px;
}

.home-page-explainer ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #3a4048;
  font-size: 13px;
  line-height: 1.45;
}

.home-page-explainer-actions {
  display: flex;
  gap: 8px;
}

.home-page-explainer-actions button {
  flex: 1;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d8dcda;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.home-page-explainer-actions .is-primary {
  border-color: #1a1d1b;
  background: #1a1d1b;
  color: #fff;
}

.plus-shortcuts button[data-home-page-purpose] span {
  font-size: 18px;
}

.agent-draft-card {
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e4e7eb;
  background: #fafbfc;
}

.agent-draft-head small {
  display: block;
  color: #8a8f96;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.agent-draft-intro {
  margin: 8px 0 6px;
  line-height: 1.45;
  color: #1a1d21;
}

.agent-draft-city {
  margin: 0 0 8px;
  color: #5c636b;
  font-size: 13px;
}

.agent-draft-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.agent-draft-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1f5;
  font-size: 12px;
  color: #30343a;
}

.agent-draft-tag.muted {
  color: #9aa0a8;
  background: #f3f4f6;
}

.agent-draft-actions {
  display: flex;
  gap: 8px;
}

.agent-draft-actions button {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #d8dcda;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}

.agent-draft-publish {
  border-color: #1a1d1b !important;
  background: #1a1d1b !important;
  color: #fff !important;
}

.agent-draft-done {
  margin: 0;
  color: #28735a;
  font-size: 13px;
  font-weight: 650;
}

.agent-draft-error {
  margin: 0 0 10px;
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}

.home-left-looking-sub {
  margin: 0 0 6px 16px;
  padding-left: 0;
  border-left: 0;
}

.home-left-looking-sub .home-left-row {
  margin-top: 2px;
  border-radius: 10px;
}

.home-left-looking-toggle.is-expanded .home-left-row-chevron {
  transform: rotate(90deg);
}

.home-left-looking-new span small {
  color: #5c636b;
}

.home-left-looking-detail {
  padding: 0 16px 16px;
}

.home-left-panel-title {
  margin: 0 0 8px;
  font-size: 18px;
}

.home-left-communities-heading {
  margin: 16px 0 8px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8f96;
}

.home-left-page-empty h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.home-left-page-empty p {
  margin: 0 0 16px;
  color: #5c636b;
  font-size: 14px;
  line-height: 1.5;
}

.home-left-setup-six {
  width: 100%;
  height: 42px;
  border-radius: 12px;
  border: 0;
  background: #1a1d1b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.home-left-looking-detail .home-communities-search {
  margin-bottom: 10px;
}

.home-left-showing-looking-detail .home-left-section {
  display: none;
}

.home-left-showing-looking-detail .home-left-six-footer,
.home-left-showing-looking-detail .home-left-bottom-bar { display: none; }

.home-left-showing-looking-detail .home-left-scroll {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.home-left-showing-looking-detail #homeLeftLookingDetail {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-left-back {
  display: block;
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  background: none;
  color: #3d5a80;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}

.home-looking-detail-card {
  margin-top: 0;
}

.home-looking-detail-actions {
  flex-wrap: wrap;
}

.home-looking-detail-actions button {
  min-width: calc(33% - 6px);
}

.app.six-settings-open .main,
.app.six-settings-open .conversation,
.app.six-settings-open .topbar {
  top: 0;
  transform: none;
}
.app.six-settings-open .main-bottom-shell {
  transform: none;
}
.app.six-settings-open .conversation { overflow: hidden; }
#sixSettingsScrim[hidden],
#sixSettingsSheet[hidden] { display: none !important; }
.circle-compose-head .circle-compose-dismiss {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: start;
  color: #58615d;
  background: #f0f3f1;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.circle-compose-head .circle-compose-dismiss:hover { background: #F4F4F5; }
.six-settings { padding-bottom: 20px; }
.six-settings > h3 { margin: 18px 8px 7px; color: #747b84; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.six-settings > h3:first-child { margin-top: 0; }
.six-settings-group { overflow: hidden; border: 1px solid #e8eaed; border-radius: 15px; background: #fff; }
.six-settings-row, .six-settings-privacy summary { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; box-sizing: border-box; border: 0; border-bottom: 1px solid #eef0f2; background: #fff; color: #1a1d21; text-align: left; font: inherit; cursor: pointer; }
.six-settings-group > :last-child { border-bottom: 0; }
.six-settings-row > span:nth-child(2), .six-settings-privacy summary > span:nth-child(2) { flex: 1; min-width: 0; }
.six-settings-row strong, .six-settings-row small, .six-settings-privacy strong, .six-settings-privacy small { display: block; }
.six-settings-row strong, .six-settings-privacy strong { font-size: 14px; }
.six-settings-row small, .six-settings-privacy small { margin-top: 2px; color: #7b828a; font-size: 12px; }
.six-settings-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #edf1f4; color: #47515c; font-size: 14px; font-weight: 700; flex: 0 0 auto; }
.six-settings-row > b, .six-settings-privacy summary > b { color: #9ba1a8; font-size: 20px; font-weight: 400; }
.six-settings-row select { max-width: 78px; border: 0; background: transparent; color: #616871; font: inherit; text-align: right; }
.six-settings-row input { width: 38px; height: 22px; accent-color: #1a1d1b; }
.six-settings-privacy summary { list-style: none; }
.six-settings-privacy summary::-webkit-details-marker { display: none; }
.six-settings-privacy[open] summary > b { transform: rotate(90deg); }
.six-settings-privacy p { margin: 0; padding: 0 14px 12px 49px; color: #5d656e; font-size: 13px; line-height: 1.45; }
.six-settings-privacy button { margin: 0 14px 14px 49px; padding: 0; border: 0; background: transparent; color: #a02a22; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* Keep these after the legacy panel rules while the detail screens continue to
   share their older styles. */
#homeLeftMenu.drawer { width: min(84%, 365px); background: #f7f7f5; color: #1a1d1b; }
#homeLeftMenu .home-left-scroll { padding: calc(var(--safe-top) + 14px) 12px 16px; }
#homeLeftMenu .home-left-row { min-height: 46px; padding: 0 8px; border-radius: 10px; justify-content: flex-start; gap: 13px; color: inherit; font-size: 16px; font-weight: 500; }
#homeLeftMenu .home-left-row:hover, #homeLeftMenu .home-left-row:active { background: #e9e9e6; }
#homeLeftMenu .home-left-row strong, #homeLeftMenu .home-left-row small, #homeLeftMenu .home-left-row-chevron { font: inherit; color: inherit; }
#homeLeftMenu .home-left-row .home-left-requests-badge { margin-left: auto; }
#homeLeftMenu .home-left-recents .home-left-row { min-height: 42px; padding: 0 8px; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; line-height: 42px; }
html[data-profile-theme="dark"] #homeLeftMenu.drawer { background: #20211f; color: #f5f5f1; }
html[data-profile-theme="dark"] #homeLeftMenu .home-left-row:hover, html[data-profile-theme="dark"] #homeLeftMenu .home-left-row:active { background: #30312e; }

#homeLeftOpenRequests {
  display: flex;
  align-items: center;
}

/* Six settings has its own calm, system-settings treatment while retaining the
   shared composer sheet motion. */
#sixSettingsSheet { height: min(88%, 720px); padding: calc(18px + var(--safe-top)) 16px 16px; background: #f5f5f2; }
/* Brain / Key info sub pages from Six settings stay above the Six sheet (z-index 71). */
.app.six-settings-open #brainSheet.show {
  z-index: 130;
}
html.is-desktop-board .app.six-settings-open #brainSheet.show {
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  border-radius: 0;
  transform: translate3d(0, 0, 0);
}
.app.six-settings-open .ki-lab-wrap.is-open {
  z-index: 130;
}
#sixSettingsSheet .circle-compose-grabber { display: none; }
#sixSettingsSheet .circle-compose-head { margin-bottom: 16px; grid-template-columns: 44px 1fr 44px; }
#sixSettingsSheet .circle-compose-head strong { color: #20211f; font-size: 17px; font-weight: 750; }
#sixSettingsSheet .circle-compose-scroll { padding: 0 0 24px; }
#sixSettingsSheet .circle-compose-head .circle-compose-dismiss { background: #e9e9e5; }
.six-settings { padding: 0 0 20px; }
.six-settings > h3 { margin: 20px 9px 8px; color: #777873; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .055em; }
.six-settings > h3:first-child { margin-top: 0; }
.six-settings-group { overflow: hidden; border: 1px solid #e9e9e5; border-radius: 18px; background: #fff; box-shadow: 0 1px 1px rgba(20,25,22,.02); }
.six-settings-row, .six-settings-privacy summary { min-height: 56px; gap: 12px; padding: 9px 14px; border-color: #ecece8; color: #252624; }
.six-settings-row strong, .six-settings-privacy strong { font-size: 16px; font-weight: 600; line-height: 1.15; }
.six-settings-row small, .six-settings-privacy small { margin-top: 3px; color: #85857f; font-size: 12px; line-height: 1.2; }
.six-settings-icon { width: 22px; height: 22px; border-radius: 0; background: transparent; color: #50514d; flex: 0 0 auto; }
.six-settings-icon svg { width: 22px; height: 22px; }
.six-settings-value { display: inline-flex; align-items: center; gap: 5px; padding: 6px 0 6px 8px; border: 0; background: transparent; color: #85857f; font: inherit; font-size: 14px; cursor: pointer; }
.six-settings-value span { color: #9e9e99; font-size: 20px; line-height: .7; }
.six-settings-toggle { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; }
.six-settings-row > i { width: 46px; height: 28px; position: relative; border-radius: 999px; background: #d4d4d0; transition: background .18s ease; flex: 0 0 auto; }
.six-settings-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform .18s ease; }
.six-settings-toggle:checked + i { background: #242522; }
.six-settings-toggle:checked + i::after { transform: translateX(18px); }
.six-settings-toggle:focus-visible + i { outline: 2px solid #4d7dff; outline-offset: 2px; }
.six-settings-privacy p { padding-left: 48px; color: #666762; }
.six-settings-privacy button { margin-left: 48px; color: #c43830; font-size: 14px; font-weight: 650; }
.six-settings-choice-sheet { position: fixed; z-index: 100; inset: 0; display: flex; align-items: end; padding: 14px; background: rgba(20,20,18,.22); opacity: 0; transition: opacity .18s ease; }
.six-settings-choice-sheet.show { opacity: 1; }
.six-settings-choice-sheet > div { width: min(100%, 420px); margin: auto; padding: 12px; border-radius: 20px; background: #f5f5f2; transform: translateY(12px); transition: transform .2s ease; }
.six-settings-choice-sheet.show > div { transform: translateY(0); }
.six-settings-choice-sheet strong { display: block; padding: 5px 8px 10px; color: #777873; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.six-settings-choice-sheet button { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-bottom: 1px solid #e7e7e2; background: #fff; color: #252624; font: inherit; font-size: 16px; text-align: left; cursor: pointer; }
.six-settings-choice-sheet button:first-of-type { border-radius: 14px 14px 0 0; }
.six-settings-choice-sheet button:nth-last-child(2) { border-bottom: 0; border-radius: 0 0 14px 14px; }
.six-settings-choice-sheet button:last-child { margin-top: 8px; border-radius: 14px; color: #555650; text-align: center; }
html[data-profile-theme="dark"] #sixSettingsSheet, html[data-profile-theme="dark"] .six-settings-choice-sheet > div { background: #20211f; }
html[data-profile-theme="dark"] #sixSettingsSheet .circle-compose-head strong, html[data-profile-theme="dark"] .six-settings-row, html[data-profile-theme="dark"] .six-settings-privacy summary { color: #f1f1ec; }
html[data-profile-theme="dark"] .six-settings-group, html[data-profile-theme="dark"] .six-settings-row, html[data-profile-theme="dark"] .six-settings-privacy summary, html[data-profile-theme="dark"] .six-settings-choice-sheet button { border-color: #3a3b37; background: #2a2b28; }
html[data-profile-theme="dark"] .six-settings > h3, html[data-profile-theme="dark"] .six-settings-row small, html[data-profile-theme="dark"] .six-settings-privacy small, html[data-profile-theme="dark"] .six-settings-value, html[data-profile-theme="dark"] .six-settings-privacy p { color: #a9aaa3; }
html[data-profile-theme="dark"] .six-settings-icon { color: #d5d5ce; }

/* Long page names: one line cut with an ellipsis; the panel never scrolls sideways. */
.home-left-scroll { overflow-x: hidden; }
.home-left-scroll .home-left-looking-sub,
.home-left-scroll .home-left-page-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.home-left-scroll .home-left-page-item { display: flex; overflow: hidden; }
/* Grid items default to min-width:auto and grow to their content; keep them panel-wide. */
.home-left-main-list { grid-template-columns: minmax(0, 1fr); }
.home-left-main-list > * { min-width: 0; max-width: 100%; }
/* Line the status dots up under the centre of the section count badges (3, 2, 2):
   item rows reach 16px further right than section rows, and the badge is ~19px wide. */
#homeLeftMenu .home-left-page-item .home-page-item-status-dot { margin-right: 21.5px; }

.home-purpose-panel-wrap {
  position: fixed;
  inset: 0;
  z-index: 2300;
  background: #f6f7f6;
  color: #1a1d1b;
  overflow: hidden;
}
.home-purpose-panel-wrap.is-left-panel-slide {
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
  touch-action: pan-y;
}
html.is-desktop-board .app > .home-purpose-panel-wrap.is-left-panel-slide {
  position: absolute;
}
.home-purpose-panel-wrap.is-left-panel-slide.is-open {
  transform: translateX(0);
}
.home-purpose-panel-wrap.is-left-panel-slide.is-dragging {
  transition: none;
}
.home-purpose-panel-wrap .xc-editor {
  max-width: none;
  margin: 0;
  min-height: 0;
  height: 100%;
  background: #f7f7f5;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.home-purpose-panel-wrap .xc-editor-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 12px calc(env(safe-area-inset-bottom, 0px) + 88px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.home-purpose-panel-wrap .xc-editor > header .brain-notes-header-spacer {
  width: 44px;
  height: 44px;
}
.home-purpose-panel-wrap > .circle-add-button {
  position: fixed;
  right: 22px;
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 2310;
}
.home-purpose-subpage-list {
  display: grid;
  gap: 2px;
}
.home-purpose-subpage-list .home-left-page-item {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
}
.home-purpose-subpage-list .home-page-item-status-dot {
  margin-right: 21.5px;
}
.home-purpose-subpage-empty {
  padding: 48px 16px 24px;
  text-align: center;
  color: #727a84;
  font-size: 15px;
}
.home-purpose-subpage-empty p {
  margin: 0;
}
