/* ============================================================
   LAYOUTS.CSS — 10 distinct interface concepts + chrome nav
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  .lm-layout-enter { animation: lm-fade-in .35s ease; }
  .lm-switching { opacity: .6; transition: opacity .2s; }
  @keyframes lm-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .lm-layout-enter, .lm-switching { animation: none; transition: none; }
}

body.lm-custom-chrome .cm-sidebar { display: none !important; }
body.lm-custom-chrome .cm-topbar { display: none !important; }
body.lm-custom-chrome .cm-hamburger { display: none !important; }
body.lm-custom-chrome #cm-main { padding: 0; max-width: none; margin: 0; }
body.lm-view-inner-page #cm-main { padding: 0; }

body.lm-uses-sidebar .cm-topbar { border-bottom: 1px solid var(--clr-border); }
.lm-sidebar-chrome-slot { margin-bottom: 8px; position: relative; z-index: 2; }
.lm-sidebar-chrome-slot .lm-layout-dropdown { width: 100%; }
.lm-sidebar-chrome-slot .lm-layout-dropdown-toggle { width: 100%; justify-content: center; }
.lm-sidebar-chrome-slot .lm-layout-dropdown-menu {
  top: auto;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
}
.lm-layout-dropdown-fallback {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 500;
  max-width: min(240px, calc(100vw - 32px));
}
body.lm-layout-slot-mounted .lm-layout-dropdown-fallback { display: none; }

.lm-page-shell { min-height: 100%; position: relative; }
.lm-chrome-body { padding: 24px 20px 48px; }
.lm-chrome-body.lm-home-body { padding-bottom: 80px; }
body[data-layout="cards"] .lm-chrome-body { padding-bottom: 100px; }
body[data-layout="cinematic"] .lm-chrome-body { padding: 0; }

.lm-nav-item {
  display: inline-flex; align-items: center; gap: 6px;
  border: none; background: none; cursor: pointer;
  font: inherit; transition: opacity .15s, background .15s, transform .12s;
}
.lm-nav-item--active { font-weight: 800; }
.lm-chrome-extras { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.lm-layout-dropdown { position: relative; }
.lm-layout-dropdown-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--clr-border); background: var(--clr-card);
  font-size: .78rem; font-weight: 700; color: var(--clr-text);
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  max-width: min(220px, 42vw);
}
.lm-layout-dropdown-toggle:hover,
.lm-layout-dropdown--open .lm-layout-dropdown-toggle {
  border-color: var(--clr-primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.lm-layout-dropdown-icon {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--clr-primary-light); font-size: .95rem; flex-shrink: 0;
}
.lm-layout-dropdown-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-layout-dropdown-chevron { font-size: .65rem; opacity: .55; }
.lm-layout-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: min(320px, calc(100vw - 24px)); max-height: min(420px, 70vh);
  overflow-y: auto; padding: 8px; border-radius: 14px;
  border: 1px solid var(--clr-border); background: var(--clr-card);
  box-shadow: 0 16px 40px rgba(0,0,0,.14); z-index: 300;
}
.lm-layout-dropdown-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 10px 12px; border: none; border-radius: 10px;
  background: transparent; text-align: left; cursor: pointer;
}
.lm-layout-dropdown-item:hover { background: var(--clr-primary-light); }
.lm-layout-dropdown-item--active {
  background: var(--clr-primary-light);
  box-shadow: inset 0 0 0 1px var(--clr-primary);
}
.lm-layout-dropdown-item-icon {
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--lm-preview, var(--clr-primary-light));
  font-size: 1rem; flex-shrink: 0;
}
.lm-layout-dropdown-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lm-layout-dropdown-item-text strong { font-size: .82rem; font-weight: 700; }
.lm-layout-dropdown-item-text span { font-size: .68rem; color: var(--clr-text3); line-height: 1.35; }

.lm-cust-layout-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px;
}
.lm-cust-layout-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border: 2px solid var(--clr-border); border-radius: 10px;
  background: var(--clr-bg); font-size: .72rem; font-weight: 600;
}
.lm-cust-layout-card.active { border-color: var(--clr-primary); }

body[data-layout="warm-welcome"] .cm-sidebar {
  background: linear-gradient(180deg, var(--clr-sidebar, #fff) 0%, rgba(255,245,248,.95) 100%);
  border-right: 1px solid rgba(212,115,138,.15);
}
body[data-layout="warm-welcome"] .cm-sidebar-logo h2 {
  font-family: var(--font-display); font-style: italic; color: var(--clr-primary);
}
body[data-layout="warm-welcome"] .cm-sidebar-link,
body[data-layout="warm-welcome"] .cm-nav-item {
  border-radius: 999px; border-left: none; padding-left: 14px;
}
body[data-layout="warm-welcome"] .cm-sidebar-link.active,
body[data-layout="warm-welcome"] .cm-nav-item.active {
  background: rgba(212,115,138,.14); color: var(--clr-primary);
}

.lm-chrome--magazine {
  background: #111827; color: #fff; position: sticky; top: 0; z-index: 120;
  border-bottom: 4px solid #fff;
}
.lm-mag-nav-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px 10px; gap: 16px;
}
.lm-mag-nav-kicker {
  display: block; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .18em; opacity: .55;
}
.lm-mag-nav-brand strong {
  font-family: var(--font-display); font-size: 1.1rem;
  font-weight: 900; letter-spacing: -.02em; text-transform: uppercase;
}
.lm-mag-nav-links {
  display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lm-mag-nav-link {
  padding: 8px 16px; color: rgba(255,255,255,.72);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.lm-mag-nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.lm-mag-nav-link.lm-nav-item--active { color: #fff; border-bottom: 2px solid #fff; }
.lm-mag-nav-sections { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 20px 14px; }
.lm-mag-sec-chip {
  padding: 5px 12px; border-radius: 4px; font-size: .74rem; font-weight: 600;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.85);
}
.lm-mag-sec-chip.lm-nav-item--active { background: #fff; color: #111827; }
.lm-chrome--magazine .lm-layout-dropdown-toggle {
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); color: #fff;
}

.lm-home--magazine { max-width: 1100px; margin: 0 auto; }
.lm-mag-header { padding: 32px 0 24px; border-bottom: 3px solid var(--clr-text); margin-bottom: 28px; }
.lm-mag-issue { font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; color: var(--clr-text3); margin-bottom: 8px; }
.lm-mag-title {
  font-family: var(--font-display); font-size: clamp(2.4rem, 8vw, 4.5rem);
  font-weight: 900; line-height: .95; letter-spacing: -.03em; margin-bottom: 12px;
}
.lm-mag-deck { font-size: 1.05rem; color: var(--clr-text2); max-width: 540px; line-height: 1.55; }
.lm-mag-grid { display: grid; grid-template-columns: 1fr 280px; gap: 24px; }
.lm-mag-lead { grid-column: 1; position: relative; cursor: pointer; border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; }
.lm-mag-lead img { width: 100%; height: 100%; object-fit: cover; }
.lm-mag-lead-cap {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 24px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff;
}
.lm-mag-kicker { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.lm-mag-lead-cap h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; margin: 6px 0; }
.lm-mag-sidebar { grid-column: 2; grid-row: 1 / 3; }
.lm-mag-sidebar h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.lm-mag-toc { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.lm-mag-toc-item {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px;
  border: none; background: none; border-radius: 8px; font-size: .84rem; font-weight: 600;
  text-align: left; width: 100%; cursor: pointer;
}
.lm-mag-toc-item:hover { background: var(--clr-primary-light); }
.lm-mag-toc-item em { margin-left: auto; font-style: normal; font-size: .72rem; color: var(--clr-text3); }
.lm-mag-spread { grid-column: 1; }
.lm-mag-section-head {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  border-bottom: 2px solid var(--clr-text); padding-bottom: 8px; margin-bottom: 16px;
}
.lm-mag-asymmetric {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 10px;
}
.lm-mag-photo { overflow: hidden; border-radius: 4px; cursor: pointer; position: relative; margin: 0; }
.lm-mag-photo--1 { grid-row: 1 / 3; }
.lm-mag-photo img { width: 100%; height: 100%; object-fit: cover; }
.lm-mag-photo figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px; background: rgba(0,0,0,.55); color: #fff; font-size: .76rem;
}
.lm-mag-columns { grid-column: 1 / -1; margin-top: 8px; }
.lm-mag-columns h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }
.lm-mag-column-item {
  display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--clr-border); cursor: pointer;
}
.lm-mag-column-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.lm-mag-column-item span { display: block; font-size: .76rem; color: var(--clr-text3); margin-top: 2px; }
.lm-mag-sections { margin-top: 36px; }
.lm-mag-sections h2 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 16px; }

.lm-chrome--timeline { position: fixed; top: 16px; right: 16px; z-index: 200; }
.lm-tl-header-bar { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.lm-tl-header-bar .lm-chrome-extras { margin-left: 0; }
.lm-tl-menu-btn {
  width: 48px; height: 48px; border-radius: 50%; border: none;
  background: #5b7e57; color: #fff; font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(91,126,87,.4);
}
.lm-tl-float-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: min(280px, calc(100vw - 32px));
  background: var(--clr-card); border-radius: 16px;
  border: 1px solid var(--clr-border); box-shadow: 0 16px 48px rgba(0,0,0,.15);
  padding: 16px; z-index: 210;
}
.lm-tl-float-title {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--clr-text3); margin-bottom: 10px; font-weight: 700;
}
.lm-tl-float-link {
  display: flex; width: 100%; padding: 10px 12px; border-radius: 10px;
  font-size: .84rem; font-weight: 600; text-align: left;
}
.lm-tl-float-link:hover { background: var(--clr-primary-light); }
.lm-tl-float-link.lm-nav-item--active { background: rgba(91,126,87,.15); color: #5b7e57; }
.lm-tl-dropdown { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--clr-border); }

.lm-home--timeline { --tl-accent: #5b7e57; max-width: 760px; margin: 0 auto; }
.lm-tl-header { text-align: center; margin-bottom: 40px; padding-top: 20px; }
.lm-tl-header h1 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; color: #5b7e57; }
.lm-tl-born { font-size: .88rem; color: var(--clr-text3); margin-top: 8px; }
.lm-tl-spine { position: relative; max-width: 720px; margin: 0 auto 40px; padding: 0 20px; }
.lm-tl-spine::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(#5b7e57, #6aab8e); transform: translateX(-50%); border-radius: 3px;
}
.lm-tl-node { position: relative; display: flex; align-items: flex-start; margin-bottom: 32px; }
.lm-tl-node--right { flex-direction: row-reverse; }
.lm-tl-node--right .lm-tl-card { text-align: right; }
.lm-tl-marker {
  position: absolute; left: 50%; top: 20px; width: 14px; height: 14px;
  background: #5b7e57; border: 3px solid var(--clr-bg); border-radius: 50%;
  transform: translateX(-50%); z-index: 1;
}
.lm-tl-card {
  width: calc(50% - 32px); background: var(--clr-card);
  border: 1px solid var(--clr-border); border-radius: var(--radius-md);
  padding: 12px; cursor: pointer;
}
.lm-tl-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.1); }
.lm-tl-card time { font-size: .72rem; font-weight: 700; color: #5b7e57; text-transform: uppercase; }
.lm-tl-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; margin: 8px 0; }
.lm-tl-card p { font-size: .84rem; color: var(--clr-text2); }
.lm-tl-empty { text-align: center; color: var(--clr-text3); padding: 40px; }

.lm-chrome--cards-bottom {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 150;
  display: flex; align-items: stretch; justify-content: space-around;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-top: 1px solid var(--clr-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.lm-cards-tab {
  flex: 1; flex-direction: column; gap: 2px; padding: 8px 4px;
  font-size: .62rem; font-weight: 700; color: var(--clr-text3); border-radius: 12px; max-width: 72px;
}
.lm-cards-tab .lm-nav-icon { font-size: 1.2rem; }
.lm-cards-tab.lm-nav-item--active { color: #6366f1; background: rgba(99,102,241,.1); }
.lm-chrome--cards-more {
  position: fixed; bottom: 72px; right: 16px; z-index: 140;
  display: flex; align-items: center; gap: 8px;
}
.lm-chrome--cards-more .lm-chrome-extras { margin-left: 0; }
.lm-cards-more-btn {
  padding: 8px 14px; border-radius: 50px; border: 1px solid var(--clr-border);
  background: var(--clr-card); font-size: .76rem; font-weight: 700;
}
.lm-cards-more-panel {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: var(--clr-card); border-radius: 14px; border: 1px solid var(--clr-border);
  padding: 10px; min-width: 180px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 4px;
}
.lm-cards-more-panel .lm-chrome-dropdown-slot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--clr-border); }
.lm-cards-more-panel .lm-layout-dropdown { width: 100%; }
.lm-cards-more-panel .lm-layout-dropdown-toggle { width: 100%; justify-content: center; }
.lm-cards-more-panel .lm-nav-item {
  width: 100%; padding: 10px 12px; border-radius: 10px; font-size: .82rem; text-align: left;
}
.lm-cards-more-panel .lm-nav-item:hover { background: var(--clr-primary-light); }

.lm-home--cards { text-align: center; max-width: 600px; margin: 0 auto; }
.lm-cards-header h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 6px; color: #6366f1; }
.lm-cards-stage { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 420px; }
.lm-cards-prev, .lm-cards-next {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #6366f1;
  background: var(--clr-card); font-size: 1.5rem; color: #6366f1;
}
.lm-cards-stack { position: relative; width: min(340px, 85vw); height: 440px; }
.lm-memory-card {
  position: absolute; inset: 0; background: var(--clr-card); border-radius: 24px;
  box-shadow: 0 16px 48px rgba(99,102,241,.18); overflow: hidden; cursor: pointer;
  opacity: 0; transform: scale(.92) translateY(20px); transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.lm-memory-card--active { opacity: 1; transform: none; pointer-events: auto; z-index: 2; }
.lm-memory-card img { width: 100%; height: 72%; object-fit: cover; }
.lm-memory-card-placeholder {
  height: 72%; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; background: rgba(99,102,241,.12); color: #6366f1;
}
.lm-memory-card-body { padding: 16px 20px; text-align: left; }
.lm-cards-counter { font-size: .82rem; color: var(--clr-text3); margin-bottom: 28px; }

.lm-chrome--minimal {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 100; background: var(--clr-bg);
}
.lm-min-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.lm-min-link {
  font-size: .82rem; font-weight: 500; color: var(--clr-text3); padding: 4px 0;
}
.lm-min-link.lm-nav-item--active { color: var(--clr-text); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

.lm-home--minimal { max-width: 960px; margin: 0 auto; }
.lm-min-hero { text-align: center; padding: 48px 20px 32px; }
.lm-min-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 300; letter-spacing: -.03em; margin-bottom: 12px;
}
.lm-min-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; padding: 0 8px;
}
.lm-min-photo { border: none; padding: 0; background: none; aspect-ratio: 1; overflow: hidden; cursor: pointer; }
.lm-min-photo img { width: 100%; height: 100%; object-fit: cover; }
.lm-min-sections { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 48px 20px; }
.lm-min-sec {
  padding: 10px 18px; border: 1px solid var(--clr-border); border-radius: 50px;
  background: none; font-size: .82rem; cursor: pointer;
}
.lm-min-sec--add { border-style: dashed; color: var(--clr-text3); }

.lm-chrome--storybook-spine { position: fixed; left: 0; top: 0; bottom: 0; z-index: 130; display: flex; }
.lm-sb-spine-bar { display: flex; flex-direction: column; align-items: stretch; }
.lm-sb-spine-bar .lm-chrome-extras { margin-left: 0; padding: 8px 4px; }
.lm-sb-spine-toggle {
  width: 36px; border: none; cursor: pointer;
  background: linear-gradient(90deg, #8b5a2b, #c07c3a 40%, #d4a574);
  writing-mode: vertical-rl; font-family: var(--font-display); font-size: .72rem;
  color: #fef3c7; letter-spacing: .08em; padding: 20px 0;
}
.lm-sb-spine-text { transform: rotate(180deg); }
.lm-sb-spine-panel {
  width: 240px; background: #faf5eb; border-right: 3px solid #e8c9a0;
  padding: 20px 16px; overflow-y: auto;
}
.lm-sb-spine-heading { font-family: var(--font-display); font-size: 1rem; color: #5b3a1a; margin-bottom: 12px; }
.lm-sb-spine-link {
  display: flex; width: 100%; padding: 10px 12px; border-radius: 12px;
  font-family: var(--font-display); font-size: .84rem; color: #5b3a1a; text-align: left;
}
.lm-sb-spine-link.lm-nav-item--active { background: #f0dcc4; font-weight: 800; }

body[data-layout="storybook"] .lm-page-shell { padding-left: 36px; }

.lm-home--storybook { background: linear-gradient(180deg, #faf5eb, #f5ebe0); max-width: 680px; margin: 0 auto; }
.lm-sb-page {
  background: #fffef9; border-radius: 20px; padding: 28px 24px; margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(139,90,43,.08);
}
.lm-sb-page--cover { text-align: center; padding: 40px 24px; }
.lm-sb-frame { border: 3px dashed #d4a574; border-radius: 16px; padding: 32px 24px; }
.lm-sb-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; }
.lm-sb-avatar--ph {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; background: #f0dcc4; color: #a67c52;
}
.lm-sb-page h1 { font-family: var(--font-display); color: #a67c52; }
.lm-sb-page h2 { font-family: var(--font-display); font-size: 2rem; color: #5b3a1a; }
.lm-sb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
.lm-sb-photo-frame {
  background: #fff; padding: 8px 8px 28px; box-shadow: 0 2px 8px rgba(0,0,0,.1); cursor: pointer;
}

.lm-chrome--polaroid-fab { position: fixed; bottom: 24px; right: 24px; z-index: 200; }
.lm-pol-fab-row { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; position: relative; }
.lm-pol-fab-row .lm-chrome-extras { margin-left: 0; }
.lm-pol-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 3px solid #fef3c7;
  background: #b8956a; color: #fef3c7; font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.lm-pol-fab[aria-expanded="true"] { transform: rotate(45deg); }
.lm-pol-radial {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-end; min-width: 200px;
}
.lm-pol-radial-item {
  padding: 10px 16px; border-radius: 50px; background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: .82rem; font-weight: 600; color: #333;
}

.lm-home--polaroid { background: #2a2520; color: #fef3c7; min-height: 60vh; }
.lm-pol-header h1 { font-family: 'Segoe Print', cursive; font-size: 2rem; text-align: center; padding-top: 24px; }
.lm-pol-scatter {
  min-height: 500px; padding: 20px 20px 100px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.lm-pol-item { width: 180px; cursor: pointer; transform: rotate(var(--rot, 0deg)); }
.lm-pol-frame { background: #fff; padding: 10px 10px 36px; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.lm-pol-frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.lm-chrome--dash-top {
  position: sticky; top: 0; z-index: 120; background: #0f172a; border-bottom: 1px solid #1e293b;
}
.lm-dash-top-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; max-width: 1200px; margin: 0 auto; }
.lm-dash-logo { font-size: .88rem; text-transform: uppercase; letter-spacing: .1em; color: #38bdf8; }
.lm-dash-top-nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.lm-dash-top-link { padding: 8px 14px; border-radius: 8px; font-size: .78rem; color: #94a3b8; }
.lm-dash-top-link.lm-nav-item--active { background: #0ea5e9; color: #fff; }
.lm-chrome--dash-top .lm-layout-dropdown-toggle { background: #1e293b; border-color: #334155; color: #e2e8f0; }

.lm-chrome--dash-drawer {
  position: fixed; left: 0; top: 52px; bottom: 0; z-index: 110;
  display: flex; width: 48px; overflow: hidden; transition: width .25s;
}
.lm-chrome--dash-drawer.lm-dash-drawer--open,
.lm-chrome--dash-drawer:hover { width: 200px; }
.lm-dash-drawer-toggle {
  width: 48px; border: none; background: #1e293b; color: #38bdf8; cursor: pointer;
}
.lm-dash-drawer-panel { flex: 1; background: #0f172a; padding: 16px 12px; min-width: 152px; }
.lm-dash-drawer-label { font-size: .62rem; text-transform: uppercase; color: #64748b; margin-bottom: 10px; }
.lm-dash-drawer-item {
  display: flex; width: 100%; padding: 10px; border-radius: 8px; font-size: .78rem; color: #cbd5e1;
}
.lm-dash-drawer-item.lm-nav-item--active { background: #0ea5e9; color: #fff; }

body[data-layout="dashboard"] .lm-chrome-body { padding-left: 56px; }

.lm-home--dashboard { max-width: 1100px; margin: 0 auto; }
.lm-dash-home-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.lm-dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.lm-dash-widget { background: var(--clr-card); border: 1px solid var(--clr-border); border-radius: var(--radius-lg); padding: 18px; }
.lm-dash-span-2 { grid-column: 1 / -1; }
.lm-dash-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lm-dash-actions button { padding: 10px 16px; border-radius: 10px; border: 1px solid var(--clr-border); background: var(--clr-bg); }
.lm-dash-recent { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lm-dash-thumb { border: none; background: none; padding: 0; cursor: pointer; text-align: left; }
.lm-dash-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.lm-dash-featured { display: flex; gap: 10px; overflow-x: auto; }
.lm-dash-feat { flex: 0 0 120px; cursor: pointer; }
.lm-dash-feat img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }

.lm-chrome--cinematic {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transform: translateY(calc(-100% + 8px)); transition: transform .35s ease;
}
.lm-chrome--cinematic:hover,
.lm-chrome--cinematic:focus-within { transform: translateY(0); }
.lm-cine-strip-bar { background: #0a0a0a; border-bottom: 3px solid #e50914; padding: 8px 16px 12px; }
.lm-cine-sprockets { font-size: .5rem; letter-spacing: 3px; color: rgba(255,255,255,.25); text-align: center; margin-bottom: 6px; }
.lm-cine-nav-links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.lm-cine-nav-link {
  padding: 6px 14px; font-size: .72rem; font-weight: 700; text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.lm-cine-nav-link.lm-nav-item--active { color: #fff; background: rgba(229,9,20,.45); }
.lm-cine-dropdown .lm-layout-dropdown-toggle { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }

.lm-home--cinematic { background: #0a0a0a; color: #fff; }
.lm-cine-hero { min-height: 100vh; background-size: cover; background-position: center; display: flex; align-items: flex-end; }
.lm-cine-hero-overlay { width: 100%; padding: 48px 32px 64px; background: linear-gradient(transparent 20%, rgba(0,0,0,.85)); }
.lm-cine-pre { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; opacity: .7; }
.lm-cine-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 4rem); font-weight: 900; }
.lm-cine-btn { padding: 12px 24px; border: none; background: #e50914; color: #fff; font-weight: 700; }
.lm-cine-btn--ghost { background: rgba(255,255,255,.15); }
.lm-cine-strip { background: #111; padding: 16px 0; border-top: 4px solid #222; border-bottom: 4px solid #222; overflow-x: auto; }
.lm-cine-strip-inner { display: flex; gap: 4px; padding: 0 20px; }
.lm-cine-frame { flex: 0 0 140px; height: 90px; border: 2px solid #333; cursor: pointer; overflow: hidden; }
.lm-cine-frame img { width: 100%; height: 100%; object-fit: cover; }
.lm-cine-scenes { padding: 32px 20px; }
.lm-cine-scene {
  display: grid; grid-template-columns: 100px 200px 1fr; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); cursor: pointer;
}

body[data-layout="cinematic"] .lm-chrome-body:not(.lm-home-body) {
  background: #0a0a0a; color: #fff; padding: 48px 24px 64px; min-height: calc(100vh - 8px);
}

.lm-chrome--mosaic {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(180deg, #fdf2f8, #eff6ff);
  border-bottom: 2px solid rgba(236,72,153,.2); padding: 16px 20px 14px;
}
.lm-mos-pill-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.lm-mos-pill { padding: 10px 18px; border-radius: 50px; font-size: .78rem; font-weight: 700; }
.lm-mos-pill--0 { background: #fce7f3; color: #831843; }
.lm-mos-pill--1 { background: #dbeafe; color: #1e40af; }
.lm-mos-pill--2 { background: #dcfce7; color: #166534; }
.lm-mos-pill--3 { background: #fef3c7; color: #92400e; }
.lm-mos-pill--4 { background: #ede9fe; color: #5b21b6; }
.lm-mos-pill--5 { background: #ffedd5; color: #9a3412; }
.lm-mos-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lm-mos-chip { padding: 6px 14px; border-radius: 20px; font-size: .72rem; background: #e0e7ff; color: #3730a3; }
.lm-mos-chip.lm-nav-item--active { background: #6366f1; color: #fff; }
.lm-chrome--mosaic .lm-chrome-extras { justify-content: center; width: 100%; margin-top: 10px; }

.lm-home--mosaic { max-width: 1100px; margin: 0 auto; }
.lm-mos-hero { margin-bottom: 20px; text-align: center; }
.lm-mos-hero h1 { font-size: 1.8rem; font-weight: 800; color: #831843; }
.lm-mos-grid { columns: 3 200px; column-gap: 10px; margin-bottom: 32px; }
.lm-mos-tile {
  break-inside: avoid; display: block; width: 100%; border: none; padding: 0;
  margin-bottom: 10px; border-radius: 12px; overflow: hidden; cursor: pointer; position: relative;
}
.lm-mos-tile--tall img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.lm-mos-tile--wide img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.lm-mos-tile--sq img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.lm-mos-tile span {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,.7)); color: #fff; font-size: .74rem;
}

@media (max-width: 768px) {
  .lm-layout-dropdown-label { display: none; }
  .lm-mag-grid { grid-template-columns: 1fr; }
  .lm-mag-asymmetric { grid-template-columns: 1fr 1fr; }
  .lm-mag-photo--1 { grid-column: 1 / -1; aspect-ratio: 16/10; }
  .lm-dash-grid { grid-template-columns: 1fr; }
  .lm-cine-scene { grid-template-columns: 1fr; }
  .lm-tl-node, .lm-tl-node--right { flex-direction: row; padding-left: 40px; }
  .lm-tl-spine::before, .lm-tl-marker { left: 16px; }
  .lm-tl-card { width: 100%; text-align: left !important; }
}

@media (max-width: 480px) {
  .lm-mos-grid { columns: 2 140px; }
}
