/* LadyLady admin panel (2026-10-30): dark, pink accent, after the owner's mock-ups (archive/images/admin-mock-*.jpg).
   Phone first: top bar + bottom tabs; from 1000px the tabs become a column on the left. Long texts wrap. */
@font-face {
  font-family: "Poppins";
  src: url("../assets/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../assets/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --lla-bg: #0f0d10;
  --lla-card: #1a171b;
  --lla-line: #2c282e;
  --lla-text: #f4eff3;
  --lla-muted: #a39ba3;
  --lla-pink: #ff5c8a;
  --lla-pink-soft: rgba(255, 92, 138, 0.14);
  --lla-green: #4cd27a;
  --lla-red: #ff6b6b;
  --lla-orange: #ffa94d;
  --lla-radius: 16px;
  --lla-tabs: 64px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

/* Hidden means hidden, whatever the element's own display (buttons, chips, rows). */
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  overflow-x: clip; /* nothing may make the page slide sideways under the finger */
  background: var(--lla-bg);
  color: var(--lla-text);
  font: 400 15px/1.5 "Poppins", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  padding-bottom: calc(var(--lla-tabs) + env(safe-area-inset-bottom) + 24px);
}

body.lla-plain {
  padding-bottom: 24px;
}

a {
  color: var(--lla-pink);
}

button {
  font: inherit;
}

/* Signed-in pages stay hidden until the server says who is there (js/admin.js). */
.lla-guarded {
  visibility: hidden;
}

.lla-top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  justify-content: center;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  background: rgba(15, 13, 16, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--lla-line);
}

/* Two message icons on the right of the top bar (owner 2026-10-31): red = urgent, orange = without priority. */
.lla-top__actions {
  position: absolute;
  top: env(safe-area-inset-top);
  bottom: 0;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lla-inbox {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.lla-inbox svg {
  width: 24px;
  height: 24px;
}

.lla-inbox--urgent {
  color: var(--lla-red);
}

.lla-inbox--other {
  color: var(--lla-orange);
}

.lla-inbox:hover,
.lla-inbox:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.lla-inbox__badge {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--lla-bg);
  border-radius: 10px;
  color: #1a0a06;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.lla-inbox--urgent .lla-inbox__badge {
  background: var(--lla-red);
}

.lla-inbox--other .lla-inbox__badge {
  background: var(--lla-orange);
}

.lla-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--lla-muted);
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.lla-logo img {
  width: 74px;
  height: auto;
}

.lla-main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px;
}

.lla-title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lla-lead {
  margin: 0 0 20px;
  color: var(--lla-muted);
  overflow-wrap: anywhere;
}

.lla-card {
  background: var(--lla-card);
  border: 1px solid var(--lla-line);
  border-radius: var(--lla-radius);
  padding: 18px;
  margin-bottom: 14px;
}

.lla-empty {
  color: var(--lla-muted);
  text-align: center;
  padding: 36px 18px;
}

.lla-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--lla-pink);
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
}

.lla-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.lla-button--ghost {
  background: transparent;
  border: 1px solid var(--lla-line);
  color: var(--lla-text);
}

.lla-error {
  margin: 14px 0 0;
  color: var(--lla-red);
  overflow-wrap: anywhere;
}

.lla-error:empty {
  display: none;
}

.lla-field {
  display: block;
  margin-bottom: 16px;
}

.lla-field span {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.lla-field small {
  display: block;
  margin-top: 6px;
  color: var(--lla-muted);
}

.lla-field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--lla-line);
  border-radius: 12px;
  background: var(--lla-bg);
  color: var(--lla-text);
  font: inherit;
  font-size: 16px;
}

.lla-field input:focus {
  outline: 2px solid var(--lla-pink);
  outline-offset: 1px;
}

/* Sign-in and device setup: one card in the middle of the screen. */
.lla-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.lla-gate .lla-card {
  width: 100%;
  max-width: 420px;
  padding: 26px 22px;
}

.lla-gate .lla-logo {
  margin-bottom: 24px;
}

.lla-gate .lla-logo img {
  width: 120px;
}

.lla-note {
  margin: 18px 0 0;
  color: var(--lla-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

/* Lists of rows (More, devices, activity log). */
.lla-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  background: var(--lla-card);
  border: 1px solid var(--lla-line);
  border-radius: var(--lla-radius);
  overflow: hidden;
}

.lla-list > li + li {
  border-top: 1px solid var(--lla-line);
}

.lla-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 0;
  background: none;
  color: var(--lla-text);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lla-row svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--lla-pink);
}

.lla-row__text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lla-row__chevron {
  color: var(--lla-muted);
}

.lla-row--danger,
.lla-row--danger svg {
  color: var(--lla-red);
}

.lla-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
}

.lla-item__main {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.lla-item__title {
  font-weight: 600;
}

.lla-item__meta {
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lla-pink-soft);
  color: var(--lla-pink);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}

.lla-small-button {
  flex: none;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--lla-line);
  border-radius: 10px;
  background: none;
  color: var(--lla-red);
  cursor: pointer;
}

.lla-link-box {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--lla-pink);
  border-radius: 12px;
  word-break: break-all;
  font-size: 13px;
}

.lla-link-box p {
  margin: 0 0 10px;
  word-break: normal;
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--lla-muted);
}

.lla-link-box code {
  display: block;
  margin-bottom: 12px;
  color: var(--lla-text);
}

/* Bottom tabs. */
.lla-tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  padding: 6px 4px calc(env(safe-area-inset-bottom) + 6px);
  background: rgba(20, 17, 21, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--lla-line);
}

.lla-tab {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 2px;
  color: var(--lla-muted);
  text-decoration: none;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.lla-tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lla-tab svg {
  width: 24px;
  height: 24px;
}

/* Open tasks on the Moderation tab: a pink circle with the number (phone: on the icon; computer: at the row's end). */
.lla-tab {
  position: relative;
}

.lla-tab__count {
  position: absolute;
  top: 0;
  left: calc(50% + 4px);
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--lla-bg);
  border-radius: 10px;
  background: var(--lla-pink);
  color: #2a0710;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

.lla-tab__count.is-late {
  box-shadow: 0 0 0 2px var(--lla-red);
}

body[data-tab="dashboard"] .lla-tab[data-tab="dashboard"],
body[data-tab="moderation"] .lla-tab[data-tab="moderation"],
body[data-tab="advertisers"] .lla-tab[data-tab="advertisers"],
body[data-tab="ai"] .lla-tab[data-tab="ai"],
body[data-tab="clients"] .lla-tab[data-tab="clients"],
body[data-tab="more"] .lla-tab[data-tab="more"],
body[data-tab="support"] .lla-tab[data-tab="support"] {
  color: var(--lla-pink);
}

/* Computer: tabs as a column on the left, content wider. */
@media (min-width: 1000px) {
  body {
    padding-bottom: 24px;
    padding-left: 220px;
  }

  body.lla-plain {
    padding-left: 0;
  }

  .lla-top {
    justify-content: flex-start;
    padding-left: 24px;
  }

  .lla-tabs {
    top: 0;
    right: auto;
    width: 220px;
    flex-direction: column;
    gap: 4px;
    padding: 96px 12px 24px;
    border-top: 0;
    border-right: 1px solid var(--lla-line);
  }

  .lla-tab {
    flex: none;
    flex-direction: row;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 15px;
  }

  .lla-tab span {
    white-space: normal;
  }

  .lla-tab__count {
    position: static;
    margin-left: auto;
    border: 0;
    line-height: 20px;
  }

  body[data-tab="dashboard"] .lla-tab[data-tab="dashboard"],
  body[data-tab="moderation"] .lla-tab[data-tab="moderation"],
  body[data-tab="advertisers"] .lla-tab[data-tab="advertisers"],
  body[data-tab="ai"] .lla-tab[data-tab="ai"],
  body[data-tab="clients"] .lla-tab[data-tab="clients"],
  body[data-tab="more"] .lla-tab[data-tab="more"],
  body[data-tab="support"] .lla-tab[data-tab="support"] {
    background: var(--lla-pink-soft);
  }

  .lla-main {
    max-width: 1000px;
    padding: 32px 40px;
  }

  .lla-button {
    width: auto;
  }

  .lla-gate .lla-button {
    width: 100%;
  }
}

/* A quiet text button under a form (sign-in: another e-mail, a security key instead). */
.lla-link-button {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--lla-muted);
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
  overflow-wrap: anywhere;
}

/* ---------- Moderation (part 2) ---------- */
.lla-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
}

.lla-chip {
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--lla-line);
  border-radius: 999px;
  background: var(--lla-card);
  color: var(--lla-text);
  font-weight: 600;
  cursor: pointer;
}

.lla-chip[aria-selected="true"] {
  background: var(--lla-pink);
  border-color: var(--lla-pink);
  color: #fff;
}

.lla-queue {
  align-items: flex-start;
}

.lla-queue__photo {
  flex: none;
  width: 56px;
  height: 84px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--lla-line);
}

.lla-queue .lla-row__text {
  display: grid;
  gap: 2px;
}

.lla-item__meta.is-late {
  color: var(--lla-red);
  font-weight: 600;
}

.lla-back {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--lla-muted);
  text-decoration: none;
}

.lla-lead span {
  display: block;
}

.lla-ai {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--lla-pink-soft);
  color: var(--lla-text);
  overflow-wrap: anywhere;
}

.lla-subtitle {
  margin: 22px 0 10px;
  font-size: 18px;
  font-weight: 600;
}

.lla-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lla-photo {
  display: grid;
  align-content: start; /* a taller neighbour (its reason list open) must not stretch this card's rows */
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--lla-line);
  border-radius: 14px;
  background: var(--lla-card);
}

.lla-photo.is-rejected {
  border-color: var(--lla-red);
}

.lla-photo.is-live {
  border-color: var(--lla-green);
}

.lla-photo__open img {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 10px;
  object-fit: cover;
}

.lla-photo .lla-badge {
  justify-self: start;
  margin: 0;
}

.lla-photo__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.lla-photo__original {
  margin-left: auto;
  font-size: 13px;
}

.lla-small-button--ok {
  color: var(--lla-green);
}

.lla-select {
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 1px solid var(--lla-line);
  border-radius: 10px;
  background: var(--lla-bg);
  color: var(--lla-text);
  font: inherit;
  font-size: 14px;
}

.lla-video {
  display: block;
  width: 100%;
  max-width: 320px;
  max-height: 70vh;
  border-radius: 12px;
  background: #000;
}

.lla-muted {
  color: var(--lla-muted);
}

.lla-fields {
  display: grid;
  gap: 4px 16px;
  margin: 0;
}

.lla-fields dt {
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-fields dd {
  display: grid;
  gap: 2px;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.lla-decide {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.lla-part {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
}

.lla-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-weight: 600;
  cursor: pointer;
}

.lla-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--lla-pink);
}

.lla-check--small {
  font-weight: 400;
  font-size: 14px;
}

.lla-part__more {
  margin: 0 0 8px 30px;
}

.lla-textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--lla-line);
  border-radius: 10px;
  background: var(--lla-bg);
  color: var(--lla-text);
  font: inherit;
  font-size: 16px;
  resize: vertical;
}

.lla-done {
  margin: 20px 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(76, 210, 122, 0.12);
  color: var(--lla-green);
  font-weight: 600;
}

@media (min-width: 1000px) {
  .lla-fields {
    grid-template-columns: 220px 1fr;
  }

  .lla-fields dd {
    margin-bottom: 8px;
  }

  .lla-decide {
    display: flex;
    flex-wrap: wrap;
  }
}

/* ---------- Advertisers (part 4) ---------- */
a.lla-button {
  text-decoration: none;
}

.lla-button--danger {
  background: transparent;
  border: 1px solid var(--lla-red);
  color: var(--lla-red);
}

.lla-search {
  margin-bottom: 12px;
}

.lla-state--live {
  color: var(--lla-green);
}

.lla-state--review,
.lla-state--changes {
  color: #f5b14c;
}

.lla-state--hidden,
.lla-state--blocked {
  color: var(--lla-red);
}

.lla-badge.lla-state--live {
  background: rgba(76, 210, 122, 0.14);
}

.lla-badge.lla-state--hidden,
.lla-badge.lla-state--blocked {
  background: rgba(255, 107, 107, 0.14);
}

.lla-badge.lla-state--review,
.lla-badge.lla-state--changes {
  background: rgba(245, 177, 76, 0.14);
}

.lla-adv-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.lla-adv-head__photo {
  flex: none;
  width: 84px;
  height: 126px;
  border-radius: 12px;
  object-fit: cover;
}

.lla-adv-head__state {
  margin: 0 0 8px;
}

.lla-adv-head__state .lla-badge {
  margin-left: 0;
}

.lla-photos--small {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.lla-note {
  white-space: pre-line;
}

/* ---------- Dashboard (part 5) ---------- */
.lla-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.lla-tile {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--lla-line);
  border-radius: var(--lla-radius);
  background: var(--lla-card);
  color: var(--lla-text);
  text-decoration: none;
}

/* Dashboard → Advertisers: a wide tile with new and deleted accounts per period (owner 2026-10-31). */
.lla-tile--wide {
  grid-column: span 2;
  gap: 10px;
}

.lla-tile__top {
  display: grid;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}

.lla-periods {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.lla-periods th,
.lla-periods td {
  padding: 4px 4px;
  border-top: 1px solid var(--lla-line);
  text-align: right;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.lla-periods tr:first-child th {
  border-top: 0;
  color: var(--lla-muted);
}

.lla-periods th[scope="row"] {
  text-align: left;
  color: var(--lla-muted);
}

.lla-periods__name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lla-periods th:first-child {
  width: 34%;
}

.lla-periods svg {
  flex: none;
  width: 16px;
  height: 16px;
}

.lla-periods__new td {
  color: var(--lla-green);
}

.lla-periods__deleted svg {
  color: var(--lla-red);
}

.lla-periods__new svg {
  color: var(--lla-green);
}

.lla-tile.is-alert {
  border-color: var(--lla-red);
}

.lla-tile__value {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}

.lla-tile__label {
  color: var(--lla-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.lla-tile__note {
  color: var(--lla-green);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lla-tile.is-alert .lla-tile__note {
  color: var(--lla-red);
}

.lla-chart .lla-subtitle,
.lla-server .lla-subtitle,
.lla-pc .lla-subtitle,
.lla-dash-ads .lla-subtitle,
.lla-recent .lla-subtitle {
  margin-top: 0;
}

.lla-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lla-legend__key {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.lla-legend__key--ladies,
.lla-bars__part--ladies {
  background: #e8457a;
}

.lla-legend__key--clients,
.lla-bars__part--clients {
  background: #3d8fe6;
}

.lla-bars {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 140px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--lla-line);
}

.lla-bars__day {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.lla-bars__day:hover,
.lla-bars__day:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}

.lla-bars__stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  max-width: 22px;
  min-height: 0;
  margin: 0 auto;
}

.lla-bars__part {
  display: block;
  flex-basis: 0;
  min-height: 3px;
}

.lla-bars__part:first-child {
  border-radius: 4px 4px 0 0;
}

.lla-bars__date {
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  color: var(--lla-muted);
  font-size: 11px;
  white-space: nowrap;
}

.lla-bars__day:first-child .lla-bars__date {
  left: 0;
  transform: none;
}

.lla-bars__day:last-child .lla-bars__date {
  left: auto;
  right: 0;
  transform: none;
}

.lla-tip {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 13px;
}

.lla-table-view {
  margin-top: 12px;
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-table-view summary {
  cursor: pointer;
}

.lla-table-view table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  color: var(--lla-text);
}

.lla-table-view th,
.lla-table-view td {
  padding: 4px 6px;
  border-bottom: 1px solid var(--lla-line);
  text-align: right;
}

.lla-table-view th:first-child,
.lla-table-view td:first-child {
  text-align: left;
}

.lla-meters {
  display: grid;
  gap: 16px;
}

.lla-meter__head,
.lla-meter__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

.lla-meter__label,
.lla-meter__value {
  font-weight: 600;
}

.lla-meter__foot {
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-meter__track {
  height: 8px;
  margin: 6px 0;
  border-radius: 999px;
  background: var(--lla-line);
  overflow: hidden;
}

.lla-meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--lla-green);
}

.lla-meter.is-amber .lla-meter__fill {
  background: #f5b14c;
}

.lla-meter.is-red .lla-meter__fill {
  background: var(--lla-red);
}

.lla-meter.is-amber .lla-meter__level {
  color: #f5b14c;
}

.lla-meter.is-red .lla-meter__level {
  color: var(--lla-red);
}

.lla-checks {
  display: grid;
  gap: 6px;
  margin: 18px 0 10px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.lla-checks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  overflow-wrap: anywhere;
}

.lla-checks__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(76, 210, 122, 0.16);
  color: var(--lla-green);
  font-size: 12px;
  font-weight: 700;
}

.lla-checks .is-bad .lla-checks__mark {
  background: rgba(255, 107, 107, 0.16);
  color: var(--lla-red);
}

.lla-checks .is-unknown .lla-checks__mark {
  background: var(--lla-line);
  color: var(--lla-muted);
}

.lla-small {
  font-size: 12px;
}

.lla-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

/* ---------- Page head and Dashboard blocks (owner's approved desktop mock-up 2026-11-01) ---------- */
.lla-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 16px;
}

.lla-page-head__text {
  flex: 1 1 260px;
  min-width: 0;
}

.lla-page-head__text p {
  margin: 0;
}

.lla-page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lla-button--compact {
  width: auto;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 12px;
  font-size: 14px;
  text-decoration: none;
}

.lla-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 12px;
}

.lla-card-head .lla-subtitle {
  margin: 0;
  font-size: 16px;
}

.lla-card-head .lla-legend {
  margin: 0;
}

.lla-tile.is-warn {
  border-color: rgba(255, 169, 77, 0.55);
}

.lla-tile.is-warn .lla-tile__note {
  color: var(--lla-orange);
}

.lla-dash-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.lla-dash-row > .lla-card,
.lla-recent {
  min-width: 0;
  margin: 0;
}

.lla-recent {
  margin-bottom: 14px;
}

/* Needs your attention */
.lla-attention .lla-subtitle {
  margin: 0 0 6px;
  font-size: 16px;
}

.lla-attention__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lla-attention__row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  border-bottom: 1px solid var(--lla-line);
  color: var(--lla-text);
  text-decoration: none;
}

.lla-attention__list li:last-child .lla-attention__row {
  border-bottom: 0;
}

.lla-attention__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lla-green);
}

.lla-attention__row.is-warn .lla-attention__dot {
  background: var(--lla-orange);
}

.lla-attention__row.is-bad .lla-attention__dot {
  background: var(--lla-red);
}

.lla-attention__text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.lla-attention__meta {
  color: var(--lla-muted);
  font-size: 12px;
  text-align: right;
}

/* Recent activity: rows straight in the card (no second frame). */
.lla-recent__list {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

.lla-recent__list .lla-item {
  padding-left: 0;
  padding-right: 0;
}

/* Advertisers card */
.lla-dash-ads__top {
  color: var(--lla-text);
  text-decoration: none;
}

.lla-dash-ads__total {
  font-size: 24px;
  font-weight: 600;
}

/* AI PC and its graphics card */
.lla-pc__state {
  font-size: 13px;
}

.lla-pc__state.is-on {
  color: var(--lla-green);
}

.lla-pc__state.is-off {
  color: var(--lla-orange);
}

.lla-pc__top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lla-ring {
  flex: none;
  width: 96px;
  height: 96px;
}

.lla-ring__track,
.lla-ring__fill {
  fill: none;
  stroke-width: 3.2;
}

.lla-ring__track {
  stroke: var(--lla-line);
}

.lla-ring__fill {
  stroke: var(--lla-green);
  stroke-linecap: round;
}

.lla-ring.is-amber .lla-ring__fill {
  stroke: var(--lla-orange);
}

.lla-ring.is-red .lla-ring__fill {
  stroke: var(--lla-red);
}

.lla-ring__value {
  fill: var(--lla-text);
  font-size: 7px;
  font-weight: 600;
  text-anchor: middle;
}

.lla-ring__label {
  fill: var(--lla-muted);
  font-size: 3.6px;
  text-anchor: middle;
}

.lla-pc__facts {
  flex: 1;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.lla-pc__line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 12px;
  font-size: 13px;
}

.lla-pc__name {
  margin: 8px 0 0;
}

.lla-pc__caption {
  margin: 14px 0 6px;
}

.lla-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
}

.lla-spark__bar {
  flex: 1;
  max-width: 14px;
  border-radius: 2px;
  background: var(--lla-green);
}

.lla-spark__bar.is-amber {
  background: var(--lla-orange);
}

.lla-spark__bar.is-red {
  background: var(--lla-red);
}

.lla-pc__work {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--lla-line);
}

@media (min-width: 1000px) {
  .lla-main.lla-dash {
    max-width: 1280px;
  }

  .lla-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .lla-tile {
    padding: 18px 20px;
  }

  .lla-tile__value {
    font-size: 30px;
  }

  .lla-dash-row--wide {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }

  .lla-dash-row--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  .lla-dash .lla-card {
    padding: 20px;
  }
}

.lla-tile__note.is-quiet {
  color: var(--lla-muted);
}

/* Moderation → Latest activity (owner 2026-10-31): a table from 700px, one card per step on the phone. */
.lla-activity {
  margin-top: 28px;
}

.lla-activity__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.lla-activity__table th {
  padding: 8px;
  color: var(--lla-muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
}

.lla-activity__table td {
  padding: 8px;
  border-top: 1px solid var(--lla-line);
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.lla-activity__lady {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.lla-activity__name {
  display: grid;
  min-width: 0;
}

.lla-activity__photo {
  width: 40px;
  height: 60px;
}

.lla-activity__action.is-approved,
.lla-activity__action.is-shown,
.lla-activity__action.is-unblocked,
.lla-activity__action.is-photo-live,
.lla-activity__action.is-video-live,
.lla-activity__action.is-text-live {
  color: var(--lla-green);
}

.lla-activity__action.is-changes,
.lla-activity__action.is-hidden,
.lla-activity__action.is-text-refused,
.lla-activity__action.is-photo-added,
.lla-activity__action.is-photo-replaced,
.lla-activity__action.is-video-added,
.lla-activity__action.is-video-replaced {
  color: var(--lla-orange);
}

.lla-activity__action.is-blocked,
.lla-activity__action.is-photo-rejected,
.lla-activity__action.is-video-rejected,
.lla-activity__action.is-text-rejected {
  color: var(--lla-red);
}

.lla-activity__when,
.lla-activity__actor {
  color: var(--lla-muted);
}

@media (max-width: 699px) {
  /* Phone: her photo on the left over three short lines (name and time, what happened, who). */
  .lla-activity__table thead {
    display: none;
  }

  .lla-activity__table tr {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas: "photo name when" "photo action action" "photo actor actor";
    gap: 0 10px;
    padding: 10px 0;
    border-top: 1px solid var(--lla-line);
  }

  .lla-activity__table td {
    padding: 0;
    border-top: 0;
  }

  .lla-activity__who,
  .lla-activity__lady {
    display: contents;
  }

  .lla-activity__photo {
    grid-area: photo;
  }

  .lla-activity__name {
    grid-area: name;
    display: flex;
    flex-wrap: wrap;
    gap: 0 6px;
    align-items: baseline;
  }

  .lla-activity__action {
    grid-area: action;
  }

  .lla-activity__actor {
    grid-area: actor;
    font-size: 12px;
  }

  .lla-activity__when {
    grid-area: when;
    font-size: 12px;
    text-align: right;
  }
}

.lla-activity__action .lla-item__meta {
  display: block;
}

/* Moderation: who is checking a profile now; on her page a warning when another team member has it. */
.lla-checking {
  color: var(--lla-orange);
}

.lla-ai--busy {
  background: rgba(255, 169, 77, 0.14);
  color: var(--lla-orange);
}

/* Moderation → one profile: words or contacts changed while on the site (before → now). */
.lla-changed {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.lla-changed__item {
  display: grid;
  gap: 8px;
}

.lla-changed__title {
  margin: 0;
  font-size: 15px;
}

.lla-changed__label {
  display: block;
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-changed__old p,
.lla-changed__new p {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.lla-changed__old p {
  color: var(--lla-muted);
  text-decoration: line-through;
}

@media (min-width: 700px) {
  .lla-changed__item {
    grid-template-columns: 1fr 1fr;
  }

  .lla-changed__title,
  .lla-changed__item > .lla-photo__tools,
  .lla-changed__item > select,
  .lla-changed__item > textarea,
  .lla-changed__item > button {
    grid-column: 1 / -1;
  }
}

/* Her refused words (contact details): shown whole, as she typed them. */
.lla-tried {
  margin: 0;
  color: var(--lla-orange);
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lla-activity__action .lla-tried {
  margin-top: 2px;
}

/* iPhone Safari zooms into a form field whose text is smaller than 16px, and the page then slides under the finger
   (owner 2026-10-31, Moderation → a profile): every field gets 16px on phones and tablets. */
@media (max-width: 999px) {
  input,
  select,
  textarea,
  .lla-select,
  .lla-textarea,
  .lla-field input {
    font-size: 16px;
  }
}

/* More → AI checks: one switch per check (owner 2026-10-31). */
.lla-ai.is-on {
  background: rgba(76, 210, 122, 0.14);
  color: var(--lla-green);
}

.lla-switch-row__label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
}

.lla-switch-row.is-soon {
  opacity: 0.55;
}

.lla-soon {
  color: var(--lla-orange);
}

.lla-switch {
  flex: none;
  appearance: none;
  position: relative;
  width: 51px;
  height: 31px;
  margin: 0;
  border-radius: 16px;
  background: var(--lla-line);
  cursor: pointer;
  transition: background 0.2s;
}

.lla-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.lla-switch:checked {
  background: var(--lla-green);
}

.lla-switch:checked::after {
  transform: translateX(20px);
}

.lla-switch:disabled {
  cursor: default;
}

.lla-switch:focus-visible {
  outline: 2px solid var(--lla-pink);
  outline-offset: 2px;
}

.lla-always {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 14px 16px 14px 34px;
}

/* Moderation → one profile: the AI's opinion of a photo. */
.lla-photo__ai {
  margin: 0;
  font-size: 12px;
  color: var(--lla-muted);
}

.lla-photo__ai.is-problem {
  color: var(--lla-red);
}

.lla-photo__ai.is-unsure {
  color: var(--lla-orange);
}

.lla-photo__ai.is-ok {
  color: var(--lla-green);
}

.lla-switch-row .lla-row__text {
  display: grid;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

/* AI tab: one card per AI PC (Ubuntu = moderation, Mint = Fast chat later). */
.lla-machine {
  margin-bottom: 16px;
}

.lla-machine.is-later {
  opacity: 0.7;
}

.lla-machine__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 8px;
}

.lla-machine__head .lla-subtitle {
  margin: 0;
}

.lla-machine__job {
  color: var(--lla-muted);
  font-size: 13px;
}

.lla-machine__caption {
  margin: 14px 0 6px;
  font-size: 14px;
}

.lla-machine .lla-always {
  margin: 0;
  padding: 0 0 0 20px;
}

/* Moderation: the AI box (closed by default: a line with the state). */
.lla-ai-box {
  margin: 0 0 14px;
}

.lla-ai-box summary {
  cursor: pointer;
  font-weight: 600;
}

.lla-ai-box__state {
  display: inline;
  margin: 0;
  padding: 0;
  background: none;
  font-size: 13px;
  font-weight: 400;
}

.lla-ai-box .lla-switches {
  margin: 10px 0;
}

.lla-ai-box__state.is-on {
  color: var(--lla-green);
}

/* Latest activity: the AI's check in colours. */
.lla-ai-said {
  display: block;
  font-size: 13px;
}

.lla-ai-said.is-ok {
  color: var(--lla-green);
}

.lla-ai-said.is-problem {
  color: var(--lla-red);
}

.lla-ai-said.is-unsure {
  color: var(--lla-orange);
  font-weight: 600;
}

.lla-approve-ai {
  width: 100%;
  margin: 0 0 12px;
  border-color: var(--lla-green);
  color: var(--lla-green);
}

/* A new profile: the AI's opinion of her words, one row per field. */
.lla-ai-words {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding: 12px 16px;
  list-style: none;
}

.lla-ai-words__row {
  display: grid;
  gap: 2px;
}

.lla-said-words {
  display: block;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

/* Her History: one row per change or decision, newest first. */
.lla-history {
  margin: 0 0 18px;
}

.lla-history__list {
  display: grid;
  gap: 0;
  margin: 0 0 8px;
  padding: 4px 16px;
  list-style: none;
}

.lla-history__row {
  display: grid;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--lla-line);
}

.lla-history__row:first-child {
  border-top: 0;
}

.lla-history__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
}

.lla-history__what {
  font-weight: 600;
}

.lla-history__when,
.lla-history__who {
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-history__tag {
  justify-self: start;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(76, 210, 122, 0.12);
  color: var(--lla-green);
  font-size: 12px;
}

.lla-history__tag.is-check {
  background: rgba(255, 169, 77, 0.14);
  color: var(--lla-orange);
}

.lla-history__was,
.lla-history__now {
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lla-history__was {
  color: var(--lla-orange);
  text-decoration: line-through;
}

.lla-history__now {
  color: var(--lla-green);
}

/* AI tab: how often the AI is right. */
.lla-accuracy {
  overflow-x: auto;
}

.lla-accuracy__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lla-accuracy__table th,
.lla-accuracy__table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--lla-line);
  text-align: right;
  white-space: nowrap;
}

.lla-accuracy__table th:first-child {
  text-align: left;
  white-space: normal;
}

.lla-accuracy__table thead th {
  color: var(--lla-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}

.lla-accuracy__period th {
  padding-top: 12px;
  color: var(--lla-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.lla-accuracy__table .is-right {
  color: var(--lla-green);
}

.lla-accuracy__table .is-wrong {
  color: var(--lla-red);
}

/* A photo step: small pictures (was → now), a tap opens them big. */
.lla-history__photos {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-self: start;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lla-muted);
  cursor: zoom-in;
}

.lla-history__photos img {
  width: 48px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--lla-bg);
}

.lla-history__photos img.is-was {
  opacity: 0.6;
  outline: 2px solid var(--lla-orange);
  outline-offset: -2px;
}

/* AI right / AI wrong under the AI's own decisions. */
.lla-mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 6px;
}

.lla-mark__said {
  font-size: 13px;
  font-weight: 600;
}

.lla-mark__said.is-right {
  color: var(--lla-green);
}

.lla-mark__said.is-wrong {
  color: var(--lla-red);
}

.lla-mark__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* The window over the page (admin only; the public site has none). */
.lla-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 20px 16px 16px;
  border: 1px solid var(--lla-line);
  border-radius: 16px;
  background: var(--lla-card);
  color: var(--lla-text);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lla-dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.lla-dialog > * + * {
  margin-top: 8px;
}

.lla-dialog__close {
  float: right;
  width: 40px;
  height: 40px;
  margin: -8px -4px 0 8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--lla-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lla-dialog__title {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.lla-dialog__photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
}

.lla-dialog__photo {
  display: grid;
  gap: 4px;
  margin: 0;
}

.lla-dialog__photo img {
  width: 100%;
  max-height: 60dvh;
  border-radius: 12px;
  object-fit: contain;
  background: var(--lla-bg);
}

.lla-dialog__wrong {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--lla-line);
}

.lla-dialog__wrong p {
  margin: 0;
}

/* Earlier entries: closed by default; open, the block is about 4–5 entries high and scrolls. */
.lla-history__ai {
  display: grid;
  gap: 2px;
}

.lla-history__older summary {
  cursor: pointer;
  padding: 4px 0;
  color: var(--lla-muted);
  font-size: 13px;
  font-weight: 600;
}

.lla-history__older[open] summary {
  margin-bottom: 8px;
}

.lla-history__scroll {
  max-height: min(440px, 60vh);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* ---------- Moderation on a wide screen (owner's approved desktop mock-up 2026-11-01) ---------- */
.lla-review-queue {
  display: none;
}

.lla-review-head .lla-ai {
  margin-bottom: 8px;
}

.lla-side-queue__caption {
  margin: 10px 8px 6px;
  color: var(--lla-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lla-side-queue__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--lla-text);
  text-decoration: none;
}

.lla-side-queue__row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.lla-side-queue__row[aria-current="page"] {
  border-color: rgba(255, 92, 138, 0.45);
  background: var(--lla-pink-soft);
}

.lla-side-queue__photo {
  flex: none;
  width: 40px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--lla-line);
}

.lla-side-queue__text {
  flex: 1;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.lla-side-queue__name {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lla-side-queue__meta {
  color: var(--lla-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lla-side-queue__meta.is-late {
  color: var(--lla-red);
}

.lla-side-queue__dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lla-line);
}

.lla-side-queue__dot.is-ok {
  background: var(--lla-green);
}

.lla-side-queue__dot.is-unsure {
  background: var(--lla-orange);
}

.lla-side-queue__dot.is-problem {
  background: var(--lla-red);
}

@media (min-width: 1200px) {
  .lla-main.lla-review {
    max-width: 1560px;
  }

  .lla-review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    grid-template-areas: "head side" "body side";
    grid-template-rows: auto 1fr;
    gap: 0 24px;
    align-items: start;
  }

  .lla-review-head {
    grid-area: head;
  }

  .lla-review-body {
    grid-area: body;
    min-width: 0;
  }

  .lla-review-side {
    grid-area: side;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .lla-review-side .lla-history,
  .lla-review-side .lla-history .lla-subtitle {
    margin-top: 0;
  }

  .lla-review-head .lla-back {
    display: inline-block;
    margin-bottom: 4px;
  }

  .lla-review-body [data-review-decide] [data-approve] {
    order: 2;
  }

  /* Approve / Request changes always at the bottom of the screen while the profile scrolls. */
  .lla-review-body [data-review-decide] {
    position: sticky;
    bottom: 0;
    z-index: 2;
    justify-content: flex-end;
    margin: 20px 0 0;
    padding: 12px 16px;
    border: 1px solid var(--lla-line);
    border-radius: var(--lla-radius);
    background: var(--lla-card);
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.5);
  }

  .lla-review-body [data-review-decide][hidden] {
    display: none;
  }

  /* Moderation list: the queue left, Latest activity right. */
  .lla-main:has(.lla-mod-grid) {
    max-width: 1500px;
  }

  .lla-mod-grid {
    display: grid;
    grid-template-columns: 420px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
  }

  .lla-mod-grid .lla-activity {
    margin-top: 0;
  }

  .lla-mod-grid .lla-activity .lla-subtitle {
    margin-top: 0;
  }
}

@media (min-width: 1400px) {
  .lla-review-grid {
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    grid-template-areas: "queue head side" "queue body side";
  }

  .lla-review-queue:not([hidden]) {
    grid-area: queue;
    display: block;
    position: sticky;
    top: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px;
    border: 1px solid var(--lla-line);
    border-radius: var(--lla-radius);
    background: var(--lla-card);
  }
}

/* ---------- Moderation head and profile, exactly as the approved mock-up (2026-11-01, second pass) ---------- */
.lla-mod-head__search {
  display: none;
}

.lla-review > .lla-mod-head {
  display: none;
}

.lla-chip--link {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--lla-muted);
  text-decoration: none;
}

.lla-ai-box__full,
.lla-review-head__photo,
.lla-lead .lla-review-head__wide,
.lla-photo__ai-sum,
.lla-ai-card,
.lla-ai.lla-ai--busy.is-me {
  display: none;
}

@media (min-width: 1200px) {
  .lla-only-narrow {
    display: none;
  }

  .lla-mod-head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 14px;
    margin-bottom: 20px;
  }

  .lla-mod-head .lla-title {
    margin: 0;
  }

  .lla-mod-head .lla-chips {
    margin: 0;
  }

  .lla-mod-head__search {
    display: flex;
    flex: 1 1 160px;
    justify-content: flex-end;
    min-width: 0;
  }

  .lla-mod-head__search input {
    width: 100%;
    max-width: 280px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--lla-line);
    border-radius: 10px;
    background: var(--lla-card);
    color: var(--lla-text);
    font: inherit;
    font-size: 14px;
  }

  /* The AI as a chip; open, its switches drop down under it. */
  .lla-mod-head .lla-ai-box {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
  }

  .lla-mod-head .lla-ai-box summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(76, 210, 122, 0.35);
    border-radius: 999px;
    list-style: none;
    font-size: 13px;
  }

  .lla-mod-head .lla-ai-box summary::-webkit-details-marker {
    display: none;
  }

  .lla-mod-head .lla-ai-box[open] .lla-ai-box__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 5;
    width: min(460px, 100%);
    padding: 14px 16px;
    border: 1px solid var(--lla-line);
    border-radius: var(--lla-radius);
    background: var(--lla-card);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  }

  /* Her head card: cover photo, name, town · sent · e-mail, the AI and who is checking. */
  .lla-review-head__card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--lla-line);
    border-radius: var(--lla-radius);
    background: var(--lla-card);
  }

  .lla-review-head__photo:not([hidden]) {
    flex: none;
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    background: var(--lla-line);
  }

  .lla-review-head__text {
    flex: 1 1 240px;
    min-width: 0;
  }

  .lla-review-head__text .lla-title {
    margin: 0;
    font-size: 22px;
  }

  .lla-review-head__text .lla-lead {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    margin: 2px 0 0;
    color: var(--lla-muted);
    font-size: 13px;
  }

  .lla-lead .lla-review-head__wide {
    display: inline;
  }

  .lla-review-head__card .lla-ai {
    margin: 0;
    padding: 7px 14px;
    border: 1px solid rgba(76, 210, 122, 0.35);
    border-radius: 999px;
    background: none;
    color: var(--lla-green);
    font-size: 13px;
  }

  .lla-review-head__card .lla-ai[data-verdict="unsure"] {
    border-color: rgba(255, 169, 77, 0.45);
    color: var(--lla-orange);
  }

  .lla-review-head__card .lla-ai[data-verdict="problem"] {
    border-color: rgba(255, 107, 107, 0.45);
    color: var(--lla-red);
  }

  .lla-review-head__card .lla-ai[data-verdict="none"] {
    border-color: var(--lla-line);
    color: var(--lla-muted);
  }

  .lla-review-head__card .lla-ai.lla-ai--busy:not([hidden]) {
    display: block;
    border-color: var(--lla-line);
    color: var(--lla-text);
  }

  /* AI check card above History. */
  .lla-ai-card:not([hidden]) {
    display: block;
  }

  .lla-ai-card .lla-subtitle {
    margin: 0 0 10px;
    font-size: 16px;
  }

  .lla-ai-card__lines {
    display: grid;
    gap: 4px;
    font-size: 13px;
  }
}

@media (min-width: 1400px) {
  /* Compact cards; as many in a row as fit (5 and more on a big monitor), never too narrow for OK / Reject. */
  .lla-review-body .lla-photos {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }

  .lla-review-body .lla-photo .lla-badge {
    white-space: nowrap;
  }

  .lla-review-body .lla-photo__ai-sum {
    display: block;
  }

  .lla-review-body .lla-photos .lla-photo__ai.is-ok:not(.lla-photo__ai-sum),
  .lla-review-body .lla-photos .lla-photo__ai:not([class*=" is-"]):not(.lla-tried):not(a) {
    display: none;
  }

  .lla-review-body .lla-photo__tools .lla-small-button {
    min-height: 32px;
    padding: 4px 10px;
    font-size: 13px;
  }

  /* Her details and her video side by side, as one card. */
  .lla-review-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    grid-template-areas: "details video";
    gap: 20px;
    align-items: start;
  }

  .lla-review-pair__details {
    grid-area: details;
    min-width: 0;
  }

  .lla-review-pair__video {
    grid-area: video;
  }

  /* Narrow middle column: each name over its value. */
  .lla-review-pair .lla-fields {
    grid-template-columns: minmax(0, 1fr);
    font-size: 14px;
  }

  .lla-review-pair .lla-fields dt {
    color: var(--lla-muted);
    font-size: 12px;
  }

  .lla-review-body [data-review-decide] .lla-button {
    min-height: 44px;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 14px;
  }
}

/* Moderation → Latest activity tab: only the activity, full width (phone and computer). */
.lla-mod-grid[data-mod-view="activity"] .lla-mod-queue {
  display: none;
}

.lla-mod-grid[data-mod-view="activity"] .lla-activity {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .lla-mod-grid[data-mod-view="activity"] {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Her own tab on a profile: highlighted, × closes it. The Moderation head shows on a profile from 1200px. */
.lla-chip--lady:not([hidden]) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-right: 4px;
  background: var(--lla-pink);
  border-color: var(--lla-pink);
  color: #fff;
  cursor: default;
}

.lla-chip__close {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}

.lla-chip__close:hover,
.lla-chip__close:focus-visible {
  background: rgba(0, 0, 0, 0.2);
}

@media (min-width: 1200px) {
  .lla-review > .lla-mod-head {
    display: flex;
  }

  .lla-review-head .lla-back {
    display: none;
  }
}

/* In the Moderation head the AI is a compact chip: "AI" and a dot (green working, orange not); its full state and the
   switches are in the panel that opens. */
@media (min-width: 1200px) {
  .lla-mod-head .lla-ai-box__state {
    display: inline-block;
    width: 9px;
    height: 9px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--lla-orange);
    color: transparent;
    font-size: 0;
  }

  .lla-mod-head .lla-ai-box__state.is-on {
    background: var(--lla-green);
  }

  .lla-mod-head .lla-ai-box__full {
    display: block;
    margin: 0 0 6px;
  }
}

/* ---------- More → Team access (part 6) ---------- */
.lla-team__list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lla-team__member {
  margin: 0;
}

.lla-team__who {
  display: grid;
  min-width: 0;
}

.lla-team__name {
  font-size: 16px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lla-team__state {
  padding: 3px 12px;
  border: 1px solid var(--lla-line);
  border-radius: 999px;
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-team__state.is-active,
.lla-team__state.is-owner {
  border-color: rgba(76, 210, 122, 0.4);
  color: var(--lla-green);
}

.lla-team__state.is-approve,
.lla-team__state.is-invited,
.lla-team__state.is-expired,
.lla-team__state.is-paused {
  border-color: rgba(255, 169, 77, 0.45);
  color: var(--lla-orange);
}

.lla-team__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.lla-team__sections li {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lla-pink-soft);
  color: var(--lla-text);
  font-size: 12px;
}

.lla-team__member.is-approve {
  border-color: rgba(255, 169, 77, 0.55);
}

.lla-team__device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--lla-line);
  border-radius: 12px;
}

.lla-team__device.is-waiting {
  border-color: rgba(255, 169, 77, 0.55);
  background: rgba(255, 169, 77, 0.08);
}

.lla-team__device-text {
  display: grid;
  min-width: 0;
}

.lla-team__device-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lla-team__device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lla-team__fact {
  margin: 0 0 4px;
}

.lla-team__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lla-small-button--plain {
  color: var(--lla-text);
}

.lla-team-form__caption {
  margin: 4px 0 8px;
  font-weight: 600;
}

.lla-team-form .lla-chip[aria-pressed="true"] {
  background: var(--lla-pink);
  border-color: var(--lla-pink);
  color: #fff;
}

.lla-team-form__sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px 14px;
  margin-bottom: 12px;
}

@media (min-width: 1000px) {
  .lla-team__list {
    align-items: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* A helper's invitation (join.html): one step at a time, a picture for each. */
.lla-join__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.lla-join__dots li {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--lla-line);
}

.lla-join__dots li.is-on {
  background: var(--lla-pink);
}

.lla-join__art {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 14px;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lla-join__art .art-line {
  stroke: var(--lla-text);
}

.lla-join__art .art-soft {
  stroke: var(--lla-muted);
}

.lla-join__art .art-pink {
  stroke: var(--lla-pink);
  fill: var(--lla-pink-soft);
}

.lla-join__art .art-pink-line {
  stroke: var(--lla-pink);
}

.lla-join__art .art-pink-fill {
  stroke: none;
  fill: var(--lla-pink);
}

.lla-join__art .art-card {
  stroke: var(--lla-line);
  fill: var(--lla-card);
}

.lla-join__art .art-green {
  stroke: var(--lla-green);
  stroke-width: 4;
}

.lla-join__art .art-green-soft {
  stroke: none;
  fill: rgba(76, 210, 122, 0.14);
}

.lla-join__art--wait {
  animation: lla-turn 2.4s ease-in-out infinite;
}

@keyframes lla-turn {
  0%, 40% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(180deg); }
}

.lla-join__art--wait {
  transform-origin: 50% 50%;
  transform-box: fill-box;
}

@media (prefers-reduced-motion: reduce) {
  .lla-join__art--wait {
    animation: none;
  }
}

.lla-join__list {
  margin: 0 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.lla-join__step .lla-title {
  font-size: 22px;
}

/* The screen-lock hint: a phone with its passcode keypad (owner 2026-11-01: understood without words). */
.lla-join__note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 169, 77, 0.1);
  color: var(--lla-text);
  font-size: 14px;
}

.lla-join__art--lock {
  max-width: 200px;
}

.lla-join__art .art-notch {
  stroke: none;
  fill: var(--lla-line);
}

.lla-join__art .art-dot {
  stroke: var(--lla-muted);
  stroke-width: 1.2;
}

.lla-join__art .art-dot-on {
  stroke: none;
  fill: var(--lla-text);
}

.lla-join__art .art-key {
  stroke: var(--lla-line);
  stroke-width: 1.2;
  fill: var(--lla-card);
}

.lla-join__art .art-digit {
  stroke: none;
  fill: var(--lla-text);
  font: 600 7.5px Poppins, system-ui, sans-serif;
  text-anchor: middle;
}

.lla-join__how {
  margin: 0 0 14px;
  padding-left: 22px;
  display: grid;
  gap: 8px;
}

/* The menu "three lines" in the top bar (owner 2026-11-01: More moved here). */
.lla-burger {
  position: absolute;
  top: env(safe-area-inset-top);
  bottom: 0;
  left: 8px;
  display: flex;
  align-items: center;
}

.lla-burger__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--lla-text);
  list-style: none;
  cursor: pointer;
}

.lla-burger__button::-webkit-details-marker {
  display: none;
}

.lla-burger__button svg {
  width: 24px;
  height: 24px;
}

.lla-burger__button:hover,
.lla-burger[open] .lla-burger__button {
  background: rgba(255, 255, 255, 0.08);
}

.lla-burger__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  display: grid;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--lla-line);
  border-radius: 14px;
  background: var(--lla-card);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.lla-burger__menu a,
.lla-burger__signout {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--lla-text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.lla-burger__menu a:hover,
.lla-burger__signout:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lla-burger__signout {
  margin-top: 4px;
  border-top: 1px solid var(--lla-line);
  border-radius: 0 0 10px 10px;
  color: var(--lla-red);
}

.lla-burger__menu [hidden] {
  display: none;
}

@media (min-width: 1000px) {
  .lla-burger {
    position: static;
    margin-right: 12px;
  }
}

/* ---------- Support (owner 2026-11-01) ---------- */
.lla-dot {
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lla-muted);
}

.lla-dot.is-red {
  background: var(--lla-red);
}

.lla-dot.is-orange {
  background: var(--lla-orange);
}

.lla-tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--lla-muted);
  font-size: 11px;
  white-space: nowrap;
}

.lla-tag.is-late {
  background: rgba(255, 107, 107, 0.16);
  color: var(--lla-red);
}

.lla-tag.is-waiting {
  color: var(--lla-orange);
}

.lla-tag.is-closed {
  color: var(--lla-green);
}

.lla-tag.is-note {
  background: rgba(255, 169, 77, 0.16);
  color: var(--lla-orange);
}

.lla-avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--lla-pink-soft);
  color: var(--lla-pink);
  font-size: 10px;
  font-weight: 700;
}

.lla-select--small {
  width: auto;
  min-height: 36px;
  padding: 4px 10px;
  font-size: 13px;
}

.lla-chip .lla-dot {
  margin-right: 6px;
}

.lla-chip[aria-pressed="true"] {
  background: var(--lla-text);
  border-color: var(--lla-text);
  color: var(--lla-bg);
}

.lla-support__head {
  margin-bottom: 10px;
}

.lla-support__search {
  flex: 1 1 220px;
  display: flex;
  justify-content: flex-end;
}

.lla-support__search input {
  width: 100%;
  max-width: 320px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--lla-line);
  border-radius: 12px;
  background: var(--lla-card);
  color: var(--lla-text);
  font: inherit;
  font-size: 16px;
}

.lla-support__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.lla-support__filters .lla-chips {
  margin: 0;
}

.lla-support__list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lla-ticket {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--lla-line);
  border-radius: 14px;
  background: var(--lla-card);
  color: var(--lla-text);
  text-decoration: none;
}

.lla-ticket::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: var(--lla-orange);
}

.lla-ticket.is-red::before {
  background: var(--lla-red);
}

.lla-ticket.is-current {
  border-color: rgba(255, 92, 138, 0.5);
  background: var(--lla-pink-soft);
}

.lla-ticket__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lla-ticket__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lla-ticket__when {
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-ticket__subject {
  overflow: hidden;
  color: var(--lla-muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lla-ticket.is-unread .lla-ticket__name,
.lla-ticket.is-unread .lla-ticket__subject {
  color: var(--lla-text);
  font-weight: 700;
}

.lla-ticket__snippet {
  display: -webkit-box;
  overflow: hidden;
  color: var(--lla-muted);
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lla-ticket__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.lla-support__open {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.lla-support__open[hidden],
.lla-support__none[hidden] {
  display: none;
}

.lla-support__ticket {
  margin: 0;
}

.lla-support__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lla-support__title h2 {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.lla-support__from {
  margin: 4px 0 10px;
  overflow-wrap: anywhere;
}

.lla-support__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lla-support__body {
  display: grid;
  gap: 12px;
}

/* The thread: one line down the left, each message hanging on it. */
.lla-thread {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.lla-thread::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 2px;
  background: var(--lla-line);
}

.lla-thread__item {
  position: relative;
  padding: 12px 14px;
  border: 1px solid var(--lla-line);
  border-radius: 14px;
  background: var(--lla-card);
}

.lla-thread__item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -17px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--lla-bg);
  border-radius: 50%;
  background: var(--lla-muted);
}

.lla-thread__item.is-in::before {
  background: var(--lla-orange);
}

.lla-thread__item.is-out {
  margin-left: 24px;
  border-color: rgba(255, 92, 138, 0.35);
  background: rgba(255, 92, 138, 0.06);
}

.lla-thread__item.is-out::before {
  left: -41px;
  background: var(--lla-pink);
}

.lla-thread__item.is-note {
  margin-left: 24px;
  border-style: dashed;
  border-color: rgba(255, 169, 77, 0.5);
  background: rgba(255, 169, 77, 0.06);
}

.lla-thread__item.is-note::before {
  left: -41px;
  background: var(--lla-orange);
}

.lla-thread__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.lla-thread__who {
  font-size: 14px;
  font-weight: 600;
}

.lla-thread__when {
  margin-left: auto;
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-thread__body {
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.lla-thread__event {
  position: relative;
  color: var(--lla-muted);
  font-size: 12px;
}

.lla-support__side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.lla-support__side .lla-card {
  margin: 0;
}

.lla-support__side-title {
  margin: 0 0 8px;
  color: var(--lla-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lla-support__person-name {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.lla-support__person p {
  margin: 0 0 6px;
}

/* Her conversations as a tree: this one, then the earlier ones hanging under it. */
.lla-tree {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lla-tree li {
  position: relative;
  padding-left: 18px;
}

.lla-tree li + li::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 4px;
  width: 10px;
  height: 22px;
  border-bottom: 2px solid var(--lla-line);
  border-left: 2px solid var(--lla-line);
  border-radius: 0 0 0 6px;
}

.lla-tree li:first-child {
  padding-left: 0;
}

.lla-tree a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  color: var(--lla-text);
  text-decoration: none;
}

.lla-tree a .lla-muted {
  grid-column: 2;
}

.lla-tree li.is-current a {
  background: var(--lla-pink-soft);
}

.lla-tree__subject {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The answer box. */
.lla-composer {
  margin: 0;
}

.lla-composer.is-note {
  border-color: rgba(255, 169, 77, 0.5);
}

.lla-composer__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.lla-composer__tab {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--lla-muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.lla-composer__tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--lla-text);
}

.lla-composer__canned {
  width: auto;
  margin-left: auto;
  min-height: 36px;
  font-size: 13px;
}

.lla-composer__text {
  width: 100%;
  font-size: 16px;
}

.lla-composer__hint {
  margin: 6px 0 10px;
}

.lla-composer__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.lla-composer__buttons [hidden] {
  display: none;
}

/* Phone: the list, or the open conversation. */
.lla-support__grid.is-open .lla-support__list,
.lla-support__grid.is-open ~ .lla-support__none {
  display: none;
}

.lla-support__grid .lla-support__none {
  display: none;
}

@media (min-width: 1000px) {
  .lla-main.lla-support {
    max-width: 1560px;
  }

  .lla-support__back {
    display: none;
  }

  .lla-support__grid {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
  }

  .lla-support__grid.is-open .lla-support__list {
    display: grid;
  }

  .lla-support__list {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
  }

  .lla-support__grid .lla-support__none:not([hidden]) {
    display: block;
  }

  .lla-composer {
    position: sticky;
    bottom: 12px;
    z-index: 2;
    box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.5);
  }
}

@media (min-width: 1400px) {
  .lla-support__body {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
  }

  .lla-support__side {
    position: sticky;
    top: 90px;
  }
}

/* Phone: an open conversation takes the screen (the head and the filters come back with "‹ Support"). */
@media (max-width: 999px) {
  .lla-support.is-open .lla-support__head,
  .lla-support.is-open .lla-support__filters {
    display: none;
  }
}

/* Computer: the newest message is never hidden under the answer box. */
@media (min-width: 1000px) {
  .lla-thread > li {
    scroll-margin-bottom: 320px;
  }
}

/* Support: a closed conversation in the list is dimmed. */
.lla-ticket.is-closed:not(.is-current) {
  opacity: 0.55;
}

/* Support: new (unread) on the "who wrote" chips. */
.lla-chip__new {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--lla-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.lla-chip__new.is-red {
  background: var(--lla-red);
}

.lla-chip__new.is-orange {
  background: var(--lla-orange);
  color: #1d1a14;
}

.lla-chip__new[hidden] {
  display: none;
}

