.lm-passkey-heading .lm-access-symbol{margin-bottom:26px}.lm-access-symbol{width:66px;height:66px;border:1px solid #69547380;border-radius:22px;display:grid;place-items:center;background:radial-gradient(circle at 25% 10%,#81628d44,transparent 90%);color:#d6bfde}.lm-access-symbol svg{width:32px;height:32px}.lm-access-recovery{border-top:1px solid var(--lm-line);padding-top:22px;margin-top:8px}.lm-access-recovery summary{font-size:13px;color:#bda7c9;cursor:pointer}.lm-access-recovery .lm-stack{margin-top:18px}.lm-passkey-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.lm-passkey-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid var(--lm-line)}.lm-passkey-row strong{font-size:14px}.lm-passkey-row small{display:block;font-size:11px;color:#b0a1b8;margin-top:8px}.lm-passkey-row button{width:auto!important;font-size:12px;flex-shrink:0}.lm-passkey-finish{max-width:540px;margin:32px auto;padding:32px}.lm-passkey-finish h1{font-size:36px}.lm-passkey-finish p{color:#bcb2c4;font-size:14px;line-height:1.6}.lm-passkey-grid .lm-panel h2{font-size:27px}@media(max-width:800px){.lm-passkey-grid{grid-template-columns:1fr}.lm-passkey-finish{padding:22px}.lm-passkey-finish h1{font-size:30px}}

/* The native desk shares the responsive author layout. Fold resizing keeps the editor in place. */
.lm-native-desk .lm-desk-main{min-width:0}.lm-native-desk .lm-field{font-size:max(16px,1em)}.lm-native-desk .lm-desk-nav button{min-height:48px}.lm-native-desk .lm-message{overflow-wrap:anywhere}.lm-native-desk .lm-desk-composer textarea{min-height:110px}.lm-native-desk .lm-passkey-finish{margin-top:12px}@media(min-width:700px) and (max-width:1050px){.lm-native-desk .lm-editor-grid{grid-template-columns:minmax(0,1fr) 230px}.lm-native-desk .lm-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:699px){.lm-native-desk .lm-editor-grid,.lm-native-desk .lm-settings-grid{grid-template-columns:1fr}.lm-native-desk .lm-desk-header{padding-top:12px}.lm-native-desk .lm-desk-composer{padding-bottom:20px}}

/* Moonlit ocean. Shared by the author website and companion only. */
html:has(.lm-author), body.lm-author { background: #061522; }
body.lm-author {
  background:
    radial-gradient(ellipse at 100% 0%, #123e575c, transparent 55%),
    radial-gradient(ellipse at 0% 55%, #10636a26, transparent 60%),
    #061522;
  isolation: isolate;
}
.lm-author .lm-phone {
  --lm-bg: #061522;
  --lm-surface: #102c3b;
  --lm-card: #123444;
  --lm-text: #e8f3f6;
  --lm-muted: #a6becb;
  --lm-line: #294653;
  --lm-gold: #b6e9eb;
  --lm-purple: #8de4dd;
  --lm-blue: #a2d6f5;
  --muted: #b6ced8;
  background: transparent;
  color: var(--lm-text);
  accent-color: #8de4dd;
}
.lm-author .lm-desk-header { border-bottom-color: #73cbd22e; }
.lm-author .lm-brand { color: #e2f4fa; }
.lm-author .lm-brand > svg { color: #8de4dd; }
.lm-author .lm-desk-label,
.lm-author .lm-page-heading p,
.lm-author .lm-author-book-info p,
.lm-author .lm-passkey-finish p,
.lm-author .lm-library-end,
.lm-author .lm-draft-state,
.lm-author .lm-footer-note { color: #a6becb; }
.lm-author .lm-nav-note,
.lm-author .lm-desk-footer { color: #97b4c4; }
.lm-author .lm-eyebrow { color: #9acacb; }
.lm-author .lm-desk-nav button { color: #adc9d7; }
.lm-author .lm-desk-nav button[aria-current=page] {
  background: #133747;
  color: #b5f1eb;
  box-shadow: inset 0 0 0 1px #67c8cb30;
}
.lm-author .lm-phone .lm-primary {
  background: #8de4dd !important;
  color: #072c35 !important;
  box-shadow: 0 3px 16px #010c1844;
}
.lm-author .lm-phone .lm-primary:hover { background: #a7f1e9 !important; }
.lm-author .lm-phone .lm-secondary {
  border-color: #416573 !important;
  background: #123141;
  color: #d4eaf1;
}
.lm-author .lm-phone .lm-secondary:hover { background: #194052; }
.lm-author .lm-phone .lm-quiet,
.lm-author .lm-phone a,
.lm-author .lm-desk-composer > button[data-action=refreshMessages] { color: #a2dfdf; }
.lm-author .lm-phone .lm-quiet:hover { background: #8de4dd0d; }
.lm-author .lm-phone .lm-field {
  border-color: #365462;
  background: #0a202f;
  color: #e8f3f6;
  caret-color: #a7f1e9;
}
.lm-author .lm-field::placeholder,
.lm-author .lm-library-search input::placeholder { color: #95afbf; opacity: 1; }
.lm-author .lm-phone .lm-field:focus {
  border-color: #8de4dd;
  outline-color: #8de4dd35;
}
.lm-author .lm-phone button:focus-visible,
.lm-author .lm-reveal:focus-visible { outline-color: #a2d6f5; }
.lm-author .lm-panel,
.lm-author .lm-author-book {
  background: linear-gradient(145deg, #123444f5, #0c2433f5);
  border-color: #294653;
}
.lm-author .lm-access-symbol {
  color: #a1eee5;
  border-color: #589aa270;
  background: radial-gradient(circle at 25% 10%, #4ca9b235, #0e2b3d);
  box-shadow: 0 0 36px #38aeb510, inset 0 0 22px #68d1db08;
}
.lm-author .lm-section-icon { color: #a1e6e2; background: #8de4dd12; }
.lm-author .lm-tabs { background: #0c2535; }
.lm-author .lm-tabs button[aria-pressed=true] { color: #d4fbf4; background: #20515e; }
.lm-author .lm-library-search { border-color: #4a727e; color: #a1c8d4; }
.lm-author .lm-status-pill { background: #6ba9d026; color: #b9dcf2; }
.lm-author .lm-status-pill.lm-published { background: #6dcabd1a; color: #b1e9d6; }
.lm-author .lm-author-cover,
.lm-author .lm-cover-placeholder,
.lm-author .lm-draft-cover {
  background: linear-gradient(145deg, #276177, #123144);
  color: #d4edf2;
  border-left-color: #8de4dd22;
}
.lm-author .lm-editor-cover { border-color: #699da455; background: #8de4dd08; }
.lm-author .lm-editor-grid input::file-selector-button { background: #245464; color: #e4f7f7; }
.lm-author .lm-editor-actions { background: #061522f5; }
.lm-author .lm-local-drafts { border-color: #5ca7af44; background: #60bec50c; color: #b4dfe3; }
.lm-author .lm-phone .lm-message { background: #142f43; border-color: #33596b; }
.lm-author .lm-phone .lm-message.lm-mine { background: #15424c; border-color: #387078; }
.lm-author .lm-message span { color: #b5d8e4; }
.lm-author .lm-mine span { color: #bbefdf; }
.lm-author .lm-phone .lm-reveal { border-color: #7cb6c580; background: #04192630; }
.lm-author .lm-phone .lm-reveal.lm-revealed { background: #9ddeea0b; }
.lm-author .lm-privacy summary { color: #b2dfe0; }
.lm-author .lm-checkbox input { accent-color: #8de4dd; }
.lm-author .lm-update-card {
  border-color: #5aa5ae70;
  background: linear-gradient(130deg, #1c4b5b, #0d293c);
}
.lm-author .lm-phone .lm-error:not(:empty) {
  color: #f1c5b8;
  background: #382d32;
  border-color: #805b5666;
}
/* The author preview is ocean-toned; document images/PDF pages and uploaded covers retain their own colors. */
.lm-author .lm-reader-paper { --lm-paper: #e4eff0; --lm-ink: #18313d; }
.lm-author .lm-reader-paper.lm-night { --lm-paper: #0c2737; --lm-ink: #e4eff0; }
@media (max-width: 680px) {
  .lm-author .lm-desk-nav { background: #061522f5; }
}
/* One shared scenic header and palette, with quiet surfaces behind text. */
body.lm-author {background:radial-gradient(ellipse at 85% 0%,#173d5340,transparent 62%),#061522;color-scheme:dark;}
.lm-author .lm-desk-header {
  height:260px;margin-top:20px;padding:26px 28px;align-items:flex-end;gap:18px;
  border:1px solid #91c8df38;border-radius:22px;overflow:hidden;
  background:linear-gradient(0deg,#04121eeb 0%,#04121e4d 27%,transparent 60%),url("author-art/moonlit-ocean.webp") 65% 51% / cover;
  box-shadow:0 18px 48px #010a1338;
}
.lm-author .lm-desk-header .lm-brand{color:#eff9ff;text-shadow:0 2px 12px #020b13;font-size:32px;}
.lm-author .lm-desk-header .lm-brand>svg{color:#c1e9f5;}
.lm-author .lm-desk-label{color:#bdd7e3;border-left-color:#b2d1e052;}
.lm-author .lm-desk-header .lm-quiet{color:#edf9ff;background:#092131bf;border:1px solid #adcfe547;border-radius:12px;backdrop-filter:blur(10px);}
.lm-author .lm-login-frame{max-width:520px;margin:28px auto 40px;border:1px solid #89b4c632;border-radius:22px;background:linear-gradient(145deg,#102a3aee,#081d2bed);box-shadow:0 18px 45px #01091438;}
.lm-author .lm-login-frame .lm-desk-main{padding:8px 26px 0;}
.lm-author .lm-login-frame .lm-heading{padding:24px 0 10px;}
.lm-author .lm-login-frame .lm-pad{padding-left:0;padding-right:0;}
.lm-author .lm-access-recovery summary{color:#b9dbe8;}
.lm-author .lm-passkey-row small{color:#aac4d2;}
.lm-author .lm-chat-toolbar{background:linear-gradient(110deg,#122e41,#0a202f);border-radius:14px 14px 0 0;}
.lm-author .lm-chat-log{background:linear-gradient(#091c2bdd,#091c2bee),url("author-art/moonlit-ocean.webp") 65% 55% / cover;}
.lm-author .lm-chat-composer{background:#0b2332;}
.lm-author .lm-chat>.lm-privacy{border-color:#35576a;background:#0b2332;color:#c5dce8;}
.lm-author .lm-chat-actions button{border-color:#3a5d70;color:#cae5ef;background:#0a2233;}
.lm-author .lm-phone .lm-primary{background:#b4e4ec!important;color:#092836!important;}
.lm-author .lm-phone .lm-primary:hover{background:#d1f3f7!important;}
.lm-author .lm-reveal.lm-latched{border-color:#acdff0;}
.lm-author .lm-conversation-heading p{color:#b4cedb;}
.lm-conversation-open.lm-author .lm-desk-header{height:78px;flex:0 0 78px;margin-top:10px;padding:14px 22px;border-radius:16px;background-position:65% 36%;}
.lm-conversation-open.lm-author .lm-desk-header .lm-brand{font-size:28px;}
@media(max-width:680px){
  .lm-author .lm-desk-header{height:184px;margin-top:12px;padding:16px;border-radius:18px;background-position:65% 50%;}
  .lm-author .lm-desk-header .lm-brand{font-size:28px;gap:8px;}
  .lm-author .lm-desk-label{font-size:10px;margin-left:3px;padding-left:10px;}
  .lm-author .lm-desk-header .lm-quiet{padding:9px 10px;font-size:12px;min-height:42px;}
  .lm-author .lm-login-frame{margin:18px auto 24px;border-radius:18px;}
  .lm-author .lm-login-frame .lm-desk-main{padding:0 20px;}
  .lm-author .lm-login-frame .lm-heading{padding-top:24px;}
  .lm-author .lm-desk-nav{background:#061522f5;}
  .lm-conversation-open.lm-author .lm-desk-header{height:60px;flex-basis:60px;margin-top:6px;padding:8px 12px;}
  .lm-conversation-open.lm-author .lm-desk-header .lm-brand{font-size:25px;}
}
@media(max-height:530px){.lm-conversation-open.lm-author .lm-desk-header{height:48px;flex-basis:48px;margin-top:0;padding:4px 10px;border-radius:0 0 12px 12px;}}

/* 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}}
