/* Tables, notifications, profile and settings (owned by the account views). Classes are prefixed acc-. */

/* .btn and img (base.css) set display, which beats the UA [hidden] rule. */
.btn[hidden],
.acc-pick-status[hidden],
.acc-gallery-item img[hidden],
.acc-avatar img[hidden] {
  display: none;
}

.acc-section-title {
  font-size: 19px;
  margin-top: 6px;
}
.acc-strong {
  font-weight: 700;
}
.acc-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc-pills.center {
  justify-content: center;
}
.acc-row-actions {
  display: flex;
  gap: 10px;
}
.acc-row-actions > .btn {
  flex: 1;
  min-height: 48px;
}

/* ------------------------------------------------------------------ Tables */

.acc-hero {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--dusk);
  border: 1px solid var(--line);
}
.acc-hero h1 {
  font-size: 26px;
}
.acc-hero p {
  color: var(--ink-soft);
  font-size: 15px;
}

.acc-date-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 58px;
  padding: 8px 0;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  line-height: 1.1;
}
.acc-date-tile .wd,
.acc-date-tile .mon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
.acc-date-tile .d {
  font: 600 24px/1.1 var(--font-serif);
}
.acc-date-tile.large {
  width: 68px;
  padding: 10px 0;
}
.acc-date-tile.large .d {
  font-size: 30px;
}

.acc-table-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 12px 14px 14px;
}
.acc-table-card .chev {
  color: var(--muted);
}
.acc-table-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-table-title {
  font-size: 18px;
}
.acc-table-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.acc-price {
  font-weight: 700;
}

.acc-table-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.acc-table-head .grow {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.acc-table-h1 {
  font-size: 24px;
}
.acc-dd-sub {
  display: block;
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}
.acc-dd-link {
  display: flex;
  font-size: 14px;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.acc-confirming {
  display: flex;
  align-items: center;
  gap: 16px;
}
.acc-confirming .mark {
  flex: none;
}

.acc-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.acc-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.acc-step-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ember-soft);
  color: var(--ember-dark);
  font-weight: 700;
  font-size: 14px;
}

.acc-report {
  align-self: center;
  color: var(--muted);
  font-weight: 600;
}

/* ------------------------------------------------------------------ People (preview and picks) */

.acc-person {
  padding: 12px 12px 18px;
  gap: 14px;
}
.acc-gallery-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acc-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--r-md);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.acc-gallery::-webkit-scrollbar {
  display: none;
}
.acc-gallery-item {
  flex: 0 0 100%;
  aspect-ratio: 4 / 5;
  max-height: 70dvh;
  scroll-snap-align: start;
  border-radius: 0;
}
.acc-gallery-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  background: var(--cloud);
}
.acc-photo-wrap {
  position: relative;
}
.acc-photo-action {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgb(255 253 250 / 0.92);
}
.acc-photo-action:active {
  background: var(--paper);
}

.acc-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 6px;
}
.acc-name {
  font-size: 26px;
}
.acc-bio {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.acc-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.acc-tags li {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--shell);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}

.acc-pick-status {
  padding: 0 6px;
  font-weight: 600;
}
.acc-pick-actions {
  display: flex;
  gap: 10px;
}
.acc-pick-actions > .btn {
  flex: 1;
  padding: 0 12px;
}
/* The chosen answer stays solid (and the status line says it), the other remains tappable. */
.acc-pick-actions .btn-secondary[aria-pressed="true"]:disabled {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.acc-pick-actions .btn-primary[aria-pressed="true"]:disabled {
  background: var(--ember);
  color: #fff;
}

.acc-match {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

/* ------------------------------------------------------------------ Notifications */

.acc-inbox {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.acc-note:active {
  background: var(--paper-chip);
}
.acc-note.unread {
  background: var(--paper);
  border-color: var(--line);
}
.acc-note-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.acc-note-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-note-title {
  flex: 1;
  min-width: 0;
  font-weight: 500;
}
.acc-note.unread .acc-note-title {
  font-weight: 700;
}
.acc-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ember);
}
.acc-note-body {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.acc-note.unread .acc-note-body {
  color: var(--ink-soft);
}
.acc-note-time {
  font-size: 12px;
  color: var(--muted);
}
.menu-tile.acc-tile-saffron {
  background: var(--saffron-soft);
  color: var(--saffron-ink);
}
.acc-inbox-foot:empty {
  display: none;
}

/* ------------------------------------------------------------------ Profile */

.acc-profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--dusk);
  text-align: center;
}
.acc-avatar-ring {
  padding: 4px;
  border-radius: 50%;
  border: 3px solid var(--ember);
}
.acc-avatar {
  width: 104px;
  height: 104px;
}
.acc-avatar-empty {
  display: block;
}
.acc-hero-name {
  font-size: 28px;
  margin-top: 4px;
}

/* ------------------------------------------------------------------ Forms, lists */

.acc-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.acc-fieldset legend {
  padding: 0;
  margin-bottom: 6px;
}
.acc-age-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.acc-age-row .select {
  flex: 1;
  min-width: 0;
}

.acc-plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.acc-plain-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-list {
  list-style: none;
  margin: 0;
  gap: 0;
}
.acc-list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 0;
}
.acc-list-row + .acc-list-row {
  border-top: 1px solid var(--line);
}
.acc-list-row .menu-title {
  overflow-wrap: anywhere;
}

.acc-bullets {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink-soft);
}
