/* Dashboard — "Your chats" for a seeker (web/templates/pages/dashboard.eta).
   Scoped under `.dash` like the landing's `.lp`, chat's `.chat`, and
   matches' `.matches`, so these rules never leak elsewhere. Same palette:
   dark green #17251f, cream #f2efe6, coral #c2603e, sage #9fb8a9. */

.dash {
  font-family: 'Gabarito', system-ui, sans-serif;
  background: #17251f;
  color: #f2efe6;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.dash a { color: #f2efe6; }

:where(.dash) header,
:where(.dash) main {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
}
.dash h1 { font-family: 'Gabarito', system-ui, sans-serif; }

/* ── Top bar ── */
.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px 6px;
}
.dash-logo {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #f2efe6;
  text-decoration: none;
}
.dash-logo:hover { opacity: 0.75; }
.dash-logo-dot { color: #c2603e; }
.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-topbar-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #9fb8a9;
  background: rgba(242, 239, 232, 0.07);
  border: 1px solid rgba(242, 239, 232, 0.2);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.dash-topbar-link:hover {
  color: #f2efe6;
  border-color: #c2603e;
  background: rgba(194, 96, 62, 0.14);
}
.dash-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 232, 0.22);
  background: rgba(242, 239, 232, 0.07);
  color: #9fb8a9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  padding: 0;
}
.dash-icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.dash-icon-btn:hover { border-color: rgba(242, 239, 232, 0.4); color: #f2efe6; }

/* ── Scroll area ── */
.dash-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

/* ── Header ── */
.dash-header { padding: 8px 4px 16px; }
.dash-title {
  margin: 0;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #f2efe6;
}
.dash-summary {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #9fb8a9;
  max-width: 420px;
}

/* ── Account panel ── */
.dash-panel {
  background: rgba(242, 239, 232, 0.07);
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-radius: 18px;
  padding: 16px;
  margin: 0 0 16px;
}
.dash-panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #f2efe6;
}
.dash-panel-sub {
  margin: 5px 0 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9fb8a9;
}
.dash-account-form { display: flex; flex-direction: column; gap: 10px; }
.dash-account-field { display: flex; flex-direction: column; gap: 5px; }
.dash-account-label {
  font-size: 12px;
  font-weight: 700;
  color: #9fb8a9;
}
.dash-account-input {
  font-family: 'Gabarito', system-ui, sans-serif;
  font-size: 15px;
  color: #f2efe6;
  background: rgba(23, 37, 31, 0.8);
  border: 1px solid rgba(242, 239, 232, 0.22);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s;
}
.dash-account-input:focus { border-color: #c2603e; }
.dash-account-input::placeholder { color: rgba(159, 184, 169, 0.6); }
.dash-cta {
  font-family: 'Gabarito', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.dash-cta-coral { color: #17251f; background: #c2603e; }
.dash-cta-coral:hover { background: #e8b49a; transform: translateY(-1px); }
.dash-account-note {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #9fb8a9;
}
.dash-panel-signed { border-color: rgba(159, 184, 169, 0.3); }

/* ── Chat list ── */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(242, 239, 232, 0.07);
  border: 1px solid rgba(242, 239, 232, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.dash-chip:hover { border-color: #c2603e; }
.dash-chip-body { flex: 1; min-width: 0; }
.dash-chip-topic {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #f2efe6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-chip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
.dash-chip-when {
  font-size: 12px;
  color: #9fb8a9;
}
.dash-chip-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.dash-chip-pill {
  font-size: 12px;
  font-weight: 700;
  color: #e8b49a;
  background: rgba(194, 96, 62, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.dash-chip-pill:hover { background: rgba(194, 96, 62, 0.28); }
.dash-chip-link {
  font-size: 13px;
  font-weight: 700;
  color: #c2603e;
  cursor: pointer;
  white-space: nowrap;
}

/* ── Empty state ── */
.dash-empty {
  text-align: center;
  padding: 40px 24px;
}
.dash-empty-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #f2efe6;
}
.dash-empty-sub {
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9fb8a9;
  max-width: 300px;
}
.dash-empty-btn {
  display: inline-block;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: #17251f;
  background: #c2603e;
  border-radius: 999px;
  padding: 12px 22px;
  text-decoration: none;
  transition: background 0.15s;
}
.dash-empty-btn:hover { background: #e8b49a; }

/* ── Responsive ── */
@media (max-width: 760px) {
  .dash-topbar { padding: 16px 16px 4px; }
  .dash-main { padding: 10px 16px 16px; }
}