/* The portal: signing up, logging in, the account, placing a room, my rooms. Built on the site's
   stylesheet (its letters, colours, buttons, the phone frame and the .text column) and in the
   language of the home page: a photograph, the wide display letter in two tones, white and
   near-black, one green accent used sparingly. Designed at 390 pixels first and widened after:
   one column, fields and buttons a thumb can hit (56 px), letters of 16 px in every field so
   that a phone does not zoom in, and sizes in rem so that they follow the reader's text size. */

.search-next { margin: 24px 0; padding: 24px; background: var(--soft); border: 1px solid var(--line); border-radius: 16px; }
.text.acct .search-next h2 { font-size: 1.1rem; margin-top: 0; line-height: 1.5; }
.search-next-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.search-next-actions .button { flex: 1 1 200px; text-align: center; white-space: normal; }

.text.acct {
  max-width: 1160px;
  padding: 24px var(--gutter) 72px;
}

.acct-col {
  max-width: 600px;
  margin: 0 auto;
}

/* --- the head of a page ---------------------------------------------------------------------- */

.acct-head {
  margin: 0;
}

.text.acct h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 9.4vw, 3.25rem);
  line-height: 1.02;
  text-wrap: balance;
}

.acct h1 span {
  display: block;
  color: var(--ink-3); /* the second tone of a heading, as on the home page */
}

.text.acct .lead {
  margin-top: 18px;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: anywhere; /* a long mail address must not push the page wide */
}

.text.acct h2 {
  margin-top: 44px;
  font-size: 1.25rem;
}

/* --- before login: the form beside a photograph ------------------------------------------------ */

.auth {
  display: grid;
  gap: 28px;
}

.auth-form {
  min-width: 0;
}

.auth-photo {
  position: relative;
  order: -1; /* on a phone the photograph comes first, as on the home page */
  height: 148px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #5f6555;
}

.auth-photo picture,
.auth-photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.auth-photo img {
  object-fit: cover;
  object-position: 50% 78%;
}

.auth-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 20, 0) 20%, rgba(20, 20, 20, 0.72) 100%);
}

.auth-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  right: 18px;
  bottom: 14px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.auth-photo figcaption span {
  display: block;
  color: #ffffff;
  text-wrap: balance; /* a line of several words: its rows of even length, never one word alone */
}

/* --- fields ---------------------------------------------------------------------------------- */

.acct-form {
  display: grid;
  gap: 22px;
  margin: 28px 0 0;
}

.acct-quiet {
  margin-top: 16px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label,
.choices legend {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.field textarea {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 1rem; /* never smaller: a phone zooms in on a field with smaller letters */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 176px;
  line-height: 1.5;
  resize: vertical;
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):hover,
.field textarea:hover {
  border-color: var(--ink-2);
}

.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(20, 20, 20, 0.14);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #a4161a;
  box-shadow: 0 0 0 1px #a4161a;
}

.text .field-hint,
.text .field-error {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.field-hint {
  color: var(--ink-2);
}

/* A refusal: beside its field, in words, and marked by more than its colour. */
.text .field-error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #a4161a; /* 7.6 to 1 on white */
  font-weight: 600;
}

.field-error::before {
  content: "!";
  display: grid;
  flex: none;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #a4161a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}

/* --- buttons of the portal --------------------------------------------------------------------- */

.text .acct-submit,
.text .acct-wide {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  font-size: 1rem;
}

.text .acct-wide {
  margin-top: 0;
}

.text .acct-big {
  min-height: 64px;
  margin-top: 20px;
  font-size: 1.0625rem;
}

.button-quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.button-quiet:hover {
  background: var(--soft);
}

/* The payment page of a running subscription: first what it is for, and at the foot of the page,
   in a quieter block, the ways out (cancelling and withdrawing). Always there, never the first thing. */
.text .pay-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text .pay-manage {
  margin-top: 8px;
}

/* On the payment page: one quiet line that leads to the view above. */
.text .pay-manage-link {
  margin-top: 72px;
  padding-top: 20px;
  border-top: 1px solid rgba(20, 20, 20, 0.12);
  font-size: 0.875rem;
}

.pay-manage-link a {
  color: var(--ink-2);
}

.text .pay-manage h2 {
  font-size: 1.125rem;
}

.text .pay-manage h3 {
  margin: 24px 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.text .pay-manage .field-hint {
  font-size: 0.875rem;
}

.text .pay-manage .acct-submit {
  padding-left: 0;
  font-size: 0.9375rem;
}

/* A form that cannot be taken back. */
.text .acct-danger .acct-submit {
  border-color: #a4161a;
  background: #a4161a;
  color: #ffffff; /* 7.6 to 1 */
}

.text .acct-danger .acct-submit:hover {
  border-color: #7a0f12;
  background: #7a0f12;
}

/* --- what a page says: a notice, a refusal ------------------------------------------------------ */

.text .acct-error,
.text .acct-notice {
  margin: 24px 0 0;
  padding: 16px 18px 16px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 6px 16px 16px 6px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.text .acct-error {
  border-left-color: #a4161a;
  background: #fdeeee;
  color: #6f0d10; /* 9 to 1 on its ground */
  font-weight: 600;
}

.form-errors p {
  margin: 0;
}

.text .form-errors ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.text .form-errors li {
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.form-errors a {
  display: inline-block;
  padding: 6px 0;
  color: inherit;
}

.text .acct-alt {
  margin-top: 22px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.acct-alt a {
  display: inline-block;
  padding: 10px 0; /* a larger target for a thumb */
  color: var(--ink);
  font-weight: 600;
}

.text .acct-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 14px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acct-or::before,
.acct-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* --- the account page: two ways in, then one subject per block ---------------------------------- */

.acct-tiles {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.acct-tile {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 148px;
  padding: 22px 64px 22px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.acct-tile:active {
  transform: scale(0.99);
}

.acct-tile-dark {
  background: var(--ink);
  color: #ffffff;
}

.acct-tile-dark:hover {
  background: #000000;
}

.acct-tile-light {
  background: var(--soft);
  color: var(--ink);
}

.acct-tile-light:hover {
  background: #ecebe6;
}

.acct-tile-title {
  font-family: var(--display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.acct-tile-note {
  font-size: 0.9375rem;
  line-height: 1.45;
  opacity: 0.82;
}

.acct-tile-go {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1;
}

.acct-tile-light .acct-tile-go {
  background: var(--ink);
  color: #ffffff;
}

.activation-checklist { border: 1px solid var(--line); background: #f3f7ed; border-radius: 20px; padding: 24px; margin: 24px 0; }
.activation-checklist h2 { font-size: 1.25rem; margin: 0 0 16px; }
.activation-checklist ol { display: grid; gap: 12px; padding: 0; list-style: none; }
.activation-checklist li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.activation-status { font-size: .8rem; min-width: 65px; font-weight: 700; }
.activation-checklist p { font-size: .9rem; line-height: 1.6; }
.acct-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.text.acct .acct-section h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

.text .acct-section p {
  margin-top: 12px;
}

.acct-section .acct-form {
  margin-top: 16px;
}

.acct-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.acct-state::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-3);
}

.acct-state-on::before {
  background: var(--accent);
}

/* A box to tick, with its sentence: the whole row is the target. */
.acct-check {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 56px;
  padding: 14px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
}

.acct-check input {
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

.acct-check label {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

/* --- the steps of placing: where you are --------------------------------------------------------- */

.steps {
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  margin: 4px 0 26px;
}

.text .steps ol {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text .steps li {
  margin: 0;
  padding: 0;
  border-top: 4px solid var(--line);
  border-radius: 2px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.steps li > a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.text .steps li > a,
.text .steps .step-now,
.text .steps .step-todo {
  min-height: 48px;
  padding-top: 10px;
}

.steps .step-dot,
.steps .step-name {
  display: block;
}

.steps .step-dot {
  margin-bottom: 3px;
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 0.6875rem;
  letter-spacing: 0;
}

.text .steps .step-done {
  border-top-color: var(--accent);
  color: var(--ink);
}

.steps .step-done .step-dot {
  color: var(--accent);
}

.steps .step-done a:hover .step-name {
  text-decoration: underline;
}

.text .steps .step-now {
  border-top-color: var(--ink);
  color: var(--ink);
}

.steps .step-now .step-dot {
  color: var(--ink);
}

.text .room-step {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-form {
  gap: 28px;
}

.text.acct .room-part {
  margin: 12px 0 -12px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.field input[type="date"] {
  min-width: 0; /* a date field must not push a narrow screen wide */
}

/* --- a question with a few answers: each answer a card to tap -------------------------------------- */

fieldset.choices {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

fieldset.choices:focus {
  outline: none;
}

.choices legend {
  padding: 0;
  margin-bottom: 10px;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}

.field .choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.field .choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.field .choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.field .choice:hover span {
  border-color: var(--ink);
}

.field .choice input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.field .choice input:checked + span::before {
  content: "\2713"; /* a check: chosen is said by more than the colour */
  font-size: 0.875rem;
}

.field .choice input:focus-visible + span {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.choices[aria-invalid="true"] .choice span {
  border-color: #a4161a;
}

/* --- photographs: tiles, and the field that adds one ----------------------------------------------- */

.text .photo-count {
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.text .photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.text .photo-list:empty {
  display: none;
}

.text .photo-list li {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 0;
}

.photo-list img,
.photo-list canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  background: var(--soft);
  object-fit: cover;
}

.photo-n {
  position: absolute;
  top: 10px;
  left: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
}

.text .photo-remove {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 8px 10px;
  font-size: 0.9375rem;
}

/* A photograph on its way: shown at once, with a bar that moves. */
.photo-pending canvas {
  opacity: 0.6;
}

.photo-pending progress {
  width: 100%;
  height: 8px;
  accent-color: var(--accent);
}

.text .photo-pending p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.875rem;
}

.photo-form {
  margin-top: 20px;
}

.field input[type="file"] {
  width: 100%;
  min-height: 72px;
  padding: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.field input[type="file"]::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.field input[type="file"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* With the script: the whole area is the button, and choosing a photograph sends it. */
.photo-live .photo-field {
  position: relative;
}

.photo-live .photo-field label {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 148px;
  padding: 22px 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: 22px;
  background: var(--soft);
  font-size: 1.0625rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.photo-live .photo-field label::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.photo-live .photo-field label:hover {
  border-color: var(--ink);
  background: #ecebe6;
}

.photo-live .photo-field input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 148px;
  min-height: 0;
  opacity: 0;
}

.photo-live .photo-field:focus-within label {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.photo-live.photo-busy .photo-field label {
  opacity: 0.5;
  cursor: progress;
}

.photo-live .acct-submit {
  display: none; /* choosing sends: no second press */
}

.text .photo-next {
  margin-top: 28px;
}

.text .draft-note {
  margin-top: 18px;
}

.room-form .draft-note {
  margin-top: 0;
}

/* --- the preview: the site's phone, with the alert as a searcher gets it --------------------------- */

.room-phone {
  margin-top: 28px;
}

.text .room-phone .photo-list {
  gap: 4px;
  margin: 0 0 6px;
}

.room-phone .photo-list img {
  border-radius: 12px;
}

.room-phone .photo-list li:only-child {
  grid-column: 1 / -1;
}

.room-phone .photo-list li:only-child img {
  aspect-ratio: 4 / 3;
}

.room-phone .photo-n {
  display: none;
}

.preview-text {
  white-space: pre-wrap; /* the line breaks of the alert are its own */
}

.room-phone .bubble-buttons {
  grid-template-columns: 1fr 1fr;
}

.room-changes {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--soft);
}

.text .room-changes p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

.text .room-changes ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.text .room-changes li {
  margin: 0;
  padding: 0;
}

.room-changes a {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.9375rem;
}

/* --- my rooms -------------------------------------------------------------------------------------- */

.text .rooms-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.text .room-card {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.text .room-card-plain {
  margin-top: 28px;
  background: var(--soft);
  border-color: transparent;
}

.text .room-card-plain .room-card-status {
  margin-top: 10px;
}

.room-card-head {
  display: flex;
  gap: 14px;
  align-items: center;
}

.room-thumb {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  background: var(--soft);
  object-fit: cover;
}

.text.acct .room-card-name {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.text .room-card-price {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.text .room-card-status {
  margin: 16px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.status-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 8px;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
}

.status-chip::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
}

.status-published .status-chip {
  background: #e7f1e3;
  color: #1d4a12; /* 9 to 1 on its ground */
}

.status-published .status-chip::before {
  background: var(--accent);
}

.status-pending .status-chip::before,
.status-escalated .status-chip::before,
.status-review .status-chip::before {
  background: #b26a00;
}

.status-rejected .status-chip {
  background: #fdeeee;
  color: #6f0d10;
}

.status-rejected .status-chip::before {
  background: #a4161a;
}

.text .room-card-why,
.text .room-card-change,
.text .room-card-note {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.text .room-card-note {
  color: var(--ink-2);
}

.text .room-card-change {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  font-weight: 600;
}

.room-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.room-card-actions form {
  margin: 0;
}

.text .room-card-actions .button {
  min-height: 48px;
  margin: 0;
  padding: 8px 20px;
}

.text .room-card-actions .button-quiet {
  margin-left: auto;
  padding: 8px 10px;
}

.rooms-empty {
  margin-top: 28px;
  padding: 32px 24px;
  border-radius: 28px;
  background: var(--soft);
}

.text .rooms-empty-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.text .rooms-empty p + p {
  margin-top: 12px;
  color: var(--ink-2);
}

.text .rooms-empty .button {
  margin-top: 12px;
}

.text .rooms-more {
  margin-top: 16px;
}

.text.acct .rooms-closed-title {
  margin-top: 44px;
  font-size: 1.125rem;
}

.text .rooms-closed {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.text .rooms-closed li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  justify-content: space-between;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}

.rooms-closed-name {
  font-weight: 600;
}

.rooms-closed-status {
  color: var(--ink-2);
}

/* --- a page for when something went wrong ------------------------------------------------------- */

.acct-oops {
  padding-top: 12px;
}

.text .oops-number {
  margin: 0 0 4px;
  color: #d9d7d0;
  font-family: var(--display);
  font-size: clamp(4.5rem, 30vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.acct-oops .button {
  margin-top: 28px;
}

/* --- wider than a phone ---------------------------------------------------------------------------- */

@media (min-width: 640px) {
  .text.acct {
    padding-top: 56px;
  }

  .acct-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .auth-photo {
    height: 220px;
  }

  .auth-photo figcaption {
    left: 26px;
    bottom: 22px;
    font-size: 1.75rem;
  }

  .text .photo-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .text .room-phone .photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (min-width: 980px) {
  .text.acct {
    padding-top: 72px;
    padding-bottom: 112px;
  }

  .auth {
    grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
    gap: 88px;
    align-items: start;
  }

  .auth-form {
    padding-top: 40px;
  }

  .auth-photo {
    position: sticky;
    top: calc(var(--bar) + 32px);
    order: 0;
    height: min(680px, calc(100vh - var(--bar) - 72px));
    min-height: 420px;
    border-radius: 32px;
  }

  .auth-photo img {
    object-position: 50% 50%;
  }

  .auth-photo figcaption {
    left: 40px;
    right: 40px;
    bottom: 36px;
    font-size: 2.75rem;
    line-height: 1.04;
  }

  .auth-photo figcaption span {
    display: block;
  }

  /* My rooms has more to show: two cards beside each other. */
  .acct-col:has(#my-rooms) {
    max-width: 1000px;
  }

  .text .rooms-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .text .rooms-more .acct-wide,
  .rooms-empty .acct-wide {
    width: auto;
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acct-tile,
  .field .choice span,
  .field input,
  .field textarea {
    transition: none;
  }
}

@media (forced-colors: active) {
  .field input,
  .field textarea,
  .field .choice span,
  .room-card,
  .acct-check {
    border: 1px solid CanvasText;
  }

  .field .choice input:checked + span {
    border-width: 3px;
    background: Highlight;
    color: HighlightText;
  }

  .text .steps .step-now {
    border-top-color: Highlight;
  }
}

/* A field that gets the focus (the first refused one, when a form comes back) is brought into
   the window with room above it for the bar that stays and under it for its sentence. */
.field input,
.field textarea,
fieldset.choices {
  scroll-margin: 96px 0 148px;
}

/* A question with more than four choices (the cities) stands in three rows or more on a phone,
   and its sentence comes under the last row: the first choice, which gets the focus, keeps as
   much room under it as there are rows of two (a choice is 56px high, 10px apart). */
.choice-row:has(.choice:nth-child(5)) input {
  scroll-margin-bottom: 216px;
}

.choice-row:has(.choice:nth-child(7)) input {
  scroll-margin-bottom: 282px;
}

.choice-row:has(.choice:nth-child(9)) input {
  scroll-margin-bottom: 348px;
}

/* --- logging in through a provider, and the small helps of the login form ------------------------ */

.providers {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.text .providers .provider {
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  margin: 0;
}

.provider-mark {
  flex: none;
  width: 24px;
  height: 24px;
}

.text .providers + .acct-or {
  margin: 22px 0 0;
}

.acct-or + .acct-form {
  margin-top: 18px;
}

/* "Toon wachtwoord": added by the script, under its field at the right. */
.pw-toggle {
  justify-self: end;
  min-height: 44px;
  margin: -4px 0 -8px;
  padding: 8px 0 8px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

.text .field-link {
  margin: 0;
  font-size: 0.9375rem;
}

.field-link a {
  display: inline-block;
  padding: 10px 0;
  color: var(--ink);
  font-weight: 600;
}

.text .acct-other {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}

/* With the script: "Wachtwoord vergeten?" and "Toon wachtwoord" share one line under the field. */
.text .pw-toggle + .field-link {
  width: fit-content;
  margin-top: -52px;
}

/* With very large letters (the reader's own text size) a long word breaks instead of pushing
   the page wide. */
.text.acct h1,
.text.acct h2,
.acct .button,
.acct label,
.acct legend {
  overflow-wrap: anywhere;
}

.acct .button {
  white-space: normal;
}

/* --- two sides: the bar of the portal, the two cards, the seeker's pages ----------------------- */

/* The side one is in, in the bar and in the menu: a small filled label in front of its links. */
.bar-links a.bar-side,
.bar-end a.bar-side,
.menu-links a.bar-side {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.bar-links.bar-portal {
  align-items: center;
  gap: 28px;
}

.bar-end a.bar-side {
  text-decoration: none;
}

@media (min-width: 1120px) {
  .bar-end a.bar-side-phone {
    display: none; /* the links, with the side in front of them, are in the bar itself */
  }
}

.bar-switch-form {
  display: contents;
}

.bar-switch {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.bar-switch:hover {
  border-color: var(--ink);
  background: var(--soft);
}

.menu-links a.bar-side {
  justify-self: start;
  margin: 6px 14px 4px;
  background: #ffffff;
  color: var(--ink);
}

.menu-links a.bar-side:hover {
  background: #ffffff;
  opacity: 0.85;
}

.menu-links .bar-switch {
  width: 100%;
  min-height: 48px;
  margin-top: 6px;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-family: var(--display);
  font-size: 0.875rem;
  text-align: left;
}

.menu-links .bar-switch:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

/* A tile that is a button (the two cards of "which side", a side that is switched on). */
form.side-form {
  display: contents;
}

button.acct-tile {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.side-cards {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.side-cards .acct-tile {
  min-height: 188px;
  padding: 26px 68px 26px 24px;
}

.side-cards .acct-tile-title {
  font-size: clamp(1.5rem, 6.4vw, 1.875rem);
}

.side-cards .acct-tile-note {
  max-width: 34ch;
  font-size: 1rem;
}

/* What a tile says about how things stand: a line with a dot, under its title. */
.acct-tile-state {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.acct-tile-state::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.4;
}

.acct-tile .acct-tile-state.is-on,
.acct-tile .acct-tile-state.is-off {
  opacity: 1; /* a state that is said is not a quiet note */
}

.acct-tile .acct-tile-state.is-on::before {
  background: #5fd24a;
  opacity: 1;
}

.acct-tile-light .acct-tile-state.is-on::before {
  background: #3a9a25;
}

.acct-tile .acct-tile-state.is-off::before {
  background: #e08a2e;
  opacity: 1;
}

/* How one thing stands, in a section: a short state in bold with its dot, and the rest of the
   sentence in the ordinary letter beside it. */
.text .state-line {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 12px;
}

.state-line::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--ink-3);
}

.state-line.is-on::before {
  background: #3a9a25;
}

.state-line.is-off::before {
  background: #e08a2e;
}

.state-line strong {
  font-weight: 700;
}

.seek-tiles .acct-tile {
  min-height: 132px;
}

.text .seek-respond {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The two sides on the account page: a row each, with its state and one way in. */
.side-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.side-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
}

.side-row-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.text .side-row .acct-state {
  grid-column: 1;
  margin: 0;
  font-size: 0.9375rem;
}

.side-row .button,
.side-row form {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.text .side-row .button {
  min-height: 44px;
  margin: 0;
  padding: 0 18px;
}

@media (min-width: 720px) {
  .side-cards,
  .seek-tiles {
    grid-template-columns: 1fr 1fr;
  }

  .seek-tiles .acct-tile:first-child {
    grid-column: 1 / -1;
  }
}

/* --- messages: the list, one conversation, the first response -------------------------------------
   The same language as "Mijn kamers": white cards with a hairline, the soft ground for what asks
   for attention, near-black for one's own words, one green accent for what is new. Designed at
   390 pixels: a row is one target of at least 56 px, a bubble never wider than the column. */

.talk-group {
  margin-top: 36px;
}

.text.acct .talk-group h2 {
  margin: 0 0 14px;
  font-size: 1.125rem;
}

.text .talk-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text .talk-list li {
  margin: 0;
  padding: 0;
}

.text .talk-row {
  display: grid;
  gap: 6px;
  min-height: 56px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.text .talk-row:hover {
  border-color: var(--line-strong);
}

.text .talk-row:active {
  transform: scale(0.99);
}

.text .talk-row.is-new {
  border-color: transparent;
  background: var(--soft);
}

.talk-room {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.talk-who {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.talk-new,
.talk-closed {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.talk-new {
  background: #e7f1e3;
  color: #1d4a12; /* 9 to 1 on its ground */
}

.is-new .talk-new {
  background: var(--accent);
  color: var(--on-accent);
}

.talk-closed {
  background: var(--soft);
  color: var(--ink-2);
}

.talk-snippet {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.is-new .talk-snippet {
  color: var(--ink);
}

.talk-when {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.text .talk-private {
  margin-top: 28px;
}

.text .talk-back {
  margin: 0 0 4px;
}

.text .talk-room-card {
  margin-top: 24px;
}

.text .talk-about {
  margin: 14px 0 0;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.text .talk {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.text .talk .msg {
  max-width: 88%;
  margin: 0;
  padding: 0;
}

.msg-mine {
  justify-self: end;
}

.msg-theirs {
  justify-self: start;
}

.text .msg-who {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.msg-mine .msg-who {
  text-align: right;
}

.msg-who time {
  margin-left: 6px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.msg-text {
  padding: 14px 18px;
  border-radius: 22px;
  background: var(--soft);
  font-size: 1rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap; /* the line breaks somebody typed */
}

.msg-theirs .msg-text {
  border-bottom-left-radius: 8px;
}

.msg-mine .msg-text {
  border-bottom-right-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}

.text .talk-ended {
  margin-top: 20px;
}

.acct-form.talk-form {
  margin-top: 28px;
}

/* The place above a text field for one helper button and its sentence. No room while it is empty. */
.helper-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
}

.helper-slot:empty {
  display: none;
}

.helper-note {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.45;
}

.text .check-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 22px;
}

.text .check-signals {
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}

.text .check-signals li {
  margin: 0;
  padding: 16px 0; /* under it too: the last line of a signal does not lie on the line of the next */
  border-top: 1px solid var(--line);
}

.text .check-signals h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

.check-quote {
  margin: 10px 0;
  padding: 0 0 0 14px;
  border-left: 2px solid var(--line);
  overflow-wrap: anywhere; /* a quote is somebody else's text: a long address must not push the page wide */
}

.check-quote p {
  margin: 0;
}

.talk-more {
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.talk-more summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.talk-more summary:hover {
  color: var(--ink);
}

.talk-more summary {
  justify-content: space-between;
  list-style: none;
}

.talk-more summary::-webkit-details-marker {
  display: none;
}

.talk-more summary::after {
  content: "+";
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 30px;
  text-align: center;
}

.talk-more[open] summary::after {
  content: "\2212";
}

.talk-form textarea {
  min-height: 7.5rem;
}

.talk-form textarea[minlength] {
  min-height: 19rem; /* a first response: the whole draft of the letter is in sight on a phone */
}

.talk-more .acct-form {
  margin-top: 4px;
}

.talk-more .acct-form + .acct-form {
  margin-top: 20px;
}

.respond-facts {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.text .respond-who {
  margin: 0 0 18px;
}

@media (min-width: 640px) {
  .text .talk .msg {
    max-width: 78%;
  }

  .text .talk-row {
    grid-template-columns: 1fr auto;
    column-gap: 20px;
    padding: 20px 24px;
  }

  .talk-room,
  .talk-who,
  .talk-snippet {
    grid-column: 1;
  }

  .talk-when {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
}

/* --- what fits: the lists of the site with this account's search applied ------------------------------ */

.text .seek-fit {
  margin-top: 16px;
}

.text .fit-list {
  margin: 8px 0 24px;
  padding: 0;
  list-style: none;
}

.text .fit-list .room {
  padding: 16px 0 18px;
}

.text .fit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 12px 0 0;
}

.text .fit-source {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.text .fit-row .button {
  min-height: 44px;
  padding: 0 20px;
  font-size: 0.9375rem;
}

.text .fit-warning {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fbeeee;
  color: #8a1f1f;
  font-size: 0.875rem;
}

/* --- my homes: the question about a public page, asked once ------------------------------------------- */

.room-card-ask {
  margin-top: 16px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  background: var(--soft);
}

.text .room-card-ask p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.text .room-card-ask .room-card-ask-title {
  margin-bottom: 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.room-card-ask .room-card-actions {
  margin-top: 14px;
}

.room-card-later {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-top: 10px;
}

.room-card-later form {
  margin: 0;
}

.text .room-card-later .button {
  min-height: 44px;
  margin: 0;
  padding: 6px 18px;
  font-size: 0.875rem;
}

.text .room-public {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--ink);
}

/* One box over the whole width: where the alerts of a first search go. */
.field .choice-wide {
  grid-column: 1 / -1;
}

.field .choice-wide span {
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}

/* --- the account as an app (11 October 2026) -----------------------------------------------------
   A page of somebody who has chosen a side (body.app): the name and the two sides at the top, the
   places of the side as tabs at the foot of a phone and down the left of a wider screen, the page
   itself on the site's soft ground in white cards. The letters, the colours and the round buttons
   are the site's; nothing here needs script. */

body.app {
  background: var(--soft);
  padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); /* room for the tabs */
}

.i {
  width: 1.375rem;
  height: 1.375rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The top: the name, and the two sides side by side. */
.app-bar {
  border-bottom: 1px solid var(--line);
}

.app-bar .bar-in {
  flex-wrap: nowrap;
  gap: 12px;
}

.app-sides {
  display: inline-flex;
  flex: none;
  gap: 2px;
  margin-left: auto;
  padding: 3px;
  border-radius: 999px;
  background: var(--soft);
}

.app-sides .seg,
.app-sides .seg.bar-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.app-sides .seg.is-on {
  background: var(--ink);
  color: #ffffff;
}

.app-sides .seg.bar-switch:hover {
  background: rgba(20, 20, 20, 0.08);
  color: var(--ink);
}

/* The places of this side: on a phone a bar that stays at the foot of the window. */
.app-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 6px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
}

.app-nav-main {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  max-width: 560px;
  margin: 0 auto;
}

.app-nav-more {
  display: none; /* on a phone the lesser places are reached from the overview */
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 6px 2px 2px;
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.tab .i {
  width: 1.5rem;
  height: 1.5rem;
}

.tab[aria-current="page"] {
  color: var(--ink);
  font-weight: 800;
}

.tab[aria-current="page"] .i {
  stroke-width: 2.1;
}

/* The place one is in: a short green line over it, as well as the heavier letter. */
.tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -7px;
  width: 28px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--accent);
}

.tab-count {
  position: absolute;
  top: 2px;
  left: 50%;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 800;
}

/* The page itself. */
body.app .text.acct {
  padding: 22px var(--gutter) 28px;
}

body.app .acct-col {
  max-width: 640px;
}

body.app .text.acct h1 {
  margin: 0;
  font-size: 1.625rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

body.app .text.acct .lead {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* One subject per card. */
body.app .acct-section {
  margin-top: 14px;
  padding: 18px 18px 20px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
}

body.app .acct-head + .acct-section,
body.app .acct-head + .acct-notice,
body.app .acct-head + .acct-error {
  margin-top: 18px;
}

body.app .text.acct .acct-section h2 {
  margin-top: 0;
  font-size: 1rem;
}

body.app .text .seek-respond {
  margin-top: 18px;
  border-radius: 22px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.875rem;
}

.app-foot {
  max-width: 640px;
  margin: 0 auto;
  padding: 4px var(--gutter) 22px;
  color: var(--ink-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

.app-foot p {
  margin: 0;
}

.app-foot-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 14px;
}

.app-foot-links > a {
  display: inline-block;
  padding: 8px 0;
  color: var(--ink-2);
}

.app-foot .lang summary {
  padding-left: 0;
  color: var(--ink-2);
  font-size: 0.75rem;
}

.app-foot .lang summary:hover,
.app-foot .lang[open] summary {
  background: transparent;
  color: var(--ink);
}

/* --- the overview: the dark card, the newest homes, a card for each thing of one's own -------- */

.hero-card {
  position: relative;
  display: block;
  margin-top: 18px;
  padding: 20px 20px 18px;
  border-radius: 22px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
}

/* The one accent of the site, as a disc that runs off the corner. */
.hero-card::after {
  content: "";
  position: absolute;
  top: -46px;
  right: -46px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-card > * {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-line {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-top: 8px;
}

.hero-number {
  font-family: var(--display);
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-words {
  display: block;
  max-width: 12.5em;
  padding-bottom: 4px;
  font-size: 1rem;
  line-height: 1.3;
}

.hero-start .hero-words {
  max-width: 15em;
  margin-top: 10px;
  font-size: 1.0625rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-cta .i {
  width: 1rem;
  height: 1rem;
  stroke-width: 2.2;
}

.text.acct .app-h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 2px 10px;
  font-size: 0.9375rem;
}

.app-h2 a {
  padding: 6px 0;
  color: var(--ink-2);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0;
}

/* A list in one card: a row per home, a line between them. */
.group {
  border-radius: 22px;
  background: var(--paper);
  overflow: hidden;
}

.row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 11px 14px 11px 16px;
  color: inherit;
  text-decoration: none;
}

.row + .row {
  border-top: 1px solid var(--line);
}

a.row:hover,
.stat:hover {
  background: rgba(20, 20, 20, 0.03);
}

.tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  background: var(--soft);
  color: var(--ink);
}

.tile-on {
  background: #e6f0e1;
  color: var(--accent);
}

.row-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
}

.row-note {
  display: block;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 0.84375rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-end {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  white-space: nowrap;
}

.row-end .i {
  width: 1.125rem;
  height: 1.125rem;
}

.row-price {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 700;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e6f0e1;
  color: var(--accent-deep);
  font-family: var(--sans);
  font-size: 0.71875rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge-wait {
  background: #fbf0df;
  color: #8a4a06;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 132px;
  padding: 14px 14px 14px;
  border-radius: 22px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-top > .i {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink-3);
}

.stat-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
}

/* How the thing stands: a dot and one sentence, green when it is in order. */
.stat-note {
  display: block;
  position: relative;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  line-height: 1.35;
}

.stat-note.is-on,
.stat-note.is-off {
  padding-left: 15px;
}

.stat-note.is-on::before,
.stat-note.is-off::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3a9a25;
}

.stat-note.is-off::before {
  background: #e08a2e;
}

/* --- a wider screen: the tabs down the left side ------------------------------------------------ */

@media (min-width: 1000px) {
  body.app {
    padding-bottom: 0;
    padding-left: 264px;
  }

  .app-bar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 264px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .app-bar .bar-in {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 100%;
    max-width: none;
    padding: 26px 16px 18px;
  }

  .app-bar .brand {
    padding: 0 12px;
    font-size: 1.3125rem;
  }

  .app-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 24px 0 16px;
  }

  .app-nav {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .app-nav-main {
    display: block;
    max-width: none;
    margin: 0;
  }

  .app-nav-more {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .tab {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: 0.9375rem;
    text-align: left;
  }

  .tab .i {
    width: 1.375rem;
    height: 1.375rem;
  }

  .tab:hover {
    background: rgba(20, 20, 20, 0.04);
    color: var(--ink);
  }

  .tab[aria-current="page"] {
    background: var(--soft);
  }

  .tab[aria-current="page"]::before {
    display: none;
  }

  .tab-count {
    position: static;
    margin-left: auto;
  }

  .app-nav-lang {
    margin-top: auto;
    padding: 12px 4px 0;
  }

  body.app .text.acct {
    max-width: none;
    padding: 36px 40px 28px;
  }

  body.app .acct-col {
    margin: 0;
  }

  body.app .text.acct h1 {
    font-size: 2rem;
  }

  .app-foot {
    max-width: none;
    margin: 0;
    padding: 0 40px 24px;
  }

  /* The overview in two columns: the homes on the left, one's own things beside them. */
  body.app .acct-col-wide {
    max-width: 980px;
  }

  .ovw {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .ovw-side .app-h2 {
    margin-top: 18px;
  }

  .hero-number {
    font-size: 4.75rem;
  }
}

/* --- the app, step 2: settings with switches, homes as cards, forms in cards -------------------- */

/* A word above a group of cards. */
.text .group-label {
  margin: 22px 4px 8px;
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.app .group-label + .acct-section,
body.app .group-label + div > .acct-section {
  margin-top: 0;
}

/* A card with a drawing in front of its title. */
body.app .acct-section.has-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  align-items: center;
}

body.app .acct-section.has-tile > * {
  grid-column: 1 / -1;
}

body.app .acct-section.has-tile > .tile {
  grid-column: 1;
  grid-row: 1;
}

body.app .text.acct .acct-section.has-tile > h2 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
}

/* A setting: the drawing, its name with how it stands under it, and the switch. */
body.app .acct-section.is-set {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  padding: 13px 10px 13px 16px;
}

body.app .acct-section.is-set + .acct-section.is-set {
  margin-top: 8px;
}

body.app .acct-section.is-set > .tile {
  grid-row: 1 / span 2;
}

body.app .text.acct .acct-section.is-set > h2 {
  align-self: end;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
}

body.app .acct-section.is-set > .state-line {
  display: block; /* (a state line is a dot and its words in two columns; here the switch is the dot) */
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 1px 0 0;
  color: var(--ink-2);
  font-size: 0.84375rem;
  line-height: 1.4;
}

body.app .acct-section.is-set > .state-line::before {
  display: none; /* the switch says whether it is on */
}

body.app .acct-section.is-set > .set-switch {
  grid-column: 3;
  grid-row: 1 / span 2;
  display: block;
  margin: 0;
}

/* The switch: a button that posts. As large as a thumb needs; the drawing inside it is smaller. */
.switch {
  position: relative;
  display: block;
  width: 58px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.switch::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 4px;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #d6d3cb;
  transition: background-color 0.15s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(20, 20, 20, 0.3);
  transition: transform 0.15s ease;
}

.switch.is-on::before {
  background: var(--accent);
}

.switch.is-on::after {
  transform: translateX(20px);
}

/* The homes that fit: a card per home. */
.text .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.84375rem;
  font-weight: 600;
  text-decoration: none;
}

.chip .i {
  width: 1rem;
  height: 1rem;
}

.badge-quiet {
  background: var(--soft);
  color: var(--ink-2);
}

body.app .text .fit-list {
  display: grid;
  gap: 12px;
  margin: 14px 0 8px;
  border: 0;
}

body.app .text .fit-list .room {
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
}

body.app .fit-list .room-link {
  margin: 0;
  padding: 0;
  border-radius: 0;
}

body.app .fit-list a.room-link:hover {
  background: transparent;
}

.text .fit-when {
  order: -1; /* above the home */
  margin: 0 0 8px;
}

body.app .fit-list .room-head {
  align-items: flex-start;
}

body.app .fit-list .room-name {
  font-family: var(--display);
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}

body.app .fit-list .room-kind {
  display: block;
  margin: 0 0 3px;
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.app .fit-list .room-amount {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.app .fit-list .room-per {
  display: block;
  font-size: 0.75rem;
}

/* The facts as small labels. */
body.app .fit-list .facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 11px 0 0;
  clip-path: none;
}

body.app .fit-list .facts dd {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.78125rem;
  font-weight: 600;
}

body.app .fit-list .facts dd::before {
  content: none;
}

body.app .fit-list .room-source {
  align-items: center;
  margin-top: 12px;
}

/* Where the home leads: a dark button at the right of its source. */
body.app .fit-list a.room-link .room-go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.84375rem;
  font-weight: 700;
}

body.app .text .fit-row {
  margin-top: 10px;
}

body.app .text .fit-letter a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.84375rem;
  font-weight: 700;
  text-decoration: none;
}

body.app .text .fit-row .button {
  width: 100%;
  justify-content: center;
}

/* A form of questions: each question a card, and the button that saves stays in sight. */
body.app .room-form {
  gap: 12px;
  margin-top: 18px;
}

body.app .room-form > .field {
  margin: 0;
  padding: 16px 16px 18px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
}

body.app .room-form > .acct-submit {
  position: sticky;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px)); /* over the tabs */
  z-index: 5;
  box-shadow: 0 8px 22px rgba(20, 20, 20, 0.22);
}

@media (min-width: 1000px) {
  body.app .room-form > .acct-submit {
    bottom: 18px;
  }
}

/* A question with choices in a card: its words stand inside the card, not on its edge. */
body.app .room-form > fieldset.field > legend {
  float: left;
  width: 100%;
  margin: 0 0 10px;
}

body.app .room-form > fieldset.field > legend + * {
  clear: both;
}

body.app .room-form .choice span {
  font-size: 0.9375rem;
}

/* A button in a line of other ways on keeps the letters and the room of a button (until 11
   October 2026 the dark one stood there with dark letters: a black shape without words). */
.text .acct-alt a.button {
  display: inline-flex;
  padding: 8px 24px;
}

.text .acct-alt a.button-dark {
  color: var(--paper);
}

/* How the subscription stands: one card. */
body.app .pay-state > p {
  margin: 12px 0 0;
}

body.app .text .pay-manage-link {
  margin-top: 28px;
}

/* --- the app, step 3: the messages ---------------------------------------------------------------- */

body.app .talk-group {
  margin-top: 22px;
}

body.app .text.acct .talk-group h2 {
  margin: 0 2px 10px;
  font-size: 0.9375rem;
}

/* A conversation in the list: its drawing, what it is about, and the last words. */
body.app .text .talk-row {
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  row-gap: 3px;
  padding: 14px 16px;
  border: 0;
  border-radius: 22px;
}

body.app .talk-row > .tile {
  grid-row: 1 / span 4;
  align-self: start;
}

body.app .talk-row > :not(.tile) {
  grid-column: 2;
}

body.app .text .talk-row.is-new {
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--accent);
}

body.app .talk-room {
  font-size: 0.9375rem;
}

body.app .talk-who,
body.app .talk-snippet {
  font-size: 0.875rem;
}

/* One conversation: the home it is about in a card, their words in white, one's own in black. */
body.app .text .talk-room-card {
  margin-top: 14px;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
}

body.app .text .talk {
  gap: 12px;
  margin-top: 20px;
}

body.app .msg-theirs .msg-text {
  background: var(--paper);
}

body.app .msg-text {
  padding: 12px 16px;
  font-size: 0.9375rem;
}

body.app .text .talk-back {
  margin: 0 0 10px;
}

/* --- the app, steps 4 and 5: the homes one lets, and the account page ------------------------------ */

/* A home one lets: a card without a line around it, on the soft ground. */
body.app .text .room-card {
  border: 0;
  border-radius: 22px;
}

/* The photographs of a home: the place where one is added is a card too. */
body.app .photo-form > .field {
  padding: 16px 16px 18px;
  border-radius: 22px;
  background: var(--paper);
}

body.app .text .rooms-empty {
  border-radius: 22px;
  background: var(--paper);
}

/* The lesser places on the account page: a row each. */
body.app .acct-places .row-title {
  white-space: normal;
}

/* A sentence under the name of a setting may run over more than one line. */
body.app .acct-section.is-set > .state-line span {
  overflow-wrap: anywhere;
}

/* Homes of other sites that fit and are withheld while no period runs: how many, and the way to the prices. */
.text .fit-gate {
  margin: 14px 0 0;
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
}

.text .fit-gate p {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.text .fit-gate p:last-child {
  margin-bottom: 0;
}

.text .fit-gate .fit-gate-count {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-note {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
}
/* Keep the first registration action in view on a phone; other auth pages keep their photo. */
@media (max-width: 699px) {
  .auth-signup .auth-photo { display: none; }
}
