/* The client's own app, account.html (since 2026-11-06). Loaded after
   styles.css and namespaced .acct, so it changes nothing elsewhere. Phone
   first: one column, big buttons, four tabs fixed at the bottom. From 760px
   the tabs sit under the top bar instead. */
.acct-page { background: var(--surface); min-height: 100vh; }

.acct-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--header-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.acct-brand { font-size: 19px; }

.acct { max-width: 640px; margin: 0 auto; padding: 22px 16px 120px; }
.acct h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.02em; margin: 4px 0 16px; }
.acct-h { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 26px 0 10px; }
.acct-sub { color: var(--muted); font-size: 16px; margin: -6px 0 18px; }
.acct-loading { color: var(--muted); text-align: center; padding: 60px 0; }

.acct-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); margin-bottom: 14px;
}
.acct-wide { display: block; width: 100%; }
.acct .btn-lg { font-size: 17px; padding: 17px 20px; border-radius: 14px; }
.acct .btn-sm { padding: 10px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.acct .btn-sm:hover { transform: none; }
.acct-book { margin-bottom: 4px; }

/* Sign in */
.acct-form { display: grid; gap: 14px; }
.acct-form .field input { font-size: 17px; padding: 14px 15px; }
#acct-code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.acct-links { margin: 0; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.acct-link { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--accent); cursor: pointer; }
.acct-new { text-align: center; color: var(--muted); font-size: 15px; margin-top: 18px; }
.acct-new a, .acct-empty a, .acct-help a { color: var(--accent); font-weight: 600; }

/* A shoot */
.acct-shoot { padding: 0; overflow: hidden; }
.acct-shoot > :not(.acct-cover) { margin-left: 18px; margin-right: 18px; }
.acct-cover { display: block; aspect-ratio: 3 / 2; background: var(--surface-2); }
.acct-cover img { width: 100%; height: 100%; object-fit: cover; }
.acct-shoot-top { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding-top: 16px; }
.acct-shoot-top b { font-size: 17px; line-height: 1.35; }
.acct-meta { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 6px 0 12px; }
.acct-dot { padding: 0 2px; }
.acct-acts { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; }

.acct-pill { flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--tint); color: var(--accent); }
.acct-pill.good { background: #dcfce7; color: #166534; }
.acct-pill.act { background: #fef3c7; color: #92400e; }
.acct-pill.warn { background: #fee2e2; color: #991b1b; }
[data-theme="dark"] .acct-pill.good { background: rgba(22,101,52,.3); color: #86efac; }
[data-theme="dark"] .acct-pill.act { background: rgba(146,64,14,.35); color: #fcd34d; }
[data-theme="dark"] .acct-pill.warn { background: rgba(153,27,27,.3); color: #fca5a5; }

.acct-empty { color: var(--muted); font-size: 15px; background: var(--card); border: 1px dashed var(--line-2); border-radius: 16px; padding: 18px; margin: 0 0 14px; }

/* Home extras */
.acct-welcome { border-color: var(--line-2); background: var(--tint); margin-top: 14px; }
.acct-welcome b, .acct-offer b, .acct-help b { display: block; font-size: 17px; }
.acct-welcome p, .acct-offer p, .acct-help p { color: var(--muted); font-size: 14.5px; margin: 4px 0 0; }
.acct-offer { border-left: 4px solid var(--brand); }
.acct-copy { display: flex; gap: 8px; margin-top: 12px; }
.acct-copy input { flex: 1; min-width: 0; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; background: var(--bg); color: var(--ink); }
.acct-rebook { display: block; border-style: dashed; border-color: var(--line-2); margin-top: 18px; }
.acct-rebook b { display: block; color: var(--accent); font-size: 17px; }
.acct-rebook span { color: var(--muted); font-size: 14.5px; }
.acct-rebook:hover { border-color: var(--brand); }

/* Account tab */
.acct-me { display: grid; gap: 10px; }
.acct-me div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.acct-me span { color: var(--muted); }
.acct-me b { text-align: right; overflow-wrap: anywhere; }
.acct .field-inline input[type="checkbox"] { width: 22px; height: 22px; }
.acct .form-status.show { margin-top: 12px; }
.acct-help .email-reveal { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; }

/* The four tabs */
.acct-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -6px 20px rgba(10, 23, 41, .06);
}
.acct-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px 10px; min-height: 58px; font-size: 12px; font-weight: 700; color: var(--muted); }
.acct-tabs svg { width: 24px; height: 24px; }
.acct-tabs a.on { color: var(--accent); }
.acct-tabs a:hover { color: var(--accent); }

@media (min-width: 760px) {
  .acct-tabs { position: sticky; top: 61px; bottom: auto; max-width: 640px; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 4px; }
  .acct-tabs a { flex-direction: row; justify-content: center; gap: 8px; min-height: 46px; font-size: 14.5px; border-radius: 12px; }
  .acct-tabs svg { width: 20px; height: 20px; }
  .acct-tabs a.on { background: var(--tint); }
  .acct-in .acct { padding-top: 8px; padding-bottom: 60px; }
  .acct h1 { font-size: 32px; }
}
@media (prefers-reduced-motion: no-preference) {
  .acct-tab:not([hidden]), .acct-signin:not([hidden]) { animation: acct-in .18s ease-out; }
  @keyframes acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Delete my account (since 2026-11-06): quiet until asked, then plain. */
.acct-delete-link {
  display: block; margin: 18px auto 0; padding: 10px 14px; min-height: 44px;
  background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px;
  text-decoration: underline; cursor: pointer;
}
.acct-delete { margin-top: 14px; }
.acct-delete p { color: var(--muted); font-size: 14.5px; margin: 6px 0 14px; }
.acct-delete-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.acct-delete-row .btn { min-height: 48px; }
.acct .acct-danger { background: #b42318; color: #fff; border-color: #b42318; box-shadow: none; }
.acct .acct-danger:hover { background: #912018; }

/* The store badges card, at the end of the Home tab. This page draws no
   site footer, so the badges live here; see .app-badges in styles.css for
   the stores' size and clear space rules. */
.acct-app { display: grid; gap: 2px; }
.acct-app b { font-size: 15.5px; }
.acct-app span { color: var(--muted); font-size: 14px; }
.acct-app .app-badges { justify-self: start; }

/* Account types, the app's rewards and a broker's team (since 2026-11-22). */
.acct-tabs.five { grid-template-columns: repeat(5, 1fr); }
.acct-kinds { display: grid; gap: 10px; margin-bottom: 14px; }
.acct-kind { display: grid; gap: 2px; text-align: left; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; min-height: 64px; }
.acct-kind b { font-size: 17px; }
.acct-kind span { color: var(--muted); font-size: 14.5px; }
.acct-kind:hover { border-color: var(--line-2); }
.acct-kind[aria-checked="true"] { border-color: var(--brand); background: var(--tint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.acct-card-h { display: block; font-size: 15.5px; margin-bottom: 10px; }
.acct-small { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
.acct-small a { color: var(--accent); font-weight: 600; }
.acct-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2, var(--surface)); border: 1px solid var(--line); }
.acct-seg button { min-height: 44px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: inherit; font-size: 14.5px; line-height: 1.2; font-weight: 700; cursor: pointer; padding: 4px; }
.acct-seg button[aria-checked="true"] { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.acct-points p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }
.acct-points-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.acct-points-top b { font-size: 22px; letter-spacing: -.01em; }
.acct-points-top span { color: var(--accent); font-weight: 700; font-size: 14.5px; }
.acct-bar { height: 10px; border-radius: 99px; background: var(--surface-2, var(--line)); margin-top: 10px; overflow: hidden; }
.acct-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.acct-applinks { display: flex; gap: 8px; margin-top: 12px; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.acct-stats div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.acct-stats b { font-size: 20px; }
.acct-stats span { color: var(--muted); font-size: 12.5px; }
.acct-agent .field-inline { margin-top: 4px; }
.acct-who { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }

/* The Social tab (since 2026-11-23): five tabs for everyone, six for a broker or property manager. */
.acct-tabs { grid-template-columns: repeat(6, 1fr); }
.acct-tabs.five { grid-template-columns: repeat(7, 1fr); }
@media (max-width: 400px) { .acct-tabs a { font-size: 11px; padding-left: 2px; padding-right: 2px; } }
@media (min-width: 760px) { .acct-tabs { max-width: 760px; } }
.soc-plan .acct-pill { margin-left: 8px; }
.soc-rows { display: grid; gap: 6px; margin: 10px 0 14px; font-size: 15px; }
.soc-rows div { display: flex; justify-content: space-between; gap: 12px; }
.soc-rows span { color: var(--muted); }
.soc-form .field { margin-top: 10px; }
.soc-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.soc-kinds label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border: 1.5px solid var(--line-2); border-radius: 999px; font-size: 14px; cursor: pointer; }
.soc-kinds label:has(input:checked) { border-color: var(--brand); box-shadow: var(--ring); }
.soc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.soc-log { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; }
.soc-log li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.soc-log li:last-child { border-bottom: none; }
.soc-log time { color: var(--muted); white-space: nowrap; }
.soc-kinds input[type="checkbox"] { width: 16px; height: 16px; padding: 0; margin: 0; flex: 0 0 auto; accent-color: var(--brand); font-size: inherit; }
.soc-kinds label { line-height: 1.25; }
/* Websites only clients (since 2026-11-26): their property websites lead Home. */
.acct-rebook.acct-primary { background: var(--brand); border-color: var(--brand); }
.acct-rebook.acct-primary b, .acct-rebook.acct-primary span { color: #fff; }
/* Free Tools mode's switch, a quiet line on Home (2026-11-26). */
.acct-tools-link { display: block; text-align: center; margin: 4px 0 14px; color: var(--muted); text-decoration: underline; }
