/*
 * Idealmate — visual system
 * Themes live in :root (purple and pink, the default) and [data-theme="…"] blocks.
 * Every colour is a variable, so a theme is only a new block of variables.
 * The variables are named --jade and --celadon for historical reasons; read them
 * as "primary" and "surface". Seal is reserved for liking and the match moment.
 * Type: Noto Serif SC (headings) / Noto Sans SC (text) so English and Chinese share one voice.
 */
:root {
  /* Warm purple and pink (default) */
  --ink: #2b1f30;
  --mist: #6f6276;
  --jade: #7c4d92;
  --jade-deep: #5d3870;
  --celadon: #f4e9f5;
  --celadon-deep: #e9d7ec;
  --paper: #fdfafc;
  --line: #e2cfe4;
  --seal: #cc4680;
  --danger: #a32a3f;
  --ring: rgba(124, 77, 146, 0.18);
  --veil: rgba(43, 31, 48, 0.62);

  --serif: "Noto Serif SC", "Noto Sans Arabic", "Songti SC", "STSong", Georgia, serif;
  --sans: "Noto Sans SC", "Noto Sans Arabic", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;

  --s-1: 0.875rem;
  --s0: 1rem;
  --s1: 1.25rem;
  --s2: 1.5625rem;
  --s3: 1.953rem;
  --s4: 2.441rem;

  --gap: 1.25rem;
  --rail: 13.5rem;
  --measure: 38rem;
}

/* Ink and jade on cool paper — the original look. */
[data-theme="jade"] {
  --ink: #1d2a2e;
  --mist: #5a6a67;
  --jade: #2f6b5e;
  --jade-deep: #22524a;
  --celadon: #e4eee8;
  --celadon-deep: #d3e3da;
  --paper: #fbfcfa;
  --line: #c9d7cf;
  --seal: #b23a2b;
  --danger: #8f2a20;
  --ring: rgba(47, 107, 94, 0.18);
  --veil: rgba(29, 42, 46, 0.62);
}

/* Warm sand and terracotta. */
[data-theme="sand"] {
  --ink: #2d2620;
  --mist: #6e6154;
  --jade: #9a5b32;
  --jade-deep: #7a4525;
  --celadon: #f3ebe0;
  --celadon-deep: #e7dac8;
  --paper: #fdfbf7;
  --line: #ddcdb8;
  --seal: #b23a2b;
  --danger: #8f2a20;
  --ring: rgba(154, 91, 50, 0.18);
  --veil: rgba(45, 38, 32, 0.62);
}

[data-theme-pick][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
[data-locale][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s0)/1.6 var(--sans);
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
  letter-spacing: 0.005em;
}
h1 { font-size: var(--s3); }
h2 { font-size: var(--s1); margin-top: 2rem; }
h3 { font-size: var(--s0); }
p { margin: 0 0 1em; max-width: var(--measure); }

a { color: var(--jade-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 50; }
.skip:focus { left: 0; }

.lede { color: var(--mist); font-size: var(--s1); line-height: 1.5; }
.muted, .hint, small { color: var(--mist); font-size: var(--s-1); }
.fineprint { color: var(--mist); font-size: var(--s-1); }

/* ------------------------------------------------------------------ shell */
/* The top bar spans the page and carries identity: the brand, and who you are signed in as.
   The rail below carries the places you move between all day. */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.75rem clamp(1.25rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky; top: 0; z-index: 30;
}
.topbar-actions { display: flex; gap: 1.25rem; align-items: center; }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: var(--s1);
  color: var(--ink); text-decoration: none;
}

.has-shell .shell {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  min-height: calc(100vh - 3.6rem);
}
.rail {
  position: sticky; top: 3.6rem; height: calc(100vh - 3.6rem);
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.75rem 1.25rem;
  background: var(--celadon);
}
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.rail a {
  display: block; padding: 0.45rem 0.75rem; border-radius: 0.4rem;
  color: var(--ink); text-decoration: none;
}
.rail a:hover { background: var(--celadon-deep); }
.rail a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.rail-foot { margin-top: auto; display: grid; gap: 0.25rem; font-size: var(--s-1); }
.rail-foot a, .rail-foot .linklike { padding: 0.25rem 0.75rem; text-align: left; }

/* The account menu: a native <details>, so it opens without script. */
.account-menu { position: relative; }
.account-menu > summary {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.6rem 0.3rem 0.3rem; border-radius: 999px;
  cursor: pointer; list-style: none;
}
.account-menu > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover { background: var(--celadon); }
.account-menu > summary::after {
  content: ""; width: 0.45rem; height: 0.45rem; flex: none;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: rotate(45deg) translateY(-0.12rem);
}
.account-menu[open] > summary::after { transform: rotate(-135deg) translateY(-0.12rem); }
.account-name { font-weight: 500; }
.account-drop {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 40;
  min-width: 12rem; padding: 0.4rem;
  display: grid; gap: 0.1rem;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: 0.5rem; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.account-drop a, .account-drop .linklike {
  padding: 0.5rem 0.75rem; border-radius: 0.35rem;
  color: var(--ink); text-decoration: none; text-align: left; font: inherit;
}
.account-drop a:hover, .account-drop .linklike:hover { background: var(--celadon); }
.account-drop a[aria-current="page"] { font-weight: 700; }

main { padding: 2.5rem clamp(1.25rem, 4vw, 3.5rem) 5rem; min-width: 0; }
main:focus { outline: none; }

.narrow { max-width: 32rem; margin: 0 auto; }
.narrowish { max-width: 68rem; }
.page-head { margin-bottom: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; }
.page-head .lede { margin: 0; flex-basis: 100%; max-width: none; }
/* ------------------------------------------------------------------ controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 1.35rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 500 var(--s0)/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-small { min-height: 2.25rem; padding: 0 1rem; font-size: var(--s-1); }
.btn-primary { background: var(--jade); color: #fff; }
.btn-primary:hover { background: var(--jade-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn-like { background: transparent; color: var(--seal); border-color: var(--seal); }
.btn-like:hover { background: var(--seal); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: progress; }

.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--jade-deep); font: inherit; text-decoration: underline; text-underline-offset: 0.18em;
}
.linklike.muted { color: var(--mist); }

.row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.stack { display: grid; gap: 1.1rem; }
.stack > .btn { justify-self: start; }

label { display: grid; gap: 0.35rem; font-weight: 500; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
legend { font-weight: 500; margin-bottom: 0.5rem; padding: 0; }

input[type=text], input[type=email], input[type=password], input[type=number], input[type=date],
input[type=tel], input:not([type]), select, textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 0.45rem;
  background: #fff;
  color: var(--ink);
  font: 400 var(--s0)/1.4 var(--sans);
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { border-color: var(--jade); outline: none; box-shadow: 0 0 0 3px var(--ring); }
[aria-invalid="true"] { border-color: var(--danger) !important; }

.check { display: flex; gap: 0.6rem; align-items: baseline; font-weight: 400; }
.check input { flex: none; accent-color: var(--jade); width: 1.05rem; height: 1.05rem; }
.check small { display: block; flex-basis: 100%; padding-left: 1.65rem; margin-top: -0.35rem; }
fieldset .check { flex-wrap: wrap; }

.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { display: inline-block; font-weight: 400; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--jade); outline-offset: 2px; }

.range { display: flex; align-items: center; gap: 0.5rem; }
.range input { max-width: 6.5rem; }

/* ------------------------------------------------------------------ match preferences */
.pref-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.35rem; }
.pref-head .field-label { font-weight: 500; }
/* A legend can't live inside a flex row, so this row holds only the toggle and pulls up beside it. */
.pref-head-legend { margin-top: -2rem; justify-content: flex-end; pointer-events: none; }
.pref-head-legend .strength-pill { pointer-events: auto; }

.strength-pill { display: inline-block; font-weight: 400; }
.strength-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.strength-pill span {
  display: inline-block; padding: 0.2rem 0.75rem;
  border: 1.5px solid var(--line); border-radius: 999px;
  color: var(--mist); font-size: var(--s-1); cursor: pointer; user-select: none;
  white-space: nowrap;
}
.strength-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.strength-pill input:focus-visible + span { outline: 3px solid var(--jade); outline-offset: 2px; }

/* Each preference is its own block, so one set of options doesn't run into the next. */
.prefs-form { gap: 0.85rem; }
.prefs-form > .field {
  border: 1px solid var(--line); border-radius: 0.55rem;
  padding: 1rem 1.15rem; margin: 0;
  background: #fff;
}
.prefs-form > .field .pref-head { margin-bottom: 0.6rem; }
.prefs-form > .field > legend { font-weight: 500; padding: 0; }
/* A required deal-breaker is visible at a glance down the column. */
.prefs-form > .field:has(input[name^="req:"]:checked) { border-color: var(--ink); background: var(--celadon); }

.field-error { color: var(--danger); font-weight: 500; }
.form-error { color: var(--danger); font-weight: 500; margin: 0; }

.field-group { border-top: 1px solid var(--line); padding-top: 1.25rem; margin-top: 0.5rem; gap: 1.1rem; }
.field-group > legend { font-family: var(--serif); font-size: var(--s1); float: left; width: 100%; margin-bottom: 0.25rem; }

/* Collapsible group on the profile editor */
.group-box { border-top: 1px solid var(--line); margin-top: 0.5rem; }
.group-box > summary {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0.15rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 700; font-size: var(--s1);
}
.group-box > summary::-webkit-details-marker { display: none; }
.group-box > summary::after {
  content: ""; width: 0.5rem; height: 0.5rem; margin-left: auto; flex: none;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem); transition: transform 0.15s;
}
.group-box[open] > summary::after { transform: rotate(-135deg) translate(-0.1rem, -0.1rem); }
.group-box .group-count { color: var(--mist); font: 400 var(--s-1) var(--sans); }
.group-box > .field-group { border-top: 0; margin-top: 0; padding-top: 0; padding-bottom: 1.25rem; }
.group-box > .group-body { padding: 0 0.15rem 1.5rem; }
.group-box > .group-body > h3:first-child { margin-top: 0; }
.group-box > .group-body h3 { margin-top: 1.5rem; }

.field { display: grid; gap: 0.4rem; }
.field-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.field-head label { font-weight: 500; }
select.vis { width: auto; min-height: 2rem; padding: 0.2rem 0.5rem; font-size: var(--s-1); color: var(--mist); }
.strength { font-size: var(--s-1); color: var(--mist); }

.badge {
  display: inline-block; margin-left: 0.5rem; padding: 0.05rem 0.5rem;
  border-radius: 999px; background: var(--celadon); color: var(--jade-deep);
  font: 500 0.75rem/1.6 var(--sans); vertical-align: middle;
}
.badge-premium { background: var(--ink); color: var(--paper); }
.pill { display: inline-block; padding: 0.3rem 0.9rem; border-radius: 999px; background: var(--celadon); font-size: var(--s-1); }

.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.plain-list li { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.empty { color: var(--mist); padding: 2rem 0; }

#toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 60;
  transform: translate(-50%, 150%);
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 0.75rem 1.25rem; border-radius: 0.5rem;
  background: var(--ink); color: var(--paper);
  transition: transform 0.2s ease;
}
#toast.show { transform: translate(-50%, 0); }
#toast[data-kind="error"] { background: var(--danger); }

/* ------------------------------------------------------------------ home */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem; align-items: center;
  max-width: 68rem; margin: 3rem auto 4rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.15; max-width: 16ch; }
.seal-demo { margin: 0; display: grid; place-items: center; min-height: 14rem; }
.pillars {
  max-width: 68rem; margin: 0 auto 3rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2.5rem;
  border-top: 1px solid var(--line); padding-top: 2rem;
}
.pillars h2 { margin-top: 0; }
.home .fineprint, main > .fineprint { max-width: 68rem; margin: 0 auto; }

/* The seal: the product's one loud mark */
.seal {
  display: inline-grid; place-items: center;
  width: 9.5rem; height: 9.5rem; border-radius: 50%;
  border: 3px solid var(--seal);
  box-shadow: inset 0 0 0 5px var(--paper), inset 0 0 0 7px var(--seal);
  color: var(--seal);
  font: 700 var(--s2)/1.1 var(--serif);
  text-align: center; padding: 1rem;
  transform: rotate(-8deg);
}

/* ------------------------------------------------------------------ cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 2rem var(--gap);
}
.card { display: grid; align-content: start; gap: 0.7rem; transition: opacity 0.25s, transform 0.25s; }
.card.gone { opacity: 0; transform: scale(0.97); }
.card-photo { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 0.6rem; background: var(--celadon); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.no-photo {
  display: grid; place-items: center; width: 100%; height: 100%;
  font: 700 3rem/1 var(--serif); color: var(--jade);
  background: var(--celadon);
}
.no-photo.small { width: 2.5rem; height: 2.5rem; border-radius: 50%; font-size: 1.1rem; }
.no-photo.big { aspect-ratio: 1; border-radius: 0.6rem; }
.card-body { display: grid; gap: 0.2rem; }
.card-body h3 { margin: 0; font-size: var(--s1); }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-meta, .card-status { margin: 0; color: var(--mist); font-size: var(--s-1); }
.card-intent { margin: 0; font-size: var(--s-1); }
.card-match { margin-top: 0.4rem; font-size: var(--s-1); }
.card-match .pct { font-weight: 700; color: var(--jade-deep); }
.card-match ul { margin: 0.2rem 0 0; padding-left: 1.1rem; color: var(--mist); }
.card-actions { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.card-actions .btn { flex: 1; }
.card-status.is-online { color: var(--jade-deep); font-weight: 500; }
.card-status.is-online::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 0.5rem; height: 0.5rem; margin-right: 0.35rem;
  border-radius: 50%; background: #3aa76d;
}
[dir="rtl"] .card-status.is-online::before { margin-right: 0; margin-left: 0.35rem; }

/* ------------------------------------------------------------------ search */
.search-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.filters { position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; padding-right: 0.5rem; }
.filter { border-top: 1px solid var(--line); padding: 0.6rem 0; }
.filter summary { cursor: pointer; font-weight: 500; }
.filter[open] summary { margin-bottom: 0.6rem; }
.inline-form { display: flex; gap: 0.5rem; }
.inline-form input { min-width: 14rem; }
#more { margin-top: 2rem; }

/* ------------------------------------------------------------------ tabs */
.tabs { display: flex; gap: 0.25rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.tabs button {
  background: none; border: 0; padding: 0.6rem 1rem; cursor: pointer;
  font: 500 var(--s0) var(--sans); color: var(--mist);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ------------------------------------------------------------------ member */
.member-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 0.4rem; }
.gallery img:first-child { grid-column: 1 / -1; aspect-ratio: 1; max-height: 32rem; border-radius: 0.6rem; }
.member-intro h1 { font-size: var(--s4); margin-bottom: 0.25rem; }
.member-actions { margin: 1.5rem 0 1rem; }
.member-safety { font-size: var(--s-1); gap: 1.25rem; }
.member-body { max-width: var(--measure); margin-top: 3rem; }
.about { white-space: pre-line; font-size: var(--s1); line-height: 1.6; }
.prompt { margin: 1.75rem 0; padding: 1.25rem 1.5rem; background: var(--celadon); border-radius: 0.5rem; }
.prompt p { margin: 0; }
.prompt-q { font-family: var(--serif); font-weight: 700; margin-bottom: 0.4rem !important; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 2rem; margin-top: 2rem; }
.details dt { color: var(--mist); }
.details dd { margin: 0; }
.member-section { border-top: 1px solid var(--line); }
.member-section > summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.85rem 0.15rem; cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 700;
}
.member-section > summary::-webkit-details-marker { display: none; }
.member-section > summary::after {
  content: ""; width: 0.5rem; height: 0.5rem; margin-left: auto; flex: none;
  border-right: 2px solid var(--mist); border-bottom: 2px solid var(--mist);
  transform: rotate(45deg) translate(-0.15rem, -0.15rem); transition: transform 0.15s;
}
.member-section[open] > summary::after { transform: rotate(-135deg) translate(-0.1rem, -0.1rem); }
.member-section .sec-count { color: var(--mist); font: 400 var(--s-1) var(--sans); margin-left: 0; }
.member-section .details { margin-top: 0; margin-bottom: 1.25rem; }

dialog {
  border: 0; border-radius: 0.75rem; padding: 1.75rem;
  width: min(30rem, calc(100vw - 2rem)); color: var(--ink);
}
dialog::backdrop { background: var(--veil); }
dialog h2 { margin-top: 0; }

/* ------------------------------------------------------------------ match moment */
.match-moment {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center;
  background: var(--paper); opacity: 0.97;
}
.match-box { display: grid; justify-items: center; gap: 1.25rem; text-align: center; padding: 1.5rem; }
.match-line { font: 700 var(--s2)/1.3 var(--serif); margin: 0; }
.seal-stamp { animation: stamp 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes stamp {
  0% { transform: rotate(-8deg) scale(1.6); opacity: 0; }
  60% { transform: rotate(-8deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(-8deg) scale(1); }
}

/* admin */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.panel { background: var(--celadon); border-radius: 0.6rem; padding: 1.25rem; }
.panel h2 { margin-top: 0; }
.admin-toolbar { justify-content: space-between; margin-bottom: 0.75rem; }
.admin-toolbar input[type=search] { max-width: 20rem; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--s-1); }
.admin-table th { text-align: left; font-weight: 500; color: var(--mist); border-bottom: 1px solid var(--line); padding: 0.5rem; }
.admin-table td { border-bottom: 1px solid var(--line); padding: 0.5rem; vertical-align: middle; }
.admin-photo img { width: 3rem; height: 3rem; object-fit: cover; border-radius: 0.4rem; }
.admin-login code { display: block; font-size: 0.8rem; word-break: break-all; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--paper); padding: 0.1rem 0.35rem; border-radius: 0.25rem; }

/* admin members */
.admin-tools { margin-bottom: 1.5rem; }
.admin-tools > summary { cursor: pointer; font-weight: 500; }
.admin-tools[open] > summary { margin-bottom: 1rem; }
.admin-tools .admin-grid { margin-bottom: 0; }
.admin-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 0.75rem 1rem; margin-bottom: 1rem; }
.admin-filters label, .admin-filters fieldset { font-size: var(--s-1); }
.admin-filters select, .admin-filters input { min-height: 2.35rem; padding: 0.3rem 0.6rem; }
.admin-filters .range input { width: 5rem; }
.admin-filters .grow { flex: 1; min-width: 12rem; }
.admin-filters legend { margin-bottom: 0.35rem; }
.inline-label { display: flex; align-items: center; gap: 0.5rem; font-size: var(--s-1); font-weight: 400; }
.inline-label select { width: auto; min-height: 2.25rem; padding: 0.2rem 0.5rem; }
.lang-select { width: auto; min-height: 2.25rem; padding: 0.2rem 0.6rem; font-size: var(--s-1); }
.admin-toolbar p { margin: 0; }
.admin-actions { white-space: nowrap; }
.admin-actions .btn { margin-right: 0.5rem; }
.pager { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; justify-content: center; margin: 1.5rem 0; }
.pager-btn { min-width: 2.25rem; height: 2.25rem; border: 1.5px solid var(--line); border-radius: 0.4rem; background: transparent; cursor: pointer; font: inherit; color: var(--ink); }
.pager-btn.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager-btn:disabled { opacity: 0.4; cursor: default; }
.pager-gap { color: var(--mist); padding: 0 0.25rem; }
.md-box { width: min(46rem, 100%); max-height: calc(100vh - 2rem); }
.md-box:focus { outline: none; }
.md-head { position: relative; padding-right: 5rem; }
.md-head h2 { margin: 0; }
.md-head p { margin: 0.25rem 0 0; }
.md-close { position: absolute; top: 0; right: 0; }
.md-photos { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.md-photos figure { margin: 0; }
.md-photos img { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.4rem; }
.md-photos figcaption { font-size: 0.75rem; color: var(--mist); }
.md-section { border-top: 1px solid var(--line); padding-top: 0.75rem; }
.md-section h3 { margin: 0 0 0.5rem; }
.md-section .details { margin-top: 0; font-size: var(--s-1); }
.md-section .details .badge { margin-left: 0.4rem; }
.md-section .prompt { margin: 0.75rem 0; padding: 0.75rem 1rem; }

/* page-level notices (script failures, no-JS fallback) */
.notice, .noscript {
  margin: 0 0 1.25rem; padding: 0.8rem 1rem; border-radius: 0.45rem;
  background: #f6e7e4; color: var(--danger); font-weight: 500; max-width: none;
}
.notice-ok { background: var(--celadon); color: var(--jade-deep); }
.noscript { margin: 0; border-radius: 0; text-align: center; }

/* measurement units */
.unit-input { display: inline-flex; align-items: center; gap: 0.4rem; }
.unit-input select { width: auto; min-width: 8rem; }
.unit-input input[type=number] { max-width: 7rem; }
.unit-suffix { color: var(--mist); font-size: var(--s-1); }
.unit-toggle { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; font-size: var(--s-1); }
.unit-toggle-label { color: var(--mist); margin-right: 0.35rem; }
.unit-toggle button {
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  padding: 0.2rem 0.75rem; border-radius: 999px; cursor: pointer; font: inherit;
}
.unit-toggle button.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field-group > .unit-toggle { margin-bottom: 0.25rem; }
.units-setting .unit-toggle-label { display: none; }

/* photo cropper */
.crop-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
  background: var(--veil);
}
.crop-box {
  width: min(26rem, 100%); max-height: calc(100vh - 2rem); overflow: auto;
  background: var(--paper); border-radius: 0.75rem; padding: 1.25rem;
  display: grid; gap: 0.75rem;
}
.crop-title { margin: 0; font-size: var(--s1); }
.crop-box .hint { margin: 0; }
.crop-stage {
  /* Square at any screen height (a max-height would break the ratio and distort the crop). */
  position: relative; overflow: hidden; aspect-ratio: 1;
  width: min(100%, calc(60vh * 0.8)); margin: 0 auto;
  background: #111; border-radius: 0.4rem; cursor: grab; touch-action: none; user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-grid {
  position: absolute; inset: 0; pointer-events: none;
  background:
          linear-gradient(to right, transparent 33.1%, rgba(255,255,255,.45) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.45) 66.7%, transparent 66.9%),
          linear-gradient(to bottom, transparent 33.1%, rgba(255,255,255,.45) 33.3%, transparent 33.5%, transparent 66.5%, rgba(255,255,255,.45) 66.7%, transparent 66.9%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.crop-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.crop-zoom { display: flex; align-items: center; gap: 0.6rem; flex: 1; font-weight: 400; }
.crop-zoom input { flex: 1; accent-color: var(--jade); }
.crop-actions { justify-content: flex-end; }
.photo-actions { flex-wrap: wrap; }
.photo-move { position: absolute; top: 0.4rem; right: 0.4rem; display: flex; gap: 0.2rem; }
.move-btn {
  width: 1.75rem; height: 1.75rem; padding: 0; line-height: 1;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--ink); color: var(--paper); font: 500 0.9rem/1 var(--sans);
}
.move-btn:disabled { opacity: 0.35; cursor: default; }
[dir="rtl"] .photo-move { right: auto; left: 0.4rem; }

/* prompt answers: as many as they like, two suggested */
.prompt-count { margin: 0; font-weight: 500; color: var(--jade-deep); }
.prompt-count.is-over { color: var(--danger); }
.prompt-count.is-soft { color: var(--mist); font-weight: 400; }
.prompt-field.is-locked { color: var(--mist); }
.prompt-field textarea:disabled { background: var(--celadon); border-style: dashed; cursor: not-allowed; }

/* ------------------------------------------------------------------ onboarding */
.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: flex; gap: 0.5rem; counter-reset: step; }
.steps li {
  flex: 1; counter-increment: step;
  padding-top: 0.6rem; border-top: 3px solid var(--line);
  font-size: var(--s-1); color: var(--mist);
}
.steps li::before { content: counter(step) ". "; }
.steps li.done { border-top-color: var(--jade); }
.steps .step-name { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; }
.steps button.step-name:not(:disabled) { cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; }
.steps button.step-name:disabled { cursor: default; }
.step-nav { margin-top: 1.5rem; }
.steps li[aria-current="step"] { border-top-color: var(--ink); color: var(--ink); font-weight: 500; }

.photo-grid { list-style: none; padding: 0; margin: 0 0 0.75rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
.photo-grid li { position: relative; }
.photo-grid img { aspect-ratio: 1; object-fit: cover; border-radius: 0.6rem; }
.photo-grid .is-primary img { outline: 3px solid var(--jade); outline-offset: 2px; }
.photo-state {
  position: absolute; top: 0.4rem; left: 0.4rem;
  background: var(--ink); color: var(--paper); font-size: 0.75rem;
  padding: 0.1rem 0.5rem; border-radius: 999px;
}
.photo-actions { display: flex; justify-content: space-between; gap: 0.5rem; font-size: var(--s-1); margin-top: 0.35rem; }
.photo-main { color: var(--jade-deep); font-weight: 500; }
.photo-add label {
  display: grid; place-items: center; aspect-ratio: 1; cursor: pointer;
  border: 1.5px dashed var(--line); border-radius: 0.6rem; color: var(--jade-deep);
}
.photo-add label:hover { border-color: var(--jade); background: var(--celadon); }
.photo-add label:focus-within { outline: 3px solid var(--jade); outline-offset: 2px; }

.city-picker { position: relative; }
.city-results {
  position: absolute; z-index: 5; left: 0; right: 0; top: 100%;
  list-style: none; margin: 0.25rem 0 0; padding: 0.25rem 0;
  background: #fff; border: 1.5px solid var(--line); border-radius: 0.45rem;
}
.city-results li { padding: 0.45rem 0.8rem; cursor: pointer; }
.city-results li:hover, .city-results li:focus { background: var(--celadon); outline: none; }

/* ------------------------------------------------------------------ chat */
/* The chat page fills the viewport exactly, so the composer stays at the bottom and never scrolls away. */
main:has(.chat-layout) { padding-top: 1.5rem; padding-bottom: 0; overflow: hidden; }
.chat-layout {
  display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 0;
  height: calc(100vh - 3rem);
  height: calc(100dvh - 3rem);
  margin: 0;
  border: 1px solid var(--line); border-radius: 0.6rem; overflow: hidden;
}
.conv-list { background: var(--celadon); padding: 1.25rem 0.75rem; overflow: auto; }
.conv-list h1 { font-size: var(--s1); padding: 0 0.5rem; }
#conversations { list-style: none; margin: 0; padding: 0; }
#conversations a { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem; border-radius: 0.45rem; color: var(--ink); text-decoration: none; }
#conversations img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; }
#conversations .conv-text { min-width: 0; flex: 1; display: grid; gap: 0.1rem; }
#conversations .conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
#conversations .conv-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#conversations .conv-when { color: var(--mist); font-size: 0.75rem; flex: none; }
#conversations .conv-sub { color: var(--mist); font-size: var(--s-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#conversations li.active > a { background: var(--celadon-deep); }
#conversations li.unread .conv-name { font-weight: 700; }
/* The dot hangs off the row, not the name, so a long name can't clip it. */
#conversations li.unread .conv-top::after {
  content: ""; flex: none; align-self: center;
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--seal);
}

/* Flex, not fixed grid rows: the banner and "older" button hide and unhide,
   which would shift positional rows and strand the composer mid-page. */
.thread { display: flex; flex-direction: column; min-height: 0; }
/* Both occupy the same cell of .chat-layout, so the hidden one can't open a second row. */
.thread, .thread-placeholder { grid-column: 2; grid-row: 1; }
.thread-placeholder { display: none; align-self: center; justify-self: center; color: var(--mist); }
.thread[hidden] + .thread-placeholder { display: block; }
.thread-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--line); }
.thread-who { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.thread-who:hover .who-name { text-decoration: underline; }
.thread-who[data-typing]::after {
  content: attr(data-typing);
  align-self: center;
  font: 400 var(--s-1) var(--sans); color: var(--mist);
}
.who-photo { width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; }
.who-text { display: grid; gap: 0.05rem; }
.who-name { font: 700 var(--s1) var(--serif); color: var(--ink); }
.who-meta { font: 400 var(--s-1) var(--sans); color: var(--mist); }

.thread-actions { display: flex; gap: 1.25rem; font-size: var(--s-1); }
.safety-banner { margin: 0; padding: 0.75rem 1.25rem; background: #f6e7e4; color: var(--danger); font-size: var(--s-1); }
#older { align-self: center; margin: 0.75rem 0 0; font-size: var(--s-1); }
.messages {
  list-style: none; margin: 0; padding: 1.25rem;
  flex: 1 1 auto; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.msg { max-width: min(34rem, 80%); display: grid; gap: 0.2rem; }
.msg.mine { align-self: flex-end; justify-items: end; }
.bubble { padding: 0.6rem 0.95rem; border-radius: 1rem 1rem 1rem 0.25rem; background: var(--celadon); white-space: pre-wrap; overflow-wrap: anywhere; }
.mine .bubble { background: var(--jade); color: #fff; border-radius: 1rem 1rem 0.25rem 1rem; }
.bubble.unsent { background: transparent; border: 1px dashed var(--line); color: var(--mist); font-style: italic; }
.msg-meta { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--mist); }
.composer { display: flex; gap: 0.6rem; padding: 0.9rem 1.25rem; border-top: 1px solid var(--line); align-items: end; }
.composer textarea { min-height: 2.75rem; max-height: 9rem; }
.thread-closed { margin: 0; padding: 1rem 1.25rem; border-top: 1px solid var(--line); color: var(--mist); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2rem; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .search-layout, .member-head, .hero { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .seal-demo { min-height: 10rem; }
}

@media (max-width: 720px) {
  .has-shell .shell { display: block; padding-bottom: 4.5rem; }
  .account-name { display: none; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 40;
    height: auto; padding: 0.35rem 0.5rem; flex-direction: row; gap: 0;
    border-top: 1px solid var(--line);
  }
  .rail .brand, .rail-foot { display: none; }
  .rail ul { grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; }
  .rail a { text-align: center; padding: 0.55rem 0.25rem; font-size: var(--s-1); }
  main { padding-top: 1.5rem; }
  /* 1.5rem top gap plus the 4.5rem the fixed bottom rail occupies. */
  .chat-layout { grid-template-columns: 1fr; height: calc(100vh - 6rem); height: calc(100dvh - 6rem); margin: 0; }
  .chat-layout .conv-list { display: block; }
  .chat-layout:has(.thread:not([hidden])) .conv-list { display: none; }
  .thread, .thread-placeholder { grid-column: 1; }
  .composer { padding-bottom: calc(0.9rem + env(safe-area-inset-bottom)); }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1.5rem 0.9rem; }
  .inline-form input { min-width: 0; }
  .details { grid-template-columns: 1fr; gap: 0.1rem; }
  .details dd { margin-bottom: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------- right-to-left */
[dir="rtl"] .admin-stats span { direction: rtl; }
[dir="rtl"] .has-shell .shell { grid-template-columns: minmax(0, 1fr) var(--rail); }
[dir="rtl"] .account-drop { right: auto; left: 0; }
[dir="rtl"] .rail { order: 2; }
[dir="rtl"] .rail-foot a, [dir="rtl"] .rail-foot .linklike { text-align: right; }
[dir="rtl"] .search-layout { grid-template-columns: minmax(0, 1fr) 17rem; }
[dir="rtl"] .filters { order: 2; padding-right: 0; padding-left: 0.5rem; }
[dir="rtl"] .admin-table th { text-align: right; }
[dir="rtl"] .badge { margin-left: 0; margin-right: 0.5rem; }
[dir="rtl"] .card-match ul { padding-left: 0; padding-right: 1.1rem; }
[dir="rtl"] .check small { padding-left: 0; padding-right: 1.65rem; }
[dir="rtl"] .md-head { padding-right: 0; padding-left: 5rem; }
[dir="rtl"] .md-close { right: auto; left: 0; }
[dir="rtl"] .photo-state { left: auto; right: 0.4rem; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 0; }
[dir="rtl"] .admin-actions .btn { margin-right: 0; margin-left: 0.5rem; }
[dir="rtl"] .unit-toggle-label { margin-right: 0; margin-left: 0.35rem; }
[dir="rtl"] .member-section > summary::after,
[dir="rtl"] .group-box > summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .bubble { border-radius: 1rem 1rem 0.25rem 1rem; }
[dir="rtl"] .mine .bubble { border-radius: 1rem 1rem 1rem 0.25rem; }
[dir="rtl"] .field-group > legend { float: right; }


.plan-grid { align-items: start; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }
.plan-card { border: 1.5px solid var(--line); border-radius: 0.6rem; padding: 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.plan-card.is-current { border-color: var(--ink); background: var(--celadon); }
.plan-card h3 { margin: 0; font-size: var(--s1); }
.plan-price { margin: 0; font: 700 var(--s2) var(--serif); }
.plan-card .btn { justify-self: start; margin-top: 0.5rem; }
.term-list { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.6rem; }
.term { display: grid; gap: 0.15rem; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.term-length { font-weight: 500; }
.term-price { font: 700 var(--s1) var(--serif); }
.term-permonth { color: var(--mist); }
.term-buy { display: flex; gap: 0.5rem; margin-top: 0.35rem; }


.admin-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.admin-nav a {
  padding: 0.5rem 0.9rem; text-decoration: none; color: var(--mist);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.admin-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 500; }
.admin-stats { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.admin-stats li {
  min-width: 8rem; padding: 1rem 1.25rem;
  border: 1px solid var(--line); border-radius: 0.5rem;
}
.admin-stats strong { display: block; font-size: var(--s2); }
.admin-stats span { color: var(--mist); font-size: var(--s-1); }
.admin-table td > .linklike + .linklike { margin-left: 0.75rem; }



.term-group { margin-bottom: 1.25rem; }
.term-group h4 { margin: 0 0 0.35rem; font-size: var(--s0); }
.term-group .plain-list li { gap: 0.6rem; padding: 0.35rem 0; }
#term-form { margin-top: 0.5rem; }
.page.admin h3 { margin-top: 2rem; }
.btn[hidden] { display: none; }

.upgrade-moment .match-box { max-width: 26rem; }
.upgrade-moment h2 { margin-top: 0; }


[hidden] { display: none !important; }


/* The membership panel: what you pay and the one control that matters. It needs a boundary,
   or it reads as stray text above the plans rather than a summary of what you already have. */
.membership-box {
  border: 1.5px solid var(--line); border-radius: 0.6rem;
  padding: 1.25rem 1.5rem; margin-bottom: 2rem;
  background: var(--celadon);
  display: grid; gap: 0.35rem; justify-items: start;
}
.membership-box h2 { margin: 0 0 0.25rem; font-size: var(--s1); }
.membership-box p { margin: 0; }
.membership-box .mem-plan { font: 700 var(--s1) var(--serif); }
.membership-box .js-mem-cancel { margin-top: 0.5rem; }
.membership-box .notice { margin: 0.25rem 0 0; }


/* Payment methods read as a table: brand, number, expiry, action — the columns line up so
   two cards can be told apart at a glance. */
.card-table { border-collapse: collapse; margin-bottom: 1.25rem; }
.card-table td { padding: 0.7rem 1.5rem 0.7rem 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.card-table td:last-child { padding-right: 0; }
.pay-brand { font-weight: 500; }
.pay-number { font-variant-numeric: tabular-nums; }
.pay-actions { white-space: nowrap; }
.pay-actions > * + * { margin-left: 1rem; }

.pay-number { font-family: system-ui, sans-serif; }
.pay-number .dots { font-variant-numeric: normal; letter-spacing: -0.1em; margin-right: 0.45rem; }



/* The account area's front door: one card per section, each naming what it holds. */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.account-card {
  display: block; padding: 1.25rem 1.5rem;
  border: 1.5px solid var(--line); border-radius: 0.6rem;
  color: var(--ink); text-decoration: none;
}
.account-card:hover { border-color: var(--ink); background: var(--celadon); }
.account-card h2 { margin: 0 0 0.35rem; font-size: var(--s1); }
.account-card p { margin: 0; color: var(--mist); font-size: var(--s-1); max-width: none; }



#details-form .row { flex-wrap: nowrap; }
#details-form .row .grow { flex: 1; min-width: 0; }
@media (max-width: 720px) { #details-form .row { flex-wrap: wrap; } }


/* A readable width for forms inside a wider page, aligned with the page heading. */
.form-col { max-width: 32rem; }

.account-delete { margin-top: 2rem; font-size: var(--s-1); }
.account-delete a { color: var(--mist); }
.account-delete a:hover { color: var(--danger); }

/* Settings: one card per concern, stacked. */
.settings-grid { display: grid; gap: 1rem; max-width: 48rem; }
.settings-card {
  border: 1.5px solid var(--line); border-radius: 0.6rem;
  padding: 1.25rem 1.5rem;
  display: grid; gap: 0.75rem;
}
.settings-card h2 { margin: 0; font-size: var(--s1); }
.settings-card .hint { margin: 0; }
/* A legal document read in place over the registration form. */
.doc-dialog {
  width: min(44rem, calc(100vw - 2rem)); max-height: 85vh;
  padding: 0; display: flex; flex-direction: column;
}
.doc-dialog:not([open]) { display: none; }
.doc-dialog-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--line);
}
.doc-dialog-head h2 { margin: 0; }
.doc-dialog-body { padding: 1.25rem 1.5rem 1.75rem; overflow-y: auto; max-width: none; }

.doc-dialog {
  width: min(60rem, calc(100vw - 2rem)); max-height: 85vh;
  padding: 0; display: flex; flex-direction: column;
}

.doc-dialog-body p, .doc-dialog-body li { max-width: none; }


.js-created-codes { width: 100%; max-width: 32rem; font-family: ui-monospace, monospace; }


.plan-card .pill { justify-self: start; }
.plan-grid > .plan-card { align-content: start; }

.term-list > .term:only-child { border-top: 0; padding-top: 0; }
