/* LoreScroll accounts + Letters (Letters boards L-01..L-14). Loaded only when ACCOUNTS_ON=1. Every
   class here starts with la- so nothing in styles.css changes. Values from friends-inbox/_src/gen*.py. */
@font-face { font-family: "LaG"; src: url("fonts/Gelasio-Medium-latin.woff2?v=read35") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "LaGI"; src: url("fonts/Gelasio-Italic-latin.woff2?v=read44d") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "LaL"; src: url("fonts/ArchivoNarrow-SemiBold-subset.woff2?v=read35") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "LaLM"; src: url("fonts/ArchivoNarrow-Medium-latin.woff2?v=read33") format("woff2"); font-weight: 500; font-display: swap; }
:root { --la-red: #D27A6E; --la-cta: #C9675C; --la-cream: #f4ecd9; --la-mut: #a99f8c; --la-ink: #2a1a16; --la-paper: #efe4cc; --la-plate: #1a1014; --la-bg: #100607; --la-line: rgba(244,236,217,.14); --la-ease: cubic-bezier(.2,.7,.2,1); }

/* Type */
.la-lab { font: 600 12px/1.3 "LaL", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--la-red); }
.la-h1 { font: 500 28px/1.1 "LaG", Georgia, serif; color: var(--la-cream); margin: 2px 0 0; }
.la-h2 { font: 500 22px/1.2 "LaG", Georgia, serif; color: var(--la-cream); margin: 6px 0 10px; }
.la-h3 { font: 500 19px/1.25 "LaG", Georgia, serif; color: var(--la-cream); margin: 14px 0 6px; }
.la-it { font: italic 15px/1.4 "LaGI", Georgia, serif; margin: 0 0 12px; }
.la-mut { color: var(--la-mut); }
.la-small { font: 500 12.5px/1.4 "LaLM", system-ui, sans-serif; margin: 8px 0; }
.la-errc { color: #e59a8f !important; }
.la-sec { margin: 22px 0 8px; }
.la-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Buttons (44px touch targets) */
.la-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 14px 0 4px; border: 0; border-radius: 24px; background: var(--la-cta); color: var(--la-bg); font: 600 15px "LaL", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.la-cta:disabled { opacity: .5; cursor: default; }
.la-cta.la-danger { background: #8E2F3A; color: var(--la-cream); }
.la-ghost { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; background: none; border: 0; color: var(--la-red); font: 600 14px "LaL", system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.la-ghost:disabled { color: var(--la-mut); }
.la-ghost.la-left { justify-content: flex-start; width: auto; padding: 0; }
.la-ghost.la-right, .la-right { margin-left: auto; width: auto; flex: none; }
.la-back, .la-x, .la-more, .la-lmore, .la-show { min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--la-red); font: 600 14px "LaL", system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; padding: 0 4px; }
.la-more, .la-lmore { font-size: 20px; letter-spacing: 0; }
.la-lmore { color: #6b4a3e; min-height: 32px; margin: -8px -8px -8px auto; }
.la-mi { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 0 2px; background: none; border: 0; border-bottom: 1px solid var(--la-line); color: var(--la-cream); font: 500 17px "LaG", Georgia, serif; text-align: left; cursor: pointer; }
.la-mi.la-warn { color: #e59a8f; }
.la-mi.la-static { cursor: default; }
.la-misub { font: 500 13px "LaLM", system-ui, sans-serif; color: var(--la-mut); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.la-chev { color: var(--la-red); font: 600 18px "LaL", system-ui, sans-serif; margin-left: auto; }

/* Seal */
.la-seal { --seal: #9A4A3E; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: "LaG", Georgia, serif; font-weight: 500; color: var(--la-cream); line-height: 1;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal) 93%, transparent), var(--seal) 55%, #000a 140%);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.18), inset 2px 3px 6px rgba(255,255,255,.18), inset -3px -4px 8px rgba(0,0,0,.35), 0 2px 4px rgba(0,0,0,.5); }

/* Plate (enclosure) */
.la-plate { background: var(--la-plate); border: 1px solid var(--la-line); border-radius: 6px; padding: 10px; display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; }
.la-im { width: 64px; height: 80px; border-radius: 3px; flex: none; background: radial-gradient(circle at 50% 35%, #4a3330, #1d1215 70%) center / cover; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.la-im-n { font: 500 30px "LaG", Georgia, serif; color: var(--la-red); }
.la-play { width: 0; height: 0; border-left: 16px solid var(--la-cream); border-top: 10px solid transparent; border-bottom: 10px solid transparent; opacity: .85; }
.la-ptx { display: flex; flex-direction: column; min-width: 0; }
.la-pn { font: 600 11px "LaL", system-ui, sans-serif; letter-spacing: .1em; color: var(--la-red); text-transform: uppercase; margin-bottom: 4px; }
.la-pt { font: 500 19px/1.15 "LaG", Georgia, serif; color: var(--la-cream); overflow-wrap: anywhere; }
.la-encl { display: block; width: 100%; background: none; border: 0; padding: 0; margin: 8px 0; cursor: pointer; }
.la-plwrap { margin: 4px 0 10px; }
.la-enclrow { display: flex; gap: 8px; align-items: center; }
.la-enclrow .la-ghost { width: auto; flex: none; }

/* Drop */
#mail.la-mail { padding-top: calc(14px + var(--safe-t, 0px)); }
.la-drop { max-width: 560px; margin: 0 auto; }
.la-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-bottom: 10px; }
.la-ttop { position: sticky; top: -22px; z-index: 3; background: linear-gradient(#12090b 75%, transparent); padding-top: 6px; }
.la-tname { display: flex; align-items: center; gap: 8px; font: 500 18px "LaG", Georgia, serif; color: var(--la-cream); }
.la-qc { text-align: center; padding: 26px 10px; display: flex; flex-direction: column; align-items: center; }
.la-empty { text-align: center; padding: 40px 10px 10px; display: flex; flex-direction: column; align-items: center; }
.la-cta-in { max-width: 300px; }
.la-invite-btn { display: flex; align-items: center; width: 100%; min-height: 44px; margin-bottom: 6px; background: none; border: 1px dashed rgba(210,122,110,.45); border-radius: 22px; padding: 0 16px; color: var(--la-red); font: 600 14px "LaL", system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.la-rows { display: flex; flex-direction: column; }
.la-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 0; background: none; border: 0; border-bottom: 1px solid var(--la-line); color: var(--la-cream); text-align: left; cursor: pointer; }
.la-row-pick, .la-row-fr { min-height: 52px; }
.la-row-inv { cursor: default; }
.la-rowtx { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.la-nm { font: 500 17px "LaG", Georgia, serif; color: var(--la-cream); }
.la-ln { font: italic 14px/1.35 "LaGI", Georgia, serif; color: var(--la-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-rowr { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.la-dt { font: 500 12px "LaLM", system-ui, sans-serif; color: var(--la-mut); }
.la-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--la-red); }
.la-invurl { font: 500 14px "LaLM", system-ui, sans-serif; color: var(--la-cream); overflow-wrap: anywhere; }
.la-loading { padding: 30px 0; text-align: center; }

/* Letters */
.la-letters { display: flex; flex-direction: column; gap: 18px; padding: 8px 0 90px; }
.la-lwrap.la-theirs { margin-right: 46px; }
.la-lwrap.la-mine { margin-left: 46px; }
.la-letter { background: var(--la-paper) url("paper.png"); color: var(--la-ink); border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.55); padding: 12px 14px; }
.la-theirs .la-letter { transform: rotate(-.6deg); }
.la-mine .la-letter { transform: rotate(.6deg); }
.la-d { display: flex; align-items: center; font: 600 11px "LaL", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6b4a3e; }
.la-body { color: var(--la-ink); margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.la-letter .la-encl { margin: 8px 0 2px; }
.la-slab { margin-bottom: 6px; }
.la-env { position: relative; display: block; width: 100%; height: 150px; border: 0; padding: 0; cursor: pointer; border-radius: 3px; background: #eadfc6 url("paper.png"); box-shadow: 0 6px 18px rgba(0,0,0,.55); overflow: hidden; }
.la-flap { position: absolute; left: 0; right: 0; top: 0; height: 78px; background: linear-gradient(#ddd0b2, #e9dcc0); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: top; transition: transform 340ms var(--la-ease); filter: drop-shadow(0 2px 2px rgba(0,0,0,.2)); }
.la-fr { position: absolute; inset: 0; pointer-events: none; }
.la-frost .la-fr { background: linear-gradient(135deg, rgba(255,255,255,.35), rgba(220,230,240,.15) 40%, rgba(255,255,255,.3)); backdrop-filter: blur(1px); box-shadow: inset 0 0 30px rgba(255,255,255,.45); transition: opacity 340ms var(--la-ease); }
.la-sealat { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); transition: transform 340ms var(--la-ease), opacity 340ms; }
.la-cap { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font: 600 11px "LaL", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6b4a3e; }
.la-env:active .la-sealat { transform: translateX(-50%) scale(.94); }
/* Unseal: 0-180 press, 180-520 frost/seal/flap, 520-900 the letter rises (L-06). */
.la-unseal .la-sealat { animation: la-press 180ms var(--la-ease) forwards, la-sealoff 340ms 180ms var(--la-ease) forwards; }
.la-unseal .la-fr { animation: la-fade 340ms 180ms var(--la-ease) forwards; }
.la-unseal .la-flap { animation: la-flap 340ms 180ms var(--la-ease) forwards; }
.la-rise { animation: la-rise 380ms var(--la-ease) both; }
.la-xfade { animation: la-fade 200ms linear forwards; }
.la-xin { animation: la-in 200ms linear both; }
@keyframes la-press { to { transform: translateX(-50%) scale(.92); } }
@keyframes la-sealoff { from { transform: translateX(-50%) scale(.92); } to { transform: translateX(-50%) translateY(-14px) scale(1.08); opacity: 0; } }
@keyframes la-flap { to { transform: rotateX(180deg); opacity: .4; } }
@keyframes la-fade { to { opacity: 0; } }
@keyframes la-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes la-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .la-flap, .la-sealat, .la-fr { transition: none; } }
.la-replybar { position: sticky; bottom: 0; padding: 10px 0 4px; background: linear-gradient(transparent, #12090b 35%); }

/* Sheets */
.la-sheetwrap { position: fixed; inset: 0; z-index: 70; }
.la-sheetwrap[hidden] { display: none !important; }
.la-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity 200ms var(--la-ease); }
.la-sheetwrap.open .la-scrim { opacity: 1; }
.la-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; margin: 0 auto; max-width: 560px;
  background: #1a1014 url("paper.png"); background-blend-mode: soft-light; border-top: 1px solid rgba(210,122,110,.55); border-radius: 16px 16px 0 0; padding: 8px 18px calc(18px + env(safe-area-inset-bottom)); color: var(--la-cream);
  transform: translateY(100%); transition: transform 260ms var(--la-ease); font-family: "LaG", Georgia, serif; }
.la-sheetwrap.open .la-panel { transform: none; }
.la-page .la-panel { top: 0; max-height: none; border-radius: 0; border-top: 0; padding-top: calc(10px + env(safe-area-inset-top)); background: #12090b; }
.la-cardwrap .la-panel { bottom: auto; top: 50%; left: 16px; right: 16px; border-radius: 10px; border: 1px solid var(--la-line); transform: translateY(-46%) scale(.98); opacity: 0; transition: transform 220ms var(--la-ease), opacity 220ms; }
.la-cardwrap.open .la-panel { transform: translateY(-50%); opacity: 1; }
.la-page .la-grab, .la-cardwrap .la-grab { display: none; }
.la-grab { width: 38px; height: 4px; border-radius: 2px; background: rgba(244,236,217,.28); margin: 2px auto 6px; }
.la-shtop { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.la-tabsw { display: flex; gap: 6px; margin: 4px 0 12px; border-bottom: 1px solid var(--la-line); }
.la-tabsw button { flex: 1; min-height: 44px; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--la-mut); font: 600 14px "LaL", system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; }
.la-tabsw button.on { color: var(--la-cream); border-bottom-color: var(--la-red); }
.la-fl { display: block; font: 600 11px "LaL", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--la-mut); margin: 12px 0 4px; }
.la-inwrap { position: relative; display: flex; }
.la-in { width: 100%; min-height: 46px; background: rgba(0,0,0,.35); border: 1px solid var(--la-line); border-radius: 8px; color: var(--la-cream); font: 16px system-ui, sans-serif; padding: 0 12px; }
.la-in:focus { outline: 2px solid var(--la-red); outline-offset: 1px; }
.la-inwrap .la-show { position: absolute; right: 2px; top: 1px; font-size: 12px; }
.la-inwrap input[type=password], .la-inwrap input[type=text] { padding-right: 62px; }
.la-inurl { font-family: "LaLM", system-ui, sans-serif; margin-top: 8px; }
.la-hint { font: 500 12.5px "LaLM", system-ui, sans-serif; color: var(--la-mut); margin: 6px 0 0; }
.la-err { min-height: 18px; font: 500 13px/1.35 "LaLM", system-ui, sans-serif; color: #e59a8f; margin: 10px 0 0; }
.la-err:empty { margin: 0; min-height: 0; }
.la-note { font: italic 15px/1.4 "LaGI", Georgia, serif; color: var(--la-cream); background: rgba(210,122,110,.12); border-radius: 8px; padding: 10px 12px; margin: 12px 0 0; }
.la-cb { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font: 500 13.5px/1.4 "LaLM", system-ui, sans-serif; color: var(--la-cream); }
.la-cb input { width: 22px; height: 22px; flex: none; accent-color: var(--la-cta); }
.la-cb a { color: var(--la-red); }
.la-radio { display: flex; gap: 10px; align-items: center; min-height: 44px; font: 500 17px "LaG", Georgia, serif; }
.la-radio input { width: 20px; height: 20px; accent-color: var(--la-cta); }
.la-ts { margin-top: 10px; min-height: 0; }
.la-why { margin-top: 2px; }
.la-to { margin: 4px 0 8px; }
.la-paperbox { position: relative; background: var(--la-paper) url("paper.png"); border-radius: 2px; box-shadow: 0 6px 18px rgba(0,0,0,.55); padding: 10px 12px 24px; }
.la-ta { width: 100%; min-height: 128px; resize: none; background: transparent; border: 0; color: var(--la-ink); font: italic 16px/1.45 "LaGI", Georgia, serif; outline: none; }
.la-ta::placeholder { color: #8a6a5a; }
.la-count { position: absolute; right: 12px; bottom: 6px; font: 600 11px "LaL", system-ui, sans-serif; color: #6b4a3e; letter-spacing: .08em; }
.la-count.la-over { color: #7a2a2a; }
.la-bigseal { display: flex; justify-content: center; margin: 18px 0; }
.la-sws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.la-sw { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 8px 0; background: none; border: 1px solid transparent; border-radius: 10px; color: var(--la-mut); font: 600 12px "LaL", system-ui, sans-serif; letter-spacing: .08em; cursor: pointer; }
.la-sw.on { border-color: var(--la-red); color: var(--la-cream); }
.la-em { font-style: normal; color: var(--la-cream); overflow-wrap: anywhere; }

/* You */
.la-you { margin: 6px 0 14px; }
.la-yhead { display: flex; align-items: center; gap: 12px; padding: 6px 0 10px; }
.la-ywho { min-width: 0; }
.la-yname { font: 500 20px "LaG", Georgia, serif; color: var(--la-cream); overflow-wrap: anywhere; }

/* Toast */
.la-toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translate(-50%, 16px); z-index: 90; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  background: #1a1014; border: 1px solid var(--la-line); border-radius: 22px; padding: 8px 16px 8px 8px; color: var(--la-cream); font: italic 15px "LaGI", Georgia, serif; box-shadow: 0 8px 24px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity 200ms, transform 260ms var(--la-ease); }
.la-toast.on { opacity: 1; transform: translate(-50%, 0); }
.la-toast > span:only-child { padding-left: 8px; }

/* Signed: unread dot on the Drop tab (9px #D27A6E, 2px ring in the tab bar colour). */
#tabMail { position: relative; }
#tabMail .la-tdot { position: absolute; top: 5px; left: calc(50% + 8px); width: 13px; height: 13px; border-radius: 50%; background: #D27A6E; border: 2px solid #0e1426; box-sizing: border-box; pointer-events: none; }
body.watch #tabMail .la-tdot { border-color: transparent; }

/* Night-card Send sheet: the added first row. */
.ns-pill.la-ns-letter { font-weight: 600; }
/* create-account-visibility look L1-L5 (Artist, Oct 25 2026). No glow, motion or badge; taps >= 44px. */
.la-cv-card { margin: 16px 16px 8px; padding: 16px; background: #1A0C0E; border: 1px solid rgba(140, 49, 59, .6); border-radius: 12px; }
#you > .la-cv-card { margin-left: 0; margin-right: 0; }
.la-cv-kick { font: 400 11px/16px "Courier Prime", ui-monospace, monospace; color: #A8968C; text-transform: uppercase; letter-spacing: .08em; }
.la-cv-line { margin: 12px 0 0; font: 500 17px/24px "LaG", Georgia, serif; color: #F4ECD9; }
.la-cv-cta { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; margin: 16px 0 0; padding: 0 16px; border: 0; border-radius: 10px; background: #C9675C; color: #100607; font: 600 15px/20px "LaL", system-ui, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.la-cta.la-cv-cta { border-radius: 10px; min-height: 48px; letter-spacing: 0; text-transform: none; }
.la-cv-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0; padding: 0; background: none; border: 0; color: #D27A6E; font: 500 14px/20px "LaLM", system-ui, sans-serif; cursor: pointer; }
.la-cv-btns { width: 100%; max-width: 320px; margin: 16px auto 0; }
.la-cv-btns .la-cv-cta { margin-top: 0; }
.la-cv-h { font: 500 24px/30px "LaG", Georgia, serif; color: #F4ECD9; }
.la-ns-cv { display: block; width: 100%; min-height: 44px; margin: 0; padding: 12px 16px; background: none; border: 0; border-top: 1px solid rgba(244, 236, 217, .12); color: #D9CDB6; font: 500 15px/20px "LaLM", system-ui, sans-serif; text-align: center; cursor: pointer; }
.la-ns-cv-sub { font: 500 13px/18px "LaLM", system-ui, sans-serif; color: #A8968C; }
.ls-note-undo.ls-note-act { padding: 0 12px; font: 600 13px/18px "LaL", system-ui, sans-serif; color: #CC6E5F; }
/* L4b first-Keep slip (Artist, Oct 25): flush under the top bar, square top, hairline bottom + sides. */
.la-slip { position: fixed; z-index: 250; box-sizing: border-box; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 0 0 14px;
  background: rgba(16, 6, 7, .92); border: 1px solid #8C313B; border-top: 0; border-radius: 0 0 10px 10px; box-shadow: none;
  transform: translateY(-44px); opacity: 0; pointer-events: none; }
.la-slip.in { transform: none; opacity: 1; pointer-events: auto; transition: transform 220ms ease-out, opacity 220ms ease-out; }
.la-slip.out { transform: translateY(-44px); opacity: 0; transition: transform 180ms ease-in, opacity 180ms ease-in; }
.la-slip-ico { color: #C9675C; font-size: 13px; line-height: 18px; flex: none; }
.la-slip-msg { flex: 1 1 auto; min-width: 0; font: 500 14px/20px "LaLM", system-ui, sans-serif; color: #F4ECD9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-slip-act { flex: none; height: 43px; margin: 0; padding: 0 12px; background: none; border: 0; border-left: 1px solid rgba(140, 49, 59, .6); color: #CC6E5F; font: 600 14px/20px "LaL", system-ui, sans-serif; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .la-slip, .la-slip.in, .la-slip.out { transform: none; } .la-slip.in { transition: opacity 220ms; } .la-slip.out { transition: opacity 180ms; } }

/* read44y (nsfw-blur-switch.md B4): a flagged-image card travels as the plain plate with a hairline seal. */
.la-im.la-im-seal { position: relative; }
.la-im.la-im-seal::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border: 1px solid #8C313B; transform: rotate(45deg); }
