.lm-review-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
  padding-right: 90px;
}
.lm-preview-caption {
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
  color: light-dark(#62606a, #b9b5c1);
}
.lm-stage {
  padding: 24px 12px;
  display: flex;
  justify-content: center;
}
.lm-sources {
  margin-top: 12px;
  font-size: 12px;
  color: light-dark(#62606a, #b9b5c1);
}
.lm-sources div {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.lm-phone {
  --lm-bg: #1c1b20;
  --lm-surface: #26242b;
  --lm-card: #302b34;
  --lm-text: #f3ede6;
  --lm-muted: #bcb3c0;
  --lm-line: #423a45;
  --lm-gold: #ddc498;
  --lm-purple: #c1a2d2;
  --lm-blue: #a8c8df;
  color-scheme: dark;
  width: 100%;
  max-width: 400px;
  background: var(--lm-bg);
  color: var(--lm-text);
  border: 1px solid #59515c;
  border-radius: 34px;
  box-shadow: 0 22px 52px #00000032;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
.lm-phone * {
  box-sizing: border-box;
}
.lm-phone [hidden] {
  display: none !important;
}
.lm-phone h1,
.lm-phone h2,
.lm-phone h3,
.lm-phone p {
  margin: 0;
}
.lm-phone h1 {
  font:
    400 34px/1.14 Georgia,
    serif;
  letter-spacing: -0.8px;
}
.lm-phone h2 {
  font:
    400 25px/1.2 Georgia,
    serif;
}
.lm-phone h3 {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}
.lm-phone button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.lm-phone button:focus-visible,
.lm-phone input:focus-visible,
.lm-phone select:focus-visible,
.lm-phone textarea:focus-visible {
  outline: 2px solid var(--lm-blue);
  outline-offset: 4px;
}
.lm-phone button:disabled {
  opacity: 0.38;
  cursor: default;
}
.lm-phone svg {
  width: 20px !important;
  height: 20px !important;
  stroke-width: 1.6;
  flex-shrink: 0;
}
.lm-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 26px 5px;
  font-size: 12px;
  font-weight: 500;
}
.lm-statusbar > div {
  display: flex;
  gap: 5px;
}
.lm-statusbar svg {
  width: 15px !important;
  height: 15px !important;
}
.lm-home-indicator {
  width: 100px;
  height: 4px;
  border-radius: 10px;
  background: #aca3af;
  margin: 15px auto 9px;
}
.lm-app {
  min-height: 730px;
  display: flex;
  flex-direction: column;
}
.lm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 21px;
  gap: 10px;
}
.lm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font:
    400 28px/1 Georgia,
    serif;
  letter-spacing: 0.3px;
}
.lm-brand .lm-mark {
  width: 30px;
  height: 34px;
}
.lm-mark {
  position: relative;
  width: 68px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--lm-gold);
  flex-shrink: 0;
}
.lm-mark .lm-book {
  width: 65% !important;
  height: 65% !important;
  margin-top: 12px;
}
.lm-mark .lm-star {
  width: 28% !important;
  height: 28% !important;
  color: var(--lm-blue);
  position: absolute;
  top: 0;
  left: 36%;
  fill: #a8c8df22;
}
.lm-eyebrow {
  color: var(--lm-muted);
  font-size: 11px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.lm-muted {
  color: var(--lm-muted);
}
.lm-small {
  font-size: 12px;
}
.lm-gold {
  color: var(--lm-gold);
}
.lm-heading {
  padding: 10px 24px 20px;
}
.lm-heading p {
  margin-top: 9px;
  color: var(--lm-muted);
}
.lm-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
}
.lm-icon-button:hover {
  background: #ffffff09;
}
.lm-icon-button.lm-selected {
  color: var(--lm-gold);
  background: #ddc49812;
}
.lm-search {
  margin: 0 24px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--lm-line);
  background: #242229;
  padding: 10px 13px;
  border-radius: 12px;
}
.lm-search input {
  border: 0;
  background: none;
  color: var(--lm-text);
  font: inherit;
  width: 100%;
  min-width: 0;
  outline-offset: 6px;
}
.lm-search input::placeholder {
  color: #a69cab;
}
.lm-search svg {
  color: var(--lm-muted);
  width: 17px;
}
.lm-filter {
  display: flex;
  gap: 8px;
  margin: 0 24px 17px;
}
.lm-filter button {
  border-radius: 22px;
  padding: 8px 14px;
  font-size: 12px;
  min-height: 40px;
  border: 1px solid var(--lm-line);
  color: var(--lm-muted);
}
.lm-filter button[aria-pressed="true"] {
  background: #d9c4e3;
  color: #302337;
  border-color: #d9c4e3;
}
.lm-shelf-grid {
  display: grid;
  grid-template-columns: repeat(var(--lm-columns, 3), minmax(0, 1fr));
  gap: 24px 17px;
  padding: 0 24px 26px;
  align-items: start;
}
.lm-book-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  padding: 0;
}
.lm-cover-wrap {
  display: block;
  width: 100%;
  position: relative;
  margin-bottom: 12px;
  perspective: 700px;
}
.lm-cover-wrap::after {
  content: "";
  display: block;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(#62504b, #3d3234);
  box-shadow: 0 7px 9px #0006;
  position: absolute;
  bottom: -6px;
  left: -7px;
  right: -7px;
}
.lm-cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 4px 5px 8px #0007;
  display: block;
}
.lm-cover-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 2px 5px 5px 2px;
  background: linear-gradient(
    90deg,
    #0004,
    transparent 5%,
    #fff2 7%,
    transparent 10%,
    transparent 96%,
    #0004
  );
}
.lm-book-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  margin-top: 3px;
}
.lm-book-author {
  font-size: 11px;
  color: var(--lm-muted);
  margin-top: 4px;
}
.lm-nav {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  border-top: 1px solid #ffffff0d;
  background: #211e25;
  padding: 10px 9px 0;
}
.lm-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  min-height: 48px;
  padding: 4px 10px;
  color: var(--lm-muted);
}
.lm-nav button[aria-current="page"] {
  color: var(--lm-gold);
}
.lm-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #d5bfdf !important;
  color: #2b2030 !important;
  border-radius: 13px;
  min-height: 48px;
  padding: 12px 16px;
  width: 100%;
  font-weight: 500 !important;
}
.lm-secondary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lm-line) !important;
  border-radius: 13px;
  min-height: 46px;
  padding: 10px 14px;
  width: 100%;
}
.lm-text-button {
  color: var(--lm-purple) !important;
  min-height: 44px;
  padding: 10px 12px;
}
.lm-pad {
  padding: 0 24px 24px;
}
.lm-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.lm-detail-art {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 50px 28px;
  margin: 0 24px 20px;
  border-radius: 14px;
  background: radial-gradient(ellipse at 50% 60%, #52323e 0%, #25212a 70%);
}
.lm-detail-art img {
  width: 150px;
  height: 225px;
  object-fit: cover;
  border-radius: 2px 5px 5px 2px;
  box-shadow: 8px 12px 22px #0007;
}
.lm-ribbon {
  position: absolute;
  right: 17px;
  top: -2px;
  background: #d8be91 !important;
  color: #3b2f25 !important;
  border-radius: 0 0 10px 10px;
  min-width: 42px;
  min-height: 62px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px #0003;
}
.lm-detail-title {
  text-align: center;
  padding: 0 28px 22px;
}
.lm-detail-title h1 {
  font-size: 29px;
}
.lm-detail-title p {
  margin-top: 8px;
  color: var(--lm-muted);
}
.lm-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--lm-muted);
  font-size: 12px;
}
.lm-field {
  color: var(--lm-text);
  border: 1px solid var(--lm-line);
  border-radius: 11px;
  padding: 12px;
  background: #25212b;
  font:
    400 14px/1.5 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  min-height: 46px;
  width: 100%;
  max-width: 100%;
}
textarea.lm-field {
  resize: vertical;
}
.lm-divider {
  border: 0;
  height: 1px;
  background: var(--lm-line);
  margin: 4px 0;
}
.lm-auth {
  margin: 45px 25px 30px;
  background: #2c2832;
  border: 1px solid #4d4354;
  border-radius: 26px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.lm-finger {
  width: 84px;
  height: 84px;
  margin: 6px auto;
  display: grid;
  place-items: center;
  background: #3b3244;
  color: var(--lm-purple);
  border-radius: 50%;
}
.lm-finger svg {
  width: 46px !important;
  height: 46px !important;
  stroke-width: 1.3;
}
.lm-auth input {
  text-align: center;
  font-size: 24px;
  letter-spacing: 8px;
}
.lm-error {
  color: #f1b1ac;
  font-size: 12px;
  min-height: 18px;
}
.lm-hero {
  margin: 0 16px 23px;
  position: relative;
  min-height: 300px;
  background: #2b2430;
  border-radius: 21px;
  overflow: hidden;
  isolation: isolate;
}
.lm-hero img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 40%;
}
.lm-hero::after {
  content: "";
  z-index: -1;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      #27212f 0%,
      #27212fec 15%,
      #27212f50 60%,
      #27212f00 100%
    ),
    linear-gradient(0deg, #27212f 0%, transparent 35%);
}
.lm-hero-copy {
  padding: 23px 20px;
  width: 60%;
}
.lm-hero-copy .lm-mark {
  margin-bottom: 13px;
  width: 48px;
  height: 48px;
}
.lm-hero-copy h1 {
  font-size: 31px;
  line-height: 1.16;
}
.lm-hero-copy p {
  margin-top: 14px;
  color: #e7d9df;
  font-size: 12px;
}
.lm-hero-compact {
  min-height: 160px;
}
.lm-hero-compact img {
  width: 43%;
  left: auto;
  object-position: 65% 35%;
}
.lm-hero-compact .lm-hero-copy {
  width: 70%;
}
.lm-hero-compact .lm-mark {
  display: none;
}
.lm-hero-compact h1 {
  font-size: 27px;
}
.lm-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 24px 16px;
}
.lm-section-head span {
  font-size: 11px;
  color: var(--lm-muted);
}
.lm-private-book {
  display: grid;
  grid-template-columns: 119px 1fr;
  gap: 21px;
  margin: 0 24px 26px;
  align-items: center;
}
.lm-private-book > button {
  padding: 0;
}
.lm-private-book .lm-cover {
  aspect-ratio: 4/5;
  object-fit: contain;
}
.lm-private-book h2 {
  font-size: 24px;
}
.lm-private-book .lm-primary {
  margin-top: 15px;
  min-height: 42px;
  font-size: 12px;
  padding: 10px;
}
.lm-private-book p {
  color: var(--lm-muted);
  font-size: 11px;
  margin-top: 10px;
}
.lm-dedication {
  border-top: 1px solid var(--lm-line);
  margin: 0 24px 24px;
  padding-top: 17px;
  color: var(--lm-muted);
  font:
    italic 14px/1.6 Georgia,
    serif;
  text-align: center;
}
.lm-reader-paper {
  --lm-paper: #eee4d4;
  --lm-ink: #3a3032;
  margin: 0 12px 16px;
  border-radius: 16px;
  background: var(--lm-paper);
  color: var(--lm-ink);
  padding: 28px 25px 24px;
  box-shadow: inset 5px 0 10px #72604710;
}
.lm-reader-paper.lm-night {
  --lm-paper: #26212c;
  --lm-ink: #eee4d8;
}
.lm-reader-paper .lm-eyebrow {
  color: inherit;
  opacity: 0.7;
  text-align: center;
}
.lm-reader-paper h1 {
  font-size: 29px;
  text-align: center;
  margin: 15px 0 12px;
}
.lm-reader-rule {
  width: 36px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  margin: 22px auto;
}
.lm-poem {
  font:
    400 var(--lm-poem-size, 17px) / 1.65 Georgia,
    serif;
}
.lm-poem p {
  font: inherit;
  margin: 0 0 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lm-reader-tools {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px 15px;
  flex-wrap: wrap;
}
.lm-reader-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--lm-line);
  border-radius: 24px;
  min-height: 42px;
  padding: 7px 12px;
  font-size: 12px;
}
.lm-reader-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 10px;
  font-size: 12px;
}
.lm-bookmark-dot {
  color: var(--lm-gold);
  font-size: 11px;
  text-align: center;
  padding: 5px;
  min-height: 24px;
}
.lm-conversation-book {
  margin: 5px 24px 22px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #302835;
  border-radius: 14px;
}
.lm-conversation-book img {
  width: 38px;
  height: 52px;
  object-fit: cover;
  border-radius: 2px;
}
.lm-empty {
  padding: 52px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  text-align: center;
  color: var(--lm-muted);
}
.lm-empty h2 {
  color: var(--lm-text);
  font-size: 26px;
}
.lm-empty svg {
  color: var(--lm-purple);
  width: 33px !important;
  height: 33px !important;
  stroke-width: 1.2;
}
.lm-messages {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 24px 25px;
}
.lm-message {
  max-width: 87%;
  padding: 12px 15px;
  background: #352c3e;
  border-radius: 15px 15px 15px 3px;
  overflow-wrap: anywhere;
}
.lm-message.lm-mine {
  background: #594264;
  border-radius: 15px 15px 3px 15px;
  margin-left: auto;
}
.lm-message span {
  display: block;
  font-size: 11px;
  color: #d8c7e3;
  margin-bottom: 5px;
}
.lm-compose {
  margin: auto 19px 14px;
  display: flex;
  gap: 8px;
  align-items: end;
}
.lm-compose textarea {
  flex: 1;
  min-width: 0;
}
.lm-compose button {
  background: #d3bbdf;
  color: #2d2134;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.lm-steps {
  display: flex;
  gap: 6px;
  margin: 16px 25px 26px;
}
.lm-steps span {
  height: 3px;
  background: #493b51;
  border-radius: 2px;
  flex: 1;
}
.lm-steps .lm-done {
  background: var(--lm-gold);
}
.lm-setup-intro {
  text-align: center;
  padding: 0 26px 28px;
}
.lm-setup-intro .lm-mark {
  margin: 0 auto 20px;
}
.lm-setup-intro p {
  margin-top: 14px;
  color: var(--lm-muted);
}
.lm-pin-dots {
  display: flex;
  justify-content: center;
  gap: 13px;
  padding: 24px 0;
}
.lm-pin-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lm-gold);
}
.lm-recovery {
  border: 1px dashed #817184;
  border-radius: 12px;
  padding: 20px 16px;
  letter-spacing: 2px;
  font: 400 17px/1.6 monospace;
  text-align: center;
  background: #302835;
}
.lm-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 44px;
  color: var(--lm-muted);
  font-size: 12px;
}
.lm-checkbox input {
  accent-color: #b692ca;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.lm-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #706278;
  border-radius: 15px;
  min-height: 104px;
  padding: 20px;
  color: var(--lm-muted);
  background: #28232d;
  text-align: center;
}
.lm-upload input {
  display: none;
}
.lm-upload button {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.lm-upload svg {
  width: 27px !important;
  height: 27px !important;
  color: var(--lm-purple);
}
.lm-doc-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 0;
  border-bottom: 1px solid #ffffff0c;
}
.lm-doc-row img {
  width: 47px;
  height: 66px;
  object-fit: cover;
  border-radius: 3px;
}
.lm-doc-row div {
  min-width: 0;
  flex: 1;
}
.lm-doc-row .lm-small {
  color: var(--lm-muted);
  margin-top: 4px;
}
.lm-published {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: #b4d2c1;
  font-size: 11px;
}
.lm-published svg {
  width: 13px;
  height: 13px;
}
.lm-draft-cover {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #56405e, #302734);
  border-radius: 3px 7px 7px 3px;
  box-shadow: 5px 7px 15px #0006;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 18px;
  text-align: center;
  font:
    400 22px/1.25 Georgia,
    serif;
  border-left: 5px solid #c2a2c722;
}
.lm-settings-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff0c;
}
.lm-settings-row span {
  font-size: 12px;
  color: var(--lm-muted);
}
.lm-toast {
  text-align: center;
  color: var(--lm-gold);
  font-size: 12px;
  min-height: 24px;
  margin: 5px 24px;
}
.lm-launch {
  min-height: 730px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 42%, #3d2c4433, transparent 55%);
}
.lm-launch .lm-mark {
  width: 110px;
  height: 112px;
  margin-bottom: 30px;
}
.lm-launch h1 {
  font-size: 64px;
  letter-spacing: 2px;
}
.lm-launch p {
  margin-top: 20px;
  font-size: 12px;
  color: var(--lm-muted);
}
@media (max-width: 420px) {
  .lm-stage {
    padding: 12px 0;
  }
  .lm-phone {
    border-radius: 24px;
  }
  .lm-shelf-grid {
    gap: 23px 13px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .lm-hero-copy {
    padding-left: 17px;
  }
  .lm-hero-copy h1 {
    font-size: 28px;
  }
  .lm-preview-caption {
    font-size: 12px;
  }
  .lm-private-book {
    grid-template-columns: 105px 1fr;
    gap: 16px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .lm-cover-wrap {
    transition: transform 0.2s ease;
  }
  .lm-book-item:hover .lm-cover-wrap {
    transform: translateY(-3px);
  }
}

html,
body {
  margin: 0;
  background: #1c1b20;
  min-height: 100%;
}
.lm-phone {
  max-width: 720px;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: auto;
  min-height: 100dvh;
}
.lm-app {
  min-height: 100dvh;
}
.lm-phone h1 {
  overflow-wrap: anywhere;
}
.lm-phone .lm-field {
  font-size: 16px;
}
.lm-topbar {
  position: sticky;
  top: 0;
  background: #1c1b20f5;
  z-index: 4;
}
.lm-error {
  padding: 0 24px;
  overflow-wrap: anywhere;
}
.lm-recovery {
  font-size: 12px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  user-select: all;
}
.lm-cover-placeholder {
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, #6d4d74, #292230);
  padding: 12px;
  display: grid;
  place-items: center;
  font: 22px Georgia;
  color: #ddc498;
}
.lm-phone a {
  color: #c1a2d2;
}
.lm-doc-row button {
  padding: 10px;
}
.lm-picture {
  width: 100%;
  height: auto;
}
.lm-compose {
  position: sticky;
  bottom: 0;
  background: #1c1b20;
  padding: 10px 0;
}
.lm-launch {
  min-height: 100dvh;
}
.lm-phone .lm-private-book {
  grid-template-columns: 112px 1fr;
}
.lm-pad input[type="file"] {
  width: 100%;
}
.lm-phone .lm-recovery-input {
  min-height: 95px;
  letter-spacing: 0;
  text-align: left;
  font-size: 13px;
}
.lm-phone .lm-auth input {
  letter-spacing: 3px;
}
.lm-phone .lm-auth input[type="checkbox"] {
  width: 20px;
}
.lm-footer-note {
  padding: 20px 24px;
  font-size: 12px;
  color: #bcb3c0;
}
.lm-shelf-grid {
  padding-top: 4px;
}
.lm-cover {
  background: #302835;
}
.lm-phone .lm-private-book .lm-cover {
  aspect-ratio: 2/3;
  object-fit: cover;
}
.lm-reader-paper p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.lm-phone .lm-primary:disabled {
  opacity: 0.5;
}
@media (max-width: 420px) {
  .lm-phone {
    border-radius: 0;
  }
}

.lm-expiry{display:block;font-size:11px;color:var(--muted,#b8aebc);margin:4px 0 8px}.lm-compose textarea{min-height:92px}
.lm-conversation-book > .lm-cover-placeholder{width:38px;height:52px;flex:0 0 38px;padding:4px;font-size:8px;overflow:hidden;aspect-ratio:auto;border-radius:2px}
.lm-conversation-book > div:last-child{min-width:0;overflow-wrap:anywhere}
/* Message text enters the DOM only during an intentional hold. */
.lm-reveal{display:block;width:100%;min-height:52px;margin-top:10px;padding:14px;border:1px dashed #9b8b70;border-radius:10px;background:transparent;color:inherit;text-align:left;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:pan-y}
.lm-reveal:focus-visible{outline:2px solid #c5a66b;outline-offset:3px}
.lm-reveal.lm-revealed{border-style:solid;background:#ffffff08}
.lm-privacy{margin:14px 24px;padding:14px;border:1px solid #8b7f6d66;border-radius:12px}
.lm-privacy summary{cursor:pointer;font-weight:600}
.lm-privacy .lm-label,.lm-privacy .lm-checkbox{margin-top:16px}
.lm-stack>.lm-privacy{margin:0}
/* Luma 0.4: a reading room on phones, a working desk on larger screens. */
.lm-phone{--lm-bg:#19181e;--lm-surface:#242129;--lm-line:#3b3542;background:var(--lm-bg)}
body{background:#19181e}
.lm-phone button,.lm-phone input,.lm-phone select,.lm-phone textarea{transition:background .16s,border-color .16s,opacity .16s}
.lm-phone button{min-height:44px}
.lm-phone .lm-primary{border-radius:12px;background:#d6c0e2;color:#29212f;font-weight:600;box-shadow:0 3px 14px #0002}
.lm-phone .lm-primary:hover{background:#e2d0eb}
.lm-phone .lm-secondary{border-radius:12px;border:1px solid #64576e;background:#ffffff04;color:#ece2f3}
.lm-phone .lm-field{border-radius:12px;border:1px solid #494050;background:#201d26;line-height:1.5;padding:12px 14px;width:100%;min-width:0}
.lm-phone .lm-field:focus{border-color:#c1a2d2;outline:2px solid #b89ace30;outline-offset:1px}
.lm-phone .lm-quiet{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;color:#d6bfdf;font-size:14px;border-radius:10px}
.lm-phone .lm-quiet:hover{background:#c1a2d210}
.lm-panel{border:1px solid var(--lm-line);border-radius:18px;padding:24px;background:linear-gradient(150deg,#29243099,#211e27cc)}
.lm-panel h2{font-size:24px}
.lm-phone .lm-error:empty{display:none}
.lm-phone .lm-error:not(:empty){margin:18px 24px;padding:12px 16px;background:#c1a2d210;border:1px solid #76617b55;border-radius:10px;color:#e9d7ee;font-size:14px}
.lm-phone .lm-reveal{border:1px dashed #ae95b66b;border-radius:9px;background:#ffffff04;padding:12px;margin-top:10px}
.lm-phone .lm-reveal.lm-revealed{background:#ffffff08;border-style:solid}
.lm-privacy{border-color:var(--lm-line);font-size:13px;padding:12px 14px}
.lm-privacy summary{color:#c8b4d1;min-height:24px}
.lm-home-welcome{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:12px;align-items:center;padding:30px 24px 28px;background:radial-gradient(ellipse at right,#58446055,transparent 70%);border-bottom:1px solid #b19aba21}
.lm-home-welcome h1{font-size:31px;line-height:1.18;margin:9px 0 12px}
.lm-home-welcome p{color:var(--lm-muted);font-size:13px}
.lm-welcome-portrait{width:110px;height:142px;object-fit:cover;border-radius:55px 55px 22px 22px;border:1px solid #8e73936b;box-shadow:0 12px 30px #0003}
.lm-private-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:0 24px 24px}
.lm-phone .lm-private-grid .lm-private-book{display:flex;flex-direction:column;gap:12px;border:0;padding:0;margin:0;background:none;min-width:0;align-items:stretch}
.lm-phone .lm-private-cover{width:100%;padding:0;aspect-ratio:2/3;border-radius:5px 11px 11px 5px;overflow:hidden;box-shadow:4px 8px 15px #0005}
.lm-private-cover img,.lm-private-cover .lm-cover-placeholder{width:100%;height:100%;object-fit:cover}
.lm-private-grid .lm-private-book h2{font:500 16px/1.3 Georgia,serif}
.lm-private-grid .lm-private-book p{font-size:11px;color:var(--lm-muted);margin-top:6px}
.lm-private-grid .lm-text-button{font-size:12px;text-align:left;padding:8px 0}
.lm-home-footer{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:8px 24px 24px;padding-top:18px;border-top:1px solid var(--lm-line);color:var(--lm-muted);font-size:11px}
.lm-home-footer .lm-quiet{font-size:12px;padding-right:0}
.lm-section-head h2{font-size:24px;margin-top:6px}
.lm-heading-inline{padding:16px 0}
.lm-heading-inline h1{margin-top:8px}
.lm-reading-settings{padding-top:12px;padding-bottom:32px}
.lm-reading-settings .lm-panel{padding:20px}
.lm-update-card{margin:20px 24px;padding:18px;border:1px solid #8c76905c;border-radius:16px;background:linear-gradient(130deg,#54405c50,#29222e)}
.lm-update-card>div{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.lm-update-card strong{font-size:15px}.lm-update-card p{font-size:12px;color:var(--lm-muted);margin-top:4px}
.lm-update-card button{width:100%}.lm-update-card ul{padding-left:18px;color:var(--lm-muted);font-size:13px}
.lm-reading-settings .lm-update-card{margin:0}
.lm-conversation-compact{padding:18px 24px;margin:0 0 20px;border-bottom:1px solid var(--lm-line)}
.lm-conversation-compact img{width:42px!important;max-height:60px;object-fit:cover;border-radius:4px}
.lm-messages{gap:16px}.lm-message{max-width:88%;border:1px solid #b69ac510;padding:14px 16px}
.lm-message p{line-height:1.65}.lm-compose{border-top:1px solid var(--lm-line);margin:0;padding:12px 24px;gap:10px;background:#19181ef5;backdrop-filter:blur(12px)}
.lm-compose textarea{min-height:54px;max-height:160px}.lm-compose button{width:46px;height:46px;border-radius:14px;flex-shrink:0}
.lm-author .lm-phone{max-width:1220px;margin:auto;background:transparent;padding:0 24px}
.lm-author{background:radial-gradient(ellipse at top left,#3a2c4730,transparent 55%),#19181e}
.lm-desk-header{height:88px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--lm-line);padding:0 8px;gap:24px}
.lm-desk-header .lm-brand{font-family:Georgia,serif;font-size:29px;gap:10px;display:flex;align-items:center}
.lm-desk-label{font:12px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#b7a7bf;margin-left:12px;border-left:1px solid var(--lm-line);padding-left:20px;letter-spacing:.04em}
.lm-desk-frame{display:grid;grid-template-columns:176px minmax(0,1fr);min-height:calc(100dvh - 88px)}
.lm-desk-nav{display:flex;flex-direction:column;gap:8px;padding:32px 20px 20px 0;border-right:1px solid var(--lm-line)}
.lm-desk-nav button{display:flex;gap:12px;align-items:center;text-align:left;padding:12px;font-size:13px;border-radius:11px;color:#bfb0c8;min-height:46px}
.lm-desk-nav button[aria-current=page]{background:#a785bd1c;color:#f0ddfc}
.lm-nav-note{color:#8e8098;font:italic 15px/1.6 Georgia,serif;margin-top:auto;padding:28px 12px}
.lm-desk-main{min-width:0;padding:36px 0 0 34px}
.lm-desk-footer{padding:28px 0;color:#92859a;font-size:11px;display:flex;gap:8px;justify-content:center;margin-top:28px}
.lm-login-frame{max-width:500px;margin:30px auto}.lm-login-frame .lm-desk-main{padding:0}.lm-login-frame .lm-heading{padding:24px}
.lm-page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:30px}
.lm-page-heading h1{font-size:44px;margin:8px 0 12px}.lm-page-heading p{color:#b9abbf}.lm-page-heading>button{flex-shrink:0;display:flex;gap:8px;align-items:center;padding:12px 18px}
.lm-library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}
.lm-tabs{display:flex;gap:4px;padding:4px;background:#26212d;border-radius:12px}.lm-tabs button{padding:7px 12px;font-size:13px;border-radius:9px;min-height:36px}
.lm-tabs button[aria-pressed=true]{background:#55425f;color:#f1e4f7}
.lm-library-search{display:flex;align-items:center;gap:10px;max-width:260px;border-bottom:1px solid #695770;padding:8px 2px;color:#a28eae}
.lm-library-search input{min-width:0;width:100%;background:transparent;border:0;color:var(--lm-text);font:inherit;outline:none}
.lm-author-books{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.lm-author-book{display:flex;gap:20px;padding:20px;background:linear-gradient(145deg,#30283788,#24202b88);border:1px solid var(--lm-line);border-radius:17px;min-width:0}
.lm-author-cover{width:94px;flex-shrink:0;aspect-ratio:2/3;border-radius:4px 9px 9px 4px;overflow:hidden;background:linear-gradient(135deg,#624a6c,#302437);display:grid;place-items:center;align-self:flex-start;box-shadow:3px 8px 15px #0004}
.lm-author-cover img{width:100%;height:100%;object-fit:cover}
.lm-author-book-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.lm-author-book-info h2{font-size:24px;line-height:1.2}.lm-author-book-info p{font-size:12px;color:#b0a1b8}
.lm-author-book-info>div{display:flex;align-items:center;gap:8px;margin-top:auto}.lm-author-book-info .lm-secondary{padding:8px 12px;font-size:12px;min-height:40px}
.lm-status-pill{font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:4px 8px;border-radius:6px;background:#66527244;color:#d7c1e2;display:inline-block}
.lm-status-pill.lm-published{background:#8b94751a;color:#c7d1ad}
.lm-library-end{display:flex;justify-content:space-between;align-items:center;margin-top:24px;color:#a393ae;font-size:12px}
.lm-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.lm-settings-grid .lm-panel:last-child{grid-column:1/-1}
.lm-section-icon{height:38px;width:38px;border-radius:11px;display:grid;place-items:center;background:#b99dcb18;color:#d6bcdf}
.lm-thread-list{display:grid;gap:12px}.lm-phone .lm-thread{display:flex;width:100%;align-items:center;gap:18px;background:#30273670;border:1px solid var(--lm-line);padding:18px;border-radius:14px;text-align:left}
.lm-thread img{width:42px;height:60px;object-fit:cover;border-radius:5px}.lm-thread>span{flex:1}.lm-thread strong{font:22px Georgia,serif;display:block}.lm-thread small{display:block;color:#ab9ab6;font-size:12px;margin-top:7px}
.lm-editor-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.lm-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:18px}
.lm-editor-grid .lm-panel{padding:22px}.lm-title-field{font:26px/1.2 Georgia,serif!important}.lm-writing{font:18px/1.8 Georgia,serif!important;min-height:360px;resize:vertical}.lm-editor-cover{height:140px;display:grid;place-items:center;border:1px dashed #8b739544;border-radius:12px;background:#a58baa09}.lm-editor-cover img{max-width:100%;height:100%;object-fit:contain}
.lm-editor-grid input[type=file]{font-size:11px;padding:8px}.lm-editor-grid input::file-selector-button{background:#594364;border:0;border-radius:6px;color:#f1e4f6;padding:7px;font-size:11px;margin-right:5px}.lm-file-name{overflow-wrap:anywhere;font-size:12px}
.lm-editor-actions{position:sticky;bottom:0;z-index:3;background:#19181ef5;border-top:1px solid var(--lm-line);backdrop-filter:blur(12px);padding:16px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:18px}.lm-editor-actions>div{display:flex;gap:8px}.lm-editor-actions button{padding:9px 14px;font-size:13px}.lm-draft-state{font-size:11px;color:#baacc2}
.lm-local-drafts{padding:14px 18px;margin-bottom:22px;border:1px solid #a384b044;background:#9d76b00c;border-radius:12px;color:#cbb6d6;font-size:13px}.lm-local-drafts>div{display:flex;gap:16px;justify-content:space-between;align-items:center;margin-top:12px}
.lm-conversation-heading{padding:0 0 26px}.lm-conversation-heading h1{font-size:34px;margin:14px 0 8px}.lm-conversation-heading p{font-size:13px}.lm-author .lm-messages{padding:0 0 24px;max-width:680px;margin:auto}.lm-author .lm-message{max-width:80%}
.lm-desk-composer{border-top:1px solid var(--lm-line);padding:20px 0;display:grid;gap:12px;max-width:680px;margin:auto}.lm-desk-composer .lm-privacy{margin:0}.lm-desk-composer textarea{min-height:88px}.lm-desk-composer>button[data-action=send]{justify-self:end;padding:11px 25px}.lm-desk-composer>button[data-action=refreshMessages]{justify-self:start;padding:6px 0;min-height:36px;background:transparent;border:0;font-size:12px;color:#bda7c9}
@media(min-width:1100px){.lm-author-book{min-height:210px}.lm-author-cover{width:104px}.lm-author .lm-settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.lm-settings-grid .lm-panel:last-child{grid-column:auto}}
@media(max-width:900px){.lm-author-books{grid-template-columns:1fr}.lm-editor-grid{grid-template-columns:minmax(0,1fr) 205px}.lm-desk-frame{grid-template-columns:152px minmax(0,1fr)}.lm-desk-main{padding-left:24px}.lm-desk-nav{padding-right:12px}.lm-editor-actions{flex-wrap:wrap}}
@media(max-width:680px){.lm-author .lm-phone{padding:0 18px}.lm-desk-header{height:72px;padding:0 2px}.lm-desk-label{margin-left:6px;padding-left:12px}.lm-desk-frame{display:block}.lm-desk-nav{position:sticky;top:0;z-index:4;flex-direction:row;padding:10px 0;background:#19181ef5;border:0;border-bottom:1px solid var(--lm-line);justify-content:space-between;backdrop-filter:blur(12px)}.lm-desk-nav button{font-size:11px;gap:6px;padding:10px 8px;min-height:42px}.lm-desk-nav svg{width:17px!important;height:17px!important}.lm-nav-note{display:none}.lm-desk-main{padding:26px 0 0}.lm-page-heading h1{font-size:34px}.lm-page-heading{gap:12px;align-items:flex-start}.lm-page-heading>button{font-size:12px;padding:9px 12px;gap:6px}.lm-page-heading>button svg{width:16px!important}.lm-page-heading p{font-size:12px}.lm-library-toolbar{flex-direction:column;align-items:stretch;gap:14px}.lm-library-search{max-width:none}.lm-tabs{align-self:flex-start}.lm-author-book{padding:18px;gap:18px}.lm-author-book-info h2{font-size:25px}.lm-settings-grid,.lm-editor-grid{grid-template-columns:1fr}.lm-settings-grid .lm-panel:last-child{grid-column:auto}.lm-editor-grid aside{display:grid;grid-template-columns:90px minmax(0,1fr);gap:14px}.lm-editor-grid aside>*:not(.lm-editor-cover){grid-column:2}.lm-editor-grid aside .lm-editor-cover{grid-row:1/3;height:130px}.lm-editor-grid aside .lm-divider{display:none}.lm-editor-grid .lm-panel{padding:18px}.lm-editor-actions{gap:10px}.lm-editor-actions>div{width:100%;justify-content:flex-end}.lm-editor-actions button{padding:9px 12px;font-size:12px}.lm-login-frame{margin-top:0}.lm-login-frame .lm-heading,.lm-login-frame .lm-pad{padding-left:6px;padding-right:6px}.lm-conversation-heading h1{font-size:29px}.lm-desk-footer{margin-top:16px}}
@media(max-width:360px){.lm-private-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lm-home-welcome{grid-template-columns:minmax(0,1fr) 84px}.lm-welcome-portrait{width:84px;height:118px}.lm-home-welcome h1{font-size:27px}.lm-desk-label{display:none}.lm-author-book{gap:12px;padding:14px}.lm-author-cover{width:80px}}
@media(prefers-reduced-motion:reduce){.lm-phone *{transition:none!important;animation:none!important}}
.lm-page-heading>div{flex:1;min-width:0}
.lm-phone .lm-page-heading>button,.lm-phone .lm-editor-actions button,.lm-phone .lm-author-book-info .lm-secondary,.lm-phone .lm-desk-composer>button[data-action=send]{width:auto}
.lm-phone{box-sizing:border-box}
.lm-phone .lm-writing{height:50dvh;min-height:320px}
.lm-private-cover .lm-cover-placeholder{font:17px/1.35 Georgia,serif;overflow-wrap:anywhere;text-align:center;padding:10px}

/* Conversation layout: history scrolls independently of the composer. */
.lm-conversation-open{height:100dvh;overflow:hidden}
.lm-conversation-open .lm-phone{height:100%;min-height:0}
.lm-conversation-open .lm-app{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden}
.lm-conversation-open .lm-topbar{flex:0 0 auto;min-height:58px;height:58px}
.lm-conversation-open .lm-error:empty{display:none}
.lm-conversation-open .lm-error:not(:empty){flex:0 0 auto;margin:0;padding:8px 18px;font-size:12px}
.lm-chat{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:800px;margin:0 auto}
.lm-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 18px;flex:0 0 auto}
.lm-chat-toolbar h1{font-size:25px;margin:0 0 5px;letter-spacing:-.4px}
.lm-chat-toolbar p{font-size:11px;color:var(--lm-muted);line-height:1.4}
.lm-chat-actions{display:flex;gap:3px;align-items:center;flex-shrink:0}
.lm-chat-actions button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:42px;border-radius:10px;font-size:11px}
.lm-chat-actions button:hover{background:#ffffff08}
.lm-chat-actions svg{width:17px!important;height:17px!important}
.lm-chat>.lm-privacy{margin:0 18px 10px;padding:10px 12px;flex:0 0 auto;max-height:45%;overflow:auto;border-radius:12px}
.lm-chat>.lm-privacy summary{min-height:24px;font-size:12px;display:list-item}
.lm-privacy-fields{display:grid;gap:12px;padding-top:12px}
.lm-chat .lm-privacy .lm-label{margin:0;font-size:12px}
.lm-chat .lm-privacy .lm-field{padding:10px;min-height:44px;font-size:13px}
.lm-chat .lm-privacy .lm-small{font-size:11px;line-height:1.6}
.lm-chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;overflow-anchor:none;padding:6px 18px 18px;scrollbar-width:thin}
.lm-chat-log:focus-visible{outline:1px solid var(--lm-blue);outline-offset:-2px}
.lm-phone .lm-chat .lm-messages{padding:0;max-width:none;width:100%;margin:0;gap:12px}
.lm-phone .lm-chat .lm-message{max-width:88%;min-width:170px;padding:12px;border:1px solid var(--lm-line);border-radius:15px 15px 15px 4px;align-self:flex-start}
.lm-phone .lm-chat .lm-message.lm-mine{align-self:flex-end;border-radius:15px 15px 4px 15px}
.lm-message-meta{display:flex;gap:14px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.lm-message-meta>span{margin:0;font-size:11px;font-weight:600}
.lm-message-meta small{font-size:10px;line-height:1.5;opacity:.8;margin:0}
.lm-message-text{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px!important}
.lm-phone .lm-reveal{-webkit-tap-highlight-color:transparent;position:relative;overflow:hidden;transition:background-color .2s,border-color .2s;touch-action:pan-y}
.lm-phone .lm-reveal>span{color:inherit;display:block;margin:0;white-space:pre-wrap;font-size:13px;line-height:1.6}
.lm-phone .lm-reveal .lm-reveal-hint{font-size:10px;color:var(--lm-muted);margin:4px 0 0}
.lm-phone .lm-reveal .lm-hold-track{display:block;width:100%;height:3px;overflow:hidden;background:#ffffff10;border-radius:8px;margin-top:10px}
.lm-phone .lm-reveal .lm-hold-fill{display:block;margin:0;height:100%;background:var(--lm-blue);transform:scaleX(0);transform-origin:left}
.lm-phone .lm-reveal.lm-holding .lm-hold-fill{animation:lm-fill var(--lm-hold-duration,800ms) linear forwards}
.lm-phone .lm-reveal.lm-latched{border-color:var(--lm-blue)}
.lm-reveal-text{animation:lm-text-in .18s ease-out}
@keyframes lm-fill{to{transform:scaleX(1)}}
@keyframes lm-text-in{from{opacity:0}to{opacity:1}}
.lm-chat-composer{flex:0 0 auto;padding:10px 18px max(10px,env(safe-area-inset-bottom));border-top:1px solid var(--lm-line);background:var(--lm-bg)}
.lm-chat-timer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.lm-chat-timer label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--lm-muted)}
.lm-chat-timer select.lm-field{width:auto;min-height:36px;padding:6px 9px;border-radius:9px;font-size:12px;margin:0}
.lm-chat-timer>span{font-size:10px;color:var(--lm-muted)}
.lm-chat-input{display:flex;align-items:end;gap:9px}
.lm-chat-input textarea.lm-field{flex:1;min-width:0;min-height:48px;height:64px;max-height:120px;resize:vertical;padding:12px;font-size:14px;border-radius:14px}
.lm-chat-input button.lm-primary{width:46px;height:46px;min-height:46px;flex:0 0 46px;border-radius:50%;padding:0;display:grid;place-items:center}
.lm-chat-note{font-size:10px;color:var(--lm-muted);margin-top:6px!important;text-align:center}
.lm-conversation-open.lm-author .lm-desk-header{flex:0 0 64px;height:64px}
.lm-conversation-open.lm-author .lm-desk-frame{flex:1;min-height:0;overflow:hidden}
.lm-conversation-open.lm-author .lm-desk-main{min-height:0;padding-top:12px;display:flex;flex-direction:column;overflow:hidden}
.lm-conversation-open.lm-author .lm-desk-footer{display:none}
.lm-conversation-open.lm-author .lm-desk-main>.lm-panel{flex:0 0 auto;margin:0 18px 8px;padding:10px;font-size:12px}
.lm-conversation-open.lm-author .lm-desk-main>.lm-panel h2{font-size:17px}
@media(max-width:680px){
 .lm-conversation-open.lm-author .lm-phone{padding:0 12px}
 .lm-conversation-open.lm-author .lm-desk-header{flex-basis:52px;height:52px}
 .lm-conversation-open.lm-author .lm-desk-frame{display:flex;flex-direction:column}
 .lm-conversation-open.lm-author .lm-desk-nav{flex:0 0 auto;padding:4px 0;position:static}
 .lm-conversation-open.lm-author .lm-desk-main{flex:1;padding:4px 0 0}
 .lm-author .lm-chat-toolbar,.lm-author .lm-chat-log,.lm-author .lm-chat-composer{padding-left:6px;padding-right:6px}
 .lm-author .lm-chat>.lm-privacy{margin-left:6px;margin-right:6px}
 .lm-chat-toolbar h1{font-size:21px}
}
@media(max-height:530px){.lm-chat-toolbar{padding-top:2px;padding-bottom:2px}.lm-chat-note,.lm-chat-timer>span{display:none}.lm-chat-input textarea.lm-field{height:48px}.lm-chat>.lm-privacy{margin-bottom:4px;padding-top:5px;padding-bottom:5px}.lm-conversation-open .lm-topbar{height:48px;min-height:48px}}
@media(prefers-reduced-motion:reduce){.lm-phone .lm-reveal{transition:none}.lm-phone .lm-reveal.lm-holding .lm-hold-fill{animation:none;transform:scaleX(1);opacity:.4}.lm-reveal-text{animation:none}}

/* Shared conversation controls: identical spacing in Reader and Desk. */
.lm-message-meta{gap:8px;align-items:center;flex-wrap:wrap}.lm-message-meta>small{flex:1;min-width:90px}.lm-message-more{margin-left:auto;display:grid;place-items:center;width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:transparent;color:var(--gold,#d5bd8e);padding:10px}.lm-message-more:hover{background:#ffffff0d}.lm-message-stamp{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:var(--muted,#b3a9b7)}.lm-message{transition:transform .16s ease;touch-action:pan-y}.lm-message.lm-swipe-ready{box-shadow:inset 3px 0 var(--gold,#d5bd8e)}
.lm-compose-context{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:10px;border-left:2px solid var(--gold,#d5bd8e);background:#ffffff07;border-radius:0 10px 10px 0;font-size:13px}.lm-compose-context small{display:block;margin-top:3px;color:var(--muted,#b3a9b7);font-size:11px}.lm-compose-context button{min-width:44px;min-height:44px;background:transparent;border:0;color:inherit}.lm-message-quote{margin:8px 0;padding:8px 12px;border-left:2px solid var(--gold,#d5bd8e);opacity:.8;font-size:13px;white-space:pre-wrap}
.lm-action-sheet{position:fixed;inset:auto 0 0;margin:0 auto;width:min(100%,520px);max-height:80dvh;box-sizing:border-box;border:1px solid #c4b49444;border-bottom:0;border-radius:24px 24px 0 0;padding:16px 22px max(24px,env(safe-area-inset-bottom));background:#191720;color:#eee7dc;box-shadow:0 -20px 80px #0008}.lm-author .lm-action-sheet{background:#081e2c}.lm-action-sheet::backdrop{background:#0008;backdrop-filter:blur(4px)}.lm-action-sheet h2{font-size:22px;margin:12px 0 4px}.lm-action-sheet>button{display:flex;align-items:center;gap:16px;text-align:left;width:100%;min-height:64px;padding:14px 10px;border:0;border-top:1px solid #ffffff12;color:inherit;background:transparent;font-size:16px}.lm-action-sheet button small{display:block;margin-top:5px;font-size:12px;color:#b9b3bd}.lm-action-sheet [data-close-sheet]{justify-content:center;margin-top:8px;min-height:48px;border-radius:14px;background:#ffffff09}.lm-sheet-handle{width:36px;height:4px;border-radius:9px;background:#ffffff30;margin:auto}
.lm-alert-inline{display:flex;align-items:center;gap:8px;padding:9px 12px;margin:0 0 8px;width:100%;min-height:40px;border:1px solid #ffffff12;background:#ffffff05;border-radius:12px;color:var(--muted,#b3a9b7);font-size:12px;text-align:left}.lm-alert-inline svg{width:16px;height:16px}.lm-alert-inline span{flex:1}.lm-alert-status{border:1px solid #b4c8b044;border-radius:16px;padding:16px;background:#8cbb9b0b}.lm-alert-status[data-tone="warning"]{border-color:#c8a76b70;background:#c8a76b0b}.lm-alert-status strong{display:block;font-size:16px}.lm-alert-status p{margin:8px 0 0!important;font-size:13px;line-height:1.5}.lm-alert-feedback{padding:12px 14px;background:#8abf9d16;border-radius:12px;line-height:1.5;font-size:14px}.lm-alert-feedback:empty{display:none}.lm-alert-help summary{padding:12px 0;cursor:pointer}.lm-alert-help p{font-size:13px;line-height:1.6}.lm-alert-settings-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.lm-reading-settings .lm-alert-times{min-width:0}.lm-chat-composer textarea{scrollbar-width:thin}
@media(prefers-reduced-motion:no-preference){.lm-action-sheet[open]{animation:lm-sheet-in .2s ease-out}@keyframes lm-sheet-in{from{transform:translateY(35px);opacity:0}to{transform:none;opacity:1}}}

.lm-reaction-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:18px 0 8px}.lm-reaction-panel button{display:grid;place-items:center;min-width:44px;min-height:48px;border:1px solid transparent;border-radius:14px;background:#ffffff08;font-size:25px;line-height:1.2}.lm-reaction-panel button[aria-pressed=true]{border-color:var(--gold,#d5bd8e);background:#c7b6d322}.lm-reactions{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.lm-reaction-chip{display:flex;align-items:center;justify-content:center;gap:5px;min-width:40px;min-height:34px;border:1px solid #ffffff20;border-radius:20px;background:#0d101d88;color:inherit;font-size:19px;padding:5px 10px}.lm-reaction-chip small{font-size:11px}.lm-reaction-chip.lm-your-reaction{border-color:var(--gold,#d5bd8e)}

.lm-chat-tools{flex:none}.lm-chat-tools[open]{max-height:45dvh;overflow:auto}.lm-compose-tools{display:flex;gap:6px;flex-wrap:wrap;align-items:center}.lm-compose-tools button{font-size:12px;padding:8px 10px;min-height:40px}.lm-compose-tools .lm-label{flex:1 1 45%;min-width:160px}.lm-compose-tools input{min-width:0}.lm-chat-composer textarea{max-height:35dvh;resize:vertical}.lm-chat-log [hidden]{display:none!important}.lm-message [data-extra]{font-size:12px;min-height:36px;padding:6px 10px;margin-top:6px}.lm-extra-dialog{max-height:80dvh;overflow:auto}.lm-extra-dialog img{display:block;max-width:100%;max-height:55dvh;object-fit:contain}.lm-extra-dialog audio{width:100%;max-width:100%}.lm-extra-dialog dt{color:var(--muted,#b5a9bc);margin-top:10px}.lm-extra-dialog dd{margin:2px 0 10px}.lm-extra-dialog p{margin:14px 0}.lm-quick-pick{display:flex;align-items:center;gap:5px;min-height:44px}.lm-unread-divider{padding:5px 0 12px;font-size:12px;letter-spacing:.04em;color:#dcc3e6}.lm-star-label{display:block;color:#dcc891}.lm-jump-highlight{outline:2px solid #d6b878;outline-offset:3px}.lm-chat-actions button{display:flex;align-items:center;gap:4px;min-height:44px}.lm-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.lm-chat-timer{flex-wrap:wrap}.lm-action-sheet [hidden]{display:none!important}
.lm-author .lm-desk-main{min-width:0}.lm-author .lm-chat{width:100%;max-width:1000px;margin-inline:auto}.lm-author .lm-message{max-width:min(88%,650px)}.lm-author .lm-chat-toolbar h1{font-size:clamp(21px,3vw,30px)}.lm-native-desk .lm-desk-frame{min-height:0}.lm-native-desk .lm-chat-log{overscroll-behavior:contain}.lm-native-desk .lm-desk-composer textarea{min-height:0}
@media(min-width:760px){.lm-native-desk .lm-desk-frame{display:grid;grid-template-columns:150px minmax(0,1fr);gap:16px}.lm-native-desk .lm-desk-nav{position:static;flex-direction:column;align-items:stretch}.lm-native-desk .lm-editor-grid{grid-template-columns:minmax(0,1fr) minmax(220px,.65fr)}.lm-native-desk .lm-desk-main{overflow:hidden}.lm-native-desk .lm-chat-composer{padding:12px 18px}.lm-native-desk .lm-chat-input textarea{font-size:17px}}
@media(max-width:759px){.lm-native-desk .lm-desk-frame{display:flex;flex-direction:column;gap:8px}.lm-native-desk .lm-desk-nav{display:flex;flex-direction:row;justify-content:space-around;position:static;order:2;flex:none;padding:4px}.lm-native-desk .lm-desk-nav button{flex:1;min-width:0;font-size:12px;padding:8px 4px;min-height:48px}.lm-native-desk .lm-nav-note{display:none}.lm-native-desk .lm-desk-main{order:1;min-height:0;flex:1}.lm-native-desk .lm-editor-grid{grid-template-columns:1fr}.lm-native-desk .lm-desk-header{padding:6px 10px;margin:0}.lm-native-desk .lm-chat-toolbar{padding:8px}.lm-native-desk .lm-chat-actions{gap:4px;flex-wrap:wrap}.lm-native-desk .lm-chat-actions button{padding:6px}.lm-native-desk .lm-desk-footer{display:none}.lm-native-desk .lm-chat-composer{padding:8px}.lm-native-desk .lm-chat-timer label{font-size:12px}}
@media(max-height:550px){.lm-native-desk .lm-desk-header,.lm-native-desk .lm-nav-note,.lm-native-desk .lm-desk-footer{display:none}.lm-native-desk .lm-chat-toolbar p{display:none}.lm-native-desk .lm-chat-tools:not([open]){font-size:12px}.lm-chat-composer textarea{max-height:40dvh}.lm-native-desk .lm-compose-tools button{padding:5px 8px;min-height:36px}}
@media(prefers-reduced-motion:reduce){.lm-jump-highlight{transition:none}}
.lm-compose-tools>button{width:auto;flex:0 0 auto}.lm-compose-tools{padding:0 0 8px}.lm-chat-toolbar{flex-wrap:wrap}.lm-chat-toolbar>div:first-child{min-width:0}.lm-chat-toolbar h1{overflow-wrap:normal;word-break:normal}.lm-alert-appearance{border:1px solid #766b7c66;border-radius:14px;padding:14px;margin:4px 0;display:grid;gap:12px}.lm-alert-appearance legend{padding:0 6px}.lm-alert-appearance .lm-motion-setting{margin:0}.lm-alert-appearance p{margin:0}.lm-action-sheet dl{display:grid;grid-template-columns:auto 1fr;gap:4px 18px}.lm-action-sheet dt,.lm-action-sheet dd{margin:4px 0}
@media(max-width:759px){.lm-native-desk .lm-chat-toolbar>div:first-child{flex:1 1 100%}.lm-native-desk .lm-chat-toolbar h1{font-size:23px;line-height:1.2;margin:0}.lm-native-desk .lm-chat-toolbar>div:first-child>p{display:none}.lm-native-desk .lm-chat-actions{width:100%;justify-content:flex-end}.lm-native-desk .lm-chat>.lm-privacy{margin:4px 8px}.lm-compose-tools>button{font-size:12px;min-height:36px;padding:7px 10px}.lm-native-desk .lm-message{max-width:95%}}

/* One closed menu leaves the conversation itself in view. */
.lm-chat{position:relative}.lm-chat-toolbar{flex:none;position:relative;z-index:8;gap:8px;padding:8px 14px;flex-wrap:nowrap}.lm-chat-toolbar>div:first-child:empty{display:none}.lm-chat-toolbar h1{margin:0;font-size:23px;line-height:1.2}.lm-chat-actions{gap:6px;align-items:center;flex-wrap:nowrap;margin-left:auto}.lm-chat-actions>button{min-width:36px;min-height:40px}.lm-chat-actions>button span{display:none}.lm-conversation-menu{position:static;max-width:180px;color:inherit}.lm-conversation-menu>summary{list-style:none;cursor:pointer;display:flex;gap:7px;align-items:center;min-height:44px;padding:4px 9px;border:1px solid #bca2c745;border-radius:12px;background:#21172480;font-size:13px}.lm-conversation-menu>summary::-webkit-details-marker,.lm-compose-tools>summary::-webkit-details-marker{display:none}.lm-conversation-menu>summary span{min-width:0}.lm-conversation-menu>summary small{display:block;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:10px;opacity:.8;margin-top:2px}.lm-conversation-menu>summary svg{width:16px;height:16px;flex:none}.lm-conversation-menu-panel{position:absolute;top:calc(100% + 2px);right:10px;z-index:30;width:min(370px,calc(100% - 20px));max-height:min(68dvh,600px);overflow:auto;padding:12px;box-sizing:border-box;border:1px solid #9980a15e;border-radius:16px;background:#211726;box-shadow:0 16px 45px #000a}.lm-conversation-menu-panel .lm-privacy{margin:8px 0!important;padding:12px}.lm-conversation-menu-panel .lm-chat-tools[open]{max-height:none}.lm-conversation-menu-panel .lm-alert-inline{width:100%;padding:12px 8px;text-align:left;white-space:normal}.lm-conversation-menu-panel .lm-alert-inline span{display:block!important}.lm-conversation-menu-panel .lm-secondary{width:100%;margin:6px 0}.lm-conversation-menu-panel .lm-reaction-panel{display:grid;grid-template-columns:repeat(4,1fr)}
.lm-chat-composer{position:relative;padding:8px 14px}.lm-chat-timer{display:flex;align-items:center;gap:8px;margin:0 0 7px;padding:0;flex-wrap:nowrap;min-height:38px}.lm-chat-timer>label{margin-left:auto;gap:6px;font-size:11px}.lm-chat-timer>span{display:none}.lm-chat-timer select{padding:6px 25px 6px 9px;min-height:36px;width:auto}.lm-compose-tools{display:block;position:static;padding:0;flex:none}.lm-compose-tools>summary{display:flex;gap:4px;align-items:center;list-style:none;cursor:pointer;min-height:38px;padding:0 12px;border-radius:12px;border:1px solid #bca2c745;background:#21172480;font-size:18px}.lm-compose-tools>summary span{font-size:12px}.lm-compose-menu{position:absolute;bottom:calc(100% - 3px);left:10px;z-index:35;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:min(320px,calc(100% - 20px));padding:12px;border:1px solid #9980a15e;border-radius:16px;background:#211726;box-shadow:0 -12px 40px #0008}.lm-compose-menu>button{margin:0!important;width:auto;min-height:44px;font-size:13px}.lm-chat-note{display:none}.lm-chat-input textarea{min-height:60px;max-height:32dvh}.lm-letter-fields{display:flex;gap:10px;margin:6px 0}.lm-letter-fields>*{flex:1;min-width:0}.lm-recording,.lm-attachment-ready{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:7px 0}.lm-recording>span,.lm-attachment-ready>span{margin-right:auto;font-size:12px}.lm-recording button,.lm-attachment-ready button{width:auto!important;min-height:36px;padding:6px 11px;margin:0!important;font-size:12px}.lm-recording time{font-variant-numeric:tabular-nums}.lm-recording{color:#f2b5c4}.lm-author .lm-conversation-menu-panel,.lm-author .lm-compose-menu{background:#0b2534;border-color:#456575}.lm-author .lm-conversation-menu>summary,.lm-author .lm-compose-tools>summary{background:#123342;border-color:#547380;color:#e0f2f7}.lm-author .lm-recording{color:#bce7eb}.lm-author .lm-conversation-menu-panel>.lm-secondary{width:100%}
@media(max-width:759px){.lm-native-desk .lm-chat-toolbar{flex-wrap:wrap;padding:8px}.lm-native-desk .lm-chat-toolbar>div:first-child{flex:1 1 100%}.lm-native-desk .lm-chat-toolbar h1{font-size:21px}.lm-native-desk .lm-chat-actions{width:auto;justify-content:flex-end;margin-left:auto}.lm-native-desk .lm-chat-toolbar>div:first-child{display:none}.lm-native-desk .lm-desk-header{flex:0 0 52px;height:52px;padding:5px 10px;margin:4px 0}.lm-native-desk .lm-chat-composer{padding:8px}.lm-chat-toolbar>div:first-child{min-width:0}.lm-chat-actions>button{padding:6px}.lm-chat-composer textarea{font-size:16px}}
@media(max-height:550px){.lm-conversation-open.lm-native-desk .lm-desk-header{display:none}.lm-chat-toolbar{padding-block:3px}.lm-chat-input textarea{min-height:44px}.lm-chat-timer{margin-bottom:3px}.lm-chat-composer{padding-block:5px}.lm-conversation-menu-panel{max-height:66dvh}.lm-compose-menu{max-height:60dvh;overflow:auto}.lm-conversation-menu>summary{min-height:36px}.lm-letter-fields{max-height:90px;overflow:auto}}
